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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 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.dev/license
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
'use strict';var ba,baa,caa,ma,daa,na,eaa,faa,pa,haa,sa,ta,ua,iaa,jaa,kaa,Ba,Ca,laa,maa,naa,oaa,Fa,Ga,Ha,Ia,Ka,La,paa,Ma,Qa,Ra,raa,saa,taa,jb,uaa,lb,vaa,waa,xaa,yaa,zaa,Aaa,Baa,Caa,Daa,Eaa,Faa,Gaa,Haa,Iaa,ob,Jaa,qb,Kaa,Oaa,sb,Paa,Qaa,vb,Raa,yb,Ab,Gb,Hb,Ib,Jb,Saa,Taa,Kb,Mb,Lb,Uaa,Vaa,Waa,Xaa,Nb,Yaa,Ob,Pb,Qb,Zaa,$aa,Tb,bba,cba,cc,dba,gc,eba,fba,ec,gba,hba,iba,nc,jba,lba,rba,rc,qba,nba,tba,vba,xba,vc,zba,xc,yc,Ac,zc,Bba,Bc,Cc,Dc,Ec,Fc,Cba,Hc,Ic,Jc,Kc,Mc,Nc,Oc,Eba,Rc,Tc,Iba,Xc,$c,Jba,ad,Kba,Lba,bd,Yc,
cd,dd,Mba,ed,Nba,gd,Pba,hd,id,jd,Sba,md,Tba,Uba,Vba,Rba,ld,Qba,kd,Wba,Xba,Yba,Zba,$ba,od,pd,qd,aca,gca,eca,ud,hca,fca,cca,bca,dca,Bd,Cd,jca,Dd,kca,ica,Ad,lca,oca,Hd,Fd,qca,pca,rca,sca,Id,tca,uca,Kd,vca,Ld,xca,Nd,yca,Md,Qd,Pd,Rd,Ud,Yd,Bca,Cca,Wd,Dca,Eca,Zd,Gca,$d,de,ee,fe,ae,ce,be,ie,Aca,je,Hca,fb,ke,me,Vd,Xd,ne,Jca,oe,pe,qe,ib,re,se,te,ue,ve,we,xe,Kca,ye,Lca,ze,Mca,Be,Ae,Ce,De,Fe,Ge,He,Nca,Pca,Je,Qca,Rca,Ke,Le,Oe,Tca,Uca,Pe,Yca,ada,Vca,$ca,Zca,Xca,Wca,bda,Qe,cda,Ve,We,eda,Xe,gda,Ye,Ze,$e,hda,af,ida,
bf,jda,kda,cf,lda,df,ef,gf,hf,nda,lf,qda,mda,mf,of,pf,tda,rf,tf,uda,wda,xda,uf,vf,wf,xf,yf,zf,Af,zda,Ada,Bda,Cda,Bf,Cf,Df,Ef,Ff,Gf,Hf,Dda,Hda,Ida,Kda,Jda,Lda,Nda,Lf,Nf,Pf,Sf,Tf,Qda,Wf,Yf,$f,Sda,Tda,cg,Uda,Vda,hg,jg,kg,mg,ng,pg,qg,cea,dea,eea,fea,rg,sg,tg,hea,iea,jea,xg,yg,zg,Ag,Dg,Fg,Kg,kea,lea,Rg,mea,bh,ch,pea,uea,sea,wea,xea,fh,gh,lh,Aea,Cea,Bea,nh,ph,Dea,oh,uh,eh,Fea,Eea,Bh,Ah,dh,Gea,Eh,Fh,Gh,Hea,Hh,Jea,Kh,Kea,Lh,Mh,Nh,Lea,Mea,Qh,Oea,Ph,Oh,Nea,Pea,Qea,Sh,Rea,Rh,Vh,Wh,Xh,Yh,Sea,Zh,Fda,Eda,$h,ai,
ci,di,Vea,ei,fi,hi,Wea,Xea,ii,bfa,ni,Zea,afa,li,ki,ri,si,cfa,ui,dfa,vi,wi,efa,gfa,Ai,ifa,Ci,Di,jfa,kfa,Gi,Ji,Ki,ofa,qfa,Mi,rfa,Li,vfa,Ei,mfa,xfa,ufa,sfa,tfa,yfa,wfa,Ni,pfa,Qi,Afa,Bfa,Cfa,Dfa,Efa,Si,Ffa,Ui,Gfa,Jfa,Vi,Wi,Xi,Yi,bj,Lfa,cj,dj,ej,Mfa,Nfa,hj,Ofa,ij,jj,Rfa,Tfa,Vfa,Ufa,Wfa,lj,Xfa,oj,sj,uj,vj,wj,xj,zj,$fa,tj,gb,Aj,Bj,Cj,Dj,Ij,Jj,dga,Kj,Lj,Mj,ega,fga,gga,hga,Nj,Oj,Pj,Qj,jga,Sj,Tj,mga,oga,pga,Uj,qga,kga,Vj,rga,nga,sga,Wj,uga,vga,wga,xga,yga,Yj,zga,Aga,Bga,Cga,Fga,Dga,Zj,ak,bk,ck,dk,ek,fk,gk,
Hga,Iga,ik,hk,jk,Jga,Oga,Kga,Lga,Mga,Nga,kk,lk,Pga,mk,nk,Qga,ok,pk,qk,rk,sk,Uga,Rga,vk,Tga,wk,Sga,uk,tk,yk,Wga,Ak,zk,Fk,Gk,Lk,Zga,Kk,Ok,$ga,Pk,Xga,cha,dha,eha,Sk,Tk,Uk,fha,Vk,Wk,Xk,Yk,gha,Zk,$k,al,hha,iha,bl,jha,Rj,mha,nha,oha,pha,kha,cl,dl,el,fl,rha,hl,gl,sha,tha,uha,ll,vha,ml,nl,wha,xha,ol,zha,pl,yha,Aha,Bha,Cha,ql,rl,sl,tl,ul,vl,wl,Dha,xl,yl,zl,Eha,Gha,Hha,Bl,Dl,Cl,Fl,Gl,Hl,Jha,Kha,Il,Jl,Kl,Mha,Nha,Qha,Oha,Rha,Vha,Ll,Uha,Sha,Ml,Nl,Wha,Ol,Xha,Pl,Zha,Yha,$ha,aia,Tl,Ul,bia,cia,dia,Vl,Wl,eia,Xl,fia,
gia,iia,mia,Yl,nia,oia,pia,qia,ria,am,sia,tia,uia,hm,gm,fm,via,wia,xia,im,jm,rm,zia,wm,xm,ym,zm,Aia,Am,Cia,Dia,Eia,Bm,Dm,Em,Jm,Km,Nm,Gia,Iia,Hia,Jia,Kia,Tm,Lia,Mia,Um,Nia,Oia,Pia,Qia,Ym,Wm,Zm,$m,an,Ria,Sia,Tia,bn,cn,Uia,dn,Via,Wia,Xia,en,Yia,fn,gn,Zia,$ia,aja,bja,cja,dja,hn,jn,kn,mn,gja,nn,on,hja,fja,ln,ija,pn,qn,rn,tn,sn,jja,kja,lja,un,nja,vn,pja,qja,rja,sja,tja,uja,vja,wja,yn,zn,An,yja,xja,zja,Aja,Cn,Bja,Dn,Cja,Dja,En,Fn,Gn,Eja,Hn,In,Fja,Jn,Kn,Ln,Mn,Nn,On,Pn,Qn,Gja,Hja,Ija,Jja,Rn,Kja,Mja,Lja,Tn,
Un,Oja,Nja,Rja,Uja,Tja,Vn,Vja,Wja,Xja,Zja,Yja,$ja,Wn,aka,bka,Yn,cka,dka,eka,fka,Zn,gka,$n,hka,ao,bo,jka,co,kka,eo,fo,lka,mka,go,io,oka,jo,nka,pka,qka,rka,tka,ko,uka,no,oo,wka,xka,Aka,Bka,po,qo,ro,so,to,uo,vo,wo,xo,yo,zo,Ao,Bo,Fka,Eka,Gka,Ika,Hka,Kka,Dka,Jka,Cka,Co,Io,Mka,Nka,Oka,Mo,No,Oo,Jo,Qka,Po,Lka,Ska,Tka,Rka,Qo,Ro,So,To,Uka,Pka,Vka,Uo,Wka,Xka,Yka,Zka,$ka,dla,ela,fla,gla,hla,ila,kla,lla,mla,Vo,nla,ola,rla,tla,ula,vla,zla,yla,Bla,Dla,hp,Gla,Hla,Ila,Jla,Lla,wp,Mla,vp,yp,Nla,zp,Bp,Cp,Ola,Pla,Qla,
Jp,Rla,Sla,Sp,Tla,Vla,Tp,Wla,Xla,cma,Zla,Wp,Xp,Yp,$p,aq,hma,bq,cq,dq,jma,gq,kma,lma,hq,nma,jq,kq,lq,mq,oma,nq,pq,qq,rq,sq,pma,uq,vq,wq,xq,yq,zq,qma,rma,sma,tma,uma,vma,Aq,wma,Hq,xma,yma,zma,Iq,Kq,Lq,Mq,Pq,Qq,Rq,Bma,Wq,Xq,Yq,Cma,Dma,Zq,Ema,Fma,ar,Nma,Oma,Pma,br,Qma,Rma,Uma,dr,Wma,Vma,fr,Xma,Yma,hr,ir,Zma,jr,kr,lr,mr,nr,or,pr,qr,rr,sr,tr,ur,vr,wr,$ma,ana,bna,yr,Ar,cna,Er,Fr,Gr,Hr,Ir,Lr,gna,Mr,Nr,Or,ina,hna,dna,Rr,Qr,mna,Sr,as,Yr,bs,cs,ona,rna,es,una,sna,tna,wna,Bna,xna,zna,Ana,gs,fs,Cna,is,js,ks,Dna,
qs,Ena,rs,ts,vs,Fna,xs,ys,Gna,zs,As,Ina,Ds,Fs,Gs,Hs,Is,Js,Ks,Ls,Ms,Ns,Kna,Os,Rs,Qs,Mna,Qna,Ona,Pna,Rna,Sna,Una,Vna,Tna,Xna,Us,Vs,Ys,Yna,Zna,Xs,Zs,aoa,boa,foa,eoa,ct,dt,et,ft,gt,it,hoa,ioa,joa,pt,qt,koa,loa,moa,wt,xt,zt,noa,ooa,qoa,soa,Dt,toa,Gt,Et,Jt,Kt,Mt,uoa,Tt,Ut,Vt,Wt,Yt,Zt,au,zoa,Aoa,cu,Boa,Coa,eu,Doa,Eoa,fu,gu,Foa,Goa,Ioa,ku,Koa,Loa,iu,Moa,Noa,Poa,Ooa,ou,Joa,Roa,Soa,vu,tu,Toa,Uoa,wu,xu,Voa,Woa,Ju,Xoa,Yoa,Zoa,$oa,Ou,apa,bpa,cpa,dpa,epa,fpa,gpa,hpa,Qu,ipa,Su,kpa,lpa,mpa,npa,opa,Tu,Zu,qpa,tpa,
$u,upa,wpa,ppa,xpa,ypa,zpa,rpa,spa,Uu,Vu,Yu,vpa,Xu,Wu,Apa,Bpa,Cpa,Dpa,Epa,Fpa,Kpa,Gpa,dv,ev,gv,Npa,Qpa,Ppa,fv,jv,Rpa,mv,Spa,Upa,rv,Tpa,cqa,Vpa,bqa,wv,dqa,gqa,xv,vv,eqa,fqa,hqa,zv,jqa,kqa,lqa,mqa,nqa,oqa,pqa,iqa,rqa,sqa,tqa,uqa,vqa,xqa,Dv,yqa,Ev,Fv,Gv,zqa,Aqa,Jv,Kv,Cqa,Bqa,Lv,Dqa,Fqa,Hqa,Gqa,Iqa,Lqa,Jqa,Yv,Xv,Mqa,Wv,Zv,$v,aw,Nqa,Oqa,cw,Qqa,fw,ew,hw,iw,jw,Rqa,kw,mw,Sqa,ow,qw,rw,Tqa,Uqa,Vqa,tw,vw,Wqa,ww,xw,yw,Yqa,zw,Zqa,Bw,Ew,Dw,Cw,Fw,Gw,bra,hra,jra,gra,fra,ira,Jw,Mw,lra,kra,Rw,Sw,ara,ura,Yw,tra,xra,
sra,Iw,Zw,Qw,Ww,vra,Ow,dra,cra,era,Lw,rra,cx,Era,Dra,dx,Gra,Hra,Ira,fx,Jra,Kra,Lra,Nra,Ora,ix,Qra,jx,Rra,Sra,Ura,Vra,lx,Wra,Yra,mx,Zra,nx,ox,Pt,dsa,isa,ux,ksa,nsa,wx,psa,qsa,rsa,ssa,Hx,tsa,Fx,Opa,Dx,Gx,Ex,xx,Px,Ox,Sx,Tx,Vx,vsa,Wx,Zx,$x,wsa,xsa,cy,zsa,Asa,Bsa,Csa,Dsa,Esa,Fsa,Gsa,Hsa,Isa,gy,Jsa,hy,jy,Ksa,Lsa,Msa,ky,Nsa,Osa,oy,py,qy,Psa,ry,Qsa,ty,Ssa,Rsa,vy,wy,yy,zy,Tsa,Ay,By,Usa,Vsa,Cy,Dy,Zsa,Wsa,Ysa,Xsa,Ey,Fy,Gy,$sa,ata,bta,Hy,dta,gta,fta,Iy,Jy,Ky,Ly,My,Oy,Py,Qy,Ry,Sy,Ty,hta,ita,jta,kta,Uy,Vy,Wy,Xy,
Zy,az,mta,lta,cz,nta,dz,ez,fz,gz,hz,kz,lz,mz,nz,oz,pz,qz,rz,sz,tz,uz,qta,Pz,Rz,rta,Sz,tta,uta,vta,xta,zta,Yz,Ata,$z,Zz,Dta,Eta,Fta,bA,cA,Hta,eA,fA,gA,hA,Jta,iA,jA,kA,Kta,lA,Ita,mA,nA,Mta,Lta,oA,pA,qA,rA,tA,Ota,Pta,vA,wA,yA,zA,Qta,xA,Tta,Uta,Vta,Wta,Xta,Yta,Zta,BA,AA,Sta,bua,CA,dua,eua,HA,fua,EA,FA,gua,IA,iua,kua,JA,KA,lua,LA,nua,MA,tua,rua,oua,qua,pua,OA,PA,QA,RA,SA,TA,UA,WA,vua,yua,ZA,jla,$A,zua,Bua,bB,fB,cB,eB,dB,Eua,Dua,Cua,Fua,gB,Gua,Kua,hB,jB,Mua,kB,lB,mB,nB,Nua,oB,Oua,Pua,pB,rB,vB,wB,xB,yB,
zB,AB,BB,CB,DB,EB,FB,GB,HB,Qua,Rua,IB,JB,KB,LB,MB,NB,Sua,Tua,OB,SB,Wua,Xua,TB,UB,$B,aC,Zua,dC,gC,$ua,bva,ava,cva,dva,eva,fva,gva,hva,jva,iva,kva,lva,iC,nva,mva,jC,kC,lC,ova,mC,nC,oC,qva,rva,pC,pva,qC,uva,rC,sC,tC,uC,vC,wC,xC,yC,zC,AC,BC,CC,DC,EC,FC,GC,HC,IC,JC,KC,LC,MC,NC,OC,PC,QC,RC,SC,TC,UC,VC,WC,XC,YC,ZC,$C,aD,bD,cD,dD,eD,fD,gD,hD,iD,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,uD,vD,wD,xD,yD,zD,AD,BD,CD,DD,ED,FD,GD,HD,JD,KD,wva,LD,Z,MD,ID,ND,OD,PD,yva,RD,Ava,QD,Bva,TD,Cva,VD,SD,WD,XD,YD,$D,Eva,Fva,Gva,Hva,
iE,jE,eE,kE,Jva,Kva,Lva,Mva,Dva,Nva,ZD,Ova,Pva,mE,rE,nE,bE,Qva,aE,lE,oE,sE,Sva,cE,dE,qE,pE,Tva,tE,uE,vE,wE,Uva,xE,yE,zE,AE,BE,Wva,Xva,Zva,$va,DE,EE,FE,GE,ewa,gwa,iwa,jwa,IE,lwa,mwa,OE,nwa,PE,QE,RE,SE,TE,UE,owa,qwa,rwa,pwa,swa,twa,YE,ZE,aF,bF,cF,dF,eF,uwa,fF,gF,$E,jF,kF,lF,mF,vwa,iF,xwa,nF,ywa,zwa,oF,Awa,pF,qF,Bwa,Cwa,rF,Dwa,Ewa,sF,Fwa,Gwa,Hwa,Iwa,tF,uF,Jwa,Kwa,vF,wF,xF,Lwa,yF,zF,Mwa,AF,BF,Nwa,CF,Owa,DF,Pwa,Qwa,EF,FF,Rwa,Swa,Twa,Uwa,GF,Vwa,Wwa,Xwa,HF,Ywa,IF,Zwa,JF,$wa,KF,axa,OF,bxa,PF,QF,cxa,RF,dxa,
SF,TF,exa,fxa,VF,WF,hxa,XF,ixa,jxa,gxa,kxa,lxa,mxa,ZF,nxa,$F,aG,bG,cG,qxa,dG,eG,gG,rxa,hG,iG,kG,nG,lG,rG,sG,sxa,tG,uG,vG,wG,txa,yG,zG,AG,uxa,BG,CG,DG,pG,EG,FG,GG,vxa,HG,IG,JG,wxa,KG,LG,MG,NG,OG,QG,RG,SG,TG,xxa,yxa,zxa,Axa,EH,UG,FH,GH,Bxa,Cxa,Dxa,HH,IH,JH,Exa,Fxa,CH,Gxa,Hxa,KH,Ixa,LH,MH,OH,PH,QH,RH,SH,UH,VH,XH,YH,ZH,$H,WH,Kxa,Lxa,bI,cI,dI,Mxa,fI,Oxa,gI,iI,Pxa,jI,kI,lI,nI,Qxa,mI,oI,pI,qI,Rxa,tI,Txa,Uxa,uI,vI,Vxa,Wxa,Xxa,wI,Zxa,eI,Yxa,$xa,xI,aya,bya,yI,cya,zI,dya,eya,fya,gya,hya,AI,jya,iya,BI,EI,FI,
GI,kya,lya,mya,nya,oya,HI,pya,II,rya,KI,LI,tya,sya,uya,vya,wya,NI,OI,PI,xya,yya,zya,Aya,Bya,Cya,Dya,Eya,Fya,Gya,RI,SI,Hya,Iya,TI,UI,Jya,VI,WI,YI,Kya,ZI,$I,aJ,Lya,bJ,Mya,cJ,Nya,dJ,Oya,Pya,eJ,Qya,Rya,Sya,fJ,gJ,hJ,iJ,jJ,Tya,Uya,kJ,lJ,mJ,Vya,nJ,oJ,pJ,Wya,Xya,qJ,Yya,rJ,sJ,tJ,uJ,Yva,Zya,$ya,aza,bza,cza,dza,vJ,wJ,xJ,yJ,zJ,AJ,BJ,CJ,DJ,EJ,FJ,eza,fza,MJ,NJ,gza,OJ,VJ,QJ,kza,pza,lza,rza,sza,qza,tza,uza,vza,fK,yza,Aza,Cza,Dza,Eza,iK,jK,Gza,Hza,Lza,kK,Mza,Iza,lK,mK,nK,oK,Oza,Rza,Pza,Uza,aAa,$za,Vza,bAa,qK,Xza,
Wza,eAa,hAa,gAa,lAa,iAa,rK,sK,qAa,vK,rAa,wAa,vAa,tAa,zAa,yAa,uAa,EAa,DAa,FAa,AK,IAa,GAa,HAa,sAa,JAa,KAa,wK,yK,BAa,AAa,CAa,LAa,xK,xAa,NAa,PAa,RAa,TAa,WAa,XAa,ZAa,$Aa,bBa,aBa,gBa,dBa,cBa,hBa,kBa,lBa,mBa,nBa,LK,zza,qBa,oBa,OK,rBa,tBa,RK,wBa,xBa,vBa,SK,yBa,TK,UK,VE,VK,xza,WK,XK,YK,zBa,ABa,ZK,BBa,CBa,DBa,$K,aL,bL,cL,dL,eL,fL,gL,hL,EBa,FBa,iL,GBa,jL,DI,kL,lL,HBa,mL,IBa,JBa,Bza,uBa,KBa,nL,WE,CE,BK,LBa,MBa,pL,pAa,tK,NBa,MK,NK,DK,CK,pK,FK,UAa,YAa,EK,mAa,iBa,OBa,cAa,Yza,qL,sBa,hK,QBa,PBa,Nza,VAa,RBa,jBa,JK,
nAa,oAa,fAa,SAa,QAa,Tza,Qza,Kza,Jza,Fza,MAa,Zza,eBa,jAa,kAa,HK,IK,GK,fBa,OAa,TBa,SBa,rL,sL,tL,uL,vL,xL,UBa,VBa,WBa,yL,zL,AL,BL,CL,DL,EL,$Ba,GL,FL,aCa,YBa,ZBa,bCa,HL,IL,cCa,dCa,JL,eCa,Ot,gCa,fCa,iCa,kCa,lCa,jCa,mCa,nCa,RL,SL,oCa,pCa,TL,UL,qCa,rCa,sCa,tCa,uCa,xCa,zCa,ACa,yCa,YL,$L,ZL,BCa,CCa,WL,DCa,ECa,FCa,GCa,XL,KCa,LCa,MCa,JCa,ICa,HCa,NCa,OCa,vCa,PCa,wCa,QCa,RCa,VCa,SCa,TCa,UCa,YCa,WCa,XCa,ZCa,$Ca,bM,bDa,aDa,eDa,cDa,fDa,dDa,gDa,hDa,iDa,jDa,kDa,lDa,mDa,nDa,oDa,pDa,qDa,rDa,cM,tDa,uDa,vDa,sDa,wDa,xDa,
ADa,eM,gM,iM,kM,BDa,lM,mM,nM,FDa,HDa,GDa,JDa,RDa,vM,pM,IDa,EDa,DDa,CDa,uM,qM,tM,AM,BM,UDa,CM,DM,zM,YDa,VDa,WDa,ZDa,EM,FM,aEa,HM,IM,JM,KM,LM,MM,NM,bEa,cEa,OM,PM,RM,eEa,fEa,QM,SM,iEa,jEa,TM,kEa,WM,lEa,XM,ZM,mEa,YM,$M,nEa,bN,pEa,qEa,dN,eN,jN,sEa,gN,kN,mN,tEa,oN,iN,lN,uEa,pN,vEa,qN,wEa,fN,hN,rEa,nN,rN,xEa,yEa,sN,zEa,tN,AEa,uN,vN,BEa,xN,wN,yN,zN,CEa,AN,BN,CN,DN,DEa,EN,FN,EEa,FEa,GN,HN,IN,HEa,GEa,JN,IEa,JEa,KEa,KN,LEa,MEa,NEa,OEa,PEa,LN,MN,NN,ON,QEa,REa,QN,SEa,RN,SN,TEa,UEa,TN,VEa,WEa,$Ea,aFa,XEa,YEa,ZEa,
VN,WN,XN,YN,bFa,cFa,ZN,dFa,$N,aO,fFa,eFa,cO,bO,gFa,hFa,iFa,jFa,dO,kFa,fO,gO,lFa,nFa,oFa,iO,jO,nO,sFa,PDa,rM,tFa,uFa,vFa,wFa,xFa,yFa,oM,kO,KGa,qO,rO,gIa,HIa,IIa,sO,MIa,JIa,KIa,OIa,PIa,tO,QIa,NIa,RIa,uO,vO,wO,SIa,TIa,xO,yO,UIa,zO,VIa,AO,oO,EO,WIa,QDa,KDa,FO,GO,IO,JO,KO,LO,MO,HO,PO,YIa,SO,VO,YO,ZO,$O,bP,cP,TO,UO,aP,ZIa,$Ia,aJa,bJa,cJa,dP,eJa,eP,gJa,fP,iJa,jJa,hJa,fJa,kJa,lJa,mJa,kP,nJa,oJa,qJa,lP,TDa,nP,sJa,uJa,wM,vJa,wJa,xJa,sM,LDa,NDa,ODa,rJa,pP,qP,rP,yJa,zJa,sP,AJa,uP,vP,wP,BJa,xP,yP,CJa,DJa,zP,AP,
BP,CP,DP,EP,FP,FJa,EJa,GP,HJa,GJa,IJa,KJa,HP,LJa,JJa,ZP,XP,$P,bQ,cQ,iP,MJa,TJa,gE,YP,gQ,XJa,kQ,ZJa,NP,lQ,MP,mQ,WP,pQ,dKa,qQ,rQ,eKa,fKa,sQ,gKa,hKa,iKa,jKa,tQ,kKa,pKa,oKa,lKa,nKa,mKa,uQ,qKa,vQ,rKa,sKa,uKa,vKa,wKa,BKa,AQ,BQ,EKa,CQ,DQ,FKa,IKa,JKa,KKa,LKa,EQ,MKa,OKa,PKa,QQ,YKa,TKa,UKa,$Ka,RQ,aLa,cLa,bLa,dLa,TQ,WQ,eLa,SQ,XQ,YQ,fLa,iLa,gLa,lLa,cR,qR,ILa,JLa,LLa,xLa,iR,KLa,nR,yR,vLa,NLa,MLa,OLa,zR,bR,mR,QLa,RLa,SLa,ULa,PLa,BR,TLa,XLa,YLa,WLa,DR,$La,aR,kR,VLa,ALa,hLa,ELa,JR,lR,PR,vR,RR,SR,mMa,oMa,nMa,wR,pMa,
qMa,UR,rMa,sMa,gR,tMa,wLa,uMa,eMa,jR,pLa,vMa,nLa,mLa,jLa,WR,eR,FMa,EMa,HMa,IMa,aS,cS,dS,bS,fS,JMa,KMa,gS,MMa,hS,OMa,QMa,NMa,lS,VMa,TMa,WMa,YMa,ZMa,oS,$Ma,cNa,dNa,WS,XS,fNa,ZS,gNa,bT,cT,dT,eT,hNa,fT,iNa,mNa,gT,hT,nNa,oNa,qNa,pNa,rNa,sNa,tNa,iT,jT,uNa,wNa,xNa,yNa,nT,BNa,ANa,CNa,oT,pT,qT,DNa,ENa,FNa,GNa,HNa,JNa,INa,KNa,rT,MNa,LNa,NNa,ONa,sT,tT,PNa,RNa,SNa,TNa,UNa,YNa,VNa,uT,ZNa,vT,$Na,bOa,cOa,eOa,dOa,fOa,wT,xT,gOa,hOa,lOa,iOa,mOa,nOa,jOa,kOa,oOa,pOa,AT,qOa,sOa,uOa,xOa,vOa,wOa,GT,JT,zOa,KT,AOa,LT,COa,
DOa,EOa,BOa,HOa,IOa,JOa,MT,NT,KOa,LOa,MOa,SKa,XKa,NOa,POa,OOa,QOa,PT,SOa,TOa,XOa,RT,ST,TT,ZOa,bPa,WT,XT,UT,cPa,dPa,ePa,gPa,kPa,qPa,vPa,bU,wPa,CT,yPa,zPa,APa,BPa,CPa,DPa,EPa,dU,FPa,eU,GPa,fU,HPa,hU,JPa,KPa,LPa,iU,MPa,NPa,OPa,PPa,QPa,jU,IPa,RPa,kU,TPa,UPa,lU,VPa,WPa,XPa,YPa,ZPa,$Pa,aQa,bQa,cQa,dQa,eQa,gQa,mU,iQa,hQa,mQa,oU,fQa,nU,pU,qU,rU,sU,tU,uU,nQa,vU,oQa,pQa,uQa,xQa,yQa,zQa,AQa,zU,BQa,wQa,tQa,CQa,xU,DQa,qQa,GQa,wU,yU,rQa,sQa,AU,HQa,IQa,vQa,FQa,JQa,KQa,LQa,CU,NQa,MQa,DU,SQa,QQa,RQa,OQa,TQa,EU,PQa,
FU,GU,UQa,VQa,WQa,HU,YQa,ZQa,IU,$Qa,JU,aRa,bRa,cRa,dRa,fRa,gRa,hRa,oRa,kRa,qRa,eRa,rRa,sRa,lRa,mRa,jRa,nRa,xRa,LU,iRa,pRa,zRa,wRa,vRa,uRa,tRa,NU,ARa,BT,OU,PU,QU,BRa,CRa,ERa,DRa,FRa,IT,GRa,RU,ET,FT,rOa,TU,VU,KRa,LRa,XU,UU,SU,ZU,IRa,HRa,JRa,$U,MRa,NRa,lQa,kQa,DT,aV,ORa,WU,PRa,QRa,RRa,SRa,TRa,bV,VRa,WRa,XRa,YRa,ZRa,$Ra,EQa,dV,eV,bSa,cV,cSa,FOa,GOa,fV,dSa,eSa,fSa,gSa,gV,jSa,hSa,kSa,mSa,iSa,nSa,pSa,oSa,rSa,jV,mV,uSa,tSa,ySa,wSa,zSa,ASa,vSa,xSa,sSa,BSa,CSa,FSa,DSa,ESa,oV,GSa,SPa,HSa,ISa,JSa,KSa,pV,LSa,
qV,MSa,rV,sV,NSa,QSa,OSa,PSa,RSa,SSa,TSa,USa,VSa,tV,aPa,uV,YSa,vV,XSa,ZSa,$Sa,$Oa,VT,aTa,bTa,xV,iTa,hTa,CV,jTa,gTa,mTa,DV,nTa,oTa,qTa,pTa,rTa,uTa,vTa,xTa,tTa,yTa,zTa,ATa,BTa,CTa,ETa,FTa,GTa,DTa,FV,wV,ITa,sTa,JTa,wTa,GV,LTa,HTa,EV,MTa,NTa,QTa,TTa,RTa,STa,UTa,OTa,PTa,KV,YTa,$Ta,ZTa,aUa,bUa,cUa,XTa,dUa,eUa,HV,fUa,gUa,hUa,iUa,lUa,kUa,jUa,MV,mUa,oUa,pUa,qUa,rUa,QV,RV,jQa,sUa,tUa,uUa,xUa,wUa,vUa,yUa,AUa,BUa,zUa,JV,DUa,EUa,FUa,LUa,IUa,JUa,KUa,MUa,OUa,yRa,NV,HUa,GUa,NUa,HT,KU,iV,TUa,SUa,UUa,VUa,WUa,XUa,nUa,
lV,kV,QUa,YUa,RUa,ZUa,lSa,$Ua,WTa,VTa,PUa,qSa,UV,VV,bVa,WV,cVa,dVa,eVa,fVa,gVa,hVa,jVa,iVa,lVa,mVa,qVa,nVa,pVa,rVa,YV,vVa,tVa,uVa,yVa,zVa,AVa,BVa,CVa,XV,DVa,xVa,sVa,ZV,EVa,oVa,FVa,$V,HVa,IVa,JVa,GVa,aW,MVa,LVa,PVa,OVa,NVa,QVa,RVa,bW,SVa,TVa,VVa,WVa,UVa,XVa,cWa,$Va,aWa,bWa,dWa,eWa,fWa,hWa,gWa,iWa,jWa,kWa,mWa,oWa,nWa,pWa,lWa,qWa,sWa,tWa,vWa,xWa,uWa,fW,yWa,zWa,rWa,AWa,wWa,gW,BWa,CWa,DWa,EWa,FWa,GWa,HWa,JWa,LWa,MWa,NWa,hW,PWa,QWa,SWa,lW,UWa,VWa,WWa,XWa,ZWa,YWa,bXa,cXa,mW,oW,$Wa,aXa,dXa,qW,fXa,eXa,gXa,
hXa,iXa,lXa,jXa,oXa,rW,kXa,pXa,sW,tXa,uW,vW,uXa,tW,vXa,wW,yXa,xXa,rXa,sXa,zXa,AXa,BXa,qXa,CXa,xW,DXa,wXa,TWa,pW,FXa,zW,GXa,HXa,IXa,JXa,KXa,LXa,MXa,NXa,OXa,PXa,AW,QXa,RXa,TXa,UXa,VXa,SXa,WXa,XXa,BW,YXa,ZXa,$Xa,aYa,CW,Jxa,bYa,cYa,DW,dYa,eYa,FW,hYa,iYa,GW,kYa,lYa,jYa,gYa,HW,EW,fYa,KW,JW,mYa,LW,IW,qYa,tYa,vYa,wYa,yYa,oYa,uYa,zYa,pYa,AYa,BYa,QW,MW,EYa,CYa,OW,HYa,IYa,sYa,rYa,GYa,JYa,xYa,nYa,SW,TW,UW,KYa,VW,QYa,NYa,RYa,OYa,MYa,SYa,LYa,WYa,TYa,WW,XYa,ZYa,DH,aZa,cZa,dZa,eZa,$W,fZa,gZa,jZa,bX,cW,kZa,nZa,hZa,
RW,PW,oZa,pZa,hX,KTa,bZa,fX,XW,sZa,tZa,vZa,uZa,wZa,mZa,dX,xZa,jX,zZa,yZa,BZa,AZa,CZa,CUa,SV,kX,DZa,EZa,DYa,FZa,GZa,cX,HZa,JZa,IZa,KZa,LZa,NZa,OZa,rZa,$Ya,QZa,PZa,eX,YW,RZa,lX,mX,UZa,VZa,nX,YVa,XZa,YZa,ZZa,$Za,iX,PV,ZVa,iZa,a_a,aVa,NW,b_a,oX,c_a,f_a,pX,d_a,i_a,g_a,h_a,e_a,qX,m_a,k_a,l_a,n_a,rX,o_a,p_a,q_a,sX,r_a,t_a,u_a,v_a,tX,s_a,uX,vX,w_a,x_a,yX,wX,xX,y_a,zX,z_a,A_a,B_a,D_a,C_a,FX,F_a,G_a,E_a,H_a,GX,I_a,HX,J_a,L_a,K_a,M_a,N_a,O_a,P_a,JX,Q_a,MX,KX,R_a,NX,OX,T_a,QX,RX,U_a,PX,V_a,SX,X_a,W_a,UX,VX,WX,
$_a,Y_a,Z_a,XX,a0a,e0a,c0a,b0a,d0a,YX,g0a,h0a,i0a,$X,m0a,k0a,l0a,ZX,aY,o0a,j0a,p0a,bY,cY,q0a,r0a,WZa,dY,s0a,t0a,u0a,v0a,w0a,x0a,y0a,B0a,z0a,C0a,D0a,G0a,H0a,nY,N0a,J0a,K0a,O0a,P0a,M0a,I0a,Q0a,S0a,R0a,T0a,Z0a,qY,b1a,e1a,d1a,c1a,X0a,Y0a,U0a,V0a,$0a,rY,sY,g1a,tS,PMa,h1a,uY,i1a,k1a,j1a,a1a,m1a,n1a,o1a,wY,p1a,DY,r1a,s1a,t1a,v1a,u1a,w1a,EY,FY,x1a,A1a,B1a,HY,z1a,C1a,D1a,y1a,IY,LY,E1a,F1a,KY,G1a,H1a,I1a,J1a,L1a,K1a,O1a,P1a,M1a,R1a,S1a,N1a,OY,PY,T1a,V1a,QY,U1a,W1a,Y1a,X1a,Z1a,RY,$1a,a2a,b2a,SY,TY,d2a,c2a,e2a,
f2a,h2a,g2a,i2a,j2a,k2a,l2a,m2a,o2a,VY,UY,WY,p2a,q2a,n2a,v2a,w2a,x2a,A2a,z2a,y2a,B2a,C2a,XY,YY,D2a,E2a,F2a,G2a,I2a,J2a,$Y,K2a,ZY,bZ,H2a,L2a,M2a,N2a,O2a,P2a,dZ,Q2a,R2a,U2a,eZ,V2a,T2a,fZ,gZ,W2a,X2a,Z2a,a3a,Y2a,$2a,iZ,b3a,d3a,e3a,g3a,h3a,jZ,kZ,i3a,c3a,l3a,k3a,j3a,lZ,mZ,n3a,m3a,nZ,oZ,o3a,p3a,pZ,q3a,r3a,s3a,qZ,t3a,rZ,u3a,sZ,v3a,y3a,z3a,A3a,C3a,D3a,E3a,B3a,G3a,F3a,H3a,K3a,vZ,M3a,L3a,I3a,J3a,N3a,O3a,wZ,xZ,P3a,Q3a,R3a,S3a,T3a,U3a,W3a,X3a,e4a,$3a,a4a,Y3a,g4a,DZ,EZ,k4a,HZ,IZ,l4a,h4a,CZ,LZ,KZ,FZ,MZ,o4a,q4a,
p4a,NZ,GZ,BZ,n4a,JZ,i4a,m4a,s4a,yZ,OZ,t4a,u4a,j4a,PZ,QZ,v4a,RZ,SZ,TZ,w4a,x4a,z4a,A4a,y4a,UZ,B4a,VZ,WZ,XZ,C4a,D4a,E4a,F4a,G4a,I4a,K4a,J4a,H4a,YZ,L4a,N4a,M4a,ZZ,$Z,O4a,Q4a,R4a,a_,P4a,S4a,T4a,b_,U4a,V4a,W4a,X4a,d_,e_,Z4a,Y4a,$4a,f_,g_,a5a,b5a,d5a,c5a,e5a,f5a,g5a,i_,h5a,i5a,j5a,k5a,l5a,m5a,o5a,p5a,q5a,n5a,r5a,s5a,t5a,u5a,v5a,w5a,x5a,y5a,n_,z5a,A5a,B5a,E5a,I5a,G5a,D5a,q_,F5a,C5a,H5a,K5a,L5a,J5a,r_,M5a,N5a,O5a,dW,U5a,V5a,W5a,t_,X5a,v_,LV,Y5a,w_,Z5a,u_,$5a,a6a,g6a,A_,h6a,B_,j6a,l6a,k6a,b6a,C_,m6a,n6a,p6a,
D_,q6a,r6a,s6a,i6a,E_,u6a,t6a,F_,e6a,y_,v6a,w6a,x6a,y6a,z6a,c6a,d6a,z_,D6a,E6a,G6a,C6a,J6a,yT,zT,IV,L6a,M6a,K6a,N6a,F6a,TZa,A6a,O6a,I6a,P6a,H6a,YU,URa,FYa,G_,H_,nV,B6a,R6a,V6a,J_,W6a,X6a,T6a,L_,Y6a,Z6a,Q6a,$6a,U6a,a7a,M_,K_,b7a,d7a,c7a,I_,f7a,P_,g7a,N_,Q_,O_,R_,lZa,h7a,k7a,j7a,m7a,n7a,l7a,U_,T_,p7a,q7a,r7a,A7a,w7a,D7a,u7a,E7a,t7a,W_,s_,J7a,F7a,H7a,G7a,L7a,Z_,$_,O7a,N7a,M7a,b0,z7a,f0,Q7a,e0,a0,S7a,V7a,W7a,x7a,T7a,i0,X7a,y7a,P7a,c0,Y7a,Y_,Z7a,$7a,a8a,m0,n0,R7a,o0,p0,b8a,d0,K7a,c8a,d8a,e8a,U7a,f8a,g0,
g8a,h0,jS,h8a,j8a,X_,q0,I7a,k8a,l8a,l0,j0,m8a,i7a,k0,n8a,o8a,p8a,q8a,r0,s0,t8a,w8a,y8a,s8a,G8a,H8a,I8a,J8a,K8a,L8a,M8a,O8a,N8a,t0,u0,v0,P8a,Q8a,R8a,CI,S8a,w0,T8a,x0,y0,U8a,YF,z0,hI,V8a,PK,pBa,W8a,uK,X8a,rI,sI,oL,Y8a,Z8a,$8a,a9a,A0,c9a,d9a,B0,D0,E0,g9a,h9a,F0,i9a,e9a,f9a,j9a,k9a,l9a,m9a,n9a,G0,p9a,wwa,JI,q9a,r9a,MI,o9a,hF,s9a,t9a,u9a,H0,aI,w9a,x9a,I0,J0,y9a,K0,z9a,C0,A9a,B9a,Sxa,L0,M0,C9a,N0,O0,D9a,P0,E9a,Q0,R0,F9a,G9a,qya,S0,H9a,J9a,I9a,T0,K9a,U0,V0,L9a,M9a,N9a,O9a,P9a,Q9a,R9a,T9a,X0,S9a,U9a,V9a,
W9a,X9a,a$a,Y9a,Z9a,$9a,c$a,e$a,f$a,g$a,d$a,Y0,h$a,i$a,j$a,k$a,l$a,$0,m$a,a1,b1,c1,n$a,o$a,q$a,r$a,s$a,t$a,v$a,u$a,w$a,d1,e1,z$a,x$a,y$a,f1,B$a,C$a,g1,h1,D$a,i1,E$a,F$a,G$a,j1,k1,l1,H$a,I$a,J$a,M$a,L$a,m1,N$a,O$a,P$a,wza,K$a,R$a,S$a,U$a,aaa,ka;ba=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.da=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");};
ma=function(a,b){if(b)a:{var c=g.fa;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ka(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
na=function(a){return eaa(a,a)};
eaa=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};
g.w=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");};
faa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.x=function(a){return a instanceof Array?a:faa(g.w(a))};
pa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.z=function(a,b){a.prototype=gaa(b.prototype);a.prototype.constructor=a;if(qa)qa(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.Tf=b.prototype};
haa=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
sa=function(){this.N=!1;this.K=null;this.B=void 0;this.j=1;this.D=this.G=0;this.W=this.C=null};
ta=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
ua=function(a,b){a.C={FY:b,o_:!0};a.j=a.G||a.D};
g.G=function(a,b,c){a.j=c;return{value:b}};
iaa=function(a,b,c){b=g.w(b);var d=b.next();haa(d);if(d.done)a.B=d.value,a.j=c;else return a.K=b,g.G(a,d.value,c)};
g.va=function(a){a.j=0};
g.wa=function(a,b,c){a.G=b;c!=void 0&&(a.D=c)};
g.xa=function(a,b,c){a.j=b;a.G=c||0};
g.ya=function(a,b){a.G=b||0;b=a.C.FY;a.C=null;return b};
g.za=function(a,b,c){a.W=[a.C];a.G=b||0;a.D=c||0};
g.Aa=function(a,b){var c=a.W.splice(0)[0];(c=a.C=a.C||c)?c.o_?a.j=a.G||a.D:c.Ea!=void 0&&a.D<c.Ea?(a.j=c.Ea,a.C=null):a.j=a.D:a.j=b};
jaa=function(a){this.j=new sa;this.B=a};
kaa=function(a,b){ta(a.j);var c=a.j.K;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ca(a)};
Ba=function(a,b,c,d){try{var e=b.call(a.j.K,c);haa(e);if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.K=null,ua(a.j,h),Ca(a)}a.j.K=null;d.call(a.j,f);return Ca(a)};
Ca=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,ua(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.o_)throw b.FY;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
laa=function(a){this.next=function(b){ta(a.j);a.j.K?b=Ba(a,a.j.K.next,b,a.j.Z):(a.j.Z(b),b=Ca(a));return b};
this.throw=function(b){ta(a.j);a.j.K?b=Ba(a,a.j.K["throw"],b,a.j.Z):(ua(a.j,b),b=Ca(a));return b};
this.return=function(b){return kaa(a,b)};
this[Symbol.iterator]=function(){return this}};
maa=function(a,b){b=new laa(new jaa(b));qa&&a.prototype&&qa(b,a.prototype);return b};
naa=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.J=function(a){return naa(new laa(new jaa(a)))};
g.Ea=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
oaa=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,NN:f}}return{i:-1,NN:void 0}};
Fa=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+""};
Ga=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};
Ha=function(a){return a?a:Array.prototype.fill};
Ia=function(a){return a?a:Array.prototype.copyWithin};
Ka=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
La=function(a){return a?a:Ka};
paa=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,NN:e}}return{i:-1,NN:void 0}};
Ma=function(a){return a?a:function(b,c){return paa(this,b,c).i}};
g.Oa=function(a,b,c){a=a.split(".");c=c||g.Na;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};
Qa=function(a,b){var c=g.Pa("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b};
g.Pa=function(a,b){a=a.split(".");b=b||g.Na;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b};
Ra=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"};
g.Sa=function(a){var b=Ra(a);return b=="array"||b=="object"&&typeof a.length=="number"};
g.Ta=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"};
g.Wa=function(a){return Object.prototype.hasOwnProperty.call(a,Va)&&a[Va]||(a[Va]=++qaa)};
raa=function(a,b,c){return a.call.apply(a.bind,arguments)};
saa=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.Xa=function(a,b,c){g.Xa=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?raa:saa;return g.Xa.apply(null,arguments)};
g.Ya=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.Za=function(){return Date.now()};
taa=function(a){return a};
g.bb=function(a,b){function c(){}
c.prototype=b.prototype;a.Tf=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)}};
g.cb=function(a,b){if(b!==null&&b!==void 0){if(typeof b!=="object"&&typeof b!=="function")throw new TypeError("Object expected.");if(c===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var c=b[Symbol.dispose]}if(typeof c!=="function")throw new TypeError("Object not disposable.");a.stack.push({value:b,dispose:c,async:!1})}return b};
g.eb=function(a){function b(d){a.error=a.hasError?new SuppressedError(d,a.error,"An error was suppressed during disposal."):d;a.hasError=!0}
function c(){for(;a.stack.length;){var d=a.stack.pop();try{var e=d.dispose&&d.dispose.call(d.value);if(d.async)return Promise.resolve(e).then(c,function(f){b(f);return c()})}catch(f){b(f)}}if(a.hasError)throw a.error;
}
c()};
jb=function(a){var b=b===void 0?Number("31"):b;for(var c=[],d=0;d<fb(a,gb,1).length;d++){var e=fb(a,gb,1)[d];ib(e,2)<=b&&c.push(Number(ib(e,1)))}return c};
uaa=function(a){var b=b===void 0?Number("31"):b;for(var c=[],d=0;d<fb(a,gb,1).length;d++){var e=fb(a,gb,1)[d];ib(e,2)>b&&c.push(Number(ib(e,1)))}return c};
lb=function(a){return{fieldType:2,fieldName:a}};
g.nb=function(a){return{fieldType:3,fieldName:a}};
vaa=function(a){this.j=a;a.rk("/client_streamz/bg/fic",g.nb("ke"))};
waa=function(a){this.j=a;a.rk("/client_streamz/bg/fiec",g.nb("ke"),lb("ec"))};
xaa=function(a){this.j=a;a.dA("/client_streamz/bg/fil",g.nb("ke"))};
yaa=function(a){this.j=a;a.rk("/client_streamz/bg/fcc",lb("ph"),g.nb("ke"))};
zaa=function(a){this.j=a;a.dA("/client_streamz/bg/fcd",lb("ph"),g.nb("ke"))};
Aaa=function(a){this.j=a;a.rk("/client_streamz/bg/fsc",g.nb("ke"))};
Baa=function(a){this.j=a;a.dA("/client_streamz/bg/fsl",g.nb("ke"))};
Caa=function(a){this.j=a;a.dA("/client_streamz/bg/frs",g.nb("ke"))};
Daa=function(a){this.j=a;a.dA("/client_streamz/bg/wrl",g.nb("mn"),lb("ac"),lb("sc"),g.nb("rk"),g.nb("mk"))};
Eaa=function(a){this.j=a;a.dA("/client_streamz/bg/el",g.nb("en"),g.nb("rk"),g.nb("mk"))};
Faa=function(a){this.j=a;a.rk("/client_streamz/bg/cec",lb("ec"),g.nb("rk"),g.nb("mk"))};
Gaa=function(a){this.j=a;a.rk("/client_streamz/bg/po/csc",lb("cs"),g.nb("rk"),g.nb("mk"))};
Haa=function(a){this.j=a;a.rk("/client_streamz/bg/po/ctav",g.nb("av"),g.nb("rk"),g.nb("mk"))};
Iaa=function(a){this.j=a;a.rk("/client_streamz/bg/po/cwsc",g.nb("su"),g.nb("rk"),g.nb("mk"))};
ob=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,ob);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)};
Jaa=function(){};
qb=function(){throw Error("Invalid UTF8");};
Kaa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b};
Oaa=function(a){var b=!1;b=b===void 0?!1:b;if(Laa){if(b&&(Maa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Naa||(Naa=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};
sb=function(a){g.Na.setTimeout(function(){throw a;},0)};
Paa=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")};
Qaa=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.tb=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};
vb=function(a,b){return a.lastIndexOf(b,0)==0};
Raa=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};
g.wb=function(a){return/^[\s\xa0]*$/.test(a)};
g.xb=function(a,b){return a.indexOf(b)!=-1};
yb=function(a,b){return g.xb(a.toLowerCase(),b.toLowerCase())};
g.Bb=function(a,b){var c=0;a=zb(String(a)).split(".");b=zb(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=Ab(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||Ab(f[2].length==0,h[2].length==0)||Ab(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c};
Ab=function(a,b){return a<b?-1:a>b?1:0};
g.Cb=function(){var a=g.Na.navigator;return a&&(a=a.userAgent)?a:""};
Gb=function(a){return Db||Eb?Fb?Fb.brands.some(function(b){return(b=b.brand)&&g.xb(b,a)}):!1:!1};
Hb=function(a){return g.xb(g.Cb(),a)};
Ib=function(){return Db||Eb?!!Fb&&Fb.brands.length>0:!1};
Jb=function(){return Ib()?!1:Hb("Opera")};
Saa=function(){return Ib()?!1:Hb("Trident")||Hb("MSIE")};
Taa=function(){return Ib()?Gb("Microsoft Edge"):Hb("Edg/")};
Kb=function(){return Hb("Firefox")||Hb("FxiOS")};
Mb=function(){return Hb("Safari")&&!(Lb()||(Ib()?0:Hb("Coast"))||Jb()||(Ib()?0:Hb("Edge"))||Taa()||(Ib()?Gb("Opera"):Hb("OPR"))||Kb()||Hb("Silk")||Hb("Android"))};
Lb=function(){return Ib()?Gb("Chromium"):(Hb("Chrome")||Hb("CriOS"))&&!(Ib()?0:Hb("Edge"))||Hb("Silk")};
Uaa=function(){return Hb("Android")&&!(Lb()||Kb()||Jb()||Hb("Silk"))};
Vaa=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})]||""}};
Waa=function(a){var b=g.Cb();if(a==="Internet Explorer"){if(Saa())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=Vaa(c);switch(a){case "Opera":if(Jb())return b(["Version","Opera"]);if(Ib()?Gb("Opera"):Hb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Ib()?0:Hb("Edge"))return b(["Edge"]);if(Taa())return b(["Edg"]);break;case "Chromium":if(Lb())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Kb()||a==="Safari"&&Mb()||a==="Android Browser"&&Uaa()||a==="Silk"&&Hb("Silk")?(b=c[2])&&b[1]||"":""};
Xaa=function(a){if(Ib()&&a!=="Silk"){var b=Fb.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Waa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
Nb=function(){return Db||Eb?!!Fb&&!!Fb.platform:!1};
Yaa=function(){return Nb()?Fb.platform==="Android":Hb("Android")};
Ob=function(){return Hb("iPhone")&&!Hb("iPod")&&!Hb("iPad")};
Pb=function(){return Ob()||Hb("iPad")||Hb("iPod")};
Qb=function(){return Nb()?Fb.platform==="macOS":Hb("Macintosh")};
Zaa=function(){return Nb()?Fb.platform==="Windows":Hb("Windows")};
g.Rb=function(a){return a[a.length-1]};
$aa=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.Ub=function(a,b,c){b=Tb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]};
Tb=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.Vb=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.Wb=function(a,b){return aba(a,b)>=0};
bba=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0};
g.Yb=function(a,b){b=aba(a,b);var c;(c=b>=0)&&g.Xb(a,b);return c};
g.Xb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};
g.Zb=function(a,b){b=Tb(a,b);b>=0&&g.Xb(a,b)};
cba=function(a,b){var c=0;$aa(a,function(d,e){b.call(void 0,d,e,a)&&g.Xb(a,e)&&c++})};
g.$b=function(a){return Array.prototype.concat.apply([],arguments)};
g.ac=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.bc=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Sa(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.dc=function(a,b,c,d){Array.prototype.splice.apply(a,cc(arguments,1))};
cc=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
dba=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ta(e)?"o"+g.Wa(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.fc=function(a,b,c){return eba(a,c||ec,!1,b)};
gc=function(a,b){return eba(a,b,!0)};
eba=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.hc=function(a,b){a.sort(b||ec)};
fba=function(a,b){var c=ec;g.hc(a,function(d,e){return c(b(d),b(e))})};
g.ic=function(a,b){if(!g.Sa(a)||!g.Sa(b)||a.length!=b.length)return!1;for(var c=a.length,d=gba,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
ec=function(a,b){return a>b?1:a<b?-1:0};
gba=function(a,b){return a===b};
g.jc=function(a,b,c){c=g.fc(a,b,c);c<0&&g.dc(a,-(c+1),0,b)};
g.mc=function(a,b,c){var d={};(0,g.lc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
hba=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
iba=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
nc=function(a){nc[" "](a);return a};
jba=function(a,b){try{return nc(a[b]),!0}catch(c){}return!1};
lba=function(a,b){var c=kba;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
g.oc=function(a){return lba(a,function(){return g.Bb(mba,a)>=0})};
g.pc=function(a,b){b===void 0&&(b=0);nba();b=oba[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.qc=function(a,b){if(pba&&!b)a=g.Na.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.pc(c,b)}return a};
rba=function(a){var b=[];qba(a,function(c){b.push(c)});
return b};
rc=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.xb("=.",a[b-1])&&(c=g.xb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;qba(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
qba=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=uc[n];if(p!=null)return p;if(!g.wb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
nba();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))}};
nba=function(){if(!uc){uc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));oba[c]=d;for(var e=0;e<d.length;e++){var f=d[e];uc[f]===void 0&&(uc[f]=e)}}}};
tba=function(a){if(!sba)return g.pc(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)};
vba=function(a){return uba[a]||""};
xba=function(a){if(!sba)return rc(a);wba.test(a)&&(a=a.replace(wba,vba));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
vc=function(a){return yba&&a!=null&&a instanceof Uint8Array};
zba=function(a){if(a!==wc)throw Error("illegal external caller");};
xc=function(a,b){zba(b);this.j=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");};
yc=function(){return Aba||(Aba=new xc(null,wc))};
Ac=function(a){return new Uint8Array(zc(a)||0)};
zc=function(a){zba(wc);var b=a.j;b=b==null||vc(b)?b:typeof b==="string"?xba(b):null;return b==null?b:a.j=b};
Bba=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
Bc=function(){var a=Error();Bba(a,"incident");sb(a)};
Cc=function(a){a=Error(a);Bba(a,"warning");return a};
Dc=function(){return typeof BigInt==="function"};
Ec=function(a){return Array.prototype.slice.call(a)};
Fc=function(a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():a};
Cba=function(a,b){Gc(b,(a|0)&-14591)};
Hc=function(a,b){Gc(b,(a|34)&-14557)};
Ic=function(a){return!(!a||typeof a!=="object"||a.j!==Dba)};
Jc=function(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object};
Kc=function(a,b,c){if(a!=null)if(typeof a==="string")a=a?new xc(a,wc):yc();else if(a.constructor!==xc)if(vc(a))a=a.length?new xc(c?a:new Uint8Array(a),wc):yc();else{if(!b)throw Error();a=void 0}return a};
Mc=function(a){return!Array.isArray(a)||a.length?!1:Lc(a)&1?!0:!1};
Nc=function(a){if(a&2)throw Error();};
Oc=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();};
Eba=function(a,b){(b=Qc?b[Qc]:void 0)&&(a[Qc]=Ec(b))};
Rc=function(a){a.ipa=!0;return a};
Tc=function(a){var b=a;if(Fba(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Gba(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Sc?BigInt(a):a=Hba(a)?a?"1":"0":Fba(a)?a.trim()||"0":String(a)};
Iba=function(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};
Xc=function(a){var b=a>>>0;Vc=b;Wc=(a-b)/4294967296>>>0};
$c=function(a){if(a<0){Xc(0-a);var b=g.w(Yc(Vc,Wc));a=b.next().value;b=b.next().value;Vc=a>>>0;Wc=b>>>0}else Xc(a)};
Jba=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};
ad=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Dc()?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+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+Kba(c)+Kba(a));return c};
Kba=function(a){a=String(a);return"0000000".slice(a.length)+a};
Lba=function(){var a=Vc,b=Wc;b&2147483648?Dc()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.w(Yc(a,b)),a=b.next().value,b=b.next().value,a="-"+ad(a,b)):a=ad(a,b);return a};
bd=function(a){if(a.length<16)$c(Number(a));else if(Dc())a=BigInt(a),Vc=Number(a&BigInt(4294967295))>>>0,Wc=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");Wc=Vc=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)),Wc*=1E6,Vc=Vc*1E6+d,Vc>=4294967296&&(Wc+=Math.trunc(Vc/4294967296),Wc>>>=0,Vc>>>=0);b&&(b=g.w(Yc(Vc,Wc)),a=b.next().value,b=b.next().value,Vc=a,Wc=b)}};
Yc=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
cd=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);};
dd=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};
Mba=function(a){return a.displayName||a.name||"unknown type name"};
ed=function(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Ra(a)+": "+a);return a};
Nba=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
gd=function(a){var b=typeof a;switch(b){case "bigint":return!0;case "number":return Number.isFinite(a)}return b!=="string"?!1:Oba.test(a)};
Pba=function(a){if(typeof a!=="number")throw Cc("int32");if(!Number.isFinite(a))throw Cc("int32");return a|0};
hd=function(a){return a==null?a:Pba(a)};
id=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};
jd=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};
Sba=function(a){var b=0;b=b===void 0?0:b;if(!gd(a))throw Cc("int64");var c=typeof a;switch(b){case 4096:switch(c){case "string":return kd(a);case "bigint":return String(BigInt.asIntN(64,a));default:return Qba(a)}case 8192:switch(c){case "string":return b=Math.trunc(Number(a)),Number.isSafeInteger(b)?a=Tc(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Dc()?Tc(BigInt.asIntN(64,BigInt(a))):Tc(Rba(a))),a;case "bigint":return Tc(BigInt.asIntN(64,a));default:return Tc(ld(a))}case 0:switch(c){case "string":return kd(a);
case "bigint":return Tc(BigInt.asIntN(64,a));default:return ld(a)}default:return cd(b,"Unknown format requested type for int64")}};
md=function(a){return a==null?a:Sba(a)};
Tba=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467};
Uba=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};
Vba=function(a){if(a<0){$c(a);var b=ad(Vc,Wc);a=Number(b);return Number.isSafeInteger(a)?a:b}if(Tba(String(a)))return a;$c(a);return Wc*4294967296+(Vc>>>0)};
Rba=function(a){if(Uba(a))return a;bd(a);return Lba()};
ld=function(a){gd(a);a=Math.trunc(a);Number.isSafeInteger(a)||($c(a),a=Jba(Vc,Wc));return a};
Qba=function(a){gd(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Uba(b)?a=b:($c(a),a=Lba())}return a};
kd=function(a){gd(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return Rba(a)};
Wba=function(a){if(a==null)return a;if(typeof a==="bigint")return nd(a)?a=Number(a):(a=BigInt.asIntN(64,a),a=nd(a)?Number(a):String(a)),a;if(gd(a))return typeof a==="number"?ld(a):kd(a)};
Xba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(BigInt.asIntN(64,a));if(gd(a)){if(b==="string")return kd(a);if(b==="number")return ld(a)}};
Yba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(BigInt.asUintN(64,a));if(gd(a)){if(b==="string")return gd(a),b=Math.trunc(Number(a)),Number.isSafeInteger(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),Tba(a)||(bd(a),a=ad(Vc,Wc))),a;if(b==="number")return gd(a),a=Math.trunc(a),a>=0&&Number.isSafeInteger(a)?a:Vba(a)}};
Zba=function(a){if(a==null||typeof a=="string"||vc(a)||a instanceof xc)return a};
$ba=function(a){if(typeof a!=="string")throw Error();return a};
od=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
pd=function(a){return a==null||typeof a==="string"?a:void 0};
qd=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Mba(b)+" but got "+(a&&Mba(a.constructor)));return a};
aca=function(a,b,c){if(a!=null&&typeof a==="object"&&a.ML===sd)return a;if(Array.isArray(a)){var d=Lc(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&Gc(a,e);return new b(a)}};
gca=function(a){td===void 0&&(td=typeof Proxy==="function"?bca(Proxy):null);if(!td||!cca())return a;var b=ud(a);if(b)return b;if(Math.random()>.01)return a;dca(a);b=new td(a,{set:function(c,d,e){eca();c[d]=e;return!0}});
fca(a,b);return b};
eca=function(){Bc()};
ud=function(a){var b;return(b=vd)==null?void 0:b.get(a)};
hca=function(a){var b;return((b=wd)==null?void 0:b.get(a))||a};
fca=function(a,b){(vd||(vd=new xd)).set(a,b);(wd||(wd=new xd)).set(b,a)};
cca=function(){xd===void 0&&(xd=typeof WeakMap==="function"?bca(WeakMap):null);return xd};
bca=function(a){try{return a.toString().indexOf("[native code]")!==-1?a:null}catch(b){return null}};
dca=function(a){if(yd===void 0){var b=new td([],{});yd=Array.prototype.concat.call([],b).length===1}yd&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(a[Symbol.isConcatSpreadable]=!0)};
Bd=function(a,b,c){if(cca()){if(ica(a,b)){if(c)return}else if(Math.random()>.01)return;var d=a.length;c={length:d};for(var e=0;e<Math.min(d,10);e++){if(d<=10)var f=e;else{f=d/10;var h=Math.floor(e*f);f=h+Math.floor(Math.random()*(Math.floor((e+1)*f)-h))}c[f]=a[f]}jca(a,c)?(d=zd||(zd=new xd),e=d.get(b),e||(e=new xd,d.set(b,e)),e.set(a,c)):(Bc(),Ad(a,b))}};
Cd=function(a,b){var c=ica(a,b);c&&!jca(a,c)&&(kca(),Ad(a,b))};
jca=function(a,b){if(a.length!==b.length)return!1;for(var c in b){var d=Number(c),e;if(e=Number.isInteger(d))e=a[d],d=b[d],e=!(Number.isNaN(e)?Number.isNaN(d):e===d);if(e)return!1}return!0};
Dd=function(a){var b;if(a&&(b=zd)!=null&&b.has(a)&&(b=a.tb))for(var c=0;c<b.length;c++){var d=b[c];if(c===b.length-1&&Jc(d))for(var e in d){var f=d[e];Array.isArray(f)&&Cd(f,a)}else Array.isArray(d)&&Cd(d,a)}};
kca=function(){Bc()};
ica=function(a,b){var c,d;return(c=zd)==null?void 0:(d=c.get(b))==null?void 0:d.get(a)};
Ad=function(a,b){var c,d;(c=zd)==null||(d=c.get(b))==null||d.delete(a)};
lca=function(a,b){Ed=b;a=new a(b);Ed=void 0;return a};
oca=function(a){switch(typeof a){case "boolean":return mca||(mca=[0,void 0,!0]);case "number":return a>0?void 0:a===0?nca||(nca=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
Hd=function(a,b){a=Fd(a,b[0],b[1]);Gd(a,16384);return a};
Fd=function(a,b,c){a==null&&(a=Ed);Ed=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-33521665|(b&1023)<<15)}else{if(!Array.isArray(a))throw Error("narr");d=Lc(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(Jc(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-33521665|(b&1023)<<15;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-33521665|(b&1023)<<
15}}}Gc(a,d);return a};
qca=function(a,b){return pca(b)};
pca=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return nd(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Mc(a))return}else{if(vc(a))return tba(a);if(a instanceof xc){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=tba(b)}}}return a};
rca=function(a,b,c){var d=Ec(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])}Eba(d,a);return d};
sca=function(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=Mc(a)?void 0:e&&Lc(a)&2?a:Id(a,b,c,d!==void 0,e);else if(Jc(a)){var f={},h;for(h in a)f[h]=sca(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
Id=function(a,b,c,d,e){var f=d||c?Lc(a):0;d=d?!!(f&32):void 0;for(var h=Ec(a),l=0;l<h.length;l++)h[l]=sca(h[l],b,c,d,e);c&&(Eba(h,a),c(f,h));return h};
tca=function(a){return a.ML===sd?a.toJSON():pca(a)};
uca=function(a,b,c){c=c===void 0?Hc:c;if(a!=null){if(yba&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Lc(a);if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(Gc(a,(d|34)&-12293),a):Id(a,uca,d&4?Hc:c,!0,!0)}a.ML===sd&&(c=a.tb,d=Jd(c),a=d&2?a:Kd(a,c,d,!0));return a}};
Kd=function(a,b,c,d){Dd(a);return lca(a.constructor,vca(b,c,d))};
vca=function(a,b,c){var d=c||b&2?Hc:Cba,e=!!(b&32);a=rca(a,b,function(f){return uca(f,e,d)});
Gd(a,32|(c?2:0));return a};
Ld=function(a){var b=a.tb,c=Jd(b);return c&2?Kd(a,b,c,!1):a};
xca=function(a,b,c,d){if(!(4&b))return!0;if(c==null)return!1;!d&&c===0&&(4096&b||8192&b)&&(a.constructor[wca]=(a.constructor[wca]|0)+1)<5&&Bc();return c===0?!1:!(c&b)};
Nd=function(a,b){a=a.tb;return Md(a,Jd(a),b)};
yca=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]};
Md=function(a,b,c,d){if(c===-1)return null;var e=b>>15&1023||536870912;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(yca(a,b,e,c)&&Od!=null){var h;a=(h=zca)!=null?h:zca={};h=a[Od]||0;h>=4||(a[Od]=h+1,Bc())}return d}return yca(a,b,e,c)}};
Qd=function(a,b,c){var d=a.tb,e=Jd(d);Nc(e);Pd(d,e,b,c);return a};
Pd=function(a,b,c,d){var e=b>>15&1023||536870912;if(c>=e){var f=b;if(b&256)var h=a[a.length-1];else{if(d==null)return f;h=a[e+(+!!(b&512)-1)]={};f|=256}h[c]=d;c<e&&(a[c+(+!!(b&512)-1)]=void 0);f!==b&&Gc(a,f);return f}a[c+(+!!(b&512)-1)]=d;b&256&&(a=a[a.length-1],c in a&&delete a[c]);return b};
Rd=function(a,b,c){return Aca(a,b,c,!1)!==void 0};
Ud=function(a,b,c,d,e){var f=b&2;e=Md(a,b,c,e);Array.isArray(e)||(e=Sd);var h=!(d&2);d=!(d&1);var l=!!(b&32),m=Lc(e);m!==0||!l||f||h?m&1||(m|=1,Gc(e,m)):(m|=33,Gc(e,m));f?(a=!1,m&2||(Gd(e,34),a=!!(4&m)),(d||a)&&Object.freeze(e)):(f=!!(2&m)||!!(2048&m),d&&f?(e=Ec(e),f=1,l&&!h&&(f|=32),Gc(e,f),Pd(a,b,c,e)):h&&m&32&&!f&&Td(e,32));return e};
Yd=function(a,b,c,d,e,f){var h=a.tb,l=Jd(h);d=2&l?1:d;f=!!f;e=Bca(h,l,b,e);var m=Lc(e),n=e;Cd(n,a);d!==2&&d!==1||Ad(n,a);if(xca(a,m,void 0,f)){4&m&&(e=Ec(e),m=Vd(m,l),l=Pd(h,l,b,e));for(var p=n=0;n<e.length;n++){var q=c(e[n]);q!=null&&(e[p++]=q)}p<n&&(e.length=p);m=Cca(m,l);m=(m|20)&-4097;m&=-8193;Gc(e,m);2&m&&Object.freeze(e)}if(d===1||d===4&&32&m)Wd(m)||(a=m,m|=2,m!==a&&Gc(e,m),Object.freeze(e));else if(c=d!==5?!1:!!(32&m)||Wd(m)||!!ud(e),(d===2||c)&&Wd(m)&&(e=Ec(e),m=Vd(m,l),m=Xd(m,l,f),Gc(e,m),
l=Pd(h,l,b,e)),Wd(m)||(b=m,m=Xd(m,l,f),m!==b&&Gc(e,m)),c){var r=gca(e);Bd(e,a,!0)}else if(d===2&&!f){var t;(t=vd)==null||t.delete(e)}return r||e};
Bca=function(a,b,c,d){a=Md(a,b,c,d);return Array.isArray(a)?a:Sd};
Cca=function(a,b){a===0&&(a=Vd(a,b));return a|1};
Wd=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
Dca=function(a){return Kc(a,!0,!0)};
Eca=function(a){return Kc(a,!0,!1)};
Zd=function(a,b){a=a.tb;var c=Jd(a),d=Md(a,c,b),e=Kc(d,!0,!!(c&34));e!=null&&e!==d&&Pd(a,c,b,e);return e==null?yc():e};
Gca=function(a,b,c){var d=a.tb,e=Jd(d);Nc(e);if(b==null)return Pd(d,e,3),a;b=hca(b);if(!Array.isArray(b))throw Cc();var f=Lc(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&(void 0===Fca||!1);if(xca(a,f)){f=21;l&&(b=Ec(b),h=0,f=Vd(f,e),f=Xd(f,e,!0));for(var n=0;n<b.length;n++)b[n]=c(b[n])}m?(b=Ec(b),h=0,f=Vd(f,e),f=Xd(f,e,!0)):l||Bd(b,a);f!==h&&Gc(b,f);Pd(d,e,3,b);return a};
$d=function(a,b,c,d){var e=a.tb,f=Jd(e);Nc(f);Pd(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a};
de=function(a,b,c,d){var e=a.tb,f=Jd(e);Nc(f);if(d==null){var h=ae(e);if(be(h,e,f,c)===b)h.set(c,0);else return a}else f=ce(e,f,c,b);Pd(e,f,b,d);return a};
ee=function(a,b,c,d){var e=Jd(a);e=ce(a,e,c,b);Pd(a,e,b,d)};
fe=function(a,b){a=a.tb;return be(ae(a),a,Jd(a),b)};
ae=function(a){if(ge){var b;return(b=a[he])!=null?b:a[he]=new Map}if(he in a)return a[he];b=new Map;Object.defineProperty(a,he,{value:b});return b};
ce=function(a,b,c,d){c.includes(d);var e=ae(a),f=be(e,a,b,c);f!==d&&(f&&(b=Pd(a,b,f)),e.set(c,d));return b};
be=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];Md(b,c,h)!=null&&(e!==0&&(c=Pd(b,c,e)),e=h)}a.set(d,e);return e};
ie=function(a,b,c,d){var e=Jd(a);d=Md(a,e,c,d);var f;if(d!=null&&d.ML===sd)return b=Ld(d),b!==d&&Pd(a,e,c,b),b.tb;if(Array.isArray(d)){var h=Lc(d);h&2?f=vca(d,h,!1):f=d;f=Hd(f,b)}else f=Hd(void 0,b);f!==d&&Pd(a,e,c,f);return f};
Aca=function(a,b,c,d){a=a.tb;var e=Jd(a);d=Md(a,e,c,d);b=aca(d,b,e);b!==d&&b!=null&&Pd(a,e,c,b);return b};
je=function(a,b,c,d){b=Aca(a,b,c,d===void 0?!1:d);if(b==null)return b;a=a.tb;d=Jd(a);if(!(d&2)){var e=Ld(b);e!==b&&(b=e,Pd(a,d,c,b))}return b};
Hca=function(a,b,c,d,e,f,h){var l=a.tb,m=!!(2&b);e=m?1:e;f=!!f;h&&(h=!m);m=Bca(l,b,d);var n=Lc(m),p=m;Cd(p,a);e!==2&&e!==1||Ad(p,a);p=!!(4&n);if(!p){n=Cca(n,b);var q=m,r=b,t=!!(2&n);t&&(r|=2);for(var u=!t,y=!0,A=0,C=0;A<q.length;A++){var F=aca(q[A],c,r);if(F instanceof c){if(!t){var H=!!(Lc(F.tb)&2);u&&(u=!H);y&&(y=H)}q[C++]=F}}C<A&&(q.length=C);n|=4;n=y?n|16:n&-17;n=u?n|8:n&-9;Gc(q,n);t&&Object.freeze(q)}if(h&&!(8&n||!m.length&&(e===1||e===4&&32&n))){Wd(n)?(m=Ec(m),n=Vd(n,b),b=Pd(l,b,d,m)):Ad(m,
a);c=m;h=n;for(q=0;q<c.length;q++)n=c[q],r=Ld(n),n!==r&&(c[q]=r);h|=8;h=c.length?h&-17:h|16;Gc(c,h);n=h}if(e===1||e===4&&32&n)Wd(n)||(a=n,n|=!m.length||16&n&&(!p||32&n)?2:2048,n!==a&&Gc(m,n),Object.freeze(m));else if(p=e!==5?!1:!!(32&n)||Wd(n)||!!ud(m),(e===2||p)&&Wd(n)&&(m=Ec(m),n=Vd(n,b),n=Xd(n,b,f),Gc(m,n),b=Pd(l,b,d,m)),Wd(n)||(d=n,n=Xd(n,b,f),n!==d&&Gc(m,n)),p){var L=gca(m);Bd(m,a,!0)}else if(e===2&&!f){var N;(N=vd)==null||N.delete(m)}return L||m};
fb=function(a,b,c){var d=Jd(a.tb);return Hca(a,d,b,c,void 0===Ica?2:5,!1,!(2&d))};
ke=function(a,b,c,d){d!=null?qd(d,b):d=void 0;return Qd(a,c,d)};
me=function(a,b,c,d){var e=a.tb,f=Jd(e);Nc(f);if(d==null)return Pd(e,f,c),a;d=hca(d);if(!Array.isArray(d))throw Cc();for(var h=Lc(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&(void 0===Fca||!1),q=!0,r=!0,t=0;t<d.length;t++){var u=d[t];qd(u,b);m||(u=!!(Lc(u.tb)&2),q&&(q=!u),r&&(r=u))}m||(h|=5,h=q?h|8:h&-9,h=r?h|16:h&-17);p||n&&h!==l?(d=Ec(d),l=0,h=Vd(h,f),h=Xd(h,f,!0)):n||Bd(d,a);h!==l&&Gc(d,h);Pd(e,f,c,d);return a};
Vd=function(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049};
Xd=function(a,b,c){32&b&&c||(a&=-33);return a};
ne=function(a,b,c,d){var e=Jd(a.tb);Nc(e);a=Hca(a,e,c,b,2,!0);d=d!=null?qd(d,c):new c;a.push(d);Lc(d.tb)&2?Td(a,8):Td(a,16)};
Jca=function(a){a=Nd(a,1);var b=b===void 0?!1:b;var c=typeof a;b=a==null?a:c==="bigint"?String(BigInt.asIntN(64,a)):gd(a)?c==="string"?kd(a):b?Qba(a):ld(a):void 0;return b};
oe=function(a,b){return a!=null?a:b};
pe=function(a,b){return pd(Nd(a,b))};
qe=function(a){var b=b===void 0?!1:b;a=Nba(Nd(a,4));return oe(a,b)};
ib=function(a,b,c){c=c===void 0?0:c;return oe(id(Nd(a,b)),c)};
re=function(a,b){var c=c===void 0?0:c;return oe(jd(Nd(a,b)),c)};
se=function(a,b){var c=c===void 0?"":c;return oe(pe(a,b),c)};
te=function(a,b){var c=0;c=c===void 0?0:c;a=Nd(a,b);a=a==null?a:Number.isFinite(a)?a|0:void 0;return oe(a,c)};
ue=function(a,b,c){return Qd(a,b,md(c))};
ve=function(a,b,c){return Qd(a,b,od(c))};
we=function(a,b,c){return $d(a,b,od(c),"")};
xe=function(a,b,c){if(c!=null){if(!Number.isFinite(c))throw Cc("enum");c|=0}return Qd(a,b,c)};
Kca=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
ye=function(){return Error("Failed to read varint, encoding is invalid.")};
Lca=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
ze=function(a){if(typeof a==="string")return{buffer:xba(a),Zx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Zx:!1};if(a.constructor===Uint8Array)return{buffer:a,Zx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Zx:!1};if(a.constructor===xc)return{buffer:zc(a)||new Uint8Array(0),Zx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Zx:!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");
};
Mca=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
Be=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;Ae(a,f);if(h<128)return Jba(b>>>0,c>>>0);throw ye();};
Ae=function(a,b){a.j=b;if(b>a.C)throw Lca(a.C,b);};
Ce=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 ye();Ae(a,c);return e};
De=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];Ae(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
Fe=function(a){var b=De(a);return De(a)*4294967296+(b>>>0)};
Ge=function(a){var b=De(a),c=De(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*4.9E-324*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
He=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 Ae(a,c),!!(b&127)}throw ye();};
Nca=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 Lca(b,a.C-c);a.j=d;return c};
Pca=function(a,b){if(b==0)return yc();var c=Nca(a,b);a.uJ&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):Oca?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?yc():new xc(c,wc)};
Je=function(a,b){if(Ie.length){var c=Ie.pop();c.init(a,void 0,void 0,b);a=c}else a=new Mca(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;Qca(this,b)};
Qca=function(a,b){b=b===void 0?{}:b;a.SP=b.SP===void 0?!1:b.SP};
Rca=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=Ce(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw Kca(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
Ke=function(a){switch(a.B){case 0:a.B!=0?Ke(a):He(a.j);break;case 1:a=a.j;Ae(a,a.j+8);break;case 2:if(a.B!=2)Ke(a);else{var b=Ce(a.j)>>>0;a=a.j;Ae(a,a.j+b)}break;case 5:a=a.j;Ae(a,a.j+4);break;case 3:b=a.D;do{if(!Rca(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}Ke(a)}while(1);break;default:throw Kca(a.B,a.C);}};
Le=function(a,b,c){var d=a.j.C,e=Ce(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};
Oe=function(a){var b=Ce(a.j)>>>0;a=a.j;var c=Nca(a,b);a=a.B;if(Sca){var d=a,e;(e=Me)||(e=Me=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(Ne===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Ne=!0}catch(p){Ne=!1}}!Ne&&(Me=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?qb():(m=a[f++],l<194||(m&192)!==128?(f--,qb()):c.push((l&31)<<6|m&63)):
l<240?f>=b-1?qb():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,qb()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?qb():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,qb()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):qb(),c.length>=8192&&(h=Kaa(h,c),c.length=0);f=Kaa(h,c)}return f};
Tca=function(a){var b=Ce(a.j)>>>0;return Pca(a.j,b)};
Uca=function(a){return a};
Pe=function(a){return a};
Yca=function(a,b,c,d){return Vca(a,b,c,d,Wca,Xca)};
ada=function(a,b,c,d){return Vca(a,b,c,d,Zca,$ca)};
Vca=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+=bda(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,y=c.length-1;y>=0;y--){var A=c[y];if(!(A==null||d&&y===c.length-1&&A===d)){A=y-b;var C=e(A,t)+f(q,r,u);C<n&&(a=1+A,n=C);q++;t--;u+=bda(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 F in d)d=+F,isNaN(d)||
d>=1024||(q--,t++,u-=F.length,h=e(d,t)+f(q,r,u),h<n&&(a=1+d,n=h))}return a};
$ca=function(a,b,c){return c+a*3+(a>1?a-1:0)};
Zca=function(a,b){return(a>1?a-1:0)+(a-b)*4};
Xca=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};
Wca=function(a){return 40+4*a};
bda=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2};
Qe=function(a,b,c){this.tb=Fd(a,b,c)};
cda=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Gd(b,32);return lca(a,b)};
Ve=function(a){Dd(a);var b=Te?a.tb:Id(a.tb,tca,void 0,void 0,!1);var c=!Te,d=Jd(c?a.tb:b);if(a=b.length){var e=b[a-1],f=Jc(e);f?a--:e=void 0;var h=+!!(d&512)-1,l=a-h;d=!!Ue&&!(d&512);var m,n=(m=Ue)!=null?m:Pe;m=d?n(l,h,b,e):l;d=(l=d&&l!==m)?Array.prototype.slice.call(b,0,a):b;if(f||l){b:{var p=d;var q=e;var r;f=!1;if(l)for(n=Math.max(0,m+h);n<p.length;n++){var t=p[n],u=n-h;t==null||Mc(t)||Ic(t)&&t.size===0||(f=p[n]=void 0,((f=r)!=null?f:r={})[u]=t,f=!0)}if(q)for(var y in q)if(n=+y,isNaN(n))n=void 0,
((n=r)!=null?n:r={})[y]=q[y];else if(t=q[y],Array.isArray(t)&&(Mc(t)||Ic(t)&&t.size===0)&&(t=null),t==null&&(f=!0),l&&n<m){f=!0;t=n+h;for(u=p.length;u<=t;u++)p.push(void 0);p[t]=q[n]}else t!=null&&(n=void 0,((n=r)!=null?n:r={})[y]=t);f||(r=q);if(r)for(var A in r){q=r;break b}q=null}p=q==null?e!=null:q!==e}l&&(a=d.length);for(var C;a>0;a--){r=d[a-1];if(!(r==null||Mc(r)||Ic(r)&&r.size===0))break;C=!0}if(d!==b||p||C){if(!l&&!c)d=Array.prototype.slice.call(d,0,a);else if(C||p||q)d.length=a;q&&d.push(q)}b=
d}return b};
We=function(a,b){this.B=a>>>0;this.j=b>>>0};
eda=function(a){if(!a)return dda||(dda=new We(0,0));if(!/^\d+$/.test(a))return null;bd(a);return new We(Vc,Wc)};
Xe=function(a,b){this.B=a>>>0;this.j=b>>>0};
gda=function(a){if(!a)return fda||(fda=new Xe(0,0));if(!/^-?\d+$/.test(a))return null;bd(a);return new Xe(Vc,Wc)};
Ye=function(){this.j=[]};
Ze=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)};
$e=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
hda=function(a,b){if(b>=0)$e(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
af=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)};
ida=function(){this.C=[];this.B=0;this.j=new Ye};
bf=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)};
jda=function(a,b){cf(a,b,2);b=a.j.end();bf(a,b);b.push(a.B);return b};
kda=function(a,b){var c=b.pop();for(c=a.B+a.j.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.B++;b.push(c);a.B++};
cf=function(a,b,c){$e(a.j,b*8+c)};
lda=function(a,b,c){if(c!=null){switch(typeof c){case "string":eda(c)}cf(a,b,1);switch(typeof c){case "number":a=a.j;Xc(c);af(a,Vc);af(a,Wc);break;case "bigint":c=BigInt.asUintN(64,c);c=new We(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));a=a.j;b=c.j;af(a,c.B);af(a,b);break;default:c=eda(c),a=a.j,b=c.j,af(a,c.B),af(a,b)}}};
df=function(a,b,c){cf(a,b,2);$e(a.j,c.length);bf(a,a.j.end());bf(a,c)};
ef=function(){function a(){}
new a;return a};
gf=function(a,b,c){this.TN=a;this.UN=b;a=taa(ff);this.j=!!a&&c===a||!1};
hf=function(a,b){var c=c===void 0?ff:c;return new gf(a,b,c)};
nda=function(a,b,c,d,e){b=mda(b,d);b!=null&&(c=jda(a,c),e(b,a),kda(a,c))};
lf=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.LL=oca(d[0]);var f=d[1],h=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++h],typeof f==="function"&&(e.q_=!0,jf!=null||(jf=f),kf!=null||(kf=d[h+1]),f=d[h+=2]));for(var l={};f&&Array.isArray(f)&&f.length&&typeof f[0]==="number"&&f[0]>0;){for(var m=0;m<f.length;m++)l[f[m]]=f;f=d[++h]}for(m=1;f!==void 0;){typeof f==="number"&&(m+=f,f=d[++h]);var n=void 0;if(f instanceof gf)var p=f;else p=oda,h--;f=void 0;if((f=p)==null?0:f.j){f=d[++h];n=d;var q=
h;typeof f==="function"&&(f=f(),n[q]=f);n=f}f=d[++h];q=m+1;typeof f==="number"&&f<0&&(q-=f,f=d[++h]);for(;m<q;m++){var r=l[m];n?c(e,m,p,n,r):b(e,m,p,r)}}return d[a]=e};
qda=function(a){return Array.isArray(a)?a[0]instanceof gf?a:[pda,a]:[a,void 0]};
mda=function(a,b){return a instanceof Qe?(Dd(a),a.tb):Array.isArray(a)?Hd(a,b):void 0};
mf=function(a,b,c,d){var e=c.TN;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
of=function(a,b,c,d,e){var f=c.TN,h,l;a[b]=function(m,n,p){return f(m,n,p,l||(l=lf(nf,mf,of,d).LL),h||(h=pf(d)),e)}};
pf=function(a){var b=a[rda];if(b!=null)return b;var c=lf(nf,mf,of,a);b=c.q_?function(d,e){return jf(d,e,c)}:function(d,e){for(;Rca(e)&&e.B!=4;){var f=e.D,h=c[f],l=h==null,m=!1;
if(h==null){var n=c.extensions;if(n){var p=n[f];if(p){var q=void 0;m||(m=(q=n.RT)==null?void 0:q[f]);if(!sda||m)n=tda(p),n!=null&&(h=c[f]=n)}}}h!=null&&h(e,d,f)||(n=e,f=n.C,Ke(n),n.SP?n=void 0:(p=n.j.j-f,n.j.j=f,n=Pca(n.j,p)),f=d,n&&(Qc||(Qc=Symbol()),(p=f[Qc])?p.push(n):f[Qc]=[n]));l&&h!=null&&!m&&qf++<5&&Bc()}return!0};
return a[rda]=b};
tda=function(a){a=qda(a);var b=a[0].TN;if(a=a[1]){var c=pf(a),d=lf(nf,mf,of,a).LL;return function(e,f,h){return b(e,f,h,d,c)}}return b};
rf=function(a,b,c){a[b]=c.UN};
tf=function(a,b,c,d){var e,f,h=c.UN;a[b]=function(l,m,n){return h(l,m,n,f||(f=lf(sf,rf,tf,d).LL),e||(e=uda(d)))}};
uda=function(a){var b=a[vda];if(!b){var c=lf(sf,rf,tf,a);b=function(d,e){return wda(d,e,c)};
a[vda]=b}return b};
wda=function(a,b,c){for(var d=Jd(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=xda(c,n);if(p){var q=c.extensions,r=void 0,t=void 0,u=void 0;(r=q)==null||!r[n]||((t=q)==null?0:(u=t.RT)==null?0:u[n])||qf++<5&&Bc();p(b,m,n)}}}if(d&256){d=a[f-1];for(var y in d)if(e=+y,!Number.isNaN(e)&&(f=d[e],f!=null&&(h=xda(c,e))))l=c.extensions,p=n=m=void 0,(m=l)==null||!m[e]||((n=l)==null?0:(p=n.RT)==null?0:p[e])||qf++<5&&Bc(),h(b,f,e)}if(a=Qc?a[Qc]:void 0)for(bf(b,
b.j.end()),c=0;c<a.length;c++)bf(b,zc(a[c])||new Uint8Array(0))};
xda=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions){var d=c[b];if(d){d=qda(d);var e=d[0].UN;d=d[1];var f;c=c==null?void 0:(f=c.RT)==null?void 0:f[b];if(!sda||c){if(d){var h=uda(d),l=lf(sf,rf,tf,d).LL;c=a.q_?kf(l,h):function(m,n,p){return e(m,n,p,l,h)}}else c=e;
return a[b]=c}}}};
uf=function(a,b,c){if(Array.isArray(b)){var d=Lc(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&&(Gc(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
vf=function(a,b,c){return new gf(a,b,c)};
wf=function(a,b,c){return new gf(a,b,c)};
xf=function(a,b,c){Pd(a,Jd(a),b,c)};
yf=function(a,b,c){b=b==null||typeof b==="number"?b:b==="NaN"||b==="Infinity"||b==="-Infinity"?Number(b):void 0;b!=null&&(cf(a,c,1),a=a.j,c=yda||(yda=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Vc=c.getUint32(0,!0),Wc=c.getUint32(4,!0),af(a,Vc),af(a,Wc))};
zf=function(a,b,c){b=Xba(b);if(b!=null){switch(typeof b){case "string":gda(b)}if(b!=null)switch(cf(a,c,0),typeof b){case "number":a=a.j;$c(b);Ze(a,Vc,Wc);break;case "bigint":c=BigInt.asUintN(64,b);c=new Xe(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));Ze(a.j,c.B,c.j);break;default:c=gda(b),Ze(a.j,c.B,c.j)}}};
Af=function(a,b,c){b=id(b);b!=null&&b!=null&&(cf(a,c,0),hda(a.j,b))};
zda=function(a,b,c){b=Nba(b);b!=null&&(cf(a,c,0),a.j.j.push(b?1:0))};
Ada=function(a,b,c){b=pd(b);b!=null&&df(a,c,Oaa(b))};
Bda=function(a,b,c,d,e){b=mda(b,d);b!=null&&(c=jda(a,c),e(b,a),kda(a,c))};
Cda=function(a){return function(){Dd(this);var b=new ida;wda(this.tb,b,lf(sf,rf,tf,a));bf(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}};
Bf=function(a){return function(b){return cda(a,b)}};
Cf=function(a){this.tb=Fd(a)};
Df=function(a,b){return Gca(a,b,Pba)};
Ef=function(a){this.tb=Fd(a)};
Ff=function(a){this.tb=Fd(a)};
Gf=function(a){this.tb=Fd(a)};
Hf=function(a){this.tb=Fd(a)};
Dda=function(a){this.tb=Fd(a)};
g.Gda=function(a){var b=new Hf;b=ve(b,1,a.B);var c=Eda(a);b=Gca(b,c,$ba);c=[];for(var d=[],e=g.w(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.D,l=a.nQ(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new Ff;switch(h){case 3:q=Number(q);Number.isFinite(q)&&de(p,1,If,md(q));break;case 2:de(p,2,If,dd(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Gf;m=ke(n,Ff,2,m);n=[];p=Fda(a);for(q=0;q<p.length;q++){var r=p[q],
t=f[q],u=new Ef;switch(r){case 3:de(u,1,Jf,od(String(t)));break;case 2:r=Number(t);Number.isFinite(r)&&de(u,2,Jf,hd(r));break;case 1:de(u,3,Jf,ed(t==="true"))}n.push(u)}me(m,Ef,1,n);c.push(m)}}me(b,Gf,4,c);return b};
Hda=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};
Ida=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],y=e[2],A=e[3],C=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var F=A^u&(y^A);var H=1518500249}else F=u^y^A,H=1859775393;else t<60?(F=u&y|A&(u|y),H=2400959708):(F=u^y^A,H=3395469782);F=((q<<5|q>>>27)&4294967295)+F+C+H+r[t]&4294967295;C=A;A=y;y=(u<<30|u>>>2)&4294967295;u=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]=
e[2]+y&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,y=q.length;u<y;++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,B8: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}}};
Kda=function(a,b,c){var d=String(g.Na.location.href);return d&&a&&b?[b,Jda(Hda(d),a,c||null)].join(" "):null};
Jda=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],g.lc(d,function(l){e.push(l)}),Lda(e.join(" "));
var f=[],h=[];g.lc(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.lc(d,function(l){e.push(l)});
a=Lda(e.join(" "));a=[c,a];h.length==0||a.push(h.join(""));return a.join("_")};
Lda=function(a){var b=Ida();b.update(a);return b.B8().toLowerCase()};
Nda=function(){var a=null;if(!Mda)return a;try{var b=function(c){return c};
a=Mda.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};
Lf=function(){Kf===void 0&&(Kf=Nda());return Kf};
g.Mf=function(a){this.j=a};
Nf=function(a){var b=Lf();return new g.Mf(b?b.createScriptURL(a):a)};
g.Of=function(a){if(a instanceof g.Mf)return a.j;throw Error("");};
Pf=function(a){this.j=a};
g.Qf=function(a){return a instanceof Pf};
g.Rf=function(a){if(g.Qf(a))return a.j;throw Error("");};
Sf=function(a){this.ye=a};
Tf=function(a){return new Sf(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
g.Vf=function(a,b){b=b===void 0?Oda:b;a:if(b=b===void 0?Oda:b,!g.Qf(a)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Sf&&d.ye(a)){a=new Pf(a);break a}}a=void 0}return a||g.Uf};
Qda=function(a){if(Pda.test(a))return a};
Wf=function(a){return a instanceof Pf?g.Rf(a):Qda(a)};
g.Xf=function(a,b){b=Wf(b);b!==void 0&&(a.href=b)};
Yf=function(){this.j=Rda[0].toLowerCase()};
g.Zf=function(a){this.j=a};
$f=function(a){var b=Lf();return new g.Zf(b?b.createHTML(a):a)};
g.ag=function(a){if(a instanceof g.Zf)return a.j;throw Error("");};
Sda=function(a){return a};
Tda=function(a){var b="true".toString(),c=[new Yf];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof Yf)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)};
g.bg=function(a,b,c,d){b=Wf(b);return b!==void 0?a.open(b,c,d):null};
cg=function(a){a=a===void 0?document:a;var b,c;a=(c=(b="document"in a?a.document:a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""};
g.dg=function(a){this.j=a};
Uda=function(a){var b=Lf();return new g.dg(b?b.createScript(a):a)};
g.eg=function(a){if(a instanceof g.dg)return a.j;throw Error("");};
g.fg=function(a){var b=cg(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
g.gg=function(a,b){a.src=g.Of(b);g.fg(a)};
Vda=function(a){var b=g.Pa("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.Na.$googDebugFname||b}catch(h){e="Not available",c=!0}b=hg(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,ig[c])c=ig[c];else{c=String(c);if(!ig[c]){var f=/function\s+([^\(]+)/m.exec(c);ig[c]=f?f[1]:"[Anonymous]"}c=ig[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}};
hg=function(a,b){b||(b={});b[jg(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[jg(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=hg(d,b));a=a.errors;if(Array.isArray(a)){d=1;for(var e=0;e<a.length&&!(d>4);e++)b[jg(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=hg(a[e],b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c};
jg=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack};
kg=function(a,b,c){return a.parseFromString(g.ag(b),c)};
g.lg=function(a){return encodeURIComponent(String(a))};
mg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
ng=function(a){Wda.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(Xda,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(Yda,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(Zda,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace($da,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(aea,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(bea,"&#0;")));return a};
g.og=function(a){return a==null?"":String(a)};
pg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
qg=function(a){var b=Number(a);return b==0&&g.wb(a)?NaN:b};
cea=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
dea=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
eea=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
fea=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};
rg=function(a){this.j=a||{cookie:""}};
sg=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=zb(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}};
tg=function(a){return!!gea.FPA_SAMESITE_PHASE2_MOD||!(a===void 0||!a)};
hea=function(a){a=a===void 0?!1:a;var b=g.Na.__SAPISID||g.Na.__APISID||g.Na.__3PSAPISID||g.Na.__OVERRIDE_SID;tg(a)&&(b=b||g.Na.__1PSAPISID);if(b)return!0;if(typeof document!=="undefined"){var c=new rg(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");tg(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
iea=function(a,b,c,d){(a=g.Na[a])||typeof document==="undefined"||(a=(new rg(document)).get(b));return a?Kda(a,c,d):null};
jea=function(a,b){b=b===void 0?!1:b;var c=Hda(String(g.Na.location.href)),d=[];if(hea(b)){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var e=c?g.Na.__SAPISID:g.Na.__APISID;e||typeof document==="undefined"||(e=new rg(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Kda(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&tg(b)&&((b=iea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",
a))&&d.push(b),(a=iea("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return d.length==0?null:d.join(" ")};
g.vg=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
g.wg=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Sa(d)?g.wg.apply(null,d):g.vg(d)}};
g.O=function(){this.Yq=this.Yq;this.Co=this.Co};
g.P=function(a,b){a.addOnDisposeCallback(g.Ya(g.vg,b))};
xg=function(a){this.tb=Fd(a)};
yg=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.Za()};
this.B=this.j()};
zg=function(a){this.tb=Fd(a)};
Ag=function(a){this.tb=Fd(a)};
g.Bg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Cg=function(a,b){a%=b;return a*b<0?a+b:a};
Dg=function(a,b,c){return a+c*(b-a)};
g.Eg=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};
Fg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Gg=function(a,b){this.width=a;this.height=b};
g.Hg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Ig=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Jg=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Kg=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Lg=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
kea=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Mg=function(a){for(var b in a)return b};
lea=function(a){for(var b in a)return a[b]};
g.Ng=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Og=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Pg=function(a,b){return a!==null&&b in a};
g.Qg=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Rg=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
mea=function(a,b){return(b=Rg(a,b))&&a[b]};
g.Sg=function(a){for(var b in a)return!1;return!0};
g.nea=function(a){for(var b in a)delete a[b]};
g.Wg=function(a,b,c){return a!==null&&b in a?a[b]:c};
g.Xg=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.Yg=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Zg=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.Zg(a[c]);return b};
g.$g=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<oea.length;f++)c=oea[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
bh=function(a,b){this.j=a===ah&&b||""};
ch=function(a){if(a instanceof g.Zf)return a;a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return $f(a)};
pea=function(a){var b=ch("");return $f(a.map(function(c){return g.ag(ch(c))}).join(g.ag(b).toString()))};
uea=function(a){var b;if(!qea.test("div"))throw Error("");if(rea.indexOf("DIV")!==-1)throw Error("");var c="<div";a&&(c+=sea(a));Array.isArray(b)||(b=b===void 0?[]:[b]);tea.indexOf("DIV")!==-1?c+=">":(a=pea(b.map(function(d){return d instanceof g.Zf?d:ch(String(d))})),c+=">"+a.toString()+"</div>");
return $f(c)};
sea=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!qea.test(e))throw Error("");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("");vea.indexOf(e.toLowerCase())!==-1&&(f=g.Qf(f)?f.toString():Qda(String(f))||"about:invalid#zClosurez");f=e+'="'+ch(String(f))+'"';b+=" "+f}}return b};
wea=function(a){var b=g.Ea.apply(1,arguments);if(b.length===0)return Nf(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Nf(c)};
xea=function(a){for(var b=g.Ea.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 c};
fh=function(a){return a?new dh(eh(a)):yea||(yea=new dh)};
gh=function(a,b){return typeof b==="string"?a.getElementById(b):b};
g.hh=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.jh=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.ih(document,"*",a,b)};
g.kh=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.ih(c,"*",a,b)[0]||null}return a||null};
g.ih=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.Wb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
lh=function(a,b){g.Ig(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:zea.hasOwnProperty(d)?a.setAttribute(zea[d],c):vb(d,"aria-")||vb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Aea=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Gg(a.clientWidth,a.clientHeight)};
Cea=function(a){var b=Bea(a);a=a.defaultView;return new g.Eg(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Bea=function(a){return a.scrollingElement?a.scrollingElement:g.mh||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
nh=function(a){return a?a.defaultView:window};
ph=function(a,b,c){var d=arguments,e=document,f=d[1],h=oh(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):lh(h,f));d.length>2&&Dea(e,h,d,2);return h};
Dea=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.Sa(f)||g.Ta(f)&&f.nodeType>0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.Ta(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.lc(h?g.ac(f):f,e)}}};
g.qh=function(a){return oh(document,a)};
oh=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};
g.rh=function(a){return document.createTextNode(String(a))};
g.sh=function(a,b){a.appendChild(b)};
g.th=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
uh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.vh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.wh=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};
eh=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
g.zh=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.th(a),a.appendChild(eh(a).createTextNode(String(b)))};
Fea=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")||Eea(a)):a.hasAttribute("tabindex")&&Eea(a)};
Eea=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
Bh=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Ah(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Wb(e.className.split(/\s+/),c))},!0)};
Ah=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
dh=function(a){this.j=a||g.Na.document||document};
Gea=function(a){return g.mh?"webkit"+a:a.toLowerCase()};
g.Ch=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.Dh=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++};
Eh=function(a){this.tb=Fd(a)};
Fh=function(a){this.tb=Fd(a)};
Gh=function(a){this.tb=Fd(a)};
Hea=function(a,b){me(a,Fh,1,b)};
Hh=function(a){this.tb=Fd(a)};
Jea=function(a,b){b=b===void 0?Iea:b;if(!Ih){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 Fh;f=ve(f,1,e.brand);return ve(f,2,e.version)});
Hea(Qd(Jh,2,ed(a.mobile)),c);Ih=a.getHighEntropyValues(b)}var d=new Set(b);return Ih.then(function(e){var f=Jh.clone();d.has("platform")&&ve(f,3,e.platform);d.has("platformVersion")&&ve(f,4,e.platformVersion);d.has("architecture")&&ve(f,5,e.architecture);d.has("model")&&ve(f,6,e.model);d.has("uaFullVersion")&&ve(f,7,e.uaFullVersion);return f}).catch(function(){return Jh.clone()})};
Kh=function(a){this.tb=Fd(a)};
Kea=function(a){this.tb=Fd(a)};
Lh=function(a){this.tb=Fd(a,4)};
Mh=function(a){this.tb=Fd(a,35)};
Nh=function(a){this.tb=Fd(a,19)};
Lea=function(a){this.tb=Fd(a,8)};
Mea=function(a){this.tb=Fd(a)};
Qh=function(a){g.O.call(this);var b=this;this.componentId="";this.C=[];this.qa="";this.pageId=null;this.Aa=this.W=-1;this.experimentIds=null;this.Z=this.G=0;this.Ca=1;this.timeoutMillis=0;this.logSource=a.logSource;this.HF=a.HF||function(){};
this.B=new Oh(a.logSource,a.oy);this.network=a.network;this.sC=a.sC||null;this.K=a.Ufa||null;this.sessionIndex=a.sessionIndex||null;this.lF=a.lF||!1;this.logger=null;this.withCredentials=!a.tY;this.oy=a.oy||!1;this.N=typeof URLSearchParams!=="undefined"&&!!(new URL(Ph())).searchParams&&!!(new URL(Ph())).searchParams.set;var c=xe(new Kh,1,1);Nea(this.B,c);this.D=new g.Ch(1E4,3E5,.1);a=Oea(this,a.MX);this.j=new yg(this.D.getValue(),a);this.oa=new yg(6E5,a);this.lF||this.oa.start();this.oy||(document.addEventListener("visibilitychange",
function(){document.visibilityState==="hidden"&&b.dQ()}),document.addEventListener("pagehide",this.dQ.bind(this)))};
Oea=function(a,b){return a.N?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
Ph=function(){return"https://play.google.com/log?format=json&hasfast=true"};
Oh=function(a,b){this.oy=b=b===void 0?!1:b;this.uach=this.locale=null;this.j=new Nh;Number.isInteger(a)&&this.j.fI(a);b||(this.locale=document.documentElement.getAttribute("lang"));Nea(this,new Kh)};
Nea=function(a,b){ke(a.j,Kh,1,b);te(b,1)||xe(b,1,1);a.oy||(b=Rh(a),se(b,5)||ve(b,5,a.locale));a.uach&&(b=Rh(a),je(b,Gh,9)||ke(b,Gh,9,a.uach))};
Pea=function(a,b){Rd(Sh(a),Hh,11)&&(a=Vh(a),xe(a,1,b))};
Qea=function(a,b){Rd(Sh(a),Hh,11)&&(a=Vh(a),Qd(a,2,ed(b)))};
Sh=function(a){return je(a.j,Kh,1)};
Rea=function(a){var b=b===void 0?Iea:b;var c=a.oy?void 0:nh();c?Jea(c,b).then(function(d){a.uach=d;d=Rh(a);ke(d,Gh,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
Rh=function(a){a=Sh(a);var b=je(a,Hh,11);b||(b=new Hh,ke(a,Hh,11,b));return b};
Vh=function(a){a=Rh(a);var b=je(a,Eh,10);b||(b=new Eh,Qd(b,2,ed(!1)),ke(a,Eh,10,b));return b};
Wh=function(){this.C7=typeof AbortController!=="undefined"};
Xh=function(a,b){g.O.call(this);this.logSource=a;this.sessionIndex=b;this.C="https://play.google.com/log?format=json&hasfast=true";this.j=null;this.D=!1;this.network=null;this.componentId="";this.pageId=this.B=this.sC=null};
Yh=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.O.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new Xh(a,"0"),a.componentId=b,g.P(this,a),c!==""&&(a.C=c),d&&(a.D=!0),e&&(a.j=e),h&&(a.network=h),b=a.build());this.j=b};
Sea=function(a){this.j=a};
Zh=function(a,b,c){this.B=a;this.D=b;this.fields=c||[];this.j=new Map};
Fda=function(a){return a.fields.map(function(b){return b.fieldType})};
Eda=function(a){return a.fields.map(function(b){return b.fieldName})};
$h=function(a,b){Zh.call(this,a,3,b)};
ai=function(a,b){Zh.call(this,a,2,b)};
g.bi=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
ci=function(a,b){g.bi.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)};
di=function(a){return!(!a||!a[Tea])};
Vea=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=++Uea;this.removed=this.IJ=!1};
ei=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Id=null};
fi=function(a){this.src=a;this.listeners={};this.j=0};
g.gi=function(a,b){var c=b.type;c in a.listeners&&g.Yb(a.listeners[c],b)&&(ei(b),a.listeners[c].length==0&&(delete a.listeners[c],a.j--))};
hi=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.ji=function(a,b,c,d,e){if(d&&d.once)return ii(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.ji(a,b[f],c,d,e);return null}c=ki(c);return di(a)?a.listen(b,c,g.Ta(d)?!!d.capture:!!d,e):Wea(a,b,c,!1,d,e)};
Wea=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Ta(e)?!!e.capture:!!e,l=li(a);l||(a[mi]=l=new fi(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=Xea();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)Yea||(e=h),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Zea(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");$ea++;return c};
Xea=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=afa;return a};
ii=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ii(a,b[f],c,d,e);return null}c=ki(c);return di(a)?a.IG(b,c,g.Ta(d)?!!d.capture:!!d,e):Wea(a,b,c,!0,d,e)};
bfa=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)bfa(a,b[f],c,d,e);else d=g.Ta(d)?!!d.capture:!!d,c=ki(c),di(a)?a.Mc(b,c,d,e):a&&(a=li(a))&&(b=a.SF(b,c,d,e))&&ni(b)};
ni=function(a){if(typeof a!=="number"&&a&&!a.removed){var b=a.src;if(di(b))g.gi(b.Tm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Zea(c),d):b.addListener&&b.removeListener&&b.removeListener(d);$ea--;(c=li(b))?(g.gi(c,a),c.j==0&&(c.src=null,b[mi]=null)):ei(a)}}};
Zea=function(a){return a in oi?oi[a]:oi[a]="on"+a};
afa=function(a,b){if(a.removed)a=!0;else{b=new ci(b,this);var c=a.listener,d=a.Id||a.src;a.IJ&&ni(a);a=c.call(d,b)}return a};
li=function(a){a=a[mi];return a instanceof fi?a:null};
ki=function(a){if(typeof a==="function")return a;a[pi]||(a[pi]=function(b){return a.handleEvent(b)});
return a[pi]};
g.qi=function(){g.O.call(this);this.Tm=new fi(this);this.F7=this;this.nT=null};
ri=function(a,b,c,d){b=a.Tm.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.IJ&&g.gi(a.Tm,h);e=l.call(m,d)!==!1&&e}}return e&&!d.defaultPrevented};
si=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
cfa=function(a,b){a.D(b);a.B<100&&(a.B++,b.next=a.j,a.j=b)};
ui=function(a){ti||(ti=dfa());ti(a)};
dfa=function(){if(typeof MessageChannel!=="undefined"){var a=new MessageChannel,b={},c=b;a.port1.onmessage=function(){if(b.next!==void 0){b=b.next;var d=b.WX;b.WX=null;d()}};
return function(d){c.next={WX:d};c=c.next;a.port2.postMessage(0)}}return function(d){g.Na.setTimeout(d,0)}};
vi=function(){this.B=this.j=null};
wi=function(){this.next=this.scope=this.Cx=null};
g.zi=function(a,b){xi||efa();yi||(xi(),yi=!0);ffa.add(a,b)};
efa=function(){if(g.Na.Promise&&g.Na.Promise.resolve){var a=g.Na.Promise.resolve(void 0);xi=function(){a.then(gfa)}}else xi=function(){ui(gfa)}};
gfa=function(){for(var a;a=ffa.remove();){try{a.Cx.call(a.scope)}catch(b){sb(b)}cfa(hfa,a)}yi=!1};
Ai=function(a){return function(){return a}};
g.Bi=function(){};
ifa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Ci=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Di=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
jfa=function(a,b){var c=0;return function(d){g.Na.clearTimeout(c);var e=arguments;c=g.Na.setTimeout(function(){a.apply(b,e)},50)}};
g.Fi=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Bi)try{var b=this;a.call(void 0,function(c){Ei(b,2,c)},function(c){Ei(b,3,c)})}catch(c){Ei(this,3,c)}};
kfa=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
Gi=function(a,b,c){var d=lfa.get();d.C=a;d.B=b;d.context=c;return d};
Ji=function(a){if(a instanceof g.Fi)return a;var b=new g.Fi(g.Bi);Ei(b,2,a);return b};
Ki=function(a){return new g.Fi(function(b,c){c(a)})};
g.nfa=function(a,b,c){mfa(a,b,c,null)||g.zi(g.Ya(b,a))};
ofa=function(a){return new g.Fi(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.nfa(e,b,c)})};
qfa=function(){var a,b,c=new g.Fi(function(d,e){a=d;b=e});
return new pfa(c,a,b)};
Mi=function(a,b){b=Gi(b,b);b.D=!0;Li(a,b);return a};
rfa=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?rfa(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):sfa(c),tfa(c,e,3,b)))}a.C=null}else Ei(a,3,b)};
Li=function(a,b){a.B||a.j!=2&&a.j!=3||ufa(a);a.D?a.D.next=b:a.B=b;a.D=b};
vfa=function(a,b,c,d){var e=Gi(null,null,null);e.j=new g.Fi(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 Ni?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;Li(a,e);return e.j};
Ei=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,mfa(c,a.Jfa,a.Kfa,a)||(a.N=c,a.j=b,a.C=null,ufa(a),b!=3||c instanceof Ni||wfa(a,c)))};
mfa=function(a,b,c,d){if(a instanceof g.Fi)return Li(a,Gi(b||g.Bi,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.Ta(a))try{var f=a.then;if(typeof f==="function")return xfa(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
xfa=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)}};
ufa=function(a){a.K||(a.K=!0,g.zi(a.c9,a))};
sfa=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
tfa=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,yfa(b,c,d);else try{b.D?b.C.call(b.context):yfa(b,c,d)}catch(e){zfa.call(null,e)}cfa(lfa,b)};
yfa=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
wfa=function(a,b){a.G=!0;g.zi(function(){a.G&&zfa.call(null,b)})};
Ni=function(a){ob.call(this,a)};
pfa=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.Oi=function(a,b){g.qi.call(this);this.gj=a||1;this.BI=b||g.Na;this.RX=(0,g.Xa)(this.wfa,this);this.F_=g.Za()};
g.Pi=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.Xa)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.Xa)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.Na.setTimeout(a,b||0)};
Qi=function(a,b){var c=null;return(new g.Fi(function(d,e){c=g.Pi(function(){d(b)},a);
c==-1&&e(Error("Failed to schedule timer."))})).fl(function(d){g.Na.clearTimeout(c);
throw d;})};
g.Ri=function(a){g.O.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.Oi(this.flushInterval);this.j.listen("tick",this.PD,!1,this);g.P(this,this.j)};
Afa=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.PD()};
Bfa=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
Cfa=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Dfa=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}};
Efa=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""}};
Si=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.Ti=function(a){return(new Ffa).Fi(a)};
Ffa=function(){};
Ui=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),Ui(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),Gfa(d,c),c.push(":"),Ui(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Gfa(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);}}};
Gfa=function(a,b){b.push('"',a.replace(Hfa,function(c){var d=Ifa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Ifa[c]=d);return d}),'"')};
Jfa=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"}};
Vi=function(){};
Wi=function(){};
Xi=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};
Yi=function(a){return a?decodeURI(a):a};
g.$i=function(a,b){return b.match(Zi)[a]||null};
g.aj=function(a){return Yi(g.$i(3,a))};
g.Kfa=function(a){a=a.match(Zi);return Xi(a[1],a[2],a[3],a[4])};
bj=function(a){a=a.match(Zi);return Xi(null,null,null,null,a[5],a[6],a[7])};
Lfa=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)};
cj=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?mg(e):"")}}};
dj=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]};
ej=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)ej(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+g.lg(b)))};
Mfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)ej(a[b],a[b+1],c);return c.join("&")};
g.fj=function(a){var b=[],c;for(c in a)ej(c,a[c],b);return b.join("&")};
Nfa=function(a,b){var c=arguments.length==2?Mfa(arguments[1],0):Mfa(arguments,1);return dj(a,c)};
g.gj=function(a,b){b=g.fj(b);return dj(a,b)};
hj=function(a,b,c){c=c!=null?"="+g.lg(c):"";return dj(a,b+c)};
Ofa=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};
ij=function(a,b){var c=a.search(Pfa),d=Ofa(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 mg(a.slice(d,e!==-1?e:0))};
jj=function(a,b){for(var c=a.search(Pfa),d=0,e,f=[];(e=Ofa(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(Qfa,"$1")};
Rfa=function(a,b,c){return hj(jj(a,b),b,c)};
g.kj=function(a){g.qi.call(this);this.headers=new Map;this.Z=a||null;this.C=!1;this.Aa=this.j=null;this.N="";this.B=0;this.D="";this.G=this.Fa=this.W=this.Ca=!1;this.qa=0;this.oa=null;this.Ja="";this.K=!1};
Tfa=function(a,b,c,d,e,f,h){var l=new g.kj;Sfa.push(l);b&&l.listen("complete",b);l.IG("ready",l.b8);f&&(l.qa=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Vfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Ufa(a);lj(a)};
Ufa=function(a){a.Ca||(a.Ca=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Wfa=function(a){if(a.C&&typeof mj!="undefined")if(a.Aa[1]&&g.nj(a)==4&&a.getStatus()==2)a.getStatus();else if(a.W&&g.nj(a)==4)g.Pi(a.d1,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(oj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.nj(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Ufa(a)}}finally{lj(a)}}};
lj=function(a,b){if(a.j){Xfa(a);var c=a.j,d=a.Aa[0]?function(){}:null;
a.j=null;a.Aa=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Xfa=function(a){a.oa&&(g.Na.clearTimeout(a.oa),a.oa=null)};
oj=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.$i(1,String(a.N)),!a&&g.Na.self&&g.Na.self.location&&(a=g.Na.self.location.protocol.slice(0,-1)),b=!Yfa.test(a?a.toLowerCase():"");c=b}return c};
g.nj=function(a){return a.j?a.j.readyState:0};
g.pj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.qj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ja){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.Zfa=function(a){var b={};a=(a.j&&g.nj(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.wb(a[c])){var d=fea(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 Kg(b,function(h){return h.join(", ")})};
g.rj=function(a,b){return a.j?a.j.getResponseHeader(b):null};
sj=function(){};
uj=function(a,b,c){this.logger=a;this.event=b;if(c===void 0||c)this.startMillis=tj()};
vj=function(){g.O.apply(this,arguments);this.Sc={AK:function(){return[]}}};
wj=function(a,b,c){var d=tj();b=b();a.KG(c,tj()-d);return b};
xj=function(){vj.apply(this,arguments)};
zj=function(a,b,c){c=c===void 0?[]:c;vj.call(this);var d=this;this.clientExperimentsState=b;this.B=c;this.G=new Map;this.C=new Map;this.Um=[];this.K=void 0;this.Z=!1;this.Sc={AK:function(){return d.Um.concat(d.B).sort(function(l,m){return l-m})}};
b=Object.assign({},yj,a);this.uh=b.uh;this.It=b.It;this.N=b.iaa;this.Um=b.Um;var e=new Cf,f;if((f=this.clientExperimentsState)==null?0:qe(f)){var h;this.Um=(h=b.Um)==null?void 0:h.sort(function(l,m){return l-m});
this.B=c.sort(function(l,m){return l-m});
Df(e,this.Um.concat(this.B))}else Df(e,a.Um);$fa(this,e);this.G.set("h",1);this.G.set("u",2);this.G.set("k",3);this.C.set(25,1);this.C.set(26,2);this.C.set(27,3);this.C.set(28,4)};
$fa=function(a,b){var c=new Xh(1828,"0");c.j="31";c.network=new sj;c.B=b;a.j&&(a.Fw(),a.j.dispose());a.D&&a.D.dispose();a.D=new Yh(1828,"","",!1,"",c.build());a.j=new g.Ri(a.D);a.j.C=1E5;b=a.j;b.flushInterval=3E4;b.j.setInterval(3E4);a.Ja=new xaa(a.j);a.Ka=new Aaa(a.j);a.Oa=new Baa(a.j);a.Ua=new Caa(a.j);a.Fa=new waa(a.j);a.oa=new yaa(a.j);a.qa=new zaa(a.j);a.errorCount=new Faa(a.j);a.Aa=new Eaa(a.j);a.Ta=new Daa(a.j);a.Ya=new Gaa(a.j);a.W=new Haa(a.j);a.Va=new Iaa(a.j);a.Ca=new vaa(a.j);g.P(a,a.D);
g.P(a,a.j)};
tj=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()};
gb=function(a){this.tb=Fd(a)};
Aj=function(a){this.tb=Fd(a)};
Bj=function(a){this.tb=Fd(a)};
Cj=function(a){this.tb=Fd(a)};
Dj=function(a){this.tb=Fd(a,0,Dj.messageId)};
g.Ej=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Ij=function(a){function b(A,C,F,H){Promise.resolve().then(function(){q.done();d.logger.Fw();p.resolve({R7:A,Xea:C,zda:F,vna:H})})}
function c(A,C,F,H){if(!d.logger.Ia()){var L="k";C?L="h":F&&(L="u");L!=="k"?H!==0&&d.logger.KG(L,A):d.C<=0?(d.logger.KG(L,A),d.C=Math.floor(Math.random()*200)):d.C--}}
g.O.call(this);var d=this;this.C=Math.floor(Math.random()*200);this.B=[];if("challenge"in a&&aga(a.challenge)){var e=se(a.challenge,4);var f=se(a.challenge,5);se(a.challenge,7).length?this.j=cga(se(a.challenge,7)):this.j=je(a.challenge,Aj,6)}else e=a.program,f=a.globalName;var h=new g.O;this.addOnDisposeCallback(function(){var A,C,F;return g.J(function(H){if(H.j==1)return g.G(H,d.D,2);if(H.j!=3)return A=H.B,C=A.Xea,g.G(H,Promise.all(d.B),3);d.B=[];d.logger.Fw();(F=C)==null||F();h.dispose();g.va(H)})});
if(a.GT!==!1)if(a.sP){this.logger=a.sP;var l;((l=this.j)==null?0:qe(l))&&this.logger.Y3(jb(this.j))}else{l=[];var m;if((m=this.j)==null?0:qe(m))l=jb(this.j);var n;g.P(h,this.logger=new zj((n=a.QG)!=null?n:yj,this.j,l))}else g.P(h,this.logger=new xj);var p=new g.Ej;this.D=p.promise;var q=new uj(this.logger,"t",!0);this.logger.T_();if(!g.Na[f])throw this.logger.Yl(25),Error("EGOU");if(!g.Na[f].a)throw this.logger.Yl(26),Error("ELIU");try{var r=g.Na[f].a;f=[[],[]];var t;if((t=this.j)==null?0:qe(t)){var u=
jb(this.j);for(t=0;t<u.length;t++)f[0].push(u[t]),f[1].push(1);var y=uaa(this.j);for(u=0;u<y.length;u++)f[0].push(y[u]),f[1].push(2)}this.G=g.w(r(e,b,!0,a.j4,c,f)).next().value;this.TC=p.promise.then(function(){})}catch(A){throw this.logger.Yl(28),A;
}};
Jj=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)};
dga=function(a){if(!a)return null;a=pe(a,4);return a===null||a===void 0?null:Nf(a)};
Kj=function(){this.B={};this.j=null};
Lj=function(){Kj.instance||(Kj.instance=new Kj);return Kj.instance};
Mj=function(a,b){return ega(a,je(b,Bj,1),je(b,Cj,2),se(b,3))};
ega=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return fga(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){fga(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
h(l)})}));
return a.B[d]};
fga=function(a,b){return b?gga(b):a?hga(a):Promise.resolve()};
gga=function(a){return new Promise(function(b,c){var d=g.qh("SCRIPT"),e=dga(a);g.gg(d,e);d.onload=function(){g.vh(d);b()};
d.onerror=function(){g.vh(d);c(Error("EWLS"))};
(g.hh("HEAD")[0]||document.documentElement).appendChild(d)})};
hga=function(a){return new Promise(function(b){var c=g.qh("SCRIPT");if(a){var d=pe(a,6);d=d===null||d===void 0?null:Uda(d)}else d=null;c.textContent=g.eg(d);g.fg(c);(g.hh("HEAD")[0]||document.documentElement).appendChild(c);g.vh(c);b()})};
Nj=function(a){this.tb=Fd(a)};
Oj=function(a){this.tb=Fd(a)};
Pj=function(a){this.tb=Fd(a)};
Qj=function(a,b,c){this.client=a;this.yC=b;this.j=c};
jga=function(a,b){var c,d;return g.J(function(e){c=a.j();var f=new Oj;f=we(f,1,a.yC);d=we(f,2,b);f=e.return;var h=a.client;h=Rj(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},iga);return f.call(e,h)})};
Sj=function(a){a.then(function(){},function(){})};
Tj=function(a){g.O.call(this);var b=this;this.options=a;this.W=new g.Ej;this.TC=this.W.promise;this.K=new g.Ej;this.N=new g.Ej;this.Z=[];this.G=[];var c;this.B=a.GT!==!1?new zj((c=a.QG)!=null?c:yj,void 0,[]):new xj;kga(this,a.Ax,a.kG,a.aqa,a.rqa,Object.assign({},lga,a.Cqa||{}));this.addOnDisposeCallback(function(){return void mga(b)})};
mga=function(a){a.oa=Error("Cancelled by dispose");a.K.resolve();Sj(a.W.promise);a.W.reject(Error("Cancelled by dispose"));Promise.all(a.Z).then(function(){var b,c,d;return g.J(function(e){if(e.j==1)return(b=a.C)==null||b.dispose(),a.C=void 0,g.G(e,Promise.all(a.G),2);(c=a.B)==null||c.dispose();(d=a.D)==null||d.dispose();a.B=void 0;a.D=void 0;a.G=[];g.va(e)})});
a.Z=[];a.j&&nga(a.j);Sj(a.N.promise);a.N.reject(Error("Cancelled by dispose"))};
oga=function(a,b){a.Ia()||(a.C=b,a.B=void 0,a.K.resolve(),a.W.resolve(void 0))};
pga=function(a,b){b&&(Promise.all(a.Z).then(function(){var c;return g.J(function(d){if(d.j==1)return b.dispose(),g.G(d,Promise.all(a.G),2);(c=a.D)==null||c.dispose();a.G=[];a.D=void 0;g.va(d)})}),a.Z=[])};
Uj=function(a,b){var c,d;(d=(c=a.options).Lpa)==null||d.call(c,b)};
qga=function(a){a.Ia()||(a.N.resolve(),a.N=new g.Ej)};
kga=function(a,b,c,d,e,f){d=d===void 0?Lj():d;e=e===void 0?Promise.resolve(void 0):e;var h,l,m,n,p,q,r,t,u,y,A;g.J(function(C){switch(C.j){case 1:return g.G(C,0,3);case 3:l=null;if(!h){C.Ea(6);break}Uj(a,7);g.wa(C,7);return g.G(C,Vj(h.snapshot({}),f.j8,function(){return Promise.resolve("E:CTO")}),9);
case 9:l=C.B;g.xa(C,6);break;case 7:g.ya(C),l="E:UCE";case 6:m=void 0,n=h?f.Y8:f.Z8,p=new g.Ch(n,f.a9,f.b9,f.X8),q=0;case 10:if(!(q<f.maxAttempts)){C.Ea(12);break}if(q===0){C.Ea(13);break}Uj(a,0);a.j=new rga(p.getValue(),f.w3);return g.G(C,a.j.promise,14);case 14:a.j=void 0,g.Dh(p);case 13:g.wa(C,15);r=void 0;if(c){r=c;C.Ea(17);break}Uj(a,5);t=d.j;return g.G(C,Vj(b.zF(t,l),f.h9,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:r=C.B;case 17:return Uj(a,3),g.G(C,Vj(Mj(d,r),f.Z$,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return Uj(a,8),g.G(C,e,20);case 20:return u=new Ij({challenge:r,sP:a.B,QG:a.options.QG,j4:a.options.j4}),g.G(C,Vj(u.TC,f.Wea,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:m=u;C.Ea(12);break;case 15:y=g.ya(C),a.handleError(y),qga(a);case 11:q++;C.Ea(10);break;case 12:if(a.Ia()){C.Ea(5);break}m&&(c=void 0,pga(a,h),a.D||(a.D=a.B),h=m,oga(a,m),qga(a));Uj(a,2);a.j=new rga(f.bea,f.w3);return g.G(C,a.j.promise,22);case 22:a.j=void 0;if(a.Ia()){C.Ea(5);break}C.Ea(3);break;case 5:(A=h)==null||A.dispose(),g.va(C)}})};
Vj=function(a,b,c){var d,e=new Promise(function(f){d=setTimeout(f,b)});
return Promise.race([a.finally(function(){return void clearTimeout(d)}),
e.then(c)])};
rga=function(a,b){function c(){var e=d.endTimeMs-Date.now();e<=10?d.CC():setTimeout(c,Math.min(e,b))}
var d=this;this.endTimeMs=Date.now()+a;this.promise=new Promise(function(e){d.CC=e});
c()};
nga=function(a){a.endTimeMs=0;a.CC()};
sga=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
Wj=function(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=Wj(d));b<c;b++)d=typeof a==="string"?a.charCodeAt(b):a[b],e=tga(31,e)+d|0;return e};
uga=function(a,b){return[Wj(a,0,a.length>>1,b),Wj(a,a.length>>1)]};
vga=function(a){var b=g.w(uga(a,Xj));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
wga=function(a,b){var c=uga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.w(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])}};
xga=function(a,b,c,d,e){var f=(4-(Xj.length+c.length)%4)%4,h=new Uint8Array(4+f+Xj.length+4+c.length),l=new DataView(h.buffer),m=0;l.setUint32(m,Math.random()*4294967295);m=m+4+f;h.set(Xj,m);m+=Xj.length;l.setUint32(m,e);h.set(c,m+4);wga(h,d);return a.Nh(b,function(n){return void globalThis.sessionStorage.removeItem(n)})?sga(b,g.pc(h))?"s":"t":"i"};
yga=function(a,b){var c=globalThis.sessionStorage.getItem(a);if(!c)return["m"];try{var d=rc(c);wga(d,b)}catch(e){return globalThis.sessionStorage.removeItem(a),["c"]}for(b=4;b<7&&d[b]===0;)b++;for(c=0;c<Xj.length;c++)if(d[b++]!==Xj[c])return globalThis.sessionStorage.removeItem(a),["d"];c=(new DataView(d.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]};
Yj=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c};
zga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Yj(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Yj(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 Yj(a)):new Yj(a,c,b)};
Aga=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=zga(a))};
Bga=function(a,b,c,d,e){var f=a.index?wj(a.logger,function(){return xga(a.index,vga(b),c,d,e)},"W"):"u";
a.logger.U_(f)};
Cga=function(a,b,c){var d=g.w(a.index?wj(a.logger,function(){return yga(vga(b),c)},"R"):["u"]),e=d.next().value;
d=d.next().value;a.logger.S_(e);return d};
Fga=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=Dga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=Zj(a,l),d+=Zj(a,l+4),e+=Zj(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 Ega.toString(e)};
Dga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Zj=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
ak=function(a){g.O.call(this);var b=this;this.logger=a;this.C=new g.Ej;this[Gga]=this.dispose;this.addOnDisposeCallback(function(){Sj(b.C.promise);b.C.reject()})};
bk=function(a,b){var c=setTimeout(function(){a.C.resolve()},b);
a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
ck=function(a,b,c,d){return wj(a.logger,function(){return c?a.qv(b,d):a.ov(b,d)},a.B)};
dk=function(a,b,c,d,e){ak.call(this,a);this.D=b;this.K=c;this.B="m";this.j="x";this.G=0;bk(this,d);this.addOnDisposeCallback(function(){return void e.resolve()})};
ek=function(a,b,c){ak.call(this,a);this.D=b;this.B="f";this.j="z";bk(this,c)};
fk=function(a,b,c){ak.call(this,a);this.D=b;this.B="w";this.j="z";bk(this,c)};
gk=function(a,b){ak.call(this,a);this.error=b;this.B="e";this.j="y"};
Hga=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=hk(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d};
Iga=function(){var a=0,b;return function(c){b||(b=new xj);var d=new ik(b,a,1),e=ck(d,function(){return hk(c)},!0);
d.dispose();a++;return e}};
ik=function(a,b,c){ak.call(this,a);this.D=b;this.clientState=c;this.B="S";this.j="q"};
hk=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.tb(a)};
jk=function(a,b,c){g.O.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.B=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})};
Jga=function(a,b){b=b instanceof Jj?b:new Jj(5,"TVD:error",b);return a.reportError(b)};
Oga=function(a,b,c){try{if(a.Ia())throw new Jj(21,"BNT:disposed");var d,e;return(e=(d=Kga(a,b,c))!=null?d:Lga(a,b,c))!=null?e:Mga(a,b,c)}catch(f){if(!b.iS)throw Jga(a,f);return Nga(a,c,f)}};
Kga=function(a,b,c){var d;return(d=a.j)==null?void 0:ck(d,function(){return kk(a,b)},c,function(e){var f;
if(a.j instanceof dk&&((f=b.ai)==null?0:f.aD))try{var h;(h=a.cache)==null||Bga(h,kk(a,b),e,b.ai.kx,a.D)}catch(l){a.reportError(new Jj(24,"ELX:write",l))}})};
Lga=function(a,b,c){var d;if((d=b.ai)!=null&&d.hA)try{var e,f=(e=a.cache)==null?void 0:Cga(e,kk(a,b),b.ai.kx);return f?c?wj(a.logger,function(){return g.pc(f,2)},"a"):f:void 0}catch(h){a.reportError(new Jj(23,"RXO:read",h))}};
Mga=function(a,b,c){var d={stack:[],error:void 0,hasError:!1};try{if(!b.hS)throw new Jj(29,"SDF:notready");return ck(g.cb(d,new ik(a.logger,a.B,a.state)),function(){return kk(a,b)},c)}catch(e){d.error=e,d.hasError=!0}finally{g.eb(d)}};
Nga=function(a,b,c){var d={stack:[],error:void 0,hasError:!1};try{var e=Jga(a,c);return ck(g.cb(d,new gk(a.logger,e)),function(){return[]},b)}catch(f){d.error=f,d.hasError=!0}finally{g.eb(d)}};
kk=function(a,b){return b.uF?b.uF:b.Hj?wj(a.logger,function(){return b.uF=hk(b.Hj)},"c"):[]};
lk=function(a){this.tb=Fd(a)};
Pga=function(a,b,c){this.B=a;this.j=b;this.C=c};
mk=function(a,b){b=b===void 0?{}:b;this.rea=a;this.j=b};
nk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
Qga=function(a,b,c){c=c===void 0?{}:c;return new Pga(b,a,c)};
ok=function(a){this.tb=Fd(a)};
pk=function(a){this.tb=Fd(a)};
qk=function(a){this.tb=Fd(a)};
rk=function(a){this.tb=Fd(a)};
sk=function(a,b){this.N=a.Iaa;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&Rga(this)};
Uga=function(a,b){g.ji(a.j,"complete",function(){if(oj(a.j)){var c=g.pj(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){tk(a,new Si(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Dfa(a.j.getStatus());uk(a,vk(a));c==0?Sga(a,d):tk(a,new Si(c,"Xhr succeeded but the status code is not 200"))}else{c=g.pj(a.j);d=vk(a);if(c){var e=Tga(a,c);c=e.code;var f=e.details;
e=e.metadata}else c=2,f="Rpc failed due to xhr error. uri: "+String(a.j.N)+", error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;uk(a,d);tk(a,new Si(c,f,e))}})};
Rga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){tk(a,new Si(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Sga(a,d)}if("2"in b)for(b=Tga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.N.on("end",function(){uk(a,vk(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||oj(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=Dfa(c);break;default:d=14}uk(a,vk(a));b=Jfa(b)+", error: "+a.j.getLastError();c!=-1&&(b+=", http status code: "+c);tk(a,new Si(d,b))}})};
vk=function(a){var b={},c=g.Zfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Tga=function(a,b){var c=2,d={};try{var e=Vga(b);c=ib(e,1);var f=e.getMessage();fb(e,qk,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&a.j.getStatus()===404?(c=5,f="Not Found: "+String(a.j.N)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
wk=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
Sga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
uk=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
tk=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.xk=function(a){this.K=a.ega||null;this.G=a.n3||!1;this.B=void 0};
yk=function(a,b){g.qi.call(this);this.qa=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.oa="GET";this.W="";this.j=!1;this.N=this.C=this.D=null};
Wga=function(a){a.C.read().then(a.c$.bind(a)).catch(a.aL.bind(a))};
Ak=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;zk(a)};
zk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.Bk=function(a){this.j=this.Z=this.G="";this.C=null;this.K=this.B="";this.N=!1;var b;a instanceof g.Bk?(this.N=a.N,g.Ck(this,a.G),this.Z=a.Z,g.Dk(this,a.j),g.Ek(this,a.C),this.B=a.B,Fk(this,a.D.clone()),this.K=a.K):a&&(b=String(a).match(Zi))?(this.N=!1,g.Ck(this,b[1]||"",!0),this.Z=Gk(b[2]||""),g.Dk(this,b[3]||"",!0),g.Ek(this,b[4]),this.B=Gk(b[5]||"",!0),Fk(this,b[6]||"",!0),this.K=Gk(b[7]||"")):(this.N=!1,this.D=new Kk(null,this.N))};
g.Ck=function(a,b,c){a.G=c?Gk(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.Dk=function(a,b,c){a.j=c?Gk(b,!0):b};
g.Ek=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.C=b}else a.C=null};
Fk=function(a,b,c){b instanceof Kk?(a.D=b,Xga(a.D,a.N)):(c||(b=Lk(b,Yga)),a.D=new Kk(b,a.N))};
g.Mk=function(a,b,c){a.D.set(b,c)};
g.Nk=function(a){return a instanceof g.Bk?a.clone():new g.Bk(a)};
Gk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Lk=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Zga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Zga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Kk=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
Ok=function(a){a.j||(a.j=new Map,a.B=0,a.C&&cj(a.C,function(b,c){a.add(mg(b),c)}))};
$ga=function(a,b){Ok(a);b=Pk(a,b);return a.j.has(b)};
g.aha=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(Pk(a,b),g.ac(c)),a.B=a.B+c.length)};
Pk=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
Xga=function(a,b){b&&!a.D&&(Ok(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.aha(this,e,c))},a));
a.D=b};
g.bha=function(a){var b="";g.Ig(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Qk=function(a,b,c){if(g.Sg(c))return a;c=g.bha(c);if(typeof a==="string")return hj(a,g.lg(b),c);g.Mk(a,b,c);return a};
g.Rk=function(a){g.O.call(this);this.B=a;this.j={}};
cha=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)cha(a,b,c[h],d,e,f);else{b=ii(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
dha=function(){this.C=!0;this.B=0;this.j=""};
eha=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
Sk=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.W=0;this.G=null;this.Z=0};
Tk=function(a,b,c,d){a.j=3;a.K="The stream is broken @"+a.W+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.K);};
Uk=function(){this.j=null;this.B=0;this.C=new dha;this.D=new Sk};
fha=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Vk=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};
Wk=function(a){this.W=null;this.K=[];this.D="";this.qa=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Aa=/[\\"]/g;this.j=this.G=0;this.oa=!(!a||!a.y8)};
Xk=function(a,b,c){a.G=3;a.W="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.W);};
Yk=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
gha=function(a){var b=g.rj(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Yk:new Wk:b.startsWith("application/x-protobuf")?(a=g.rj(a,"Content-Transfer-Encoding"))?a.toLowerCase()=="base64"?new Uk:null:new Sk:null};
Zk=function(a){this.j=a;this.B=null;this.D=this.C=0;this.W=!1;this.G=this.N=this.K=null;this.Z=new g.Rk(this);this.Z.listen(this.j,"readystatechange",this.oa)};
$k=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
al=function(a){a.Z.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
hha=function(a){a=this.C=a;var b=(0,g.Xa)(this.mba,this);a.G=b;a=this.C;b=(0,g.Xa)(this.bda,this);a.N=b;this.B={};this.j={}};
iha=function(a,b){for(var c={},d=0;d<a.length;c={k0:void 0},d++)c.k0=a[d],b.forEach(function(e){return function(f){try{f(e.k0)}catch(h){}}}(c))};
bl=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]=[]};
jha=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.G=a.Aqa||g.Pa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Pa("withCredentials",a)||!1;this.D=a.zqa||[];this.K=a.Gqa||[];this.j=a.Kqa;this.C=a.Iqa||!1};
Rj=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return kha(function(h){return new lha(function(l,m){var n={},p=mha(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=n;r=r===void 0?{}:r;l(new mk(q,r))})})},a.K).call(a,Qga(e,c,d)).then(function(h){return h.rea})};
mha=function(a,b,c){var d=b.j,e=b.getMetadata(),f=nha(a,!0);a=oha(a,e,f,c+d.getName());c=pha(f,d.B,!1);Uga(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.j(b.B);f.send(a,"POST",b);return c};
nha=function(a,b){b=a.C&&!b;return a.j||b?new g.kj(new g.xk({ega:a.j,n3:b})):new g.kj};
oha=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&&qha.has(e.split(" ")[0])||a.B)c.K=!0;if(a.G)d=g.Qk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
pha=function(a,b,c){if(c){a.isActive();c=new Zk(a);var d=new hha(c)}return new sk({xhr:a,Iaa:d},b)};
kha=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)};
cl=function(){this.j=new jha;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
dl=function(a){g.O.call(this);this.owner=a;this.signals=new Set;a&&g.P(a,this)};
el=function(a,b){a.signals.has(b);return b};
fl=function(a){g.O.call(this);this.SX=a;this.slots=new Map;this.DC=new Set;this.JZ=!1};
rha=function(a,b){a.Ia()||a.slots.set(b,{slotId:b,slot:void 0,rY:function(){return a.slots.delete(b)}})};
hl=function(a,b){new Promise(function(c){gl(function(){a.SX&&(a.D_=b,a.JZ=!0);for(var d=g.w(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){sb(h)}}d=g.w(a.DC);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.DC.clear();c()})})};
gl=function(a){il.push(a);sha()};
sha=function(){var a,b;g.J(function(c){switch(c.j){case 1:if(jl)return c.return();g.wa(c,2,3);jl=!0;a=tha(0);case 5:if(!(a<il.length)){c.Ea(3);break}return g.G(c,Promise.resolve(),8);case 8:a=tha(a);c.Ea(5);break;case 3:g.za(c);il.length=0;jl=!1;g.Aa(c,0);break;case 2:b=g.ya(c),sb(b),c.Ea(3)}})};
tha=function(a){for(var b=a+100;a<b&&a<il.length;)try{il[a++]()}catch(c){sb(c)}return a};
uha=function(a,b){if(a.Ia())b();else{var c=kl.get(a);if(c)c.push(b);else{var d=[b];kl.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.w([].concat(g.x(d))),f=e.next();!f.done;f=e.next())f=f.value,f();kl.delete(a)})}}};
ll=function(a,b,c){g.O.call(this);this.N=a;this.milliseconds=b;this.wb=c;this.state=this.D=0};
vha=function(a){return new ll(!1,a,{cT:function(){},
G0:void 0})};
ml=function(a){ob.call(this,a);this.name="TimerCancelledError"};
nl=function(a){ob.call(this,a);this.name="TimerDisposedError"};
wha=function(a){var b=new cl,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Qj(b,a,function(){return c})};
xha=function(a){var b={Hj:a.Hj,uF:a.uF,hS:!0,iS:!0};a.ai&&(a=a.ai,b.ai={kx:a.kx,hA:a.hA,aD:a.aD});return b};
ol=function(a){var b,c,d;jk.call(this,a.eea?new xj:new zj({uh:(b=a.uh)!=null?b:"_",It:a.yC,Um:(c=a.Um)!=null?c:[]},void 0,[]),(d=a.onError)!=null?d:function(){},1);
this.C=new g.Ej;this.kG=void 0;this.Ax=a.Ax;this.KS=a.KS;var e;this.onEvent=(e=a.onEvent)!=null?e:function(){}};
zha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A;return g.J(function(C){switch(C.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Ch(c,6E5,.25,2),e={},f=1;case 2:if(!(f<=2)){C.Ea(4);break}g.wa(C,5);a.state=3;a.B=f-1;return g.G(C,a.kG&&f===1?a.kG:a.zF(f),7);case 7:return h=C.B,a.kG=void 0,a.state=4,l=new uj(a.logger,"b"),g.G(C,Mj(Lj(),h),8);case 8:return a.state=5,a.onEvent(1),e.ZO=3,e.AJ=new Ij({challenge:h,sP:a.logger}),m=pl(a,12E4).then(function(H){return function(){a.onEvent(H.ZO);return Promise.reject(new Jj(15,
"MDA:Timeout"))}}(e)),g.G(C,Promise.race([e.AJ.TC,
m]),9);case 9:return a.onEvent(2),n=[],a.onEvent(4),e.ZO=6,g.G(C,Promise.race([e.AJ.snapshot({r4:n}),m]),10);case 10:return p=C.B,a.onEvent(5),q=g.w(n),r=q.next().value,e.P2=r,l.done(),a.state=6,g.G(C,yha(a,a.logger.VR("g",f,jga(a.Ax,p)),new Jj(10,"BWB:Timeout")),11);case 11:return e.uR=C.B,a.state=7,t=wj(a.logger,function(H){return function(){var L=H.uR;var N=H.AJ;var X=H.P2;if(se(L,4))N.dispose(),N=new fk(a.logger,se(L,4),re(L,2)*1E3);else if(re(L,3)){if(!X)throw new Jj(4,"PMD:Undefined");var V=
X(Ac(Zd(L,1)));if(!(V instanceof Function))throw new Jj(16,"APF:Failed");X=re(L,2)*1E3;L=new dk(a.logger,V,re(L,3),X,new g.Ej);a.D=Math.floor((Date.now()+X)/1E3);g.P(L,N);N=L}else N.dispose(),N=new ek(a.logger,Ac(Zd(L,1)),re(L,2)*1E3);return N}}(e),"i"),y=u=void 0,(y=(u=a).KS)==null||y.call(u,Ac(Zd(e.uR,1))),a.state=8,C.return(t);
case 5:A=g.ya(C);b=A instanceof Jj?A:A instanceof nl?new Jj(20,"WTO:Disposed",A):A instanceof Si?new Jj(11,"EBH:Error",A):new Jj(12,"BSO:Unknown",A);a.reportError(b);a:{if(A instanceof Si)switch(A.code){case 2:case 13:case 14:case 4:var F=!0;break a;default:F=!1;break a}F=A instanceof Jj?A.code!==20:!0}if(!F)throw b;return g.G(C,pl(a,d.getValue()),12);case 12:g.Dh(d);case 3:e={ZO:void 0,uR:void 0,AJ:void 0,P2:void 0};f++;C.Ea(2);break;case 4:throw b;}})};
pl=function(a,b){b=vha(b);g.P(a,b);b.start();return b.Z};
yha=function(a,b,c){return Promise.race([b,pl(a,12E4).then(function(){return Promise.reject(c)})])};
Aha=function(a){var b,c,d;g.J(function(e){switch(e.j){case 1:return b=void 0,g.wa(e,5),g.G(e,zha(a),7);case 7:b=e.B;g.xa(e,6);break;case 5:c=g.ya(e);if(a.j){a.logger.Yl(13);e.Ea(0);break}a.logger.Yl(14);b=new gk(a.logger,c instanceof Jj?c:new Jj(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.C.resolve(),g.wa(e,8),g.G(e,a.j.C.promise,10);case 10:g.xa(e,1);break;case 8:g.ya(e),e.Ea(0)}})};
Bha=function(a,b){b.ai&&!a.cache&&a.GP(Math.min(b.ai.oaa,150))};
Cha=function(a){var b={};g.lc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?e!==null&&(c.j(e)||(b[d]=null)):b[d]=c});
cba(a,function(c){return b[c.event]===null})};
ql=function(){this.ue=0;this.j=!1;this.B=-1;this.ey=!1;this.Zk=0};
rl=function(){this.B=null;this.j=!1};
sl=function(a){rl.call(this);this.D=a};
tl=function(){rl.call(this)};
ul=function(){rl.call(this)};
vl=function(){this.j={};this.B=!0;this.C={}};
wl=function(a,b,c){a.j[b]||(a.j[b]=new sl(c));return a.j[b]};
Dha=function(a){a.j.queryid||(a.j.queryid=new ul)};
xl=function(a,b,c){(a=a.j[b])&&a.C(c)};
yl=function(a,b){if(g.Pg(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
zl=function(a){var b={},c=g.Jg(a.j,function(d){return d.j});
g.Ig(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};
Eha=function(a){a=zl(a);var b=[];g.Ig(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))});
return b};
Gha=function(a){wl(a,"od",Fha);wl(a,"opac",Al).j=!0;wl(a,"sbeos",Al).j=!0;wl(a,"prf",Al).j=!0;wl(a,"mwt",Al).j=!0;wl(a,"iogeo",Al)};
Hha=function(){this.j=this.Zu=null};
Bl=function(){};
Dl=function(){if(!Cl())throw Error();};
Cl=function(){return!(!El||!El.performance)};
Fl=function(a){return a?a.passive&&Iha()?a:a.capture||!1:!1};
Gl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Fl(d)),!0):!1};
Hl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Jha=function(){};
Kha=function(){return(Db||Eb)&&Fb?Fb.mobile:!Il()&&(Hb("iPod")||Hb("iPhone")||Hb("Android")||Hb("IEMobile"))};
Il=function(){return(Db||Eb)&&Fb?!Fb.mobile&&(Hb("iPad")||Hb("Android")||Hb("Silk")):Hb("iPad")||Hb("Android")&&!Hb("Mobile")||Hb("Silk")};
Jl=function(a){try{return!!a&&a.location.href!=null&&jba(a,"foo")}catch(b){return!1}};
Kl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Mha=function(){var a=[];Kl(Lha,function(b){a.push(b)});
return a};
Nha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""};
Qha=function(){var a=Oha("IFRAME"),b={};g.lc(Pha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Oha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())};
Rha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Jl(a)&&(b=a);return b};
Vha=function(a){a=a||Ll();for(var b=new Sha(g.Na.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&Tha.test(f.url)&&(c=f);if(f.url&&!f.BR){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new Uha(b,e,c)};
Ll=function(){var a=g.Na,b=[],c=null;do{var d=a;if(Jl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Sha(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.Na;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.BR=!0);return b};
Uha=function(a,b,c){this.j=a;this.B=b;this.C=c};
Sha=function(a,b){this.url=a;this.BR=!!b;this.depth=null};
Ml=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Nl=function(a,b){var c={};c[a]=b;return[c]};
Wha=function(a,b,c,d,e){var f=[];Kl(a,function(h,l){(h=Ol(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Ol=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(Ol(a[h],b,c,d+1,e));return f.join(c[d])}}else if(typeof a==="object")return e||(e=0),e<2?encodeURIComponent(Wha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Xha=function(a){var b=1,c;for(c in a.B)c.length>b&&(b=c.length);return 3997-b-a.C.length-1};
Pl=function(a,b){this.j=a;this.depth=b};
Zha=function(){function a(l,m){return l==null?m:l}
var b=Ll(),c=Math.max(b.length-1,0),d=Vha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Pl([f.url,f.BR?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Pl([e.url,2],0));b.url&&b!=f&&h.push(new Pl([b.url,0],a(b.depth,c)));d=g.Ql(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Nha(b.url))&&d.push([new Pl([e,1],a(b.depth,c))]);d.push([]);return g.Ql(d,function(l){return Yha(c,l)})};
Yha=function(a,b){g.Rl(b,function(e){return e.depth>=0});
var c=Sl(b,function(e,f){return Math.max(e,f.depth)},-1),d=hba(c+2);
d[0]=a;g.lc(b,function(e){return d[e.depth+1]=e.j});
return d};
$ha=function(){var a=a===void 0?Zha():a;return a.map(function(b){return Ol(b)})};
aia=function(a){var b=!1;b=b===void 0?!1:b;El.google_image_requests||(El.google_image_requests=[]);var c=Oha("IMG",El.document);b&&(c.attributionSrc="");c.src=a;El.google_image_requests.push(c)};
Tl=function(a){var b="ph";if(a.ph&&a.hasOwnProperty(b))return a.ph;var c=new a;a.ph=c;a.hasOwnProperty(b);return c};
Ul=function(){this.B=new Jha;this.j=Cl()?new Dl:new Bl};
bia=function(){Vl();var a=El.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof El.setInterval==="function"&&typeof El.clearInterval==="function"&&typeof El.setTimeout==="function"&&typeof El.clearTimeout==="function")};
cia=function(){Vl();return $ha()};
dia=function(){};
Vl=function(){var a=Tl(dia);if(!a.j){if(!El)throw Error("Context has not been set and window is undefined.");a.j=Tl(Ul)}return a.j};
Wl=function(a){this.tb=Fd(a)};
eia=function(a){this.C=a;this.j=-1;this.B=this.D=0};
Xl=function(a,b){return function(){var c=g.Ea.apply(0,arguments);if(a.j>-1)return b.apply(null,g.x(c));try{return a.j=a.C.j.now(),b.apply(null,g.x(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
fia=function(a,b){this.B=a;this.C=b;this.j=new eia(a)};
gia=function(){this.j={}};
iia=function(){var a=Yl().flags,b=hia;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};
mia=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Jc=new vl;wl(this.Jc,"mv",jia).j=!0;wl(this.Jc,"omid",Al);wl(this.Jc,"epoh",Al).j=!0;wl(this.Jc,"epph",Al).j=!0;wl(this.Jc,"umt",Al).j=!0;wl(this.Jc,"phel",Al).j=!0;wl(this.Jc,"phell",Al).j=!0;wl(this.Jc,"oseid",kia).j=!0;var a=this.Jc;a.j.sloi||(a.j.sloi=new tl);a.j.sloi.j=!0;wl(this.Jc,"mm",Zl);wl(this.Jc,"ovms",lia).j=!0;wl(this.Jc,"xdi",Al).j=!0;wl(this.Jc,"amp",Al).j=!0;wl(this.Jc,"prf",Al).j=!0;wl(this.Jc,"gtx",Al).j=!0;wl(this.Jc,
"mvp_lv",Al).j=!0;wl(this.Jc,"ssmol",Al).j=!0;wl(this.Jc,"fmd",Al).j=!0;wl(this.Jc,"gen204simple",Al);this.j=new fia(Vl(),this.Jc);this.D=!1;this.flags=new gia};
Yl=function(){return Tl(mia)};
nia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Ml)var e=c;else e=new Ml,Kl(c,function(h,l){var m=e,n=m.D++;h=Nl(l,h);m.j.push(n);m.B[n]=h});
var f=e.xe(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Vl(),aia(f))}catch(h){}};
oia=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};
pia=function(){var a=a===void 0?g.Na:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Za()};
qia=function(){var a=a===void 0?g.Na:a;return(a=a.performance)&&a.now?a.now():null};
ria=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()};
am=function(){var a=window;this.events=[];this.B=a||g.Na;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=$l()||(b!=null?b:Math.random()<1)};
sia=function(a){a&&bm&&$l()&&(bm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),bm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
tia=function(){var a=cm;this.j=dm;this.DY="jserror";this.CU=!0;this.QO=null;this.B=this.YR;this.wd=a===void 0?null:a};
uia=function(a,b,c){var d=em;return Xl(Yl().j.j,function(){try{if(d.wd&&d.wd.j){var e=d.wd.start(a.toString(),3);var f=b();d.wd.end(e)}else f=b()}catch(l){var h=d.CU;try{sia(e),h=d.B(a,new fm(gm(l)),void 0,c)}catch(m){d.YR(217,m)}if(!h)throw l;}return f})()};
hm=function(a,b,c,d){return Xl(Yl().j.j,function(){var e=g.Ea.apply(0,arguments);return uia(a,function(){return b.apply(c,e)},d)})};
gm=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};
fm=function(a){oia.call(this,Error(a),{message:a})};
via=function(){El&&typeof El.google_measure_js_timing!="undefined"&&(El.google_measure_js_timing||cm.disable())};
wia=function(a){em.QO=function(b){g.lc(a,function(c){c(b)})}};
xia=function(a,b){return uia(a,b)};
im=function(a,b){return hm(a,b)};
jm=function(a,b,c,d){em.YR(a,b,c,d)};
rm=function(){return Date.now()-yia};
zia=function(){var a=Yl().C,b=sm>=0?rm()-sm:-1,c=tm?rm()-um:-1,d=vm>=0?rm()-vm:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];jm(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};
wm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
xm=function(a){return a.right-a.left};
ym=function(a,b){return a==b?!0:a&&b?a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left:!1};
zm=function(a,b,c){b instanceof g.Eg?(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};
Aia=function(a,b,c){var d=new wm(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
Am=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};
Cia=function(a){var b=a!==a.top,c=a.top===Rha(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),kea(Bia,function(h){return typeof f[h]==="function"})||(e=1));
return{Yo:f,compatibility:e,afa:d}};
Dia=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"};
Eia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Gg(b.innerWidth,b.innerHeight)).round():Aea(b||window).round()}catch(d){return new g.Gg(-12245933,-12245933)}};
Bm=function(a,b,c){try{a&&(b=b.top);var d=Eia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new wm(f,f,f,f);var h=Cea(fh(b.document).j),l=h.x,m=h.y;return new wm(m,l+f,m+e,l)}catch(n){return new wm(-12245933,-12245933,-12245933,-12245933)}};
g.Cm=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Dm=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.Fm=function(a,b,c){if(typeof b==="string")(b=Em(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Em(c,d);f&&(c.style[f]=e)}};
Em=function(a,b){var c=Fia[b];if(!c){var d=cea(b);c=d;a.style[d]===void 0&&(d=(g.mh?"Webkit":Gm?"Moz":g.Hm?"ms":null)+eea(d),a.style[d]!==void 0&&(c=d));Fia[b]=c}return c};
g.Im=function(a,b){var c=a.style[cea(b)];return typeof c!=="undefined"?c:a.style[Em(a,b)]||""};
Jm=function(a,b){var c=eh(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Km=function(a,b){return Jm(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Mm=function(a,b,c){if(b instanceof g.Eg){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Lm(d,!1);a.style.top=g.Lm(b,!1)};
Nm=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Gia=function(a){var b=eh(a),c=Km(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=Km(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.Om=function(a){var b=eh(a),c=new g.Eg(0,0);if(a==(b?eh(b):document).documentElement)return c;a=Nm(a);b=Cea(fh(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Iia=function(a,b){var c=new g.Eg(0,0),d=nh(eh(a));if(!jba(d,"parent"))return c;do{var e=d==b?g.Om(a):Hia(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.Pm=function(a,b){a=Jia(a);b=Jia(b);return new g.Eg(a.x-b.x,a.y-b.y)};
Hia=function(a){a=Nm(a);return new g.Eg(a.left,a.top)};
Jia=function(a){if(a.nodeType==1)return Hia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Eg(a.clientX,a.clientY)};
g.Qm=function(a,b,c){if(b instanceof g.Gg)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.Lm(b,!0);a.style.height=g.Lm(c,!0)};
g.Lm=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};
g.Rm=function(a){var b=Kia;if(Km(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};
Kia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.mh&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Nm(a),new g.Gg(a.right-a.left,a.bottom-a.top)):new g.Gg(b,c)};
g.Sm=function(a,b){a.style.display=b?"":"none"};
Tm=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Lia=function(a){return new wm(a.top,a.right,a.bottom,a.left)};
Mia=function(a){var b=a.top||0,c=a.left||0;return new wm(b,c+(a.width||0),b+(a.height||0),c)};
Um=function(a){return a!=null&&a>=0&&a<=1};
Nia=function(){var a=g.Cb();return a?Vm("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 yb(a,b)})||yb(a,"OMI/")&&!yb(a,"XiaoMi/")?!0:yb(a,"Presto")&&yb(a,"Linux")&&!yb(a,"X11")&&!yb(a,"Android")&&!yb(a,"Mobi"):!1};
Oia=function(){this.C=!Jl(El.top);this.isMobileDevice=Il()||Kha();var a=Ll();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.aj(a[a.length-1].url)||"":"";this.j=new wm(0,0,0,0);this.D=new g.Gg(0,0);this.G=new g.Gg(0,0);this.N=new wm(0,0,0,0);this.frameOffset=new g.Eg(0,0);this.K=0;this.Z=!1;this.B=!(!El||!Cia(El).Yo);this.update(El)};
Pia=function(a,b){b&&b.screen&&(a.D=new g.Gg(b.screen.width,b.screen.height))};
Qia=function(a,b){a:{var c=a.j?new g.Gg(xm(a.j),a.j.getHeight()):new g.Gg(0,0);b=b===void 0?El: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.Gg(e,d);break a}catch(t){r=new g.Gg(-12245933,-12245933);break a}r=void 0}a.G=r};
Ym=function(){var a=Wm();if(a.K>0||a.Z)return!0;a=Vl().B.isVisible();var b=Hl(Xm)===0;return a||b};
Wm=function(){return Tl(Oia)};
Zm=function(a){this.C=a;this.B=0;this.j=null};
$m=function(a,b,c){this.C=a;this.Oa=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new Aia(-1,!0,this);this.j=this;this.Z=b;this.oa=this.W=!1;this.Fa="uk";this.Ca=!1;this.K=!0};
an=function(a,b){g.Wb(a.G,b)||(a.G.push(b),b.WA(a.j),b.Hu(a.D),b.gr()&&(a.W=!0))};
Ria=function(a){a=a.j;a.oW();a.nW();var b=Wm();b.N=Bm(!1,a.C,b.isMobileDevice);Qia(Wm(),a.C);a.D.j=a.qZ()};
Sia=function(a){a.W=a.G.length?Vm(a.G,function(b){return b.gr()}):!1};
Tia=function(a){var b=g.ac(a.G);g.lc(b,function(c){c.Hu(a.D)})};
bn=function(a){var b=g.ac(a.G);g.lc(b,function(c){c.WA(a.j)});
a.j!=a||Tia(a)};
cn=function(a,b,c,d){this.element=a;this.j=new wm(0,0,0,0);this.C=null;this.K=new wm(0,0,0,0);this.B=b;this.Jc=c;this.Ca=d;this.Aa=!1;this.timestamp=-1;this.W=new Am(b.D,this.element,this.j,new wm(0,0,0,0),0,0,rm(),0);this.G=void 0};
Uia=function(a,b){return a.G?new wm(Math.max(b.top+a.G.top,b.top),Math.min(b.left+a.G.right,b.right),Math.min(b.top+a.G.bottom,b.bottom),Math.max(b.left+a.G.left,b.left)):b.clone()};
dn=function(a){this.G=!1;this.j=a;this.D=function(){}};
Via=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b};
Wia=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}};
Xia=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};
en=function(){this.C=0;this.j=[];this.B=!1};
Yia=function(a,b){(0,g.lc)(b.j,function(c){a.add(c.B,c.j,Wia(c))})};
fn=function(a,b){var c=c===void 0?0:c;var d=d===void 0?!0:d;Kl(b,function(e,f){d&&e===void 0||a.add(f,e,c)});
return a};
gn=function(a){var b=Zia;a.B&&(g.hc(a.j,function(c,d){return Xia(d,c)?1:Xia(c,d)?-1:0}),a.B=!1);
return Sl(a.j,function(c,d){d=b(d);return""+c+(c!=""&&d!=""?"&":"")+d},"")};
Zia=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.Wb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
$ia=function(a){var b=b===void 0?!0:b;this.j=new en;a!==void 0&&Yia(this.j,a);b&&this.j.add("v","unreleased",-16)};
aja=function(a){var b=[],c=[];g.Ig(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)};
bja=function(a){a=a.toString();Vl();aia(a)};
cja=function(){this.j=0};
dja=function(a,b,c){(0,g.lc)(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 en;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=Tl(cja);h.add("i",d.j++);h.add("adk",e);fn(h,f);e=new $ia(h);bja(e)}})};
hn=function(){this.B=this.C=this.D=this.j=0};
jn=function(a){this.B=a=a===void 0?eja:a;this.j=g.Ql(this.B,function(){return new hn})};
kn=function(a,b){return fja(a,function(c){return c.j},b===void 0?!0:b)};
mn=function(a,b){return ln(a,b,function(c){return c.j})};
gja=function(a,b){return fja(a,function(c){return c.C},b===void 0?!0:b)};
nn=function(a,b){return ln(a,b,function(c){return c.C})};
on=function(a,b){return ln(a,b,function(c){return c.B})};
hja=function(a){g.lc(a.j,function(b){b.B=0})};
fja=function(a,b,c){a=g.Ql(a.j,function(d){return b(d)});
return c?a:ija(a)};
ln=function(a,b,c){var d=g.Vb(a.B,function(e){return b<=e});
return d==-1?0:c(a.j[d])};
ija=function(a){return g.Ql(a,function(b,c,d){return c>0?d[c]-d[c-1]:d[c]})};
pn=function(){this.B=new jn;this.Oa=this.Ka=0;this.Ta=new hn;this.qa=this.N=-1;this.ib=1E3;this.kb=new jn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Fa=this.Aa=-1};
qn=function(a,b){return gja(a.B,b===void 0?!0:b)};
rn=function(a,b,c,d){var e=e===void 0?!1:e;c=hm(d,c);Gl(a,b,c,{capture:e})};
tn=function(a,b){b=sn(b);return b===0?0:sn(a)/b};
sn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
jja=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=a.parentElement||a){var d=eh(a),e=d&&nh(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
kja=function(a,b,c){if(!a||!b)return!1;b=zm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Jl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Dia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=eh(c))&&b.defaultView&&b.defaultView.frameElement)&&jja(b,a);var d=a===c;a=!d&&a&&Ah(a,function(e){return e===c});
return!(b||d||a)};
lja=function(a,b,c,d){return Wm().C?!1:xm(a)<=0||a.getHeight()<=0?!0:c&&d?xia(208,function(){return kja(a,b,c)}):!1};
un=function(a,b,c){g.O.call(this);this.position=mja.clone();this.IL=this.IK();this.SR=-2;this.timeCreated=Date.now();this.C3=-1;this.Jq=b;this.yL=null;this.rF=!1;this.bM=null;this.opacity=-1;this.requestSource=c;this.Dfa=!1;this.ZR=function(){};
this.U3=function(){};
this.zk=new Hha;this.zk.Zu=a;this.zk.j=a;this.Mu=!1;this.tx={lS:null,kS:null};this.Y2=!0;this.sI=null;this.iB=this.O$=!1;Yl().K++;this.Bi=this.EQ();this.x3=-1;this.Qe=null;this.hasCompleted=this.L$=!1;this.Jc=new vl;Gha(this.Jc);nja(this);this.requestSource==1?xl(this.Jc,"od",1):xl(this.Jc,"od",0)};
nja=function(a){a=a.zk.Zu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:oja&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+dea()):!!a.getAttribute("data-"+dea());b&&(Wm().B=!0)};
vn=function(a,b){b!=a.iB&&(a.iB=b,a=Wm(),b?a.K++:a.K>0&&a.K--)};
pja=function(a,b){if(a.Qe){if(b.getName()===a.Qe.getName())return;a.Qe.dispose();a.Qe=null}b=b.create(a.zk.j,a.Jc,a.gr());if(b=b!=null&&b.observe()?b:null)a.Qe=b};
qja=function(a,b,c){if(!a.yL||a.Jq==-1||b.B===-1||a.yL.B===-1)return 0;a=b.B-a.yL.B;return a>c?0:a};
rja=function(a,b,c){if(a.Qe){a.Qe.Ut();var d=a.Qe.W,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.bM=new g.Eg(h.left-f.left,h.top-f.top)}f=a.qN()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.fZ(d);a.yL=d;a.Ra(f,b,c,!1,h,e,d.Z)}};
sja=function(a){if(a.rF&&a.sI){var b=yl(a.Jc,"od")==1,c=Wm().j,d=a.sI,e=a.Qe?a.Qe.getName():"ns",f=a.bM,h=new g.Gg(xm(c),c.getHeight());c=a.qN();a={kfa:e,bM:f,aga:h,qN:c,ue:a.Bi.ue,Wfa:b};if(b=d.B){b.Ut();e=b.W;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Eg(h.left-f.left,h.top-f.top),l=new g.Gg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={kfa:b.getName(),bM:h,aga:l,qN:c,Wfa:!1,ue:e}}else c=null;c&&dja(d,a,c)}};
tja=function(a,b,c){b&&(a.ZR=b);c&&(a.U3=c)};
g.wn=function(){};
g.xn=function(a){return{value:a,done:!1}};
uja=function(){this.D=this.j=this.C=this.B=this.G=0};
vja=function(a){var b={};var c=g.Za()-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};
wja=function(){ql.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
yn=function(a){return Um(a.volume)&&a.volume>0};
zn=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 xja(f,b,c)}};
An=function(a,b){return function(c){return b(c)?c[a]:void 0}};
yja=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}};
xja=function(a,b,c){return c===void 0||c?g.Bn(a,function(d,e){return g.Wb(b,e)}):g.Ql(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)})};
zja=function(){this.B=this.j=""};
Aja=function(){};
Cn=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.$g(c,a);return gn(fn(new en,c))};
Bja=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};
Dn=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)};
Cja=function(a){var b=g.Og(a.B),c=0,d;for(d in a.j)g.Wb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c};
Dja=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};
En=function(){this.j=this.B=0};
Fn=function(){pn.call(this);this.C=new hn;this.Ua=this.W=this.Ca=0;this.Z=-1;this.rb=new hn;this.G=new hn;this.j=new jn;this.K=this.D=-1;this.oa=new hn;this.ib=2E3;this.Ja=new En;this.Ya=new En;this.Va=new En};
Gn=function(a,b,c){var d=a.Ua;tm||c||a.Z==-1||(d+=b-a.Z);return d};
Eja=function(){this.C=!1};
Hn=function(a,b){this.C=!1;this.D=a;this.W=b;this.G=0};
In=function(a,b){Hn.call(this,a,b);this.N=[]};
Fja=function(){};
Jn=function(){};
Kn=function(a,b,c,d){cn.call(this,a,b,c,d)};
Ln=function(a,b,c){cn.call(this,null,a,b,c);this.Z=a.isActive();this.N=0};
Mn=function(a){return[a.top,a.left,a.bottom,a.right]};
Nn=function(a,b,c,d,e,f){f=f===void 0?new Jn:f;un.call(this,b,c,d);this.rT=e;this.PP=0;this.Ei={};this.Lg=new Bja;this.p4={};this.pj="";this.Va=null;this.Bb=!1;this.j=[];this.Gs=f.B();this.K=f.C();this.D=null;this.C=-1;this.Oa=this.W=void 0;this.qa=this.oa=0;this.Fa=-1;this.ib=this.Ya=!1;this.Ca=this.Z=this.B=this.jD=this.Kb=0;new jn;this.Ja=this.Ua=0;this.Ta=-1;this.Mk=0;this.N=g.Bi;this.Aa=[this.IK()];this.Qb=2;this.Hz={};this.Hz.pause="p";this.Hz.resume="r";this.Hz.skip="s";this.Hz.mute="m";this.Hz.unmute=
"um";this.Hz.exitfullscreen="ef";this.G=null;this.kb=this.rb=!1;this.Gb=Math.floor(Date.now()/1E3-1704067200);this.Ka=0};
On=function(a){a.hasCompleted=!0;a.Mk!=0&&(a.Mk=3)};
Pn=function(a){return a===void 0?a:Number(a)?Tm(a,3):0};
Qn=function(a,b){return a.Aa[b!=null&&b<a.Aa.length?b:a.Aa.length-1]};
Gja=function(a){var b=!!yl(Yl().Jc,"umt");return a.W||!b&&!a.Oa?0:1};
Hja=function(a,b){a.Uo()?b=0:a.Jq==-1?b=0:(b-=a.Jq,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.oa;var d=c-a.oa,e=0;d>=0?(a.qa+=b,a.Ja+=Math.max(b-d,0),e=Math.min(d,a.qa)):a.Ua+=Math.abs(d);d!=0&&(a.qa=0);a.Ta==-1&&d>0&&(a.Ta=vm>=0?rm()-vm:-1);a.oa=c;return e};
Ija=function(a,b){Vm(a.K,function(c){return c.D==b.D})||a.K.push(b)};
Jja=function(a){var b=mn(a.Mj().j,1);return Rn(a,b)};
Rn=function(a,b,c){return b>=15E3?!0:a.Ya?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Fa>0?b>=a.Fa:!1:!1};
Kja=function(a){var b=Tm(a.Bi.ue,2),c=a.Lg.C,d=a.Bi,e=Qn(a),f=Pn(e.D),h=Pn(e.K),l=Pn(d.volume),m=Tm(e.N,2),n=Tm(e.qa,2),p=Tm(d.ue,2),q=Tm(e.Aa,2),r=Tm(e.Fa,2);d=Tm(d.Zk,2);var t=a.Cu().clone().round();a=a.Qe&&a.Qe.C?(a.Qe?a.Qe.C:null).clone().round():null;e=qn(e,!1);return{Zfa:b,mG:c,NL:f,DL:h,OE:l,OL:m,FL:n,ue:p,QL:q,GL:r,Zk:d,position:t,cF:a,SL:e}};
Mja=function(a,b){Lja(a.j,b,function(){return{Zfa:0,mG:void 0,NL:-1,DL:-1,OE:-1,OL:-1,FL:-1,ue:-1,QL:-1,GL:-1,Zk:-1,position:void 0,cF:void 0,SL:[]}});
a.j[b]=Kja(a)};
Lja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Tn=function(a,b,c){var d=a.p4[b];if(d!=null)return d;d=Nja(a,b);var e=Rg(Sn,function(f){return f==b});
a=Oja(a,d,d,c,Pja[Sn[e]]);b=="fully_viewable_audible_half_duration_impression"&&(a.std="csm");return a};
Un=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Oja=function(a,b,c,d,e){if(a.Mu)return{"if":0,vs:0};var f=a.Cu().clone().round(),h=a.Qe?a.Qe.C:null,l=Wm(),m=Yl(),n=a.Mj(),p=a.Qe?a.Qe.getName():"ns",q={};q["if"]=l.C?1:void 0;q.sdk=a.D?a.D:void 0;q.t=a.timeCreated;q.p=[f.top,f.left,f.bottom,f.right];f&&h&&!ym(h,f)&&(f=h.round(),q.cp=[f.top,f.left,f.bottom,f.right]);q.tos=kn(n.B,!1);q.mtos=qn(n);q.mcvt=n.Ta.C;q.ps=void 0;f=Gn(n,rm(),a.Uo());q.vht=f;q.mut=n.rb.C;q.a=Pn(a.Bi.volume);q.mv=Pn(n.K);q.fs=a.iB?1:0;q.ft=n.oa.j;q.at=n.G.j;q.as=n.D>0?1:0;q.atos=
kn(n.j);q.ssb=kn(n.kb,!1);q.amtos=gja(n.j,!1);q.uac=a.Kb;q.vpt=n.C.j;p=="nio"&&(q.nio=1,q.avms="nio");q.gmm="4";q.gdr=Rn(a,n.C.j,!0)?1:0;q.efpf=a.Qb;if(p=="gsv"||p=="nis")p=a.Qe,p.N>0&&(q.nnut=p.N);q.tcm=Gja(a);q.nmt=a.Ua;q.bt=a.Ja;q.pst=a.Ta;q.vpaid=a.W;q.dur=a.C;q.vmtime=a.oa;q.is=a.Lg.C;a.j.length>=1&&(q.i0=a.j[0].mG,q.a0=[a.j[0].OE],q.c0=[a.j[0].ue],q.ss0=[a.j[0].Zk],p=a.j[0].position,f=a.j[0].cF,q.p0=p?Mn(p):void 0,p&&f&&!ym(f,p)&&(q.cp0=Mn(f)));a.j.length>=2&&(q.i1=a.j[1].mG,q.a1=Un(a.j[1].NL,
a.j[1].OE,a.j[1].DL),q.c1=Un(a.j[1].OL,a.j[1].ue,a.j[1].FL),q.ss1=Un(a.j[1].QL,a.j[1].Zk,a.j[1].GL),p=a.j[1].position,f=a.j[1].cF,q.p1=p?Mn(p):void 0,p&&f&&!ym(f,p)&&(q.cp1=Mn(f)),q.mtos1=a.j[1].SL);a.j.length>=3&&(q.i2=a.j[2].mG,q.a2=Un(a.j[2].NL,a.j[2].OE,a.j[2].DL),q.c2=Un(a.j[2].OL,a.j[2].ue,a.j[2].FL),q.ss2=Un(a.j[2].QL,a.j[2].Zk,a.j[2].GL),p=a.j[2].position,f=a.j[2].cF,q.p2=p?Mn(p):void 0,p&&f&&!ym(f,p)&&(q.cp2=Mn(f)),q.mtos2=a.j[2].SL);a.j.length>=4&&(q.i3=a.j[3].mG,q.a3=Un(a.j[3].NL,a.j[3].OE,
a.j[3].DL),q.c3=Un(a.j[3].OL,a.j[3].ue,a.j[3].FL),q.ss3=Un(a.j[3].QL,a.j[3].Zk,a.j[3].GL),p=a.j[3].position,f=a.j[3].cF,q.p3=p?Mn(p):void 0,p&&f&&!ym(f,p)&&(q.cp3=Mn(f)),q.mtos3=a.j[3].SL);q.cs=Dja(a.Lg);b&&(q.ic=Cja(a.Lg),q.dvpt=n.C.B,q.dvs=on(n.B,.5),q.dfvs=on(n.B,1),q.davs=on(n.j,.5),q.dafvs=on(n.j,1),c&&(n.C.B=0,hja(n.B),hja(n.j)),a.Ds()&&(q.dtos=n.Ca,q.dav=n.W,q.dtoss=a.PP+1,c&&(n.Ca=0,n.W=0,a.PP++)),q.dat=n.G.B,q.dft=n.oa.B,c&&(n.G.B=0,n.oa.B=0));q.ps=[l.G.width,l.G.height];q.bs=[xm(l.j),l.j.getHeight()];
q.scs=[l.D.width,l.D.height];q.dom=l.domain;a.jD&&(q.vds=a.jD);if(a.K.length>0||a.Gs)b=g.ac(a.K),a.Gs&&b.push(a.Gs),q.pings=g.Ql(b,function(r){return r.toString()});
b=g.Ql(g.Bn(a.K,function(r){return r.K()}),function(r){return r.getId()});
dba(b);q.ces=b;a.B&&(q.vmer=a.B);a.Z&&(q.vmmk=a.Z);a.Ca&&(q.vmiec=a.Ca);q.avms=a.Qe?a.Qe.getName():"ns";a.Qe&&g.$g(q,a.Qe.xu());d?(q.c=Tm(a.Bi.ue,2),q.ss=Tm(a.Bi.Zk,2)):q.tth=rm()-Qja;q.mc=Tm(n.qa,2);q.nc=Tm(n.N,2);q.mv=Pn(n.K);q.nv=Pn(n.D);q.lte=Tm(a.SR,2);d=Qn(a,e);qn(n);q.qmtos=qn(d);q.qnc=Tm(d.N,2);q.qmv=Pn(d.K);q.qnv=Pn(d.D);q.qas=d.D>0?1:0;q.qi=a.pj;q.avms||(q.avms="geo");q.psm=n.Ja.j;q.psv=n.Ja.getValue();q.psfv=n.Ya.getValue();q.psa=n.Va.getValue();m=Eha(m.Jc);m.length&&(q.veid=m);a.G&&g.$g(q,
vja(a.G));q.avas=a.vK();q.vs=a.tZ();q.co=Rja(a);q.tm=n.Ka;q.tu=n.Oa;return q};
Nja=function(a,b){if(g.Wb(Sja,b))return!0;var c=a.Ei[b];return c!==void 0?(a.Ei[b]=!0,!c):!1};
Rja=function(a){var b=a.Ka.toString(10).padStart(2,"0");b=""+a.Gb+b;a.Ka<99&&a.Ka++;return b};
Uja=function(){this.j={};var a=nh();Vn(this,a,document);var b=Tja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Vn(this,c,c.document);Vn(this,a.top,a.top.document)}}catch(d){}};
Tja=function(){var a=document.documentElement;try{if(!Jl(nh().top))return"2";var b=[],c=nh(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"}};
Vn=function(a,b,c){rn(c,"mousedown",function(){return Vja(a)},301);
rn(b,"scroll",function(){return Wja(a)},302);
rn(c,"touchmove",function(){return Xja(a)},303);
rn(c,"mousemove",function(){return Yja(a)},304);
rn(c,"keydown",function(){return Zja(a)},305)};
Vja=function(a){g.Ig(a.j,function(b){b.C>1E5||++b.C})};
Wja=function(a){g.Ig(a.j,function(b){b.j>1E5||++b.j})};
Xja=function(a){g.Ig(a.j,function(b){b.j>1E5||++b.j})};
Zja=function(a){g.Ig(a.j,function(b){b.B>1E5||++b.B})};
Yja=function(a){g.Ig(a.j,function(b){b.D>1E5||++b.D})};
$ja=function(){this.j=[];this.B=[]};
Wn=function(a,b){return g.Ub(a.j,function(c){return c.pj==b})};
aka=function(a,b){return b?g.Ub(a.j,function(c){return c.zk.Zu==b}):null};
bka=function(a,b){return g.Ub(a.B,function(c){return c.tq()==2&&c.pj==b})};
Yn=function(){var a=Xn;return a.j.length==0?a.B:a.B.length==0?a.j:g.$b(a.B,a.j)};
cka=function(a,b){a=b.tq()==1?a.j:a.B;var c=Tb(a,function(d){return d==b});
return c!=-1?(a.splice(c,1),b.Qe&&b.Qe.unobserve(),b.dispose(),!0):!1};
dka=function(a){var b=Xn;if(cka(b,a)){switch(a.tq()){case 0:var c=function(){return null};
case 2:c=function(){return bka(b,a.pj)};
break;case 1:c=function(){return Wn(b,a.pj)}}for(var d=c();d;d=c())cka(b,d)}};
eka=function(a){var b=Xn;a=g.Bn(a,function(c){return!aka(b,c.zk.Zu)});
b.j.push.apply(b.j,g.x(a))};
fka=function(a){var b=[];g.lc(a,function(c){Vm(Xn.j,function(d){return d.zk.Zu===c.zk.Zu&&d.pj===c.pj})||(Xn.j.push(c),b.push(c))})};
Zn=function(){this.j=this.B=null};
gka=function(a,b){function c(d,e){b(d,e)}
if(a.B==null)return!1;a.j=g.Ub(a.B,function(d){return d!=null&&d.pW()});
a.j&&(a.j.init(c)?Ria(a.j.j):b(a.j.j.KA(),a.j));return a.j!=null};
$n=function(a){a=hka(a);dn.call(this,a.length?a[a.length-1]:new $m(El,0));this.C=a;this.B=null};
hka=function(a){if(!a.length)return[];a=(0,g.Bn)(a,function(c){return c!=null&&c.QD()});
for(var b=1;b<a.length;b++)an(a[b-1],a[b]);return a};
ao=function(a,b,c,d){cn.call(this,a,b,c,d);this.qa=this.oa=this.N=this.Z=this.D=null};
bo=function(a){return a.D&&a.D.takeRecords?a.D.takeRecords():[]};
jka=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=Yl().j.j;a.D=new c.IntersectionObserver(Xl(d,function(e){return co(a,e)}),ika);
d=Xl(d,function(){a.D.unobserve(b);a.D.observe(b);co(a,bo(a))});
c.ResizeObserver?(a.Z=new c.ResizeObserver(d),a.Z.observe(b)):c.MutationObserver&&(a.N=new g.Na.MutationObserver(d),a.N.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.D.observe(b);co(a,bo(a));return!0};
co=function(a,b){try{if(b.length){a.oa||(a.oa=rm());var c=kka(b),d=Iia(a.element,a.B.j.C),e=d.x,f=d.y;a.C=new wm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));a.j=Uia(a,a.C);var h=Lia(c.intersectionRect);a.K=zm(h,a.C.left-h.left,a.C.top-h.top)}}catch(l){a.unobserve(),jm(299,l)}};
kka=function(a){return Sl(a,function(b,c){return b.time>c.time?b:c},a[0])};
eo=function(a){a=a===void 0?El:a;dn.call(this,new $m(a,2))};
fo=function(){var a=lka();$m.call(this,El.top,a,"geo")};
lka=function(){Yl();var a=Wm();return a.C||a.B?0:2};
mka=function(){};
go=function(){this.done=!1;this.j={G7:0,uX:0,bqa:0,wY:0,nR:-1,l8:0,k8:0,m8:0,ifa:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Zm(this)};
io=function(){var a=ho;a.K||(a.K=!0,nka(a,function(){return a.D.apply(a,g.x(g.Ea.apply(0,arguments)))}),a.D())};
oka=function(){Tl(mka);var a=Tl(Zn);a.j!=null&&a.j.j?Ria(a.j.j):Wm().update(El)};
jo=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{oka();var d=rm();Yl().G=d;if(Tl(Zn).j!=null)for(var e=0;e<b.length;e++)rja(b[e],d,c);for(d=0;d<b.length;d++)sja(b[d]);++a.j.wY}finally{c?g.lc(b,function(f){f.Bi.ue=0}):a.B.schedule()}}};
nka=function(a,b){if(!a.G){b=hm(142,b);Vl();var c;Xm.visibilityState?c="visibilitychange":Xm.mozVisibilityState?c="mozvisibilitychange":Xm.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Gl(Xm,c,b,{capture:!1})&&(a.G=b)}};
pka=function(){var a=Tl(Zn);if(a.j!=null){var b=a.j;g.lc(Yn(),function(c){return pja(c,b)})}};
qka=function(a,b){a=a.N;tm&&(a+=b-um);return a};
rka=function(a){a=a===void 0?function(){return{}}:a;
em.DY="av-js";dm.j=.01;wia([function(b){var c=Yl(),d={};d=(d.bin=c.B,d.type="error",d);c=zl(c.Jc);if(!ho.C){var e=ho,f=El.document,h=sm>=0?rm()-sm:-1,l=rm();e.j.nR==-1&&(h=l);var m=Wm(),n=Yl(),p=zl(n.Jc),q=Yn();try{if(q.length>0){var r=m.j;r&&(p.bs=[xm(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);El.screen&&(p.scs=[El.screen.width,El.screen.height])}else p.url=encodeURIComponent(El.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=sm;p.bin=n.B;El.google_osd_load_pub_page_exp!==void 0&&(p.olpp=El.google_osd_load_pub_page_exp);p.deb=[1,e.j.G7,e.j.uX,e.j.wY,e.j.nR,0,e.B.B,e.j.l8,e.j.k8,e.j.m8,e.j.ifa,-1].join(";");p.tvt=qka(e,l);m.B&&(p.inapp=1);if(El!==null&&El!=El.top){q.length>0&&(p.iframe_loc=encodeURIComponent(El.location.href.substring(0,512)));var u=m.N;p.is=[xm(u),u.getHeight()]}}catch(y){p.error=1}ho.C=p}r=g.Yg(ho.C);t=Yl().j;yl(t.C,"prf")==1?(u=new Wl,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=$d(u,1,dd(e.D+
f),0),e=t.j,u=$d(u,5,hd(e.j>-1?e.B+1:e.B),0),u=$d(u,2,md(t.B.j.C()),"0"),u=$d(u,3,md(t.B.j.B()),"0"),t=$d(u,4,md(t.B.j.j()),"0"),u={},t=(u.pf=g.pc(t.j()),u)):t={};g.$g(r,t);g.$g(b,d,c,r,a())}])};
tka=function(){var a=ska||El;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("&")};
ko=function(){var a="youtube.player.web_20241008_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20241008_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20241008_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20241008_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20241008_01_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};
uka=function(){return"av.default_js".includes("ima_html5_sdk")?{bq:"ima",eq:null}:"av.default_js".includes("ima_native_sdk")?{bq:"nima",eq:null}:"av.default_js".includes("admob-native-video-javascript")?{bq:"an",eq:null}:"youtube.player.web_20241008_01_RC00".includes("cast_js_sdk")?{bq:"cast",eq:ko()}:"youtube.player.web_20241008_01_RC00".includes("youtube.player.web")?{bq:"yw",eq:ko()}:"youtube.player.web_20241008_01_RC00".includes("outstream_web_client")?{bq:"out",eq:ko()}:"youtube.player.web_20241008_01_RC00".includes("drx_rewarded_web")?
{bq:"r",eq:ko()}:"youtube.player.web_20241008_01_RC00".includes("gam_native_web_video")?{bq:"n",eq:ko()}:"youtube.player.web_20241008_01_RC00".includes("admob_interstitial_video")?{bq:"int",eq:ko()}:{bq:"j",eq:null}};
no=function(a,b){var c={sv:"965"};lo!==null&&(c.v=lo);c.cb=vka;c.nas=Xn.j.length;c.msg=a;b!==void 0&&(a=wka(b))&&(c.e=mo[a]);return c};
oo=function(a){return vb(a,"custom_metric_viewable")};
wka=function(a){var b=oo(a)?"custom_metric_viewable":a.toLowerCase();return Rg(Sn,function(c){return c==b})};
xka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
Aka=function(a){try{var b=a.split(",");return b.length>g.Og(yka).length?null:Sl(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||zka[d[0]]===void 0||!zka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Bka=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?nn(b.j,a.j):nn(b.B,a.j);case "tos":return a.B?mn(b.j,a.j):mn(b.B,a.j)}return 0};
po=function(a,b,c,d){Hn.call(this,b,d);this.N=a;this.Z=c};
qo=function(){};
ro=function(a){Hn.call(this,"fully_viewable_audible_half_duration_impression",a)};
so=function(a){this.j=a};
to=function(a,b){Hn.call(this,a,b)};
uo=function(a){In.call(this,"measurable_impression",a)};
vo=function(){so.apply(this,arguments)};
wo=function(a,b,c){Ln.call(this,a,b,c)};
xo=function(a){a=a===void 0?El:a;dn.call(this,new $m(a,2))};
yo=function(a,b,c){Ln.call(this,a,b,c)};
zo=function(a){a=a===void 0?El:a;dn.call(this,new $m(a,2))};
Ao=function(){$m.call(this,El,2,"mraid");this.Ja=0;this.qa=this.Aa=!1;this.N=null;this.B=Cia(this.C);this.D.j=new wm(0,0,0,0);this.Ka=!1};
Bo=function(a,b,c){a.Nv("addEventListener",b,c)};
Fka=function(a){Yl().D=!!a.Nv("isViewable");Bo(a,"viewableChange",Cka);a.Nv("getState")==="loading"?Bo(a,"ready",Dka):Eka(a)};
Eka=function(a){typeof a.B.Yo.AFMA_LIDAR==="string"?(a.Aa=!0,Gka(a)):(a.B.compatibility=3,a.N="nc",a.cj("w"))};
Gka=function(a){a.qa=!1;var b=yl(Yl().Jc,"rmmt")==1,c=!!a.Nv("isViewable");(b?!c:1)&&Vl().setTimeout(im(524,function(){a.qa||(Hka(a),jm(540,Error()),a.N="mt",a.cj("w"))}),500);
Ika(a);Bo(a,a.B.Yo.AFMA_LIDAR,Jka)};
Ika=function(a){var b=yl(Yl().Jc,"sneio")==1,c=a.B.Yo.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Yo.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Yo.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Yo.AFMA_LIDAR_EXP_1=!b)};
Hka=function(a){a.Nv("removeEventListener",a.B.Yo.AFMA_LIDAR,Jka);a.Aa=!1};
Kka=function(a,b){if(a.Nv("getState")==="loading")return new g.Gg(-1,-1);b=a.Nv(b);if(!b)return new g.Gg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Gg(-1,-1):new g.Gg(a,b)};
Dka=function(){try{var a=Tl(Ao);a.Nv("removeEventListener","ready",Dka);Eka(a)}catch(b){jm(541,b)}};
Jka=function(a,b){try{var c=Tl(Ao);c.qa=!0;var d=a?new wm(a.y,a.x+a.width,a.y+a.height,a.x):new wm(0,0,0,0);var e=rm(),f=Ym();var h=new Aia(e,f,c);h.j=d;h.volume=b;c.Hu(h)}catch(l){jm(542,l)}};
Cka=function(a){var b=Yl(),c=Tl(Ao);a&&!b.D&&(b.D=!0,c.Ka=!0,c.N&&c.cj("w",!0))};
Co=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.y$,a.firstquartile=this.t$,a.midpoint=this.v$,a.thirdquartile=this.z$,a.complete=this.q$,a.error=this.r$,a.pause=this.qT,a.resume=this.v2,a.skip=this.x$,a.viewable_impression=this.uq,a.mute=this.hD,a.unmute=this.hD,a.fullscreen=this.u$,a.exitfullscreen=this.s$,a.fully_viewable_audible_half_duration_impression=this.uq,a.measurable_impression=this.uq,a.abandon=this.qT,a.engagedview=this.uq,a.impression=this.uq,a.creativeview=
this.uq,a.progress=this.hD,a.custom_metric_viewable=this.uq,a.bufferstart=this.qT,a.bufferfinish=this.v2,a.audio_measurable=this.uq,a.audio_audible=this.uq,a);a={};this.N=(a.overlay_resize=this.w$,a.abandon=this.bR,a.close=this.bR,a.collapse=this.bR,a.overlay_unmeasurable_impression=function(b){return Tn(b,"overlay_unmeasurable_impression",Ym())},a.overlay_viewable_immediate_impression=function(b){return Tn(b,"overlay_viewable_immediate_impression",Ym())},a.overlay_unviewable_impression=function(b){return Tn(b,
"overlay_unviewable_impression",Ym())},a.overlay_viewable_end_of_session_impression=function(b){return Tn(b,"overlay_viewable_end_of_session_impression",Ym())},a);
Yl().B=3;Lka(this)};
Io=function(a,b,c,d){a=a.MH(null,d,!0,b);a.D=c;eka([a]);return a};
Mka=function(a,b,c){Cha(b);var d=a.j;g.lc(b,function(e){var f=g.Ql(e.criteria,function(h){var l=Aka(h);if(l==null)h=null;else if(h=new xka,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=Raa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h});
Vm(f,function(h){return h==null})||Ija(c,new po(e.id,e.event,f,d))})};
Nka=function(){var a=[],b=Yl();a.push(Tl(fo));yl(b.Jc,"mvp_lv")&&a.push(Tl(Ao));b=[new xo,new zo];b.push(new $n(a));b.push(new eo(El));return b};
Oka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=rm(),c=Yl(),d=Wm();sm=b;c.C=79463069;a.B!=="o"&&(ska=Rha(El));if(bia()){ho.j.uX=0;ho.j.nR=rm()-b;var e=Nka(),f=Tl(Zn);f.B=e;gka(f,function(){Jo()})?ho.done||(pka(),an(f.j.j,a),io()):d.C?Jo():io()}else Ko=!0}catch(h){throw Xn.reset(),h;
}}};
Mo=function(a){ho.B.cancel();Lo=a;ho.done=!0};
No=function(a){if(a.B)return a.B;var b=Tl(Zn).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};
Oo=function(a,b,c){if(a.j==null)return b.jD|=4,!1;a=Pka(a.j,c,b);b.jD|=a;return a==0};
Jo=function(){var a=[new eo(El)],b=Tl(Zn);b.B=a;gka(b,function(){Mo("i")})?ho.done||(pka(),io()):Mo("i")};
Qka=function(a,b){if(!a.Bb){var c=Tn(a,"start",Ym());c=a.rT.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="965";lo!==null&&(d.v=lo);cj(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)});
b=tka();cj(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+gn(fn(new en,d));bja(b);a.Bb=!0}};
Po=function(a,b,c){jo(ho,[a],!Ym());Mja(a,c);c!=4&&Lja(a.Aa,c,a.IK);return Tn(a,b,Ym())};
Lka=function(a){rka(function(){var b=Rka();a.B!=null&&(b.sdk=a.B);var c=Tl(Zn);c.j!=null&&(b.avms=c.j.getName());return b})};
Ska=function(a,b,c,d){var e=aka(Xn,c);e!==null&&e.pj!==b&&(a.bK(e),e=null);e||(b=a.MH(c,rm(),!1,b),Xn.B.length==0&&(Yl().C=79463069),fka([b]),e=b,e.D=No(a),d&&(e.Va=d));return e};
Tka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))};
Rka=function(){var a=Wm(),b={},c={},d={};return Object.assign({},(b.sv="965",b),lo!==null&&(c.v=lo,c),(d["if"]=a.C?"1":"0",d.nas=String(Xn.j.length),d))};
Qo=function(a){Hn.call(this,"audio_audible",a)};
Ro=function(a){In.call(this,"audio_measurable",a)};
So=function(){so.apply(this,arguments)};
To=function(){};
Uka=function(a){this.j=a};
Pka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},lo!==null&&(d.v=lo,d),(e.sv="965",e.cb=vka,e.e=Vka(b),e));e=Tn(c,b,Ym());g.$g(d,e);c.p4[b]=e;d=c.tq()==2?aja(d).join("&"):c.rT.j(d).j;try{return a(c.pj,d,b),0}catch(f){return 2}}else return 1};
Vka=function(a){var b=oo(a)?"custom_metric_viewable":a;a=Rg(Sn,function(c){return c==b});
return mo[a]};
Uo=function(){Co.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Wka=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&Mka(a,c,b)};
Xka=function(a,b,c){var d=Wn(Xn,b);d||(d=c.opt_nativeTime||-1,d=Io(a,b,No(a),d),c.opt_osdId&&(d.Va=c.opt_osdId));return d};
Yka=function(a,b,c){var d=Wn(Xn,b);d||(d=Io(a,b,"n",c.opt_nativeTime||-1));return d};
Zka=function(a,b){var c=Wn(Xn,b);c||(c=Io(a,b,"h",-1));return c};
$ka=function(a){Yl();switch(No(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};
dla=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.$g(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.SK(b,c);c=f?f.rT:a.IP();if(e.opt_bounds)return c.j(no("ol",d));if(d!==void 0)if(wka(d)!==void 0)if(Ko)a=no("ue",d);else if(Oka(a),Lo=="i")a=no("i",d),a["if"]=0;else if(b=a.SK(b,e)){b:{Lo=="i"&&(b.Mu=!0);f=e.opt_fullscreen;f!==void 0&&vn(b,!!f);var h;if(f=!Wm().B)(f=yb(g.Cb(),"CrKey")&&!(yb(g.Cb(),"CrKey")&&yb(g.Cb(),"SmartSpeaker"))||yb(g.Cb(),"PlayStation")||yb(g.Cb(),"Roku")||Nia()||yb(g.Cb(),
"Xbox"))||(f=g.Cb(),f=yb(f,"AppleTV")||yb(f,"Apple TV")||yb(f,"CFNetwork")||yb(f,"tvOS")),f||(f=g.Cb(),f=yb(f,"sdk_google_atv_x86")||yb(f,"Android TV")),f=!f;f&&(Vl(),f=Hl(Xm)===0);if(h=f){switch(b.tq()){case 1:Qka(b,"pv");break;case 2:a.LT(b)}Mo("pv")}f=d.toLowerCase();if(h=!h)h=yl(Yl().Jc,"ssmol")&&f==="loaded"?!1:g.Wb(ala,f);if(h&&b.Mk==0){Lo!="i"&&(ho.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;vm=h=typeof h==="number"?h:rm();b.rF=!0;var l=Ym();b.Mk=1;b.Ei={};b.Ei.start=!1;b.Ei.firstquartile=
!1;b.Ei.midpoint=!1;b.Ei.thirdquartile=!1;b.Ei.complete=!1;b.Ei.resume=!1;b.Ei.pause=!1;b.Ei.skip=!1;b.Ei.mute=!1;b.Ei.unmute=!1;b.Ei.viewable_impression=!1;b.Ei.measurable_impression=!1;b.Ei.fully_viewable_audible_half_duration_impression=!1;b.Ei.fullscreen=!1;b.Ei.exitfullscreen=!1;b.PP=0;l||(b.Mj().Z=h);jo(ho,[b],!l)}(h=b.Hz[f])&&Dn(b.Lg,h);yl(Yl().Jc,"fmd")||g.Wb(bla,f)&&b.Gs&&b.Gs.B(b,null);switch(b.tq()){case 1:var m=oo(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),yl(Yl().Jc,"fmd")&&g.Wb(bla,f)&&b.Gs&&b.Gs.B(b,null),d!==void 0)){e=no(void 0,f);g.$g(e,d);d=e;break b}d=void 0}b.Mk==3&&a.bK(b);a=d}else a=no("nf",d);else a=void 0;else Ko?a=no("ue"):f?(a=no(),g.$g(a,Oja(f,!0,!1,!1))):a=no("nf");return typeof a==="string"?c.j():c.j(a)};
ela=function(a,b){b&&(a.C=b)};
fla=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
gla=function(a,b,c){c=c===void 0?{}:c;a=dla(Tl(Uo),b,c,a);return fla(a)};
hla=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}};
ila=function(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}};
kla=function(){var a=jla();a=a===void 0?"bevasrsg":a;return new Promise(function(b){var c=window===window.top?window:ila()?window:window.top,d=c[a],e;((e=d)==null?0:e.bevasrs)?b(new Vo(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),c[a]=d),d.nqfbel.push(function(f){b(new Vo(f))}))})};
lla=function(a){var b={c:a.Hj,e:a.uF,mc:a.hS,me:a.iS};a.ai&&(b.co={c:a.ai.kx,a:a.ai.hA,s:a.ai.aD});return b};
mla=function(a){this.wpc=a};
Vo=function(a){this.dh=a;this.D="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.C=!1;this.j=void 0;this.TC=this.dh.p;this.G=this.AM.bind(this)};
nla=function(a){var b;return g.J(function(c){if(c.j==1){if(!a.dh.wpc)throw new Jj(30,"NWA");return a.B?c.return(a.B):g.G(c,a.dh.wpc(),2)}b=c.B;a.B=new mla(b);return c.return(a.B)})};
ola=function(a){a.j!==void 0&&(a.D.forEach(function(b){var c;(c=a.j)==null||c.removeEventListener(b,a.G)}),a.j=void 0)};
rla=function(a){if(g.wb(g.og(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.Bk(a)}catch(c){return g.Ub(pla,function(d){return a.search(d)>0})!=null}return b.K.match(qla)?!0:g.Ub(pla,function(c){return a.match(c)!=null})!=null};
g.Wo=function(a,b){return a.replace(sla,function(c,d){try{var e=g.Wg(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.wb(g.og(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
tla=function(a,b){return Object.is(a,b)};
g.Yo=function(a){var b=g.Xo;g.Xo=a;return b};
ula=function(a){if(a.ij!==void 0){var b=g.Zo;g.Zo=!0;try{for(var c=g.w(a.ij),d=c.next();!d.done;d=c.next()){var e=d.value;e.Sm||(a=void 0,e.Sm=!0,ula(e),(a=e.AP)==null||a.call(e,e))}}finally{g.Zo=b}}};
vla=function(){var a;return((a=g.Xo)==null?void 0:a.bF)!==!1};
g.wla=function(a){a&&(a.VL=0);return g.Yo(a)};
g.xla=function(a,b){g.Yo(b);if(a&&a.gg!==void 0&&a.Gn!==void 0&&a.Yy!==void 0){if(g.$o(a))for(b=a.VL;b<a.gg.length;b++)g.ap(a.gg[b],a.Gn[b]);for(;a.gg.length>a.VL;)a.gg.pop(),a.Yy.pop(),a.Gn.pop()}};
zla=function(a,b,c){yla(a);if(a.ij.length===0&&a.gg!==void 0)for(var d=0;d<a.gg.length;d++)a.Gn[d]=zla(a.gg[d],a,d);a.Wu.push(c);return a.ij.push(b)-1};
g.ap=function(a,b){yla(a);if(a.ij.length===1&&a.gg!==void 0)for(var c=0;c<a.gg.length;c++)g.ap(a.gg[c],a.Gn[c]);c=a.ij.length-1;a.ij[b]=a.ij[c];a.Wu[b]=a.Wu[c];a.ij.length--;a.Wu.length--;b<a.ij.length&&(c=a.Wu[b],a=a.ij[b],g.bp(a),a.Gn[c]=b)};
g.$o=function(a){var b,c;return a.zP||((c=a==null?void 0:(b=a.ij)==null?void 0:b.length)!=null?c:0)>0};
g.bp=function(a){a.gg!=null||(a.gg=[]);a.Gn!=null||(a.Gn=[]);a.Yy!=null||(a.Yy=[])};
yla=function(a){a.ij!=null||(a.ij=[]);a.Wu!=null||(a.Wu=[])};
g.cp=function(){throw Error();};
Bla=function(a){function b(){if(g.Zo)throw Error("");if(g.Xo!==null){var d=g.Xo.VL++;g.bp(g.Xo);d<g.Xo.gg.length&&g.Xo.gg[d]!==c&&g.$o(g.Xo)&&g.ap(g.Xo.gg[d],g.Xo.Gn[d]);g.Xo.gg[d]!==c&&(g.Xo.gg[d]=c,g.Xo.Gn[d]=g.$o(g.Xo)?zla(c,g.Xo,d):0);g.Xo.Yy[d]=c.version}return c.value}
var c=Object.create(Ala);c.value=a;b[dp]=c;return b};
Dla=function(a,b){vla()||g.cp();if(!a.YP(a.value,b)){a.value=b;a.version++;g.ep++;ula(a);var c;(c=g.Cla)==null||c()}};
g.gp=function(a){return Object.create(Object.assign({},g.fp,{bF:a}))};
hp=function(){};
g.Ela=function(a,b,c){if(c==null)a.removeAttribute(b);else{var d=b.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":b.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null;d?a.setAttributeNS(d,b,c):a.setAttribute(b,c)}};
Gla=function(a,b,c){a=a.style;if(typeof c==="string")a.cssText=c;else{a.cssText="";for(var d in c)if(Fla.call(c,d)){b=a;var e=d,f=c[d];e.indexOf("-")>=0?b.setProperty(e,f):b[e]=f}}};
Hla=function(a,b,c){var d=typeof c;d==="object"||d==="function"?a[b]=c:g.Ela(a,b,c)};
g.ip=function(){var a=new hp;a.__default=Hla;a.style=Gla;return a};
Ila=function(a){this.created=[];this.j=[];this.node=a};
Jla=function(a,b,c,d,e){return b==c&&d==e};
g.mp=function(a){for(var b=g.jp,c=g.kp();c!==a;){var d=c.nextSibling;b.removeChild(c);g.lp.j.push(c);c=d}};
g.kp=function(){return g.np?g.np.nextSibling:g.jp.firstChild};
Lla=function(a,b){b=b===void 0?{}:b;var c=b.matches===void 0?Jla:b.matches;return function(d,e,f){var h=g.lp,l=g.op,m=g.pp,n=g.qp,p=g.np,q=g.jp,r=g.rp;g.op=d.ownerDocument;g.lp=new Ila(d);g.rp=c;g.qp=[];g.np=null;var t=g.jp=d.parentNode,u,y=Kla.call(d);if((u=y.nodeType===11||y.nodeType===9?y.activeElement:null)&&d.contains(u)){for(y=[];u!==t;)y.push(u),u=u.parentNode||(t?u.host:null);t=y}else t=[];g.pp=t;try{return a(d,e,f)}finally{d=g.lp,g.sp&&d.j.length>0&&(0,g.sp)(d.j),g.op=l,g.lp=h,g.rp=r,g.qp=
n,g.np=p,g.jp=q,g.pp=m}}};
g.up=function(a,b){var c=g.tp.N8;if(c){var d,e;(e=(d=performance).mark)==null||e.call(d,a+"Start__"+b)}d={};return d[Symbol.dispose]=function(){if(c){var f,h;(h=(f=performance).measure)==null||h.call(f,a+"__"+b,a+"Start__"+b)}},d};
wp=function(a){g.qi.call(this);var b=this;this.G=this.B=0;this.Vo=a!=null?a:{aj:function(e,f){return setTimeout(e,f)},
wk: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.J(function(e){return g.G(e,vp(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.Le()};
Mla=function(){var a=g.xp;wp.instance||(wp.instance=new wp(a));return wp.instance};
vp=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.J(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.wa(l,2,3),d&&(a.B=a.Vo.aj(function(){d.abort()},b||2E4)),g.G(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.za(l);a.D=void 0;a.B&&(a.Vo.wk(a.B),a.B=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.Aa(l,0);break;case 2:g.ya(l),h=!1,l.Ea(3)}})})};
yp=function(){this.data=[];this.j=-1};
Nla=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};
zp=function(a){a.setAttribute("role","link")};
Bp=function(a,b){Array.isArray(b)&&(b=b.join(" "));b===""||b==void 0?(Ap||(b={},Ap=(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=Ap,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Cp=function(a){a=a.getAttribute("aria-label");return a==null||a==void 0?"":String(a)};
g.Dp=function(a,b,c){g.O.call(this);this.j=null;this.D=!1;this.K=a;this.G=c;this.B=b||window;this.C=(0,g.Xa)(this.i6,this)};
Ola=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Pla=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Ep=function(a,b,c){g.O.call(this);this.j=a;this.gj=b||0;this.B=c;this.C=(0,g.Xa)(this.rW,this)};
g.Fp=function(a,b){a.isActive()||a.start(b)};
g.Gp=function(a){a.stop();a.rW()};
g.Hp=function(a){a.isActive()&&g.Gp(a)};
g.Ip=function(a,b){this.j=a[g.Na.Symbol.iterator]();this.B=b};
Qla=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
Jp=function(a){return a.classList?a.classList:Qla(a).match(/\S+/g)||[]};
g.Kp=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Lp=function(a,b){return a.classList?a.classList.contains(b):g.Wb(Jp(a),b)};
g.Mp=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Lp(a,b)){var c=Qla(a);g.Kp(a,c+(c.length>0?" "+b:b))}};
g.Np=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Mp(a,e)});
else{var c={};Array.prototype.forEach.call(Jp(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.Kp(a,b)}};
g.Op=function(a,b){a.classList?a.classList.remove(b):g.Lp(a,b)&&g.Kp(a,Array.prototype.filter.call(Jp(a),function(c){return c!=b}).join(" "))};
g.Pp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Op(a,c)}):g.Kp(a,Array.prototype.filter.call(Jp(a),function(c){return!g.Wb(b,c)}).join(" "))};
g.Qp=function(a,b,c){c?g.Mp(a,b):g.Op(a,b)};
Rla=function(a,b){var c=!g.Lp(a,b);g.Qp(a,b,c)};
g.Rp=function(){g.qi.call(this);this.j=0;this.endTime=this.startTime=null};
Sla=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.Fm(a,"transition",b.join(","))};
Sp=function(a,b,c,d,e){g.Rp.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
Tla=function(a,b,c,d){return new Sp(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
Vla=function(a){a=zb(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 Ula))return null}return a};
Tp=function(a,b){a=g.Na[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
Wla=function(a){var b=g.Na.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
Xla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Hm&&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)};
cma=function(a){if(!a)return xea(Yla);var b=document.createElement("div").style;Zla(a).forEach(function(c){var d=g.mh&&c in $la?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");vb(d,"--")||vb(d,"var")||(c=Xla(ama,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=Vla(c),c!=null&&Xla(bma,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return b.cssText||""};
Zla=function(a){g.Sa(a)?a=g.ac(a):(a=g.Og(a),g.Yb(a,"cssText"));return a};
g.Vp=function(a){var b,c=b=0,d=!1;a=a.split(dma);for(var e=0;e<a.length;e++){var f=a[e];g.Up.test(f)?(b++,c++):ema.test(f)?d=!0:fma.test(f)?c++:gma.test(f)&&(d=!0)}b=c==0?d?1:0:b/c>.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"};
g.Zp=function(a){if(a instanceof Wp||a instanceof Xp||a instanceof Yp)return a;if(typeof a.next=="function")return new Wp(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new Wp(function(){return a[Symbol.iterator]()});
if(typeof a.Km=="function")return new Wp(function(){return a.Km()});
throw Error("Not an iterator or iterable.");};
Wp=function(a){this.B=a};
Xp=function(a){this.B=a};
Yp=function(a){Wp.call(this,function(){return a});
this.C=a};
$p=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};
aq=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Dg(a.j,a.x1,b),d=Dg(a.x1,a.x2,b);a=Dg(a.x2,a.B,b);c=Dg(c,d,b);d=Dg(d,a,b);return Dg(c,d,b)};
hma=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=aq(a,c);var l=(aq(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=aq(a,c);return c};
bq=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
cq=function(a){return(a=a.exec(g.Cb()))?a[1]:""};
dq=function(a){return g.Bb(ima,a)>=0};
g.eq=function(a){g.O.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
jma=function(a,b,c){g.zi(function(){a.apply(b,c)})};
g.fq=function(a){this.j=a};
gq=function(a){this.j=a};
kma=function(a){this.data=a};
lma=function(a){return a===void 0||a instanceof kma?a:new kma(a)};
hq=function(a){this.j=a};
g.mma=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Za()||!!b&&b>g.Za()};
g.iq=function(a){this.j=a};
nma=function(){};
jq=function(){};
kq=function(a){this.j=a;this.B=null};
lq=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||sb(Error("Storage mechanism: Storage unavailable"))};
mq=function(){var a=null;try{a=g.Na.localStorage||null}catch(b){}kq.call(this,a)};
oma=function(){var a=null;try{a=g.Na.sessionStorage||null}catch(b){}kq.call(this,a)};
nq=function(a,b){this.B=a;this.j=b+"::"};
g.oq=function(a){var b=new mq;return b.isAvailable()?a?new nq(b,a):b:null};
pq=function(a,b){this.j=a;this.B=b};
qq=function(a){this.j=[];if(a)a:{if(a instanceof qq){var b=a.Go();a=a.fn();if(this.j.length<=0){for(var c=this.j,d=0;d<b.length;d++)c.push(new pq(b[d],a[d]));break a}}else b=g.Og(a),a=g.Ng(a);for(c=0;c<b.length;c++)this.Nh(b[c],a[c])}};
rq=function(){qq.apply(this,arguments)};
sq=function(){};
pma=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 tq.Kz(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};
uq=function(a){for(var b=a.length;--b>=0;)a[b]=0};
vq=function(a,b,c,d,e){this.m3=a;this.e9=b;this.d9=c;this.J8=d;this.taa=e;this.PZ=a&&a.length};
wq=function(a,b){this.xY=a;this.KB=0;this.Uv=b};
xq=function(a,b){a.yg[a.pending++]=b&255;a.yg[a.pending++]=b>>>8&255};
yq=function(a,b,c){a.Ki>16-c?(a.Fj|=b<<a.Ki&65535,xq(a,a.Fj),a.Fj=b>>16-a.Ki,a.Ki+=c-16):(a.Fj|=b<<a.Ki&65535,a.Ki+=c)};
zq=function(a,b,c){yq(a,c[b*2],c[b*2+1])};
qma=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(--b>0);return c>>>1};
rma=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]=qma(d[e]++,e))};
sma=function(a){var b;for(b=0;b<286;b++)a.Ck[b*2]=0;for(b=0;b<30;b++)a.yx[b*2]=0;for(b=0;b<19;b++)a.bj[b*2]=0;a.Ck[512]=1;a.Rs=a.ZC=0;a.yn=a.matches=0};
tma=function(a){a.Ki>8?xq(a,a.Fj):a.Ki>0&&(a.yg[a.pending++]=a.Fj);a.Fj=0;a.Ki=0};
uma=function(a,b,c){tma(a);xq(a,c);xq(a,~c);tq.fA(a.yg,a.window,b,c,a.pending);a.pending+=c};
vma=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]};
Aq=function(a,b,c){for(var d=a.Ag[c],e=c<<1;e<=a.ys;){e<a.ys&&vma(b,a.Ag[e+1],a.Ag[e],a.depth)&&e++;if(vma(b,d,a.Ag[e],a.depth))break;a.Ag[c]=a.Ag[e];c=e;e<<=1}a.Ag[c]=d};
wma=function(a,b,c){var d=0;if(a.yn!==0){do{var e=a.yg[a.iF+d*2]<<8|a.yg[a.iF+d*2+1];var f=a.yg[a.KR+d];d++;if(e===0)zq(a,f,b);else{var h=Bq[f];zq(a,h+256+1,b);var l=Cq[h];l!==0&&(f-=Dq[h],yq(a,f,l));e--;h=e<256?Eq[e]:Eq[256+(e>>>7)];zq(a,h,c);l=Fq[h];l!==0&&(e-=Gq[h],yq(a,e,l))}}while(d<a.yn)}zq(a,256,b)};
Hq=function(a,b){var c=b.xY,d=b.Uv.m3,e=b.Uv.PZ,f=b.Uv.J8,h,l=-1;a.ys=0;a.ZA=573;for(h=0;h<f;h++)c[h*2]!==0?(a.Ag[++a.ys]=l=h,a.depth[h]=0):c[h*2+1]=0;for(;a.ys<2;){var m=a.Ag[++a.ys]=l<2?++l:0;c[m*2]=1;a.depth[m]=0;a.Rs--;e&&(a.ZC-=d[m*2+1])}b.KB=l;for(h=a.ys>>1;h>=1;h--)Aq(a,c,h);m=f;do h=a.Ag[1],a.Ag[1]=a.Ag[a.ys--],Aq(a,c,1),d=a.Ag[1],a.Ag[--a.ZA]=h,a.Ag[--a.ZA]=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.Ag[1]=m++,Aq(a,c,1);while(a.ys>=
2);a.Ag[--a.ZA]=a.Ag[1];h=b.xY;m=b.KB;d=b.Uv.m3;e=b.Uv.PZ;f=b.Uv.e9;var n=b.Uv.d9,p=b.Uv.taa,q,r=0;for(q=0;q<=15;q++)a.Nr[q]=0;h[a.Ag[a.ZA]*2+1]=0;for(b=a.ZA+1;b<573;b++){var t=a.Ag[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.Nr[q]++;var u=0;t>=n&&(u=f[t-n]);var y=h[t*2];a.Rs+=y*(q+u);e&&(a.ZC+=y*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.Nr[q]===0;)q--;a.Nr[q]--;a.Nr[q+1]+=2;a.Nr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.Nr[q];t!==0;)d=a.Ag[--b],d>m||(h[d*2+1]!==q&&(a.Rs+=(q-
h[d*2+1])*h[d*2],h[d*2+1]=q),t--)}rma(c,l,a.Nr)};
xma=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.bj[n*2]+=h:n!==0?(n!==e&&a.bj[n*2]++,a.bj[32]++):h<=10?a.bj[34]++:a.bj[36]++,h=0,e=n,f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
yma=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 zq(a,n,a.bj);while(--h!==0)}else n!==0?(n!==e&&(zq(a,n,a.bj),h--),zq(a,16,a.bj),yq(a,h-3,2)):h<=10?(zq(a,17,a.bj),yq(a,h-3,3)):(zq(a,18,a.bj),yq(a,h-11,7));h=0;e=n;f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
zma=function(a){var b=4093624447,c;for(c=0;c<=31;c++,b>>>=1)if(b&1&&a.Ck[c*2]!==0)return 0;if(a.Ck[18]!==0||a.Ck[20]!==0||a.Ck[26]!==0)return 1;for(c=32;c<256;c++)if(a.Ck[c*2]!==0)return 1;return 0};
Iq=function(a,b,c){a.yg[a.iF+a.yn*2]=b>>>8&255;a.yg[a.iF+a.yn*2+1]=b&255;a.yg[a.KR+a.yn]=c&255;a.yn++;b===0?a.Ck[c*2]++:(a.matches++,b--,a.Ck[(Bq[c]+256+1)*2]++,a.yx[(b<256?Eq[b]:Eq[256+(b>>>7)])*2]++);return a.yn===a.JG-1};
Kq=function(a,b){a.msg=Jq[b];return b};
Lq=function(a){for(var b=a.length;--b>=0;)a[b]=0};
Mq=function(a){var b=a.state,c=b.pending;c>a.Ne&&(c=a.Ne);c!==0&&(tq.fA(a.output,b.yg,b.xH,c,a.RB),a.RB+=c,b.xH+=c,a.XU+=c,a.Ne-=c,b.pending-=c,b.pending===0&&(b.xH=0))};
Pq=function(a,b){var c=a.Fl>=0?a.Fl:-1,d=a.Db-a.Fl,e=0;if(a.level>0){a.Be.NP===2&&(a.Be.NP=zma(a));Hq(a,a.vL);Hq(a,a.ZJ);xma(a,a.Ck,a.vL.KB);xma(a,a.yx,a.ZJ.KB);Hq(a,a.QX);for(e=18;e>=3&&a.bj[Ama[e]*2+1]===0;e--);a.Rs+=3*(e+1)+14;var f=a.Rs+3+7>>>3;var h=a.ZC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)yq(a,b?1:0,3),uma(a,c,d);else if(a.strategy===4||h===f)yq(a,2+(b?1:0),3),wma(a,Nq,Oq);else{yq(a,4+(b?1:0),3);c=a.vL.KB+1;d=a.ZJ.KB+1;e+=1;yq(a,c-257,5);yq(a,d-1,5);yq(a,e-4,4);for(f=0;f<e;f++)yq(a,
a.bj[Ama[f]*2+1],3);yma(a,a.Ck,c-1);yma(a,a.yx,d-1);wma(a,a.Ck,a.yx)}sma(a);b&&tma(a);a.Fl=a.Db;Mq(a.Be)};
Qq=function(a,b){a.yg[a.pending++]=b};
Rq=function(a,b){a.yg[a.pending++]=b>>>8&255;a.yg[a.pending++]=b&255};
Bma=function(a,b){var c=a.e0,d=a.Db,e=a.hm,f=a.A0,h=a.Db>a.yj-262?a.Db-(a.yj-262):0,l=a.window,m=a.gw,n=a.Vq,p=a.Db+258,q=l[d+e-1],r=l[d+e];a.hm>=a.vZ&&(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.IB=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};
Wq=function(a){var b=a.yj,c;do{var d=a.v4-a.jc-a.Db;if(a.Db>=b+(b-262)){tq.fA(a.window,a.window,b,b,0);a.IB-=b;a.Db-=b;a.Fl-=b;var e=c=a.cL;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Vq[--e],a.Vq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.Be.Dj===0)break;e=a.Be;c=a.window;f=a.Db+a.jc;var h=e.Dj;h>d&&(h=d);h===0?c=0:(e.Dj-=h,tq.fA(c,e.input,e.Hy,h,f),e.state.wrap===1?e.Ud=Sq(e.Ud,c,h,f):e.state.wrap===2&&(e.Ud=Tq(e.Ud,c,h,f)),e.Hy+=h,e.Dz+=h,c=h);a.jc+=c;if(a.jc+a.Nh>=3)for(d=a.Db-a.Nh,
a.He=a.window[d],a.He=(a.He<<a.xs^a.window[d+1])&a.ws;a.Nh&&!(a.He=(a.He<<a.xs^a.window[d+3-1])&a.ws,a.Vq[d&a.gw]=a.head[a.He],a.head[a.He]=d,d++,a.Nh--,a.jc+a.Nh<3););}while(a.jc<262&&a.Be.Dj!==0)};
Xq=function(a,b){for(var c;;){if(a.jc<262){Wq(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.He=(a.He<<a.xs^a.window[a.Db+3-1])&a.ws,c=a.Vq[a.Db&a.gw]=a.head[a.He],a.head[a.He]=a.Db);c!==0&&a.Db-c<=a.yj-262&&(a.Xe=Bma(a,c));if(a.Xe>=3)if(c=Iq(a,a.Db-a.IB,a.Xe-3),a.jc-=a.Xe,a.Xe<=a.XR&&a.jc>=3){a.Xe--;do a.Db++,a.He=(a.He<<a.xs^a.window[a.Db+3-1])&a.ws,a.Vq[a.Db&a.gw]=a.head[a.He],a.head[a.He]=a.Db;while(--a.Xe!==0);a.Db++}else a.Db+=a.Xe,a.Xe=0,a.He=a.window[a.Db],a.He=(a.He<<a.xs^
a.window[a.Db+1])&a.ws;else c=Iq(a,0,a.window[a.Db]),a.jc--,a.Db++;if(c&&(Pq(a,!1),a.Be.Ne===0))return 1}a.Nh=a.Db<2?a.Db:2;return b===4?(Pq(a,!0),a.Be.Ne===0?3:4):a.yn&&(Pq(a,!1),a.Be.Ne===0)?1:2};
Yq=function(a,b){for(var c,d;;){if(a.jc<262){Wq(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.He=(a.He<<a.xs^a.window[a.Db+3-1])&a.ws,c=a.Vq[a.Db&a.gw]=a.head[a.He],a.head[a.He]=a.Db);a.hm=a.Xe;a.U1=a.IB;a.Xe=2;c!==0&&a.hm<a.XR&&a.Db-c<=a.yj-262&&(a.Xe=Bma(a,c),a.Xe<=5&&(a.strategy===1||a.Xe===3&&a.Db-a.IB>4096)&&(a.Xe=2));if(a.hm>=3&&a.Xe<=a.hm){d=a.Db+a.jc-3;c=Iq(a,a.Db-1-a.U1,a.hm-3);a.jc-=a.hm-1;a.hm-=2;do++a.Db<=d&&(a.He=(a.He<<a.xs^a.window[a.Db+3-1])&a.ws,a.Vq[a.Db&a.gw]=
a.head[a.He],a.head[a.He]=a.Db);while(--a.hm!==0);a.Ay=0;a.Xe=2;a.Db++;if(c&&(Pq(a,!1),a.Be.Ne===0))return 1}else if(a.Ay){if((c=Iq(a,0,a.window[a.Db-1]))&&Pq(a,!1),a.Db++,a.jc--,a.Be.Ne===0)return 1}else a.Ay=1,a.Db++,a.jc--}a.Ay&&(Iq(a,0,a.window[a.Db-1]),a.Ay=0);a.Nh=a.Db<2?a.Db:2;return b===4?(Pq(a,!0),a.Be.Ne===0?3:4):a.yn&&(Pq(a,!1),a.Be.Ne===0)?1:2};
Cma=function(a,b){for(var c,d,e,f=a.window;;){if(a.jc<=258){Wq(a);if(a.jc<=258&&b===0)return 1;if(a.jc===0)break}a.Xe=0;if(a.jc>=3&&a.Db>0&&(d=a.Db-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Db+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.Xe=258-(e-d);a.Xe>a.jc&&(a.Xe=a.jc)}a.Xe>=3?(c=Iq(a,1,a.Xe-3),a.jc-=a.Xe,a.Db+=a.Xe,a.Xe=0):(c=Iq(a,0,a.window[a.Db]),a.jc--,a.Db++);if(c&&(Pq(a,!1),a.Be.Ne===0))return 1}a.Nh=0;return b===
4?(Pq(a,!0),a.Be.Ne===0?3:4):a.yn&&(Pq(a,!1),a.Be.Ne===0)?1:2};
Dma=function(a,b){for(var c;;){if(a.jc===0&&(Wq(a),a.jc===0)){if(b===0)return 1;break}a.Xe=0;c=Iq(a,0,a.window[a.Db]);a.jc--;a.Db++;if(c&&(Pq(a,!1),a.Be.Ne===0))return 1}a.Nh=0;return b===4?(Pq(a,!0),a.Be.Ne===0?3:4):a.yn&&(Pq(a,!1),a.Be.Ne===0)?1:2};
Zq=function(a,b,c,d,e){this.W9=a;this.saa=b;this.Haa=c;this.raa=d;this.func=e};
Ema=function(){this.Be=null;this.status=0;this.yg=null;this.wrap=this.pending=this.xH=this.Dn=0;this.Qd=null;this.Ko=0;this.method=8;this.yB=-1;this.gw=this.oV=this.yj=0;this.window=null;this.v4=0;this.head=this.Vq=null;this.A0=this.vZ=this.strategy=this.level=this.XR=this.e0=this.hm=this.jc=this.IB=this.Db=this.Ay=this.U1=this.Xe=this.Fl=this.xs=this.ws=this.gR=this.cL=this.He=0;this.Ck=new tq.Er(1146);this.yx=new tq.Er(122);this.bj=new tq.Er(78);Lq(this.Ck);Lq(this.yx);Lq(this.bj);this.QX=this.ZJ=
this.vL=null;this.Nr=new tq.Er(16);this.Ag=new tq.Er(573);Lq(this.Ag);this.ZA=this.ys=0;this.depth=new tq.Er(573);Lq(this.depth);this.Ki=this.Fj=this.Nh=this.matches=this.ZC=this.Rs=this.iF=this.yn=this.JG=this.KR=0};
Fma=function(a,b){if(!a||!a.state||b>5||b<0)return a?Kq(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.Dj!==0||c.status===666&&b!==4)return Kq(a,a.Ne===0?-5:-2);c.Be=a;var d=c.yB;c.yB=b;if(c.status===42)if(c.wrap===2)a.Ud=0,Qq(c,31),Qq(c,139),Qq(c,8),c.Qd?(Qq(c,(c.Qd.text?1:0)+(c.Qd.Ju?2:0)+(c.Qd.extra?4:0)+(c.Qd.name?8:0)+(c.Qd.comment?16:0)),Qq(c,c.Qd.time&255),Qq(c,c.Qd.time>>8&255),Qq(c,c.Qd.time>>16&255),Qq(c,c.Qd.time>>24&255),Qq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Qq(c,c.Qd.os&
255),c.Qd.extra&&c.Qd.extra.length&&(Qq(c,c.Qd.extra.length&255),Qq(c,c.Qd.extra.length>>8&255)),c.Qd.Ju&&(a.Ud=Tq(a.Ud,c.yg,c.pending,0)),c.Ko=0,c.status=69):(Qq(c,0),Qq(c,0),Qq(c,0),Qq(c,0),Qq(c,0),Qq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Qq(c,3),c.status=113);else{var e=8+(c.oV-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Db!==0&&(e|=32);c.status=113;Rq(c,e+(31-e%31));c.Db!==0&&(Rq(c,a.Ud>>>16),Rq(c,a.Ud&65535));a.Ud=1}if(c.status===69)if(c.Qd.extra){for(e=
c.pending;c.Ko<(c.Qd.extra.length&65535)&&(c.pending!==c.Dn||(c.Qd.Ju&&c.pending>e&&(a.Ud=Tq(a.Ud,c.yg,c.pending-e,e)),Mq(a),e=c.pending,c.pending!==c.Dn));)Qq(c,c.Qd.extra[c.Ko]&255),c.Ko++;c.Qd.Ju&&c.pending>e&&(a.Ud=Tq(a.Ud,c.yg,c.pending-e,e));c.Ko===c.Qd.extra.length&&(c.Ko=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Qd.name){e=c.pending;do{if(c.pending===c.Dn&&(c.Qd.Ju&&c.pending>e&&(a.Ud=Tq(a.Ud,c.yg,c.pending-e,e)),Mq(a),e=c.pending,c.pending===c.Dn)){var f=1;break}f=c.Ko<c.Qd.name.length?
c.Qd.name.charCodeAt(c.Ko++)&255:0;Qq(c,f)}while(f!==0);c.Qd.Ju&&c.pending>e&&(a.Ud=Tq(a.Ud,c.yg,c.pending-e,e));f===0&&(c.Ko=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Qd.comment){e=c.pending;do{if(c.pending===c.Dn&&(c.Qd.Ju&&c.pending>e&&(a.Ud=Tq(a.Ud,c.yg,c.pending-e,e)),Mq(a),e=c.pending,c.pending===c.Dn)){f=1;break}f=c.Ko<c.Qd.comment.length?c.Qd.comment.charCodeAt(c.Ko++)&255:0;Qq(c,f)}while(f!==0);c.Qd.Ju&&c.pending>e&&(a.Ud=Tq(a.Ud,c.yg,c.pending-e,e));f===0&&(c.status=103)}else c.status=
103;c.status===103&&(c.Qd.Ju?(c.pending+2>c.Dn&&Mq(a),c.pending+2<=c.Dn&&(Qq(c,a.Ud&255),Qq(c,a.Ud>>8&255),a.Ud=0,c.status=113)):c.status=113);if(c.pending!==0){if(Mq(a),a.Ne===0)return c.yB=-1,0}else if(a.Dj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return Kq(a,-5);if(c.status===666&&a.Dj!==0)return Kq(a,-5);if(a.Dj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?Dma(c,b):c.strategy===3?Cma(c,b):$q[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Ne===0&&(c.yB=
-1),0;if(d===2&&(b===1?(yq(c,2,3),zq(c,256,Nq),c.Ki===16?(xq(c,c.Fj),c.Fj=0,c.Ki=0):c.Ki>=8&&(c.yg[c.pending++]=c.Fj&255,c.Fj>>=8,c.Ki-=8)):b!==5&&(yq(c,0,3),uma(c,0,0),b===3&&(Lq(c.head),c.jc===0&&(c.Db=0,c.Fl=0,c.Nh=0))),Mq(a),a.Ne===0))return c.yB=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(Qq(c,a.Ud&255),Qq(c,a.Ud>>8&255),Qq(c,a.Ud>>16&255),Qq(c,a.Ud>>24&255),Qq(c,a.Dz&255),Qq(c,a.Dz>>8&255),Qq(c,a.Dz>>16&255),Qq(c,a.Dz>>24&255)):(Rq(c,a.Ud>>>16),Rq(c,a.Ud&65535));Mq(a);c.wrap>0&&
(c.wrap=-c.wrap);return c.pending!==0?0:1};
ar=function(a){if(!(this instanceof ar))return new ar(a);a=this.options=tq.assign({level:-1,method:8,chunkSize:16384,jw:15,yaa:8,strategy:0,to:""},a||{});a.raw&&a.jw>0?a.jw=-a.jw:a.X9&&a.jw>0&&a.jw<16&&(a.jw+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Be=new Gma;this.Be.Ne=0;var b=this.Be;var c=a.level,d=a.method,e=a.jw,f=a.yaa,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=Kq(b,-2);else{e===8&&(e=9);
var m=new Ema;b.state=m;m.Be=b;m.wrap=l;m.Qd=null;m.oV=e;m.yj=1<<m.oV;m.gw=m.yj-1;m.gR=f+7;m.cL=1<<m.gR;m.ws=m.cL-1;m.xs=~~((m.gR+3-1)/3);m.window=new tq.Kz(m.yj*2);m.head=new tq.Er(m.cL);m.Vq=new tq.Er(m.yj);m.JG=1<<f+6;m.Dn=m.JG*4;m.yg=new tq.Kz(m.Dn);m.iF=1*m.JG;m.KR=3*m.JG;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Dz=b.XU=0;b.NP=2;c=b.state;c.pending=0;c.xH=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Ud=c.wrap===2?0:1;c.yB=0;if(!Hma){d=Array(16);for(f=h=0;f<28;f++)for(Dq[f]=
h,e=0;e<1<<Cq[f];e++)Bq[h++]=f;Bq[h-1]=f;for(f=h=0;f<16;f++)for(Gq[f]=h,e=0;e<1<<Fq[f];e++)Eq[h++]=f;for(h>>=7;f<30;f++)for(Gq[f]=h<<7,e=0;e<1<<Fq[f]-7;e++)Eq[256+h++]=f;for(e=0;e<=15;e++)d[e]=0;for(e=0;e<=143;)Nq[e*2+1]=8,e++,d[8]++;for(;e<=255;)Nq[e*2+1]=9,e++,d[9]++;for(;e<=279;)Nq[e*2+1]=7,e++,d[7]++;for(;e<=287;)Nq[e*2+1]=8,e++,d[8]++;rma(Nq,287,d);for(e=0;e<30;e++)Oq[e*2+1]=5,Oq[e*2]=qma(e,5);Ima=new vq(Nq,Cq,257,286,15);Jma=new vq(Oq,Fq,0,30,15);Kma=new vq([],Lma,0,19,7);Hma=!0}c.vL=new wq(c.Ck,
Ima);c.ZJ=new wq(c.yx,Jma);c.QX=new wq(c.bj,Kma);c.Fj=0;c.Ki=0;sma(c);c=0}else c=Kq(b,-2);c===0&&(b=b.state,b.v4=2*b.yj,Lq(b.head),b.XR=$q[b.level].saa,b.vZ=$q[b.level].W9,b.A0=$q[b.level].Haa,b.e0=$q[b.level].raa,b.Db=0,b.Fl=0,b.jc=0,b.Nh=0,b.Xe=b.hm=2,b.Ay=0,b.He=0);b=c}}else b=-2;if(b!==0)throw Error(Jq[b]);a.header&&(b=this.Be)&&b.state&&b.state.wrap===2&&(b.state.Qd=a.header);if(a.jF){var n;typeof a.jF==="string"?n=pma(a.jF):Mma.call(a.jF)==="[object ArrayBuffer]"?n=new Uint8Array(a.jF):n=a.jF;
a=this.Be;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.Ud=Sq(a.Ud,f,h,0));n.wrap=0;h>=n.yj&&(b===0&&(Lq(n.head),n.Db=0,n.Fl=0,n.Nh=0),c=new tq.Kz(n.yj),tq.fA(c,f,h-n.yj,n.yj,0),f=c,h=n.yj);c=a.Dj;d=a.Hy;e=a.input;a.Dj=h;a.Hy=0;a.input=f;for(Wq(n);n.jc>=3;){f=n.Db;h=n.jc-2;do n.He=(n.He<<n.xs^n.window[f+3-1])&n.ws,n.Vq[f&n.gw]=n.head[n.He],n.head[n.He]=f,f++;while(--h);n.Db=f;n.jc=2;Wq(n)}n.Db+=n.jc;n.Fl=n.Db;n.Nh=n.jc;n.jc=0;n.Xe=n.hm=2;
n.Ay=0;a.Hy=d;a.input=e;a.Dj=c;n.wrap=b;b=0}else b=-2;if(b!==0)throw Error(Jq[b]);this.ina=!0}};
Nma=function(a,b){b=b||{};b.X9=!0;b=new ar(b);b.push(a,!0);if(b.err)throw b.msg||Jq[b.err];return b.result};
Oma=function(){var a=g.Ea.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.x(g.Ea.apply(0,arguments))))}})};
Pma=function(){var a=g.Ea.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.x(g.Ea.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Oma.apply(null,g.x(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
br=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Qma=function(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:cr})==="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"+br()})==="undefined")throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(cr+'\' 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.'));})};
Rma=function(a,b,c){function d(){if(p)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 l}
function e(t){if(typeof t!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(p)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;n===m&&(n=m.slice());n.push(t);return function(){if(u){if(p)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;n===m&&(n=m.slice());n.splice(n.indexOf(t),1);m=null}}}
function f(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(p)throw Error("Reducers may not dispatch actions.");try{p=!0,l=h(l,t)}finally{p=!1}u=m=n;for(var y=0;y<u.length;y++)(0,u[y])();return t}
if(typeof b==="function"&&typeof c==="function"||typeof c==="function"&&typeof arguments[3]==="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(Rma)(a,b)}if(typeof a!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var h=a,l=b,m=[],n=m,p=!1;f({type:cr});var q={},r=(q.dispatch=f,q.subscribe=e,q.getState=d,q.replaceReducer=function(t){if(typeof t!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);h=t;f({type:Sma});return r},q[Tma]=function(){var t={};
return t.subscribe=function(u){function y(){u.next&&u.next(d())}
if(typeof u!=="object"||u===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof u+"'");y();return{unsubscribe:e(y)}},t[Tma]=function(){return this},t},q);
return r};
Uma=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Uda(a):null:null};
dr=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Nf(a):null:null};
Wma=function(a){a=Vma(a);return $f(a)};
g.er=function(a){a=Vma(a);return Nf(a)};
Vma=function(a){return a===null?"null":a===void 0?"undefined":a};
fr=function(a){this.tb=Fd(a)};
Xma=function(a){var b=a.split(a.slice(0,0)),c=[363653379,"'[)',;\\",function(d,e,f,h,l){return e(f,h,l)},
1113367077,-409273730,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
null,441020070,-2007371991,function(d,e){e.splice(e.length,0,d)},
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},
-1216778448,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},
-329954933,1369451833,-329954933,-1191310578,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},
b,-691101175,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(""))},
-1273877184,1731258518,null,-929727343,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-1886034129,function(d,e,f,h,l,m){return e(h,l,m)},
2044646332,function(d){d.reverse()},
615450394,509724367,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
674759588,b,-2003818047,1504719107,459878597,function(d,e,f,h,l,m,n){return d(l,m,n)},
-163335612,941076619,-970528523,1626253493,1474351052,1525347369,-181705502,/([/,75,/]};)("[']{)/,-1422188636,function(d,e){e.push(d)},
313931005,108975782,1735927563,1242806146,-260711137,841444322,1430843716,function(d,e){if(e.length!=0){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
-1307690786,-1651949119,'/},",',847174944,1211393421,1525347369,-647324045,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
-562373322,510366485,-860306488,null,-1563515568,-1957409445,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]))},
-1820225748,-645540125,-863196528,"dBmlteE",1353592179,-902041632,-1477976442,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
-621929454,2016767166,362553760,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},
-1298930270,-260711137,b];c[6]=c;c[23]=c;c[68]=c;try{try{c[39]<=-2&&(c[82]!==-10?(0,c[64])(c[68],c[40]):(0,c[47])(c[52],c[2])),c[new Date("1969-12-31T17:46:14.000-06:15")/1E3]!=-10&&(c[8]==1&&(((0,c[47])(c[19],c[new Date("1970-01-01T07:46:13.000+07:45")/1E3]),c[75])((0,c[65])(),c[54],c[-5807+new Date("1969-12-31T21:07:30.000-04:30")/1E3]),1)||(0,c[57])((0,c[60])(c[73],c[13]),c[47],c[7],c[73])),c[8]>=6&&(c[34]==4?(((0,c[57])((0,c[75])((0,c[72])(),c[54],c[43]),c[Math.pow(4,new Date("1969-12-31T14:15:05.000-09:45")/
1E3)+2+-951],(0,c[72])(),c[2],c[43]),c[0])(c[73]),c[75])((0,c[51])(),c[2],c[43]):(0,c[6])(c[32],(0,c[80])(c[61]),(0,c[6])(c[50]),(0,c[60])(c[2],c[50]),c[73],c[41]))}catch(d){(0,c[57])(((0,c[32])(c[54],c[71]),c[32])(c[61],c[81]),c[75],(0,c[51])(),c[73],c[43])}try{(c[25]===6||((((0,c[82])((0,c[60])(c[73],c[22]),c[39],(0,c[32])(c[36],c[63]),c[12],c[62]),(0,c[15])(c[37],c[66]),c[67])(c[11],c[65])&(0,c[36])(c[37],c[2]),(0,c[59])((0,c[35])(),c[73],c[27]),c[16])(c[38],c[81]),(0,c[68])(c[38]),(0,c[23])(c[45],
c[24]),0))&&(((((0,c[59])((0,c[49])(),c[38],c[27]),c[31])(c[12],c[62]),c[68])(c[57]),(0,c[new Date("1970-01-01T11:30:59.000+11:30")/1E3])((0,c[51])(),c[73],c[27]),c[23])(c[62],c[26]),(0,c[31])(c[42],c[38]),(0,c[41])((0,c[59])((0,c[35])(),c[57],c[27]),c[68],c[20]),(0,c[59])((0,c[56])(),c[73],c[27]),c[59])((0,c[56])(),c[73],c[27]),c[77884-new Date("1970-01-01T09:15:19.000+09:15")/1E3*4096]!=-2&&(c[new Date("1970-01-01T10:15:42.000+10:15")/1E3]>=4&&((((0,c[48])(c[78],c[62]),c[44])(c[20],c[21]),c[79])(c[25],
c[35]),1)||((0,c[43])(c[40],c[6]),c[9])((0,c[27])((0,c[3])(),c[41],c[83]),c[39],c[13]))}catch(d){(0,c[27])((0,c[new Date("1970-01-01T01:45:03.000+01:45")/1E3])(),c[new Date("1970-01-01T07:45:41.000+07:45")/1E3],c[83]),(0,c[87])(c[73],c[25])}finally{c[81]!=2&&(c[80]===-4||((0,c[43])(c[69],c[25]),0))&&(0,c[27])((0,c[19])(),c[6],c[83]),c[28]==6?(0,c[45])(c[27],(0,c[43])(c[58],c[13]),(0,c[39])(c[76]),(0,c[87])(c[28],c[25]),(0,c[3])(),c[6],c[83]):(0,c[9])((0,c[9])((0,c[12])(c[13],c[21])&(0,c[69])(c[70],
c[34]),c[39],c[13]),c[50],c[51],c[20]),c[77]>=3&&(c[82]<=6&&((((0,c[19])(c[20],c[77]),c[1])((0,c[35])(c[78],c[5]),c[35],c[76],c[5]),(0,c[71])(c[5],c[80]),c[4])(c[5],c[3]),1)||((((0,c[33])((0,c[9])(),c[47],c[1]),c[45])(c[36]),(0,c[85])(c[47],c[41]),c[5])(c[54],c[87]),c[33])((0,c[23])(),c[31],c[1])),c[50]<=6&&(((0,c[5])(c[67],c[87]),c[5])(c[69],c[31]),"2")||((0,c[18])(c[87],c[66]),c[18])(c[31],c[3]),c[86]<new Date("1969-12-31T21:14:54.000-02:45")/1E3&&(c[50]==-4&&((0,c[15])(((0,c[15])((0,c[5])(c[43],
c[87]),c[5],c[35],c[87]),c[15])((0,c[78])(c[36],c[13]),c[5],c[84],c[31]),c[49],c[20],c[47]),"NaN")||(((0,c[85])(c[82],c[63]),(0,c[78])(c[19],c[24]),c[74])(c[62],c[35]),(0,c[31])((0,c[34])(c[63],c[5]),c[13],c[15],c[8]))),c[62]>-9&&(c[29]!==6||((((0,c[31])((0,c[49])((0,c[41])(),c[15],c[17]),c[49],(0,c[25])(),c[63],c[17]),c[65])(c[55],c[15]),c[21])(c[48],c[new Date("1969-12-31T20:15:15.000-03:45")/1E3]),0))&&(((0,c[65])(c[76],c[15]),c[65])(c[53],c[47]),(0,c[6])(c[47],c[72]),c[65])(c[23],c[47])}}catch(d){return"enhanced_except_pZwB2uP-_w8_"+
a}return b.join("")};
g.gr=function(a){this.name=a};
Yma=function(a){this.tb=Fd(a)};
hr=function(a){this.tb=Fd(a)};
ir=function(a){this.tb=Fd(a)};
Zma=function(a){this.tb=Fd(a)};
jr=function(a){this.tb=Fd(a)};
kr=function(a){this.tb=Fd(a)};
lr=function(a){this.tb=Fd(a)};
mr=function(a){this.tb=Fd(a)};
nr=function(a){this.tb=Fd(a)};
or=function(a){this.tb=Fd(a)};
pr=function(a){this.tb=Fd(a)};
qr=function(a){this.tb=Fd(a)};
rr=function(a){this.tb=Fd(a)};
sr=function(a){this.tb=Fd(a)};
tr=function(a){this.tb=Fd(a)};
ur=function(a){this.tb=Fd(a,497)};
vr=function(a){this.tb=Fd(a)};
wr=function(a){this.tb=Fd(a)};
$ma=function(a){this.tb=Fd(a)};
ana=function(){return g.Pa("yt.ads.biscotti.lastId_")||""};
bna=function(a){g.Oa("yt.ads.biscotti.lastId_",a)};
yr=function(){var a=arguments,b=xr;a.length>1?b[a[0]]=a[1]:a.length===1&&Object.assign(b,a[0])};
g.zr=function(a,b){return a in xr?xr[a]:b};
Ar=function(a){var b=xr.EXPERIMENT_FLAGS;return b?b[a]:void 0};
cna=function(a){Br.forEach(function(b){return b(a)})};
g.Dr=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.Cr(b)}}:a};
g.Cr=function(a){var b=g.Pa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.zr("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),yr("ERRORS",b));cna(a)};
Er=function(a,b,c,d,e){var f=g.Pa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.zr("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),yr("ERRORS",f))};
Fr=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=dna(f[0]||""),l=dna(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.bc(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(Fr);n.args=[{key:p,value:f[1],query:a,method:ena===q?"unchanged":q}];fna.hasOwnProperty(p)||Er(n)}}return c};
Gr=function(a){var b=[];g.Ig(a,function(c,d){var e=g.lg(d);g.lc(Array.isArray(c)?c:[c],function(f){f==""?b.push(e):b.push(e+"="+g.lg(f))})});
return b.join("&")};
Hr=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return Fr(a,"&")};
Ir=function(a){return a.split(",").map(function(b){return Hr(b)})};
g.Jr=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),Hr(a.length>1?a[1]:a[0])):{}};
g.Kr=function(a,b){return gna(a,b||{},!0)};
Lr=function(a,b){return gna(a,b||{},!1)};
gna=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=Hr(e[1]||"");for(var f in b)if(c||!g.Pg(e,f))e[f]=b[f];return g.gj(a,e)+d};
Mr=function(a){if(!b)var b=window.location.href;var c=g.$i(1,a),d=g.aj(a);c&&d?(a=a.match(Zi),b=b.match(Zi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.aj(b)===d&&(Number(g.$i(4,b))||null)===(Number(g.$i(4,a))||null):!0;return a};
Nr=function(a){a||(a=document.location.href);a=g.$i(1,a);return a!==null&&a==="https"};
Or=function(a){a=hna(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
ina=function(a){a=hna(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};
hna=function(a){a=g.aj(a);return a!==null?a.split(".").reverse():null};
dna=function(a){return a&&a.match(jna)?a:mg(a)};
Rr=function(a){var b=Pr;a=a===void 0?ana():a;var c=Object,d=c.assign,e=Qr(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 y=f.screen.availTop}catch(C){}f=[r,t,h,l,u,y,m,n,p,q];h=Eia(!1,b.j.top);l={};var A=A===void 0?g.Na:A;m=new yp;"SVGElement"in A&&"createElementNS"in
A.document&&m.set(0);n=Qha();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=Nla(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Hl(b.B),l.wgl=!!El.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Qr=function(a){var b={};b.dt=kna;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?El:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=El.screen)==null?void 0:f.height;var h;b.u_w=(h=El.screen)==null?void 0:h.width;var l;b.u_ah=(l=El.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=El.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=El.screen)==null?void 0:
n.colorDepth}catch(p){}return b};
mna=function(){if(!lna)return null;var a=lna();return"open"in a?a:null};
g.Tr=function(a){switch(Sr(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Sr=function(a){return a&&"status"in a?a.status:-1};
g.Ur=function(a,b){typeof a==="function"&&(a=g.Dr(a));return window.setTimeout(a,b)};
g.Vr=function(a,b){typeof a==="function"&&(a=g.Dr(a));return window.setInterval(a,b)};
g.Wr=function(a){window.clearTimeout(a)};
g.Xr=function(a){window.clearInterval(a)};
g.Zr=function(a){a=Yr(a);return typeof a==="string"&&a==="false"?!1:!!a};
g.$r=function(a,b){a=Yr(a);return a===void 0&&b!==void 0?b:Number(a||0)};
as=function(){return g.zr("EXPERIMENTS_TOKEN","")};
Yr=function(a){return g.zr("EXPERIMENT_FLAGS",{})[a]};
bs=function(){for(var a=[],b=g.zr("EXPERIMENTS_FORCED_FLAGS",{}),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.zr("EXPERIMENT_FLAGS",{});d=g.w(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};
cs=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.Dr(b)(n)}
c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=mna();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.Zr("debug_forward_web_query_parameters")&&(a=nna(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=ona(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){Er(q)}}n.send(d);return n};
ona=function(a,b){b=b===void 0?{}:b;var c=Mr(a),d=g.zr("INNERTUBE_CLIENT_NAME"),e=g.Zr("web_ajax_ignore_global_headers_if_set"),f;for(f in pna){var h=g.zr(pna[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.zr("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.aj(a)?!1:!0))){m=a;var n;if(n=g.Zr("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&ina(m))m=Yi(g.$i(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.aj(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.aj(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.aj(a)||(b["X-YouTube-Ad-Signals"]=
Gr(Rr()));return b};
rna=function(a,b){var c=g.aj(a);g.Zr("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Mr(a)&&(c=document.location.hostname);var d=Yi(g.$i(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=Hr(b),f={};g.lc(qna,function(h){e[h]&&(f[h]=e[h])});
return Lr(a,f)};
es=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.ds(a,b)};
una=function(a,b){if(window.fetch&&b.format!=="XML"){var c={method:b.method||"GET",credentials:"same-origin"};b.headers&&(c.headers=b.headers);b.priority&&(c.priority=b.priority);a=sna(a,b);var d=tna(a,b);d&&(c.body=d);b.withCredentials&&(c.credentials="include");var e=b.context||g.Na,f=!1,h;fetch(a,c).then(function(l){if(!f){f=!0;h&&g.Wr(h);var m=l.ok,n=function(p){p=p||{};m?b.onSuccess&&b.onSuccess.call(e,p,l):b.onError&&b.onError.call(e,p,l);b.onFinish&&b.onFinish.call(e,p,l)};
(b.format||"JSON")==="JSON"&&(m||l.status>=400&&l.status<500)?l.json().then(n,function(){n(null)}):n(null)}}).catch(function(){b.onError&&b.onError.call(e,{},{})});
a=b.timeout||0;b.onFetchTimeout&&a>0&&(h=g.Ur(function(){f||(f=!0,g.Wr(h),b.onFetchTimeout.call(b.context||g.Na))},a))}else g.ds(a,b)};
g.ds=function(a,b){var c=b.format||"JSON";a=sna(a,b);var d=tna(a,b),e=!1,f=vna(a,function(m){if(!e){e=!0;l&&g.Wr(l);var n=g.Tr(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=wna(a,c,m,b.convertToSafeHtml);n&&(n=xna(c,m,p));p=p||{};q=b.context||g.Na;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.Ur(function(){e||(e=!0,f.abort(),g.Wr(l),h.call(b.context||g.Na,f))},d)}return f};
sna=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.zr("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=g.Kr(a,b);return a};
tna=function(a,b){var c=g.zr("XSRF_FIELD_NAME"),d=g.zr("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.zr("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.aj(a)&&!b.withCredentials&&g.aj(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.Zr("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=Hr(e),g.$g(e,f),e=b.postBodyFormat&&
b.postBodyFormat==="JSON"?JSON.stringify(e):g.fj(e));f=e||f&&!g.Sg(f);!yna&&f&&b.method!=="POST"&&(yna=!0,g.Cr(Error("AJAX request with postData should use POST")));return e};
wna=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,Er(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)?zna(a):null)e={},g.lc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Ana(h)})}d&&Bna(e);
return e};
Bna=function(a){if(g.Ta(a))for(var b in a)b==="html_content"||Raa(b,"_html")?a[b]=$f(a[b]):Bna(a[b])};
xna=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}};
zna=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
Ana=function(a){var b="";g.lc(a.childNodes,function(c){b+=c.nodeValue});
return b};
gs=function(a,b){var c=g.Yg(b),d;return(new g.Fi(function(e,f){c.onSuccess=function(h){g.Tr(h)?e(new Cna(h)):f(new fs("Request failed, status="+Sr(h),"net.badstatus",h))};
c.onError=function(h){f(new fs("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new fs("Request timed out","net.timeout",h))};
d=g.ds(a,c)})).fl(function(e){if(e instanceof Ni){var f;
(f=d)==null||f.abort()}return Ki(e)})};
g.hs=function(a,b,c,d){function e(l,m,n){return l.fl(function(p){if(m<=0||Sr(p.xhr)===403)return Ki(new fs("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(gs(a,b),m-1,q)})})}
function f(l){return new g.Fi(function(m){setTimeout(m,l)})}
var h=h===void 0?-1:h;return e(gs(a,b),c-1,d)};
fs=function(a,b,c){ob.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Cna=function(a){this.xhr=a};
is=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null};
js=function(a){var b=new is;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b};
ks=function(a){var b=new is;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b};
g.ns=function(a,b,c,d,e){ls||ms.set(""+a,b,{OG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})};
g.os=function(a,b){if(!ls)return ms.get(""+a,b)};
g.ps=function(a,b,c){ls||ms.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)};
Dna=function(){if(g.Zr("embeds_web_enable_cookie_detection_fix")){if(!g.Na.navigator.cookieEnabled)return!1}else if(!ms.isEnabled())return!1;if(!ms.isEmpty())return!0;g.Zr("embeds_web_enable_cookie_detection_fix")?ms.set("TESTCOOKIESENABLED","1",{OG:60,Aea:"none",secure:!0}):ms.set("TESTCOOKIESENABLED","1",{OG:60});if(ms.get("TESTCOOKIESENABLED")!=="1")return!1;ms.remove("TESTCOOKIESENABLED");return!0};
g.Q=function(a,b){if(a)return a[b.name]};
qs=function(a){var b=g.zr("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(bj(a)));return a};
Ena=function(a,b){var c={};g.Zr("web_api_key_killswitch")&&(g.zr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.zr("INNERTUBE_API_KEY")));g.Zr("json_condensed_response")&&(c.prettyPrint="false");return a=Lr(a,c)};
rs=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:Mr(a)?"same-origin":"cors",credentials:Mr(a)?"same-origin":"include"};b={};for(var d=g.w(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};
ts=function(){var a=/Chrome\/(\d+)/.exec(g.Cb());return a?parseFloat(a[1]):NaN};
vs=function(){return g.us("android")&&g.us("chrome")&&!(g.us("trident/")||g.us("edge/"))&&!g.us("cobalt")};
Fna=function(){return g.us("armv7")||g.us("aarch64")||g.us("android")};
g.ws=function(){return g.us("cobalt")};
xs=function(){return g.us("cobalt")&&g.us("appletv")};
ys=function(){return g.us("(ps3; leanback shell)")||g.us("ps3")&&g.ws()};
Gna=function(){return g.us("(ps4; leanback shell)")||g.us("ps4")&&g.ws()};
g.Hna=function(){return g.ws()&&(g.us("ps4 vr")||g.us("ps4 pro vr"))};
zs=function(){var a=/WebKit\/([0-9]+)/.exec(g.Cb());return!!(a&&parseInt(a[1],10)>=600)};
As=function(){var a=/WebKit\/([0-9]+)/.exec(g.Cb());return!!(a&&parseInt(a[1],10)>=602)};
Ina=function(){return g.us("iemobile")||g.us("windows phone")&&g.us("edge")};
Ds=function(){return(Bs||Cs)&&g.us("applewebkit")&&!g.us("version")&&(!g.us("safari")||g.us("gsa/"))};
Fs=function(){return g.Es&&g.us("version/")};
Gs=function(){return g.us("smart-tv")&&g.us("samsung")};
g.us=function(a){var b=g.Cb();return b?b.toLowerCase().indexOf(a)>=0:!1};
Hs=function(){return hea()||Ds()||Fs()?!0:g.zr("EOM_VISITOR_DATA")?!1:!0};
Is=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1};
Js=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Ks=function(a,b){return b===void 0||b===null?a:Number(b)};
Ls=function(a,b){return b===void 0||b===null?a:b.toString()};
Ms=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(Jna))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN};
Ns=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};
Kna=function(a){return Os(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.Ps=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
Os=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?Js(b,c.embeddedPlayerMode,Lna):b};
Rs=function(a){ob.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Qs;this.isTimeout=a instanceof fs&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Ni};
Qs=function(){ob.call(this,"Biscotti ID is missing from server")};
Mna=function(){if(g.Zr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Hs())return Error("User has not consented - not fetching biscotti id.");var a=g.zr("PLAYER_VARS",{});if(g.Wg(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Kna(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Qna=function(){var a=Mna();if(a!==void 0)return Ki(a);Ss||(Ss=gs("//googleads.g.doubleclick.net/pagead/id",Nna).then(Ona).fl(function(b){return Pna(2,b)}));
return Ss};
Ona=function(a){a=a.xhr.responseText;if(!vb(a,")]}'"))throw new Qs;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Qs;a=a.id;bna(a);Ss=ks(a);Rna(18E5,2);return a};
Pna=function(a,b){b=new Rs(b);bna("");Ss=js(b);a>0&&Rna(12E4,a-1);throw b;};
Rna=function(a,b){g.Ur(function(){gs("//googleads.g.doubleclick.net/pagead/id",Nna).then(Ona,function(c){return Pna(b,c)}).fl(g.Bi)},a)};
Sna=function(){try{var a=g.Pa("yt.ads.biscotti.getId_");return a?a():Qna()}catch(b){return Ki(b)}};
Una=function(a){a&&(a.dataset?a.dataset[Tna()]="true":Tda(a))};
Vna=function(a){return a?a.dataset?a.dataset[Tna()]:a.getAttribute("data-loaded"):null};
Tna=function(){return Wna.loaded||(Wna.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
Xna=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Ts+"VisibilityState";if(b in a)return a[b]};
Us=function(a,b){var c;Vm(a,function(d){c=b[d];return!!c});
return c};
Vs=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()};
Ys=function(a){var b;g.Ws()?Xs()==a&&(b=document):b=a;return b&&(a=Us(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Yna=function(a){return g.Ub(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Zna=function(){var a=document;return g.Ub(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Ws=function(){return!!Us(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Xs=function(a){a=a===void 0?!1:a;var b=Us(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Zs=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 $na||(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){}};
aoa=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}};
boa=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 Rg($s,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.Ta(e[4])&&g.Ta(d)&&g.Xg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.at=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=boa(a,b,c,d);if(e)return e;e=++coa.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Zs(l);if(!Ah(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Zs(l);
l.currentTarget=a;return c.call(a,l)};
h=g.Dr(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),doa()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);$s[e]=[a,b,c,h,d];return e};
foa=function(a){return eoa(a,function(b){return g.Lp(b,"ytp-ad-has-logging-urls")})};
eoa=function(a,b){var c=document.body||document;return g.at(c,"click",function(d){var e=Ah(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.bt=function(a){a&&(typeof a=="string"&&(a=[a]),g.lc(a,function(b){if(b in $s){var c=$s[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?doa()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete $s[b]}}))};
ct=function(a){for(var b in $s)$s[b][0]==a&&g.bt(b)};
dt=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};
et=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.qa=g.at(window,"mousemove",(0,g.Xa)(this.W,this));this.Z=g.Vr((0,g.Xa)(this.oa,this),25)};
ft=function(a){g.O.call(this);this.N=[];this.kb=a||this};
gt=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.ht=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&goa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
it=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Yg(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Yg(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||{}};
hoa=function(a){a instanceof it||(a=new it(a));return a};
g.lt=function(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.jt)():kt())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.mt=function(a){var b=kt(),c=(0,g.jt)();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};
ioa=function(){var a=(0,g.jt)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.nt=function(a){try{var b=kt(),c=(0,g.jt)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.ot=function(){return g.mt("yt-remote-session-screen-id")};
joa=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})};
pt=function(){if(!g.Na.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Na.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Na.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Na.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Na.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
qt=function(){this.r3=!0};
koa=function(){qt.instance||(qt.instance=new qt);return qt.instance};
loa=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}};
moa=function(){this.j=g.zr("ALT_PREF_COOKIE_NAME","PREF");this.B=g.zr("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.os(this.j);a&&this.parse(a)};
g.tt=function(){rt||(rt=new moa);return rt};
g.ut=function(a,b){return!!((noa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
wt=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=noa(c)||0;d=b?d|a:d&~a;d===0?delete vt[c]:(b=d.toString(16),vt[c]=b.toString())};
xt=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
zt=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
noa=function(a){a=vt[a]!==void 0?vt[a].toString():null;return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
ooa=function(){var a=g.Na.navigator;return a?a.connection:void 0};
qoa=function(){var a=ooa();if(a){var b=poa[a.type||"unknown"]||"CONN_UNKNOWN";a=poa[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}};
soa=function(){var a=ooa();if(a!=null&&a.effectiveType)return roa.hasOwnProperty(a.effectiveType)?roa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.At=function(a){var b=g.Ea.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.x(b))};
g.Ct=function(){try{return g.Bt(),!0}catch(a){return!1}};
g.Bt=function(a){if(g.zr("DATASYNC_ID")!==void 0)return g.zr("DATASYNC_ID");throw new g.At("Datasync ID not set",a===void 0?"unknown":a);};
Dt=function(){this.j=new WeakMap};
g.Ft=function(a,b,c){return Et(b,0,c)};
toa=function(a){var b=g.Pa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
Gt=function(){Dt.apply(this,arguments)};
g.Ht=function(){Gt.instance||(Gt.instance=new Gt);return Gt.instance};
g.It=function(){return!!g.Pa("yt.scheduler.instance")};
Et=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Pa("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):g.Ur(a,c||0)};
Jt=function(a,b){(a=g.Pa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
Kt=function(a){this.j=(a=g.oq(a))?new hq(a):null;this.B=document.domain||window.location.hostname};
Mt=function(){var a;return(a=Lt())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
uoa=function(){var a={};for(Nt=new Ot(a.handleError===void 0?Pt:a.handleError,a.logEvent===void 0?g.Qt:a.logEvent);Rt.length>0;)switch(a=Rt.shift(),a.type){case "ERROR":Nt.Yl(a.payload);break;case "EVENT":Nt.logEvent(a.eventType,a.payload)}};
Tt=function(a){St||(Nt?Nt.Yl(a):(Rt.push({type:"ERROR",payload:a}),Rt.length>10&&Rt.shift()))};
Ut=function(a,b){St||(Nt?Nt.logEvent(a,b):(Rt.push({type:"EVENT",eventType:a,payload:b}),Rt.length>10&&Rt.shift()))};
Vt=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
Wt=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Xt=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?voa[a]:c;d=d===void 0?woa[a]:d;e=e===void 0?xoa[a]:e;g.At.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.Xt.prototype)};
Yt=function(a,b){g.Xt.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},voa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Yt.prototype)};
Zt=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,Zt.prototype)};
au=function(a,b,c,d){b=Wt(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Xt)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.Xt("QUOTA_EXCEEDED",a);if(g.$t&&e.name==="UnknownError")return new g.Xt("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Zt)return new g.Xt("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&yoa.some(function(f){return e.message.includes(f)}))return new g.Xt("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(e.name==="AbortError")return new g.Xt("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",vM:e.name})];e.level="WARNING";return e};
g.bu=function(a,b,c){var d=Mt();return new g.Xt("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
zoa=function(a){if(!a)throw Error();throw a;};
Aoa=function(a){return a};
cu=function(a){this.j=a};
g.du=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.w(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.w(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)}};
Boa=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.du?eu(a,b,f,d,e):d(f)}catch(h){e(h)}};
Coa=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.du?eu(a,b,f,d,e):d(f)}catch(h){e(h)}};
eu=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.du?eu(a,b,f,d,e):d(f)},function(f){e(f)})};
Doa=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)};
Eoa=function(a){return new Promise(function(b,c){Doa(a,b,c)})};
fu=function(a){return new g.du(new cu(function(b,c){Doa(a,b,c)}))};
gu=function(a,b){return new g.du(new cu(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Foa=function(a,b){this.request=a;this.cursor=b};
Goa=function(a){return fu(a).then(function(b){return b?new Foa(a,b):null})};
g.Hoa=function(a){a.cursor.continue(void 0);return Goa(a.request)};
Ioa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.hu)());this.B=!1};
g.ju=function(a,b,c){a=a.j.createObjectStore(b,c);return new iu(a)};
ku=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.nu=function(a,b,c){return g.lu(a,[b],{mode:"readwrite",Nb:!0},function(d){return g.mu(d.objectStore(b),c)})};
g.lu=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(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.Ea(4);break}h++;m=Math.round((0,g.hu)());g.wa(A,5);n=a.j.transaction(b,e.mode);C=new ou(n);C=Joa(C,d);return g.G(A,C,7);case 7:return p=A.B,q=Math.round((0,g.hu)()),Koa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.ya(A);t=Math.round((0,g.hu)());
u=au(r,a.j.name,b.join(),a.j.version);if((y=u instanceof g.Xt&&!u.j)||h>=f)Koa(a,m,t,h,u,b.join(),e),l=u;A.Ea(2);break;case 4:return A.return(Promise.reject(l))}})};
Koa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Xt&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&Ut("QUOTA_EXCEEDED",{dbName:Wt(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Xt&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=2147483648&&(c=0),Ut("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Loa(a,!1,d,f,b,h.tag),Tt(e)):Loa(a,!0,d,f,b,
h.tag)};
Loa=function(a,b,c,d,e,f){Ut("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
iu=function(a){this.j=a};
g.pu=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Moa=function(a,b){return g.qu(a,{query:b},function(c){return c.delete().then(function(){return g.ru(c)})}).then(function(){})};
Noa=function(a,b,c){var d=[];return g.qu(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.ru(e)}).then(function(){return d})};
Poa=function(a){return"getAllKeys"in IDBObjectStore.prototype?fu(a.j.getAllKeys(void 0,void 0)):Ooa(a)};
Ooa=function(a){var b=[];return g.Qoa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Hoa(c)}).then(function(){return b})};
g.mu=function(a,b,c){return fu(a.j.put(b,c))};
g.qu=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return tu(a).then(function(d){return gu(d,c)})};
g.Qoa=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 Goa(a).then(function(e){return gu(e,c)})};
ou=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.Xt;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)}})})};
Joa=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.w(d).next().value})};
Roa=function(a){this.j=a};
Soa=function(a,b,c){var d=[];return g.uu(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.ru(e)}).then(function(){return d})};
g.uu=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return tu(a).then(function(d){return gu(d,c)})};
vu=function(a,b){this.request=a;this.cursor=b};
tu=function(a){return fu(a).then(function(b){return b?new vu(a,b):null})};
g.ru=function(a){a.cursor.continue(void 0);return tu(a.request)};
Toa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Ioa(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.sfa,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"&&Ut("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:Wt(a)});var u=f(),y=new ou(h.transaction);
p&&p(u,function(A){return t.oldVersion<A&&t.newVersion>=A},y);
y.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(){Ut("IDB_UNEXPECTEDLY_CLOSED",{dbName:Wt(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Uoa=function(a,b,c){c=c===void 0?{}:c;return Toa(a,b,c)};
wu=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.J(function(h){if(h.j==1)return g.wa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.G(h,Eoa(c),4);
if(h.j!=2)return g.xa(h,0);f=g.ya(h);throw au(f,a,"",-1);})};
xu=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
Voa=function(a,b){return new g.Xt("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.yu=function(a,b){if(!b)throw g.bu("openWithToken",Wt(a.name));return a.open()};
Woa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,g.yu(Fu,b),2);c=d.B;return d.return(g.lu(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.mu(f,a).then(function(){})})}))})};
Ju=function(a,b){var c;return g.J(function(d){if(d.j==1)return a?g.G(d,g.yu(Fu,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
Xoa=function(a,b){var c,d;return g.J(function(e){return e.j==1?(c=[],g.G(e,g.yu(Fu,b),2)):e.j!=3?(d=e.B,g.G(e,g.lu(d,["databases"],{Nb:!0,mode:"readonly"},function(f){c.length=0;return g.qu(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.ru(h)})}),3)):e.return(c)})};
Yoa=function(a,b){return Xoa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)};
Zoa=function(){var a,b,c,d;return g.J(function(e){switch(e.j){case 1:a=Mt();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(Ku&&zs()&&!As()||g.Lu)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.wa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.G(e,Woa(d,Mu),4);case 4:return g.G(e,Ju("yt-idb-test-do-not-use",Mu),5);case 5:return e.return(!0);case 2:return g.ya(e),e.return(!1)}})};
$oa=function(){if(Nu!==void 0)return Nu;St=!0;return Nu=Zoa().then(function(a){St=!1;var b;if((b=Lt())!=null&&b.j){var c;b={hasSucceededOnce:((c=Mt())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Lt())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
Ou=function(){return g.Pa("ytglobal.idbToken_")||void 0};
g.Pu=function(){var a=Ou();return a?Promise.resolve(a):$oa().then(function(b){(b=b?Mu:void 0)&&g.Oa("ytglobal.idbToken_",b);return b})};
apa=function(a){if(!g.Ct())throw a=new g.Xt("AUTH_INVALID",{dbName:a}),Tt(a),a;var b=g.Bt();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
bpa=function(a,b,c,d){var e,f,h,l,m,n;return g.J(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.G(p,g.Pu(),2);case 2:h=p.B;if(!h)throw l=g.bu("openDbImpl",a,b),g.Zr("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Tt(l),l;Vt(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:apa(a);g.wa(p,3);return g.G(p,Woa(m,h),5);case 5:return g.G(p,Uoa(m.actualName,b,d),6);case 6:return p.return(p.B);case 3:return n=g.ya(p),g.wa(p,7),g.G(p,Ju(m.actualName,
h),9);case 9:g.xa(p,8);break;case 7:g.ya(p);case 8:throw n;}})};
cpa=function(a,b,c){c=c===void 0?{}:c;return bpa(a,b,!1,c)};
dpa=function(a,b,c){c=c===void 0?{}:c;return bpa(a,b,!0,c)};
epa=function(a,b){b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.Pu(),2);if(e.j!=3){c=e.B;if(!c)return e.return();Vt(a);d=apa(a);return g.G(e,wu(d.actualName,b),3)}return g.G(e,Ju(d.actualName,c),0)})};
fpa=function(a,b,c){a=a.map(function(d){return g.J(function(e){return e.j==1?g.G(e,wu(d.actualName,b),2):g.G(e,Ju(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
gpa=function(a){var b=b===void 0?{}:b;var c,d;return g.J(function(e){if(e.j==1)return g.G(e,g.Pu(),2);if(e.j!=3){c=e.B;if(!c)return e.return();Vt(a);return g.G(e,Yoa(a,c),3)}d=e.B;return g.G(e,fpa(d,b,c),0)})};
hpa=function(a,b){b=b===void 0?{}:b;var c;return g.J(function(d){if(d.j==1)return g.G(d,g.Pu(),2);if(d.j!=3){c=d.B;if(!c)return d.return();Vt(a);return g.G(d,wu(a,b),3)}return g.G(d,Ju(a,c),0)})};
Qu=function(a,b){xu.call(this,a,b);this.options=b;Vt(a)};
ipa=function(a,b){var c;return function(){c||(c=new Qu(a,b));return c}};
g.Ru=function(a,b){return ipa(a,b)};
Su=function(a){return g.yu(jpa(),a)};
kpa=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,g.hu)()},g.G(l,Su(c),2);case 2:return f=l.B,g.G(l,f.clear("hotConfigStore"),3);case 3:return g.G(l,g.nu(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
lpa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,g.hu)()},g.G(m,Su(d),2);case 2:return h=m.B,g.G(m,h.clear("coldConfigStore"),3);case 3:return g.G(m,g.nu(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
mpa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Su(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.lu(b,["coldConfigStore"],{mode:"readwrite",Nb:!0},function(e){return g.uu(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
npa=function(a){var b,c;return g.J(function(d){return d.j==1?g.G(d,Su(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.lu(b,["hotConfigStore"],{mode:"readwrite",Nb:!0},function(e){return g.uu(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
opa=function(){return g.J(function(a){return g.G(a,gpa("ytGcfConfig"),0)})};
Tu=function(){g.O.call(this);this.B=[];this.j=[];var a=g.Pa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.x(a)),this.j=a):(this.j=[],g.Oa("yt.gcf.config.hotUpdateCallbacks",this.j))};
Zu=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Tu;this.Sc={epa:function(){a.G=!0},
goa:function(){return a.j},
mqa:function(b){Uu(a,b)},
Xs:function(b){a.Xs(b)},
gqa:function(b){Vu(a,b)},
u9:function(){return a.coldHashData},
C9:function(){return a.hotHashData},
xoa:function(){return a.B},
poa:function(){return Wu()},
roa:function(){return Xu()},
qoa:function(){return g.Pa("yt.gcf.config.coldHashData")},
soa:function(){return g.Pa("yt.gcf.config.hotHashData")},
Eqa:function(){ppa(a)},
Zpa:function(){a.Xs(void 0);Yu(a);delete Zu.instance},
jqa:function(b){a.C=b},
loa:function(){return a.C}}};
qpa=function(){if(!Zu.instance){var a=new Zu;Zu.instance=a}return Zu.instance};
tpa=function(a){var b;g.J(function(c){if(c.j==1)return g.Zr("start_client_gcf")||g.Zr("delete_gcf_config_db")?g.Zr("start_client_gcf")?g.G(c,g.Pu(),3):c.Ea(2):c.return();c.j!=2&&((b=c.B)&&g.Ct()&&!g.Zr("delete_gcf_config_db")?(a.G=!0,ppa(a)):(rpa(a),spa(a)));return g.Zr("delete_gcf_config_db")?g.G(c,opa(),0):c.Ea(0)})};
$u=function(){var a;return(a=Xu())!=null?a:g.zr("RAW_HOT_CONFIG_GROUP")};
upa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.B)return l.return(Xu());if(!a.G)return b=g.bu("getHotConfig IDB not initialized"),Er(b),l.return(Promise.reject(b));c=Ou();d=g.zr("TIME_CREATED_MS");if(!c){e=g.bu("getHotConfig token error");Er(e);l.Ea(2);break}return g.G(l,npa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Uu(a,f.config),a.Xs(f.hashData),l.return(Xu());case 2:spa(a);if(!(c&&a.B&&a.hotHashData)){l.Ea(4);break}return g.G(l,kpa(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(Xu()):(h=new g.At("Config not available in ytConfig"),Er(h),l.return(Promise.reject(h)))}})};
wpa=function(a){var b,c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j)return l.return(Wu());if(!a.G)return b=g.bu("getColdConfig IDB not initialized"),Er(b),l.return(Promise.reject(b));c=Ou();d=g.zr("TIME_CREATED_MS");if(!c){e=g.bu("getColdConfig");Er(e);l.Ea(2);break}return g.G(l,mpa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Vu(a,f.config),vpa(a,f.configData),Yu(a,f.hashData),l.return(Wu());case 2:rpa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ea(4);break}return g.G(l,lpa(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Wu()):(h=new g.At("Config not available in ytConfig"),Er(h),l.return(Promise.reject(h)))}})};
ppa=function(a){if(!a.B||!a.j){if(!Ou()){var b=g.bu("scheduleGetConfigs");Er(b)}a.D||(a.D=g.xp.aj(function(){return g.J(function(c){switch(c.j){case 1:return g.wa(c,2),g.G(c,upa(a),4);case 4:g.xa(c,3);break;case 2:g.ya(c);case 3:return g.wa(c,5),g.G(c,wpa(a),7);case 7:g.xa(c,6);break;case 5:g.ya(c);case 6:a.D&&(a.D=0),g.va(c)}})},100))}};
xpa=function(a,b,c){var d,e,f;return g.J(function(h){switch(h.j){case 1:if(!g.Zr("start_client_gcf")){h.Ea(0);break}c&&Uu(a,c);a.Xs(b);d=Ou();if(!d){h.Ea(3);break}if(c){h.Ea(4);break}return g.G(h,npa(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.G(h,kpa(c,b,d),3);case 3:if(c)for(var l=c,m=g.w(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.va(h)}})};
ypa=function(a,b,c){var d,e,f,h;return g.J(function(l){if(l.j==1){if(!g.Zr("start_client_gcf"))return l.Ea(0);Yu(a,b);return(d=Ou())?c?l.Ea(4):g.G(l,mpa(d),5):l.Ea(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ea(0);h=c.configData;return g.G(l,lpa(c,b,h,d),0)})};
zpa=function(){var a=qpa(),b=(0,g.hu)()-a.C;if(!(a.C!==0&&b<g.$r("send_config_hash_timer"))){b=g.Pa("yt.gcf.config.coldConfigData");var c=g.Pa("yt.gcf.config.hotHashData"),d=g.Pa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.hu)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
rpa=function(a){Vu(a,g.zr("RAW_COLD_CONFIG_GROUP"));Yu(a,g.zr("SERIALIZED_COLD_HASH_DATA"));var b;vpa(a,(b=a.j)==null?void 0:b.configData)};
spa=function(a){Uu(a,g.zr("RAW_HOT_CONFIG_GROUP"));a.Xs(g.zr("SERIALIZED_HOT_HASH_DATA"))};
Uu=function(a,b){a.B=b;g.Oa("yt.gcf.config.hotConfigGroup",a.B||null)};
Vu=function(a,b){a.j=b;g.Oa("yt.gcf.config.coldConfigGroup",a.j||null)};
Yu=function(a,b){a.coldHashData=b;g.Oa("yt.gcf.config.coldHashData",a.coldHashData||null)};
vpa=function(a,b){a.configData=b;g.Oa("yt.gcf.config.coldConfigData",a.configData||null)};
Xu=function(){return g.Pa("yt.gcf.config.hotConfigGroup")};
Wu=function(){return g.Pa("yt.gcf.config.coldConfigGroup")};
Apa=function(){return"INNERTUBE_API_KEY"in xr&&"INNERTUBE_API_VERSION"in xr};
g.av=function(){return{innertubeApiKey:g.zr("INNERTUBE_API_KEY"),innertubeApiVersion:g.zr("INNERTUBE_API_VERSION"),nL:g.zr("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),oR:g.zr("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),f_:g.zr("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.zr("INNERTUBE_CONTEXT_CLIENT_VERSION"),qR:g.zr("INNERTUBE_CONTEXT_HL"),pR:g.zr("INNERTUBE_CONTEXT_GL"),g_:g.zr("INNERTUBE_HOST_OVERRIDE")||"",h_:!!g.zr("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),rR:!!g.zr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.zr("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.bv=function(a){var b={client:{hl:a.qR,gl:a.pR,clientName:a.oR,clientVersion:a.innertubeContextClientVersion,configInfo:a.nL}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Na.devicePixelRatio;c&&c!=1&&(b.client.screenDensityFloat=String(c));c=as();c!==""&&(b.client.experimentsToken=c);c=bs();c.length>0&&(b.request={internalExperimentFlags:c});Bpa(a,void 0,b);Cpa(void 0,b);Dpa(void 0,b);Epa(a,void 0,b);Fpa(void 0,b);g.Zr("start_client_gcf")&&Gpa(void 0,b);g.zr("DELEGATED_SESSION_ID")&&
!g.Zr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.zr("DELEGATED_SESSION_ID")});!g.Zr("fill_delegate_context_in_gel_killswitch")&&(a=g.zr("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.w(Object.entries(Hr(g.zr("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.w(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};
Bpa=function(a,b,c){a=a.oR;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=je(b,ir,96)||new ir;var d=pt();d=Object.keys(Hpa).indexOf(d);d=d===-1?null:d;d!==null&&xe(c,3,d);ke(b,ir,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=pt())};
Cpa=function(a,b){var c=g.Pa("yt.embedded_player.embed_url");c&&(a?(b=je(a,nr,7)||new nr,ve(b,4,c),ke(a,nr,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Dpa=function(a,b){var c;if(g.Zr("web_log_memory_total_kbytes")&&((c=g.Na.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.Na.navigator)==null?void 0:d.deviceMemory;a?Qd(a,95,md(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}};
Epa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=je(b,hr,62))!=null?d:new hr;ve(c,6,a.appInstallData);ke(b,hr,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Fpa=function(a,b){var c=qoa();c&&(a?xe(a,61,Ipa[c]):b&&(b.client.connectionType=c));g.Zr("web_log_effective_connection_type")&&(c=soa())&&(a?xe(a,94,Jpa[c]):b&&(b.client.effectiveConnectionType=c))};
Kpa=function(a,b,c){c=c===void 0?{}:c;var d={};g.zr("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.zr("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.zr("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.GX||g.zr("AUTHORIZATION");b||(a?b="Bearer "+g.Pa("gapi.auth.getToken")().access_token:(a=koa().IF(cv),g.Zr("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Gpa=function(a,b){var c=zpa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=je(a,hr,62))!=null?f:new hr;d=ve(b,1,d);ve(d,3,e).Xs(c);ke(a,hr,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))}};
dv=function(a,b){this.version=a;this.args=b};
ev=function(a,b){this.topic=a;this.j=b};
gv=function(a,b){var c=fv();c&&c.publish.call(c,a.toString(),a,b)};
Npa=function(a){var b=Lpa,c=fv();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var h=g.Pa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(hv[d])try{if(f&&b instanceof ev&&b!=e)try{var l=b.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.ew){var n=new l;l.ew=n.version}var p=l.ew}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.ac(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 "+b.toString()+": "+q.message,q;}a.call(window,f)}catch(q){g.Cr(q)}},Mpa[b.toString()]?g.It()?g.xp.aj(h):g.Ur(h,0):h())});
hv[d]=!0;iv[b.toString()]||(iv[b.toString()]=[]);iv[b.toString()].push(d);return d};
Qpa=function(){var a=Opa,b=Npa(function(c){a.apply(void 0,arguments);Ppa(b)});
return b};
Ppa=function(a){var b=fv();b&&(typeof a==="number"&&(a=[a]),g.lc(a,function(c){b.unsubscribeByKey(c);delete hv[c]}))};
fv=function(){return g.Pa("ytPubsub2Pubsub2Instance")};
jv=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&gv("meta_logging_csi_event",{timerName:a,Bqa:b})};
Rpa=function(){kv||(kv=dr(g.zr("WORKER_SERIALIZATION_URL")));return kv||void 0};
mv=function(){var a=Rpa();lv||a===void 0||(lv=new Worker(g.Of(a),void 0));return lv};
Spa=function(){return typeof Worker==="function"&&Rpa()?!0:!1};
Upa=function(){if(Spa()&&!nv){var a=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var d=ov.get(c.key);d&&(Tpa(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),ov.delete(c.key))}},b=mv();
b&&(b.addEventListener("message",a),b.onerror=function(){ov.clear()},nv=!0)}};
rv=function(a,b,c,d,e){e=e===void 0?!1:e;var f={startTime:(0,g.hu)(),ticks:{},infos:{}};if(pv)try{var h=Vpa(b);if(h!=null&&(h>Wpa||h<Xpa))d(a,c);else{if(g.Zr("gzip_gel_with_worker")&&(g.Zr("initial_gzip_use_main_thread")&&!Ypa||!g.Zr("initial_gzip_use_main_thread"))){nv||Upa();var l=mv();if(l&&!e){ov.set(qv,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:qv});qv++;return}}var m=Nma(Zpa(b));Tpa(m,f,a,c,d)}}catch(n){Er(n),d(a,c)}else d(a,c)};
Tpa=function(a,b,c,d,e){Ypa=!1;var f=(0,g.hu)();b.ticks.gelc=f;tv++;g.Zr("disable_compression_due_to_performance_degredation")&&f-b.startTime>=$pa&&(uv++,g.Zr("abandon_compression_after_N_slow_zips")?tv===g.$r("compression_disable_point")&&uv>aqa&&(pv=!1):pv=!1);bqa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
cqa=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.hu)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Pa("yt.logging.gzipForFetch",!1):!0;if(pv&&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=Vpa(h);if(l!=null&&(l>Wpa||l<Xpa))return a;c=b?{level:1}:void 0;f=Nma(Zpa(h),c);var m=(0,g.hu)();e.ticks.gelc=m;if(b){tv++;if((g.Zr("disable_compression_due_to_performance_degredation")||g.Zr("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=$pa)if(uv++,g.Zr("abandon_compression_after_N_slow_zips")||g.Zr("abandon_compression_after_N_slow_zips_lr")){b=uv/tv;var n=aqa/g.$r("compression_disable_point");tv>0&&tv%g.$r("compression_disable_point")===0&&b>=n&&(pv=!1)}else pv=!1;bqa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return Er(p),a}}else return a};
Vpa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return Er(b),null}};
bqa=function(a){g.Zr("gel_compression_csi_killswitch")||!g.Zr("log_gel_compression_latency")&&!g.Zr("log_gel_compression_latency_lr")||jv("gel_compression",a,{sampleRate:.1})};
wv=function(a){var b=this;this.EJ=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.XA=function(){};
this.now=Date.now;this.nF=!1;this.Sc={iqa:function(p){b.Df=p},
Fqa:function(){b.dD()},
W7:function(){b.gP()},
jG:function(p){return g.J(function(q){return g.G(q,b.jG(p),0)})},
bN:function(p,q){return b.bN(p,q)},
eN:function(){b.eN()}};
var c;this.v3=(c=a.v3)!=null?c:100;var d;this.A2=(d=a.A2)!=null?d:1;var e;this.n2=(e=a.n2)!=null?e:2592E6;var f;this.d2=(f=a.d2)!=null?f:12E4;var h;this.z2=(h=a.z2)!=null?h:5E3;var l;this.Df=(l=a.Df)!=null?l:void 0;this.hK=!!a.hK;var m;this.NJ=(m=a.NJ)!=null?m:.1;var n;this.KM=(n=a.KM)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.XA&&(this.XA=a.XA);a.nF&&(this.nF=a.nF);a.EJ&&(this.EJ=a.EJ);this.bb=a.bb;this.Vo=a.Vo;this.Qh=a.Qh;this.wh=a.wh;this.sendFn=a.sendFn;this.iT=a.iT;this.sS=
a.sS;vv(this)&&(!this.bb||this.bb("networkless_logging"))&&dqa(this)};
dqa=function(a){vv(a)&&!a.nF&&(a.j=!0,a.hK&&Math.random()<=a.NJ&&a.Qh.a8(a.Df),a.eN(),a.wh.rh()&&a.dD(),a.wh.listen(a.iT,a.dD.bind(a)),a.wh.listen(a.sS,a.gP.bind(a)))};
gqa=function(a,b){if(!vv(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.J(function(p){switch(p.j){case 1:h=eqa(f);(l=fqa(f))&&a.bb&&a.bb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.bb&&a.bb("nwl_consider_error_code")&&h||a.bb&&!a.bb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.KM)){p.Ea(2);break}if(!a.wh.iN){p.Ea(3);break}return g.G(p,a.wh.iN(),3);case 3:if(a.wh.rh()){p.Ea(2);break}c(e,f);if(!a.bb||!a.bb("nwl_consider_error_code")||((m=b)==null?void 0:
m.id)===void 0){p.Ea(6);break}return g.G(p,a.Qh.UT(b.id,a.Df,!1),6);case 6:return p.return();case 2:if(a.bb&&a.bb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.KM)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ea(8);break}return b.sendCount<a.A2?g.G(p,a.Qh.UT(b.id,a.Df,!0,l?!1:void 0),12):g.G(p,a.Qh.AA(b.id,a.Df),8);case 12:a.Vo.aj(function(){a.wh.rh()&&a.dD()},a.z2);
case 8:c(e,f),g.va(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.J(function(l){if(l.j==1)return((h=b)==null?void 0:h.id)===void 0?l.Ea(2):g.G(l,a.Qh.AA(b.id,a.Df),2);a.wh.Fy&&a.bb&&a.bb("vss_network_hint")&&a.wh.Fy(!0);d(e,f);g.va(l)})};
return b};
xv=function(a,b){a.w4&&!a.wh.rh()?a.w4(b):a.handleError(b)};
vv=function(a){return!!a.Df||a.EJ};
eqa=function(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0};
fqa=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)};
hqa=function(){if(yv)return yv();var a={};yv=g.Ru("LogsDatabaseV2",{Ls:(a.LogsRequestsStore={Zn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.ju(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.pu(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&ku(b,"sapisid");c(9)&&ku(b,"SWHealthLog")},
version:9});return yv()};
zv=function(a){return g.yu(hqa(),a)};
jqa=function(a,b){var c,d,e,f;return g.J(function(h){if(h.j==1)return c={startTime:(0,g.hu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(h,zv(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.zr("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(h,g.nu(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.hu)();iqa(c);return h.return(f)})};
kqa=function(a,b){var c,d,e,f,h,l,m,n;return g.J(function(p){if(p.j==1)return c={startTime:(0,g.hu)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(p,zv(b),2);if(p.j!=3)return d=p.B,e=g.zr("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.hu)()],l=IDBKeyRange.bound(f,h),m="prev",g.Zr("use_fifo_for_networkless")&&(m="next"),n=void 0,g.G(p,g.lu(d,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(q){return g.uu(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.hu)();iqa(c);return p.return(n)})};
lqa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,zv(b),2);c=d.B;return d.return(g.lu(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.mu(f,h).then(function(){return h})})}))})};
mqa=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.J(function(f){if(f.j==1)return g.G(f,zv(b),2);e=f.B;return f.return(g.lu(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.mu(l,m).then(function(){return m})):g.du.resolve(void 0)})}))})};
nqa=function(a,b){var c;return g.J(function(d){if(d.j==1)return g.G(d,zv(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
oqa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,zv(a),2);b=d.B;c=(0,g.hu)()-2592E6;return g.G(d,g.lu(b,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(e){return g.qu(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.ru(f)})})}),0)})};
pqa=function(){g.J(function(a){return g.G(a,gpa("LogsDatabaseV2"),0)})};
iqa=function(a){g.Zr("nwl_csi_killswitch")||jv("networkless_performance",a,{sampleRate:1})};
rqa=function(a){return g.yu(qqa(),a)};
sqa=function(a){var b,c;g.J(function(d){if(d.j==1)return g.G(d,rqa(a),2);b=d.B;c=(0,g.hu)()-2592E6;return g.G(d,g.lu(b,["SWHealthLog"],{mode:"readwrite",Nb:!0},function(e){return g.qu(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.ru(f)})})}),0)})};
tqa=function(a){var b;return g.J(function(c){if(c.j==1)return g.G(c,rqa(a),2);b=c.B;return g.G(c,b.clear("SWHealthLog"),0)})};
g.Av=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.ws())a&&(a=g.Rf(g.Vf(a)),a===g.Uf.toString()||a.startsWith("data")?a="":(a=g.ag(ch(a)).toString(),a=g.lg(g.Ti(a))),g.wb(a)||(a=ph("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),eh(a).body.appendChild(a)));else if(e)cs(a,b,"POST",e,d);else if(g.zr("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)cs(a,b,"GET","",d,void 0,f,h);else{b:{try{var l=new hla({url:a});if(l.C&&
l.B||l.D){var m=Yi(g.$i(5,a));var n=!(!m||!m.endsWith("/aclk")||ij(a,"ri")!=="1");break b}}catch(p){}n=!1}n?uqa(a)?(b&&b(),c=!0):c=!1:c=!1;c||vqa(a,b)}};
uqa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1};
vqa=function(a,b){var c=new Image,d=""+wqa++;Bv[d]=c;c.onload=c.onerror=function(){b&&Bv[d]&&b();delete Bv[d]};
c.src=a};
xqa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
Dv=function(){Cv||(Cv=new Kt("yt.offline"));return Cv};
yqa=function(a){if(g.Zr("offline_error_handling")){var b=Dv().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Dv().set("errors",b,2592E3,!0)}};
Ev=function(){this.j=new Map;this.B=!1};
Fv=function(){if(!Ev.instance){var a=g.Pa("yt.networkRequestMonitor.instance")||new Ev;g.Oa("yt.networkRequestMonitor.instance",a);Ev.instance=a}return Ev.instance};
Gv=function(){g.qi.call(this);var a=this;this.B=!1;this.j=Mla();this.j.listen("networkstatus-online",function(){if(a.B&&g.Zr("offline_error_handling")){var b=Dv().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.At(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.Cr(d)}Dv().set("errors",{},2592E3,!0)}}})};
zqa=function(){if(!Gv.instance){var a=g.Pa("yt.networkStatusManager.instance")||new Gv;g.Oa("yt.networkStatusManager.instance",a);Gv.instance=a}return Gv.instance};
g.Hv=function(a){a=a===void 0?{}:a;g.qi.call(this);var b=this;this.j=this.D=0;this.B=zqa();var c=g.Pa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Aqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Aqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Aqa=function(a,b){a.rateLimit?a.j?(g.xp.wk(a.D),a.D=g.xp.aj(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.hu)())},a.rateLimit-((0,g.hu)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.hu)()):a.dispatchEvent(b)};
Jv=function(){var a=wv.call;Iv||(Iv=new g.Hv({tpa:!0,Gna:!0}));a.call(wv,this,{Qh:{a8:oqa,AA:nqa,gZ:kqa,naa:lqa,UT:mqa,set:jqa},wh:Iv,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;Er(new g.At(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.Cr(b)},
XA:Er,sendFn:Bqa,now:g.hu,w4:yqa,Vo:g.Ht(),iT:"publicytnetworkstatus-online",sS:"publicytnetworkstatus-offline",hK:!0,NJ:.1,KM:g.$r("potential_esf_error_limit",10),bb:g.Zr,nF:!(g.Ct()&&g.aj(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.Ej;g.Zr("networkless_immediately_drop_all_requests")&&pqa();hpa("LogsDatabaseV2")};
Kv=function(){var a=g.Pa("yt.networklessRequestController.instance");a||(a=new Jv,g.Oa("yt.networklessRequestController.instance",a),g.Zr("networkless_logging")&&g.Pu().then(function(b){a.Df=b;dqa(a);a.C.resolve();a.hK&&Math.random()<=a.NJ&&a.Df&&sqa(a.Df);g.Zr("networkless_immediately_drop_sw_health_store")&&Cqa(a)}));
return a};
Cqa=function(a){var b;g.J(function(c){if(!a.Df)throw b=g.bu("clearSWHealthLogsDb"),b;return c.return(tqa(a.Df).catch(function(d){a.handleError(d)}))})};
Bqa=function(a,b,c,d){d=d===void 0?!1:d;b=g.Zr("web_fp_via_jspb")?Object.assign({},b):b;g.Zr("use_cfr_monitor")&&Dqa(a,b);if(g.Zr("use_request_time_ms_header"))b.headers&&Mr(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.hu)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.hu)())}c&&Object.keys(b).length===0?g.Av(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),rv(a,b.postBody,
b,g.ds,d)):rv(a,JSON.stringify(b.postParams),b,es,d):g.ds(a,b)};
Lv=function(a,b){g.Zr("use_event_time_ms_header")&&Mr(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.hu)())));return b};
Dqa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){Fv().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){Fv().requestComplete(a,!0);d(e,f)}};
g.Mv=function(a){this.config_=null;a?this.config_=a:Apa()&&(this.config_=g.av())};
g.Nv=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?Kv().writeThenSend(n,f):Kv().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));rv(n,r,f,g.ds,q)}else rv(n,JSON.stringify(f.postParams),f,es,q)}else g.Zr("web_all_payloads_via_jspb")?g.ds(n,f):es(n,f)}catch(t){if(t.name==="InvalidAccessError")Er(Error("An extension is blocking network request."));
else throw t;}}
!g.zr("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&Er(new g.At("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.At("innertube xhrclient not ready",b,c,d),g.Cr(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_.g_;h&&(c=h);var l=a.config_.h_||!1;h=Kpa(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_.rR||!h);m=m&&h.startsWith("Bearer");g.Zr("web_yt_net_omit_api_key")&&(m=!0);m||(l.key=a.config_.innertubeApiKey);
var n=g.Kr(""+c+b,l);g.Pa("ytNetworklessLoggingInitializationOptions")&&Eqa.isNwlInitialized?$oa().then(function(p){e(p)}):e(!1)};
g.Sv=function(a,b,c){var d=g.Ov();if(d&&b){var e=d.subscribe(a,function(){function f(){Pv[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)}
var h=arguments;try{g.Qv[a]?f():g.Ur(f,0)}catch(l){g.Cr(l)}},c);
Pv[e]=!0;Rv[a]||(Rv[a]=[]);Rv[a].push(e);return e}return 0};
Fqa=function(a){var b=g.Sv("LOGGED_IN",function(c){a.apply(void 0,arguments);g.Tv(b)})};
g.Tv=function(a){var b=g.Ov();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.lc(a,function(c){b.unsubscribeByKey(c);delete Pv[c]}))};
g.Uv=function(a,b){var c=g.Ov();return c?c.publish.apply(c,arguments):!1};
Hqa=function(a){var b=g.Ov();if(b)if(b.clear(a),a)Gqa(a);else for(var c in Rv)Gqa(c)};
g.Ov=function(){return g.Na.ytPubsubPubsubInstance};
Gqa=function(a){Rv[a]&&(a=Rv[a],g.lc(a,function(b){Pv[b]&&delete Pv[b]}),a.length=0)};
g.Vv=function(a,b,c){Iqa(a,b,c===void 0?null:c)};
Iqa=function(a,b,c){c=c===void 0?null:c;var d=Jqa(a),e=document.getElementById(d),f=e&&Vna(e),h=e&&!f;f?b&&b():(b&&(f=g.Sv(d,b),b=""+g.Wa(b),Kqa[b]=f),h||(e=Lqa(a,d,function(){Vna(e)||(Una(e),g.Uv(d),g.Ur(function(){Hqa(d)},0))},c)))};
Lqa=function(a,b,c,d){d=d===void 0?null:d;var e=g.qh("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.gg(e,g.er(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Jqa=function(a){var b=document.createElement("a");g.Xf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+pg(a)};
Yv=function(a){var b=g.Ea.apply(1,arguments);if(!Wv(a)||b.some(function(d){return!Wv(d)}))throw Error("Only objects may be merged.");
b=g.w(b);for(var c=b.next();!c.done;c=b.next())Xv(a,c.value)};
Xv=function(a,b){for(var c in b)if(Wv(b[c])){if(c in a&&!Wv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Xv(a[c],b[c])}else if(Zv(b[c])){if(c in a&&!Zv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Mqa(a[c],b[c])}else a[c]=b[c];return a};
Mqa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Wv(c)?a.push(Xv({},c)):Zv(c)?a.push(Mqa([],c)):a.push(c);return a};
Wv=function(a){return typeof a==="object"&&!Array.isArray(a)};
Zv=function(a){return typeof a==="object"&&Array.isArray(a)};
$v=function(a){g.O.call(this);this.B=a};
aw=function(a){$v.call(this,!0);this.j=a};
Nqa=function(a,b){g.O.call(this);var c=this;this.C=[];this.N=!1;this.B=0;this.G=this.K=this.D=!1;this.oa=null;var d=(0,g.Xa)(a,b);this.j=new g.Ep(function(){return d(c.oa)},300);
g.P(this,this.j);this.W=this.Z=Infinity};
Oqa=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};
cw=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(bw)for(c=1,d=0;d<bw.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^bw.charCodeAt(d),c++;return b};
g.dw=function(a){a=cw(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Pqa=function(){return g.Ql(cw(16),function(a){return(a&15).toString(16)}).join("")};
Qqa=function(){var a={};var b=a.Mda===void 0?!1:a.Mda;a=a.O8===void 0?!0:a.O8;if(g.Pa("_lact",window)==null){var c=parseInt(g.zr("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Oa("_lact",c,window);g.Oa("_fact",c,window);c==-1&&ew();g.at(document,"keydown",ew);g.at(document,"keyup",ew);g.at(document,"mousedown",ew);g.at(document,"mouseup",ew);b?g.at(window,"touchmove",function(){fw("touchmove",200)},{passive:!0}):(g.at(window,"resize",function(){fw("resize",200)}),a&&g.at(window,"scroll",
function(){fw("scroll",200)}));
new et(function(){fw("mouse",100)});
g.at(document,"touchstart",ew,{passive:!0});g.at(document,"touchend",ew,{passive:!0})}};
fw=function(a,b){gw[a]||(gw[a]=!0,g.xp.aj(function(){ew();gw[a]=!1},b))};
ew=function(){g.Pa("_lact",window)==null&&(Qqa(),g.Pa("_lact",window));var a=Date.now();g.Oa("_lact",a,window);g.Pa("_fact",window)==-1&&g.Oa("_fact",a,window);(a=g.Pa("ytglobal.ytUtilActivityCallback_"))&&a()};
hw=function(){var a=g.Pa("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
iw=function(a){this.name=a};
jw=function(a){this.key=a};
Rqa=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.Sc={zoa:function(){return new Map(a.j)}}};
kw=function(a,b){a.j.set(b.FH,b);var c=a.C.get(b.FH);if(c)try{c.CC(a.resolve(b.FH))}catch(d){c.IT(d)}};
mw=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.lV!==void 0)var e=d.lV;else if(d.Vfa)e=d[lw]?Sqa(a,d[lw],c):[],e=d.Vfa.apply(d,g.x(e));else if(d.g4){e=d.g4;var f=e[lw]?Sqa(a,e[lw],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.x(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.xqa||a.B.set(b,e);
return e};
Sqa=function(a,b,c){return b?b.map(function(d){return d instanceof jw?mw(a,d.key,c,!0):mw(a,d,c)}):[]};
ow=function(){nw||(nw=new Rqa);return nw};
qw=function(){var a,b;return"h5vcc"in pw&&((a=pw.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=pw.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in pw&&pw.performance.mark&&pw.performance.measure?2:0};
rw=function(a){var b=qw();switch(b){case 1:pw.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:pw.performance.mark(a+"-start");break;case 0:break;default:cd(b,"unknown trace type")}};
Tqa=function(a){var b=qw();switch(b){case 1:pw.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";pw.performance.mark(c);pw.performance.measure(a,b,c);break;case 0:break;default:cd(b,"unknown trace type")}};
Uqa=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.Ht():d;this.C=c;this.scheduler=d;this.B=new g.Ej;this.j=a;for(a={Sx:0};a.Sx<this.j.length;a={CM:void 0,Sx:a.Sx},a.Sx++)a.CM=this.j[a.Sx],c=function(e){return function(){e.CM.JR();b.j[e.Sx].OM=!0;b.j.every(function(f){return f.OM===!0})&&b.B.resolve()}}(a),d=Et(c,tw(this,a.CM)),this.j[a.Sx]=Object.assign({},a.CM,{JR:c,
jobId:d})};
Vqa=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return tw(a,a.j[e])-tw(a,a.j[d])});
b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],c.jobId===void 0||c.OM||(a.scheduler.wk(c.jobId),Et(c.JR,10))};
tw=function(a,b){var c;return(c=b.priority)!=null?c:a.C};
vw=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};uw&&rw(this.state)};
Wqa=function(a,b){var c=b.filter(function(e){return ww(a,e)===10}),d=b.filter(function(e){return ww(a,e)!==10});
return a.D.tqa?function(){var e=g.Ea.apply(0,arguments);return g.J(function(f){if(f.j==1)return g.G(f,a.tea.apply(a,[c].concat(g.x(e))),2);a.Q2.apply(a,[d].concat(g.x(e)));g.va(f)})}:function(){var e=g.Ea.apply(0,arguments);
a.uea.apply(a,[c].concat(g.x(e)));a.Q2.apply(a,[d].concat(g.x(e)))}};
ww=function(a,b){var c,d;return(d=(c=a.C)!=null?c:b.priority)!=null?d:0};
xw=function(a){uw&&a&&rw(a)};
yw=function(a){uw&&a&&Tqa(a)};
Yqa=function(a,b,c){Xqa&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
zw=function(a){vw.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(){}}]};
Zqa=function(){Aw||(Aw=new zw);return Aw};
Bw=function(){var a=this;this.store={};this.j=0;this.B={};this.Sc={noa:function(){return a.j}}};
Ew=function(a,b){var c=Cw(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(d.length<=1&&Cw(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(Dw(b.auth,h[0])){var l=b.isJspb;Dw(l===void 0?"undefined":l?"true":"false",h[1])&&Dw(b.cttAuthInfo,h[2])&&(l=b.tier,l=l===void 0?"undefined":JSON.stringify(l),Dw(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
Dw=function(a,b){return a===void 0||a==="undefined"?!0:a===b};
Cw=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("/")};
Fw=function(){this.D=this.j=this.B=0;this.C=!1};
Gw=function(){var a=g.Pa("yt.logging.ims");a||(a=new Bw,g.Oa("yt.logging.ims",a));return a};
bra=function(){if(Spa()&&!$qa){var a=function(c){c=c.data;if(c.op==="serializedGelBatch"){var d=Hw.get(c.key);d&&(ara(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),Hw.delete(c.key))}},b=mv();
b&&(b.addEventListener("message",a),b.onerror=function(){Hw.clear()});
$qa=!0}};
hra=function(a,b){if(a.endpoint==="log_event"){Iw(a);var c=Jw(a),d=cra(a.payload)||"",e=dra(d),f=200;if(e){if(e.enabled===!1&&!g.Zr("web_payload_policy_disabled_killswitch"))return;f=era(e.tier);if(f===400){fra(a,b);return}}Kw[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};Gw().storePayload(e,a.payload);gra(b,c,!1,e,Lw(d))}};
jra=function(a,b,c){if(b.endpoint==="log_event"){Iw(void 0,b);var d=Jw(b,!0),e=dra(a),f=200;if(e){if(e.enabled===!1&&!g.Zr("web_payload_policy_disabled_killswitch"))return;f=era(e.tier);if(f===400){ira(a,b,c);return}}Kw[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};Gw().storePayload(e,Ve(b.payload));gra(c,d,!0,e,Lw(a))}};
gra=function(a,b,c,d,e){function f(){Mw({writeThenSend:!0},g.Zr("flush_only_full_queue")?b:void 0,c,d.tier)}
c=c===void 0?!1:c;e=e===void 0?!1:e;a&&(Nw=new a);a=g.$r("tvhtml5_logging_max_batch_ads_fork")||g.$r("tvhtml5_logging_max_batch")||g.$r("web_logging_max_batch")||100;var h=(0,g.hu)(),l=Ow(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=Gw().getSequenceCount(d));e>=1E3?f():e>=a?Pw||(Pw=Qw(function(){f();Pw=void 0},0)):h-m>=10&&(kra(c,d.tier),l.D=h)};
fra=function(a,b){if(a.endpoint==="log_event"){g.Zr("more_accurate_gel_parser")&&Gw().storePayload({isJspb:!1},a.payload);Iw(a);var c=Jw(a),d=new Map;d.set(c,[a.payload]);var e=cra(a.payload)||"";b&&(Nw=new b);return new g.Fi(function(f,h){Nw&&Nw.isReady()?Rw(d,Nw,f,h,{bypassNetworkless:!0},!0,Lw(e)):f()})}};
ira=function(a,b,c){if(b.endpoint==="log_event"){Iw(void 0,b);var d=Jw(b,!0),e=new Map;e.set(d,[Ve(b.payload)]);c&&(Nw=new c);return new g.Fi(function(f){Nw&&Nw.isReady()?Sw(e,Nw,f,{bypassNetworkless:!0},!0,Lw(a)):f()})}};
Jw=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 wr;c.videoId?d.setVideoId(c.videoId):c.playlistId&&de(d,2,Tw,od(c.playlistId));Uw[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Vw[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Mw=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.Fi(function(e,f){var h=Ow(c,d),l=h.C;h.C=!1;Ww(h.B);Ww(h.j);h.j=0;Nw&&Nw.isReady()?d===void 0&&g.Zr("enable_web_tiered_gel")?lra(e,f,a,b,c,300,l):lra(e,f,a,b,c,d,l):(kra(c,d),e())})};
lra=function(a,b,c,d,e,f,h){var l=Nw;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.Zr("enable_web_tiered_gel")?Gw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Gw().extractMatchingEntries(q),m.set(d,b),Sw(m,l,a,c,!1,h)):(m=g.Zr("enable_web_tiered_gel")?Gw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Gw().extractMatchingEntries(q),n.set(d,m),
Rw(n,l,a,b,c,!1,h));else if(e){b=g.w(Object.keys(Kw));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.Zr("enable_web_tiered_gel")?Gw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):Gw().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.Zr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Zr("web_fp_via_jspb_and_json"))&&delete Kw[n];Sw(m,l,a,c,!1,h)}else{m=g.w(Object.keys(Kw));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.Zr("enable_web_tiered_gel")?Gw().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):Gw().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.Zr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Zr("web_fp_via_jspb_and_json"))&&delete Kw[p];Rw(n,l,a,b,c,!1,h)}};
kra=function(a,b){function c(){Mw({writeThenSend:!0},void 0,a,b)}
a=a===void 0?!1:a;b=b===void 0?200:b;var d=Ow(a,b),e=d===mra||d===nra?5E3:ora;g.Zr("web_gel_timeout_cap")&&!d.j&&(e=Qw(function(){c()},e),d.j=e);
Ww(d.B);e=g.zr("LOGGING_BATCH_TIMEOUT",g.$r("web_gel_debounce_ms",1E4));g.Zr("shorten_initial_gel_batch_timeout")&&Xw&&(e=pra);e=Qw(function(){g.$r("gel_min_batch_size")>0?Gw().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=qra&&c():c()},e);
d.B=e};
Rw=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.hu)()),m=a.size,n=rra(h);a=g.w(a);var p=a.next();for(h={};!p.done;h={oS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,bT:void 0,DS:void 0},p=a.next()){var q=g.w(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.Zg({context:g.bv(b.config_||g.av())});if(!g.Sa(q)&&!g.Zr("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=Vw[p])&&sra(h.batchRequest,p,q);delete Vw[p];h.dangerousLogToVisitorSession=
p==="visitorOnlyApprovedKey";tra(h.batchRequest,l,h.dangerousLogToVisitorSession);ura(e);h.bT=function(r){g.Zr("start_client_gcf")&&g.xp.aj(function(){return g.J(function(t){return g.G(t,vra(r),0)})});
m--;m||c()};
h.oS=0;h.DS=function(r){return function(){r.oS++;if(e.bypassNetworkless&&r.oS===1)try{g.Nv(b,n,r.batchRequest,Yw({writeThenSend:!0},r.dangerousLogToVisitorSession,r.bT,r.DS,f)),Xw=!1}catch(t){g.Cr(t),d()}m--;m||c()}}(h);
try{g.Nv(b,n,h.batchRequest,Yw(e,h.dangerousLogToVisitorSession,h.bT,h.DS,f)),Xw=!1}catch(r){g.Cr(r),d()}}};
Sw=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.hu)()),l={value:a.size},m=new Map([].concat(g.x(a)));m=g.w(m);for(var n=m.next();!n.done;n=m.next()){var p=g.w(n.value).next().value,q=a.get(p);n=new $ma;var r=b.config_||g.av(),t=new qr,u=new jr;ve(u,1,r.qR);ve(u,2,r.pR);xe(u,16,r.f_);ve(u,17,r.innertubeContextClientVersion);if(r.nL){var y=r.nL,A=new hr;y.coldConfigData&&ve(A,1,y.coldConfigData);y.appInstallData&&ve(A,6,y.appInstallData);y.coldHashData&&ve(A,3,y.coldHashData);y.hotHashData&&
A.Xs(y.hotHashData);ke(u,hr,62,A)}(y=g.Na.devicePixelRatio)&&y!=1&&Qd(u,65,dd(y));y=as();y!==""&&ve(u,54,y);y=bs();if(y.length>0){A=new mr;for(var C=0;C<y.length;C++){var F=new kr;ve(F,1,y[C].key);de(F,2,wra,od(y[C].value));ne(A,15,kr,F)}ke(t,mr,5,A)}Bpa(r,u);Cpa(t);Dpa(u);Epa(r,u);Fpa(u);g.Zr("start_client_gcf")&&Gpa(u);g.zr("DELEGATED_SESSION_ID")&&!g.Zr("pageid_as_header_web")&&(r=new pr,ve(r,3,g.zr("DELEGATED_SESSION_ID")));!g.Zr("fill_delegate_context_in_gel_killswitch")&&(y=g.zr("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(A=je(t,pr,3)||new pr,r=t,y=ve(A,18,y),ke(r,pr,3,y));r=u;y=g.w(Object.entries(Hr(g.zr("DEVICE",""))));for(A=y.next();!A.done;A=y.next())C=g.w(A.value),A=C.next().value,C=C.next().value,A==="cbrand"?ve(r,12,C):A==="cmodel"?ve(r,13,C):A==="cbr"?ve(r,87,C):A==="cbrver"?ve(r,88,C):A==="cos"?ve(r,18,C):A==="cosver"?ve(r,19,C):A==="cplatform"&&xe(r,42,loa(C));t.eI(u);ke(n,qr,1,t);if(u=Uw[p])a:{if(u.ag())t=1;else if(u.getPlaylistId())t=2;else break a;ke(n,wr,4,u);u=je(n,qr,1)||new qr;r=je(u,pr,3)||new pr;
y=new or;y.setToken(p);xe(y,1,t);ne(r,12,or,y);ke(u,pr,3,r)}delete Uw[p];p=p==="visitorOnlyApprovedKey";Zw()||ue(n,2,h);!p&&(t=g.zr("EVENT_ID"))&&(u=xra(),r=new vr,ve(r,1,t),ue(r,2,u),ke(n,vr,5,r));ura(d);if(g.Zr("jspb_serialize_with_worker")&&(t=mv())&&d.writeThenSend){Hw.set($w,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:Ve(n),clientEvents:q,key:$w});$w++;break}if(q){t=
[];for(u=0;u<q.length;u++)try{t.push(new ur(q[u]))}catch(H){g.Cr(new g.At("Transport failed to deserialize "+String(q[u])))}q=t}else q=[];q=g.w(q);for(t=q.next();!t.done;t=q.next())ne(n,3,ur,t.value);q={startTime:(0,g.hu)(),ticks:{},infos:{}};n=n.Fi();q.ticks.geljspc=(0,g.hu)();g.Zr("log_jspb_serialize_latency")&&jv("gel_jspb_serialize",q,{sampleRate:.1});ara(n,b,c,d,e,f,p,l)}};
ara=function(a,b,c,d,e,f,h,l){d=d===void 0?{}:d;l=l===void 0?{value:0}:l;f=rra(f);d=Yw(d,h,function(m){g.Zr("start_client_gcf")&&g.xp.aj(function(){return g.J(function(n){return g.G(n,vra(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.Nv(b,f,"",d);Xw=!1};
ura=function(a){g.Zr("always_send_and_write")&&(a.writeThenSend=!1)};
Yw=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,tna:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.Zr("compress_gel")||g.Zr("compress_gel_lr")};Zw()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.hu)())));return a};
tra=function(a,b,c){Zw()||(a.requestTimeMs=String(b));g.Zr("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.zr("EVENT_ID"))&&(c=xra(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
xra=function(){var a=g.zr("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*65535/2));a++;a>65535&&(a=1);yr("BATCH_CLIENT_COUNTER",a);return a};
sra=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}]};
Iw=function(a,b){if(!g.Pa("yt.logging.transport.enableScrapingForTest")){var c=Yr("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")ax=[],g.Oa("yt.logging.transport.enableScrapingForTest",!0),g.Oa("yt.logging.transport.scrapedPayloadsForTesting",ax),g.Oa("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Oa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
g.Oa("yt.logging.transport.scrapeClientEvent",!0);else return}c=g.Pa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Pa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Pa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Pa("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.Oa("yt.logging.transport.scrapedPayloadsForTesting",
c)};
Zw=function(){return g.Zr("use_request_time_ms_header")||g.Zr("lr_use_request_time_ms_header")};
Qw=function(a,b){return g.Zr("transport_use_scheduler")===!1?g.Ur(a,b):g.Zr("logging_avoid_blocking_during_navigation")||g.Zr("lr_logging_avoid_blocking_during_navigation")?g.Ft(0,function(){if(Zqa().currentState==="none")a();else{var c={};Zqa().install((c.none={callback:a},c))}},b):Et(a,0,b)};
Ww=function(a){g.Zr("transport_use_scheduler")?g.xp.wk(a):g.Wr(a)};
vra=function(a){var b,c,d,e,f,h,l,m,n,p;return g.J(function(q){return q.j==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=g.Q(d,yra),h=(f=d)==null?void 0:f.hotHashData,l=g.Q(d,zra),n=(m=d)==null?void 0:m.coldHashData,(p=ow().resolve(new jw(Zu)))?h?e?g.G(q,xpa(p,h,e),2):g.G(q,xpa(p,h),2):q.Ea(2):q.return()):n?l?g.G(q,ypa(p,n,l),0):g.G(q,ypa(p,n),0):q.Ea(0)})};
Ow=function(a,b){b=b===void 0?200:b;return a?b===300?mra:Ara:b===300?nra:Bra};
dra=function(a){if(g.Zr("enable_web_tiered_gel")){a=Cra[a||""];var b,c,d,e=ow().resolve(new jw(Zu))==null?void 0:(b=$u())==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]}};
cra=function(a){a=Object.keys(a);a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Cra[b])return b};
era=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}};
Lw=function(a){return a==="gelDebuggingEvent"};
rra=function(a){return(a===void 0?0:a)&&g.Zr("vss_through_gel_video_stats")?"video_stats":"log_event"};
cx=function(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||(0,g.hu)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=hw();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.Zr("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Dra(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete bx[d.sequenceGroup]);(d.sendIsolatedPayload?fra:hra)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Era=function(a){Mw(void 0,void 0,a===void 0?!1:a)};
Dra=function(a){bx[a]=a in bx?bx[a]+1:0;return bx[a]};
g.Qt=function(a,b,c){c=c===void 0?{}:c;var d=g.Mv;g.zr("ytLoggingEventsDefaultDisabled",!1)&&g.Mv===g.Mv&&(d=null);cx(a,b,d,c)};
dx=function(a){this.j=a};
g.ex=function(a){return new dx({trackingParams:a})};
Gra=function(a){var b=Fra++;return new dx({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
Hra=function(a){return g.zr("client-screen-nonce-store",{})[a===void 0?0:a]};
Ira=function(a,b){b=b===void 0?0:b;var c=g.zr("client-screen-nonce-store");c||(c={},yr("client-screen-nonce-store",c));c[b]=a};
fx=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Jra=function(a){return g.zr(fx(a===void 0?0:a))};
g.gx=function(a){return(a=Jra(a===void 0?0:a))?new dx({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Kra=function(){var a=g.zr("csn-to-ctt-auth-info");a||(a={},yr("csn-to-ctt-auth-info",a));return a};
Lra=function(){return Object.values(g.zr("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
g.hx=function(a){a=Hra(a===void 0?0:a);if(!a&&!g.zr("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Nra=function(a){for(var b=g.w(Object.values(Mra)),c=b.next();!c.done;c=b.next())if(g.hx(c.value)===a)return!0;return!1};
Ora=function(a,b,c){var d=Kra();(c=g.hx(c))&&delete d[c];b&&(d[a]=b)};
ix=function(a){return Kra()[a]};
Qra=function(a,b,c,d){c=c===void 0?0:c;if(a!==Hra(c)||b!==g.zr(fx(c)))if(Ora(a,d,c),Ira(a,c),yr(fx(c),b),b=function(){setTimeout(function(){a&&g.Qt("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Pra,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
jx=function(a,b){var c=c===void 0?!0:c;var d=g.zr("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.aj(window.location.href);e&&d.push(e);e=g.aj(a);if(g.Wb(d,e)||!e&&vb(a,"/"))if(d=document.createElement("a"),g.Xf(d,a),a=d.href)if(a=bj(a),a=Lfa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.hx()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&Rra(a,b,f)}else Rra(a,b)};
Rra=function(a,b,c){a=Sra(a);b=b?g.fj(b):"";c=c||5;Hs()&&g.ns(a,b,c)};
Sra=function(a){for(var b=g.w(Tra),c=b.next();!c.done;c=b.next())a=jj(a,c.value);return"ST-"+pg(a).toString(36)};
Ura=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Vra=function(){this.Or=[];this.Js=[]};
lx=function(){if(!kx){var a=kx=new Vra;a.Js.length=0;a.Or.length=0;Wra(a,Xra)}return kx};
Wra=function(a,b){b.Js&&a.Js.push.apply(a.Js,b.Js);b.Or&&a.Or.push.apply(a.Or,b.Or)};
Yra=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=mx(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=mx(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=mx(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)};
mx=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};
Zra=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=nx(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=Yra(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?nx(f+".ve",h,l,m):0;d+=f;d+=nx(e,a[e],b,c);if(d>500)break}}else c[b]=ox(a),d+=c[b].length;else c[b]=ox(a),d+=c[b].length;return d};
nx=function(a,b,c,d){c+="."+a;a=ox(b);d[c]=a;return c.length+a.length};
ox=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+")"}};
Pt=function(a){g.px(a)};
g.qx=function(a){g.px(a,"WARNING")};
g.px=function(a,b){var c=c===void 0?{}:c;c.name=g.zr("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.zr("INNERTUBE_CONTEXT_CLIENT_VERSION");b=b===void 0?"ERROR":b;var d=!1;b=b===void 0?"ERROR":b;d=d===void 0?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.Zr("console_log_js_exceptions")){var e=[];e.push("Name: "+a.name);e.push("Message: "+a.message);a.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&e.push("Error args: "+JSON.stringify(a.args));
e.push("File name: "+a.fileName);e.push("Stacktrace: "+a.stack);window.console.log(e.join("\n"),a)}if(!($ra>=5)){e=asa;var f=Vda(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.B||"Not available";if(m.startsWith(l+": "+h)){var n=m.split("\n");n.shift();m=n.join("\n")}n=f.lineNumber||"Not available";f=f.fileName||"Not available";var p=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var q=0;q<a.args.length&&!(p=Zra(a.args[q],"params."+q,c,p),p>=500);q++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if(typeof a.params==="object")for(q in r){if(r[q]){var t="params."+q,u=ox(r[q]);c[t]=u;p+=t.length+u.length;if(p>500)break}}else c.params=ox(r)}if(e.length)for(q=0;q<e.length&&!(p=Zra(e[q],"params.context."+q,c,p),p>=500);q++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);c={message:h,name:l,lineNumber:n,fileName:f,stack:m,params:c,sampleWeight:1};e=Number(a.columnNumber);isNaN(e)||(c.lineNumber=c.lineNumber+":"+e);if(a.level==="IGNORED")a=
0;else a:{a=lx();e=g.w(a.Js);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.Is)){a=h.weight;break a}a=g.w(a.Or);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.callback(c)){a=e.weight;break a}a=1}c.sampleWeight=a;a=g.w(bsa);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.BM[c.name])for(l=g.w(e.BM[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.Xj)){c.params["params.error.original"]=h[0];l=q.groups;q={};for(n=0;n<l.length;n++)q[l[n]]=h[n+1],c.params["params.error."+
l[n]]=h[n+1];c.message=e.cS(q);break}c.params||(c.params={});a=lx();c.params["params.errorServiceSignature"]="msg="+a.Js.length+"&cb="+a.Or.length;c.params["params.serviceWorker"]="false";g.Na.document&&g.Na.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new bh(ah,"sample")).constructor!==bh&&(c.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(c);if(c.sampleWeight!==0&&!csa.has(c.message)){if(d&&
g.Zr("web_enable_error_204"))dsa(b===void 0?"ERROR":b,c);else{b=b===void 0?"ERROR":b;b==="ERROR"?(rx.publish("handleError",c),g.Zr("record_app_crashed_web")&&esa===0&&c.sampleWeight===1&&(esa++,d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Zr("report_client_error_with_app_crash_ks")||(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.Qt("appCrashed",d)),fsa++):b==="WARNING"&&rx.publish("handleWarning",c);if(g.Zr("kevlar_gel_error_routing")){d=b;a=void 0;a=a===void 0?{}:a;
b:{e=g.w(gsa);for(h=e.next();!h.done;h=e.next())if(g.us(h.value.toLowerCase())){e=!0;break b}e=!1}if(e)a=void 0;else{h={stackTrace:c.stack};c.fileName&&(h.filename=c.fileName);e=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];e.length!==0&&(e.length!==1||isNaN(Number(e[0]))?e.length!==2||isNaN(Number(e[0]))||isNaN(Number(e[1]))||(h.lineNumber=Number(e[0]),h.columnNumber=Number(e[1])):h.lineNumber=Number(e[0]));e={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};
d==="ERROR"?e.level="ERROR_LEVEL_ERROR":d==="WARNING"&&(e.level="ERROR_LEVEL_WARNNING");h={isObfuscated:!0,browserStackInfo:h};a.pageUrl=window.location.href;a.kvPairs=[];g.zr("FEXP_EXPERIMENTS")&&(a.experimentIds=g.zr("FEXP_EXPERIMENTS"));l=g.zr("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Ar("web_disable_gel_stp_ecatcher_killswitch")&&l)for(q=g.w(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,a.kvPairs.push({key:n,value:String(l[n])});if(l=c.params)for(q=g.w(Object.keys(l)),n=q.next();!n.done;n=
q.next())n=n.value,a.kvPairs.push({key:"client."+n,value:String(l[n])});l=g.zr("SERVER_NAME");q=g.zr("SERVER_VERSION");l&&q&&(a.kvPairs.push({key:"server.name",value:l}),a.kvPairs.push({key:"server.version",value:q}));a={errorMetadata:a,stackTrace:h,logMessage:e}}if(a&&(g.Qt("clientError",a),d==="ERROR"||g.Zr("errors_flush_gel_always_killswitch")))a:{if(g.Zr("web_fp_via_jspb")){d=!0;d=d===void 0?!1:d;a=hsa;hsa=[];if(a)for(a=g.w(a),e=a.next();!e.done;e=a.next())e=e.value,d?cx(e.payloadName,e.payload,
g.Mv,e.options):g.Qt(e.payloadName,e.payload,e.options);Era(!0);if(!g.Zr("web_fp_via_jspb_and_json"))break a}Era()}}g.Zr("suppress_error_204_logging")||dsa(b,c)}try{csa.add(c.message)}catch(y){}$ra++}}}};
dsa=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.zr("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.w(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.zr("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.w(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.zr("SERVER_NAME");b=g.zr("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.ds(g.zr("ECATCHER_REPORT_HOST","")+"/error_204",a)};
isa=function(a){var b=g.Ea.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.x(b))};
ux=function(a){var b=g.Q(a,sx);if(b)return b;if((b=g.Q(a,jsa))&&b.commands)return ksa(b.commands);if((b=g.Q(a,lsa))&&b.commands)return ksa(b.commands);if((a=g.Q(a,msa))&&a.identifier&&a.command&&(tx||(tx=[]),!tx.includes(a.identifier)))return tx.push(a.identifier),g.Q(a.command,sx)};
ksa=function(a){if(a.length!==0){var b=[];a=g.w(a);for(var c=a.next();!c.done;c=a.next())(c=ux(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.vx=function(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c};
nsa=function(a){for(var b=0,c=0;c<a.length;c++)b=b*31+a.charCodeAt(c),c<a.length-1&&(b%=0x800000000000);return b%1E5};
wx=function(a){dv.call(this,1,arguments);this.csn=a};
psa=function(a,b,c,d,e,f,h,l){var m=osa(),n=new dx({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=xx({},m);e&&(f.cttAuthInfo=e);e={csn:m,pageVe:n.getAsJson()};g.Zr("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&&g.qx(new g.At("newScreen() parent element does not have a VE - rootVe",
b));d&&(e.cloneCsn=d);a?cx("screenCreated",e,a,f):g.Qt("screenCreated",e,f);gv(Lpa,new wx(m));yx.clear();zx.clear();Ax.clear();return m};
g.Cx=function(a,b,c,d,e){g.Bx(a,b,c,[d],e===void 0?!1:e)};
g.Bx=function(a,b,c,d,e){e=e===void 0?!1:e;for(var f=xx({cttAuthInfo:ix(b)||void 0},b),h=g.w(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.Sg(m)||!m.trackingParams&&!m.veType)&&g.qx(Error("Child VE logged with no data"));if(g.Zr("no_client_ve_attach_unless_shown")){var n=Dx(l,b);if(m.veType&&!zx.has(n)&&!Ax.has(n)&&!e){if(!g.Zr("il_attach_cache_limit")||yx.size<1E3){yx.set(n,[a,b,c,l]);return}g.Zr("il_attach_cache_limit")&&yx.size>1E3&&g.qx(new g.At("IL Attach cache exceeded limit"))}l=
Dx(c,b);yx.has(l)?Ex(c,b):Ax.set(l,!0)}}d=d.filter(function(p){p.csn!==b?(p.csn=b,p=!0):p=!1;return p});
c={csn:b,parentVe:c.getAsJson(),childVes:g.Ql(d,function(p){return p.getAsJson()})};
b==="UNDEFINED_CSN"?Fx("visualElementAttached",f,c):a?cx("visualElementAttached",c,a,f):g.Qt("visualElementAttached",c,f)};
qsa=function(a,b,c,d,e){Gx(c,b);d=xx({cttAuthInfo:ix(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};e&&(c.clientData=e);b==="UNDEFINED_CSN"?Fx("visualElementShown",d,c):a?cx("visualElementShown",c,a,d):g.Qt("visualElementShown",c,d)};
rsa=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8;d=xx({cttAuthInfo:ix(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:e};b==="UNDEFINED_CSN"?Fx("visualElementHidden",d,c):a?cx("visualElementHidden",c,a,d):g.Qt("visualElementHidden",c,d)};
ssa=function(a,b,c,d,e){Hx(a,b,c,void 0,d,e)};
Hx=function(a,b,c,d,e){Gx(c,b);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=xx({cttAuthInfo:ix(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:d};e&&(c.clientData=e);b==="UNDEFINED_CSN"?Fx("visualElementGestured",f,c):a?cx("visualElementGestured",c,a,f):g.Qt("visualElementGestured",c,f)};
tsa=function(){var a=cw(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
Fx=function(a,b,c){Ix.push({payloadName:a,payload:c,ppa:void 0,options:b});Jx||(Jx=Qpa())};
Opa=function(a){if(Ix){for(var b=g.w(Ix),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,g.Qt(c.payloadName,c.payload,c.options));Ix.length=0}Jx=0};
Dx=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
Gx=function(a,b){if(g.Zr("no_client_ve_attach_unless_shown")){var c=Dx(a,b);zx.set(c,!0);Ex(a,b)}};
Ex=function(a,b){a=Dx(a,b);yx.has(a)&&(b=yx.get(a)||[],g.Cx(b[0],b[1],b[2],b[3],!0),yx.delete(a))};
xx=function(a,b){g.Zr("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.Kx=function(a,b,c,d){g.Dr(qsa)(void 0,a,b,c,d,void 0)};
g.Lx=function(a,b){g.Dr(function(){g.lc(b,function(c){Gx(c,a);var d=xx({cttAuthInfo:ix(a)||void 0},a);c={csn:a,ve:c.getAsJson(),eventType:4};a==="UNDEFINED_CSN"?Fx("visualElementShown",d,c):g.Qt("visualElementShown",c,d)})})()};
g.Mx=function(a,b){g.Dr(function(){g.lc(b,function(c){rsa(void 0,a,c)})})()};
g.Nx=function(a,b,c){g.Dr(ssa)(void 0,a,b,c,void 0)};
Px=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=Ox(a)};
Ox=function(a){var b=":"+(sq.getInstance().j++).toString(36);return a+b};
g.Qx=function(a){a=a===void 0?!1:a;g.O.call(this);this.Pj=new g.eq(a);g.P(this,this.Pj)};
g.Rx=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Sx=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
Tx=function(){var a="ytp-id-"+usa.toString();usa++;return a};
g.Ux=function(a){g.O.call(this);this.Kb={};this.Ee={};this.element=this.createElement(a)};
Vx=function(a,b,c,d){if(d.substr(0,2)==="{{")a.Ee[d]=[b,c];else return d};
vsa=function(a,b){var c=[];if(!b)return c;b=g.w(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.qh("BR"));c.push(g.rh(f))}):c.push(g.rh(d))}return c};
Wx=function(a,b,c,d){if(c==="child"){g.th(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=vsa(a,e);c=g.w(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.Fm(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.Rf(g.Vf(a))),b.setAttribute(c,a))};
g.S=function(a){g.Ux.call(this,a);this.Eb=!0;this.Z=!1;this.listeners=[]};
g.Xx=function(a,b){b?a.show():a.hide()};
g.Yx=function(a){g.S.call(this,a);this.Ua=new g.Qx;g.P(this,this.Ua)};
Zx=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.Yx.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.rb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.fb=f;this.Va=null;this.aU=new aw(this.element);g.P(this,this.aU);this.kb=this.T(this.element,"click",this.onClick);this.Ca=[];this.Aa=new Nqa(this.onClick,this);g.P(this,this.Aa);this.Bb=!1;this.Ja=this.oa=null};
$x=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.qx(Error("Got null or undefined adText object")),"";var c=g.og(a.text);if(!a.isTemplated)return c;if(b==null)return g.qx(Error("Missing required parameters for a templated message")),c;a=g.w(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.w(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
wsa=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.og(a.thumbnails[0].url):""};
xsa=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.Gg(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Gg(0,0)};
g.ay=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.w(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.by=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=ph("B",null,h||l));d.italics&&(h=ph("I",null,h||l));d.strikethrough&&(h=ph("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=ph("A",null,h||l),g.Xf(h,d.url),d.target=="TARGET_NEW_WINDOW"&&(h.target="_blank"));l=h||ph("SPAN",null,
l);f.call(e,l)}}return b.length==1?b[0]:ph("SPAN",null,b)};
g.ysa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
cy=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.dy=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.ey=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
zsa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Asa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Bsa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.fy=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
Csa=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
Dsa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
Esa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
Fsa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
Gsa=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
Hsa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
Isa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
gy=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Jsa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
hy=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.iy=function(){return{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
jy=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
Ksa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Lsa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
Msa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
ky=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
Nsa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.ly=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.my=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.ny=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
Osa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
oy=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
py=function(a,b){b=b===void 0?!1:b;if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return jy();case "CHECK_BOX":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",
width:"100%"},V:[{I:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.fy();case "INFO_OUTLINE":return b?{I:"svg",X:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},V:[{I:"path",X:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}:
Gsa();case "REMOVE_CIRCLE":return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return hy();case "SKIP_NEXT_NEW":return{I:"svg",X:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",X:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Isa();
case "DISLIKE":return Dsa();default:return g.qx(new g.At("Unexpected icon:",a)),null}};
qy=function(a,b,c,d,e,f,h,l,m){e=e===void 0?[]:e;h=h===void 0?!1:h;m=m===void 0?!1:m;e={I:"button",La:["ytp-ad-button"].concat(e)};l!=null&&(e.X={tabindex:l});Zx.call(this,a,e,f===void 0?"button":f,b,c,d);this.j=this.B=this.C=null;this.G=h;this.D=m;this.hide()};
Psa=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||[]};
ry=function(){g.O.call(this);var a=this;this.j=new Map;this.B=foa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.Av(b[c])})};
Qsa=function(){sy==null&&(sy=new ry);return sy};
ty=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Rsa(a))){b=ph("SPAN",null,b);break a}b=g.rh(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(Ssa(e,b))}return c.length==1?c[0]:ph("SPAN",null,c)};
Ssa=function(a,b){var c=null,d=a.text;b&&(d=Rsa(d)||d);a.bold&&(c=ph("B",null,c||d));a.italics&&(c=ph("I",null,c||d));a.strikethrough&&(c=ph("STRIKE",null,c||d));a.navigationEndpoint&&g.Q(a.navigationEndpoint,g.uy)&&(b=g.Q(a.navigationEndpoint,g.uy),c=ph("A",null,c||d),g.Xf(c,b.url),b.target=="TARGET_NEW_WINDOW"&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Qsa().register(c,a),g.Mp(c,"ytp-ad-has-logging-urls"));
return c||ph("SPAN",null,d)};
Rsa=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(ph("BR")),b.push(a[c]);return b}return null};
vy=function(a,b,c,d,e,f,h,l,m){f=f===void 0?!1:f;h=h===void 0?[]:h;m=m===void 0?!1:m;Zx.call(this,a,{I:"span",La:["ytp-ad-hover-text-button"].concat(h)},l===void 0?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.W=f;this.G=e;this.C=m;this.hide()};
wy=function(a){return a&&a.thumbnails&&(a.thumbnails||null).length!=0&&a.thumbnails[0].url?g.og(a.thumbnails[0].url):""};
yy=function(a,b,c,d,e,f){f=f===void 0?!1:f;Zx.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,e===void 0?null:e);this.j=f;this.hide()};
zy=function(a,b,c,d,e,f){e=e===void 0?[]:e;Zx.call(this,a,{I:"div",La:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",La:["ytp-ad-confirm-dialog"].concat(e),X:{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",La:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.fy()]}]}]},f===void 0?"confirm-dialog":f,b,c,d);this.W=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Da("ytp-ad-confirm-dialog-cancel-button");this.G=this.Da("ytp-ad-confirm-dialog-confirm-button");this.qa=this.Da("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new ft;g.P(this,this.j);this.B=null;this.hide()};
Tsa=function(a,b){if(b.title){var c=g.ay(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.w(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=ty(d.value),a.qa.appendChild(d)}b.cancelLabel&&(c=g.ay(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.nO(e)}));
b.confirmLabel&&(b=g.ay(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.zS(e)}));
a.j.T(a.W,"click",function(e){return a.yS(e)})};
Ay=function(a,b,c,d,e,f){e=e===void 0?[]:e;f=f===void 0?"toggle-button":f;var h=Ox("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.bb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.bb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");Zx.call(this,a,{I:"div",La:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",X:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",X: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",X:{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.Da("ytp-ad-toggle-button");this.j=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.B=this.Da("ytp-ad-toggle-button-icon");this.W=this.Da("ytp-ad-toggle-button-untoggled-icon");
this.G=this.Da("ytp-ad-toggle-button-toggled-icon");this.Fa=this.Da("ytp-ad-toggle-button-text");this.C=null;this.qa=!1;this.hide()};
By=function(a){a.qa&&(a.isToggled()?(g.Sm(a.W,!1),g.Sm(a.G,!0),a.api.U().experiments.bb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Sm(a.W,!0),g.Sm(a.G,!1),a.api.U().experiments.bb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
Usa=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||[]};
Vsa=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
Cy=function(a){ft.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
Dy=function(a,b,c,d){Zx.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",X:{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.Da("ytp-ad-feedback-dialog-cancel-button");this.W=this.Da("ytp-ad-feedback-dialog-confirm-button");this.qa=this.Da("ytp-ad-info-dialog-feedback-options");this.Fa=this.Da("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Zsa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new qy(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,["ytp-ad-feedback-dialog-close-button"],"button"),g.P(a,a.j),a.j.init(Ox("button"),c,a.macros),a.j.listen("click",a.J0,a),a.j.Ha(a.element));b.title&&(c=g.ay(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.ay(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Wsa(a,b.reasons);b.cancelLabel&&(c=g.ay(b.cancelLabel),a.updateValue("cancelLabel",
c),g.at(a.G,"click",function(){return a.J0()}));
b.confirmLabel&&(c=g.ay(b.confirmLabel),a.updateValue("confirmLabel",c),g.at(a.W,"click",function(){return Xsa(a)}));
b.undoRenderer&&Ysa(a,b.undoRenderer)};
Wsa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(c==null)g.qx(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,d==null)g.qx(Error("AdFeedbackReason.endpoint was not set."));else{c=new Ey(c,d);g.P(a,c);d=a.qa;var e=c.Ib();d.appendChild(e);a.D.push(c)}}};
Ysa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new qy(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.P(a,a.B),a.B.init(Ox("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.lda,a),a.B.Ha(a.Fa)):g.qx(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Xsa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
b.length!==0&&(b=b[0].getCommand(),a.layoutId?a.fb.executeCommand(b,a.layoutId):g.px(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
Ey=function(a,b){this.B=b;this.j=new g.Yx({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",va:g.ay(a)}]});this.C=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
Fy=function(a,b,c,d){zy.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
Gy=function(a,b,c,d,e){Zx.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",X:{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.W=this.Da("ytp-ad-info-dialog-confirm-button");this.Ya=this.Da("ytp-ad-info-dialog-mute-container");this.Ta=this.Da("ytp-ad-info-dialog-message");this.Ka=this.Da("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Fa=e;this.G=null;this.Oa=!1;this.qa=null;this.hide()};
$sa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Dy(a.api,a.layoutId,a.interactionLoggingClientData,a.fb),g.P(a,a.B),a.B.init(Ox("ad-feedback-dialog"),b,a.macros),a.B.Ha(a.Fa),a.B.subscribe("a",function(){return a.publish("c")})};
ata=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new Fy(a.api,a.layoutId,a.interactionLoggingClientData,a.fb),g.P(a,a.D),a.D.init(Ox("ad-mute-confirm-dialog"),b,a.macros),a.D.Ha(a.Fa),a.D.subscribe("b",function(){return a.publish("c")})};
bta=function(a){a.j&&a.j.listen("click",a.tW,a);g.at(a.W,"click",function(){return a.tW()})};
Hy=function(a,b,c,d,e,f,h){vy.call(this,a,b,c,d,f===void 0?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",h===void 0?!1:h);this.j=null;this.D=e;this.hide()};
dta=function(a,b,c){b=b.dialog&&g.Q(b.dialog,cta)||null;b==null?g.px(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new Gy(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,a.D),g.P(a,a.j),a.j.init(Ox("ad-info-dialog"),b,c),a.j.Ha(a.D),a.j.subscribe("d",function(){return a.publish("f")}),a.j.subscribe("c",function(){return a.publish("e")}))};
gta=function(a,b,c){a.button==null?g.px(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Mp(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.Q(b.serviceEndpoint,eta)||null)?(dta(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Eb&&(a.j.show(),fta(a))})):a.button.listen("click",function(){return fta(a)}))};
fta=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
Iy=function(a,b,c,d,e,f){Zx.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()};
Jy=function(a,b){b&&g.zh(a.element,$x(a.j,b))};
Ky=function(a,b,c,d,e,f,h){Zx.call(this,a,b,c,d,e,f);this.j=h;g.P(this,this.j);this.Oa=this.W=-1};
Ly=function(a){a.j&&a.W===-1&&(a.W=a.j.subscribe("h",a.pp,a),a.Oa=a.j.subscribe("g",a.Wq,a),a.pp())};
My=function(a){a.j!=null&&a.W!==-1&&(a.j.Fh(a.W),a.j.Fh(a.Oa),a.Oa=-1,a.W=-1)};
g.Ny=function(a,b,c,d,e,f){g.O.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.Ep(this.iJ,0,this);g.P(this,this.delay)};
Oy=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
Py=function(a,b,c,d,e,f){Ky.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Ya=-1;this.D=this.api.U().experiments.bb("enable_modern_skip_button_on_web");this.B=new g.Yx({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.P(this,this.B);this.C=this.D?new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-preview-text-modern"):new Iy(this.api,this.layoutId,this.interactionLoggingClientData,
this.fb,"ytp-ad-preview-text");g.P(this,this.C);this.C.Ha(this.B.element);this.qa=this.D?new g.Yx({I:"span",S:"ytp-ad-preview-image-modern"}):new g.Yx({I:"span",S:"ytp-ad-preview-image"});g.P(this,this.qa);this.G=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb);g.P(this,this.G);this.G.Ha(this.qa.element);this.qa.Ha(this.B.element);this.B.Ha(this.element);this.Fa=new g.Ny(this.B,400,!1,100,function(){return h.hide()});
g.P(this,this.Fa);this.Ka=0;this.Ta=!1;this.ib=f;this.hide()};
Qy=function(a){a.Fa.show(100);a.show()};
Ry=function(a,b,c,d,e,f){Ky.call(this,a,{I:"div",La:["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 yy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-flyout-cta-icon");
g.P(this,this.C);this.C.Ha(this.Da("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 Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-flyout-cta-headline");g.P(this,this.G);this.G.Ha(this.Da("ytp-flyout-cta-headline-container"));this.D=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-flyout-cta-description");g.P(this,this.D);this.D.Ha(this.Da("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 qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,a);g.P(this,this.B);this.B.Ha(this.Da("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");zp(this.B.element);this.qa=null;this.Fa=0;this.Ka=f;this.hide()};
Sy=function(a,b,c,d,e){Zx.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 Ay(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,["ytp-ad-instream-user-sentiment-like-button"]);g.P(this,this.C);this.C.Ha(this.element);this.B=new Ay(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.P(this,this.B);this.B.Ha(this.element);
this.D=new g.Ny(this,400,!1,500,function(){return f.hide()});
g.P(this,this.D);this.hide()};
Ty=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?!1:f;g.O.call(this);this.B=a;this.C=!1;this.W=d;this.oa=f;this.K=!1;this.j=null;b>0&&(this.j=new g.Ep(this.HX,b,this),g.P(this,this.j));this.G=new g.Ep(this.HX,c,this);g.P(this,this.G);this.Z=Tla(this.B,e,1,d);g.P(this,this.Z);this.N=Tla(this.B,0,d,1);g.P(this,this.N);this.D=new ft;g.P(this,this.D)};
hta=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:cd(a,"unknown result type")}};
ita=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;case "m.c_":return 34;default:cd(a,"Unknown method type")}};
jta=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);yr("ISDSTAT",c);Uy(c,"i.s_",{triggerContext:"sk",metadata:b,states:d});return c};
kta=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");Uy(0,"a.s_",{metadata:a,states:c},!1);yr("ASDSTAT",0)};
Uy=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.triggerContext)!=null?e:"")+((f=c.J7)!=null?f:""),detectionStates:c.states,durationMs:c.I7};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.Qt("biscottiBasedDetection",h);d&&(a=hta(a),b=ita(b),yr("CATSTAT",Number(g.zr("CATSTAT",0))&~(3<<b)|a<<b))};
Vy=function(a){return a?"layout:  "+a.layoutType:""};
Wy=function(a,b,c){return a?!0:(g.qx(new g.At("Assertion: "+b,c)),!1)};
Xy=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.At(a);if(a.args)for(var f=g.w(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=Vy(c),d.layoutId=c.layoutId);e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.qx(a)}};
g.Yy=function(a,b){this.state=a;this.TB=b};
Zy=function(a,b){return g.U(a.state,b)&&!g.U(a.TB,b)?1:!g.U(a.state,b)&&g.U(a.TB,b)?-1:0};
g.$y=function(a,b){return Zy(a,b)>0};
az=function(a,b,c,d,e,f){Ky.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.qa=null;this.Fa=!1;this.Ta=f;this.G=this.api.U().experiments.bb("enable_modern_skip_button_on_web");this.Ya=!1;this.C=new g.Yx({I:"span",La:["ytp-ad-skip-button-container"]});this.G&&this.C.element.classList.add("ytp-ad-skip-button-container-detached");this.api.L("enable_ad_pod_index_autohide")&&this.C.element.classList.add("ytp-ad-skip-button-container--clean-player");g.P(this,this.C);
this.C.Ha(this.element);this.B=this.D=null;this.ib=new g.Ny(this.C,500,!1,100,function(){return h.hide()});
g.P(this,this.ib);this.Ka=new Ty(this.C.element,15E3,5E3,.5,.5,this.G);g.P(this,this.Ka);this.hide()};
mta=function(a){a=a.qa&&a.qa.adRendererCommands;return(a&&a.clickCommand&&g.Q(a.clickCommand,g.bz)&&g.Q(a.clickCommand,g.bz).commands||[]).some(function(b){return b.adLifecycleCommand?lta(b.adLifecycleCommand):!1})};
lta=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"};
cz=function(a,b,c,d,e,f){Ky.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.qa=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
nta=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Fa.hide():a.B.hide()),b?(a=a.C,a.ib.show(),a.show()):a.C.show())};
dz=function(a,b,c,d){qy.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
ez=function(a,b,c,d,e,f,h,l){h=h===void 0?!1:h;l=l===void 0?!1:l;Zx.call(this,a,{I:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.C=e;this.D=f;this.j=this.Da("ytp-ad-simple-ad-badge");(this.B=h)&&this.j.classList.add("ytp-ad-simple-ad-badge--clean-player");l&&this.j.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
fz=function(a,b,c,d,e){e=e===void 0?!1:e;Px.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.oN=e};
gz=function(a,b){g.Qx.call(this);this.api=a;this.durationMs=b;this.j=null;this.Id=new ft(this);g.P(this,this.Id);this.B=ota;this.Id.T(this.api,"presentingplayerstatechange",this.m6);this.j=this.Id.T(this.api,"onAdPlaybackProgress",this.Rc)};
hz=function(a){g.Qx.call(this);this.j=!1;this.vj=0;this.Id=new ft(this);g.P(this,this.Id);this.durationMs=a;this.Ze=new g.Oi(100);g.P(this,this.Ze);this.Id.T(this.Ze,"tick",this.Rc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.iz=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.jz=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)};
kz=function(a,b,c,d,e,f,h){Ky.call(this,a,{I:"span",S:h?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.B=null;h&&this.api.U().B&&this.element.classList.add("ytp-ad-duration-remaining--mweb");this.hide()};
lz=function(a,b,c,d){Iy.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title");a.L("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")};
mz=function(a){this.content=a.content;if(a.commandRuns){a=g.w(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.Q(b,pta),b.onTap&&(this.interaction={onTap:b.onTap})}};
nz=function(a,b,c,d){Zx.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
oz=function(a,b,c,d,e){Zx.call(this,a,{I:"span",S:e?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",b,c,d);this.B=e;this.adBadgeText=new nz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb);this.adBadgeText.Ha(this.element);g.P(this,this.adBadgeText);e?this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
pz=function(a,b,c,d,e){Zx.call(this,a,{I:"span",S:"ytp-ad-pod-index"},"ad-pod-index",b,c,d);this.B=e;this.api.U().B&&this.element.classList.add("ytp-ad-pod-index--mweb");this.hide()};
qz=function(a,b,c,d){Zx.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()};
rz=function(a,b){this.B=a;this.j=b};
sz=function(a,b,c){if(!a.getLength())return c!=null?c:Infinity;a=(b-a.B)/a.getLength();return g.Bg(a,0,1)};
tz=function(a,b,c,d){d=d===void 0?!1:d;g.Yx.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;this.C=c;d&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.P(this,this.B);this.progressBar=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
uz=function(a,b,c,d,e,f){Zx.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.qa=f;this.D=this.Da("ytp-ad-player-overlay-flyout-cta");this.api.U().L("web_rounded_thumbnails")&&
this.D.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.j=this.Da("ytp-ad-player-overlay-instream-info");this.G=null;qta(this)&&(a=ph("div"),g.Mp(a,"ytp-ad-player-overlay-top-bar-gradients"),this.api.L("disable_ad_preview_for_instream_ads")&&g.Mp(a,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),b=this.j,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new lz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),
c.Ha(a),c.init(Ox("ad-title"),{text:b.title},this.macros),g.P(this,c)),this.G=a);this.C=null;this.W=this.Da("ytp-ad-player-overlay-skip-or-preview");this.Oa=this.Da("ytp-ad-player-overlay-progress-bar");this.Ka=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.Fa=this.Da("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.P(this,this.B);this.hide()};
qta=function(a){a=a.api.U();return g.vz(a)&&a.B};
Pz=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.gj("/sharing_services",a);g.Av(d)};
g.Qz=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)};
Rz=function(a){this.j=new hq(a)};
rta=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.zr("INNERTUBE_CLIENT_NAME")==="WEB"||g.zr("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
Sz=function(a){if(g.zr("LOGGED_IN",!0)&&rta()){var b=g.zr("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.aj(window.location.href);c&&b.push(c);c=g.aj(a);g.Wb(b,c)||!c&&vb(a,"/")?(b=bj(a),(b=Lfa(b))?(b=Sra(b),b=(b=g.os(b)||null)?Hr(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;rta()?(d||(d=g.zr("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&jx(a,b)}};
g.sta=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.gj(a,b);Sz(a);c=g.Vf(a+c);d=d.location;c=Wf(c);c!==void 0&&(d.href=c)};
g.Tz=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.zr("EVENT_ID");d&&(b.ei||(b.ei=d));b&&jx(a,b);c||(Sz(a),g.sta(a))};
g.Uz=function(a,b,c,d,e){e=e===void 0?!1:e;c&&jx(a,c);c=g.Vf(a);var f=g.Rf(c);a!=f&&Er(Error("Unsafe window.open URL: "+a));a=f;b=b||pg(a).toString(36);try{if(e){e=a;e=xqa(e);Sz(e);g.bg(window,e,b,"attributionsrc");return}}catch(h){g.Cr(h)}Sz(a);g.bg(window,c,b,d)};
tta=function(a){Vz=a};
uta=function(a){Wz=a};
vta=function(a){Xz=a};
xta=function(){wta=Xz=Wz=Vz=null};
zta=function(){var a=a===void 0?window.location.href:a;if(g.Zr("kevlar_disable_theme_param"))return null;Yi(g.$i(5,a));try{var b=g.Jr(a).theme;return yta.get(b)||null}catch(c){}return null};
Yz=function(){this.j={};if(this.B=Dna()){var a=g.os("CONSISTENCY");a&&Ata(this,{encryptedTokenJarContents:a})}};
Ata=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.ns("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
$z=function(){this.B=-1;var a=g.zr("LOCATION_PLAYABILITY_TOKEN");g.zr("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Zz(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Zz=function(a){return a.localStorage===void 0?new Kt("yt-client-location"):a.localStorage};
g.aA=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.zr("INNERTUBE_CONTEXT");if(!d)return g.px(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Zg(d);g.Zr("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.zr("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.tt();var h="USER_INTERFACE_THEME_LIGHT";g.ut(0,165)?h="USER_INTERFACE_THEME_DARK":g.ut(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Zr("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:zta()||h;e.userInterfaceTheme=f;if(!b){if(f=qoa())e.connectionType=f;g.Zr("web_log_effective_connection_type")&&(f=soa())&&(d.client.effectiveConnectionType=f)}var l;if(g.Zr("web_log_memory_total_kbytes")&&((l=g.Na.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.Na.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.Zr("web_gcf_hashes_innertube")&&(f=zpa())&&(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.Jr(g.Na.location.href);!g.Zr("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.Na.location.href},g.Zr("kevlar_woffle")&&joa.instance&&(m=joa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=pt(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.Zr("web_lr_app_quality_killswitch")&&(m=g.zr("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.zr("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Zr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(L){}n=void 0}n&&(e.timeZone=n)}(n=as())?e.experimentsToken=n:delete e.experimentsToken;n=bs();Yz.instance||(Yz.instance=new Yz);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.Ng(Yz.instance.j)});!g.Zr("web_prequest_context_killswitch")&&(n=g.zr("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.tt();n=g.ut(0,58);e=e.get("gsml","");d.user=Object.assign({},
d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Zr("warm_op_csn_cleanup")?c&&(b=g.hx())&&(d.clientScreenNonce=b):!b&&(b=g.hx())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Pa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;$z.getInstance().setLocationOnInnerTubeContext(d);try{var p=Rr(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.w(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.w(t.value),y=u.next().value,
A=u.next().value;p=y;q=A;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var C,F;if(((C=d.client)==null?void 0:C.clientName)==="TVHTML5"||((F=d.client)==null?void 0:F.clientName)==="TVHTML5_UNPLUGGED"&&g.Zr("add_ifa_to_tvh5_requests")){var H=g.zr("INNERTUBE_CONTEXT");H.adSignalsInfo&&(d.adSignalsInfo.advertisingId=H.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=H.adSignalsInfo.limitAdTracking)}}catch(L){g.px(L)}return d};
Dta=function(a,b){if(!a)return!1;var c,d=(c=g.Q(a,Bta))==null?void 0:c.signal;if(d&&b.xz)return!!b.xz[d];var e;if((c=(e=g.Q(a,Cta))==null?void 0:e.request)&&b.CP)return!!b.CP[c];for(var f in a)if(b.uP[f])return!0;return!1};
Eta=function(a){var b={"Content-Type":"application/json"};g.zr("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.zr("EOM_VISITOR_DATA"):g.zr("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.zr("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.zr("LOGGED_IN",!1);g.zr("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.zr("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.zr("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.zr("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=g.zr("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.zr("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
Fta=function(){this.j={}};
bA=function(){this.mappings=new Fta};
cA=function(a){return function(){return new a}};
Hta=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=Gta[b];if(c){c=new RegExp(c);for(var d=g.w(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Gta).forEach(function(h){var l=g.w(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.w(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.dA=function(a){return"/youtubei/v1/"+Hta(a)};
eA=function(){};
fA=function(){};
gA=function(){};
hA=function(a){return g.Pa("ytcsi."+(a||"")+"data_")||Ita(a)};
Jta=function(){var a=hA();a.info||(a.info={});return a.info};
iA=function(a){a=hA(a);a.metadata||(a.metadata={});return a.metadata};
jA=function(a){a=hA(a);a.tick||(a.tick={});return a.tick};
kA=function(a){a=hA(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Kta=function(a){a=kA(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
lA=function(a){var b=hA(a).nonce;b||(b=g.dw(16),hA(a).nonce=b);return b};
Ita=function(a){var b={tick:{},info:{}};g.Oa("ytcsi."+(a||"")+"data_",b);return b};
mA=function(){var a=g.Pa("ytcsi.debug");a||(a=[],g.Oa("ytcsi.debug",a),g.Oa("ytcsi.reference",{}));return a};
nA=function(a){a=a||"";var b=Lta();if(b[a])return b[a];var c=mA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Mta=function(a){a=a||"";var b=Lta();b[a]&&delete b[a];var c=mA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Lta=function(){var a=g.Pa("ytcsi.reference");if(a)return a;mA();return g.Pa("ytcsi.reference")};
oA=function(a){return Nta[a]||"LATENCY_ACTION_UNKNOWN"};
pA=function(a,b){dv.call(this,1,arguments);this.Ze=b};
qA=function(){this.j=0};
rA=function(){qA.instance||(qA.instance=new qA);return qA.instance};
tA=function(a,b){sA[b]=sA[b]||{count:0};var c=sA[b];c.count++;c.time=(0,g.hu)();a.j||(a.j=g.Ft(0,function(){var d=(0,g.hu)(),e;for(e in sA)sA[e]&&d-sA[e].time>6E4&&delete sA[e];a&&(a.j=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.At("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.qx(c)),!0):!1};
Ota=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Pta=function(){var a;if(g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=uA==null?void 0:(a=uA.getEntriesByType)==null?void 0:(b=a.call(uA,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=vA(e.requestStart),e.responseEnd=vA(e.responseEnd),e.redirectStart=vA(e.redirectStart),e.redirectEnd=vA(e.redirectEnd),e.domainLookupEnd=vA(e.domainLookupEnd),e.connectStart=vA(e.connectStart),
e.connectEnd=vA(e.connectEnd),e.responseStart=vA(e.responseStart),e.secureConnectionStart=vA(e.secureConnectionStart),e.domainLookupStart=vA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=uA.timing}else a=g.Zr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(uA.timing)):uA.timing;return a};
vA=function(a){return Math.round(wA()+a)};
wA=function(){return(g.Zr("csi_use_time_origin")||g.Zr("csi_use_time_origin_tvhtml5"))&&uA.timeOrigin?Math.floor(uA.timeOrigin):uA.timing.navigationStart};
yA=function(a,b){xA("_start",a,b)};
zA=function(a,b){if(!g.Zr("web_csi_action_sampling_enabled")||!hA(b).actionDisabled){var c=nA(b||"");Yv(c.info,a);a.loadType&&(c=a.loadType,iA(b).loadType=c);Yv(Kta(b),a);c=lA(b);b=hA(b).cttAuthInfo;rA().info(a,c,b)}};
Qta=function(){var a,b,c,d;return((d=ow().resolve(new jw(Zu))==null?void 0:(a=$u())==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]})};
xA=function(a,b,c){if(!g.Zr("web_csi_action_sampling_enabled")||!hA(c).actionDisabled){var d=lA(c),e;if(e=g.Zr("web_csi_debug_sample_enabled")&&d){(ow().resolve(new jw(Zu))==null?0:$u())&&!Rta&&(Rta=!0,xA("gcfl",(0,g.hu)(),c));var f,h,l;e=(ow().resolve(new jw(Zu))==null?void 0:(f=$u())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=Qta();if(f.length>0)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=nsa(d)%e!==0,hA(c).debugTicksExcludedLogged||
(f={},f.debugTicksExcluded=e,zA(f,c)),hA(c).debugTicksExcludedLogged=!0):e=!1}if(!e){if(a[0]!=="_"&&(e=a,f=b,uA.mark))if(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),f===void 0||g.Zr("web_csi_disable_alt_time_performance_mark"))uA.mark(e);else{f=g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")?f-uA.timeOrigin:f-(uA.timeOrigin||uA.timing.navigationStart);try{uA.mark(e,{startTime:f})}catch(m){}}e=nA(c||"");e.tick[a]=b||(0,g.hu)();if(e.callback&&
e.callback[a])for(e=g.w(e.callback[a]),f=e.next();!f.done;f=e.next())f=f.value,f();e=kA(c);e.gelTicks&&(e.gelTicks[a]=!0);f=jA(c);e=b||(0,g.hu)();g.Zr("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=hA(c).cttAuthInfo;a==="_start"?(a=rA(),tA(a,"baseline_"+d)||g.Qt("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:f})):rA().tick(a,d,b,f);Sta(c);return e}}};
Tta=function(){var a,b=(a=uA.getEntriesByType)==null?void 0:a.call(uA,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=uA.clearMarks)==null||d.call(uA,c.name)}})};
Uta=function(){switch(Xna()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Vta=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.w(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.w(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};
Wta=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);cg(window)&&a.setAttribute("nonce",cg(window));return c?(a=uA.getEntriesByName(c))&&a[0]&&(a=a[0],c=wA(),xA("rsf_"+b,c+Math.round(a.fetchStart)),xA("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
Xta=function(){var a=window.location.protocol,b=uA.getEntriesByType("resource");b=g.Bn(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(b=Sl(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(xA("wffs",vA(b.startTime)),xA("wffe",vA(b.responseEnd)))};
Yta=function(a,b,c){uA&&uA.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?uA.measure(a,b,c):b?uA.measure(a,b):uA.measure(a))};
Zta=function(a){var b=AA("aft",a);if(b)return b;b=g.zr((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=AA(b[d],a);if(e)return e}return NaN};
BA=function(a,b){g.Oa("ytglobal.timing"+(b||"")+"ready_",a)};
AA=function(a,b){if(a=jA(b)[a])return typeof a==="number"?a:a[a.length-1]};
Sta=function(a){var b=AA("_start",a),c=Zta(a),d=g.Zr("enable_cow_info_csi")||!$ta;b&&c&&d&&(gv(aua,new pA(Math.round(c-b),a)),$ta=!0)};
bua=function(){if(uA.getEntriesByType){var a=uA.getEntriesByType("paint");if(a=g.Ub(a,function(c){return c.name==="first-paint"}))return vA(a.startTime)}var b;
g.Zr("csi_use_performance_navigation_timing")||g.Zr("csi_use_performance_navigation_timing_tvhtml5")?b=uA.getEntriesByType("first-paint")[0].startTime:b=uA.timing.Cpa;return b?Math.max(0,b):0};
CA=function(a){Ita(a);cua();Tta();a||(g.zr("TIMING_ACTION")&&yr("PREVIOUS_ACTION",g.zr("TIMING_ACTION")),yr("TIMING_ACTION",""))};
dua=function(){var a=["pbs","pbu"];g.Dr(function(){nA("").info.actionType="watch";a&&yr("TIMING_AFT_KEYS",a);yr("TIMING_ACTION","watch");var b=Vta(g.zr("TIMING_INFO",{}));Object.keys(b).length>0&&zA(b);b={isNavigation:!0,actionType:oA(g.zr("TIMING_ACTION"))};var c=g.zr("PREVIOUS_ACTION");c&&(b.previousAction=oA(c));if(c=g.zr("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.zr("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.hx())&&c!=="UNDEFINED_CSN"&&(b.clientScreenNonce=c);c=Uta();if(c===1||c===-1)b.isVisible=
!0;c=iA().loadType==="cold";var d=Jta();c||(c=d.yt_lt==="cold");if(c){b.loadType="cold";c=Jta();d=Pta();var e=wA(),f=g.zr("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.Zr("embeds_web_enable_csi_start_override_killswitch")&&(e=f);e&&(xA("srt",d.responseStart),c.prerender!==1&&yA(e));c=bua();c>0&&xA("fpt",c);c=Pta();c.isPerformanceNavigationTiming&&zA({performanceNavigationTiming:!0},void 0);xA("nreqs",c.requestStart,void 0);xA("nress",c.responseStart,void 0);xA("nrese",c.responseEnd,void 0);c.redirectEnd-
c.redirectStart>0&&(xA("nrs",c.redirectStart,void 0),xA("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(xA("ndnss",c.domainLookupStart,void 0),xA("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(xA("ntcps",c.connectStart,void 0),xA("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=wA()&&c.connectEnd-c.secureConnectionStart>0&&(xA("nstcps",c.secureConnectionStart,void 0),xA("ntcpe",c.connectEnd,void 0));uA&&"getEntriesByType"in uA&&Xta();c=[];if(document.querySelector&&
uA&&uA.getEntriesByName)for(var h in DA)DA.hasOwnProperty(h)&&(d=DA[h],Wta(h,d)&&c.push(d));if(c.length>0)for(b.resourceInfo=[],h=g.w(c),c=h.next();!c.done;c=h.next())b.resourceInfo.push({resourceCache:c.value})}zA(b);b=kA();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);h=b.preLoggedGelInfos;b=Kta();c=void 0;for(d=0;d<h.length;d++)if(e=h[d],e.loadType){c=e.loadType;break}if(iA().loadType==="cold"&&(b.loadType==="cold"||c==="cold")){c=jA();d=kA();d=d.gelTicks?d.gelTicks:d.gelTicks={};for(var l in c)if(!(l in
d))if(typeof c[l]==="number")xA(l,AA(l));else if(g.Zr("log_repeated_ytcsi_ticks"))for(e=g.w(c[l]),f=e.next();!f.done;f=e.next())xA(l.slice(1),f.value);l={};c=!1;h=g.w(h);for(d=h.next();!d.done;d=h.next())c=d.value,Yv(b,c),Yv(l,c),c=!0;c&&zA(l)}BA(!0);l=g.zr("TIMING_ACTION");g.Pa("ytglobal.timingready_")&&l&&EA()&&Zta()&&Sta()})()};
eua=function(){var a=a===void 0?{}:a;g.Dr(function(){EA()&&FA("aa",void 0,void 0);Mta();CA();BA(!1);a.cttAuthInfo&&(hA().cttAuthInfo=a.cttAuthInfo);yr("TIMING_AFT_KEYS",[]);a.jpa?g.GA({loadType:"hot"}):g.GA({loadType:"warm"});yr("TIMING_ACTION","");delete g.zr("TIMING_INFO",{}).yt_lt;g.Dr(yA)(a.startTime,void 0)})()};
HA=function(a,b){b=b===void 0?{}:b;g.Dr(function(){fua(a);var c=b.sampleRate;if(!g.Zr("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var d=lA(a);c=nsa(d)%c!==0}c&&(hA(a).actionDisabled=!0);nA(a||"").info.actionType=a;b.cttAuthInfo&&(hA(a).cttAuthInfo=b.cttAuthInfo);yr(a+"TIMING_ACTION",a);g.Dr(yA)(b.startTime,a);c={actionType:oA(a)};b.upa&&(c.previousAction=oA(g.zr("TIMING_ACTION")));(d=g.hx())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);g.GA(c,a);BA(!0,a)})()};
fua=function(a){g.Dr(function(){EA(a)&&FA("aa",void 0,a);Mta(a);CA(a)})()};
EA=function(a){return g.Dr(function(){return IA("_start",a)})()};
g.GA=function(a,b,c){g.Dr(zA)(a,b,c===void 0?!1:c)};
FA=function(a,b,c){return g.Dr(xA)(a,b,c)};
gua=function(a){g.Dr(Yta)("action_finished",a,void 0)};
IA=function(a,b){return g.Dr(function(){var c=jA(b);return a in c})()};
iua=function(a){if(!g.Zr("universal_csi_network_ticks"))return"";a=Yi(g.$i(5,a))||"";for(var b=Object.keys(hua),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
kua=function(a){if(!g.Zr("universal_csi_network_ticks"))return function(){};
var b=hua[a];return b?(JA(b),function(){var c=g.Zr("universal_csi_network_ticks")?(c=jua[a])?JA(c):!1:!1;return c}):function(){}};
JA=function(a,b){return g.Dr(function(){if(IA(a,b))return!1;FA(a,void 0,b);return!0})()};
KA=function(a,b,c){g.Dr(function(){if(!EA(c)||IA(a,c))return!1;FA(a,b,c);return!0})()};
lua=function(){g.Dr(function(){var a=lA();requestAnimationFrame(function(){setTimeout(function(){a===lA()&&FA("ftl",void 0,void 0)},0)})})()};
LA=function(a,b,c,d){this.WP=a;this.wh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.xz||(a.xz={});a.xz=Object.assign({},mua,a.xz)};
nua=function(a,b,c,d){if(LA.instance!==void 0){if(d=LA.instance,a=[a!==d.WP,b!==d.wh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.At("InnerTubeTransportService is already initialized",a);
}else LA.instance=new LA(a,b,c,d)};
MA=function(a,b,c){var d=d===void 0?cv:d;var e=oua(a,b);return e?new g.Fi(function(f,h){var l,m,n,p,q;return g.J(function(r){switch(r.j){case 1:return g.G(r,e,2);case 2:l=r.B;m=l.G(b,c,d);if(!m){h(new g.At("Error: Failed to build request for command.",b));r.Ea(0);break}Sz(m.input);p=((n=m.Mv)==null?void 0:n.mode)==="cors"?"cors":void 0;if(a.j.r3){q=pua(a,m.config,p);r.Ea(4);break}return g.G(r,qua(a,m.config,p),5);case 5:q=r.B;case 4:f(rua(a,m,q)),g.va(r)}})}):Ki(new g.At("Error: No request builder found for command.",
b))};
g.NA=function(a,b,c,d,e){function f(){}
e=e===void 0?{bx:{identity:cv}}:e;var h=h===void 0?!0:h;f=kua(iua(c));b.context||(b.context=g.aA(d,h));return new g.Fi(function(l){var m,n,p,q,r;return g.J(function(t){if(t.j==1)return m=qs(c),n=Mr(m)?"same-origin":"cors",a.j.r3?(p=pua(a,e,n),t.Ea(2)):g.G(t,qua(a,e,n),3);t.j!=2&&(p=t.B);var u=p;q=Ena(qs(c),u);r={input:q,Mv:rs(q),Aq:b,config:e};l(rua(a,r,p,f));g.va(t)})})};
tua=function(a,b,c){var d;if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.D){d=g.w(sua);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
rua=function(a,b,c,d){d=d===void 0?function(){}:d;
var e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N,X,V,ca,la,W,R,Y,v,T,$a,ub,pb;return g.J(function(Da){switch(Da.j){case 1:Da.Ea(2);break;case 3:if((e=Da.B)&&!e.isExpired())return Da.return(Promise.resolve(e.j()));case 2:if(!((f=b)==null?0:(h=f.Aq)==null?0:h.context)){Da.Ea(4);break}l=b.Aq.context;Da.Ea(5);break;case 5:m=g.w([]),n=m.next();case 8:if(n.done){Da.Ea(4);break}p=n.value;return g.G(Da,p.Wpa(l),9);case 9:n=m.next();Da.Ea(8);break;case 4:if((q=a.C)==null||!q.sqa(b.input,b.Aq)){Da.Ea(12);break}return g.G(Da,
a.C.spa(b.input,b.Aq),13);case 13:return r=Da.B,g.Zr("kevlar_process_local_innertube_responses_killswitch")||tua(a,r,b),Da.return(r);case 12:return(y=(u=b.config)==null?void 0:u.yC)&&a.B.has(y)?t=a.B.get(y):(A=JSON.stringify(b.Aq),H=(F=(C=b.Mv)==null?void 0:C.headers)!=null?F:{},b.Mv=Object.assign({},b.Mv,{headers:Object.assign({},H,c)}),L=Object.assign({},b.Mv),b.Mv.method==="POST"&&(L=Object.assign({},L,{body:A})),((N=b.config)==null?0:N.oea)&&FA(b.config.oea),X=function(){return a.wh.fetch(b.input,
L,b.config)},t=X(),y&&a.B.set(y,t)),g.G(Da,t,14);
case 14:if((V=Da.B)&&"error"in V&&((ca=V)==null?0:(la=ca.error)==null?0:la.details))for(W=V.error.details,R=g.w(W),Y=R.next();!Y.done;Y=R.next())v=Y.value,(T=v["@type"])&&uua.indexOf(T)>-1&&(delete v["@type"],V=v);y&&a.B.has(y)&&a.B.delete(y);(($a=b.config)==null?0:$a.sea)&&FA(b.config.sea);if(V||(ub=a.C)==null||!ub.una(b.input,b.Aq)){Da.Ea(15);break}return g.G(Da,a.C.rpa(b.input,b.Aq),16);case 16:V=Da.B;case 15:return tua(a,V,b),((pb=b.config)==null?0:pb.Vda)&&FA(b.config.Vda),d(),Da.return(V||void 0)}})};
oua=function(a,b){a:{a=a.WP;var c,d=(c=g.Q(b,Bta))==null?void 0:c.signal;if(d&&a.xz&&(c=a.xz[d])){var e=c();break a}var f;if((c=(f=g.Q(b,Cta))==null?void 0:f.request)&&a.CP&&(f=a.CP[c])){e=f();break a}for(e in b)if(a.uP[e]&&(b=a.uP[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)};
qua=function(a,b,c){var d,e,f,h,l,m,n;return g.J(function(p){if(p.j==1){f=((d=b)==null?void 0:(e=d.bx)==null?void 0:e.identity)||cv;m=(h=b)==null?void 0:(l=h.bx)==null?void 0:l.sessionIndex;var q=Ji(a.j.IF(f,{sessionIndex:m}));return g.G(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Eta(c),n)))})};
pua=function(a,b,c){var d,e=(b==null?void 0:(d=b.bx)==null?void 0:d.identity)||cv,f;b=b==null?void 0:(f=b.bx)==null?void 0:f.sessionIndex;a=a.j.IF(e,{sessionIndex:b});return Object.assign({},Eta(c),a)};
OA=function(){};
PA=function(){};
QA=function(a){this.K=a};
RA=function(){};
SA=function(){};
TA=function(){};
UA=function(){};
g.VA=function(a,b){var c=g.Ea.apply(2,arguments);a=a===void 0?0:a;g.At.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
WA=function(a,b,c){this.j=a;this.B=b;this.C=c};
vua=function(a,b,c){if(a.j){var d=Yi(g.$i(5,jj(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.Zr("wug_networking_gzip_request")&&(a=cqa(c));return new window.Request(b,a)};
g.YA=function(a,b){if(!XA){var c=ow();kw(c,{FH:wua,g4:WA});var d={uP:{feedbackEndpoint:cA(RA),modifyChannelNotificationPreferenceEndpoint:cA(SA),playlistEditEndpoint:cA(TA),shareEntityEndpoint:cA(QA),subscribeEndpoint:cA(OA),unsubscribeEndpoint:cA(PA),webPlayerShareEntityServiceEndpoint:cA(UA)}},e=$z.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=koa());b===void 0&&(b=c.resolve(wua));nua(d,b,a,f);kw(c,{FH:xua,lV:LA.instance});XA=c.resolve(xua)}return XA};
yua=function(a){var b=new Dj;if(a.interpreterJavascript){var c=Uma(a.interpreterJavascript);c=g.eg(c).toString();var d=new Bj;ve(d,6,c);ke(b,Bj,1,d)}else a.interpreterUrl&&(c=dr(a.interpreterUrl),c=g.Of(c).toString(),d=new Cj,ve(d,4,c),ke(b,Cj,2,d));a.interpreterHash&&we(b,3,a.interpreterHash);a.program&&we(b,4,a.program);a.globalName&&we(b,5,a.globalName);a.clientExperimentsStateBlob&&we(b,7,a.clientExperimentsStateBlob);return b};
ZA=function(a){var b={};a=a.split("&");a=g.w(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};
jla=function(){if(g.Zr("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
$A=function(a){this.j=a};
zua=function(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new $A(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new $A(c))}))})};
Bua=function(){if(!g.Zr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Zr("disable_biscotti_fetch_entirely_for_all_web_clients")&&Hs()){var a=g.zr("PLAYER_VARS",{});if(g.Wg(a,"privembed",!1)!="1"&&!Kna(a)){var b=function(){aB=!0;"google_ad_status"in window?yr("DCLKSTAT",1):yr("DCLKSTAT",2)};
try{g.Vv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Aua.push(g.xp.aj(function(){if(!(aB||"google_ad_status"in window)){try{if(b){var c=""+g.Wa(b),d=Kqa[c];d&&g.Tv(d)}}catch(e){}aB=!0;yr("DCLKSTAT",3)}},5E3))}}};
bB=function(){var a=Number(g.zr("DCLKSTAT",0));return isNaN(a)?0:a};
fB=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;if(g.Zr("attmusi")){var e=new g.Ej;this.j=e.promise;g.Na.ytAtRC&&Et(function(){var f,h;return g.J(function(l){if(l.j==1){if(!g.Na.ytAtRC)return l.return();f=cB(null);return g.G(l,dB(d,f),2)}h=l.B;g.Na.ytAtRC&&g.Na.ytAtRC(JSON.stringify(h));g.va(l)})},2);
zua().then(function(f){var h,l,m,n;return g.J(function(p){if(p.j==1)return f.bindInnertubeChallengeFetcher(function(q){return dB(d,cB(q))}),g.G(p,kla(),2);
h=p.B;l=f.getLatestChallengeResponse();m=l.challenge;if(!m)throw Error("BGE_MACIL");n={challenge:m,Gl:ZA(m),dh:h,bgChallenge:new Dj};e.resolve(n);f.registerChallengeFetchedCallback(function(q){q=q.challenge;if(!q)throw Error("BGE_MACR");q={challenge:q,Gl:ZA(q),dh:h,bgChallenge:new Dj};d.j=Promise.resolve(q)});
g.va(p)})})}else b&&Cua(this,new Promise(function(f){g.Ft(0,function(){f(eB(d))},0)}))};
cB=function(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b};
eB=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:c=cB(Lj().j);if(g.Zr("att_fet_ks"))return g.wa(u,7),g.G(u,dB(a,c),9);g.wa(u,4);return g.G(u,Dua(a,c),6);case 6:h=u.B;e=h.wda;f=h.xda;d=h;g.xa(u,3);break;case 4:return g.ya(u),g.qx(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),gB(a,864E5),u.return({challenge:"",Gl:{},dh:void 0,bgChallenge:void 0});case 9:d=u.B;if(!d)throw Error("Fetching Attestation challenge returned falsy");
if(!d.challenge)throw Error("Missing Attestation challenge");e=d.challenge;f=ZA(e);if("c1a"in f&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.xa(u,3);break;case 7:l=g.ya(u);g.qx(l);b++;if(b>=5)return g.qx(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),gB(a,864E5),u.return({challenge:"",Gl:{},dh:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(y){g.Ft(0,
function(){y(eB(a,b))},m)}));
case 3:n=Number(f.t)||7200;gB(a,n*1E3);p=void 0;if(!("c1a"in f&&d.bgChallenge)){u.Ea(10);break}q=yua(d.bgChallenge);g.wa(u,11);return g.G(u,Mj(Lj(),q),13);case 13:g.xa(u,12);break;case 11:return r=g.ya(u),g.qx(r),u.return({challenge:e,Gl:f,dh:p,bgChallenge:q});case 12:return g.wa(u,14),p=new Ij({challenge:q,GT:!0,QG:{uh:"aGIf"}}),g.G(u,p.TC,16);case 16:g.xa(u,10);break;case 14:t=g.ya(u),g.qx(t),p=void 0;case 10:return u.return({challenge:e,Gl:f,dh:p,bgChallenge:q})}})};
dB=function(a,b){var c;return g.J(function(d){c=a.B;return!c||c.rh()?d.return(dB(a.network,b)):d.return(new Promise(function(e){c.IG("publicytnetworkstatus-online",function(){dB(a.network,b).then(e)})}))})};
Eua=function(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var b=a.challenge,c=ZA(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{wda:b,xda:c})};
Dua=function(a,b){var c,d,e,f,h;return g.J(function(l){switch(l.j){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){l.Ea(4);break}if(!(d>0)){l.Ea(5);break}e.OX=1E3*Math.pow(2,d-1)+Math.random()*1E3;return g.G(l,new Promise(function(m){return function(n){g.Ft(0,function(){n(void 0)},m.OX)}}(e)),5);
case 5:return g.wa(l,7),g.G(l,dB(a,b),9);case 9:return f=l.B,l.return(Eua(f));case 7:c=h=g.ya(l),h instanceof Error&&g.qx(h);case 8:d++;e={OX:void 0};l.Ea(2);break;case 4:throw c;}})};
Cua=function(a,b){a.j=b};
Fua=function(a){var b,c,d;return g.J(function(e){if(e.j==1)return g.G(e,Promise.race([a.j,null]),2);b=e.B;var f=eB(a);a.j=f;(c=b)==null||(d=c.dh)==null||d.dispose();g.va(e)})};
gB=function(a,b){function c(){var e;return g.J(function(f){e=d-Date.now();return e<1E3?g.G(f,Fua(a),0):(Et(c,0,Math.min(e,6E4)),f.Ea(0))})}
var d=Date.now()+b;c()};
Gua=function(a,b){return new Promise(function(c){g.Ft(0,function(){c(b())},a)})};
g.Hua=function(a,b){var c;return g.J(function(d){var e=g.Pa("yt.aba.att");return(c=e?e:fB.instance!==void 0?fB.instance.C.bind(fB.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.Iua=function(){var a;return(a=(a=g.Pa("yt.aba.att2"))?a:fB.instance!==void 0?fB.instance.D.bind(fB.instance):null)?a():Promise.resolve(!1)};
Kua=function(a,b){var c=g.Pa("ytDebugData.callbacks");c||(c={},g.Oa("ytDebugData.callbacks",c));if(g.Zr("web_dd_iu")||Jua.includes(a))c[a]=b};
hB=function(){var a=Lua;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=Oma.apply(null,[Pma.apply(null,g.x(b))].concat(g.x(c)));this.store=Rma(a,void 0,b)};
g.iB=function(a,b,c){for(var d=Object.assign({},a),e=g.w(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.x(h),g.x(l)):l;else if(!Array.isArray(l)&&g.Ta(l)&&!Array.isArray(h)&&g.Ta(h))d[f]=g.iB(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.At("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Npa:h,updateValue:l}),g.px(b),
a}return d};
jB=function(a){var b=this;a=a===void 0?[]:a;this.Yf=[];this.vk=this.Bj=0;this.BF=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Mua=function(a,b){return a.Yf.length===0?!1:(a=a.Yf[a.Yf.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
kB=function(a,b){b=g.w(b.Yf);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
lB=function(a,b,c){return a.split(b).nm.split(c).fL};
mB=function(a){a.BF=void 0;a.Bj=0;a.vk=0};
nB=function(a,b,c){a.isFocused(b);return b-a.vk+c<=a.Yf[a.Bj].length};
Nua=function(a){if(!a.BF){var b=a.Yf[a.Bj];a.BF=new DataView(b.buffer,b.byteOffset,b.length)}return a.BF};
oB=function(a,b,c){a=a.Gk(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};
Oua=function(a,b){a.focus(b);return nB(a,b,4)?Nua(a).getUint32(b-a.vk):256*(256*(256*a.getUint8(b)+a.getUint8(b+1))+a.getUint8(b+2))+a.getUint8(b+3)};
Pua=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
pB=function(a){return String.fromCharCode.apply(null,a)};
rB=function(a){return a.length?qB?qB.decode(a):pB(a):""};
g.tB=function(a){if(!a.length)return"";try{if(qB)return qB.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)sB[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;sB[e++]=55296|f>>10;f=56320|f&1023}sB[e++]=f}}f=String.fromCharCode.apply(String,sB);
e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")};
vB=function(a,b){var c;if((c=uB)==null?0:c.encodeInto)return b=uB.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};
wB=function(a){if(uB)return uB.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=vB(a,b);b.length<c&&(b=new Uint8Array(c),c=vB(a,b));b.length>c&&(b=b.subarray(0,c));return b};
xB=function(a){this.j=a;this.pos=0;this.B=-1};
yB=function(a){var b=a.j.getUint8(a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=a.j.getUint8(a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
zB=function(a,b){var c=a.B;for(a.B=-1;a.j.Rx(a.pos,1);){c<0&&(c=yB(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:yB(a);break;case 1:a.pos+=8;break;case 2:d=yB(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
AB=function(a,b){if(zB(a,b))return yB(a)};
BB=function(a,b){if(zB(a,b))return!!yB(a)};
CB=function(a,b){if(zB(a,b)){b=yB(a);var c=a.j.Gk(a.pos,b);a.pos+=b;return c}};
DB=function(a,b){if(a=CB(a,b))return g.tB(a)};
EB=function(a,b,c){if(a=CB(a,b))return c(new xB(new jB([a])))};
FB=function(a,b){for(var c=[];zB(a,b);)c.push(yB(a));return c.length?c:void 0};
GB=function(a,b,c){for(var d=[],e;e=CB(a,b);)d.push(c(new xB(new jB([e]))));return d.length?d:void 0};
HB=function(a,b){a=a instanceof Uint8Array?new jB([a]):a;return b(new xB(a))};
Qua=function(a,b,c){if(b&&c&&c.buffer===b.exports.memory.buffer){var d=b.realloc(c.byteOffset,a);if(d)return new Uint8Array(b.exports.memory.buffer,d,a)}a=b?new Uint8Array(b.exports.memory.buffer,b.malloc(a),a):new Uint8Array(a);c&&a.set(c);return a};
Rua=function(a,b){this.hd=b;this.pos=0;this.B=[];this.j=Qua(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
IB=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=Qua(c,a.hd,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
JB=function(a,b){if(b>268435455){IB(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(IB(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};
KB=function(a,b,c){c!==void 0&&(JB(a,b*8),JB(a,c))};
LB=function(a,b,c){c!==void 0&&KB(a,b,c?1:0)};
MB=function(a,b,c){c!==void 0&&(JB(a,b*8+2),b=c.length,JB(a,b),IB(a,b),a.j.set(c,a.pos),a.pos+=b)};
NB=function(a,b,c){c!==void 0&&(Sua(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),IB(a,c.length*1.2),b=vB(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(IB(a,b),b=vB(c,a.j.subarray(a.pos))),a.pos+=b,Tua(a))};
Sua=function(a,b,c){c=c===void 0?2:c;JB(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
Tua=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}};
OB=function(a,b,c,d,e){c&&(Sua(a,b,e===void 0?3:e),d(a,c),Tua(a))};
g.PB=function(a,b,c){c=new Rua(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.QB=function(a){var b=new xB(new jB([rc(decodeURIComponent(a))]));a=DB(b,2);b=AB(b,4);var c=Uua[b];if(typeof c==="undefined")throw a=new g.At("Failed to recognize field number",{name:"EntityKeyHelperError",Una:b}),g.px(a),a;return{W8:b,entityType:c,entityId:a}};
g.RB=function(a,b){var c=new Rua;MB(c,2,wB(a));a=Vua[b];if(typeof a==="undefined")throw b=new g.At("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.px(b),b;KB(c,4,a);KB(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.pc(b))};
SB=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))};
Wua=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.iB(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))};
Xua=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.px(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.px(new g.At("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Mg(e.payload);
return SB(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.QB(e).entityType;l=SB(d,m,e);break a}catch(q){if(q instanceof Error){g.px(new g.At("Failed to deserialize entity key",{entityKey:e,jT: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.px(new g.At("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Mg(e.payload);var n,p;return Wua(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 SB(a,c.entityType,c.key,c.V8);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 SB(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,Wua(a,c.entityType,c.key,c.V8,c.xpa);default:return a}};
TB=function(a,b,c){return a[b]?a[b][c]||null:null};
UB=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
$B=function(a){g.O.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!Yua){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);VB=new Uint8Array(256);WB=UB(256);XB=UB(256);YB=UB(256);ZB=UB(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;VB[f]=e;b=e<<1^(e>>7&&283);var h=b^e;WB[f]=b<<24|e<<16|e<<8|h;XB[f]=h<<24|WB[f]>>>8;YB[f]=e<<24|XB[f]>>>8;ZB[f]=e<<24|YB[f]>>>8}Yua=!0}e=UB(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=(VB[a>>16&255]^d)<<24|VB[a>>8&255]<<16|VB[a&255]<<8|VB[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
aC=function(a,b){for(var c=0;c<4;c++)a.counter[c]=b[c*4]<<24|b[c*4+1]<<16|b[c*4+2]<<8|b[c*4+3];a.j=16};
Zua=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=WB[c>>>24]^XB[d>>16&255]^YB[e>>8&255]^ZB[f&255]^b[n++],l=WB[d>>>24]^XB[e>>16&255]^YB[f>>8&255]^ZB[c&255]^b[n++],m=WB[e>>>24]^XB[f>>16&255]^YB[c>>8&255]^ZB[d&255]^b[n++],f=WB[f>>>24]^XB[c>>16&255]^YB[d>>8&255]^ZB[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=VB[c>>>24]^h>>>24;a[1]=VB[d>>16&255]^h>>16&255;a[2]=VB[e>>8&255]^
h>>8&255;a[3]=VB[f&255]^h&255;h=b[41];a[4]=VB[d>>>24]^h>>>24;a[5]=VB[e>>16&255]^h>>16&255;a[6]=VB[f>>8&255]^h>>8&255;a[7]=VB[c&255]^h&255;h=b[42];a[8]=VB[e>>>24]^h>>>24;a[9]=VB[f>>16&255]^h>>16&255;a[10]=VB[c>>8&255]^h>>8&255;a[11]=VB[d&255]^h&255;h=b[43];a[12]=VB[f>>>24]^h>>>24;a[13]=VB[c>>16&255]^h>>16&255;a[14]=VB[d>>8&255]^h>>8&255;a[15]=VB[e&255]^h&255};
dC=function(){if(!bC&&!g.Lu){if(cC)return cC;var a;cC=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=cC)==null?0:b.importKey)&&((c=cC)==null?0:c.sign)&&((d=cC)==null?0:d.encrypt))return cC;cC=void 0}};
g.eC=function(a){this.D=a};
g.fC=function(a){this.B=a};
gC=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()};
$ua=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,y=0;y<64;)y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=q+hC[y]+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,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=p+hC[y]+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,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=n+hC[y]+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,y++,y<16?(d[y]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[y-2],t=d[y-15],u=d[y-7]+d[y-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[y]=u),r=m+hC[y]+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,y++;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};
bva=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;ava(a);return b};
ava=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
cva=function(a){this.j=a};
dva=function(a,b,c){a=new gC(a.j);a.update(b);a.update(c);b=bva(a);a.update(a.G);a.update(b);b=bva(a);a.reset();return b};
eva=function(a){this.B=a};
fva=function(a,b,c,d){var e,f,h;return g.J(function(l){switch(l.j){case 1:if(a.j){l.Ea(2);break}return g.G(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.G(l,d.sign(f,a.j,e),4);case 4:return h=l.B,l.return(new Uint8Array(h))}})};
gva=function(a,b,c){a.C||(a.C=new cva(a.B));return dva(a.C,b,c)};
hva=function(a,b,c){var d,e;return g.J(function(f){if(f.j==1){d=dC();if(!d)return f.return(gva(a,b,c));g.wa(f,3);return g.G(f,fva(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.ya(f);g.qx(e);bC=!0;return f.return(gva(a,b,c))})};
jva=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=iva(a[c-1],a[c-2],d),f=iva(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};
iva=function(a,b,c,d){d=d===void 0?!1:d;b=new kva(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}};
kva=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
lva=function(a,b,c){if(!b)return a.length>=1?a[a.length-1]:null;for(var d=g.w(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]};
iC=function(){this.state=1;this.dh=null};
nva=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.yd(2),g.Vv(c,function(){if(window[h])mva(a,d,h,e);else{a.yd(3);var l=Jqa(c),m=document.getElementById(l);m&&(Hqa(l),m.parentNode.removeChild(m));g.qx(new g.At("Unable to load Botguard","from "+c))}},f)):b?(f=g.qh("SCRIPT"),b instanceof g.dg?(f.textContent=g.eg(b),g.fg(f)):f.textContent=b,f.nonce=cg(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?mva(a,d,h,e):(a.yd(4),g.qx(new g.At("Unable to load Botguard from JS")))):
g.qx(new g.At("Unable to load VM; no url or JS provided"))};
mva=function(a,b,c,d){a.yd(5);try{var e=new Ij({program:b,globalName:c,GT:g.Zr("att_web_record_metrics"),QG:{uh:"aGIf"}});e.TC.then(function(){a.yd(6);d&&d(b)});
a.rU(e)}catch(f){a.yd(7),f instanceof Error&&g.qx(f)}};
jC=function(){var a=g.Pa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
kC=function(){iC.apply(this,arguments)};
lC=function(){};
ova=function(a,b,c){for(var d=!1,e=g.w(a.tj.entries()),f=e.next();!f.done;f=e.next())f=g.w(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.Xa==="core"&&(d=!0);if(d){a:if(!c){a=g.w(a.tj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.w(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.Xa==="core"){c=d.layoutId;break a}c=void 0}c?b.XQ(c):Xy("No triggering layout ID available when attempting to mute.")}};
mC=function(a,b){this.Xl=a;this.Zo=b};
nC=function(){};
oC=function(){};
qva=function(a){g.O.call(this);var b=this;this.qd=a;this.j=new Map;pC(this,"commandExecutorCommand",function(c,d,e){pva(b,c.commands,d,e)});
pC(this,"clickTrackingParams",function(){})};
rva=function(a,b){pC(a,b.Wr(),function(c,d,e){b.Fu(c,d,e)})};
pC=function(a,b,c){a.Ia();a.j.get(b)&&g.px(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
pva=function(a,b,c,d){b=b===void 0?[]:b;a.Ia();var e=[],f=[];b=g.w(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.Q(h,sva)||g.Q(h,tva)?e.push(h):f.push(h);e=g.w(e);for(b=e.next();!b.done;b=e.next())qC(a,b.value,c,d);f=g.w(f);for(e=f.next();!e.done;e=f.next())qC(a,e.value,c,d)};
qC=function(a,b,c,d){a.Ia();b.loggingUrls&&uva(a,"loggingUrls",b.loggingUrls,c,d);b=g.w(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.w(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.qd.get().Ev("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.qd.get().Ev("innertubeCommand",{confirmDialogEndpoint:f}):vva.hasOwnProperty(e)||uva(a,e,f,c,d)}};
uva=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.px(f)}else b=new g.At("Unhandled field",b),g.qx(b)};
rC=function(a,b,c){this.Pf=a;this.j=b;this.Na=c};
sC=function(a){this.value=a};
tC=function(a){this.value=a};
uC=function(a){this.value=a};
vC=function(a){this.value=a};
wC=function(a){this.value=a};
xC=function(a){this.value=a};
yC=function(a){this.value=a};
zC=function(){sC.apply(this,arguments)};
AC=function(a){this.value=a};
BC=function(a){this.value=a};
CC=function(a){this.value=a};
DC=function(a){this.value=a};
EC=function(a){this.value=a};
FC=function(a){this.value=a};
GC=function(a){this.value=a};
HC=function(a){this.value=a};
IC=function(a){this.value=a};
JC=function(a){this.value=a};
KC=function(){sC.apply(this,arguments)};
LC=function(a){this.value=a};
MC=function(a){this.value=a};
NC=function(a){this.value=a};
OC=function(a){this.value=a};
PC=function(a){this.value=a};
QC=function(a){this.value=a};
RC=function(a){this.value=a};
SC=function(a){this.value=a};
TC=function(a){this.value=a};
UC=function(a){this.value=a};
VC=function(a){this.value=a};
WC=function(a){this.value=a};
XC=function(a){this.value=a};
YC=function(a){this.value=a};
ZC=function(a){this.value=a};
$C=function(a){this.value=a};
aD=function(a){this.value=a};
bD=function(a){this.value=a};
cD=function(a){this.value=a};
dD=function(a){this.value=a};
eD=function(a){this.value=a};
fD=function(a){this.value=a};
gD=function(a){this.value=a};
hD=function(a){this.value=a};
iD=function(a){this.value=a};
jD=function(a){this.value=a};
kD=function(a){this.value=a};
lD=function(a){this.value=a};
mD=function(a){this.value=a};
nD=function(a){this.value=a};
oD=function(a){this.value=a};
pD=function(a){this.value=a};
qD=function(a){this.value=a};
rD=function(a){this.value=a};
sD=function(a){this.value=a};
tD=function(a){this.value=a};
uD=function(a){this.value=a};
vD=function(a){this.value=a};
wD=function(){sC.apply(this,arguments)};
xD=function(a){this.value=a};
yD=function(){sC.apply(this,arguments)};
zD=function(){sC.apply(this,arguments)};
AD=function(){sC.apply(this,arguments)};
BD=function(){sC.apply(this,arguments)};
CD=function(){sC.apply(this,arguments)};
DD=function(a){this.value=a};
ED=function(a){this.value=a};
FD=function(a){this.value=a};
GD=function(a){this.value=a};
HD=function(a){this.value=a};
JD=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!ID(a.clientMetadata,c.value))return!1;return!0};
KD=function(){return""};
wva=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}};
LD=function(a,b,c,d){d=d===void 0?!1:d;ob.call(this,a);this.Dl=c;this.ax=d;this.args=[];b&&this.args.push(b)};
Z=function(a,b,c,d){d=d===void 0?!1:d;ob.call(this,a);this.Dl=c;this.ax=d;this.args=[];b&&this.args.push(b)};
MD=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
ID=function(a,b){return a.j.has(b)};
ND=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()};
OD=function(a){return Array.from(a.j.keys())};
PD=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.w(b);for(c=b.next();!c.done;c=b.next())if(!ID(a.clientMetadata,c.value))return!1;return!0};
yva=function(a){var b;return((b=xva.get(a))==null?void 0:b.zz)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
RD=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:zva.get(b.Xa)||"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=QD(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.w(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(QD(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.w(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(QD(a.value))}return c};
Ava=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:zva.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
QD=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};
Bva=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Ql(d||[],function(e){return RD(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{}));
return b};
TD=function(a,b){return function(c){return Cva(SD(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Xa,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Xa)}};
Cva=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:RD(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Xa:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,clientMetadata:new MD([])}),layoutData:Ava(a,{layoutId:m,layoutType:n,Xa:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ab:new Map,clientMetadata:new MD([]),Ub:{}})}}};
VD=function(a){this.ya=a;a=Math.random();var b=this.ya.get();b=g.UD(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a<b};
SD=function(a){return a.j||a.ya.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
WD=function(a,b,c,d){g.O.call(this);this.B=b;this.Rb=c;this.ya=d;this.j=a(this,this,this,this,this);g.P(this,this.j);a=g.w(b);for(b=a.next();!b.done;b=a.next())g.P(this,b.value)};
XD=function(a,b){a.B.add(b)};
YD=function(a,b){a.B.delete(b)};
$D=function(a,b,c,d){Xy(c,b,void 0,void 0,c.ax);c.Dl?a.Rb.Hm(d,c.Dl,b):Xy("adsClientErrorMessage is missing.",b);ZD(a,b,!0)};
Eva=function(a,b,c){if(aE(a.j,b))if(bE(a.j,b).D=c?"filled":"not_filled",c===null){a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.w(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Sh(b);ZD(a,b,!1)}else{a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=(e=c.vt)!=null?e:ND(c.clientMetadata,"metadata_type_sub_layouts");if(f)for(e=g.w(f),f=e.next();!f.done;f=e.next())a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
b,f.value);e=g.w(a.B);for(f=e.next();!f.done;f=e.next())f.value.Th(b);if(aE(a.j,b))if(bE(a.j,b).G)ZD(a,b,!1);else{a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!bE(d,b))throw new LD("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.Ch.Vu.get(b.slotType))throw new LD("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 LD("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");cE(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);cE(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);cE(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);
cE(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);cE(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Wc)}catch(n){n instanceof LD?a.Mf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Mf(b,c,new LD("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");ZD(a,b,!0);return}bE(a.j,b).K=!0;try{var h=a.j,l=bE(h,b),m=h.Ch.Vu.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=
c;if(l.C)throw new LD("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;dE(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);dE(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);dE(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);dE(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);dE(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
c.Wc)}catch(n){eE(a,b);n instanceof LD?a.Mf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Mf(b,c,new LD("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");ZD(a,b,!0);return}a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.w(a.B);for(h=d.next();!h.done;h=d.next())h.value.yh(b,c);eE(a,b);Dva(a,b)}else a=a.ya.get(),g.fE(a.J.U())||gE(a.J.U())||g.hE(a.J.U())?a=!0:(Xy("Composite VOD on legacy path."),a=!1),a&&Xy("slot is unscheduled after been fulfilled.",
b,c)}};
Fva=function(a,b,c){b.Xa!=="core"&&a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
Gva=function(a,b,c){a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.w(a.B);for(var d=a.next();!d.done;d=a.next())d.value.yh(b,c)};
Hva=function(a,b,c){a=g.w(a.B);for(var d=a.next();!d.done;d=a.next())d.value.xg(b,c)};
iE=function(a,b,c){a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.w(a.B);for(var d=a.next();!d.done;d=a.next())d.value.wc(b,c)};
jE=function(a,b,c,d){a.Rb.Yh(yva(d),b,c,void 0);a=g.w(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Kc(b,c,d)};
eE=function(a,b){if(aE(a.j,b)){bE(a.j,b).K=!1;var c=kE;b=bE(a.j,b);var d=[].concat(g.x(b.Z));bba(b.Z);c(a,d)}};
kE=function(a,b){b.sort(function(f,h){function l(m){Xy("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):wva(f.category,l)-wva(h.category,l)});
var c=new Map;b=g.w(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,aE(a.j,d.slot))if(bE(a.j,d.slot).K)bE(a.j,d.slot).Z.push(d);else{a.Rb.pO("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.w(Iva);for(d=b.next();!d.done;d=b.next())e=g.w(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&Jva(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&Kva(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Lva(a,
b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&Mva(a,c)};
Jva=function(a,b,c){b=g.w(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&lE(a.j,d.slot)&&Nva(a,d.slot,d.layout,c)};
Kva=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())ZD(a,c.value.slot,!1)};
Lva=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(bE(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Rb.nk("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.AF(c.slot))}};
Mva=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Rb.nk("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.w(a.B),e=d.next();!e.done;e=d.next())e.value.Rh(c.slot);try{var f=a.j,h=c.slot,l=bE(f,h);if(!l)throw new Z("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new Z("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(l.j!=="scheduled")throw new Z("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(mE(l))throw new Z("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.w(nE(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&mE(p))throw new Z("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 Z&&q.Dl?(a.Rb.Hm("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Dl,c.slot),Xy(q,c.slot,oE(a.j,c.slot),void 0,q.ax)):(a.Rb.Hm("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),Xy(q,c.slot));ZD(a,c.slot,!0);continue}c=bE(a.j,c.slot);c.j!=="scheduled"&&pE(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.mK()}};
Dva=function(a,b){if(aE(a.j,b)&&mE(bE(a.j,b))&&oE(a.j,b)&&!lE(a.j,b)){var c;a.Rb.Yh("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,(c=oE(a.j,b))!=null?c:void 0);a=bE(a.j,b);a.j!=="entered"&&pE(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
Nva=function(a,b,c,d){if(aE(a.j,b)){var e=a.Rb,f=e.Yh,h;var l=((h=xva.get(d))==null?void 0:h.mz)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=bE(a.j,b);a.j!=="rendering"&&pE(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.Ld(c,d)}};
ZD=function(a,b,c){if(aE(a.j,b)){a:switch(bE(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(bE(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(bE(a.j,b).G=!0,!c))return;if(mE(bE(a.j,b)))bE(a.j,b).G=!0,Ova(a,b,c);else{a:switch(bE(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)bE(a.j,b).G=!0,aE(a.j,b)&&(a.Rb.nk("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=bE(a.j,b),b.D="fill_cancel_requested",b.N.fP());else{c=
oE(a.j,b);(d=a.ya.get().J.U().experiments.bb("h5_enable_layout_unscheduling_events"))&&(c?a.xg(b,c):Xy(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Rb.nk("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=bE(a.j,b),f=b.slotEntryTrigger,h=e.Aa.get(f.triggerId);h&&(h.wm(f),e.Aa.delete(f.triggerId));f=g.w(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.oa.get(h.triggerId);l&&(l.wm(h),e.oa.delete(h.triggerId))}f=g.w(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.W.get(h.triggerId))l.wm(h),e.W.delete(h.triggerId);e.layout!=null&&(f=e.layout,qE(e,f.layoutExitNormalTriggers),qE(e,f.layoutExitSkipTriggers),qE(e,f.layoutExitMuteTriggers),qE(e,f.layoutExitUserInputSubmittedTriggers),qE(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;bE(e,b)&&(e=nE(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Rb.nk("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.w(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Uh(b),c&&!d&&e.xg(b,c)}}}};
Ova=function(a,b,c){if(aE(a.j,b)&&mE(bE(a.j,b))){var d=oE(a.j,b);if(d&&lE(a.j,b))Nva(a,b,d,c?"error":"abandoned");else{a.Rb.nk("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=bE(a.j,b);if(!e)throw new Z("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"&&pE(e.slot,e.j,"exitSlot");e.j="exit_requested";if(e.B===void 0)throw e.j="scheduled",new Z("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.oK()}catch(f){f instanceof Z&&f.Dl?(a.Rb.Hm("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Dl,b),Xy(f,b,void 0,void 0,f.ax)):(a.Rb.Hm("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),Xy(f,b))}}}};
Pva=function(a){this.slot=a;this.Aa=new Map;this.oa=new Map;this.W=new Map;this.qa=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"};
mE=function(a){return a.j==="enter_requested"||a.isActive()};
rE=function(a,b,c,d,e,f){g.O.call(this);this.Ch=a;this.C=b;this.G=c;this.D=d;this.B=e;this.ya=f;this.j=new Map};
nE=function(a,b){return(a=a.j.get(b))?a:new Map};
bE=function(a,b){return nE(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
Qva=function(a){var b=[];a.j.forEach(function(c){c=g.w(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
aE=function(a,b){return bE(a,b)!=null};
lE=function(a,b){a=bE(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};
oE=function(a,b){(a=bE(a,b))?a.layout!=null&&!a.layout&&Xy("Unexpected empty layout",b):Xy("Unexpected undefined slotState",b);return(a==null?void 0:a.layout)||null};
sE=function(a,b,c){if(c.length==0)throw new Z("No "+Rva.get(b)+" triggers found for slot.",void 0,Sva(b));c=g.w(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ch.Nn.get(d.triggerType))throw new Z("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
Sva=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"}};
cE=function(a,b,c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Ch.Nn.get(d.triggerType))throw new LD("No trigger adapter registered for "+Rva.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
dE=function(a,b,c,d){d=g.w(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ch.Nn.get(e.triggerType);f.im(c,e,b.slot,b.layout?b.layout:null);b.qa.set(e.triggerId,f)}};
qE=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.qa.get(c.triggerId);d&&(d.wm(c),a.qa.delete(c.triggerId))}};
pE=function(a,b,c){Xy("Slot stage was "+b+" when calling method "+c,a)};
Tva=function(a){return tE(a.dC).concat(tE(a.Nn)).concat(tE(a.pu)).concat(tE(a.Sv)).concat(tE(a.Vu))};
tE=function(a){var b=[];a=g.w(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.qh&&b.push(c);return b};
uE=function(a){g.O.call(this);var b=this;this.j=a;this.instance=null;this.addOnDisposeCallback(function(){g.vg(b.instance);b.instance=null})};
vE=function(a){return new uE(a)};
wE=function(a){g.O.call(this);this.kh=a;this.j=Uva(this)};
Uva=function(a){var b=new WD(function(c,d,e,f){return new rE(a.kh.Ch,c,d,e,f,a.kh.ya)},new Set(Tva(a.kh.Ch).concat(a.kh.listeners)),a.kh.Rb,a.kh.ya);
g.P(a,b);return b};
xE=function(a){this.j=a};
yE=function(a,b,c){pva(a.j(),b,c)};
zE=function(a,b,c,d){(a=a.j())||Xy("Could not initiate a command router instance.");qC(a,b,c,d)};
AE=function(){this.listeners=new Set};
BE=function(){};
Wva=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/"+ng(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=fh(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=wea(Vva,ng(a)+".js");g.gg(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
Xva=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Re=d;this.ya=e;this.j=null};
Zva=function(a,b,c,d){a.j&&Xy("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.cD?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=TD(a.Re.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Xa:a.slot.Xa,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=CE(h.B.get(),f,l),p={layoutId:n,layoutType:f,Xa:"core"};e={layoutId:n,layoutType:f,Ab:new Map,layoutExitNormalTriggers:[new Yva(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new sD(e)]),Ub:m(p)};Eva(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Ni||$D(a.callback,a.slot,new Z(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
$va=function(a){if(a.j==null)a.callback.pM(a.slot);else try{a.j.cancel(),a.j=null,a.callback.pM(a.slot)}catch(b){a.j=null,$D(a.callback,a.slot,new Z(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
DE=function(a,b,c,d){!a&&(c===void 0?0:c)&&g.qx(Error("Player URL validator detects invalid url. "+(d===void 0?"":d)+": "+b));return a};
EE=function(a,b){return b&&b.test(a)?!0:!1};
FE=function(a){return(a=awa&&awa.exec(a))?a[0]:""};
GE=function(a){var b=b===void 0?!1:b;return DE(EE(a,bwa),a,b,"Trusted Stream URL")};
g.HE=function(a){var b=b===void 0?!1:b;return DE(EE(a,cwa),a,b,"Trusted Image URL")};
ewa=function(a){var b=b===void 0?!1:b;return DE(EE(a,dwa),a,b,"Trusted Promoted Video Domain URL")};
gwa=function(a){var b=b===void 0?!1:b;return DE(EE(a,fwa),a,b,"Drm Licensor URL")};
iwa=function(a,b){b=b===void 0?!1:b;return DE(EE(a,hwa),a,b,"Captions URL")};
jwa=function(a){a=new g.Bk(a);g.Ck(a,document.location.protocol);g.Dk(a,document.location.hostname);document.location.port&&g.Ek(a,document.location.port);return a.toString()};
IE=function(a){a=new g.Bk(a);g.Ck(a,document.location.protocol);return a.toString()};
g.KE=function(a,b,c){c=c===void 0?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.gm=0;this.B=kwa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||JE.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.Rl(d.thumbnails,function(e){return g.HE(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
lwa=function(a){return a===-0x8000000000000?"BEFORE_MEDIA_START":a===0?"MEDIA_START":a===0x7ffffffffffff?"MEDIA_END":a===0x8000000000000?"AFTER_MEDIA_END":a.toString()};
mwa=function(a,b){switch(a.style){case JE.CHAPTER_MARKER:return b?8:5;case JE.AD_MARKER:return 6;case JE.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.LE=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.ME=function(a){return"crn_"+a};
g.NE=function(a){return"crx_"+a};
OE=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Na=h;this.Ga=l;this.Hc=m;this.j=new Xva(a,b,d,e,f)};
nwa=function(a){var b;(b=a.Hc)==null||b.get().Bv(ND(a.slot.clientMetadata,"metadata_type_cue_point").identifier)};
PE=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new Xva(a,b,d,e,f)};
QE=function(a,b){this.callback=a;this.slot=b};
RE=function(a,b){return PD(a,b.Od,b.slotType)?!0:!1};
SE=function(){};
TE=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Re=c;this.ya=d;this.Na=e;this.Ga=f;this.Hc=h};
UE=function(){};
owa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.C=d;this.j=e;this.B=f};
qwa=function(a){if(ND(a.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=pwa(a,a.slot);VE(a.j.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
rwa=function(a){if(ND(a.slot.clientMetadata,"metadata_type_prefetch_metadata")){var b=pwa(a,a.slot);VE(a.j.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[b]})}};
pwa=function(a,b){var c=WE(a.B.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:swa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:swa(b.slotId,c,b.slotExpirationTriggers)})};
swa=function(a,b,c){var d=[];c=g.w(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.XE=function(a,b){for(var c=g.w(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};
twa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
YE=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Mf(a.slot,b,new LD("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()};
ZE=function(a,b,c,d){g.Qx.call(this);this.callback=a;this.C=d;this.j=[];this.B=new twa(a,b,c)};
aF=function(a,b,c,d,e,f,h,l){d=d||ND(c.clientMetadata,f);a=$E(a);var m=Di(function(){e.wc(b,c)});
l.push(h(d,a,c.layoutId,{adsClientData:c.Ub},function(){m()}))};
bF=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.w(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():Xy("Tried to call engagePingCallback but it is null",h,l)}}else Xy("Companion AdUxClick received without a layoutId",h,l)};
cF=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)};
dF=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"};
eF=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||[]]])};
uwa=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}};
fF=function(a,b,c,d,e){e=e===void 0?null:e;this.C=a;this.Na=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,j0:e}};
gF=function(){return["metadata_type_ad_placement_config"]};
$E=function(a){var b=a.Na.get();return hF(b,a.N)};
jF=function(a,b,c){c=c===void 0?!1:c;a.j.has(b)?iF(a,b,[]):a.Zb(b,c)};
kF=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)iF(a,"progress",[d]),a.D++;else break}};
lF=function(a,b){return a.j.has(b)};
mF=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
vwa=function(a,b,c){a.K=b;a.G=c};
iF=function(a,b,c){var d;wwa(a.Na.get(),a.layoutId,b,c,(d=a.K)!=null?d:void 0,a.G)};
xwa=function(a,b,c,d,e){Px.call(this,"ads-engagement-panel-layout",a,b,c,d,e)};
nF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
ywa=function(){var a=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_PANEL"]}};
zwa=function(a,b,c,d,e){Px.call(this,"banner-image",a,b,c,d,e)};
oF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);this.adPlacementConfig=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,this.adPlacementConfig,c.layoutId)};
Awa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
pF=function(a,b,c,d,e){Px.call(this,"action-companion",a,b,c,d,e)};
qF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Bwa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Cwa=function(a,b,c,d,e){Px.call(this,"image-companion",a,b,c,d,e)};
rF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Dwa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
Ewa=function(a,b,c,d,e){Px.call(this,"shopping-companion",a,b,c,d,e)};
sF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Fwa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
Gwa=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};
Hwa=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))};
Iwa=function(a,b,c,d){this.Jb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.w(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":Gwa(b)?this.B.push(b):Xy("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":Hwa(b)?this.j.push(b):Xy("Invalid AdVideoProgressMillisecondsCommand");break;default:Xy("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)})};
tF=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||c)a.Jb.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.Jb.get().executeCommand(d.command,a.layoutId),a.C++;else break}};
uF=function(a,b,c,d,e,f){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.qh=!0;XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Jwa=function(){var a=["metadata_type_action_companion_ad_renderer"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Kwa=function(a,b,c,d,e,f,h,l){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.Na=e;this.ya=h;this.zb=l;this.j=!1;a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId);var m;a=((m=ND(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:m.progressCommands)||[];var n=ND(c.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.B=new Iwa(f,a,c.layoutId,function(){return n*1E3})};
vF=function(a,b,c,d,e,f){ZE.call(this,a,b,c,d);this.Ga=e;this.G=f;this.D=!1};
wF=function(a,b,c,d,e){Px.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
xF=function(a,b,c,d,e,f){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.qh=!0;XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Lwa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
yF=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;Px.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.zU=e;this.oN=f};
zF=function(a,b,c,d,e){ZE.call(this,a,b,c,d);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,e,a,c.layoutId)};
Mwa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_ENDCAP"]}};
AF=function(a,b){return JD(a,b.Od,b.Je)?!0:!1};
BF=function(a,b,c){this.B=a;this.C=b;this.j=c};
Nwa=function(a,b,c,d,e){Px.call(this,"ads-engagement-panel",a,b,c,d,e)};
CF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Owa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
DF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Na=e;this.uc=f;this.K=l;this.qh=!0;this.D=null;this.G=ND(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");XD(this.uc(),this);this.adPlacementConfig=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,this.adPlacementConfig,c.layoutId)};
Pwa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Qwa=function(a,b,c,d,e){this.yc=a;this.Na=b;this.uc=c;this.j=d;this.zb=e};
EF=function(a,b,c){Px.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
FF=function(a,b,c,d){ZE.call(this,a,b,c,d)};
Rwa=function(a){this.yc=a};
Swa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Na=d;this.Ti=e;a=ND(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
Twa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_FORECASTING"]}};
Uwa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Na=d;this.Ti=e;a=ND(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
GF=function(a,b,c,d){this.ya=a;this.Na=b;this.Ti=c;this.zb=d};
Vwa=function(a,b){return ID(a.clientMetadata,"metadata_type_ad_info_ad_metadata")?ND(a.clientMetadata,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.ym,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(Xy("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
Wwa=function(a,b){return ID(a.clientMetadata,"metadata_ad_video_is_listed")?ND(a.clientMetadata,"metadata_ad_video_is_listed"):b?b.isListed:(Xy("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
Xwa=function(a,b,c,d){Px.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
HF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Ga=e;this.Na=f;this.K=h;this.G=l;this.D=!1;this.N=ND(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
Ywa=function(a){if(a.layout.renderingContent){var b;return(b=ND(a.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return ND(a.layout.clientMetadata,"metadata_type_player_bytes_callback")};
IF=function(a,b,c,d,e,f,h,l){ZE.call(this,a,b,c,d);this.Ga=e;this.Na=f;this.K=h;this.G=l;this.D=!1;this.N=ND(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
Zwa=function(){return{Od:["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"],Je:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
JF=function(a){if(a.layout.renderingContent){var b;return(b=ND(a.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return ND(a.layout.clientMetadata,"metadata_type_player_bytes_callback")};
$wa=function(a,b,c){Px.call(this,"ad-message",a,void 0,b,c)};
KF=function(a,b,c,d,e,f){ZE.call(this,c,a,b,d);this.Ga=e;this.ya=f};
axa=function(){return{Od:["metadata_type_valid_ad_message_renderer"],Je:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
OF=function(a,b,c,d,e,f,h,l,m){return AF(c,Zwa())||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Q(c.renderingContent,LF)!==void 0?new IF(a,b,c,d,e,f,h,l):AF(c,{Od:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Je:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Q(c.renderingContent,MF)!==void 0?
new HF(a,b,c,d,e,f,h,l):AF(c,Mwa())||c.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.Q(c.renderingContent,NF)!==void 0?new zF(a,b,c,d,f):AF(c,axa())?new KF(b,c,a,d,e,m):AF(c,{Od:["metadata_type_instream_ad_player_overlay_renderer"],Je:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new vF(a,b,c,d,e,l):null};
bxa=function(a,b,c,d,e,f){this.yc=a;this.Ga=b;this.Na=c;this.B=d;this.j=e;this.ya=f};
PF=function(a){return!a.TB.isPlaying()&&a.state.isPlaying()};
QF=function(a,b,c){return a<b?!1:c!=null?c<=b:a<=b+1};
cxa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ga=d;this.Na=e;this.ya=f;this.zb=h;this.j=!1;a=ND(c.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId)};
RF=function(a,b){a.j||(a.Za.Zb(b),a.j=!0)};
dxa=function(a,b,c,d,e){this.Ga=a;this.Na=b;this.Jb=c;this.ya=d;this.zb=e};
SF=function(){this.currentState=1;this.j="unknown"};
TF=function(a,b){if(a.currentState>1){g.qx(new g.At("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0};
exa=function(a,b){var c=new Map;a=g.w(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=ND(d.clientMetadata,"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);if(e==="u"){var f={};e=b;d=(f.c=d.layoutId,f);e.J.ma("uct",d)}}a=
b.Wm();UF={contentCpn:a,Vt:c};d={};c=(d.ct=c.size,d.c=a,d);b.J.ma("acc",c)};
fxa=function(){UF={contentCpn:"",Vt:new Map}};
VF=function(a){var b;return(b=UF.Vt.get(a))!=null?b:"u"};
WF=function(a,b,c){a.J.ma(b,c);gxa(a)};
hxa=function(a){var b=a.layoutId,c=a.Cs;if(a.To){var d={};WF(a.Pf,"slso",(d.ec=b,d.is=c,d.ctp=VF(b),d))}};
XF=function(a){var b=a.layoutId,c=a.Cs;if(a.To){var d={};WF(a.Pf,"slse",(d.ec=b,d.is=c,d.ctp=VF(b),d))}};
ixa=function(a){var b=a.layoutId,c=a.Cs,d=a.Pf;a.To&&(a={},WF(d,"sleo",(a.xc=b,a.is=c,a.ctp=VF(b),a)),gxa(d))};
jxa=function(a){var b=a.cpn,c=a.Pf;a=a.Cs;var d=c.Wm(),e={};WF(c,"ce",(e.ec=b,e.ia=b!==d,e.r=UF.Vt.has(b),e.is=a,e.ctp=VF(b),e))};
gxa=function(a){if(a.Wm()!==UF.contentCpn){var b={};b=(b.c=UF.contentCpn,b);a.J.ma("ccm",b)}};
kxa=function(a){var b=a.cpn,c=a.Pf;a=a.Cs;var d=c.Wm(),e={};WF(c,"cx",(e.xc=b,e.ia=b!==d,e.r=UF.Vt.has(b),e.is=a,e.ctp=VF(b),e))};
lxa=function(a){this.params=a;this.j=new Set};
mxa=function(a,b,c){if(!a.j.has(b)){a.j.add(b);var d={};a.params.Ij.Lk(b,Object.assign({},c,(d.p_ac=a.params.adCpn,d.p_isv=a.params.P$&&a.params.dg,d)))}};
ZF=function(a,b,c){if(YF(a.params.Ij.ya.get(),!0)){var d=c.flush,e={};mxa(a,b,(e.cts=c.currentTimeSec,e.f=d,e))}};
nxa=function(a,b){this.Pf=a;this.ya=b};
$F=function(a){var b=[];if(a){a=g.w(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.w(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(";")};
aG=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c};
bG=function(a){return a===1||a===2};
cG=function(a,b){b=b===void 0?0:b;if(a instanceof aG)return a;a=a&&a instanceof Error?a:Error(""+a);bG(b)?g.px(a):g.qx(a);return new aG(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.pxa=function(a){return(a=oxa[a.toString()])?a:"LICENSE"};
qxa=function(a,b){function c(){var d=g.Ea.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.x(d))}
a.addEventListener("playing",c)};
dG=function(){var a=g.Pa("yt.player.utils.videoElement_");a||(a=g.qh("VIDEO"),g.Oa("yt.player.utils.videoElement_",a));return a};
eG=function(a){var b=dG();return!!(b&&b.canPlayType&&b.canPlayType(a))};
gG=function(a){if(/opus/.test(a)&&g.fG&&!dq("38")&&!g.ws())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)&&!Gna())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!eG(a)};
rxa=function(a){try{var b=gG('video/mp4; codecs="avc1.42001E"')||gG('video/webm; codecs="vp9"');return(gG('audio/mp4; codecs="mp4a.40.2"')||gG('audio/webm; codecs="opus"'))&&(b||!a)||eG('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
hG=function(){var a=dG();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")};
iG=function(){var a=dG();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.jG=function(){ft.apply(this,arguments)};
kG=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};
nG=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||lG(a,b);this.j=g.mG[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.mG[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||""};
lG=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=oG[0];for(var d=0;d<oG.length;d++){var e=oG[d],f=g.mG[e];if(c>=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"};
rG=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.qb>0||(c.qb=16E3);Object.assign(this,c);a=g.w(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=pG(b);this.jb=qG[this.itag]||""};
sG=function(a){return a.jb==="9"||a.jb==="("||a.jb==="9h"||a.jb==="(h"};
sxa=function(a){return a.jb==="H"||a.jb==="h"};
tG=function(a){return a.jb==="9h"||a.jb==="(h"};
uG=function(a){return a.jb==="1"||a.jb==="1h"};
vG=function(a){return a.jb==="mac3"||a.jb==="meac3"||a.jb==="m"};
wG=function(a){return a.jb==="MAC3"||a.jb==="MEAC3"||a.jb==="M"};
g.xG=function(a){return a.containerType===1};
txa=function(a){return a.jb==="("||a.jb==="(h"||a.jb==="H"};
yG=function(a){return a.mimeType==="application/x-mpegURL"};
zG=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
AG=function(a,b){a=zG(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
uxa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.jb==="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.qb*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.qb*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
BG=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
CG=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
DG=function(a){return a.includes("vtt")||a.includes("text/mp4")};
pG=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};
EG=function(a,b,c,d,e,f){var h=new kG;b in g.mG||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.mG[b],d=Math.round(e*16/9));f=new nG(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new rG(c,a,{audio:h,video:f})};
FG=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.ex)==null?void 0:c.toFixed(0))+", "+((d=a.qb)==null?void 0:d.toFixed(0))+")"};
GG=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
vxa=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 GG(d,e)};
HG=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)};
IG=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};
JG=function(a,b){return IG(a,b)>=0};
wxa=function(a,b){if(!a)return NaN;b=IG(a,b);return b>=0?a.start(b):NaN};
KG=function(a,b){if(!a)return NaN;b=IG(a,b);return b>=0?a.end(b):NaN};
LG=function(a){return a&&a.length?a.end(a.length-1):NaN};
MG=function(a,b){a=KG(a,b);return a>=0?a-b:0};
NG=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 GG(d,e)};
OG=function(a,b,c,d){g.Qx.call(this);var e=this;this.Hd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.EZ={error:function(){!e.Ia()&&e.isActive&&e.publish("error",e)},
updateend:function(){!e.Ia()&&e.isActive&&e.publish("updateend",e)}};
g.Rx(this.Hd,this.EZ);this.TI=this.isActive};
QG=function(a,b,c,d,e,f){g.Qx.call(this);var h=this;this.Pb=a;this.Bh=b;this.id=c;this.containerType=d;this.jb=e;this.dg=f;this.NR=this.CG=this.Kf=null;this.OJ=!1;this.appendWindowStart=this.timestampOffset=0;this.bP=GG([],[]);this.VE=!1;this.BG=[];this.EC=PG?[]:void 0;this.Id=function(m){return h.publish(m.type,h)};
var l;if((l=this.Pb)==null?0:l.addEventListener)this.Pb.addEventListener("updateend",this.Id),this.Pb.addEventListener("error",this.Id)};
RG=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
SG=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1};
TG=function(a,b,c){c=c===void 0?!1:c;g.O.call(this);this.mediaElement=a;this.Pa=b;this.isView=c;this.K=0;this.D=!1;this.G=!0;this.W=0;this.callback=null;this.Z=!1;this.Pa||(this.Bh=this.mediaElement.Ib());this.events=new g.jG(this);g.P(this,this.events);this.C=new SG(this.Pa?window.URL.createObjectURL(this.Pa):this.Bh.webkitMediaSourceURL,!0);a=this.Pa||this.Bh;gt(this.events,a,["sourceopen","webkitsourceopen"],this.Yca);gt(this.events,a,["sourceclose","webkitsourceclose"],this.Xca);this.N={updateend:this.n6}};
xxa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
yxa=function(a,b){UG(a)?g.zi(function(){b(a)}):a.callback=b};
zxa=function(a,b,c){if(zH){var d;CH(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:DH(d)},!1);g.Rx(b,a.N,a);g.Rx(c,a.N,a)}a.j=b;a.B=c;g.P(a,b);g.P(a,c)};
Axa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.jb;c=c.jb;var f;a.oa=(f=a.Pa)==null?void 0:f.addSourceBuffer(e);var h;a.qa=d.split(";")[0]==="fakesb"?void 0:(h=a.Pa)==null?void 0:h.addSourceBuffer(d);a.Bh&&(a.Bh.webkitSourceAddId("0",e),a.Bh.webkitSourceAddId("1",d));f=new QG(a.oa,a.Bh,"0",pG(e),c,!1);d=new QG(a.qa,a.Bh,"1",pG(d),b,!0);zxa(a,f,d)};
EH=function(a){return!!a.j||!!a.B};
UG=function(a){try{return FH(a)==="open"}catch(b){return!1}};
FH=function(a){if(a.Pa)return a.Pa.readyState;switch(a.Bh.webkitSourceState){case a.Bh.SOURCE_OPEN:return"open";case a.Bh.SOURCE_ENDED:return"ended";default:return"closed"}};
GH=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
Bxa=function(a){UG(a)&&(a.Pa?a.Pa.endOfStream():a.Bh.webkitSourceEndOfStream(a.Bh.EOS_NO_ERROR))};
Cxa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Hd:a.j,f=a.B.isView()?a.B.Hd:a.B,h=new TG(a.mediaElement,a.Pa,!0);h.C=a.C;zxa(h,new OG(e,b,c,d),new OG(f,b,c,d));UG(a)||a.j.Kn(a.j.zc());return h};
Dxa=function(a){var b;(b=a.j)==null||b.oA();var c;(c=a.B)==null||c.oA();a.G=!1};
HH=function(){var a=this;this.IT=this.CC=Jaa;this.promise=new g.Fi(function(b,c){a.CC=b;a.IT=c})};
IH=function(){g.O.call(this);this.jL=!1;this.resource=null;this.N=this.K=!1;this.D=new g.qi;this.ea=null;g.P(this,this.D)};
JH=function(a){a=a.VA();return a.length<1?NaN:a.end(a.length-1)};
Exa=function(a){!a.B&&xxa()&&(a.C?a.C.then(function(){return Exa(a)}):a.ri()||(a.B=a.Yr()))};
Fxa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
CH=function(a,b,c){var d;((d=a.ea)==null?0:d.Vb())&&a.ea.ma("rms",b,c===void 0?!1:c)};
Gxa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.Ur(function(){Gxa(a,a.getCurrentTime(),c+1)},500))};
Hxa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
KH=function(a){return MG(a.Kh(),a.getCurrentTime())};
Ixa=function(a,b){if(a.zl()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.VA(),a.length||!c)?JG(a,b):c};
LH=function(a){a.ri()&&(a.ea&&a.ea.Xv("rs_s"),Ku&&a.getCurrentTime()>0&&a.seekTo(0),a.XM(),a.load(),Hxa(a,null));delete a.C};
MH=function(a){switch(a.Mh()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.Zf())==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.NH=function(a,b,c){this.Pg=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64};
OH=function(a,b,c){c=c===void 0?!1:c;return Jxa(a,b.getCurrentTime(),(0,g.hu)(),KH(b),c)};
PH=function(a,b,c,d){if(!(b===a.state&&c===a.Pg&&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.NH(b,c,e?d?d:a.seekSource:null)}return a};
QH=function(a,b,c){return PH(a,a.state|b,null,c===void 0?null:c)};
RH=function(a,b){return PH(a,a.state&~b,null,null)};
SH=function(a,b,c,d){return PH(a,(a.state|b)&~c,null,d===void 0?null:d)};
g.U=function(a,b){return!!(a.state&b)};
g.TH=function(a,b){return b.state===a.state&&b.Pg===a.Pg};
UH=function(a){return a.isPlaying()&&!g.U(a,16)&&!g.U(a,32)};
VH=function(a){return g.U(a,128)?-1:g.U(a,2)?0:g.U(a,2048)?3:g.U(a,64)?-1:g.U(a,1)&&!g.U(a,32)?3:g.U(a,8)?1:g.U(a,4)?2:-1};
XH=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A){g.O.call(this);var C=this;this.Ap=a;this.slot=b;this.layout=c;this.Na=d;this.zb=e;this.Qa=f;this.Ga=h;this.Dc=l;this.Jb=m;this.Xq=n;this.position=q;this.K=r;this.ya=t;this.Fq=u;this.Tg=y;this.context=A;this.qh=!0;this.G=!1;this.lc="not_rendering";this.B=!1;this.C=new SF;a=ND(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(c.Ab,this.Na,a,c.layoutId);var F;a=((F=WH(this))==null?void 0:F.progressCommands)||[];this.D=new Iwa(m,
a,c.layoutId,function(){return C.OA()});
this.j=new lxa({adCpn:this.layout.layoutId,Ij:A.Ij,P$:this.Fq,dg:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
YH=function(a){return{layoutId:a.PA(),Cs:a.Fq,Pf:a.Qa.get(),To:a.Ye()}};
ZH=function(a,b){return b.layoutId!==a.layout.layoutId?(a.Ap.Mf(a.slot,b,new LD("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};
$H=function(a){a.lc="rendering_start_requested";a.Xq(-1)};
WH=function(a){return ND(a.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
Kxa=function(a){Xy("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)};
Lxa=function(a){var b;return((b=aI(a.Qa.get(),2))==null?void 0:b.clientPlaybackNonce)||""};
bI=function(a,b){switch(b){case "normal":a.Zb("complete");break;case "skipped":a.Zb("skip");break;case "abandoned":lF(a.Za,"impression")&&a.Zb("abandon")}};
cI=function(a,b){a.G||(b=new g.Yy(b.state,new g.NH),a.G=!0);return b};
dI=function(a,b){PF(b)?a.Xq(1):g.$y(b,4)&&!g.$y(b,2)&&a.J3();Zy(b,4)<0&&!(Zy(b,2)<0)&&a.K3()};
Mxa=function(a){a.position===0&&(a.Dc.get(),a=ND(a.layout.clientMetadata,"metadata_type_ad_placement_config").kind,a={adBreakType:eI(a)},FA("ad_bl"),g.GA(a))};
fI=function(a,b){jF(a.Za,b,!a.B)};
Oxa=function(a){var b;return(((b=WH(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.Q(c==null?void 0:c.command,Nxa)})!==-1};
gI=function(a,b){var c=ND(a.clientMetadata,"metadata_type_eligible_for_ssap");return c===void 0?(Xy("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.Ye(c)};
iI=function(a,b){if(!hI(b.get(),"html5_ssap_pass_transition_reason"))return 3;switch(a){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Xy("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Xy("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:a}),3;default:cd(a,"unknown layoutExitReason")}};
Pxa=function(a){Xy("getExitReason: unexpected reason",void 0,void 0,{reason:a})};
jI=function(a,b){if(hI(b.get(),"html5_ssap_pass_transition_reason"))switch(a){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Pxa(a),"abandoned";case 3:case 1:return Pxa(a),"error";default:cd(a,"unexpected transition reason")}else switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Xy("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:cd(a,"unexpected transition reason")}};
kI=function(a,b,c){IA(a,c)||KA(a,b,c);IA(a,"video_to_ad")||KA(a,b,"video_to_ad");IA(a,"ad_to_video")||KA(a,b,"ad_to_video");IA(a,"ad_to_ad")||KA(a,b,"ad_to_ad")};
lI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C){XH.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,y,A,C);var F=this;this.qd=m;this.No=q;this.rL=!0;this.QR=this.vj=0;this.RJ=Di(function(){hxa(YH(F));F.Ap.wc(F.slot,F.layout)});
this.aF=Di(function(){ixa(YH(F));F.lc!=="rendering_stop_requested"&&F.No(F);F.xP()});
this.Ze=new g.Oi(200);this.Ze.listen("tick",function(){F.Rc()});
g.P(this,this.Ze)};
nI=function(a){a.QR=Date.now();mI(a,a.vj);a.Ze.start()};
Qxa=function(a){a.vj=a.OA();a.Fz(a.vj/1E3,!0);mI(a,a.vj)};
mI=function(a,b){b={current:b/1E3,duration:a.OA()/1E3};a.qd.get().Ev("onAdPlaybackProgress",b)};
oI=function(a){lI.call(this,a.Ap,a.slot,a.Sf,a.Na,a.zb,a.Qa,a.Ga,a.Dc,a.qd,a.Jb,a.Xq,a.No,a.al,a.Cz,a.ya,a.Fq,a.Tg,a.context)};
pI=function(a){lI.call(this,a.Ap,a.slot,a.Sf,a.Na,a.zb,a.Qa,a.Ga,a.Dc,a.qd,a.Jb,a.Xq,a.No,a.al,a.Cz,a.ya,a.Fq,a.Tg,a.context)};
qI=function(){pI.apply(this,arguments)};
Rxa=function(a){return gI(a.slot,a.ya.get())?new qI(a):new oI(a)};
tI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N){XH.call(this,a,b,c,d,e,l,m,p,r,u,y,A,C,F,H,N,L);var X=this;this.lf=f;this.md=h;this.Nc=n;this.qd=q;this.eg=t;this.No=y;this.adCpn="";this.xX=0;this.IZ=!1;this.RJ=Di(function(){hxa(YH(X));X.Ap.wc(X.slot,X.layout)});
this.aF=Di(function(){ixa(YH(X));X.lc!=="rendering_stop_requested"&&X.No(X);X.xP()});
this.Ye()||(hI(this.ya.get(),"html5_disable_media_load_timeout")||(this.KL=new g.Ep(function(){X.YL("load_timeout",new LD("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)),a=rI(this.ya.get()),F=sI(F.get()),a&&F&&(this.NB=new g.Ep(function(){var V=ND(c.clientMetadata,"metadata_type_preload_player_vars");
V&&X.md.get().J.preloadVideoByPlayerVars(V,2,300)})))};
Txa=function(a,b){var c=ND(b.clientMetadata,"metadata_type_ad_video_id"),d=ND(b.clientMetadata,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.eg.get().J.U().Ka.add(c,{MJ:d});(b=ND(b.clientMetadata,"metadata_type_sodar_extension_data"))&&Wva(a.lf.get(),b);Sxa(a.Ga.get(),!1)};
Uxa=function(a){Sxa(a.Ga.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ga.get().PC(!1)};
uI=function(a){tI.call(this,a.callback,a.slot,a.Sf,a.Na,a.zb,a.lf,a.md,a.Qa,a.Ga,a.Nc,a.Dc,a.qd,a.Jb,a.eg,a.Xq,a.No,a.al,a.Cz,a.ya,a.Fq,a.context,a.Tg)};
vI=function(){uI.apply(this,arguments)};
Vxa=function(a){return Rxa(Object.assign({},a,{Ap:a.callback,Xq:function(){}}))};
Wxa=function(a){return new tI(a.callback,a.slot,a.Sf,a.Na,a.zb,a.lf,a.md,a.Qa,a.Ga,a.Nc,a.Dc,a.qd,a.Jb,a.eg,function(b){a.qd.get().Ev("onAdIntroStateChange",b)},a.No,a.al,a.Cz,a.ya,a.Fq,a.context,a.Tg)};
Xxa=function(a){function b(c){a.qd.get().GH(c)}
return gI(a.slot,a.ya.get())?new vI(Object.assign({},a,{Xq:b})):new tI(a.callback,a.slot,a.Sf,a.Na,a.zb,a.lf,a.md,a.Qa,a.Ga,a.Nc,a.Dc,a.qd,a.Jb,a.eg,b,a.No,a.al,a.Cz,a.ya,a.Fq,a.context,a.Tg)};
wI=function(a){for(var b=a.Sf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.w(gF()),e=d.next();!e.done;e=d.next())c.push(e.value);if(AF(b,{Od:c,Je:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Vxa(a);b=a.Sf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.w(gF());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(AF(b,{Od:c,Je:["LAYOUT_TYPE_MEDIA"]}))return ID(a.Sf.clientMetadata,"metadata_type_ad_intro")?Wxa(a):Xxa(a)};
Zxa=function(a){var b=ND(a.clientMetadata,"metadata_type_ad_placement_config").kind,c=ND(a.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:Yxa(c),adBreakType:eI(b)}};
eI=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"}};
Yxa=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"}};
$xa=function(a){try{return new xI(a.At,a.slot,a.layout,a.Zd,a.jf,a.Qa,a.Hc,a.md,a.uc,a.Ga,a.lfa,a)}catch(b){}};
xI=function(a,b,c,d,e,f,h,l,m,n,p,q){g.O.call(this);this.At=a;this.slot=b;this.layout=c;this.Zd=d;this.jf=e;this.Qa=f;this.Hc=h;this.md=l;this.uc=m;this.Ga=n;this.params=q;this.qh=!0;a=wI(p);if(!a)throw Error("Invalid params for sublayout");this.zd=a};
aya=function(a){return hI(a.params.context.ya.get(),"html5_ssap_exit_without_waiting_for_transition")};
bya=function(){this.j=1;this.B=new SF};
yI=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.O.call(this);this.callback=a;this.Qa=b;this.Hc=c;this.md=d;this.Ga=e;this.Dc=f;this.vr=h;this.slot=l;this.layout=m;this.Zd=n;this.Ti=p;this.uc=q;this.ya=r;this.qh=!0;this.Wx=!1;this.Vh=[];this.IE=-1;this.vR=!1;this.sx=new bya};
cya=function(a){var b;return(b=a.layout.vt)!=null?b:ND(a.layout.clientMetadata,"metadata_type_sub_layouts")};
zI=function(a){return{Pf:a.Qa.get(),Cs:!1,To:a.Ye()}};
dya=function(a,b,c){if(a.Ll()===a.Vh.length-1){var d,e;Xy("Unexpected skip requested during the last sublayout",(d=a.Ef())==null?void 0:d.dc(),(e=a.Ef())==null?void 0:e.Wa(),{requestingSlot:b,requestingLayout:c})}};
eya=function(a,b,c){return c.layoutId!==AI(a,b,c)?(Xy("onSkipRequested for a PlayerBytes layout that is not currently active",a.dc(),a.Wa()),!1):!0};
fya=function(a){a.Ll()===a.Vh.length-1&&Xy("Unexpected skip with target requested during the last sublayout")};
gya=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==AI(a,b,c)?(Xy("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.dc(),a.Wa(),{requestingSlot:b,requestingLayout:c}),!1):!0};
hya=function(a,b,c,d){var e=ND(b.Wa().clientMetadata,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e<a.Vh.length){a:{for(var f=e;f<a.Vh.length;){if(e===ND(a.Vh[f].Wa().clientMetadata,"metadata_type_ad_pod_skip_index")){a=f;break a}f++}a=void 0}if(a===void 0)Xy("Skip-to-index was requested but target index was not found",b.dc(),b.Wa(),{requestingSlot:c,requestingLayout:d});else return a}else Xy("Invalid ad pod skip target index",b.dc(),b.Wa(),{requestingSlot:c,requestingLayout:d})};
AI=function(a,b,c){var d=ND(a.Wa().clientMetadata,"metadata_type_linked_in_player_layout_id");return d?d:(Xy("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.dc(),a.Wa(),{requestingSlot:b,requestingLayout:c}),null)};
jya=function(a,b,c,d){iya(a,b,c,"skipped",function(){BI(a,d)})};
iya=function(a,b,c,d,e){if(!a.vR){var f=a.Ef();if(f){f.Wa().layoutId!==c.layoutId&&Xy("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Wa().layoutId});a.vR=!0;f.Ld(f.Wa(),d);f=Object.assign({},zI(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.To){var m={};WF(f.Pf,"wrsx",(m.xc=h,m.ler=l,m.ctp=VF(h),m))}a.yP(b,c,d);a.vR=!1;a.VZ?(a.VZ(),a.Ye()||CI(a.Dc.get())):e()}else Xy("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
b,c)}};
BI=function(a,b){if(a.Ll()===a.Vh.length-1)a.IE++,DI(a.Ti,a.layout,"normal"),a.Ye()||CI(a.Dc.get());else a:{if(a.Ll()===-1&&(a.callback.wc(a.slot,a.layout),b>0)){Xy("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.IE=b;b=a.Ef();if(a.Ll()>0&&!a.Ye()){var c=a.Dc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});HA("ad_to_ad",d)}a.LU(b)}};
EI=function(a){yI.call(this,a.At,a.Qa,a.Hc,a.md,a.Ga,a.Dc,a.vr,a.slot,a.layout,a.Zd,a.Ti,a.uc,a.ya)};
FI=function(a){yI.call(this,a.At,a.Qa,a.Hc,a.md,a.Ga,a.Dc,a.vr,a.slot,a.layout,a.Zd,a.Ti,a.uc,a.ya);this.Jh=void 0};
GI=function(a){return hI(a.ya.get(),"html5_ssap_pass_transition_reason")};
kya=function(a,b,c){b.Vr().currentState<2&&(c=jI(c,a.ya),b.Ld(b.Wa(),c));c=b.Vr().j;a.yP(a.slot,b.Wa(),c)};
lya=function(a,b){a.sx.j===2&&b!==a.Wm()&&Xy("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})};
mya=function(a,b){var c=a.Ef();if(c){c.Ld(c.Wa(),b);var d=a.Ll()+1;d>=0&&d<a.Vh.length?(d=a.Vh[d].Wa().layoutId,GI(a)&&(["normal","skipped"].includes(b)||Xy("exitActiveLayoutAndPlayNext: unexpected exit reason",a.slot,a.layout,{exitReason:b})),a.Hc.get().finishSegmentByCpn(c.Wa().layoutId,d,iI(b,a.ya))):d===a.Vh.length?DI(a.Ti,a.layout,"normal"):Xy("unexpected index",a.slot,a.layout,{index:d})}else Xy("exitActiveLayoutAndPlayNext: no active adapter",a.slot,a.layout)};
nya=function(a,b){Xy(b+": undefined adapter",a.slot,a.layout)};
oya=function(a){return gI(a.slot,a.ya.get())?new FI(a):new EI(a)};
HI=function(a,b,c,d,e,f,h){g.O.call(this);this.callback=a;this.md=b;this.Ga=c;this.Dc=d;this.zd=e;this.uc=f;this.ya=h;this.qh=!0;this.Wx=!1};
pya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N){function X(){var W=wI(Object.assign({},la,{callback:{wc:a.wc.bind(a),Kc:a.Kc.bind(a),AC:function(){},
Mf:a.Mf.bind(a)},slot:c,Sf:d,No:function(){DI(h,d,"normal")},
al:0,Cz:1,Fq:!0}));return W?new HI(a,p,r,u,W,e,F):W}
function V(){var W=Object.assign({},la,{callback:{wc:function(){},
Kc:function(){},
AC:function(){return void DI(h,d,"normal")},
Mf:function(){}},
slot:c,Sf:d,No:function(){},
al:0,Cz:1,Fq:!0});return $xa({At:a,slot:c,layout:d,Zd:f,jf:h,Qa:q,Hc:H,md:p,uc:e,Ga:r,lfa:W,context:L})}
function ca(){var W,R=(W=d.vt)!=null?W:ND(d.clientMetadata,"metadata_type_sub_layouts");W=oya({At:a,Qa:q,Hc:H,md:p,Ga:r,Dc:u,vr:b,slot:c,layout:d,Zd:f,Ti:h,uc:e,ya:F});for(var Y=[],v={Tx:0};v.Tx<R.length;v={Tx:v.Tx},v.Tx++){var T=wI(Object.assign({},la,{callback:{wc:W.o1.bind(W),Kc:W.s1.bind(W),AC:W.AC.bind(W),Mf:W.q1.bind(W)},slot:c,Sf:R[v.Tx],No:function($a){return function(ub){ub.Ld(R[$a.Tx],"normal")}}(v),
al:v.Tx,Cz:R.length,Fq:!1}));if(!T)return;Y.push(T)}W.Vh=Y;return W}
var la={Na:l,zb:m,lf:n,md:p,Qa:q,Ga:r,Nc:t,Dc:u,qd:y,Jb:A,eg:C,ya:F,context:L,Tg:N};l=AF(d,{Od:["metadata_type_sub_layouts"],Je:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||d.vt!==void 0&&d.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";m=gI(c,F.get())&&AF(d,{Od:[],Je:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});n=AF(d,{Od:[],Je:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(l)return ca();if(m)return V();if(n)return X()};
II=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Qa=d;this.Hc=e;this.wf=f;this.Ga=h;this.Za=l;this.Na=m;this.G=n;this.driftRecoveryMs=ND(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.D=ND(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
rya=function(a){var b=ND(a.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=ND(a.layout.clientMetadata,"metadata_type_layout_exit_ms");a=a.wf.get();b=qya(a.C,b,c);return Math.min(c,b!==null?b:Infinity)};
KI=function(a,b){var c;JI(a.Na.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(c=a.Qa.get().wx)==null?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ub.adClientDataEntry},b)})};
LI=function(a,b,c,d,e,f,h,l,m,n,p){II.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.w(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,ID(b.Wa().clientMetadata,"metadata_type_survey_overlay")&&(this.B=b.Wa().layoutId)};
tya=function(a,b){var c=sya(a,b);c||Xy("Expected subLRA found by layout ID",a.slot,a.layout,{layoutId:b});a.j={Mm:c};c?c.startRendering(c.Wa()):b===a.B&&Xy("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
sya=function(a,b){return b==null?null:a.C.find(function(c){return c.Wa().layoutId===b})||null};
uya=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=ID(b.clientMetadata,"metadata_type_survey_overlay"),r,t=((r=ND(a.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:ND(r.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.lG(c,t,2,f,d,e,a.slotId),MI(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.JE(c,t,2,f,d,e,a.slotId);MI(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return Xy("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&Xy("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):Xy("Invalid timeline playback ID");d+f>e&&h.JI(p,e-d);return p};
vya=function(a,b){var c=ND(b.clientMetadata,"metadata_type_sodar_extension_data");if(c)try{Wva(0,c)}catch(d){Xy("Unexpected error when loading Sodar",a,b,{error:d})}};
wya=function(a,b,c,d,e,f){NI(a,b,new g.Yy(c,new g.NH),d,e,!1,f)};
NI=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;PF(c)&&QF(e,0,null)&&(!lF(a,"impression")&&h&&h(),a.Zb("impression"));lF(a,"impression")&&(g.$y(c,4)&&!g.$y(c,2)&&a.Wh("pause"),Zy(c,4)<0&&!(Zy(c,2)<0)&&a.Wh("resume"),g.$y(c,16)&&e>=.5&&a.Wh("seek"),f&&g.$y(c,2)&&OI(a,c.state,b,d,e))};
OI=function(a,b,c,d,e,f,h){if(lF(a,"impression")){var l=Math.abs(d-e)<=1;PI(a,b,l?d:e,c,d,f,h&&l);l&&a.Zb("complete")}};
PI=function(a,b,c,d,e,f,h){kF(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.U(b,16))||(b==null?0:g.U(b,32))||(QF(c,e*.25,d)&&(f&&!lF(a,"first_quartile")&&f("first"),a.Zb("first_quartile")),QF(c,e*.5,d)&&(f&&!lF(a,"midpoint")&&f("second"),a.Zb("midpoint")),QF(c,e*.75,d)&&(f&&!lF(a,"third_quartile")&&f("third"),a.Zb("third_quartile")))};
xya=function(a,b){lF(a,"impression")&&a.Wh(b?"fullscreen":"end_fullscreen")};
yya=function(a){lF(a,"impression")&&a.Wh("clickthrough")};
zya=function(a){a.Wh("active_view_measurable")};
Aya=function(a){lF(a,"impression")&&!lF(a,"seek")&&a.Wh("active_view_fully_viewable_audible_half_duration")};
Bya=function(a){lF(a,"impression")&&!lF(a,"seek")&&a.Wh("active_view_viewable")};
Cya=function(a){lF(a,"impression")&&!lF(a,"seek")&&a.Wh("audio_audible")};
Dya=function(a){lF(a,"impression")&&!lF(a,"seek")&&a.Wh("audio_measurable")};
Eya=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Hc=d;this.Za=e;this.Ga=f;this.xt=h;this.zb=l;this.lf=m;this.ya=n;this.Na=p;this.Qa=q;this.rL=!0;this.Ed=this.lc=null;this.adCpn=void 0;this.j=!1};
Fya=function(a,b,c){var d;MI(a.Na.get(),"ads_qua","cpn."+ND(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=aI(a.Qa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
Gya=function(a,b){var c,d;MI(a.Na.get(),"ads_imp","cpn."+ND(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=aI(a.Qa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.Q((d=ND(a.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,QI))};
RI=function(a){return{enterMs:ND(a.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:ND(a.clientMetadata,"metadata_type_layout_exit_ms")}};
SI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){II.call(this,a,b,c,d,e,h,l,m,n,q);this.xt=f;this.lf=p;this.zb=r;this.ya=t;this.Ed=this.lc=null};
Hya=function(a,b){var c;MI(a.Na.get(),"ads_imp","acpn."+((c=aI(a.Qa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)};
Iya=function(a,b,c){var d;MI(a.Na.get(),"ads_qua","cpn."+ND(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=aI(a.Qa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
TI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L){this.uc=a;this.Zd=b;this.Ti=c;this.Qa=d;this.Hc=e;this.Ga=f;this.Na=h;this.xt=l;this.wf=m;this.zb=n;this.lf=p;this.md=q;this.Nc=r;this.Dc=t;this.qd=u;this.Jb=y;this.eg=A;this.ya=C;this.j=F;this.context=H;this.Tg=L};
UI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C){this.uc=a;this.Zd=b;this.Ti=c;this.Na=d;this.zb=e;this.lf=f;this.md=h;this.Qa=l;this.Ga=m;this.Nc=n;this.Dc=p;this.qd=q;this.Jb=r;this.eg=t;this.ya=u;this.Hc=y;this.context=A;this.Tg=C};
Jya=function(a,b,c,d){Px.call(this,"survey-interstitial",a,b,c,d)};
VI=function(a,b,c,d,e){ZE.call(this,c,a,b,d);this.Na=e;a=ND(b.clientMetadata,"metadata_type_ad_placement_config");this.Za=new fF(b.Ab,e,a,b.layoutId)};
WI=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
YI=function(a,b,c){c=c===void 0?XI:c;c.width<XI.width&&(c=XI);if(a.width<c.width||a.height<c.height)return{SN:3,NI:501,errorMessage:"ad("+WI(c)+") larger than container("+WI(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{SN:3,NI:501,errorMessage:"ad("+WI(c)+") to container("+WI(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{SN:3,NI:501,errorMessage:"ad("+WI(c)+") covers container("+WI(a)+") center."}};
Kya=function(a,b){var c=ND(a.clientMetadata,"metadata_type_ad_placement_config");return new fF(a.Ab,b,c,a.layoutId)};
ZI=function(a){return ND(a.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
$I=function(a,b,c,d){Px.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
aJ=function(a,b,c,d,e,f,h,l,m,n,p,q){ZE.call(this,f,a,b,e);this.Na=c;this.D=h;this.Ga=l;this.Jb=m;this.ya=n;this.K=p;this.G=q;this.Za=Kya(b,c)};
Lya=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];gF().forEach(function(b){a.push(b)});
return{Od:a,Je:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
bJ=function(a,b,c,d,e,f,h,l,m,n,p,q,r){ZE.call(this,f,a,b,e);this.Na=c;this.D=h;this.Z=l;this.Ga=m;this.Jb=n;this.ya=p;this.K=q;this.G=r;this.Za=Kya(b,c)};
Mya=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.w(gF()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Od:a,Je:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
cJ=function(a){this.Ga=a;this.j=!1};
Nya=function(a,b,c){Px.call(this,"survey",a,{},b,c)};
dJ=function(a,b,c,d,e,f,h){ZE.call(this,c,a,b,d);this.D=e;this.Ga=f;this.ya=h};
Oya=function(a,b,c,d,e,f,h,l,m,n){this.yc=a;this.Ga=b;this.Na=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Jb=l;this.ya=m;this.j=n};
Pya=function(a,b,c,d,e,f,h,l,m,n){this.yc=a;this.Ga=b;this.Na=c;this.D=d;this.zb=e;this.B=f;this.C=h;this.Jb=l;this.ya=m;this.j=n};
eJ=function(a,b,c,d,e,f,h,l,m,n){IF.call(this,a,b,c,d,e,f,h,m);this.Xn=l;this.Qa=n};
Qya=function(){var a=Zwa();a.Od.push("metadata_type_ad_info_ad_metadata");return a};
Rya=function(a,b,c,d,e,f,h){this.yc=a;this.Ga=b;this.Na=c;this.B=d;this.Xn=e;this.j=f;this.Qa=h};
Sya=function(a,b,c,d,e,f,h,l){this.yc=a;this.Ga=b;this.Na=c;this.B=d;this.Xn=e;this.j=f;this.ya=h;this.Qa=l};
fJ=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
gJ=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};
hJ=function(a,b,c){this.dw=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
iJ=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
jJ=function(a,b,c,d){this.dw=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
Tya=function(a){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=a(this.triggerType)};
Uya=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
kJ=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)};
lJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
mJ=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)};
Vya=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 Z("Invalid layout exit reason: "+
a)}};
nJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
oJ=function(a,b){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=b||a(this.triggerType)};
pJ=function(a,b){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=b||a(this.triggerType)};
Wya=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
Xya=function(a,b,c,d,e){this.dw=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)};
qJ=function(a,b,c,d,e){this.dw=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
Yya=function(a,b,c){this.dw=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
rJ=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)};
sJ=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)};
tJ=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
uJ=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
Yva=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)};
Zya=function(a,b){this.ping=a;this.index=b};
$ya=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
aza=function(a){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=a(this.triggerType)};
bza=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)};
cza=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
dza=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)};
vJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
wJ=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
xJ=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
yJ=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
zJ=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
AJ=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
BJ=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
CJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
DJ=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)};
EJ=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
FJ=function(a){return(a==null?void 0:a.layoutId)!=null&&(a==null?void 0:a.layoutType)!=null};
eza=function(a){if(!FJ(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.Q(a,GJ)||g.Q(a,HJ)||g.Q(a,IJ)||g.Q(a,JJ)||g.Q(a,KJ)||g.Q(a,LJ)?!0:!1};
fza=function(a){return(a==null?void 0:a.durationMs)!=null&&(a==null?void 0:a.durationMs)>0};
MJ=function(a){return!!(a.I$&&a.slot&&a.layout)};
NJ=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)};
gza=function(a){if(!FJ(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.Q(a,NF)||g.Q(a,LF)||g.Q(a,MF)?!0:!1};
OJ=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0};
VJ=function(a){if(!FJ(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.Q(a,PJ);return b?QJ(b):(b=g.Q(a,RJ))?OJ(b):(b=g.Q(a,SJ))?b.playerVars!==void 0:(b=g.Q(a,NF))?b.durationMilliseconds!==void 0:g.Q(a,TJ)||g.Q(a,UJ)?!0:!1};
QJ=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.Q(b,WJ)});
return a.length>0&&a.every(VJ)};
kza=function(a){if(!FJ(a.adLayoutMetadata))return!1;if(g.Q(a.renderingContent,hza))return!0;a=g.Q(a.renderingContent,XJ);return g.Q(a==null?void 0:a.sidePanel,iza)||g.Q(a==null?void 0:a.sidePanel,jza)?!0:!1};
pza=function(a){var b;(b=!a)||(b=a.adSlotMetadata,b=!((b==null?void 0:b.slotId)!==void 0&&(b==null?void 0:b.slotType)!==void 0));if(b||!(lza(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.Q(a,WJ))?VJ(c):(c=g.Q(a,YJ))?kza(c):(c=g.Q(a,mza))?gza(c):(c=g.Q(a,nza))?eza(c):(a=g.Q(a,oza))?FJ(a.adLayoutMetadata)?g.Q(a.renderingContent,GJ)?!0:!1:!1:!1};
lza=function(a){var b;a=g.Q((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,YJ);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0};
rza=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.w(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.Q(b,ZJ))==null?void 0:c.surveyAdQuestionCommon)||((d=g.Q(b,$J))==null?void 0:d.surveyAdQuestionCommon);if(!qza(e))return!1}return!0};
sza=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.Q(a.questions[0],ZJ))==null?void 0:b.surveyAdQuestionCommon)||((c=g.Q(a.questions[0],$J))==null?void 0:c.surveyAdQuestionCommon);b=qza(d)}else b=!1;else b=!1;return b};
qza=function(a){if(!a)return!1;a=g.Q(a.instreamAdPlayerOverlay,aK);var b=g.Q(a==null?void 0:a.skipOrPreviewRenderer,QI),c=g.Q(a==null?void 0:a.adInfoRenderer,bK);return(g.Q(a==null?void 0:a.skipOrPreviewRenderer,cK)||b)&&c?!0:!1};
tza=function(a){return a.linearAds!=null&&FJ(a.adLayoutMetadata)};
uza=function(a){return a.linearAd!=null&&a.adVideoStart!=null};
vza=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.Q(a.ctaButton,g.dK)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.Q(a.backgroundImage,eK)&&((b=g.Q(a.backgroundImage,eK))==null?0:b.landscape)?!0:!1};
fK=function(a,b,c,d,e,f,h){g.O.call(this);this.ya=a;this.j=b;this.C=d;this.Qa=e;this.D=f;this.B=h};
yza=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(l){return g.Q(l,gK)});
if(c.cD)if(ND(b.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))VE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId);
else{if(a.ya.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")){var f=c.Zw.filter(function(l){var m;return((m=l.renderer)==null?void 0:m.clientForecastingAdRenderer)!=null});
f.length!==0?wza(a.B,f,e,b.slotId,c.ssdaiAdsConfig):VE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)}else VE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId);
xza(a.D,b)}else{var h;d={Gv:(f=ND(b.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.Gv,Fv:(h=ND(b.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:h.Fv};wza(a.B,c.Zw,e,b.slotId,c.ssdaiAdsConfig,d)}};
Aza=function(a,b,c,d,e,f,h){var l=aI(a.Qa.get(),1);VE(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return zza(a.C.get(),c,d,e,l.clientPlaybackNonce,l.Hl,l.daiEnabled,l,f,h)},b)};
Cza=function(a,b,c,d,e,f,h){b=Bza(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof Z?b:hK(a,d,e,b,c);return a instanceof Z?a:[a]};
Dza=function(a,b,c,d,e){var f=WE(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new rD({getAdBreakUrl:d.getAdBreakUrl,Gv:0,Fv:0}),new FD(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new AJ(a.j,f),slotFulfillmentTriggers:[new Uya(a.j)],slotExpirationTriggers:[new uJ(a.j,e),new xJ(a.j,f)],Xa:"core",clientMetadata:new MD(d),adSlotLoggingData:c}:new Z("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Z("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof Z?a:[a]};
Eza=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0};
iK=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new hJ(KD,b,a.id):new Z("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new nJ(KD,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new Z("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=Vya(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof Z?b:new mJ(KD,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new Z("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new tJ(KD,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new Z("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new uJ(KD,b,a.id):new Z("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new vJ(KD,a.skipRequestedTrigger.triggeringLayoutId,a.id):new Z("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new wJ(KD,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new Z("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new xJ(KD,a.slotIdExitedTrigger.triggeringSlotId,a.id):new Z("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new CJ(KD,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new Z("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new Wya(a.id):new Z("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new iJ(KD,a.closeRequestedTrigger.triggeringLayoutId,a.id):new Z("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new AJ(KD,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new Z("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 Z("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 bq(d,u),a=c instanceof Z?c:new qJ(KD,b,c,!1,a.id)):a=new Z("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new jJ(KD,b,!1,a.id):new Z("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var y;b=(y=a.layoutIdEnteredTrigger)!=null&&y.triggeringLayoutId?new lJ(KD,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new Z("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=(A=a.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new DJ(KD,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new Z("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 rJ(KD,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new Z("Not able to create CloseRequestedTrigger")}else b=a.liveStreamBreakStartedTrigger?a.liveStreamBreakStartedTrigger&&a.id?new pJ(KD,a.id):new Z("Not able to create LiveStreamBreakStartedTrigger"):
a.liveStreamBreakEndedTrigger?a.liveStreamBreakEndedTrigger&&a.id?new oJ(KD,a.id):new Z("Not able to create LiveStreamBreakEndedTrigger"):new Z("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};
jK=function(a,b){b.j>=2&&(a.slot_pos=b.adPodIndex);a.autoplay="1"};
Gza=function(a,b,c,d,e,f,h,l){return b===null?new Z("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[Fza(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new MD([new tC(d),new FC(e)]);n=CE(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ab:new Map,
layoutExitNormalTriggers:[new uJ(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:q,Ub:m(r),adLayoutLoggingData:p}})]};
Hza=function(a,b,c,d,e,f,h,l){return b===null?new Z("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[Fza(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new MD([new uC(d),new FC(e)]);n=CE(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xa:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Ab:new Map,layoutExitNormalTriggers:[new uJ(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:q,Ub:m(r),adLayoutLoggingData:p}})]};
Lza=function(a,b,c,d,e,f){if(!f)for(b=g.w(b),f=b.next();!f.done;f=b.next())f=f.value,kK(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return Iza(p)});
b=[];f=g.w(a);for(var h=f.next(),l={};!h.done;l={mx:void 0},h=f.next()){l.mx=h.value;h=g.w(l.mx.MO);for(var m=h.next(),n={};!m.done;n={Yn:void 0},m=h.next())n.Yn=m.value,m=function(p,q){return function(r){return p.Yn.HP(r,q.mx.instreamVideoAdRenderer.elementId,p.Yn.LO)}}(n,l),n.Yn.isContentVideoCompanion?b.push(Jza(c,d,e,l.mx.instreamVideoAdRenderer.elementId,n.Yn.associatedCompositePlayerBytesLayoutId,n.Yn.adSlotLoggingData,m)):a.length>1?b.push(Kza(c,d,e,l.mx.instreamVideoAdRenderer.elementId,n.Yn.adSlotLoggingData,
function(p,q){return function(r){return p.Yn.HP(r,q.mx.instreamVideoAdRenderer.elementId,p.Yn.LO,p.Yn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(Kza(c,d,e,l.mx.instreamVideoAdRenderer.elementId,n.Yn.adSlotLoggingData,m))}return b};
kK=function(a,b,c){if(b=Mza(b)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=lK(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.nG=c)}else Xy("InstreamVideoAdRenderer without externalVideoId")}};
Mza=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.Q(a.sandwichedLinearAdRenderer.linearAd,RJ);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.w(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.Q(c,RJ)&&b.push(g.Q(c,RJ));return b}return null};
Iza=function(a){if(a.instreamVideoAdRenderer===void 0)return Xy("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.w(a.MO),c=b.next();!c.done;c=b.next()){c=c.value;if(c.HP===void 0)return!1;if(c.LO===void 0)return Xy("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.nG===void 0||c.sJ===void 0||a.nG!==c.sJ&&c.sJ!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return Xy("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.nG,"matching APSR kind":c.sJ}),!1}return!0};
lK=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,nG:void 0,adVideoId:b,MO:[]});return a.get(b)};
mK=function(a,b,c,d,e,f,h,l,m){e?lK(a,e).MO.push({jna:b,sJ:c,isContentVideoCompanion:d,LO:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,HP:m}):Xy("Companion AdPlacementSupportedRenderer without adVideoId")};
nK=function(a){var b=0;a=g.w(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.Q(c,ZJ)||g.Q(c,$J)){var d=void 0;b+=((d=c.surveyAdQuestionCommon)==null?void 0:d.durationMilliseconds)||0}return b};
oK=function(a){var b,c,d,e,f=((c=g.Q((b=a.questions)==null?void 0:b[0],ZJ))==null?void 0:c.surveyAdQuestionCommon)||((e=g.Q((d=a.questions)==null?void 0:d[0],$J))==null?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.x(((h=a.playbackCommands)==null?void 0:h.instreamAdCompleteCommands)||[]),g.x((f==null?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,u,y,A,C,F,H,L,N,X,V,ca,la,W;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:(y=a.playbackCommands)==null?void 0:y.progressCommands,yna:(A=
a.playbackCommands)==null?void 0:A.clickthroughCommands,fullscreenCommands:(C=a.playbackCommands)==null?void 0:C.fullscreenCommands,activeViewViewableCommands:(F=a.playbackCommands)==null?void 0:F.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:(X=N.activeViewTracking)==null?void 0:X.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(V=a.playbackCommands)==null?void 0:(ca=V.activeViewTracking)==null?void 0:ca.activeViewAudioMeasurableCommands,endFullscreenCommands:(la=a.playbackCommands)==null?void 0:la.endFullscreenCommands,abandonCommands:(W=a.playbackCommands)==null?void 0:W.abandonCommands,completeCommands:b}};
Oza=function(a,b,c,d,e,f,h){return function(l,m){return Nza(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return pK(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new VC(c),d],c.adLayoutLoggingData)})}};
Rza=function(a,b,c,d,e,f,h){if(!Pza(a))return new Z("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Qza(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=CE(e.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xa:"core"},q=new nJ(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ab:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new WC(l)]),Ub:m(p)}})]};
Pza=function(a){a=g.Q(a==null?void 0:a.additionalPlayerOverlay,Sza);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&b.length!==0?!0:!1};
Uza=function(a,b,c,d,e){var f;if((f=a.playerOverlay)==null||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!sza(a))return function(){return new Z("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=nK(h);return l<=0?function(){return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=Tza(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=oK(h);r=CE(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var u={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},y=new nJ(e.j,d),A=new vJ(e.j,r),C=new CJ(e.j,r),F=new $ya(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ab:new Map,layoutExitNormalTriggers:[y,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],Wc:[],Xa:"core",clientMetadata:new MD([new UC(h),new FC(b),new uD(l/1E3),new yD(t)]),Ub:q(u),adLayoutLoggingData:h.adLayoutLoggingData}});
m=Rza(a,c,p.slotId,d,e,m,n);return m instanceof Z?m:[p].concat(g.x(m))}};
aAa=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(y){y=Vza(y.slotId,c,b,e(y),d,f,h);m=y.pfa;return y.v8};
else if(c.renderer.instreamVideoAdRenderer)n=function(y){var A=y.slotId;y=e(y);var C=h,F=c.config.adPlacementConfig,H=Wza(F),L=H.CY,N=H.GY;H=c.renderer.instreamVideoAdRenderer;var X;if(H==null?0:(X=H.playerOverlay)==null?0:X.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var V=qK(H,C);X=Math.min(L+V.videoLengthSeconds*1E3,N);C=new gJ(0,[V.videoLengthSeconds]);N=V.videoLengthSeconds;var ca=V.playerVars,la=V.instreamAdPlayerOverlayRenderer,W=V.playerOverlayLayoutRenderer,
R=V.adVideoId,Y=Xza(c),v=V.Ab;V=V.Qt;var T=H==null?void 0:H.adLayoutLoggingData;H=H==null?void 0:H.sodarExtensionData;A=CE(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var $a={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ab:v,layoutExitNormalTriggers:[new oJ(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new LC(d),new fD(N),new gD(ca),new jD(L),new kD(X),la&&new MC(la),
W&&new NC(W),new FC(F),new KC(R),new GC(C),new pD(Y),H&&new iD(H),new bD({current:null}),new mD({}),new BD(V)].filter(Yza)),Ub:y($a),adLayoutLoggingData:T}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=Zza(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.w(m),r=q.next();!r.done;r=q.next()){var t=r.value,u=t(a,e);if(u instanceof Z)return u;l.push.apply(l,g.x(u))}}catch(y){return new Z(y,{errorMessage:y.message,AdPlacementRenderer:c,numberOfSurveyRenderers:$za(c)})}return l};
$za=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return a!=null&&a.length?a.filter(function(b){var c,d;return((c=g.Q(b,RJ))==null?void 0:(d=c.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer)!=null}).length:0};
Vza=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=Wza(l),n=m.CY,p=m.GY;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(m==null||!m.length)throw new TypeError("Expected linear ads");var q=[],r={uI:n,al:0,mfa:q};m=m.map(function(u){return bAa(a,u,r,c,d,l,e,p,h)}).map(function(u,y){y=new gJ(y,q);
return u(y)});
var t=m.map(function(u){return u.w8});
return{v8:cAa(c,a,n,t,l,Xza(b),d,p,f),pfa:m.map(function(u){return u.ofa})}};
bAa=function(a,b,c,d,e,f,h,l,m){var n=qK(g.Q(b,RJ),m),p=c.uI,q=c.al,r=Math.min(p+n.videoLengthSeconds*1E3,l);c.uI=r;c.al++;c.mfa.push(n.videoLengthSeconds);var t,u,y=(t=g.Q(b,RJ))==null?void 0:(u=t.playerOverlay)==null?void 0:u.instreamSurveyAdRenderer;if(n.adVideoId==="nPpU29QrbiU"&&y==null)throw new TypeError("Survey slate media has no survey overlay");return function(A){jK(n.playerVars,A);var C,F,H=n.videoLengthSeconds,L=n.playerVars,N=n.Ab,X=n.Qt,V=n.instreamAdPlayerOverlayRenderer,ca=n.playerOverlayLayoutRenderer,
la=n.adVideoId,W=(C=g.Q(b,RJ))==null?void 0:C.adLayoutLoggingData;C=(F=g.Q(b,RJ))==null?void 0:F.sodarExtensionData;F=CE(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var R={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};A={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Ab:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"adapter",clientMetadata:new MD([new LC(h),new fD(H),new gD(L),new jD(p),new kD(r),new lD(q),new bD({current:null}),
V&&new MC(V),ca&&new NC(ca),new FC(f),new KC(la),new GC(A),C&&new iD(C),y&&new AD(y),new mD({}),new BD(X)].filter(Yza)),Ub:e(R),adLayoutLoggingData:W};H=Uza(g.Q(b,RJ),f,h,A.layoutId,d);return{w8:A,ofa:H}}};
qK=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=Hr(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=dAa[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Ab:a.pings?eF(a.pings):new Map,Qt:dF(a.pings)}};
Xza=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a};
Wza=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{CY:b,GY:a}};
eAa=function(a){var b,c=(b=ND(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=ND(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=ND(a.clientMetadata,"metadata_type_content_cpn"),f=ND(a.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),h=ND(a.clientMetadata,"metadata_type_player_underlay_renderer"),l=ND(a.clientMetadata,"metadata_type_ad_placement_config"),m=ND(a.clientMetadata,"metadata_type_video_length_seconds");
var n=ID(a.clientMetadata,"metadata_type_layout_enter_ms")&&ID(a.clientMetadata,"metadata_type_layout_exit_ms")?(ND(a.clientMetadata,"metadata_type_layout_exit_ms")-ND(a.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xr:d,contentCpn:e,wT:c,NO:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,JL:n,inPlayerLayoutId:ND(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ND(a.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
hAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=WE(d,"SLOT_TYPE_PLAYER_BYTES");a=fAa(e,a,h,c,d,m,n);if(a instanceof Z)return a;var y;n=(y=ND(a.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!n)return new Z("Invalid adNotify layout");b=gAa(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof Z?b:[a].concat(g.x(b))};
gAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=iAa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof Z)return c;a=jAa(b,a,h,e,c);return a instanceof Z?a:[].concat(g.x(a.sf),[a.Vy])};
lAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=iAa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof Z)return b;a=kAa(a,c,f,h,d,l.Wb,b);return a instanceof Z?a:a.sf.concat(a.Vy)};
iAa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=rK(d,c,n);return r instanceof LD?new Z(r):n.J.U().experiments.bb("html5_refactor_in_player_slot_generation")?function(t){var u=new gJ(0,[r.Up]);t=mAa(b,r.layoutId,r.Dp,c,sK(r.playerVars,r.vC,f,m,u),r.Up,e,u,h(t),l.get(r.Dp.externalVideoId),q);u=[];if(r.Dp.playerOverlay.instreamAdPlayerOverlayRenderer){var y=eAa(t);if(!y)return Xy("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,sf:[]};
u=[nAa(a,y.contentCpn,y.xr,function(C){return tK(b,C.slotId,"core",y,TD(p,C))},y.inPlayerSlotId)].concat(g.x(u));
if(y.instreamAdPlayerUnderlayRenderer&&uK(n)){var A=y.instreamAdPlayerUnderlayRenderer;u=[oAa(a,y.contentCpn,y.xr,function(C){return pAa(b,C.slotId,A,y.adPlacementConfig,y.xr,TD(p,C))})].concat(g.x(u))}}return{layout:t,
sf:u}}:function(t){var u=new gJ(0,[r.Up]);
return{layout:mAa(b,r.layoutId,r.Dp,c,sK(r.playerVars,r.vC,f,m,u),r.Up,e,u,h(t),l.get(r.Dp.externalVideoId),q),sf:[]}}};
rK=function(a,b,c){if(!a.playerVars)return new LD("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 LD("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=Hr(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,Xy("Expected valid length seconds in player vars but got NaN"));if(c.Ye(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new LD("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Dp:a,playerVars:d,vC:a.playerVars,Up:e}};
sK=function(a,b,c,d,e){a.iv_load_policy=d;b=Hr(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){Xy(f)}c.rj&&(a.ctrl=c.rj);c.Yj&&(a.ytr=c.Yj);c.qx&&(a.ytrcc=c.qx);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.On&&(a.vss_credentials_token_type=c.On),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));jK(a,e);return a};
qAa=function(a){var b=new Map;a=g.w(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};
vK=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
rAa=function(a){return a!=null};
wAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=[],y=g.w(a),A=y.next();!A.done;A=y.next()){A=A.value;var C;if(C=!lza(A)){var F=void 0;C=(A==null?void 0:(F=A.adSlotMetadata)==null?void 0:F.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(C){F=vK(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var H=m.Ye(F),L=sAa(A,n,d,c.Hl,H);if(L instanceof Z)return L;var N=void 0;C={slotId:A.adSlotMetadata.slotId,slotType:A.adSlotMetadata.slotType,slotPhysicalPosition:(N=A.adSlotMetadata.slotPhysicalPosition)!=
null?N:1,Xa:"core",slotEntryTrigger:L.slotEntryTrigger,slotFulfillmentTriggers:L.slotFulfillmentTriggers,slotExpirationTriggers:L.slotExpirationTriggers};if(N=g.Q(A.fulfillmentContent.fulfilledLayout,WJ)){if(!VJ(N))return new Z("Invalid PlayerBytesAdLayoutRenderer");H=(L=q&&!(vK(A)&&A.slotEntryTrigger.beforeContentVideoIdStartedTrigger))?tAa(C,A.adSlotMetadata.triggerEvent,N,c,d,f,n,a,H,r,t):uAa(C,A.adSlotMetadata.triggerEvent,N,b,c,d,e,f,h,l,m,n,a,p,H,A.adSlotMetadata.triggeringSourceLayoutId);if(H instanceof
Z)return H;N=[];vK(A)&&N.push(new GD({Pu:vK(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));L&&N.push(new mD({}));c.Wb&&N.push(new zD({}));N.push(new ED(F));A=Object.assign({},C,{clientMetadata:new MD(N),fulfilledLayout:H.layout,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});u.push.apply(u,g.x(H.sf));u.push(A)}else if(F=g.Q(A.fulfillmentContent.fulfilledLayout,YJ),L=H=void 0,((H=F)==null?void 0:(L=H.adLayoutMetadata)==null?void 0:L.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||
A.slotEntryTrigger!==void 0)if(F){if(!kza(F))return new Z("Invalid PlayerUnderlayAdLayoutRenderer");H=F;N=d;var X=c.Hl,V=f;L=C;F=A.adSlotMetadata.triggerEvent;if(H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var ca=g.Q(H.renderingContent,XJ);if(ca)if(ca=g.Q(ca.sidePanel,jza)){var la={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,Xa:"core"};N=wK(H,N,X);F=N instanceof Z?N:Object.assign({},la,{renderingContent:H.renderingContent,
Ab:new Map([["impression",ca.impressionPings||[]],["resume",ca.resumePings||[]]])},N,{Ub:TD(V,L)(la),clientMetadata:new MD([new FC(xK(F))]),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData})}else F=new Z("DismissablePanelTextPortraitImageRenderer is missing");else F=new Z("SqueezebackPlayerSidePanelRenderer is missing")}else if(H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING")g.Q(H.renderingContent,hza)?(ca={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,
Xa:"core"},N=wK(H,N,X),F=N instanceof Z?N:Object.assign({},ca,{renderingContent:H.renderingContent,Ab:new Map},N,{Ub:TD(V,L)(ca),clientMetadata:new MD([new FC(xK(F))]),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData})):F=new Z("CounterfactualRenderer is missing");else{var W;H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?W=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):W=new Z("LayoutType ["+H.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");
F=W}if(F instanceof Z)return F;A=Object.assign({},C,{clientMetadata:new MD([]),fulfilledLayout:F,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});u.push(A)}else if(F=g.Q(A.fulfillmentContent.fulfilledLayout,nza)){if(!eza(F))return new Z("Invalid AboveFeedAdLayoutRenderer");F=vAa(F,d,c.Hl,f,C,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof Z)return F;A=Object.assign({},C,{clientMetadata:new MD([]),fulfilledLayout:F,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});
u.push(A)}else if(F=g.Q(A.fulfillmentContent.fulfilledLayout,oza)){if(!FJ(F.adLayoutMetadata)||!g.Q(F.renderingContent,GJ))return new Z("Invalid BelowPlayerAdLayoutRenderer");F=vAa(F,d,c.Hl,f,C,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof Z)return F;A=Object.assign({},C,{clientMetadata:new MD([]),fulfilledLayout:F,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});u.push(A)}else return new Z("Unable to retrieve a client slot ["+C.slotType+"] from a given AdSlotRenderer")}}return u};
vAa=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"};b=wK(a,b,c);if(b instanceof Z)return b;c=[];c.push(new FC(xK(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new XC(h));return Object.assign({},l,{renderingContent:a.renderingContent,Ab:new Map([["impression",xAa(a)]])},b,{Ub:TD(d,e)(l),clientMetadata:new MD(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})};
tAa=function(a,b,c,d,e,f,h,l,m,n,p){if((p==null?void 0:p.Gv)===void 0||(p==null?void 0:p.Fv)===void 0)return new Z("Cached ad break range from cue point is missing");var q=wK(c,e,d.Hl);if(q instanceof Z)return q;if(g.Q(c.renderingContent,RJ))return a=yAa(a,b,c,q,e,f,l,m,d.Hl,h,p.Gv,p.Fv),a instanceof Z?a:a.ze===void 0?new Z("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:a.layout,sf:[a.ze]};var r=g.Q(c.renderingContent,PJ);if(r){if(!FJ(c.adLayoutMetadata))return new Z("Invalid ad layout metadata");
if(!QJ(r))return new Z("Invalid sequential layout");r=r.sequentialLayouts.map(function(t){return t.playerBytesAdLayoutRenderer});
a=zAa(a,b,c,q,r,e,d,f,h,m,l,n,p.Gv,p.Fv);return a instanceof Z?a:{layout:a.vP,sf:a.sf}}return new Z("Not able to convert a sequential layout")};
zAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){var u=AAa(e,r,t);if(u instanceof Z)return u;var y=[],A=[];u=g.w(u);for(var C=u.next();!C.done;C=u.next()){var F=C.value;C=a;var H=e[F.al],L=F,N=b;F=f;var X=h,V=l,ca=m,la=n,W=p,R=yK(H);if(R instanceof Z)C=R;else{var Y={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,Xa:"adapter"};L=BAa(N,H,L,F);L instanceof Z?C=L:(C=Object.assign({},Y,zK,{Ab:R,renderingContent:H.renderingContent,clientMetadata:new MD(L),Ub:TD(V,C)(Y),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData}),
C=(H=AK(W,C,F,X.Hl,V,ca,la))?H instanceof Z?H:{layout:C,ze:H}:new Z("Expecting associatedInPlayerSlot"))}if(C instanceof Z)return C;y.push(C.layout);A.push(C.ze)}e={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:"core"};return{vP:Object.assign({},e,d,{vt:y,Ab:new Map,clientMetadata:new MD([new pD(Number(c.driftRecoveryMs)),new jD(r),new kD(t),new FC(xK(b)),new DD(q),new mD({})]),Ub:TD(l,a)(e)}),sf:A}};
yAa=function(a,b,c,d,e,f,h,l,m,n,p,q){if(!VJ(c))return new Z("Invalid PlayerBytesAdLayoutRenderer");var r=yK(c);if(r instanceof Z)return r;var t={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:"core"},u=g.Q(c.renderingContent,RJ);if(!u)return new Z("Invalid rendering content for DAI media layout");u=qK(u,!1);p={aK:u,al:0,uI:p,o3:Math.min(p+u.videoLengthSeconds*1E3,q),Tp:new gJ(0,[u.videoLengthSeconds])};var y;q=(y=Number(c.driftRecoveryMs))!=null?y:void 0;b=BAa(b,
c,p,e,q);if(b instanceof Z)return b;a=Object.assign({},t,d,{Ab:r,renderingContent:c.renderingContent,clientMetadata:new MD(b),Ub:TD(f,a)(t),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});return(e=AK(h,a,e,m,f,n,l))?e instanceof Z?e:{layout:a,ze:e}:new Z("Expecting associatedInPlayerSlot")};
uAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){var A=wK(c,f,e.Hl);if(A instanceof Z)return A;if(g.Q(c.renderingContent,RJ)){m=CAa([c],e,m);if(m instanceof Z)return m;if(m.length!==1)return new Z("Only expected one media layout.");a=DAa(a,b,c,A,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Hl,q,void 0,y);return a instanceof Z?a:{layout:a.layout,sf:a.ze?[a.ze]:[]}}var C=g.Q(c.renderingContent,PJ);if(C){if(!FJ(c.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!QJ(C))return new Z("Invalid sequential layout");
C=C.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer});
a=EAa(a,b,c.adLayoutMetadata,A,C,d,f,e,m,h,l,n,p,q,u,r,t,y);return a instanceof Z?a:{layout:a.vP,sf:a.sf}}return new Z("Not able to convert a sequential layout")};
EAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C){var F=new JC({current:null}),H=CAa(e,l,m);if(H instanceof Z)return H;m=[];for(var L=[],N=void 0,X=0;X<e.length;X++){var V=e[X];if(g.Q(V.renderingContent,RJ)){N=rI(r)&&sI(r)?H[X+1]:void 0;N=DAa(a,b,V,zK,H[X],N,"adapter",f,h,n,p,q,y,A,u,l.Hl,t,F,C);if(N instanceof Z)return N;m.push(N.layout);N.ze&&L.push(N.ze);N=H[X]}else if(g.Q(V.renderingContent,SJ)){var ca=a,la=p;if(VJ(V)){var W=g.Q(V.renderingContent,SJ);if(W&&W.playerVars!==void 0){var R={layoutId:V.adLayoutMetadata.layoutId,
layoutType:V.adLayoutMetadata.layoutType,Xa:"adapter"};W=Hr(W.playerVars);W.autoplay="1";V=Object.assign({},R,zK,{renderingContent:V.renderingContent,clientMetadata:new MD([new nD({}),new FC({kind:"AD_PLACEMENT_KIND_START"}),new bD({current:null}),new gD(W)]),Ab:new Map,Ub:TD(la,ca)(R),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData})}else V=new Z("Invalid ad intro renderer")}else V=new Z("Invalid PlayerBytesAdLayoutRenderer");if(V instanceof Z)return V;m.push(V)}else if(g.Q(V.renderingContent,
NF))if(A){V=FAa(a,V,p,xK(b),N);if(V instanceof Z)return V;m.push(V);V=AK(y,V,h,l.Hl,p,t,u,F);if(V instanceof Z)return V;if(V)L.push(V);else return new Z("Not able to retrieve InPlayer slot for endcap")}else{a:{ca=V.adLayoutMetadata.layoutId;la=g.w(f);for(R=la.next();!R.done;R=la.next()){R=R.value;var Y=W=void 0,v=((W=R.renderer)==null?void 0:(Y=W.linearAdSequenceRenderer)==null?void 0:Y.linearAds)||[];W=g.w(v);for(Y=W.next();!Y.done;Y=W.next())if((Y=g.Q(Y.value,NF))&&Y.inPlayerSlotId!==void 0&&Y.inPlayerLayoutId!==
void 0&&Y.associatedPlayerBytesLayoutId!==void 0&&Y.associatedPlayerBytesLayoutId===ca){ca={kK:Y,adPlacementConfig:R.config.adPlacementConfig};break a}}ca=new Z("Not able to find associated InPlayer slot for endcap")}if(ca instanceof Z)return ca;V=FAa(a,V,p,ca.adPlacementConfig,N);if(V instanceof Z)return V;m.push(V);V=GAa(V.layoutId,t,h,ca,F,p);if(V instanceof Z)return V;L.push(V)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Xa:"core"};return{vP:Object.assign({},b,d,{vt:m,Ab:new Map,clientMetadata:new MD([F]),
Ub:TD(p,a)(b)}),sf:L}};
DAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F){if(!VJ(c))return new Z("Invalid PlayerBytesAdLayoutRenderer");var H=yK(c);if(H instanceof Z)return H;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:h};a:{var L=c.adLayoutMetadata.layoutId,N=g.Q(c.renderingContent,RJ);if(N&&OJ(N)){var X=[];if(t)X.push(new FC(xK(b)));else{b:{l=g.w(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var V=Mza(b.renderer)||[],ca=g.w(V);for(V=ca.next();!V.done;V=ca.next())if(V=V.value,
V.associatedPlayerBytesLayoutId===L){V.associatedPlayerBytesLayoutId?(l=V.playerOverlay,ca=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||ca):l=!1;b=l?{instreamVideoAdRenderer:V,adPlacementConfig:b.config.adPlacementConfig}:
new Z("Invalid InPlayer shim");break b}}b=new Z("Not able to find associated InPlayer slot")}if(b instanceof Z){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;V=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var la;ca=(la=l==null?void 0:l.inPlayerSlotId)!=null?la:V==null?void 0:V.inPlayerSlotId;var W;la=(W=l==null?void 0:l.inPlayerLayoutId)!=null?W:V==null?void 0:V.inPlayerLayoutId;if(ca===void 0){f=new Z("InPlayer shim slot id is undefined");
break a}if(la===void 0){f=new Z("InPlayer shim layout id is undefined");break a}X.push(new YC(la),new $C(ca),new lD(e.Tp.adPodIndex),new FC(b.adPlacementConfig));l&&X.push(new MC(l));V&&X.push(new NC(V))}X.push(new GC(e.Tp),new KC(N.externalVideoId),new LC(m),new yD({impressionCommands:N.impressionCommands,abandonCommands:N.onAbandonCommands,completeCommands:N.completeCommands,progressCommands:N.adVideoProgressCommands}),new gD(e.PE),new bD({current:null}),new fD(e.Ida.Up),new BD(dF(N.pings)),new HC(e.Tp.adPodIndex));
F&&X.push(new XC(F));(e=HAa(L,r))&&X.push(new PC(e));f&&X.push(new hD(f.PE));N.adNextParams&&X.push(new xC(N.adNextParams));N.clickthroughEndpoint&&X.push(new yC(N.clickthroughEndpoint));N.legacyInfoCardVastExtension&&X.push(new wD(N.legacyInfoCardVastExtension));N.sodarExtensionData&&X.push(new iD(N.sodarExtensionData));C&&N.adPodSkipTarget&&N.adPodSkipTarget>0&&(X.push(C),X.push(new IC(N.adPodSkipTarget)));(f=n.get(N.externalVideoId))&&X.push(new tD(f));f=X}else f=new Z("Invalid vod media renderer")}if(f instanceof
Z)return f;a=Object.assign({},h,d,{Ab:H,renderingContent:c.renderingContent,clientMetadata:new MD(f),Ub:TD(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.Q(c.renderingContent,RJ);if(!c||!OJ(c))return new Z("Invalid meida renderer");q=lK(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.nG="AD_PLACEMENT_KIND_START";return t?(m=AK(r,a,m,y,p,A,u,C),m instanceof Z?m:HAa(a.layoutId,r)&&m?{layout:Object.assign({},a,{clientMetadata:new MD(f.concat(new QC(m)))})}:{layout:a,ze:m}):
{layout:a}};
FAa=function(a,b,c,d,e){if(!VJ(b))return new Z("Invalid PlayerBytesAdLayoutRenderer");var f=g.Q(b.renderingContent,NF);if(!f||f.durationMilliseconds===void 0)return new Z("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Xa:"adapter"};d=[new vD(f.durationMilliseconds),new yD({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new FC(d),
new ZC("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new HC(e.Tp.adPodIndex-1));d.push(new lD(e.Tp.adPodIndex));var l;d.push(new IC((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,zK,{renderingContent:b.renderingContent,clientMetadata:new MD(d),Ab:f.skipPings?new Map([["skip",f.skipPings]]):new Map,Ub:TD(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
AK=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 Z("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=sAa(a,f,c,d,h);if(h instanceof Z)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,Xa:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.Q(a.fulfillmentContent.fulfilledLayout,
mza);if(!m||!gza(m))return new Z("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Xa:"core"};c=wK(m,c,d);if(c instanceof Z)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.x(IAa(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new FC(xK(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new Z("Not able to parse an SDF InPlayer layout");
e=Object.assign({},h,c,{renderingContent:m.renderingContent,Ab:new Map,Ub:TD(e,f)(h),clientMetadata:new MD(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,clientMetadata:new MD([])})}};
IAa=function(a,b){var c=[];c.push(new FC(xK(a)));c.push(new XC(b.layoutId));(a=ND(b.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&c.push(new bD(a));(a=ND(b.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new JC(a));(a=ND(b.clientMetadata,"metadata_type_remote_slots_data"))&&c.push(new tD(a));(a=ND(b.clientMetadata,"metadata_type_ad_next_params"))&&c.push(new xC(a));(a=ND(b.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new yC(a));(a=
ND(b.clientMetadata,"metadata_type_ad_pod_info"))&&c.push(new GC(a));(b=ND(b.clientMetadata,"metadata_type_ad_video_id"))&&c.push(new KC(b));return c};
GAa=function(a,b,c,d,e,f){function h(n){return BK(b,n)}
var l=d.kK.inPlayerSlotId,m={layoutId:d.kK.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Xa:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:new lJ(h,a),slotFulfillmentTriggers:[new wJ(h,l)],slotExpirationTriggers:[new xJ(h,l),new uJ(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new nJ(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Ab:new Map,clientMetadata:new MD([new SC(d.kK),
new FC(d.adPlacementConfig),e]),Ub:TD(f,c)(m),adLayoutLoggingData:d.kK.adLayoutLoggingData});return Object.assign({},c,{clientMetadata:new MD([new qD(a)])})};
HAa=function(a,b){b=g.w(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.Q(c.fulfillmentContent.fulfilledLayout,YJ);if(d&&(d=g.Q(d.renderingContent,XJ))&&d.associatedPlayerBytesLayoutId===a)return c}};
sAa=function(a,b,c,d,e){var f=JAa(iK(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof Z)return f;for(var h=[],l=g.w(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=iK(m.value,c,d);if(m instanceof Z)return m;h.push(m)}h=KAa(h,e,a,b);b=[];a=g.w(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=iK(e.value,c,d);if(e instanceof Z)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
JAa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof hJ?new fJ(function(e){return BK(d,e)},c.adSlotMetadata.slotId):a};
KAa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof wJ?new AJ(function(f){return BK(d,f)},c.adSlotMetadata.slotId):e}):a};
wK=function(a,b,c){for(var d=[],e=g.w(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=iK(f.value,b,c);if(f instanceof Z)return f;d.push(f)}e=[];f=g.w(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=iK(h.value,b,c);if(h instanceof Z)return h;e.push(h)}f=[];h=g.w(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=iK(l.value,b,c);if(l instanceof Z)return l;f.push(l)}h=[];a=g.w(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
a.next()){l=iK(l.value,b,c);if(l instanceof Z)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Wc:[]}};
yK=function(a){var b=g.Q(a.renderingContent,RJ);if(b==null?0:b.pings)return eF(b.pings);a=g.Q(a.renderingContent,NF);return(a==null?0:a.skipPings)?new Map([["skip",a.skipPings]]):new Map};
BAa=function(a,b,c,d,e){b=g.Q(b.renderingContent,RJ);if(!b)return new Z("Invalid rendering content for DAI media layout");a=[new LC(d),new fD(c.aK.videoLengthSeconds),new gD(c.aK.playerVars),new jD(c.uI),new kD(c.o3),new lD(c.al),new FC(xK(a)),new KC(c.aK.adVideoId),new GC(c.Tp),b.sodarExtensionData&&new iD(b.sodarExtensionData),new bD({current:null}),new mD({}),new BD(dF(b.pings))].filter(rAa);e!==void 0&&a.push(new pD(e));return a};
AAa=function(a,b,c){a=a.map(function(m){return qK(g.Q(m.renderingContent,RJ),!1)});
var d=a.map(function(m){return m.videoLengthSeconds}),e=d.map(function(m,n){return new gJ(n,d)}),f=b,h=c,l=[];
a.forEach(function(m,n){h=Math.min(f+m.videoLengthSeconds*1E3,c);jK(m.playerVars,e[n]);l.push({aK:m,uI:f,o3:h,al:n,Tp:e[n]});f=h});
return l};
CAa=function(a,b,c){for(var d=[],e=g.w(a),f=e.next();!f.done;f=e.next())if(f=g.Q(f.value.renderingContent,RJ)){if(!OJ(f))return new Z("Invalid vod media renderer");d.push(LAa(f))}e=d.map(function(q){return q.Up});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.Q(a[l].renderingContent,RJ);if(m){var n=new gJ(h,e),p=sK(d[h].playerVars,d[h].vC,b,c,n);f[l]={Tp:n,adPodSkipTarget:m.adPodSkipTarget,Ida:d[h],PE:p};h++}}return f};
LAa=function(a){var b=Hr(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,Xy("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,vC:a.playerVars,Up:c}};
xK=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"}}};
xAa=function(a){if(g.Q(a.renderingContent,IJ)){var b;return((b=g.Q(a.renderingContent,IJ))==null?void 0:b.impressionPings)||[]}if(g.Q(a.renderingContent,GJ)){var c;return((c=g.Q(a.renderingContent,GJ))==null?void 0:c.impressionPings)||[]}if(g.Q(a.renderingContent,HJ)){var d;return((d=g.Q(a.renderingContent,HJ))==null?void 0:d.impressionPings)||[]}return[]};
NAa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[MAa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData,t=c.progressCommands;q=CE(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var u={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xa:"core"},y=eF(n),A=[new uJ(b.j,f)],C;var F=n==null?void 0:(C=n.activeViewTracking)==null?void 0:C.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ab:y,layoutExitNormalTriggers:A,layoutExitSkipTriggers:[],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new FC(d),new BD(dF(n)),new CD(F),new fD(h/1E3),new yD({progressCommands:t}),new uD(h/1E3)]),Ub:p(u),adLayoutLoggingData:r}})]:new Z("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
PAa=function(a,b,c,d,e,f,h,l){a=OAa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=CE(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Xa:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ab:q,layoutExitNormalTriggers:[new tJ(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new oD(e),new FC(c)]),Ub:m(p)}});
return a instanceof Z?a:[a]};
RAa=function(a,b,c,d,e,f,h){return[QAa(a,f,d,function(l){var m=l.slotId;l=h(l);m=CE(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xa:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ab:new Map,layoutExitNormalTriggers:[new uJ(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new MC(e),new FC(c)]),Ub:l(n),
adLayoutLoggingData:e.adLayoutLoggingData}})]};
TAa=function(a,b,c,d,e,f,h,l){a=SAa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=CE(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=CK(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,DK(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=CE(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=CK(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,DK(b,n,p))):q.imageOverlayAdContentRenderer?(q=CE(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=DK(b,n,p),n.push(new DJ(b.j,45E3,q)),n=CK(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new LD("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new LD("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof Z?a:[a]};
WAa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new Z("Expected valid duration for AdActionInterstitialRenderer."):function(p){return UAa(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 VAa(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=CE(b.B.get(),"LAYOUT_TYPE_ENDCAP",
u);return pK(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new SC(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
XAa=function(a,b,c,d){if(!c.playerVars)return new Z("No playerVars available in AdIntroRenderer.");var e=Hr(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=CE(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{Sf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ab:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"adapter",clientMetadata:new MD([new nD({}),
new FC(b),new bD({current:null}),new gD(e)]),Ub:f(l)},Rm:[new mJ(a.j,h,["error"])],xk:[],tA:[],sA:[]}}};
ZAa=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=nK(e);if(!rza(e,n))return new Z("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=Oza(a,b,e,f,c,d,h);return q instanceof Z?q:function(r){return YAa(b,r.slotId,c,p,e,oK(e),h(r),q,l,m)}};
$Aa=function(a,b,c,d,e,f,h,l){function m(q){return VAa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=CE(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return pK(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new TC(e),f],e.adLayoutLoggingData)}
if(!vza(e))return new Z("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=EK(b,r,c,p,t,new Map,q,m,void 0,FK(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new YC(r.wM);q=new HC(l);return{Sf:{layoutId:r.layoutId,layoutType:r.layoutType,Ab:r.Ab,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:r.Xa,clientMetadata:new MD([].concat(g.x(r.qA),[t,q])),Ub:r.Ub,adLayoutLoggingData:r.adLayoutLoggingData},Rm:[],xk:r.layoutExitMuteTriggers,tA:r.layoutExitUserInputSubmittedTriggers,sA:r.Wc,ze:r.ze}}};
bBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){a=WE(a,"SLOT_TYPE_PLAYER_BYTES");d=fAa(b,h,d,e,a,n,p);if(d instanceof Z)return d;var A;h=(A=ND(d.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new Z("Invalid adNotify layout");b=aBa(h,b,c,e,f,m,l,n,q,r,t,u,y);return b instanceof Z?b:[d].concat(g.x(b))};
aBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=cBa(b,c,d,f,h,l,m,n,p,q,r);dBa(f)?(d=eBa(b,a),a=WE(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=CE(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=GK(b,d,l),b=[].concat(g.x(l.slotExpirationTriggers),[new iJ(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Xa:l.Xa},{slotId:a,layoutId:f}),e=a instanceof Z?a:{Vy:Object.assign({},
l,{slotExpirationTriggers:b,clientMetadata:new MD([new qD(a.layout)]),adSlotLoggingData:e}),sf:a.sf}):e=jAa(b,a,l,e,c);return e instanceof Z?e:[].concat(g.x(e.sf),[e.Vy])};
gBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=cBa(a,b,c,e,f,h,m,n,p,q,r,t);dBa(e)?(e=fBa(a,c,h,l),e instanceof Z?a=e:(l=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=CE(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.x(e.slotExpirationTriggers),[new iJ(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Xa:e.Xa,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof Z?l:{Vy:{slotId:e.slotId,
slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:HK(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:IK(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Xa:e.Xa,clientMetadata:new MD([new ED(JK(c)),new qD(l.layout),new GD({Pu:a.Pu(c)})]),adSlotLoggingData:d},sf:l.sf})):a=kAa(a,c,h,l,d,m.Wb,b);return a instanceof Z?a:a.sf.concat(a.Vy)};
dBa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(g.Q(b.value,TJ))return!0;return!1};
cBa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(rI(p)&&sI(p))a:{var u=hBa(d,c,p);if(u instanceof Z)t=u;else{for(var y=0,A=[],C=[],F=[],H=[],L=[],N=[],X=new cD({current:null}),V=new JC({current:null}),ca=!1,la=[],W=0,R=[],Y=0;Y<d.length;Y++){var v=d[Y],T=g.Q(v,RJ);if(T){T=rK(T,c,p);if(T instanceof LD){t=new Z(T);break a}var $a=new gJ(W,u),ub=sK(T.playerVars,T.vC,h,n,$a);W++;R[Y]={renderer:v,data:T,Tp:$a,PE:ub}}}W=-1;for(u=0;u<d.length;u++)if(Y=d[u],v=g.Q(Y,SJ)){Y=XAa(b,c,v,l);if(Y instanceof
Z){t=Y;break a}Y=Y(r);A.push(Y.Sf);C=[].concat(g.x(Y.Rm),g.x(C));F=[].concat(g.x(Y.xk),g.x(F));Y.ze&&(la=[Y.ze].concat(g.x(la)))}else if(g.Q(Y,RJ))v=R[u],W=v.data,Y=v.Tp,v=v.PE,T=R[u+1],$a=void 0,T&&($a=T.PE),Y=iBa(b,W.layoutId,W.Dp,c,v,W.Up,f,Y,l(r),V,m.get(W.Dp.externalVideoId),$a,q),y++,A.push(Y.Sf),C=[].concat(g.x(Y.Rm),g.x(C)),F=[].concat(g.x(Y.xk),g.x(F)),ca||(N.push(V),ca=!0),W=(W=W.Dp.adPodSkipTarget)&&W>0?W:-1;else if(v=g.Q(Y,NF)){Y=WAa(a,b,c,v,f,y,l,V,W);if(Y instanceof Z){t=Y;break a}Y=
Y(r);A.push(Y.Sf);C=[].concat(g.x(Y.Rm),g.x(C));F=[].concat(g.x(Y.xk),g.x(F));Y.ze&&(la=[Y.ze].concat(g.x(la)))}else if(v=g.Q(Y,TJ)){if(t===void 0){t=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}Y=ZAa(a,b,c,f,v,X,l,t,y,hI(p,"supports_multi_step_on_desktop"));if(Y instanceof Z){t=Y;break a}Y=Y(r);A.push(Y.Sf);Y.ze&&la.push(Y.ze);C=[].concat(g.x(Y.Rm),g.x(C));F=[].concat(g.x(Y.xk),g.x(F));H=[].concat(g.x(Y.tA),g.x(H));L=[].concat(g.x(Y.sA),
g.x(L));N=[X].concat(g.x(N))}else if(Y=g.Q(Y,UJ)){Y=$Aa(a,b,c,f,Y,X,l,y);if(Y instanceof Z){t=Y;break a}Y=Y(r);A.push(Y.Sf);Y.ze&&la.push(Y.ze);F=[].concat(g.x(Y.xk),g.x(F))}else{t=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={vt:A,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:H,Wc:L,layoutExitMuteTriggers:F,qA:N,sf:la}}}else a:if(y=hBa(d,c,p),y instanceof Z)t=y;else{A=0;C=[];F=[];H=[];L=[];N=[];X=[];V=new cD({current:null});ca=new JC({current:null});
la=!1;R=[];W=-1;u=g.w(d);for(Y=u.next();!Y.done;Y=u.next())if(Y=Y.value,g.Q(Y,SJ)){Y=XAa(b,c,g.Q(Y,SJ),l);if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Sf);F=[].concat(g.x(Y.Rm),g.x(F));H=[].concat(g.x(Y.xk),g.x(H));Y.ze&&(R=[Y.ze].concat(g.x(R)))}else if(g.Q(Y,RJ)){W=rK(g.Q(Y,RJ),c,p);if(W instanceof LD){t=new Z(W);break a}Y=new gJ(A,y);Y=iBa(b,W.layoutId,W.Dp,c,sK(W.playerVars,W.vC,h,n,Y),W.Up,f,Y,l(r),ca,m.get(W.Dp.externalVideoId),void 0,q);A++;C.push(Y.Sf);F=[].concat(g.x(Y.Rm),g.x(F));H=[].concat(g.x(Y.xk),
g.x(H));la||(X.push(ca),la=!0);W=(W=W.Dp.adPodSkipTarget)&&W>0?W:-1}else if(g.Q(Y,NF)){Y=WAa(a,b,c,g.Q(Y,NF),f,A,l,ca,W);if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Sf);F=[].concat(g.x(Y.Rm),g.x(F));H=[].concat(g.x(Y.xk),g.x(H));Y.ze&&(R=[Y.ze].concat(g.x(R)))}else if(g.Q(Y,TJ)){if(t===void 0){t=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(Y,TJ)});break a}Y=ZAa(a,b,c,f,g.Q(Y,TJ),V,l,t,A,hI(p,"supports_multi_step_on_desktop"));
if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Sf);Y.ze&&R.push(Y.ze);F=[].concat(g.x(Y.Rm),g.x(F));H=[].concat(g.x(Y.xk),g.x(H));L=[].concat(g.x(Y.tA),g.x(L));N=[].concat(g.x(Y.sA),g.x(N));X=[V].concat(g.x(X))}else if(g.Q(Y,UJ)){Y=$Aa(a,b,c,f,g.Q(Y,UJ),V,l,A);if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Sf);Y.ze&&R.push(Y.ze);H=[].concat(g.x(Y.xk),g.x(H))}else{t=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={vt:C,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:L,
Wc:N,layoutExitMuteTriggers:H,qA:X,sf:R}}t instanceof Z?r=t:(N=r.slotId,y=t.vt,A=t.layoutExitSkipTriggers,C=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.qA,r=l(r),L=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:CE(b.B.get(),L,N),X={layoutId:N,layoutType:L,Xa:"core"},r={layout:{layoutId:N,layoutType:L,Ab:new Map,layoutExitNormalTriggers:[new tJ(b.j,N)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:F,Wc:[],Xa:"core",
clientMetadata:new MD([new dD(y)].concat(g.x(H))),Ub:r(X)},sf:t.sf});return r}};
hBa=function(a,b,c){var d=[];a=g.w(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.Q(e,RJ)){e=rK(g.Q(e,RJ),b,c);if(e instanceof LD)return new Z(e);d.push(e.Up)}return d};
kBa=function(a,b,c,d,e,f,h,l){if(!rza(c,l===void 0?!1:l))return new Z("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=nK(c);if(m<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new cD({current:null}),p=Oza(a,b,c,n,d,f,h);return jBa(a,d,f,m,e,function(q,r){var t=q.slotId,u=oK(c);q=h(q);var y,A=(y=FK(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?y:
CE(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"core"};y=p(A,r);var C=ND(y.clientMetadata,"metadata_type_fulfilled_layout");C||Xy("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new FC(d),new vD(m),new yD(u),n];C&&u.push(new ZC(C.layoutType));return{waa:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ab:new Map,layoutExitNormalTriggers:[new tJ(b.j,A)],layoutExitSkipTriggers:[new vJ(b.j,
r.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new CJ(b.j,r.layoutId)],Wc:[],Xa:"core",clientMetadata:new MD(u),Ub:q(t)},E$:y}})};
lBa=function(a){if(!uza(a))return!1;var b=g.Q(a.adVideoStart,KK);return b?g.Q(a.linearAd,RJ)&&MJ(b)?!0:(Xy("Invalid Sandwich with notify"),!1):!1};
mBa=function(a){if(a.linearAds==null)return!1;a=g.Q(a.adStart,KK);return a?MJ(a)?!0:(Xy("Invalid LASR with notify"),!1):!1};
nBa=function(a){if(!tza(a))return!1;a=g.Q(a.adStart,KK);return a?MJ(a)?!0:(Xy("Invalid LASR with notify"),!1):!1};
LK=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.ya=d;this.Re=e;this.C=f;this.Ga=h;this.Ak=l;this.loadPolicy=m===void 0?1:m};
zza=function(a,b,c,d,e,f,h,l,m,n){var p=[];if(b.length===0&&d.length===0&&c.length===0)return p;b=b.filter(NJ);var q=c.filter(pza),r=d.filter(NJ),t=new Map,u=qAa(b),y=c.some(function(v){var T;return(v==null?void 0:(T=v.adSlotMetadata)==null?void 0:T.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),A=c.some(function(v){var T;
return(v==null?void 0:(T=v.adSlotMetadata)==null?void 0:T.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),C=c.some(function(v){var T;
return(v==null?void 0:(T=v.adSlotMetadata)==null?void 0:T.slotType)==="SLOT_TYPE_IN_PLAYER"});
c=c.some(function(v){var T,$a;return(v==null?void 0:(T=v.adSlotMetadata)==null?void 0:T.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(v==null?void 0:($a=v.adSlotMetadata)==null?void 0:$a.slotType)==="SLOT_TYPE_ABOVE_FEED"});
if(y||A||C||c)n=wAa(q,b,l,e,u,a.Re.get(),a.loadPolicy,t,a.ya.get(),a.D.get(),C,h,m,n),n instanceof Z?Xy(n,void 0,void 0,{contentCpn:e}):p.push.apply(p,g.x(n));n=g.w(b);for(c=n.next();!c.done;c=n.next())c=c.value,A=oBa(a,t,c,e,f,h,y,l,u,m,q),A instanceof Z?Xy(A,void 0,void 0,{renderer:c.renderer,config:c.config.adPlacementConfig,kind:c.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):p.push.apply(p,g.x(A));pBa(a.ya.get())||(f=qBa(a,r,e,l,u,t),p.push.apply(p,g.x(f)));if(a.C===null||h&&!l.pY){var F,
H,L;a=l.Wb&&b.length===1&&((F=b[0].config)==null?void 0:(H=F.adPlacementConfig)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((L=b[0].renderer)==null?void 0:L.adBreakServiceRenderer);if(!p.length&&!a){var N,X,V,ca;Xy("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(N=b[0])==null?void 0:(X=N.config)==null?void 0:(V=X.adPlacementConfig)==null?void 0:V.kind,renderer:(ca=b[0])==null?void 0:ca.renderer})}return p}F=
d.filter(NJ);p.push.apply(p,g.x(Lza(t,F,a.B.get(),a.C,e,y)));if(!p.length){var la,W,R,Y;Xy("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(la=b[0])==null?void 0:(W=la.config)==null?void 0:(R=W.adPlacementConfig)==null?void 0:R.kind,renderer:(Y=b[0])==null?void 0:Y.renderer})}return p};
qBa=function(a,b,c,d,e,f){function h(r){return TD(a.Re.get(),r)}
var l=[];b=g.w(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&&lBa(p)?(Xy("Found AdNotify with SandwichedLinearAdRenderer"),q=g.Q(p.adVideoStart,KK),p=g.Q(p.linearAd,RJ),kK(f,n,m.config.adPlacementConfig.kind),n=void 0,q=gAa((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.ya.get(),a.Re.get()),q instanceof Z?Xy(q):l.push.apply(l,g.x(q))):
q&&(!q.adLayoutMetadata&&mBa(q)||q.adLayoutMetadata&&nBa(q))&&(Xy("Found AdNotify with LinearAdSequenceRenderer"),kK(f,n,m.config.adPlacementConfig.kind),n=void 0,p=aBa((n=g.Q(q.adStart,KK))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,FJ(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.ya.get()),p instanceof Z?Xy(p):l.push.apply(l,g.x(p)))}return l};
oBa=function(a,b,c,d,e,f,h,l,m,n,p){function q(C){return TD(a.Re.get(),C)}
var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,y=c.adSlotLoggingData,A=l.pY&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return mK(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.adsEngagementPanelRenderer;C=TD(a.Re.get(),C);return MK(N,X,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new vC(V),F,H,V.impressionPings,C,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[];
if(r.adsEngagementPanelLayoutViewModel)return mK(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.adsEngagementPanelLayoutViewModel;C=TD(a.Re.get(),C);return NK(N,X,"LAYOUT_TYPE_PANEL",new wC(V),F,H,C,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,L)}),[];
if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Gza(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,y,d,q);mK(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.actionCompanionAdRenderer;C=TD(a.Re.get(),C);return MK(N,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new tC(V),F,H,V.impressionPings,C,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return Hza(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,y,d,q);
mK(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.topBannerImageTextIconButtonedLayoutViewModel;C=TD(a.Re.get(),C);return NK(N,X,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new uC(V),F,H,C,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)mK(b,
c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.imageCompanionAdRenderer;
C=TD(a.Re.get(),C);return MK(N,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new AC(V),F,H,V.impressionPings,C,r.imageCompanionAdRenderer.adLayoutLoggingData,L)});
else if(r.bannerImageLayoutViewModel)mK(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.bannerImageLayoutViewModel;C=TD(a.Re.get(),C);return NK(N,X,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new BC(V),F,H,C,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)});
else if(r.shoppingCompanionCarouselRenderer)mK(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,L){var N=a.j.get(),X=C.slotId,V=r.shoppingCompanionCarouselRenderer;C=TD(a.Re.get(),C);return MK(N,X,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new CC(V),F,H,V.impressionPings,C,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)});
else if(r.adBreakServiceRenderer){if(!Eza(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return Dza(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Cza(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Ak)return new Z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.Wb||Xy("Received non-live cue point triggered AdBreakServiceRenderer",
void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Wb),clientPlaybackNonce:l.clientPlaybackNonce});rBa(a.Ak,{adPlacementRenderer:c,contentCpn:d,Hl:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ga)return new Z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ga.get().getCurrentTimeSec(1,!1);return sBa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,y,f)}}else{if(r.clientForecastingAdRenderer)return PAa(a.B.get(),
a.j.get(),t,y,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return TAa(a.B.get(),a.j.get(),t,y,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return RAa(a.B.get(),a.j.get(),t,y,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return aAa(a.B.get(),a.j.get(),c,d,q,n,!a.ya.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];kK(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!tza(r.linearAdSequenceRenderer))return new Z("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds==
null)return new Z("Received invalid LinearAdSequenceRenderer.");if(g.Q(r.linearAdSequenceRenderer.adStart,KK)){Xy("Found AdNotify in LinearAdSequenceRenderer");c=g.Q(r.linearAdSequenceRenderer.adStart,KK);if(!fza(c))return new Z("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return bBa(a.D.get(),a.B.get(),a.j.get(),a.Re.get(),t,y,c,FJ(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.ya.get())}return gBa(a.B.get(),
a.j.get(),t,y,r.linearAdSequenceRenderer.linearAds,FJ(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.ya.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];kK(b,r,u);return lAa(a.B.get(),a.j.get(),t,y,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.ya.get(),a.Re.get(),p)}if(r.instreamSurveyAdRenderer)return kBa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,y,d,q,hI(a.ya.get(),"supports_multi_step_on_desktop"));
if(r.sandwichedLinearAdRenderer!=null)return uza(r.sandwichedLinearAdRenderer)?g.Q(r.sandwichedLinearAdRenderer.adVideoStart,KK)?(Xy("Found AdNotify in SandwichedLinearAdRenderer"),c=g.Q(r.sandwichedLinearAdRenderer.adVideoStart,KK),fza(c)?(f=g.Q(r.sandwichedLinearAdRenderer.linearAd,RJ))?hAa(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Re.get(),y,d,e,l,q,m,a.loadPolicy,a.ya.get()):new Z("Missing IVAR from Sandwich"):new Z("Invalid AdMessageRenderer.")):gBa(a.B.get(),a.j.get(),t,y,[r.sandwichedLinearAdRenderer.adVideoStart,
r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.ya.get()):new Z("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=hI(a.ya.get(),"enable_h5_shorts_ad_terminal_events")&&l.Oj,NAa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,y,d,e,l,q)}}return[]};
OK=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.B=a;this.C=b;this.wf=d;this.Ga=e;this.ya=f;this.Na=h;this.Hc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ia()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ia()||d.get().removeListener(m)})};
rBa=function(a,b){if(a.j)Xy("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.w(a.wf.get().DI);for(var c=b.next();!c.done;c=b.next())tBa(a,a.j,c.value)}};
tBa=function(a,b,c){var d=a.Ga.get().getCurrentTimeSec(1,!1);a.ya.get().J.U().Vb()&&MI(a.Na.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.lh.toFixed(3));VE(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=PK(a.ya.get()),n=a.Na;if(e.ya.get().J.U().experiments.bb("enable_smearing_expansion_dai")){var p=g.UD(e.ya.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.UD(e.ya.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Hn:uBa(c),uC:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.lh;if(d===0)m.kq=new bq(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.kq=t<=0?new bq(q*1E3,r*1E3):new bq(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={Hn:uBa(c),uC:!1},r=c.startSecs+c.lh,c.startSecs<=d?m=new bq((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new bq(Math.floor(d+
Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.kq=m;e=hK(e,f,h,p,l,[new eD(c)]);h=n.get();n=p.kq.start/1E3-d;f=c.startSecs-d;(h=h.J.Qc())!=null&&(h=h.Sb(),h.qoe&&(h=h.qoe,l=g.QK(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(n*1E3).toFixed(0)+";smo."+(f*1E3).toFixed(0)),h.j.daism=p));return[e]})};
RK=function(a){var b,c=(b=ND(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=ND(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=ND(a.clientMetadata,"metadata_type_content_cpn"),f=ND(a.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),h=ND(a.clientMetadata,"metadata_type_player_overlay_layout_renderer"),l=ND(a.clientMetadata,"metadata_type_player_underlay_renderer"),m=ND(a.clientMetadata,
"metadata_type_ad_placement_config"),n=ND(a.clientMetadata,"metadata_type_video_length_seconds");var p=ID(a.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?ND(a.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):ID(a.clientMetadata,"metadata_type_layout_enter_ms")&&ID(a.clientMetadata,"metadata_type_layout_exit_ms")?(ND(a.clientMetadata,"metadata_type_layout_exit_ms")-ND(a.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{xr:d,contentCpn:e,wT:c,NO:b,instreamAdPlayerOverlayRenderer:f,
playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,JL:p,inPlayerLayoutId:ND(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ND(a.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
wBa=function(a,b){return vBa(a,b)};
xBa=function(a,b){b=vBa(a,b);if(!b)return null;var c;b.JL=(c=ND(a.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b};
vBa=function(a,b){var c,d=(c=ND(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=Wwa(a,b);return{H7:Vwa(a,b),adPlacementConfig:ND(a.clientMetadata,"metadata_type_ad_placement_config"),K7:c,contentCpn:ND(a.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:ND(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ND(a.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:ND(a.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,JL:void 0,wT:d,xr:a.layoutId,videoLengthSeconds:ND(a.clientMetadata,"metadata_type_video_length_seconds")}};
SK=function(a,b,c,d,e,f,h,l,m){g.O.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Re=h;this.ya=l;this.Qa=m;this.qh=!0};
yBa=function(a,b,c){return oAa(a.j.get(),b.contentCpn,b.xr,function(d){return pAa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.xr,TD(a.Re.get(),d))})};
TK=function(a,b,c,d,e,f,h,l){g.O.call(this);this.B=a;this.j=b;this.C=c;this.ya=d;this.D=e;this.Qa=f;this.Ga=h;this.Dc=l};
UK=function(a){g.O.call(this);this.j=a};
VE=function(a,b,c,d){a.j().Ug(b,d);c=c();a=a.j();a.Rb.lJ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.w(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Rb.nk("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Rb.nk("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.wb(c.slotId))throw new Z("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(bE(e,c))throw new Z("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Ch.pu.has(c.slotType))throw new Z("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.Ch.Sv.has(c.slotType))throw new Z("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");sE(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);sE(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);sE(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=nE(f,h);if(bE(f,c))throw new Z("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new Pva(c));f.j.set(h,l)}catch(ca){ca instanceof Z&&ca.Dl?(d.Rb.Hm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",ca.Dl,c),Xy(ca,c,void 0,void 0,ca.ax)):(d.Rb.Hm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),Xy(ca,c));break a}bE(d.j,c).K=!0;try{var m=d.j,n=bE(m,c),p=c.slotEntryTrigger,q=m.Ch.Nn.get(p.triggerType);q&&(q.im("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Aa.set(p.triggerId,q));for(var r=g.w(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,y=m.Ch.Nn.get(u.triggerType);y&&(y.im("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.oa.set(u.triggerId,y))}for(var A=g.w(c.slotExpirationTriggers),C=A.next();!C.done;C=A.next()){var F=C.value,H=m.Ch.Nn.get(F.triggerType);H&&(H.im("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.W.set(F.triggerId,H))}var L=m.Ch.pu.get(c.slotType).get().build(m.C,c);n.N=L;var N=m.Ch.Sv.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(ca){ca instanceof Z&&ca.Dl?(d.Rb.Hm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",ca.Dl,c),Xy(ca,c,void 0,void 0,ca.ax)):(d.Rb.Hm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),Xy(ca,c));ZD(d,c,!0);break a}d.Rb.nk("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Vg(c);for(var X=g.w(d.B),V=X.next();!V.done;V=
X.next())V.value.Vg(c);eE(d,c)}};
VK=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.C=b;this.Nc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ia()||d.get().removeListener(f)})};
xza=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.w(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof qJ?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):Xy("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new bq(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Nc.get().addCueRange(c,d.start,d.end,!1,a);YF(a.context.ya.get())&&(b=d.start,d=d.end,e={},a.context.Ij.Lk("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
WK=function(){g.O.apply(this,arguments);this.qh=!0;this.tj=new Map;this.j=new Map};
XK=function(a,b){a=g.w(a.tj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
YK=function(a,b){a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}Xy("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.wb(b)),layoutId:b})};
zBa=function(){this.j=new Map};
ABa=function(a,b){this.callback=a;this.slot=b};
ZK=function(){};
BBa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
CBa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c;this.B=!1;this.j=0};
DBa=function(a,b,c){this.callback=a;this.slot=b;this.Ga=c};
$K=function(a){this.Ga=a};
aL=function(a){g.O.call(this);this.oO=a;this.Xb=new Map};
bL=function(a,b){for(var c=[],d=g.w(a.Xb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof CJ&&f.triggeringLayoutId===b&&c.push(e)}c.length?kE(a.oO(),c):Xy("Survey is submitted but no registered triggers can be activated.")};
cL=function(a,b,c){aL.call(this,a);var d=this;this.ya=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ia()||b.get().removeListener(d)})};
dL=function(a){g.O.call(this);this.j=a;this.qh=!0;this.Xb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
eL=function(a){g.O.call(this);this.j=a;this.Xb=new Map};
fL=function(a,b){for(var c=[],d=g.w(a.Xb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&kE(a.j(),c)};
gL=function(a,b,c){g.O.call(this);var d=this;this.j=a;this.context=c;this.Xb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ia()||b.get().removeListener(d)})};
hL=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.Nc=b;this.Ga=c;this.Qa=d;this.context=e;this.qh=!0;this.Xb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ia()||c.get().removeListener(f)})};
EBa=function(a,b,c,d,e,f,h,l,m,n){if(aI(a.Qa.get(),1).clientPlaybackNonce!==m)throw new Z("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Xb.set(c.triggerId,{TE:new EJ(b,c,d,e),XJ:f});a.Nc.get().addCueRange(f,h,l,n,a);YF(a.context.ya.get())&&(m={},a.context.Ij.Lk("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)))};
FBa=function(a,b){a=g.w(a.Xb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;if(b===d.XJ)return c}return""};
iL=function(a,b){g.O.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.Ia()||b.get().removeListener(c)});
var d;this.j=((d=b.get().wx)==null?void 0:d.slotId)||null};
GBa=function(a,b){var c=[];a=g.w(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
jL=function(a){g.O.call(this);this.j=a;this.qh=!0;this.Xb=new Map};
DI=function(a,b,c){b=b.layoutId;for(var d=[],e=g.w(a.Xb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof tJ){var h;if(h=f.trigger.layoutId===b){h=c;var l=Iva.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&kE(a.j(),d)};
kL=function(a){g.O.call(this);this.j=a;this.qh=!0;this.Xb=new Map};
lL=function(a){g.O.call(this);this.C=a;this.qh=!0;this.Xb=new Map;this.j=new Map;this.B=new Map};
HBa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.w(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
mL=function(a){g.O.call(this);this.j=a;this.Xb=new Map};
IBa=function(a,b){for(var c=[],d=g.w(a.Xb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof fJ&&e.trigger.slotId===b&&c.push(e);c.length>=1&&kE(a.j(),c)};
JBa=function(a,b){var c={slotId:WE(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Xa:"surface",clientMetadata:new MD([])},d=Object,e=d.assign;b=CE(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ab:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"surface",
clientMetadata:new MD([]),Ub:Cva(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Xa,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{I$:!0,slot:c,layout:b})};
Bza=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Hn:new bq(-0x8000000000000,-0x8000000000000),uC:d},c!=null&&(d.kq=new bq(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Hn:new bq(0x7ffffffffffff,0x8000000000000),uC:d},c!=null&&(d.kq=new bq(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||Xy("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||Xy("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 Z("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={Hn:new bq(a,e),uC:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.kq=new bq(a,e)}return d;
default:return new Z("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
uBa=function(a){var b=a.startSecs*1E3;return new bq(b,b+a.lh*1E3)};
KBa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.w(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.w(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.Q(b.value,gK))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
nL=function(a){this.ya=a;this.B=new Map;this.j=new Map;this.C=new Map};
WE=function(a,b){if(oL(a.ya.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.dw(16)};
CE=function(a,b,c){if(oL(a.ya.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.dw(16)};
BK=function(a,b){if(oL(a.ya.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.dw(16)};
LBa=function(a){var b=[new XC(a.xr),new aD(a.wT),new FC(a.adPlacementConfig),new fD(a.videoLengthSeconds),new uD(a.JL)];a.instreamAdPlayerOverlayRenderer&&b.push(new MC(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new NC(a.playerOverlayLayoutRenderer));a.NO&&b.push(new JC(a.NO));return b};
MBa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:CE(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",Xa:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ab:new Map,layoutExitNormalTriggers:[new nJ(function(n){return BK(f,
n)},c.xr)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:b,clientMetadata:d,Ub:e(h),adLayoutLoggingData:m}};
pL=function(a,b){var c=this;this.B=a;this.ya=b;this.j=function(d){return BK(c.B.get(),d)}};
pAa=function(a,b,c,d,e,f){c=new MD([new OC(c),new FC(d)]);b=CE(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ab:new Map,layoutExitNormalTriggers:[new nJ(function(h){return BK(a.B.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:c,Ub:f(d),adLayoutLoggingData:void 0}};
tK=function(a,b,c,d,e){var f=LBa(d);return MBa(b,c,d,new MD(f),e,a.B.get())};
NBa=function(a,b,c,d,e){var f=LBa(d);f.push(new DC(d.H7));f.push(new EC(d.K7));return MBa(b,c,d,new MD(f),e,a.B.get())};
MK=function(a,b,c,d,e,f,h,l,m,n){b=CE(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Xa:"core"},q=new Map;h&&q.set("impression",h);h=[new rJ(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new mJ(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Ab:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([d,new FC(f),new XC(e)]),Ub:l(p),adLayoutLoggingData:m}};
NK=function(a,b,c,d,e,f,h,l,m){b=CE(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=[new rJ(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new mJ(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Ab:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([d,new FC(f),new XC(e)]),Ub:h(n),adLayoutLoggingData:l}};
DK=function(a,b,c){var d=[];d.push(new sJ(a.j,c));b&&d.push(b);return d};
CK=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,Ab:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new iJ(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new zC(d),new FC(e)]),Ub:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
pK=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Xa:"core"};return{layoutId:b,layoutType:f,Ab:new Map,layoutExitNormalTriggers:[new nJ(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new FC(d)].concat(g.x(h))),Ub:e(m),adLayoutLoggingData:l}};
FK=function(a,b,c,d){if(a.ya.get().Ye(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)Xy("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
UAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=EK(a,b,c,e,f,h,l,m,q,FK(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.qA;c=new YC(a.wM);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new IC(n)),d=[]);b.push(new HC(p));return{Sf:{layoutId:a.layoutId,layoutType:a.layoutType,Ab:a.Ab,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:a.Xa,clientMetadata:new MD(b),Ub:a.Ub,adLayoutLoggingData:a.adLayoutLoggingData},
Rm:d,xk:a.layoutExitMuteTriggers,tA:a.layoutExitUserInputSubmittedTriggers,sA:a.Wc,ze:a.ze}};
YAa=function(a,b,c,d,e,f,h,l,m,n){b=EK(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,FK(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new CJ(a.j,b.wM);c=new YC(b.wM);n=new HC(n);return{Sf:{layoutId:b.layoutId,layoutType:b.layoutType,Ab:b.Ab,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:b.Xa,clientMetadata:new MD([].concat(g.x(b.qA),[c,n])),Ub:b.Ub,adLayoutLoggingData:b.adLayoutLoggingData},Rm:b.layoutExitSkipTriggers,xk:b.layoutExitMuteTriggers,tA:[].concat(g.x(b.layoutExitUserInputSubmittedTriggers),[a]),sA:b.Wc,ze:b.ze}};
EK=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:CE(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"adapter"};l=l(b);var q=ND(l.clientMetadata,"metadata_type_fulfilled_layout");q||Xy("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new FC(c),new vD(d),new yD(e)];q&&c.push(new ZC(q.layoutType));p&&c.push(new lD(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
Ab:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new vJ(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"adapter",qA:c,Ub:h(n),adLayoutLoggingData:m,ze:l,wM:r}};
mAa=function(a,b,c,d,e,f,h,l,m,n,p){a=OBa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Ab:a.Ab,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Wc:a.Wc,Xa:a.Xa,clientMetadata:new MD(a.eY),Ub:a.Ub,adLayoutLoggingData:a.adLayoutLoggingData}};
iBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=OBa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.eY;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new IC(c.adPodSkipTarget)),d=[]);e.push(new HC(l.adPodIndex));c.isCritical&&(d=[new mJ(a.j,b.layoutId,["error"])].concat(g.x(d)));return{Sf:{layoutId:b.layoutId,layoutType:b.layoutType,Ab:b.Ab,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:b.Xa,clientMetadata:new MD(e),
Ub:b.Ub,adLayoutLoggingData:b.adLayoutLoggingData},Rm:d,xk:b.layoutExitMuteTriggers,tA:b.layoutExitUserInputSubmittedTriggers,sA:b.Wc}};
OBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Xa:c};e=[new FC(e),new GC(m),new KC(d.externalVideoId),new LC(l),new yD({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new gD(f),new bD({current:null}),new fD(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new MC(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new NC(h));
q&&e.push(new hD(q));(q=d.playerUnderlay)&&e.push(new OC(q));l=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:CE(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new YC(q));e.push(new $C(l));e.push(new lD(m.adPodIndex));d.adNextParams&&e.push(new xC(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new RC(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new yC(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new wD(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new iD(d.sodarExtensionData));p&&e.push(new tD(p));e.push(new BD(dF(d.pings)));m=eF(d.pings);if(r){a:{r=g.w(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.Q(p.fulfillmentContent.fulfilledLayout,YJ))&&(f=g.Q(f.renderingContent,XJ))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new PC(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ab:m,layoutExitNormalTriggers:[new tJ(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new vJ(a.j,q)]:[],layoutExitMuteTriggers:[new vJ(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:c,eY:e,Ub:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
cAa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return JD(p,[],["LAYOUT_TYPE_MEDIA"])})||Xy("Unexpect subLayout type for DAI composite layout");
b=CE(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xa:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ab:new Map,layoutExitNormalTriggers:[new oJ(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Wc:[],Xa:"core",clientMetadata:new MD([new jD(c),new kD(l),new dD(d),new FC(e),new pD(f),new mD({}),new DD(m)]),Ub:h(n)}};
Yza=function(a){return a!=null};
qL=function(a,b,c){var d=this;this.B=a;this.C=b;this.ya=c;this.j=function(e){return BK(d.B.get(),e)}};
sBa=function(a,b,c,d,e,f,h){if(!c.prefetchModeConfig)return new Z("AdPlacementConfig for Live Prefetch is missing prefetch_config");c=c.prefetchModeConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new Z("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.w(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={Hn:new bq(q,q+Number(n)),uC:!1,kq:new bq(Math.floor(p+Math.random()*
Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new HD({breakLengthMs:Number(n)}));n=[];n.push(new aza(a.j));n.push(new Tya(a.j));h&&q.push(new mD({}));l.push(hK(a,b,e,p,f,q,n))}return l};
hK=function(a,b,c,d,e,f,h){f=f===void 0?[]:f;h=h===void 0?[]:h;var l=WE(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),m=[];h=g.w(h);for(var n=h.next();!n.done;n=h.next())m.push(n.value);d.kq&&d.kq.start!==d.Hn.start&&m.push(new qJ(a.j,c,new bq(d.kq.start,d.Hn.start),!1));m.push(new qJ(a.j,c,new bq(d.Hn.start,d.Hn.end),d.uC));d={getAdBreakUrl:b.getAdBreakUrl,Gv:d.Hn.start,Fv:d.Hn.end,cueProcessedMs:d.cueProcessedMs};b=new zJ(a.j,l);f=[new rD(d)].concat(g.x(f));return{slotId:l,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",
slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:m,slotExpirationTriggers:[new uJ(a.j,c),new xJ(a.j,l),new yJ(a.j,l)],Xa:"core",clientMetadata:new MD(f),adSlotLoggingData:e}};
QBa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())d.push(PBa(a,b,e.value));return d};
PBa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c};
Nza=function(a,b,c,d,e){return RBa(a,b,c,d,e)};
VAa=function(a,b,c,d){var e=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER");return RBa(a,e,b,c,d)};
RBa=function(a,b,c,d,e){var f=new lJ(a.j,c),h=[new wJ(a.j,b)];a=[new xJ(a.j,b),new uJ(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
jBa=function(a,b,c,d,e,f){var h=WE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=CE(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=rL(a,b,c,d);var n=[new wJ(a.j,h)];c=[new xJ(a.j,h),new uJ(a.j,c),new iJ(a.j,m)];if(d instanceof Z)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.waa;l=l.E$;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:HK(a,b,h,d),slotFulfillmentTriggers:IK(a,b,h,n),slotExpirationTriggers:c,Xa:"core",clientMetadata:new MD([new qD(f),new ED(JK(b)),new GD({Pu:a.Pu(b)})]),adSlotLoggingData:e},l]};
JK=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};
nAa=function(a,b,c,d,e){e=e?e:WE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new lJ(a.j,c);var f=[new wJ(a.j,e)];a=[new uJ(a.j,b),new xJ(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
oAa=function(a,b,c,d){var e=WE(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new lJ(a.j,c);var f=[new wJ(a.j,e)];a=[new uJ(a.j,b),new xJ(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
fAa=function(a,b,c,d,e,f,h){var l=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=CE(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=SBa(a,d,f,h,m);if(d instanceof Z)return d;h=[new wJ(a.j,l)];e=[new uJ(a.j,f),new wJ(a.j,e),new BJ(a.j,e)];c=TD(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xa:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Ab:new Map,layoutExitNormalTriggers:[new bza(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new dza(a.j,m,b.durationMs)],Wc:[new cza(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xa:"core",clientMetadata:new MD([new xD(b)]),Ub:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,clientMetadata:new MD([new qD(b)])}};
SAa=function(a,b,c,d,e,f){b=rL(a,b,c,d);if(b instanceof Z)return b;var h=b instanceof qJ?new Yya(a.j,c,b.j):null;d=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new wJ(a.j,d)];a=[new uJ(a.j,c),new xJ(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof LD?new Z(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
Xa:"core",clientMetadata:new MD([new qD(f)]),adSlotLoggingData:e}};
QAa=function(a,b,c,d){var e=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new hJ(a.j,b),h=[new AJ(a.j,e)];a=[new uJ(a.j,b),new xJ(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
Tza=function(a,b,c,d){var e=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new lJ(a.j,c);var f=[new wJ(a.j,e)],h=[new xJ(a.j,e),new uJ(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new wJ(a.j,e)],slotExpirationTriggers:[new uJ(a.j,b),new xJ(a.j,e)],Xa:"core",clientMetadata:new MD([new qD(d(f))])}};
Qza=function(a,b,c,d,e){var f=WE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new kJ(a.j,d,c);d=[new wJ(a.j,f)];a=[new uJ(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
Kza=function(a,b,c,d,e,f){var h=WE(a.B.get(),b);return sL(a,h,b,new lJ(a.j,d),[new uJ(a.j,c),new xJ(a.j,h),new mJ(a.j,d,["error"])],e,f)};
Jza=function(a,b,c,d,e,f,h){var l=WE(a.B.get(),b);return sL(a,l,b,new mJ(a.j,e,["normal"]),[new uJ(a.j,c),new xJ(a.j,l),new mJ(a.j,d,["error"])],f,h)};
Fza=function(a,b,c,d,e){var f=WE(a.B.get(),b);return sL(a,f,b,new hJ(a.j,c),[new uJ(a.j,c),new xJ(a.j,f)],d,e)};
MAa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=WE(a.B.get(),c);b=new hJ(a.j,b);var h=[new wJ(a.j,f)];a=[new xJ(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(e({slotId:f,slotType:c,slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
Zza=function(a,b,c,d){var e=WE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new pJ(a.j),h=[new AJ(a.j,e)];a=[new uJ(a.j,b)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a})),new mD({})]),adSlotLoggingData:c}};
eBa=function(a,b){return pBa(a.ya.get())?new mJ(a.j,b,["normal","error","skipped"]):new mJ(a.j,b,["normal"])};
jAa=function(a,b,c,d,e){b=eBa(a,b);a=GK(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Xa:a.Xa});return e instanceof Z?e:{Vy:Object.assign({},a,{clientMetadata:new MD([new qD(e.layout)]),adSlotLoggingData:d}),sf:e.sf}};
kAa=function(a,b,c,d,e,f,h){c=fBa(a,b,c,d);if(c instanceof Z)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Xa:c.Xa});if(h instanceof Z)return h;d=[new ED(JK(b)),new qD(h.layout),new GD({Pu:a.Pu(b)})];f&&d.push(new zD({}));return{Vy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:HK(a,
b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:IK(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Xa:c.Xa,clientMetadata:new MD(d),adSlotLoggingData:e},sf:h.sf}};
HK=function(a,b,c,d){return a.ya.get().Ye(JK(b))?new fJ(a.j,c):d};
IK=function(a,b,c,d){return a.ya.get().Ye(JK(b))?[new AJ(a.j,c)]:d};
GK=function(a,b,c){var d=WE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new wJ(a.j,d)];a=[new xJ(a.j,d),new uJ(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Xa:"core"}};
fBa=function(a,b,c,d){b=rL(a,b,c,d);return b instanceof Z?b:GK(a,b,c)};
OAa=function(a,b,c,d,e,f){var h=WE(a.B.get(),"SLOT_TYPE_FORECASTING");b=rL(a,b,c,d);if(b instanceof Z)return b;d=[new wJ(a.j,h)];a=[new xJ(a.j,h),new uJ(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Xa:"core",clientMetadata:new MD([new qD(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
TBa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new hJ(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Bza(b,d),a instanceof Z?a:e(a.Hn,f);case "AD_PLACEMENT_KIND_END":return new jJ(a.j,c,f);default:return new Z("Cannot construct entry trigger",{kind:b.kind})}};
SBa=function(a,b,c,d,e){return TBa(a,b,c,d,function(f,h){return new Xya(a.j,c,f,h,e)})};
rL=function(a,b,c,d){return TBa(a,b,c,d,function(e,f){return new qJ(a.j,c,e,f)})};
sL=function(a,b,c,d,e,f,h){a=[new AJ(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Xa:"core",clientMetadata:new MD([new qD(h({slotId:b,slotType:c,slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
tL=function(a,b){g.O.call(this);this.ya=a;this.j=b;this.eventCount=0};
uL=function(a,b,c,d){tL.call(this,a,b);this.ya=a;this.Qa=c;this.context=d};
vL=function(){this.j=new Map};
xL=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(wL)?e.replace(",","\u00a0"):f.includes(wL)?e.replace(",","\u202f"):h.includes(wL)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(wL)||d)&&c<10?UBa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=UBa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(wL)&&(c=".");return b.join(c)};
UBa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
VBa=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};
WBa=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};
yL=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.px(b)}}:a};
zL=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
AL=function(){zL.instance||(zL.instance=new zL);return zL.instance};
BL=function(){};
CL=function(){this.N=[];this.Z=[];this.j=[];this.qa=[];this.G=[];this.W=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Aa=new Map};
DL=function(){CL.instance||(CL.instance=new CL);return CL.instance};
EL=function(a,b,c,d){d=d===void 0?{}:d;g.Dr(function(){XBa.includes(b)||(g.qx(new g.At("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.qa=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.qY?YBa(a,b,c,d):ZBa(a,b,c,d)})()};
$Ba=function(a,b,c){c=c===void 0?0:c;g.Dr(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.hx(c),f=g.gx(c);if(e&&f){var h;(d==null?0:(h=d.response)==null?0:h.trackingParams)&&g.Cx(a.client,e,f,g.ex(d.response.trackingParams));var l;(d==null?0:(l=d.playerResponse)==null?0:l.trackingParams)&&g.Cx(a.client,e,f,g.ex(d.playerResponse.trackingParams))}})})()};
GL=function(a){var b=DL();g.Dr(function(){var c=g.ex(a);FL(b,c);return c})()};
FL=function(a,b,c,d){d=d===void 0?0:d;g.Dr(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.hx(d),f=c||g.gx(d);if(e&&f){if(g.Zr("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.oa||(a.oa=g.Ft(0,function(){HL(a,e)},1200))}else g.Cx(a.client,e,f,b);
return!0}return!1})()};
aCa=function(a,b,c,d){d=d===void 0?0:d;var e=g.hx(d);b=b||g.gx(d);e&&b&&(a=a.client,d=xx({cttAuthInfo:ix(e)||void 0},e),c={csn:e,ve:b.getAsJson(),clientData:c},e==="UNDEFINED_CSN"?Fx("visualElementStateChanged",d,c):a?cx("visualElementStateChanged",c,a,d):g.Qt("visualElementStateChanged",c,d))};
YBa=function(a,b,c,d){d=d===void 0?{}:d;a.B.add(d.layer||0);a.D=function(){ZBa(a,b,c,d);var h=g.gx(d.layer);if(h){for(var l=g.w(a.N),m=l.next();!m.done;m=l.next())m=m.value,FL(a,m[0],m[1]||h,d.layer);h=g.w(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,aCa(a,l[0],l[1])}};
c||g.hx(d.layer)||a.D();if(d.qY)for(var e=g.w(d.qY),f=e.next();!f.done;f=e.next())$Ba(a,f.value,d.layer);else g.px(Error("Delayed screen needs a data promise."))};
ZBa=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.hx(e);e=g.gx(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.zr("EVENT_ID");f==="UNDEFINED_CSN"&&n&&(m={servletData:{serializedServletEventId:n}});g.Zr("combine_ve_grafts")&&f&&HL(a,f);g.Zr("no_client_ve_attach_unless_shown")&&h&&f&&Ex(h,f);try{var p=psa(a.client,
b,l,d.mY,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){isa(t,{XH:b,rootVe:e,Qpa:c,Dna:f,Ppa:l,mY:d.mY});g.px(t);return}Qra(p,b,d.layer,d.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&e&&!Nra(f)&&rsa(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.GA({clientScreenNonce:p});BL.instance||(BL.instance=new BL);g.Dr(AL().j).bind(AL())();var q=g.gx(d.layer);f&&f!=="UNDEFINED_CSN"&&q&&(g.Zr("web_mark_root_visible")||g.Zr("music_web_mark_root_visible"))&&
g.Kx(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;(r=a.Aa.get(d.layer))==null||r.forEach(function(t,u){t?FL(a,u,t,d.layer):q&&FL(a,u,q,d.layer)});
bCa(a)};
bCa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.px(d)}}for(b=a.G.length=0;b<a.W.length;b++){c=a.W[b];try{c()}catch(d){g.px(d)}}};
HL=function(a,b){if(b===void 0)for(var c=Lra(),d=0;d<c.length;d++)c[d]!==void 0&&HL(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.Bx(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.oa=void 0};
IL=function(){};
cCa=function(){IL.instance||(IL.instance=new IL);return IL.instance};
dCa=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.w(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.w(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
JL=function(){};
eCa=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."))})};
Ot=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};
gCa=function(a,b){JL.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:fCa(c==null?void 0:c.usage),deviceStorageQuotaMbytes:fCa(c==null?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
fCa=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))};
iCa=function(){g.tt();return g.ut(0,192)?g.ut(0,190):!(g.Zr("web_watch_cinematics_disabled_by_default")||g.Zr("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&hCa())};
kCa=function(a,b){jCa(a.program,b.cea)&&(KA("bg_i",void 0,"player_att"),g.KL.initialize(a,function(){KA("bg_l",void 0,"player_att");LL=(0,g.hu)()},b.cspNonce))};
lCa=function(a){a=a===void 0?{}:a;return g.KL.invoke(a)};
jCa=function(a,b){if(a){var c;g.KL.isLoading()?c=!1:c=!LL||(0,g.hu)()-LL>b;a=c}else a=!1;return a};
mCa=function(a){a=a.split("");ML.OK(a,5);ML.wH(a,3);ML.fq(a,43);ML.wH(a,2);ML.fq(a,32);return a.join("")};
g.NL=function(a,b){return a.Ca+"timedtext_video?ref=player&v="+b.videoId};
g.OL=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.KL.isInitialized()){var d="";b.videoData&&b.videoData.Mr&&(d=b.videoData.Mr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);KA("bg_v",void 0,"player_att");(d=lCa(d))?(KA("bg_s",void 0,"player_att"),c.push("r1a="+d)):(KA("bg_e",void 0,"player_att"),c.push("r1c=2"))}else KA("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.KL.getState());
return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^bB())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.zr("CATSTAT",0)))},a);
this.videoData&&this.videoData.Mr?this.Gl=Hr(this.videoData.Mr):this.Gl={}};
g.PL=function(a){if(a.videoData&&a.videoData.Mr){for(var b=[a.videoData.Mr],c=g.w(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.Gl[d]&&a.j[d]&&(d=a.j[d](a.Gl))&&b.push(d);return b.join("&")}return null};
g.QL=function(a,b){kCa(a,{cea:g.UD(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
nCa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3};
RL=function(a){a=a===void 0?2592E3:a;if(a>0&&!(ioa()>(0,g.hu)()-a*1E3))return 0;a=g.mt("yt-player-quality");if(typeof a==="string"){if(a=g.mG[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0};
SL=function(){var a=g.mt("yt-player-proxima-pref");return a==null?null:a};
oCa=function(){var a=g.mt("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};
pCa=function(){var a={values:{},us:{}};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};
TL=function(){return g.mt("yt-player-performance-cap")||{}};
UL=function(){var a;return(a=g.mt("yt-player-performance-cap-active-set"))!=null?a:[]};
qCa=function(a){(a===void 0?0:a)?(a=UL().filter(function(b){return b.startsWith("1")}),g.lt("yt-player-performance-cap-active-set",a,2592E3)):g.lt("yt-player-performance-cap-active-set",[],2592E3)};
rCa=function(a){g.lt("yt-player-watch-later-pending",a)};
sCa=function(){return!!g.mt("yt-player-headers-readable")};
tCa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.VL=function(){var a=g.mt("yt-player-caption-language-preferences");return a?a:[]};
uCa=function(a,b){a.thirdParty||(a.thirdParty={});b.ancestorOrigins&&(a.thirdParty.embeddedPlayerContext=Object.assign({},a.thirdParty.embeddedPlayerContext,{ancestorOrigins:b.ancestorOrigins}))};
xCa=function(a,b){OB(a,2,b.Pr,WL,3);OB(a,3,b.sR,vCa,3);MB(a,4,b.onesieUstreamerConfig);MB(a,9,b.Gp);OB(a,10,b.bD,XL,3);OB(a,15,b.reloadPlaybackParams,wCa,3)};
zCa=function(a,b){OB(a,1,b.formatId,YL,3);KB(a,2,b.startTimeMs);KB(a,3,b.durationMs);KB(a,4,b.xp);KB(a,5,b.Kj);OB(a,9,b.mna,yCa,3);OB(a,11,b.Rpa,ZL,1);OB(a,12,b.oT,ZL,1)};
ACa=function(a,b){NB(a,1,b.videoId);KB(a,2,b.lmt)};
yCa=function(a,b){if(b.vX)for(var c=0;c<b.vX.length;c++)OB(a,1,b.vX[c],ACa,3)};
YL=function(a,b){KB(a,1,b.itag);KB(a,2,b.lmt);NB(a,3,b.xtags)};
$L=function(a){return{itag:AB(a,1),lmt:AB(a,2),xtags:DB(a,3)}};
ZL=function(a,b){KB(a,1,b.Xg);KB(a,2,b.qF);KB(a,3,b.zt)};
BCa=function(a){return{Xg:AB(a,1),qF:AB(a,2),zt:AB(a,3)}};
CCa=function(a,b){KB(a,1,b.defaultPolicy);KB(a,2,b.smooth);KB(a,3,b.visibility);KB(a,4,b.S8);KB(a,5,b.performance);KB(a,6,b.speed)};
WL=function(a,b){KB(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;c!==void 0&&(JB(a,112),JB(a,c<<1^c>>31));KB(a,16,b.U$);KB(a,17,b.detailedNetworkType);KB(a,18,b.e8);KB(a,19,b.d8);KB(a,21,b.gfa);KB(a,23,b.T7);KB(a,28,b.yT);KB(a,29,b.yfa);KB(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(JB(a,285),IB(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}KB(a,36,b.I8);
OB(a,38,b.mediaCapabilities,DCa,3);KB(a,39,b.xfa);KB(a,40,b.AY);KB(a,44,b.playerState);LB(a,46,b.F8);KB(a,48,b.pz);KB(a,50,b.jx);KB(a,51,b.Az);KB(a,54,b.er);LB(a,56,b.Baa);KB(a,57,b.i8);LB(a,58,b.mp);KB(a,59,b.Cj);KB(a,60,b.Gy);LB(a,61,b.isPrefetch);KB(a,62,b.rP);MB(a,63,b.sabrLicenseConstraint);KB(a,64,b.W$);KB(a,66,b.V$);KB(a,67,b.zpa);KB(a,68,b.paa);LB(a,71,b.lx);OB(a,72,b.Yda,CCa,1)};
DCa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c<b.videoFormatCapabilities.length;c++)OB(a,1,b.videoFormatCapabilities[c],ECa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)OB(a,2,b.audioFormatCapabilities[c],FCa,1);OB(a,4,b.perPlaybackAttributes,GCa,3);KB(a,5,b.hdrModeBitmask)};
ECa=function(a,b){KB(a,1,b.videoCodec);KB(a,3,b.maxHeight);KB(a,4,b.maxWidth);KB(a,11,b.maxFramerate);KB(a,12,b.maxBitrateBps);LB(a,15,b.is10BitSupported)};
FCa=function(a,b){KB(a,1,b.audioCodec);KB(a,2,b.numChannels);KB(a,3,b.maxBitrateBps);KB(a,6,b.spatialCapabilityBitmask)};
GCa=function(a,b){if(b.itagDenylist)for(var c=0;c<b.itagDenylist.length;c++)KB(a,1,b.itagDenylist[c])};
XL=function(a,b){OB(a,1,b.clientInfo,HCa,3);MB(a,2,b.EH);MB(a,3,b.playbackCookie);MB(a,4,b.Gp);if(b.GC)for(var c=0;c<b.GC.length;c++)OB(a,5,b.GC[c],ICa,3);if(b.gD)for(c=0;c<b.gD.length;c++)KB(a,6,b.gD[c]);NB(a,7,b.Yea);OB(a,8,b.jC,JCa,3)};
KCa=function(a,b){KB(a,1,b.qpa);KB(a,2,b.Apa)};
LCa=function(a,b){var c=b.code;c!==void 0&&(JB(a,8),JB(a,c<<1^c>>31));NB(a,2,b.message)};
MCa=function(a,b){KB(a,1,b.clientState);OB(a,2,b.Bpa,KCa,1)};
JCa=function(a,b){MB(a,1,b.Dda);OB(a,2,b.Cda,LCa,3);OB(a,3,b.coldStartInfo,MCa,3)};
ICa=function(a,b){KB(a,1,b.type);MB(a,2,b.value)};
HCa=function(a,b){NB(a,12,b.deviceMake);NB(a,13,b.deviceModel);KB(a,16,b.clientName);NB(a,17,b.clientVersion);NB(a,18,b.osName);NB(a,19,b.osVersion)};
NCa=function(a,b){NB(a,1,b.name);NB(a,2,b.value)};
OCa=function(a,b){NB(a,1,b.url);if(b.kR)for(var c=0;c<b.kR.length;c++)OB(a,2,b.kR[c],NCa,3);MB(a,3,b.postBody);LB(a,4,b.Wda);LB(a,6,b.WC)};
vCa=function(a,b){MB(a,2,b.BY);MB(a,5,b.encryptedClientKey);MB(a,6,b.iv);MB(a,7,b.RZ);LB(a,10,b.J2);LB(a,13,b.zY);LB(a,14,b.VP);MB(a,16,b.Lfa);LB(a,17,b.i4)};
PCa=function(a){return{A1:AB(a,1),TZ:AB(a,2),body:CB(a,4)}};
wCa=function(a,b){NB(a,1,b.token)};
QCa=function(a){return{token:DB(a,1)}};
RCa=function(a){return{uj:AB(a,1),l2:AB(a,2)}};
VCa=function(a,b){OB(a,1,b.Pr,WL,3);if(b.Xx)for(var c=0;c<b.Xx.length;c++)OB(a,2,b.Xx[c],YL,3);if(b.Uc)for(c=0;c<b.Uc.length;c++)OB(a,3,b.Uc[c],zCa,3);MB(a,5,b.videoPlaybackUstreamerConfig);if(b.jp)for(c=0;c<b.jp.length;c++)OB(a,6,b.jp[c],SCa,3);if(b.bI)for(c=0;c<b.bI.length;c++)OB(a,16,b.bI[c],YL,3);if(b.cI)for(c=0;c<b.cI.length;c++)OB(a,17,b.cI[c],YL,3);OB(a,19,b.bD,XL,3);OB(a,21,b.In,TCa,3);KB(a,22,b.AL);KB(a,23,b.xL);if(b.rI)for(c=0;c<b.rI.length;c++)OB(a,1E3,b.rI[c],UCa,3)};
SCa=function(a,b){OB(a,1,b.formatId,YL,3);KB(a,2,b.bk);KB(a,3,b.sequenceNumber);OB(a,4,b.sK,ZL,1);KB(a,5,b.H_);KB(a,6,b.EY)};
TCa=function(a,b){if(b.rJ)for(var c=0;c<b.rJ.length;c++)NB(a,1,b.rJ[c]);MB(a,2,b.AX);NB(a,3,b.du);KB(a,4,b.HU);KB(a,5,b.n4);NB(a,6,b.o4)};
UCa=function(a,b){if(b.Xx)for(var c=0;c<b.Xx.length;c++)OB(a,1,b.Xx[c],YL,3);if(b.Uc)for(c=0;c<b.Uc.length;c++)OB(a,2,b.Uc[c],zCa,3);NB(a,3,b.clipId)};
g.aM=function(a,b){OB(a,1,b.Pr,WL,3);MB(a,3,b.videoPlaybackUstreamerConfig);OB(a,5,b.bD,XL,3);OB(a,6,b.In,TCa,3)};
YCa=function(a,b){NB(a,1,b.cpn);KB(a,2,b.sequenceNumber);NB(a,3,b.serializedWatchEndpointLoggingContext);if(b.decoderInfo)for(var c=0;c<b.decoderInfo.length;c++)OB(a,6,b.decoderInfo[c],WCa,3);NB(a,9,b.playerResponseCpn);KB(a,10,b.transitionStitchType);KB(a,12,b.timestampOffsetMsecs);KB(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)OB(a,16,b.remoteConnectedDevices[c],XCa,3);MB(a,17,b.serializedHouseBrandPlayerServiceLoggingContext)};
WCa=function(a,b){KB(a,1,b.elapsedTimeMs);NB(a,3,b.videoDecoderName)};
XCa=function(a,b){KB(a,1,b.deviceInterface);NB(a,2,b.deviceVersion);LB(a,3,b.isSleeping)};
ZCa=function(a){return{first:AB(a,1),x_:AB(a,2)}};
$Ca=function(a){return{bitrate:AB(a,6),width:AB(a,7),height:AB(a,8),fps:AB(a,25),averageBitrate:AB(a,31),audioSampleRate:AB(a,45),audioChannels:AB(a,46)}};
bM=function(a){return{itagDenylist:FB(a,1)}};
bDa=function(a){return{ypa:GB(a,1,aDa)}};
aDa=function(a){return{conditions:FB(a,1),Dpa:AB(a,2)}};
eDa=function(a){return{yda:AB(a,1),itag:DB(a,3),M1:EB(a,4,cDa),lmt:AB(a,5),Qna:AB(a,7),xtags:DB(a,15),xaa:EB(a,23,dDa),AB:EB(a,34,bM)}};
cDa=function(a){return{iv:CB(a,5),K$:BB(a,7)}};
fDa=function(a){return{S7:FB(a,2),videoId:DB(a,3),mV:AB(a,4)}};
dDa=function(a){return{videoId:DB(a,2)}};
gDa=function(a){return{dL:AB(a,3),eL:AB(a,4),pV:AB(a,5),Lda:BB(a,8),apa:AB(a,10),r0:AB(a,12),s0:AB(a,13),b0:AB(a,14),d0:AB(a,15),BL:AB(a,16)}};
hDa=function(a){return{targetAudioReadaheadMs:AB(a,1),targetVideoReadaheadMs:AB(a,2),backoffTimeMs:AB(a,4),playbackCookie:CB(a,7),videoId:DB(a,8)}};
iDa=function(a){return{minBandwidthBytesPerSec:AB(a,1),minReadaheadMs:AB(a,2)}};
jDa=function(a){return{startMinReadaheadPolicy:GB(a,1,iDa),resumeMinReadaheadPolicy:GB(a,2,iDa)}};
kDa=function(a){return{label:DB(a,1),text:DB(a,2)}};
lDa=function(a){return{videoId:DB(a,1),formatId:EB(a,2,$L),debugInfo:GB(a,3,kDa)}};
mDa=function(a){return{PY:GB(a,1,lDa)}};
nDa=function(a){return{fS:AB(a,1),PL:AB(a,2),minReadaheadMs:AB(a,3)}};
oDa=function(a){return{P1:AB(a,1),items:GB(a,2,nDa),Mq:AB(a,3)}};
pDa=function(a){return{token:DB(a,1),videoId:DB(a,2)}};
qDa=function(a){return{jq:AB(a,1)}};
rDa=function(a){return{Xda:DB(a,1),action:AB(a,2),D2:EB(a,3,qDa)}};
cM=function(a){return{cU:AB(a,1),dU:AB(a,2),seekSource:AB(a,3)}};
tDa=function(a){return{A3:GB(a,1,sDa),Zea:DB(a,2)}};
uDa=function(a){return{z4:DB(a,1),N1:AB(a,2),eaa:AB(a,3),P_:AB(a,4),Q_:AB(a,5),O1:AB(a,6)}};
vDa=function(a){return{EL:AB(a,1)}};
sDa=function(a){return{clipId:DB(a,1),Ht:EB(a,2,uDa),qS:EB(a,3,vDa)}};
wDa=function(a){return{type:AB(a,1),scope:AB(a,2),value:CB(a,3),sendByDefault:BB(a,4)}};
xDa=function(a){var b=[];a=g.w(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({d3:d[0],platform:d[1],deviceVersion:d[2],WZ:c}))}return b};
ADa=function(a){return xDa(a).map(function(b){return{deviceInterface:yDa[zDa[b.d3]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.WZ}})};
g.dM=function(a,b){this.id=a;this.Yb=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.Yb.id.split(".");a.length>1&&(this.G=a[1]==="2")};
eM=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.qb=e===void 0?0:e};
gM=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!fM||a.qb===b.qb)};
g.hM=function(a,b,c,d){return new eM(g.mG[a]||0,g.mG[b]||0,c,d)};
iM=function(a){if(fM&&a.qb)return!1;var b=g.mG.auto;return a.B===b&&a.j===b};
kM=function(a){return jM[a.j||a.B]||"auto"};
BDa=function(a,b){b=g.mG[b];return a.B<=b&&(!a.j||a.j>=b)};
lM=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
mM=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.w(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Yb||a.has(d.Yb.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.Yb,itag:d.itag,xtag:d.j,lang:((e=d.Yb)==null?void 0:e.name)||"",langid:((f=d.Yb)==null?void 0:f.id)||""})}else e=new g.dM(d.id,d.Yb),a.add(d.Yb.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}};
nM=function(){g.O.apply(this,arguments);this.j=null};
FDa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(oM(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.jb]=[a.info]);return n}p=CDa(b,d,l);f&&e({aftsrt:pM(p)});for(var q={},r=g.w(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.w(p[t]),y=u.next();!y.done;y=u.next()){y=y.value;var A=y.itag,C=void 0,F=t+"_"+(((C=y.video)==null?void 0:C.fps)||0);q.hasOwnProperty(F)?q[F]===!0?n[t].push(y):l[A]=q[F]:(C=qM(b,y,c,d.isLive,m),C!==!0?(h.add(t),l[A]=C,
C==="disablevp9hfr"&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(y),q[F]=!0))}}f&&e({bfflt:pM(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].dg()&&(n[d]=n[d],n[d]=DDa(b,n[d],l),n[d]=EDa(n[d],l)));f&&e(l);b=g.w(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.w2;f&&e({aftflt:pM(n)});a.j=g.Jg(n,function(L){return!!L.length});
return a.j};
HDa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Pc&&h&&h.length>1&&!(b.Cj>0||b.W)){for(var m=b.B||!!e,n=m&&b.Qb?f:void 0,p=CDa(b,d),q=[],r=[],t={},u=0;u<h.length;u++){var y=h[u],A=d.C.get(y);if(A&&A.info){var C=A.info;A=C.jb;if(qM(b,C,c,d.isLive)){y=C.dg()?q:r;C=g.w(p[A]);for(var F=C.next();!F.done;F=C.next()){F=F.value;var H=void 0,L=A+"_"+(((H=F.video)==null?void 0:H.fps)||0);t.hasOwnProperty(L)?t[L]===!0&&y.push(F):qM(b,F,c,d.isLive)&&(y.push(F),t[L]=!0)}}else m&&f({opfu:y})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),ks(new mM(q,r,n))}return GDa(a,b,c,d,e,f,l)};
GDa=function(a,b,c,d,e,f,h){function l(C){return!!q[C]}
var m=b.B||!!e,n=m&&b.Qb?f:void 0,p=new Set,q=FDa(a,b,c,d,f,m,p);rM(d)&&(q=IDa(c,q,e,m,f,b),m&&f({enflt:pM(q)}));b.kb=JDa(q);if(oM(d))return f=g.Ub(Object.values(q),function(C){return!!C.length&&!!C[0].audio}),a=g.Ub(Object.values(q),function(C){return!!C.length&&!!C[0].video}),f&&a||js(),ks(new mM(a,f,n));
e=KDa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.qc){e=g.Bn(e,l);for(var r=new Set,t=g.w(e),u=t.next();!u.done;u=t.next()){u=g.w(q[u.value]);for(var y=u.next();!y.done;y=u.next())y=y.value,y.Yb&&!r.has(y.Yb.id)&&(r.add(y.Yb.id),a.push(y))}if(a.length===0){if(e.length===0)return m&&f({noaudio:1}),js();a=q[e[0]]}}else{a=g.Ub(e,l);if(!a)return m&&f({noaudio:1}),js();a=q[a]}q["9"]&&q.h&&d.Wb&&!b.Ua&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:pM(q),bfsflta:sM(c)});LDa(c,p);m&&f({bfsfltb:sM(c)});
for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!(h==="f"||b.Vf===0&&MDa.has(h))))for(p=g.w(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.kd?NDa(c,h,e):ODa(c,h,e);m&&f({aftsflt:sM(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.le&&e)A=e,p=[h],f({forceAv1:h});else if(b.W&&!b.mp)for(p=PDa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
e=g.w(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(C){return C});
else b.Cj>0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(C){return C}));
if(A.length&&!b.mp){tM(A,p);if(m){m=[];b=g.w(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return ks(new mM(A,a,n))}A=QDa(b);A=g.Ub(A,l);if(!A){if(q[h])return f=q[h],tM(f),ks(new mM(f,a,n));m&&f({novideo:1});return js()}b.jd&&(A==="1"||A==="1h")&&q[c]&&(h=uM(q[A]),p=uM(q[c]),p>h?A=c:p===h&&RDa(q[c])&&(A=c));A==="9"&&q.h&&uM(q.h)>uM(q["9"])&&(A="h");b.Kb&&d.isLive&&A==="("&&q.H&&uM(q["("])<1440&&(A="H");m&&f({vfmly:vM(A)});b=q[A];if(!b.length)return m&&f({novfmly:vM(A)}),
js();tM(b);return ks(new mM(b,a,n))};
JDa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
RDa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&SDa.has(b.itag))return!0;return!1};
vM=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
pM=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(vM(d));d=g.w(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
IDa=function(a,b,c,d,e,f){var h={},l={};g.Ig(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.qe)return l[q]="noenc",!1;if(f.Bb&&p.jb==="(h"&&f.rb)return l[q]="lichdr",!1;if(p.jb==="("||p.jb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.qe[c.flavor]&&!!c.j[r])||(l[q]=p.qe[c.flavor]?"unspt":"noflv");return r}if(!wM(a,xM.CRYPTOBLOCKFORMAT)&&!a.Fa||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.qe[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.qe[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
EDa=function(a,b){var c=Sl(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}));
ys()&&(a=a.filter(function(d){if(d.itag!=="299")return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
DDa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Tb)return!0;c[d.itag]="maxquality";return!1})};
CDa=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.jb;d[h]=d[h]||[];d[h].push(f)}}a=g.w(Object.keys(d));for(b=a.next();!b.done;b=a.next())tM(d[b.value]);return d};
uM=function(a){return Sl(a,function(b,c){return Math.max(b,c.video.j)},0)};
qM=function(a,b,c,d,e){e=e===void 0?new Set:e;if(b.jb==="")return"unkn";if((b.itag==="304"||b.itag==="266")&&a.Ca)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.ib&&b.jb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.jb==="(h"&&!c.N)return"enchdr";if((d===void 0?0:d)&&wG(b)&&!a.Oa)return"blk51live";if((b.jb==="MAC3"||b.jb==="mac3")&&!a.D)return"blkac3";if((b.jb==="MEAC3"||b.jb==="meac3")&&!a.G)return"blkeac3";if((b.jb==="M"||b.jb==="m")&&!a.qa)return"blkaac51";if((b.jb===
"so"||b.jb==="sa")&&!a.Aa)return"blkamb";if(!a.Bb&&b.qe&&b.qe.fairplay&&(b.jb==="("||b.jb==="(h"||b.jb==="A"||b.jb==="MEAC3"))return"cbc";if((b.jb==="i"||b.jb==="I")&&!a.Gb)return"blkiamf";var f,h;if(a.Va&&(b.jb==="1"||b.jb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.Va)return"av1cap";if((d=c.C.get(b.jb))&&d.w2>0)return e.add(b.jb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Ca&&!wM(c,xM.FRAMERATE))return"capHfr";if(a.Ya&&b.video.j>=4320)return"blk8khfr";if(sG(b)&&
a.Ad&&b.qe&&b.video.j>=1440)return"disablevp9hfr"}if(a.qb&&b.qb>a.qb)return"ratecap";a=TDa(c,b);return a!==!0?a:!0};
tM=function(a,b){b=b===void 0?[]:b;g.hc(a,function(c,d){var e=d.qb-c.qb;if(!c.dg()||!d.dg())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.jb)+1,d=b.indexOf(d.jb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})};
g.yM=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
AM=function(a){zM(a);return a.C};
BM=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"};
UDa=function(a){zM(a);return g.Lg(a.j,function(b){return b!==null})};
CM=function(a){zM(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]};
DM=function(a,b){b=b===void 0?!1:b;zM(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.xe();c=new g.Bk(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.Dk(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.yM(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.Dk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Dk(c,"www.youtube.com"),d=c.toString()):(c=jwa(d),GE(c)&&(d=c));c=new g.yM(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
zM=function(a){if(a.B){if(!GE(a.B)&&!a.B.startsWith("local"))throw new g.At("Untrusted URL",a.B);var b=g.Nk(a.B);a.scheme=b.G;a.C=b.j+(b.C!=null?":"+b.C:"");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=VDa(c);Object.assign(a.j,
WDa(b.D.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="nn"[+a.D],zM(a),c=a.j[b]||null)&&(c=XDa[0](c),a.set(b,c))}};
YDa=function(a){zM(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(UDa(a)){var c=[];g.Ig(a.j,function(d,e){d!==null&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
VDa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&ZDa(c,a[b],a[b+1]);return c};
WDa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");e>0?ZDa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b};
ZDa=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};
EM=function(a){var b=g.Q(a,$Da)||a.signatureCipher;a={GZ:!1,WE:"",qI:"",s:""};if(!b)return a;b=Hr(b);a.GZ=!0;a.WE=b.url;a.qI=b.sp;a.s=b.s;return a};
FM=function(a,b,c,d,e,f,h,l,m){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Ng=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Ng=m||null};
g.GM=function(){this.segments=[];this.j=null;this.B=!0;this.C=""};
aEa=function(a,b){if(b>a.ud())a.segments=[];else{var c=Tb(a.segments,function(d){return d.Ma>=b},a);
c>0&&a.segments.splice(0,c)}};
HM=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};
IM=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
JM=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
KM=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
LM=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
MM=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};
NM=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 rB(b)};
bEa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
cEa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
OM=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};
PM=function(a,b,c,d,e,f){this.startSecs=a;this.lh=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
RM=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.sj=QM(this,"Sequence-Number");this.D=QM(this,"Segment-Count");this.G=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=QM(this,"Ingestion-Walltime-Us")/1E6;this.j=(QM(this,"First-Frame-Time-Us")+QM(this,"First-Frame-Uncertainty-Us"))/1E6;this.ek=QM(this,"Target-Duration-Us")/1E6;this.Ri=this.data["Stream-Finished"]==="T";this.C=this.data.Streamable==="T";this.cryptoPeriodIndex=QM(this,"Crypto-Period-Index");
this.B=QM(this,"Crypto-Period-Seconds")};
eEa=function(a){return a.data["Cuepoint-Type"]?new PM(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",dEa[a.data["Cuepoint-Event"]||""]||"unknown",(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
fEa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
QM=function(a,b){return Number(a.data[b])||0};
SM=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.gEa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.hEa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
iEa=function(a,b){this.j=a;this.duration=b};
jEa=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)};
TM=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};
kEa=function(a,b){var c=g.UM(a,0,1952868452);a=g.UM(a,0,1953658222);if(c&&a){c.skip(1);var d=IM(c)<<16|JM(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=LM(c);c.data.setUint32(c.offset+d,b>1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=IM(a)<<16|JM(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=LM(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=LM(a),a.data.setUint32(a.offset+f,b>1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
WM=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.UM(a,0,1836476516))?g.VM(a):NaN};
lEa=function(a){var b=g.UM(a,0,1937011556);if(!b)return null;b=XM(a,b.dataOffset+8,1635148593)||XM(a,b.dataOffset+8,1635135537);if(!b)return null;var c=XM(a,b.dataOffset+78,1936995172),d=XM(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),IM(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=XM(a,d.dataOffset,1886547818)){var h=XM(a,d.dataOffset,1886546020),l=XM(a,d.dataOffset,2037673328);if(!l&&(l=XM(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=KM(h)/65536,f=KM(h)/65536,e=KM(h)/65536);a=bEa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new jEa(b,c,f,e,a)}return null};
XM=function(a,b,c){for(;YM(a,b);){var d=ZM(a,b);if(d.type===c)return d;b+=d.size}return null};
g.UM=function(a,b,c){for(;YM(a,b);){var d=ZM(a,b);if(d.type===c)return d;b=$M(d.type)?b+8:b+d.size}return null};
g.aN=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};
ZM=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new HM(a,b,c,d)};
g.VM=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
mEa=function(a){a=new HM(a.data,a.offset,a.size,a.type,a.B);var b=IM(a);a.skip(7);var c=LM(a);if(b===0){b=LM(a);var d=LM(a)}else b=MM(a),d=MM(a);a.skip(2);for(var e=JM(a),f=[],h=[],l=0;l<e;l++){var m=LM(a);f.push(m);h.push(LM(a));a.skip(4)}return{zt:c,H8:b,i9:d,Zda:f,PU:h}};
YM=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};
$M=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768};
nEa=function(a){a.skip(4);return{Bea:NM(a,0),value:NM(a,0),zt:LM(a),Vpa:LM(a),Jna:LM(a),id:LM(a),m0:NM(a),offset:a.offset}};
g.oEa=function(a){var b=XM(a,0,1701671783);if(!b)return null;var c=nEa(b),d=c.Bea;c=TM(c.m0);if(a=XM(a,b.offset+b.size,1701671783))if(a=nEa(a),a=TM(a.m0),c&&a){b=g.w(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new RM(c,d):null};
bN=function(a,b){for(var c=XM(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=XM(a,c.offset+c.size,b)}};
g.cN=function(a,b){for(var c=0,d=[];YM(a,c);){var e=ZM(a,c);e.type===b&&d.push(e);c=$M(e.type)?c+8:c+e.size}return d};
pEa=function(a,b){var c=g.UM(a,0,1937011556),d=g.UM(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.UM(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 cEa(a.byteLength+b);OM(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;OM(d,a,c.offset+16,c.size-16);OM(d,e,e.byteOffset+f.dataOffset+8,b);OM(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.w([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.UM(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.UM(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
qEa=function(a){var b=g.UM(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=XM(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=XM(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=XM(a,b.offset+8,1935894633);if(!b)return null;b=XM(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};
dN=function(a,b){this.j=a;this.pos=0;this.start=b||0};
eN=function(a){return a.pos>=a.j.byteLength};
jN=function(a,b,c){var d=new dN(c);if(!fN(d,a))return!1;d=gN(d);if(!hN(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=iN(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?rEa(d-9,8):rEa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
sEa=function(a){var b=new dN(a);b.So();if(fN(b,[408125543,374648427,174,224]))b=gN(b);else return null;for(var c=a=null;!eN(b);){var d=iN(b,!1);if(d===21432)switch(kN(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else d===30320?c=gN(b):lN(b)}if(!c)return null;for(var e,f=d=b=null;!eN(c);)switch(iN(c,!1)){case 30321:if(kN(c)!==3)return null;break;case 30324:b=mN(c);break;case 30323:f=mN(c);break;case 30325:d=mN(c);break;case 30322:e=iN(c,!0);e=nN(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:lN(c)}return e?new jEa(a,b,f,d,e):null};
gN=function(a){var b=iN(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 dN(c,a.start+a.pos);a.pos+=b;return c};
kN=function(a){for(var b=iN(a,!0),c=oN(a),d=1;d<b;d++)c=c*256+oN(a);return c};
mN=function(a){var b=iN(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};
tEa=function(a){var b=iN(a,!0);return rB(nN(a,b))};
oN=function(a){return a.j.getUint8(a.pos++)};
iN=function(a,b){var c=oN(a);if(c===1){for(b=c=0;b<7;b++)c=c*256+oN(a);return c}for(var d=128,e=0;e<6&&d>c;e++)c=c*256+oN(a),d*=128;return b?c-d:c};
lN=function(a){var b=iN(a,!0);a.pos+=b};
uEa=function(a){if(!hN(a,440786851,!0))return null;var b=a.pos;iN(a,!1);var c=iN(a,!0)+a.pos-b;a.pos=b+c;if(!hN(a,408125543,!1))return null;iN(a,!0);if(!hN(a,357149030,!0))return null;var d=a.pos;iN(a,!1);var e=iN(a,!0)+a.pos-d;a.pos=d+e;if(!hN(a,374648427,!0))return null;var f=a.pos;iN(a,!1);var h=iN(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};
pN=function(a){var b=a.pos;a.pos=0;var c=1E6;fN(a,[408125543,357149030,2807729])&&(c=kN(a));a.pos=b;return c};
vEa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!qN(a)||!hN(a,160))return a.pos=c,NaN;iN(a,!0);var d=a.pos;if(!hN(a,161))return a.pos=c,NaN;iN(a,!0);oN(a);var e=oN(a)<<8|oN(a);a.pos=d;if(!hN(a,155))return a.pos=c,NaN;d=kN(a);a.pos=c;return(e+d)*b/1E9};
qN=function(a){if(!wEa(a)||!hN(a,524531317))return!1;iN(a,!0);return!0};
wEa=function(a){if(a.So()){if(!hN(a,408125543))return!1;iN(a,!0)}return!0};
fN=function(a,b){for(var c=0;c<b.length;c++){if(!hN(a,b[c]))return!1;c!==b.length-1&&iN(a,!0)}return!0};
hN=function(a,b,c){c=c===void 0?!1:c;if(eN(a))return!1;for(var d=a.pos;iN(a,!1)!==b;)if(lN(a),d=a.pos,eN(a))return!1;c&&(a.pos=d);return!0};
rEa=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};
nN=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
rN=function(a){this.base=a;this.j={};this.url=""};
xEa=function(a,b){var c=b.indexOf("?");if(c>0){var d=WDa(b.substr(c+1));g.Ig(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=VDa(b);g.Ig(b,function(e,f){this.set(f,e)},a)};
yEa=function(a){var b=a.base.xe(),c=[];g.Ig(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=UDa(a.base)?"&":"?";return b+a+d};
sN=function(a,b){var c=new g.yM(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Ig(a.j,function(d,e){c.set(e,null)});
return c};
zEa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
tN=function(a){a.G=(0,g.hu)();a.started=0;a.timedOut=0;a.j=0};
AEa=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)};
uN=function(a,b){a[b]||(a[b]=new zEa);return a[b]};
vN=function(a){this.W=this.N=this.G=this.B=0;this.Z=this.K=!1;this.j=a;this.C=a.clone()};
BEa=function(a,b,c){if(BM(a.j))return!1;var d=uN(c,AM(a.j));if(d.timedOut<1&&d.j<1)return!1;d=d.timedOut+d.j;a=wN(a,b);c=uN(c,AM(a));return c.timedOut+c.j+0<d};
xN=function(a,b,c){a=b?wN(a,c):a.j;return new rN(a)};
wN=function(a,b){b=b?b.Pn:!1;a.D||(a.D=DM(a.C,b));return a.D};
yN=function(a,b,c){return AM(b?wN(a,c):a.j)};
zN=function(a,b,c,d){(d===void 0?0:d)>1?b=2E3:(c=uN(c,yN(a,a.hk(b,c),b)),b=Math.max(a.G,c.timedOut)+b.gE*(a.B-a.G)+.25*a.N,b=b>3?1E3*Math.pow(1.6,b-3):0);return b===0?!0:a.W+b<(0,g.hu)()};
CEa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
AN=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 vN(a)};
BN=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
CN=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new BN(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a};
DN=function(a,b){return new BN(a,a+b-1)};
DEa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
EN=function(a){if(!a)return new BN(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new BN(b,a),b.length>0))return b};
FN=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.bk=p;this.clipId=q===void 0?"":q;this.G=[];this.C="";this.Ma=-1;this.K=this.N=0;this.C=d;this.Ma=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Ob=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Oe=this.range?this.Ob+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.Me=this.startTime+this.duration*this.Ob/this.range.length,this.D=this.duration*this.B/this.range.length,
this.Rf=this.Me+this.D):EEa(this)};
EEa=function(a){a.Me=a.startTime;a.D=a.duration;a.Rf=a.Me+a.D};
FEa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ob+b.B===a.Ob+a.B:d};
GN=function(a){return a.type===1||a.type===2};
HN=function(a){return a.type===3||a.type===6};
IN=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ob+a.B===b.range.start+b.Ob:a.Ma===b.Ma?a.Ob+a.B===b.Ob:a.Ma+1===b.Ma&&b.Ob===0&&a.Oe:!1};
HEa=function(a,b){return a.Ma!==b.Ma&&b.Ma!==a.Ma+1||a.type!==b.type?!1:IN(a,b)?!0:Math.abs(a.Me-b.Me)<=1E-6&&a.Ma===b.Ma?!1:GEa(a,b)};
GEa=function(a,b){return IN(a,b)||Math.abs(a.Rf-b.Me)<=1E-6||a.Ma+1===b.Ma&&b.Ob===0&&a.Oe?!0:!1};
JN=function(a){return a.Ma+(a.Oe?1:0)};
IEa=function(a){a.length===1||g.Rl(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new BN(a[0].range.start+a[0].Ob,b.range.start+b.Ob+b.B-1)};
JEa=function(a){for(var b=1;b<a.length;b++)if(!IN(a[b-1],a[b]))return!1;return!0};
KEa=function(a){var b=0;a=g.w(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
KN=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.C;b.seg=String(a.Ma);a.range&&(b.range=a.range.start+a.Ob+"-"+(a.range.start+a.Ob+a.B-1));b.time=a.Me.toFixed(1)+"-"+(a.Me+a.D).toFixed(1);b.off=String(a.Ob);b.len=String(a.B);a.Oe&&(b.end="1");a.Ri()&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
LEa=function(a){return new FN(a.type,a.j,a.range,"getEmptyStubBefore"+a.C,a.Ma,a.startTime,0,a.Ob,0)};
MEa=function(a){return new FN(a.type,a.j,a.range,"getEmptyStubAfter"+a.C,a.Ma,a.startTime+a.duration,0,a.Ob+a.B,0)};
NEa=function(a,b,c,d){return new FN(a.type,a.j,a.range,"reslice"+a.C,a.Ma,a.startTime,a.duration,b,c,d,a.bk,a.clipId)};
OEa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Ob>=b.range.start+b.Ob&&a.range.start+a.Ob+a.B<=b.range.start+b.Ob+b.B:a.Ma===b.Ma&&a.Ob>=b.Ob&&(a.Ob+a.B<=b.Ob+b.B||b.Oe)};
PEa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.wg()?(a=a.j.BC(a),Vm(a,function(c){return PEa(c,b)})):a.Ma===b.Ma&&!!b.B&&b.Ob+b.B>a.Ob&&b.Ob+b.B<=a.Ob+a.B};
LN=function(a,b){var c=b.Ma;a.C="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.N,a.duration=b.duration,EEa(a)};
MN=function(a,b){var c=this;this.gb=a;this.D=this.j=null;this.G=this.oh=NaN;this.hk=this.requestId=null;this.Sc={Moa:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.gb[0].range&&this.gb[0].B>0&&(JEa(a)?(this.range=IEa(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=KEa(a)))};
NN=function(a){return!GN(a.gb[a.gb.length-1])};
ON=function(a){return a.gb[a.gb.length-1].type===4};
g.PN=function(a,b,c){c=a.hk===null?a.resource.hk(b,c,a.gb[0].type):a.hk;if(a.j){b=c?DM(a.j,b.Pn):a.j;var d=new rN(b);d.get("alr")||d.set("alr","yes");a.B&&xEa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new rN(new g.yM(a.B)):(d=xN(a.resource,c,b),a.B&&xEa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.gb[0].j.iy()&&a.gb.length===1&&a.gb[0].Ob&&d.set("range",a.gb[0].Ob+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.oh)||d.set("headm",a.oh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&
g.Ig(a.urlParams,function(e,f){d.set(f,e)});
return d};
QEa=function(a){if(a.range)return a.C;a=a.gb[0];return Math.round(a.D*a.j.info.qb)};
REa=function(a,b){return Math.max(0,a.gb[0].Me-b)};
QN=function(a,b,c,d,e,f){f=f===void 0?0:f;AN.call(this,a,b,d,void 0);this.G=c;this.ek=f;this.index=e||new g.GM};
SEa=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.lh=c;this.j=d||NaN;this.B=e||NaN};
RN=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""};
SN=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null};
TEa=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};
UEa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
TN=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
VEa=function(a){var b=a.C;a.C=[];return b};
WEa=function(){this.D=[];this.j=null;this.B={};this.C={}};
$Ea=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.w(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=XEa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=YEa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=ZEa(a,e));if(f==null)return;f.update(d);g.bc(c,VEa(f))}g.bc(a.D,c);fba(a.D,function(h){return h.startSecs*1E3+h.j})};
aFa=function(a){a.j&&(a.j.j=[]);g.Ig(a.B,function(b){b.j=[]});
g.Ig(a.C,function(b){b.j=[]})};
XEa=function(a){a.j||(a.j=new TN);return a.j};
YEa=function(a,b){a.B[b]||(a.B[b]=new TN);return a.B[b]};
ZEa=function(a,b){a.C[b]||(a.C[b]=new TN);return a.C[b]};
VN=function(a){var b=a===void 0?{}:a;a=b.ek===void 0?0:b.ek;var c=b.ao===void 0?!1:b.ao;var d=b.Qr===void 0?0:b.Qr;var e=b.hf===void 0?0:b.hf;var f=b.Ci===void 0?Infinity:b.Ci;var h=b.JB===void 0?0:b.JB;var l=b.Wd===void 0?!1:b.Wd;b=b.LI===void 0?!1:b.LI;g.GM.call(this);this.pn=this.yq=-1;this.fk=a;this.Qr=d;this.ao=c;this.hf=e;this.Ci=f;this.JB=h;((this.Wd=l)||isFinite(f)&&this.Ci>0)&&c&&UN&&(this.B=!1,this.C="postLive");this.LI=b};
WN=function(a,b){return gc(a.segments,function(c){return b-c.Ma})};
XN=function(a,b,c){c=c===void 0?{}:c;QN.call(this,a,b,"",void 0,void 0,c.ek||0);this.index=new VN(c)};
YN=function(a,b,c){AN.call(this,a,b);this.G=c;a=this.index=new g.GM;a.B=!1;a.C="d"};
bFa=function(a,b,c){var d=a.index.NK(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.qb*f;return new MN([new FN(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
cFa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.D;b=b.G.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 FM(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
ZN=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.isLocked=this.K=!1;this.G=this.info.j.tB()&&!this.info.Ob};
dFa=function(a,b){a.j.getLength();b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.nm;c=new ZN(new FN(a.info.type,a.info.j,a.info.range,a.info.C,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ob,b,!1,a.info.bk,a.info.clipId),c.fL);c.D=a.D;c.C=a.C;b=new ZN(new FN(a.info.type,a.info.j,a.info.range,a.info.C,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ob+b,a.info.B-b,a.info.Oe,a.info.bk,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
$N=function(a,b,c){var d;if(!(d=a.isLocked||b.isLocked||!IN(a.info,b.info)||a.info.Oe)){if(c=c===void 0?!1:c)c=a.j,d=b.j,c=!(d.Yf.length?Mua(c,d.Yf[0]):1);d=c}if(d)return null;c=new FN(a.info.type,a.info.j,a.info.range,a.info.C,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ob,a.info.B,a.info.Oe,a.info.bk,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.D+=d.D);c.Rf=d.Rf;c.Oe=d.Oe;d=new jB;kB(d,a.j);kB(d,b.j);c=new ZN(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};
aO=function(a){g.xG(a.info.j.info)||a.info.j.info.Pe();if(a.C!==-1)return a.C;if(a.B&&fEa(a.B))return a.C=fEa(a.B),a.C;if(g.xG(a.info.j.info)){var b=a.Pd();for(var c=a.info.j.j,d=NaN,e=NaN,f=0;YM(b,f);){var h=ZM(b,f);h.type===1936286840?e=h.data.getUint32(h.dataOffset+8):h.type===1836476516?e=g.VM(h):h.type===1952867444&&isNaN(d)&&(d=g.aN(h));f=$M(h.type)?f+8:f+h.size}!e&&c&&(e=WM(c));b=d/e}else b=new dN(a.Pd()),c=a.G?b:new dN(new DataView(a.info.j.j.buffer)),d=pN(c),c=b.pos,b.pos=0,qN(b)?hN(b,231)?
(d=kN(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.Me;return a.C};
fFa=function(a,b){a.timestampOffset>0&&(b-=a.timestampOffset);var c=aO(a)+b;eFa(a,c);a.timestampOffset=b};
eFa=function(a,b){g.xG(a.info.j.info)||a.info.j.info.Pe();a.C=b;if(g.xG(a.info.j.info)){var c=a.Pd();a=a.info.j.j;for(var d=NaN,e=NaN,f=0;YM(c,f);){var h=ZM(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.VM(h)));if(h.type===1952867444){!d&&a&&(d=WM(a));var l=g.aN(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=$M(h.type)?f+8:f+h.size}return!0}c=new dN(a.Pd());a=a.G?c:new dN(new DataView(a.info.j.j.buffer));d=pN(a);a=c.pos;c.pos=0;if(qN(c)&&hN(c,231))if(e=iN(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};
cO=function(a,b){b=b===void 0?!1:b;var c=bO(a);a=b?0:a.info.D;return c||a};
bO=function(a){g.xG(a.info.j.info)||a.info.j.info.Pe();if(a.B&&a.info.type===6)return a.B.ek;if(g.xG(a.info.j.info)){var b=a.Pd();var c=0;b=g.cN(b,1936286840);b=g.w(b);for(var d=b.next();!d.done;d=b.next())d=mEa(d.value),c+=d.PU[0]/d.zt;c=c||NaN;if(!(c>=0))a:{c=a.Pd();b=a.info.j.j;for(var e=d=0,f=0;YM(c,d);){var h=ZM(c,d);if(h.type===1836476516)e=g.VM(h);else if(h.type===1836019558){!e&&b&&(e=WM(b));if(!e){c=NaN;break a}var l=XM(h.data,h.dataOffset,1953653094),m=l;l=e;var n=XM(m.data,m.dataOffset,
1952868452);m=XM(m.data,m.dataOffset,1953658222);var p=KM(n);KM(n);p&2&&KM(n);n=p&8?KM(n):0;var q=KM(m),r=q&1;p=q&4;var t=q&256,u=q&512,y=q&1024;q&=2048;var A=LM(m);r&&KM(m);p&&KM(m);for(var C=r=0;C<A;C++){var F=t?KM(m):n;u&&KM(m);p&&C===0||!y||KM(m);q&&KM(m);r+=F}f+=r/l}d=$M(h.type)?d+8:d+h.size}c=f||NaN}c||g.qx(new g.At("Missing duration while parsing bmff",a.info.vc()))}else c=new dN(a.Pd()),a=a.G?c:new dN(new DataView(a.info.j.j.buffer)),c=vEa(c,pN(a));return c};
gFa=function(a){var b=a.Pd();var c=(c=g.UM(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.UM(b,0,1836476516))?g.VM(b):a?WM(a):NaN);return c};
hFa=function(a){return a.info.j.info.Pe()&&a.j.getUint8(0)===160};
iFa=function(a){if(!a.B){g.xG(a.info.j.info)||a.info.j.info.Pe();if(g.xG(a.info.j.info))var b=g.oEa(a.Pd());else{b=new dN(a.Pd());var c=b.pos;b.pos=0;var d=null,e=null;if(fN(b,[408125543,307544935]))for(var f=b.pos+iN(b,!0);b.pos<f;)if(iN(b,!1)!==29555)lN(b);else for(var h=b.pos+iN(b,!0);b.pos<h;)if(iN(b,!1)!==26568)lN(b);else for(var l=b.pos+iN(b,!0);b.pos<l;){var m=iN(b,!1);if(m===17543){if(m=tEa(b),m=TM(m))if(e)for(var n=g.w(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=tEa(b),d||(d=m)):lN(b)}b.pos=c;b=e?new RM(e,d):null}a.B=b}};
jFa=function(a){if(g.xG(a.info.j.info))bN(a.Pd(),1836019574),bN(a.Pd(),1718909296);else{var b=new dN(a.Pd());wEa(b);hN(b,524531317,!0);a.j=a.j.split(b.start+b.pos).nm}a.G=!1};
dO=function(a){if(!a.K){if(g.xG(a.info.j.info)){var b=a.Pd();var c=XM(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=uEa(new dN(a.Pd()));b&&(a.info.j.j=b,a.K=!0)}};
g.eO=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Xg=new Float64Array(128)};
kFa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
fO=function(a){a.offsets.length<a.count+1&&a.resize(a.offsets.length*2)};
gO=function(a,b,c,d){AN.call(this,a,b,c,d);var e=this;this.G=null;this.Sc={YF:function(f,h,l,m){return e.YF(f,h,l,m)}};
this.index=new g.eO};
lFa=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};
nFa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return mFa[a];return null};
g.hO=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
oFa=function(a){return iO(function(b,c){return g.hs(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.pFa=function(a){var b;a.responseType&&a.responseType!=="text"?a.responseType==="arraybuffer"&&(b=rB(new Uint8Array(a.response))):b=a.responseText;return!b||b.length>2048?"":b.indexOf("https://")===0?b:""};
iO=function(a,b,c){b.match(qFa);return a(b,c).then(function(d){var e=g.pFa(d.xhr);return e?iO(a,e,c):d.xhr})};
jO=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
nO=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.Qx.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Va=this.duration=0;this.isPremiere=this.Wd=this.D=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Ci=this.hf=0;this.isOtf=this.Wb=!1;this.Ua=(0,g.hu)();this.oa=Infinity;this.j={};this.C=new Map;this.state=this.Cg=0;this.timeline=null;this.isManifestless=!1;this.Aa=[];this.K=null;this.Ca=0;this.G="";this.Fa=NaN;this.Ka=this.Gb=this.timestampOffset=this.N=
0;this.wl=this.gq=NaN;this.qc=0;this.Ta=this.W=!1;this.Ja=[];this.Oa={};this.qa=NaN;this.Sc={kna:function(l){kO(d,l)}};
var e;this.Ya=(e=b)==null?void 0:e.bb("html5_use_network_error_code_enums");rFa=!!b&&b.bb("html5_modern_vp9_mime_type");var f;lO=!((f=b)==null||!f.bb("html5_enable_flush_during_seek"))&&g.ws();var h;mO=!((h=b)==null||!h.bb("html5_enable_reset_audio_decoder"))&&g.ws()};
sFa=function(a){return g.Lg(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})};
PDa=function(a){return g.Lg(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
rM=function(a){return g.Lg(a.j,function(b){return!!b.info.qe})};
tFa=function(a){return g.Lg(a.j,function(b){return DG(b.info.mimeType)})};
uFa=function(a){return g.Lg(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})};
vFa=function(a){return g.Lg(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
wFa=function(a){return g.Lg(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})};
xFa=function(a){return g.Lg(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})};
yFa=function(a){return kea(a.j,function(b){return b.info.video?b.sT():!0})};
oM=function(a){return g.Lg(a.j,function(b){return BM(b.resource.j)})};
kO=function(a,b){a.j[b.info.id]=b;a.C.set(AG(b.info,a.Wb),b)};
KGa=function(a,b){return jO({itag:b.itag||"",lmt:a.Wb?0:b.lmt||0,xtags:b.xtags})};
qO=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(CG(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=bIa[a.stereoLayout]);var r=nFa(a)||void 0;if(n==null?0:n.primaries)var t=cIa[n.primaries]||void 0;h=new nG(h,e,l,p,q,void 0,m,r,t);d=oO(d,h,qG[a.itag||""]);lO&&(d+="; enableflushduringseek=true");mO&&(d+="; enableresetaudiodecoder=true")}var u;if(BG(d)){var y=
a.audioSampleRate;q=a.audioTrack;y=new kG(y?+y: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.hO(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 lFa(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.w(m);for(n=m.next();!n.done;n=m.next())(n=pO[n.value])&&(C[n]=b[n])}return new rG(f,d,{audio:y,video:h,Yb:u,qe:C,qb:q,ex:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
rO=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(CG(d)){var h=(a.size||"640x360").split("x");h=new nG(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=oO(d,h,qG[a.itag]);lO&&(d+="; enableflushduringseek=true");mO&&(d+="; enableresetaudiodecoder=true")}var l;if(BG(d)){var m=new kG(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.hO(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 lFa(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.w(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new rG(e,d,{audio:m,video:h,Yb:l,qe:r,qb:f,ex:c,contentLength:p,lastModified:q,captionTrack:n,
streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
gIa=function(a){return Vm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
HIa=function(a){return Vm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
IIa=function(a,b){return a.timeline?cc(a.timeline.D,b):a.Aa.length?cc(a.Aa,b):[]};
sO=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.yM(a,!0);a.set("alr","yes");c&&(c=mCa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
MIa=function(a,b){var c=RN(b,"id");c=c.replace(":",";");var d=RN(b,"mimeType"),e=RN(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(RN(b,"bandwidth"))/8;var f=Number(SN(b,"BaseURL").getAttribute(a.G+":contentLength")),h=a.duration&&f?f/a.duration:0;if(CG(d)){var l=Number(RN(b,"width"));var m=Number(RN(b,"height")),n=Number(RN(b,"frameRate")),p=JIa(RN(b,a.G+":projectionType"));a:switch(RN(b,a.G+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new nG(l,m,n,p,q)}if(BG(d)){var r=Number(RN(b,"audioSamplingRate"));var t=Number(RN(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=KIa(RN(b,a.G+":spatialAudioType"));r=new kG(r,t,m);a:{t=RN(b,"lang")||"und";if(m=SN(b,"Role"))if(p=RN(m,"value")||"",g.Pg(LIa,p)){m=t+"."+LIa[p];n=p==="main";a=RN(b,a.G+":langName")||t+" - "+p;t=new g.hO(a,m,n);break a}t=void 0}}if(b=SN(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 rG(c,d,{audio:r,video:l,Yb:t,qe:u,qb:e,ex:h,contentLength:f})};
JIa=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"}};
KIa=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"}};
OIa=function(a,b){b=b===void 0?"":b;a.state=1;a.Ua=(0,g.hu)();return oFa(b||a.sourceUrl).then(function(c){if(!a.Ia()){a.Cg=c.status;c=c.responseText;var d=new DOMParser;c=kg(d,Wma(c),"text/xml").getElementsByTagName("MPD")[0];a.oa=TEa(RN(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.w(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.G=d;a.isLive=a.oa<Infinity&&a.isLivePlayback;a.Va=
Number(RN(c,a.G+":earliestMediaSequence"))||0;if(d=Date.parse(UEa(RN(c,a.G+":mpdResponseTime"))))a.Ca=((0,g.hu)()-d)/1E3;a.isLive&&c.getElementsByTagName("SegmentTimeline").length<=0||g.Rl(c.getElementsByTagName("Period"),a.vda,a);a.state=2;a.publish("loaded");NIa(a)}return a}).fl(function(c){if(c instanceof fs){var d=c.xhr;
a.Cg=d.status}a.state=3;a.publish("loaderror");return Ki(d)})};
PIa=function(a,b,c){return OIa(new nO(a,b,c),a)};
tO=function(a){return a.isLive&&(0,g.hu)()-a.Ua>=a.oa};
QIa=function(a){a.K&&a.K.stop()};
NIa=function(a){var b=a.oa;isFinite(b)&&(tO(a)?a.refresh():(b=Math.max(0,a.Ua+b-(0,g.hu)()),a.K||(a.K=new g.Ep(a.refresh,b,a),g.P(a,a.K)),a.K.start(b)))};
RIa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.ud()+1}return 0};
uO=function(a){return a.Gb?a.Gb-(a.N||a.timestampOffset):0};
vO=function(a){return a.Ka?a.Ka-(a.N||a.timestampOffset):0};
wO=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()&&!DG(b[c].info.mimeType)){b=0;for(c=d.Eo();c<=d.ud();c++)b+=d.getDuration(c);b/=d.TA();b=Math.round(b/.5)*.5;d.TA()>10&&(a.Fa=b);return b}if(a.isLive&&(d=b[c],d.ek))return d.ek}return NaN};
SIa=function(a,b){a=mea(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Pi(b);return a.getStartTime(c)===b?b:c<a.ud()?a.getStartTime(c+1):NaN};
TIa=function(a,b){if(!a.j["0"]){var c=new rG("0","fakesb",{video:new nG(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new QN(new g.yM("http://www.youtube.com/videoplayback"),c,"fake"):new gO(new g.yM("http://www.youtube.com/videoplayback"),c,new BN(0,0),new BN(0,0))}};
xO=function(a){if(a.isManifestless)for(var b in a.j)a.j[b].index.segments=[]};
yO=function(a,b,c){for(var d in a.j){var e=DG(a.j[d].info.mimeType)||a.j[d].info.dg();if(c===e){e=a.j[d].index;var f=WN(e,b);f>=0&&e.segments.splice(f,1)}}};
UIa=function(a){for(var b in a.j)DG(a.j[b].info.mimeType)||aEa(a.j[b].index,Infinity)};
zO=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.ao&&(f&&(e.yq=Math.max(e.yq,f)),h&&(e.pn=Math.max(e.pn||0,h)))}c&&(a.qa=c/1E3)};
VIa=function(a){a.Ka=0;a.Gb=0;a.qc=0};
AO=function(a){return a.Ta&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
oO=function(a,b,c){BO===null&&(BO=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(rFa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return BO||c!=="9"&&c!=="("?BO||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!BO&&!CO||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(".")+'"'};
EO=function(a,b,c){a=""+a+(b>49?"p60":b>32?"p48":"");b=TL()[a];if(b!=null&&b>0)return b;b=DO.get(a);if(b!=null&&b>0)return b;c=c==null?void 0:c.get(a);return c!=null&&c>0?c:8192};
WIa=function(a){this.Ba=a;this.Bc=this.mp=this.Ka=this.G=this.D=this.qa=this.Ja=this.Ta=this.Aa=!1;this.N=this.K=0;this.ib=!1;this.Ca=!0;this.Ya=!1;this.Cj=0;this.Fa=!1;this.Tb=Infinity;this.vJ=!1;this.jd=!0;this.Ua=this.Oa=!1;this.j={};this.Kb=this.B=this.W=!1;this.Vf=0;this.qc=this.disableAv1=this.rb=this.kb=!1;this.Qb=this.Ba.Vb();this.Bb=this.Ba.experiments.bb("html5_enable_vp9_fairplay");this.le=this.Ba.L("html5_force_av1_for_testing");this.Va=g.UD(this.Ba.experiments,"html5_av1_ordinal_cap");
this.Ad=this.Ba.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Pc=this.Ba.L("html5_account_onesie_format_selection_during_format_filter");this.qb=g.UD(this.Ba.experiments,"html5_max_byterate");this.Z=this.Ba.L("html5_prefer_high_aac_by_default");this.Gb=this.Ba.L("html5_enable_iamf_audio");this.kd=this.Ba.experiments.bb("html5_allow_capability_merge")};
QDa=function(a){if(a.Ta)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Fa&&(b.unshift("1"),b.unshift("1h"));a.mp&&b.unshift("h");a.oa&&(b=(XIa[a.oa]||[a.oa]).concat(b));return b};
KDa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Vf===1&&(a.qa&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)),a.Gb&&(b=["i","I"].concat(b)));a.Aa&&(b=["so","sa"].concat(b));!a.Bc||a.Ka||a.C||b.unshift("a");!a.Z&&a.Ja&&b.unshift("ah");a.C&&(b=(XIa[a.C]||[a.C]).concat(b));return b};
FO=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(wM(a.G,xM.AV1_CODECS)&&wM(a.G,xM.HEIGHT)&&wM(a.G,xM.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=tCa();if(e)return b.localPref=e}catch(l){}d=1080;e=navigator.hardwareConcurrency;e<=2&&(d=480);b.coreCount=e;if(e=g.UD(a.experiments,"html5_default_av1_threshold"))d=b["default"]=e;!a.L("html5_disable_av1_arm_check")&&Fna()&&(b.isArm=1,d=240);if(a=a.G.G)b.mcap=a,d=Math.max(d,a);if(c){var f,h;if(a=(f=c.videoInfos.find(function(l){return uG(l)}))==
null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
c=c.videoInfos[0].video;f=Math.min(EO("1",c.fps),EO("1",30));b.perfCap=f;d=Math.min(d,f);c.isHdr()&&!a&&(b.hdr=1,d*=.75)}else c=EO("1",30),b.perfCap30=c,d=Math.min(d,c),c=EO("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
GO=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Va=this.keySystemAccess=null;this.Tw=this.Uw=-1;this.Dm=null;this.C=!!d&&d.bb("edge_nonprefixed_eme");d&&d.bb("html5_enable_vp9_fairplay")};
IO=function(a){return a.C?!1:!a.keySystemAccess&&!!HO()&&a.keySystem==="com.microsoft.playready"};
JO=function(a){return a.keySystem==="com.microsoft.playready"};
KO=function(a){return!a.keySystemAccess&&!!HO()&&a.keySystem==="com.apple.fps.1_0"};
LO=function(a){return a.keySystem==="com.youtube.fairplay"};
MO=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"};
g.NO=function(a){return a.flavor==="fairplay"};
HO=function(){var a=window,b=a.MSMediaKeys;zs()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
PO=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.fG&&!g.ws())return dq("45");if(g.Lu||g.Hm)return a.bb("edge_nonprefixed_eme");if(g.OO)return dq("47");if(g.$t){if(a.bb("html5_enable_safari_fairplay"))return!1;if(a=g.UD(a,"html5_safari_desktop_eme_min_version"))return dq(a)}return!0};
YIa=function(a,b,c,d){var e=xs(),f=(c=e||c&&zs())?["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.x(f),g.x(QO.playready)):[].concat(g.x(QO.playready),g.x(f))};
SO=function(){this.B=this.oo=0;this.j=Array.from({length:RO.length}).fill(0)};
VO=function(a,b){var c=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){TO(c,d)},function(d){UO(c,d)})};
YO=function(a){if(WO(a)){if(a instanceof VO)return a;if(XO(a))return new VO("wait",{promise:a})}return new VO("done",{result:a})};
ZO=function(a){return new VO("fail",{error:a})};
$O=function(a){try{return YO(a())}catch(b){return ZO(b)}};
bP=function(a,b){var c=new VO("wait",{});a.onSuccess.push(function(d){try{var e=b(d);TO(c,e)}catch(f){UO(c,f)}});
a.onFailure.push(function(d){UO(c,d)});
aP(a);return c};
cP=function(a,b){var c=new VO("wait",{});a.onSuccess.push(function(d){TO(c,d)});
a.onFailure.push(function(d){try{var e=b(d);TO(c,e)}catch(f){UO(c,f)}});
aP(a);return c};
TO=function(a,b){if(WO(b)){if(XO(b)){b.then(function(c){TO(a,c)},function(c){UO(a,c)});
return}if(b instanceof VO){bP(b,function(c){TO(a,c)});
cP(b,function(c){UO(a,c)});
return}}a.currentState="done";a.result=b;aP(a)};
UO=function(a,b){a.currentState="fail";a.error=b;aP(a)};
aP=function(a){if(a.currentState==="done"){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)}else if(a.currentState==="fail")for(b=a.onFailure,a.onSuccess=[],a.onFailure=[],b=g.w(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)};
ZIa=function(){};
$Ia=function(){this.startTimeMs=(0,g.hu)();this.j=!1};
aJa=function(){this.j=new ZIa};
bJa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new SO),a.j[b].Fg(c,d))};
cJa=function(a,b,c,d,e){var f=(0,g.hu)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.oo)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;bJa(a,l,f-d,e)}return b};
dP=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return cJa(a,h,c,d,e)};
if(XO(b))return b.then(f);if(dJa(b))return bP(b,f)}return cJa(a,b,c,d,e)};
eJa=function(){};
eP=function(a,b,c,d,e){d=d===void 0?!1:d;g.O.call(this);this.Ba=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)};
gJa=function(a,b){a.callback=b;a.D=[];PO(a.Ba.experiments)?fP(a):fJa(a)};
fP=function(a){if(!a.Ia())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=hJa(a,c);if(gP&&gP.keySystem===b&&gP.pea===JSON.stringify(d))a.ma("remksa",{re:!0}),iJa(a,c,gP.keySystemAccess);else{var e,f;a.ma("remksa",{re:!1,ok:(f=(e=gP)==null?void 0:e.keySystem)!=null?f:""});gP=void 0;(hP.isActive()?hP.Iv("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(yL(function(h){iJa(a,c,h,d)}),yL(function(){a.G=!a.G&&a.C[a.B[0]].flavor===
"widevine";
a.G||a.B.shift();fP(a)}))}}};
iJa=function(a,b,c,d){if(!a.Ia()){d&&(gP={keySystem:b.keySystem,keySystemAccess:c,pea:JSON.stringify(d)});b.keySystemAccess=c;if(JO(b)){c=dG();d=g.w(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.w(c.audioCapabilities),e=d.next();!e.done;e=d.next())jJa(a,b,e.value);if(c.videoCapabilities)for(c=g.w(c.videoCapabilities),d=c.next();!d.done;d=c.next())jJa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&MO(b)?(a.B.shift(),fP(a)):a.callback(a.D)}};
jJa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
hJa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&LO(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];JO(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.w(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.fG&&g.us("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"}),iP(a.Ba)==="MWEB"&&(Fs()||vs())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
fJa=function(a){if(HO()&&(g.$t||Bs&&a.L("html5_drm_support_ios_mweb")))a.D.push(new GO("fairplay","com.apple.fps.1_0","",a.Ba.experiments));else{var b=kJa(),c=g.Ub(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)};
kJa=function(){var a=HO();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=dG();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
lJa=function(a){this.experiments=a;this.C=0;this.oa=(this.K=this.L("html5_streaming_resilience"))?.5:.25;this.Z=(this.D=this.experiments.bb("html5_consider_end_stall"))&&jP;this.B=this.experiments.bb("html5_measure_max_progress_handling");this.N=this.L("html5_treat_requests_pre_elbow_as_metadata");this.j=this.L("html5_use_media_for_elbow");this.G=this.L("html5_media_time_weight");this.W=g.UD(this.experiments,"html5_streaming_fallback_byterate")};
mJa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=Fr(b||"","&");a={};b=g.w(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.UD=function(a,b){a=a.flags[b];JSON.stringify(a);return Number(a)||0};
kP=function(a,b){return(a=a.flags[b])?a.toString():""};
nJa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
oJa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.x(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};
qJa=function(a){return pJa.then(a)};
lP=function(a,b,c){this.experiments=a;this.Ca=b;this.Fa=c===void 0?!1:c;this.W=!!g.Pa("cast.receiver.platform.canDisplayType");this.Z={};this.oa=!1;this.C=new Map;this.N=!0;this.B=this.D=!1;this.j=new Map;this.G=0;this.qa=this.experiments.bb("html5_disable_vp9_encrypted");b=g.Pa("cast.receiver.platform.getValue");this.Aa=g.UD(this.experiments,"html5_kaios_max_resolution");this.K=!this.W&&b&&b("max-video-resolution-vpx")||null;a.bb("html5_probe_av1_capabilities")&&rJa(this)};
TDa=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.Pe()&&xs()&&a.experiments.bb("html5_appletv_disable_vp9"))return"dwebm";if(uG(b)&&a.oa)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(wM(a,xM.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.fG?dq(53):g.OO&&dq(64)))return"dopus";
var f;if(a.Aa&&mP&&((f=b.video)==null?void 0:f.j)>a.Aa)return"kaios";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[xM.WIDTH.name]=b.video.width),b.video.height&&(c[xM.HEIGHT.name]=b.video.height),b.video.fps&&(c[xM.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[xM.EOTF.name]=b.video.B),b.qb&&(c[xM.BITRATE.name]=b.qb*8*f),b.jb==="("&&(c[xM.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType==="EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType===
"MESH")&&(c[xM.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[xM.CHANNELS.name]=b.audio.numChannels);a.D&&sG(b)&&(c[xM.EXPERIMENTAL.name]="allowed");f=g.w(Object.keys(xM));for(var h=f.next();!h.done;h=f.next()){h=xM[h.value];var l;if(l=c[h.name])if(l=!(h===xM.EOTF&&b.mimeType.indexOf("vp09.02")>0)){l=h;var m=b;l=!(a.experiments.bb("html5_ignore_h264_framerate_cap")&&l===xM.FRAMERATE&&sxa(m))}if(l)if(wM(a,h))if(a.K){if(a.K[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];
else if(tG(b)&&h===xM.EOTF)return"dvp92"}a.W&&b.video&&b.video.j>1080&&b.qe&&(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.bb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
nP=function(){var a=vs()&&!dq(29),b=g.us("google tv")&&g.us("chrome")&&!dq(30);return a||b?!1:xxa()};
sJa=function(a,b,c){var d=480;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&TDa(a,e,c)===!0&&(d=f)}return d};
g.oP=function(a,b){b=b===void 0?!1:b;return nP()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(dG(),"application/x-mpegURL")?!0:!1};
uJa=function(a){tJa(function(){for(var b=g.w(Object.keys(xM)),c=b.next();!c.done;c=b.next())wM(a,xM[c.value])})};
wM=function(a,b){b.name in a.Z||(a.Z[b.name]=vJa(a,b));return a.Z[b.name]};
vJa=function(a,b){if(a.K)return!!a.K[b.name];if(b===xM.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===xM.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)};
wJa=function(a){a.D||(a.D=!0,a.B=!0)};
xJa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).f9);a.C.set(b,{f9:c+1,w2:Math.pow(2,c+1)});a.B=!0};
sM=function(a){for(var b=[],c=g.w(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(".")};
LDa=function(a,b){for(var c=new Map,d=g.w(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};
NDa=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,jb:b,cg: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;wM(a,xM.BITRATE)&&(h.maxBitrateBps=c.qb*8);h.qG=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,jb:b,cg:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,qG:c.qG},wM(a,xM.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
ODa=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,jb:b,cg: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,wM(a,xM.BITRATE)&&(b.maxBitrateBps=c.qb*
8),b.qG=f==null?void 0:f.isHdr()),a.j.set(d,b))};
rJa=function(a){var b;if((b=navigator.mediaCapabilities)!=null&&b.decodingInfo){b={type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.08M.08"',width:1920,height:1080,bitrate:2E6,framerate:60}};navigator.mediaCapabilities.decodingInfo(b).then(function(d){d.smooth&&d.powerEfficient&&(a.G=Math.max(a.G,1080))});
var c=b.video;c.contentType='video/mp4; codecs="av01.0.12M.08"';c.width*=2;c.height*=2;c.bitrate*=16;navigator.mediaCapabilities.decodingInfo(b).then(function(d){d.smooth&&d.powerEfficient&&(a.G=Math.max(a.G,2160))})}};
pP=function(){g.Qx.call(this);this.items={}};
qP=function(){g.eC.apply(this,arguments)};
rP=function(){g.fC.apply(this,arguments)};
yJa=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)};
zJa=function(a){a.B||(a.B=new qP(a.j));return a.B};
sP=function(a){try{return rc(a)}catch(b){return null}};
AJa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?sP(b.clientKey):null;var c=b.encryptedClientKey?sP(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.hu)():null;a&&c&&d&&(this.j=new yJa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=sP(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
uP=function(){this.data=new Uint8Array(2048);this.pos=0;tP||(tP=wB("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
vP=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
wP=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.Sm=!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=BJa(this);this.D=c;this.K=d};
BJa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
xP=function(a,b,c){g.O.call(this);this.policy=a;this.oa=b;this.bd=c;this.Ca=this.Oa=0;this.Aa=-1;this.W=this.D=0;this.qa=!1;this.interruptions=[];this.B=[{stamp:0,net:0,max:0}];this.Ja=this.G=(0,g.hu)();this.N=new wP(4,1,.6,.4);this.Ua=new wP(4,1,.6,.4);this.K=new wP(20,1,.5,.4);this.C=a.D?new vP(a.j):new wP(a.j,20,.5,.4);this.Fa=new wP(5,1,.25);this.Z=new wP(30,1,.5);a=g.mt("yt-player-bandwidth")||{};b=this.policy.B;if(a.byterate>0)b=a.byterate,this.qa=!0;else{var d;c=(((d=navigator.connection)==
null?void 0:d.downlink)||0)*65536;c>0&&(b=c,this.qa=!0)}this.C.Cl(this.policy.K,b);a.delay>0&&this.N.Cl(1,Math.min(a.delay,2));a.stall>0&&this.K.Cl(1,a.stall);a.init>0&&(this.Ja=Math.min(a.init,this.Ja));a.interruptions&&(this.B=this.B.concat(a.interruptions),this.B.length>16&&this.B.pop());this.Aa=(0,g.hu)();this.policy.Z>0&&(this.Ka=new g.Ep(this.Ta,this.policy.Z,this),g.P(this,this.Ka),this.Ka.start())};
yP=function(a,b,c,d){a.C.Cl(d===void 0?b:d,c/b);a.G=(0,g.hu)()};
CJa=function(a){a.D||(a.D=(0,g.hu)());a.policy.oa&&(a.G=(0,g.hu)())};
DJa=function(a,b){if(a.D){var c=b-a.D;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.W+=c}a.D=b};
zP=function(a,b,c){a.N.Cl(1,b);a.Ua.Cl(1,c)};
AP=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Fa.Cl(b,c/b);a.G=(0,g.hu)();e||a.Z.Cl(1,b-d);f||(a.D=0);a.Aa>-1&&(0,g.hu)()-a.Aa>3E4&&EJa(a)};
BP=function(a,b,c){b=Math.max(b,2048);a.K.Cl(1,c/b)};
CP=function(a){a=a.N.Qg()+a.Ua.Qg()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)};
DP=function(a,b,c){isNaN(c)||(a.Ca+=c);isNaN(b)||(a.Oa+=b)};
EP=function(a){a=a.C.Qg();return a>0?a:1};
FP=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=EP(a);d=1/((a.K.Qg()||0)*a.policy.qa+1/d);var e=a.Fa.Qg();e=e>0?e:1;var f=Math.max(d,e);a.policy.G>0&&e<d&&(f=Math.min(a.policy.G,1),f=(1-f)*d+f*e);if(!b)return f;b=1E-9+(a.policy.Aa?a.N.Qg()||0:CP(a));c=f*Math.min(1,c/(f*b));a.policy.C||(a=((a.Z.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
FJa=function(a){var b={delay:CP(a),stall:a.K.Qg()||0,byterate:EP(a),init:a.Ja},c=a.B[0];c.stamp=Math.round(a.G/36E5)*36E5;c.net=Math.ceil(a.W);c.max=a.interruptions[0]||0;b.interruptions=a.B;return b};
EJa=function(a){g.lt("yt-player-bandwidth",FJa(a),2592E3);a.Aa=(0,g.hu)();a.qa=!0};
GP=function(a){return(0,g.hu)()-a.G>=4E3};
HJa=function(a,b,c){c=c===void 0?!1:c;b.Ct=a.Ca;b.Yv=a.Oa;b.bandwidthEstimate=FP(a);if(a.policy.N||c)b.j={ttr:(a.N.Qg()*1E3).toFixed(),ttm:(a.Ua.Qg()*1E3).toFixed(),d:CP(a).toFixed(2),st:((a.K.Qg()||0)*1E9).toFixed(2),bw:a.C.Qg().toFixed(0),abw:a.Fa.Qg().toFixed(0),v50:a.Z.percentile(.5).toFixed(2),v92:a.Z.percentile(.92).toFixed(2),v96:a.Z.percentile(.96).toFixed(2),v98:a.Z.percentile(.98).toFixed(2)},b=b.j,a.policy.N?b["int"]=GJa(a):(b["int"]=a.interruptions.join("."),b.intDur=Math.ceil(a.W),b.intHist=
a.B.map(function(d){return d.stamp+"_"+d.net+"_"+d.max}).join("."))};
GJa=function(a){a.j?a.j.reset():a.j=new uP;a.j.add(a.W);a.j.add(a.interruptions.length);for(var b=0,c=a.interruptions.length-1;c>=0;c--){var d=a.interruptions[c];a.j.add(d-b);b=d}b=0;for(c=a.B.length-1;c>=0;c--){d=a.B[c];var e=d.stamp/36E5;a.j.add(e-b);b=e;a.j.add(d.net/1E3);a.j.add(d.max)}return a.j.Fi()};
IJa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.K=.5;this.C=this.D=!1;this.Aa=this.L("html5_use_ttr_for_bandwidth");this.N=this.L("html5_interruption_logging_update");this.G=g.UD(this.experiments,"html5_auxiliary_estimate_weight");this.qa=g.UD(this.experiments,"html5_stall_factor")||1;this.Z=g.UD(this.experiments,"html5_check_for_idle_network_interval_ms");this.W=this.experiments.bb("html5_trigger_loader_when_idle_network");this.oa=this.experiments.bb("html5_sabr_fetch_on_idle_network_preloaded_players")};
KJa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.O.call(this);var c=this;this.values=a;this.us=b;this.B={};this.C=this.j=0;this.D=new g.Ep(function(){JJa(c)},1E4);
g.P(this,this.D)};
HP=function(a,b){LJa(a,b);return a.values[b]&&a.us[b]?a.values[b]/Math.pow(2,a.j/a.us[b]):0};
LJa=function(a,b){a.values[b]||(b=pCa(),a.values=b.values||{},a.us=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
JJa=function(a){var b=pCa();if(b.values){b=b.values;for(var c={},d=g.w(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]=HP(a,e);a.B=c}b=a.us;c={};c.values=a.B;c.halfLives=b;g.lt("yt-player-memory",c,2592E3)};
ZP=function(a,b,c,d,e){g.O.call(this);this.webPlayerContextConfig=b;this.Am=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Pj=this.Ee=this.kb=this.Jj=this.userDisplayName=this.userDisplayImage=this.Zi="";this.j={};this.Qb={};this.controlsType="0";this.jd=NaN;this.rb=!1;this.Vf=(0,g.hu)();this.Gb=0;this.Cm=this.Lp=!1;this.Tn=!0;this.preferGapless=this.xl=this.Uf=this.C=this.zm=this.Af=!1;this.gh=[];this.Pn=!0;this.Wf=!1;a=a?g.Yg(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 mJa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:Ls("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:Ls("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(X){f=""}this.nf=f;this.ancestorOrigins=
(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=Is(!1,b?b.isEmbed:a.is_embed);if(b&&b.device){if(d=b.device,d.androidOsExperience&&(this.j.caoe=""+d.androidOsExperience),d.androidPlayServicesVersion&&(this.j.capsv=""+d.androidPlayServicesVersion),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=kP(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Qb.cchip=d.chipset),d.cobaltAppVersion&&(this.Qb.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Qb.cfrmver=
d.firmwareVersion),d.deviceYear&&(this.Qb.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||MJa(this)&&b.loaderUrl?b.loaderUrl||"":this.nf:this.D||MJa(this)&&a.loaderUrl?Ls("",a.loaderUrl):this.nf;this.D&&g.Oa("yt.embedded_player.embed_url",this.loaderUrl);this.N=EE(this.loaderUrl,NJa);d=this.loaderUrl;var h=h===void 0?!1:h;this.xq=DE(EE(d,OJa),d,h,"Trusted Ad Domain URL");this.Bc=Is(!1,a.privembed);this.protocol=this.nf.indexOf("http:")===
0?"http":"https";this.Ca=FE((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||FE(this.nf)||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=Js(d,h,PJa):h&&(d="embedded");this.Ja=d;Qqa();h=null;d=b?b.playerStyle:a.ps;f=g.Wb(QJa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.K=g.Wb(QJa,this.playerStyle);this.houseBrandUserStatus=b==null?void 0:b.houseBrandUserStatus;this.qa=this.K&&this.playerStyle!=="play"&&
this.playerStyle!=="jamboard";this.gq=!this.qa;this.Oa=Is(!1,a.disableplaybackui);this.disablePaidContentOverlay=Is(!1,b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=Is(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(dG().defaultPlaybackRate?IP||g.Es||mP?g.OO&&dq("20")||g.fG&&dq("4")||g.JP&&dq("11")||As():!(g.JP&&!g.us("chrome")||IP||g.us("android")||g.us("silk")):!1);this.Np=Is(!1,a.enable_faster_speeds);this.B=Is(this.playerStyle===
"blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Ta=Ds()||Fs();this.Sp=this.L("mweb_allow_background_playback")?!1:this.B&&!this.K;this.Ua=iG();this.Sq=g.KP;var l;this.Dm=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.Op=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.Qp=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.Rn=g.LP(this)&&!this.Dm||
Is(!MP(this)&&!NP(this)&&!this.K,n);this.Im=b?!!b.mobileIphoneSupportsInlinePlayback:Is(!1,a.playsinline);l=this.B&&OP&&PP!=null&&PP>0&&PP<=2.3;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.LP(this)&&this.B;n=this.B&&!this.Z;m=g.QP(this)||!l&&Is(n,m)?"3":"1";this.disableOrganicUi=!(b==null||!b.disableOrganicUi);n=b?b.controlsType:a.controls;this.controlsType=this.disableOrganicUi?"0":n!=="0"&&n!==0?m:"0";this.jk=this.B;this.color=Js("red",b?b.progressBarColor:a.color,RJa);this.Hq=this.controlsType===
"3";this.qc=!this.D;this.Sn=(m=!this.qc&&!NP(this)&&!this.qa&&!this.K&&!MP(this))&&!this.Hq&&this.controlsType==="1";this.Nd=g.RP(this)&&m&&this.controlsType==="0"&&!this.Sn&&!(b==null?0:b.embedsEnableEmc3ds);this.Br=this.Kq=l;this.kd=(this.controlsType==="3"||this.B||Is(!1,a.use_media_volume))&&!this.Z;this.Un=Bs&&!g.oc(601)?!1:!0;this.Rp=this.D||!1;this.Pc=NP(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Ls("",b?b.widgetReferrer:a.widget_referrer);var p;
b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||Is(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Sj=this.L("enable_cast_for_web_unplugged")&&g.SP(this)&&l||g.vz(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(NP(this)||g.RP(this)||g.TP(this));this.yr=!!window.document.pictureInPictureEnabled||hG();p=b?!!b.supportsAutoplayOverride:Is(!1,a.autoplayoverride);this.Zh=!(this.B&&!g.LP(this))&&!g.us("nintendo wiiu")||p;this.Yi=(b?!!b.enableMutedAutoplay:Is(!1,a.mutedautoplay))&&!1;p=(NP(this)||
MP(this))&&this.playerStyle==="blazer";this.Yk=b?!!b.disableFullscreen:!Is(!0,a.fs);l=g.Ps(g.UP(this))&&g.LP(this);this.Bb=!this.Yk&&(p||g.Ws())&&!l;this.wl=this.L("uniplayer_block_pip")&&(vs()&&dq(58)&&!Fs()||Ku);p=g.LP(this)&&!this.Dm;var q;b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Ad=p||Is(!this.K,q);this.Qn=Is(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.W=Fs()&&PP>0&&PP<=4.4?"_top":"_blank";this.hh=g.TP(this);this.vl=Is(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.oa=q;this.Aa=Ls("",b?b.authorizedUserIndex:a.authuser);this.Tb=g.LP(this)&&
(this.Bc||!Dna()||this.Ta);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.le=((q=!this.Tb)||!!this.Aa&&q)&&Is(!this.qa,this.N?r:void 0);this.mf=b?b.isMobileDevice||!!b.disableKeyboardControls:Is(!1,a.disablekb);this.loop=Is(!1,a.loop);this.pageId=Ls("",b?b.initialDelegatedSessionId:a.pageid);this.Zq=Is(!0,a.canplaylive);this.ib=Is(!1,a.livemonitor);this.disableSharing=Is(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.Gg(r,q))):r=null;this.Vn=r;this.mute=b?!!b.startMuted:Is(!1,a.mute);this.storeUserVolume=!this.mute&&Is(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Js(void 0,r,VP);this.captionsLanguagePreference=b?b.captionsLanguagePreference||
"":Ls("",a.cc_lang_pref);r=Js(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,VP);this.controlsType==="3"&&r===2&&(r=3);this.Kb=r;this.Ej=b?b.hl||"en_US":Ls("en_US",a.hl);this.region=b?b.contentRegion||"US":Ls("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":Ls("en",a.host_language);this.Mp=!this.Bc&&Math.random()<g.UD(this.experiments,"web_player_api_logging_fraction");this.Ya=!this.Bc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(b==null||!b.deviceIsAudioOnly);this.jd=Ks(this.jd,
a.ismb);this.gq?(r=a.vss_host||"s.youtube.com",r==="s.youtube.com"&&(r=WP(this.Ca)||"www.youtube.com")):r="video.google.com";this.Wn=r;XP(this,a,!0);this.Ka=new pP;g.P(this,this.Ka);q=b?b.innertubeApiKey:Ls("",a.innertube_api_key);p=b?b.innertubeApiVersion:Ls("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:Ls("",a.innertube_context_client_version);q=g.zr("INNERTUBE_API_KEY")||q;p=g.zr("INNERTUBE_API_VERSION")||p;l=g.zr("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=iP(this);n=typeof this.j.c===
"number"?Number(this.j.c):Object.keys(SJa).indexOf(this.j.c);this.il={innertubeApiKey:q,innertubeApiVersion:p,nL:l,oR:m,f_:n,innertubeContextClientVersion:g.zr("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,qR:this.hostLanguage,pR:this.region,g_:g.zr("INNERTUBE_HOST_OVERRIDE")||"",h_:!!g.zr("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),rR:!!g.zr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Jm=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.G=new lP(this.experiments,this.L("html5_force_hfr_support")?
!0:gE(this)||ys()||Gna()||TJa(this),g.fG&&g.oc(56)||g.OO&&g.oc(54)||this.L("html5_force_vp9_subsample_encryption_support")||TJa(this));r=g.hE(this);q=this.jd;p=new IJa(this.experiments);r&&(p.D=!0,p.K=.1);q&&(p.B=q/8);p.C=RL()>=480;this.schedule=new xP(p,new lJa(this.experiments),e);g.P(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:Is(!1,a.enable_safety_mode);e=this.Oa?!1:NP(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=
!b.disableAutonav):u=a.allow_autonav;this.ge=Is(e,!this.qa&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:Is(!1,a.send_visitor_id_header);var y;this.playerStyle==="docs"&&(b?y=b.disableNativeContextMenu:y=a.disable_native_context_menu);this.disableNativeContextMenu=Is(!1,y);this.Pp=gE(this)&&this.L("enable_skip_intro_button");this.embedConfig=Ls("",b?b.serializedEmbedConfig:a.embed_config);this.Fa=Os(a,g.LP(this));this.C=this.Fa==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||
!b.embedsErrorLinks);this.bl=Is(!1,a.full_window);var A;this.Va=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var C;this.livingRoomAppMode=Js("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(b==null?void 0:(C=b.device)==null?void 0:C.livingRoomAppMode),UJa);var F;u=Ks(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:Is(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:
Is(!1,a.show_miniplayer_button);var H;g.LP(this)&&!(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:Is(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:Is(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var L;this.Tn=(L=a.show_loop_video_toggle)!=null?L:!0;this.Gq=Math.random()<1E-4;this.ll=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)?
new AJa(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.uf=new KJa;g.P(this,this.uf);this.zm=Is(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.zr("DATASYNC_ID");this.Bm=g.zr("LOGGED_IN",!1);this.Nj=(b==null?void 0:b.allowWoffleManagement)||!1;this.ql=Infinity;this.rl=NaN;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?
this.Uf=!0:this.Uf=Math.random()*100<g.UD(this.experiments,"html5_high_res_logging_percent");var N;this.xl=!!(b==null?0:(N=b.embedsHostFlags)==null?0:N.allowRcat);this.Wk=!g.SP(this)&&!YP(this)};
g.UP=function(a){var b,c;if(!((b=a.webPlayerContextConfig)==null?0:(c=b.embedsHostFlags)==null?0:c.enableLiteUx)||a.Bc||a.K||a.C||a.Fa==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.UD(a.experiments,"embeds_web_lite_mode");return a===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":a>=0&&a<VJa.length?VJa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
XP=function(a,b,c){c=c===void 0?!1:c;a.Ee=Ls(a.Ee,b.video_id);a.kb=Ls(a.kb,b.eventid);a.kb&&(bw=a.kb);for(var d=[],e=g.w(Object.keys(WJa)),f=e.next();!f.done;f=e.next()){f=WJa[f.value];var h=b[f];h!=null&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&d.length>0&&a.Gq&&(d.sort(),g.qx(new g.At("Player client parameters changed after startup",d)));a.userAge=Ks(a.userAge,b.user_age);a.Zi=Ls(a.Zi,b.user_display_email);a.userDisplayImage=Ls(a.userDisplayImage,b.user_display_image);g.HE(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=Ls(a.userDisplayName,b.user_display_name);a.Jj=Ls(a.Jj,b.user_gender);a.csiPageType=Ls(a.csiPageType,b.csi_page_type);a.csiServiceName=Ls(a.csiServiceName,b.csi_service_name);a.vl=Is(a.vl,b.enablecsi);a.pageId=Ls(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Xf=b.living_room_session_po_token.toString())};
$P=function(a,b){return!a.K&&vs()&&dq(55)&&a.controlsType==="3"&&!b};
g.aQ=function(a){a=WP(a.Ca);return a==="www.youtube-nocookie.com"?"www.youtube.com":a};
bQ=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
cQ=function(a){return NP(a)&&!g.SP(a)};
g.QP=function(a){return a.L("html5_local_playsinline")?Bs&&!g.oc(602)&&!("playsInline"in dG()):Bs&&!a.Im||g.us("nintendo wiiu")?!0:!1};
iP=function(a){return a.j.c};
g.hE=function(a){return/^TVHTML5/.test(iP(a))};
g.dQ=function(a){return iP(a)==="TVHTML5"};
MJa=function(a){return iP(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
TJa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"};
g.eQ=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
gE=function(a){return/web/i.test(iP(a))};
g.fQ=function(a){return iP(a).toUpperCase()==="WEB"};
YP=function(a){return iP(a)==="WEB_KIDS"};
g.SP=function(a){return iP(a)==="WEB_UNPLUGGED"};
gQ=function(a){return iP(a)==="TVHTML5_UNPLUGGED"};
g.fE=function(a){return g.SP(a)||iP(a)==="TV_UNPLUGGED_CAST"||gQ(a)};
g.vz=function(a){return iP(a)==="WEB_REMIX"};
g.hQ=function(a){return iP(a)==="WEB_EMBEDDED_PLAYER"};
g.jQ=function(a){return(a.deviceIsAudioOnly||!g.fG||Ku||a.controlsType==="3"?!1:g.Es?a.D&&g.oc(51):!0)||(a.deviceIsAudioOnly||!g.OO||Ku||a.controlsType==="3"?!1:g.Es?a.D&&g.oc(48):g.oc(38))||(a.deviceIsAudioOnly||!g.JP||Ku||a.controlsType==="3"?!1:g.Es?a.D&&g.oc(37):g.oc(27))||!a.deviceIsAudioOnly&&g.iQ&&!Ina()&&g.oc(11)||!a.deviceIsAudioOnly&&g.$t&&g.oc("604.4")};
XJa=function(a){if(g.RP(a)&&OP)return!1;if(g.OO){if(!g.oc(47)||!g.oc(52)&&g.oc(51))return!1}else if(g.$t)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
kQ=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.hE(a)};
ZJa=function(a,b){return a.enabledEngageTypes.has(b.toString())||YJa.includes(b)};
NP=function(a){return a.Ja==="detailpage"};
g.RP=function(a){return a.Ja==="embedded"};
lQ=function(a){return a.Ja==="leanback"};
MP=function(a){return a.Ja==="adunit"||a.playerStyle==="gvn"};
g.TP=function(a){return a.Ja==="profilepage"};
g.LP=function(a){return a.D&&g.RP(a)&&!MP(a)&&!a.K};
mQ=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.qx(new g.At("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.nQ=function(a){var b=g.aQ(a);$Ja.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.oQ=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Am){var c=new HH,d,e=a.Am();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.qx(new g.At("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return d!==void 0?ks(d):new is(c)}return ks(b)};
WP=function(a){var b=g.aj(a);return(a=Number(g.$i(4,a))||null)?b+":"+a:b};
pQ=function(a,b){b=b===void 0?!1:b;var c=qG[a],d=aKa[c],e=bKa[a];if(!e||!d)return null;b=new nG(b?e.height:e.width,b?e.width:e.height,e.fps);d=oO(d,b,c);return new rG(a,d,{video:b,qb:e.bitrate/8})};
dKa=function(a){var b=aKa[qG[a]],c=cKa[a];return c&&b?new rG(a,b,{audio:new kG(c.audioSampleRate,c.numChannels)}):null};
qQ=function(a){this.j=a};
rQ=function(a,b,c,d){if(c)return js();c={};var e=dG();b=g.w(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().Pe())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.w(oG);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?ks(a):js()};
eKa=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=""};
fKa=function(a,b){a.C.some(function(c){var d;return((d=c.Yb)==null?void 0:d.getId())===b});
a.j=b};
sQ=function(a,b,c){a.cpn&&(b=g.gj(b,{cpn:a.cpn}));c&&(b=g.gj(b,{paired:c}));return b};
gKa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a};
hKa=function(a){for(var b=[],c=[],d=g.w(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)};
iKa=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.lD=a.lD;this.qe=a.qe||"";this.Yb=a.Yb;this.audioChannels=a.audioChannels;this.j=""};
jKa=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.w(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.hO(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new iKa({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,lD:n?l[n]:void 0,qe:f.drm_families,Yb:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
tQ=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
kKa=function(a,b){if(!(Ku||zs()||xs()))return null;a=jKa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Yb&&(f=h.Yb.getId(),c[f]||(h=new g.dM(f,h.Yb),c[f]=h,b.push(h)))}}return b.length>0?b:null};
pKa=function(a,b,c,d,e,f,h){if(!(Ku||zs()||xs()))return js();var l={},m=lKa(c),n=jKa(c,a.L("html5_filter_fmp4_in_hls"),a.G.N,l);if(!n)return h({noplst:1}),js();mKa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,y="";d=d&&d.match(/hls_timedtext_playlist/)?new iKa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Yb:new g.hO("English","en",!1)}):null;for(var A=g.w(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.w(n[C]);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.width){for(var H=g.w(F.B),L=H.next();!L.done;L=H.next())if(L=L.value,n[L]){F.j=L;break}F.j||(F.j=nKa(n,F));if(H=n[F.j])if(c.push(F),F.qe==="fairplay"&&(q=p),L="",F.lD==="PQ"?L="smpte2084":F.lD==="HLG"&&(L="arib-std-b67"),L&&(y=L),t.push(oKa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,L)),!u||F.width*F.height*F.fps>u.width*u.height*u.fps)u=F}else r.push(F)}else l[C]="disdrmhfr";t.reduce(function(N,
X){return X.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(oKa(r,c,d,f,"93",u,p,n,m,"auto",e,q,y,A));Object.entries(l).length&&h(l);return rQ(a.G,t,$P(a,b),!1)};
oKa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,y="",A=g.w(a),C=A.next();!C.done;C=A.next())C=C.value,y||(y=C.itag),C.audioChannels&&C.audioChannels>u&&(u=C.audioChannels,y=C.itag);e=new rG(e,"application/x-mpegURL",{audio:new kG(0,u),video:new nG(f,h,l,null,void 0,n,void 0,r),qe:q,UL:y});a=new eKa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new tQ(e,a,m)};
lKa=function(a){a=g.w(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};
nKa=function(a,b){for(var c=g.w(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.qe===b.qe&&!e.audioChannels)return d}return""};
mKa=function(a){for(var b=new Set,c=g.w(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.w(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.w(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
uQ=function(a,b){this.j=a;this.B=b};
qKa=function(a,b,c,d){var e=[];c=g.w(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.yM(h.url,!0);if(h.s){var l=f,m=h.sp,n=mCa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.w(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=EG(h.type,h.quality,h.itag,h.width,h.height);e.push(new uQ(h,f))}}return rQ(a.G,e,$P(a,b),!1)};
vQ=function(a,b){this.j=a;this.B=b};
rKa=function(a,b,c){var d=[];c=g.w(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=EG(e.type,"medium","0");d.push(new vQ(f,e.url))}return rQ(a.G,d,$P(a,b),!1)};
sKa=function(a,b){var c=[],d=EG(b.type,"auto",b.itag);c.push(new vQ(d,b.url));return rQ(a.G,c,!1,!0)};
uKa=function(a){return a&&tKa[a]?tKa[a]:null};
vKa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Gp=sP(a.ustreamerConfig)||void 0)};
wKa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.gT=new vKa(b)};
g.wQ=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.yQ=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.xQ(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.zQ=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.xKa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.zQ(a));return b};
g.xQ=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("")};
BKa=function(a,b,c,d){a||(a=b&&yKa.hasOwnProperty(b)&&zKa.hasOwnProperty(b)?zKa[b]+"_"+yKa[b]:void 0);b=a;if(!b)return null;a=b.match(AKa);if(!a||a.length!==5)return null;if(a=b.match(AKa)){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};
AQ=function(a,b){for(var c={},d=g.w(Object.keys(CKa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.HE(f)&&(c[CKa[e]]=f)}return c};
BQ=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.w(Object.keys(DKa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=DKa[e];for(var f=g.w(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=EKa(h.url);g.HE(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=EKa(a.url),g.HE(a)&&(b["maxresdefault.jpg"]=a));return b};
EKa=function(a){return a.startsWith("//")?"https:"+a:a};
CQ=function(a){return a&&a.baseUrl||""};
DQ=function(a){a=g.Jr(a);for(var b=g.w(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};
FKa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.Mr=b)};
IKa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.Q(h,GKa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Q(h,HKa))return Object.assign({is_yto_interstitial:!0},Hr(h))});
d=g.w(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,Ep:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Ep: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,
Ep:f===0?5:7})}}};
JKa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
KKa=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)};
LKa=function(a,b){b!=null?(a.iq=b,a.Jf=!0):(a.iq="",a.Jf=!1)};
EQ=function(a,b){this.type=a||"";this.id=b||""};
g.FQ=function(a){return new EQ(a.substr(0,2),a.substr(2))};
g.GQ=function(a,b){this.Ba=a;this.author="";this.vF=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=Fr(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=AQ(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new EQ("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.FQ(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.HQ=function(a,b){this.Ba=a;this.St=this.author="";this.vF=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.vy=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.St=b.St||"";if(a=b.endscreen_autoplay_session_data)this.vF=Fr(a,"&");this.wF=b.wF;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.vy=b.vy||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=Fr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=AQ(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
MKa=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.JQ=function(a){var b,c,d;a=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,IQ);return g.Q(a==null?void 0:a.playerBar,NKa)};
OKa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
PKa=function(){if(KQ===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.oq(g.Bt()+"::yt-player"))){KQ=new Rz(a);break a}KQ=void 0}}return KQ};
g.LQ=function(){var a=PKa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.QKa=function(a){var b=PKa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.MQ=function(a){return g.LQ()[a]||0};
g.NQ=function(a,b){var c=g.LQ();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.QKa(c))};
g.OQ=function(a){return g.J(function(b){return b.return(g.yu(RKa(),a))})};
QQ=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return m=g.MQ(a),m===4?u.return(4):g.G(u,g.Pu(),2);case 2:n=u.B;if(!n)throw g.bu("wiac");if(!l||h===void 0){u.Ea(3);break}return g.G(u,SKa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.G(u,g.OQ(n),5);case 5:return q=u.B,g.wa(u,6),PQ++,g.G(u,g.lu(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Nb:!0},function(y){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");A=g.mu(y.objectStore("media"),h,A)}else A=g.du.resolve(void 0);var C=TKa(a,b.dg()),F=TKa(a,!b.dg()),H={fmts:UKa(d),format:c||{}};C=g.mu(y.objectStore("index"),H,C);var L=d.downloadedEndTime===-1;H=L?y.objectStore("index").get(F):g.du.resolve(void 0);var N={fmts:"music",format:{}};y=L&&e&&!b.dg()?g.mu(y.objectStore("index"),N,F):g.du.resolve(void 0);return g.du.all([y,H,A,C]).then(function(X){X=g.w(X);X.next();X=X.next().value;PQ--;var V=g.MQ(a);if(V!==4&&L&&e||X!==void 0&&g.VKa(X.fmts))V=1,g.NQ(a,
V);return V})}),8);
case 8:return u.return(u.B);case 6:r=g.ya(u);PQ--;t=g.MQ(a);if(t===4)return u.return(t);g.NQ(a,4);throw r;}})};
g.WKa=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,g.Pu(),2);if(d.j!=3){b=d.B;if(!b)throw g.bu("ri");return g.G(d,g.OQ(b),3)}c=d.B;return d.return(g.lu(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:{}})})}))})};
YKa=function(a,b,c,d,e){var f,h,l;return g.J(function(m){if(m.j==1)return g.G(m,g.Pu(),2);if(m.j!=3){f=m.B;if(!f)throw g.bu("rc");return g.G(m,g.OQ(f),3)}h=m.B;l=g.lu(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 XKa(e,n)}).catch(function(n){throw new g.At("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.VKa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
TKa=function(a,b){return""+a+"|"+(b?"v":"a")};
UKa=function(a){var b={};return Gr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
$Ka=function(a){var b={},c={};a=g.w(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.ZKa)?(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.w(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};
RQ=function(a){g.Qx.call(this);this.j=null;this.C=new rq;this.j=null;this.K=new Set;this.crossOrigin=a||""};
aLa=function(a,b,c){for(c=SQ(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(TQ(d,b))&&(d=g.UQ(d,b)))return d;c--}return g.UQ(a.levels[0],b)};
cLa=function(a,b,c){c=SQ(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=TQ(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,{I_:f,t0:e}))}bLa(a)};
bLa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=dLa(a,b)}};
dLa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.I_].xe(b.t0);c.onload=function(){var d=b.I_,e=b.t0;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);bLa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.CK()-1);e=[e,d];a.publish("l",e[0],e[1])};
return c};
g.VQ=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};
TQ=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.UQ=function(a,b){b>=a.qO()&&a.Vz();var c=TQ(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.Vz()+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.xe(c),column:b,columns:h,row:e,rows:d,SG:a.width*h,Dy:a.height*d}};
WQ=function(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;RQ.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)};
eLa=function(a,b,c){return(a=a.levels[b])?a.nJ(c):-1};
SQ=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};
XQ=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.VQ.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
YQ=function(a,b,c,d){WQ.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a<this.levels.length;a++)this.levels[a].zW(c)};
fLa=function(a,b,c){b={cpn:b};a.indexOf("/ibw/")===-1&&(b.ibw=c?String(c):"1369843");return{url:g.gj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.$Q=function(a,b){g.Qx.call(this);this.Ba=a;this.adModule=!1;this.adaptiveFormats="";this.VK=this.yw=this.adQueryId=this.xw=null;this.ZD={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.qe=null;this.gE=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.nw=void 0;this.ll=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ta="";this.dE=this.zw=!1;this.TW=null;this.hh=this.Sj=this.Br=this.VI=
!1;this.D=null;this.w_=this.bl=!1;this.Qj=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.t4=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Np=0;this.lk=!1;this.mE=this.cycToken=null;this.author="";this.Zh=0;this.Rn=!1;this.zD=null;this.wE=[];this.Yp=this.tE=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.rb=this.ge="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Kb=0;this.Dm=this.Va=this.B=null;this.FE="";this.loading=!1;this.jd=this.Pn=0;this.gL=this.pipable=this.jr=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.ib=this.isPrivate=this.isListed=this.FG=this.Xf=this.mutedAutoplay=this.mj=!1;this.tD="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.HH=this.Ja=this.Wd=!1;this.latencyClass="UNKNOWN";this.x4=this.AV=this.zG=this.u_=this.yE=this.enablePreroll=
this.zV=this.enableServerStitchedDai=this.If=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Tb=0;this.reloadReason="";this.UI=this.CV=this.Yi=!1;this.keywords={};this.kb="";this.Mp=0;this.fD=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.vl=null;this.pw=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.y4=this.paygated=!1;this.zn=[];this.Qn=!1;this.Ca=[];this.Ii=null;this.QZ=this.racyCheckOk=
!1;this.eX={};this.isProximaLatencyEligible=!1;this.XH=0;this.C=null;this.autonavState=1;this.JX=null;this.shortDescription="";this.Aa=this.J1=!1;this.Nd=this.Bb=this.startSeconds=0;this.nD=this.z0=this.oD=ZQ;this.Iw=this.suggestions=null;this.qw=this.uw=void 0;this.isExternallyHostedPodcast=!1;this.Cm=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Ow=void 0;this.Ee=[];this.Wk=[];this.hlsFormats=this.Uf="";this.Xw=this.tC=this.Yk=this.kd=this.Ya=this.xq=this.Ww=null;
this.On="vvt";this.Zi=!1;this.BE=null;this.u4="";this.lw=NaN;this.mw=this.Lz=this.yr=this.Jz=this.Iz=this.Im=this.Zq=this.Nz=this.hw=this.Mz="";this.Jm=null;this.IY=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.A4=!1;this.heartbeatToken="";this.rV=this.qV=NaN;this.Pc=this.Lp=this.Ej=this.uV=this.sV=!1;this.zm=!0;this.Z={};this.captionTracks=[];this.jE=[];this.Y1=0;this.lE=[];this.Kw=[];this.Jw=!1;this.nE={};this.il=new g.dM("und",new g.hO("Default","und",!0));this.WI=0;this.G=null;this.Qp=
[];this.EE=!1;this.pD=this.Qb="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Oa=this.vD=this.FF=this.playerResponse=this.T2=this.zx=this.Tn=this.oi=this.CE=this.bE=this.FD=null;this.Qw=!1;this.oa=null;this.isInlinePlaybackNoAd=this.ql=this.vE=this.useCobaltWidevine=this.v_=this.rB=!1;this.u3=!0;this.uf=this.Jj=NaN;this.defraggedFromSubfragments=this.iG=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.MB="";this.P3=!1;this.gatewayExperimentGroup=
"";this.BD=this.zE=this.Wf=!1;this.interstitials=[];this.Jf=this.XG=!1;this.iq="";this.allowImaMonetization=!1;this.WW="";this.iE=!1;this.gh="";this.Rp=[];this.wD=[];this.Ed="";this.sE=this.W=this.tV=!1;this.Vf=0;this.Sq="";this.Pp=this.yD=this.Wn=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Hq=!1;this.Bm=this.le=!0;this.errorDetail=this.userGenderAge="";this.oE=this.qE=this.getSharePanelCommand=this.removeFromWatchLaterCommand=
this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.zo=this.errorReason=this.errorCode=null;this.Mw=this.Lw="";this.Sn=!1;this.ow=[];this.qc=this.Ka=this.Gb=this.Ci=this.hf=0;this.fetchType=null;this.fX=!0;this.transitionEndpointAtEndOfStream=void 0;this.hE=this.J_=-1;this.Am=this.Af=!1;this.mf=null;this.Ua="";this.Un=!1;this.watchUrl=null;this.Yw=[];this.visibleOnLoadKeys=[];this.cK=[];this.inlineMetricEnabled=this.jk=!1;this.embedsRctn=this.embedsRct=
"";this.yG=NaN;this.dX=(0,g.hu)();this.qD=this.Kq=0;this.Gp=null;this.Ad=0;this.zJ=this.uE=this.FI=!1;this.uZ=g.UD(this.Ba.experiments,"html5_gapless_loop_seek_offset_in_milli");this.Z1=0;this.Op={};this.Af=this.L("web_new_autonav_countdown");this.Am=this.L("web_new_big_thumbnail_endscreen");gLa(this,b);this.Pw=new nM;g.P(this,this.Pw)};
g.dR=function(a,b,c){b&&b.cpn&&g.qx(new g.At("CPN provided in VideoData update",{Fpa:b.cpn,Og:a.clientPlaybackNonce,Zoa:c}));c?(Ns(b),gLa(a,b),aR(a)&&bR(a)):(b=b||{},hLa(a,b),cR(a,b),iLa(a,b),a.publish("dataupdated"))};
iLa=function(a,b){a.fflags=Ls(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ta=IE(c));a.zw=Is(a.zw,b.iv_ads_only);a.dE=Is(a.dE,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.I4=c;a.isPharma=Is(a.isPharma,b.is_pharma);a.author=Ls(a.author,b.author);a.ge=jLa(b.ttsurl)||a.ge;a.Rn=Is(a.Rn,b.cc_asr);a.rb=Ls(a.rb,b.channel_path);if(c=b.profile_picture)a.profilePicture=Ls(a.profilePicture,c);a.videoCountText=Ls(a.videoCountText,b.video_count_text);a.autonavState=Js(a.autonavState,b.autonav_state,
kLa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!((d=a.playerResponse)==null||!d.cotn);d=g.UD(a.Ba.experiments,"html5_entity_id_simplified_preferred_record_size");a.playerResponse&&!c&&(a.clientPlaybackNonce=lLa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.Jv("ssei","uhdc"),a.clientPlaybackNonce=Ls(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=Ls(a.clientPlaybackNonce,b.cpn);a.subscribed=Is(a.subscribed,b.subscribed);a.rawViewCount=Ks(a.rawViewCount,
b.view_count);a.shortViewCount=Ls(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=Ls(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=Ls(a.lengthText||"",b.lengthText);a.vy=Ls(a.vy||"",b.vy);a.St=Ls(a.St||"",b.St);a.title=Ls(a.title,b.title);a.subtitle=Ls(a.subtitle,b.subtitle);a.expandedTitle=Ls(a.expandedTitle,b.expanded_title);a.expandedSubtitle=Ls(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=Ls(a.ariaLabel,b.aria_label);a.ypcPreview=Ls(a.ypcPreview,b.ypc_preview);
a.DE=Ls(a.DE,b.ypc_origin);a.Zi=Is(a.Zi,b.ypc_is_premiere_trailer);a.Sq=Ls(a.Sq,b.ypc_clickwrap_message);a.paygated=Is(a.paygated,b.paygated);a.IY=Is(a.IY,b.requires_purchase);a.showShareButton=!Is(!a.showShareButton,b.ss);a.le=Is(a.le,b.showwatchlater);a.Bm=Is(a.Bm,b.shownotifybutton);a.Hq=Is(a.Hq,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=mLa(d.split(","));if(d=b.rvs)a.suggestions=Ir(d).map(function(e){return e.playlist||e.list||e.api?new g.GQ(a.Ba,e):new g.HQ(a.Ba,e)});
a.contentCheckOk=Is(a.contentCheckOk,b.cco);a.racyCheckOk=Is(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=Is(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=Ls(a.oauthToken,b.oauth_token);a.kb=Ls(a.kb,b.kpt);a.visitorData=Ls(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=Fr(d,"&");a.Sw=Ls(a.Sw,b.endscreen_ad_tracking_data);a.m4=Is(a.m4,b.wait_for_vast_info_cards_xml);a.kE=Is(a.kE,b.suppress_creator_endscreen);a.BV=Is(a.BV,b.is_trueview_action);a.C2=Ls(a.C2,b.tracking_list);
a.Lw=Ls(a.Lw,b.clip);a.Mw=Ls(a.Mw,b.clipt);nLa(a,b)};
gLa=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.zo=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.dw(16));a.ib=Is(a.Ba.ib,b.livemonitor);hLa(a,b);var h=b.raw_player_response;if(h)a.vD=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.Yp=Is(a.Yp,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.Jv("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.dw(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.w(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.zw=!0);t.allowInPlaceSwitch&&(a.dE=!0);var u=t.loadPolicy;u&&(a.annotationsLoadPolicy=oLa[u]);var y=t.invideoUrl;y&&(a.Ta=IE(y));a.VI=!0;break}}var A=
a.playerResponse.attestation;A&&FKa(a,A);var C=a.playerResponse.cotn;C&&(a.cotn=C);var F=a.playerResponse.heartbeatParams;if(F){pLa(a)&&(a.A4=!0);var H=F.heartbeatToken;H&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=H,a.qV=Number(F.intervalMilliseconds),a.rV=Number(F.maxRetries),a.sV=!!F.softFailOnError,a.uV=!!F.useInnertubeHeartbeatsForDrm,a.Br=!0);a.heartbeatServerData=F.heartbeatServerData;var L;a.lk=!((L=F.heartbeatAttestationConfig)==null||!L.requiresAttestation)}var N=a.playerResponse.messages;
N&&JKa(a,N);var X=a.playerResponse.overlay;if(X){var V=X.playerControlsOverlayRenderer;if(V)if(LKa(a,V.controlBgHtml),V.mutedAutoplay){var ca=g.Q(V.mutedAutoplay,qLa);if(ca&&ca.endScreen){var la=g.Q(ca.endScreen,rLa);la&&la.text&&(a.WW=g.ay(la.text))}}else a.mutedAutoplay=!1}var W=a.playerResponse.playabilityStatus;if(W){var R=W.backgroundability;R&&R.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Y,v;if((Y=W.offlineability)==null?0:(v=Y.offlineabilityRenderer)==null?0:v.offlineable)a.offlineable=
!0;var T=W.contextParams;T&&(a.contextParams=T);var $a=W.pictureInPicture;$a&&$a.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);W.playableInEmbed&&(a.allowEmbed=!0);var ub=W.ypcClickwrap;if(ub){var pb=ub.playerLegacyDesktopYpcClickwrapRenderer,Da=ub.ypcRentalActivationRenderer;if(pb)a.Sq=pb.durationMessage||"",a.hh=!0;else if(Da){var db=Da.durationMessage;a.Sq=db?g.ay(db):"";a.hh=!0}}var rb=W.errorScreen;if(rb){if(rb.playerLegacyDesktopYpcTrailerRenderer){var ab=rb.playerLegacyDesktopYpcTrailerRenderer;
a.mw=ab.trailerVideoId||"";var B=rb.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var D=B&&B.ypcTrailerRenderer}else if(rb.playerLegacyDesktopYpcOfferRenderer)ab=rb.playerLegacyDesktopYpcOfferRenderer;else if(rb.ypcTrailerRenderer){D=rb.ypcTrailerRenderer;var E=D.fullVideoMessage;a.Zq=E?g.ay(E):"";var I,M;a.mw=((I=g.Q(D,sLa))==null?void 0:(M=I.videoDetails)==null?void 0:M.videoId)||""}ab&&(a.yr=ab.itemTitle||"",ab.itemUrl&&(a.Lz=ab.itemUrl),ab.itemBuyUrl&&(a.Iz=ab.itemBuyUrl),a.Jz=ab.itemThumbnail||
"",a.Nz=ab.offerHeadline||"",a.hw=ab.offerDescription||"",a.Im=ab.offerId||"",a.Mz=ab.offerButtonText||"",a.BE=ab.offerButtonFormattedText||null,a.lw=ab.overlayDurationMsec||NaN,a.Zq=ab.fullVideoMessage||"",a.Sj=!0);if(D){var aa=g.Q(D,sLa);if(aa)a.Jm={raw_player_response:aa};else{var ha=g.Q(D,tLa);a.Jm=ha?Hr(ha):null}a.Sj=!0}}}var ea=a.playerResponse.playbackTracking;if(ea){var K=b,oa=CQ(ea.googleRemarketingUrl);oa&&(a.googleRemarketingUrl=oa);var ra=CQ(ea.youtubeRemarketingUrl);ra&&(a.youtubeRemarketingUrl=
ra);var ia={},Ja=CQ(ea.ptrackingUrl);if(Ja){var kb=DQ(Ja),Sb=kb.oid;Sb&&(a.bX=Sb);var sc=kb.pltype;sc&&(a.cX=sc);var Ua=kb.ptchn;Ua&&(a.XW=Ua);var Pc=kb.ptk;Pc&&(a.hx=encodeURIComponent(Pc));var le=kb.m;le&&(a.Rw=le)}var Re=CQ(ea.qoeUrl);if(Re){for(var Se=g.Jr(Re),Tg=g.w(Object.keys(Se)),xh=Tg.next();!xh.done;xh=Tg.next()){var Uc=xh.value,Th=Se[Uc];Se[Uc]=Array.isArray(Th)?Th.join(","):Th}a.o0=Se;var Ug=Se.cat;Ug&&(a.L("html5_enable_qoe_cat_list")?a.Rp=a.Rp.concat(Ug.split(",")):a.gh=Ug);var ug=Se.live;
ug&&(a.tD=ug);var Hi=Se.drm_product;Hi&&(a.ll=Hi)}var Fj=CQ(ea.videostatsPlaybackUrl);if(Fj){var rd=DQ(Fj),Ii=rd.adformat;if(Ii){K.adformat=Ii;var Hk=a.U(),Gj=BKa(Ii,a.pD,Hk.D,Hk.N);Gj&&(a.adFormat=Gj)}var fd=rd.aqi;fd&&(K.ad_query_id=fd);var yh=rd.autoplay;yh&&(a.mj=yh=="1",a.jr=yh=="1",eR(a,"vss"));var kc=rd.autonav;kc&&(a.isAutonav=kc=="1");var Do=rd.delay;Do&&(a.Kb=qg(Do));var Uq=rd.ei;Uq&&(a.eventId=Uq);if(rd.adcontext||Ii)a.mj=!0,eR(a,"ad");var tc=rd.feature;tc&&(a.Sp=tc);var VG=rd.list;VG&&
(a.playlistId=VG);var WG=rd.of;WG&&(a.AD=WG);var XG=rd.osid;XG&&(a.osid=XG);var wz=rd.referrer;wz&&(a.referrer=wz);var km=rd.sdetail;km&&(a.wB=km);var YG=rd.sourceid;YG&&(a.Vja=YG);var xz=rd.ssrt;xz&&(a.Gq=xz=="1");var yz=rd.subscribed;yz&&(a.subscribed=yz=="1",a.N.subscribed=yz);var ZG=rd.uga;ZG&&(a.userGenderAge=ZG);var $G=rd.upt;$G&&(a.wC=$G);var aH=rd.vm;aH&&(a.videoMetadata=aH);ia.playback=rd}var bH=CQ(ea.videostatsWatchtimeUrl);if(bH){var cH=DQ(bH),dH=cH.ald;dH&&(a.ww=dH);ia.watchtime=cH}var Eo=
CQ(ea.atrUrl);if(Eo){var wS=DQ(Eo);ia.atr=wS}var eH=CQ(ea.engageUrl);if(eH){var xS=DQ(eH);ia.engage=xS}a.Op=ia;if(ea.promotedPlaybackTracking){var Vg=ea.promotedPlaybackTracking;Vg.startUrls&&(a.YA=Vg.startUrls);Vg.firstQuartileUrls&&(a.GD=Vg.firstQuartileUrls);Vg.secondQuartileUrls&&(a.aE=Vg.secondQuartileUrls);Vg.thirdQuartileUrls&&(a.cE=Vg.thirdQuartileUrls);Vg.completeUrls&&(a.ED=Vg.completeUrls);Vg.engagedViewUrls&&(Vg.engagedViewUrls.length>1&&g.qx(new g.At("There are more than one engaged_view_urls.")),
a.Nj=Vg.engagedViewUrls[0])}}var zu=a.playerResponse.playerCueRanges;zu&&zu.length>0&&(a.cueRanges=zu);var fH=a.playerResponse.playerCueRangeSet;fH&&g.fR(a,fH);a:{var gH=a.playerResponse.adPlacements;if(gH)for(var hH=g.w(gH),zz=hH.next();!zz.done;zz=hH.next()){var iH=void 0,jH=void 0,kH=(iH=zz.value.adPlacementRenderer)==null?void 0:(jH=iH.renderer)==null?void 0:jH.videoAdTrackingRenderer;if(kH){var lH=kH;break a}}lH=null}var Az=lH;ea&&ea.promotedPlaybackTracking&&Az&&g.qx(new g.At("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
Az&&(a.y4=!0);var mH=a.playerResponse.playerAds;if(mH)for(var yS=b,nH=g.w(mH),Bz=nH.next();!Bz.done;Bz=nH.next()){var oH=Bz.value;if(oH){var pH=oH.playerLegacyDesktopWatchAdsRenderer;if(pH){var Fo=pH.playerAdParams;if(Fo){Fo.autoplay=="1"&&(a.mj=!0,a.jr=!0);a.yw=Fo.encodedAdSafetyReason||null;Fo.showContentThumbnail!==void 0&&(a.zm=!!Fo.showContentThumbnail);yS.enabled_engage_types=Fo.enabledEngageTypes;break}}}}var Ee=a.playerResponse.playerConfig;if(Ee){var Go=Ee.manifestlessWindowedLiveConfig;
if(Go){var Cz=Number(Go.minDvrSequence),Au=Number(Go.maxDvrSequence),Bu=Number(Go.minDvrMediaTimeMs),Cu=Number(Go.maxDvrMediaTimeMs),qH=Number(Go.startWalltimeMs);Cz&&(a.hf=Cz);Bu&&(a.Ka=Bu/1E3,a.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gR(a)&&(a.gq=Bu/1E3));Au&&(a.Ci=Au);Cu&&(a.Gb=Cu/1E3,a.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gR(a)&&(a.wl=Cu/1E3));qH&&(a.qc=qH/1E3);(Cz||Bu)&&(Au||Cu)&&(a.Ja=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Wd=!1)}var lm=Ee.daiConfig;
if(lm){if(lm.enableDai){a.If=!0;var Du=lm.enableServerStitchedDai;Du&&(a.enableServerStitchedDai=Du);var zS=lm.enablePreroll;zS&&(a.enablePreroll=zS)}var rH;if(lm.daiType==="DAI_TYPE_SS_DISABLED"||((rH=lm.debugInfo)==null?0:rH.isDisabledUnpluggedChannel))a.zG=!0;lm.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.zV=!0)}var Ik=Ee.audioConfig;if(Ik){var sH=Ik.loudnessDb;sH!=null&&(a.Qj=sH);var Dz=Ik.trackAbsoluteLoudnessLkfs;Dz!=null&&(a.t4=Dz);var Ez=Ik.loudnessTargetLkfs;Ez!=null&&(a.loudnessTargetLkfs=
Ez);Ik.audioMuted&&(a.bl=!0);Ik.muteOnStart&&(a.w_=!0);var mm=Ik.loudnessNormalizationConfig;if(mm){mm.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);mm.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var tH=mm.minimumLoudnessTargetLkfs;tH!=null&&(a.minimumLoudnessTargetLkfs=tH);var AS=mm.maxStatefulTimeThresholdSec;AS!=null&&(a.maxStatefulTimeThresholdSec=AS)}a.L("web_player_audio_playback_from_audio_config")&&Ik.playAudioOnly&&(a.Wf=!0)}var uH=Ee.playbackEndConfig;
if(uH){var Vq=uH.endSeconds,zFa=uH.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(Vq&&(a.endSeconds=Vq),zFa&&(a.limitedPlaybackDurationInSeconds=zFa))}var BS=Ee.fairPlayConfig;if(BS){var AFa=BS.certificate;AFa&&(a.Va=sP(AFa));var BFa=Number(BS.keyRotationPeriodMs);BFa>0&&(a.Uw=BFa);var CFa=Number(BS.keyPrefetchMarginMs);CFa>0&&(a.Tw=CFa)}var Fz=Ee.playbackStartConfig;if(Fz){a.Pp=Number(Fz.startSeconds);var DFa=Fz.liveUtcStartSeconds,EFa=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;DFa&&!EFa&&
(a.liveUtcStartSeconds=Number(DFa));var a$=Fz.startPosition;if(a$){var FFa=a$.utcTimeMillis;FFa&&!EFa&&(a.liveUtcStartSeconds=Number(FFa)*.001);var GFa=a$.streamTimeMillis;GFa&&(a.Nd=Number(GFa)*.001)}a.progressBarStartPosition=Fz.progressBarStartPosition;a.progressBarEndPosition=Fz.progressBarEndPosition}else{var b$=Ee.skippableSegmentsConfig;if(b$){var HFa=b$.introSkipDurationMs;HFa&&(a.Wn=Number(HFa)/1E3);var IFa=b$.outroSkipDurationMs;IFa&&(a.yD=Number(IFa)/1E3)}}var c$=Ee.skippableIntroConfig;
if(c$){var JFa=Number(c$.startMs),KFa=Number(c$.endMs);isNaN(JFa)||isNaN(KFa)||(a.Jj=JFa,a.uf=KFa)}var LFa=Ee.streamSelectionConfig;LFa&&(a.jd=Number(LFa.maxBitrate));var MFa=Ee.vrConfig;MFa&&(a.rB=MFa.partialSpherical=="1");var vH=Ee.webDrmConfig;if(vH){vH.skipWidevine&&(a.v_=!0);var NFa=vH.widevineServiceCert;NFa&&(a.Dm=sP(NFa));vH.useCobaltWidevine&&(a.useCobaltWidevine=!0);vH.startWithNoQualityConstraint&&(a.ql=!0)}var Ho=Ee.mediaCommonConfig;if(Ho){var CS=Ho.dynamicReadaheadConfig;if(CS){a.maxReadAheadMediaTimeMs=
CS.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=CS.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=CS.readAheadGrowthRateMs||NaN;var OFa,PFa=Ho==null?void 0:(OFa=Ho.mediaUstreamerRequestConfig)==null?void 0:OFa.videoPlaybackUstreamerConfig;PFa&&(a.Ii=sP(PFa));var d$=Ho==null?void 0:Ho.sabrContextUpdates;if(d$&&d$.length>0)for(var QFa=g.w(d$),e$=QFa.next();!e$.done;e$=QFa.next()){var Eu=e$.value;if(Eu.type&&Eu.value){var Lgb={type:Eu.type,scope:Eu.scope,value:sP(Eu.value)||void 0,sendByDefault:Eu.sendByDefault};
a.sabrContextUpdates.set(Eu.type,Lgb)}}}var RFa=Ho.serverPlaybackStartConfig;RFa&&(a.serverPlaybackStartConfig=RFa);Ho.useServerDrivenAbr&&(a.uE=!0);var SFa=Ho.requestPipeliningConfig;SFa&&(a.requestPipeliningConfig=SFa)}var TFa=Ee.inlinePlaybackConfig;TFa&&(a.u3=!!TFa.showAudioControls);var DS=Ee.embeddedPlayerConfig;if(DS){a.embeddedPlayerConfig=DS;var f$=DS.embeddedPlayerMode;if(f$){var UFa=a.U();UFa.Fa=f$;UFa.C=f$==="EMBEDDED_PLAYER_MODE_PFL"}var VFa=DS.permissions;VFa&&(a.allowImaMonetization=
!!VFa.allowImaMonetization)}var WFa=Ee.ssapConfig;WFa&&(a.P3=WFa.ssapPrerollEnabled||!1);var ES=Ee.webPlayerConfig;ES&&(ES.gatewayExperimentGroup&&(a.gatewayExperimentGroup=ES.gatewayExperimentGroup),ES.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Jk=a.playerResponse.streamingData;if(Jk){var XFa=Jk.adaptiveFormats;if(XFa){var YFa=Jk.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&YFa)for(var ZFa=g.w(XFa),g$$=ZFa.next();!g$$.done;g$$=ZFa.next()){var FS=g$$.value;!FS.url&&FS.distinctParams&&
(FS.url=YFa+"&"+FS.distinctParams)}}var h$=Jk.formats;if(h$){for(var wH=[],$Fa=g.w(h$),i$=$Fa.next();!i$.done;i$=$Fa.next()){var j$=i$.value;wH.push(j$.itag+"/"+j$.width+"x"+j$.height)}a.FE=wH.join(",");wH=[];for(var aGa=g.w(h$),k$=aGa.next();!k$.done;k$=aGa.next()){var xH=k$.value,yH={itag:xH.itag,type:xH.mimeType,quality:xH.quality},bGa=xH.url;bGa&&(yH.url=bGa);var GS=EM(xH),Mgb=GS.WE,Ngb=GS.qI,Ogb=GS.s;GS.GZ&&(yH.url=Mgb,yH.sp=Ngb,yH.s=Ogb);wH.push(g.fj(yH))}a.Uf=wH.join(",")}var l$=Jk.hlsFormats;
if(l$){var cGa=Ee||null,HS={};if(cGa){var m$=cGa.audioPairingConfig;if(m$&&m$.pairs)for(var dGa=g.w(m$.pairs),n$=dGa.next();!n$.done;n$=dGa.next()){var eGa=n$.value,o$=eGa.videoItag;HS[o$]||(HS[o$]=[]);HS[o$].push(eGa.audioItag)}}for(var fGa={},gGa=g.w(l$),p$=gGa.next();!p$.done;p$=gGa.next()){var hGa=p$.value;fGa[hGa.itag]=hGa.bitrate}for(var iGa=[],jGa=g.w(l$),q$=jGa.next();!q$.done;q$=jGa.next()){var Uh=q$.value,nm={itag:Uh.itag,type:Uh.mimeType,url:Uh.url,bitrate:Uh.bitrate,width:Uh.width,height:Uh.height,
fps:Uh.fps},IS=Uh.audioTrack;if(IS){var kGa=IS.displayName;kGa&&(nm.name=kGa,nm.audio_track_id=IS.id,IS.audioIsDefault&&(nm.is_default="1"))}if(Uh.drmFamilies){for(var lGa=[],mGa=g.w(Uh.drmFamilies),r$=mGa.next();!r$.done;r$=mGa.next())lGa.push(pO[r$.value]);nm.drm_families=lGa.join(",")}var JS=HS[Uh.itag];if(JS&&JS.length){nm.audio_itag=JS.join(",");var nGa=fGa[JS[0]];nGa&&(nm.bitrate+=nGa)}var oGa=nFa(Uh);oGa&&(nm.eotf=oGa);Uh.audioChannels&&(nm.audio_channels=Uh.audioChannels);iGa.push(g.fj(nm))}a.hlsFormats=
iGa.join(",")}var s$=Jk.licenseInfos;if(s$&&s$.length>0){for(var pGa={},qGa=g.w(s$),t$=qGa.next();!t$.done;t$=qGa.next()){var rGa=t$.value,sGa=rGa.drmFamily,tGa=rGa.url;sGa&&tGa&&(pGa[pO[sGa]]=tGa)}a.qe=pGa}var uGa=Jk.drmParams;uGa&&(a.drmParams=uGa);var vGa=Jk.dashManifestUrl;vGa&&(a.Bc=g.gj(vGa,{cpn:a.clientPlaybackNonce}));var wGa=Jk.hlsManifestUrl;wGa&&(a.hlsvp=wGa);var xGa=Jk.probeUrl;xGa&&(a.probeUrl=IE(g.gj(xGa,{cpn:a.clientPlaybackNonce})));var yGa=Jk.serverAbrStreamingUrl;yGa&&(a.xl=new g.yM(yGa,
!0))}var zGa=a.playerResponse.trackingParams;zGa&&(a.Fa=zGa);var Zc=a.playerResponse.videoDetails;if(Zc){var om=b,u$=Zc.videoId;u$&&(a.videoId=u$,om.video_id||(om.video_id=u$));var AGa=Zc.channelId;AGa&&(a.N.uid=AGa.substr(2));var v$=Zc.title;v$&&(a.title=v$,om.title||(om.title=v$));var w$=Zc.lengthSeconds;w$&&(a.lengthSeconds=Number(w$),om.length_seconds||(om.length_seconds=w$));var BGa=Zc.keywords;BGa&&(a.keywords=mLa(BGa));var x$=Zc.channelId;x$&&(a.ym=x$,om.ucid||(om.ucid=x$));var CGa=Zc.viewCount;
CGa&&(a.rawViewCount=Number(CGa));var y$=Zc.author;y$&&(a.author=y$,om.author||(om.author=y$));var DGa=Zc.shortDescription;DGa&&(a.shortDescription=DGa);var EGa=Zc.isCrawlable;EGa&&(a.isListed=EGa);var FGa=Zc.musicVideoType;FGa&&(a.musicVideoType=FGa);var z$=Zc.isLive;z$!=null&&(a.isLivePlayback=z$);if(z$||Zc.isUpcoming)a.isPremiere=!Zc.isLiveContent;var GGa=Zc.thumbnail;GGa&&(a.Z=BQ(GGa));var HGa=Zc.isExternallyHostedPodcast;HGa&&(a.isExternallyHostedPodcast=HGa);var A$=Zc.viewerLivestreamJoinPosition;
if(A$==null?0:A$.utcTimeMillis)a.qD=qg(A$.utcTimeMillis);var IGa=Ee||null,B$=b;Zc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Zc.isUpcoming&&(a.isUpcoming=!0);if(Zc.isPostLiveDvr){a.Wd=!0;var JGa=Zc.latencyClass;JGa&&(a.latencyClass=uLa[JGa]||"UNKNOWN");Zc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var C$=!1;if(a.ib)a.allowLiveDvr=nP()?!0:Cs&&hR<5?!1:!0,a.isLivePlayback=!0;else if(Zc.isLive){B$.livestream="1";a.allowLiveDvr=Zc.isLiveDvrEnabled?nP()?!0:Cs&&hR<5?!1:!0:!1;a.partnerId=
27;Zc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var LGa=Zc.latencyClass;LGa&&(a.latencyClass=uLa[LGa]||"UNKNOWN");var MGa=Zc.liveChunkReadahead;MGa&&(a.liveChunkReadahead=MGa);var Gz=IGa&&IGa.livePlayerConfig;if(Gz){Gz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Gz.hasSubfragmentedWebm&&(a.iG=!0);Gz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var NGa=Gz.liveExperimentalContentId;NGa&&(a.liveExperimentalContentId=Number(NGa));var OGa=Gz.isLiveHeadPlayable;a.L("html5_live_head_playable")&&
OGa!=null&&(a.isLiveHeadPlayable=OGa)}C$=!0}else Zc.isUpcoming&&(C$=!0);C$&&(a.isLivePlayback=!0,B$.adformat&&B$.adformat.split("_")[1]!=="8"||a.Ca.push("heartbeat"),a.Br=!0)}var PGa=Zc.isPrivate;PGa!==void 0&&(a.isPrivate=Is(a.isPrivate,PGa))}if(W){var QGa=Zc||null,RGa=!1,Hz=W.errorScreen;RGa=Hz&&(Hz.playerLegacyDesktopYpcOfferRenderer||Hz.playerLegacyDesktopYpcTrailerRenderer||Hz.ypcTrailerRenderer)?!0:QGa&&QGa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(W.status);if(!RGa){a.errorCode=
uKa(W.errorCode)||"auth";var KS=Hz&&Hz.playerErrorMessageRenderer;if(KS){a.playerErrorMessageRenderer=KS;var SGa=KS.reason;SGa&&(a.errorReason=g.ay(SGa));var D$=KS.subreason;D$&&(a.zo=g.ay(D$),a.Vw=D$)}else a.errorReason=W.reason||null;var E$=W.status;if(E$==="LOGIN_REQUIRED")a.errorDetail="1";else if(E$==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(E$==="AGE_CHECK_REQUIRED"){var TGa=W.errorScreen,UGa=TGa&&TGa.playerKavRenderer;a.errorDetail=UGa&&UGa.kavUrl?"4":"3"}else a.errorDetail=W.isBlockedInRestrictedMode?
"5":"0"}}var VGa=a.playerResponse.interstitialPods;VGa&&IKa(a,VGa);a.Ta&&a.eventId&&(a.Ta=Lr(a.Ta,{ei:a.eventId}));var F$=a.playerResponse.captions;if(F$&&F$.playerCaptionsTracklistRenderer)a:{var pm=F$.playerCaptionsTracklistRenderer;a.captionTracks=[];if(pm.captionTracks)for(var WGa=g.w(pm.captionTracks),G$=WGa.next();!G$.done;G$=WGa.next()){var qm=G$.value,XGa=jLa(qm.baseUrl);if(!XGa)break a;var H$={is_translateable:!!qm.isTranslatable,languageCode:qm.languageCode,languageName:qm.name&&g.ay(qm.name),
url:XGa,vss_id:qm.vssId,kind:qm.kind};H$.name=qm.trackName;H$.displayName=qm.name&&g.ay(qm.name);a.captionTracks.push(new g.wQ(H$))}a.jE=pm.audioTracks||[];a.Y1=pm.defaultAudioTrackIndex||0;a.Kw=[];if(pm.translationLanguages)for(var YGa=g.w(pm.translationLanguages),I$=YGa.next();!I$.done;I$=YGa.next()){var Iz=I$.value,Gu={};Gu.languageCode=Iz.languageCode;Gu.languageName=g.ay(Iz.languageName);if(Iz.translationSourceTrackIndices){Gu.translationSourceTrackIndices=[];for(var ZGa=g.w(Iz.translationSourceTrackIndices),
J$=ZGa.next();!J$.done;J$=ZGa.next())Gu.translationSourceTrackIndices.push(J$.value)}if(Iz.excludeAudioTrackIndices){Gu.excludeAudioTrackIndices=[];for(var $Ga=g.w(Iz.excludeAudioTrackIndices),K$=$Ga.next();!K$.done;K$=$Ga.next())Gu.excludeAudioTrackIndices.push(K$.value)}a.Kw.push(Gu)}a.lE=[];if(pm.defaultTranslationSourceTrackIndices)for(var aHa=g.w(pm.defaultTranslationSourceTrackIndices),L$=aHa.next();!L$.done;L$=aHa.next())a.lE.push(L$.value);a.Jw=!!pm.contribute&&!!pm.contribute.captionsMetadataRenderer}a.clipConfig=
a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.Pp=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&KKa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var bHa;a.compositeLiveIngestionOffsetToken=(bHa=a.playerResponse.playbackTracking)==null?void 0:bHa.compositeLiveIngestionOffsetToken;var cHa;
a.compositeLiveStatusToken=(cHa=a.playerResponse.playbackTracking)==null?void 0:cHa.compositeLiveStatusToken}cR(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var dHa=b.hlsdvr;dHa!=null&&(a.allowLiveDvr=dHa=="1"?nP()?!0:Cs&&hR<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.yw||(a.yw=b.encoded_ad_safety_reason||null);a.VK=b.agcid||null;a.FD=b.ad_id||null;a.bE=b.ad_sys||null;a.CE=b.encoded_ad_playback_context||null;a.bl=Is(a.bl,b.infringe||b.muted);a.M4=b.authkey;a.fga=b.authuser;a.mutedAutoplay=Is(a.mutedAutoplay,
b&&b.playmuted);a.iE=Is(a.iE,b&&b.mutedautoplay);var LS=b.length_seconds;LS&&(a.lengthSeconds=typeof LS==="string"?qg(LS):LS);if(a.isAd()||a.Qn||!g.Ps(g.UP(a.Ba)))a.endSeconds=Ks(a.endSeconds,a.yD||b.end||b.endSeconds);else{var Pgb=g.UP(a.Ba),MS=a.lengthSeconds;switch(Pgb){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":MS>30?a.limitedPlaybackDurationInSeconds=30:MS<30&&MS>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=
MS*.2}}a.Fa=Ls(a.Fa,b.itct);a.FG=Is(a.FG,b.noiba);a.HH=Is(a.HH,b.is_live_destination);a.isLivePlayback=Is(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Wb();b.isUpcoming&&(a.isUpcoming=Is(a.isUpcoming,b.isUpcoming));a.Wd=Is(a.Wd,b.post_live_playback);a.Ja&&(a.Wd=!1);a.isMdxPlayback=Is(a.isMdxPlayback,b.mdx);var NS=b.mdx_control_mode;NS&&(a.mdxControlMode=typeof NS==="number"?NS:qg(NS));a.isInlinePlaybackNoAd=Is(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);
a.Tb=Ks(a.Tb,b.reload_count);a.reloadReason=Ls(a.reloadReason,b.reload_reason);a.zm=Is(a.zm,b.show_content_thumbnail);a.UI=Is(a.UI,b.utpsa);a.cycToken=b.cyc||null;a.mE=b.tkn||null;var eHa=AQ(b);Object.keys(eHa).length>0&&(a.Z=eHa);a.qa=Ls(a.qa,b.vvt);a.mdxEnvironment=Ls(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.W4=b.osig;a.eventId||
(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=Ls(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===void 0?Ks(0,b.index):Ks(a.playlistIndex,b.index));a.nX=b.pyv_view_beacon_url;a.qX=b.pyv_quartile25_beacon_url;a.BX=b.pyv_quartile50_beacon_url;a.aY=b.pyv_quartile75_beacon_url;a.pX=b.pyv_quartile100_beacon_url;var fHa=b.session_data;!a.sY&&fHa&&(a.sY=Fr(fHa,"&").feature);a.isFling=Ks(a.isFling?1:0,b.is_fling)==1;a.vnd=Ks(a.vnd,b.vnd);a.forceAdsUrl=Ls(a.forceAdsUrl,b.force_ads_url);
a.rj=Ls(a.rj,b.ctrl);a.Yj=Ls(a.Yj,b.ytr);a.qx=b.ytrcc;a.yY=b.ytrexp;a.eE=b.ytrext;a.Qb=Ls(a.Qb,b.adformat);a.pD=Ls(a.pD,b.attrib);a.slotPosition=Ks(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Gq=Is(a.Gq,b.ssrt);a.videoId=Ns(b)||a.videoId;a.K=Ls(a.K,b.vss_credentials_token);a.On=Ls(a.On,b.vss_credentials_token_type);a.Wf=Is(a.Wf,b.audio_only);a.zE=Is(a.zE,b.aac_high);a.BD=Is(a.BD,b.prefer_low_quality_audio);a.sE=Is(a.sE,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&
(a.Rp=a.Rp.concat(b.qoe_cat.split(","))):a.gh=Ls(a.gh,b.qoe_cat);a.Sn=Is(a.Sn,b.download_media);var gHa=b.prefer_gapless;var Qgb=gHa!=null?Is(a.W,gHa):a.W?a.W:a.Ba.preferGapless&&a.Ba.supportsGaplessShorts();a.W=Qgb;KBa(a.playerResponse)&&(a.adModule=!0,a.Ca.push("ad"),a.L("html5_ssap_pacf_qoe_ctmp")&&a.ma("ssap",{npa:0}));var hHa=b.adaptive_fmts;hHa&&(a.adaptiveFormats=hHa,a.ma("adpfmts",{},!0));var iHa=b.allow_embed;iHa&&(a.allowEmbed=iHa=="1");var jHa=b.backgroundable;jHa&&(a.backgroundable=jHa==
"1");var kHa=b.autonav;kHa&&(a.isAutonav=kHa=="1");var M$=b.autoplay;M$&&(a.jr=M$=="1",a.mj=M$=="1",eR(a,"c"));var lHa=b.iv_load_policy;lHa&&(a.annotationsLoadPolicy=Js(a.annotationsLoadPolicy,lHa,VP));var mHa=b.cc_lang_pref;mHa&&(a.captionsLanguagePreference=Ls(mHa,a.captionsLanguagePreference));var nHa=b.cc_load_policy;nHa&&(a.zD=Js(a.zD,nHa,VP));var oHa;a.deviceCaptionsOn=(oHa=b.device_captions_on)!=null?oHa:void 0;var pHa;a.B2=(pHa=b.device_captions_lang_pref)!=null?pHa:"";var qHa;a.wE=(qHa=b.viewer_selected_caption_langs)!=
null?qHa:[];if(!a.L("html5_enable_ssap_entity_id")){var rHa=b.cached_load;rHa&&(a.Yp=Is(a.Yp,rHa))}b.dash=="0"&&(a.tE=!0);var sHa=b.dashmpd;sHa&&(a.Bc=g.gj(sHa,{cpn:a.clientPlaybackNonce}));var tHa=b.delay;tHa&&(a.Kb=qg(tHa));var uHa=a.yD||b.end;uHa!=void 0&&(a.clipEnd=Ks(a.clipEnd,uHa));var vHa=b.fmt_list;vHa&&(a.FE=vHa);b.heartbeat_preroll&&a.Ca.push("heartbeat");a.Pn=-Math.floor(Math.random()*10);a.pw=-Math.floor(Math.random()*40);var wHa=b.is_listed;wHa&&(a.isListed=Is(a.isListed,wHa));var xHa=
b.is_private;xHa&&(a.isPrivate=Is(a.isPrivate,xHa));var yHa=b.is_dni;yHa&&(a.Jf=Is(a.Jf,yHa));var zHa=b.dni_color;zHa&&(a.iq=Ls(a.iq,zHa));var AHa=b.pipable;AHa&&(a.pipable=Is(a.pipable,AHa));a.gL=a.pipable&&a.Ba.yr;a.J1=a.gL&&!a.Ba.showMiniplayerButton;var BHa=b.paid_content_overlay_duration_ms;BHa&&(a.paidContentOverlayDurationMs=qg(BHa));var CHa=b.paid_content_overlay_text;CHa&&(a.paidContentOverlayText=CHa);var DHa=b.url_encoded_fmt_stream_map;DHa&&(a.Uf=DHa);var EHa=b.hls_formats;EHa&&(a.hlsFormats=
EHa);var FHa=b.hlsvp;FHa&&(a.hlsvp=FHa);var OS=b.live_start_walltime;OS&&(a.uD=typeof OS==="number"?OS:qg(OS));var PS=b.live_manifest_duration;PS&&(a.vl=typeof PS==="number"?PS:qg(PS));var GHa=b.player_params;GHa&&(a.playerParams=GHa);var HHa=b.partnerid;HHa&&(a.partnerId=Ks(a.partnerId,HHa));var IHa=b.probe_url;IHa&&(a.probeUrl=IE(g.gj(IHa,{cpn:a.clientPlaybackNonce})));var N$=b.pyv_billable_url;N$&&ewa(N$)&&(a.Nj=N$);var O$=b.pyv_conv_url;O$&&ewa(O$)&&(a.oX=O$);nLa(a,b);a.startSeconds>0?a.L("html5_log_start_seconds_inconsistency")&&
a.startSeconds!==(a.Pp||a.Wn||b.start||b.startSeconds)&&a.ma("lss",{css:a.startSeconds,pcss:a.Pp,iss:a.Wn,ps:b.start||void 0,pss:b.startSeconds||void 0}):(a.startSeconds=Ks(a.startSeconds,a.Pp||a.Wn||b.start||b.startSeconds),a.Bb=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var JHa=b.live_utc_start;if(JHa!=null)a.liveUtcStartSeconds=Number(JHa);else{var P$=a.startSeconds;P$&&isFinite(P$)&&P$>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>
0)){var KHa=b.utc_start_millis;KHa&&(a.liveUtcStartSeconds=Number(KHa)*.001)}var LHa=b.stream_time_start_millis;LHa&&(a.Nd=Number(LHa)*.001);var MHa=a.Wn||b.start;MHa==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=Ks(a.clipStart,MHa));var NHa=b.url_encoded_third_party_media;NHa&&(a.Cm=Ir(NHa));var Q$=b.ypc_offer_button_formatted_text;if(Q$){var OHa=JSON.parse(Q$);a.BE=OHa!=null?OHa:null;a.u4=Q$}var PHa=b.ypc_offer_button_text;PHa&&(a.Mz=PHa);var QHa=b.ypc_offer_description;QHa&&(a.hw=QHa);
var RHa=b.ypc_offer_headline;RHa&&(a.Nz=RHa);var SHa=b.ypc_full_video_message;SHa&&(a.Zq=SHa);var THa=b.ypc_offer_id;THa&&(a.Im=THa);var UHa=b.ypc_buy_url;UHa&&(a.Iz=UHa);var VHa=b.ypc_item_thumbnail;VHa&&(a.Jz=VHa);var WHa=b.ypc_item_title;WHa&&(a.yr=WHa);var XHa=b.ypc_item_url;XHa&&(a.Lz=XHa);var YHa=b.ypc_vid;YHa&&(a.mw=YHa);b.ypc_overlay_timeout&&(a.lw=Number(b.ypc_overlay_timeout));var ZHa=b.ypc_trailer_player_vars;ZHa&&(a.Jm=Hr(ZHa));var $Ha=b.ypc_original_itct;$Ha&&(a.i7=$Ha);a.ym=Ls(a.ym,
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=Is(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=Is(a.N.rmktEnabled,b.rmktEnabled);a.tC=b.storyboard_spec||null;a.Xw=b.live_storyboard_spec||null;a.TW=b.iv_endscreen_url||null;a.VI=Is(a.VI,b.iv3_module);a.Br=Is(a.Br,b.ypc_license_checker_module);a.Sj=Is(a.Sj,b.ypc_module);
a.hh=Is(a.hh,b.ypc_clickwrap_module);a.Sj&&a.Ca.push("ypc");a.hh&&a.Ca.push("ypc_clickwrap");a.eX={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};iLa(a,b);var aIa=b.cotn;aIa&&(a.cotn=aIa);if(vLa(a))iR(a)&&(a.isLivePlayback&&a.Bc&&(a.Ej=!0),a.Va&&(a.Lp=!0));else if(wLa(a))a.Ej=!0;else{var dIa,eIa,fIa=((dIa=a.playerResponse)==null?void 0:(eIa=dIa.streamingData)==null?void 0:eIa.adaptiveFormats)||[];if(fIa.length>0)var AH=xLa(a,fIa);else{var hIa=a.adaptiveFormats;if(hIa&&!iR(a)){jR(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(CO=!0);var Jz=kR(hIa),R$=a.qe,iIa=a.lengthSeconds,
Rgb=a.isLivePlayback,BH=a.Wd,Kz=a.Ba,Sgb=gIa(Jz);if(Rgb||BH){var jIa=Kz==null?void 0:Kz.experiments,Hj=new nO("",jIa,!0);Hj.Wb=!0;Hj.isManifestless=!0;Hj.B=!BH;Hj.isLive=!BH;Hj.Wd=BH;for(var kIa=g.w(Jz),S$=kIa.next();!S$.done;S$=kIa.next()){var Lz=S$.value,lIa=rO(Lz,R$),Hu=sO(Lz.url,Lz.sp,Lz.s),mIa=Hu.get("id");mIa&&mIa.includes("%7E")&&(Hj.W=!0);var nIa=void 0,Tgb=(nIa=jIa)==null?void 0:nIa.bb("html5_max_known_end_time_rebase"),Ugb=Number(Lz.target_duration_sec)||5,Vgb=Number(Lz.max_dvr_duration_sec)||
14400,oIa=Number(Hu.get("mindsq")||Hu.get("min_sq")||"0"),pIa=Number(Hu.get("maxdsq")||Hu.get("max_sq")||"0")||Infinity;Hj.hf=Hj.hf||oIa;Hj.Ci=Hj.Ci||pIa;var Wgb=!DG(lIa.mimeType);Hu&&kO(Hj,new XN(Hu,lIa,{ek:Ugb,ao:Wgb,Qr:Vgb,hf:oIa,Ci:pIa,JB:300,Wd:BH,LI:Tgb}))}var qIa=Hj}else{if(Sgb==="FORMAT_STREAM_TYPE_OTF"){var RS=iIa;RS=RS===void 0?0:RS;var Mz=new nO("",Kz==null?void 0:Kz.experiments,!1);Mz.duration=RS||0;for(var rIa=g.w(Jz),T$=rIa.next();!T$.done;T$=rIa.next()){var Nz=T$.value,U$=rO(Nz,R$,
Mz.duration),V$=sO(Nz.url,Nz.sp,Nz.s);if(V$)if(U$.streamType==="FORMAT_STREAM_TYPE_OTF")kO(Mz,new YN(V$,U$,"sq/0"));else{var Xgb=CN(Nz.init),Ygb=CN(Nz.index);kO(Mz,new gO(V$,U$,Xgb,Ygb))}}Mz.isOtf=!0;var sIa=Mz}else{var SS=iIa;SS=SS===void 0?0:SS;var TS=new nO("",Kz==null?void 0:Kz.experiments,!1);TS.duration=SS||0;for(var tIa=g.w(Jz),W$=tIa.next();!W$.done;W$=tIa.next()){var Oz=W$.value,Zgb=rO(Oz,R$,TS.duration),$gb=CN(Oz.init),ahb=CN(Oz.index),uIa=sO(Oz.url,Oz.sp,Oz.s);uIa&&kO(TS,new gO(uIa,Zgb,
$gb,ahb))}sIa=TS}qIa=sIa}var vIa=qIa;if(Jz.length>0){var wIa=Jz[0];if(a.U().playerStyle==="hangouts-meet"&&wIa.url){var bhb=g.Jr(wIa.url);a.Kq=a.Kq||Number(bhb.expire)}}var chb=a.isLivePlayback&&!a.Wd&&!a.Ja&&!a.isPremiere;a.L("html5_live_head_playable")&&(!lR(a)&&chb&&a.ma("missingLiveHeadPlayable",{}),a.Ba.oa==="yt"&&(vIa.Ta=!0));AH=vIa}else AH=null;a.ma("pafmts",{isManifestFilled:!!AH})}if(AH){mR(a,AH);var xIa=!0}else xIa=!1;xIa?a.enableServerStitchedDai=a.enableServerStitchedDai&&nR(a):a.Bc&&
(a.Ba.oa==="yt"&&a.Wb()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")?a.ma("deprecateMflFallback",{}):a.Ej=!0)}var Y$=b.adpings;Y$&&(a.xw=Y$?Hr(Y$):null);var yIa=b.feature;yIa&&(a.Sp=yIa);var zIa=b.referrer;zIa&&(a.referrer=zIa);a.clientScreenNonce=Ls(a.clientScreenNonce,b.csn);a.XH=Ks(a.XH,b.root_ve_type);a.Mp=Ks(a.Mp,b.kids_age_up_mode);b.kids_app_info!=void 0&&(a.kidsAppInfo=b.kids_app_info);a.fD=Is(a.fD,b.upg_content_filter_mode);a.unpluggedFilterModeType=Ks(a.unpluggedFilterModeType,
b.unplugged_filter_mode_type);var AIa=b.unplugged_location_info;AIa&&(a.oa=AIa);var BIa=b.unplugged_partner_opt_out;BIa&&(a.DD=Ls("",BIa));a.Qw=Is(a.Qw,b.disable_watch_next);a.Vn=Ls(a.Vn,b.internal_ip_override);a.XG=!!b.is_yto_interstitial;(a.interstitials.length||a.XG)&&a.Ca.push("yto");var CIa=b.zn;CIa&&(a.zn=CIa);b.sN&&(a.sN=b.sN);var DIa;a.Ua=(DIa=b.csi_timer)!=null?DIa:"";a.Un=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var Iu=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&
Iu&&wKa(a,Iu);if(Iu==null?0:Iu.ustreamerConfig)a.Gp=sP(Iu.ustreamerConfig);var EIa,FIa,GIa=Iu==null?void 0:(EIa=Iu.loggingContext)==null?void 0:(FIa=EIa.qoeLoggingContext)==null?void 0:FIa.serializedContextData;GIa&&(a.e5=GIa);g.LP(a.Ba)&&a.Ba.xl&&(a.embedsRct=Ls(a.embedsRct,b.rct),a.embedsRctn=Ls(a.embedsRctn,b.rctn));a.jk=a.jk||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
lLa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";g.oR(a)&&!e&&a.Jv("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Yp||!e?"":(pR.has(e)?c="":(b=yLa.push(e),pR.add(e),b>(c!=null?c:50)&&(c=yLa.shift())&&pR.delete(c),c=e),e!==c&&a.Jv("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)};
cR=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.Oa=c;var e=a.Oa.playerCueRangeSet;e&&g.fR(a,e);var f=a.Oa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.Q(l,zLa),a.L("web_player_autonav_use_server_provided_state")&&qR(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.ay(p.title)),p.subtitle&&(b.subtitle=g.ay(p.subtitle)))}g.RP(a.Ba)&&(a.le=!!h.addToMenu);ALa(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.gga=g.Q(q,BLa));var r,t,u,y=g.Q((r=a.getWatchNextResponse())==null?void 0:
(t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,CLa);if(y){a.yG=Number(y==null?void 0:y.durationMs)||NaN;if(y==null?0:y.infoPanelOverviewViewModel)a.nf=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)a.rl=y==null?void 0:y.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,C,F=(A=a.getWatchNextResponse())==null?void 0:(C=A.contents)==null?void 0:C.twoColumnWatchNextResults;if(F){var H=F.desktopOverlay&&
g.Q(F.desktopOverlay,DLa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.le=!1))}n&&ELa(a,b,n);var L=Ks(0,b.autoplay_count),N=a.getWatchNextResponse(),X,V=(X=N.contents)==null?void 0:X.twoColumnWatchNextResults,ca,la,W,R=(ca=N.playerOverlays)==null?void 0:(la=ca.playerOverlayRenderer)==null?void 0:(W=la.autoplay)==null?void 0:W.playerOverlayAutoplayRenderer,Y=MKa(a),v,T=(v=N.contents)==null?void 0:v.singleColumnWatchNextResults;if(T){var $a;if((($a=T.autoplay)==null?
0:$a.autoplay)&&!T.playlist){var ub=T.autoplay.autoplay.sets,pb={},Da=new g.HQ(a.U()),db=null,rb;if(ub){for(var ab=g.w(ub),B=ab.next();!B.done;B=ab.next()){var D=B.value.autoplayVideoRenderer;if(D&&D.compactVideoRenderer){db=D.compactVideoRenderer;break}}if(rb=ub[0].autoplayVideo){var E=rb.clickTrackingParams;E&&(pb.itct=E);pb.autonav="1";pb.playnext=String(L)}}else pb.feature="related-auto";var I=g.Q(rb,g.rR);if(db){Da.videoId=db.videoId;var M=db.shortBylineText;M&&(Da.author=g.ay(M));var aa=db.title;
aa&&(Da.title=g.ay(aa))}else I!=null&&I.videoId&&(Da.videoId=I.videoId);Da.vF=pb;a.suggestions=[];a.Iw=Da}}if(Y){for(var ha=[],ea=g.w(Y),K=ea.next();!K.done;K=ea.next()){var oa=K.value,ra=void 0,ia=null;if(oa.endScreenVideoRenderer){var Ja=oa.endScreenVideoRenderer,kb=Ja.title;ia=new g.HQ(a.U());ia.videoId=Ja.videoId;ia.lengthSeconds=Ja.lengthInSeconds||0;var Sb=Ja.publishedTimeText;Sb&&(ia.publishedTimeText=g.ay(Sb));var sc=Ja.shortBylineText;sc&&(ia.author=g.ay(sc));var Ua=Ja.shortViewCountText;
Ua&&(ia.shortViewCount=g.ay(Ua));if(kb){ia.title=g.ay(kb);var Pc=kb.accessibility;if(Pc){var le=Pc.accessibilityData;le&&le.label&&(ia.ariaLabel=le.label)}}var Re=Ja.navigationEndpoint;if(Re){ra=Re.clickTrackingParams;var Se=g.Q(Re,g.rR),Tg=g.Q(Re,g.uy);Se?ia.wF=Se:Tg!=null&&(ia.watchUrl=Tg.url)}var xh=Ja.thumbnailOverlays;if(xh)for(var Uc=g.w(xh),Th=Uc.next();!Th.done;Th=Uc.next()){var Ug=Th.value.thumbnailOverlayTimeStatusRenderer;if(Ug)if(Ug.style==="LIVE"){ia.isLivePlayback=!0;break}else if(Ug.style===
"UPCOMING"){ia.isUpcoming=!0;break}}ia.Z=BQ(Ja.thumbnail)}else if(oa.endScreenPlaylistRenderer){var ug=oa.endScreenPlaylistRenderer,Hi=ug.navigationEndpoint;if(!Hi)continue;var Fj=g.Q(Hi,g.rR);if(!Fj)continue;var rd=Fj.videoId;ia=new g.GQ(a.U());ia.playlistId=ug.playlistId;ia.playlistLength=Number(ug.videoCount)||0;ia.j=rd||null;ia.videoId=rd;var Ii=ug.title;Ii&&(ia.title=g.ay(Ii));var Hk=ug.shortBylineText;Hk&&(ia.author=g.ay(Hk));ra=Hi.clickTrackingParams;ia.Z=BQ(ug.thumbnail)}ia&&(ra&&(ia.sessionData=
{itct:ra}),ha.push(ia))}a.suggestions=ha}if(R){a.fX=!!R.preferImmediateRedirect;a.Af=a.Af||!!R.webShowNewAutonavCountdown;a.Am=a.Am||!!R.webShowBigThumbnailEndscreen;if(a.Af||a.Am){var Gj=V||null,fd=new g.HQ(a.U());fd.videoId=R.videoId;var yh=R.videoTitle;if(yh){fd.title=g.ay(yh);var kc=yh.accessibility;if(kc){var Do=kc.accessibilityData;Do&&Do.label&&(fd.ariaLabel=Do.label)}}var Uq=R.byline;Uq&&(fd.author=g.ay(Uq));var tc=R.publishedTimeText;tc&&(fd.publishedTimeText=g.ay(tc));var VG=R.shortViewCountText;
VG&&(fd.shortViewCount=g.ay(VG));var WG=R.thumbnailOverlays;if(WG)for(var XG=g.w(WG),wz=XG.next();!wz.done;wz=XG.next()){var km=wz.value.thumbnailOverlayTimeStatusRenderer;if(km)if(km.style==="LIVE"){fd.isLivePlayback=!0;break}else if(km.style==="UPCOMING"){fd.isUpcoming=!0;break}else if(km.style==="DEFAULT"&&km.text){fd.lengthText=g.ay(km.text);var YG=km.text.accessibility;if(YG){var xz=YG.accessibilityData;xz&&xz.label&&(fd.vy=xz.label||"")}break}}fd.Z=BQ(R.background);var yz=R.nextButton;if(yz){var ZG=
yz.buttonRenderer;if(ZG){var $G=ZG.navigationEndpoint;if($G){var aH=g.Q($G,g.rR);aH&&(fd.wF=aH)}}}if(R.topBadges){var bH=R.topBadges[0];if(bH){var cH=g.Q(bH,FLa);cH&&cH.style==="BADGE_STYLE_TYPE_PREMIUM"&&(fd.sN=!0)}}var dH=R.alternativeTitle;dH&&(fd.St=g.ay(dH));var Eo={autonav:"1",playnext:String(L)};fd.playlistId&&(Eo.autoplay="1");if(Gj){var wS,eH,xS,Vg,zu=(wS=Gj.autoplay)==null?void 0:(eH=wS.autoplay)==null?void 0:(xS=eH.sets)==null?void 0:(Vg=xS[0])==null?void 0:Vg.autoplayVideo;if(zu){var fH=
zu.clickTrackingParams;fH&&(Eo.itct=fH);var gH=g.Q(zu,g.rR);gH&&(fd.JX=gH)}}else if(R){var hH,zz,iH,jH=(hH=R.nextButton)==null?void 0:(zz=hH.buttonRenderer)==null?void 0:(iH=zz.navigationEndpoint)==null?void 0:iH.clickTrackingParams;jH&&(Eo.itct=jH)}Eo.itct||(Eo.feature="related-auto");fd.vF=Eo;a.suggestions||(a.suggestions=[]);a.Iw=fd}R.countDownSecs!=null&&(a.J_=R.countDownSecs*1E3);R.countDownSecsForFullscreen!=null&&(a.hE=R.countDownSecsForFullscreen>=0?R.countDownSecsForFullscreen*1E3:-1);if(a.L("web_player_autonav_next_button_renderer")){var kH;
a.T4=(kH=R.nextButton)==null?void 0:kH.buttonRenderer}var lH;a.R4=(lH=R.cancelButton)==null?void 0:lH.buttonRenderer;a.L("web_autonav_color_transition")&&R.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.Q(R.watchToWatchTransitionRenderer,GLa))}var Az=MKa(a);if(Az){var mH,yS,nH,Bz=Az==null?void 0:(mH=Az[0])==null?void 0:(yS=mH.endScreenVideoRenderer)==null?void 0:(nH=yS.navigationEndpoint)==null?void 0:nH.clickTrackingParams,oH=g.sR(a);Bz&&oH&&(oH.sessionData={itct:Bz})}a.Oa.currentVideoThumbnail&&
(a.Z=BQ(a.Oa.currentVideoThumbnail));var pH,Fo,Ee,Go,Cz,Au=(pH=a.Oa)==null?void 0:(Fo=pH.contents)==null?void 0:(Ee=Fo.twoColumnWatchNextResults)==null?void 0:(Go=Ee.results)==null?void 0:(Cz=Go.results)==null?void 0:Cz.contents;if(Au&&Au[1]){var Bu,Cu,qH,lm,Du=(Bu=Au[1].videoSecondaryInfoRenderer)==null?void 0:(Cu=Bu.owner)==null?void 0:(qH=Cu.videoOwnerRenderer)==null?void 0:(lm=qH.thumbnail)==null?void 0:lm.thumbnails;Du&&Du.length&&(a.profilePicture=Du[Du.length-1].url)}var zS=Ns(b),rH,Ik=(rH=
a.getWatchNextResponse())==null?void 0:rH.onResponseReceivedEndpoints;if(Ik)for(var sH=g.w(Ik),Dz=sH.next();!Dz.done;Dz=sH.next()){var Ez=Dz.value;g.Q(Ez,tR)&&(a.VW=g.Q(Ez,tR));var mm=g.Q(Ez,HLa),tH=void 0;if((tH=mm)==null?0:tH.entityKeys)a.Yw=mm.entityKeys||[],mm.visibleOnLoadKeys&&(a.visibleOnLoadKeys=mm.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var AS=g.uR.getState().entities,uH=g.RB("visibility_override","markersVisibilityOverrideEntity");var Vq=TB(AS,"markersVisibilityOverrideEntity",
uH);a.Ee=(Vq==null?void 0:Vq.videoId)===(a.videoId||zS)&&(Vq==null?0:Vq.visibilityOverrideMarkersKey)?Vq.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.x(a.Ee))}}};
qR=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0};
ILa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
g.xR=function(a){var b=a.W;a.L("html5_gapless_unlimit_format_selection")&&vR(a)&&(b=!1);var c=!!a.j&&a.j.Wb,d=a.L("html5_kabuki_drm_live_51_default_off")?a.getUserAudio51Preference():a.Vf,e=a.Ba,f=a.zR(),h=wR(a),l=a.zE,m=b,n=a.isOtf();b=a.vJ();var p=a.ib,q=JLa(a),r=new WIa(e);if(e.Vb()||e.L("html5_logging_format_selection"))r.B=!0;r.Ta=h;r.Ja=l&&e.N;r.Vf=d;g.us("windows nt 5.1")&&!g.OO&&(r.mp=!0);if(d=f)d=g.jQ(e)?XJa(e):!1;d&&(r.Aa=!0);m&&(r.mp=!0,r.Bc=!0);n&&!e.L("html5_otf_prefer_vp9")&&(r.mp=!0);
e.playerStyle==="picasaweb"&&(n&&(r.mp=!1),r.Ca=!1);p&&(r.mp=!0);wM(e.G,xM.CHANNELS)&&(e.L("html5_enable_aac51")&&(r.qa=!0),e.L("html5_enable_ac3")&&(r.D=!0),e.L("html5_enable_eac3")&&(r.G=!0),e.L("html5_enable_ac3_gapless")&&(r.Ka=!0));e.L("html5_block_8k_hfr")&&(r.Ya=!0);r.K=g.UD(e.experiments,"html5_max_selectable_quality_ordinal");r.N=g.UD(e.experiments,"html5_min_selectable_quality_ordinal");mP&&(r.Tb=480);if(c||f)r.Ca=!1;r.ib=!1;r.disableAv1=q;c=FO(e,r.j,void 0,r.disableAv1);c>0&&c<2160&&(RG()||
e.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+RG(),r.Cj=c);c>=2160&&(r.Fa=!0);tCa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.jd=!1);r.vJ=b;r.Ua=g.Lu||Gs()&&!b?!1:!0;r.W=e.L("html5_format_hybridization");r.Kb=e.L("html5_disable_encrypted_vp9_live_non_2k_4k");gR(a)&&(r.qc=a.L("html5_prefer_language_over_codec"));xs()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&
(r.D=!0,r.G=!0);a.W&&a.isAd()&&(a.uw&&(r.oa=a.uw),a.qw&&(r.C=a.qw));r.Oa=a.isLivePlayback&&a.Qi()&&a.Ba.L("html5_drm_live_audio_51");r.rb=a.vE;return a.mf=r};
JLa=function(a){return a.Ba.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&vR(a)?!0:!1};
LLa=function(a){FA("drm_pb_s",void 0,a.Ua);a.Va||a.j&&rM(a.j);var b={};a.j&&(b=FDa(a.Pw,g.xR(a),a.Ba.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
b=new eP(b,a.Ba,a.v_,a.useCobaltWidevine?xs()?KLa(a):!1:!1,function(c,d){a.ma(c,d)});
g.P(a,b);a.Lp=!1;a.loading=!0;gJa(b,function(c){FA("drm_pb_f",void 0,a.Ua);for(var d=g.w(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Va=a.Va;e.Uw=a.Uw;e.Tw=a.Tw;break;case "widevine":e.Dm=a.Dm}a.Qp=c;if(a.Qp.length>0&&(a.G=a.Qp[0],a.Ba.Vb())){c={};d=g.w(Object.entries(a.G.j));for(e=d.next();!e.done;e=d.next()){var f=g.w(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)}bR(a)})};
xLa=function(a,b){if(b.length===0||iR(a))return null;jR(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(CO=!0);var c=a.qe;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Wd,h=a.Ba,l=HIa(b);if(e||f){h=h.experiments;d=new nO("",h,!0);d.B=!f;d.Wb=!0;d.isManifestless=!0;d.isLive=!f;d.Wd=f;b=g.w(b);for(e=b.next();!e.done;e=b.next()){var m=e.value;e=qO(m,c);l=EM(m);l=sO(l.WE||m.url||"",l.qI,l.s);var n=l.get("id");n&&n.includes("%7E")&&(d.W=!0);var p=void 0;n=(p=h)==null?void 0:p.bb("html5_max_known_end_time_rebase");
p=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);var q=Number(l.get("mindsq")||l.get("min_sq")||"0"),r=Number(l.get("maxdsq")||l.get("max_sq")||"0")||Infinity;d.hf=d.hf||q;d.Ci=d.Ci||r;var t=!DG(e.mimeType);l&&kO(d,new XN(l,e,{ek:p,ao:t,Qr:m,hf:q,Ci:r,JB:300,Wd:f,LI:n}))}c=d}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new nO("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(d=h.next();!d.done;d=h.next())d=d.value,b=qO(d,c,f.duration),e=EM(d),(e=sO(e.WE||d.url||"",
e.qI,e.s))&&(b.streamType==="FORMAT_STREAM_TYPE_OTF"?kO(f,new YN(e,b,"sq/0")):kO(f,new gO(e,b,EN(d.initRange),EN(d.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new nO("",h.experiments,!1);f.duration=d||0;h=g.w(b);for(d=h.next();!d.done;d=h.next())l=d.value,d=qO(l,c,f.duration),b=EN(l.initRange),e=EN(l.indexRange),n=EM(l),(l=sO(n.WE||l.url||"",n.qI,n.s))&&kO(f,new gO(l,d,b,e));c=f}f=a.isLivePlayback&&!a.Wd&&!a.Ja&&!a.isPremiere;a.L("html5_live_head_playable")&&(!lR(a)&&f&&a.ma("missingLiveHeadPlayable",
{}),a.Ba.oa==="yt"&&(c.Ta=!0));return c};
iR=function(a){return xs()?!KLa(a):zs()?!(!a.Va||!a.L("html5_enable_safari_fairplay")):!1};
KLa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.fR=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.gE.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}};
nR=function(a){return!(!a.j||!a.j.isManifestless)};
yR=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&wO(a.j)>=5};
vLa=function(a){return xs()&&KLa(a)?!1:iR(a)&&g.fE(a.Ba)&&!a.isLivePlayback||!nP()||a.tE?!0:!1};
NLa=function(a){a.loading=!0;a.Ej=!1;if(wLa(a))g.WKa(a.videoId).then(function(d){MLa(a,d)}).then(function(){bR(a)});
else{GE(a.Bc)||g.qx(new g.At("DASH MPD Origin invalid: ",a.Bc));var b=a.Bc,c=g.UD(a.Ba.experiments,"dash_manifest_version")||4;b=g.gj(b,{mpd_version:c});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.gj(b,{pacing:0}));PIa(b,a.Ba.experiments,a.isLivePlayback).then(function(d){a.Ia()||(mR(a,d,!0),FA("mrc",void 0,a.Ua),bR(a))},function(d){a.Ia()||(a.loading=!1,a.publish("dataloaderror",new aG("manifest.net.retryexhausted",{backend:"manifest",
rc:d.status},1)))});
FA("mrs",void 0,a.Ua)}};
MLa=function(a,b){var c=b.map(function(m){return m.itag}),d;
if((d=a.playerResponse)!=null&&d.streamingData){d=[];if(a.L("html5_offline_always_use_local_formats"))for(b=g.w(b),c=b.next();!c.done;c=b.next())d.push(Object.assign({},c.value,{signatureCipher:""}));else for(var e=g.w(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={dj:void 0},f=e.next())if(h.dj=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.w(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.dj.itag&&l.xtags===h.dj.xtags&&(h.dj=Object.assign({},
h.dj),h.dj.url=b.find(function(m){return function(n){return n.itag===m.dj.itag}}(h)).url,h.dj.signatureCipher="",d.push(h.dj))}else c.includes(h.dj.itag)&&(h.dj=Object.assign({},h.dj),h.dj.url=b.find(function(m){return function(n){return n.itag===m.dj.itag}}(h)).url,h.dj.signatureCipher="",d.push(h.dj));
d=xLa(a,d);wR(a)&&TIa(d,!1);mR(a,d);a.ma("dlr",{})}else a.ma("offsdm",{cotn:a.vD?a.vD.cotn:"0",cpn:a.clientPlaybackNonce})};
OLa=function(a){var b;return!((b=a.Ba.getWebPlayerContextConfig())==null||!b.enableProximaLowLatency)};
zR=function(a){if(!a.isProximaLatencyEligible)return 0;var b=SL();return OLa(a)?2:b===1?1:a.L("html5_enable_proxima")?2:0};
bR=function(a){a.Ia()||(a.loading=!1,a.publish("dataloaded"))};
mR=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.P(a,b);b.hf=a.hf;b.Ci=a.Ci;b.Ka=a.Ka;b.Gb=a.Gb;b.qc=a.qc;a.xl&&(b.Z=new vN(a.xl));(a.zR()||g.AR(a))&&a.Ca.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.vl=Number(d[d.indexOf("manifest_duration")+1]));if(b.B||b.isManifestless)b.subscribe("clienttemp",a.ma,a),c?b.subscribe("refresh",a.N0,a):b.subscribe("cuepointsadded",a.bY,a);rM(b)?a.Lp=!0:gP=void 0;a.Ja&&(b.D=a.Ja,b.isLive=!0,a.isLivePlayback=
!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
QLa=function(a,b){var c=b||vLa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ma("skipDash",{dm:!!a.j,air:b,dd:a.tE,mss:nP(),"3pp":a.isExternallyHostedPodcast}),js();wR(a)&&TIa(a.j,a.isLivePlayback);jR(a,"html5_enable_cobalt_experimental_vp9_decoder")&&wJa(a.Ba.G);return ks().then(function(){return HDa(a.Pw,g.xR(a),a.Ba.G,a.j,a.G,function(d){return a.publish("ctmp","fmtflt",d)},a.wD,gR(a)&&a.L("html5_enable_server_format_filter")).then(function(d){PLa(a,d);
a.Pw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.mf&&a.ma("av1",a.mf.j)})})};
RLa=function(a,b){if(b&&a.hlsvp)return js();if(a.hlsFormats){b=kR(a.hlsFormats);var c;if(((c=a.mf)==null?0:c.B)&&b){c=[];for(var d=g.w(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ma("hlsfmt",{itags:c.join(".")})}a.Ww=kKa(a.Ba,b);c=a.clientPlaybackNonce;var f,h,l,m;return pKa(a.Ba,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.jd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.w(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 y=u=void 0;((u=t.getInfo())==null?void 0:(y=u.audio)==null?void 0:y.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.ma("hlschl",{mn:p});var A;((A=a.mf)==null?0:A.B)&&a.ma("hlsfmtaf",{itags:q.join(".")});var C;if(a.L("html5_enable_vp9_fairplay")&&((C=a.G)==null?0:MO(C)))for(a.ma("drm",{sbdlfbk:1}),p=g.w(a.Qp),q=p.next();!q.done;q=p.next())if(q=q.value,LO(q)){a.G=q;break}BR(a,n)})}return js()};
SLa=function(a){if(a.isExternallyHostedPodcast&&a.Uf){var b=kR(a.Uf);if(!b[0])return js();a.h7=b[0];return sKa(a.Ba,b[0]).then(function(c){BR(a,c)})}return a.Cm&&a.CV?rKa(a.Ba,a.isAd(),a.Cm).then(function(c){BR(a,c)}):js()};
ULa=function(a){if(a.isExternallyHostedPodcast)return js();var b=kR(a.Uf,a.FE);if(a.hlsvp){var c=fLa(a.hlsvp,a.clientPlaybackNonce,a.jd);b.push(c)}return qKa(a.Ba,a.isAd(),b,TLa(a)).then(function(d){BR(a,d)})};
PLa=function(a,b){a.C=b;if(a.C){b=g.w(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.nE[d]=c.id)}}VLa(a);if(a.G&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=yG(a.C.videoInfos[0]),b!=(a.G.flavor=="fairplay")))for(c=g.w(a.Qp),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.G=d;break}};
BR=function(a,b){a.kd=b;PLa(a,new mM(g.Ql(a.kd,function(c){return c.getInfo()})))};
TLa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ba.j.c,cver:a.Ba.j.cver};a.hx&&(b.ptk=a.hx,b.oid=a.bX,b.ptchn=a.XW,b.pltype=a.cX,a.Rw&&(b.m=a.Rw));return b};
g.CR=function(a){return iR(a)&&a.Va?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.qe||null};
XLa=function(a){var b=WLa(a);return b&&b.text?g.ay(b.text):a.paidContentOverlayText};
YLa=function(a){var b=WLa(a);return b&&b.durationMs?qg(b.durationMs):a.paidContentOverlayDurationMs};
WLa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((b=a.Oa)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,ZLa)||null};
DR=function(a){var b="";if(a.tD)return a.tD;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Ja?"window":"live");a.Wd&&(b="post");return b};
g.ER=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]};
$La=function(a){return!!a.Nj||!!a.CD||!!a.YA||!!a.vB||a.y4||a.N.focEnabled||a.N.rmktEnabled};
g.FR=function(a){return!!(a.Bc||a.Uf||a.Cm||a.hlsvp||a.Qx())};
aR=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Wb(a.Ca,"ypc");a.ypcPreview&&(b=!1);return a.ye()&&!a.loading&&(g.FR(a)||g.Wb(a.Ca,"heartbeat")||b)};
kR=function(a,b){a=Ir(a);var c={};if(b){b=g.w(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.w(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};
VLa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.il);for(var c=0;c<a.jE.length;c++)for(var d=a.jE[c],e=0;e<b.length;e++){var f=b[e],h=f.Yb.id==d.audioTrackId;if(f.Yb.isDefault&&c==a.Y1||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"}}};
ALa=function(a,b){a.showShareButton=!!b;var c,d,e=((c=g.Q(b,g.dK))==null?void 0:c.navigationEndpoint)||((d=g.Q(b,g.dK))==null?void 0:d.command);e&&(a.Hq=!!g.Q(e,aMa))};
hLa=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.oi=c);if(a.oi){a.embeddedPlayerConfig=a.oi.embeddedPlayerConfig||null;if(c=a.oi.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.oi.embedPreview){c=c.thumbnailPreviewRenderer;LKa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
BQ(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.Q(c.searchButton,g.dK))&&(a.c5=g.Q(d.navigationEndpoint,g.GR));(d=g.Q(c==null?void 0:c.videoDetails,bMa))&&ELa(a,b,d);d=g.Q(c==null?void 0:c.videoDetails,cMa);a.le=!!c.addToWatchLaterButton;ALa(a,c.shareButton);if(d==null?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.Q((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.rR))wKa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=qg(c.videoDurationSeconds));c.webPlayerActionsPorting&&KKa(a,c.webPlayerActionsPorting);if(e=g.Q(c==null?void 0:c.playlist,dMa)){a.Qn=!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.ay(c.shortBylineText):"";var n=c.title?g.ay(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.iq:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.ay(e.titleText));e.shortBylineText&&(b.author=g.ay(e.shortBylineText));a.T2=b}var p,q,r;if(b=g.Q((p=a.getEmbeddedPlayerResponse())==null?void 0:(q=p.embedPreview)==null?void 0:(r=q.thumbnailPreviewRenderer)==
null?void 0:r.infoPanel,CLa)){a.yG=Number(b==null?void 0:b.durationMs)||NaN;if(b==null?0:b.infoPanelOverviewViewModel)a.nf=b==null?void 0:b.infoPanelOverviewViewModel;if(b==null?0:b.infoPanelDetailsViewModel)a.rl=b==null?void 0:b.infoPanelDetailsViewModel}}if(a.oi.previewPlayabilityStatus){if(a.zx=a.oi.previewPlayabilityStatus,p=a.zx,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=uKa(p.errorCode);q=p.errorScreen;if(r=q==null?void 0:q.playerErrorMessageRenderer){a.AE=r;if(b=r.reason)a.errorReason=
g.ay(b);if(r=r.subreason)a.zo=g.ay(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.oi.playabilityStatus&&(a.Tn=a.oi.playabilityStatus,eMa(a)&&(a.errorDetail="0",a.Tn&&((t=a.Tn.embeddedPlayerErrorMessageRenderer)?
a.AE=g.Q(t,fMa):a.errorReason=a.Tn.reason||null)));(t=a.oi.attestation)&&FKa(a,t);(t=a.oi.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
ELa=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.Q((e=g.Q(c==null?void 0:c.channelThumbnailEndpoint,gMa))==null?void 0:e.urlEndpoint,g.uy))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.Q(e,hMa)){if(d=e.title)b.title=g.ay(d);if(e=e.subtitle)b.subtitle=g.ay(e)}if(c=c.expandedRenderer)if(c=g.Q(c,iMa)){if(e=c.title)b.expanded_title=g.ay(e);if(e=c.subtitle)b.expanded_subtitle=g.ay(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.Q(c,g.HR),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Bm=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.qE=b.toggledServiceEndpoint||null,a.oE=b.defaultServiceEndpoint||
null):(a.qE=b.defaultServiceEndpoint||null,a.oE=b.toggledServiceEndpoint||null)))}};
g.IR=function(a){return lR(a)&&!a.allowLiveDvr};
JR=function(a){return lR(a)&&a.allowLiveDvr};
lR=function(a){return a.L("html5_live_head_playable")&&nR(a)&&a.Ba.oa==="yt"?a.isLiveHeadPlayable:a.isLivePlayback};
g.KR=function(a){return!!a.j&&uFa(a.j)};
g.LR=function(a){return!!a.j&&vFa(a.j)};
g.MR=function(a){return!!a.j&&wFa(a.j)};
g.AR=function(a){return!!a.j&&xFa(a.j)};
g.jMa=function(a){if(a.kE)return null;var b=a.TW;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.kMa=function(a){return a.kE?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.NR=function(a){return a.L("enable_wn_infocards")};
g.OR=function(a){var b,c,d,e;return(g.NR(a)?(b=a.Oa)==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.lMa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.w(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};
PR=function(a){return a.adFormat&&a.adFormat!="1_5"?"adunit":a.eventLabel||a.Ba.Ja};
g.QR=function(a){return PR(a)==="shortspage"};
vR=function(a){return a.Oj()&&a.U().supportsGaplessShorts()};
RR=function(a){if(a.isAd()&&a.videoId!=a.Ba.Ee)return a.Ba.Ee};
SR=function(a){return a.mj||PR(a)=="detailpage"||PR(a)=="shortspage"||a.mutedAutoplay};
mMa=function(a){var b=(b=a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&PR(a)=="adunit"?a.jr:SR(a)?PR(a)=="detailpage"||PR(a)=="shortspage"?a.isAutonav||a.Tb>0:b||a.adFormat!=="17_8"||a.isAutonav||g.hQ(a.Ba)||a.jr?a.Xf?!1:a.Ba.Zh||a.Ba.Yi||!g.LP(a.Ba)?!b&&PR(a)=="adunit"&&a.Nj?!1:!0:!1:!1:(a.Xf?0:a.Yi)&&g.LP(a.Ba)?!0:!1;a.L("html5_log_detailpage_autoplay")&&PR(a)=="detailpage"&&a.ma("autoplay_info",{autoplay:a.mj,autonav:a.isAutonav,result:b});return b};
g.TR=function(a){return a.oauthToken||a.Ba.Pj};
oMa=function(a){if(a.L("html5_stateful_audio_normalization")){var b=1,c=g.UD(a.Ba.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.B)||a.t4){d=(0,g.hu)();a.Np=2;var e=d-a.Ba.rl<=a.maxStatefulTimeThresholdSec*1E3;a.applyStatefulNormalization&&e?a.Np=4:e||(a.Ba.ql=Infinity,a.Ba.rl=NaN);e=(a.Np===4?g.Bg(a.Ba.ql,a.minimumLoudnessTargetLkfs,a.loudnessTargetLkfs):a.loudnessTargetLkfs)-c;if(a.Np!==4){var f,h,l,m,n=((f=a.playerResponse)==null?void 0:(h=f.playerConfig)==
null?void 0:(l=h.audioConfig)==null?void 0:(m=l.loudnessNormalizationConfig)==null?void 0:m.statelessLoudnessAdjustmentGain)||0;e+=n}e=Math.min(e,0);a.preserveStatefulLoudnessTarget&&(a.Ba.ql=c+e,a.Ba.rl=d);a=Math.min(1,Math.pow(10,e/20))||b}else a=nMa(a)}else a=nMa(a);return a};
nMa=function(a){var b=1,c=g.UD(a.Ba.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.C)||a.Qj)a.Np=1;return Math.min(1,Math.pow(10,-c/20))||b};
wR=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=iP(a.Ba)==="TVHTML5_SIMPLY"&&a.Ba.j.ctheme==="MUSIC";a.Wf||!g.vz(a.Ba)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Wf=!0);if(b=g.ws())b=/Starboard\/([0-9]+)/.exec(g.Cb()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Ba;c=(iP(c)==="TVHTML5_CAST"||iP(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Ba.j.ctheme==="MUSIC";var d;if(d=!a.Wf)c||(c=a.Ba,c=iP(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.Wf=!0);return a.Ba.deviceIsAudioOnly||a.Wf&&a.Ba.N};
pMa=function(a){var b,c,d;return!!((b=a.playerResponse)==null?0:(c=b.playerConfig)==null?0:(d=c.mediaCommonConfig)==null?0:d.splitScreenEligible)};
qMa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
UR=function(a){return!(!a.Sn||!a.Ba.N)&&a.Qx()};
rMa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
sMa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.uE&&!a.xl};
gR=function(a){if(a.x4||a.cotn||!a.j||a.j.isOtf||a.zV&&!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")){var b=a.uE&&!!a.xl;if(!a.L("html5_combine_client_check_for_sabr"))return b;if(b)return!0;a.Jv("sabr","esfc")}var c=!a.j.Wb&&!a.Qi();b=c&&jP&&a.L("html5_enable_sabr_vod_streaming_xhr");c=c&&!jP&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=tMa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&
a.Qi()&&!a.j.Wb&&jP&&(a.ll==="1"?!1:!0);(b=b||c||d||e)&&!a.xl&&a.ma("sabr",{loc:"m"},!0);return b&&!!a.xl};
tMa=function(a){if(a.L("html5_enable_sabr_for_lifa_streams_only")&&a.enableServerStitchedDai&&!a.Bg())return!1;var b;if(!(b=a.Wb()&&a.Qi()&&jP&&(a.ll==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.Wb()&&!a.Qi()&&jP;var c=a.Wb()&&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.Wb()&&!jP&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a};
g.oR=function(a){return a.P3&&gR(a)};
wLa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.MQ(b)===1;return b&&!a.Sn};
g.VR=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&BM(b[a.B.id].resource.j);b=!!b[a.D.id]&&BM(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b};
uMa=function(a){return a.zx?["OK","LIVE_STREAM_OFFLINE"].includes(a.zx.status):!0};
eMa=function(a){return(a=a.Tn)&&a.showError?a.showError:!1};
jR=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
pLa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
vMa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
nLa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.vB=new OKa(b));if(b=b.video_masthead_ad_quartile_urls)a.CD=b.quartile_0_url,a.kX=b.quartile_25_url,a.lX=b.quartile_50_url,a.mX=b.quartile_75_url,a.gX=b.quartile_100_url,a.YA=b.quartile_0_urls,a.GD=b.quartile_25_urls,a.aE=b.quartile_50_urls,a.cE=b.quartile_75_urls,a.ED=b.quartile_100_urls};
mLa=function(a){var b={};a=g.w(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};
jLa=function(a){if(a){if(iwa(a))return a;a=jwa(a);if(iwa(a,!0))return a}return""};
g.wMa=function(a){return a.captionsLanguagePreference||a.Ba.captionsLanguagePreference||g.ER(a,"yt:cc_default_lang")||a.Ba.Ej};
WR=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.sR=function(a){var b;return a.Iw||((b=a.suggestions)==null?void 0:b[0])||null};
g.YR=function(a){return a.Jf&&a.Ba.Op};
eR=function(a,b){a.L("html5_log_autoplay_src")&&vR(a)&&a.ma("apsrc",{src:b})};
g.ZR=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)};
g.$R=function(a){var b=a.U(),c=g.xMa(b),d=a.Fa;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=PR(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.ib?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.Mp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:yMa[e]}});if(b=a.fD)d.unpluggedAppInfo=
{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:zMa[e]});if(b=a.oa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Pc&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=AMa[b];c.request=d;d=c.user||{};if(b=a.qa)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.kb)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.xMa=function(a){var b=g.aA(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.w(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;c=a.Pc;a.L("embeds_web_enable_iframe_api_send_full_embed_url")?(c&&(b.thirdParty=Object.assign({},b.thirdParty,{embedUrl:c})),uCa(b,a)):c&&(b.thirdParty={embedUrl:c});return b};
FMa=function(a,b,c){var d=a.videoId,e=g.$R(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(hw()),referer:document.location.toString(),signatureTimestamp:20005};g.tt();a.isAutonav&&(h.autonav=!0);g.ut(0,141)&&(h.autonavState=g.ut(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.ut(0,66);mMa(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.w(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.w(q);for(var r=q.next();!r.done;r=q.next()){var t=g.w(r.value.split("="));r=t.next().value;t=faa(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 y={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=BMa[p.breaktype])y.breakType=p;q&&(y.url=q);r&&(y.presetAd=r);t&&(y.viralAdResponseUrl=t);u&&(y.viralCampaignId=String(u));n.push(y)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.uD;if(m!=null){m={startWalltime:String(m)};if(n=a.vl)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Xf?0:a.Yi)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.qx)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Yj){n=a.eE;l=[];p=g.w(xDa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.WZ?"INACTIVE":"ACTIVE",clientFormFactor:CMa[r]||"UNKNOWN_FORM_FACTOR",clientName:zDa[q.d3]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:DMa[r]||"UNKNOWN_PLATFORM"};
r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.qx(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.LP(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.reloadPlaybackParams&&(d.playbackContext.reloadPlaybackContext={reloadPlaybackParams:a.reloadPlaybackParams});a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.ut(g.tt(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=
a.deviceCaptionsOn:g.fQ(e)&&(d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.B2&&(d.captionParams.deviceCaptionsLangPref=a.B2);a.wE.length?d.captionParams.viewerSelectedCaptionLangs=a.wE:g.fQ(e)&&(h=g.VL(),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.Xf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Xf);
e.L("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=EMa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=EMa(a));return d};
EMa=function(a){var b=!(a==null?0:a.vJ())&&(a==null?void 0:a.Wb())&&Gs();if(a==null?0:a.L("html5_report_supports_vp9_encoding")){if(a==null)var c=void 0;else{c=g.xR(a);a=a.U().G;var d=pQ("243");c=d?qM(c,d,a,!0)===!0:!1}b=c&&!b}else b=void 0;return{supportsVp9Encoding:b,supportXhr:jP}};
HMa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1)return c={context:g.xMa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.dA(GMa),g.G(f,g.NA(b,c,d),2);e=f.B;return f.return(e)})};
IMa=function(a,b,c){var d=g.UD(b.experiments,"bg_vm_reinit_threshold");(!LL||(0,g.hu)()-LL>d)&&HMa(a,c).then(function(e){e&&(e=e.botguardData)&&g.QL(e,b)},function(e){a.Ia()||(e=cG(e),a.ma("attf",e.details))})};
aS=function(a,b){g.O.call(this);this.app=a;this.state=b};
cS=function(a,b,c){a.state.j.hasOwnProperty(b)||bS(a,b,c);a.state.N[b]=function(){return c.apply(a,g.Ea.apply(0,arguments))};
a.state.K.add(b)};
dS=function(a,b,c){a.state.j.hasOwnProperty(b)||bS(a,b,c);a.app.U().N&&(a.state.Z[b]=function(){return c.apply(a,g.Ea.apply(0,arguments))},a.state.K.add(b))};
bS=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Ea.apply(0,arguments))}};
g.eS=function(a,b,c){return a.state.j[b].apply(a.state.j,g.x(c))};
fS=function(){g.eq.call(this);this.G=new Map};
JMa=function(){g.O.apply(this,arguments);this.element=null;this.K=new Set;this.N={};this.Z={};this.j={};this.W=new Set;this.C=new fS;this.B=new fS;this.D=new fS;this.G=new fS};
KMa=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 gS(a)};
gS=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.w(LMa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
MMa=function(a,b,c,d){if(g.Ta(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};
hS=function(){aS.apply(this,arguments)};
OMa=function(a){cS(a,"cueVideoById",a.q8);cS(a,"loadVideoById",a.aaa);cS(a,"cueVideoByUrl",a.t8);cS(a,"loadVideoByUrl",a.daa);cS(a,"playVideo",a.Fda);cS(a,"pauseVideo",a.pauseVideo);cS(a,"stopVideo",a.jfa);cS(a,"clearVideo",a.clearVideo);cS(a,"getVideoBytesLoaded",a.N9);cS(a,"getVideoBytesTotal",a.O9);cS(a,"getVideoLoadedFraction",a.sZ);cS(a,"getVideoStartBytes",a.R9);cS(a,"cuePlaylist",a.cuePlaylist);cS(a,"loadPlaylist",a.Y$);cS(a,"nextVideo",a.Gaa);cS(a,"previousVideo",a.Rda);cS(a,"playVideoAt",
a.Eda);cS(a,"setShuffle",a.setShuffle);cS(a,"setLoop",a.setLoop);cS(a,"getPlaylist",a.K9);cS(a,"getPlaylistIndex",a.getPlaylistIndex);cS(a,"getPlaylistId",a.getPlaylistId);cS(a,"loadModule",a.L_);cS(a,"unloadModule",a.T3);cS(a,"setOption",a.nU);cS(a,"getOption",a.E9);cS(a,"getOptions",a.FQ);cS(a,"mute",a.Faa);cS(a,"unMute",a.Ifa);cS(a,"isMuted",a.isMuted);cS(a,"setVolume",a.Vea);cS(a,"getVolume",a.getVolume);cS(a,"seekTo",a.Fea);cS(a,"getPlayerMode",a.getPlayerMode);cS(a,"getPlayerState",a.I9);cS(a,
"getAvailablePlaybackRates",a.getAvailablePlaybackRates);cS(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
cS(a,"setPlaybackQuality",a.Pea);cS(a,"getAvailableQualityLevels",a.s9);cS(a,"getCurrentTime",a.w9);cS(a,"getDuration",a.A9);cS(a,"addEventListener",a.O7);cS(a,"removeEventListener",a.gea);cS(a,"getDebugText",a.y9);cS(a,"getVideoData",function(){return NMa(a)});
cS(a,"addCueRange",a.M7);cS(a,"removeCueRange",a.removeCueRange);cS(a,"setSize",a.setSize);cS(a,"getApiInterface",a.getApiInterface);cS(a,"destroy",a.destroy);cS(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.K||(cS(a,"getVideoEmbedCode",a.getVideoEmbedCode),cS(a,"getVideoUrl",a.T9));cS(a,"getMediaReferenceTime",a.D9);cS(a,"getSize",a.getSize);cS(a,"setFauxFullscreen",a.Mea);b.K||cS(a,"logImaAdEvent",a.logImaAdEvent);cS(a,"preloadVideoById",a.Nda);cS(a,"wakeUpControls",a.wakeUpControls)};
g.iS=function(a){return(a=PMa(a.app.yb()))?a.Mi():null};
QMa=function(a){var b=g.UP(a.app.U()),c,d=(c=a.app.getVideoData())==null?void 0:c.Qn;a=jS(a.app);return g.Ps(b)&&!d||a?!1:!0};
NMa=function(a,b){var c={};if(b=g.kS(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=uMa(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};
lS=function(){hS.apply(this,arguments)};
VMa=function(a,b){var c={};if(a.app.U().qa){a=g.w(RMa);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 SMa.includes(e)}).join(",")),c.qoe_cat=a;
TMa(c)}else for(a=g.w(UMa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
TMa=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;if(b){a.raw_player_response={streamingData:b.streamingData};var d;if((d=b.playbackTracking)==null?0:d.qoeUrl)a.raw_player_response=Object.assign({},a.raw_player_response,{playbackTracking:{qoeUrl:b.playbackTracking.qoeUrl}});var e;if((e=b.videoDetails)==null?0:e.videoId)a.raw_player_response=Object.assign({},a.raw_player_response,{videoDetails:{videoId:b.videoDetails.videoId}})}};
WMa=function(a,b,c){var d=a.app.df(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
YMa=function(a){var b=b===void 0?5:b;return a?XMa[a]||b:b};
g.mS=function(){lS.apply(this,arguments)};
ZMa=function(a){bS(a,"getInternalApiInterface",a.getInternalApiInterface);bS(a,"addEventListener",a.N7);bS(a,"removeEventListener",a.fea);bS(a,"cueVideoByPlayerVars",a.r8);bS(a,"loadVideoByPlayerVars",a.baa);bS(a,"preloadVideoByPlayerVars",a.Oda);bS(a,"getAdState",a.getAdState);bS(a,"sendAbandonmentPing",a.sendAbandonmentPing);bS(a,"setLoopRange",a.setLoopRange);bS(a,"getLoopRange",a.getLoopRange);bS(a,"setAutonavState",a.setAutonavState);bS(a,"seekTo",a.Eea);bS(a,"seekBy",a.Cea);bS(a,"seekToLiveHead",
a.seekToLiveHead);bS(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);bS(a,"seekToStreamTime",a.seekToStreamTime);bS(a,"startSeekCsiAction",a.startSeekCsiAction);bS(a,"getStreamTimeOffset",a.getStreamTimeOffset);bS(a,"getVideoData",a.P9);bS(a,"setInlinePreview",a.setInlinePreview);bS(a,"getAppState",a.getAppState);bS(a,"updateLastActiveTime",a.updateLastActiveTime);bS(a,"setBlackout",a.setBlackout);bS(a,"setUserEngagement",a.setUserEngagement);bS(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
bS(a,"getPresentingPlayerType",a.LK);bS(a,"canPlayType",a.canPlayType);bS(a,"updatePlaylist",a.updatePlaylist);bS(a,"updateVideoData",a.updateVideoData);bS(a,"updateEnvironmentData",a.updateEnvironmentData);bS(a,"sendVideoStatsEngageEvent",a.Jea);bS(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);bS(a,"setSafetyMode",a.setSafetyMode);bS(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
bS(a,"getVideoAspectRatio",a.getVideoAspectRatio);bS(a,"getPreferredQuality",a.getPreferredQuality);bS(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);bS(a,"setPlaybackQualityRange",a.Qea);bS(a,"onAdUxClicked",a.onAdUxClicked);bS(a,"getFeedbackProductData",a.getFeedbackProductData);bS(a,"getStoryboardFrame",a.getStoryboardFrame);bS(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);bS(a,"getStoryboardLevel",a.getStoryboardLevel);bS(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
bS(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);bS(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);bS(a,"addCueRange",a.addCueRange);bS(a,"addUtcCueRange",a.addUtcCueRange);bS(a,"showAirplayPicker",a.showAirplayPicker);bS(a,"dispatchReduxAction",a.dispatchReduxAction);bS(a,"getPlayerResponse",a.G9);bS(a,"getWatchNextResponse",a.U9);bS(a,"getHeartbeatResponse",a.B9);bS(a,"changeMarkerVisibility",a.changeMarkerVisibility);bS(a,"getCurrentTime",a.v9);bS(a,"getDuration",a.VY);
bS(a,"getPlayerState",a.getPlayerState);bS(a,"getPlayerStateObject",a.H9);bS(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);bS(a,"getProgressState",a.getProgressState);bS(a,"getVolume",a.getVolume);bS(a,"setVolume",a.nN);bS(a,"isMuted",a.isMuted);bS(a,"mute",a.TL);bS(a,"unMute",a.HN);bS(a,"loadModule",a.loadModule);bS(a,"unloadModule",a.unloadModule);bS(a,"getOption",a.iZ);bS(a,"getOptions",a.getOptions);bS(a,"setOption",a.setOption);bS(a,"loadVideoById",a.N_);bS(a,"loadVideoByUrl",a.O_);bS(a,
"playVideo",a.uT);bS(a,"loadPlaylist",a.loadPlaylist);bS(a,"nextVideo",a.nextVideo);bS(a,"previousVideo",a.previousVideo);bS(a,"playVideoAt",a.playVideoAt);bS(a,"getDebugText",a.getDebugText);bS(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);bS(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);bS(a,"getVideoContentRect",a.getVideoContentRect);bS(a,"setSqueezeback",a.setSqueezeback);bS(a,"reportPlaybackIssue",a.reportPlaybackIssue);bS(a,"setAutonav",a.setAutonav);bS(a,"isNotServable",
a.isNotServable);bS(a,"channelSubscribed",a.channelSubscribed);bS(a,"channelUnsubscribed",a.channelUnsubscribed);bS(a,"togglePictureInPicture",a.togglePictureInPicture);bS(a,"supportsGaplessAudio",a.supportsGaplessAudio);bS(a,"supportsGaplessShorts",a.supportsGaplessShorts);bS(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
bS(a,"clearQueue",a.clearQueue);bS(a,"getAudioTrack",a.o9);bS(a,"setAudioTrack",a.Kea);bS(a,"getAvailableAudioTracks",a.r9);bS(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);bS(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);bS(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);bS(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);bS(a,"setMinimized",a.setMinimized);bS(a,"setOverlayVisibility",a.setOverlayVisibility);bS(a,"confirmYpcRental",a.confirmYpcRental);
bS(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);bS(a,"isSubtitlesOn",a.isSubtitlesOn);bS(a,"queueNextVideo",a.queueNextVideo);bS(a,"handleExternalCall",a.handleExternalCall);bS(a,"logApiCall",a.logApiCall);bS(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);bS(a,"setScreenLayer",a.setScreenLayer);bS(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);bS(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);bS(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);bS(a,
"syncVolume",a.syncVolume);bS(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);bS(a,"openSettingsMenuItem",a.openSettingsMenuItem);bS(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);bS(a,"getVisibilityState",a.getVisibilityState);bS(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);a.L("embeds_enable_emc3ds_muted_autoplay")&&bS(a,"isMutedByEmbedsMutedAutoplay",a.isMutedByEmbedsMutedAutoplay);bS(a,"setGlobalCrop",a.setGlobalCrop);bS(a,"setInternalSize",a.setInternalSize);bS(a,
"setFauxFullscreen",a.setFauxFullscreen);bS(a,"setAppFullscreen",a.setAppFullscreen)};
oS=function(a,b,c){a=g.nS(a.We(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.pS=function(a,b,c){return a.app.U().mf?b:g.XE("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
$Ma=function(a){a.We().element.setAttribute("aria-live","polite")};
g.qS=function(a,b){g.mS.call(this,a,b);ZMa(this);dS(this,"addEventListener",this.P7);dS(this,"removeEventListener",this.hea);dS(this,"cueVideoByPlayerVars",this.s8);dS(this,"loadVideoByPlayerVars",this.caa);dS(this,"preloadVideoByPlayerVars",this.Pda);dS(this,"loadVideoById",this.N_);dS(this,"loadVideoByUrl",this.O_);dS(this,"playVideo",this.uT);dS(this,"loadPlaylist",this.loadPlaylist);dS(this,"nextVideo",this.nextVideo);dS(this,"previousVideo",this.previousVideo);dS(this,"playVideoAt",this.playVideoAt);
dS(this,"getVideoData",this.rZ);dS(this,"seekBy",this.Dea);dS(this,"seekTo",this.Gea);dS(this,"showControls",this.showControls);dS(this,"hideControls",this.hideControls);dS(this,"cancelPlayback",this.cancelPlayback);dS(this,"getProgressState",this.getProgressState);dS(this,"isInline",this.isInline);dS(this,"setInline",this.setInline);dS(this,"setLoopVideo",this.setLoopVideo);dS(this,"getLoopVideo",this.getLoopVideo);dS(this,"getVideoContentRect",this.getVideoContentRect);dS(this,"getVideoStats",this.S9);
dS(this,"getCurrentTime",this.x9);dS(this,"getDuration",this.VY);dS(this,"getPlayerState",this.J9);dS(this,"getVideoLoadedFraction",this.Q9);dS(this,"mute",this.TL);dS(this,"unMute",this.HN);dS(this,"setVolume",this.nN);dS(this,"loadModule",this.loadModule);dS(this,"unloadModule",this.unloadModule);dS(this,"getOption",this.iZ);dS(this,"getOptions",this.getOptions);dS(this,"setOption",this.setOption);dS(this,"addCueRange",this.addCueRange);dS(this,"getDebugText",this.getDebugText);dS(this,"getStoryboardFormat",
this.getStoryboardFormat);dS(this,"toggleFullscreen",this.toggleFullscreen);dS(this,"isFullscreen",this.isFullscreen);dS(this,"getPlayerSize",this.getPlayerSize);dS(this,"toggleSubtitles",this.toggleSubtitles);dS(this,"setCenterCrop",this.setCenterCrop);dS(this,"setFauxFullscreen",this.setFauxFullscreen);dS(this,"setSizeStyle",this.setSizeStyle);dS(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);dS(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);OMa(this)};
g.rS=function(a){a=a.yb();var b=a.Ke.get("endscreen");return b&&b.Pv()?!0:a.kI()};
g.sS=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.eb("onAutonavCancelled",b)};
g.uS=function(a){var b=tS(a.yb());return a.app.Lj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.Rl()&&b.wq()||!!a.getPlaylist()};
g.aNa=function(a,b){g.eS(a,"addEmbedsConversionTrackingParams",[b])};
g.QS=function(a){return(a=g.vS(a.yb()))?a.PK():{}};
g.bNa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"};
g.US=function(a,b,c){a=a.ob().element;var d=gc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
d<0&&(d=-(d+1));uh(a,b,d);b.setAttribute("data-layer",String(c))};
g.VS=function(a){var b=a.U();if(!b.ge)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!WR(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.Rl();var f=c.Oa&&c.Oa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Jf&&f;return!c.ypcPreview&&(!d||e)&&!g.Wb(c.Ca,"ypc")&&
!a&&(!g.LP(b)||f)};
cNa=function(a){a=g.kS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.tV)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};
dNa=function(){qt.apply(this,arguments);this.requestHeaders={}};
WS=function(){eNa||(eNa=new dNa);return eNa};
XS=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
g.YS=function(a,b,c,d){d=d===void 0?!1:d;g.Yx.call(this,b);var e=this;this.J=a;this.Ca=d;this.N=new g.jG(this);this.oa=new g.Ny(this,c,!0,void 0,void 0,function(){e.OY()});
g.P(this,this.N);g.P(this,this.oa)};
fNa=function(a){a.B&&(document.activeElement&&g.wh(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.ht(a.N);a.W=void 0};
ZS=function(a,b,c){a.Hk()?a.Mb():a.rd(b,c)};
gNa=function(a,b,c,d){d=new g.S({I:"div",La:["ytp-linked-account-popup-button"],va:d,X:{role:"button",tabindex:"0"}});b=new g.S({I:"div",S:"ytp-linked-account-popup",X:{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.YS.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.P(this,this.dialog);
d.listen("click",function(){e.Mb()});
g.P(this,d);g.US(this.J,this.element,4);this.hide()};
g.$S=function(a,b,c,d){g.Yx.call(this,a);this.priority=b;c&&this.dk(c);d&&this.Fd(d)};
g.aT=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",La:b,X: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};
bT=function(a){g.$S.call(this,g.aT({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Cb=a.dn();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Lc(c)});
this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
cT=function(a){return a?g.ay(a):""};
dT=function(a){g.O.call(this);this.api=a};
eT=function(a){dT.call(this,a);var b=this;bS(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
bS(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new bT(b.api);g.P(b,b.menuItem)})};
hNa=function(a){this.api=a;this.j={}};
fT=function(a,b,c,d){b in a.j||(c=new g.KE(c,d,{id:b,priority:2,namespace:"appad"}),a.api.qf([c],1),a.j[b]=c)};
iNa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(this);g.P(this,this.events);this.j=new hNa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;fT(d,"part2viewed",1,0x8000000000000);fT(d,"engagedview",Math.max(1,c.Kb*1E3),0x8000000000000);if(!c.isLivePlayback){var e=c.lengthSeconds*1E3;vR(c)&&d.api.L("html5_shorts_gapless_ads_duration_fix")&&(e=d.api.getProgressState().seekableEnd*1E3-c.uZ);fT(d,"videoplaytime25",e*.25,e);fT(d,"videoplaytime50",e*.5,e);fT(d,"videoplaytime75",e*.75,e);fT(d,"videoplaytime100",e,0x8000000000000);fT(d,"conversionview",e,0x8000000000000);
fT(d,"videoplaybackstart",1,e);fT(d,"videoplayback2s",2E3,e);fT(d,"videoplayback10s",1E4,e)}});
this.events.T(this.api,g.ME("appad"),this.B);this.events.T(this.api,g.NE("appad"),this.B)};
mNa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.w(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.Wo(c,d);d=void 0;d=d===void 0?!1:d;(d=DE(EE(c,jNa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=DE(EE(c,kNa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=DE(EE(c,lNa),c,d,"Nielsen OCR URL"));g.Av(c,void 0,d)}return!0};
gT=function(a,b){nNa(a,b).then(function(c){g.Av(b,void 0,void 0,c)})};
hT=function(a,b){b.forEach(function(c){gT(a,c)})};
nNa=function(a,b){return g.hE(a.api.U())&&Or(b)&&Nr(b)?g.oQ(a.api.U(),g.TR(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):ks()};
oNa=function(a){dT.call(this,a);this.events=new g.jG(a);g.P(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.Qt("adsClientStateChange",e)}})};
qNa=function(a){g.S.call(this,{I:"button",La:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.VD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
pNa(this);oS(a,this.element,this);this.VD()};
pNa=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.BW))};
rNa=function(a){a.isChecked=a.isChecked;a.Da("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.ji()};
sNa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&qR(a.xd())};
tNa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new qNa(a);g.P(b,c);a.eA(c)})};
iT=function(a,b){g.$S.call(this,g.aT({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)};
jT=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
uNa=function(a){var b=!a.U().Yk&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b};
g.kT=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.jz(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Tz(a,d,!0);return!1};
g.lT=function(a,b,c){if(cQ(b.U())&&b.getPresentingPlayerType()!==2){if(g.jz(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.jz(c);d&&b.pauseVideo();g.Tz(a,void 0,!0);d&&(g.Uz(a),c.preventDefault())}return!1};
wNa=function(){var a=vNa.includes("en")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a};
xNa=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"}]}]}]}};
yNa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
nT=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";iT.call(this,b,g.mT.O4);var c=this;this.J=a;this.j=!1;this.B=new g.Ep(function(){g.Op(c.element,"ytp-menuitem-highlighted")},0);
this.Cb=a.dn();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(zNa,this.D);g.P(this,this.B)};
BNa=function(a){dT.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){ANa(b)});
a.addEventListener("highlightSettingsMenu",function(c){ANa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.Mp(d.element,"ytp-menuitem-highlighted"),g.Mp(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
bS(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
ANa=function(a){a.menuItem||(a.menuItem=new nT(a.api),g.P(a,a.menuItem),a.menuItem.Ra(a.j))};
CNa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"applicationvideodatachange",function(c,d){b.vS(c,d)})};
oT=function(a,b,c,d){iT.call(this,"Stable Volume",g.mT.u7);g.Mp(this.element,"ytp-drc-menu-item");this.Cb=a.dn();this.D=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.B.bind(this));a.L("mta_drc_mutual_exclusion_removal")&&this.T(a,"onPlaybackAudioChange",this.B);a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
fill:"white"}}]});this.subscribe("select",this.C,this);jT(this,a);this.Cb.Tc(this)};
pT=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new oT(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.P(b,b.menuItem))});
bS(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
bS(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
bS(this.api,"hasDrcAudioTrack",function(){return b.B()});
var c;this.j=(c=g.mt("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()};
qT=function(a){dT.call(this,a);var b=this;this.j={};this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.ME("embargo"),function(c){b.api.qp(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.w(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Qf("auth",2,"This video isn't available in your current playback area",$F({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.eb("innertubeCommand",f)}})};
DNa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)};
ENa=function(a,b){b=g.w(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))}};
FNa=function(a){dT.call(this,a);var b=this;this.j=[];this.events=new g.jG(a);g.P(this,this.events);bS(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Qp&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=ib(c.visualElement.getAsJspb(),2),b.j.push(c))})};
GNa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){EL(DL(),16623);b.j=g.hx();var d=a.U().Zh&&!c.Xf;if(SR(c)&&d){EL(DL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&GL(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&GL(c)}}else EL(DL(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&GL(h)});
this.events.T(a,"loadvideo",function(){EL(DL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){EL(DL(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){EL(DL(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){EL(DL(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){EL(DL(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){EL(DL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
HNa=function(a){g.O.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)};
JNa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){INa(b)})};
INa=function(a){a.j=new HNa(a.api.getRootNode());g.P(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.eQ();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})};
KNa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null};
rT=function(a){g.S.call(this,{I:"div",La:["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)};
MNa=function(a,b){a.j||(a.B=b,a.C=(0,g.hu)(),a.j=new g.Dp(function(){LNa(a)},null),LNa(a))};
LNa=function(a){var b=Math,c=b.round,d=Math.min((0,g.hu)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",xL({seconds:b}));b<=0&&a.j?NNa(a):a.j&&a.j.start()};
NNa=function(a){a.j&&(a.j.dispose(),a.j=null)};
ONa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new rT(a);g.P(b,b.j);g.US(a,b.j.element,4);b.j.hide()})};
sT=function(a){g.S.call(this,{I:"button",La:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",La:["ytp-fullerscreen-edu-text"],va:"Scroll for details"},{I:"div",La:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Sa=a;this.j=new g.Ny(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.P(this,
this.j);this.T(a,"fullscreentoggled",this.Ra);this.T(a,"presentingplayerstatechange",this.Ra);this.listen("click",this.onClick);this.Ra()};
tT=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);bS(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
bS(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&cQ(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new sT(a);g.P(b,b.j);a.eA(b.j)})};
PNa=function(a){g.S.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",La:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},V:[g.fy()]},{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.Da("ytp-gated-actions-overlay-background");this.B=this.Da("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Da("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.eb("onCloseMiniplayer")});
this.hide()};
RNa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={DJ:void 0},c++){var e=a.j[c],f=void 0,h=(f=e)==null?void 0:f.element;h||(h=new g.S({I:"button",S:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",va:"{{buttonText}}"}]}),g.P(a,h),h.Ha(a.B),e={element:h});d.DJ=g.Q(b[c],QNa);var l=f=void 0,m=void 0,n=((f=d.DJ)==null?void 0:f.title)||((l=d.DJ)==null?void 0:(m=l.titleFormatted)==null?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Mc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.Q((q=p.DJ)==null?void 0:q.onTap,sx);r&&a.api.eb("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
SNa=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.j=new PNa(this.api);g.P(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=(c=b.api.getVideoData())==null?void 0:c.gga;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.w(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;RNa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.US(this.api,this.j.element,4)};
TNa=function(a){dT.call(this,a);var b=this;this.j=null;this.events=new g.jG(a);g.P(this,this.events);var c=a.U();c.Wk=!1;c.Va=!1;c.Pn=!1;dS(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
dS(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
dS(a,"updateSubtitlesUserSettings",function(f){a.updateSubtitlesUserSettings(f)});
dS(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})});
dS(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()});
dS(a,"getPreferredQuality",function(){return a.getPreferredQuality()});
dS(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()});
dS(a,"setPlaybackQuality",function(f){a.setPlaybackQuality(f)});
var d=this.api.ej(),e=d.subscribe("visibilitystatechange",function(){a.Cd("onPictureInPictureChange",d.hj())});
this.addOnDisposeCallback(function(){d.Fh(e)});
dS(a,"setRootNodeClickAction",function(f){b.j=f});
this.events.T(a.getRootNode(),"click",function(){switch(b.j){case "togglePictureInPicture":a.togglePictureInPicture();break;case "play":a.playVideo()}})};
UNa=function(a){dT.call(this,a);a=a.U();a.gh.push("flix");a.Va=!1;a.Wk=!1};
YNa=function(a){dT.call(this,a);var b=this;this.j={};this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){b.j=VNa(WNa)});
this.events.T(a,"onPlaybackStartExternal",function(){var c=Object.assign({},b.j,VNa(XNa));b.api.ma("hbp_csi",c,!0,1)})};
VNa=function(a){var b={},c=g.Dr(AA)("_start",void 0);if(c){a=g.w(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=g.Dr(AA)(d,void 0);e&&(b[d]=Math.round(e-c))}}return b};
uT=function(a){dT.call(this,a);var b=this;dS(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
dS(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.x(g.Ea.apply(0,arguments)))});
cS(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()});
cS(this.api,"setSphericalProperties",function(){var c=g.Ea.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.x(c))})};
ZNa=function(a){dT.call(this,a);bS(a,"createClientVe",this.createClientVe.bind(this));bS(a,"createServerVe",this.createServerVe.bind(this));bS(a,"destroyVe",this.destroyVe.bind(this));bS(a,"hasVe",this.hasVe.bind(this));bS(a,"logClick",this.logClick.bind(this));bS(a,"logVisibility",this.logVisibility.bind(this));bS(a,"setTrackingParams",this.setTrackingParams.bind(this))};
vT=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.hu)()-f).toFixed(),shost:g.aj(a),trigger:b};$Na(h,a);c&&c(h);d&&!l&&d(new aG("pathprobe.net",h))}
var f=(0,g.hu)();g.ds(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
$Na=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(),aOa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
bOa=function(a,b){this.Gc=a;this.policy=b;this.playbackRate=1};
cOa=function(a,b){var c=Math.min(2.5,CP(a.Gc));a=wT(a);return b-c*a};
eOa=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.Qp)return Math.ceil(a.policy.Qp*b);a.policy.Am&&(d=Math.abs(d));d/=a.playbackRate;var f=1/FP(a.Gc);c=Math.max(.9*(d-3),CP(a.Gc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.Yq>0&&e&&(c=Math.max(c,a.policy.Yq));return dOa(a,c,b)};
dOa=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.vl,a.policy.Nw*c),Math.min(Math.min(a.policy.Va,31*c),Math.ceil(b*c))))||a.policy.vl};
fOa=function(a,b,c){c=eOa(a,b.j.info.qb,c.j.info.qb,0);var d=CP(a.Gc)+c/FP(a.Gc);return Math.max(d,d+a.policy.UI-c/b.j.info.qb)};
wT=function(a){return FP(a.Gc,!a.policy.Wk,a.policy.Mw)};
xT=function(a){return wT(a)/a.playbackRate};
gOa=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.w(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};
hOa=function(a,b,c,d){var e=this;this.N=a;this.manifest=b;this.policy=c;this.logger=d;this.gC=[];this.Uc=[];this.B=-1;this.Pb=null;this.K=this.timestampOffset=0;this.Yc=null;this.j=10;this.G=new Set;this.Sc={BQ:function(f){return e.BQ(f)}};
this.D=b.Wb?0:1;c.mw>0&&(this.j=c.mw)};
lOa=function(a,b,c,d,e){if(!e.info.Oe){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:$N(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:$N(h,e))||(c=e);if(a.policy.jd&&c.info.Ob)return a.logger&&a.logger({incompleteSegment:c.info.vc()}),d;h=a.BQ(c);d=h.formatId;e=h.Ma;f=h.clipId;c=h.G8;h=h.startTimeMs;!a.policy.Xf&&a.policy.B&&a.Yc&&(f=yT(a.Yc,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,xp:e,Kj:e,fC:h,eC:c};e=iOa(b,d.startTimeMs);(c=e>=0?b[e]:null)&&jOa(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+h.j?h=!0:p+h.j<l.startTimeMs?h=!1:kOa(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.eC=m.durationMs,m.Kj=l.Kj,h=!0):(l.startTimeMs=p,l.fC=p,l.xp=m.Kj+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
iOa=function(a,b){a=g.fc(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return a>=0?a:-a-2};
mOa=function(a,b){if(a.Pb){var c=a.Pb.ke();if(c.length!==0){if(a.C&&b){var d=a.C,e=d.info.Me;!JG(c,e)&&d.info.D>0&&(0,g.hu)()-a.K<5E3&&(a.logger&&a.logger({dend:d.info.vc()}),c=vxa(c,e,e+.01))}d=[];for(var f=e=0;e<c.length&&f<a.Uc.length;){var h=c.start(e),l=c.end(e),m=a.Uc[f].startTimeMs/1E3,n=(a.Uc[f].startTimeMs+a.Uc[f].durationMs)/1E3;if(m<=l&&n>=h){var p=0;if(a.Yc){var q=zT(a.Yc,m*1E3);q&&(p=q.gm/1E3)}q=Object.assign({},a.Uc[f]);var r=a.manifest.C.get(jO(a.Uc[f].formatId)),t=Math.max(m,h);h=
r.index.Pi(t+a.j/1E3-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>a.j/1E3);t=u+a.D;u=(r.index.getStartTime(u)+p)*1E3;f!==a.B||b?(q.xp=t,q.startTimeMs=u):(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.xp=h+a.D,q.startTimeMs=m*1E3);q.fC=q.startTimeMs;h=void 0;m=((h=a.C)==null?void 0:h.info.duration)||11;f===a.B&&l<n&&n-l<=m*1.01&&(l=n);h=Math.min(n,l);m=r.index.Pi(h-a.j/1E3-p);t=a.policy;(t.B||t.Ba.L("html5_sabr_include_tail_media_chunk"))&&r.index.Mo(m+1)&&r.index.zK(m+1)+
p<=h&&(m+=1);t=r.index.zK(m)+p;m-=+(Math.abs(t-h)>a.j/1E3);h=m+a.D;p=(r.index.zK(m)+p)*1E3;q.Kj=h;q.durationMs=p-q.startTimeMs;q.eC=q.durationMs;q.xp<=q.Kj&&d.push(q)}n<l?f+=1:e+=1}a.Uc=d}}};
nOa=function(a){var b=[],c=[].concat(g.x(a.gC));a.Uc.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.B,e=g.w(a.N.kZ()),f=e.next();!f.done;f=e.next())d=lOa(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=a.timestampOffset*1E3,h.fC&&(h.fC+=a.timestampOffset*1E3))});
return{Uc:b,gC:c}};
jOa=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(c.startTimeMs-d>a.j)return!1;if(kOa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.eC=b.durationMs,b.Kj=Math.max(b.Kj,c.Kj),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.xp,h=b.Kj;b.formatId=c.formatId;b.durationMs=c.durationMs;b.xp=c.xp;b.eC=c.durationMs;b.Kj=c.Kj;c.formatId=a;c.startTimeMs=e;c.fC=e;c.durationMs=d-e;c.eC=c.durationMs;
c.xp=f;c.Kj=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.eC=b.durationMs);return!1};
kOa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Wb||b.lmt===c.lmt};
oOa=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.oT)==null?0:h.Xg){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.oT)==null?void 0:l.Xg)+"_psd.")+((m=f.oT)==null?void 0:m.qF))}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.xp)+("_en."+f.Kj))}a.logger({p:""+c,br:d.join(";")})}};
pOa=function(a){a.Uc=[];a.gC=[];a.G.clear();a.B=-1;a.C=void 0};
AT=function(a,b,c,d,e){this.ra=a;this.manifest=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.G=!1;this.D=null;this.C=0;this.B=this.manifest.isManifestless&&!this.manifest.Wd};
qOa=function(a,b,c){if(!a.policy.K){a=b.j.index;var d=b.B.Ma;a.Mo(d)||c&&c.Ma===d?(b.G=!a.Mo(d),b.qa=!a.Mo(d)):(b.G=!0,b.qa=!0)}};
sOa=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);rOa(a.videoTrack);rOa(a.audioTrack);a.policy.K||UIa(a.manifest);a.manifest.isManifestless&&!a.policy.K&&(a.B=!0,a.C=0);var c=a.ra;c.policy.Ja||(c.currentTime=b);a.G=!0;a.D=new HH;return a.D};
uOa=function(a,b,c,d,e){var f=a.policy.jd?e:void 0;if(!b.j.wg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof BT))a:{if(b.C.length&&(f=b.C[0],f instanceof CT&&f.Eh&&f.Ii)){f=!0;break a}f=!1}f||a.policy.j||DT(b);return c}var h=ET(b,c);if(!isNaN(h))return h;if(a.ra.DR(c*1E3))return c;e.Es||(b.Gj(),a.ra.nz(!1,"sta_"+ +b.j.info.cg()));return d&&(a=KG(d.ke(),c),!isNaN(a))?(FT(b,a+tOa,f),c):FT(b,c,f)};
xOa=function(a,b,c,d){if(a.policy.K)!d||!a.B&&a.policy.Bb||g.zi(function(){GT(a)});
else{if(a.isSeeking()&&a.j){var e=vOa(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.zi(function(){a.ra.ma("seekreason",{reason:"behindMinSq",tgt:e});wOa(a,e)});
return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.tC||!a.B;ET(a.videoTrack,a.j)>=0&&ET(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ra.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.zi(function(){if(a.B||!a.policy.Bb)GT(a);else{var h=b.startTime,l=b.duration;if(!a.policy.K){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.wC&&
ET(a.videoTrack,h)&&ET(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.ra.ma("iterativeSeeking",{status:"done",target:h,originalTime:h+a.ra.zc(),count:a.seekCount}),a.seekCount=0)):a.seekCount<8?(a.seekCount++,a.ra.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.ra.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,HT(a.ra,h+.1,{Vx:!0,Xc:"chunkSelectorSynchronizeMedia",Wp:!0})))}}})}};
vOa=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Pi(a.j);return(c.Mo(a.manifest.hf)||b.Ma===a.manifest.hf)&&d<a.manifest.hf?a.manifest.Vc():-1};
wOa=function(a,b,c){a.B&&a.videoTrack.K!==-1&&a.audioTrack.K!==-1&&(a.B=!1,a.j=b,HT(a.ra,b+.1,{Vx:!0,Xc:"chunkSelectorSynchronize",Wp:!0,seekSource:c}))};
GT=function(a){var b=a.videoTrack.K!==-1,c=a.audioTrack.K!==-1;if(!b||!c)if(b=!b&&IT(a.videoTrack),c=!c&&IT(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=IT(c).info.Ma;if(a.policy.K){var d;b.K=((d=IT(b))==null?void 0:d.info.Ma)||b.K}if(b.K!==-1){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));vO(a.manifest)&&Math.abs(e-vO(a.manifest))>432E3&&VIa(a.manifest);a.C&&(e=a.C,a.C=0);g.zi(function(){a.policy.K||wOa(a,e,102)});
a.ra.ma("initManifestlessSync",{st:e,ost:e+a.ra.zc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.K&&wOa(a,e,102)}}};
JT=function(a,b){var c=this;this.wb=a;this.requestNumber=++yOa;this.j=this.now();this.Z=this.G=NaN;this.N=this.j;this.B=this.Gb=this.D=0;this.K=this.j;this.Oa=this.Fa=this.Ua=this.qc=this.Tb=this.Aa=this.oa=this.C=0;this.W=this.isActive=!1;this.Kb=this.ib=0;this.Sc={opa:function(){return c.cq}};
this.Gc=b.Gc;this.snapshot=FJa(this.Gc);this.policy=this.Gc.oa;this.hq=!!b.hq;this.Lv=b.Lv;this.Hs=b.Hs||0;b.iK&&(this.Ca=new uP);var d;this.cq=(d=b.cq)!=null?d:!1;CJa(this.Gc)};
zOa=function(a){a.Ua=Math.max(a.Ua,a.D-a.Tb);a.Fa=Math.max(a.Fa,a.N-a.qc);a.Aa=0};
KT=function(a,b,c){DJa(a.Gc,b);a.Ca&&(a.Ca.add(Math.ceil(b)-Math.ceil(a.N)),a.Ca.add(Math.max(0,Math.ceil(c/1024)-Math.ceil(a.D/1024))));var d=b-a.N,e=c-a.D;a.Gb=e;a.Oa=Math.max(a.Oa,e/(d+.01)*1E3);a.N=b;a.D=c;a.Aa&&c>a.Aa&&zOa(a)};
AOa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
LT=function(a,b){JT.call(this,a,b);this.kb=this.Bb=!1;this.Ja=this.qa=Infinity;this.Ka=NaN;this.rb=!1;this.Va=NaN;this.Qb=0;this.FA=b.FA||1;this.kT=b.kT||this.FA;this.fm=b.fm;this.Ma=b.Ma;this.oh=b.oh;BOa(this);this.NT(this.j);this.Ta=(this.Va-this.j)/1E3};
COa=function(a,b,c){a.hq||(b=Math.max(b,.01),yP(a.Gc,b,c,a.Hs?c/a.Hs:b))};
DOa=function(a,b){return b?a.sL()&&!a.policy.j?!0:b>=2048:!1};
EOa=function(a){return(a.K-a.j)/1E3};
BOa=function(a){a.Ka=a.j+a.snapshot.delay*1E3;a.rb=!1};
HOa=function(a,b){if(a.fm&&a.Ma!==void 0&&a.oh!==void 0){var c=Math,d=c.min,e=a.qa;var f=a.fm;var h=a.j;if(FOa(f,a.Ma))f=b;else{var l=0;f.xj&&(l=.2);f=h+(f.fk+l)*1E3}a.qa=d.call(c,e,f);c=Math;d=c.min;e=a.Ja;f=a.fm;h=a.j;l=GOa(f,a.Ma,a.oh);l!==2&&(b=l?b:h+f.fk*1E3,f.xj&&(b+=f.fk*1E3));a.Ja=d.call(c,e,b);a.qa<=a.j?BOa(a):(a.Ka=a.qa,a.rb=!0)}};
IOa=function(a){a.fm&&HOa(a,a.now());return a.rb};
JOa=function(a,b){if(a.Rx(b,1)){var c=a.getUint8(b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!a.Rx(b,c))return[-1,b];if(c===1)a=a.getUint8(b++);else if(c===2)c=a.getUint8(b++),a=a.getUint8(b++),a=(c&63)+64*a;else if(c===3){c=a.getUint8(b++);var d=a.getUint8(b++);a=a.getUint8(b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=a.getUint8(b++);d=a.getUint8(b++);var e=a.getUint8(b++);a=a.getUint8(b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),nB(a,c,4)?a=Nua(a).getUint32(c-a.vk,!0):(d=
a.getUint8(c+2)+256*a.getUint8(c+3),a=a.getUint8(c)+256*(a.getUint8(c+1)+256*d)),b+=5;return[a,b]};
MT=function(a){this.wb=a;this.j=new jB};
NT=function(a,b){this.info=a;this.callback=b;this.state=1;this.hC=this.fR=!1;this.hg=null};
KOa=function(a){return g.Rl(a.info.gb,function(b){return b.type===3})};
LOa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.wb=c;this.status=0;this.j=new jB;this.B=0;this.Ia=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.w(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.hu)();e.wb.Qs(f,e.B)},function(){},d.body||null)};
MOa=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
SKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=OT.YC();d=new g.eC(a.B);return g.G(f,d.encrypt(b,a.j),2)}e=f.B;OT.HA("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})};
XKa=function(a,b){var c,d,e;return g.J(function(f){if(f.j==1){if(!b)return f.return(b);c=OT.YC();d=new g.eC(a.B);return g.G(f,d.decrypt(b,a.j),2)}e=f.B;OT.HA("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})};
NOa=function(a,b){var c=this;this.j=a;this.wb=b;this.loaded=this.status=0;this.error="";a=CN(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new jB;this.oz().then(function(){c.wb.Bn()},function(d){c.error=""+d||"unknown_err";
c.wb.Bn()})};
POa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.wb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.W=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.Ia()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.wb.Cv(),OOa(e));
else e.onDone();else e.onError(Error("null_response"))};
this.Z=function(f){var h=(0,g.hu)();e.Ia()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),OOa(e),e.wb.Qs(h,e.B)))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new jB;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
OOa=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Pt)};
QOa=function(a,b,c){var d=this;c=c===void 0?{}:c;this.wb=b;this.B=this.status=0;this.Ia=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.w(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=yL(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",yL(function(f){d.Eg(f)}),!1)};
PT=function(a,b,c,d,e){if(BM(a.base))return new NOa(a,c);a=a.xe();return d?nCa()?new LOa(a,b,c,e):new POa(a,b,c,e):new QOa(a,c,e)};
g.QT=function(a){this.tag=a};
SOa=function(a,b){g.ROa.apply(null,[6,a,b].concat(g.x(g.Ea.apply(2,arguments))))};
TOa=function(a,b){g.ROa.apply(null,[5,a,b].concat(g.x(g.Ea.apply(2,arguments))))};
g.ROa=function(a,b,c){var d=g.Ea.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.px(new (Function.prototype.bind.apply(g.At,[null,f].concat(g.x(d)))),e);d.unshift(f);g.UOa(b,a,d.join(", "))};
g.UOa=function(a,b,c,d){var e=VOa.get(a);if(!e){e="ytplog."+a;var f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(l){}VOa.set(a,f);e=f}if(!(b<e))if(b=WOa,e=b.j.get(a),e||(e=new XOa,b.j.set(a,e)),b=e,e=Date.now(),f=Math.floor((e-b.B)*.01),f>0&&(b.j=Math.min(b.j+f,10),b.B=e),b.j>0?(b.j--,b=!0):b=!1,b)typeof c==="function"&&(c=c()),d&&(c=d(c)),console.log("plyr."+a,
c);else{var h;c=((h=YOa.get(a))!=null?h:0)+1;YOa.set(a,c);c%100===1&&console.warn("plyr","plyr."+a+" is chatty, dropping logs.")}};
XOa=function(){this.j=10;this.B=Date.now()};
RT=function(a,b){g.O.call(this);var c=this;this.policy=a;this.gb=b;this.B=0;this.j=null;this.zf=[];this.C=null;this.Sc={rq:function(){return c.gb}};
this.gb.length===1||g.Rl(this.gb,function(d){return!!d.range})};
ST=function(a,b,c){a.j&&(kB(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.w(a.gb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{b.getLength();if(GN(h)&&!c&&a.B+b.getLength()-e<d+h.B){a.j=b.split(e).nm;return}a:{var l=a;var m=h,n=a.B-d,p=e,q=b,r=!!c,t=q.getLength()-p;m.range&&(t=Math.min(m.B-n,t));m=NEa(m,m.Ob+n,t,m.range?m.Ob+n+t===m.range.length:r);p=lB(q,p,t);p=new ZN(m,p);if(l.policy.useUmp&&l.zf.length&&(q=$N(l.zf[l.zf.length-1],p))){l.zf[l.zf.length-1]=q;l=t;break a}l.zf.push(p);
l=t}a.B+=l;e+=l;d+=h.B;if(e===b.getLength())break}b.getLength()};
TT=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.O.call(this);this.wb=a;this.policy=b;this.Ce=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Ty=l;this.G=m;this.lastError=null;this.j=0;this.C=!1;this.B=new g.Ep(this.mea,this.policy.rl,this)};
ZOa=function(a){a.resource.W=(0,g.hu)();a=UT(a);a.B=(0,g.hu)();a.started+=1};
bPa=function(a,b,c){a.timing.rS((0,g.hu)(),b,c);b=a.resource;b.B=0;b.G=0;b.N=0;tN(UT(a));if((b=a.Ty)!=null&&(a=a.Ce.base,!((0,g.hu)()<b.K+3E5||BM(a))&&(c=AM(a))&&$Oa(c)&&b.B===VT(c))){var d;CM(a)&&(d=AM(DM(a)));g.lt("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.hu)();aPa(b,{primary:c,secondary:d})}};
WT=function(a){if(a.lastError!=="ump.spsrejectfailure"){if(a.lastError==="net.timeout")a.timing.ZL((0,g.hu)());else{var b=a.timing;KT(b,(0,g.hu)(),b.D)}if(a.lastError==="net.nocontent")++a.resource.N;else{if((b=a.lastError==="net.timeout"||a.lastError==="net.connect"||a.lastError==="net.closed")&&!BM(a.Ce.base)){var c=UT(a);c.timedOut+=1}else c=UT(a),c.j+=1;if(!a.timing.W){c=a.resource;var d=a.Ce,e=a.policy,f=a.D;++c.B;b&&++c.G;AM(d.base).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.D,e.eE&&
delete f[AM(c.j)])}}}a.wb.yd(5)};
XT=function(a,b,c,d,e){return b>=400?(a.lastError="net.badstatus",!0):(e===void 0?0:e)?(a.lastError="ump.spsrejectfailure",!0):c||d!==void 0&&d?!1:(a.lastError=b===204?"net.nocontent":"net.connect",!0)};
UT=function(a){return uN(a.D,AM(a.Ce.base))};
cPa=function(a){var b=a.timing.Jr();b.shost=AM(a.Ce.base);return b};
dPa=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)};
ePa=function(a,b){for(var c=g.w(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.hc(d,function(l,m){return m.maxFramerate-l.maxFramerate});
for(var e=[d[0]],f=0,h=1;h<d.length;h++)dPa(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
gPa=function(a,b){var c=[];b=g.w(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=fPa[d]||0;a.j&&e>a.j||c.push(d)}return c};
kPa=function(a,b,c){var d=hPa[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=iPa[a]||[]);b.push.apply(b,g.x(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.x(jPa[a]||[]))};
qPa=function(a,b){var c=g.xR(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Oj();if(d){if(!e.B){if(f&&ZT)return ZT;if($T)return $T}}else if($T&&!e.B)return $T;var h=[],l=[],m={},n=aU.concat(lPa);d&&(n=aU.concat(mPa));a.L("html5_early_media_for_drm")&&(n=n.concat(nPa),a.L("allow_vp9_1080p_mq_enc")&&n.push(oPa));var p=[].concat(g.x(pPa));c.Z&&(p[0]=["141"]);n=g.w(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.w(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;
var u=pQ(t,f&&d);if(u&&u.video&&!(uG(u)&&!c.Fa&&u.video.j>c.Cj)){var y=g.UD(a.U().experiments,"html5_drm_byterate_soft_cap");y>0&&txa(u)&&u.qb>y||(r?(h.push(t),kPa(t,h,a)):(u=qM(c,u,e),u===!0?(r=!0,h.push(t),kPa(t,h,a)):m[t]=u))}}}p=g.w(p);for(n=p.next();!n.done;n=p.next())for(n=g.w(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=dKa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!vG(q)&&!wG(q)))if(q=qM(c,q,e),q===!0){l.push(r);kPa(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&
(e.B=!1,ZT=$T=void 0),f?ZT={video:h,audio:l}:$T={video:h,audio:l};$T={video:h,audio:l};e.B=!1;return $T};
g.tPa=function(a,b,c){var d=c.G,e=[],f=[],h=c.L("html5_shorts_onesie_mismatched_fix");a=a.Oj();var l=aU.concat(lPa);h&&(l=aU.concat(mPa));c.L("html5_early_media_for_drm")&&(l=l.concat(nPa),c.L("allow_vp9_1080p_mq_enc")&&l.push(oPa));var m=[].concat(g.x(pPa));b.Z&&(m[0]=["141"]);l=g.w(l);for(var n=l.next();!n.done;n=l.next()){n=g.w(n.value);for(var p=n.next();!p.done;p=n.next()){p=p.value;var q=pQ(p,a&&h);if(q&&q.video){var r=g.UD(c.experiments,"html5_drm_byterate_soft_cap");if(!(r>0&&txa(q)&&q.qb>
r)&&qM(b,q,d)===!0){e.push({videoCodec:rPa[qG[p]],maxWidth:q.video.width,maxHeight:q.video.height,maxFramerate:q.video.fps});break}}}}h=g.w(m);for(a=h.next();!a.done;a=h.next())for(a=g.w(a.value),m=a.next();!m.done;m=a.next())if(m=m.value,(l=dKa(m))&&l.audio&&(c.L("html5_onesie_51_audio")||!vG(l)&&!wG(l))&&qM(b,l,d)===!0){f.push({audioCodec:sPa[qG[m]],numChannels:l.audio.numChannels});break}return{videoFormatCapabilities:e,audioFormatCapabilities:f}};
vPa=function(a){var b={},c=a.ea,d=a.Ba,e=c.getVideoData(),f=RL(0),h=c.getPlayerSize(),l=c.getVisibilityState();f&&(b.U$=f,b.lastManualDirection=oCa(),f=ioa()||0,f>0&&(f=(d.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.hu)())-f,d.L("html5_use_date_now_for_local_storage")?f>0&&(b.timeSinceLastManualFormatSelectionMs=f):b.timeSinceLastManualFormatSelectionMs=f));b.gfa=RL();f=d.L("html5_use_streamer_bandwidth_for_low_latency_live")&&e.isLowLatencyLiveStream;if(d.schedule.qa&&!f){var m;f=d.L("html5_disable_bandwidth_cofactors_for_sabr_live")?
!((m=a.Xd)==null||!m.Wk):!1;b.T7=FP(d.schedule,!f)}m=g.eQ();var n=g.mG.medium,p=Math.floor(n*16/9);f=e.Oj()?n:p;n=e.Oj()?p:n;b.e8=Math.max(h.width*m,f);b.d8=Math.max(h.height*m,n);b.visibility=l;b.xfa=hw();b.I8=c.Jx()*1E3;var q;if((q=a.Xd)==null?0:q.FD){h=a.ea.tK(!0);var r,t,u,y,A,C;b.Yda={defaultPolicy:((r=h.x8)==null?void 0:r.j)||0,smooth:((t=h.cfa)==null?void 0:t.j)||0,visibility:((u=h.cga)==null?void 0:u.j)||0,S8:((y=h.T8)==null?void 0:y.j)||0,performance:((A=h.tT)==null?void 0:A.j)||0,speed:((C=
h.dfa)==null?void 0:C.j)||0}}else{var F;if((F=a.Xd)==null?0:F.Np){var H;b.rP=((H=a.ea.tK().tT)==null?void 0:H.j)||0}}d.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(b.sabrLicenseConstraint=a.sabrLicenseConstraint);if(d.L("html5_onesie_media_capabilities")||d.L("html5_enable_server_format_filter"))b.AY=3;d.L("html5_onesie_audio_only_playback")&&wR(e)&&(b.AY=1);r=e.mf?e.mf:g.xR(e);d.L("html5_onesie_media_capabilities")&&(b.mediaCapabilities=g.tPa(e,r,d));var L;if((L=a.Xd)==null?0:L.j&&
L.Nd){t=d.G;e=[];L=[];u=new Map;if((y=t.j)&&y.size>0)for(y=g.w(y.values()),A=y.next();!A.done;A=y.next()){C=A.value;if(d.L("html5_ssap_force_mp4_aac")&&(A=C.jb,A!=="a"&&A!=="h"))continue;C.cg?L.push({audioCodec:sPa[C.jb],numChannels:C.numChannels,spatialCapabilityBitmask:uPa[C.jb]}):(h=rPa[C.jb],A={videoCodec:h,maxWidth:C.maxWidth||0,maxHeight:C.maxHeight||0,maxFramerate:C.maxFramerate||0,is10BitSupported:C.qG||!1},C.maxBitrateBps&&(A.maxBitrateBps=C.maxBitrateBps,l=pQ(C.itag),q=void 0,((q=l)==null?
0:q.video)&&qM(r,l,t)===!0&&(l=l.qb*8,l>A.maxBitrateBps&&(A.maxBitrateBps=l))),C=h+"_"+C.qG,h=u.get(C)||[],h.push(A),u.set(C,h))}e=ePa(e,u);t={};d.L("html5_ssff_denylist_opus_low")&&(t={itagDenylist:[249,350]});b.mediaCapabilities={videoFormatCapabilities:e,audioFormatCapabilities:L,hdrModeBitmask:3,perPlaybackAttributes:t}}var N;if((N=a.Xd)==null?0:N.j){b.mp=r.mp;var X;b.Cj=(X=a.Xd)==null?void 0:X.Cj}d.Wf&&(b.F8=d.Wf);b.yT=a.hF;b.pz=a.pz;if(d.L("html5_fix_time_since_last_seek_reporting")?a.Iq!==
void 0:a.Iq)b.yfa=(0,g.hu)()-a.Iq;a.isPrefetch&&d.L("html5_report_prefetch_requests")&&(b.isPrefetch=!0);jP||(b.Baa=!0);N=CP(d.schedule)*1E3;N>0&&(b.i8=N);var V;((V=a.Xd)==null?0:V.Lw)&&a.Gy&&a.Gy<Infinity&&(b.Gy=a.Gy);c=c.getPlaybackRate();c!==1&&(b.playbackRate=c);var ca;((ca=a.Xd)==null?0:ca.Bc)&&a.er&&(b.jx=a.jx,b.Az=a.Az,b.er=a.er);d.L("allow_proxima_live_latency")&&(SL()===1&&(b.W$=1),d.L("html5_sabr_force_proxima")&&(b.V$=1),ca=g.UD(d.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),
b.paa=ca>0?ca:d.schedule.interruptions[0]||0);var la;if((la=a.Xd)==null?0:la.Qb)b.lx=a.lx;return b};
bU=function(a,b,c,d,e,f){var h={};b&&(h.jC=b);if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.EH=e);h.gD=[];h.GC=[];if(g.oR(a)&&a.sabrContextUpdates.size>0)for(b=g.w(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())wPa(h,c.value,d);gR(a)&&!g.oR(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&wPa(h,f,d);a.MB&&(h.Yea=a.MB);d=a.U().j;h.clientInfo={clientName:xPa[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};
wPa=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.GC.push(b):a.gD.push(d)};
CT=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.yH===void 0?[]:h.yH;var m=h.tI===void 0?!1:h.tI;var n=h.ix===void 0?0:h.ix;var p=h.poToken===void 0?"":h.poToken;var q=h.Ty===void 0?void 0:h.Ty;var r=h.IH===void 0?"":h.IH;var t=h.Eh===void 0?0:h.Eh;var u=h.Ii===void 0?new Uint8Array(0):h.Ii;var y=h.vN===void 0?!1:h.vN;f=h.Mq===void 0?0:h.Mq;h=h.jC===void 0?void 0:h.jC;NT.call(this,b,e);var A=this;this.policy=a;this.logger=new g.QT("dash/request");this.rA=this.Cg=0;this.K2=!1;this.pn=this.yq=
null;this.NZ=!1;this.Ii=this.Eh=null;this.GN=this.Q3=!1;this.GJ=null;this.Mq=this.jq=0;this.py=!1;this.Sc={yd:function(F){A.yd(F)},
Poa:function(){return A.hg},
pqa:function(F){A.hg=F},
oqa:function(F){A.Cg=F},
nqa:function(F){A.Dd.lastError=F},
RQ:function(){return A.xhr}};
this.timing=new LT(this,c);this.tI=m;this.Eh=t;this.Ii=u;this.Ce=g.PN(this.info,this.policy,d);this.Ce.set("rn",this.cn().toString());this.Ce.set("rbuf",(n*1E3).toFixed().toString());this.tI&&this.Ce.set("smb","1");this.policy.Bm&&p&&this.Ce.set("pot",p);r&&this.Ce.set("bbs",r);this.policy.useUmp&&!BM(this.Ce.base)&&(this.qm=new MT(this),this.Ce.set("ump","1"),this.Ce.set("srfvp","1"));if(a=this.policy.Gt?this.policy.kE&&!isNaN(this.info.oh)&&this.info.oh>this.policy.zG?!1:!0:!1)b=null,this.policy.AE&&
this.policy.Bk?b=[1]:y&&(b=[]),b!=null&&(this.policy.cE&&b.push(2),this.Ce.set("defsel",b.join(",")));this.Dd=new TT(this,this.policy,this.Ce,this.info.resource,this.timing,this.logger,d,q);this.yH=l||null;this.hC=yPa(this);ZOa(this.Dd);d=void 0;if(this.policy.zJ||this.qm||this.policy.Oa)d={method:"POST"},l=(0,g.cU)([120,0]),q={},this.policy.DD&&h&&(h=bU(void 0,h),q.bD=h),this.policy.Pw&&this.Ii&&(q.videoPlaybackUstreamerConfig=this.Ii),this.policy.Oa&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length>
0?d.body=g.PB(q,g.aM):d.body=l;if(this.Eh&&this.Ii){this.Ce.set("iwts","1");d={method:"POST"};h={pz:this.Eh*1E3};var C;l=(C=this.info.D)==null?void 0:C.In;C=g.PB({Pr:h,In:l||void 0,videoPlaybackUstreamerConfig:this.Ii},g.aM);d.body=C}try{this.xhr=PT(this.Ce,this.policy.N,this.timing,a,d),this.Dd.B.start(),f&&(this.tv=new g.Ep(this.g0,f,this),this.tv.start(f+(this.timing.Gc.N.Qg()||0)*1E3)),this.policy.zw&&AOa(this.timing,this.xe()),this.logger.debug(function(){return"Sent, itag="+A.Ce.get("itag")+
" seg="+A.info.gb[0].Ma+" range="+A.Ce.get("range")+" time="+Math.round(A.info.gb[0].Me)+"-"+Math.round(g.Rb(A.info.gb).Rf)+" rtp="+(A.timing.MK()-Date.now()).toFixed(0)}),g.zi(function(){})}catch(F){zPa(this,F,!0)}};
yPa=function(a){if(!(ON(a.info)&&a.info.cq()&&a.policy.nf&&a.yH)||a.info.resource.B>=2||RL()>0||!sCa())return!1;var b=a.Ce.get("aitags");if(!b)return!1;b=mg(b).split(",");for(var c=[],d=g.w(a.yH),e=d.next();!e.done;e=d.next())e=e.value,g.Wb(b,e)&&c.push(e);if(!c.length)return!1;a.Ce.set("altitags",g.lg(c.join(",")));return!0};
zPa=function(a,b,c){c=c===void 0?!1:c;g.px(b);a.Dd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.zi(function(){WT(a.Dd)}):WT(a.Dd)};
APa=function(a){if(a.policy.oD)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.LF();c=!c||c<=a.policy.Sq;return(!a.xhr.Vv()||!b||b.indexOf("text/plain")!==-1)&&c};
BPa=function(a,b){var c=rB(b);return GE(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
CPa=function(a,b){a.timing.W=!0;a.timing.policy.j&&a.xhr.Vv()&&a.timing.Kv();if(a.policy.kd){var c;(c=a.tv)==null||c.stop()}ST(a.hg,b,!1)};
DPa=function(a,b){a.info=b;if(a.hg){var c=a.hg;b=b.gb;(b.length!==c.gb.length||b.length<c.zf.length)&&TOa("dash/request",260511119,""+b.length,""+c.gb.length,""+c.zf.length);c.gb=b;for(var d=b[0].range,e=new jB,f=0;f<c.zf.length;f++)kB(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=lB(e,h.start-d.start,h.length)}}a.hC=!1};
EPa=function(a){a.jq&&(a.xhr.status=a.jq,a.Cg=a.jq)};
dU=function(a){this.B={};this.logger=new g.QT(a)};
FPa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
eU=function(a,b){JT.call(this,a,b);this.Ja=!0;this.qa=!1;this.Ta=this.Ka=0;this.Va=NaN};
GPa=function(a){dU.call(this,"sabr");this.wb=a};
fU=function(a){g.O.call(this);this.D=a;this.logger=new g.QT("onesie");this.Zc=new Map;this.B=this.j=!1;this.Xd=this.manifest=null;this.C=!1};
HPa=function(a,b,c){a.Zc.get(b).Eg=c};
hU=function(a,b){a.Zc.has(b)&&(gU?a.Zc.get(b).Rj.clear():a.Zc.get(b).zf=new jB,IPa(a,b),a.B=!0)};
JPa=function(a){for(var b=g.w(a.Zc),c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d.HE||hU(a,c)}};
KPa=function(a,b){b=a.Zc.get(b);if(!b)return 0;a=0;if(b.gb.length>0){b=g.w(b.gb);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.PG.length>0)for(c=g.w(b.PG),d=c.next();!d.done;d=c.next())a+=d.value.Ws||0;return a+b.c_};
LPa=function(a,b){if(gU){var c=0;a=a.Zc.get(b);if(a==null||!a.Rj)return 0;a=g.w(a.Rj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.getLength();return c}return((c=a.Zc.get(b))==null?void 0:c.zf.getLength())||0};
iU=function(a,b){a=a.Zc.get(b);if(gU){if(a==null||!a.HE)return!1;b=a.Rj.size>0;return a.Cy.length>0||b}return!(a==null||!a.HE)&&!(a==null||!a.zf.getLength())};
MPa=function(a,b){var c=a.Zc.get(b),d=KPa(a,b),e=!d&&!!c.bytesReceived;if(gU){var f;if((f=a.manifest)==null?0:f.Wb){a=g.w(c.Rj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.gy)return!1;return e}}else if(f=a.Yx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.lA+LPa(a,b)===c.bytesReceived};
NPa=function(a,b,c){a.Zc.set(b,{zf:new jB,lA:0,bytesReceived:0,c_:0,CT:!1,Rg:!1,Yx:!1,cg:c,fU:[],gb:[],PG:[],HE:!1,Rj:new Map,pI:new Map,Cy:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
OPa=function(a,b,c,d){c.gb.push.apply(c.gb,g.x(d));if(gU){c.pI.has(b)||c.pI.set(b,[]);var e;(e=c.pI.get(b)).push.apply(e,g.x(d))}else if(c.hg)for(a=g.w(d),b=a.next();!b.done;b=a.next())c.hg.gb.push(b.value);else{c.hg=new RT(a.Xd,[].concat(g.x(c.gb)));var f;((f=a.Xd)==null?0:f.uf)&&g.P(a,c.hg)}};
PPa=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.C.get(b);if(!e)return[];if(c.So){var f;return((f=e.Kx(0,c.clipId))==null?void 0:f.gb)||[]}if(e.un()){var h=c.startMs,l=c.durationMs,m=1E3,n;if(((n=a.Xd)==null?0:n.j)&&c.timeRange){var p;h=(p=c.timeRange.Xg)!=null?p:-1;var q;l=(q=c.timeRange.qF)!=null?q:-1;var r;m=(r=c.timeRange.zt)!=null?r:-1}if(c.IC<0||c.ir<0||l<0||h<0||c.Ws<0||m<0)return hU(a,b),[];a=DN(c.IC,c.Ws);b=c.aM||0;return[new FN(3,e,a,"makeSliceInfosMediaBytes",c.ir-1,h/m,l/m,b,
a.length-b,void 0,c.bk,c.clipId)]}if(c.ir<0)return hU(a,b),[];var t;return((t=a.manifest)==null?0:t.Wb)?(b=e.ek,n=b*e.info.qb,p=((h=a.Xd)==null?0:h.jd)?c.aM:void 0,((m=a.Xd)==null?0:m.Xw)&&c.timeRange&&!p&&(l=c.timeRange.Xg/c.timeRange.zt),[new FN(3,e,void 0,"makeSliceInfosMediaBytes",c.ir,l,b,p,n,!0,c.bk,c.clipId)]):[]};
QPa=function(a,b,c){a.manifest=b;a.Xd=c;b=g.w(a.Zc);for(c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;for(var e=g.w(d.fU),f=e.next();!f.done;f=e.next()){f=f.value;var h=PPa(a,c,f);OPa(a,f.zq,d,h)}}};
jU=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.getLength()});
(a=a.Zc.get(c))&&!a.Rg&&(gU?(a.Rj.has(b)||a.Rj.set(b,{data:new jB,FJ:0,gy:!1}),kB(a.Rj.get(b).data,d)):kB(a.zf,d),a.bytesReceived+=d.getLength(),a.CT=!0)};
IPa=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.Zc.get(b);c&&!c.Rg&&(c.Rg=!0,c.Eg&&c.Eg(),RPa(a)&&a.D.D0())};
RPa=function(a){a=g.w(a.Zc.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Rg)return!1;return!0};
kU=function(a,b,c,d,e,f,h,l){g.O.call(this);this.policy=a;this.info=b;this.manifest=c;this.wb=e;this.h0=l;this.logger=new g.QT("sabr");this.qm=new MT(this);this.F2=new GPa(this);this.Lf=new fU(this);this.state=1;this.E2=!1;this.PT=0;this.clipId="";this.Ov=this.sj=-1;this.o2=0;this.MP=-1;this.py=this.DX=!1;this.Q0=0;this.policy.ZD?this.Kd=new eU(this,f):this.Kd=new LT(this,f);this.Ce=this.policy.Qb?b.gN:SPa(b,this.policy,d);this.Ce.set("rn",""+this.cn());QPa(this.Lf,c,a);this.Dd=new TT(this,this.policy,
this.Ce,b.resource,this.Kd,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);ZOa(this.Dd);var m;if((m=this.policy)==null?0:m.uf)g.P(this,this.Lf),g.P(this,this.Dd);a=b.B;b={method:"POST",body:a};a&&(this.o2=a.length);try{this.xhr=PT(this.Ce,this.policy.N,this.Kd,jP,b),this.policy.zw&&AOa(this.Kd,this.xe()),this.Dd.B.start()}catch(n){g.qx(n)}};
TPa=function(a,b){var c=-1,d=-1,e=-1,f;if((f=a.OT)==null?0:f.items)for(a=g.w(a.OT.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.fS||f.fS<c||(c=f.fS,d=f.PL,e=f.minReadaheadMs);return{T$:c,PL:d,gS:e}};
UPa=function(a){this.j=a;this.W=this.Ka=this.N=this.Fa=this.D=this.G=this.K=this.Ca=this.Z=this.Ja=this.qa=this.Aa=this.oa=0;this.ticks={}};
lU=function(a){a.oa||(a.oa=(0,g.hu)(),kI("mb_s",a.oa,a.j))};
VPa=function(a){a.Aa||(a.Aa=(0,g.hu)(),kI("ovfs_rp",a.Aa,a.j))};
WPa=function(a){a.qa||(a.qa=(0,g.hu)(),kI("oafs_rp",a.qa,a.j))};
XPa=function(a){a.G||(a.G=(0,g.hu)(),kI("vda",a.G,a.j),a.D&&Jt(g.Ht(),4))};
YPa=function(a){a.D||(a.D=(0,g.hu)(),kI("ada",a.D,a.j),a.G&&Jt(g.Ht(),4))};
ZPa=function(a){a.Fa||(a.Fa=(0,g.hu)(),kI("vis_a",a.Fa,a.j))};
$Pa=function(a){a.N||(a.N=(0,g.hu)(),kI("ais_a",a.N,a.j))};
aQa=function(a){a.Ka||(a.Ka=(0,g.hu)(),kI("vrb_f",a.Ka,a.j))};
bQa=function(a){a.W||(a.W=(0,g.hu)(),kI("arb_f",a.W,a.j))};
cQa=function(a,b,c){var d=b instanceof kU&&!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.xe(),Jt(g.Ht(),4)):c&&(a.B=b.xe()):b instanceof CT&&b.jy()&&e&&Jt(g.Ht(),4)};
dQa=function(a){return!!a.B&&!!a.C};
eQa=function(a,b,c,d,e,f){g.Qx.call(this);var h=this;this.ra=a;this.manifest=b;this.policy=c;this.videoTrack=d;this.audioTrack=e;this.oa=this.j=null;this.G=this.N=NaN;this.Z=0;this.W=NaN;this.K=null;this.Aa=this.qa=NaN;this.Ca=new Map;this.C=this.D=NaN;this.Sc={Toa:function(){return h.B}};
this.B=f?1:0};
gQa=function(a,b,c,d){d=d===void 0?!0:d;if(c&&!a.Ca.has(b.Ma)){for(var e=b.startTime,f=[],h=0;h<c.j.length;h++){var l=c.j[h],m=e;e=m+c.B[h];f.push({startTime:m,endTime:e,adCpn:l})}a.Ca.set(b.Ma,f)}if(a.policy.Af)if(e=a.oa&&b.Ma===a.oa.Ma+1,a.oa=b,f=a.j&&b.Ma===a.j.Ma+1,f=a.j&&e&&f&&a.j.Ng.event!=="stop"&&a.j.Ng.event!=="predictStart",h=b.Ng||null,l=a.videoTrack.j.index.ud(),a.policy.ql&&(l=Math.max(a.videoTrack.j.index.ud(),a.audioTrack.j.index.ud())),l=b.Ma>=l,m=a.manifest.isManifestless&&a.policy.yw,
h){var n;if(((n=a.j)==null?void 0:n.Ng.event)==="predictStart"&&a.j.Ma<b.Ma&&h.event==="stop"){var p;a.ra.handleError("ssdai.missingstartcueevent",{lastpredict:((p=a.j)==null?void 0:p.Ma)||0,csq:b.Ma},0)}a.j={Ng:h,Ma:b.Ma,hG:!!c,dg:d};l?mU(a,h,b.Ma):m&&(e?f?mU(a,h,b.Ma):h.event==="continue"||h.event==="stop"?fQa(a,b):mU(a,h,b.Ma):mU(a,h,b.Ma))}else f&&fQa(a,b),a.B===4&&nU(a,5,"qend")};
mU=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.Aa.push(b);a.publish("cuepointsadded",c)};
iQa=function(a,b,c){if(a.B!==0&&c&&b.gb[0].dg()){var d=b.gb[0].Ma,e=b.gb[0].Me;b=b.Cq();hQa(a,d,e,b,c)}};
hQa=function(a,b,c,d,e){var f;b!==((f=a.j)==null?void 0:f.Ma)||a.B===1||d||a.j.Ng.event==="predictStart"||a.ma("sdai",{undecevt:1,sq:b,mt:c,evt:a.j.Ng.event});b>a.G&&(a.G=NaN,a.N=NaN);if(a.j&&a.j.Ma===b){d=a.j;f=d.Ng;var h=e.xv(f);a.ma("sdai",{onqevt:f.event,sq:b,mt:c,gab:h,cst:f.startSecs});if(h)f.event!=="predictStart"?d.hG?nU(a,4,"cue"):(a.G=b,a.N=c,a.ma("sdai",{joinad:a.B,sg:a.G,st:a.N.toFixed(3)}),a.W=Date.now(),nU(a,2,"join"),e.WK(d.Ng)):(a.policy.G?(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.W=Date.now(),nU(a,3,"predict"),e.WK(d.Ng));else if(a.B===1){var l;((l=a.K)==null?0:l.TP(c))?(jQa(a.ra,c,c,b),nU(a,4,"sk2had")):nU(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&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&&nU(a,5,"noad")};
mQa=function(a,b,c){if(a.B===1||a.B===2)return!1;if(a.B!==0&&b===a.audioTrack){if(a.policy.G)return kQa(a.videoTrack,c)||kQa(a.videoTrack,c+1);a=lQa(a.videoTrack);if(c>(a?a.Ma:-1))return!1}return!0};
oU=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.N)?a.N:b};
fQa=function(a,b){if(a.j){var c=a.j.Ng.lh-(b.startTime+a.Z-a.j.Ng.startSecs);c<=0||(c=new PM(a.j.Ng.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Ng.context,a.j.Ng.identifier,"stop",a.j.Ng.j+b.duration*1E3),a.ma("cuepointdiscontinuity",{segNum:b.Ma}),mU(a,c,b.Ma))}};
nU=function(a,b,c){a.B!==b&&(a.ma("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
pU=function(a,b,c,d){(d===void 0?0:d)?nU(a,1,"seek"):b>0&&Math.abs(b-c)>=5&&a.B===4&&nU(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
qU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
rU=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
sU=function(a,b,c){g.O.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};
tU=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.hu)()+c;a.C.set(b.info.id,c)};
uU=function(a){for(var b=g.w(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.w(c.value);c=d.next().value;d=d.next().value;d<(0,g.hu)()&&a.C.delete(c)}return a.C};
nQa=function(a){return a.K&&uU(a).size>0};
vU=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
oQa=function(a,b){var c;b&&(c=g.Ub(a.D.j,function(e){return e.id===b}));
if(!c&&(c=g.Ub(a.D.j,function(e){var f;return!((f=e.Yb)==null||!f.isDefault)}),a.policy.xl&&b)){var d;
a.ma("iaf",{id:b,sid:(d=c)==null?void 0:d.id})}return c};
pQa=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.ra=a;this.Aa=b;this.policy=c;this.manifest=d;this.K=e;this.ib=f;this.logger=new g.QT("dash/abr");this.j=ZQ;this.C=this.N=null;this.W=-1;this.Ka=!1;this.nextVideo=this.B=null;this.D=[];this.Ua=new Set;this.Ja={};this.Ya=new vP(1);this.Z=0;this.Ta=this.qa=this.oa=!1;this.Ca=0;this.Va=!1;this.Fa=new Set;this.Oa=!1;this.Sc={H2:function(){wU(h)}};
this.G=new sU(this.policy,e,function(l,m){h.ra.ma(l,m)})};
uQa=function(a,b,c){xU(a,b);qQa(a,c);a.N=a.B;rQa(a);sQa(a);a.C=a.nextVideo;a.N=a.B;return tQa(a)};
xQa=function(a,b){if(vQa(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+lM(b)}),xU(a,b),a.Z=a.D.length-1,wU(a),yU(a),a.qa=a.qa||a.C!==a.nextVideo,a.C=a.nextVideo,new qU(a.B,a.C,b.reason);
b.reason==="r"&&(a.W=-1);xU(a,b);yU(a);if(b.reason==="r"&&a.nextVideo===a.C)return new qU(a.B,a.nextVideo,b.reason);wQa(a);return null};
yQa=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new qU(a.N,a.C,c?"t":"m")};
zQa=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,tQa(a)}else a.Ta=a.N!==b,a.N=b;return null};
AQa=function(a,b){if(b.j.info.video&&b.Oe){var c=(b.Ob+b.B)/b.duration,d=b.j.info.qb;c&&d&&(a.Ya.Cl(1,c/d),a.policy.C&&c/d>1.5&&a.ra.ma("overshoot",{sq:b.Ma,br:c,max:d}))}};
zU=function(a,b,c){tU(a.G,b,c===void 0?!1:c);a.W=-1;xU(a,a.j)};
BQa=function(a,b){return new qU(a.N,a.C,b||a.j.reason)};
wQa=function(a){if(a.C&&a.nextVideo&&AU(a,a.C.info)<AU(a,a.nextVideo.info)){var b=a.j.reason;a.oa=a.oa||b==="r"||b==="u"||b==="v"}};
tQa=function(a){a.Ka?a.Ka=!1:a.W=(0,g.hu)();a.oa=!1;a.Oa=!1;return new qU(a.N,a.C,a.j.reason)};
CQa=function(a,b){var c={};b=g.w(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&&uG(f)&&f.video.j>a.policy.Cj,l=e<=a.policy.Cj?uG(d):sG(d);if(!f||h||l)c[e]=d}return c};
xU=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.hu)();c=g.Bn(c,function(l){if(l.qb>this.policy.qb)return!1;var m=this.manifest.j[l.id];return uU(this.G).get(l.id)>d?!1:m.resource.B>4||m.K>4?(this.logger.debug(function(){return"Remove "+FG(l)+"; 4 load failures"}),!1):this.Fa.has(+l.itag)?!1:!0},a);
nQa(a.G)&&(c=g.Bn(c,function(l){return l.video.width<=854&&l.video.height<=480}))}c.length||(c=a.K.videoInfos);
var e=c;a.policy.Rp&&(e=DQa(a,e,b));e=g.Bn(e,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Ub(c,function(l){return l.id===a.G.j});
f?e=[f]:vU(a.G,"")}a.policy.Rp||(e=DQa(a,e,b));e.length||(e=[c[0]]);e.sort(function(l,m){return AU(a,l)-AU(a,m)});
b={};for(c=1;c<e.length;b={XO:void 0,FO:void 0},c++)b.FO=e[c-1],b.XO=e[c],b.FO.video.width>b.XO.video.width?(g.Xb(e,c),c--):AU(a,b.FO)*a.policy.Z>AU(a,b.XO)&&(g.Xb(e,c-1),c--);var h=e[e.length-1];a.Va=!!a.C&&!!a.C.info&&a.C.info.jb!==h.jb;a.logger.debug(function(){return"Constraint: "+lM(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+FG(h)});
a.D=e;a.Ua.clear();b=!1;for(c=0;c<e.length;c++)b?a.Ua.add(e[c].itag):e[c].video.j>=1080&&(b=!0);EQa(a.policy,h,a.manifest.Wb)};
DQa=function(a,b,c){var d=c.reason==="m"||c.reason==="s";a.policy.jE&&BU&&g.$t&&(!d||c.j<1080)&&(b=b.filter(function(n){return n.video&&(!n.B||n.B.powerEfficient)}));
if(b.length>0)if(RG()){var e=CQa(a,b);b=b.filter(function(n){return!!n&&!!n.video&&n.jb===e[n.video.j].jb})}else{var f,h,l=(f=b[0])==null?void 0:(h=f.video)==null?void 0:h.j;
if(l){c=b.filter(function(n){return!!n&&!!n.video&&n.video.j===l});
var m=CQa(a,c)[l].jb;b=b.filter(function(n){return!!n&&!!n.video&&n.jb===m})}}return b};
qQa=function(a,b){if(a.policy.xl){var c=oQa(a.G,b);b||c||(c=FQa(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Ub(a.K.j,function(d){return!!d.Yb&&d.Yb.isDefault}))||(c=FQa(a)),c=c||a.K.j[0];
a.B=a.manifest.j[c.id];wU(a)};
GQa=function(a,b){for(var c=0;c+1<a.D.length&&a.D[c].video.quality==="tiny";)c++;var d=xT(a.Aa)/a.policy.Z;return AU(a,b.info)+AU(a,a.D[c])>d};
wU=function(a){if(!a.B||!a.policy.D&&!a.B.info.Yb){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.Ad?!0:a.j.isLocked()?a.j.j<240:GQa(a,a.B))a.B=a.manifest.j[g.Rb(b).id]}}};
yU=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.Rb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+FG(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=xT(a.Aa),d=AU(a,a.B.info),e=c/a.policy.qa-d;b>0&&!(AU(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b<a.D.length-1&&!(AU(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: "+FG(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+lM(a.j)});
a.Z=b}};
rQa=function(a){var b=a.policy.qa,c=xT(a.Aa),d=c/b-AU(a,a.B.info);b=g.Vb(a.D,function(e){return AU(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: "+FG(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
sQa=function(a){if(a.ib.length){var b=a.ib,c=function(d,e){if(d.info.jb==="f"||b.includes(AG(d.info,a.manifest.Wb)))return d;for(var f={},h=0;h<e.length;f={iQ:void 0,TU:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(AG(l.info,a.manifest.Wb))){var m=d.info.jb,n=l.info.jb;if(m===n||RG()){if(d.info.j!==l.info.j)return a.ra.ma("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.iQ=d.info.itag;f.TU=l.info.itag;a.ra.ma("ombifa",{f:f.iQ,t:f.TU});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.iQ+" to "+p.TU+" based on prefetched media."}}(f));
a.Ka=!0;return l}a.ra.ma("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.ra.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)}};
AU=function(a,b){if(!a.Ja[b.id]){var c=a.manifest.j[b.id].index.dZ(a.Ca,15);c=b.ex&&a.C&&a.C.index.isLoaded()?c||b.ex:c||b.qb;a.Ja[b.id]=c}c=a.Ja[b.id];a.Ua.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.Ya.Qg()||0)};
HQa=function(a,b){a=mea(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
IQa=function(a){var b=[];if(a.j.reason==="m"||a.j.reason==="s")return b;if(yFa(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};
vQa=function(a,b){var c;return gM(a.j,b)&&(!a.G.j||!a.j.isLocked()||((c=a.nextVideo)==null?void 0:c.info.id)===a.G.j)};
FQa=function(a){var b=g.Ub(a.K.j,function(d){return d.audio.j}),c=g.Ub(a.K.j,function(d){return!d.audio.j});
if(!b)return null;if(!a.policy.CD)return c;a.policy.Lz&&b&&(a.ra.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};
JQa=function(a){var b=a===void 0?{}:a;a=b.xj===void 0?!1:b.xj;var c=b.Bk===void 0?!1:b.Bk;b=b.Gt===void 0?!1:b.Gt;return a?b?3:2:c?-1:1};
KQa=function(a){this.track=a;this.buffered=[];this.C=this.D=0;this.K={};this.G=0;this.j=new uP};
LQa=function(a,b,c){a.flush();a.B=c;CU(a,3,b)};
CU=function(a,b,c){var d=[],e=a.track.Pb;if(e){e=e.ke();for(var f=0;f<e.length;f++)d.push(Math.round(e.start(f)*1E3)),d.push(Math.round(e.end(f)*1E3))}e=1;f=d.length;if(f===a.buffered.length){for(var h=0;h<=f&&d[h]===a.buffered[h];h++);h>f?e=0:d[h]>a.buffered[h]&&(h===f-1?e=2:h===f-2&&d[h+1]>a.buffered[h+1]&&(e=3))}a.j.add(b<<3|(c&&4)|e);b=Math.ceil(a.track.Jx()*1E3);a.j.add(b-a.G);a.G=b;if(e===1)for(a.j.add(f),h=b=0;h<f;h++)a.j.add(d[h]-b),b=d[h];e===3&&a.j.add(d[f-2]-a.buffered[f-2]);e>=2&&a.j.add(d[f-
1]-a.buffered[f-1]);c&&a.j.add(c);a.buffered=d};
NQa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ca=c;this.D=this.B=0;this.Kf=null;this.oa=new Set;this.W=[];this.indexRange=this.initRange=null;this.Z=new HH;this.qa=this.Aa=!1;this.Sc={Joa:function(){return d.C},
foa:function(){return d.chunkSize},
Zna:function(){return d.N},
Yna:function(){return d.K}};
(b=MQa(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.Jz,this.C=0,this.N=g.dw(16),this.K=g.dw(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new MOa(this.N,this.K))};
MQa=function(a){if(a.policy.Uf&&a.policy.Nz)for(var b=g.w(a.policy.Uf),c=b.next(),d={};!c.done;d={qP:void 0,KP:void 0},c=b.next())if(c=g.Jr(c.value),d.qP=+c.clen,d.KP=+c.csz,d.qP>0&&d.KP>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.qP,a.csz=d.KP,a.ck=c.ck,a.civ=c.civ,a};
DU=function(a){return!!a.Kf&&a.Kf.Ri()};
SQa=function(a,b){if(!DU(a)&&!a.Ia()){if(!(a.Aa||(a.Aa=!0,a.C>0))){var c=OQa(a);c=QQ(a.policy.D,a.j.info,EU(a),c,a.policy.kb);PQa(a,c)}if(b.info.type===1){if(a.Kf){FU(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=DN(0,b.j.getLength())}else if(b.info.type===2)a.Kf&&a.Kf.type===1||FU(a,Error("Woffle: Index before init")),a.indexRange=DN(a.initRange.end+1,b.j.getLength());else if(b.info.type===3){if(!a.Kf){FU(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(a.Kf.type===3&&!IN(a.Kf,b.info)&&(a.W=[],b.info.Ma!==JN(a.Kf)||b.info.Ob!==0))return;if(b.info.Oe){c=g.w(a.W);for(var d=c.next();!d.done;d=c.next())QQa(a,d.value);a.W=[]}else{a.W.push(b);a.Kf=b.info;return}}else{FU(a,Error("Woffle: Unexpected slice type"));return}a.Kf=b.info;QQa(a,b);RQa(a)}};
QQa=function(a,b){var c=0,d=b.j.Gk();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.Ob;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={RN:void 0})if(e.RN=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.RN),a.G.set(f,a.B),a.B+=e.RN,c+=e.RN,a.B===a.G.length){if(b.info===a.Kf&&DU(a)&&c===d.length)break;e=OQa(a);e=QQ(a.policy.D,a.j.info,EU(a),e,a.policy.kb,a.D,a.G,a.crypto);
a.oa.add(e);PQa(a,e);a.Ia()||(e=OQa(a),a.Ca(EU(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}};
RQa=function(a){if(DU(a))if(a.Kf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=TQa(a),d=a.policy.D;Promise.all(a.oa).then(function(){var e=QQ(d,a.Kf.j.info,EU(a,!0),c,a.policy.kb,a.D,b,a.crypto);PQa(a,e,!0)})}else FU(a,new GU("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else FU(a,new GU("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
OQa=function(a){return{downloadedEndTime:Math.round(a.Kf?a.Kf.Rf:0),maxKnownEndTime:Math.round(a.j.index.Au()),averageByteRate:Math.round(a.j.info.ex)}};
TQa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Au()),averageByteRate:Math.round(a.j.info.ex)}};
EU=function(a,b){b===void 0||!b||a.indexRange&&a.initRange&&a.Kf||FU(a,new GU("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?"+Gr(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:a.j.info.qb*8,lastModified:String(a.j.info.lastModified),initRange:(d=
a.initRange)==null?void 0:DEa(d),indexRange:(e=a.indexRange)==null?void 0:DEa(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};
PQa=function(a,b,c){c=c===void 0?!1:c;b.then(function(d){a.oa.delete(b);(c||d===4)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
FU=function(a,b){g.MQ(a.policy.D)!==4&&(g.NQ(a.policy.D,4),g.qx(b),a.Z.reject(new GU(b.message)))};
GU=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=b===void 0?!1:b};
UQa=function(a){a=g.cN(a,1886614376);for(var b=g.w(a),c=b.next();!c.done;c=b.next());return g.Ql(a,function(d){return bEa(d)})};
VQa=function(a){var b=Sl(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.w(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
WQa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.bA=f};
HU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Pe=!1;this.B=null;if((b==null?void 0:b.toLowerCase())==="webm"||a.length===16)this.Pe=!0};
YQa=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=XQa(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=jd(Nd(n,7)),b==null||a.Pe||(a.cryptoPeriodIndex=b),b=jd(Nd(n,10)),b!=null&&b>0&&!a.Pe&&(a.j=b),n=Yd(n,
2,Jd(n.tb)&34?Dca:Eca,void 0===Ica?2:5),n=g.w(n),b=n.next();!b.done;b=n.next())a.C.push(g.pc(Ac(b.value),4))};
ZQa=function(a){return isNaN(a.cryptoPeriodIndex)?g.pc(a.initData):""+a.cryptoPeriodIndex};
IU=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.CH===void 0?void 0:d.CH;d=d.iL===void 0?!1:d.iL;this.videoId=a;this.status=b;this.videoDuration=c;this.CH=e;this.iL=d};
$Qa=function(a,b,c,d,e){this.videoId=a;this.hQ=b;this.B=c;this.bytesDownloaded=d;this.j=e};
JU=function(a){this.j=a;this.offset=0};
aRa=function(a){if(a.offset>=a.j.getLength())throw Error();return a.j.getUint8(a.offset++)};
bRa=function(a,b){b=b===void 0?!1:b;var c=aRa(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=aRa(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+aRa(a),d*=128;return b?c:c-d};
cRa=function(a){try{var b=bRa(a,!0),c=bRa(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
dRa=function(a){for(var b=new JU(a),c=-1,d=0,e=0;!d||!e;){var f=cRa(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Zm()}else if(h===186){if(f!==2)return;e=b.Zm()}h===374648427?c=b.Zm()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=oB(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new jB([b]);kB(d,a);return d};
fRa=function(a,b,c){var d=this;this.ra=a;this.policy=b;this.K=c;this.logger=new g.QT("dash");this.j=[];this.B=null;this.Aa=-1;this.W=0;this.Fa=NaN;this.oa=0;this.C=NaN;this.Z=this.Ka=0;this.Ta=-1;this.Ja=this.G=this.D=this.Ca=null;this.Ya=this.Ua=NaN;this.N=this.qa=this.Va=this.ib=null;this.kb=!1;this.Oa=this.timestampOffset=0;this.Sc={kZ:function(){return d.j}};
if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.kb&&a.ma("atv",{ap:this.policy.kb});this.N=new NQa(this.policy,e,function(h,l,m){KU(a,new IU(d.policy.D,2,{CH:new $Qa(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;h===1?KU(a,new IU(d.policy.D,h)):d.ra.ma("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof GU&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ra.ma("offlinenwerr",{em:l}),eRa(d),KU(a,new IU(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ra.ma("dldbwerr",{em:l}),eRa(d),KU(a,new IU(d.policy.D,4,{iL:!0})))})}};
gRa=function(a){return a.j.length?a.j[0]:null};
hRa=function(a,b){return a.j.some(function(c){return c.info.Ma===b})};
oRa=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Ob+a.G.B;if(c.info.Ob>0)if(c.info.Ma===a.G.Ma&&c.info.Ob<e){if(c.info.Ob+c.info.B<=e)return;c=dFa(c,e-c.info.Ob)[1]}else if(c.info.Ma>=0&&a.G.Ma>=0&&!IN(a.G,c.info))throw new g.At("improper_continuation",a.G.vc(),c.info.vc());HEa(a.G,c.info)||iRa(a,"d")}else if(c.info.Ob>0)throw new g.At("continuation_of_null",c.info.vc());a.G=c.info;a.K=c.info.j;if(c.info.Ob===0){if(a.B)if(!a.ra.isOffline()||a.policy.ll)a.ra.ma("slice_not_fully_processed",
{buffered:a.B.info.vc(),push:c.info.vc()});else throw new g.At("slice_not_fully_processed",a.B.info.vc(),c.info.vc());LU(a);a.Ka=d}else{if(a.Ka&&d&&a.Ka!==d)throw a=new g.At("lmt_mismatch",c.info.Ma,a.Ka,d),a.level="WARNING",a;!c.info.j.un()&&a.D&&(d=c.info,e=a.D.sj,d.C="updateWithEmsg",d.Ma=e)}if(a.B){d=$N(a.B,c);if(!d)throw new g.At("failed_to_merge",a.B.info.vc(),c.info.vc());a.B=d}else a.B=c;a:{c=g.xG(a.B.info.j.info);if(a.B.info.type!==3){if(!a.B.info.Oe)break a;a.B.info.type===6?jRa(a,b,a.B):
kRa(a,a.B);a.B=null}for(;a.B;){d=a.B.j.getLength();if(a.Aa<=0&&a.W===0){var f=a.B.j,h=-1;e=-1;if(c){for(var l=0;l+8<f.getLength();){var m=Oua(f,l),n=Oua(f,l+4);l+=m||1;if(n===1836019558)h=l;else if(n===1835295092){e=l;break}}e<0&&(h=-1)}else{f=new JU(f);for(m=l=!1;;){n=f.Zm();var p=cRa(f),q=p.id;p=p.size;if(!(q>0))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=f.Zm()+p,m=!0);else{if(l&&(q===160||q===163)&&(h<0&&(h=n),m))break;q===163&&(h=Math.max(0,h),e=f.Zm()+p);if(q===160){h<0&&(e=h=f.Zm()+
p);break}f.skip(p)}}h<0&&(e=-1)}if(h<0)break;a.Aa=h;a.W=e-h}if(a.Aa>d)break;a.Aa?(d=lRa(a,a.Aa),d.G&&mRa(a,d),jRa(a,b,d),nRa(a,d),a.Aa=0):a.W&&(d=lRa(a,a.W<0?Infinity:a.W),a.W-=d.j.getLength(),nRa(a,d))}}a.B&&a.B.info.Oe&&(nRa(a,a.B),a.B=null)};
kRa=function(a,b){!b.info.j.un()&&b.info.Ob===0&&(g.xG(b.info.j.info)||b.info.j.info.Pe())&&iFa(b);if(b.info.type===1)try{mRa(a,b),pRa(a,b)}catch(e){g.px(e);var c=KN(b.info);c.hms="1";a.ra.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.WQ(b);a.N&&SQa(a.N,b);if(c.wg()&&a.policy.j)a:{a=a.ra.manifest;b=b.info.clipId;c=zG(c.info,a.Wb);if(b){var d=KGa(a,c);if(a.Oa[d])break a;a.Oa[d]=b}a.Ja.push(c)}};
qRa=function(a,b){a.j.length!==0&&a.j.some(function(c){return c.info.Me<=b})&&(a.ra.ma("cmat",{max:b,
fSlice:a.j[0].info.vc()}),a.j=a.j.filter(function(c){return c.info.Me<=b}))};
eRa=function(a){var b;(b=a.N)==null||b.dispose();a.N=null};
rRa=function(a){var b=a.j.reduce(function(c,d){return c+d.j.getLength()},0);
a.B&&(b+=a.B.j.getLength());return b};
sRa=function(a){if(a.qa&&!a.policy.Br){var b=a.ra;b.manifest.isManifestless&&yO(b.manifest,a.qa.Ma,!!a.K.info.video)}a.qa=null;a.D=null;a.G=a.ib;a.C=a.G?a.C-a.oa:NaN;LU(a)};
lRa=function(a,b){var c=a.B;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.B=null,c;c=dFa(c,b);a.B=c[1];return c[0]};
mRa=function(a,b){b.j.getLength();var c=b.Pd();if(tG(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new dN(c);fN(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;sG(d)&&!tG(d)&&(d=b.Pd(),(new dN(d)).So(),jN([408125543,374648427,174,224],21936,d));b.info.j.info.dg()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.xG(d.info)?d.B=lEa(c):d.info.Pe()&&(d.B=sEa(c))));
b.info.j.info.Pe()&&b.info.dg()&&(c=b.Pd(),(new dN(c)).So(),jN([408125543,374648427,174,224],30320,c)&&jN([408125543,374648427,174,224],21432,c));if(a.policy.mE&&b.info.j.info.Pe()){c=b.Pd();var e=new dN(c);if(fN(e,[408125543,374648427,174,29637])){d=iN(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.cg()&&g.xG(b.info.j.info)){d=b.Pd();c=g.UM(d,0,1701606260);f=g.UM(d,0,1836476516);if(c&&f){c.skip(2);var h=JM(c),l=LM(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<
l;++h)d.push(MM(c)),e.push(MM(c)),m.push(JM(c)),n.push(JM(c));else for(h=0;h<l;++h)d.push(KM(c)),e.push(KM(c)),m.push(JM(c)),n.push(JM(c));c=g.VM(f);c=new iEa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.xG(b.info.j.info))for(d=b.Pd(),e=g.UM(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.UM(d,e.offset+e.size,1701082227);a.kb=!0;b.info.j.D=c}}b.info.j.un()||b.info.j.j||b.info.j.indexRange||dO(b)};
jRa=function(a,b,c){if(c.info.j.un()){if(a.kb&&tRa(c)&&(b=c.Pd(),b=g.UM(b,0,1953658222))){b.skip(1);var d=IM(b)<<16|JM(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=LM(b);m<2||(e&&b.skip(4),f&&b.skip(4),e=LM(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.Ca&&!!a.Ca.K.D)if(b=c.info.dg())b=gFa(c),h=a.Ca,MU?(l=1/b,b=NU(a,b)>=NU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&tRa(c)&&(b=a.Ca,MU?(l=gFa(c),h=1/l,l=NU(a,l),b=NU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,kEa(c.Pd(),b))}else{h=!1;a.D||(iFa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.sj,f.C="updateWithEmsg",f.Ma=d,f=c.B,f.Ri&&(d=a.K.index,d.B=!f.Ri,d.C="emsg"),f=c.info.j.info,d=c.Pd(),g.xG(f)?bN(d,1701671783):f.Pe()&&jN([408125543],307544935,d)));a:if((f=cO(c,a.policy.Tb))&&hFa(c))l=uRa(a,c),a.Z+=l,f-=l,a.oa+=f,a.C=a.policy.jk?a.C+f:NaN;else{if(a.policy.Rw){if(d=m=a.ra.Wp(aO(c),1),a.C>=0&&c.info.type!==6){if(a.policy.jk&&isNaN(a.Ua)){g.qx(new g.At("Missing duration while processing previous chunk",
c.info.vc()));a.ra.isOffline()&&!a.policy.ll||vRa(a,c,d);iRa(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Ma,r=a.Ja?a.Ja.Ma:-1,t=a.Ya,u=a.Ua,y=a.policy.Hq&&n>a.policy.Hq,A=Math.abs(p)>10,C=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Oa+=1;var F=(e=a.D)==null?void 0:SM(e);e={audio:""+ +a.cg(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(y||A)};if(F==null?0:F.length)e.adCpn=F[0];a.ra.handleError("qoe.avsync",
e);a.Ta=q}y||A||C||(d=a.C);e=uRa(a,c,m);f-=e;a.Z=n+e;a.policy.C&&(p&&!C||e)&&(n=(l=a.D)==null?void 0:SM(l),a.ra.ma("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Ma,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;vRa(a,c,d)&&(a.oa+=f,a.C=d+f,a.policy.Gq&&a.Oa>=a.policy.Gq&&(a.Oa=0,a.ra.wp({resetForRewrites:"count"})))}a.Ja=
c.info;a.Ua=bO(c);c.C>=0&&(a.Ya=c.C);if(h&&a.D){h=wRa(a,!0);LN(c.info,h);a.B&&LN(a.B.info,h);b=g.w(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.K&&l.Ma!==((e=a.D)==null?void 0:e.sj)||LN(l,h);(c.info.Oe||a.B&&a.B.info.Oe)&&c.info.type!==6||(a.qa=h,a.policy.Ka?(b=xRa(a.D),a.ra.kM(a.K,h,b)):(b=a.ra,b.manifest.isManifestless&&yRa(b,h,null,!!a.K.info.video)),a.policy.Af||zRa(a))}}pRa(a,c);a.timestampOffset&&fFa(c,a.timestampOffset)};
nRa=function(a,b){if(b.info.Oe){a.ib=b.info;if(a.D){var c=a.D,d=wRa(a,!1);c=xRa(c);a.ra.kM(a.K,d,c);a.qa||a.policy.Af||zRa(a);a.qa=null}LU(a)}a.N&&SQa(a.N,b);if(d=a.kp())if(d=$N(d,b,a.policy.Dm)){a.j.pop();a.j.push(d);return}a.j.push(b)};
xRa=function(a){if(a.hG()){var b=a.data["Stitched-Video-Id"]?a.data["Stitched-Video-Id"].split(",").slice(0,-1):[],c=SM(a),d=[];if(a.data["Stitched-Video-Duration-Us"])for(var e=g.w(a.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),f=e.next();!f.done;f=e.next())d.push((Number(f.value)||0)/1E6);e=[];if(a.data["Stitched-Video-Start-Frame-Index"]){f=g.w(a.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var h=f.next();!h.done;h=f.next())e.push(Number(h.value)||0)}e=[];
if(a.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(f=g.w(a.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),h=f.next();!h.done;h=f.next())e.push((Number(h.value)||0)/1E6);a=new WQa(b,c,d,e,g.gEa(a),g.hEa(a))}else a=null;return a};
LU=function(a){a.B=null;a.Aa=-1;a.W=0;a.D=null;a.Fa=NaN;a.oa=0;a.qa=null};
iRa=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.Ja?a.Ja.Ma:-1};a.C=NaN;a.Z=0;a.Ta=-1;a.Ja=null;a.Ya=NaN;a.Ua=NaN;a.Va=null;a.ra.ma("mdstm",b)};
pRa=function(a,b){if(a.K.info.qe){if(b.info.j.info.Pe()){var c=new dN(b.Pd());if(fN(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=iN(c,!0);c=d!==16?null:nN(c,d)}else c=null;d="webm"}else b.info.G=UQa(b.Pd()),c=VQa(b.info.G),d="cenc";c&&c.length&&(c=new HU(c,d),a.policy.vD&&g.xG(b.info.j.info)&&(d=qEa(b.Pd()))&&(c.B=d),c.Pe=b.info.j.info.Pe(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ra.Qy(c))}};
zRa=function(a){var b=a.D,c=eEa(b);c&&(c.startSecs+=a.Fa,a.ra.RS(a.K,c,b.sj,b.hG()))};
wRa=function(a,b){var c,d=a.D;if(c=eEa(d))c.startSecs+=a.Fa;return new FM(d.sj,a.Fa,b?d.ek:a.oa,d.ingestionTime,"sq/"+d.sj,void 0,void 0,b,c)};
vRa=function(a,b,c){if(!eFa(b,c))return b=KN(b.info),b.smst="1",a.ra.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Fa)&&(a.Fa=c);return!0};
uRa=function(a,b,c){var d=0;if(b.info.j.info.Pe()&&!hFa(b))return 0;if(a.Ca&&!a.cg()){var e=0;c&&g.xG(b.info.j.info)?e=c-a.C:b.info.j.info.Pe()&&(e=a.Z);var f=b.info.Ma;c=cO(b,a.policy.Tb);var h=a.Ca;var l=h.Ta;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Ta)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.xG(b.info.j.info))kEa(b.Pd(),d);else if(b.info.j.info.Pe()&&(f=e-h,!g.xG(b.info.j.info)&&(b.info.j.info.Pe(),d=new dN(b.Pd()),l=b.G?d:new dN(new DataView(b.info.j.j.buffer)),cO(b,!0)))){var n=
f*1E3,p=pN(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||qN(d))if(hN(d,160))if(iN(d,!0),hN(d,155)){if(f=d.pos,m=iN(d,!0),d.pos=f,n=n*1E9/p,p=kN(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=cO(b,a.policy.Tb);d=c-d}d&&b.info.j.info.Pe()&&a.ra.ma("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
tRa=function(a){return a.info.j.un()&&a.info.Ma===a.info.j.index.ud()};
NU=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()};
ARa=function(a,b){b<0||(a.j.forEach(function(c){fFa(c,b)}),a.timestampOffset=b)};
BT=function(a,b,c,d,e){NT.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Lf=d;this.lastError=null;this.Eg=function(){f.Ia()||(f.Lf.Zc.has(f.formatId)?(f.isComplete()||f.j.start(),iU(f.Lf,f.formatId)&&f.SB(2),f.Lf.Rg(f.formatId)&&(MPa(f.Lf,f.formatId)?f.yd(4):(f.lastError="net.closed",f.yd(5)))):(f.lastError="player.exception",f.yd(5)))};
this.j=new g.Ep(function(){f.isComplete()||(f.lastError="net.timeout",f.yd(5))},this.policy.uD);
this.j.start();HPa(this.Lf,this.formatId,this.Eg);g.zi(this.Eg)};
OU=function(a,b,c,d){g.O.call(this);var e=this;this.ra=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.QT("dash");this.C=[];this.Aa=[];this.B=this.Pb=null;this.Ka=!1;this.Oa=this.Ua=0;this.K=-1;this.qa=!1;this.Fa=-1;this.Ca=this.Ja=null;this.oa=NaN;this.Sc={CQ:function(){return e.D},
Hoa:function(){return e.C},
doa:function(){return e.Z}};
this.D=new fRa(a,b,c);this.policy.j&&(this.Z=new hOa(this.D,this.ra.getManifest(),this.policy,function(f){e.policy.gq&&e.ma("buftl",f)}),this.policy.pJ&&(this.W=new KQa(this)));
this.qb=c.info.qb;this.N=this.policy.W?!1:c.pB();this.isManifestless=c.pB();this.G=this.N;g.P(this,this.Ja)};
PU=function(a,b,c){c=c===void 0?!1:c;b&&MU&&ARa(a.D,b.PQ());if(!c){var d;(d=a.Z)==null||pOa(d)}a.Pb=b;(b=a.Z)!=null&&(b.Pb=a.Pb)};
QU=function(a){var b=a.Pb&&a.Pb.RF();if(a.policy.Yw){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.C)==null?void 0:c.info}return a||null}return b};
BRa=function(a){for(var b={},c=0;c<a.Aa.length;c++)b["r"+c]=a.Aa[c];return b};
CRa=function(a,b){isNaN(a.oa)||a.ma("aswr",{sq:b.info.gb[0].Ma,id:b.info.gb[0].j.info.itag,xtag:b.info.gb[0].j.info.j,ep:Date.now()-a.oa});a.C.push(b);a.B=g.Rb(b.info.gb);a.Aa.push(b.vc());a.Aa.length>4&&a.Aa.shift()};
ERa=function(a,b){if(b.Fn()){var c=b.lm();c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.C&&b instanceof BT&&a.ma("omblss",{s:d.info.vc()}),DRa(a,b.info.gb,d,b.MQ())}};
DRa=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.oa)||(a.ma("aswm",{sq:b[0].Ma,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.oa}),a.oa=NaN);switch(c.info.type){case 1:case 2:FRa(a,c);break;case 4:var e=c.info.j,f=e.yW(c),h;((h=a.B)==null?0:h.type===4)&&OEa(c.info,a.B)&&(a.B=e.BC(a.B).pop());c=g.w(f);for(e=c.next();!e.done;e=c.next())DRa(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ca||(e.Ca=(0,g.hu)(),kI("fvb_r",e.Ca,e.j))):(e=a.timing,e.K||(e.K=(0,g.hu)(),kI("fab_r",e.K,e.j)));
oRa(a.D,b,c,d);a.policy.j&&GRa(a);break;case 6:oRa(a.D,b,c,d),a.B=c.info}};
FRa=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ja||(c.Ja=(0,g.hu)(),kI("vis_r",c.Ja,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.hu)(),kI("ais_r",c.Z,c.j));kRa(a.D,b);a=a.ra;a.videoTrack.j.wg()&&a.audioTrack.j.wg()&&a.policy.j&&!a.manifest.Wb&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.ma("trBug",{af:""+zG(a.audioTrack.j.info,!1),vf:""+zG(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
IT=function(a){return gRa(a.D)};
GRa=function(a){a.C.length?a.B=g.Rb(g.Rb(a.C).info.gb):a.D.j.length?a.B=a.D.kp().info:a.B=QU(a)};
RU=function(a,b){var c={Uc:[],jp:[]},d;if((a=a.Z)==null)a=void 0;else{oOa(a,a.Uc,"og");mOa(a,b);oOa(a,a.Uc,"trim");var e=nOa(a);b=e.Uc;e=e.gC;for(var f=[],h=0;h<e.length;h++){var l=e[h],m=a.policy.Ya&&l.C!==-1?l.C:l.info.startTime,n={Xg:(m+a.timestampOffset)*1E3,qF:(a.policy.Ya&&l.D!==-1?l.D:l.info.duration)*1E3,zt:1E3},p=void 0,q=(p=a.Pb)==null?void 0:p.ke();p=void 0;if(a.policy.Kw&&q&&q.length>0){var r=IG(q,m);r>=0&&(p=(q.end(r)-m)*1E3)}f.push({formatId:zG(l.info.j.info,a.manifest.Wb),bk:l.info.bk,
sequenceNumber:l.info.Ma+a.D,sK:n,H_:l.info.B,EY:p})}a={Uc:b,jp:f}}return(d=a)!=null?d:c};
ET=function(a,b,c){c=c===void 0?!1:c;if(a.Pb){var d=a.Pb.ke(),e=KG(d,b),f=NaN,h=QU(a);h&&(f=KG(d,h.j.index.getStartTime(h.Ma)));if(e===f&&a.B&&a.B.B&&HRa(IRa(a),0))return b}a=JRa(a,b,c);return a>=0?a:NaN};
FT=function(a,b,c){a.j.wg();var d=JRa(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.jd&&c!=null&&c.Es||(d.gC=[]);mOa(d,!0);d.B=iOa(d.Uc,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.fc(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.B){var h,l;c=(h=a.ra.Ff())==null?void 0:(l=zT(h,b))==null?void 0:l.clipId;a.B=a.j.gs(b,
void 0,c).gb[0]}else a.B=a.policy.W?null:a.j.gs(b).gb[0];SU(a)&&a.Pb&&a.Pb.abort();a.Oa=0;return a.B?a.B.startTime:b};
rOa=function(a){a.N=!0;a.G=!0;a.K=-1;FT(a,Infinity)};
TU=function(a){for(var b=0,c=g.w(a.C),d=c.next();!d.done;d=c.next())b+=QEa(d.value.info);return b+=rRa(a.D)};
VU=function(a,b){b=b===void 0?!1:b;var c=a.ra.getCurrentTime(),d=a.D.kp(),e=(d==null?void 0:d.info.Rf)||0;a.policy.Yk&&(d==null?0:d.info.j.pB())&&!d.info.Oe&&(e=d.info.Me);if(a.policy.B&&d&&d.info.clipId){var f,h=(((f=a.ra.Ff())==null?void 0:yT(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Pb)return a.policy.j&&b&&!isNaN(c)&&d?e-c:0;if((f=QU(a))&&UU(a,f))return f.Rf;f=a.Pb.ke(!0);return b&&d?(b=0,a.policy.j&&(b=MG(f,e+.02)),b+e-c):MG(f,c)};
KRa=function(a,b){if(a.C.length){if(a.C[0].info.gb[0].startTime<=b)return;DT(a)}for(var c=a.D,d=c.j.length-1;d>=0;d--)c.j[d].info.startTime>b&&c.j.pop();GRa(a);a.B&&b<a.B.startTime&&(a.Oa=0,a.j.wg()?a.B=a.j.gs(b,!0).gb[0]:a.B=null)};
LRa=function(a,b,c,d){DT(a);for(var e=a.D,f=null,h=e.j.length-1;h>=0;h--){var l=e.j[h];l.info.Ma>=b&&(e.j.pop(),e.C-=cO(l,e.policy.Tb),f=l.info)}f&&(e.G=e.j.length>0?e.j[e.j.length-1].info:e.Va,e.j.length!==0||e.G||iRa(e,"r"));e.ra.ma("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Ma:-1,sq:b,lastslc:e.G?e.G.Ma:-1,lastfraget:e.C.toFixed(3)});a.policy.j?a.B=null:d>c?FT(a,d):a.B=a.j.Nt(b-1,!1).gb[0]};
XU=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)WU(a,b);else{for(;c<a.C.length;)WU(a,a.C.pop());var d=lQa(a);d&&d.j.iy()&&Vm(b.info.gb,function(e){return PEa(e,d)})?(a.B=d,a.policy.C&&a.ma("cer",{lsr:"lsp",
lsp:d.vc()})):(HN(b.info.gb[0])?(a.B=b.hg&&b.hg.C?MEa(b.hg.C):LEa(b.info.gb[0]),a.policy.C&&a.ma("cer",{lsr:a.B.vc(),lsp:d==null?void 0:d.vc()})):(a.B=null,a.policy.C&&a.ma("cer",{lsr:"null",lsp:d==null?void 0:d.vc()})),a.ra.isOffline()&&!a.policy.ll||WU(a,b,!0))}};
UU=function(a,b){if(!b)return!1;if(a.policy.B){var c;if((a=(c=a.ra.Ff())==null?void 0:YU(c))&&b.clipId!==a)return!1}return b.Ri()};
SU=function(a){var b;!(b=a.j.info.jb==="f")&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&DU(b.N));if(b)return!0;b=QU(a);if(!b)return!1;var c=UU(a,b)&&b.Oe;return a.isManifestless&&a.Fa>0?c||b.Ma>=a.Fa:c};
ZU=function(a){var b;return SU(a)||UU(a,(b=a.D.kp())==null?void 0:b.info)};
IRa=function(a){var b=[],c=QU(a);c&&b.push(c);b=g.$b(b,a.D.rq());c=g.w(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.w(d.info.gb),f=e.next(),h={};!f.done;h={TH:void 0},f=e.next())h.TH=f.value,d.fR&&(b=g.Bn(b,function(l){return function(m){return!OEa(m,l.TH)}}(h))),(HN(h.TH)||h.TH.type===4)&&b.push(h.TH)}a.B&&!FEa(a.B,g.Rb(b),a.B.j.un())&&b.push(a.B);
return b};
HRa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!GEa(a[b-1],a[b]))return!1;return!0};
JRa=function(a,b,c){c=c===void 0?!1:c;if(!a.B||!a.B.B)return NaN;a=IRa(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.Me<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return b<0?NaN:HRa(a,c?b:0)?a[b].startTime:NaN};
$U=function(a){return!(!a.B||a.B.j===a.j)};
MRa=function(a){return $U(a)&&a.j.wg()&&a.B.j.info.qb<a.j.info.qb};
NRa=function(a,b,c){if(a.policy.Yk)return VU(a,!0)<c;var d=lQa(a);return d&&!UU(a,d)?d.Rf>b&&d.Rf<b+c:!1};
lQa=function(a){var b=a.D.kp();return b?b.info:QU(a)};
kQa=function(a,b){var c;return!((c=a.Z)==null||!c.G.has(b))||hRa(a.D,b)};
DT=function(a){for(var b=g.w(a.C),c=b.next();!c.done;c=b.next())WU(a,c.value);a.C=[];a.B=null};
aV=function(a){var b;(b=a.Z)==null||pOa(b)};
ORa=function(a,b,c){b.fR&&((c===void 0?0:c)||!b.info.gb[0].j.iy())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.gb[0].Ma}),sRa(a.D))};
WU=function(a,b,c){ORa(a,b,c===void 0?!1:c);b.dispose()};
PRa=function(a){return!!a.B&&a.B.Ma!==-1&&a.B.Ma<a.j.index.Eo()};
QRa=function(a){var b=a.B;b&&b.Ma===-1&&(a=a.D.kp())&&HN(a.info)&&(a=a.info.Ma,b.C="updateLastSliceRequested",b.Ma=a)};
RRa=function(a){return Vm(a.C,function(b){return b.hC})};
SRa=function(a,b){a.B&&(a.B.j=b)};
TRa=function(a,b){return a.Pb?JG(a.Pb.ke(),b):!0};
bV=function(a){var b=IT(a);a=a.ra.Ff();return b&&a&&b.info.clipId&&!URa(a,b.info.clipId)?!0:!1};
VRa=function(a){var b;return!((b=IT(a))==null||!b.isLocked)};
WRa=function(a,b){var c=IT(a);return c&&c.info.type!==6?!mQa(b,a,c.info.Ma):!1};
XRa=function(a){var b=QU(a),c,d=(c=a.Pb)==null?void 0:c.ke();c=NaN;b&&d&&SU(a)&&(c=KG(d,(b.Me+b.Rf)/2));return!isNaN(c)};
YRa=function(a){if((a=a.Z)==null)a=void 0;else if(a.Uc.length===0)a=null;else{var b=a.Uc[a.B]?a.Uc[a.B].formatId:null;a=b?(a=a.manifest.C.get(jO(b)))?a.info:null:null}return a||null};
ZRa=function(){this.xj=!1};
$Ra=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.iG===void 0?!1:b.iG;var c=new ZRa;c.xj=a||b;return c};
g.aSa=function(a){this.Ba=a;this.N=new ZRa;this.qw=this.pw=!1;this.Kq=2;this.Ta=20971520;this.rb=8388608;this.Ca=120;this.yr=g.UD(this.Ba.experiments,"html5_min_readbehind_secs");this.HH=g.UD(this.Ba.experiments,"html5_min_readbehind_cap_secs");this.ll=this.Ba.L("html5_offline_reset_media_stream_on_unresumable_slices");this.qb=NaN;this.Nw=this.Cm=this.zx=2;this.vl=cV(this,"html5_request_size_min_kb",64)*1024;this.Va=2097152;this.MB=cV(this,"html5_bypass_contention_secs");this.Mw=1048576;this.Qn=!1;
this.rl=cV(this,"html5_repredict_interval_ms",1800);this.yG=cV(this,"html5_head_miss_secs",5);this.UI=cV(this,"html5_min_upgrade_health_secs",10);this.Gb=15;this.Jj=1;this.Z=1.15;this.qa=1.05;this.Im=1;this.FI=cV(this,"html5_min_seconds_between_format_selections",8);this.FF=cV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Gt=jP;this.Wk=this.le=!1;this.bl=6;this.C=!1;this.il=g.UD(this.Ba.experiments,"html5_min_startup_buffered_media_duration_secs");this.uw=g.UD(this.Ba.experiments,"html5_post_interrupt_readahead");
this.vB=this.Ba.L("html5_allow_onesie_for_ssap");this.oD=this.Ba.L("html5_disable_classic_alr");this.xw=g.UD(this.Ba.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Ww=100;this.Qj=10;this.WI=6;this.Tw=cV(this,"html5_ssdai_failure_retry_limit",3);this.Pn=this.Ba.experiments.bb("html5_clone_original_for_fallback_location");this.Pj=!1;this.Pc=g.UD(this.Ba.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.wl=g.UD(this.Ba.experiments,"html5_subsegment_readahead_timeout_secs");
this.wE=g.UD(this.Ba.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.lk=g.UD(this.Ba.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.zE=g.UD(this.Ba.experiments,"html5_subsegment_readahead_min_load_speed");this.Vw=g.UD(this.Ba.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.BE=g.UD(this.Ba.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Yq=cV(this,"html5_hopeless_secs",15);this.xq=1;this.nf=!1;this.kE=
this.Ba.L("html5_restrict_streaming_xhr_on_sqless_requests");this.zG=g.UD(this.Ba.experiments,"html5_max_headm_for_streaming_xhr");this.wD=this.Ba.L("html5_pipeline_manifestless_allow_nonstreaming");this.ED=this.Ba.L("html5_prefer_server_bwe3");this.yE=this.Ba.L("html5_last_slice_transition");this.sE=this.Ba.L("html5_store_xhr_headers_readable");this.Rw=this.Zh=this.Bk=!1;this.Hq=g.UD(this.Ba.experiments,"html5_max_drift_per_track_secs");this.Br=this.Ba.L("html5_no_placeholder_rollbacks");this.uE=
this.Ba.L("html5_subsegment_readahead_enable_mffa");this.Wf=this.Ba.L("html5_allow_video_keyframe_without_audio");this.vD=this.Ba.L("html5_enable_vp9_fairplay");this.Bb=!0;this.Vf=this.ib=this.Ad=!1;this.Lp=!0;this.Ow=!1;this.D="";this.Jz=1048576;this.Uf=[];this.Nz=this.Ba.L("html5_woffle_resume");this.Am=this.Ba.L("html5_abs_buffer_health");this.tE=this.Ba.L("html5_interruption_resets_seeked_time");this.FG=g.UD(this.Ba.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Ua=!1;this.Sp=
this.Ba.L("html5_log_additional_source_buffer_updates");this.Pp=this.Ba.L("html5_explicitly_dispose_xhr");this.yw=!1;this.Dm=!this.Ba.L("html5_encourage_array_coalescing");this.Jm=!1;this.iE=this.Ba.L("html5_restart_on_unexpected_detach");this.Cj=0;this.ge="";this.jE=this.Ba.L("html5_filter_non_efficient_formats_for_safari");this.Ba.L("html5_format_hybridization");this.YA=this.Ba.L("html5_abort_before_separate_init");this.mE=As();this.oE=this.Ba.L("html5_serialize_server_stitched_ad_request");this.tC=
this.Ba.L("html5_skip_buffer_check_seek_to_head");this.Af=!1;this.Bm=this.Ba.L("html5_attach_po_token_to_bandaid");this.Sq=g.UD(this.Ba.experiments,"html5_max_redirect_response_length")||8192;this.jk=this.Ba.L("html5_rewrite_timestamps_for_webm");this.Tb=this.Ba.L("html5_only_media_duration_for_discontinuities");this.gE=g.UD(this.Ba.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ba.L("html5_onesie_live");this.DE=this.Ba.L("html5_onesie_premieres");this.Mz=this.Ba.L("html5_drop_onesie_for_live_mode_mismatch");
this.tD=g.UD(this.Ba.experiments,"html5_onesie_live_ttl_secs")||8;this.lw=g.UD(this.Ba.experiments,"html5_attach_num_random_bytes_to_bandaid");this.uD=g.UD(this.Ba.experiments,"html5_onesie_request_timeout_ms")||3E3;this.B=!1;this.oJ=this.Ba.L("html5_update_container_type_on_codec_family_change")||this.Ba.L("html5_use_update_container_type_codec_family");this.VK=this.Ba.L("html5_use_update_container_type_codec_family");this.Xf=this.Ba.L("html5_apply_ssap_slice_info_adjustment");this.Qb=this.Ba.L("html5_enable_sabr_host_fallback");
this.Aa=!1;this.Wn=this.Ba.L("html5_ssap_enable_legacy_browser_logic");this.fE=this.Ba.L("html5_ssap_enable_delay_init");this.lE=this.Ba.L("html5_gapless_fallback_on_append_error");this.qE=this.Ba.L("html5_shorts_stop_request_when_buffer_to_end");this.gL=this.Ba.L("html5_vod_stop_request_when_buffer_to_end");this.Yw=!1;this.Oa=this.Ba.L("html5_ssdai_use_post_for_media")&&this.Ba.L("gab_return_sabr_ssdai_config");this.zJ=this.Ba.L("html5_use_post_for_media");this.kd=this.Ba.L("html5_use_live_ump_heartbeat");
this.nE=this.Ba.L("html5_handle_sps_status");this.Nj=this.Ba.L("html5_enable_sps_non_fatal_logs");this.dE=this.Ba.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Ba.L("html5_use_ump");this.kb=this.Fa=!1;this.CD=this.Ba.Wf;this.eE=this.Ba.L("html5_reset_primary_stats_on_redirector_failure");this.GD=this.Ba.L("html5_remap_to_original_host_when_redirected");this.Sn=this.Co=this.Mp=this.j=this.Op=!1;this.Np=this.Ba.L("html5_sabr_support_quality_constraints");this.FD=this.Ba.L("html5_sabr_fill_quality_constraints");
this.aE=this.Ba.L("html5_sabr_remove_all_quality_constraints");this.wC=this.Ba.L("html5_iterative_seeking_buffered_time");this.zm=this.Ba.L("html5_use_network_error_code_enums");this.qD=this.Ba.L("html5_disable_overlapping_requests");this.K=!1;this.enableServerDrivenRequestCancellation=this.Ba.L("html5_enable_server_driven_request_cancellation");this.ZD=this.Ba.L("html5_enable_sabr_request_timing");this.Nd=this.Ba.L("html5_enable_server_format_filter");this.Lz=this.Ba.L("html5_drc_edit_sync_workaround");
this.zD=this.Ba.L("html5_enable_lawnmower");this.BD=this.Ba.L("html5_enable_lawnmower_messaging");this.Ej=this.Ba.Vb()?g.UD(this.Ba.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.vE=g.UD(this.Ba.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.hw=g.UD(this.Ba.experiments,"html5_normal_latency_mffa_ms")||NaN;this.VI=g.UD(this.Ba.experiments,"html5_mffa_ms_proxima_override")||this.hw;this.CE=this.Ba.L("html5_live_defrag_only_h264_playbacks");this.AE=this.Ba.L("html5_live_defrag_only_h264_formats");
this.zw=this.Ba.L("html5_record_now");this.hh=!1;this.Un=g.UD(this.Ba.experiments,"html5_drm_byterate_soft_cap");this.Vn=g.UD(this.Ba.experiments,"html5_drm_live_byterate_soft_cap");this.gq=this.Lw=!1;this.oa=this.Ba.L("html5_sabr_log_request_creation");this.Bc=this.Ba.L("html5_sabr_report_request_cancellation_info");this.Yi=this.ow=this.Uw=!1;this.Sw=this.Ba.L("html5_spoof_4k");this.Zq=cV(this,"html5_min_media_duration_for_cabr_slice");this.XG=this.Dm?0:cV(this,"html5_min_media_duration_for_append_prop");
this.cE=this.Ba.L("html5_remove_defrag_without_frame_level_streaming");this.mf=!0;this.fD=this.Ba.L("html5_consume_all_buffered_bytes_one_poll");this.Iz=this.Ba.L("html5_disable_urgent_adaptation");this.wB=this.Ba.L("html5_apply_constraints_in_client_for_sabr");this.Pw=this.Ba.L("html5_send_video_playback_ustreamer_config");this.Gq=cV(this,"html5_max_discontinuity_rewrite_count");this.Qp=cV(this,"html5_fixed_media_duration_for_request");this.xl=this.Ba.L("html5_use_init_selected_audio");this.Ya=!1;
this.gh=cV(this,"html5_sabr_request_limit_per_period");this.nw=this.G=!1;this.jd=this.Ba.L("html5_sabr_live_partial_segment");this.uf=this.Ba.L("html5_sabr_dispose_media_objects");this.Tn=!1;this.Sj=this.Ba.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.ww=this.Yk=!1;this.DD=this.Ba.L("html5_enable_d6de4");this.cK=this.Ba.L("html5_ssap_keep_only_ssap_eos_check");this.Ba.L("html5_high_res_seek_logging");this.Kb=this.Ba.L("html5_update_buffer_timeline_until_update_end");this.Zi=this.Ja=!1;
this.Rn=this.Ba.L("html5_disable_chunk_synchronization_sabr_seek");this.hE=this.Ba.L("html5_enable_ssap_multi_audio_format_filtering");this.hx=this.Qw=this.W=this.ql=this.Ka=!1;this.mw=g.UD(this.Ba.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Ee=this.qc=this.Xw=this.Iw=this.Kw=!1;this.nD=this.Ba.L("defer_slice_processing_on_healthy_buffer_sabr");this.Rp=this.Ba.L("html5_byterate_constraints");this.pE=this.Ba.L("html5_refactor_sabr_audio_format_selection_logging");this.bE=
this.Ba.L("enable_sabr_snackbar_message");this.EE=this.Ba.L("html5_log_additional_meminfo");this.Jw=!1;this.Ba.L("html5_reinit_source_buffer_by_new_element");this.rE=this.Ba.L("html5_refactor_sabr_video_format_selection_logging");this.pD=this.Ba.L("html5_disable_manifestless_live_content_timing");this.pJ=this.Ba.L("html5_use_append_tracker")&&this.Ba.Vb();this.FE=this.Ba.L("html5_log_slice_info_in_sbu")};
EQa=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.pw&&(a.Ta=36700160,a.rb=5242880,a.Va=Math.max(4194304,a.Va),a.pw=!0);b.video.j>2160&&!a.qw&&(a.Ta=104857600,a.qb=13107200,a.qw=!0);g.UD(a.Ba.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.ws()&&g.us("samsung")&&(g.us("kant")||g.us("muse"))&&(a.qb=g.UD(a.Ba.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.ws()&&g.us("kant")&&(a.qb=1310720);a.Un!==0&&b.isEncrypted()&&(a.qb=a.Un);a.Vn!==0&&b.isEncrypted()&&
c&&(a.qb=a.Vn);b.qb&&(a.Mw=Math.max(a.vl,Math.min(a.Va,5*b.qb)))};
dV=function(a){return a.j&&a.Co&&a.playbackStartPolicy};
eV=function(a){return a.B||a.j&&a.Nd};
bSa=function(a,b,c,d){a.Co&&(a.playbackStartPolicy=b,a.AD=c,a.yD=d)};
cV=function(a,b,c){c=c===void 0?0:c;return g.UD(a.Ba.experiments,b)||c};
cSa=function(a){var b=a===void 0?{}:a;a=b.Bk;var c=b.xj;var d=b.fk;var e=b.ud;b=b.Gx;this.Bk=a;this.xj=c;this.fk=d;this.ud=e;this.Gx=b};
FOa=function(a,b){if(b<0)return!0;var c=a.ud();return b<c||b===c&&!a.Bk||b===c&&(a=a.Gx())&&b===a.Ma?!0:!1};
GOa=function(a,b,c){if(!FOa(a,b))return 0;if(!a.xj||!isNaN(c)&&c>0)return 2;if(b<0)return 1;c=a.ud();return b<c||b===c&&(a=a.Gx())&&b===a.Ma&&!a.pending?2:1};
fV=function(a,b,c){g.O.call(this);this.ra=a;this.policy=b;this.Gc=c;this.B=0;this.j=!1;this.delay=new g.Ep(this.C,this.policy.Ej,this);g.P(this,this.delay)};
dSa=function(a,b){BM(b.j)||(a.resource=b,a.B=0,g.Fp(a.delay))};
eSa=function(a,b,c,d,e){var f=this;this.ra=a;this.policy=b;this.Gc=c;this.resource=d;this.hk=e;this.done=!1;this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*FP(this.Gc)));this.timing=new LT(this,{Gc:this.Gc,FA:this.size,hq:!0,Lv:function(){},
iK:this.policy.C});a=xN(this.resource,this.hk,this.policy).base.clone();zM(a);a.path!=="/videogoodput"&&(a.path="/videogoodput",a.url="");this.location=new rN(a);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=PT(this.location,this.policy.N,this.timing,this.policy.Gt,{});setTimeout(this.onTimeout,1E4)};
fSa=function(a,b,c){var d=a.Zr();if(a.isComplete()||!d||a.info.resource.hk(b,c)||d<2)return 0;a=uN(c,yN(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
gSa=function(a,b,c){if(!(b.xw&&a.isComplete()&&a.canRetry()&&a.info.resource.hk(b,c))||a.info.resource.Z)return 0;a=uN(c,yN(a.info.resource,!1,b));return a.B+b.xw*AEa(a,!0)>(0,g.hu)()?0:1};
gV=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.O.call(this);var u=this;this.ra=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.W=q;this.vN=r;this.Ii=t;this.oa=!1;this.IH="";this.fm=null;this.oh=NaN;this.qa=!1;this.B=null;this.Eh=this.Z=NaN;this.Mq=this.K=0;this.logger=new g.QT("dash");this.Sc={FR:function(y,A){return u.FR(y,A)}};
this.policy.lw>0&&(this.IH=g.dw(this.policy.lw));this.policy.Ej&&(this.N=new fV(this.ra,this.policy,this.schedule),g.P(this,this.N))};
jSa=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.GD)||(f=AM(d.j)===AM(d.C));f?d=!1:(e=uN(e,AM(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.hu)()<e.B+f?d=!1:(e.B=(0,g.hu)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.ra.ma("hostch",{},!0);if(hSa(a,b,c)){if(b.N)a.manifest.isLive?(c=a.manifest.hf&&a.manifest.D?b.j.Nt(a.manifest.hf,!1):b.j.gs(Infinity),c.oh=a.oh):c=b.j.Nt(0,!1),a.W?c.oh===0&&(c.G=a.W.Z):c.G=a.Z;else if(d=b.B,d.j.wg()){e=d.Rf-a.ra.getCurrentTime();var h=!d.range||d.B===
0&&d.Ob===0?0:d.range.length-(d.Ob+d.B);f=d.j;a.FR(b,e)&&h===0&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+hV,d.B&&(f+=d.duration),FT(b,f),d=b.B,f=d.j));f.un()?(h=a.C,e=eOa(a.G,f.info.qb,c.j.info.qb,e,h.D.length>0&&h.Z===0&&a.ra.Bs),c=d,f=$U(b),d=c.j.Uz(c,e),(e=d.C)&&d.gb.length>1&&(f||d.resource.B||d.gb[0].j!==c.j?d=c.j.Uz(c,d.gb[0].B):(f=d.gb[d.gb.length-1],h=f.B/e,!f.Oe&&h<.4&&(d=c.j.Uz(c,e-f.B)))),c=d):(d.Ma<0&&(c=KN(d),c.pr=""+b.C.length,a.ra.isSeeking()&&(c.sk="1"),c.snss=d.C,a.ra.ma("nosq",
c)),c=f.TD(d));if(a.policy.Fa)for(d=g.w(c.gb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.un()?(c=eOa(a.G,b.j.info.qb,c.j.info.qb,0),c=d.j.Uz(d,c)):c=d.j.TD(d);if(a.B){var l=c.gb[0].j.info.id;d=a.j;e=c.gb[0].Ma;d=e<0&&!isNaN(d.G)?d.G:e;e=oU(a.j,c.gb[0].Me,d);var m=b===a.audioTrack?1:2;h=c.gb[0].j.info.jb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Ng.event;if(n.j.Ma===d){n=p==="predictStart"?void 0:n.j.Ng.event;break a}if(n.j.Ma===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n=
void 0}if(a.policy.Oa&&a.j.B!==0){var q=a.B.TK(e,d,l,m,h,n);d<0&&m===2&&pU(a.j,0,0,!0);if(q){var r;l=((r=q.In)==null?void 0:r.du)||"";var t;r=((t=q.In)==null?void 0:t.HU)||-1;a.ra.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.JA(e,d,l,m,h,n),d<0&&m===2&&pU(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.oE&&b.isRequestPending(d-1)){a.ra.ma("sdai",{wt_daistate_on_sg:d-1});return}a.ra.ma("sdai",r);t&&(c.j=new g.yM(t));a.policy.C&&(t=c.resource.JK("id")||
"",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.ra.ma("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.ra.ma("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Jm&&c.gb[0].Ma!==-1&&c.gb[0].Ma<a.manifest.hf&&(c=b.j.Nt(a.manifest.hf,!1));CRa(b,iSa(a,c));lU(a.timing);var u;(u=a.N)==null||dSa(u,c.resource)}};
hSa=function(a,b,c){if(a.policy.hh&&a.policy.nE)return!1;var d;var e=a.j,f=((d=b.B)==null?void 0:d.Ma)||-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)return!1;if(!zN(b.B?b.B.j.resource:b.j.resource,a.policy,a.D,a.ra.Ho()))return a.ra.Ho(),!1;if(a.ra.isSuspended&&(!GP(a.schedule)||a.ra.eK))return!1;if(a.policy.D&&PQ>=5)return g.Fp(a.ra.LG),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Ma===-1||b.C.length>=a.policy.xq||!a.policy.wD&&b.C.length>0&&!a.policy.N.xj)return!1;
if(b.N)return!a.manifest.isLive||!isNaN(a.oh)}if(RRa(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.wg())return!1;FT(b,a.ra.getCurrentTime())}if(IT(b)&&(b.kp()!==IT(b)||a.ra.isSuspended))return!1;e=(d=a.policy.MB)&&!b.C.length&&VU(b,!0)<Math.min(d,VU(c));d=b.C.length+c.C.length;f=!a.policy.qD&&((b.C.length?b.C[0].jy():!1)||(c.C.length?c.C[0].jy():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Kq)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.wg()&&
(b.B=g.Rb(d.j.BC(d)),d=b.B);if(!d.Ri()&&!d.j.Mt(d))return!1;f=a.manifest.Wd||a.manifest.D;if(a.manifest.isManifestless&&f){f=b.j.index.ud();var h=c.j.index.ud();f=Math.min(f,h);if(b.j.index.DK()>0&&f>0&&d.Ma>=f)return b.Fa=f,c.Fa=f,!1}if(d.j.info.audio&&d.type===4||d.Ri())return!1;f=!b.G&&!c.G;if(e=!e)e=d.Rf,e=!!(c.B&&!UU(c,c.B)&&c.B.Rf<e);h=b===a.videoTrack&&a.policy.Fa;return e&&(!a.manifest.isManifestless||c.B&&c.B.Rf&&d.Rf)&&f&&!h||a.policy.Bb&&!b.G&&c.G?!1:HN(d)&&d.Rf>kSa(a,b)?(kSa(a,b),!1):
(a=b.Pb)&&a.isLocked()?!1:!0};
kSa=function(a,b){var c=a.j;c=c.j?c.j.Ng:null;if(a.policy.Fa&&c)return c.startSecs+c.lh+15;b=iV(a.ra,b);a.policy.Gb>0&&(c=((0,g.hu)()-a.ra.Iq)/1E3,b=Math.min(b,a.policy.Gb+a.policy.Jj*c));c=a.ra.getCurrentTime()+b;return a.policy.uw&&(b=lSa(a.ra)+a.policy.uw,b<c)?(a.ra.ma("mrl",{ori:c,mod:b},!0),a.policy.tE&&(a=a.ra,c=(0,g.hu)(),a.Iq=c),b):c};
mSa=function(a,b,c){if(c!==0){a:if(b=b.info,c=c===2,b.j)b=null;else{var d=b.gb[0];if(b.range)var e=DN(b.range.start,Math.min(4096,b.C));else{if(b.B&&b.B.indexOf("/range/")>=0||b.resource.JK("defrag")==="1"||b.resource.JK("otf")==="1"){b=null;break a}e=DN(0,4096)}e=new MN([new FN(5,d.j,e,"createProbeRequestInfo"+d.C,d.Ma)],b.B);e.hk=c;e.j=b.j;b=e}b&&iSa(a,b)}};
iSa=function(a,b){a.ra.xZ(b);var c=QEa(b),d=a.ra.KK();c={Gc:a.schedule,FA:c,kT:cOa(a.G,c),cq:GN(b.gb[0]),hq:BM(b.resource.j),iK:a.policy.C,Lv:function(h,l){a.ra.LH(h,l)}};
if(a.schedule.oa.G){var e,f;c.Hs=(((e=a.videoTrack.j)==null?void 0:e.info.qb)||0)+(((f=a.audioTrack.j)==null?void 0:f.info.qb)||0)}a.fm&&(c.Ma=b.gb[0].Ma,c.oh=b.oh,c.fm=a.fm);d={ix:REa(b,a.ra.getCurrentTime()),yH:a.policy.nf&&ON(b)&&b.gb[0].j.info.video?IQa(a.C):void 0,tI:a.policy.Fa,poToken:a.ra.Bu(),Ty:a.ra.UA(),IH:a.IH,Eh:isNaN(a.Eh)?null:a.Eh,Ii:a.Ii,vN:a.vN,Mq:a.Mq,jC:d};return new CT(a.policy,b,c,a.D,function(h,l){try{a:{var m=h.info.gb[0].j,n=m.info.video?a.videoTrack:a.audioTrack;if(!(h.state>=
2)||h.isComplete()||h.Zr()||!(!a.ra.Pa||a.ra.isSuspended||VU(n)>3)){var p=fSa(h,a.policy,a.D);p===1&&(a.qa=!0);mSa(a,h,p);if(h.isComplete()||h.Ia()&&l<3){if(a.policy.C){var q=h.timing.Jr();q.rst=h.state;q.strm=h.xhr.Vv();q.cncl=h.xhr&&h.Dd.C?1:0;a.ra.ma("rqs",q)}h.K2&&a.ra.ma("sbwe3",{},!0)}if(!a.Ia()&&h.state>=2){cQa(a.timing,h,m);var r=a.ra;a.Eh&&h.GJ&&r&&(a.Eh=NaN,a.ra.qU(h.GJ),a.ra.XE(),a.ra.ma("cabrUtcSeek",{mediaTimeSeconds:h.GJ}));h.HC&&(h.jq>0&&a.ra.ma("sError",{errorHttpResponseCode:h.jq.toString()}),
a.Eh&&h.HC&&!h.HC.action&&(a.ra.bv(a.Eh),a.Eh=NaN,a.ra.ma("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.Eh})));h.uj&&a.ra.An(h.uj);a.policy.kd&&(a.Mq=h.Mq);if(h.state===3){XU(n,h);ON(h.info)&&jV(a,n,m,!0);if(a.B){var t=h.info.JA();t&&a.B.Ql(h.info.gb[0].Ma,m.info.id,t)}a.ra.Le()}else if(h.isComplete()&&h.info.gb[0].type===5){if(h.state!==4)h.Vl()&&a.ra.handleError(h.Mh(),h.mq());else{var u=(h.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;u&&u instanceof CT&&u.Zr()&&u.cw(!0)}h.dispose()}else{h.Vl()||
nSa(a,h);var y;((y=h.AB)==null?0:y.itagDenylist)&&a.ra.hM(h.AB.itagDenylist);if(h.state===4)oSa(a,h),a.j&&iQa(a.j,h.info,a.B);else if(a.policy.Gt&&h.Fn()&&!h.isComplete()&&!oSa(a,h)&&!h.Vl())break a;h.Vl()&&(pSa(a,h),isNaN(a.Eh)||(a.ra.bv(a.Eh),a.Eh=NaN));a.ra.Le();var A=gSa(h,a.policy,a.D);mSa(a,h,A)}}}}}catch(C){l=a.oa?1:0,a.oa=!0,h=bG(l),l=cG(C,l),a.ra.handleError(l.errorCode,l.details,l.severity),h||a.ra.Gj()}},d)};
nSa=function(a,b){if(b.hC&&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=HQa(a.C,c),e=b.info.C;e&&(e-=d.DQ(),d.C=!0,b.info.gb[0].j.C=!1,DPa(b,d.Kx(e)),kV(a.ra,a.videoTrack,d),SRa(a.videoTrack,d),a.ra.fT(d.info.video.quality),(e=b.MQ())&&d.info.lastModified&&d.info.lastModified!==+e&&XU(a.videoTrack,b))}else b.hC=!1}};
pSa=function(a,b){var c=b.info.gb[0].j,d=b.Mh();if(BM(c.resource.j)){var e=g.qc(b.Zf(),3);a.ra.ma("dldbrerr",{em:e||"none"})}e=b.info.gb[0].Ma;var f=oU(a.j,b.info.gb[0].Me,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&qSa(a.ra)){if(!(b.info.resource.B>=a.policy.Tw&&a.B&&b.info.Cq()&&d==="net.badstatus"&&a.B.mF(f,e))){e=(c.info.video&&c.resource.B>1||b.Cg===410||b.Cg===500||b.Cg===503)&&!(uU(a.C.G).size>0)&&!BM(c.resource.j);f=b.mq();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1");
a.ra.handleError(d,f);a.Ia()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),zU(a.C,c)),XU(h,b),a.ra.Le())}}else h=1,a.B&&b.info.Cq()&&d==="net.badstatus"&&a.B.mF(f,e)&&(h=0),a.manifest.isLive&&b.Mh()==="net.badstatus"&&a.K<=a.policy.Qj*2?(UIa(a.manifest),a.manifest.Wd||a.manifest.isPremiere?HT(a.ra,0,{Xc:"badStatusWorkaround"}):a.manifest.D?HT(a.ra,a.manifest.Ka,{Xc:"badStatusWorkaround",
Wp:!0}):lV(a.ra)):a.ra.handleError(d,b.mq(),h)};
oSa=function(a,b){if(a.policy.useUmp&&b.Ia())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.Ia(),b.isComplete()||b.Fn(),d.N=!1);b.oQ()&&a.ra.YE.Cl(1,b.oQ());var e=b.DK(),f=b.aZ();zO(a.manifest,e,f)}if(b.info.cq()&&!NN(b.info))for(var h=g.w(b.lm()),l=h.next();!l.done;l=h.next())FRa(d,l.value);for(a.ra.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();ERa(d,m);d.Ua=m.TY()}d.C.length&&ERa(d,d.C[0]);var n=!!IT(d);
n&&b instanceof BT&&(c.info.cg()?WPa(a.timing):VPa(a.timing));return n}catch(p){b=b.mq();b.origin="hrhs";a:{a=a.ra;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.At&&c.args)for(d=g.w(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.w(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.qx(c);if(c.level==="WARNING"){a.ea.wp(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
rSa=function(a){var b=a.videoTrack.j.index;a.fm=new cSa({Bk:a.policy.Bk,xj:a.policy.N.xj,fk:b.fk,ud:function(){return b.ud()},
Gx:function(){return b.Gx()}})};
jV=function(a,b,c,d){if(!(c.wg()||c.tB()||c.C||!zN(c.resource,a.policy,a.D)||c.info.jb==="f"||a.policy.j)){if(d){d=a.G;var e=c.info;d=dOa(d,e.video?d.policy.zx:d.policy.Cm,e.qb)}else d=0;d=c.Kx(d);a=iSa(a,d);NN(d)&&CRa(b,a);c.C=!0}};
mV=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.ra=a;this.Xd=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.Z=f;this.isAudioOnly=h;this.Ca=l;this.B=ZQ;this.Aa=!1;this.logger=new g.QT("sabr");this.N=this.qa=this.oa=!1;this.videoInfos=this.G=this.Z.videoInfos;this.C=this.W=this.Z.j;this.j=new sU(b,f,function(n,p){m.ra.ma(n,p)});
sSa(this);this.isAudioOnly&&tSa(this,this.manifest.j["0"])};
uSa=function(a,b){var c=[];b=g.w(b);for(var d=b.next();!d.done;d=b.next())c.push(zG(d.value,a.manifest.Wb));return c};
tSa=function(a,b,c){b!==a.D&&(a.D&&(a.Aa=!0),a.D=b,a.gM(b,a.videoTrack,c))};
ySa=function(a,b){a.logger.debug("setConstraint: "+lM(b));eV(a.Xd)&&(a.qa=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&vSa(a,b.j):wSa(a,b)?xSa(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
wSa=function(a,b){return a.Xd.Np&&b.reason==="b"||a.Xd.aE?!1:a.Xd.wB?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"};
zSa=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:gM(b,a.B)};
ASa=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.Aa?!0:a.D?b!==d?!0:!a.j.B||a.Xd.Sj&&a.j.j===a.D.info.itag?!1:!0:!1};
vSa=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Ub(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.ra.ma("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),xSa(a,b,b),vU(a.j,""))}else xSa(a,b,b)};
xSa=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Bn(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
sSa=function(a){var b=null;if(b=a.Xd.xl?oQa(a.j,a.Ca):g.Ub(a.W,function(c){var d;return!((d=c.Yb)==null||!d.isDefault)}))a.C=[b]};
BSa=function(a,b){return a.map(function(c){return AG(c,b)})};
CSa=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=uU(a.j);b=g.Bn(a.videoInfos,function(d){return d.qb>a.Xd.qb?!1:!c.has(d.id)});
nQa(a.j)&&(b=g.Bn(b,function(d){return d.video.width<=854&&d.video.height<=480}));
return b};
FSa=function(a,b,c,d){var e=a.manifest,f=a.ea.getVideoData(),h=g.oR(f),l=vPa({Ba:f.U(),ea:a.ea,hF:a.hF,Xd:a.Xd,Iq:a.Iq,Gy:a.Gy,jx:a.jx,Az:a.Az,er:a.er,isPrefetch:a.isPrefetch,rP:a.rP,sabrLicenseConstraint:f.sabrLicenseConstraint,pz:a.pz,lx:a.lx}),m=bU(f,a.jC,a.nextRequestPolicy,a.Sl,a.EH,a.nea);d&&c&&(d=m.GC?m.GC.map(function(u){return u.type}):[],c("ssap",{stmctxt:d.join("_"),
unsntctxt:m.gD?m.gD.join("_"):""}));d=a.bI;var n=a.cI;if(n===void 0&&d===void 0){var p;n=DSa(e.Wb,(p=a.U7)==null?void 0:p.video);var q;d=DSa(e.Wb,(q=a.U7)==null?void 0:q.audio)}if(f.Ii)var r=f.Ii;f={Pr:l,jp:a.jp,bI:d,cI:n,videoPlaybackUstreamerConfig:r,bD:m};a.In&&(f.In=a.In);if(h&&b){h=new Map;var t=g.w(e.Ja);for(l=t.next();!l.done;l=t.next())l=l.value,(m=e.Oa[KGa(e,l)]||"")?(h.has(m)||h.set(m,[]),h.get(m).push(l)):c&&c("ssap",{nocid4fmt:(l.itag||"")+"_"+(l.lmt||0)+"_"+(l.xtags||"")});e=new Map;
t=g.w(a.Uc);for(l=t.next();!l.done;l=t.next())l=l.value,m=l.startTimeMs||0,p=void 0,q=(p=b)==null?void 0:zT(p,m),p=q.clipId,q=q.gm,p?(e.has(p)||(r=h.get(p)||[],e.set(p,{clipId:p,Uc:[],Xx:r})),q!==0&&(l.startTimeMs=m-q),e.get(p).Uc.push(l)):c&&(p=void 0,c("ssap",{nocid4range:"1",fmt:((p=l.formatId)==null?void 0:p.itag)||"",st:m.toFixed(3),d:(l.durationMs||0).toFixed(3),timeline:nV(b)}));f.rI=[];e=g.w(e.entries());for(h=e.next();!h.done;h=e.next())h=g.w(h.value),h.next(),h=h.next().value,f.rI.push(h);
if(a.Uc.length&&!f.rI.length){c&&c("ssap",{nobfrange:"1",br:ESa(a.Uc),timeline:nV(b)});return}a.AL&&(f.AL=a.AL);a.xL&&(f.xL=a.xL)}else f.Uc=a.Uc,f.Xx=e.Ja,h&&((t=a.Uc)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return f};
DSa=function(a,b){return b?[zG(b.info,a)]:[]};
ESa=function(a){var b="";a=g.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0,e=void 0,f=void 0;b+="fmt."+(((d=c.formatId)==null?void 0:d.itag)||"")+"_"+(((e=c.formatId)==null?void 0:e.lmt)||0)+"_"+(((f=c.formatId)==null?void 0:f.xtags)||"")+";st."+(c.startTimeMs||0).toFixed(3)+";d."+(c.durationMs||0).toFixed(3)+";"}return b};
oV=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.wb=c;this.B=null;this.Sc={lpa:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch},
EH:function(){var e;return(e=d.data)==null?void 0:e.EH}}};
GSa=function(a,b,c,d,e){e=e===void 0?{}:e;if(d==null?0:d.Qb)a.gN=SPa(a,d,e),b.lx=a.resource.lx();if(a.Qu())return!0;a.data=b;a.j=FSa(b,c,function(f,h){var l;(l=a.wb)==null||l.Lk(f,h)},d==null?void 0:d.C);
if(!a.j)return!1;a.B=g.PB(a.j,VCa);return!0};
SPa=function(a,b,c){b=xN(a.resource,HSa(a,b,c),b);a.Qu()&&b.set("probe","1");return b};
HSa=function(a,b,c){a.hk===void 0&&(a.hk=a.resource.hk(b,c));return a.hk};
ISa=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.Pr)==null?void 0:c.yT)||0};
JSa=function(a){var b,c;return!!((b=a.j)==null?0:(c=b.Pr)==null?0:c.pz)};
KSa=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.Uc.length;e++){var f=a.data.Uc[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.xp)+("_en."+f.Kj))}for(e=0;e<a.data.jp.length;e++){f=a.data.jp[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.bk||NaN)+"_lb."+f.H_+"_tr.s_"+((l=f.sK)==null?void 0:l.Xg)+"_d_"+
((m=f.sK)==null?void 0:m.qF)+"_t_"+((n=f.sK)==null?void 0:n.zt)+"_ed_"+f.EY)}b.ptime=ISa(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
pV=function(a,b){this.hd=a;this.cipher=this.hd.exports.AES128CTRCipher_create(b.byteOffset)};
LSa=function(a){return function(b){return{profile:a,oo:Math.ceil(b.byteLength/16)}}};
qV=function(a,b){this.key=a;this.subtleCrypto=b;this.j=!1};
MSa=function(a,b){b=b===void 0?window.crypto.subtle:b;return bP($O(function(){return b.importKey("raw",a,"AES-CTR",!1,["encrypt"]).catch(function(c){return Promise.reject(c.name+": "+c.message)})}),function(c){return new qV(c,b)})};
rV=function(a){this.j=!1;this.B=new $B(a)};
sV=function(a,b){this.hd=a;var c=a.eF(b);this.j=new pV(a,c!=null?c:b);c&&a.free(c.byteOffset)};
NSa=function(a,b){var c=this;var d=d===void 0?globalThis.crypto.subtle:d;this.key=a;this.subtleCrypto=d;b==null||bP(b,function(e){c.hd=e})};
QSa=function(a,b,c){return a.hd&&!a.hd.Ro?cP(OSa(a,b,c),function(){return PSa(a,b,c)}):PSa(a,b,c)};
OSa=function(a,b,c){if(!a.hd)return ZO("wasm unavailable");a.C||(a.C=new sV(a.hd,a.key));return a.C.encrypt(b,c)};
PSa=function(a,b,c){a.j||(a.j=new rV(a.key));return a.j.encrypt(b,c)};
RSa=function(a,b,c){a.B||(a.B=MSa(a.key,a.subtleCrypto));return bP(a.B,function(d){return d.encrypt(b,c)})};
SSa=function(a,b){this.j=a;this.hd=b;this.iv=(0,g.cU)(cw(16))};
TSa=function(a,b){var c;return g.J(function(d){(0,g.hu)();c=zJa(a.j);return d.return(c.encrypt(b,a.iv))})};
USa=function(a,b){var c;return g.J(function(d){(0,g.hu)();var e=a.j;e.D||(e.D=new eva(e.C));c=e.D;return d.return(hva(c,b,a.iv))})};
VSa=function(a,b,c){var d;return g.J(function(e){(0,g.hu)();d=zJa(a.j);return e.return(d.decrypt(b,c))})};
tV=function(a){g.O.call(this);var b=this;this.Y=a;this.j=new Map;this.D=[];this.B=this.Y.experiments.bb("html5_onesie_trusted_hosts_for_all")||!dC();this.W=g.UD(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Ep(this.N,this.W,this);this.K=-1;this.Sc={voa:function(){return b.j},
Boa:function(){return b.G},
woa:function(){return WSa}};
g.P(this,this.Z);aPa(this,g.mt("yt-player-bandaid-host"));this.G=this.load();this.W&&this.G.then(function(){b.N()})};
aPa=function(a,b){var c=b==null?void 0:b.primary;a.C(0,c);c=c?XSa(c):void 0;a.C(2,c);a.C(1,b==null?void 0:b.secondary)};
uV=function(a,b){return new g.yM("https://"+b+a.Y.ll.baseUrl)};
YSa=function(a,b){a="https://"+AM(b.location)+"/initplayback?c="+iP(a.Y)+"&owc=1";vT(a,"pw",function(c){c.ht=b.j})};
vV=function(a,b,c,d){vT("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.qL||d.aR();a.D.push(e)},function(e){a.D.push(e.details)})};
XSa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(b===1?2:b-1)+"---"})};
ZSa=function(a,b){var c,d,e,f,h,l,m,n;return g.J(function(p){if(p.j==1){c=uV(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.G(p,gs(c.xe(),d),2)}e=p.B;if(e.xhr.status!==200||!e.xhr.responseText)return p.return(Promise.reject(new g.At("b204258371_no_host",c.xe(),e.xhr.status)));f=new g.yM(e.xhr.responseText);
h=AM(f);l=f.get("ms");m=uV(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&$Oa(h)?b!==2||VT(h)?p.return(m):p.return(Promise.reject(new g.At("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.At("b204258371_invalid",h,l)))})};
$Sa=function(a){var b=a.D;a.D=[];return b};
$Oa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
VT=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
aTa=function(a,b){this.location=a;this.j=b};
bTa=function(a){this.Cn=a;this.B=!1;this.j=[]};
xV=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.zq,e=b.formatId,f=b.buffer;b=b.m9;if(f)b=void 0,(b=wV(a.Cn.Cc,c))==null||jU(b,d,e,f);else if(b)a.Cn.Cc.Pq(c,d,e);else if(d=a.Cn,d.j[e].HZ=!0,c=wV(d.Cc,c),c==null?0:c.Zc.has(e))c==null||IPa(c,e)}};
g.eTa=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(yV.length===0){yV.length=288;yV.fill(8);for(a=144;a<280;a++)yV[a]=a<=255?9:7;cTa.length=32;cTa.fill(5);zV.length=286;zV.fill(0);for(a=261;a<285;a++)zV[a]=Math.floor((a-261)/4);AV[257]=3;for(a=258;a<285;a++){var b=AV[a-1];b+=1<<zV[a-1];AV[a]=b}AV[285]=258;for(a=0;a<30;a++)dTa[a]=a<=3?0:Math.floor((a-2)/2);for(a=BV[0]=1;a<30;a++)b=BV[a-1],b+=1<<dTa[a-1],BV[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.kTa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!CV(b,1);switch(CV(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=CV(b,5)+257;var f=CV(b,5)+1;for(var h=CV(b,4)+4,l=0;l<h;l++)d[fTa[l]]=CV(b,3);d=gTa(d);for(h=e+f;c.length<h;){l=hTa(b,d);switch(l){case 16:l=c[c.length-1];var m=CV(b,2)+3;break;case 17:l=0;m=CV(b,3)+3;break;case 18:l=0;m=CV(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,iTa(b,c,f));break;case 1:iTa(b,yV,cTa);break;case 0:jTa(b,
b.j&7);c=CV(b,16);e=CV(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};
iTa=function(a,b,c){b=gTa(b);c=gTa(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=AV[n];h+=CV(a,zV[n]);m=hTa(a,c);l=BV[m];l+=CV(a,dTa[m]);if(lTa&&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};
hTa=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 jTa(a,c&15),c>>4;for(jTa(a,7);c<0;)c=b[CV(a,1)-c];return c>>4};
CV=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};
jTa=function(a,b){a.j-=b;a.register>>=b};
gTa=function(a){for(var b=[],c=g.w(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};
mTa=function(a){var b,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.kTa(new g.eTa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new jB([]);case 2:return g.G(m,d.read(),5);case 5:f=m.B;h=f.value;if(l=f.done){m.Ea(4);break}e.append(h);m.Ea(2);break;case 4:return m.return(e.Gk())}})};
DV=function(a,b){this.j=a;this.hd=b};
nTa=function(a){return cP(cP($O(function(){return bP(a.hd,function(b){return a.b_(a.j,b)})}),function(){return a.a_(a.j)}),function(){return a.ZZ(a.j)})};
oTa=function(a,b){return nTa(new DV(a,b))};
qTa=function(a){return function(){return pTa(a.apply(this,g.Ea.apply(0,arguments)))}};
pTa=function(a){return $O(function(){return rTa(a,a.next())})};
rTa=function(a,b){return b.done?YO(b.value):cP(bP(b.value.n9,function(c){return rTa(a,a.next(c))}),function(c){return rTa(a,a.throw(c))})};
uTa=function(a){dU.call(this,"onesie");this.Cc=a;this.j={};this.C=!0;this.D=null;this.queue=new bTa(this);this.G={};this.K=qTa(function(b,c){var d=this;return function f(){var h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N,X,V,ca,la;return maa(f,function(W){switch(W.j){case 1:W.G=0;W.D=2;d.Cc.lM();h=function(R){return function(Y){throw{name:R,message:Y};}};
l=b.Gk();g.wa(W,4,5);if(!c){W.Ea(7);break}return iaa(W,cP(sTa(d.Cc,l,d.iv),h("DecryptError")).wait(),8);case 8:m=W.B;case 7:if(!d.Cc.enableCompression){W.Ea(9);break}return iaa(W,cP(oTa((q=m)!=null?q:l,d.Cc.U().lk),h("DecompressError")).wait(),10);case 10:n=W.B;case 9:p=HB((t=(r=n)!=null?r:m)!=null?t:l,PCa);case 5:g.za(W,0,2);if(y=(u=d.Cc.U())==null?void 0:u.hd)((A=m)==null?void 0:A.buffer)===y.exports.memory.buffer&&y.free(m.byteOffset),((C=n)==null?void 0:C.buffer)===y.exports.memory.buffer&&y.free(n.byteOffset);
g.Aa(W,6);break;case 4:throw H=F=g.ya(W),new aG("onesie.response.parse",{name:(V=H.name)!=null?V:"unknown",message:(ca=H.message)!=null?ca:"unknown",wasm:((L=d.Cc.U())==null?0:L.hd)?((N=d.Cc.U())==null?0:(X=N.hd)==null?0:X.Ro)?"1js":"1":"0",enc:d.C,gz:d.Cc.enableCompression,webcrypto:!!dC()});case 6:return tTa(p),la=g.tB(p.body),W.return(la);case 2:g.za(W),g.Aa(W,0)}})}()})};
vTa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.w(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.HZ){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||xV(e)}}};
xTa=function(a,b){var c=b.getLength(),d=!1;switch(a.D){case 0:a.Cc.L("html5_future_onesie_ump_handler_on_player_response")?cP(bP(a.K(b,a.C),function(e){wTa(a.Cc,e)}),function(e){a.Cc.cj(e)}):a.lM(b,a.C).then(function(e){wTa(a.Cc,e)},function(e){a.Cc.cj(e)});
break;case 2:a.Md("ormk");b=b.Gk();a.queue.decrypt(b);break;default:d=!0}a.Cc.jn&&a.Cc.ma("ombup","id.11;pt."+a.D+";len."+c+(d?";ignored.1":""));a.D=null};
tTa=function(a){if(a.A1!==1)throw new aG("onesie.response.badproxystatus",{st:a.A1,webcrypto:!!dC(),textencoder:!!g.Na.TextEncoder});if(a.TZ!==200)throw new aG("onesie.response.badstatus",{st:a.TZ});};
yTa=function(a){return new Promise(function(b){setTimeout(b,a)})};
zTa=function(a,b){var c=a.U();c=a.Pc&&c.L("html5_onesie_preload_use_content_owner");var d=a.gT,e=kP(b.Y.experiments,"debug_bandaid_hostname");if(e)b=uV(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=AM(new g.yM(d.url));b=uV(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=sP(a.videoId);a=[];if(f)for(f=g.w(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}};
ATa=function(a,b,c){c=c===void 0?0:c;var d,e;return g.J(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(yTa(c)),g.G(f,Promise.race(d),2);e=zTa(a,b);return f.return(e)})};
BTa=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");dC()||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")&&vR(b)&&b.Pc,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),jP||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad",
"0"),a.set("oavd","0")))};
CTa=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.il,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.rR&&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.Cb()});g.zr("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.zr("EOM_VISITOR_DATA")}):(c=c.visitorData||g.zr("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=kP(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=wB(JSON.stringify(a));return{url:h,kR:f,postBody:a,Wda:e,WC:e}};
ETa=function(a,b,c,d,e,f){var h=g.PB(a,OCa,a.WC?void 0:c.hd),l={encryptedClientKey:b.j.encryptedClientKey,J2:!0,zY:!0,VP:DTa(c,!!a.WC),i4:c.experiments.bb("html5_use_jsonformatter_to_parse_player_response")};if(a.WC)l.Lfa=h;else{a=b.encrypt(h);var m;a=((m=c.hd)==null?void 0:m.mS(a))||a;m=l.BY=a;(0,g.hu)();m=dva(new cva(b.j.C),m,b.iv);l.RZ=m;l.iv=b.iv}b=d.getVideoData();c=vPa({Ba:c,ea:d,hF:b.startSeconds*1E3});e={sR:l,Pr:c,onesieUstreamerConfig:e,Gp:f,bD:bU(b)};b.reloadPlaybackParams&&(e.reloadPlaybackParams=
b.reloadPlaybackParams);return e};
FTa=function(a,b,c){var d,e,f;return g.J(function(h){if(h.j==1)return d=g.PB(b,OCa),g.G(h,TSa(c,d),2);if(h.j!=3)return e=h.B,g.G(h,USa(c,e),3);f=h.B;return h.return({BY:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,RZ:f,J2:!0,zY:!0,VP:DTa(a,!!b.WC),i4:a.experiments.bb("html5_use_jsonformatter_to_parse_player_response")})})};
GTa=function(a,b,c,d,e,f){var h,l,m,n;return g.J(function(p){if(p.j==1)return g.G(p,FTa(c,a,b),2);h=p.B;l=d.getVideoData();m=vPa({Ba:c,ea:d,hF:l.startSeconds*1E3});n={sR:h,Pr:m,onesieUstreamerConfig:e,Gp:f,bD:bU(l)};l.reloadPlaybackParams&&(n.reloadPlaybackParams=l.reloadPlaybackParams);return p.return(n)})};
DTa=function(a,b){a=FP(a.schedule,!0);b=b||!!dC()&&a>1572864;return"DecompressionStream"in window||!b};
FV=function(a,b){g.O.call(this);var c=this;this.ea=a;this.playerRequest=b;this.Y=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.QT("onesie");this.jn=this.Y.Vb();this.LP=this.Y.ll;this.qH=new SSa(this.LP.j,this.Y.lk);this.xhr=null;this.state=1;this.wr=new HH;this.MZ=!1;this.playerResponse="";this.qm=new MT(this);this.Cn=new uTa(this);this.KI=this.Y.L("html5_onesie_check_timeout");this.kP=new g.Ep(this.Z7,500,this);this.rH=new g.Ep(this.aR,1E4,this);this.tM=new g.Ep(function(){if(!c.isComplete()){var d=
EV(c);c.cj(new aG("net.timeout",d))}},g.UD(this.Y.experiments,"html5_onesie_request_timeout_ms"));
this.z1=new g.Ep(this.uaa,2E3,this);this.Dv="";this.qL=this.l_=!1;this.bB=this.ea.UA();this.hT="";this.VH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.aS=this.nB=!1;this.vI=[];this.Ov=this.sj=-1;g.P(this.videoData,this);g.P(this,this.kP);g.P(this,this.rH);g.P(this,this.z1);a=nP();jP&&a&&!this.Y.L("html5_disable_onesie_media_bytes")&&(this.fg=new Map);this.QY=new Map;this.w0=new Map;this.q2=new Map;this.gQ=new Map};
wV=function(a,b){var c;return(c=a.fg)==null?void 0:c.get(b)};
ITa=function(a,b,c){var d;return g.J(function(e){if(e.j==1)return a.Md("oprd_s"),HTa(a)?g.G(e,VSa(a.qH,b,c),3):(d=a.qH.decrypt(b,c),e.Ea(2));e.j!=2&&(d=e.B);a.Md("oprd_c");return e.return(d)})};
sTa=function(a,b,c){a.Md("oprd_s");var d=a.qH;d.B||(d.B=new NSa(d.j.j,d.hd));d=d.B;a:{if(b.length<=131072&&d.hd&&!d.hd.Ro){var e=OSa(d,b,c);if(e.currentState==="done"){b=e;break a}}b.length<=32768?b=PSa(d,b,c):(e=RSa(d,b,c),b=e.currentState==="done"?e:QSa(d,b,c))}a.Md("oprd_c");return b};
JTa=function(a){return a.L("html5_onesie_host_probing")||a.jn?jP:!1};
wTa=function(a,b){a.Md("oprr");a.playerResponse=b;a.aS||(a.VH=!1);GV(a)};
GV=function(a){if(!a.playerResponse)return!1;if(a.nB)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&wR(a.videoData);if(a.fg&&a.VH){if(!a.fg.has(a.Dv))return!1;var c=a.fg.get(a.Dv),d;if(d=c){d=!1;for(var e=g.w(c.Zc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Zc.get(f.value))for(var h=g.w(f.PG),l=h.next();!l.done;l=h.next())l.value.Ws>0&&(f.cg?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Md("ofr");a.wr.resolve(a.playerResponse);if(!a.KI){var m;(m=a.tM)==null||m.start();a.rH.start()}return a.nB=
!0};
LTa=function(a){if(a.fg&&!a.L("html5_onesie_media_capabilities")){a.Md("ogsf_s");var b=qPa(a.ea.getVideoData(),function(d,e){a.ma(d,e)}),c=KTa(a.ea);
b.video=gPa(c,b.video);a.Md("ogsf_c");if(b.video.length)return b;a.ma("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
HTa=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.WC)||g.hQ(a.Y)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!dC()};
EV=function(a){if(!a.Kd)return{};var b=a.Kd.Jr(),c;b.d=(c=a.Kd.Ca)==null?void 0:c.Fi();b.shost=a.gN;b.ty="o";return b};
MTa=function(a,b){var c,d;(d=(a=(c=a.fg)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d};
NTa=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);var q=this;this.ea=a;this.ra=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Gc=h;this.Ka=l;this.C=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.Fa=this.Ja=!1;this.Sl=new Set;this.D=this.Ca=this.W=this.er=0;this.K=null;this.Sc={Ooa:function(){return q.j},
koa:function(){return q.G},
xna:function(){q.j.length=0},
yoa:function(){return q.Sl},
uoa:function(){return q.W},
lqa:function(r){q.W=r},
qqa:function(r){q.D=r}};
this.videoData=this.ea.getVideoData();this.policy.Ej&&(this.Aa=new fV(this.ra,this.policy,this.Gc),g.P(this,this.Aa))};
QTa=function(a,b){b=b===void 0?!1:b;if(OTa(a,b)){a.policy.oa&&a.ra.ma("sabrcrq",{create:1});var c=new oV(0,a.manifest.Z,a);a.policy.gh>0&&a.D++;b=PTa(a,c,b);a.j.push(b);var d;(d=a.Aa)==null||dSa(d,a.manifest.Z)}};
TTa=function(a,b){var c=RU(a.audioTrack,a.ra.isSeeking()),d=RU(a.videoTrack,a.ra.isSeeking()),e=[].concat(g.x(c.Uc),g.x(d.Uc)),f=[].concat(g.x(c.jp),g.x(d.jp)),h=a.ra.KK(),l,m,n=a.ea,p=a.manifest,q;var r=a.policy.K&&((q=a.ra)==null?void 0:q.wG());q=a.ra.getCurrentTime()||0;q=RTa(a,q);var t=a.ra.zc()||0;q+=t;t=JR(a.videoData)||g.IR(a.videoData);var u=0;r?(t&&(u=Number.MAX_SAFE_INTEGER),a.videoData.Ja&&(u=Math.ceil(a.videoData.Ka*1E3))):u=Math.ceil(q*1E3);r=Math.min(Number.MAX_SAFE_INTEGER,u);q=a.B;
t=a.Sl;u=a.policy;var y=a.ra.Iq,A=lSa(a.ra)*1E3,C=(l=a.qa)==null?void 0:l.jx;l=(m=a.qa)==null?void 0:m.Az;var F;m=Number((F=a.C.D)==null?void 0:F.info.itag)||0;var H;F=Number((H=a.C.K)==null?void 0:H.info.itag)||0;b={ea:n,manifest:p,Uc:e,jp:f,hF:r,nextRequestPolicy:q,Sl:t,Xd:u,Iq:y,Gy:A,jx:C,Az:l,er:a.er,isPrefetch:b||a.ra.isSuspended,AL:m,xL:F,jC:h};e=a.ra.Bu();f=sP(e);e&&(b.EH=f);if(e=a.ea.Lx())b.pz=e*1E3;var L;e=a.C;f=e.oa;if((e.Xd.B&&e.Xd.hE||((L=e.Xd)==null?0:L.j&&L.Nd))&&!f)for(L=g.w(e.C),h=
L.next();!h.done;h=L.next())if(h.value.Yb){f=!0;break}L=eV(e.Xd)&&!f?[]:uSa(e,e.C);b.bI=L;L=a.C;eV(L.Xd)&&!L.qa?L=[]:(e=CSa(L),e.length===0&&(e=L.G),L=uSa(L,e));b.cI=L;if(a.policy.G){c=STa(a,c.Uc,d.Uc);var N;if(d=(N=a.K)==null?void 0:N.NQ(c))b.In=d}a.policy.Aa&&a.j.length>0&&a.j[0].dP()&&(b.nea=a.j[0].KQ());return b};
RTa=function(a,b){if(a.ra.isSeeking())return b;var c=a.ea.Ge();if(!c)return b;c=c.Kh();if(c.length===0||JG(c,b))return b;if(a.policy.W&&!TRa(a.videoTrack,b)&&!TRa(a.audioTrack,b))return a.ra.ma("sundrn",{b:0,lt:b}),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.ra.ma("sundrn",{bre:d,lt:b});return d};
STa=function(a,b,c){var d=a.ra.getCurrentTime()||0;b=UTa(a,b,d);a=UTa(a,c,d);return Math.min(b,a)};
UTa=function(a,b,c){a=a.ra.zc()||0;b=g.w(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};
OTa=function(a,b){if(a.policy.gh>0){var c=Math.floor((0,g.hu)()/1E4);if(c===a.Ca){if(a.D>=a.policy.gh){if(a.D===a.policy.gh){var d={reason:"toomanyrequests"};d.limit=a.D;a.ra.handleError("player.exception",d);a.D+=1}return!1}}else a.Ca=c,a.D=0}b=!b&&!GP(a.Gc);if(a.ra.isSuspended&&(a.ra.eK||b)||a.oa&&(0,g.hu)()<a.oa||a.j.length>0&&(!a.policy.Aa||a.j.length!==1||!a.j[0].dP())||(d=a.manifest.Z)==null||!zN(d,a.policy,a.G,a.ra.Ho()))return!1;d=a.policy.cK&&a.policy.B&&a.ra.Ff();if(ZU(a.audioTrack)&&ZU(a.videoTrack)&&
!d)return!1;if(a.policy.B&&a.N&&!a.ra.Ff())return a.Lk("ssap",{pauseontlm:1}),!1;if(HV(a,a.audioTrack)&&HV(a,a.videoTrack))return a.policy.C&&a.ra.ma("sabrHeap",{a:""+TU(a.audioTrack),v:""+TU(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=STa(a,RU(a.audioTrack,a.ra.isSeeking()).Uc,RU(a.videoTrack,a.ra.isSeeking()).Uc),c=a.Z,b>=c.C?(c.ma("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.oa&&a.ra.ma("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.oa&&a.ra.ma("sabrcrq",
{nopolicy:1}),!0;if(a.ea.Lx())return a.policy.oa&&a.ra.ma("sabrcrq",{utc:1}),!0;if(a.C.N)return a.policy.oa&&a.ra.ma("sabrcrq",{audio:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.oa&&a.ra.ma("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.ra.wG())return a.policy.oa&&a.ra.ma("sabrcrq",{seekToHead:1}),!0;d=Math.min(iV(a.ra,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(iV(a.ra,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=VU(a.audioTrack,
!0)*1E3;var f=VU(a.videoTrack,!0)*1E3;var h=c<e&&!HV(a,a.audioTrack);e=f<e&&!HV(a,a.videoTrack);if((h||e)&&a.policy.C&&a.policy.Yi){var l=a.ra.pc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ra.ma("sabrrnm",l)}!(d=!h&&!e)&&(d=a.policy.B)&&(d=a.ra,!d.ub||AO(d.manifest)?d=!1:(b=IV(d.ub),d=VTa(d,b)));return d||a.policy.qE&&WTa(a.ra)&&a.videoData.Oj()||a.policy.gL&&WTa(a.ra)?!1:!0};
PTa=function(a,b,c){var d={Gc:a.Gc,Lv:function(m,n){a.ea.LH(m,n)},
cq:a.policy.Tn,iK:a.policy.C};if(a.Gc.oa.G){var e,f;d.Hs=(((e=a.videoTrack.j)==null?void 0:e.info.qb)||0)+(((f=a.audioTrack.j)==null?void 0:f.info.qb)||0)}e=HSa(b,a.policy,a.G)?2:1;e!==a.W&&(a.W=e,XTa(a));c=TTa(a,c);if((a.policy.B||a.policy.Aa)&&a.policy.C&&c.Sl){f=e="";for(var h=g.w(c.Sl),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ra.ma("sabrbldrqs",{ctxts:e,misctxts:f})}GSa(b,c,a.ra.Ff(),a.policy,a.G)||!a.policy.B&&!a.policy.Aa||a.ra.handleError("player.exception",
{reason:"buildsabrrequestdatafailed"},1);d=new kU(a.policy,b,a.manifest,a.G,a,d,a.ra.UA(),a.policy.Xf?a.ra.Ff():void 0);lU(a.timing);a.policy.oa&&a.ra.ma("sabrcrq",{rn:d.cn(),probe:b.Qu()});return d};
KV=function(a,b){if(b.Ia()||a.Ia())a.policy.Rn||(a.policy.K?JV(a.ra):a.ra.Le());else{if(a.policy.C&&b.isComplete()&&b instanceof kU){var c=a.ra,d=c.ma,e,f,h=Object.assign(b.Kd.Jr(),{rst:b.state,strm:b.xhr.Vv(),d:(e=b.Kd.Ca)==null?void 0:e.Fi(),cncl:b.xhr&&b.Dd.C?1:0,rqb:b.o2,cwt:b.Q0,swt:(f=b.yea)==null?void 0:f.pV});e=Object.assign(KSa(b.info),h);d.call(c,"rqs",e)}if(b.isComplete()&&b.Qu()&&b instanceof kU)a.policy.qc?b.s_()?(b.dispose(),a.j.length===0?a.ra.Le():(a=a.j[0],a instanceof kU&&a.Zr()&&
a.cw(!1))):b.Vl()&&a.ra.handleError(b.Mh(),b.mq()):(b.dispose(),a.ra.Le());else{if(b.r_())b instanceof kU&&cQa(a.timing,b),XTa(a),YTa(a);else if(b.Vl())c=a.ea.Lx(),b instanceof kU&&JSa(b.info)&&c&&a.ra.bv(c),b instanceof FV?a.j.pop():(c=1,b.canRetry()&&qSa(a.ra)&&(ZTa(a,b),c=0),a.ra.handleError(b.Mh(),b.mq(),c));else{if(a.ra.isSuspended&&!b.isComplete())return;YTa(a)}b.Ia()||b instanceof FV||(b.isComplete()?c=gSa(b,a.policy,a.G):(c=fSa(b,a.policy,a.G),c===1&&(a.Ja=!0)),c!==0&&(b=new oV(1,b.info.resource),
b.hk=c===2,PTa(a,b)));a.ra.Le()}}};
YTa=function(a){for(;a.j.length&&a.j[0].dR(a.ag());){var b=a.j.shift();$Ta(a,b);a.policy.uf&&b instanceof kU&&b.dispose();if(a.policy.G){var c=a;if(!c.policy.Ka&&b.dR(c.ag())){var d=b.cn();if(c.Oa!==d){var e=b.pZ();b=e.sj;var f=e.Ov;e=e.Cq;!c.K||f<0||(c.Oa=d,d=oU(c.Z,f/1E3,b),f=c.ra.zc()||0,hQa(c.Z,b,d-f,e,c.K))}}}}a.j.length&&$Ta(a,a.j[0])};
$Ta=function(a,b){var c=new Set(b.vu(a.ag()));c=g.w(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof FV))){var f=a.C,h=f.manifest.Wb;d=BSa(f.C,h);f=BSa(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.rq(e,a.ag()),(!(a.policy.nD&&d.length>0&&(d[0].j.info.cg()?VU(a.audioTrack):VU(a.videoTrack))>3)||b.isComplete())&&b.Fn(e,a.ag()))){e=b.lm(e,a.ag());if(a.policy.B&&(f=d[0].j.info,(h=a.ra.Ff())&&f)){var l=b.RY();h.api.L("html5_ssap_set_format_info_on_video_data")&&
l===YU(h)&&(f.cg()?h.ea.getVideoData().D=f:h.ea.getVideoData().B=f);if(h=LV(h.timeline,l))if(h=h[0].getVideoData())f.cg()?h.D=f:h.B=f}e=g.w(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.C&&b instanceof FV&&a.ra.ma("omblss",{s:f.info.vc()});h=f.info.j.info.cg();var m=f.info.j;if(h){l=void 0;var n=a.C,p=(l=b.IQ(a.ag()))==null?void 0:l.token;n.N=!1;m!==n.K&&(n.K=m,n.gM(m,n.audioTrack,p))}else l=void 0,tSa(a.C,m,(l=b.IQ(a.ag()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof
FV&&(l.N=!1,b instanceof FV&&(h?WPa(a.timing):VPa(a.timing)));DRa(l,d,f)}}}};
ZTa=function(a,b){a.policy.Aa?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())};
aUa=function(a,b,c){for(var d=[],e=0;e<a.j.length;e++)b&&a.j[e]instanceof FV?d.push(a.j[e]):(a.policy.oa&&a.ra.ma("sabrcrq",{d:a.j[e].cn(),src:c}),a.j[e].dispose());a.j=d};
bUa=function(a,b){b&&b.type&&(a.videoData.sabrContextUpdates.set(b.type,b),b.sendByDefault&&a.Sl.add(b.type))};
cUa=function(a,b,c){b.PO(c.Vt,c.version)?a.videoData.MB=c.version||"":a.ra.ma("ssap",{v:c.version,tlnu:1})};
XTa=function(a){a.Sl.clear();if(a.videoData.sabrContextUpdates.size>0)for(var b=g.w(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.Sl.add(c)}if(a.policy.Aa&&a.j.length)for(b=g.w(a.j),c=b.next();!c.done;c=b.next())(c=c.value.KQ())&&c.type&&c.sendByDefault&&a.Sl.add(c.type)};
dUa=function(a){a.policy.Bc&&(a.qa=void 0,a.er=0)};
eUa=function(a,b){if(b.Vl()||b.Ia()){var c=a.ra,d=c.ma,e=b.state;a=a.ag();var f,h;if((b=(f=b.fg)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.vu();for(var l=0;l<a.length;l++){var m=void 0;f+=((m=b.Zc.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.vI.push(a),lU(a.timing),a.policy.Zi&&b.B1&&a.Rq(b.B1)};
HV=function(a,b){return a.policy.ow?!a.ra.Vp&&IT(b)&&(b.kp()!==IT(b)||a.ra.isSuspended):!1};
fUa=function(a){var b="";a=g.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.Ht){var d=c.Ht;b+=".vid."+d.z4+(".pst."+d.N1)+(".ps."+d.O1)+(".lst."+d.eaa)+(".ld."+d.P_)+(".ls."+d.Q_)}c.qS&&(b+=".nonv."+c.qS.EL)}return b};
gUa=function(a,b,c,d,e){this.ra=a;this.policy=b;this.schedule=c;this.rA=d;this.W=e;this.oa=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
hUa=function(a,b,c,d,e,f){return b.Pj&&b.Wf&&c===3?new gUa(a,b,d,e,f):null};
iUa=function(a,b){if(a.policy.uE){var c=b.info.qb,d=FP(a.schedule);b=b.index.fk;c=Math.max(1,d/c);a.Z=Math.round(Math.max(((c-1)*b+a.policy.Pc)/c,b-a.policy.wl)*1E3)}};
lUa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Vw,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.zE&&(h=!0);a.K=c}c=d>=a.policy.wl&&!a.C;if(!f&&!c&&jUa(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.hu)()/1E3-(a.rA.Qg()||0)-a.N.j-a.policy.Pc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){MV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.lk;d<c&&(c=d)}else a.C&&(d=c+a.policy.Pc-a.oa+a.policy.BE,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.lk))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&jUa(a,b))return kUa(a,b),NaN;if(a.j<=a.B.startTime)return MV(a,NaN,"y",b),a.clear(),NaN;if(!a.W(a.j,!1))return!kUa(a,b)&&h&&(MV(a,NaN,"t",b),a.clear()),NaN;h=a.j;MV(a,h,"s",b);a.clear();return h};
kUa=function(a,b){return a.W(a.j,!0)?!1:(MV(a,NaN,"ns",b),a.clear(),!0)};
jUa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.lk:a.policy.wE)};
MV=function(a,b,c,d){var e=a.D.mq();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.hu)().toFixed(0);e.ssr_f=(a.N.j*1E3).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(a.rA.Qg()*1E3||0).toFixed(0);e.ssr_v=(d*1E3).toFixed(0);b=a.B.j.index;b.Mo(a.B.Ma,!0)&&(e.ssr_ist=(b.getStartTime(a.B.Ma)*1E3).toFixed(0),e.ssr_id=(b.getDuration(a.B.Ma)*1E3).toFixed(0));a.ra.ma("ssr",e)};
mUa=function(a){a=a===void 0?!1:a;var b={};if(window.performance){var c=window.performance.memory;c&&(b.jsTotal=c.totalJSHeapSize,b.jsUsed=c.usedJSHeapSize,a?(b.jsLimit=c.jsHeapSizeLimit,b.msTotal=c.totalMediaSourceSize,b.msLimit=c.mediaSourceSizeLimit):b.msTotal=c.mediaSourceSizeLimit,b.msUsed=c.usedMediaSourceMemorySize)}var d;if((d=window.h5vcc)==null?0:d.cVal)b.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),b.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),a&&(b.cbJs=window.h5vcc.cVal.getValue("Memory.JS"));
return b};
g.OV=function(a,b,c,d,e,f,h,l,m,n){l=l===void 0?!1:l;g.O.call(this);var p=this;this.ea=a;this.schedule=b;this.policy=c;this.manifest=d;this.qa=m;this.jd=n;this.timing=new UPa(this.jd);this.W=new bOa(this.schedule,this.policy);this.Pa=null;this.Kb=new g.Ep(this.Le,0,this);this.LG=new g.Ep(this.Le,1E3,this);this.Bc=new g.Ep(this.Le,void 0,this);this.ib=new g.Ep(this.Le,1E4,this);this.Tb=new g.Ep(this.Kda,250,this);this.G=this.currentTime=NaN;this.Ja=this.Ka=this.Fa=this.Vp=0;this.Bs=this.eK=this.isSuspended=
!1;this.Ta="";this.YE=new vP(5);this.Pc={};this.timestampOffset=NaN;this.Bb=!1;this.kb=0;this.N=null;this.Aa=NaN;this.rb=this.Oa=!1;this.logger=new g.QT("dash");this.Iq=0;this.Va=!1;this.Ya=0;this.qc=Infinity;this.Ca=0;this.Gb=null;this.Jx=function(){return p.ea.Jx()};
this.Sc={getAudioTrack:function(){return p.audioTrack},
Woa:function(){return p.videoTrack},
getManifest:function(){return p.manifest},
Soa:function(){return p.Z},
Le:function(){p.Le()},
nC:function(){p.Vp=0;p.nC()},
Upa:function(q){return NV(p,p.videoTrack,p.Pa.B,q)}};
a=m&&m.vu();m&&(QPa(m,this.manifest,this.policy),this.Aa=Date.now());this.j=new pQa(this,this.W,c,this.manifest,e,a);c=uQa(this.j,f,h&&h.id);this.audioTrack=new OU(this,this.policy,c.audio,this.timing);this.videoTrack=new OU(this,this.policy,c.video,this.timing);this.videoTrack.D.Ca=this.audioTrack.CQ();this.Ua={updateend:this.p6,error:this.Saa};g.P(this,this.Kb);g.P(this,this.LG);g.P(this,this.Bc);g.P(this,this.ib);c=this.policy.CE&&this.policy.Bk?!sxa(this.videoTrack.j.info):!1;this.Qb=JQa({xj:this.policy.N.xj||
c,Bk:this.policy.Bk&&!c,Gt:this.policy.Gt});this.K=hUa(this,this.policy,this.Qb,this.schedule,this.YE,function(q,r){return nUa(p,q,r)});
this.C=new eQa(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.Mg=new AT(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.Pw?this.ea.getVideoData().Ii:null;this.D=new gV(this,this.policy,this.videoTrack,this.audioTrack,this.Pc,this.C,this.timing,this.W,this.schedule,this.manifest,this.j,this.K,c,l);g.P(this,this.D);this.B=new mV(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,wR(this.ea.getVideoData()),h==null?void 0:h.id);g.P(this,
this.B);ySa(this.B,f);this.Z=new NTa(this.ea,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.B,this.timing,this.C);g.P(this,this.Z);this.oa=this.ea.bd.fv.Ax;this.policy.K||oUa(this);this.logger.debug("Created")};
oUa=function(a){var b,c;if((b=a.oa)==null?0:(c=b.AB)==null?0:c.itagDenylist){var d;a.hM((d=a.oa)==null?void 0:d.AB.itagDenylist)}var e;if((e=a.oa)==null?0:e.playbackStartPolicy){var f,h;bSa(a.policy,(f=a.oa)==null?void 0:f.playbackStartPolicy,3,(h=a.oa)==null?void 0:h.cn())}if(a.policy.Yi){b=a.ag();var l;(c=b?(l=a.oa)==null?void 0:l.w0.get(b):void 0)&&a.Z.Qq(c)}if(!a.manifest.W){var m;l=(m=a.oa)==null?void 0:m.K_;(l==null?0:l.dL)&&(l==null?0:l.eL)&&a.manifest.Wb&&zO(a.manifest,l.dL,l.eL)}var n;((n=
a.oa)==null?0:n.gQ)&&(m=a.oa.gQ.get(a.ag()||""))&&a.manifest&&m.formatId&&(a=a.manifest.C.get(jO(m.formatId)))&&(a.info.debugInfo=m.debugInfo)};
pUa=function(a,b){if(a.policy.B&&!a.policy.vB)return!1;var c=AG(b.j.info,a.manifest.Wb),d,e=((d=a.qa)==null?void 0:d.rq(c))||[];if(e.length===0)return a.ma("ombmsi",{}),!1;e=new MN(e);if(d=!a.policy.W||isFinite(a.getCurrentTime())||a.ea.Lx()){a:{d=a.getCurrentTime();e=g.w(e.gb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.type===3&&d>=f.Me&&d<=f.Rf){d=!0;break a}d=!1}d=!d}if(d)return a.ma("ostmf",{ct:a.getCurrentTime(),a:b.j.info.cg()}),!1;(a=a.qa)!=null&&(a.Zc.get(c).HE=!0);return!0};
qUa=function(a){if(!a.manifest.Wb)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&PV(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&PV(a.ea)&&(b.Wd||b.isPremiere))return a.ma("ombpa",{}),!1;var c,d;if(a.policy.Mz&&!!((c=a.oa)==null?0:(d=c.K_)==null?0:d.Lda)!==a.manifest.Wd)return a.ma("ombplmm",{}),!1;c=b.Bb||b.liveUtcStartSeconds||b.Nd;if(a.manifest.Wd&&c)return a.ma("ombplst",{}),!1;if(a.manifest.W)return a.ma("ombab",{}),!1;c=Date.now();if(AO(a.manifest)&&
!isNaN(a.Aa)&&c-a.Aa>a.policy.tD*1E3)return a.ma("ombttl",{}),!1;if(!(a=a.manifest.hf&&a.manifest.D||!a.policy.DE&&a.manifest.isPremiere||zR(b)!==0)&&(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};
rUa=function(a,b){var c=b.j,d=a.manifest.Wb;if(qUa(a))if(a.qa&&a.qa.Zc.has(AG(c.info,d))){if(d=AG(c.info,d),pUa(a,b)){var e=new MN(a.qa.rq(d)),f=function(h){try{if(h.Vl())a.handleError(h.Mh(),h.mq()),XU(b,h),ON(h.info)&&jV(a.D,b,c,!0),a.Le();else if(oSa(a.D,h)){var l;(l=a.C)==null||iQa(l,h.info,a.N);a.Le()}}catch(m){h=cG(m),a.handleError(h.errorCode,h.details,h.severity),a.Gj()}};
c.C=!0;NN(e)&&(CRa(b,new BT(a.policy,d,e,a.qa,f)),lU(a.timing))}}else a.ma("ombfmt",{})};
QV=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=kV,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Pi(b)||0;e.Ca!==b&&(e.Ja={},e.Ca=b,xU(e,e.j));b=!e.j.isLocked()&&e.W>-1&&(0,g.hu)()-e.W<e.policy.FI*1E3;var f=e.nextVideo&&AU(e,e.nextVideo.info)*3<xT(e.Aa);if(!b||f)wU(e),yU(e),e.qa=e.qa||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ca=-1);c(a,d,e.nextVideo);kV(a,a.audioTrack,a.j.B)};
RV=function(a,b){a.eK=b;a.policy.Fa||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Uw&&(a.LG.stop(),a.Kb.stop()))};
jQa=function(a,b,c,d){a.policy.G&&a.nz(!1,"rollback");LRa(a.videoTrack,d,c,b);LRa(a.audioTrack,d,c,b);a.policy.Ee||(yO(a.manifest,d,!0),yO(a.manifest,d,!1));a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)});a.policy.G&&JV(a)};
sUa=function(a){a.logger.debug("Rebuffering.");a.Bs=!0;if(a.policy.Ua&&a.Pa){var b,c,d,e;a.ma("lr_rb",{c:a.getCurrentTime(),s:a.isSeeking(),ab:HG(a.Pa.j.ke()),ala:(b=QU(a.audioTrack))==null?void 0:b.vc(),alr:(c=a.audioTrack.B)==null?void 0:c.vc(),vb:HG(a.Pa.B.ke()),vla:(d=QU(a.videoTrack))==null?void 0:d.vc(),vlr:(e=a.videoTrack.B)==null?void 0:e.vc()})}a.policy.dE&&a.ea.Ho()!==0&&a.ma("sps_rebuffer",{c:a.getCurrentTime()})};
tUa=function(a){a.policy.ib=!1;try{a.nC()}catch(b){g.px(b)}};
uUa=function(a){return a.policy.j&&a.policy.B&&(!RG()&&a.policy.Wn||a.policy.fE)};
xUa=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.Oa&&a.ma("loader",{setsmb:0}),a.Gj(),a.policy.Fa=!1);a.logger.debug("attaching media source");vUa(a,d);if(uUa(a))a.ma("ssap",{delaysb:1}),a.Pa=b;else{if(!EH(b)){var e=IT(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=IT(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.B&&a.ma("ssap",{initsb:1,v:e.info.id,vf:e.info.jb,a:f.info.id,af:f.info.jb});Axa(b,e.info,
f.info,a.policy.ge)}wUa(a,b,c,d);try{a.Le()}catch(h){g.px(h)}}};
wUa=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;PU(a.videoTrack,b.B||null,d);PU(a.audioTrack,b.j||null,d);a.Pa=b;a.Pa.D=!0;c||a.resume();g.Rx(b.j,a.Ua,a);g.Rx(b.B,a.Ua,a)};
vUa=function(a,b){b=b===void 0?!1:b;a.Pa&&a.Pa.j&&a.Pa.B&&(Sx(a.Pa.j,a.Ua,a),Sx(a.Pa.B,a.Ua,a));PU(a.audioTrack,null,b);PU(a.videoTrack,null,b);a.Pa&&(a.Pa.D=!1);a.Pa=null};
yUa=function(a){a.Pa&&a.Pa.Rg()&&(a.BA(),a.policy.iE&&a.handleError("fmt.unplayable",{unexpected:1},1))};
AUa=function(a,b){if(!a.Ia())if(a.policy.j){if(!zSa(a.B,b)){var c=a.B.B;ySa(a.B,b);var d=!1;d=b.isLocked()&&b.reason==="m"&&ASa(a.B,b.j);var e=a.policy.Zh&&b.reason==="l";c=c.j>b.j&&b.reason==="b";d||e||c?(a.ea.wp({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Sj||(a.B.j.B=!1)):(a.policy.Sj&&(a.B.j.B=!1),JV(a))}}else if(!vQa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;zUa(a,xQa(a.j,b));QV(a);d=b.isLocked()&&b.reason==="m"&&a.j.qa;e=a.policy.Zh&&b.reason==="l"&&$U(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.Va&&!RG();d||e||c||f?a.ea.wp({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):JV(a)}};
BUa=function(a,b,c){if((!a.Pa||UG(a.Pa)&&!a.policy.Qn)&&!a.Mg.isSeeking()&&(a.policy.j||$U(b)&&b.j.wg()&&a.j.oa)){var d=a.getCurrentTime()+fOa(a.W,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
KRa(b,d)}};
zUa=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+FG(b.video.info)}),CUa(a.ea,new rU(b.video,b.reason)));
if(a.j.Ta){var c=BQa(a.j,"a");a.ea.Py(new rU(c.audio,c.reason))}};
JV=function(a){g.Fp(a.Kb)};
DUa=function(a,b){var c=(0,g.hu)()-b,d=VU(a.audioTrack,!0)*1E3,e=VU(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.C&&(a.ma("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),dV(a.policy))){var f=xT(a.W);a.ma("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:gOa(a.W,a.Bs,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.Bs,ps:(a.policy.AD||"").toString(),rn:(a.policy.yD||"").toString()})}};
EUa=function(a){if(a.policy.B&&bV(a.videoTrack)&&bV(a.audioTrack))return"ssap";if(RRa(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.Kb&&VRa(a.videoTrack)&&VRa(a.audioTrack))return"updateEnd";if(ZU(a.audioTrack)||ZU(a.videoTrack)&&a.videoTrack.j.info.jb!=="f")return"";if(a.Mg.isSeeking()){var b=a.W;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.j){var e=b.policy.il;dV(b.policy)&&(e=gOa(b,!1,xT(b)));b=e;c=VU(d,!0)>=b&&VU(c,!0)>=b}else c.C.length||
d.C.length?(e=c.j.info.qb+d.j.info.qb,e=10*(1-xT(b)/e),b=Math.max(e,b.policy.il),c=VU(d,!0)>=b&&VU(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.j.length===1&&gRa(c.D).info.D<c.Ua)return"seek"}if(a.policy.G&&WRa(a.videoTrack,a.C)&&WRa(a.audioTrack,a.C))return"ssdai";c=!a.policy.bl||a.getCurrentTime()<10;a.policy.j||(c=c||a.videoTrack.j.info.video.j>360);d=dV(a.policy)&&a.policy.Sn;if(!a.Bs||!d&&c)return"";c=a.policy.bl;dV(a.policy)&&(c=gOa(a.W,a.Bs,xT(a.W)));c=NRa(a.videoTrack,
a.getCurrentTime(),c)||NRa(a.audioTrack,a.getCurrentTime(),c);return dV(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||hSa(a.D,a.videoTrack,a.audioTrack)||hSa(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""};
FUa=function(a){if(a.K){var b=a.K.Le(a.audioTrack,LG(a.Pa.B.ke()));b&&a.ea.seekTo(b,{Vx:!0,Xc:"pollSubsegmentReadahead",Wp:!0})}};
LUa=function(a,b,c){if(a.policy.Kb&&VRa(b))return!1;if(c.xR())return!0;if(!c.KJ())return!1;var d=IT(b);if(!d||d.info.type===6)return!1;var e=a.policy.XG;if(e&&!d.info.Oe){var f=d.info.Me-a.getCurrentTime();if(d.info.D<f*e)return!1}var h;if(a.policy.Iw||((h=a.C)==null?0:mQa(h,b,d.info.Ma)))a.Ja=0;else return a.Mg.isSeeking()&&JV(a),a.Ja=a.Ja||(0,g.hu)(),!1;if(!NV(a,b,c,d.info))return!1;if(a.manifest.B&&d.info.Ob===0){if(e=GUa(b,c,d))f=QU(b),a.ma("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,
ty:d.info.type,seg:d.info.Ma});f=g.xG(d.info.j.info);a.policy.le&&f&&!e&&jFa(d)}e=a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&d.info.Ob!==0||f&&!e)&&HUa(a,b,c,d))return!0;if(e)return!1;e=iV(a,b);e=a.getCurrentTime()+e;if(d.info.Me>e)return a.policy.j&&IUa(a,b),a.policy.Jw&&(qRa(b.D,e),JV(a)),!1;JUa(a,b);var l;a.policy.mf&&c===((l=a.Pa)==null?void 0:l.j)&&a.Va&&(c.UK()===0?(a.Va=!1,a.policy.mf=!1):a.Ya=c.UK());if(!KUa(a,c,d,b))return!1;a.policy.Kb&&d.info.Ri()?
(a.ea.U().Vb()&&a.ma("eosl",{ls:d.info.vc()}),d.isLocked=!0):(b.kt(d),AQa(a.j,d.info),a.logger.debug(function(){return"Appended "+d.info.vc()+", buffered: "+HG(c.ke())}));
return!0};
IUa=function(a,b){b===a.videoTrack?a.Ka=a.Ka||(0,g.hu)():a.Fa=a.Fa||(0,g.hu)()};
JUa=function(a,b){b===a.videoTrack?a.Ka=0:a.Fa=0};
KUa=function(a,b,c,d){var e=a.policy.Ua?(0,g.hu)():0,f=c.G&&c.info.j.j||void 0,h=c.j;c.G&&(h=MUa(a,c,h)||h);var l=h.Gk();h=a.policy.Ua?(0,g.hu)():0;f=NUa(a,b,l,c.info,f);d.W?(b=d.W,d=c.info,e=h-e,h=(0,g.hu)()-h,!b.B||HEa(b.B,d)&&b.B.Ma===d.Ma||b.flush(),b.D+=e,b.C+=h,e=1,!b.B&&d.Ob&&(e=2),CU(b,e,f),h=Math.ceil(d.Ob/1024),e===2&&b.j.add(h),b.j.add(Math.ceil((d.Ob+d.B)/1024)-h),b.B=d):a.policy.Ua&&(!c.info.Ob||c.info.Oe||c.info.Me<10)&&(e=b.pc({as:c.info.vc(),pdur:Math.round(h-e),adur:Math.round((0,g.hu)()-
h)}),e.omt=(a.getCurrentTime()+a.zc()).toFixed(3),e.to=a.zc(),a.ma("sba",e));a.Ca=0;if(f===0)return a.Oa&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Oa=!1,a.rb=!1),a.kb=0,!0;if(f===2||f===5)return OUa(a,"checked",f,c.info),!1;if(f===1){if(!a.Oa)return a.logger.debug("QuotaExceeded, retrying."),a.Oa=!0,!1;if(!a.rb)return a.rb=!0,a.ea.seekTo(a.getCurrentTime(),{Xc:"quotaExceeded",Wp:!0}),!1;c.info.dg()?(e=a.policy,e.Ta=Math.floor(e.Ta*.8),e.Ca=Math.floor(e.Ca*.8)):(e=a.policy,
e.rb=Math.floor(e.rb*.8),e.Ca=Math.floor(e.Ca*.8));a.policy.j?tU(a.B.j,c.info.j,!1):zU(a.j,c.info.j)}a.ea.wp({reattachOnAppend:f});return!1};
MUa=function(a,b,c){var d;if(d=a.policy.Sw&&a.Pa&&!a.Pa.Z&&!a.ea.jK())b=b.info.j.info,d=b.Pe()&&sG(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Pa.Z=!0,gG('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=dRa(c),a.policy.C&&a.ma("sp4k",{s:!!c}),c};
OUa=function(a,b,c,d){var e="fmt.unplayable",f=1;c===5||c===3?(e="fmt.unparseable",a.policy.j?!d.j.info.video||uU(a.B.j).size>0||tU(a.B.j,d.j,!1):!d.j.info.video||uU(a.j.G).size>0||zU(a.j,d.j)):c===2&&(a.kb<15?(a.kb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=KN(d);var h;d.mrs=(h=a.Pa)==null?void 0:FH(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
yRa=function(a,b,c,d,e){var f=a.manifest;var h=a.policy.Ka,l=!1,m=-1,n;for(n in f.j){var p=DG(f.j[n].info.mimeType)||f.j[n].info.dg();if(d===p)if(p=f.j[n].index,p.Mo(b.Ma)){l=p;var q=b,r=l.Bo(q.Ma);r&&r.startTime!==q.startTime?(l.segments=[],l.mJ(q),l=!0):l=!1;l?m=b.Ma:!b.pending&&h&&(q=p.getDuration(b.Ma),q!==b.duration&&(l={},f.publish("clienttemp","mfldurUpdate",(l[d?"v":"a"]=m,l.od=q,l.nd=b.duration,l),!1),p.mJ(b),l=!0))}else p.mJ(b),l=!0}m>=0&&(h={},f.publish("clienttemp","resetMflIndex",(h[d?
"v":"a"]=m,h),!1));f=l;xOa(a.Mg,b,d,f);a.C.kM(b,c,d,e);b.Ma===a.manifest.hf&&f&&vO(a.manifest)&&b.startTime>vO(a.manifest)&&(a.manifest.Ka=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.Mg.isSeeking()&&a.Mg.j<a.manifest.Vc()&&a.Mg.seek(a.manifest.Vc(),{}))};
NV=function(a,b,c,d){var e=QU(b);!e||e.Oe||IN(e,d)||(c.abort(),(b=b.W)!=null&&(CU(b,4),b.flush()));if(!c.NA()||RG())try{a.policy.oJ?c.UH(d.j.info.containerType,d.j.info.jb)&&(a.ma("ssap",{chgtp:d.j.info.containerType,cf:d.j.info.jb,oldtp:c.NA(),oldcf:c.pQ()}),a.policy.VK?c.fV(d.j.info.containerType,d.j.info.jb,d.j.info.mimeType):c.JN(d.j.info.containerType,d.j.info.mimeType,d.j.info.jb)):c.JN(d.j.info.containerType,d.j.info.mimeType)}catch(f){return c=f,g.qx(c),a.ma("ctexp",{name:c.name,msg:c.message}),
!1}else d.j.info.containerType!==c.NA()&&a.ma("ctu",{ct:RG(),prev_c:c.NA(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Lp&&b&&(d=0+b.duration,b=-b.j,0===c.GF()&&d===c.uK()||c.iU(0,d),b!==c.zc()&&(c.Kn(b),MU&&ARa(a.audioTrack.CQ(),c.PQ())));return!0};
HUa=function(a,b,c,d){d.info.j.wg();var e=d.info.j.j;if(!e||!c.KJ()||c.Fx()===e)return!1;var f=e,h=c.EK();if(a.policy.Ow&&h&&c.isView()&&g.xG(d.info.j.info)){var l=new DataView(e.buffer,e.byteOffset,e.byteLength);(h=pEa(l,h))?f=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):a.ma("fenc",{})}a.policy.Sw&&(h=MUa(a,d,new jB([f])))&&(f=h.Gk());var m;(h=d.info.j.Kx(0,d.info.clipId))&&(m=h.gb[0]);a.policy.Ua&&!b.W&&a.ma("sbi",c.pc({as:d.info.vc()}));if(d===a.Gb){if(a.Ca+=1,a.ea.getVideoData().L("html5_shorts_gapless_restart_on_init_seg_retries")&&
a.Ca>5)return a.Ca=0,a.ea.wp({initSegStuck:1,as:d.info.vc()}),!0}else a.Ca=0,a.Gb=d;a.policy.YA&&(c.abort(),(h=b.W)!=null&&(CU(h,4),h.flush()));e=NUa(a,c,f,m,e);var n;(n=b.W)==null||LQa(n,e,m);if(e!==0)return PUa(a,e,d),!0;d.info.dg()?ZPa(a.timing):$Pa(a.timing);a.logger.debug(function(){return"Appended init for "+d.info.j.info.id});
return c.Jk()};
GUa=function(a,b,c){if(b.Fx()==null){a=QU(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.G,c=c.info.G,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.ic(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Fx();c.info.j.tB()&&dO(c);c=c.info.j.j;return a!==c&&!g.ic(a,c)};
NUa=function(a,b,c,d,e){var f=0;if(a.policy.B&&d&&d.clipId&&a.ub){var h;f=(((h=a.ub)==null?void 0:yT(h,d.clipId))||0)/1E3}try{a.policy.B&&b.zc()!==f&&b.Kn(f);var l,m=b===((l=a.Pa)==null?void 0:l.j)?a.audioTrack:a.videoTrack;if(a.policy.Kb&&(d==null?0:d.Ri())){if((d==null?void 0:d.K)>1)return 6;m.Ja=new g.Ep(function(){var p=IT(m);a.Ia()||p==null||!p.isLocked?a.ea.U().Vb()&&a.ma("eosl",{delayA:p==null?void 0:p.info.vc()}):QUa(m)?(a.ea.U().Vb()&&a.ma("eosl",{dunlock:p==null?void 0:p.info.vc()}),RUa(a,
m===a.audioTrack)):(a.ma("nue",{ls:p.info.vc()}),p.info.K+=1,a.Pa&&a.nC())},1E4,a);
a.ea.U().Vb()&&a.ma("eosl",{delayS:d.vc()});m.Ja.start()}if(a.policy.Sp&&(d==null?0:d.Ri())){var n;if((n=m.Ca)==null?0:n.isActive())g.Gp(m.Ca),a.ma("sbac",{as:d.vc()});m.Ca=new g.Ep(function(){a.ma("sbum5s",{as:d.vc()})},5E3,a);
m.Ca.start()}a.policy.hx&&(d==null?void 0:d.j)instanceof QN&&d.Ri()&&a.ma("poseos",{itag:d.j.info.itag,seg:d.Ma,lseg:d.j.index.ud(),es:d.j.index.C});b.appendBuffer(c,d,e)}catch(p){if(p instanceof DOMException){if(p.code===11)return 2;if(p.code===12)return 5;if(p.code===22||p.message.indexOf("Not enough storage")===0)return b=Object.assign({name:"QuotaExceededError",buffered:HG(b.ke()).replace(/,/g,"_"),vheap:TU(a.videoTrack),aheap:TU(a.audioTrack),message:g.qc(p.message,3),track:a.Pa?b===a.Pa.B?"v":
"a":"u"},mUa(a.policy.EE)),a.handleError("player.exception",b),1;g.px(p)}return 4}return a.Pa.Rg()?3:0};
HT=function(a,b,c){a.ea.seekTo(b,c)};
KU=function(a,b){a.ea.jM(b)};
iV=function(a,b){if(a.Oa&&!a.Bs)return 3;if(a.isSuspended)return 1;var c;if((c=a.Pa)==null?0:c.Pa&&c.Pa.streaming===!1)return 4;c=(b.j.info.audio?a.policy.rb:a.policy.Ta)/(b.qb*a.policy.Im);if(a.policy.yr>0&&a.Pa&&UG(a.Pa)&&(b=b.j.info.video?a.Pa.B:a.Pa.j)&&!b.Jk()){b=b.ke();var d=IG(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.yr,a.policy.HH)))}a.policy.Ca>0&&(c=Math.min(c,a.policy.Ca));return c};
TUa=function(a){a.Ta&&!a.isSuspended&&GP(a.schedule)&&(SUa(a,a.Ta),a.Ta="")};
SUa=function(a,b){vT(b,"cms",function(c){a.policy.C&&a.ma("pathprobe",c)},function(c){a.ea.handleError(c)})};
UUa=function(a,b){if(a.Pa&&a.Pa.D&&!a.Pa.Rg()&&(b.ix=VU(a.videoTrack),b.B=VU(a.audioTrack),a.policy.C)){var c=TU(a.videoTrack),d=TU(a.audioTrack),e=HG(a.Pa.B.ke(),"_",5),f=HG(a.Pa.j.ke(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=wT(a.W);var h;(h=a.audioTrack.W)==null||h.flush();var l;(l=a.videoTrack.W)==null||l.flush();a.logger.debug(function(){return $F(b.j)})};
VUa=function(a,b){a.N=b;a.C&&(a.C.K=b);a.N.sU(a.videoTrack.j.info.Pe());a.D.B=a.N;a.policy.G&&(a.Z.K=a.N)};
WUa=function(a,b){if(a.Pa&&a.Pa.B){if(a.policy.pE){var c=YRa(a.audioTrack);if(c&&c.cg()){var d=a.ea;d.NE&&(d.NE.j=c,d.Sb(d.NE.videoId).UB(d.NE))}}a.policy.rE&&(c=YRa(a.videoTrack))&&c.dg()&&(d=a.ea,d.OI&&(d.OI.j=c,d.Sb(d.OI.videoId).cC(d.OI)));b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();a.Mg.isSeeking()&&a.Pa&&!a.Pa.Rg()&&(c=a.getCurrentTime()<=b&&b<a.getCurrentTime()+10,d=JG(a.Pa.B.ke(),a.getCurrentTime()+hV),c&&d&&(a.Mg.G=!1));a.Mg.isSeeking()||a.policy.Ja||
(a.currentTime=b);g.Fp(a.LG)}};
XUa=function(a,b){var c=IRa(a.videoTrack).find(function(d){return d.startTime>=b&&nUa(a,d.startTime,!1)});
return c&&c.startTime<b+c.duration*1.5?c.startTime+.1:0};
nUa=function(a,b,c){if(!(a.videoTrack.j.wg()&&a.audioTrack.j.wg()&&a.Pa&&a.Pa.B&&a.Pa.j))return!1;if(c&&a.manifest.isManifestless&&(a.videoTrack.K===-1||a.audioTrack.K===-1))return!0;var d=ET(a.videoTrack,b,c);if(isNaN(d))return!1;a=ET(a.audioTrack,a.policy.Wf?b:d,c);return isNaN(a)?!1:!0};
lV=function(a){a.Gj();a.Mg.isSeeking()&&a.logger.debug("seeking cancelled by seek-to-head");a.K&&iUa(a.K,a.videoTrack.j);JV(a);return sOa(a.Mg)};
kV=function(a,b,c,d){(d===void 0?0:d)&&!b.Ka&&(RG()||(d=b.Pb,uUa(a)||!d||d.qy(c.info)||(a.ma("ssap",{rstonsrvfmt:c.info.mimeType}),SV(a.ea))),b.Ka=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
QUa=function(a){var b,c=(b=IT(a))==null?void 0:b.info;return!c||TRa(a,Math.min(c.Me+hV,c.Rf))};
YUa=function(a,b){var c;if((c=IT(b))!=null&&c.isLocked&&QUa(b)){if(a.ea.U().Vb()){var d;a.ma("eosl",{munlock:(d=IT(b))==null?void 0:d.info.vc()})}RUa(a,b===a.audioTrack)}};
RUa=function(a,b){if(a.policy.Kb&&a.Pa){var c,d,e=b?(c=a.Pa)==null?void 0:c.j:(d=a.Pa)==null?void 0:d.B;c=b?a.audioTrack:a.videoTrack;b=IT(c);if(b==null?0:b.isLocked){a.ea.U().Vb()&&a.ma("eosl",{unlock:b.info.vc()});var f;(f=c.Ja)==null||f.stop();b.isLocked=!1;c.kt(b);AQa(a.j,b.info);e=e==null?void 0:e.RF();(e==null?void 0:e.vc())!==b.info.vc()&&a.ma("oue",{bls:e==null?void 0:e.vc(),tls:b.info.vc()})}}};
ZUa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.policy.Ee&&xO(a.manifest),a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.C.Z=a.timestampOffset,a.ea.eT(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Kn(a.timestampOffset),a.audioTrack.Kn(a.timestampOffset))};
lSa=function(a){var b=a.Ml().filter(function(d){return d.namespace==="ad"});
b=g.w(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};
$Ua=function(a){var b=QU(a.videoTrack),c=QU(a.audioTrack);return b&&!XRa(a.videoTrack)?b.startTime:c&&!XRa(a.audioTrack)?c.startTime:NaN};
WTa=function(a){if(a.ea.getVideoData().isLivePlayback)return!1;var b=a.ea.Ge();if(!b)return!1;b=b.getDuration();return VTa(a,b)};
VTa=function(a,b){if(!a.Pa||!a.Pa.j||!a.Pa.B)return!1;var c=a.getCurrentTime(),d=a.Pa.j.ke();a=a.Pa.B.ke();d=d?KG(d,c):c;c=a?KG(a,c):c;c=Math.min(d,c);return isNaN(c)?!1:c>=b-.01};
PUa=function(a,b,c){a.policy.lE&&vR(a.ea.getVideoData())?(a.ea.vG()||OUa(a,"sepInit",b,c.info),aVa(a.ea,"sie")):OUa(a,"sepInit",b,c.info)};
qSa=function(a){return a.ea.Ho()<a.qc};
g.TV=function(a){this.Yc=a};
UV=function(){g.Qx.apply(this,arguments)};
VV=function(a,b,c,d){UV.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Ep(this.G,0,this);g.P(this,this.D);this.B=new g.Ep(function(){e.Ia()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.P(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
bVa=function(a){if(!(a.length<=28))for(var b=(0,g.cU)([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=rB(b);a=rc(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++}};
WV=function(a,b,c){UV.call(this);var d=this;this.C=a;this.j=[];this.Sc={moa:function(){return d.j.length}};
this.D=c.bb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.Ep(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();cVa(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.hu)(),d.B.start(Math.max(0,e)))}},0);
g.P(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
cVa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.w(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)};
dVa=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a};
eVa=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
fVa=function(a){var b=pB(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=TM(b.slice(d+2));if(b==null)return null;a=new eVa(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.pxa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new dVa({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.w(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};
gVa=function(a,b,c){c=c===void 0?"":c;g.O.call(this);this.message=a;this.requestNumber=b;this.Ze=c;this.onError=this.onSuccess=null;this.j=new g.Ch(5E3,2E4,.2)};
hVa=function(a,b,c){a.onSuccess=b;a.onError=c};
jVa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ia())if(e.status!==0&&e.response)if(FA("drm_net_r",void 0,a.Ze),e=new Uint8Array(e.response),e=fVa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else iVa(a,e)},
onError:function(e){iVa(a,e)}};
c&&(b=Rfa(b,"access_token",c));g.ds(b,d)};
iVa=function(a,b){if(!a.Ia())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
lVa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ia()){FA("drm_net_r",void 0,a.Ze);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=rc(f.license)}catch(u){g.px(u)}if(h!==0||l){l=new eVa(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.w(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=kVa[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=rc(q.keyId)}catch(u){g.px(u)}t&&(n[g.pc(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=rc(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.Ia())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.GX="Bearer "+d);g.Nv(c,"player/get_drm_license",b,e)};
mVa=function(a,b,c,d){g.Qx.call(this);this.videoData=a;this.Y=b;this.W=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.qa=!1;this.C=null;this.Ca=[];this.D=[];this.Z=!1;this.j={};this.Aa=NaN;this.status="";this.K=NaN;this.B=a.G;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.qa&&(a.vvt=this.videoData.qa,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.Aa&&(a.authuser=this.Y.Aa);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Cb()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.oa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(kP(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.oa=!1);b="";g.NO(this.B)?MO(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
Paa(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=ij(this.baseUrl,"ek")||"";if(b=ij(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Fa=this.videoData.L("html5_use_drm_retry");this.Ca=c.Pe?[g.pc(c.initData,4)]:c.C;XV(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
qVa=function(a,b){XV(a,{createkeysession:1});a.status="gr";FA("drm_gk_s",void 0,a.videoData.Ua);a.url=nVa(a);try{a.C=b.createSession(a.W,function(c){XV(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&&(oVa(a.C,function(c,d){pVa(a,c,d)},function(c,d,e){if(!a.Ia()){d=void 0;
var f=1;g.NO(a.B)&&g.SP(a.Y)&&a.Y.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.Y.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Ia()||(XV(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.Oq(c)}),g.P(a,a.C))};
nVa=function(a){var b=a.baseUrl;gwa(b)||a.error("drm.net",2,"t.x");if(!ij(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
c.length>0&&(a.G.fexp=c.join())}c=g.w(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Rfa(b,d,a.G[d]);return b};
pVa=function(a,b,c){if(!a.Ia())if(b){XV(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":rVa(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.qa||(FA("drm_gk_f",void 0,a.videoData.Ua),a.qa=!0,a.publish("newsession",a));if(JO(a.B)&&(b=sVa(b),!b))return;g.NO(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=Pua(g.pc(b)));b=new gVa(b,++a.requestNumber,a.videoData.Ua);hVa(b,function(d){tVa(a,
d)},function(d,e,f){if(!a.Ia()){var h=0,l;
(l=d.j.B>=3)||(l=a.Fa&&(0,g.hu)()-a.Aa>36E4);l&&(h=1,e="drm.net.retryexhausted");XV(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(bG(h),d)&&uVa(a,d)}});
g.P(a,b);vVa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
rVa=function(a,b){XV(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.Y.j);c=g.gj("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:pB(b)}),responseType:"arraybuffer"};
g.hs(c,b,3,500).then(yL(function(d){d=d.xhr;if(!a.Ia()){d=new Uint8Array(d.response);var e=pB(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))}}),yL(function(d){a.Ia()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
YV=function(a){var b;if(b=a.oa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
vVa=function(a,b){a.status="km";FA("drm_net_s",void 0,a.videoData.Ua);if(a.videoData.useInnertubeDrmService()){var c=new g.Mv(a.Y.il),d={context:g.bv(c.config_||g.av())};d.drmSystem=wVa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.pc(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.Y.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.qa&&(d.context.user.credentialTransferTokens=[{token:a.videoData.qa,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.kb&&(d.context.user.kidsParent={oauthToken:a.videoData.kb});g.NO(a.B)&&(d.fairplayKeyId=g.pc(Qaa(a.fairplayKeyId)));g.oQ(a.Y,g.TR(a.videoData)).then(function(l){lVa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.oQ(a.Y,g.TR(a.videoData)).then(function(l){jVa(b,a.url,l);
a.status="rs"})};
tVa=function(a,b){if(!a.Ia())if(XV(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{FA("drm_kr_s",void 0,a.videoData.Ua);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.EE&&a.publish("newlicense",new dVa({})),a.videoData.EE=!0,a.Z=Vm(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.Y.L("html5_enable_vp9_fairplay")&&MO(a.B)?(c=g.pc(Qaa(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Kg(b.j,function(d){return{type:d,status:"unknown"}}));
KO(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=rc(pB(b.message)):LO(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=Pua(g.pc(b.message)));a.C&&(XV(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){FA("drm_kr_f",void 0,a.videoData.Ua);YV(a)||(XV(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.qc(d.message,3);
a.error("drm.keyerror",1,d)}));
a.N&&(a.Aa=(0,g.hu)());g.NO(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.Y.L("html5_enable_vp9_fairplay")&&MO(a.B)&&a.publish("qualitychange",xVa(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
uVa=function(a,b){var c=b.j.getValue();c=new g.Ep(function(){vVa(a,b)},c);
g.P(a,c);c.start();g.Dh(b.j);XV(a,{rtyrq:1})};
yVa=function(a,b){for(var c=[],d=g.w(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)};
zVa=function(a){var b={};b[a.status]=YV(a)?yVa(a,"."):a.D.join(".");return b};
AVa=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};
BVa=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1};
CVa=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
XV=function(a,b){var c=c===void 0?!1:c;$F(b);(c||a.Y.Vb())&&a.publish("ctmp","drmlog",b)};
DVa=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};
xVa=function(a){return g.Wb(a,"UHD2")||g.Wb(a,"UHD2HDR")?"highres":g.Wb(a,"UHD1")||g.Wb(a,"UHD1HDR")?"hd2160":g.Wb(a,"HD")||g.Wb(a,"HDHDR")?"hd1080":g.Wb(a,"HD720")||g.Wb(a,"HD720HDR")?"hd720":"large"};
sVa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=kg(new DOMParser,$f(b),"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&a.childNodes.length!==0?new Uint8Array((0,g.cU)(rba(a.childNodes[0].nodeValue)).buffer):null:null};
ZV=function(a,b,c,d,e,f){f=f===void 0?!1:f;g.O.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.W=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.jG(this);g.P(this,this.D);EVa(this)};
EVa=function(a){a.j?(a.D.T(a.j,"message",a.q6),a.D.T(a.j,"keystatuseschange",a.Oq),a.j.closed&&a.j.closed.then(yL(function(){a.onClosed()}),null)):a.B&&(gt(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.Z0),gt(a.D,a.B,["mskeyerror","webkitkeyerror"],a.Y0),gt(a.D,a.B,["mskeyadded","webkitkeyadded"],a.X0))};
oVa=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
FVa=function(a,b,c){g.px(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
$V=function(a,b,c,d){d=d===void 0?!1:d;g.O.call(this);this.element=a;this.j=b;this.ma=c;this.N=d;this.K={};this.D=null;this.G=new g.jG(this);this.C=this.B=null;g.P(this,this.G)};
HVa=function(a,b){b=GVa(b,a.j.Va);b=a.C.createSession("video/mp4",b);return new ZV(null,null,null,null,b,a.N)};
IVa=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 ZV(null,null,null,null,a)};
JVa=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};
GVa=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};
aW=function(){this.keys=[];this.values=[]};
MVa=function(a,b,c){g.Qx.call(this);this.element=a;this.videoData=b;this.Y=c;this.C=[];this.Ka=2;this.Oa=this.Fa=!1;this.heartbeatParams=null;this.Ca=this.W=!1;this.G=null;this.Ja=!1;this.j=this.videoData.G;this.drmSessionId=this.videoData.drmSessionId||g.Pqa();this.B=new Map;this.K=new aW;this.N=new aW;this.qa=new g.jG(this);this.Aa=this.Y.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||HO()||PO(c.experiments);this.Y.L("html5_enable_vp9_fairplay")&&MO(this.j)?
c=KVa:(c=this.videoData.ql,c=this.j.flavor==="fairplay"||c?ZQ:KVa);this.Z=c;this.D=new $V(this.element,this.j,this.eM.bind(this),this.Aa);g.P(this,this.D);IO(this.j)&&(this.oa=new $V(this.element,this.j,this.eM.bind(this),this.Aa),g.P(this,this.oa));g.P(this,this.qa);c=this.element;this.j.keySystemAccess?this.qa.T(c,"encrypted",this.uba):gt(this.qa,c,IO(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.Tba);LVa(this);a:switch(c=this.j,a=this.Y.experiments,b=this.B,c.flavor){case "fairplay":if(b=
/\sCobalt\/(\S+)\s/.exec(g.Cb())){a=[];b=g.w(b[1].split("."));for(var d=b.next();!d.done;d=b.next())d=parseInt(d.value,10),d>=0&&a.push(d);a=parseFloat(a.join("."))}else a=NaN;a>19.2999?(a=c.Uw,c=c.Tw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new VV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new WV(b,this,a);break a;default:c=null}if(this.G=c)g.P(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.zX,this),this.G.subscribe("log_qoe",this.Aj,this);PO(this.Y.experiments);this.Aj({cks:this.j.getInfo()})};
LVa=function(a){var b=a.D.UO();b?b.then(yL(function(){NVa(a)}),yL(function(c){if(!a.Ia()){g.px(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.Aj({mdkrdy:1}),a.W=!0);
a.oa&&(b=a.oa.UO())};
PVa=function(a,b,c){a.Oa=!0;c=new HU(b,c);a.Y.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));OVa(a,c)};
OVa=function(a,b){if(!a.Ia()){a.Aj({onInitData:1});if(a.Y.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.Aj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Fa&&!a.videoData.isLivePlayback)bW(a);else{if(!(a.Y.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Pe)){a.Fa=!0;c=b.cryptoPeriodIndex;var d=b.j;YQa(b);b.Pe||(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.zX(b)}};
NVa=function(a){if(!a.Ia())if(a.Y.L("html5_drm_set_server_cert")||MO(a.j)){var b=a.D.setServerCertificate();b?b.then(yL(function(c){a.Y.Vb()&&a.publish("ctmp","ssc",{success:c})}),yL(function(c){a.publish("ctmp","ssce",{n:c.name,
m:c.message})})).then(yL(function(){QVa(a)})):QVa(a)}else QVa(a)};
QVa=function(a){a.Ia()||(a.W=!0,a.Aj({onmdkrdy:1}),bW(a))};
RVa=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")};
bW=function(a){if((a.Oa||a.Y.L("html5_widevine_use_fake_pssh"))&&a.W&&!a.Ca){for(;a.C.length;){var b=a.C[0],c=RVa(a)?ZQa(b):g.pc(b.initData);if(MO(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||MO(a.j)){a.C.shift();continue}else a.B.delete(c);YQa(b);break}}a.C.length&&a.createSession(a.C[0])}};
SVa=function(a){var b;if(b=g.ws()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.tB(b),a.publish("ctmp","drm",{metrics:b}))};
TVa=function(){var a=Xna();return!(!a||a==="visible")};
VVa=function(a){var b=UVa();b&&document.addEventListener(b,a,!1)};
WVa=function(a){var b=UVa();b&&document.removeEventListener(b,a,!1)};
UVa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Ts+"VisibilityState"])return"";a=Ts+"visibilitychange"}return a};
XVa=function(a){g.O.call(this);var b=this;this.ea=a;this.EG=0;this.K=this.B=this.G=!1;this.D=0;this.Ba=this.ea.U();this.videoData=this.ea.getVideoData();this.C=g.UD(this.Ba.experiments,"html5_delayed_retry_count");this.j=new g.Ep(function(){SV(b.ea)},g.UD(this.Ba.experiments,"html5_delayed_retry_delay_ms"));
g.P(this,this.j)};
cWa=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;vR(a.ea.getVideoData())&&a.Ba.L("html5_gapless_fallback_on_qoe_restart")&&aVa(a.ea,"pe");if(a.Ba.L("html5_lifa_disable_ssdai_on_decode_error")&&a.videoData.Bg()&&(b==="fmt.decode"||b==="fmt.unplayable"))return YVa(a.ea,c),!0;if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Sk.G&&d&&d.itag==="22")return a.ea.Sk.G=!0,a.Jd("qoe.restart",{reason:"fmt.unplayable.22"}),cW(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=
a.videoData.h7)c.mimeType=f.type,a.ma("3pp",{url:f.url});c.ns="3pp";a.ea.Qf(b,1,"VIDEO_UNAVAILABLE",$F((new aG(b,c,1)).details));return!0}var h=a.EG+3E4<(0,g.hu)()||a.j.isActive();if(a.Ba.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Jd("auth",c),!0;h||dW(a.ea.ej())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:vG(e)||wG(e))&&(xJa(a.Ba.G,e.jb),c.acfallexp=e.jb,f=h=!0);!h&&a.C>
0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.ra;!h&&((d==null?0:uG(d))||(d==null?0:sG(d)))&&(xJa(a.Ba.G,d.jb),f=h=!0,c.cfallexp=d.jb);if(a.Ba.L("html5_ssap_ignore_decode_error_for_next_video")&&g.oR(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&dW(a.ea.ej())){if(c.cid!==c.ccid)return c.ignerr="1",a.Jd("ssap.transitionfailure",c),!0;a.Jd("ssap.transitionfailure",c);if(ZVa(a.ea,b))return!0}if(!h)return $Va(a,c);if(a.Ba.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.oR(a.videoData)&&
b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&dW(a.ea.ej())&&(a.Jd("ssap.transitionfailure",c),ZVa(a.ea,b)))return!0;h=!1;a.G?a.EG=(0,g.hu)():h=a.G=!0;var l=a.videoData;if(l.Ya){l=l.Ya.WY();var m=Date.now()/1E3+1800;l=l<m}else l=!1;c.e=b;c.bkg=TVa();l&&(c.staleprog="1");a.Jd("qoe.restart",c);if(l&&aWa(a))return bWa(a),!0;if(!(!g.us("philips")||b==="fmt.unplayable"&&e&&e.Aa||a.Ba.j.cplatform==="GAME_CONSOLE"))try{window.close()}catch(n){}d&&uG(d)&&!a.Ba.L("html5_allow_av1_retry_in_session")?
(f=a.Ba.G,f.oa=!0,f=f.B=!0):e?h||(b=(b=QU(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,e.policy.j?tU(e.B.j,b,!0):zU(e.j,b,!0)):a.videoData.Ya&&a.videoData.Ya.hU();a.j.isActive()||SV(a.ea,f);return!0};
$Va=function(a,b){if(a.videoData.Aa)return!1;a.Ba.Gb+=1;if(a.Ba.Gb<=10)return!1;b.exiled=""+a.Ba.Gb;a.Jd("qoe.start15s",b);a.ea.publish("playbackstalledatstart");return!0};
aWa=function(a){return a.B?!0:a.Ba.oa==="yt"?a.videoData.Aa?a.videoData.Tb<25:!a.videoData.Tb:!1};
bWa=function(a){if(!a.B){a.B=!0;var b=a.ea.getPlayerState();b=b.isPaused()||b.isSuspended();a.ea.tp();b&&!UR(a.videoData)||a.ea.publish("signatureexpired")}};
dWa=function(a,b){if((a=a.ea.Ge())&&(b.errorCode==="fmt.unplayable"||b.errorCode==="html5.invalidstate")){var c=a.Mh();b.details.merr=c?c.toString():"0";b.details.mmsg=a.Zf()}};
eWa=function(a){return a.errorCode==="net.badstatus"&&(a.severity===1||!!a.details.fmt_unav)};
fWa=function(a,b){return a.Ba.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};
hWa=function(a,b){if(!fWa(a,b)&&!a.B)return!1;b.details.sts="20005";if(aWa(a))return bG(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new aG("qoe.restart",b)),a.Jd(b.errorCode,b.details),bWa(a),!0;(0,g.hu)()-a.Ba.Vf>6048E5&&gWa(a,"signature");return!1};
gWa=function(a,b){try{window.location.reload(),a.Jd("qoe.restart",{detail:"pr."+b})}catch(c){}};
iWa=function(a,b){var c=a.Ba.G;c.N=!1;c.B=!0;a.Jd("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});SV(a.ea,!0)};
jWa=function(a,b,c,d,e,f){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e;this.videoId=f};
kWa=function(a,b,c){this.Y=a;this.nI=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.W=g.UD(this.Y.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
mWa=function(a,b,c){!a.Y.L("html5_tv_ignore_capable_constraint")&&g.hE(a.Y)&&(c=c.compose(lWa(a,b)));return c};
oWa=function(a,b){var c,d=nWa(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=sJa(a.Y.G,b.j.videoInfos,c),new eM(0,a,!0,"o")):new eM(0,0,!1,"o")};
nWa=function(a,b){return b&&g.hE(a.Y)?b.some(function(c){return c.video.fps>32}):!1};
pWa=function(a,b){var c=a.ea.BK();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.mV>0&&iM(b.videoData.oD)&&(a=c.mV,b.videoData.oD=new eM(0,a,!1,"u"));return b.videoData.oD};
lWa=function(a,b){if(g.hE(a.Y)&&wM(a.Y.G,xM.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.QP(a.Y)&&(e=window.screen&&window.screen.width?new g.Gg(window.screen.width,window.screen.height):null);e||(e=a.Y.Vn?a.Y.Vn.clone():a.nI.wi());(Bs||BU||d)&&e.scale(g.eQ());d=e;wR(b.videoData)||UR(b.videoData);b=b.j.videoInfos;if(b.length){e=g.UD(a.Y.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!==
"EQUIRECTANGULAR_THREED_TOP_BOTTOM"||OP||(e=.45);a=g.UD(a.Y.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 eM(0,c.itag==="93"?g.mG[lG(d.width,d.height)]:d.j,!1,"r")}else c=ZQ;c=c.j}c&&(c=Math.max(c,360));return new eM(0,c,!1,"r")};
qWa=function(a,b){var c;a:if((c=b.j)&&c.videoInfos.length){for(var d=g.w(c.videoInfos),e=d.next();!e.done;e=d.next()){e=e.value;var f=void 0;if((f=e.B)==null?0:f.smooth){c=e.video.j;break a}}c=c.videoInfos[0].video.j}else c=0;Fna()&&!g.hE(a.Y)&&sG(b.j.videoInfos[0])&&(c=Math.min(c,g.mG.large));d=g.UD(a.Y.experiments,"html5_chipset_soft_cap");d>0&&(c=Math.min(c,d));if(d=g.UD(a.Y.experiments,"html5_max_vertical_resolution")){a=4320;for(e=0;e<b.j.videoInfos.length;e++)f=b.j.videoInfos[e],f.video.height>
d&&(a=Math.min(a,f.video.j));if(a<4320){for(e=d=0;e<b.j.videoInfos.length;e++)f=b.j.videoInfos[e].video.j,f<a&&(d=Math.max(d,f));d&&(c=Math.min(d,c))}}return new eM(0,c,!1,"o")};
sWa=function(a,b){var c=4320;!a.Y.B||g.RP(a.Y)||a.Y.L("hls_for_vod")||a.Y.L("mweb_remove_360p_cap")||(c=g.mG.medium);var d=g.UD(a.Y.experiments,"html5_default_quality_cap");d&&b.j.j&&(a.Y.L("html5_always_apply_default_quality_cap")||!b.videoData.rj&&!b.videoData.qe)&&(c=Math.min(c,d));d=g.UD(a.Y.experiments,"html5_random_playback_cap");var e=/[a-h]$/;d&&e.test(b.videoData.clientPlaybackNonce)&&(c=Math.min(c,d));if(e=d=g.UD(a.Y.experiments,"html5_hfr_quality_cap"))a:{e=b.j;if(e.j){e=g.w(e.videoInfos);
for(var f=e.next();!f.done;f=e.next())if(f.value.video.fps>32){e=!0;break a}}e=!1}e&&(c=Math.min(c,d));(d=g.UD(a.Y.experiments,"html5_live_quality_cap"))&&b.videoData.isLivePlayback&&(c=Math.min(c,d));c=rWa(a,b,c);a=g.UD(a.Y.experiments,"html5_byterate_soft_cap");return new eM(0,c===4320?0:c,!1,"d",a)};
tWa=function(a){var b,c,d,e;return g.J(function(f){switch(f.j){case 1:return a.j.j&&typeof((b=navigator.mediaCapabilities)==null?void 0:b.decodingInfo)==="function"?g.G(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.w(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ea(0);break}e=d.value;return g.G(f,uxa(e),4);case 4:d=c.next(),f.Ea(3)}})};
vWa=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;g.Za()-a.N>6E4&&(a.B=0);a.B++;a.N=g.Za();if(a.B!==4)return!1;uWa(a,b.videoData.B);return!0};
xWa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.UD(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info"),h=g.UD(a.Y.experiments,"html5_df_check_interval_ms")||5E3;if(!((0,g.hu)()-a.D<h?0:f||e>0))return!1;h=((0,g.hu)()-a.D)/1E3;a.D=(0,g.hu)();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.Y.Vb()&&a.ea.ma("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;d=m>60?l/m:0;if((m-l)/h>a.W||!e||g.hE(a.Y))return!1;if(a.L("html5_df_downgrade_new_strategy")){if(d>e?a.j+=3:a.j>0?--a.j:a.j=0,a.j<7)return!1}else if(a.j=d>e?a.j+1:0,a.j!==3)return!1;uWa(a,b.videoData.B);a.ea.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},wWa()));return!0};
uWa=function(a,b){var c=b.jb,d=b.video.fps,e=b.video.j-1,f=a.C;b=""+c+(d>49?"p60":d>32?"p48":"");c=EO(c,d,f);e>0&&(c=Math.min(c,e));if(!eW.has(b)&&UL().includes(b)){var h=c;c=TL();+c[b]>0&&(h=Math.min(+c[b],h));c[b]!==h&&(c[b]=h,g.lt("yt-player-performance-cap",c,2592E3))}else if(eW.has(b)||f==null){a:{h=h===void 0?!0:h;d=UL().slice();if(h){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.lt("yt-player-performance-cap-active-set",d,2592E3)}DO.set(b,c)}else eW.add(b),
f==null||f.set(b,c);a.ea.Cp()};
fW=function(a,b){if(!b.j.j)return a.G?new eM(0,360,!1,"b"):ZQ;for(var c=!1,d=!1,e=g.w(b.j.videoInfos),f=e.next();!f.done;f=e.next())uG(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.UD(a.Y.experiments,"html5_performance_cap_floor");e=a.Y.B?240:e;b=g.w(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!uG(h))if(f=EO(h.jb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new eM(0,d,!1,"b")};
yWa=function(a,b){var c=a.ea.ej();return c.isInline()&&!b.sE?new eM(0,480,!1,"v"):c.isBackground()&&hw()/1E3>60&&!g.hE(a.Y)?new eM(0,360,!1,"v"):ZQ};
zWa=function(a,b,c){if(a.Y.experiments.bb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.hE(a.Y)&&(RL(-1)>=1080||b.osid))return ZQ;var d=g.UD(a.Y.experiments,"html5_autonav_quality_cap"),e=g.UD(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&hw()/1E3>e?(c&&(d=rWa(a,c,d)),new eM(0,d,!1,"e")):ZQ};
rWa=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};
AWa=function(a,b){a.L("html5_log_media_perf_info")&&(a.ea.ma("perfdb",wWa()),a.ea.ma("sessionperfdb",Object.fromEntries(DO.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("-")}))};
wWa=function(){return Kg(TL(),function(a){return""+a})};
gW=function(a){g.O.call(this);var b=this;this.provider=a;this.j=-1;this.G=!1;this.B=-1;this.playerState=new g.NH;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Ep(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.Sc={WB:function(){b.WB()}};
this.WB=function(){b.jsErrorCount++};
g.P(this,this.delay);window.addEventListener("error",this.WB);window.addEventListener("unhandledrejection",this.WB)};
BWa=function(a){a.j>=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.QK(a.provider),a.delay.start()))};
CWa=function(a){if(!(a.B<0)){var b=g.QK(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.U(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
DWa=function(a){var b;switch((b=a.Y.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"}};
EWa=function(a){return window.PressureObserver&&new window.PressureObserver(a)};
FWa=function(a){a=a===void 0?EWa:a;g.O.call(this);var b=this;this.B=a(function(d){b.j=d.at(-1)});
var c;this.C=(c=this.B)==null?void 0:c.observe("cpu",{sampleInterval:2E3})};
GWa=function(a){var b={},c=window.h5vcc;b.hwConcurrency=navigator.hardwareConcurrency;a.j&&(b.cpt=a.j.time,b.cps=a.j.state);if(c==null?0:c.cVal)b.cb2s=c.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),b.cb5s=c.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),b.cb30s=c.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return b};
HWa=function(a){var b;g.J(function(c){if(c.j==1)return g.G(c,a.C,2);(b=a.B)==null||b.disconnect();g.va(c)})};
JWa=function(a,b){b?IWa.test(a):(a=g.Jr(a),Object.keys(a).includes("cpn"))};
LWa=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(Mr(a)&&Nr()){if(h){var n;((n=KWa.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=KWa.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.zr("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.zr("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.zr("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Aa)&&!gQ(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Bm&&b.datasyncId&&(m["X-YouTube-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&IWa.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};
MWa=function(a,b,c,d,e,f,h,l){Nr()&&c.token&&(a=g.Kr(a,{ctt:c.token,cttype:c.VU,mdx_environment:c.mdxEnvironment}));d.L("net_pings_low_priority")&&(b||(b={}),b.priority="low");f||l&&d.L("nwl_skip_retry")?(b==null?b={}:JWa(a,d.L("html5_assert_cpn_with_regex")),h?Kv().sendAndWrite(a,b):Kv().sendThenWrite(a,b,l)):b?(JWa(a,d.L("html5_assert_cpn_with_regex")),d.L("net_pings_use_fetch")?una(a,b):g.ds(a,b)):g.Av(a,e)};
NWa=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(Math.random()*9E8)+1E8,f="",h=0;h<9;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
hW=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)};
PWa=function(){var a,b,c,d=(a=window.h5vcc)==null?void 0:(b=a.settings)==null?void 0:(c=b.getPersistentSettingAsString)==null?void 0:c.call(b,"cpu_usage_tracker_intervals");if(d!=null){var e;a=(e=JSON.parse(d))!=null?e:[];e=a.filter(function(n){return n.type==="total"}).map(function(n){return n.seconds});
b=g.w(OWa);for(c=b.next();!c.done;c=b.next())c=c.value,e.indexOf(c)===-1&&a.push({type:"total",seconds:c});var f,h;(f=window.h5vcc)==null||(h=f.settings)==null||h.set("cpu_usage_tracker_intervals_enabled",1);var l,m;(l=window.h5vcc)==null||(m=l.settings)==null||m.set("cpu_usage_tracker_intervals",JSON.stringify(a))}};
QWa=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.x(new Uint8Array(c))));a.close()}return b};
g.kW=function(a,b){g.O.call(this);var c=this;this.provider=a;this.logger=new g.QT("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.Ie="N";this.W=this.qC=this.pC=this.Bb=this.G=0;this.Tb=this.N=this.Ua="";this.Bc=this.Oa=NaN;this.qc=0;this.Pc=-1;this.jd=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.kb=this.isEmbargoed=this.Fa=this.isOffline=this.isBuffering=!1;this.Ad=[];this.qa=null;this.ib=this.C=this.Ya=this.Z=!1;this.B=-1;this.Ta=!1;this.kd=new g.Ep(this.k$,750,this);this.oa=this.adCpn=
this.Aa=this.contentCpn="";this.adFormat=void 0;this.ge=0;this.le=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Nd=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.rb=!1;this.Qb=NaN;this.Ja=0;this.Kb=!1;this.Ca=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Gb=!1;this.Sc={TM:function(e){c.TM(e)},
Aoa:function(){return c.D},
Wm:function(){return c.contentCpn},
ioa:function(){return c.Aa},
reportStats:function(){c.reportStats()},
eoa:function(){return c.j.cat},
JK:function(e){return c.j[e]},
Yoa:function(){return c.Ca}};
var d=g.UD(this.provider.Y.experiments,"html5_qoe_proto_mock_length");d&&!iW.length&&(iW=NWa(d));g.P(this,this.kd);try{navigator.getBattery().then(function(e){c.qa=e})}catch(e){}g.jW(this,0,"vps",["N"]);
a.Y.Vb()&&(this.Ja=(0,g.hu)(),this.Qb=g.Vr(function(){var e=(0,g.hu)(),f=e-c.Ja;f>500&&c.ma("vmlock",{diff:f.toFixed()});c.Ja=e},250));
a.ea.Ff()&&b&&(this.Ca=b-Math.round(g.QK(a)*1E3));this.provider.videoData.rj&&(this.remoteControlMode=RWa[this.provider.videoData.rj]||0);this.provider.videoData.Yj&&(b=ADa(this.provider.videoData.Yj),b==null?0:b.length)&&(this.remoteConnectedDevices=b);a.L("html5_log_cpu_info")&&(this.Va=new FWa,g.P(this,this.Va))};
g.jW=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
SWa=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.jW(a,b,"cmt",[d.toFixed(3)]);d=a.provider.rg(c);if(a.D&&d*1E3>a.D.y0+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.y0;a.Ka=b*1E3-e.vea-d-e.dea;e=(0,g.hu)()-d;b=a.Ka;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.K&&(h.cttAuthInfo={token:d.K,videoId:d.videoId});h.startTime=e-b;HA(f,h);g.GA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);FA("pbs",e,f)}else e=a.provider.ea.Lh(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.Oj()||g.qx(new g.At("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ma("gllat",{l:a.Ka.toFixed(),prev_ad:+c});delete a.D}};
lW=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.QK(a.provider);var c=a.provider.ea.ZF(),d=c.Ct-(a.Oa||0);d>0&&g.jW(a,b,"bwm",[d,(c.Yv-(a.Bc||0)).toFixed(3)]);isNaN(a.Oa)&&c.Ct&&a.isOffline&&a.TM(!1);a.Oa=c.Ct;a.Bc=c.Yv;isNaN(c.bandwidthEstimate)||g.jW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Y.Vb()&&Object.keys(c.j).length!==0&&a.ma("bwinfo",c.j);if(a.provider.Y.Vb()||a.provider.Y.L("html5_log_meminfo"))d=mUa(a.provider.Y.L("html5_log_additional_meminfo")),Object.values(d).some(function(f){return f!==
void 0})&&a.ma("meminfo",d);
if(a.provider.Y.L("html5_log_cpu_info")){var e;(d=(e=a.Va)==null?void 0:GWa(e))&&Object.values(d).some(function(f){return f!=null})&&a.ma("cpuinfo",d)}a.qa&&g.jW(a,b,"bat",[a.qa.level,
a.qa.charging?"1":"0"]);e=a.provider.ea.getVisibilityState();a.Pc!==e&&(g.jW(a,b,"vis",[e]),a.Pc=e);SWa(a,b);(e=TWa(a.provider))&&e!==a.qc&&(g.jW(a,b,"conn",[e]),a.qc=e);UWa(a,b,c)};
UWa=function(a,b,c){if(!isNaN(c.ix)){var d=c.ix;c.B<d&&(d=c.B);g.jW(a,b,"bh",[d.toFixed(3)])}};
VWa=function(a,b,c){g.oQ(a.provider.Y,g.TR(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.Y.L("kevlar_woffle")||a.provider.Y.L("qoe_nwl_downloads"))e=!0}else a.provider.Y.L("qoe_with_networkless")&&(e=!0);var f=a.provider.Y.L("qoe_send_and_write"),h=a.provider.Y;d=LWa(b,h,a.provider.Y.pageId,a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
MWa(b,d,{token:a.provider.videoData.K,VU:a.provider.videoData.On,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Fa)):e?(e=a.provider.Y.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Fa?Kv().sendAndWrite(b,h):e?g.ds(b,{method:"POST",postBody:c}):Kv().sendThenWrite(b,h)):(f=c,f=f===void 0?"":f,uqa(b,f)||g.Av(b,void 0,void 0,void 0,f))})};
WWa=function(a){for(var b=0,c=g.w(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Sl(a.j[d],function(e,f){return e+f.length},0));
b>96E3&&(new g.Ep(a.reportStats,0,a)).start()};
XWa=function(a){a.provider.videoData.Pc&&mW(a,"prefetch");a.provider.videoData.Tb&&a.ma("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Tb});a.provider.videoData.ib&&mW(a,"monitor");a.provider.videoData.isLivePlayback&&mW(a,"live");jP&&mW(a,"streaming");a.provider.videoData.rj&&a.ma("ctrl",{mode:a.provider.videoData.rj},!0);if(a.provider.videoData.Yj){var b=a.provider.videoData.Yj.replace(/,/g,"_");a.ma("ytp",{type:b},!0)}a.provider.videoData.yY&&(b=a.provider.videoData.yY.replace(/,/g,
"."),a.ma("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.Y.L("enable_white_noise")||a.provider.Y.L("enable_webgl_noop");c=g.AR(c)||g.KR(c)||g.LR(c)||g.MR(c);(b||c)&&(b=(0,g.nW)())&&(a.j.gpu=[b]);UR(a.provider.videoData)&&g.jW(a,g.QK(a.provider),"dt",["1"]);a.provider.Y.Vb()&&(b=(0,g.hu)()-a.provider.Y.Vf,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.Vr(function(){a.reportStats()},1E4)};
ZWa=function(a,b,c){var d=g.QK(a.provider);YWa(a,d,b,0,c);lW(a,d);WWa(a)};
YWa=function(a,b,c,d,e){var f=a.provider.Y.j.cbrver;a.provider.Y.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&$Wa(a,3);a.provider.Y.L("html5_use_ump")&&/b248180278/.test(e)&&$Wa(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."+bB());e&&c.push(aXa(e));g.jW(a,b,"error",c);a.C=!0};
bXa=function(a){a.B>=0||(a.provider.Y.Af||a.provider.ea.getVisibilityState()!==3?a.B=g.QK(a.provider):a.Ta=!0)};
cXa=function(a,b,c,d){if(c!==a.Ie){b<a.G||(a.Ie==="PL"?a.playTimeSecs+=b-a.G:a.Ie==="B"&&a.isBuffering&&(a.isBuffering=!1,a.rebufferTimeSecs+=b-a.Bb,!a.kb&&a.rebufferTimeSecs>=10&&a.playTimeSecs<=180&&(a.j.qoealert=["1"],a.kb=!0)),c!=="B"||a.Ie!=="PL"&&a.Ie!=="PB"||(a.isBuffering=!0),a.G=b);a.Ie==="PL"&&(c==="B"||c==="S")||a.provider.Y.Vb()?lW(a,b):(a.rb||c!=="PL"||(a.rb=!0,UWa(a,b,a.provider.ea.ZF())),SWa(a,b));c==="PL"&&g.Fp(a.kd);var e=[c];c==="S"&&d&&e.push("ss."+d);g.jW(a,b,"vps",e);a.Ie=c;a.Bb=
b;a.G=b;a.C=!0}};
mW=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
oW=function(a,b,c,d,e,f){var h=g.QK(a.provider);c!==1&&c!==3&&c!==5||g.jW(a,h,"vps",[a.Ie]);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};
$Wa=function(a,b){if(!a.ib){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.ib=!0}};
aXa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
dXa=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.Jq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.W=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=pW(this.provider)};
qW=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Rb(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=pW(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
fXa=function(a){eXa(a);a.K=g.Vr(function(){a.update()},100);
a.Jq=g.QK(a.provider);a.B=pW(a.provider)};
eXa=function(a){g.Xr(a.K);a.K=NaN};
gXa=function(a,b,c){c-=a.Jq;return b===a.j&&c>.5};
hXa=function(a,b,c,d){this.Y=b;this.qc=c;this.segments=[];this.experimentIds=[];this.Ta=this.Qb=this.isFinal=this.delayThresholdMet=this.Bb=this.kd=this.autoplay=this.autonav=!1;this.Bc="yt";this.N=[];this.K=this.W=null;this.sendVisitorIdHeader=this.Va=!1;this.Z=this.pageId="";this.G=c==="watchtime";this.C=c==="playback";this.Aa=c==="atr";this.gh=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Aa?"/api/stats/"+c:"//"+b.Wn+"/api/stats/"+c;d&&(this.Qb=d.fs,d.rtn&&(this.K=d.rtn),this.G?(this.playerState=
d.state,d.rti>0&&(this.W=d.rti)):(this.Af=d.mos,this.Xf=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Pc=d.inview),d.size&&(this.jd=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.ge=g.Yg(b.j);this.Z=kP(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.Z==="all"||this.Z==="once")this.Gb=g.Yg(b.Qb);this.uf=b.Pc;this.experimentIds=oJa(b.experiments);this.Ua=b.Ej;this.Bc=b.oa;this.region=
b.region;this.userAge=b.userAge;this.ib=b.Jj;this.le=hw();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ca=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Uf=b.L("vss_final_ping_send_and_write");this.Fa=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Vf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.nf=b.D&&b.L("embeds_append_synth_ch_headers");g.LP(b)&&(this.Ka=b.Fa);g.Ps(g.UP(b))&&this.N.push(1);this.accessToken=
g.TR(a);a.Op[this.qc]?this.D=a.Op[this.qc]:a.Op.playback&&(this.D=a.Op.playback);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=mMa(a);this.C&&(this.kd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.jr&&PR(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=RR(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Bb=a.Jf;a.K&&(this.oa=a.K,this.rb=a.On);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);
this.j=a.Zh;this.Kb=a.Kb;a.B&&(this.Nd=a.B.itag,a.D&&a.D.itag!==this.Nd&&(this.kb=a.D.itag));a.j&&oM(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=PR(a);this.Ta=a.Xf?!1:a.Yi;this.Ee=a.Pn;if(b=DR(a))this.Wf=b;this.mf=a.pw;this.partnerId=a.partnerId;this.eventId=a.eventId;this.playlistId=a.C2||a.playlistId;this.wB=a.wB;this.rj=a.rj;this.Yj=a.Yj;this.Gq=a.Gq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;
this.AD=a.AD;this.referrer=a.referrer;this.Sp=a.sY||a.Sp;this.Ya=a.DD;this.wC=a.wC;this.userGenderAge=a.userGenderAge;this.ww=a.ww;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.LP(this.Y)&&a.mutedAutoplay&&this.N.push(2);a.fd(new g.Gg(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.N.push(3);g.ZR(a)&&this.N.push(4);this.Oa=a.pJ;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)};
iXa=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.oQ(a.Y,a.accessToken).then(function(d){return LWa(a.uri,a.Y,a.pageId,c,d,b,a.nf)})};
lXa=function(a,b){return function(){a.Y.L("html5_simplify_pings")?(a.j=a.Ja,a.Ad=b(),a.le=0,a.send()):iXa(a).then(function(c){var d=jXa(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.gj(a.uri,d);a.Y.L("vss_through_gel_double")&&kXa(d);a.Ca?(c==null&&(c={}),a.Fa?Kv().sendAndWrite(d,c):Kv().sendThenWrite(d,c)):c?g.ds(d,c):g.Av(d)})}};
jXa=function(a){var b={ns:a.Bc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Nd,fs:a.Qb?"1":"0",rt:a.B(a.Ad),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.uf,lact:a.le,live:a.Wf,cl:(683840428).toString(),mos:a.Af,state:a.playerState,volume:a.Xf};a.subscribed&&(b.subscribed="1");Object.assign(b,a.ge);a.Z==="all"?Object.assign(b,a.Gb):a.Z==="once"&&a.C&&Object.assign(b,a.Gb);a.autoplay&&(b.autoplay="1");a.kd&&(b.sautoplay="1");a.Bb&&(b.dni="1");!a.G&&a.Ka&&(b.epm=mXa[a.Ka]);
a.isFinal&&(b["final"]="1");a.Ta&&(b.splay="1");a.Kb&&(b.delay=a.Kb);a.Ua&&(b.hl=a.Ua);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.ib&&(b.uga=a.ib+a.userAge);a.Ja!==void 0&&(b.len=a.B(a.Ja));!a.G&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.K!==null&&(b.rtn=a.B(a.K));a.Sp&&(b.feature=a.Sp);a.rj&&(b.ctrl=a.rj);a.Yj&&(b.ytr=a.Yj);a.kb&&(b.afmt=a.kb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Tb&&(b.lio=a.B(a.Tb));
a.G?(b.idpj=a.Ee,b.ldpj=a.mf,a.delayThresholdMet&&(b.dtm="1"),a.W!=null&&(b.rti=a.B(a.W)),a.ww&&(b.ald=a.ww),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.jd&&(a.C||a.G)&&(b.size=a.jd);a.C&&a.N.length&&(b.pbstyle=a.N.join(","));a.Pc!=null&&(a.C||a.G)&&(b.inview=a.B(a.Pc));a.G&&(b.volume=rW(a,g.Ql(a.segments,function(d){return d.volume})),b.st=rW(a,g.Ql(a.segments,function(d){return d.startTime})),b.et=rW(a,g.Ql(a.segments,function(d){return d.endTime})),
Vm(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=rW(a,g.Ql(a.segments,function(d){return d.playbackRate}))),Vm(a.segments,function(d){return d.j!=="-"})&&(b.als=g.Ql(a.segments,function(d){return d.j}).join(",")),Vm(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.Ql(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=rW(a,g.Ql(a.segments,function(d){return d.muted?1:0}));
Vm(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=rW(a,g.Ql(a.segments,function(d){return d.visibilityState})));
Vm(a.segments,function(d){return d.connectionType!==0})&&(b.conn=rW(a,g.Ql(a.segments,function(d){return d.connectionType})));
Vm(a.segments,function(d){return d.B!==0})&&(b.blo=rW(a,g.Ql(a.segments,function(d){return d.B})));
Vm(a.segments,function(d){return!!d.C})&&(b.blo=g.Ql(a.segments,function(d){return d.C}).join(","));
Vm(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Ql(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
Vm(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.Ql(a.segments,function(d){return d.G}).join(","));
Vm(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.Ql(a.segments,function(d){return d.clipId}).join(","));
if(Vm(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.Ql(a.segments,function(d){return d.D}).join(",")}Nr()&&a.oa&&(b.ctt=a.oa,b.cttype=a.rb,b.mdx_environment=a.mdxEnvironment);
a.gh&&(b.etype=a.qa!==void 0?a.qa:0);a.Ya&&(b.uoo=a.Ya);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=nXa[a.livingRoomAppMode]||a.livingRoomAppMode);a.D?oXa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.AD,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.Gq&&(b.ssrt="1"),a.wC&&(b.upt=a.wC));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Oa&&(b.host_cpn=a.Oa);return b};
oXa=function(a,b){if(b&&a.D){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.D.ns==="3pp"&&(b.ns="3pp");for(var f=g.w(Object.keys(a.D)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.D[h]||(b[h]=a.D[h])}};
rW=function(a,b){return g.Ql(b,a.B).join(",")};
kXa=function(a){a.indexOf("watchtime")!==-1&&g.Qt("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
pXa=function(a,b){a.attestationResponse&&iXa(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ca?a.Fa?Kv().sendAndWrite(b,c):Kv().sendThenWrite(b,c):g.ds(b,c)})};
sW=function(a){g.O.call(this);this.provider=a;this.K="paused";this.G=NaN;this.N=[10,10,10,40];this.W=this.Z=0;this.qa=this.Ca=this.Aa=this.oa=this.C=!1;this.B=this.D=NaN;this.j=new dXa(a)};
tXa=function(a){if(!a.C){a.provider.videoData.XH===16623&&g.qx(Error("Playback for EmbedPage"));var b=tW(a,"playback");a:{if(a.provider.Y.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.Pn,h=a.provider.videoData.pw,l=-f;e=g.w(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.Pn,10,10,40+a.provider.videoData.pw-a.provider.videoData.Pn,40]}fXa(a.j);b.K=uW(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.hx&&(b=a.provider.Y,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.hx,oid:d.bX,ptchn:d.XW,pltype:d.cX,content_v:RR(d)},d.Rw&&Object.assign(c,{m:d.Rw}),b=g.gj(b.Ca+"ptracking",c),qXa(a,b));a.provider.videoData.Kb||(rXa(a),
sXa(a),a.Ft());a.C=!0;b=a.j;b.j=b.provider.ea.rg();b.Jq=g.QK(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.Y.L("html5_log_vss_details")&&a.provider.ea.ma("vssinit",{})}};
uW=function(a,b){b=b===void 0?NaN:b;var c=g.QK(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.G=g.Ur(function(){if(!a.Ia()){a.G=NaN;var f=uXa(a),h=vXa(a,f);h.W=e;var l=a.W>1E3;!(f.length>1)&&f[0].isEmpty()||l||(h.K=uW(a,e));h.send();a.W++}},(e-c)*1E3);
return a.D=e};
vW=function(a){g.Wr(a.G);a.G=NaN};
uXa=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||qW(a);var b=a.segments;a.segments=[];return b};
tW=function(a,b){var c=wXa(a.provider);Object.assign(c,{state:a.K});b=new hXa(a.provider.videoData,a.provider.Y,b,c);b.j=a.provider.ea.rg();c=a.provider.videoData.clientPlaybackNonce;b.j=a.provider.ea.wK(c);a.provider.videoData.isLivePlayback||(b.Ja=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.df(b.j))&&(b.Tb=c-b.j);b.Ad=g.QK(a.provider);b.segments=[pW(a.provider)];return b};
vXa=function(a,b){var c=tW(a,"watchtime");xXa(a)&&(c.delayThresholdMet=!0,a.Aa=!0);if(a.B>0){for(var d=g.w(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.AQ();c.segments=b;return c};
wW=function(a,b){var c=yXa(a,!isNaN(a.D));b&&(a.D=NaN);return c};
yXa=function(a,b){var c=vXa(a,uXa(a));!isNaN(a.D)&&b&&(c.W=a.D);return c};
xXa=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Kb&&a.C&&!a.Aa)b=a.j,b=b.G+b.provider.ea.rg()-b.C>=a.provider.videoData.Kb;return!!b};
rXa=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Ca&&(qXa(a,a.provider.videoData.youtubeRemarketingUrl),a.Ca=!0)};
sXa=function(a){a.provider.videoData.googleRemarketingUrl&&!a.qa&&(qXa(a,a.provider.videoData.googleRemarketingUrl),a.qa=!0)};
zXa=function(a){a.provider.Y.L("html5_log_vss_details")&&a.provider.ea.ma("vssfi",{});if(!a.Ia()&&a.C){a.K="paused";var b=wW(a);b.isFinal=!0;b.send();a.dispose()}};
AXa=function(a,b){if(!a.Ia())if(g.U(b.state,2)||g.U(b.state,512)){if(a.K="paused",g.$y(b,2)||g.$y(b,512))g.$y(b,2)&&(a.j.previouslyEnded=!0),a.C&&(vW(a),wW(a).send(),a.D=NaN)}else if(g.U(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.G)?uW(a):NaN;!isNaN(c)&&(Zy(b,64)<0||Zy(b,512)<0)&&(a=yXa(a,!1),a.K=c,a.send())}else a.K="paused"};
BXa=function(a,b,c){if(!a.oa){c||(c=tW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.oa=!0}};
qXa=function(a,b){var c=a.provider.Y;g.oQ(a.provider.Y,g.TR(a.provider.videoData)).then(function(d){var e=a.provider.Y.pageId,f=a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.Y.L("vss_pings_using_networkless")||a.provider.Y.L("kevlar_woffle"),l=a.provider.Y.L("allow_skip_networkless");d=LWa(b,c,e,f,d);MWa(b,d,{token:a.provider.videoData.K,VU:a.provider.videoData.On,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
CXa=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};
xW=function(a,b,c){this.videoData=a;this.Y=b;this.ea=c;this.j=void 0};
g.QK=function(a){return DXa(a)()};
DXa=function(a){if(!a.j){var b=g.Ya(function(d){var e=(0,g.hu)();d&&e<=631152E6&&(a.ea.ma("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.Y.L("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.ea.XS()}return a.j};
wXa=function(a){var b=a.ea.hs()||{};b.fs=a.ea.Bq();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.IA();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.bl&&(c.infringe=1);(a.Xf?0:a.Yi)&&(c.splay=1);
(d=DR(a))&&(c.live=d);a.jr&&(c.sautoplay=1);a.mj&&(c.autoplay=1);a.wB&&(c.sdetail=a.wB);a.partnerId&&(c.partnerid=a.partnerId);a.osid&&(c.osid=a.osid);a.rE&&(c.cc=g.xKa(a.rE));return Object.assign(b,c)};
TWa=function(a){var b,c;if(b=((c=navigator.connection)==null?void 0:c.type)||"")return EXa[b]||EXa.other;if(g.hE(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
pW=function(a){var b=new CXa,c;b.G=((c=wXa(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.Y.rb&&(b.B=1);b.C=a.videoData.nw;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.Yb&&c.Yb.id&&c.Yb.id!=="und"&&(b.D=c.Yb.id);b.connectionType=TWa(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.IA()||"-";b.j=a.videoData.oJ||"-";return b};
g.yW=function(a,b){g.O.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ie=new g.NH;this.Sc={Koa:function(){return c.qoe},
Xoa:function(){return c.j},
toa:function(){return c.B}};
this.provider.videoData.ye()&&!this.provider.videoData.Cm&&(this.j=new sW(this.provider),this.j.B=this.provider.videoData.Ad/1E3,g.P(this,this.j),this.qoe=new g.kW(this.provider,b),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Og=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Og,this.j));if(a.Y.playerCanaryState==="canary"||a.Y.playerCanaryState==="holdback")this.B=new gW(this.provider),g.P(this,this.B)};
FXa=function(a){return!!a.j&&!!a.qoe};
zW=function(a){a.B&&BWa(a.B);a.qoe&&bXa(a.qoe)};
GXa=function(a){if(a.qoe){a=a.qoe;for(var b=a.provider.videoData,c=a.provider.Y,d=g.w(c.gh),e=d.next();!e.done;e=d.next())mW(a,e.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(d=g.w(b.Rp),e=d.next();!e.done;e=d.next())mW(a,e.value);else b.gh&&mW(a,a.provider.videoData.gh);b.Wb()&&(d=b.j,nR(b)&&mW(a,"manifestless"),d&&wO(d)&&mW(a,"live-segment-"+wO(d).toFixed(1)));gR(b)?mW(a,"sabr"):a.fz(zR(b));(pMa(b)||b.Bg())&&mW(a,"lifa");b.gatewayExperimentGroup&&(d=b.gatewayExperimentGroup,d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?
d="spkadtrt":d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(d="spkadctrl"),mW(a,d));c.oa!=="yt"&&(a.j.len=[b.lengthSeconds.toFixed(2)]);b.cotn&&!UR(b)&&a.TM(!0);c.Vb()&&(b=QWa())&&a.ma("cblt",{m:b})}};
HXa=function(a){if(a.provider.ea.Ff()){if(a.D)return;a.D=!0}a.j&&tXa(a.j);if(a.B){a=a.B;var b=g.QK(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
IXa=function(a,b){a.j&&(a=a.j,b===58?a.j.update():a.C&&(vW(a),wW(a).send(),a.D=NaN))};
JXa=function(a,b){if(g.$y(b,1024)||g.$y(b,512)||g.$y(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.Z||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Og){var d;(d=a.C.get(a.Og))==null||AXa(d,b)}else a.j&&AXa(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.QK(d.provider),f=d.getPlayerState(c);cXa(d,e,f,c.seekSource||void 0);f=c.Pg;g.U(c,128)&&f&&(f.QM=f.QM||"",YWa(d,e,f.errorCode,f.EA,f.QM));(g.U(c,2)||g.U(c,128))&&d.reportStats(e);c.isPlaying()&&!d.Z&&(d.B>=0&&
(d.j.user_intent=[d.B.toString()]),d.Z=!0);WWa(d)}a.B&&(d=a.B,CWa(d),d.playerState=b.state,d.B>=0&&g.$y(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Ff()&&(a.Ie=b.state)};
KXa=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Og){var b;(b=a.C.get(a.Og))!=null&&qW(b.j)}else a.j&&qW(a.j.j)};
LXa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Ie==="PL"&&(b.Ie="N");var c=g.QK(b.provider);g.jW(b,c,"vps",[b.Ie]);b.Z||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.Z=!0);b.provider.Y.Vb()&&b.ma("finalized",{});b.Fa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.w(a.C.values()),c=b.next();!c.done;c=b.next())zXa(c.value);else a.j&&zXa(a.j);a.dispose()};
MXa=function(a,b){a.j&&BXa(a.j,b)};
NXa=function(a){if(!a.j)return null;var b=tW(a.j,"atr");return function(c){a.j&&BXa(a.j,c,b)}};
OXa=function(a,b,c,d){c.adFormat=c.Qb;var e=b.ea;b=new sW(new xW(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
rg:function(){return e.rg()},
wK:function(){return e.wK()},
Ff:function(){return e.Ff()},
ZF:function(){return e.ZF()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
dG:function(){return e.dG()},
getVisibilityState:function(){return e.getVisibilityState()},
Lh:function(){return e.Lh()},
hs:function(){return e.hs()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
Bq:function(){return e.Bq()},
IA:function(){return e.IA()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
XS:function(){e.XS()},
ma:function(f,h){e.ma(f,h)}}));
b.B=d;g.P(a,b);return b};
PXa=function(){this.ix=0;this.C=this.Yv=this.Ct=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
AW=function(a,b,c){g.O.call(this);var d=this;this.Y=a;this.ea=b;this.B=c;this.j=new Map;this.Og="";this.Sc={Go:function(){return Array.from(d.j.keys())}}};
QXa=function(a,b){a.j.has(b)&&(LXa(a.j.get(b)),a.j.delete(b))};
RXa=function(){this.j=g.LE;this.array=[]};
TXa=function(a,b,c){var d=[];for(b=SXa(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};
UXa=function(a,b){var c=[];a=g.w(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};
VXa=function(a){return a.array.slice(SXa(a,0x7ffffffffffff),a.array.length)};
SXa=function(a,b){a=gc(a.array,function(c){return b-c.start||1});
return a<0?-(a+1):a};
WXa=function(a,b){var c=NaN;a=g.w(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};
XXa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
BW=function(a,b,c,d,e){g.O.call(this);this.W=a;this.Aa=b;this.K=c;this.oa=d;this.D=e;this.C=NaN;this.N=this.Z=this.started=!1;this.B=[];this.qa=new g.Ep(this.sync,250,this);g.P(this,this.qa);this.G=new g.Ep(this.sync,0,this);g.P(this,this.G);this.j=new RXa};
YXa=function(a){a.started=!0;a.sync()};
ZXa=function(a,b){a.started&&(a.sync(),g.U(b.TB,16)&&(b=WXa(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&b<0x7ffffffffffff&&a.G.start()))};
$Xa=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];c[0]===1?a.oa(g.ME(d.namespace),d):a.oa(g.NE(d.namespace),d)}};
aYa=function(a){this.Y=a;this.timeStamp=this.B=this.mediaTime=NaN;this.C=this.j=!1;this.D=.001;g.hE(a)&&(this.D=.01)};
CW=function(a,b){return b>a.mediaTime+a.D&&b<a.mediaTime+5};
Jxa=function(a,b,c,d,e){if(d=d>1)a.C=!0;if((e===void 0?0:e)||isNaN(a.B))a.B=b;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b){e=1500;if(a.Y.L("html5_buffer_underrun_transition_fix")){e=g.UD(a.Y.experiments,"html5_min_playback_advance_for_steady_state_secs");var f=g.UD(a.Y.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");e=e>0&&f>0&&Math.abs(b-a.B)<e?f:1500}return c-a.timeStamp>(d||!a.C?e:400)}a.mediaTime=b;a.timeStamp=c;return!1};
bYa=function(a,b){this.videoData=a;this.j=b};
cYa=function(a,b,c){return b.CJ(c).then(function(){return ks(new bYa(b,b.C))},function(d){d instanceof Error&&g.qx(d);
var e=eG('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=gG('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.oP(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Qx(),d:!!b.Bc,drm:b.Qi(),f18:b.Uf.indexOf("itag=18")>=0,c18:e};b.j&&(b.Qi()?(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=gG('video/mp4; codecs="avc1.42001E"'),
e.cVP9=gG('video/webm; codecs="vp9"'));b.G&&(e.drmsys=b.G.keySystem,f=0,b.G.j&&(f=Object.keys(b.G.j).length),e.drmst=f);return new aG(d,e,h)})};
DW=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
dYa=function(a){return a.data[a.j]||0};
eYa=function(a){this.G=a;this.C=this.B=0;this.D=new DW(50)};
FW=function(a,b,c){g.Qx.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 fYa;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.ib?c.B=3:g.IR(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.UD(b,"html5_liveness_drift_proxima_override");if(zR(a)!==0&&d){c.j=d;var e;((e=a.j)==null?0:sFa(e))&&c.j--}gR(a)&&b.bb("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.N=!0);if(g.us("trident/")||g.us("edge/"))e=g.UD(b,"html5_platform_minimum_readahead_seconds")||
3,c.C=Math.max(c.C,e);g.UD(b,"html5_minimum_readahead_seconds")&&(c.C=g.UD(b,"html5_minimum_readahead_seconds"));g.UD(b,"html5_maximum_readahead_seconds")&&(c.K=g.UD(b,"html5_maximum_readahead_seconds"));b.bb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.UD(b,"html5_liveness_drift_chunk_override"))c.j=b;yR(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=EW(this,gYa(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
hYa=function(a,b){if(b)return b=a.videoData,b=gYa(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),EW(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return EW(a,a.j-1);if(a.policy.D)return EW(a,a.j+1)}return a.j};
iYa=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=hYa(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
GW=function(a,b){return b>=a.Fo()-jYa(a)};
kYa=function(a,b,c){b=GW(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C};
lYa=function(a,b){b=GW(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
jYa=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*HW(a)};
gYa=function(a,b,c){c.ib&&b--;yR(c)&&(b=1);if(zR(c)!==0&&(a=g.UD(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:sFa(d))&&b++}return b};
HW=function(a){return a.videoData.j?wO(a.videoData.j)||5:5};
EW=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/HW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/HW(a))),b)};
fYa=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.N=this.G=!1};
KW=function(a){g.O.call(this);this.ea=a;this.j=0;this.B=null;this.K=this.D=0;this.C={};this.Y=this.ea.U();this.G=new g.Ep(this.Le,1E3,this);this.kb=new IW({delayMs:g.UD(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.Fa=new IW({delayMs:g.UD(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.rb=JW(this,"html5_seek_set_cmt");this.Ua=JW(this,"html5_seek_jiggle_cmt");this.Va=JW(this,"html5_seek_new_elem");this.Tb=JW(this,"html5_unreported_seek_reseek");this.Aa=JW(this,"html5_long_rebuffer_jiggle_cmt");
this.Ja=JW(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ca=new IW({delayMs:2E4});this.Ta=JW(this,"html5_seek_new_elem_shorts");this.ib=JW(this,"html5_seek_new_media_source_shorts_reuse");this.Ya=JW(this,"html5_seek_new_media_element_shorts_reuse");this.Oa=JW(this,"html5_reseek_after_time_jump");this.Z=JW(this,"html5_gapless_handoff_close_end_long_rebuffer");this.oa=JW(this,"html5_gapless_slow_seek");this.W=JW(this,"html5_gapless_slice_append_stuck");this.qa=JW(this,"html5_gapless_slow_start");
this.N=JW(this,"html5_ads_preroll_lock_timeout");this.Qb=JW(this,"html5_ssap_ad_longrebuffer_new_element");this.Kb=new IW({delayMs:g.UD(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,xA:!this.Y.L("html5_report_slow_ads_as_error")});this.Bb=new IW({delayMs:g.UD(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,xA:!this.Y.L("html5_skip_slow_buffering_ad")});this.Gb=new IW({delayMs:g.UD(this.Y.experiments,"html5_slow_start_timeout_delay_ms")});this.Ka=JW(this,"html5_slow_start_no_media_source");
g.P(this,this.G)};
JW=function(a,b){var c=g.UD(a.Y.experiments,b+"_delay_ms");a=a.Y.L(b+"_cfl");return new IW({delayMs:c,xA:a})};
mYa=function(a,b){a.j=b};
LW=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Jd(e,b,h),b.xA||f()):(b.ZM&&b.B&&!b.D?(c=(0,g.hu)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.ZM,c=b.j&&c-b.j>b.KT||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.pc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ea.ma("workaroundReport",l),d&&(b.reset(),a.C[e]=!1)))};
IW=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.KT===void 0?1E3:b.KT;var d=b.ZM===void 0?3E4:b.ZM;b=b.xA===void 0?!1:b.xA;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.KT=c;this.ZM=d;this.xA=b};
qYa=function(a){g.O.call(this);var b=this;this.ea=a;this.K=this.j=this.ra=this.mediaElement=this.playbackData=null;this.D=0;this.G=this.oa=this.C=null;this.qa=!1;this.Kb=0;this.Z=!1;this.timestampOffset=0;this.N=!0;this.Ua=0;this.Va=this.Gb=!1;this.W=0;this.ib=!1;this.Aa=0;this.Y=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new nYa;this.Ca=new KW(this.ea);this.kb=this.Oa=this.Ka=this.B=NaN;this.Ja=new g.Ep(function(){oYa(b,!1)},2E3);
this.Bb=new g.Ep(function(){MW(b)});
this.Ta=new g.Ep(function(){b.qa=!0;pYa(b,{})});
this.rb=NaN;this.Fa=new g.Ep(function(){var c=b.Y.uf;c.j+=1E4/36E5;c.j-c.C>1/6&&(JJa(c),c.C=c.j);b.Fa.start()},1E4);
g.P(this,this.Ca);g.P(this,this.Ja);g.P(this,this.Ta);g.P(this,this.Bb);g.P(this,this.Fa)};
tYa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new eYa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(nR(a.videoData)&&a.ra){var c=a.ra.YE.Qg()||0;break a}if(a.videoData.j){c=a.videoData.j.Ca;break a}}c=0}return c}),a.j=new FW(a.videoData,a.Y.experiments,function(){return a.Vd(!0)}));
NW(a.ea)?(b=rYa(a),b.MN?(gR(a.videoData)&&a.L("html5_sabr_enable_utc_seek_requests")&&a.zC(b.MN,b.startSeconds),a.D=b.startSeconds):b.startSeconds>0&&a.seekTo(b.startSeconds,{Xc:"seektimeline_startPlayback",seekSource:15}),a.N=!1):sYa(a)||(a.D=a.D||(g.oR(a.videoData)?0:a.videoData.startSeconds)||0)};
vYa=function(a,b){(a.ra=b)?uYa(a,!0):OW(a)};
wYa=function(a,b){g.Fp(a.Ca.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Fp(a.Fa):a.Fa.stop());if(a.mediaElement)if(b.TB.state===8&&UH(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Kh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?IG(c,Math.max(b-3.5,0)):IG(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:HG(c,"_"),cmt:b}),
a.rb=d,a.seekTo(d,{Vx:!0,Xc:"seektimeline_postLiveDisc"})))}else((c=b.state)==null?0:c.state===8)&&!a.Va&&(a.videoData.limitedPlaybackDurationInSeconds>0?(PW(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Va=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(PW(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.Va=!0))};
yYa=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.Pi(c);f!==-1&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.hu)()/1E3-e.j.df(f),f-=e.G(),e.D.add(f))}}a.j&&(d&&(e=a.j,f=xYa(a),e.D++,e.D<3||g.Za()-e.N<3E3||(e.N=g.Za(),e.B.push(f),e.B.length>50&&e.B.shift())),e=a.j,kYa(e,c,b===void 0?!0:b),lYa(e,c),b&&oYa(a,!0));d!==a.Gb&&(b=a.getCurrentTime()-a.kb<=500,c=a.Kb>=1E3,b||c||(b=a.ea.Sb(),b.qoe&&(b=b.qoe,c=g.QK(b.provider),
g.jW(b,c,"lh",[d?"1":"0"])),a.Gb=d,a.Kb++,a.kb=a.getCurrentTime()))};
oYa=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!GW(c,d)&&c.Eq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Vc()?Math.min(c.videoData.Vc()+10,c.Fo()):NaN;if(!isNaN(c)){if(a.ra&&b&&(b=a.Ja.isActive(),d=a.j.Fo(),(d=XUa(a.ra,d-a.zc()))&&!b)){a.Ja.start();a.ea.ma("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.zc()});a.seekTo(d+a.zc(),{Xc:"seektimeline_inBufferSeek"});return}a.seekTo(c,{Xc:"seektimeline_pegToLive"})}}};
uYa=function(a,b){if(a.j&&a.ra){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||a.videoData.latencyClass==="LOW"||a.videoData.latencyClass==="ULTRALOW"?c=iYa(a.j):a.ib&&(a.ib=!1,c=iYa(a.j,!0));c&&(b=a.ea.Sb(),c=a.j,c=HW(c)*c.j,b.qoe&&(b=b.qoe,g.jW(b,g.QK(b.provider),"lra",[c]),b.ma("live-readahead-seconds",{v:c})));b=a.ra;var d=a.j.j;a=a.j;a=(a.j-1+a.policy.j)*HW(a);c=NaN;var e=b.Qb;e===2||e===-1?yR(b.ea.getVideoData())&&(c=b.policy.vE):(--d,e=b.ea.getVideoData(),e.Wb()&&e.latencyClass!=="ULTRALOW"&&
!e.isLowLatencyLiveStream&&(c=zR(e)!==0?b.policy.VI:b.policy.hw));d=Math.max(d,0);e=b.D;e.oh=d;e.Z=c;b.K&&(b.K.oa=a)}};
zYa=function(a,b){a.D=b};
pYa=function(a,b){AYa(a,b).then(void 0,function(){OW(a)});
BYa(a).then(function(c){CYa(a,c)},function(){OW(a)});
DYa(a.ea,b);a.Y.Vb()&&(b=a.pc(),b["native"]=""+ +a.Z,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.Fo(),b.adft=""+jYa(a.j)),a.L("html5_sabr_parse_live_metadata_playback_boundaries")&&a.videoData.j&&gR(a.videoData)&&(b.minst=""+a.videoData.j.gq,b.cminst=""+(a.videoData.j.Vc()+a.timestampOffset),b.maxst=""+a.videoData.j.wl,b.hts=""+a.videoData.j.qa,b.cmaxst=""+(a.videoData.j.Vd()+a.timestampOffset)),a.ea.ma("startSeek",b))};
AYa=function(a,b){a.oa||(a.ra?isFinite(a.B)?a.oa=a.ra.seek(a.B-a.timestampOffset,b):(lR(a.videoData),a.oa=lV(a.ra),tMa(a.videoData)||(a.B=a.ra.getCurrentTime()+a.timestampOffset)):a.oa=Ji(a.B-a.timestampOffset));return a.oa};
BYa=function(a){var b=a.C;b||(a.C=new HH,b=a.C,MW(a));return b};
QW=function(a,b,c){return isNaN(b)?NaN:g.Bg(b,a.Vc(),a.Vd(c))};
MW=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&a.mediaElement.zl()>0&&JH(a.mediaElement)>0&&(a.B=QW(a,a.B,!1)),!a.mediaElement||!EYa(a))a.Bb.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Oa-(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.Ua||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
else{if(a.videoData.yE)a.videoData.yE=!1;else if(!lR(a.videoData)&&a.B>=a.Vd()-.1){a.B=a.Vd();a.C.resolve(a.Vd());RW(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Ca.j=c;a.Oa=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.Z=!1)}catch(d){}}}};
EYa=function(a){if(!a.mediaElement||a.mediaElement.zl()===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.Qi())return b;if(a.B>=0){var c=a.mediaElement.VA();if(c.length||!b)return JG(c,a.B-a.timestampOffset)}return b};
CYa=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.Y.Vb()&&(b=a.pc(),b["native"]=""+ +a.Z,b.otgt=""+(a.B+a.timestampOffset),a.ea.ma("seekEnd",b)));OW(a)};
OW=function(a){a.B=NaN;a.Oa=NaN;a.C=null;a.oa=null;a.G=null;a.qa=!1;a.Z=!1;a.Ua=0;a.Ja.stop();a.Ta.stop()};
HYa=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.Z&&f!==a.B){var h=!!a.C;a.C=new HH;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){CYa(a,m)},function(){OW(a)});
if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;kta({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.pJ)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.cM()}a.Oa=f;mYa(a.Ca,d.getCurrentTime());a.seekTo(f,{seekSource:104,Xc:"seektimeline_mediaElementEvent"});c&&FYa(c,f*1E3,!!h);a.Z=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":NW(a.ea)||GYa(a);MW(a);break;case "progress":MW(a);break;case "pause":a.W=a.getCurrentTime()}a.W&&
((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.W>10&&a.seekTo(a.W,{Xc:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.W=0))};
IYa=function(a){return(JR(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||sYa(a))&&!!a.videoData.j};
sYa=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9};
rYa=function(a){var b=0,c=NaN,d="";if(!a.N)return{startSeconds:b,MN:c,source:d};a.videoData.Ja?b=a.videoData.Ka:lR(a.videoData)&&(b=Infinity);if(g.IR(a.videoData))return{startSeconds:b,MN:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.Nd&&(d="stss",b=a.videoData.Nd);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);if(isFinite(b)&&(b>a.Vd()||b<a.Vc())){var e={};e.minSeekableTime=a.Vc();e.maxSeekableTime=a.Vd();e.cmt=a.getCurrentTime();e.ss=
b;e.utc=c;e.src=d;a.ea.ma("startSecondsOutOfBounds",e);a.videoData.Wb()&&(b=QW(a,b,!1))}return{startSeconds:b,MN:c,source:d}};
GYa=function(a){if(a.N)if(g.IR(a.videoData))a.N=!1;else{var b="ss",c=0,d;((d=a.videoData.j)==null?0:d.isManifestless)&&a.videoData.Bb&&!sYa(a)&&(b="mss",c=a.videoData.Bb);(a.videoData.Ja?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.Nd&&(b="stss",c=a.videoData.Nd);!c&&IYa(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Bb,b="utc",c=a.Vd()-a.df(a.Vd())+c);c||a.L("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!a.videoData.Wb()||
!a.videoData.Nd||(b="stss",c=a.videoData.Nd);d={};if(c){if(c>a.Vd()||c<a.Vc())d.minSeekableTime=a.Vc(),d.maxSeekableTime=a.Vd(),d.cmt=a.getCurrentTime(),d.it=a.df(a.getCurrentTime()),d.ss=c,d.utc=IYa(a)?a.videoData.liveUtcStartSeconds||a.videoData.Bb:0,a.ea.ma("startSecondsOutOfBounds",d),a.videoData.Wb()&&(c=QW(a,c,!1));a.seekTo(c,{Xc:"seektimeline_startSeconds"});d[b]=c;a.ea.ma("startSeconds",d);a.N=!1}else a.videoData.Bb&&(d[b]=a.videoData.Bb+a.zc(),a.ea.ma("startSeconds",d))}};
JYa=function(a,b){a.ea.ma("sdai",{adj4t:b.toFixed(3)});a.Ka=b;b+=1;a.B=b;a.D=b;BYa(a).then(function(c){CYa(a,c)},function(){OW(a)})};
xYa=function(a){return a.mediaElement?KH(a.mediaElement):0};
nYa=function(){};
SW=function(a){g.O.call(this);this.C=a;this.j=new Map;this.B=new g.Ep(this.sample,250,this);g.P(this,this.B);this.start()};
TW=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||[]};
UW=function(a,b){var c;return((c=a.j.get(b))==null?void 0:dYa(c.buffer))||0};
KYa=function(a){this.j=a;this.xB=NaN;this.buffer=new DW(100)};
VW=function(){this.finished=this.started=!1};
QYa=function(a){function b(e){return c.zm&&(!d.Sn||!d.Ba.N)||c.oa!=="yt"&&(d.partnerId===38&&c.playerStyle==="books"||d.partnerId===30&&c.playerStyle==="docs"||d.partnerId===33&&c.playerStyle==="google-live")?LYa(a,d,e):MYa(a,d).then(function(){WW(a,d)},function(f){WW(a,d,!0);
throw f;})}
var c=a.U(),d=a.getVideoData();d.Ia();d.loading=!0;return NYa(a)?OYa(a,d).then(function(){WW(a,d)},function(e){e=cG(e);
if(bG(e.severity))return WW(a,d,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(PYa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
NYa=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.oa!=="yt")return!1;var c=b.ll;if(!c||!c.j)return a.handleError(new aG("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.hu)()&&(a.ma("okexp","1"),(c=a.UA())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=(d=c.j.get(0))==null?void 0:AM(d.location))&&!VT(b)&&c.j.delete(0)}if(PYa)return a.ma("ost3","1"),!1;d={};return Object.keys(d).length>
0?(d.onesie="0",a.handleError(new aG("html5.missingapi",d)),!1):!0};
RYa=function(a){var b=WS();XS(b,a);return g.YA(b,cCa())};
OYa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N,X,V,ca,la,W,R;return g.J(function(Y){if(Y.j==1)return b.fetchType="onesie",c=FMa(b,a.getPlayerSize(),a.getVisibilityState()),d=new FV(a,c),g.G(Y,d.fetch(),2);e=Y.B;f={player_response:e};b.loading=!1;h=a.bd.fv;if(d.fg){l=g.w(d.fg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.w(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(y=u.vu(),b.wD=y);h.Ax=d}A=g.w(d.QY.entries());for(C=A.next();!C.done;C=
A.next())F=C.value,H=g.w(F),L=H.next().value,N=H.next().value,X=L,V=N,h.B.set(X,V,180);g.dR(b,f,!0);if(b.loading||aR(b))return Y.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.wD=[];ca={};la="onesie.response";W=0;b.errorCode?(la="auth",ca.ec=b.errorCode,ca.ed=b.errorDetail,ca.es=b.zo||"",W=2):(ca.successButUnplayable="1",ca.disposed=""+ +b.Ia(),ca.afmts=""+ +/adaptiveFormats/.test(e),ca.cpn=b.clientPlaybackNonce);R=new aG(la,ca,W);return Y.return(Promise.reject(R))})};
MYa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.J(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ea(4);break}if(!(f>0)){t.Ea(5);break}return g.G(t,Qi(5E3),6);case 6:h=new g.At("Retrying OnePlatform request",{attempt:f}),g.qx(h);case 5:return g.wa(t,7),g.G(t,SYa(a,b),9);case 9:return t.return();case 7:l=g.ya(t);m=cG(l);n=m.errorCode;p=a.U();q=p.L("html5_use_network_error_code_enums")?401:"401";d&&n==="manifest.net.badstatus"&&m.details.rc===q&&(d=!1,f===e-1&&(e+=
1));if(p.L("html5_fatal_last_fetch_error")&&f===e-1)return r=TYa(c,m.details),r.details.backend="op",r.details.originec=n,t.return(Promise.reject(r));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(bG(m.severity)){t.Ea(4);break}case 3:f++;t.Ea(2);break;case 4:return t.return(Promise.reject(TYa(c,{backend:"op"})))}})};
SYa=function(a,b){function c(la){la.readyState===2&&a.Md("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N,X,V,ca;return g.J(function(la){switch(la.j){case 1:b.fetchType="gp";d=a.U();e=g.oQ(d,g.TR(b));if(!e.j){f=e.getValue();la.Ea(2);break}return g.G(la,e.j,3);case 3:f=la.B;case 2:return h=f,l=RYa(h),m=FMa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.dA(UYa),p=g.TR(b),q=(0,g.hu)(),r=!1,t="empty",u=0,a.Md("psns"),y={XB:c},g.G(la,g.NA(l,m,n,void 0,y),4);case 4:A=la.B;a.Md("psnr");if(b.Ia())return la.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,F=((0,g.hu)()-q).toFixed(),H={},H=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.kb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.zr("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.qa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.rj||"",token_eq:p===g.TR(b)?"1":"0"}:{backend:"op",
rc:""+u,rt:F,reason:t,has_kpt:b.kb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.zr("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.qa?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.rj||"",token_eq:p===g.TR(b)?"1":"0"},L="manifest.net.connect",u===429?(L="auth",C=2):u>200&&(L="manifest.net.badstatus",u===400&&(C=2)),la.return(Promise.reject(new aG(L,H,C)));b.loading=!1;g.dR(b,{raw_player_response:A},!0);
N=A;g.RP(b.U())&&N&&N.trackingParams&&GL(N.trackingParams);if(b.errorCode)return X={ec:b.errorCode,ed:b.errorDetail,es:b.zo||""},la.return(Promise.reject(new aG("auth",X,2)));if(!b.loading&&!aR(b))return V=b.isAd()?"auth":"manifest.net.retryexhausted",ca=b.isAd()?2:1,la.return(Promise.reject(new aG(V,{successButUnplayable:"1",hasMedia:g.FR(b)?"1":"0"},ca)));g.va(la)}})};
LYa=function(a,b,c){function d(u){u=cG(u);if(bG(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.J(function(u){switch(u.j){case 1:var y=a.U(),A=a.getPlayerSize(),C=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(b.partnerId===38&&y.playerStyle==="books")F=b.videoId.indexOf(":"),F=g.gj("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.W4});else if(b.partnerId===30&&y.playerStyle==="docs")F=g.gj("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.fga,authkey:b.M4,eurl:y.Pc});
else if(b.partnerId===33&&y.playerStyle==="google-live")F=g.gj("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{y.oa!=="yt"&&g.px(Error("getVideoInfoUrl for invalid namespace: "+y.oa));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:y.Pc,ps:y.playerStyle,el:PR(b),hl:y.Ej,list:b.playlistId,agcid:b.VK,aqi:b.adQueryId,sts:20005,lact:hw()};Object.assign(H,y.j);y.forcedExperiments&&(H.forced_experiments=y.forcedExperiments);b.qa?(H.vvt=b.qa,b.mdxEnvironment&&(H.mdx_environment=
b.mdxEnvironment)):g.TR(b)&&(H.access_token=g.TR(b));b.adFormat&&(H.adformat=b.adFormat);b.slotPosition>=0&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);b.FD!==null&&(H.ad_id=b.FD);b.bE!==null&&(H.ad_sys=b.bE);b.CE!==null&&(H.encoded_ad_playback_context=b.CE);y.captionsLanguagePreference&&(H.cc_lang_pref=y.captionsLanguagePreference);y.Kb&&y.Kb!==2&&(H.cc_load_policy=y.Kb);var L=g.ut(g.tt(),65);g.fQ(y)&&L!=null&&!L&&(H.device_captions_on="1");y.mute&&(H.mute=y.mute);b.annotationsLoadPolicy&&
y.annotationsLoadPolicy!==2&&(H.iv_load_policy=b.annotationsLoadPolicy);b.Sw&&(H.endscreen_ad_tracking=b.Sw);(L=y.Ka.get(b.videoId))&&L.CN&&(H.ic_track=L.CN);b.Fa&&(H.itct=b.Fa);mMa(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.FG&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.Yj);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.qx&&(H.ytrcc=b.qx);b.UI&&(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.Pc&&(H.preload=b.Pc);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.Xf?0:b.Yi)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");RR(b)&&(H.content_v=RR(b));b.ib&&(H.livemonitor=1);y.Aa&&(H.authuser=y.Aa);y.pageId&&(H.pageid=y.pageId);y.kb&&(H.ei=y.kb);y.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");y.N&&b.uD&&(H.live_start_walltime=
b.uD);y.N&&b.vl&&(H.live_manifest_duration=b.vl);y.N&&b.playerParams&&(H.player_params=b.playerParams);y.N&&b.cycToken&&(H.cyc=b.cycToken);y.N&&b.mE&&(H.tkn=b.mE);C!==0&&(H.vis=C);y.enableSafetyMode&&(H.enable_safety_mode="1");b.kb&&(H.kpt=b.kb);b.Mp&&(H.kids_age_up_mode=b.Mp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.fD&&(H.upg_content_filter_mode="1");y.widgetReferrer&&(H.widget_referrer=y.widgetReferrer.substring(0,128));b.oa?(A=b.oa.latitudeE7!=null&&b.oa.longitudeE7!=null?b.oa.latitudeE7+
","+b.oa.longitudeE7:",",A+=","+(b.oa.clientPermissionState||0)+","+(b.oa.locationRadiusMeters||"")+","+(b.oa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.Vn&&(H.internalipoverride=b.Vn);y.embedConfig&&(H.embed_config=y.embedConfig);y.Qn&&(H.co_rel="1");y.ancestorOrigins.length>0&&(H.ancestor_origins=Array.from(y.ancestorOrigins).join(","));y.homeGroupInfo!==void 0&&(H.home_group_info=y.homeGroupInfo);y.livingRoomAppMode!==void 0&&(H.living_room_app_mode=y.livingRoomAppMode);y.enablePrivacyFilter&&
(H.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(H.is_living_room_deeplink="1");b.Lw&&b.Mw&&(H.clip=b.Lw,H.clipt=b.Mw);b.Qw&&(H.disable_watch_next="1");b.Un&&(H.forced_by_var="1");for(var N in H)!VYa.has(N)&&H[N]&&String(H[N]).length>512&&(g.qx(Error("GVI param too long: "+N)),H[N]="");N=y.Ca;g.SP(y)&&(N=FE(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||y.Ca);y=g.gj(N+"get_video_info",H);F&&(y=rna(y,F));F=y}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){u.Ea(4);break}n=f;if(!(m>0)){u.Ea(5);break}return g.G(u,
Qi(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=Lr(f,p);case 5:return g.G(u,WYa(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ea(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.qx(new g.At("b/152131571",btoa(f)))}catch(X){}return u.return(Promise.reject(new aG(r,{backend:"gvi"},t)))}})};
WYa=function(a,b){function c(A){return d(A.xhr)}
function d(A){if(!a.Ia()){A=A?A.status:-1;var C=0,F=((0,g.hu)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var H="manifest.net.connect";A===429?(H="auth",C=2):A>200&&(H="manifest.net.badstatus",A===400&&(C=2));return Promise.reject(new aG(H,F,C))}}
var e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.fetchType="gvi";e=a.U();var C={};a.eE&&(C.ytrext=a.eE);(l=g.Sg(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=Lr(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=kP(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length>
0&&(f.headers=m);p=(0,g.hu)();return g.G(A,iO(gs,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=Hr(q.responseText);g.dR(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.zo||""},A.return(Promise.reject(new aG("auth",t,2)));if(!a.loading&&!aR(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,A.return(Promise.reject(new aG(u,{successButUnplayable:"1"},y)));g.va(A)})};
TYa=function(a,b){return new aG(a?"auth":"manifest.net.retryexhausted",b,a?2:1)};
WW=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.J(function(l){if(l.j==1){d=a.U();if(c&&(!g.hQ(d)||PR(b)!=="embedded")||b.Qw||PR(b)!=="adunit"&&(g.hE(d)||YP(d)||g.vz(d)||g.SP(d)||iP(d)==="WEB_CREATOR"))return l.return();e=g.oQ(d,g.TR(b));return e.j?g.G(l,e.j,3):(f=e.getValue(),l.Ea(2))}l.j!=2&&(f=l.B);h=f;return l.return(XYa(a,b,h))})};
XYa=function(a,b,c){var d,e,f,h,l;return g.J(function(m){if(m.j==1){g.wa(m,2);d=RYa(c);var n=b.U();g.tt();var p={context:g.$R(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};PR(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Qn&&(p.showContentOwnerOnly=!0);b.QZ&&(p.showShortsOnly=!0);g.ut(0,141)&&(p.autonavState=g.ut(0,140)?"STATE_OFF":"STATE_ON");if(g.fQ(n)){var q=g.ut(0,65);q=q!=null?
!q:!1;var r=!!g.mt("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.dA(YYa);a.Md("wn_s");return g.G(m,g.NA(d,e,f),4)}if(m.j!=2)return h=m.B,a.Md("wn_r"),!h||"error"in h&&h.error||(l=h,g.RP(b.U())&&l.trackingParams&&GL(l.trackingParams),g.dR(b,{raw_watch_next_response:h},!1)),g.xa(m,0);g.ya(m);g.va(m)})};
ZYa=function(a){a.Md("vir");a.Md("ps_s");KA("vir",void 0,"video_to_ad");var b=QYa(a);b.then(function(){a.Md("virc");KA("virc",void 0,"video_to_ad");a.Md("ps_r");KA("ps_r",void 0,"video_to_ad")},function(){a.Md("virc");
KA("virc",void 0,"video_to_ad")});
return b};
g.ZW=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.$Q(a):m;n=n===void 0?!0:n;g.Qx.call(this);var p=this;this.Y=a;this.playerType=b;this.Hb=c;this.nI=d;this.getVisibilityState=f;this.visibility=h;this.bd=l;this.videoData=m;this.V7=n;this.logger=new g.QT("VideoPlayer");this.SE=new aYa(this.Y);this.Fe=null;this.iC=new aW;this.Rr=null;this.Sk=new kWa(this.Y,this.nI,this);this.FZ=!0;this.Pa=this.ra=null;this.Tq=[];this.Uq=new VW;this.Of=this.tH=null;this.Ts=new VW;this.EM=null;this.OZ=this.Ou=!1;this.FM=
NaN;this.K1=!1;this.playerState=new g.NH;this.IM=[];this.kD=new g.jG;this.Jl=new XVa(this);this.mediaElement=null;this.zy=new g.Ep(this.Hba,15E3,this);this.eU=this.XL=!1;this.Zy=NaN;this.ME=!1;this.iA=0;this.pG=!1;this.wL=NaN;this.NU=new SW(new Map([["bufferhealth",function(){return xYa(p.Oc)}],
["bandwidth",function(){return p.mQ()}],
["networkactivity",function(){return p.Y.schedule.Ca}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?$Ya(p):NaN}],
["rawlivelatency",function(){return $Ya(p)}]]));
this.EG=0;this.loop=!1;this.playbackRate=1;this.A_=0;this.Oc=new qYa(this);this.KX=!1;this.HM=[];this.MR=this.L1=0;this.ZT=this.Z3=!1;this.Yv=this.Ct=0;this.YJ=-1;this.EX="";this.JO=new g.Ep(this.Y9,0,this);this.l3=!1;this.ub=this.Yc=null;this.Jaa=[this.kD,this.JO,this.zy,this.NU];this.OI=this.NE=null;this.Nf=function(){var q=p.Sb();q.provider.Y.Af||q.provider.ea.getVisibilityState()===3||(q.provider.Y.Af=!0);KXa(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&BWa(r)}q.qoe&&
(q=q.qoe,q.Ta&&q.B<0&&q.provider.Y.Af&&bXa(q),q.C&&lW(q));p.ra&&XW(p);p.Y.Sp&&!p.videoData.backgroundable&&p.mediaElement&&!p.zi()&&(p.isBackground()&&p.mediaElement.jJ()?(p.ma("bgmobile",{suspend:1}),p.tp(!0,!0)):p.isBackground()||YW(p)&&p.ma("bgmobile",{resume:1}))};
this.Sc={Oq:function(q){p.Oq(q)},
kqa:function(q){p.Fe=q},
Coa:function(){return p.FB},
SA:function(){return p.GB},
aoa:function(){return p.VO},
boa:function(){return p.yJ},
Hpa:function(){},
U:function(){return p.Y},
Ge:function(){return p.mediaElement},
Kpa:function(q){p.rM(q)}};
this.logger.debug(function(){return"creating, type "+b});
this.Ih=new BW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.ME("endcr")||g.U(p.playerState,32)||RW(p);
e(q,r,p.playerType)},function(q,r){g.oR(p.videoData)&&p.ma(q,r)});
g.P(this,this.Ih);g.P(this,this.Oc);aZa(this,m);this.videoData.subscribe("dataupdated",this.oda,this);this.videoData.subscribe("dataloaded",this.lP,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.Jv,this);this.TJ();VVa(this.Nf);this.visibility.subscribe("visibilitystatechange",this.Nf);this.VO=new g.Ep(this.hN,g.UD(this.Y.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.yJ=
new g.Ep(this.hN,g.UD(this.Y.experiments,"html5_player_att_retry_delay_ms")||4500,this)};
DH=function(a){return a.L("html5_not_reset_media_source")&&!a.Qi()&&!a.videoData.isLivePlayback&&g.QR(a.videoData)&&!a.Y.supportsGaplessShorts()};
aZa=function(a,b){if(a.playerType===2||a.Y.xq)b.CV=!0;var c=BKa(b.Qb,b.pD,a.Y.D,a.Y.N);c&&(b.adFormat=c);a.playerType===2&&(b.mj=!0);if(a.isFullscreen()||a.Y.D)c=g.mt("yt-player-autonavstate"),b.autonavState=c||(a.Y.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&PW(a,b.endSeconds)};
cZa=function(a){if(a.videoData.W){var b=a.bd.Qc();a.videoData.qw=a.videoData.qw||(b==null?void 0:b.rQ());a.videoData.uw=a.videoData.uw||(b==null?void 0:b.uQ())}if(eMa(a.videoData)||!uMa(a.videoData))b=a.videoData.errorDetail,a.Qf(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.zo||void 0);a.videoData.Vf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&bZa(a);a.L("html5_enable_d6de4")&&a.II();if(a.L("html5_ssap_cleanup_player_switch_ad_player")||
a.L("html5_ssap_cleanup_ad_player_on_new_data"))if(b=a.bd.xd())a.EX=b.clientPlaybackNonce};
dZa=function(a){LXa(a.FB);g.vg(a.FB);for(var b=a.GB,c=g.w(b.j.values()),d=c.next();!d.done;d=c.next())LXa(d.value);b.j.clear();g.vg(a.GB)};
eZa=function(a){return a.mediaElement&&a.mediaElement.Gw()?a.mediaElement.Ib():null};
$W=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;a.U().K&&a.U().houseBrandUserStatus&&a.ma("hbut",{status:a.U().houseBrandUserStatus});if(a.videoData.ye())return!0;a.Qf("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.aX=function(a,b){(b=b===void 0?!1:b)||g.oR(a.videoData)||zW(a.Sb());a.Ou=b;!$W(a)||a.Uq.Ru()?g.hE(a.Y)&&a.videoData.isLivePlayback&&a.Uq.Ru()&&!a.Uq.finished&&!a.Ou&&a.lP():(a.Uq.start(),b=a.Sb(),g.QK(b.provider),b.qoe&&XWa(b.qoe),a.lP())};
fZa=function(a){var b=a.videoData;ZYa(a).then(void 0,function(c){a.videoData!==b||b.Ia()||(c=cG(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Qf(c.errorCode,2,unescape(a.videoData.errorReason),$F(c.details),a.videoData.errorDetail,a.videoData.zo||void 0):a.handleError(c))})};
gZa=function(a,b){a.Yc=b;a.ra&&VUa(a.ra,new g.TV(b))};
jZa=function(a){if(!g.U(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Tq=g.ac(a.videoData.Ca),g.FR(a.videoData)){a.Hb.tick("bpd_s");bX(a).then(function(){a.Hb.tick("bpd_c");if(!a.Ia()){a.Ou&&(a.Ec(QH(QH(a.playerState,512),1)),YW(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&PW(a,c.endSeconds);a.Uq.finished=!0;cX(a,"dataloaded");a.Ts.Ru()&&hZa(a);AWa(a.Sk,a.Of)}});
a.L("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Qj.toFixed(3)},!0);var b=vMa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);iZa(a)}else cX(a,"dataloaded")};
bX=function(a){dX(a);a.Of=null;var b=cYa(a.Y,a.videoData,a.zi());a.tH=b;a.tH.then(function(c){kZa(a,c)},function(c){a.Ia()||(c=cG(c),a.visibility.isBackground()?(eX(a,"vp_none_avail"),a.tH=null,a.Uq.reset()):(a.Uq.finished=!0,a.Qf(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",$F(c.details))))});
return b};
cW=function(a){a.logger.debug("Updating for format change");bX(a).then(function(){return YW(a)});
a.playerState.isOrWillBePlaying()&&a.playVideo()};
kZa=function(a,b){if(!a.Ia()&&!b.videoData.Ia()){a.logger.debug("finished building playback data");a.Of=b;tYa(a.Oc,a.Of);if(a.videoData.isLivePlayback){var c=lZa(a.bd.fv,a.videoData.videoId)||a.ra&&!isNaN(a.ra.Aa);c=a.L("html5_onesie_live")&&c;NW(a)||a.videoData.Bb>0&&!nR(a.videoData)||c||a.seekTo(a.Vd(),{Xc:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&sMa(a.videoData)){a.handleError(new aG("fmt.missing",{missabrurl:"1"},2));return}a.ra?
g.qx(Error("Duplicated Loader")):(c=g.UD(a.Y.experiments,"html5_onesie_defer_content_loader_ms"))&&PV(a)&&lZa(a.bd.fv,a.videoData.a5)?g.Ur(function(){a.Ia()||a.ra||mZa(a)},c):mZa(a)}else!a.videoData.C.j&&UR(a.videoData)&&a.jM(new IU(a.videoData.videoId||"",4));
fX(a);tWa(b).then(function(){var d={};a.Cp(d);a.Y.Vb()&&a.L("html5_log_media_perf_info")&&a.ma("av1Info",d);XW(a)})}};
nZa=function(a){a.logger.debug("start readying playback");a.L("html5_enable_ssap_autoplay_debug_logging")&&a.ma("ssap",{strdypb:1});a.mediaElement&&a.mediaElement.activate();g.aX(a);$W(a)&&!g.U(a.playerState,128)&&(a.Ts.Ru()||(a.Ts.start(),a.videoData.jk?a.Ec(QH(a.playerState,4)):a.Ec(QH(QH(a.playerState,8),1))),hZa(a))};
hZa=function(a){a.Ia();a.logger.debug("try finish readying playback");if(a.Ts.finished)a.logger.debug("already finished readying");else if(a.Uq.finished)if(g.U(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Tq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Tq});
else if(a.Ih.started||YXa(a.Ih),a.Lo())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ra&&(a.OZ=dQa(a.ra.timing));a.Ts.finished||(a.Ts.finished=!0);var b=a.L("html5_onesie_live")&&a.ra&&!isNaN(a.ra.Aa);!a.videoData.isLivePlayback||a.videoData.Bb>0&&!nR(a.videoData)||b||NW(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{Xc:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.eU=!0));GXa(a.Sb());a.logger.debug("finished readying playback");
a.publish("playbackready",a);IA("pl_c",a.Hb.timerName)||(a.Hb.tick("pl_c"),KA("pl_c",void 0,"video_to_ad"));IA("pbr",a.Hb.timerName)||(a.Hb.tick("pbr"),KA("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
RW=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Ec(b?new g.NH(14):new g.NH)};
PW=function(a,b){a.Rr&&oZa(a);a.Rr=new g.KE(b*1E3,0x7ffffffffffff);a.Rr.namespace="endcr";a.addCueRange(a.Rr)};
oZa=function(a){a.removeCueRange(a.Rr);a.Rr=null};
pZa=function(a,b,c,d,e){var f=a.Sb(e),h=g.oR(a.videoData)?f.getVideoData():a.videoData;h.B=c;var l=g.gX(a);c=new jWa(h,c,b,l?l.itag:"",d);a.Y.experiments.bb("html5_refactor_sabr_video_format_selection_logging")?(c.videoId=e,a.OI=c):f.cC(c);e=a.Sk;e.B=0;e.j=0;a.publish("internalvideoformatchange",h,b==="m")};
g.gX=function(a){var b=hX(a);return iM(b)||!a.Of?null:g.Ub(a.Of.j.videoInfos,function(c){return b.D(c)})};
hX=function(a){if(a.Of){var b=a.Sk;var c=a.Of;a=a.Hx();if(b.ea.ej().isInline())var d=ZQ;else b.L("html5_exponential_memory_for_sticky")?d=HP(b.Y.uf,"sticky-lifetime")<.5?"auto":jM[RL()]:d=jM[RL()],d=g.hM("auto",d,!1,"s");if(iM(d)){if(d=lWa(b,c).compose(qWa(b,c)).compose(sWa(b,c)).compose(yWa(b,c.videoData)).compose(zWa(b,c.videoData,c)).compose(fW(b,c)).compose(oWa(b,c)),iM(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(pWa(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(fW(b,c))),
b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(pWa(b,c)));d=d.compose(oWa(b,c));b=c.videoData.nD.compose(d).compose(c.videoData.z0).compose(a)}else b=ZQ;return b};
KTa=function(a){var b=a.Sk;a=a.videoData;var c=yWa(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(zWa(b,a));return c};
g.qZa=function(a,b,c,d){var e=b.j,f=b.reason;if(a.L("html5_enable_qoe_video_format_intent")){var h;if((h=a.Sb().qoe)!=null&&!(e<=0)){var l=g.QK(h.provider);g.jW(h,l,"vfi",[e+"p",f])}}a.videoData.nD=b;if(a.Of&&c&&(c=a.Sk,e=a.Of,e.j.j&&(f=RL(),h=e.j.videoInfos[0].video.j,!(f>h&&h!==0&&b.j===h)))){var m;f=nWa(c,(m=e.j)==null?void 0:m.videoInfos);m=c.ea.getPlaybackRate();m>1&&f&&(m=sJa(c.Y.G,e.j.videoInfos,m),b.j!==0&&m<b.j&&c.ea.setPlaybackRate(1));var n,p;b=g.mG[kM(b)];m=((n=e.videoData.B)==null?void 0:
(p=n.video)==null?void 0:p.j)||0;g.lt("yt-player-quality",{quality:b,previousQuality:m},31104E3);c.Y.schedule.policy.C=RL()>=480;if(c.L("html5_exponential_memory_for_sticky")){n=c.Y.uf;p=1;var q=q===void 0?!1:q;LJa(n,"sticky-lifetime");n.values["sticky-lifetime"]&&n.us["sticky-lifetime"]||(n.values["sticky-lifetime"]=0,n.us["sticky-lifetime"]=0);q&&HP(n,"sticky-lifetime")>.0625&&(p=n.us["sticky-lifetime"]*2);n.values["sticky-lifetime"]+=1*Math.pow(2,n.j/p);n.us["sticky-lifetime"]=p;n.D.start()}if(c.L("html5_perf_cap_override_sticky")){q=
c.C;n=c.L("html5_perserve_av1_perf_cap");n=n===void 0?!1:n;if(n===void 0?0:n){p=TL();b=g.w(Object.keys(p));for(c=b.next();!c.done;c=b.next())c=c.value,c.indexOf("1")!==0&&delete p[c];g.lt("yt-player-performance-cap",p,2592E3)}else g.nt("yt-player-performance-cap");qCa(n);if(n){n=g.w(DO.keys());for(p=n.next();!p.done;p=n.next())p=p.value,p.startsWith("1")||DO.delete(p);n=g.w(eW.values());for(p=n.next();!p.done;p=n.next())p=p.value,p.startsWith("1")||eW.delete(p);n=g.w(q.keys());for(p=n.next();!p.done;p=
n.next())p=p.value,p.startsWith("1")||q.delete(p)}else DO.clear(),eW.clear(),q.clear()}}a.ra&&(q=a.ra,d=d||"",q.policy.j?vU(q.B.j,d):vU(q.j.G,d));fX(a)};
bZa=function(a){a.videoData.Nw="";a.videoData.videoId?a.bd.kQ(a.videoData.videoId).then(function(b){a.videoData.Nw=b;a.publish("contentPoTokenReady",a.videoData,!0)}):a.ma("pomvid",{})};
fX=function(a){if(!a.Ia()&&!g.U(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)XW(a);else{var b=hX(a),c=a.videoData;a:{var d=a.videoData.kd;if(b.j){for(var e=g.w(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.mG[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.Ya=d;pZa(a,b.reason,rZa(a,a.videoData.Ya))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Oc.N=!1,a.playVideo()}};
XW=function(a){if(a.videoData.C&&a.videoData.C.j){var b=hX(a);a.ra&&AUa(a.ra,b)}};
sZa=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.$t&&((b=a.videoData.B)==null?0:yG(b)))};
tZa=function(a){if(!sZa(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)};
vZa=function(a){var b=uZa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Yb.getName()===b})};
uZa=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}};
wZa=function(a){var b,c=a.videoData.getAvailableAudioTracks(),d=a.videoData.hga;d&&(b=c.find(function(f){return f.getLanguageInfo().id===d}));
if(a.Y.experiments.bb("enable_audio_description_setting")&&g.ut(g.tt(),198)){c=g.w(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.G){b=e;break}}b||(a=a.getAudioTrack(),b=a.Yb.isDefault?void 0:a);return b};
mZa=function(a){for(var b=a.videoData.j,c=g.w(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.Y.j.c,cver:a.Y.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;for(var f=g.w(Object.values(b.j)),h=f.next();!h.done;h=f.next())CEa(h.value.resource,d,e);f=void 0;(f=b.Z)==null||CEa(f,d,e)}c=a.Y;d=a.videoData;b=new g.aSa(c);e=$Ra({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,iG:d.iG});b.N=e;b.Ca=d.maxReadAheadMediaTimeMs/1E3||b.Ca;e=c.schedule;e.C.Qg()===
e.policy.B?b.Gb=10:b.Gb=d.minReadAheadMediaTimeMs/1E3||b.Gb;b.Jj=d.readAheadGrowthRateMs/1E3||b.Jj;b.Qn=!GH();g.hE(c)||!GH()?(e=c.experiments,b.Ta=8388608,b.rb=524288,b.Cm=5,b.Va=1048576,b.Nw=1.5,b.qb=4587520,ys()&&(b.qb=786432),b.Z*=1.1,b.qa*=1.1,b.le=!0,b.Vf=e.bb("persist_disable_player_preload_on_tv")||e.bb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.Z*=1.3,b.qa*=1.3);g.fG&&g.us("crkey")&&(e=c.j.cmodel==="CHROMECAST/ANCHOVY",b.Ta=20971520,b.rb=1572864,e&&(b.qb=812500,b.rl=
1E3,b.zx=5,b.Va=2097152));g.OO&&(b.le=!0);c.supportsGaplessAudio()||(b.Lp=!1);mP&&(b.Ad=!0);b.nf=c.L("html5_peak_shave");d.fetchType==="onesie"&&c.L("html5_disable_peak_shave_for_onesie")&&(b.nf=!1);var l;e=(l=d.j)==null?void 0:rM(l);if(nR(d)){b.Af=!0;b.Wk=!0;b.Tb=!0;b.jk=!0;b.Rw=!0;if(d.latencyClass==="ULTRALOW"||d.latencyClass==="LOW"&&!c.L("html5_disable_low_pipeline"))b.xq=2,b.Kq=4;b.Bk=d.defraggedFromSubfragments;if(d.If||c.L("html5_publish_all_cuepoints"))b.yw=!0;g.IR(d)&&(b.Bb=!1);b.Jm=g.fE(c)}d.isAd()&&
(b.bl=0,b.Yq=0);b.Pj=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&d.latencyClass==="ULTRALOW";b.C=/^rq/.test(d.clientPlaybackNonce)||c.Vb();Gs()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.le=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.UD(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.oa.C=nR(d)?.5:0;if(!l.policy.D&&f&&(l=l.C,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.Sm=!0;l.G=BJa(l)}d.isLivePlayback&&(b.il=g.UD(c.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,b.Kb=!1);yR(d)&&
(b.Pj=!0,d.latencyClass==="LOW"?b.Pc=g.UD(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):d.latencyClass==="ULTRALOW"&&(b.Pc=g.UD(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.Br=!0);d.Wb()&&(b.Im=1.3);b.Ad=b.Ad||d.BD;b.B=g.oR(d);b.ib=d.W||b.B&&!c.L("html5_enable_ssap_seteos");c.Vb()&&(b.Ua=!0);d.W&&!e&&(b.Ow=!0);d.W&&d.isAd()&&(b.Z*=1.6,b.qa*=1.6);UR(d)&&(b.D=d.videoId,b.Am=!0,b.Ww=100,d.ow&&d.ow.length>0&&(b.Uf=d.ow));b.Zh=d.ql;b.Cj=FO(c,{},d.C||void 0,JLa(d));
b.kb=wR(d)&&g.vz(c);gR(d)&&(c.L("html5_sabr_report_partial_segment_estimated_duration")&&(b.Kw=!0),b.j=!0,b.Jw=c.L("html5_remove_stuck_max_buffer_slices"),b.Op=c.L("html5_sabr_enable_utc_seek_requests"),b.Mp=c.L("html5_sabr_enable_live_clock_offset"),b.Sn=c.L("html5_disable_client_resume_policy_for_sabr"),b.Uw=c.L("html5_trigger_loader_when_idle_network"),b.nw=c.L("html5_sabr_parse_live_metadata_playback_boundaries"),b.ow=c.L("html5_enable_platform_backpressure_with_sabr"),b.Yi=c.L("html5_consume_onesie_next_request_policy_for_sabr"),
b.Lw=c.L("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.gq=c.L("html5_log_high_res_buffer_timeline"),b.Yw=c.L("html5_gapless_sabr_btl_last_slice")&&vR(d),nR(d)?(b.Tn=c.L("html5_disable_variability_tracker_for_live"),b.Ya=c.L("html5_sabr_use_accurate_slice_info_params")):b.qc=c.L("html5_probe_request_on_sabr_request_progress"),b.ww=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"),b.Ee=c.L("html5_flush_index_on_updated_timestamp_offset"),
b.Aa=c.L("html5_enable_sabr_request_pipelining")&&!g.oR(d),b.Yk=c.L("html5_ignore_partial_segment_from_live_readahead"),b.hx=c.L("html5_use_non_active_broadcast_for_post_live"),b.Ja=c.L("html5_use_centralized_player_time"),b.Zi=c.L("html5_consume_onesie_sabr_seek"),b.W=c.L("html5_enable_sabr_seek_loader_refactor"),b.Xw=c.L("html5_update_segment_start_time_from_media_header"),b.G&&(b.Qw=c.L("html5_reset_server_stitch_state_for_non_sabr_seek"),b.Iw=c.L("html5_remove_ssdai_append_pause"),b.Ka=c.L("html5_consume_ssdai_info_with_streaming"),
b.ql=c.L("html5_process_all_cuepoints")));b.K=b.j&&c.L("html5_sabr_live");wM(c.G,xM.BITRATE)&&(b.qb=NaN);if(l=g.UD(c.experiments,"html5_request_size_max_kb"))b.Va=l*1024;c.G.D?b.ge="; "+xM.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.ge="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.Co=!0,bSa(b,l.playbackStartPolicy,2));l=wZa(a);a.iC.removeAll();a:{c=a.bd.fv;if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);
c=e;break a}c=void 0}a.ra=new g.OV(a,a.Y.schedule,b,a.videoData.j,a.videoData.C,hX(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Ua);b=a.Ou&&g.hE(a.Y)&&a.videoData.isLivePlayback;a.ra.initialize(a.getCurrentTime(),hX(a),b);a.videoData.probeUrl&&(a.ra.Ta=a.videoData.probeUrl);if(a.Tq.length||a.Ou)a.videoData.cotn||iX(a,!1);vYa(a.Oc,a.ra);a.Yc&&VUa(a.ra,new g.TV(a.Yc));a.ub&&(a.ra.hI(a.ub),a.Oc.N=!1);g.VR(a.videoData)&&(a=a.ra,a.policy.Qj=a.policy.WI)};
dX=function(a){a.ra&&(a.ra.dispose(),a.ra=null,vYa(a.Oc,null));DH(a)?xZa(a):jX(a)};
xZa=function(a){if(a.Pa)if(a.logger.debug("release media source"),a.BA(),a.Pa.G)try{a.Y.Vb()&&a.ma("rms",{l:"vprms",sr:DH(a),rs:FH(a.Pa)});a.Pa.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Pa);a.Pa=null}catch(c){b=new g.At("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=cG(b),a.handleError(b),jX(a)}else jX(a)};
jX=function(a,b){b=b===void 0?!1:b;a.Pa&&(a.logger.debug("remove media source"),Dxa(a.Pa),a.BA(b),a.Pa.dispose(),a.Pa=null)};
zZa=function(a,b){b=b===void 0?!1:b;if(a.Pa)return a.Pa.C;a.logger.debug("update media source");a:{b=b===void 0?!1:b;try{g.ws()&&a.videoData.zR()&&Fxa(a.mediaElement);var c=a.mediaElement.Yr(a.Ex(),a.sQ())}catch(e){if(cWa(a.Jl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",e);a.Qf("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}yZa(a,c,!1,!1,b)}var d;return((d=a.Yr())==null?void 0:d.C)||null};
yZa=function(a,b,c,d,e){function f(h){try{AZa(a,h,c,d)}catch(l){g.qx(l),a.handleError(new aG("fmt.unplayable",{msi:"1",ename:l&&typeof l==="object"&&"name"in l?String(l.name):void 0},1))}}
c=c===void 0?!1:c;d=d===void 0?!1:d;BZa(a,e===void 0?!1:e);a.Pa=b;DH(a)&&FH(a.Pa)==="open"?f(a.Pa):yxa(a.Pa,f)};
BZa=function(a,b){b=b===void 0?!1:b;if(a.ra){var c=a.getCurrentTime()-a.zc();a.ra.seek(c,{Es:b}).fl(function(){})}else mZa(a)};
AZa=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Pa&&(!b||a.Pa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&nR(a.videoData)&&(e=25200);if(a.Pa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
f>a.Pa.getDuration()&&CZa(a,f)}else CZa(a,e);xUa(a.ra,a.Pa,c,d);a.publish("mediasourceattached")}};
CZa=function(a,b){if(a.Pa){a.Pa.qr(b);var c;(c=a.ra)!=null&&c.policy.Ja&&(c.G=b)}};
CUa=function(a,b){pZa(a,b.reason,b.j.info,b.token,b.videoId)};
SV=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;var e,f,h;return g.J(function(l){if(l.j==1){a.ra&&a.ra.Px();a.ra&&a.ra.Ia()&&dX(a);if(a.L("html5_enable_vp9_fairplay")&&a.Qi()&&(e=a.videoData.j)!=null)for(var m in e.j)e.j.hasOwnProperty(m)&&(e.j[m].j=null,e.j[m].C=!1);a.Ec(QH(a.playerState,2048));a.L("html5_ssap_keep_media_on_finish_segment")?a.publish("newelementrequired",d):a.publish("newelementrequired");return b?g.G(l,bX(a),2):l.Ea(2)}a.videoData.Wb()&&((f=a.ra)==null?
0:f.Aa)&&!NW(a)&&((h=a.isAtLiveHead())&&lR(a.videoData)?a.seekTo(Infinity,{Xc:"videoPlayer_getNewElement"}):a.videoData.Wd&&a.ra&&(m=a.ra,m.manifest.Wb&&(m.manifest.Wd||m.manifest.D||m.manifest.isPremiere?(m.seek(0,{Xc:"loader_resetSqless"}),m.videoTrack.N=!0,m.audioTrack.N=!0,m.videoTrack.G=!0,m.audioTrack.G=!0):AO(m.manifest)&&lV(m))));c&&a.seekTo(0,{seekSource:105});g.U(a.playerState,8)&&a.playVideo(!1,d);g.va(l)})};
kX=function(a,b){a.ma("hgte",{ne:+b});a.videoData.W=!1;b&&SV(a);a.ra&&tUa(a.ra)};
DZa=function(a,b){a.ma("newelem",{r:b});SV(a)};
EZa=function(a,b){a.Hb.D.xS();g.U(a.playerState,32)||(a.Ec(QH(a.playerState,32,b==null?void 0:b.seekSource)),g.U(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Rc()};
DYa=function(a,b){b=b==null?void 0:b.seekSource;g.U(a.playerState,32)?(a.Ec(SH(a.playerState,16,32,b)),a.publish("endseeking",a)):g.U(a.playerState,2)||a.Ec(QH(a.playerState,16,b));a.Hb.D.CS(a.videoData,a.playerState.isPaused())};
FZa=function(a,b){a.Y.experiments.bb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.cM(),b&&a.Qf("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
GZa=function(a){var b=0,c="";if(a.Yc){if(a.Yc.uo)return"D,";b=a.Yc.qQ();c=a.Yc.Nl().substring(0,4)}else a.ub&&(b=a.ub.qQ(),c=a.ub.Nl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
cX=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)};
HZa=function(a){for(var b=g.w("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.kD.T(a.mediaElement,c.value,a.rM,a);a.Y.Jm&&a.mediaElement.Gw()&&(a.kD.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.Oaa,a),a.kD.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.Paa,a))};
JZa=function(a){g.Xr(a.FM);IZa(a)||(a.FM=g.Vr(function(){return IZa(a)},100))};
IZa=function(a){var b=a.mediaElement;b&&a.XL&&!a.videoData.Aa&&!IA("vfp",a.Hb.timerName)&&b.zl()>=2&&!b.isEnded()&&LG(b.Kh())>0&&a.Hb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Aa&&b.getDuration()>0&&(b.isPaused()&&b.zl()>=2&&LG(b.Kh())>0&&(IA("pbp",a.Hb.timerName)||a.Hb.tick("pbp"),!a.videoData.jk||a.K1||b.isSeeking()||(a.K1=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),CW(a.SE,b))?(KZa(a),!0):!1};
KZa=function(a){g.Xr(a.FM);a.zy.stop();a.videoData.Aa=!0;a.Y.Lp=!0;a.Y.Gb=0;var b=a.Jl;if(b.videoData.B){var c=b.Ba.G,d=b.videoData.B.jb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();LZa(a);g.U(a.playerState,8)&&a.Ec(RH(a.playerState,65));a.Ou=!1;HXa(a.Sb());g.Fp(a.VO);a.publish("playbackstarted");(a=g.Pa("yt.scheduler.instance.clearPriorityThreshold"))?a():Jt(0,0)};
LZa=function(a){var b=a.bd.xd(),c={},d={};!IA("pbs",a.Hb.timerName)&&uA.measure&&uA.getEntriesByName&&(uA.getEntriesByName("mark_nr")[0]?gua("mark_nr"):gua());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);a.mediaElement&&a.mediaElement.isPaused()&&(d.isPausedOnLoad=!0);d.itag=b.B?Number(b.B.itag):-1;b.Pc&&(d.preloadType=String(a.OZ?2:1));c.liveStreamMode=MZa[DR(b)];c.playerInfo=d;a.Hb.infoGel(c);if(a.ra){b=a.ra.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 e in b)b.hasOwnProperty(e)&&a.Hb.tick(e,b[e])}};
NZa=function(a,b,c,d){b=(b+(a.YJ===3?.3:0))/c;c=Math.floor(b*4);c>a.YJ&&(a.ma("vpq",{q:c,cpn:d||a.videoData.clientPlaybackNonce,ratio:b.toFixed(3)}),a.YJ=c)};
OZa=function(a){a.Sb().Eg();if(lR(a.videoData)&&Date.now()>a.A_+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&tO(a.videoData.j))){var b=a.Sb();if(b.qoe){b=b.qoe;var c=b.provider.ea.ZF(),d=g.QK(b.provider);UWa(b,d,c);c=c.C;isNaN(c)||g.jW(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.fE(b.U())?!0:g.dQ(b.U())?b.ll==="6":!1):b=g.fE(a.Y);b&&a.ma("rawlat",{l:UW(a.NU,"rawlivelatency").toFixed(3)});a.A_=Date.now()}a.videoData.B&&yG(a.videoData.B)&&(b=eZa(a))&&b.videoHeight!==
a.MR&&(a.MR=b.videoHeight,pZa(a,"a",rZa(a,a.videoData.Ya)))};
rZa=function(a,b){if(b.j.video.quality==="auto"&&yG(b.getInfo())&&a.videoData.kd)for(var c=g.w(a.videoData.kd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.MR&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()};
$Ya=function(a){if(!lR(a.videoData))return NaN;var b=0;a.ra&&a.videoData.j&&(b=nR(a.videoData)?a.ra.YE.Qg()||0:a.videoData.j.Ca);return(0,g.hu)()/1E3-a.df()-b};
QZa=function(a){a.mediaElement&&a.mediaElement.zi()&&(a.wL=(0,g.hu)());a.Y.Sq?g.Ur(function(){PZa(a)},0):PZa(a)};
PZa=function(a){var b;if((b=a.Pa)==null||!b.qn()){if(a.mediaElement)try{a.EM=a.mediaElement.playVideo()}catch(d){eX(a,"err."+d)}if(a.EM){var c=a.EM;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.U(a.playerState,4)&&!g.U(a.playerState,256)&&a.EM===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);eX(a,e);a.KX=!0;a.videoData.Xf=!0}})}}};
eX=function(a,b){g.U(a.playerState,128)||(a.Ec(SH(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
YW=function(a,b){b=b===void 0?!1:b;if(!a.mediaElement||!a.videoData.C)return!1;var c=b;c=c===void 0?!1:c;var d=null;var e;if((e=a.videoData.C)==null?0:e.j){d=zZa(a,c);var f;(f=a.ra)==null||f.resume()}else dX(a),a.videoData.Ya&&(d=a.videoData.Ya.UD());e=a.mediaElement.jJ();c=!1;e&&d!==null&&d.resource===e.resource||(RZa(a,d),c=!0);g.U(a.playerState,2)||(d=a.Oc,b=b===void 0?!1:b,d.G||!(d.D>0)||d.mediaElement&&d.mediaElement.getCurrentTime()>0||(b={Xc:"seektimeline_resumeTime",Es:b},d.videoData.Aa||
(b.seekSource=15),d.seekTo(d.D,b)));a:{b=c;if(gR(a.videoData)){if(!a.videoData.Qi())break a}else if(!g.CR(a.videoData))break a;if(a.mediaElement)if((d=a.videoData.G)&&a.mediaElement.Gw()){e=a.mediaElement.Ib();if(a.Fe)if(e!==a.Fe.element)lX(a);else if(b&&d.flavor==="fairplay"&&!xs())lX(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&xs()&&d.flavor==="widevine")a.Qf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Fe=new MVa(e,a.videoData,
a.Y);a.Fe.subscribe("licenseerror",a.iM,a);a.Fe.subscribe("qualitychange",a.Fba,a);a.Fe.subscribe("heartbeatparams",a.eH,a);a.Fe.subscribe("keystatuseschange",a.Oq,a);a.Fe.subscribe("ctmp",a.ma,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Fe.Qy(new HU(SZa,"cenc",!1));b=g.w(a.iC.keys);for(d=b.next();!d.done;d=b.next())d=a.iC.get(d.value),a.Fe.Qy(d);a.L("html5_eme_loader_sync")||a.iC.removeAll()}}else a.Qf("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1")}return c};
RZa=function(a,b){a.Hb.tick("vta");KA("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&zYa(a.Oc,a.getCurrentTime());a.mediaElement.activate(b);a.Pa&&Jt(0,4);!a.videoData.Aa&&a.playerState.isOrWillBePlaying()&&a.zy.start();if(sZa(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
lX=function(a){a.Fe&&(a.Fe.dispose(),a.Fe=null)};
mX=function(a,b){b=b===void 0?!1:b;lR(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Eq()||g.IR(a.videoData))?a=a.getCurrentTime():g.oR(a.videoData)&&a.ub?(b=a.ub,a=a.getCurrentTime(),a=(a=TZa(b,a*1E3))?(a.Ni()-a.rf())/1E3:0):a=a.Vd(b);return a};
UZa=function(a){var b=b===void 0?!1:b;a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Pa?(lX(a),jX(a),zZa(a,b)):(a.videoData.Ya&&a.videoData.Ya.hU(),a.mediaElement.stopVideo()),a.playVideo())};
VZa=function(a,b){a.Y.L("html5_log_rebuffer_reason")&&(b={r:b,lact:hw()},a.mediaElement&&(b.bh=KH(a.mediaElement)),a.ma("bufreason",b))};
nX=function(a,b,c,d,e,f,h,l,m){var n;if((n=a.videoData.j)==null?0:n.isLive){var p=c.playerType===2?c:b,q=b.videoData.videoId,r=c.videoData.videoId;if(q&&r){n=a.Sb();if(n.qoe){var t=n.qoe,u=b.cpn,y=c.cpn,A=p.videoData.Qb,C=t.provider.videoData.clientPlaybackNonce,F=t.provider.videoData.videoId,H=y!==C&&r!==F;C=u!==C&&q!==F;t.reportStats();t.adCpn&&t.adCpn!==u||(t.adCpn=C?u:"",t.oa=C?q:"",t.adFormat=C?A:void 0,oW(t,2,h?4:f?2:0,y,r,e),t.reportStats(),t.adCpn=H?y:"",t.oa=H?r:"",t.adFormat=H?A:void 0,
oW(t,2,h?5:f?3:1,u,q,d),t.reportStats())}d=b.cpn;if(n.C.has(d)){if(f=n.C.get(d),wW(f,!0).send(),vW(f),d!==n.provider.videoData.clientPlaybackNonce){zXa(f);var L;(L=n.j)==null||uXa(L);n.C.delete(d)}}else n.Og=n.provider.videoData.clientPlaybackNonce,n.Og&&n.j&&(n.C.set(n.Og,n.j),wW(n.j).send(),vW(n.j));L=c.cpn;p=p.videoData;e-=a.Eu();if(n.C.has(L)){e=n.C.get(L);var N=e.C&&isNaN(e.G)?uW(e):NaN;e=yXa(e,!1);isNaN(N)||(e.K=N);e.send()}else e=OXa(n,n.provider,p,e),n.C.set(L,e),AXa(e,new g.Yy(QH(new g.NH,
8),new g.NH)),tXa(e),(N=n.j)==null||vW(N);n.Og=L;a.L("html5_unify_csi_server_stitched_transition_logging")?WZa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData,l,void 0,m):(n=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===n?"video":"ad")+"_to_"+(c.cpn===n?"video":"ad"),n={},a.K&&(n.cttAuthInfo={token:a.K,videoId:a.videoId}),l&&(n.startTime=l),HA(b,n),g.GA({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),FA("pbs",m!=null?m:(0,g.hu)(),b))}}};
YVa=function(a,b){a.videoData.AV=!0;a.Jd(new aG("qoe.restart",b));SV(a,!0);a.videoData.Bg()&&a.L("html5_reload_caption_on_ssdai_fallback")&&a.bd.NH()};
XZa=function(a,b){if(a.Y.Vb()&&a.mediaElement){var c=a.mediaElement.pc();c.omt=(a.mediaElement.getCurrentTime()+a.zc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.QK(a.Sb().provider)*1E3).toFixed();c.e=b;a.HM[a.L1++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})};
YZa=function(a){if(a.Y.Vb()){a.HM.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.w(a.HM),c=b.next();!c.done;c=b.next())c=c.value,a.ma("vpe",Object.assign({t:c.rt},c));a.HM=[];a.L1=0}};
ZZa=function(a){if(g.us("cobalt")&&g.us("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ma("nxdock",{d:b})}};
$Za=function(a,b,c,d,e){a.ma("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
iX=function(a,b){var c;(c=a.ra)==null||RV(c,b)};
PV=function(a){return g.Wb(a.Tq,"ad")};
ZVa=function(a,b){return g.oR(a.videoData)&&a.ub?a.ub.handleError(b,void 0):!1};
iZa=function(a){jR(a.videoData,"html5_set_debugging_opt_in")&&(a=g.tt(),g.ut(0,183)||(wt(183,!0),a.save()))};
a_a=function(a){return g.oR(a.videoData)&&a.ub?IV(a.ub):a.videoData.Vd()};
aVa=function(a,b){a.bd.vn()||(a.ma("sgap",{f:b}),a.bd.clearQueue(!1,b==="pe"))};
NW=function(a){return gR(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")};
b_a=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);bS(this.api,"isLifaAdPlaying",function(){return b.api.isLifaAdPlaying()});
this.events.T(a,"serverstitchedvideochange",function(){b.api.isLifaAdPlaying()?(b.playbackRate=b.api.getPlaybackRate(),b.api.setPlaybackRate(1)):b.api.setPlaybackRate(b.playbackRate)});
this.playbackRate=this.api.Qc()?this.api.getPlaybackRate():1};
oX=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);bS(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
bS(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
bS(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
c_a=function(a,b,c){var d=a.api.getCurrentTime()*1E3<b?1:-1;a.api.PH(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
f_a=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){d_a(b)});
this.events.T(a,"presentingplayerstatechange",function(){e_a(b)})};
pX=function(a,b){try{navigator.mediaSession.setActionHandler(a,b)}catch(c){}};
d_a=function(a){var b=a.api.getVideoData();if(b!=null&&b.ye()){var c=a.api.U(),d=[],e="";if(!c.qa){var f=g_a(a);g.vz(c)&&f?(d=h_a(f.thumbnailDetails),f.album&&(e=WBa(f.album))):d=[{src:b.nh("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}e_a(a);i_a(a);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.uS(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
pX("nexttrack",b);pX("previoustrack",c)}};
i_a=function(a){pX("play",function(){a.api.playVideo()});
pX("pause",function(){a.api.pauseVideo()});
pX("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
pX("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())});
pX("seekto",function(b){(b=b.seekTime)&&a.api.seekTo(b)})};
g_a=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};
h_a=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.w(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.HE(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
e_a=function(a){a=a.api.getPlayerStateObject();a=a.isCued()||a.isError()?"none":a.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=a};
qX=function(a){dT.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.jG(a);g.P(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.Q(l.compositeVideoOverlay,j_a),e==null?0:(d=e.sources)==null?0:d.length))for(d=g.w(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.IN({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.kf("compositeembargo",1);var e=d==null?void 0:d.gE.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(e==null?0:e.length)?k_a(b,e.filter(function(f){return l_a(b,f)})):(d==null?0:d.cueRanges)&&k_a(b,d.cueRanges.filter(function(f){return l_a(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.ME("compositeembargo"),function(c){var d;if(((d=b.j)==null?void 0:d.id)!==c.id&&(b.api.qp(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.w(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.nw!==f&&(d.nw=f,b.api.Fp());m_a(b,c)}}});
this.events.T(a,g.NE("compositeembargo"),function(c){var d;if(((d=b.j)==null?void 0:d.id)===c.id&&(b.api.qp(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.nw=void 0;b.api.Fp();m_a(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()});
bS(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
m_a=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.vp([a.j],1)),a.j=b)};
k_a=function(a,b){b=g.w(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)))}};
l_a=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.D)};
n_a=function(a){dT.call(this,a);bS(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));bS(this.api,"updateDownloadState",this.updateDownloadState.bind(this));bS(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));bS(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));bS(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));bS(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));bS(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
rX=function(a){dT.call(this,a);var b=this;bS(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
bS(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
o_a=function(a,b,c){var d=[],e=b?156595:151874;a=g.w(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};
p_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++}};
q_a=function(a){var b=new Set,c=new Map,d={};a=g.w(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.w(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};
sX=function(a){dT.call(this,a);var b=this;this.C=1;this.Hb=null;this.Sc={Ioa:function(){return b.C}};
this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"d6de4videobindingchange",function(c){b.II(c)});
this.events.T(a,"csiinitialized",function(){r_a(b)})};
r_a=function(a){if(s_a()){a.Hb=a.api.Lh();a.j=new HH;a.C=2;var b=g.UD(a.api.U().experiments,"html5_d6de4_defer_timeout_ms");a.Hb.pg("pt_pish");b?g.Ur(function(){t_a(a)},b):a.api.L("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){t_a(a)}):t_a(a)}};
t_a=function(a){if(s_a()){a.Hb=a.api.Lh();var b=g.UD(a.api.U().experiments,"html5_d6de4_cloud_project_number");a.Hb.pg("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:b}).then(function(d){a.B=d;var e;(e=a.j)==null||e.resolve();a.Hb.pg("pt_pif")}).catch(function(d){tX(d,"player_start");
a.Hb.pg("pt_pie");var e;(e=a.j)==null||e.reject(d)})}catch(d){tX(d,"player_start_catch");
a.api.ma("pfes",{});var c;(c=a.j)==null||c.reject(d)}}};
u_a=function(a,b){if(a.B&&!a.L("html5_disable_d6de4_mint_debug")){var c=b.videoId;a.C=3;a.Hb.pg("pt_ms");try{a.B.requestToken(c).then(function(d){a.Hb.pg("pt_mf");if(d=sP(d))b.pE={Dda:d}}).catch(function(d){a.Hb.pg("pt_me");
tX(d,"player_generate");a.handleError(d,b)})}catch(d){tX(d,"player_generate_catch"),a.handleError(d,b)}}};
v_a=function(a,b){a.api.L("html5_enable_d6de4_cold_start_and_error")&&(b.pE={coldStartInfo:{clientState:a.C}})};
tX=function(a,b){a.message&&g.qx(Error(b+"_"+a.message))};
s_a=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
uX=function(a){g.S.call(this,{I:"button",La:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[Msa()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.ej(),d=c.subscribe("visibilitystatechange",function(){b.Ra(c.hj())});
this.addOnDisposeCallback(function(){c.Fh(d)});
oS(a,this.element,this);this.Ra(c.hj())};
vX=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()});
g.fQ(this.api.U())&&(this.L("web_enable_auto_pip")||this.L("web_enable_pip_on_miniplayer")||this.L("web_shorts_pip"))&&bS(this.api,"setDocumentPictureInPicture",function(c){b.setDocumentPictureInPicture(c)})};
w_a=function(a){var b=a.api.getVideoData();g.Xx(a.button,b.J1)};
x_a=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);bS(this.api,"musicDisableUi",function(){g.Mp(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
bS(this.api,"musicEnableUi",function(){g.Op(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
yX=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?!1:c;g.S.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.Bb=this.qa=this.Aa=this.G=this.D=this.W=this.expanded=this.enabled=this.Ta=!1;this.ib=new g.Ep(function(){d.badge.element.style.width=""},200,this);
this.Oa=new g.Ep(function(){wX(d);xX(d)},200,this);
this.dismissButton=new g.S({I:"button",La:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.P(this,this.dismissButton);this.C=new g.S({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",va:"{{badgeLabel}}"},this.dismissButton]});g.P(this,this.C);this.Ja=new g.S({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.P(this,this.Ja);this.badge=new g.S({I:c?"div":
"button",La:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.Ja,this.C]});g.P(this,this.badge);this.badge.Ha(this.element);this.oa=new g.Ny(this.badge,250,!1,100);g.P(this,this.oa);this.Ya=new g.Ny(this.C,250,!1,100);g.P(this,this.Ya);this.kb=new g.Dp(this.efa,null,this);g.P(this,this.kb);this.Va=new g.Dp(this.Q8,null,this);g.P(this,this.Va);g.P(this,this.ib);g.P(this,this.Oa);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.fM(!1)});
this.T(this.J,"onShowControls",function(){d.fM(!0)});
this.T(this.badge.element,"click",this.YG);this.T(this.dismissButton.element,"click",this.wv);this.T(this.J,"pageTransition",this.DW);this.T(this.J,"appresize",this.xm);this.T(this.J,"fullscreentoggled",this.xba);this.T(this.J,"cardstatechange",this.bba);this.T(this.J,"annotationvisibility",this.Ofa,this);this.T(this.J,"offlineslatestatechange",this.Pfa,this)};
wX=function(a){g.Qp(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Aa||!a.W)};
xX=function(a,b){var c=a.pN();a.expanded!==c&&(a.expanded=c,b===void 0||b?(a.kb.stop(),a.Va.stop(),a.ib.stop(),a.kb.start()):(g.Xx(a.C,a.expanded),g.Qp(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),a.HL())};
y_a=function(a){var b=a.text||"",c=g.kh("ytp-suggested-action-badge-title",a.element);c&&g.zh(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ua?a.Ua:"")};
zX=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",La:["ytp-panel-back-button-container"],V:[{X:{"aria-label":"Back to previous menu"},I:"button",La:["ytp-button",l]}]},{I:"span",La:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",La:["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.Yx.call(this,h);this.content=
b;d&&h.V?b.Ha(this.element,h.V.length-1):b.Ha(this.element);this.LZ=!1;this.KZ=d;c&&(c=this.Da(l),m=this.Da(m),this.T(c,"click",this.F0),this.T(m,"click",this.F0),this.LZ=!0,e&&(p=this.Da(p),this.T(p,"click",e)));b.subscribe("size-change",this.K0,this);this.T(a,"fullscreentoggled",this.K0);this.J=a};
g.AX=function(a,b,c,d,e,f){b=b===void 0?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.Yx({I:"div",S:"ytp-panel-menu",X:h});zX.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.P(this,this.menuItems)};
g.BX=function(a){for(var b=g.w(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.SS,a);a.items=[];g.th(a.menuItems.element);a.menuItems.publish("size-change")};
z_a=function(a,b){return b.priority-a.priority};
g.CX=function(a,b){g.YS.call(this,a,{I:"div",La:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Gg(0,0);this.listen("keydown",this.u6)};
A_a=function(a){var b=a.j[a.j.length-1];if(b){g.Qm(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Fm(b.element,"width","");g.Fm(b.element,"height","");g.Fm(b.element,"maxWidth","100%");g.Fm(b.element,"maxHeight","100%");g.Fm(b.content.element,"height","");var c=g.Rm(b.element);c.width+=1;c.height+=1;g.Fm(b.element,"width",c.width+"px");g.Fm(b.element,"height",c.height+"px");g.Fm(b.element,"maxWidth","");g.Fm(b.element,"maxHeight","");var d=0;b.LZ&&(d=b.Da("ytp-panel-header"),d=g.Rm(d).height);
var e=0;b.KZ&&(e=b.Da("ytp-panel-footer"),g.Fm(e,"width",c.width+"px"),e=g.Rm(e).height);g.Fm(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.Fm(b.element,"width",c.width+"px")));a.size=c}};
g.DX=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),B_a(a,c,b))};
g.EX=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];B_a(a,b,c,!0)}};
B_a=function(a,b,c,d){C_a(a);b&&(b.unsubscribe("size-change",a.iD,a),b.unsubscribe("back",a.nj,a));c.subscribe("size-change",a.iD,a);c.subscribe("back",a.nj,a);if(a.Eb){g.Mp(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ha(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;A_a(a);g.Qm(a.element,e);a.G=new g.Ep(function(){D_a(a,b,c,d)},20,a);
a.G.start()}else c.Ha(a.element),b&&b.detach()};
D_a=function(a,b,c,d){a.G.dispose();a.G=null;g.Mp(a.element,"ytp-popup-animating");d?(g.Mp(b.element,"ytp-panel-animate-forward"),g.Op(c.element,"ytp-panel-animate-back")):(g.Mp(b.element,"ytp-panel-animate-back"),g.Op(c.element,"ytp-panel-animate-forward"));g.Qm(a.element,a.size);a.K=new g.Ep(function(){g.Op(a.element,"ytp-popup-animating");b.detach();g.Pp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
C_a=function(a){a.G&&g.Gp(a.G);a.K&&g.Gp(a.K)};
FX=function(a){g.CX.call(this,a,"ytp-shopping-product-menu");this.Te=new g.AX(this.J);g.P(this,this.Te);this.hide();g.DX(this,this.Te);g.US(this.J,this.element,4)};
F_a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=E_a(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.eb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
G_a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&E_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.eb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
E_a=function(a,b,c,d,e){b=new g.$S(g.aT({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",H_a(e));b.setIcon(H_a(d));g.P(a,b);a.Te.Tc(b,!0);return b};
H_a=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Fsa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]};
case "OPEN_IN_NEW":return jy()}};
GX=function(a){yX.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.W=!0;this.overflowButton=new g.S({I:"button",La:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.S({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}});
this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.S({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.S({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.P(this,this.banner);this.banner.Ha(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.ME("suggested_action_view_model"),this.vba);this.T(this.J,g.NE("suggested_action_view_model"),this.wba);this.T(this.overflowButton.element,"click",this.v6);this.T(a,"featuredproductdismissed",this.wv);this.J.createServerVe(this.banner.element,this.banner,!0)};
I_a=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.qa=a.isVisible,xX(a),a.xm(),g.Xx(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.Xx(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.Xx(a.overflowButton,a.isVisible))};
HX=function(){GX.apply(this,arguments)};
J_a=function(a){dT.call(this,a);this.j=new HX(this.api);g.P(this,this.j);g.US(this.api,this.j.element,4)};
L_a=function(a){dT.call(this,a);var b=this;this.j="";this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.w(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,"videoplayerreset",function(){b.j&&K_a(b)});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
K_a=function(a){var b=a.api.Qc();b&&(b.getVideoData().hga=a.j)};
g.IX=function(a,b,c,d,e,f,h){g.$S.call(this,g.aT({"aria-haspopup":"true"}),b,a);this.Cb=d;this.N=!1;this.C=null;this.options={};this.B=new g.AX(c,void 0,a,e,f,h);g.P(this,this.B);this.listen("keydown",this.w6);this.listen("click",this.open)};
M_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}};
N_a=function(a,b){g.IX.call(this,"Sleep timer",g.mT.SLEEP_TIMER,a,b);this.J=a;this.W={};this.G=this.MA("Off");this.K=this.j="";a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.S({I:"div",La:["ytp-menuitem-label-wrapper"],V:[{I:"div",va:"End of video"},{I:"div",La:["ytp-menuitem-sublabel"],va:"{{content}}"}]});g.P(this,this.D);this.listen("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Ra);this.T(a,"settingsMenuVisibilityChanged",this.Rca);a.createClientVe(this.element,this,218889);this.Ra();this.J.eb("onSleepTimerFeatureAvailable")};
O_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");c=a.J.getPlaylist();var d;c&&((d=c.listId)==null?void 0:d.type)!=="RD"&&b.push("End of playlist");a.Bl(g.Ql(b,a.MA));a.W=g.mc(b,a.MA,a);b=a.MA("End of video");a.options[b]&&a.options[b].dk(a.D)};
P_a=function(a,b){var c=a.W[b],d=c==="End of video"||c==="End of playlist";c==="Off"&&(a.j="");a.J.getPlayerState()!==0&&a.J.getPlayerState()!==5||!d?(a.G=b,g.IX.prototype.fh.call(a,b),a.Ji(b),a.J.eb("onSleepTimerSettingsChanged",c)):a.J.eb("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
JX=function(a){dT.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new N_a(b.api,b.api.dn()),g.P(b,b.menuItem))});
a.addEventListener("openSettingsMenuItem",function(c){if(c==="menu_item_sleep_timer"){if(!b.menuItem){var d;(d=b.api.dn())==null||d.rd()}b.menuItem.open()}});
bS(a,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()});
bS(a,"setSleepTimerTimeLeft",function(c){b.setSleepTimerTimeLeft(c)});
bS(a,"setVideoTimeLeft",function(c){b.setVideoTimeLeft(c)})};
Q_a=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"onSnackbarMessage",function(c){switch(c){case 1:c=b.api.getPlayerStateObject(),c.isBuffering()&&g.U(c,8)&&g.U(c,16)&&b.api.eb("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",
webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})};
g.LX=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.Qx.call(this);this.W=e;this.N=!1;this.D=new ft(this);this.G=this.K=null;this.C=this.B=!1;g.P(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.mh&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));KX(this)};
MX=function(a){g.ht(a.D,!a.j)};
KX=function(a){a.G=null;a.K=null;a.T(NX("over"),a.Ey);a.T("touchstart",a.tO);a.j&&a.T(NX("down"),a.Daa)};
R_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};
NX=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
OX=function(a){return a&&S_a?eh(a)||document:document};
T_a=function(a,b){g.S.call(this,{I:"div",La:["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.Da("ytp-speedmaster-user-edu");this.updateValue("icon",Esa());g.Mp(this.j,"ytp-speedmaster-has-icon");this.J.createClientVe(this.j,this,173040,!0);this.xi()};
QX=function(a){dT.call(this,a);var b=this;this.D=this.C=!1;this.Oa=g.UD(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Aa=g.UD(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Ka=g.UD(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.jG(a);g.P(this,this.B);this.W="2x";this.speedmasterUserEdu=new T_a(a,this.W);g.P(this,this.speedmasterUserEdu);g.US(this.api,this.speedmasterUserEdu.element,4);this.j=new g.LX(this.api.ob().vA,!0,null,
!1,!0);g.P(this,this.j);this.delay=new g.Ep(this.Fa,this.Oa,this);g.P(this,this.delay);this.B.T(a,"videodatachange",function(){PX(b)},this);
this.B.T(a,"presentingplayerstatechange",function(){PX(b)},this);
this.B.T(a,"autonavvisibility",function(){PX(b)},this);
this.api.ej().subscribe("visibilitystatechange",function(){PX(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.oa=d;U_a(b,c,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(c){U_a(b,c,!1)},this))};
RX=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.xi(),a.api.setPlaybackRate(a.Ca),a.api.showControls(),a.Ja&&a.api.pauseVideo())};
U_a=function(a,b,c){c?b.keyCode!==32||b.repeat||a.C||!a.D||g.Fp(a.delay):RX(a)};
PX=function(a){var b,c;var d=!!a.W&&!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.Hf()&&a.api.getPresentingPlayerType()!==2&&!g.U(a.api.getPlayerStateObject(),2)&&!((c=g.iS(a.api))==null?0:c.Sg())&&!a.api.fd()&&dW(a.api.ej());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.qa,a):(a.j.unsubscribe("dragstart",a.qa,a),a.j.unsubscribe("dragmove",a.K,a),a.j.unsubscribe("dragend",a.G,a),RX(a)))};
V_a=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);bS(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
bS(this.api,"finishSegmentByCpn",function(c,d,e){return b.api.finishSegmentByCpn(c,d,e)});
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.w(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=Hr(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
SX=function(a,b,c){g.bi.call(this,b,a);this.j=c};
g.TX=function(a){IH.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new SX(b,c.type,c))}};
X_a=function(a){var b=a.Qc(),c=a.getVideoData(),d=a.Ge(),e=d.Ib(),f=a.U(),h=b.dG(),l=b.NU,m=UW(l,"bandwidth")*8/1024,n=UW(l,"networkactivity")/1024,p=UW(l,"bufferhealth");if(b.Fe){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Fe.j.getInfo()+"/"+kM(b.Hx());q+="/"+b.Fe.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),u=d.getCurrentTime().toFixed(2),y=HG(d.Kh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.zG?"DS":"SS");q=c.Bg()?q+"LIFA, ":q+"DAI, ";
var A=GZa(b);A&&(q+=A)}pMa(c)&&!c.Bg()&&(q+="LIFAE, ");var C;((C=a.getVideoData(1))==null?0:g.oR(C))?(q+="SSAP, ",(C=GZa(b))&&(q+=C)):gR(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.hd&&(q=f.hd.Ro?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+u+" b:"+y+" ";d.isSeeking()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.QF())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=
c.ZD;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.Dr(AA)("_start",void 0);f=[];t=g.w(["pl_i","vir","or_p","orfb","pbs"]);for(u=t.next();!u.done;u=t.next())u=u.value,(y=g.Dr(AA)(u,void 0))&&q&&(y-=q,f.push(u+":"+Math.round(y)));q=f.join(" ");f=g.eQ();t=g.QS(a).F$;u=c.C&&!c.C.j?"display:none":"";if((y=c.clientPlaybackNonce)&&y.length==16){y+="AAAA";C=0;A="";for(var F=0;F<20;F++)if(C=(C<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(y.charAt(F)),F%5==4){for(var H="",L=0;L<
6;L++)H="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(C&31)+H,C>>=5;A+=H}y=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else y="";m={video_id_and_cpn:String(c.videoId)+" / "+y,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=oMa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.Qj.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.gX(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=W_a(e),!c.D||e.audio&&e.video?e.UL&&(m.codecs+=" / "+e.UL+"A"):m.codecs+=" / "+W_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.w(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.Wd;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(nR(c)?" Manifestless":"");else if(e){N=UW(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=nR(c)?"Manifestless, ":"";c.Ja&&(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()||vR(c)&&b.vn()||(m.playback_categories+="Gapless ");m.playback_categories_style=
m.playback_categories?"":"display:none";m.bandwidth_samples=TW(l,"bandwidth");m.network_activity_samples=TW(l,"networkactivity");m.live_latency_samples=TW(l,"livelatency");m.buffer_health_samples=TW(l,"bufferhealth");b=g.VR(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";jR(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20241008_01_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};
W_a=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
UX=function(a,b,c,d,e){g.S.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"};
VX=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.qh("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.qh("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.w(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="")};
WX=function(a){var b=null;b={I:"button",La:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},va:"[X]"};g.S.call(this,{I:"div",La:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",La:["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",X:{style:"{{shader_info_style}}"},V:[{I:"div",va:"Shader Info"},{I:"span",va:"{{shader_info}}"}]},{I:"div",X:{style:"{{color_style}}"},V:[{I:"div",va:"Color"},{I:"span",va:"{{color}}"}]},{I:"div",X:{style:"{{drm_style}}"},V:[{I:"div",va:"Protected"},{I:"span",va:"{{drm}}"}]},{I:"div",X:{style:"{{bandwidth_style}}"},V:[{I:"div",va:"Connection Speed"},
{I:"span",V:[{I:"span",va:"{{bandwidth_chart}}"},{I:"span",va:"{{bandwidth_kbps}}"}]}]},{I:"div",X:{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",X:{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",X:{style:"{{live_mode_style}}"},V:[{I:"div",va:"Live Mode"},{I:"span",va:"{{live_mode}}"}]},{I:"div",X:{style:"{{playback_categories_style}}"},V:[{I:"div",va:"Playback Categories"},{I:"span",va:"{{playback_categories}}"}]},{I:"div",X:{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",
X:{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",X:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",va:"COTN / Local Media"},{I:"span",va:"{{cotn_and_local_media}}"}]},{I:"div",X:{style:"{{release_style}}"},V:[{I:"div",va:"Player Release"},{I:"span",va:"{{release_name}}"}]}]}]});this.Sa=a;this.position=0;this.G=!0;b?(a=this.Da("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.W={};this.j=new UX(300,1,150,a,b);g.P(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new UX(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.P(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new UX(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.P(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new UX(300,1,150,c,b);g.P(this,this.K);this.updateValue("network_activity_chart",
this.K);this.delay=new g.Ep(this.Ra,500,this);g.P(this,this.delay);this.D=new g.Ep(this.N,2E4,this);g.P(this,this.D)};
$_a=function(a){dT.call(this,a);var b=this;bS(a,"getStatsForNerds",function(){return X_a(b.api)});
cS(a,"showVideoInfo",function(){Y_a(b,!0)});
cS(a,"hideVideoInfo",function(){Y_a(b,!1)});
cS(a,"isVideoInfoVisible",function(){return Z_a(b)})};
Y_a=function(a,b){var c=Z_a(a);a.j||(a.j=new WX(a.api),g.P(a,a.j),g.US(a.api,a.j.element,4));g.Xx(a.j,b);var d=tS(a.api.yb());d&&d.loaded&&c!==b&&d.UU();b&&a.api.ma("sfn",{},!0)};
Z_a=function(a){var b;return!((b=a.j)==null||!b.Eb)};
XX=function(){g.O.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Dp(this.j,null,this);g.P(this,this.delay)};
a0a=function(a,b){if(b.I==="path")return b.X.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&typeof d!=="string"&&(d=a0a(a,d)))return d}};
e0a=function(a,b,c){c=a0a(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Tx();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=b0a(e),m=b0a(c);c0a(a,function(n){d.setAttribute("d",d0a(l,m,n))},200)};
c0a=function(a,b,c){a.B=b;a.startTime=(0,g.hu)();a.duration=c;a.j()};
b0a=function(a){var b=[];a=a.match(f0a);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};
d0a=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};
YX=function(a){g.S.call(this,{I:"button",La:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},va:"{{icon}}"});this.api=a;this.Ik=null;this.transition=new XX;g.P(this,this.transition);this.T(a,"sizestylechange",this.Ra);this.T(a,"fullscreentoggled",this.Ra);this.T(a,"presentingplayerstatechange",this.Ra);a.createClientVe(this.element,this,139116);this.Ra();this.listen("click",this.onClick);oS(a,this.element,
this)};
g0a=function(a){dT.call(this,a);var b=this;this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new YX(a);g.P(b,b.button);a.eA(b.button)})};
h0a=function(a){dT.call(this,a);var b=this;cS(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
cS(this.api,"setPlaybackRate",function(c){typeof c==="number"&&b.api.setPlaybackRate(c)})};
i0a=function(a){var b=!1;a.GP(150);a.wpc.f().finally(function(){b=!0});
return{isReady:function(){return b},
qv:function(c){return a.qv({Hj:c.Hj,hS:!0,iS:!0,ai:c.ai?{kx:c.ai.kx,hA:c.ai.hA,aD:c.ai.aD}:void 0})},
ready:function(){return g.J(function(c){if(c.j==1)return g.wa(c,2),g.G(c,a.wpc.f(),4);if(c.j!=2)return g.xa(c,0);g.ya(c);g.va(c)})},
start:function(){}}};
$X=function(a){dT.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Hb=null;this.D=!1;this.B=null;this.C=!1;var c=a.U().getWebPlayerContextConfig();this.events=new g.jG(a);g.P(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.uj=d.uj;a.U().Vb()&&b.api.ma("sps",{status:b.uj||""});if(b.L("html5_handle_sps_status"))if(b.uj===1)b.api.QC(0);else if(b.uj===2||b.uj===3)if(b.D&&!b.B&&j0a(b),b.uj===3){var e=b.api.Ho();e++;var f;d=(f=d.l2)!=null?f:Infinity;if(e<d){b.api.LB(!0);var h;
(h=b.B)==null||h.then(function(){b.api.LB(!1)});
b.api.QC(e)}else b.api.Qf("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
this.events.T(a,"spsumpreject",function(d,e){b.C=e;d&&b.D&&!b.B&&j0a(b);b.B||b.api.ma("stp",{s:+b.D,b:+b.C})});
this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Hb=a.Lh();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{if(b.L("html5_use_shared_owl_instance"))k0a(b);else if(d){b.Hb.pg("pot_isc");l0a(b);var e=g.UD(b.api.U().experiments,"html5_webpo_kaios_defer_timeout_ms");e?g.Ur(function(){ZX(b)},e):b.L("html5_webpo_idle_priority_job")?g.Ft(g.Ht(),function(){ZX(b)}):ZX(b)}}catch(f){f instanceof
Error&&g.qx(f)}});
a.oU(this)};
m0a=function(a){var b=kP(a.experiments,"html5_web_po_request_key");return b?b:g.hE(a)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
k0a=function(a){var b,c;g.J(function(d){if(d.j==1)return a.K=Iga(),aY(a),g.G(d,kla(),2);if(d.j!=3)return b=d.B,g.G(d,nla(b),3);c=d.B;a.j=i0a(c);g.Ur(function(){ZX(a)},0);
g.va(d)})};
l0a=function(a){function b(n){g.qx(n)}
function c(n){(n=n0a[n])&&a.Hb.pg(n)}
var d=a.api.U(),e=m0a(d);try{var f=wha(e),h=nJa(d.experiments),l=d.experiments.bb("html5_web_po_disable_remote_logging"),m=new ol({yC:e,onEvent:c,onError:b,Ax:f,Um:h,KS:function(){a.api.ma("itr",{})},
eea:l});a.j=m;g.P(a,m)}catch(n){n instanceof Error&&g.qx(n)}};
ZX=function(a){var b=a.api.U();a.Hb.pg("pot_ist");var c;(c=a.j)==null||c.start();a.L("html5_bandaid_attach_content_po_token")||(aY(a),j0a(a),b=g.UD(b.experiments,"html5_session_po_token_interval_time_ms")||0,b>0&&(a.G=g.Vr(function(){aY(a)},b)),a.D=!0)};
aY=function(a){var b,c,d,e;g.J(function(f){if(!a.L("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.U();c=g.zr("EOM_VISITOR_DATA")||g.zr("VISITOR_DATA");d=b.Bm?b.datasyncId:c;e=kP(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Xf=o0a(a,e);g.va(f)})};
o0a=function(a,b){if(!a.j)return a.K?a.K(b):"";try{var c=a.j.isReady();a.Hb.pg(c?"pot_cms":"pot_csms");var d="";d=a.L("html5_web_po_token_disable_caching")?a.j.qv({Hj:b}):a.j.qv({Hj:b,ai:{kx:b,oaa:150,hA:!0,aD:!0}});a.Hb.pg(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.kS(a.api.app))==null?void 0:f.ra;h&&h.LB(!1)}}return d}catch(l){return g.qx(l),""}};
j0a=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new HH),a.j.ready().then(function(){a.Hb.pg("pot_if");aY(a)}))};
p0a=function(a){dT.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.jG(a);g.P(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}});
bS(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
bS(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
bY=function(a){g.O.call(this);this.features=[];var b=this.j,c=new ZNa(a),d=new eT(a),e=new rX(a),f=new $X(a);var h=g.fE(a.U())?void 0:new qT(a);var l=new qX(a),m=new $_a(a),n=new h0a(a),p=new uT(a);var q=g.fE(a.U())?new p0a(a):void 0;var r=a.L("html5_enable_ssap")?new V_a(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new BNa(a):void 0;var u=new tT(a);var y=a.L("enable_courses_player_overlay_purchase")?new SNa(a):void 0;
var A=g.fQ(a.U())?new ONa(a):void 0;var C=new FNa(a);var F=a.U().D?new GNa(a):void 0;var H=a.L("web_player_move_autonav_toggle")&&a.U().ge?new tNa(a):void 0;var L=g.fQ(a.U())?new oX(a):void 0;var N=a.L("web_enable_speedmaster")&&g.fQ(a.U())?new QX(a):void 0;var X=a.U().bl?void 0:new g0a(a);var V=a.L("report_pml_debug_signal")?new oNa(a):void 0;var ca=new n_a(a),la=new vX(a);var W=a.L("enable_web_player_player_in_bar_feature")&&g.vz(a.U())?new x_a(a):void 0;var R=a.U().playerStyle==="flix"?new UNa(a):
void 0;var Y=navigator.mediaSession&&window.MediaMetadata&&a.U().Wk?new f_a(a):void 0;var v=a.L("html5_enable_drc")&&!a.U().K?new pT(a):void 0;var T=new iNa(a),$a;a:{var ub=a.U();if(ub.K&&(ub=($a=ub.getWebPlayerContextConfig())==null?void 0:$a.houseBrandEnvironment,ub==="apps-elements"||ub==="apps-elements-flix")){$a=new TNa(a);break a}$a=void 0}ub=g.fQ(a.U())?new J_a(a):void 0;var pb=a.L("html5_enable_d6de4")?new sX(a):void 0;var Da=g.fQ(a.U())&&a.L("web_sleep_timer")?new JX(a):void 0;var db=g.LP(a.U())?
new JNa(a):void 0;var rb=a.L("html5_enable_audio_track_stickiness")?new L_a(a):void 0;var ab=new CNa(a),B=new b_a(a);var D=a.U().K?new YNa(a):void 0;a=a.L("enable_sabr_snackbar_message")?new Q_a(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,L,N,X,V,ca,la,W,R,Y,v,T,$a,ub,pb,Da,db,void 0,rb,ab,B,D,a)};
cY=function(){this.B=this.j=NaN};
q0a=function(a,b){this.Y=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new cY;this.j=b||null;this.C=!1};
r0a=function(a,b,c){var d=g.RP(b.Ba)&&!b.Ba.K;if(b.Ba.vl&&(NP(b.Ba)||b.Ba.Ja==="shortspage"||lQ(b.Ba)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.zr("TIMING_ACTION")||yr("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&yr("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Lh();for(var e=g.w(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,FA(f,d[f],a.timerName);d=g.Dr(Vta)(a.j.VJ);g.GA(d,a.timerName);d=a.j;d.B={};d.VJ={}}g.GA({playerInfo:{visibilityState:g.Dr(Uta)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(IA("_start",a.timerName)?c=g.Dr(AA)("_start",a.timerName)+a.B:g.qx(new g.At("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!IA("pbs",a.timerName)&&a.tick("pbs",c)}};
WZa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.Aa){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.WJ;var l={};if(d==null?0:d.K)l.cttAuthInfo={token:d.K,videoId:d.videoId};e&&(l.startTime=e);HA(a,l);var m,n,p;d={targetVideoId:(m=d==null?void 0:d.videoId)!=null?m:"empty_video",targetCpn:b,adVideoId:(n=f==null?void 0:f.videoId)!=null?n:"empty_video",adClientPlaybackNonce:(p=c==null?void 0:c.cpn)!=null?p:f==null?void 0:f.clientPlaybackNonce};
c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.GA(d,a);FA("pbs",h!=null?h:(0,g.hu)(),a)}};
dY=function(a){eua();dua();a.timerName=""};
s0a=function(a){if(a.j){var b=a.j;b.B={};b.VJ={}}a.C=!1;a.G=void 0;a.B=NaN};
t0a=function(a,b){g.Qx.call(this);this.Ba=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=Fr(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 EQ("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.FQ(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.w(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=AQ(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
u0a=function(a){return!!(a.playlist||a.list||a.api)};
v0a=function(a){var b=a.index+1;return b>=a.length?0:b};
w0a=function(a){var b=a.index-1;return b<0?a.length-1:b};
g.eY=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.$Q(a.Ba,b),g.P(a,e),e.Qn=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
x0a=function(a,b){a.index=g.Bg(b,0,a.length-1);a.startSeconds=0};
y0a=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.eY(a);a.items=[];for(var d=g.w(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()}};
B0a=function(a,b){var c,d,e,f,h,l,m;return g.J(function(n){if(n.j==1){c=g.YA();var p=a.U(),q={context:g.$R(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}},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,y,A,C,F,H;r=((H=g.Q((u=r)==null?void 0:(y=u.embedPreview)==null?void 0:(A=y.thumbnailPreviewRenderer)==null?void 0:(C=A.playButton)==null?void 0:(F=C.buttonRenderer)==null?void 0:F.navigationEndpoint,g.rR))==null?void 0:H.videoId)||null}else r=null}u=(u=r)?u:void 0;y=a.playlistId?a.playlistId:b.list;A=b.listType;if(y){var L;A==="user_uploads"?L={username:y}:L={playlistId:y};z0a(p,u,b,L);q.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},
z0a(p,u,b,L),q.playlistRequest=L):u&&(L={videoId:u},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.dA(A0a);g.wa(n,2);return g.G(n,g.NA(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Fa=Os(b,g.LP(h)),h.C=h.Fa==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&GL(l.trackingParams)),n.return(new g.$Q(h,b));m=g.ya(n);m instanceof Error||(m=Error("b259802748"));g.px(m);return n.return(a)})};
z0a=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.gY=function(a,b){fY.get(a);fY.set(a,b)};
g.hY=function(a){g.Qx.call(this);this.loaded=!1;this.player=a};
C0a=function(){this.B=[];this.j=[]};
g.iY=function(a,b){return b?a.j.concat(a.B):a.j};
g.jY=function(a,b){switch(b.kind){case "asr":D0a(b,a.B);break;default:D0a(b,a.j)}};
D0a=function(a,b){g.Ub(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.kY=function(a){g.O.call(this);this.Y=a;this.B=new C0a;this.G=[];this.Z=[];this.D=new g.Ej};
g.lY=function(a,b,c){g.kY.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.G=b.Kw;this.Z=b.lE;this.C=g.QR(b)};
g.E0a=function(a,b){return DG(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.F0a=function(a,b){if(a.j!=null&&g.fE(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.Wb())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.E0a(c,"386")});
a=!!a.j&&!a.j.isManifestless&&tFa(a.j);return b||a};
g.mY=function(a,b,c,d,e,f){g.kY.call(this,a);this.videoId=c;this.XZ=e;this.eventId=f;this.K={};this.j=null;a=d||g.Jr(b).hl||"";a=a.split("_").join("-");this.C=g.Kr(b,{hl:a})};
G0a=function(a,b){this.B=a;this.j=b;this.onFailure=void 0};
H0a=function(a,b){return{gA:a.gA&&b.gA,hd:a.hd&&b.hd,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
nY=function(a,b){var c=I0a,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={gA:!!this.C,hd:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new G0a([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming},
Dx:function(){return WebAssembly.compileStreaming(fetch(d.path))},
onFailure:function(){return d.capabilities.streaming=!1}},
{name:"sync",condition:function(e){return e.sync},
Dx:function(){return bP(J0a(d),function(e){return new WebAssembly.Module(e)})},
onFailure:function(){return d.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
Dx:function(){return bP(J0a(d),function(e){return WebAssembly.compile(e)})},
onFailure:function(){return d.capabilities.hd=!1}}]);
this.K=new G0a([{name:"instantiateStreaming",condition:function(e){return e.hd&&e.streaming&&!d.B&&!d.j},
Dx:function(e,f){return WebAssembly.instantiateStreaming(fetch(d.path),f).then(function(h){d.j=YO(h.module);return{instance:h.instance,Ro:!1}})},
onFailure:function(){return d.capabilities.streaming=!1}},
{name:"sync",condition:function(e){return e.hd&&e.sync},
Dx:function(e,f){return bP(K0a(d,e),function(h){return{instance:new WebAssembly.Instance(h,f),Ro:!1}})},
onFailure:function(){return d.capabilities.sync=!1}},
{name:"async",condition:function(e){return e.hd},
Dx:function(e,f){return bP(bP(K0a(d,e),function(h){return WebAssembly.instantiate(h,f)}),function(h){return{instance:h,
Ro:!1}})},
onFailure:function(){return d.capabilities.hd=!1}},
{name:"asmjs",condition:function(e){return e.gA},
Dx:function(e,f){return YO(d.C(f).then(function(h){return{instance:{exports:h},Ro:!0}}))},
onFailure:function(){return d.capabilities.gA=!1}}],function(e,f,h){return d.D(h,e.instance.exports)})};
N0a=function(a){var b=L0a;return b.instantiate(a?H0a(b.capabilities,a):b.capabilities,new M0a)};
J0a=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=YO(c);
return c}).then(void 0,function(c){g.qx(Error("wasm module fetch failure: "+c.message,{cause:c}));
a.B=void 0;throw c;});
a.B=YO(b);return a.B};
K0a=function(a,b){if(!b.hd)return ZO(Error("wasm unavailable"));if(a.j)return a.j;a.j=cP(bP(a.compile(b),function(c){a.j=YO(c);return c}),function(c){g.qx(Error("wasm module compile failure: "+c.message,{cause:c}));
a.j=void 0;throw c;});
return a.j};
O0a=function(){};
P0a=function(){var a=this;this.proc_exit=function(){};
this.fd_write=function(b,c,d){if(!a.exports)return 1;b=new Uint32Array(a.exports.memory.buffer,c,d*2);c=[];for(var e=0;e<d;++e){var f=new Uint8Array(a.exports.memory.buffer,b[e*2],b[e*2+1]);f=g.tB(f);c.push(f)}return c.reduce(function(h,l){return h+l.length},0)}};
M0a=function(){this.env=new O0a;this.wasi_snapshot_preview1=new P0a};
I0a=function(a,b){a.wasi_snapshot_preview1.exports=b;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)}};
Q0a=function(a,b){this.instance=a;this.Ro=b;this.exports=this.j=this.instance.exports};
S0a=function(a,b,c){c=c===void 0?!1:c;var d=d===void 0?!0:d;var e=oY.YC();return bP(R0a(a,b,{gA:c,hd:!0,sync:!0,streaming:!0},d),function(f){oY.HA(f.Ro?"winitjs":"winit",e);return f})};
R0a=function(a,b,c,d){d=d===void 0?!0:d;L0a||(L0a=new nY(a,b));return bP(N0a(c),function(e){return new Q0a(e.instance,e.Ro,d)})};
T0a=function(a,b){g.O.call(this);var c=this;this.J=a;this.j=b;this.VJ={};this.B={};this.C=null;this.D=new Set;this.G=new g.jG(this);this.Sc={Roa:function(){return c.j},
vU:function(){return c.vU()}};
this.K=this.J.L("web_player_defer_modules");this.Ke=new Map;g.P(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.pY=function(a){return a.Ke.get("captions")};
Z0a=function(a,b){switch(b){case "ad":return U0a(a);case "annotations_module":return a.J.fd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.BV||a.controlsType==="3"?!1:a.Ka.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Ta||!!g.OR(b)||!!g.lMa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return V0a(a);case "embed":return g.LP(a.J.U());case "endscreen":return g.W0a(a);case "heartbeat":return a.uU();case "inline_preview":return a.J.U().showInlinePreviewUi;
case "kids":return YP(a.J.U());case "remote":return a.J.U().Sj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().Nj;case "captions":return X0a(a);case "unplugged":return g.SP(a.J.U());case "ux":return a.J.U().Va;case "webgl":return Y0a(a);case "ypc":return a.kI();case "ypc_clickwrap":return a=a.J.getVideoData(),a.hh&&!a.XG;case "yto":return!!a.J.getVideoData().Ca.includes("yto");default:return g.px(Error("Module descriptor "+b+" does not match")),!1}};
qY=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Ke.get(b);if(!h||d)if(e||(e=function(){qY(a,b,c,d)}),f||(f=function(){a.J.Gg(b)}),h=h||$0a(a,b,Z0a(a,b),e,f))a.Ke.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.tf("onApiChange")};
b1a=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.J(function(l){if(l.j==1)return(c=a.Ke.get("asmjs"))&&!b?l.return(c):(d=fY.get("asmjs"))!=null?(e=d,l.Ea(2)):g.G(l,new Promise(function(m,n){a1a(a,"asmjs",function(){var p=fY.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.Ke.set("asmjs",h);h.create();return l.return(h)})};
e1a=function(a){c1a(a)&&a.FP();d1a(a)&&(qY(a,"captions",!0),qY(a,"endscreen"),a.SJ(),qY(a,"creatorendscreen",!0))};
d1a=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};
c1a=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Wb(a.Ca,"ad")||$La(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.w(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};
X0a=function(a){var b=a.J.getVideoData();return!!b.ge||!!b.captionTracks.length||g.F0a(b,a.J)};
g.W0a=function(a){var b=a.J.U();if(b.C||lQ(b)||b.K||!b.Ad&&!b.hh)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.vS=function(a){return a.Ke.get("webgl")};
Y0a=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.Hna(),d=a.L("enable_spherical_kabuki"),e;if(((e=a.getWebPlayerContextConfig())==null?0:e.embedsEnableEmc3ds)&&!a.L("embeds_enable_emc3ds_webgl"))return!1;e=g.jQ(a);if(g.MR(b))return c||d||e;if(g.KR(b))return e||c||d;if(g.LR(b))return e||c||!1;if(g.AR(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.CR(b)&&!c&&a.L("enable_webgl_noop")};
U0a=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.oR(a)?!0:!1};
V0a=function(a){if(a.J.fd())return!1;a=a.J;var b=a.U();if(b.C)return!1;var c;if(((c=b.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||b.controlsType==="3")return!1;if(b.playerStyle==="creator-endscreen-editor")return!0;c=a.getVideoData();return!!c&&(!!g.jMa(c)||!!g.kMa(c))};
$0a=function(a,b,c,d,e){try{if(c){var f=fY.get(b);if(f)return new f(a.J);a1a(a,b,d,e)}else a.J.Gg(b)}catch(h){a.J.Gg(b),g.px(h)}return null};
rY=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.w(f1a),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ke.get(e);f&&(c||f.Ln(b))&&(g.vg(f),a.Ke.delete(e))}else for(d=g.w(a.Ke),e=d.next();!e.done;e=d.next())f=g.w(e.value),e=f.next().value,(f=f.next().value)&&(c||f.Ln(b))&&(g.vg(f),a.Ke.delete(e))};
sY=function(a){return a.Ke.get("ad")};
g1a=function(a){if(YP(a.J.U()))return a.Ke.get("kids")};
tS=function(a){if(a.J.U().Sj)return a.Ke.get("remote")};
g.tY=function(a){if(g.SP(a.J.U()))return a.Ke.get("unplugged")};
PMa=function(a){if(a.J.U().Va)return a.Ke.get("ux")};
h1a=function(a){if(a.J.U().showMiniplayerUiWhenMinimized)return a.Ke.get("miniplayer")};
uY=function(a){if(a.J.U().Nj)return a.Ke.get("offline")};
g.vY=function(a){return a.Ke.get("annotations_module")};
i1a=function(a){return a.Ke.get("creatorendscreen")};
k1a=function(a,b){var c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return S0a(c,function(d){var e=a.Ke.get("asmjs");return e?Promise.resolve(e.i_(d)):j1a(a).then(function(f){return f.i_(d)})},b)};
j1a=function(a){var b,c;return g.J(function(d){if(d.j==1)return g.G(d,b1a(a),2);c=b=d.B;return d.return(c)})};
a1a=function(a,b,c,d){if(a.j){var e=l1a[b];m1a(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
m1a=function(a,b,c,d){function e(){a.Ia()||d.call(a)}
function f(){a.Ia()||c.call(a)}
for(var h=g.hh("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.qh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){ui(f);q&&q.apply(window,[y])};
var r=m.onerror;m.onerror=function(y){if(Math.random()<.01){var A=new g.At("Unable to load player module",b,document.location&&document.location.origin);g.px(A)}ui(e);r&&r(y)};
var t=m,u=t.onreadystatechange;t.onreadystatechange=function(y){switch(t.readyState){case "loaded":case "complete":ui(f)}u&&u(y)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.gg(m,g.er(b)),h=g.hh("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
n1a=function(a,b,c,d,e){g.Qx.call(this);var f=this;this.target=a;this.LJ=b;this.B=0;this.K=!1;this.D=new g.Eg(NaN,NaN);this.j=new g.jG(this);this.Aa=this.C=this.N=null;g.P(this,this.j);b=d||e?4E3:3E3;this.W=new g.Ep(function(){wY(f,1,!1)},b,this);
g.P(this,this.W);this.oa=new g.Ep(function(){wY(f,2,!1)},b,this);
g.P(this,this.oa);this.qa=new g.Ep(function(){wY(f,512,!1)},b,this);
g.P(this,this.qa);this.Ca=3E3;d||(this.C=this.j.T(a,"mouseover",this.Ey),this.j.T(a,"mousemove",this.y6),this.j.T(a,"mouseleave",this.Eaa));Gm?this.j.T(a,"keypress",this.S$):this.j.T(a,"focusin",this.j9);this.G=this.j.T(a,"mousedown",this.GW);this.Z=this.j.T(a,"touchstart",this.HW,void 0,!0);wY(this,640,!0)};
o1a=function(a){wY(a,4,!1);a.N&&(a.j.Mc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Ey));a.C&&(a.j.Mc(a.C),a.C=a.j.T(a.target,"mouseover",a.Ey))};
wY=function(a,b,c){a.Ia();var d=!a.B;c?(a.B|=b,b&1&&a.W.start(),b&2&&a.oa.start()):(a.B&=~b,b&1&&a.W.stop(),b&2&&a.oa.stop(),b&512&&a.qa.stop());a.B&512&&!(a.B&128)&&g.Fp(a.qa,a.Ca);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
g.yY=function(a){g.S.call(this,{I:"button",La:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ra);this.T(a,"basechromeinitialized",this.Nfa);a=this.api.U();a.Z&&xY&&(this.listen("click",this.Z9,this),this.listen("touchstart",this.Qda,this));g.RP(a)&&g.Mp(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Ra()};
g.zY=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.S.call(this,{I:"div",La:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");c=new g.yY(a);g.P(this,c);c.Ha(b);this.D=new g.jG(this);g.P(this,this.D);this.api=a;this.G=this.Da("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.Ny(this,250);g.P(this,this.B);this.j=new g.Ep(this.Ra,
0,this);g.P(this,this.j);this.Ra();this.T(a,"appresize",this.kc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.uda);NP(a.U())&&this.T(a,"videoplayerreset",this.onReset)};
p1a=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.U(a,64)&&g.U(a,1);return b===0&&a};
g.AY=function(a){g.S.call(this,{I:"div",La:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",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.Eb)};
g.BY=function(a){a=a.split(q1a);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",X:{href:a[c],target:a[c+1]},va:a[c+2]})}return{I:"span",V:b}};
DY=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.XE(g.CY[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",X:{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}};
r1a=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)}};
s1a=function(a){for(var b=0;b<a.keys.length;b++)a.Mc(a.keys[b]);a.keys=[]};
t1a=function(a){g.S.call(this,{I:"div",S:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.innertubeCommand=this.Ie=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.hQ(b)?(this.B=new g.S({I:"a",S:"ytp-paid-content-overlay-link",X:{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.S({I:"div",La:["ytp-button","ytp-paid-content-overlay-text"],va:"{{text}}"});this.D=new g.Ny(this.B,250,!1,100);g.P(this,this.B);this.B.Ha(this.element);g.P(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.B6)};
v1a=function(a,b){var c=XLa(b),d=YLa(b);b.hh&&a.J.Lo()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Hp(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&u1a(a,d,c,b)):c&&d&&u1a(a,d,c,b))};
u1a=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Ep(a.Mb,b,a);g.P(a,a.j);d=WLa(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.Q(b,g.uy))==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",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
V:[{I:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:e||a.innertubeCommand?g.ey():null})};
w1a=function(a,b){a.j&&(g.U(b,8)&&a.C?(a.C=!1,a.rd(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
EY=function(a){g.S.call(this,{I:"div",S:"ytp-spinner",V:[xNa(),{I:"div",S:"ytp-spinner-message",va:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.Ep(this.show,500,this);g.P(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.yd(a.getPlayerStateObject())};
FY=function(a){var b=[{I:"div",La:["ytp-unmute-icon"],V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{I:"div",La:["ytp-unmute-text"],va:"Tap to unmute"}];b.push({I:"div",La:["ytp-unmute-box"],V:[]});g.YS.call(this,a,{I:"button",La:["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.lj);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.LP(this.api.U());g.Xx(this,a);a&&x1a(this);this.C=a};
x1a=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.GY=function(a){g.jG.call(this);var b=this;this.api=a;this.bS=!1;this.Qo=null;this.DP=!1;this.zg=null;this.EP=this.BN=!1;this.ZU=this.aV=null;this.C_=NaN;this.YU=this.pF=!1;this.WG=0;this.HO=[];this.mT=!1;this.mL={height:0,width:0};this.b3=480;this.dga=["ytp-player-content","html5-endscreen","ytp-overlay"];this.RL={hB:!1};var c=a.U(),d=a.ob();this.mL=a.getPlayerSize();this.IX=new g.Ep(this.wS,0,this);g.P(this,this.IX);c.disableOrganicUi||(this.qo=new g.zY(a),g.P(this,this.qo),g.US(a,this.qo.element,
4));if(y1a(this)){var e=new EY(a);g.P(this,e);e=e.element;g.US(a,e,4)}var f=a.getVideoData();this.Kg=new n1a(d,function(l){return b.LJ(l)},f,c.jk,!1);
g.P(this,this.Kg);this.Kg.subscribe("autohideupdate",this.VB,this);if(!c.disablePaidContentOverlay){var h=new t1a(a);g.P(this,h);g.US(a,h.element,4)}this.dV=new FY(a);g.P(this,this.dV);g.US(this.api,this.dV.element,2);this.hR=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.yN=new g.Ep(this.Bt,200,this);g.P(this,this.yN);this.DG=f.videoId;this.s2=new g.Ep(function(){b.WG=0},350);
g.P(this,this.s2);this.fK=new g.Ep(function(){b.YU||z1a(b)},350,this);
g.P(this,this.fK);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Mp(f,"ytp-color-white")}this.T(a,"appresize",this.kc);this.T(a,"presentingplayerstatechange",this.lj);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.dca);this.T(a,"autonavvisibility",function(){b.Ar()});
this.T(a,"sizestylechange",function(){b.Ar()});
this.T(d,"click",this.Cca,this);this.T(d,"dblclick",this.Dca,this);this.T(d,"mousedown",this.Gca,this);c.Bb&&(this.T(d,"gesturechange",this.Eca,this),this.T(d,"gestureend",this.Fca,this));this.UG=[d.vA];this.qo&&this.UG.push(this.qo.element);e&&this.UG.push(e)};
A1a=function(a,b){if(!b)return!1;var c=a.api.Ge();if(c.Gw()&&(c=c.Ib())&&g.wh(c,b))return c.controls;for(c=0;c<a.UG.length;c++)if(g.wh(a.UG[c],b))return!1;c=g.w(a.dga);for(var d=c.next();!d.done;d=c.next())if(g.Lp(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
B1a=function(a){var b=a.api.getPresentingPlayerType()===2&&(a.api.ob().hL||a.api.U().disableOrganicUi||!1)&&a.api.U().B&&xY&&hR>=11;a=a.api.U().Z&&xY;return!(!b&&!a)};
HY=function(a,b){return!a.api.isInline()&&!A1a(a,dt(b))&&g.jz(b)};
z1a=function(a){a.Kg.Zv();if(a.BN&&a.EP)a.EP=!1;else if(!a.api.U().Oa&&!a.Sr()){var b=a.api.getPlayerStateObject();g.U(b,2)&&g.rS(a.api)||a.lI(b);!a.api.U().Bb||b.isCued()||g.U(b,1024)?a.Bt():a.yN.isActive()?(a.iR(),a.yN.stop()):a.yN.start()}};
C1a=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.jz(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.U(b,4)||g.U(b,8)||g.U(b,2)||a.Bt(),!0):!1};
D1a=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
y1a=function(a){var b=vs()&&ts()>=67&&!a.api.U().Z;a=a.api.U().disableOrganicUi;return!g.us("tizen")&&!mP&&!b&&!a};
IY=function(a,b){b=b===void 0?2:b;g.Qx.call(this);this.api=a;this.j=null;this.Id=new ft(this);g.P(this,this.Id);this.B=ota;this.Id.T(this.api,"presentingplayerstatechange",this.C6);this.j=this.Id.T(this.api,"progresssync",this.Rc);this.Ep=b;this.Ep===1&&this.Rc()};
g.JY=function(a){g.S.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",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",va:"{{icon}}"}]}]});this.J=a;this.B=new g.Ep(this.show,10,this);this.j=new g.Ep(this.hide,500,this);g.P(this,this.B);g.P(this,this.j);this.hide()};
LY=function(a,b,c){if(b<=0){c=oy();b="muted";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";KY(a,c,b,d+"%")};
E1a=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Esa();var c=a.J.getPlaybackRate(),d=g.XE("Speed is $RATE",{RATE:String(c)});KY(a,b,d,c+"x")};
F1a=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";KY(a,wNa(),b)};
KY=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.Hp(a.j);a.B.start();a.updateValue("title",d);g.Qp(a.element,"ytp-bezel-text-hide",!d)};
G1a=function(a,b){g.S.call(this,{I:"button",La:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.LP(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")?Hsa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{I:"div",S:"ytp-cards-button-title",va:"Info"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
S:"ytp-cards-button-title",va:"Shopping"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.Ny(this,250,!0,100);g.P(this,this.B);g.Qp(this.C,"ytp-show-cards-title",g.LP(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Cba);this.iI(!0)};
H1a=function(a,b){g.S.call(this,{I:"div",S:"ytp-cards-teaser",V:[{I:"div",S:"ytp-cards-teaser-box"},{I:"div",S:"ytp-cards-teaser-text",V:a.U().L("player_new_info_card_format")?[{I:"button",S:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},V:[Hsa()]},{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},V:[g.fy()]}]:[{I:"span",S:"ytp-cards-teaser-label",va:"{{text}}"}]}]});var c=this;this.J=a;this.jh=
b;this.D=new g.Ny(this,250,!1,250);this.j=null;this.N=new g.Ep(this.Qba,300,this);this.K=new g.Ep(this.Pba,2E3,this);this.G=[];this.B=null;this.W=new g.Ep(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.P(this,this.D);g.P(this,this.N);g.P(this,this.K);g.P(this,this.W);a.U().L("player_new_info_card_format")?(g.Mp(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Da("ytp-cards-teaser-close-button"),"click",this.D6),this.T(this.Da("ytp-cards-teaser-info-icon"),"click",this.QU),this.T(this.Da("ytp-cards-teaser-label"),"click",this.QU)):this.listen("click",this.QU);this.T(b.element,"mouseover",this.JW);this.T(b.element,"mouseout",this.IW);this.T(a,"cardsteasershow",
this.dda);this.T(a,"cardsteaserhide",this.Mb);this.T(a,"cardstatechange",this.V3);this.T(a,"presentingplayerstatechange",this.V3);this.T(a,"appresize",this.uO);this.T(a,"onShowControls",this.uO);this.T(a,"onHideControls",this.c8);this.listen("mouseenter",this.E6)};
I1a=function(a){g.S.call(this,{I:"button",La:[MY.BUTTON,MY.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:MY.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.iy()]},{I:"div",S:MY.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
J1a=function(a,b){a.j=b;a.element.classList.toggle(MY.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.qE:c.oE)?(a=a.api.Xm())?MA(a,b):g.px(Error("No innertube service available when updating notification preferences.")):g.px(Error("No update preferences command available.")):g.px(Error("No video data when updating notification preferences."))};
L1a=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=K1a(a,b);if(a=g.bg(window,a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Fqa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
K1a=function(a,b){var c=document.location.protocol;return Nfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.NY=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.RP(r);g.S.call(this,{I:"div",La:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.XE("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":mQ(r),"data-tooltip-opaque":String(g.LP(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",X:t?{title:g.XE("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":mQ(r),"data-tooltip-opaque":String(g.LP(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}:""]}],X:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var y=this.Da("ytp-sb-subscribe"),A=this.Da("ytp-sb-unsubscribe");f&&g.Mp(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var C=function(){if(r.Aa){var H=u.channelId;if(m||n){var L={c:H};var N;g.KL.isInitialized()&&(N=lCa(L));L=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var X=p.Xm();X?(MA(X,N,{botguardResponse:L,feature:m}),p.eb("SUBSCRIBE",H)):g.px(Error("No innertube service available when updating subscriptions."))}else g.px(Error("No subscribe command in videoData."));
else g.px(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else L1a(g.aQ(u.J.U()),"sb_button",u.D)},F=function(){var H=u.channelId;
if(m||n){var L=p.getVideoData();MA(p.Xm(),L.unsubscribeCommand,{feature:m});p.eb("UNSUBSCRIBE",H)}y.focus();y.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
this.T(y,"click",C);this.T(A,"click",F);this.T(y,"keypress",function(H){H.keyCode===13&&C(H)});
this.T(A,"keypress",function(H){H.keyCode===13&&F(H)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&($Ma(p),oS(p,y,this),oS(p,A,this))}else g.Mp(y,"ytp-sb-disabled"),g.Mp(A,"ytp-sb-disabled")};
O1a=function(a){g.S.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().W,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",va:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().W,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",va:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Da("ytp-title-channel");this.B=this.Da("ytp-title-channel-logo");this.channelName=this.Da("ytp-title-expanded-title");this.G=this.Da("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.LP(this.api.U())&&M1a(this);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.bg(window,N1a(b));c.preventDefault()});
this.T(this.B,"click",this.eba);this.Ra()};
P1a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.NY("Subscribe",null,"Subscribed",null,!0,!1,b.ym,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.P(a,a.subscribeButton);a.subscribeButton.Ha(a.G);a.subscribeButton.hide();var e=new I1a(a.api);a.j=e;g.P(a,e);e.Ha(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Bm&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Bm&&(e.hide(),a.api.logVisibility(e.element,!1),J1a(e,!1))})}};
M1a=function(a){var b=a.api.U();P1a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Ta||(a.T(a.channel,"mouseenter",a.bQ),a.T(a.channel,"mouseleave",a.tP),a.T(a.channel,"focusin",a.bQ),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.tP()}));
a.C=new g.Ep(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.P(a,a.C);a.T(a.channel,Q1a,function(){R1a(a)});
a.T(a.api,"onHideControls",a.TT);a.T(a.api,"appresize",a.TT);a.T(a.api,"fullscreentoggled",a.TT)};
R1a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
S1a=function(a){var b=a.api.getPlayerSize();return g.LP(a.api.U())&&b.width>=524};
N1a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.nQ(b)+c.rb;g.ZR(c)&&(d="https://music.youtube.com"+c.rb);if(!g.LP(b))return d;b={};g.eS(a.api,"addEmbedsConversionTrackingParams",[b]);return g.gj(d,b)};
OY=function(a){var b=g.aT({"aria-haspopup":"true"});g.$S.call(this,b,a);this.listen("keydown",this.j)};
PY=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
T1a=function(a,b){g.S.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"User info"},V:a.U().Aa&&!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",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},va:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{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",X:{tabIndex:"{{userInfoFocusable}}"},va:"Signed out"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},va:a.U().Tb?"":"Sign in on YouTube"}]}]}]});this.Sa=a;this.j=b;a.U().Aa||a.U().Tb||(a=this.Da("ytp-user-info-panel-login"),this.T(a,"click",this.G6));this.closeButton=new g.S({I:"button",La:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.ny()]});this.closeButton.Ha(this.element);
g.P(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.F6);this.Ra()};
V1a=function(a,b,c){g.AX.call(this,a);this.Cb=b;this.oe=c;this.getVideoUrl=new OY(6);this.Jo=new OY(5);this.Do=new OY(4);this.pc=new OY(3);this.RH=new g.$S(g.aT({href:"{{href}}",target:this.J.U().W},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.$S(g.aT(),1,"Stats for nerds");this.wA=new g.Yx({I:"div",La:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},va:"{{text}}"});this.iY=new zX(this.J,this.wA);this.MI=this.Ku=null;g.LP(this.J.U())&&(this.closeButton=
new g.S({I:"button",La:["ytp-collapse","ytp-button"],X:{title:"Close"},V:[g.ny()]}),g.P(this,this.closeButton),this.closeButton.Ha(this.element),this.closeButton.listen("click",this.f8,this));g.LP(this.J.U())&&(this.mm=new g.$S(g.aT(),8,"Account"),g.P(this,this.mm),this.Tc(this.mm,!0),this.mm.listen("click",this.Sca,this),a.createClientVe(this.mm.element,this.mm,137682));this.J.U().Tn&&(this.Zl=new iT("Loop",7),g.P(this,this.Zl),this.Tc(this.Zl,!0),this.Zl.listen("click",this.Jba,this),a.createClientVe(this.Zl.element,
this.Zl,28661));g.P(this,this.getVideoUrl);this.Tc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Aba,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.Jo);this.Tc(this.Jo,!0);this.Jo.listen("click",this.Bba,this);a.createClientVe(this.Jo.element,this.Jo,28660);g.P(this,this.Do);this.Tc(this.Do,!0);this.Do.listen("click",this.zba,this);a.createClientVe(this.Do.element,this.Do,28658);g.P(this,this.pc);this.Tc(this.pc,!0);this.pc.listen("click",this.yba,
this);g.P(this,this.RH);this.Tc(this.RH,!0);this.RH.listen("click",this.yca,this);g.P(this,this.showVideoInfo);this.Tc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Tca,this);g.P(this,this.wA);this.wA.listen("click",this.lba,this);g.P(this,this.iY);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Xaa("Chromium")>=43&&(b=!0);Xaa("Firefox")<=40&&(b=!1);b&&(this.Ku=new g.S({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.P(this,this.Ku),
this.Ku.Ha(this.element));var d;(d=this.mm)==null||d.setIcon(Lsa());var e;(e=this.Zl)==null||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.pc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});this.RH.setIcon(Fsa());this.showVideoInfo.setIcon(Gsa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);U1a(this);this.mN(this.J.getVideoData())};
QY=function(a,b){var c=!1;if(a.Ku){var d=a.Ku.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Cb.Mb():(a.wA.Fd(b,"text"),g.DX(a.Cb,a.iY),yNa(a.wA.element),a.Ku&&(a.Ku=null,U1a(a)));return c};
U1a=function(a){var b=!!a.Ku;a.pc.dk(b?"Copy debug info":"Get debug info");PY(a.pc,!b);a.Do.dk(b?"Copy embed code":"Get embed code");PY(a.Do,!b);a.getVideoUrl.dk(b?"Copy video URL":"Get video URL");PY(a.getVideoUrl,!b);a.Jo.dk(b?"Copy video URL at current time":"Get video URL at current time");PY(a.Jo,!b);a.Do.setIcon(b?Csa():null);a.getVideoUrl.setIcon(b?gy():null);a.Jo.setIcon(b?gy():null)};
W1a=function(a){return g.LP(a.J.U())?a.mm:a.Zl};
Y1a=function(a,b){g.CX.call(this,a);this.oe=b;this.D=new g.jG(this);this.qa=new g.Ep(this.ida,1E3,this);this.Aa=this.C=null;g.P(this,this.D);g.P(this,this.qa);a.createClientVe(this.element,this,28656);g.Mp(this.element,"ytp-contextmenu");X1a(this);this.hide()};
X1a=function(a){g.ht(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Ta||(b=a.J.ob(),a.D.T(b,"contextmenu",a.jba),a.D.T(b,"touchstart",a.I6,null,!0),a.D.T(b,"touchmove",a.t1,null,!0),a.D.T(b,"touchend",a.t1,null,!0))};
Z1a=function(a){a.J.isFullscreen()?g.US(a.J,a.element,10):a.Ha(document.body)};
RY=function(a,b,c){c=c===void 0?240:c;g.S.call(this,{I:"button",La:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.LP(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",va:"{{icon}}"},{I:"div",S:"ytp-copylink-title",va:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.Se=b;this.j=c;this.visible=!1;this.tooltip=this.Se.We();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.Qp(this.element,"ytp-show-copylink-title",g.LP(b));a.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.T(a,"appresize",this.Ra);this.Ra();this.addOnDisposeCallback(g.nS(this.tooltip,this.element))};
$1a=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.Hq&&!g.YR(c)&&!a.api.fd()&&!b};
a2a=function(a){a.updateValue("icon",cy());if(a.api.U().B)a.tooltip.mI(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.ji();a.tooltip.mI(a.element);var b=a.listen("mouseleave",function(){a.Mc(b);a.Ra();a.tooltip.Pm()})}};
b2a=function(a,b){return g.J(function(c){if(c.j==1)return g.wa(c,2),g.G(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.ya(c);var d=c.return,e=!1,f=g.qh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(Ku){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)})};
SY=function(a){g.S.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-seek-icon-text-container",V:[{I:"div",S:"ytp-seek-icon",va:"{{seekIcon}}"},{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.Ep(this.show,10,this);this.B=new g.Ep(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Da("ytp-doubletap-static-circle");g.P(this,this.D);g.P(this,this.B);this.hide();this.N=this.Da("ytp-doubletap-fast-forward-ve");this.W=
this.Da("ytp-doubletap-rewind-ve");this.J.createClientVe(this.N,this,28240);this.J.createClientVe(this.W,this,28239);this.J.logVisibility(this.N,!0);this.J.logVisibility(this.W,!0);this.G=a.L("web_show_cumulative_seek_time")};
TY=function(a,b,c,d){if(d=d===void 0?null:d){var e=b===-1?a.W.visualElement:a.N.visualElement;d={seekData:d};var f=g.hx();f&&g.Dr(Hx)(void 0,f,e,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",d,void 0)}a.C=b===a.K?a.C+c:c;a.K=b;e=a.J.ob().getPlayerSize();a.G?a.B.stop():g.Hp(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.Mp(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=e.width*.8-30+"px"):b===-1&&
(a.j.style.right="",a.j.style.left=e.width*.1-15+"px");a.j.style.top=e.height*.5+15+"px";c2a(a,a.G?a.C:c)};
d2a=function(a,b,c){var d=d===void 0?null:d;g.Hp(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.Mp(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","");c=a.Da("ytp-seek-icon");d?(a.updateValue("seekIcon",d),c.style.display="inline-block"):c.style.display="none"};
c2a=function(a,b){b=g.XE("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
e2a=function(a){yX.call(this,a,!1,!0);this.Ca=[];this.Qb=[];this.W=!0;this.badge.element.classList.add("ytp-featured-product");this.Fa=new g.S({I:"div",S:"ytp-featured-product-open-in-new"});g.P(this,this.Fa);this.countdownTimer=new g.S({I:"text",S:"ytp-featured-product-countdown",va:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.B=new g.S({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.P(this,this.B);this.overflowButton=new g.S({I:"button",La:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.infoButton=new g.S({I:"button",La:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.P(this,this.infoButton);this.N=new g.S({I:"text",S:"ytp-featured-product-exclusive-countdown",va:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.N.hide();g.P(this,this.N);this.K=new g.S({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",va:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.P(this,this.K);this.banner=new g.S({I:"a",S:"ytp-featured-product-container",
V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",X:{src:"{{thumbnail}}"}},this.Fa]},{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",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text",
va:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",va:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",va:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",va:"{{priceDropReferencePrice}}",X:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",
S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",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.P(this,this.banner);this.banner.Ha(this.C.element);this.T(this.J,g.ME("featured_product"),this.Nea);this.T(this.J,g.NE("featured_product"),this.xC);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Dba);this.T(this.overflowButton.element,"click",this.J6);this.T(a,"featuredproductdismissed",this.wv)};
f2a=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};
h2a=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.w(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(xL({seconds:b}))),a.N.Fd(b)):a.N.Fd(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();UY(a);var u;(u=a.Tb)==null||u.start()}else g2a(a)};
g2a=function(a){var b;(b=a.Tb)==null||b.stop();a.N.hide();a.K.hide();VY(a)};
i2a=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};
j2a=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};
k2a=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};
l2a=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};
m2a=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Eb?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.Eb||a.K.Eb||((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};
o2a=function(a,b){WY(a);if(b){var c=g.uR.getState().entities;c=TB(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.w(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.Ca.push(d);var f=void 0;e=g.w((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=n2a(h.startTimeSec);f!==void 0&&(h=n2a(h.endTimeSec),b.push(new g.KE(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.qf(b)}}};
VY=function(a){if(a.trendingOfferEntityKey){var b=g.uR.getState().entities;if(b=TB(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)?UY(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:m2a(a)}))}else UY(a)}else UY(a)};
UY=function(a){a.B.hide();a.banner.update({vendor:m2a(a)})};
WY=function(a){a.Ca=[];a.xC();a.J.kf("featured_product")};
p2a=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.Fd(xL({seconds:b}));if(b>0){var h;(h=a.Gb)==null||h.start()}};
q2a=function(a){var b;(b=a.Gb)==null||b.stop();a.countdownTimer.hide()};
n2a=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a};
v2a=function(a,b,c){g.S.call(this,{I:"div",La:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",va:"{{disclaimer}}"},{I:"a",La:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",va:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",va:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Da("ytp-info-panel-action-item-disclaimer");this.button=
this.Da("ytp-info-panel-action-item-button");this.ye=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.Q(b==null?void 0:b.onTap,sx);var d=g.Q(c,g.uy);this.ye=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.ye=!0,g.Xf(this.button,g.Vf(a))):(d=g.Q(c,r2a))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.ye=!0,g.Xf(this.button,g.Vf(a,[s2a]))):(c=g.Q(c,t2a))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.ye=!0,g.Xf(this.button,g.Vf(a,[u2a])));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:jy(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:jy()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.ye&&(this.B={externalLinkData:{url:a}})};
w2a=function(a,b){var c=Tx();g.YS.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{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",La:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},V:[g.fy()]}]},{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.Da("ytp-info-panel-detail-items");
this.C=new g.jG(this);this.itemData=[];this.D=c;b=this.Da("ytp-info-panel-detail-close");this.T(b,"click",this.Mb);b=this.Da("ytp-info-panel-detail-skrim");this.T(b,"click",this.Mb);b=this.Da("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
x2a=function(a,b){a=g.w(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
A2a=function(a,b){g.S.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.LP(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.Ie=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Sr();ZS(b)});
this.C=new g.Ny(this,250,!1,100);g.P(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.M6);this.T(this.J,"paidcontentoverlayvisibilitychange",this.L0);this.T(this.J,"infopaneldetailvisibilitychange",this.L0);var d=a.getVideoData()||{};y2a(d)&&z2a(this,d);this.T(a,"onShowControls",this.L6);this.T(a,"onHideControls",this.K6)};
z2a=function(a,b){if(!b.hh||!a.J.Lo()){var c=b.yG||1E4,d=y2a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Hp(a.j),a.videoId=b.videoId,d?(B2a(a,c,b),a.rd()):(a.Mb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),B2a(a,c,b),a.rd())}};
y2a=function(a){var b,c,d,e;return!!((b=a.nf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.nf)==null?0:(e=d.bodyText)==null?0:e.content)};
B2a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Ep(a.Sea,b,a);g.P(a,a.j);var d;b=((d=c.nf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.nf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.nf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.nf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.nf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.ey()})};
C2a=function(a,b){a.j&&(g.U(b,8)?(a.B=!0,a.rd(),a.j.start()):(g.U(b,2)||g.U(b,64))&&a.videoId&&(a.videoId=null))};
XY=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
YY=function(a,b){var c=0;a=g.w(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1};
D2a=function(a,b){for(var c=0,d=g.w(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};
E2a=function(a,b){b=YY(a,b)+1;return b<a.length?b:-1};
F2a=function(a,b){return YY(a,b)-1};
G2a=function(a,b){return new g.KE(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
I2a=function(a,b,c,d,e,f,h,l){g.jG.call(this);var m=this;this.api=a;this.contextMenu=c;this.Kg=d;this.oe=e;this.j=f;this.K=h;this.progressBar=l;this.G=new g.Ep(function(){H2a(m,!1)},1E3);
this.B="";this.C={kL:!1};this.D=!1;g.P(this,this.G);this.T(b,"mousedown",function(){ZY(m,!1)});
this.T(c.element,"mousedown",function(){ZY(m,!1)});
this.T(b,"keydown",this.BZ);this.T(c.element,"keydown",this.BZ);this.T(b,"keyup",this.CZ);this.T(c.element,"keyup",this.CZ)};
J2a=function(a,b){return b<0?0:Math.floor(Math.min(b,a.api.getDuration())*1E3)};
$Y=function(a,b,c){var d=a.api.getCurrentTime(),e=J2a(a,d);a=J2a(a,d+b);return{startMediaTimeMs:e,endMediaTimeMs:a,seekSource:c}};
K2a=function(a){var b,c=(b=a.api.getVideoData())==null?void 0:b.Bg();return a.api.getPresentingPlayerType(c)!==2};
ZY=function(a,b){a.D=b;g.Qp(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Qp(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
bZ=function(a,b,c,d){var e=g.pY(a.api.yb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.aZ.length;h++){var l=g.aZ[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);H2a(a,!0);a.G.start()}};
H2a=function(a,b){g.pY(a.api.yb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.cZ=function(a,b){g.S.call(this,{I:"button",La:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var c=this;this.J=a;this.Di=b;this.j=this.visible=!1;a.createClientVe(this.element,
this,16499);this.T(a,"videoplayerreset",this.Ra);this.T(a,"appresize",this.Ra);this.T(a,"fullscreentoggled",this.Ra);this.T(a,"presentingplayerstatechange",this.Ra);this.Ra();oS(a,this.element,this);this.listen("click",function(){a.logClick(c.element);ZS(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
L2a=function(a){g.YS.call(this,a,{I:"div",S:"ytp-overflow-panel",X:{id:Tx(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",va:"{{buttons}}"}]},{I:"button",La:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},V:[g.fy()]}]},250);this.actionButtons=[];this.j=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Mb);oS(a,this.closeButton,this);this.listen("click",
this.N6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
M2a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
N2a=function(a,b){a=g.w(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Lc(b)};
O2a=function(a,b,c){var d=g.eY(b,c),e=d.nh("default.jpg");g.S.call(this,{I:"a",La:["ytp-video-menu-item","ytp-button"],X:{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",X:{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)};
P2a=function(a){g.YS.call(this,a,{I:"div",S:"ytp-playlist-menu",X:{role:"dialog",id:Tx()},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",X:{href:"{{playlisturl}}"},va:"{{title}}"},{I:"button",La:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},V:[g.fy()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",va:"{{subtitle}}"}]},{I:"div",S:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Da("ytp-playlist-menu-items");this.j=new g.jG(this);this.playlistData=[];var b=this.Da("ytp-playlist-menu-close");this.T(b,"click",this.Mb);b=this.Da("ytp-playlist-menu-title-name");a.U().C||(this.C=this.T(b,"click",this.hda));g.P(this,this.j);this.hide()};
dZ=function(a,b){g.S.call(this,{I:"button",La:["ytp-playlist-menu-button","ytp-button"],X:{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",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{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.Ra);this.T(a,"appresize",this.Ra);this.hide();this.j();oS(a,this.element,this);this.listen("click",function(){a.logClick(c.element);ZS(b,c.element,!1)})};
Q2a=function(a,b){g.S.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}}",X:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",va:"{{acceptButtonText}}",X:{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.Da("ytp-promotooltip-title");this.details=this.Da("ytp-promotooltip-details");this.acceptButton=this.Da("ytp-promotooltip-accept-button");this.dismissButton=this.Da("ytp-promotooltip-dismiss-button");this.j=this.D=!1;this.C=!0;this.W=this.G=this.N=this.K=!1;this.Sc={dI:function(d){c.dI(d)}};
g.Xx(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.P6);this.T(b,"onHideControls",this.O6);this.T(b,"resize",this.kc);this.T(this.acceptButton,"click",this.Kaa);this.T(this.dismissButton,"click",this.pba);this.T(document,"click",this.Q6)};
R2a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=b.length>0?b[0]:null;var c=g.kh("ytp-chrome-bottom"),d=g.kh("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};
U2a=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.Sm(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.Ux({I:"span",S:"ytp-promotooltip-details-icon",
V:[S2a[a.tooltipRenderer.targetId]]});g.P(a,h);for(var l=[],m=g.w(d),n=m.next();!n.done;n=m.next())n=new g.Ux({I:"span",S:"ytp-promotooltip-details-component",va:n.value}),g.P(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.th(a.details),e=g.w(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Sm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.Q(e,g.dK))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.Q(e,g.dK).text.runs[0].text&&(a.update({acceptButtonText:g.Q(e,g.dK).text.runs[0].text.toString()}),f=!0);g.Sm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,y;((t=g.Q(p,g.dK))==null?0:(u=t.text)==null?0:(y=u.runs)==null?0:y.length)&&g.Q(p,g.dK).text.runs[0].text&&(a.update({dismissButtonText:g.Q(p,g.dK).text.runs[0].text.toString()}),
q=!0);g.Sm(a.dismissButton,q)}c&&(a.B=c);a.targetElement=R2a(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.Xx(a,!0);T2a(a);a.Eb&&!a.W&&(a.W=!0,a.Sc.dI(0));a.j&&a.J.logVisibility(a.element,a.Eb)}};
eZ=function(a){g.Xx(a,!1);a.j&&a.J.logVisibility(a.element,a.Eb)};
V2a=function(a){var b,c,d,e=((b=g.Q(a.acceptButton,g.dK))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.Q(a.acceptButton,g.dK).text.runs[0].text,f,h,l;b=((f=g.Q(a.dismissButton,g.dK))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.Q(a.dismissButton,g.dK).text.runs[0].text;return e||b};
T2a=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.Xx(a,!1);else if(b=g.Rm(a.targetElement),b.width&&b.height){a.J.Wy(a.element,a.targetElement);var d=a.J.ob().getPlayerSize().height;c=g.Rm(a.Da("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Io().height-c-b.height-12,a.element.style.top=d+"px");
d=a.Da("ytp-promotooltip-pointer");var e=g.Pm(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.Xx(a,!1)};
fZ=function(a){g.S.call(this,{I:"button",La:["ytp-replay-button","ytp-button"],X:{title:"Replay"},V:[g.ly()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.yd(a.getPlayerStateObject());oS(this.J,this.element,this)};
gZ=function(a,b){b=b===void 0?240:b;g.S.call(this,{I:"button",La:["ytp-button","ytp-search-button"],X:{title:"Search","data-tooltip-opaque":String(g.LP(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",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{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);oS(a,this.element,this)};
g.hZ=function(a,b,c,d){d=d===void 0?240:d;g.S.call(this,{I:"button",La:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.LP(a.U()))},V:[{I:"div",S:"ytp-share-icon",va:"{{icon}}"},{I:"div",S:"ytp-share-title",va:"Share"}]});this.api=a;this.Se=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Se.We();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ra);
this.T(a,"videoplayerreset",this.Ra);this.T(a,"appresize",this.Ra);this.T(a,"presentingplayerstatechange",this.Ra);this.Ra();this.addOnDisposeCallback(g.nS(this.tooltip,this.element))};
W2a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.LP(b)&&g.uS(a.api)&&g.U(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.Hq||d||g.YR(c)||a.j;d=a.api.ob().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
X2a=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Se.Sr(),ZS(a.B,a.element,!1)):g.px(b))};
Z2a=function(a,b){var c=Tx(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:Tx(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},va:"Share"},{I:"a",La:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.W,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",X:{type:"checkbox",
checked:"true"}},"Include playlist"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[xNa()]},{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",La:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},V:[g.fy()]}]};g.YS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.We();this.C=[];this.G=this.Da("ytp-share-panel-inner-content");
this.closeButton=this.Da("ytp-share-panel-close");this.T(this.closeButton,"click",this.Mb);this.addOnDisposeCallback(g.nS(this.tooltip,this.closeButton));this.D=this.Da("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ra);this.j=this.Da("ytp-share-panel-link");this.addOnDisposeCallback(g.nS(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=Y2a(e,h);
g.lT(h,e.api,f)&&e.api.eb("SHARE_CLICKED")});
this.listen("click",this.R6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.maa);this.hide()};
a3a=function(a,b){$2a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&d<2;e={wy:void 0,Jn:void 0},f++){e.wy=c[f];a:switch(e.wy.img||e.wy.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.wy.sname||e.wy.serviceName;e.Jn=new g.S({I:"a",La:["ytp-share-panel-service-button","ytp-button"],X:{href:e.wy.url,target:"_blank",title:l},V:[h]});e.Jn.listen("click",function(p){return function(q){var r=p.wy.url;if(g.jz(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 y=r instanceof Pf?r:g.Vf(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 F=C==="unsafe-url";C=u.noreferrer;if(A&&C){if(F)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;case "attributionsrc":A.push(H+(u[H]?"="+u[H]:
""));break;default:A.push(H+"="+(u[H]?1:0))}H=A.join(",");Pb()&&t.navigator&&t.navigator.standalone&&r&&r!="_self"?(H=g.qh("A"),g.Xf(H,y),H.target=r,C&&(H.rel="noreferrer"),((u=u.attributionsrc)||u==="")&&H.setAttribute("attributionsrc",u),u=document.createEvent("MouseEvent"),u.initMouseEvent("click",!0,!0,t,1),H.dispatchEvent(u),t={}):C?(t=g.bg(t,"",r,H),u=g.Rf(y),t&&(t.opener=null,u===""&&(u="javascript:''"),u=$f('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
ng(u)+'">'),(y=t.document)&&y.write&&(y.write(g.ag(u)),y.close()))):((t=g.bg(t,y,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.Jn.addOnDisposeCallback(g.nS(a.tooltip,e.Jn.element));l==="Facebook"?a.api.createClientVe(e.Jn.element,e.Jn,164504):l==="Twitter"&&a.api.createClientVe(e.Jn.element,e.Jn,164505);a.T(e.Jn.element,"click",function(p){return function(){a.api.logClick(p.Jn.element)}}(e));
a.api.logVisibility(e.Jn.element,!0);a.C.push(e.Jn);d++}}var m=b.more||b.moreLink,n=new g.S({I:"a",La:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=Y2a(a,q);g.lT(q,a.api,p)&&a.api.eb("SHARE_CLICKED")});
n.addOnDisposeCallback(g.nS(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)};
Y2a=function(a,b){var c={};g.LP(a.api.U())&&(g.eS(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.gj(b,c));return b};
$2a=function(a){for(var b=g.w(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vg(c);a.C=[]};
iZ=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0};
b3a=function(a,b){a.startSec+=b;a.endSec+=b};
d3a=function(a){yX.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;c3a(this);this.T(this.J,"changeProductsInVideoVisibility",this.fca);this.T(this.J,"videodatachange",this.onVideoDataChange)};
e3a=function(a){a.K&&a.Ja.element.removeChild(a.K.element);a.K=void 0};
g3a=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.Q(c,f3a))==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.S({I:"img",
S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.P(a,c);return c})};
h3a=function(a,b){a.isContentForward=b;g.Qp(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
jZ=function(a){var b=a.isContentForward&&!a.pN();g.Qp(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Qp(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)};
kZ=function(a,b,c){return new g.KE(a*1E3,b*1E3,{priority:9,namespace:c})};
i3a=function(a){a.J.kf("shopping_overlay_visible");a.J.kf("shopping_overlay_preview_collapsed");a.J.kf("shopping_overlay_preview_expanded");a.J.kf("shopping_overlay_expanded")};
c3a=function(a){a.T(a.J,g.ME("shopping_overlay_visible"),function(){a.Nf(!0)});
a.T(a.J,g.NE("shopping_overlay_visible"),function(){a.Nf(!1)});
a.T(a.J,g.ME("shopping_overlay_expanded"),function(){a.qa=!0;xX(a)});
a.T(a.J,g.NE("shopping_overlay_expanded"),function(){a.qa=!1;xX(a)});
a.T(a.J,g.ME("shopping_overlay_preview_collapsed"),function(){a.j=!0;jZ(a)});
a.T(a.J,g.NE("shopping_overlay_preview_collapsed"),function(){a.j=!1;jZ(a)});
a.T(a.J,g.ME("shopping_overlay_preview_expanded"),function(){a.B=!0;jZ(a)});
a.T(a.J,g.NE("shopping_overlay_preview_expanded"),function(){a.B=!1;jZ(a)})};
l3a=function(a){g.S.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().W,"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}}",X:{href:"{{channelTitleLink}}",target:a.U().W,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Da("ytp-shorts-title-channel-logo");this.channelName=this.Da("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.bg(window,j3a(b));c.preventDefault()});
a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.bg(window,j3a(b));c.preventDefault()});
k3a(this);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.Ra()};
k3a=function(a){if(!a.api.U().Tb){var b=a.api.getVideoData(),c=new g.NY("Subscribe",null,"Subscribed",null,!0,!1,b.ym,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.P(a,a.subscribeButton);a.subscribeButton.Ha(a.element)}};
j3a=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.nQ(b)+c.rb;if(!g.LP(b))return c;b={};g.eS(a.api,"addEmbedsConversionTrackingParams",[b]);return g.gj(c,b)};
lZ=function(a){g.YS.call(this,a,{I:"button",La:["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.Ep(function(){b.hide()},5E3);
this.uf=this.Jj=NaN;g.P(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Jj/1E3&&c<b.uf/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.Gu(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.uf/1E3)});
this.hide()};
mZ=function(a){g.S.call(this,{I:"button",La:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay","data-priority":"9"},va:"{{icon}}"});this.J=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Ra);this.T(a,"airplayavailabilitychange",this.Ra);this.Ra();oS(a,this.element,this)};
n3a=function(a){g.S.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.qh("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;m3a(this,a.ob().getPlayerSize().height)};
m3a=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){}}}};
nZ=function(a,b,c,d){g.S.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",La:["ytp-chapter-title","ytp-button"],V:[{I:"span",X:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",va:"\u2022"},{I:"div",S:"ytp-chapter-title-content",va:"{{title}}",X:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",
fill:"#fff"}}]}]}]}]});this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.W=this.Da("ytp-chapter-container");this.j=this.Da("ytp-chapter-title");this.oa=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.J.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.W,"click",this.onClick);this.T(a,g.ME(c),this.Rc);this.T(a,"onLoopRangeChange",this.Rc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
g.TP(this.J.U()))&&g.Qp(this.j,"ytp-profile-page",!0);this.J.L("web_player_updated_entrypoint")&&g.Qp(this.element,"ytp-xs-mono-button-style",!0);g.LP(this.J.U())||a||oS(this.J,this.oa,this)};
oZ=function(a,b){nZ.call(this,a,b,"chapterCueRange","View chapter")};
o3a=function(a,b,c,d,e){var f=b.Dy/b.rows,h=Math.min(c/(b.SG/b.columns),d/f),l=b.SG*h,m=b.Dy*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"};
p3a=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};
pZ=function(a,b){g.S.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.Da("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.jG(this);this.j=new g.Ny(this,100);g.P(this,this.events);g.P(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Bx()});
p3a(this.api)&&g.Mp(this.element,"ytp-storyboard-framepreview-big-boards")};
q3a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){q3a(a,a.api.Fk())}),a.events.T(a.api,"progresssync",a.Eg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,r3a(a),a.j.show(200)):(c&&g.ht(a.events),a.j.hide(),a.j.stop())};
r3a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.ob().getPlayerSize(),e=SQ(b,d.width);e=eLa(b,e,c);a.update({timestamp:g.iz(c)});e!==a.C&&(a.C=e,cLa(b,e,d.width),b=aLa(b,e,d.width),o3a(a.D,b,d.width,d.height))};
s3a=function(a,b){g.S.call(this,{I:"button",La:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},va:"{{icon}}"});this.J=a;this.Se=b;this.message=null;this.j=g.nS(this.Se.We(),this.element);this.B=new g.Ep(this.Y7,2E3,this);g.P(this,this.B);this.T(a,"fullscreentoggled",this.jm);this.T(a,"presentingplayerstatechange",this.Ra);this.T(a,"resize",this.Ra);this.listen("click",this.onClick);g.Ws()&&
(b=this.J.ob(),this.T(b,Zna(),this.IS),this.T(b,Yna(document),this.Oy));a.U().Bb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Ra();this.jm(a.isFullscreen())};
qZ=function(a,b){g.S.call(this,{I:"button",La:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[b>0?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",La:["ytp-circle-arrow","ytp-svg-fill"],X:{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",La:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",La:["ytp-circle-arrow","ytp-svg-fill"],X:{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",La:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Ep(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.XE(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);oS(a,this.element,
this)};
t3a=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.ji()};
rZ=function(a,b){nZ.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.NE("timedMarkerCueRange"),this.Rc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
u3a=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.Ee;if(c)for(a=a.D.Oa,c=g.w(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}};
sZ=function(a){g.S.call(this,{I:"button",La:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[Msa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ra);this.updateValue("title",g.pS(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});oS(a,this.element,this);a.createClientVe(this.element,
this,62946);this.Ra()};
v3a=function(a,b,c){c=c===void 0?!1:c;g.S.call(this,{I:"button",La:["ytp-mute-button","ytp-button"],X:a.U().Ua?{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.Fa=c;this.j=null;this.D=this.W=this.G=this.qa=NaN;this.Aa=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",oy());this.tooltip=b.We();this.j=new g.Ux({I:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{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",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",Fc:!0,La:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Fc:!0,La:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.P(this,this.j);this.K=this.j.Da("ytp-svg-volume-animation-speaker");
this.Aa=this.K.getAttribute("d");this.C=g.jh("ytp-svg-volume-animation-mover",this.j.element);this.B=g.jh("ytp-svg-volume-animation-hider",this.j.element);this.Ca=new XX;g.P(this,this.Ca);this.oa=new XX;g.P(this,this.oa);this.listen("click",this.Rba);this.T(a,"appresize",this.KW);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Ua?this.addOnDisposeCallback(g.nS(b.We(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),
d=new g.YS(a,{I:"span",La:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.W},va:b[2]},b[4]]},100,!0),g.P(this,d),d.hide(),d.subscribe("show",function(e){a.tF(d,e)}),g.US(a,d.element,4));
this.message=d;a.createClientVe(this.element,this,28662);this.KW(a.ob().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
y3a=function(a,b){a.qa=b;var c=a.Aa;b&&(c+=d0a(w3a,x3a,b));a.K.setAttribute("d",c)};
z3a=function(a,b){a.W=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=oy():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.tZ=function(a,b){g.S.call(this,{I:"button",La:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},va:"{{icon}}"});this.J=a;this.j=null;this.transition=new XX;this.tooltip=b.We();g.P(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.yd(a.getPlayerStateObject());this.listen("click",this.Bt,this);this.addOnDisposeCallback(g.nS(b.We(),this.element))};
A3a=function(a){switch(a){case 1:return ky();case 2:return Ksa();case 3:return g.ly();case 4:return Osa();default:return null}};
g.uZ=function(a,b,c){g.S.call(this,{I:"a",La:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},V:[c?hy():Nsa()]});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.We();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.wO);this.T(a,"mdxpreviousnextchange",function(){B3a(d);d.wO()});
this.onVideoDataChange()};
C3a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
D3a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&a.J.getCurrentTime()>=3&&a.J.getPresentingPlayerType()!==2};
E3a=function(a){var b=tS(a.J.yb());return b?a.j?b.Rl():b.wq():!1};
B3a=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.Rl();c=g.uS(a.J)&&(!a.j||c);var d=a.j&&g.VS(a.J),e=E3a(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.pS(a.J,"Next","SHIFT+n"),l=g.pS(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.eY(a.playlist,a.j?v0a(a.playlist):w0a(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.iz(m.lengthSeconds):null;b.preview=m.nh("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.sR(m))b.url=l.Pl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.iz(l.lengthSeconds):
null,b.preview=l.nh("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.nS(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Mc(a.G),a.G=null);a.tooltip.ji()};
G3a=function(a,b){g.S.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},
va:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[ky()],X:{title:"Play from this position",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.fy()],X:{title:"Exit precise seeking",role:"button"}}]});var c=this;this.api=a;this.G=this.Da("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Da("ytp-fine-scrubbing-dismiss");this.Aa=this.Da("ytp-fine-scrubbing-draggable");this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.Ka=this.j=0;this.Ja=void 0;
this.oa=NaN;this.Oa=this.W=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Ua=0;this.isEnabled=this.Fa=!1;F3a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.nS(b,this.dismissButton));this.addOnDisposeCallback(g.nS(b,this.playButton));this.Ca=new g.LX(this.Aa,!0);this.Ca.subscribe("dragstart",this.yO,this);this.Ca.subscribe("dragmove",this.xO,this);this.Ca.subscribe("dragend",this.T6,this);this.T(a,"SEEK_COMPLETE",this.ZB);a.L("web_fix_fine_scrubbing_false_play")&&
this.T(a,"rootnodemousedown",function(d){c.qa=d});
this.G.addEventListener("keydown",function(){});
g.P(this,this.Ca);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)};
F3a=function(a,b){var c=g.iz(b),d=g.XE("Seek to $PROGRESS",{PROGRESS:g.iz(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
H3a=function(a){a.oa=NaN;a.W=0;a.N=a.C};
K3a=function(a){var b=a.api.Fk();if(b){var c=90*a.scale,d=SQ(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=TQ(b,b.Vz()),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.xe(l),column:0,columns:p,row:n,rows:m,SG:b.width*p,Dy:b.height*m};d.push(q);h-=p;if(h<=1)break}a.D=d;a.frameCount=b.CK();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 I3a,a.thumbnails.push(d),d.Ha(a.G),g.P(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.Dy/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Dy/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";vZ(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Wk;a.B.length>c.length;)d=void 0,(d=a.B.pop())==null||d.dispose();
for(;a.B.length<c.length;)d=new J3a,a.B.push(new J3a),g.P(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.Fm(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ha(a.thumbnails[f].element);a.Fa=!0}}};
vZ=function(a,b){a.qa&&(a.qa.hB=!0);a.update({seekTime:g.iz(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.Bg(b,L3a(a),a.j/2);a.N=b;a.C=a.N;g.Fm(a.Aa,"transform","translateX("+(a.N-a.j/2)+"px)");g.Fm(a.Aa,"padding","0px "+a.j/2+"px");g.Fm(a.G,"position","relative")};
M3a=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};
L3a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
I3a=function(){g.S.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
J3a=function(){g.S.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",va:"{{chapterTitle}}"}]})};
N3a=function(a){g.S.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Da("ytp-heat-map-svg");this.C=this.Da("ytp-heat-map-path");this.G=this.Da("ytp-heat-map-graph");this.D=this.Da("ytp-heat-map-play");this.B=this.Da("ytp-heat-map-hover");this.ye=!1;this.j=60;a=""+g.Wa(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.Mp(this.api.getRootNode(),"ytp-heat-map-v2")};
O3a=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")};
wZ=function(){g.S.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",La:["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.Da("ytp-progress-linear-live-buffer");this.C=this.Da("ytp-ad-progress-list");
this.G=this.Da("ytp-load-progress");this.K=this.Da("ytp-play-progress");this.B=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
xZ=function(a,b){g.Fm(a.j,"width",b)};
P3a=function(a,b){g.Fm(a.j,"margin-right",b+"px")};
Q3a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
R3a=function(){g.S.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.zZ=function(a,b){g.Yx.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",La:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",La:["ytp-progress-bar"],X:{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",La:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",La:["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",X:{title:"{{clipstarttitle}}"},va:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",
X:{title:"{{clipendtitle}}"},va:"{{clipendicon}}"}]});this.api=a;this.uf=!1;this.Nd=this.Xf=this.Ta=this.N=this.Wf=0;this.ge=null;this.Ka={};this.Qb={};this.clipEnd=Infinity;this.Bb=this.Da("ytp-clip-end");this.Bc=new g.LX(this.Bb,!0);this.qc=this.Da("ytp-clip-end-exclude");this.jd=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Gb=this.Da("ytp-clip-start");this.Pc=new g.LX(this.Gb,!0);this.oa=this.ib=0;this.progressBar=this.Da("ytp-progress-bar");this.rb={};this.Oa={};this.Tb=this.Da("ytp-chapters-container");
this.Vf=this.Da("ytp-timed-markers-container");this.j=[];this.K=[];this.mf={};this.gh=null;this.Aa=-1;this.kb=this.Ca=0;this.W=null;this.hh=this.Da("ytp-scrubber-button");this.Zh=this.Da("ytp-scrubber-container");this.Ya=new g.Eg;this.Af=new Q3a;this.C=new rz(0,0);this.Fb=null;this.D=this.nf=!1;this.Uf=null;this.qa=this.Da("ytp-heat-map-container");this.Ad=this.Da("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Va=this.Da("ytp-fine-scrubbing-container");this.kd=this.Da("ytp-fine-scrubbing-edu");
this.B=void 0;this.Fa=this.le=this.Ja=!1;this.tooltip=b.We();this.addOnDisposeCallback(g.nS(this.tooltip,this.Bb));g.P(this,this.Bc);this.Bc.subscribe("hoverstart",this.I0,this);this.Bc.subscribe("hoverend",this.H0,this);this.T(this.Bb,"click",this.WM);this.addOnDisposeCallback(g.nS(this.tooltip,this.Gb));g.P(this,this.Pc);this.Pc.subscribe("hoverstart",this.I0,this);this.Pc.subscribe("hoverend",this.H0,this);this.T(this.Gb,"click",this.WM);S3a(this);this.T(a,"resize",this.kc);this.T(a,"presentingplayerstatechange",
this.i$);this.T(a,"videodatachange",this.Gu);this.T(a,"videoplayerreset",this.h$);this.T(a,"cuerangesadded",this.Rfa);this.T(a,"cuerangesremoved",this.iea);this.T(a,"onLoopRangeChange",this.LW);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.ME("timedMarkerCueRange"),this.gda);this.T(a,"updatemarkervisibility",this.X3);var c;((c=a.getVideoData())==null?0:c.Bg())&&a.L("html5_lifa_ad_disable_progress_bar")&&this.T(a,"serverstitchedvideochange",this.Sfa);this.updateVideoData(a.getVideoData(),
!0);this.LW(a.getLoopRange());yZ(this)&&!this.B&&(this.B=new G3a(this.api,this.tooltip),a=g.Om(this.element).x||0,this.B.kc(a,this.N),this.B.Ha(this.Va),g.P(this,this.B),this.T(this.B.dismissButton,"click",this.Bx),this.T(this.B.playButton,"click",this.eQ),this.T(this.B.element,"dblclick",this.eQ));this.api.createClientVe(this.qa,this,139609,!0);this.api.createClientVe(this.Ad,this,140127,!0);this.api.createClientVe(this.kd,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)};
S3a=function(a){if(a.j.length===0){var b=new wZ;a.j.push(b);g.P(a,b);b.Ha(a.Tb,0)}for(;a.j.length>1;)a.j.pop().dispose();xZ(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
T3a=function(a){var b=b===void 0?NaN:b;var c=new N3a(a.api);a.G.push(c);g.P(a,c);c.Ha(a.qa);b>=0&&(c.element.style.width=b+"px")};
U3a=function(a){for(;a.K.length;)a.K.pop().dispose()};
W3a=function(a){var b,c,d,e,f;return(f=g.Q((e=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,IQ))==null?void 0:e.playerBar,V3a))==null?void 0:f.chapters};
X3a=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.KE(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.kf("chapterCueRange");a.api.qf(c)};
e4a=function(a,b){var c,d=(c=a.rb[b])==null?void 0:c.chapters;d&&(Y3a(a,d),a.api.getVideoData().Wk=a.j,X3a(a));var e;if((c=(e=a.rb[b])==null?void 0:e.markers)&&b!=="HEATSEEKER"){U3a(a);e=g.w(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new R3a,d=g.Q(d,g.Z3a)){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;$3a(a,c)}a4a(a,
a.K);e=a.K;c=a.mf;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=G2a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.qf(d)}var l;if(b=g.Q((l=a.rb[b])==null?void 0:l.heatmap,b4a)){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&&
T3a(a);f=[];c&&f.push(c);for(var q=g.w(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,u=void 0,y=(u=(t=g.Q(r,c4a))==null?void 0:t.timeRangeStartMillis)!=null?u:-1;y>=h&&y<=p&&f.push(r)}m>0&&(a.qa.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;y=d===0;y=y===void 0?!1:y;O3a(h,u);q=p;t=h.j;y=y===void 0?!1:y;var A=1E3/q.length,C=[];C.push({x:0,y:100});for(var F=0;F<q.length;F++){var H=void 0,L=((H=g.Q(q[F],c4a))==null?void 0:H.heatMarkerIntensityScoreNormalized)||0;H=(F+.5)*A;L=100-g.Bg(L*100,r/
t*100,u/t*100);F!==0||y||C.push({x:0,y:L});C.push({x:H,y:L});F===q.length-1&&C.push({x:1E3,y:L})}C.push({x:1E3,y:100});q=C;p=p.length===0?"":jva(q);h.C.setAttribute("d",p);h.ye=p!=="";g.Qp(h.api.getRootNode(),"ytp-heat-map",h.ye);g.Qp(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.AZ(a);l=[];b=g.w(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.Q(e.value,d4a))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.ay(m):""});a.heatMarkersDecorations=l}};
$3a=function(a,b){a.K.push(b);g.P(a,b);b.Ha(a.Vf,a.Vf.children.length)};
a4a=function(a,b){b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=BZ(a,c.timeRangeStartMillis/(a.C.j*1E3),CZ(a));g.Fm(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
Y3a=function(a,b){var c=0,d=!1;b=g.w(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.Q(e,f4a)){e=g.Q(e,f4a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.ay(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 wZ,a.j.push(f),g.P(a,f),f.Ha(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.AZ(a);DZ(a)};
g.AZ=function(a){a.Ca=a.j.length-1;a.kb=0;g4a(a,!0)&&g4a(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){P3a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;xZ(a.j[d],e+"px");break}a.j[c].width=0;xZ(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,xZ(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,xZ(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)};
g4a=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.kb===0?3:h*a.kb,m=g.w(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,P3a(a.j[c],a.D?3:2));g.Qp(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);P3a(p.j[q],0);b&&(a.Ca--,m/f>a.kb&&(a.kb=m/f),d=!0)}c++}}return d};
DZ=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;if(((d=a.api.getVideoData())==null?0:WR(d))&&b.airingStart&&b.airingEnd)var e=EZ(a,b.airingStart,b.airingEnd);else if(a.api.getPresentingPlayerType()===2&&a.api.U().L("show_preskip_progress_bar_for_skippable_ads")){var f,h,l;e=(c=(e=a.api.getVideoData())==null?void 0:(f=e.getPlayerResponse())==null?void 0:(h=f.playerConfig)==null?void 0:(l=h.webPlayerConfig)==
null?void 0:l.skippableAdProgressBarDuration)?EZ(a,b.seekableStart,c/1E3):EZ(a,b.seekableStart,b.seekableEnd)}else e=EZ(a,b.seekableStart,b.seekableEnd);f=sz(e,b.loaded,0);b=sz(e,b.current,0);h=a.C.B!==e.B||a.C.j!==e.j;a.C=e;FZ(a,b,f);h&&h4a(a);i4a(a)}}};
EZ=function(a,b,c){return j4a(a)?new rz(Math.max(b,a.Fb.startTimeMs/1E3),Math.min(c,a.Fb.endTimeMs/1E3)):new rz(b,c)};
k4a=function(a,b){var c;if(((c=a.Fb)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[YY(a.j,b.startTimeMs)],g.Qp(b.j,"ytp-repeating-chapter",!1)),a.Fb&&(b=a.j[YY(a.j,a.Fb.startTimeMs)],g.Qp(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Qp(d.j,"ytp-exp-chapter-hover-container",!a.Fb)})};
HZ=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(a.j.length>1){c=GZ(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};
IZ=function(a,b,c,d,e){b=b<0?0:Math.floor(Math.min(b,a.api.getDuration())*1E3);c=c<0?0:Math.floor(Math.min(c,a.api.getDuration())*1E3);a=a.progressBar.visualElement;d={seekData:{startMediaTimeMs:b,endMediaTimeMs:c,seekSource:d}};(b=g.hx())&&g.Dr(Hx)(void 0,b,a,e,d,void 0)};
l4a=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};
h4a=function(a){a.hh.style.removeProperty("height");for(var b=g.w(Object.keys(a.Ka)),c=b.next();!c.done;c=b.next())m4a(a,c.value);JZ(a);FZ(a,a.oa,a.ib)};
CZ=function(a){var b=a.Ya.x;b=g.Bg(b,0,a.N);a.Af.update(b,a.N);return a.Af};
LZ=function(a){return(a.D?135:90)-KZ(a)};
KZ=function(a){var b=48,c=a.api.U();a.D?b=54:g.LP(c)&&!c.B&&(b=40);return b};
FZ=function(a,b,c){a.oa=b;a.ib=c;var d=CZ(a),e=a.C.j;var f=a.C;f=f.B+a.oa*f.getLength();var h=g.XE("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.iz(f,!0),DURATION:g.iz(e,!0)}),l=YY(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.Fb&&a.api.getPresentingPlayerType()!==2&&(e=a.Fb.startTimeMs/1E3,f=a.Fb.endTimeMs/1E3);e=sz(a.C,e,0);l=sz(a.C,f,1);h=a.api.getVideoData();f=g.Bg(b,e,l);c=(h==null?
0:g.VR(h))?1:g.Bg(c,e,l);b=BZ(a,b,d);g.Fm(a.Zh,"transform","translateX("+b+"px)");MZ(a,d,e,f,"PLAY_PROGRESS");(h==null?0:WR(h))?(b=a.api.getProgressState().seekableEnd)&&MZ(a,d,f,sz(a.C,b),"LIVE_BUFFER"):MZ(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)+"%")}};
MZ=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ca*(a.D?3:2),l=c*h;c=GZ(a,l);var m=d*h;h=GZ(a,m);e==="HOVER_PROGRESS"&&(h=GZ(a,b.j*d,!0),m=b.j*d-n4a(a,b.j*d)*(a.D?3:2));d=Math.max(l-o4a(a,c),0);for(l=c;l<f;l++)a.j[l].Ib(e).style.left=c===l?d+"px":"0";b=BZ(a,a.oa,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;NZ(a,l,p,n);p4a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.Bg(m-o4a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Ib(e);NZ(a,d,m,f);p4a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)q4a(a,h,e);
for(h=0;h<c;h++)q4a(a,h,e)};
o4a=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};
q4a=function(a,b,c){c=a.j[b].Ib(c);NZ(a,c,0,a.j[b].width)};
p4a=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.jd.clientWidth>0||a.qc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.jd.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Fm(b,"background-size",f+"px"),g.Fm(b,"background-position-x",a+"px"))};
NZ=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Fm(b,"transform","scalex("+(d?c/d:0)+")")};
GZ=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=n4a(a,b)*(a.D?3:2));c=g.w(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};
BZ=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.w(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};
n4a=function(a,b){for(var c=a.j.length,d=0,e=g.w(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.r4a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Wf=b;a.N=c;a.D=d;yZ(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);h4a(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.AZ(a);a.B&&f&&yZ(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-KZ(a),a.Va.style.height=c+"px",g.Fm(a.qa,"transform","translateY("+-d+"px)"),g.Fm(a.progressBar,"transform","translateY("+-d+"px)")),K3a(a.B))};
JZ=function(a){var b=!!a.Fb&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Fb?(c=a.Fb.startTimeMs/1E3,d=a.Fb.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&d<a.C.j);var h,l;if(((h=a.Fb)==null?0:h.postId)||((l=a.Fb)==null?void 0:l.type)==="repeatChapter")f=e=!1;g.Qp(a.element,"ytp-loop-range-enabled",b);g.Qp(a.element,"ytp-clip-start-enabled",e);g.Qp(a.element,"ytp-clip-end-enabled",f);b=e?sz(a.C,c,0):0;d=f?sz(a.C,d,1):1;a.Gb.style.left=Math.round(b*1E3)/10+"%";a.Bb.style.left=
Math.round(d*1E3)/10+"%";a.jd.style.width=Math.round(b*1E3)/10+"%";a.qc.style.left=Math.round(d*1E3)/10+"%";a.qc.style.width=Math.round((1-d)*1E3)/10+"%"};
i4a=function(a){var b;if((b=a.api.getVideoData())==null||!WR(b)){b=CZ(a);MZ(a,b,a.oa,Math.max(b.B,a.oa),"HOVER_PROGRESS");for(var c=GZ(a,b.j*a.oa,!0),d=GZ(a,b.C,!0),e=c;e<=d;e++)g.Qp(a.j[e].B,"ytp-hover-progress-light",b.B>a.oa);g.Qp(a.hh,"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)+"%")}}};
m4a=function(a,b){var c=a.Ka[b];b=a.Qb[b];var d=CZ(a),e=sz(a.C,c.start/1E3,0),f=mwa(c,a.D)/d.width;var h=sz(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.Bg(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";NZ(a,b,g.Bg((h-c)*d.j+d.D,0,d.width),d.width,!0)};
s4a=function(a,b){var c=b.getId();a.Ka[c]===b&&(g.vh(a.Qb[c]),delete a.Ka[c],delete a.Qb[c])};
yZ=function(a){var b=g.fQ(a.api.U())&&(a.api.L("web_enable_pip_on_miniplayer")||a.api.L("web_enable_auto_pip")),c;return!((c=a.api.getVideoData())==null?0:c.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()&&(!a.api.hj()||!b)};
OZ=function(a){a.B&&(a.B.disable(),a.Ta=0,a.qa.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Va.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
t4a=function(a,b){var c=b/LZ(a)*KZ(a);g.Fm(a.progressBar,"transform","translateY("+-b+"px)");g.Fm(a.qa,"transform","translateY("+-b+"px)");g.Fm(a.Va,"transform","translateY("+c+"px)");a.Va.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=KZ(a)-c+"px")};
u4a=function(a,b){b?a.W||(a.element.removeAttribute("aria-disabled"),a.W=new g.LX(a.progressBar,!0),a.W.subscribe("hovermove",a.ica,a),a.W.subscribe("hoverend",a.hca,a),a.W.subscribe("dragstart",a.gca,a),a.W.subscribe("dragmove",a.kca,a),a.W.subscribe("dragend",a.jca,a),a.Uf=a.listen("keydown",a.V6)):a.W&&(a.element.setAttribute("aria-disabled","true"),a.Mc(a.Uf),a.W.cancel(),a.W.dispose(),a.W=null)};
j4a=function(a){var b;return!((b=a.Fb)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2};
PZ=function(a,b){g.S.call(this,{I:"button",La:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},va:"{{icon}}"});this.J=a;this.Cb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ra);this.T(a,"presentingplayerstatechange",this.Ra);this.T(a,"appresize",this.Ra);a.createClientVe(this.element,this,139118);this.Ra();this.listen("click",this.B,this);oS(a,this.element,this)};
QZ=function(a,b){g.S.call(this,{I:"button",La:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Tx(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.my()]});this.J=a;this.Cb=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);oS(a,this.element,this);this.J.createClientVe(this.element,
this,28663);this.updateBadge();this.j(a.ob().getPlayerSize())};
v4a=function(a,b){a.B=!!b;a.j(a.J.ob().getPlayerSize())};
RZ=function(a,b){iT.call(this,"Annotations",g.mT.C4);this.J=a;this.Cb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Ra);this.T(a,"onApiChange",this.Ra);this.subscribe("select",this.onSelect,this);this.Ra()};
SZ=function(a,b){g.IX.call(this,"Audio track",g.mT.AUDIO,a,b);this.J=a;this.tracks={};g.Mp(this.element,"ytp-audio-menu-item");this.countLabel=new g.S({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",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{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.P(this,this.countLabel);this.dk(this.countLabel);this.T(a,"videodatachange",this.Ra);this.T(a,"onPlaybackAudioChange",this.Ra);this.Ra()};
TZ=function(a,b){iT.call(this,"Autoplay",g.mT.H4);this.J=a;this.Cb=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()};
w4a=function(a,b){g.$S.call(this,g.aT({"aria-haspopup":"false"}),0,"More options");this.J=a;this.Cb=b;this.T(this.element,"click",this.onClick);this.Cb.Tc(this)};
x4a=function(a,b){var c;g.fQ(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",X:{href:"/account_downloads"}}]});g.IX.call(this,"Quality",g.mT.q7,a,b,void 0,void 0,c);this.J=a;this.Aa={};this.W={};this.D={};this.Ca=new Set;this.j=this.G=!1;this.K="unknown";this.oa="";this.qa=new g.Hv;g.P(this,this.qa);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",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Mp(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.WD);this.T(a,"videoplayerreset",this.WD);this.T(a,"onPlaybackQualityChange",this.MW);this.WD();a.createClientVe(this.element,this,137721)};
z4a=function(a,b,c){var d=a.Aa[b],e=g.mG[b];return y4a(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
A4a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.W[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=y4a(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};
y4a=function(a,b,c,d){b={I:"span",La: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};
UZ=function(a,b,c,d){g.S.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",X:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.j=this.Da("ytp-input-slider");this.B=d?d:a;this.init();this.T(this.j,"input",this.G)};
B4a=function(a,b){a.j.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")};
VZ=function(a){UZ.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.qh("P");this.oa=jfa(this.W,this);g.Mp(this.j,"ytp-speedslider");g.Mp(this.C,"ytp-speedslider-text");a=this.C;var b=this.j;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);this.C.textContent=this.B+"x";this.T(this.j,"change",this.qa)};
WZ=function(a,b,c,d,e,f,h){g.S.call(this,{I:"div",S:"ytp-slider-section",X:{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.W=b;this.B=c;this.C=d;this.oa=e;this.Fa=f;this.range=this.C-this.B;this.Ja=this.Da("ytp-slider-section");this.D=this.Da("ytp-slider");this.qa=this.Da("ytp-slider-handle");this.K=new g.LX(this.D,
!0);this.j=h?h:c;g.P(this,this.K);this.K.subscribe("dragmove",this.X6,this);this.T(this.element,"keydown",this.Y6);this.T(this.element,"wheel",this.W6);this.init()};
XZ=function(a){WZ.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.qh("P");this.Ca=jfa(this.Aa,this);g.Mp(this.D,"ytp-speedslider");g.Mp(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);C4a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
C4a=function(a){a.G.textContent=D4a(a,a.j)+"x"};
D4a=function(a,b){a=Number(g.Bg(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))};
E4a=function(a){g.Yx.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new VZ(a):this.j=new XZ(a);g.P(this,this.j);this.element.appendChild(this.j.element)};
F4a=function(a){var b=new E4a(a);zX.call(this,a,b,"Custom");g.P(this,b)};
G4a=function(a,b){var c=new F4a(a);g.IX.call(this,"Playback speed",g.mT.t7,a,b,YZ(a)?void 0:"Custom",YZ(a)?void 0:function(){g.DX(b,c)});
var d=this;this.G=!1;g.P(this,c);this.K=new VZ(a);g.P(this,this.K);a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});this.J=a;this.G=!1;this.oa=null;YZ(a)?(this.j=g.XE("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.W=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ra);var e;this.J.L("html5_lifa_ui_disablement")&&((e=this.J.getVideoData())==null?0:e.Bg())&&this.T(a,"serverstitchedvideochange",this.Ra);this.T(this.K.j,"change",function(){d.G=!0;d.Ra()});
this.Ra()};
I4a=function(a,b){var c=H4a(b);a.j&&(a.G||b===a.D)?(a.Ji(a.j),a.Fd(b.toString())):a.Ji(c)};
K4a=function(a){a.Bl(a.W.map(H4a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.W.includes(b)||YZ(a.J))J4a(a,b),a.Ji(a.j)};
J4a=function(a,b){a.D=b;a.j=g.XE("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.W.map(H4a);b.unshift(a.j);a.Bl(b)};
H4a=function(a){return a.toString()};
YZ=function(a){return a.L("web_settings_menu_surface_custom_playback")};
L4a=function(a){return a.L("web_settings_menu_surface_custom_playback")&&a.L("web_settings_use_input_slider")};
N4a=function(a,b,c,d){var e=new g.AX(b,void 0,"Video Override");g.IX.call(this,d.text||"",a,b,c,"Video Override",function(){g.DX(c,e)});
var f=this;g.Mp(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.mc(a,this.NW,this);this.G=e;g.P(this,this.G);b=new g.$S({I:"div",S:"ytp-menuitemtitle",va:"Allow for a different caption style if specified by the video."},0);g.P(this,b);this.G.Tc(b,!0);this.D=new g.$S({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"On"}]},-1);g.P(this,this.D);this.G.Tc(this.D,!0);this.T(this.D.element,
"click",function(){M4a(f,!0)});
this.j=new g.$S({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",va:"Off"}]},-2);g.P(this,this.j);this.G.Tc(this.j,!0);this.T(this.j.element,"click",function(){M4a(f,!1)});
this.Bl(g.Ql(a,this.NW))};
M4a=function(a,b){a.publish("settingChange",a.setting+"Override",!b);a.Cb.nj()};
ZZ=function(a,b){g.AX.call(this,a,void 0,"Options");var c=this;this.hv={};for(var d=0;d<g.aZ.length;d++){var e=g.aZ[d],f=new N4a(-d,a,b,e);g.P(this,f);f.subscribe("settingChange",this.Qk,this);this.hv[e.option.toString()]=f;this.Tc(f,!0)}a=new g.$S(g.aT(),-g.aZ.length,"Reset");g.P(this,a);a.listen("click",function(){c.Qk("reset",!0)});
this.Tc(a,!0)};
$Z=function(a,b){g.IX.call(this,"Auto-translate",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
O4a=function(a,b){a.languages=g.mc(b,a.j,a);a.Bl(g.Ql(b,a.j))};
Q4a=function(a,b){var c=new ZZ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.fQ(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",X:{href:"/account_playback"}},{I:"span",va:d[1]}]});g.IX.call(this,"Subtitles/CC",g.mT.SUBTITLES,a,b,"Options",function(){g.DX(b,c)},e);
var f=this;this.J=a;this.Cb=b;this.tracks={};this.K=new g.Ep(function(){P4a(f,!1)},3E3);
g.P(this,this.K);this.countLabel=new g.S({I:"div",V:[{I:"span",va:"Subtitles/CC"},{I:"span",S:"ytp-menuitem-label-count",va:"{{content}}"}]});g.P(this,this.countLabel);this.dk(this.countLabel);a.L("web_settings_menu_icons")&&this.setIcon(vNa.includes("en")?{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new $Z(a,b);g.P(this,this.j);this.j.subscribe("select",this.Z6,this);this.G=c;g.P(this,this.G);this.G.subscribe("settingChange",this.Qk,this);b.subscribe("show",this.Qca,this);this.T(a,"videodatachange",this.Ra);this.T(a,"onApiChange",this.Ra);this.T(a,"onCaptionsTrackListChanged",
this.Ra);this.T(a,"captionschanged",this.Ra);a.createClientVe(this.element,this,127300);this.Ra()};
R4a=function(a){return Object.values(a.tracks).find(function(b){return b.languageCode==="en"&&b.kind==="asr"})};
a_=function(a,b){a.J.setOption("captions","track",b)};
P4a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
S4a=function(a){g.CX.call(this,a,"ytp-settings-menu");var b=this;this.Te=new g.AX(this.J);this.ET=this.settingsButton=null;this.isInitialized=this.yM=!1;g.P(this,this.Te);this.hide();g.DX(this,this.Te);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Nf(c)});
this.T(a,"highlightSettingsMenu",function(){b.yM=!0;b.rd()});
this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.yM=!0,b.rd(),c==="menu_item_video_quality_advanced")){var d;(d=b.ET)==null||d.open()}})};
T4a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
b_=function(a,b){g.S.call(this,{I:"button",La:["ytp-subtitles-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[wNa()]});this.J=a;this.tooltip=b.We();this.T(a,"videodatachange",this.Ra);this.T(a,"appresize",this.Ra);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ra);this.T(a,"onCaptionsTrackListChanged",this.Ra);this.T(a,"captionschanged",this.Ra);
this.J.createClientVe(this.element,this,127299);this.Ra();this.listen("click",this.onClick);this.addOnDisposeCallback(g.nS(b.We(),this.element))};
U4a=function(a){return g.pY(a.J.yb())!=null?g.pY(a.J.yb()).yU()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.c_=function(a,b,c){c=c===void 0?350:c;g.S.call(this,{I:"div",La:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",va:"{{clipicon}}"},{I:"span",S:"ytp-time-wrapper",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}}"}]});var d=this;this.api=
a;this.N=c;this.liveBadge=new g.S({I:"button",La:["ytp-live-badge","ytp-button"],X:{disabled:"true"},va:"{{content}}"});this.j=null;this.rG=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Fb=this.D=this.C=null;this.W=this.Da("ytp-clip-watch-full-video-button");this.api.L("web_player_updated_entrypoint")&&g.Qp(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.Fd("Live");g.P(this,this.liveBadge);this.liveBadge.Ha(this.element);this.tooltip=b.We();this.listen("click",this.onClick);this.T(this.W,
"click",this.qda);this.api.L("html5_lifa_hide_live_badge")&&this.T(this.api,"serverstitchedvideochange",function(){V4a(d,d.api.getProgressState().isAtLiveHead)});
this.T(a,"presentingplayerstatechange",this.Rc);this.T(a,"appresize",this.Rc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Rc();W4a(this,a.getLoopRange());this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
V4a=function(a,b){var c=a.liveBadge.element;if(a.api.L("html5_lifa_hide_live_badge")){var d=a.api.isLifaAdPlaying();c.disabled=d||b}else c.disabled=b;!d_(a)||a.K===b&&a.G===a.isPremiere||(a.K=b,a.G=a.isPremiere,a.Rc(),c.style.setProperty("--live-badge-background-color",b?"#f00":"#757575"),a.liveBadge.Fd(a.isPremiere?"Premiere":"Live"),b?a.j&&(a.j(),a.j=null,c.removeAttribute("title")):(c.title="Skip ahead to live broadcast.",a.j=g.nS(a.tooltip,a.liveBadge.element)))};
W4a=function(a,b){var c=a.Fb!==b;a.Fb=b;c&&X4a(a)};
X4a=function(a){a.updateValue("clipicon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.rG&&!a.B?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Qp(a.element,"ytp-clip",e_(a));g.Qp(a.element,"ytp-live",d_(a))};
d_=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.rG&&!e_(a)&&(!b||!a.B)};
e_=function(a){return!!a.Fb&&!!a.Fb.postId&&a.api.getPresentingPlayerType()!==2&&(!a.Fb.type||a.Fb.type==="clips")};
Z4a=function(a,b){g.S.call(this,{I:"div",S:"ytp-volume-panel",X:{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.xn=!1;this.W=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Oh();this.N=this.Da("ytp-volume-slider");this.oa=this.Da("ytp-volume-slider-handle");
this.D=new g.LX(this.N,!0);g.P(this,this.D);this.D.subscribe("dragstart",this.Wca,this);this.D.subscribe("dragmove",this.b7,this);this.D.subscribe("dragend",this.Vca,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.OW);this.T(a,"fullscreentoggled",this.Oy);this.T(a,"onShowControls",this.cY);this.T(a,"onHideControls",this.cY);this.T(this.element,"keydown",this.c7);this.T(this.element,"focus",function(){f_(c,c.j,c.isDragging,!0,c.api.xn())});
this.T(this.element,"blur",function(){f_(c,c.j,c.isDragging,!1,c.api.xn())});
this.OW(a.ob().getPlayerSize());Y4a(this,a.getVolume(),a.isMuted());oS(a,this.element,this)};
Y4a=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.oa.style.left=(a.C?60:40)*c+"px";a.volume=b};
$4a=function(a,b){g.Qp(a.element,"ytp-volume-control-hover",b);f_(a,b,a.isDragging,a.B,a.api.xn())};
f_=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.xn;a.j=b;a.isDragging=c;a.B=d;a.xn=e;b=a.j||a.isDragging||a.B||a.xn;f!==b&&(b?a.G=a.T(a.element,"wheel",a.a7):(a.Mc(a.G),a.G=null),g.Qp(a.K,"ytp-volume-slider-active",b))};
g_=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.W,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(e.href="{{url}}");g.S.call(this,{I:"a",La:d,X: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.nS(b.We(),this.element));this.kc()};
a5a=function(a,b,c){g.jG.call(this);var d=this;this.J=a;this.Se=b;this.Kg=c;this.ib=NaN;this.Ta=this.Ya=null;this.B=new S4a(this.J);this.progressBar=new g.zZ(this.J,this.Se);this.oa=this.W=this.G=null;this.Aa=new g.c_(this.J,this.Se);this.Ua=this.playButton=this.D=this.K=this.Oa=this.Ja=null;this.Va=new s3a(this.J,this.Se);this.Z=new g.Dp(this.d7,null,this);this.qa=null;c=a.U();this.Kg.subscribe("autohideupdate",this.VB,this);var e=!a.getPlayerStateObject().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
this.Ta=f=new n3a(a):f=new g.S({I:"div",S:"ytp-gradient-bottom"});g.P(this,f);g.US(a,f.element,9);this.Fa=new g.Ny(f,250,e,100);g.P(this,this.Fa);this.C=new g.S({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.P(this,this.C);g.US(a,this.C.element,9);this.Ca=new g.Ny(this.C,250,e,100);g.P(this,this.Ca);this.Ka=this.C.element.children[0];g.P(this,this.B);g.US(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.iI(!l);a.mU(d.B,l)});
g.P(this,this.progressBar);this.progressBar.Ha(this.C.element,0);e=new pZ(a,b);g.P(this,e);g.US(a,e.element,4);e=new g.Ux({I:"div",S:"ytp-left-controls"});g.P(this,e);e.Ha(this.Ka);f=new g.uZ(a,b,!1);g.P(this,f);f.Ha(e.element);a.L("web_render_jump_buttons")&&(this.W=new qZ(a,g.UD(a.U().experiments,"web_jump_button_backward_amount")||-10),g.P(this,this.W),this.W.Ha(e.element));c.Oa||(this.playButton=new g.tZ(a,b),g.P(this,this.playButton),this.playButton.Ha(e.element));a.L("web_render_jump_buttons")&&
(this.oa=new qZ(a,g.UD(a.U().experiments,"web_jump_button_forward_amount")||10),g.P(this,this.oa),this.oa.Ha(e.element));f=new g.uZ(a,b,!0);g.P(this,f);f.Ha(e.element);f=new g.S({I:"span",S:"ytp-volume-area"});g.P(this,f);f.Ha(e.element);if(!c.kd&&(this.G=new v3a(a,b),g.P(this,this.G),this.G.Ha(f.element),c.Ua&&!c.Z)){var h=new Z4a(a,this.C.element);this.Ua=h;g.P(this,h);h.Ha(f.element);f=new g.LX(f.element);g.P(this,f);f.subscribe("hoverstart",function(){var l;(l=d.Ua)==null||$4a(l,!0)});
f=new g.LX(e.element);g.P(this,f);f.subscribe("hoverend",function(){var l;(l=d.Ua)==null||$4a(l,!1)})}g.P(this,this.Aa);
this.Aa.Ha(e.element);this.j=new g.Ux({I:"div",S:"ytp-right-controls"});g.P(this,this.j);this.Ja=new oZ(a,this.progressBar);g.P(this,this.Ja);this.Ja.Ha(e.element);c.L("web_key_moments_markers")&&(this.Oa=new rZ(a,this.progressBar),g.P(this,this.Oa),this.Oa.Ha(e.element));this.j.Ha(this.Ka);e=new b_(a,b);g.P(this,e);e.Ha(this.j.element);e=new QZ(a,this.B);g.P(this,e);T4a(this.B,e);e.Ha(this.j.element);e=a.getVideoData();if(c.Sn||e.Jf&&c.controlsType==="1")this.K=new g_(a,b),g.P(this,this.K),this.K.Ha(this.j.element);
c.showMiniplayerButton&&(this.D=new sZ(a),g.P(this,this.D),this.D.Ha(this.j.element));c.Sj&&(b=new PZ(a,this.B),g.P(this,b),b.Ha(this.j.element));c.Jm&&(b=new mZ(a),g.P(this,b),b.Ha(this.j.element));g.P(this,this.Va);this.Va.Ha(this.j.element);g.P(this,this.Z);this.T(a,"appresize",this.kc);this.T(a,"fullscreentoggled",this.kc);this.T(a,"presentingplayerstatechange",this.jV);this.T(a,"videodatachange",this.onVideoDataChange);this.kc()};
b5a=function(a,b){a.J.getPlayerStateObject().isCued()||b?b&&(a.Ca.hide(),a.Fa.hide(),a.G&&a.G.Lc(!1),a.K&&a.K.Lc(!1),a.D&&a.D.Lc(!1),a.J.Pm(a.Ib())):b||(a.Ca.show(),a.Fa.show(),a.G&&a.G.Lc(!0),a.K&&a.K.Lc(!0),a.D&&a.D.Lc(!0),a.VB())};
d5a=function(a){var b=a.J.ob().getPlayerSize().width;return Math.max(b-c5a(a)*2,100)};
c5a=function(a){var b=a.J.Oh(),c=a.J.getVideoData().Jf,d=0;a.J.Oh()&&a.J.fd()&&(d=(a.J.ob().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
e5a=function(a){var b=a.J.Oh()?72:50;a=a.J.U();g.fQ(a)&&(b=62,g.RP(a)&&(b=54));return b};
f5a=function(a){yX.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.ME("suggested_action_button_visible"),function(c){c=c.id;b.text=c;y_a(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Nf()});
this.T(this.J,g.NE("suggested_action_button_visible"),function(c){b.enabled=!1;b.Nf();b.J.removeCueRange(c.id)})};
g5a=function(a){a.suggestedActions={};a.J.kf("suggested_action_button_visible")};
i_=function(a){g.S.call(this,{I:"div",S:h_.TITLE,V:[{I:"div",S:h_.TEXT,V:[{I:"a",La:[h_.LINK,h_.SESSIONLINK],X:{target:a.U().W,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},va:"{{title}}"},{I:"div",S:h_.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Da(h_.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Ra);this.T(a,"videoplayerreset",this.Ra);this.Ra()};
h5a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.RP(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.j_=function(a,b){g.S.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{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.Ua=b;this.env=this.api.U();this.Ka=this.env.B;this.bg=this.Da("ytp-tooltip-bg");this.Oa=this.Da("ytp-tooltip-edu");this.image=this.Da("ytp-tooltip-image");this.text=this.Da("ytp-tooltip-text");this.title=this.Da("ytp-tooltip-title");this.qa=function(d){(d=d.relatedTarget)&&g.wh(c.j,d)||c.xi()};
this.G=function(d){c.type===3&&c.xi();(d=d.currentTarget)&&d.nodeType===1&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.qa),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.qa),i5a(c,d,2))};
this.Ca=function(){c.xi()};
this.j=null;this.K=new g.Ny(this,100);this.type=null;this.oa=!1;this.B=null;this.D=NaN;this.C="";this.PW=this.api.ob().getPlayerSize().width;this.W=!0;this.scale=1;this.N=160;this.Aa=90;this.Fa=new g.Ep(this.X$,250,this);this.Ja=new g.Ep(this.xi,5E3,this);g.P(this,this.K);g.P(this,this.Fa);g.P(this,this.Ja);IP&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));p3a(this.api)&&(this.N=243,this.Aa=141,g.Mp(this.api.getRootNode(),"ytp-bigboards"))};
g.nS=function(a,b){if(a.Ka)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.xi();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
i5a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.At("showElementTooltip called with non-element.",b.toString()),g.px(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.oa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Kp(a.element,"ytp-tooltip");g.Mp(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.Qp(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Qp(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ca);a.W&&(j5a(a),a.K.show(0))}};
j5a=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.XE("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.oa){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.Aa*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.Np(a.element,["ytp-text-detail","ytp-preview"]);g.Qp(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Pp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);k5a(a,!!b)}};
k5a=function(a,b,c,d){var e=Math.min(a.PW,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Ua.Wy(a.element,a.j,c,a.type===1,d);a.element.style.top?g.Mp(a.element,"ytp-bottom"):a.element.style.bottom&&g.Mp(a.element,"ytp-top");a.type===3&&a.Ja.start()};
l5a=function(a,b){g.Qp(a.element,"ytp-preview",b>=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Aa*a.scale,d=aLa(a.B,a.D,b);o3a(a.bg,d,b,c,!0);a.Fa.start()}};
m5a=function(a){var b=a.j;a.type===3&&a.Ja.stop();a.api.removeEventListener("appresize",a.Ca);a.oa||b.setAttribute("title",a.C);a.C="";a.j=null};
o5a=function(a){g.S.call(this,{I:"button",La:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.LP(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;$Ma(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize",
this.YD);this.T(a,"videodatachange",this.YD);this.T(a,"presentingplayerstatechange",this.YD);this.YD();a=this.J.U();var b=g.mt("yt-player-watch-later-pending");a.D&&b?(rCa(),n5a(this)):this.Ra(2);g.Qp(this.element,"ytp-show-watch-later-title",g.LP(a));oS(this.J,this.element,this)};
p5a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.LP(c)&&g.uS(a.J)&&g.U(a.J.getPlayerStateObject(),128),f=c.C;return c.le&&b.width>=240&&!d.isAd()&&d.le&&!e&&!g.YR(d)&&!a.J.fd()&&!f};
q5a=function(a,b){L1a(g.aQ(a.J.U()),"wl_button",function(){rCa({videoId:b});window.location.reload()})};
n5a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ra(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.Xm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ra(2);a.J.U().N&&a.J.eb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ra(1);a.J.U().B&&a.J.mI(a.element);a.J.U().N&&a.J.eb("WATCH_LATER_VIDEO_ADDED")};
MA(c,b).then(d,function(){a.isRequestPending=!1;a.Ra(4,"An error occurred. Please try again later.");a.J.U().N&&a.J.eb("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
r5a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=xNa();break;case 1:c=cy();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Fc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.k_=function(){g.GY.apply(this,arguments);this.pL=(this.As=g.LP(this.api.U()))&&(this.api.U().B||Fs()||Ds());this.mP=48;this.nP=69;this.fF=this.oi=null;this.uv=[];this.zN=this.Hi=this.AN=this.xx=this.oe=null;this.CI=[];this.contextMenu=this.Hg=this.overflowButton=this.Di=this.jh=this.searchButton=this.copyLinkButton=this.shareButton=this.Hp=this.Yg=this.title=this.channelAvatar=this.lC=this.tooltip=null;this.WO=!1;this.DH=this.sy=this.DF=this.EF=null;this.lT=this.bS=this.DP=!1};
s5a=function(a){var b=a.api.U(),c=g.U(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()};
t5a=function(a){if(a.Sg()&&!a.api.fd()&&a.Di){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Hp||b&&!p5a(a.Hp)||M2a(a.Di,a.Hp);!a.shareButton||b&&!W2a(a.shareButton)||M2a(a.Di,a.shareButton);!a.copyLinkButton||b&&!$1a(a.copyLinkButton)||M2a(a.Di,a.copyLinkButton)}else{if(a.Di){b=a.Di;for(var c=g.w(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.wh(a.Yg.element,a.searchButton.element)&&a.searchButton.Ha(a.Yg.element);a.Hp&&!g.wh(a.Yg.element,
a.Hp.element)&&a.Hp.Ha(a.Yg.element);a.shareButton&&!g.wh(a.Yg.element,a.shareButton.element)&&a.shareButton.Ha(a.Yg.element);a.copyLinkButton&&!g.wh(a.Yg.element,a.copyLinkButton.element)&&a.copyLinkButton.Ha(a.Yg.element)}};
u5a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(Jm(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=u5a(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};
v5a=function(a,b,c){if(a.api.L("web_player_nitrate_promo_tooltip")&&a.api.getPresentingPlayerType(!0)!==2){var d=a.api.getVideoData(1);if(d==null?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.DH){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.DH=new Q2a(d,a.api),
g.P(a,a.DH),g.US(a.api,a.DH.element,9));var m;(m=a.DH)==null||U2a(m,d,c)}}};
g.l_=function(a){g.hY.call(this,a);this.chrome=null;this.load()};
w5a=function(){for(var a=m_.length;a<4;a++){var b=g.qh("VIDEO");b.load();m_.push(new g.TX(b))}};
x5a=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.rg()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Ge())&&d.isView()&&(d=d.mediaElement);if(d&&d.Mx().length>12&&g.CR(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.N&&vR(f)&&(d=b.Ex(),l=
c.Ex());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(uG(d)||uG(l)))return{msg:"av1"};b=a.j&&f.Oj()&&RG();if(l.containerType!==d.containerType)if(b)f.ma("sgap",{ierr:"container"});else return{msg:"container"};if(a.B&&!b&&(l.jb!==d.jb||l.jb===""||d.jb===""))return{msg:"codec"};if(a.D&&l.video&&d.video&&Math.abs(l.video.width/l.video.height-d.video.width/d.video.height)>.01)return{msg:"ratio"};if(g.CR(f)&&g.CR(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.fG)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.G&&f.Oj()&&d.video.fps!==l.video.fps?{msg:"fps"}:null};
y5a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(c.K){if(d.mj&&!d.isAd()||e.mj&&!e.isAd())return{nq:"autoplay"}}else if(d.mj||e.mj)return{nq:"autoplay"};if(!d.W)return{nq:"client"};if(!a.vn())return{nq:"no-empty"};a=x5a(c,a,b,Infinity);return a!=null?{nq:a.msg}:null};
n_=function(a){g.O.call(this);this.app=a;this.D=this.C=this.xb=this.j=null;this.B=1;this.events=new g.jG(this);this.events.T(this.app.Sa,g.NE("gaplessshortslooprange"),this.N);g.P(this,this.events)};
z5a=function(){this.D=this.K=this.C=this.N=this.G=this.B=this.j=!1};
A5a=function(a){var b=new z5a;b.j=a.L("h5_gapless_support_types_diff");b.G=a.L("h5_gapless_error_on_fps_diff");b.N=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.B=a.L("html5_gapless_check_codec_diff_strictly");b.K=a.L("html5_gapless_on_ad_autoplay");b.D=a.L("html5_gapless_disable_diff_aspect_radio");return b};
g.o_=function(a,b,c,d){d=d===void 0?!1:d;IH.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
B5a=function(a,b,c,d,e,f){f=f===void 0?0:f;g.O.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.bd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.wr=new HH;this.Mn=d-b.zc()*1E3;this.wr.then(void 0,function(){});
this.timeout=new g.Ep(function(){h.Wg("timeout")},1E4);
g.P(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
E5a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.J(function(q){if(q.j==1){if(a.Ia())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.p_.YC();return g.G(q,a.wr,2)}g.p_.HA("gtfta",b);c=a.j.Ge();if(c.isEnded())return a.Wg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!UG(a.D))return a.Wg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Yr()!==a.D)return a.Wg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=C5a(a);e=d.x0;f=d.oY;h=d.v0;a.j.Zj(!1,!0);l=D5a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.WF();a.bd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.gI(m.pC,m.qC);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Vx:!0,WU:3,Xc:"gapless_pseudo"}),l.play(),ks());n=c.pc();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();$Za(a.j,f,!1,
p,a.B.getVideoData().clientPlaybackNonce);$Za(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.l3=!0;a.bd.U().L("html5_gapless_monitor_pbs")&&a.G===1&&JZa(a.B);g.zi(function(){!a.B.getVideoData().Aa&&a.B.getPlayerState().isOrWillBePlaying()&&KZa(a.B)});
q_(a,6);a.dispose();return q.return(Promise.resolve())})};
I5a=function(a){if(a.B.getVideoData().C){var b=a.bd.U().L("html5_gapless_suspend_next_loader")&&a.G===1;yZa(a.B,a.D,b,F5a(a));q_(a,3);G5a(a);var c=H5a(a);b=c.tU;c=c.U2;b.subscribe("updateend",a.Xz,a);c.subscribe("updateend",a.Xz,a);a.Xz(b);a.Xz(c)}};
G5a=function(a){a.j.unsubscribe("internalvideodatachange",a.jo,a);a.B.unsubscribe("internalvideodatachange",a.jo,a);a.bd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.jo,a),a.B.unsubscribe("internalvideoformatchange",a.jo,a));a.j.unsubscribe("mediasourceattached",a.jo,a);a.B.unsubscribe("statechange",a.QW,a)};
D5a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.o_(a,b,c,d)};
q_=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.wr.resolve())};
F5a=function(a){return a.bd.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&gR(a.j.getVideoData())};
C5a=function(a){var b=a.j.Ge();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:mX(a.j,!0);c=Math.min(a.Mn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.rg()+d;return{u8:b,x0:a,oY:c,v0:Infinity}};
H5a=function(a){return{tU:a.C.j.Hd,U2:a.C.B.Hd}};
K5a=function(a){g.O.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=A5a(this.app.U());this.K=function(){g.zi(function(){J5a(b)})}};
L5a=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.vn()||r_(a);a.D=new HH;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Qc(),m=l.getVideoData().isLivePlayback?Infinity:mX(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.Sa.addEventListener(g.ME("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.KE(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.G)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.B&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,mX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,mX(b)+m)),h=SIa(f,l)||d,h!==d&&a.j.ma("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Pc=!0;d.getVideoData().W=!0;g.aX(d,!0);f={};a.B&&(f=a.B.Jx(),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.ma("queued",f);b!==0&&d.seekTo(b+.01,{Vx:!0,WU:3,Xc:"videoqueuer_queued"});a.C=new B5a(a.N,a.app.Qc(),a.j,c,a.app,e);c=a.C;c.status.status!==Infinity&&(q_(c,
1),c.j.subscribe("internalvideodatachange",c.jo,c),c.B.subscribe("internalvideodatachange",c.jo,c),c.bd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.jo,c),c.B.subscribe("internalvideoformatchange",c.jo,c)),c.j.subscribe("mediasourceattached",c.jo,c),c.B.subscribe("statechange",c.QW,c),c.j.subscribe("newelementrequired",c.S0,c),c.jo());return a.D};
J5a=function(a){var b,c,d,e,f,h,l,m,n;g.J(function(p){switch(p.j){case 1:if(a.Ia()||!a.D||!a.j)return p.return();a.Z&&RW(a.app.Qc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Qc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ea(2);break}g.wa(p,3);return g.G(p,E5a(a.C),5);case 5:g.xa(p,2);break;case 3:d=e=g.ya(p);case 2:if(!a.j)return p.return();g.p_.Iv("vqsp",function(){s_(a.app,a.j)});
f=a.j.Ge();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.p_.Iv("vqpv",function(){a.app.playVideo()});
if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.ma("gapfulfbk",{r:h}),DZa(a.j,h)):(m=a.B)==null||m.ma("gapsp",{});n=a.D;r_(a);n&&n.resolve();return p.return(Promise.resolve())}})};
r_=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Sa.removeEventListener(g.ME("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.Wg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.kS(a.app,1)&&a.j!==a.app.Qc()&&a.j.dispose();a.j&&b&&jX(a.j);a.j=null;a.Z=!1};
M5a=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1};
N5a=function(a,b,c){if(a.vn())return"qie";if(a.j==null||a.j.Ia()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.ag())return"vinm";if(M5a(a)<=0)return"ivd";if(c!==1)return"upt";if((c=a.C)==null)a=void 0;else if(c.getStatus().status!==5)a="niss";else if(x5a(c.policy,c.j,c.B,c.Mn)!=null)a="pge";else{b=H5a(c);a=b.tU;var d=b.U2;b=g.UD(c.bd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds");c=c.K+b;d=JG(d.ke(),c);a=JG(a.ke(),c);a=!(b>0)||d&&a?null:"neb"}return a!=null?a:null};
O5a=function(){g.Qx.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.Nf()};
VVa(this.G);this.K=this.getVisibilityState(this.zi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.hj(),this.oB(),this.uB(),this.Ik())};
dW=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.hj()||a.oB()||a.uB()||a.Ik())};
U5a=function(a){var b=a.experiments,c=b.bb.bind(b);P5a=c("html5_use_async_stopVideo");Q5a=c("html5_pause_for_async_stopVideo");R5a=c("html5_not_reset_media_source");zH=c("html5_not_reset_media_source");S5a=c("html5_not_reset_media_source");PG=c("html5_retain_source_buffer_appends_for_debugging");S_a=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(MU=!0);var d=g.UD(b,"html5_cobalt_override_quic");d&&hW("QUIC",+(d>0));(d=g.UD(b,"html5_cobalt_audio_write_ahead_ms"))&&
hW("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&hW("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&hW("MediaElement.EnableUsingMediaSourceBufferedRange",+d);c("html5_log_cpu_info")&&PWa();Error.stackTraceLimit=50;var e=g.UD(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}});
uJa(a.G);gU=c("html5_use_ump_request_slicer");aOa=c("html5_record_now");c("html5_disable_streaming_xhr")&&(jP=!1);c("html5_byterate_constraints")&&(fM=!0);c("html5_use_non_active_broadcast_for_post_live")&&(UN=!0);T5a=c("html5_nonstreaming_xhr_async_done")};
V5a=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")};
W5a=function(a){for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=V5a(b),d=g.UD(a.experiments,b);c&&d&&hW(c,d)}};
t_=function(a,b,c,d,e){e=e===void 0?[]:e;g.O.call(this);this.Y=a;this.hc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
X5a=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.w(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.w(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.w(f.segments),l=h.next();!l.done;l=h.next())(l=u_(l.value))&&d.push(l);f.removeAll()}}}(c=u_(b))&&d.push(c);d=g.w(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
v_=function(a,b,c,d){if(!a.j||b>c)return!1;b=new t_(a.Y,b,c,a.j,d);d=g.w(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=u_(c);e&&e!==u_(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.rf())?a.j.get(b.rf()).push(b):a.j.set(b.rf(),[b]);return!0};
LV=function(a,b){return a.B.get(b)};
Y5a=function(a,b,c){a.B.set(b,c)};
w_=function(a,b,c,d,e,f){return new Z5a(c,c+(d||0),!d,b,a,e,f)};
Z5a=function(a,b,c,d,e,f,h){g.O.call(this);this.hc=a;this.C=b;this.B=c;this.type=d;this.D=e;this.videoData=f;this.EL=h;this.j=new Map;VLa(f)};
u_=function(a){return a.videoData.clientPlaybackNonce};
$5a=function(a){if(a.j.size)for(var b=g.w(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
a6a=function(a){this.end=this.start=a};
g.x_=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.Y=b;this.ea=c;this.Fa=new Map;this.Va=new Map;this.Ja=new Map;this.B=new Map;this.D=[];this.G=[];this.C=new Map;this.qc=new Map;this.W=new Map;this.Tb=NaN;this.Kb=this.Ya=this.Qb=null;this.Gb=new g.Ep(function(){b6a(d,d.Tb,d.Qb||void 0)});
this.events=new g.jG(this);this.Bb=15E3;this.Z=new g.Ep(function(){d.Aa=!0;var e=d.ea,f=d.Bb;e.ma("sdai",{aftimeout:f});e.Jd(new aG("ad.fetchtimeout",{timeout:f}));c6a(d);d.eG(!1)},this.Bb);
this.Aa=!1;this.K=new Map;this.rb=[];this.qa=null;this.Ee=new Set;this.Ca=[];this.Bc=[];this.le=[];this.kd=[];this.j=void 0;this.Ta=0;this.Oa=!0;this.oa=!1;this.Ka=[];this.Ad=new Set;this.ge=new Set;this.Nd=new Set;this.Il=0;this.ib=new Set;this.Pc=0;this.uo=this.jd=!1;this.Lb=this.N="";this.kb=null;this.Sc={Wna:function(){return d.B},
hoa:function(){return d.D},
Xna:function(){return d.C},
U8:function(e){d.onCueRangeEnter(d.B.get(e))},
Pna:function(e){d.onCueRangeExit(d.B.get(e))},
fqa:function(e,f){d.B.set(e,f)},
hqa:function(e){d.Lb=e},
MF:function(){return d.MF()}};
this.ea.getPlayerType();gZa(this.ea,this);this.Ua=this.Y.Vb();g.P(this,this.Gb);g.P(this,this.events);g.P(this,this.Z);this.events.T(this.api,g.ME("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.NE("serverstitchedcuerange"),this.onCueRangeExit)};
g6a=function(a,b,c,d,e,f,h,l){var m=d6a(a,f,f+e);a.Aa&&a.ea.ma("sdai",{adaftto:1});a.uo&&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.Y.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.ma("sdai",{attl0d:1});f>h&&y_(a,{reason:"enterTime_greater_than_return",hc:f,Yd:h});var p=n.Vc()*1E3;f<p&&y_(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},a.Y.L("html5_report_ssdai_timeline_error_as_fatal"));n=n.getDuration()*1E3;h>n&&y_(a,{reason:"parent_return_greater_than_content_duration",
Yd:h,Opa:n});n=null;p=g.fc(a.G,{Yd:f},function(q,r){return q.Yd-r.Yd});
p>=0&&(n=a.G[p],n.Yd>f&&e6a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ca.length;p++){if(a.Ca[p].identifier===m.identifier){a.Ca.splice(p,1);break}}else if(m)return a.ea.ma("sdai",{rejectAttl:1}),l&&!Vm(a.kd,function(q){return q===l})&&(a.ea.ma("sdai",{rejectAdBreakAttl:1}),a.kd.push(l)),z_(a),"";
m="ss_childplayback_"+f6a++;a.Y.L("html5_enable_ssap_entity_id")?(b=new g.$Q(a.Y,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.dw(16)),p=b.cpn,b=new g.$Q(a.Y,b));b.Ed=m;c={Ed:m,playerType:d,durationMs:e,hc:f,Yd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.jc(a.G,c,function(q,r){return q.hc===r.hc?q.durationMs-r.durationMs:q.hc-r.hc});
a.C.set(p,c);a.qc.set(m,c);a.ea.ma("sdai",{attlDone:h-f,acpn:p});l?c.Lm=l:n?c.Lm=n.Lm:c.Lm=c.cpn;if(f=c.Lm)(d=a.W.get(f))?(d.push(c),g.hc(d,function(q,r){return q.hc-r.hc})):a.W.set(f,[c]);
a.Z.isActive()&&(a.Aa=!1,a.Z.stop(),c6a(a),a.eG(!0));return m};
A_=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.rg()||0).toFixed(3)}};
h6a=function(a,b){a.api.mA();a.api.publish("serverstitchedvideochange",b.Ed,b.Lr)};
B_=function(a,b,c){var d=a.oa,e=a.MF(),f=a.N;a.N="";var h=b.Zg-c.Zg;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.Ez();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.C.get(b.adCpn);var m=a.C.get(c.adCpn)}e?a.ea.ma("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):i6a(a,m,l,c.Zg,b.Zg,d,e)}else if(!b.isAd&&c.isAd){a.Lb=e.cpn;a.api.publish("serverstitchedvideochange");
l=A_(a,"a2c");a.ea.ma("sdai",l);a.Il=0;if(l=c.je)a.Ta=l.end;var n;c.adCpn&&(n=a.C.get(c.adCpn));n&&nX(a.ea,n,e,c.Zg,b.Zg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.C.get(b.adCpn));p&&(a.Ta=0,a.Lb=p.cpn,h6a(a,p),n=A_(a,"c2a",p),a.ea.ma("sdai",n),a.Il=1,nX(a.ea,e,p,c.Zg,b.Zg,d,!!f))}};
j6a=function(a,b,c){c=c===void 0?0:c;var d=(b+c)*1E3,e=g.fc(a.G,{hc:d},function(n,p){return n.hc-p.hc});
e=e<0?(e+2)*-1:e;if(e>=0)if(a.Y.L("html5_ssdai_overdecorate")){d=b*1E3;for(var f=e;f<=e+1&&f<a.G.length;f++){var h=a.G[f],l=h.Lr?h.Lr*1E3:h.hc,m=l+h.durationMs;if(d>=l-c*1E3&&d<=m+c*1E3)return{Qm:h,Ms:b}}}else if(a=a.G[e],a.Yd>=d)return{Qm:a,Ms:b};return{Qm:void 0,Ms:b}};
l6a=function(a,b){var c="";(b=k6a(a,b))&&(c=b.getId());return c?a.C.get(c):void 0};
k6a=function(a,b){if(a.Lb){var c=a.B.get(a.Lb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.w(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
b6a=function(a,b,c){var d=a.Kb||a.api.Qc().getPlayerState();C_(a,!0);a.ea.seekTo(b,c);a=a.api.Qc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
C_=function(a,b){a.Tb=NaN;a.Qb=null;a.Gb.stop();a.Ya&&b&&DYa(a.Ya);a.Kb=null;a.Ya=null};
m6a=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.w(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.hc<b||f.Yd>c)&&d.push(f);a.G=d;d=g.w(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=j6a(a,b/1E3);b=d.Qm;d=d.Ms;if(b&&(d=d*1E3-b.hc,e=b.hc+d,b.durationMs=d,b.Yd=e,d=a.B.get(b.cpn))){e=g.w(a.D);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.hc+b.durationMs:f.end===d.start&&(f.end=b.hc);d.start=b.hc;d.end=b.hc+b.durationMs}if(b=j6a(a,c/1E3).Qm){var h;d="playback_timelinePlaybackId_"+b.Ed+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.hc+"_parentReturnTimeMs_"+b.Yd;a.Yl("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
n6a=function(a){a.Fa.clear();a.Va.clear();a.Ja.clear();a.B.clear();a.D=[];a.G=[];a.C.clear();a.qc.clear();a.W.clear();a.K.clear();a.rb=[];a.qa=null;a.Ee.clear();a.Ca=[];a.Bc=[];a.le=[];a.kd=[];a.Ka=[];a.Ad.clear();a.ge.clear();a.Nd.clear();a.ib.clear();a.Aa=!1;a.j=void 0;a.Ta=0;a.Oa=!0;a.oa=!1;a.Il=0;a.Pc=0;a.jd=!1;a.uo=!1;a.N="";a.Z.isActive()&&z_(a)};
p6a=function(a,b,c,d,e,f){if(!a.uo)if(g.o6a(a,c))a.Ua&&a.ea.ma("sdai",{gdu:"undec",seg:c,itag:e});else if(b=D_(a,b,c,d,f),!(a.ea.getVideoData().Bg()&&(b==null?0:b.sB)))return b};
D_=function(a,b,c,d,e){var f=a.K.get(c);if(!f){if(f=q6a(a,b))return f;b=E_(a,c-1,d!=null?d:2);if(e)return a.ea.ma("sdai",{misscue:e,sq:c,type:d,prevsstate:b==null?void 0:b.bA,prevrecord:a.K.has(c-1)}),a.K.get(c-1);if((b==null?void 0:b.bA)===2)return a.ea.ma("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),a.K.get(c-1)}return f};
q6a=function(a,b){b+=a.Eu();if(a.Y.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.w(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Lr?e.Lr*1E3:e.hc;if(d>=e.hc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Qm:e,Ms:b};break a}}b={Qm:void 0,Ms:b}}else b=j6a(a,b,1);return b.Qm};
r6a=function(a,b){b=b===void 0?"":b;var c=sP(b)||void 0;!a.Y.L("html5_log_empty_ssdai_ads_config")||b&&c||a.ea.ma("sdai",{adcfg:b.length,dcfg:c==null?void 0:c.length});return c};
s6a=function(a){if(a.Ka.length)for(var b=g.w(a.Ka),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.w(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.w(a.D);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.D=[];a.Fa.clear();a.Va.clear();a.Ja.clear();a.j||(a.Oa=!0)};
i6a=function(a,b,c,d,e,f,h){if(b&&c){a.Lb=c.cpn;h6a(a,c);var l=A_(a,"a2a",c);a.ea.ma("sdai",l);a.Il++;nX(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})};
E_=function(a,b,c){if(c===1){if(a.Fa.has(b))return a.Fa.get(b)}else{if(c===2&&a.Va.has(b))return a.Va.get(b);if(c===3&&a.Ja.has(b))return a.Ja.get(b)}};
u6a=function(a,b,c,d){if(d)for(d=0;d<a.D.length;){var e=a.D[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;t6a(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.Ka.includes(e))a.onCueRangeExit(e);a.D.splice(d,1);continue}d++}else t6a(a,b,c)};
t6a=function(a,b,c){b=a.UJ(b,c);c=!0;g.jc(a.D,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.D.length;){if(d>0){var e=a.D[d],f=a.D[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.D.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.yF("serverstitchedcuerange",36E5),b=g.w(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
F_=function(a,b,c){if(c===void 0||!c){c=g.w(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 a6a(b))}};
g.o6a=function(a,b){a=g.w(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};
e6a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Gpa:b,hc:c,Yd:d,Nna:e.Ed,Ona:((f=e.videoData)==null?void 0:f.videoId)||"",Kna:e.durationMs,Lna:e.hc,Mna:e.Yd};y_(a,b)};
y_=function(a,b,c){a=a.ea;a.ma("timelineerror",b);b=new aG("dai.timelineerror",b);c?a.Qf("dai.timelineerror",1,"RETRYABLE_ERROR",$F(b.details)):a.Jd(b)};
v6a=function(a,b){var c=[];a=a.W.get(b);if(!a)return[];a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
w6a=function(a,b,c){var d=0;a=a.W.get(c);if(!a)return-1;a=g.w(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
x6a=function(a,b){var c=[];a=a.W.get(b);if(!a)return[];a=g.w(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};
y6a=function(a,b){var c=0;a=a.W.get(b);if(!a)return 0;a=g.w(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Yd!==b.hc&&c++;return c};
z6a=function(a,b,c){var d=!1;if(c&&(c=a.W.get(c))){c=g.w(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Yd!==e.hc&&(e=e.cpn,b===e&&(d=!0),d&&!a.ge.has(e)&&(a.ea.ma("sdai",{decoratedAd:e}),a.ge.add(e)))}};
c6a=function(a){a.Ua&&a.ea.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Pc)+"_isTimeout_"+a.Aa})};
d6a=function(a,b,c){if(a.Ca.length)for(var d=g.w(a.Ca),e=d.next(),f={};!e.done;f={zA:void 0},e=d.next()){f.zA=e.value;e=f.zA.startSecs*1E3;var h=f.zA.lh*1E3+e;if(b>e&&b<h||c>e&&c<h)return Vm(a.le,function(l){return function(m){return m.identifier===l.zA.identifier}}(f))||(a.ea.ma("sdai",{adskip:b}),a.le.push(f.zA)),f.zA}};
z_=function(a){a.Aa=!1;a.Z.isActive()&&c6a(a);a.Z.stop();a.eG(!1)};
D6a=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.timeline=b;this.ea=c;this.po=new Map;this.yk=new Map;this.eD=new Map;this.events=new g.jG(this);this.Il=0;this.zL=this.Lb="";this.vH=[];this.Ok=new Set;this.WL=new g.Ep(function(){d.api.playVideo(1,d.api.L("html5_ssap_keep_media_on_finish_segment"));d.api.ma("ssap",{nve:""+d.Lb});A6a(d,4)},3E4);
this.yz="";this.oI=new Set;this.X2=!0;this.DN=new Map;this.GM=new Set;this.CR=this.UC=!1;this.z_="";this.PN=null;this.Sc={joa:function(){return d.yk},
U8:function(e){if(e=d.yk.get(e))d.onCueRangeEnter(e)},
onCueRangeEnter:function(e){d.onCueRangeEnter(e)},
Uoa:function(){return d.UC}};
this.ea.getPlayerType();B6a(this);this.api.L("html5_ssap_move_timeline_version")&&(b.zp=void 0);this.events.T(this.api,g.ME("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.fH);this.api.L("html5_ssap_timeline_handle_error_and_abandon")&&this.events.T(this.api,"presentingplayerstatechange",this.lj);g.P(this,this.WL);this.Hea=g.UD(a.U().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.C8=a.L("html5_disable_ssap_append_pause");this.UC=C6a(this)};
E6a=function(a,b,c,d){for(var e=a.ea.SA(),f=g.w(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.B||((h=u_(l),l=l.getVideoData(),h&&l&&e.TJ(h,l,2),l)?h||(l=void 0,a.api.ma("ssap",{macac:h,maccc:(l=a.timeline.j)==null?void 0:u_(l)})):(l=void 0,a.api.ma("ssap",{mvac:h,mvcc:(l=a.timeline.j)==null?void 0:u_(l)})))}return v_(a.timeline,b,c,d)};
G6a=function(a,b){if(!a.Ok.has(a.Lb)){var c=0,d=0,e=LV(a.timeline,a.Lb);if(e==null?0:e.length)for(e=g.w(e),e=e.next();!e.done;e=e.next()){d=e.value;c=d.rf();d=d.Ni();break}if(!(d>0&&d>b*1E3+a.Hea)&&(d=F6a(a,c))){b=!1;c=void 0;d=g.w(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}u_(e)===a.Lb&&(b=!0)}d=void 0;if(c)d=u_(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:u_(f)}if(d)a.finishSegmentByCpn(a.Lb,d,2,void 0);else{var h;a.api.ma("ssap",{mfnc:1,mfncc:(h=a.timeline.j)==
null?void 0:u_(h)})}}}};
C6a=function(a){return a.api.L("html5_force_ssap_gapful_switch")||a.api.L("html5_ssap_enable_legacy_browser_logic")&&!RG()};
J6a=function(a,b,c,d){a.eD.set(b,d);H6a(a,b,c);I6a(a,c)};
yT=function(a,b){a=LV(a.timeline,b);return(a==null?0:a.length)?a[0].rf():0};
zT=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",gm:0};var e=TZa(a,b,c);if(e)return{clipId:u_(e)||"",gm:e.rf()};a.api.ma("mci",{cs:u_(d),mt:b,tl:nV(a),invt:!!c});return{clipId:"",gm:0}};
IV=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Ni()-b.rf())/1E3;b=b.j.values();b=g.w(b);for(var c=b.next();!c.done;c=b.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Ni()-d.rf())/1E3}return a};
L6a=function(a,b){return(a=K6a(a,b*1E3))?a.rf():0};
M6a=function(a,b){var c=LV(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.w(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Ni()-c.rf())/1E3;else return IV(a);return b};
K6a=function(a,b){if(a=LV(a.timeline,a.Lb)){a=g.w(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.rf()<=b&&c.Ni()>=b)return c}};
N6a=function(a){var b=a.ea.getVideoData();a.Lb&&(a=a.po.get(a.Lb))&&(b=a);return b};
F6a=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.hc(e);b=g.fc(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.w(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.rf()!==b.Ni())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}};
TZa=function(a,b,c){c=c===void 0?!1:c;var d=F6a(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.w(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.rf()<=b&&f.Ni()>b)return f;if(c&&d.rf()===d.Ni())return a[0]}}else a.api.ma("ssap",{ctnf:1})};
A6a=function(a,b){var c;if(a.yz)for(c=a.vH.shift();c&&c!==a.yz;)c=a.vH.shift();else c=a.vH.shift();if(c){if(a.Ok.has(c))O6a(a,c);else if(b===3||b===4)a.WL.stop(),a.api.playVideo(1,a.api.L("html5_ssap_keep_media_on_finish_segment"));a.eD.set(a.Lb,b);a.api.ma("ssap",{onvftn:1});I6a(a,c);return!1}a.api.ma("ssap",{onvftv:1});a.WL.stop();return!0};
O6a=function(a,b){b=LV(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.WL.start(b[0].EL)};
I6a=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce;a.PN&&(a.events.Mc(a.PN),a.PN=null,a.ea.YJ=-1);var e=a.Lb,f=!1;if(e==="")e=d,f=!0;else if(e===void 0){var h=a.ea.SA().Og;h&&a.timeline.B.has(h)&&(e=h);a.api.ma("ssap",{mcc:e+";"+b});a.ea.Jd(new aG("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&P6a(a,c,f);else{h=a.eD.get(e);if(!f&&(!h||h!==3&&h!==5&&h!==6&&h!==7)){var l=a.api.Ez(a.Lb);a.api.ma("ssap",{nmec:l,cpc:a.Lb,ec:b})}!a.api.L("html5_ssap_double_sync_video_progress")||
h&&h!==2||G_(a);a.Lb=b;G_(a);b=LV(a.timeline,a.Lb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.zL=e,c=a.po.get(e));h?a.eD.delete(e):h=f?1:2;a.api.L("html5_ssap_pacf_qoe_ctmp")&&l===2&&!b.B&&(a.PN=a.events.T(a.api,"onVideoProgress",a.pda));a.api.ma("ssapt",{ostro:h,pcpn:e,ccpn:a.Lb});a:{var m=a.Lb;if(!a.yk.has(m))for(var n=g.w(a.yk),p=n.next();!p.done;p=n.next()){var q=g.w(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.Lb;q=a.ea.SA();if(q.Og!==p){var r=q.Sb(q.Og);m=q.Sb(p);q.Og=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.Y.Vb()&&p.ma("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.QK(p.provider),cXa(p,n,"SU")),isNaN(p.K)||g.Xr(p.K)),m.resume())}m=Math.max(0,H_(a,e));n=a.ea.getCurrentTime();n=Math.max(0,n-yT(a,a.Lb)/1E3);p=b.getVideoData();var t=h===3||h===5||h===6||h===7;a.api.L("html5_ssap_skip_illegal_seeking")&&(q=a.ea.getPlayerState(),q=!g.U(q,8)&&g.U(q,16),t=t||q,q&&a.api.ma("ssap",{iis:1}));q=
a.ea.SA();r=e;var u=a.Lb,y=a.ea.getPlayerState();if(r!==u){var A=q.Sb(r),C=q.Sb(u),F,H=r===((F=A.getVideoData())==null?void 0:F.clientPlaybackNonce),L;F=u===((L=C.getVideoData())==null?void 0:L.clientPlaybackNonce);var N;L=H?((N=A.getVideoData())==null?void 0:N.videoId)||"":"nvd";var X;N=F?((X=C.getVideoData())==null?void 0:X.videoId)||"":"nvd";H&&(X=A.qoe)!=null&&(oW(X,4,t?4:0,u,N,m),X.reportStats());F&&(zW(C),(X=C.qoe)!=null&&(oW(X,4,t?5:1,r,L,n),X.reportStats()),JXa(C,new g.Yy(y,C.Ie)),HXa(C));
QXa(q,r)}a.api.ma("ssapt",{ostri:h,pcpn:e,ccpn:a.Lb});var V;WZa(e,a.Lb,d,p,(V=a.DN.get(e))!=null?V:(0,g.hu)(),c);a.DN.delete(e);f?c=void 0:c||a.api.ma("ssap",{pvdm:e+";"+a.Lb,pvdmc:a.Lb===d?"1":"0"});a.api.ma("ssap",{tpac:e+";"+a.Lb,tpcc:d,tpv:(p==null?0:p.ye())?"1":"0"},!1,1);a.api.U().L("html5_ssap_cleanup_player_switch_ad_player")&&a.api.mA();a.api.publish("videodatachange","newdata",p,l,c,h);b.B||a.ea.getVideoData().publish("dataupdated");a.Ok.delete(e);a.yz="";p&&l===1?P6a(a,p):a.ea.ma("ssap",
{nis:a.Lb});l===2?a.Il++:a.Il=0}}};
P6a=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.X2){var d=b.startSeconds;b=LV(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].rf()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.AQ()||(a.ea.seekTo(d,{DU:!0}),a.X2=!1,a.ea.ma("ssap",{is:a.Lb,co:c?"1":"0",tse:d.toFixed()}))}};
H6a=function(a,b,c){b=LV(a.timeline,b);if(b!=null&&b.length&&(b=F6a(a,b[0].rf()))){b=g.w(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(u_(d)===c)break;if(d=u_(d)){var e=a.yk.get(d);e&&a.ea.removeCueRange(e);a.yk.delete(d)}}}};
YU=function(a){return a.ea.getVideoData().clientPlaybackNonce};
URa=function(a,b){if(a.UC&&a.Lb!==b)return!1;if(a.C8)return!0;if(b=a.yk.get(b))if(b=b.getId().split(","),b.length>1)for(var c=0;c<b.length;c++){var d=c<b.length-1?b[c+1]:"";if(a.Ok.has(b[c]))return b[c]===a.Lb&&!a.Ok.has(d)}return!0};
FYa=function(a,b,c){TZa(a,b)||a.ea.ma("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:nV(a)})};
G_=function(a){var b=a.Lb,c=a.po.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-yT(a,b)/1E3,c.Zh=a>0?a:0)};
H_=function(a,b){b=b||a.Lb;var c=a.po.get(b);return c?c.Zh:b!==YU(a)?0:a.ea.getVideoData().Zh};
nV=function(a){var b=a.Lb;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.w(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.w(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.rf()+";";f+="et."+h.Ni()+";";var l=u_(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.Nl()};
B6a=function(a){a.ea.OH(Array.from(a.yk.values()));a.yk.clear()};
R6a=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.oa=NaN;this.G=this.D=this.W=null;this.Z=new g.Ep(function(){Q6a(d,d.oa,d.W||void 0)});
this.qa=[];this.Aa=new g.Ep(function(){var e=d.qa.pop();if(e){var f=e.Ed,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.qa.length&&g.Fp(d.Aa,4500))}});
this.events=new g.jG(this);c.getPlayerType();g.P(this,this.Z);g.P(this,this.Aa);g.P(this,this.events);this.events.T(this.api,g.ME("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.lj)};
V6a=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 I_(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.Vc()*1E3;if(e<n)return I_(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.zc(),I_(a,m,h,l),"";n=null;for(var p=g.w(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.hc&&e<q.Yd)return I_(a,"overlappingEnter",h,l),"";if(f<=q.Yd&&f>q.hc)return I_(a,"overlappingReturn",h,l),"";if(f===q.hc)return I_(a,"outOfOrder",h,l),"";e===q.Yd&&(n=q)}h="cs_childplayback_"+S6a++;l={je:J_(d,!0),Mn:Infinity,target:null};var r={Ed:h,playerVars:b,playerType:c,durationMs:d,hc:e,Yd:f,mu:l};a.B=a.B.concat(r).sort(function(y,A){return y.hc-A.hc});
n?T6a(a,n,{je:J_(n.durationMs,!0),Mn:n.mu.Mn,target:r}):(b={je:J_(e,!1),Mn:e,target:r},a.K.set(b.je,b),m.addCueRange(b.je));b=!0;if(a.j===a.api.Qc()&&(m=m.getCurrentTime()*1E3,m>=r.hc&&m<r.Yd)){var t=a.api.Qc().getPlayerState(),u=m-r.hc;ui(function(){U6a(a,r,u/1E3,{},t)});
b=!1}b&&(a.qa.unshift(r),g.Fp(a.Aa,0));return h};
J_=function(a,b){return new g.KE(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
W6a=function(a,b,c,d){a.C=d;a.api.lK(a.j,c,b)};
X6a=function(a,b,c,d){a.C=d;d=b.Ed;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.Y.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
T6a=function(a,b,c){var d=b.mu;b.mu=c;K_(a,b)&&(c=a.api.Qc(),d.je===a.C&&L_(a),c.removeCueRange(d.je),c.addCueRange(b.mu.je))};
L_=function(a){a.N=null;a.C=null;a.api.vn()||a.api.clearQueue()};
Y6a=function(a,b){K_(a,b)||I_(a,"childPlaybackIsNotPresenting");return b.Yd===b.hc+b.durationMs?(a=a.api.Qc(),b.hc+a.getCurrentTime()*1E3):b.Yd};
Z6a=function(a,b){var c=0;a=g.w(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.hc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Qm:d,Ms:b-e};c=f-d.Yd/1E3}return{Qm:null,Ms:b-c}};
Q6a=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Qc().getPlayerState();M_(a,!0);b=isFinite(b)?b:a.j.Fo();var e=Z6a(a,b);b=e.Qm;e=e.Ms;var f=b&&!K_(a,b)||!b&&a.j!==a.api.Qc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||L_(a);b?U6a(a,b,e,c,d):$6a(a,e,c,d)};
$6a=function(a,b,c,d){var e=a.j,f=a.api.Qc();e!==f&&a.api.jz();e.seekTo(b,Object.assign({},{Xc:"application_timelinemanager"},c));a7a(a,d)};
U6a=function(a,b,c,d,e){var f=K_(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.Y.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.$Q(a.Y,b.playerVars);h.Ed=b.Ed;a.api.Yu(h,b.playerType)}h=a.api.Qc();f||h.addCueRange(b.mu.je);h.seekTo(c,Object.assign({},{Xc:"application_timelinemanager"},d));a7a(a,e)};
a7a=function(a,b){a=a.api.Qc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
M_=function(a,b){a.oa=NaN;a.W=null;a.Z.stop();a.D&&b&&DYa(a.D);a.G=null;a.D=null};
K_=function(a,b){a=a.api.Qc();return!!a&&a.getVideoData().Ed===b.Ed};
b7a=function(a){var b=a.B.find(function(e){return K_(a,e)});
if(b){var c=a.api.Qc();L_(a);var d=new g.NH(8);b=Y6a(a,b)/1E3;$6a(a,b,{},d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
d7a=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.w(a.K),h=f.next();!h.done;h=f.next()){var l=g.w(h.value);h=l.next().value;l=l.next().value;l.Mn>=d&&l.target&&l.target.Yd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.w(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.hc>=d&&l.Yd<=e){var m=a;m.N===l&&L_(m);K_(m,l)&&m.api.jz()}else f.push(l);a.B=f;d=Z6a(a,b/1E3);b=d.Qm;d=d.Ms;b&&(d*=1E3,c7a(a,b,d,b.Yd===b.hc+b.durationMs?b.hc+d:b.Yd));(b=Z6a(a,c/1E3).Qm)&&
I_(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Ed+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.hc+" parentReturnTimeMs="+b.Yd+"}.Child playbacks can only have duration updated not their start."))};
c7a=function(a,b,c,d){b.durationMs=c;b.Yd=d;d={je:J_(c,!0),Mn:c,target:null};T6a(a,b,d);K_(a,b)&&a.api.Qc().getCurrentTime()*1E3>c&&(b=Y6a(a,b)/1E3,c=a.api.Qc().getPlayerState(),$6a(a,b,{},c))};
I_=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
f7a=function(a){a&&a!=="web"&&e7a.includes(a)};
P_=function(a,b){g.O.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Ep(function(){N_(c);O_(c)});
g.P(this,this.j)};
g7a=function(a){N_(a);return a.data.map(function(b){return b.value})};
N_=function(a){var b=(0,g.hu)();a.data.forEach(function(c){c.expire<b&&Q_(a,c,!0)});
a.data=g.Bn(a.data,function(c){return!(c.expire<b)})};
Q_=function(a,b,c){c&&a.B&&a.B(b.value)};
O_=function(a){a.j.stop();var b=Infinity;for(var c=g.w(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))};
R_=function(){g.O.call(this);this.j=new P_(5,null);g.P(this,this.j);this.B=new P_(15,null);g.P(this,this.B)};
lZa=function(a,b){return b?!!a.j.get(b):!1};
h7a=function(a,b){a.dataset.version=b};
k7a=function(a){g.S.call(this,{I:"div",La:["html5-video-player"],X:{tabindex:a.U().disableOrganicUi?"":"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.S_.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.vA=this.Da(g.S_.VIDEO_CONTAINER);this.oC=new g.Cm(0,0,0,0);this.Ac=null;this.MM=new g.Cm(0,0,0,0);this.SQ=this.eS=this.dS=NaN;this.hL=this.JM=this.zT=this.ZX=!1;this.BP=NaN;this.IR=!1;this.NG=null;this.GS=function(){b.element.focus({preventScroll:!0})};
this.qM=function(){b.app.Sa.publish("playerUnderlayVisibilityChange","visible");b.Ac.classList.remove(g.S_.VIDEO_CONTAINER_TRANSITIONING);b.Ac.removeEventListener(zNa,b.qM);b.Ac.removeEventListener("transitioncancel",b.qM)};
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.Rt("ytp-transparent");e.controlsType==="0"&&this.Rt("ytp-hide-controls");g.Mp(this.element,"ytp-exp-bottom-control-flexbox");g.Mp(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.hQ(e)&&g.Mp(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Mp(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Mp(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.Mp(this.element,"ytp-cairo-refresh-signature-moments");
h7a(this.element,i7a(a));this.W2=!1;this.CF=new g.Gg(NaN,NaN);j7a(this);this.T(a.Sa,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
j7a=function(a){function b(){a.Ac&&T_(a);U_(a)!==a.IR&&a.resize()}
function c(h,l){a.Gu(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.MM=new g.Cm(0,0,0,0);a.oC=new g.Cm(0,0,0,0)}
var f=a.app.Sa;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);a.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
m7a=function(a){var b=g.kS(a.app),c=b=b?b.getVideoData():null;if(b==null?0:g.oR(b))c=a.app.Sa.getVideoData();if(c){if(g.KR(c)||g.LR(c)||g.MR(c))return 16/9;if(ILa(c)&&c.C.j)return a=c.C.videoInfos[0].video,l7a(a.width,a.height)}return(a=a.Ac)?l7a(a.videoWidth,a.videoHeight):16/9};
n7a=function(a,b,c,d){var e=c,f=l7a(b.width,b.height);a.ZX?e=c<f?Infinity:0:isNaN(a.SQ)?isNaN(a.eS)||(e=a.eS):e=a.SQ;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};
l7a=function(a,b){return Math.abs(o7a*b-a)<1||Math.abs(o7a/a-b)<1?o7a:a/b};
U_=function(a){if(a.app.getAppState()===1)return!1;if(a.app.getAppState()===6)return!0;var b=g.kS(a.app);if(!b||b.Lo())return!1;a=a.app.Sa.getPlayerStateObject();b=!g.U(a,2)||b&&b.getVideoData().W;var c=g.U(a,1024);return a&&b&&!c&&!a.isCued()};
T_=function(a){var b=a.app.U().controlsType==="3"&&!a.hL&&U_(a)&&!a.app.QB||!1;a.Ac.controls=b;a.Ac.tabIndex=b?0:-1;b?a.Ac.removeEventListener("focus",a.GS):a.Ac.addEventListener("focus",a.GS)};
p7a=function(a){var b=a.wi(),c=1,d=!1,e=n7a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=Ina(),m=g.UD(f.experiments,"player_underlay_min_player_width");m=h&&a.zT&&a.getPlayerSize().width>m;if(U_(a)){var n=m7a(a);var p=isNaN(n)||g.Lu||BU&&g.$t||m;Ku&&!g.oc(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.Cm(p,0,b.width,b.height)):p=new g.Cm(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Cm((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.$t&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.Qp(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.W2)a.Ac.style.display="";a.IR=!0}else{p=-b.height;Ku?p*=window.devicePixelRatio:g.iQ&&(p-=window.screen.height);p=new g.Cm(0,p,b.width,b.height);if(l||a.W2)a.Ac.style.display="none";a.IR=!1}Dm(a.MM,p)||(a.MM=p,g.SP(f)?(a.Ac.style.setProperty("width",
p.width+"px","important"),a.Ac.style.setProperty("height",p.height+"px","important")):g.Qm(a.Ac,p.getSize()),d=new g.Eg(p.left,p.top),g.Mm(a.Ac,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Cm((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Dm(a.oC,b)||(a.oC=b,d=!0);g.Fm(a.Ac,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.JM&&(m&&(a.Ac.addEventListener(zNa,a.qM),a.Ac.addEventListener("transitioncancel",a.qM),a.Ac.classList.add(g.S_.VIDEO_CONTAINER_TRANSITIONING)),a.JM=m,a.app.Sa.publish("playerUnderlayVisibilityChange",
a.JM?"transitioning":"hidden"));return d};
q7a=function(){this.csn=g.hx();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
r7a=function(a){if(a.csn!==g.hx())if(a.csn==="UNDEFINED_CSN")a.csn=g.hx();else{var b=g.hx(),c=g.gx();if(b&&c){a.csn=b;for(var d=g.w(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.Zr("combine_ve_grafts")?FL(DL(),e,c):g.Dr(g.Cx)(void 0,b,c,e))}if(b)for(a=g.w(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.Kx(b,c)}};
g.V_=function(a,b,c,d){g.O.call(this);var e=this;this.logger=new g.QT("App");this.QB=this.Lj=!1;this.Dr={};this.PM={};this.FC=[];this.e_=!1;this.tR=null;this.j_=!1;this.ly=!0;this.xU=!1;this.E_=this.OR=null;this.R_=!0;this.mediaElement=this.Fb=null;this.nS=NaN;this.sH=!1;this.De=this.mD=this.ub=this.Ae=this.screenLayer=this.xb=this.playlist=null;this.Sc={Ff:function(){return e.ub},
hI:function(h){e.ub=h},
PO:function(h,l){e.ub&&e.ub.PO(h,l)}};
this.logger.debug("constructor begin");this.config=hoa(b||{});this.webPlayerContextConfig=c;uoa();b=this.config.args||{};this.Y=new ZP(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.P(this,this.Y);U5a(this.Y);W5a(this.Y);this.Y.experiments.bb("jspb_serialize_with_worker")&&bra();this.Y.experiments.bb("gzip_gel_with_worker")&&Upa();this.Y.B&&!s7a&&(window.addEventListener(IP?"touchstart":"click",w5a,{capture:!0,passive:!0}),s7a=!0);this.L("html5_onesie")&&(this.Ty=new tV(this.Y),
g.P(this,this.Ty));this.Z2=Is(NP(this.Y)&&!0,b.enablesizebutton);this.HR=Is(!1,b.player_wide);this.visibility=new O5a;g.P(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.SC(Is(!1,b.player_wide));this.Lj=Is(!1,b.external_list);this.events=new g.jG(this);g.P(this,this.events);this.L("start_client_gcf")&&(kw(ow(),{FH:Zu,lV:qpa()}),this.h8=ow().resolve(Zu),tpa(this.h8));this.Uda=new fS;g.P(this,this.Uda);this.zs=new q7a;d=new JMa;this.Sa=new g.qS(this,d);g.P(this,this.Sa);this.template=
new k7a(this);g.P(this,this.template);this.appState=1;this.Wi=t7a(this);g.P(this,d);d={};this.TO=(d.internalvideodatachange=this.vS,d.playbackready=this.Taa,d.playbackstarted=this.Uaa,d.statechange=this.Vaa,d);this.g9=new bY(this.Sa);this.Rd=u7a(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&v7a||b)this.Y.lk=k1a(this.Rd,b),cP(bP(this.Y.lk,function(h){e.Y.hd=h;var l;(l=g.kS(e))==null||l.ma("wasm",{a:h.Ro})}),function(h){g.qx(h);
h="message"in h&&h.message||h.toString()||"";var l;(l=g.kS(e))==null||l.ma("wasm",{e:h})});
else if(d&&!v7a){var f;(f=g.kS(this))==null||f.ma("wasm",{e:"wasm unavailable"})}this.Hb=new q0a(this.Y,this.Rd);this.Sa.publish("csiinitialized");this.sb=w7a(this);this.sb.setPlaybackRate(this.Y.D?1:x7a(this,Number(g.mt("yt-player-playback-rate"))||1));g.Rx(this.sb,this.TO,this);cZa(this.sb);f={};this.R1=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.xS,f.contentPoTokenReady=this.cH,f.endseeking=this.CS,f.internalAbandon=
this.fH,f.internalaudioformatchange=this.UB,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.cC,f.liveviewshift=this.Gba,f.playbackstalledatstart=this.Zca,f.progresssync=this.mca,f.onAbnormalityDetected=this.cM,f.onSnackbarMessage=this.onSnackbarMessage,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.ZB,f.SEEK_TO=this.Nca,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=
this.bca,f.playbackready=this.cca,f.statechange=this.w1,f.newelementrequired=this.T0,f.heartbeatparams=this.eH,f.videoelementevent=this.rM,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.Uca,f.nonfatalerror=this.Uba,f.reloadplayer=this.uca,f);this.ev=new g.jG(this);g.P(this,this.ev);f=10;g.hE(this.Y)&&(f=3);gQ(this.Y)&&(f=g.UD(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.fv=new R_;g.P(this,this.fv);this.Xy=new P_(f,function(h){h!==g.kS(e,h.getPlayerType())&&
h.dispose()});
g.P(this,this.Xy);this.cQ=this.rK=-1;this.dN=new g.Ep(this.template.resize,16,this.template);g.P(this,this.dN);this.Yc=new R6a(this.Sa,this.Y,this.sb);this.En=new t_(this.Y);this.jl=new K5a(this);g.P(this,this.jl);this.QN=new n_(this);g.P(this,this.QN);f7a(this.Y.j.c);this.events.T(this.Sa,g.ME("appapi"),this.Qaa);this.events.T(this.Sa,g.NE("appapi"),this.Raa);this.events.T(this.Sa,g.ME("appprogressboundary"),this.lca);this.events.T(this.Sa,g.NE("applooprange"),this.fN);this.events.T(this.Sa,"presentingplayerstatechange",
this.lj);this.events.T(this.Sa,"resize",this.zca);this.template.Ha(gh(document,a));this.events.T(this.Sa,"offlineslatestatechange",this.Wba);this.Rd.J.U().Nj&&qY(this.Rd,"offline");this.Y.Va&&g.gY("ux",g.l_);a=g.UD(this.Y.experiments,"html5_defer_fetch_att_ms");this.FX=new g.Ep(this.aea,a,this);g.P(this,this.FX);this.xd().ye()&&(g.ot()&&this.xd().Ca.push("remote"),y7a(this));this.Hb.tick("fs");z7a(this);this.Y.Va&&qY(this.Rd,"ux",!0);g.LP(this.Rd.J.U())&&qY(this.Rd,"embed");this.L("web_player_sentinel_is_uniplayer")||
g.qx(new g.At("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.Zr("web_player_sentinel_yt_experiments_sync");a!==f&&g.qx(new g.At("b/195699950",{yt:a,player:f}));c||g.qx(new g.At("b/179532961"));this.R3=A7a(this);if(c=g.UD(this.Y.experiments,"html5_block_pip_safari_delay"))this.jQ=new g.Ep(this.VX,c,this),g.P(this,this.jQ);this.L("html5_early_media_for_sharper_shorts")&&(hPa["398"]=B7a);ls=this.Y.Bc;c=g.UD(this.Y.experiments,
"html5_performance_impact_profiling_timer_ms");c>0&&(this.H1=new g.Oi(c),g.P(this,this.H1),this.events.T(this.H1,"tick",function(){e.I1&&C7a.HA("apit",e.I1);e.I1=C7a.YC()}));
this.Sa.publish("applicationInitialized");this.logger.debug("constructor end")};
A7a=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.xb||a.sb).Sb().Jd("player.exception",$F(c)))}
rx.subscribe("handleError",b);Br.push(b);return function(){rx.unsubscribe("handleError",b);var c=Br.indexOf(b);c!==-1&&Br.splice(c,1)}};
w7a=function(a){var b=new g.$Q(a.Y,a.config.args);a.Sa.publish("initialvideodatacreated",b);return a.yA(1,b)};
D7a=function(a,b){if(a.sb!==b){b.getVideoData().autonavState=a.sb.getVideoData().autonavState;Sx(a.sb,a.TO,a);var c=a.sb.getPlaybackRate();a.sb.dispose();a.sb=b;a.sb.setPlaybackRate(c);g.Rx(b,a.TO,a);y7a(a)}};
u7a=function(a){var b="",c=i7a(a);c.indexOf("//")===0&&(c=a.Y.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.qx(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new T0a(a.Sa,b);E7a(a,b);return b};
E7a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
t7a=function(a){if(a.Y.storeUserVolume){a=g.mt("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.Bg(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Y.mute};return a};
W_=function(a){a.mediaElement=a.Y.deviceIsAudioOnly?new g.TX(g.qh("AUDIO")):m_.pop()||new g.TX(g.qh("VIDEO"));g.P(a,a.mediaElement);a.xb&&a.xb.setMediaElement(a.mediaElement);try{a.Y.kd?(a.mD&&a.events.Mc(a.mD),a.mD=a.events.T(a.mediaElement,"volumechange",a.Oba)):(a.mediaElement.LC(a.Wi.muted),a.mediaElement.setVolume(a.Wi.volume/100))}catch(e){a.Wg("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.ht(a.ev);F7a(a);var b=a.template,c=a.mediaElement.Ib();b.Ac=c;b.hL=!1;b.Ac.parentNode||uh(b.vA,b.Ac,0);b.MM=new g.Cm(0,0,0,0);p7a(b);T_(b);c=b.Ac;g.Mp(c,"video-stream");g.Mp(c,g.S_.MAIN_VIDEO);var d=b.app.U();d.Yk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in dG()&&(c.playsInline=!0):d.Im&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Kq&&b.Ac&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Wg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}};
s_=function(a,b,c){if(a.xb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.xb){d=a.xb.getPlayerState();a.logger.debug("set presenting player, destroy modules");rY(a.Rd,3);X_(a,"cuerangesremoved",a.xb.Ml());a.jl&&!b.isGapless()&&a.xb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=DH(b)&&DH(a.xb);a.Hb.Xv("iv_s");G7a(a,e)}b.getPlayerType()===1&&D7a(a,b);H7a(a,b);a.xb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.Rx(b,a.R1,a);if(b.uL())I7a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.TH(d,b.getPlayerState())&&
a.w1(new g.Yy(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.Uq.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Sa.tf("onPlaybackQualityChange",c.quality);X_(a,"cuerangesadded",a.xb.Ml());c=b.getPlayerState();g.U(c,2)?J7a(a):g.U(c,8)?b.playVideo():b.tG()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().pJ=(f=g.kS(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!==
2||a.If()||(f=b.getVideoData(),a.sb.ez(f.clientPlaybackNonce,f.Qb||"",f.breakType||0,f.Qj,f.videoId||""));a.logger.debug("finish set presenting player")}}};
J7a=function(a){if(!K7a(a)){var b=a.sb.Ge();b&&(b=b.xF(),b instanceof Promise&&b.catch(function(){}));
Y_(a,VH(a.getPlayerStateObject()))}};
F7a=function(a){var b=a.mediaElement;hG()?a.ev.T(b,"webkitpresentationmodechanged",a.Kca):window.document.pictureInPictureEnabled&&(a.ev.T(b,"enterpictureinpicture",function(){a.qz(!0)}),a.ev.T(b,"leavepictureinpicture",function(){a.qz(!1)}));
Bs&&(a.ev.T(b,"webkitbeginfullscreen",function(){a.jm(3)}),a.ev.T(b,"webkitendfullscreen",function(){a.jm(0)}))};
H7a=function(a,b){var c=b.getPlayerType();if(b!==a.sb&&b!==a.Dr[c]){var d;(d=a.Dr[c])==null||d.dispose();a.Dr[c]=b}};
G7a=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.De){c=a.De;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Zj(),W_(a));a.xb&&(a.xb.Zj(!b),Sx(a.xb,a.R1,a),a.xb.getPlayerType()!==1&&a.xb.dispose());a.xb=null;a.logger.debug("finish clear presenting player")};
g.kS=function(a,b){return b?b===1?a.sb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.Dr[2]||a.xb:a.xb:g.oR(a.getVideoData())&&b===2?a.Dr[2]||a.xb:a.Dr[b]||null:a.xb};
L7a=function(a,b,c,d){a=a.yA(b,c,d);cZa(a);return a};
Z_=function(a,b){return a.If(b)?a.sb:b};
$_=function(a,b){var c=a.xb;return c&&b===a.sb&&a.If(b)&&a.If(c)?c:b};
O7a=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=a0(a);a.xd().isLoaded();b&&a.lr(6);M7a(a);c1a(a.Rd)||N7a(a)}};
N7a=function(a){if(!a0(a)){var b=sY(a.Rd);b&&!b.created&&U0a(a.Rd)&&(a.logger.debug("reload ad module"),b.create())}};
M7a=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Rd;c1a(c)||c.FP();!v7a&&c.J.L("html5_allow_asmjs")&&j1a(c);qY(c,"embed");qY(c,"inline_preview");qY(c,"kids");qY(c,"remote");qY(c,"miniplayer");qY(c,"offline");qY(c,"unplugged");qY(c,"ypc",!1,!0);qY(c,"ypc_clickwrap",!1,!0);qY(c,"yto",!1,!0);qY(c,"webgl",!1,!0);d1a(c)||(qY(c,"captions",!0),qY(c,"endscreen"),c.J.L("html5_ssap_defer_annotations_creation_on_timeline_update")&&c.vU()||c.SJ(),qY(c,"creatorendscreen",!0));
c.jY();a.Sa.publish("videoready",b)};
b0=function(a){a=a.xd();a.ye();return SR(a)};
z7a=function(a){a.logger.debug("start prepare initial playback");if(a.L("html5_enable_ssap_autoplay_debug_logging")){var b;(b=a.sb)==null||b.ma("ssap",{preppb:1})}a.OP();var c=a.config.args;W_(a);b=a.xd();a.Sa.tf("onVolumeChange",a.Wi);if(c&&u0a(c)){var d=cQ(a.Y);d&&!a.Lj&&(c.fetch=0);var e=g.LP(a.Y);e&&!a.Lj&&(c.fetch=0);c0(a,c);g.LP(a.Y)&&a.Hb.tick("ep_pr_s");if(!d||a.Lj)if(e&&!a.Lj)P7a(a);else if(!b.ye())a.playlist.onReady(function(){d0(a)})}s_(a,a.sb);
g.U(a.sb.getPlayerState(),128)||(c=rxa(!a.Y.deviceIsAudioOnly),c==="fmt.noneavailable"?a.Wg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):c==="html5.missingapi"?a.Wg(c,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):b&&b.ye()&&b0(a)&&(a.Y.Zh||a.Y.Yi)?e0(a):b.iE?a.Sa.mutedAutoplay():g.mt("yt-player-playback-on-reload")?(g.Qt("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.Aa}),g.lt("yt-player-playback-on-reload",!1),e0(a)):lQ(a.Y)||Q7a(a),g.fQ(a.Y)||iP(a.Y)==="MWEB"?
(g.Ft(g.Ht(),function(){f0(a)}),g.Ft(g.Ht(),function(){Bua()})):(f0(a),Bua()),a.logger.debug("finish prepare initial playback"))};
f0=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.Fp(a.FX);else{var b=a.getVideoData().botguardData;b&&g.QL(b,a.Y,a.getVideoData().Mr||"")}};
Q7a=function(a){a.logger.debug("start initialize to CUED mode");a.Sa.publish("initializingmode");a.lr(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.hQ(a.Y)?g.Ft(g.Ht(),function(){qY(a.Rd,"remote")}):qY(a.Rd,"remote");
qY(a.Rd,"miniplayer");a.logger.debug("initialized to CUED mode")};
e0=function(a){a.logger.debug("start initialize application playback");if(g.U(a.sb.getPlayerState(),128))return!1;var b=a.sb.getVideoData();b0(a)&&a.Y.Yi&&(m_.length&&a.QB?(g0(a,{muted:!1,volume:a.Wi.volume},!1),h0(a,!1)):m_.length||a.Wi.muted||(g0(a,{muted:!0,volume:a.Wi.volume},!1),h0(a,!0)));b0(a)&&g.LP(a.Y)&&b.mutedAutoplay&&(g0(a,{muted:!0,volume:a.Wi.volume},!1),h0(a,!0));b.w_&&g0(a,{muted:!0,volume:a.Wi.volume},!1);R7a(a,1,b,!1);a.Sa.publish("initializingmode");s_(a,a.sb);a.lr(3);var c;if(!(c=
!a.Y.Un)){if(c=a.De){c=a.De;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.e_}c&&(a.Zj(),W_(a),a.sb.setMediaElement(a.mediaElement));nZa(a.sb);if(g.U(a.sb.getPlayerState(),128))return!1;b.jk||Y_(a,3);return a.e_=!0};
a0=function(a){a=tS(a.Rd);return!!a&&a.loaded};
S7a=function(a,b){if(!a.Fb)return!1;var c=a.Fb.startTimeMs*.001-1,d=a.Fb.endTimeMs*.001;a.Fb.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d};
V7a=function(a){var b,c=(b=g.kS(a))==null?void 0:b.ra;a.xb&&vR(a.getVideoData())&&c&&c.policy.ib&&(b=T7a(a)*1E3-a.getVideoData().uZ,a.L("html5_gapless_new_slr")?(a=a.QN,U7a(a.app,"gaplessshortslooprange"),b=new g.KE(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Qc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
W7a=function(a){if(!(g.U(a.sb.getPlayerState(),64)&&a.xd().isLivePlayback&&a.Fb.startTimeMs<5E3)){if(a.Fb.type==="repeatChapter"){var b,c=(b=PMa(a.yb()))==null?void 0:b.Mi(),d;b=(d=a.getVideoData())==null?void 0:d.Wk;c instanceof g.GY&&b&&(d=b[YY(b,a.Fb.startTimeMs)],c.PH(0,d.title));isNaN(Number(a.Fb.loopCount))?a.Fb.loopCount=0:a.Fb.loopCount++;a.Fb.loopCount===1&&a.Sa.eb("innertubeCommand",a.getVideoData().b5)}c={Xc:"application_loopRangeStart"};if(a.Fb.type==="clips"||a.Fb.type==="shortsLoop")c.seekSource=
58;a.sb.seekTo(a.Fb.startTimeMs*.001,c)}};
x7a=function(a,b){var c=a.Sa.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b};
T7a=function(a,b){b=g.kS(a,b);if(!b)return 0;b=Z_(a,b);return i0(a,mX(b),b)};
i0=function(a,b,c){if(a.If(c)){c=c.getVideoData();if(j0(a))c=b;else{a=a.Yc;for(var d=g.w(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.Ed===e.Ed){b+=e.hc/1E3;break}d=b;a=g.w(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Ed===e.Ed)break;var f=e.hc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Yd/1E3;else break}c=d}return c}return b};
X7a=function(a,b){if(a.getPresentingPlayerType()===3)return VH(tS(a.Rd).Ie);if((a.getVideoData().enableServerStitchedDai||g.oR(a.getVideoData()))&&b===2){k0(a,"geps");var c,d;return((c=a.Ae)==null?0:c.Tl(a.getCurrentTime()))||((d=a.ub)==null?0:d.Tl())?a.rK:-1}return b!==2||a.If()?a.rK:a.cQ};
y7a=function(a){a.logger.debug("reset for new application playback");l0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Sa.publish("legacyadtrackingpingreset");a.PM={};a.FC=[];s0a(a.Hb);if(a.Ae){var b=a.Ae,c=a.sb;c.getPlayerType();C_(b,!1);m6a(b);n6a(b);b.ea=c}b=a.Yc;a=a.sb;a.getPlayerType()!==1&&I_(b,"invalidParentVideoPlayerType");M_(b,!1);d7a(b);b.j=a};
P7a=function(a,b){var c=(b?b:a.xd()).T2;a.Hb.tick("ep_pr_r");if(c!=null&&(y0a(a.playlist,c),a.xU))a.playlist.onReady(function(){d0(a,b)})};
c0=function(a,b){a.playlist&&(g.vg(a.playlist),a.playlist=null);b&&(a.Lj&&(b.fetch=0),a.playlist=new t0a(a.Y,b))};
Y7a=function(a){var b,c=Number((b=a.getVideoData().progressBarEndPosition)==null?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.df())&&(b-=a.getCurrentTime(),c=(c-b)*1E3,b=a.PM.progressEndBoundary,(b==null?void 0:b.start)!==c&&(b&&a.OH([b]),c=new g.KE(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.sb.addCueRange(c),a.PM.progressEndBoundary=c))};
Y_=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.xb){var c=a.xb.getPlayerType();if(c===2&&!a.If()){a.cQ!==b&&(a.cQ=b,a.Sa.tf("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.Fb)return;var d;if(((d=a.xb)==null?0:d.yu())&&!kQ(a.Y)){a.playVideo();return}}a.rK!==b&&(a.rK=b,a.Sa.tf("onStateChange",b))};
Z7a=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.xb.getPlayerType();var f=R7a(a,c,b,!0);f||(f=L7a(a,c,b));if(c===2&&a.sb){var h=f.getVideoData();a.sb.ez(h.clientPlaybackNonce,h.Qb||"",h.breakType||0,h.Qj,h.videoId||"")}a.lK(f,d,0,e)};
$7a=function(a,b,c,d,e){var f="";f=a.Y.L("html5_autonav_autoplay_in_preload_key")?m0(a,c,b):n0(a,c,b.videoId,b.Ed);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.xb&&(h=a.Y.L("html5_autonav_autoplay_in_preload_key")?m0(a,a.xb.getPlayerType(),a.xb.getVideoData()):n0(a,a.xb.getPlayerType(),a.xb.getVideoData().videoId,a.xb.getVideoData().Ed),f===h))return g.aX(a.xb,!0),b.dispose(),null;b.Pc=!0;b=L7a(a,c,b);c===1&&gQ(a.Y)||g.aX(b,!0);a.Xy.set(f,b,d||3600);return b};
a8a=function(a,b,c,d){var e=Ns(c);return n0(a,b,e,d,c.autonav==="1"||c.autonav===!0,c.autoplay==="1"||c.autoplay===!0||c.autoplay===1)};
m0=function(a,b,c){return n0(a,b,c.videoId,c.Ed,c.isAutonav,c.jr)};
n0=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;b=b+"_"+c+"_"+d;a.Y.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
R7a=function(a,b,c,d){var e=a.Y.L("html5_autonav_autoplay_in_preload_key")?m0(a,b,c):n0(a,b,c.videoId,c.Ed);var f=a.Xy.get(e);if(!f||f.Ia())return null;a.Xy.remove(e);if(g.U(f.getPlayerState(),128))return f.dispose(),null;if(f===g.kS(a,b))return a.Hb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;b===1&&l0(a);d||s_(a,f,!0);a.Hb.infoGel({isCacheHit:!0});return f};
o0=function(a,b,c){c=g.kS(a,c);b&&c===a.sb&&(c.getVideoData().Yi=!0)};
p0=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.ye()){var d=a.yA(c,b);a.cancelPlayback(4,c);s_(a,d);cZa(d);if(c===1){a.lr(1);if(g.LP(a.Y)&&!uMa(b)){b.dispose();g.vg(g.kS(a,c));return}Q7a(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.vg(g.kS(a,c)),rMa(a.xd())&&c===2&&a.mA()};
b8a=function(a,b,c,d,e){b=MMa(b,c,d,e);(c=g.LP(a.Y)&&!a.Y.qa)&&!a.Lj&&(b.fetch=0);c0(a,b);g.LP(a.Y)&&a.Hb.tick("ep_a_pr_s");if(c&&!a.Lj)c=a.xd(),B0a(c,b).then(function(f){a.xU=!0;P7a(a,f)});
else a.playlist.onReady(function(){d0(a)});
g.LP(a.Y)&&a.Hb.tick("ep_a_pr_r")};
d0=function(a,b){var c=g.LP(a.Y)&&!a.Y.qa,d=c&&b?b:g.eY(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.mj&&(a.Y.Zh||a.Y.Yi)||!a.ly?(b=b.Yi,d=a.Yu(d,1),b&&o0(a,d)):p0(a,d,1));g.LP(a.Y)&&a.Hb.tick("ep_p_l");a.xU=!1;a.Sa.Cd("onPlaylistUpdate")};
K7a=function(a){if(a.playlist&&g.RP(a.Y)&&a.JF()){var b=a.Y.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
c8a=function(a,b,c,d,e,f,h){b={id:b,namespace:h!=null?h:"appapi"};f==="chapter"?(b.style=JE.CHAPTER_MARKER,b.visible=!0):isNaN(e)||(f==="ad"?b.style=JE.AD_MARKER:(b.style=JE.TIME_MARKER,b.color=e),b.visible=!0);a.cA([new g.KE(c*1E3,d*1E3,b)],1);return!0};
d8a=function(a,b,c,d,e,f){f=f===void 0?!0:f;var h=a.df();if(!h)return f&&a.getVideoData().isLivePlayback&&a.FC.push({id:b,Yfa:c,Xfa:d}),!1;f=h-a.getCurrentTime();return c8a(a,b,c-f,d-f,void 0,void 0,e)};
e8a=function(a,b){a.FC=g.Bn(a.FC,function(f){return f.id!==b});
for(var c=a.sb.Ml(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.sb.removeCueRange(e),X_(a,"cuerangesremoved",[e]),!0}return!1};
U7a=function(a,b,c){var d=g.kS(a,c);d&&(b=d.Ih.kf(b),c&&a.getPresentingPlayerType()!==c||X_(a,"cuerangesremoved",b))};
f8a=function(a){var b=(0,g.hu)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
g0=function(a,b,c){a.Y.Ua&&(a.Wi=b,b.muted||h0(a,!1),c&&a.Y.storeUserVolume&&!a.Y.kd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.lt("yt-player-volume",c),g.lt("yt-player-volume",c,2592E3))),g8a(a),c=g.fG&&a.mediaElement&&!a.mediaElement.ri(),a.Y.kd&&!c||a.Sa.tf("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
g8a=function(a){var b=a.getVideoData();if(!b.bl){b=a.Y.kd?1:oMa(b);var c=a.mediaElement;c.LC(a.Wi.muted);try{c.setVolume(a.Wi.volume*b/100)}catch(d){g.qx(new g.At("b183742307","multiplier: "+b+", volume: "+a.Wi.volume))}}};
h0=function(a,b){b!==a.QB&&(a.QB=b,a.Sa.Cd("onMutedAutoplayChange",b))};
jS=function(a){return a.QB&&a.getVideoData().mutedAutoplay};
h8a=function(a){var b=Xs(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Ib())?b:null};
j8a=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.L("lock_fullscreen2")||a.Y.Z)&&c&&c.lock&&(!g.fG||!i8a))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.sH||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){});
a.sH=!0}}else a.sH&&(a.sH=!1,c.unlock())};
X_=function(a,b,c){a.Sa.publish(b,c);var d=g.hE(a.Y)||g.SP(a.Y)||g.vz(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Sa.eb(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}}))}};
q0=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.kS(a,e);h&&(h.getPlayerType()===2&&!a.If(h)||g.IR(h.getVideoData()))||(a.getPresentingPlayerType()===3?tS(a.Rd).dH("control_seek",b,c):(h===a.sb&&a.Fb&&!S7a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
I7a=function(a,b,c,d){c&&(a.Zj(),W_(a));c=g.kS(a);c.Jd(new aG("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?nR(e)&&g.fE(a.Y)&&(f.live_utc_start=c.df(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.qa&&(f.vvt=e.qa);e.K&&(f.vss_credentials_token=e.K,f.vss_credentials_token_type=e.On);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Un&&(f.force_gvi=e.Un);f.autoplay=1;f.reload_count=e.Tb+1;f.reload_reason=b;e.DD&&(f.unplugged_partner_opt_out=
e.DD);e.Zi&&(f.ypc_is_premiere_trailer=e.Zi);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,!0,void 0,void 0,d);b==="signature"&&a.Ae&&N7a(a)};
k8a=function(a,b){a.xd().autonavState=b;g.lt("yt-player-autonavstate",b);a.Sa.publish("autonavchange",b)};
l8a=function(a){var b=a.getVideoData().bl,c=a.Y.rb,d=a.isInline()&&!a.getVideoData().u3,e=a.mediaElement;b||c||d?e.QP():(e.UP(),g0(a,a.Wi))};
l0=function(a){var b=sY(a.yb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
j0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Ae};
m8a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.w(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Jm(a,d);b.hidden=!!a.hidden};
i7a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?dr(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
k0=function(a,b){if(a.L("html5_ssap_enable_api_timing_logging")&&g.oR(a.xd())&&!a.En.zp){var c;(c=g.kS(a))==null||c.ma("ssap",{ptnu:b})}};
n8a=function(a){return a.name==="TypeError"&&a.stack.includes("/s/player/")&&ts()<=105};
o8a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
p8a=function(){var a=null;Sna().then(function(b){return a=b},function(b){return a=o8a(b)});
return a};
q8a=function(){var a=Qi(1E3,"NO_BID");return Mi(ofa([Sna(),a]).fl(o8a),function(){a.cancel()})};
r0=function(a){return a.ge?g.ut(g.tt(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
s0=function(a){this.player=a;this.C=this.j=1};
t8a=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=Mr(c),h=g.aj(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.aj(c)?!1:!0;if(f||h||d!==""){var l={};c=Gr(Rr(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=[];r8a.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
s8a(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);a=e.j.cbrand;a!=null&&a!=="cbrand"&&(b.client.deviceMake=a);b.user||(b.user={});b.user.lockedSafetyMode=!1;e.L("embeds_web_enable_iframe_api_send_full_embed_url")&&
uCa(b,e)};
w8a=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 u8a&&(f.clientName=u8a[d[0]]),d[1]in v8a&&(f.platform=v8a[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};
y8a=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in x8a))return!1;a=a.split(RegExp("[:&]"));var b=x8a.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};
s8a=function(a,b){a=a.player.U();if(g.dQ(a)||gQ(a)&&a.L("add_ifa_to_tvh5_requests")){a=g.zr("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)}};
G8a=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=z8a.exec(b);h=h!=null&&h.length>=2?h[1]:"";var l=A8a.test(b),m=B8a.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=C8a.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=D8a.exec(b);p=p!=null&&p.length>=2?p[1]:"0";var q=WP(a.player.U().Ca),r=a.player.getVideoData(1);r=g.aA(r.Fa,!0);var t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";t8a(a,r,b,t.toString(),a.player.U());
var u={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:20005,autonavState:r0(a.player.U())};d&&(d={},w8a(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=E8a.includes(q)?void 0:g.os("PREF")){for(var y=d.split(RegExp("[:&]")),A=0,C=y.length;A<C;A++){var F=y[A].split("=");if((F[0].toUpperCase()==="SML"||F[0].toUpperCase()==="GSML")&&F.length>1&&F[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;
break}}u.autoCaptionsDefaultOn=y8a(d)}b=F8a.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(r.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:u};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:c.CPN,topLevelDomain:q,isProxyAdTagRequest:l,context:r,adSignalsInfoString:Gr(Rr(t.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=a.player.getGetAdBreakContext())&&(h.getAdBreakContext=a);return h};
H8a=function(){s0.apply(this,arguments)};
I8a=function(a,b,c,d,e){var f=c.vx;c=c.je;var h=a.player.U().Qj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.lh:0,AUTONAV_STATE:r0(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Xr()*1E3,LACT:hw(),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().wi().height,P_W:a.player.ob().wi().width,YT_REMOTE:h?h.join(","):
""},m=Qr(Pr);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())});
d!==""&&(l.BISCOTTI_ID=d);d={};Or(b)&&(d.sts="20005",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return Lr(g.Wo(b,l),d)};
J8a=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.oQ(c,e).then(function(f){if(f&&Nr()){var h=WS();XS(h,f)}return g.NA(a.player.Xm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
K8a=function(a){this.Na=a};
L8a=function(a){this.J=a};
M8a=function(a){this.Na=a};
O8a=function(a){g.O.call(this);this.kh=a;this.e7=N8a(this)};
N8a=function(a){var b=new qva(a.kh.qd);g.P(a,b);a=g.w([new K8a(a.kh.Na),new L8a(a.kh.J),new M8a(a.kh.Na),new mC(a.kh.Xl,a.kh.Zo),new oC,new rC(a.kh.Pf,a.kh.Kl,a.kh.Na),new nC,new lC]);for(var c=a.next();!c.done;c=a.next())rva(b,c.value);a=g.w(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())pC(b,c.value,function(){});
return b};
t0=function(a){var b=a.Qa,c=a.ya;a=a.Re;var d=new zBa,e={Ij:new nxa(b.get(),c),ya:c};return{Rb:new uL(c,a,b,e),context:e,Tg:d}};
u0=function(a,b,c,d,e){g.O.call(this);this.J=a;this.B=b;this.Ga=c;this.Qa=d;this.wf=e;this.listeners=[];var f=new ft(this);g.P(this,f);f.T(a,"internalAbandon",this.fH);this.addOnDisposeCallback(function(){g.ht(f)})};
v0=function(a){this.J=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.B=this.C=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
P8a=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.D="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.C=!1;a.B=!1};
Q8a=function(a,b){a=g.w(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){FA("ad_i");g.GA({isMonetized:!0});break}};
R8a=function(a){var b;(b=a.J.getVideoData(1))!=null&&b.Aa&&(a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),HA("video_to_ad",b))};
CI=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});HA("ad_to_video",b);S8a(a)};
S8a=function(a){if(a.C)if(a.D==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")CA("video_to_ad");else{var b={adBreakType:eI(a.D),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.GA(b,a.actionType)}};
w0=function(a){g.O.call(this);this.J=a;this.j=new Map;this.B=new ft(this);g.P(this,this.B);this.B.T(this.J,g.ME("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.NE("ad"),this.onCueRangeExit,this)};
T8a=function(a,b,c,d,e){g.KE.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
x0=function(a){this.J=a};
y0=function(a){this.J=a;g.UD(this.J.U().experiments,"tv_pacf_logging_sample_rate")};
U8a=function(a){return z0(a)&&hI(a,"html5_ssap_play_cached_preroll")};
YF=function(a,b){b=b===void 0?!1:b;return a.J.U().L("html5_ssap_force_ads_ctmp")?!0:(b||a.J.U().Vb())&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")};
z0=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.oR(b))!=null?c:!1};
hI=function(a,b){return a.J.U().L(b)};
V8a=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
PK=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};
pBa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
W8a=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
uK=function(a){return a.J.U().experiments.bb("enable_desktop_player_underlay")};
X8a=function(a){return a.J.U().experiments.bb("html5_load_empty_player_in_media_break_sub_lra")};
rI=function(a){return a.J.U().experiments.bb("html5_load_ads_instead_of_cue")};
sI=function(a){return a.J.U().experiments.bb("html5_preload_ads")};
oL=function(a){return a.J.U().experiments.bb("enable_ads_control_flow_deterministic_id_generation")};
Y8a=function(a){return a.J.U().experiments.bb("enable_desktop_discovery_video_abandon_pings")||g.dQ(a.J.U())&&a.J.U().experiments.bb("enable_lr_discovery_video_abandon_pings")};
Z8a=function(a){return a.J.U().experiments.bb("enable_progres_commands_lr_feeds")};
$8a=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}};
a9a=function(){g.Qx.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.w(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
A0=function(){if(b9a===null){b9a=new a9a;Tl(Uo).B="b";var a=Tl(Uo),b=No(a)=="h"||No(a)=="b",c=!(Yl(),!1);b&&c&&(a.D=!0,a.G=new Uja)}return b9a};
c9a=function(a,b,c){a.j[b]=c};
d9a=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}};
B0=function(a,b,c){this.Ga=a;this.J=b;this.ya=c;this.B=new Set;this.j=new Map;A0().subscribe("adactiveviewmeasurable",this.Ly,this);A0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Ky,this);A0().subscribe("adviewableimpression",this.My,this);A0().subscribe("adaudioaudible",this.Iy,this);A0().subscribe("adaudiomeasurable",this.Jy,this)};
D0=function(a,b,c){var d=c.Qt,e=c.QI,f=c.listener,h=c.E7;c=c.To===void 0?!1:c.To;if(a.j.has(b))Xy("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);xl(Yl().Jc,"fmd",1);ela(Tl(Uo),d);var l=c?b:void 0;c9a(A0(),b,{wQ:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ga.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:C0(a.Ga.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:a.Ga.get().isMuted()?0:a.Ga.get().getVolume()/100}:{}}})}};
E0=function(a,b){a.j.has(b)?(a.j.delete(b),delete A0().j[b]):Xy("Unexpected unregistration of layout in LidarApi")};
g9a=function(a,b,c){var d={};e9a(a,d,b,c);f9a(d);d.LACT=F0(function(){return hw().toString()});
d.VIS=F0(function(){return a.getVisibilityState().toString()});
d.SDKV="h.3.0";d.VOL=F0(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
d.VED="";return d};
h9a=function(a,b){var c={};if(b)return c;if(!a.kind)return g.px(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.px(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=F0(Ai(Math.round(qg(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=F0(Ai("0"));return c};
F0=function(a){return{toString:function(){return a()}}};
i9a=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.Sg(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};
e9a=function(a,b,c,d){b.CPN=F0(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.qx(Error("Video data is null.")),e=null);return e});
b.AD_MT=F0(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")||g.dQ(a.U())&&a.U().L("enable_lr_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?j9a(a,h,f):0}else e=j9a(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()});
b.MT=F0(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()});
b.P_H=F0(function(){return a.ob().wi().height.toString()});
b.P_W=F0(function(){return a.ob().wi().width.toString()});
b.PV_H=F0(function(){return a.ob().getVideoContentRect().height.toString()});
b.PV_W=F0(function(){return a.ob().getVideoContentRect().width.toString()})};
f9a=function(a){a.CONN=F0(Ai("0"));a.WT=F0(function(){return Date.now().toString()})};
j9a=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)};
k9a=function(){};
l9a=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,y,A,C;g.J(function(F){switch(F.j){case 1:f=!!b.scrubReferrer;h=g.Wo(b.baseUrl,i9a(c,f,d));l={};if(!b.headers){F.Ea(2);break}m=a.D();if(!m.j){n=m.getValue();F.Ea(3);break}return g.G(F,m.j,4);case 4:n=F.B;case 3:p=n;q=g.w(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.zr("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.zr("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.zr("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.zr("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":y=a.j();!p&&y&&(l["X-Goog-AuthUser"]=y);break;case "DATASYNC_ID":if(A=void 0,(A=a.C())==null?0:A.bb("enable_datasync_id_header_in_web_vss_pings"))C=a.B(),Mr(h)&&g.zr("LOGGED_IN")&&C&&(l["X-YouTube-DataSync-Id"]=C)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.Av(h,void 0,f,Object.keys(l).length!==
0?l:void 0,"",!0,e),g.va(F)}})};
m9a=function(a,b,c,d,e){this.D=a;this.G=b;this.j=c;this.B=d;this.C=e};
n9a=function(a,b){this.j=a;this.ya=b};
G0=function(a,b,c,d,e,f,h){var l=l===void 0?new m9a(function(){var m=a.U(),n=a.getVideoData(1);return g.oQ(m,n?g.TR(n):"")},function(){return a.U().pageId},function(){return a.U().Aa},function(){var m;
return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l;
this.J=a;this.B=b;this.zb=c;this.Qa=d;this.Rb=e;this.ya=f;this.Tg=h;this.D=l;this.yI=null;this.j=new Map;this.C=new n9a(l,this.ya)};
p9a=function(a,b,c,d,e){var f=YK(a.B.get(),c);f?(c=hF(a,o9a(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):Xy("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
wwa=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=YK(a.B.get(),b);if(h){var l=a.zb.get().Wh(b,c),m=hF(a,o9a(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Rb.Fs("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new Zya(n,p),void 0,void 0,h.adLayoutLoggingData))})}else Xy("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
trackingType:c})};
JI=function(a,b){g.Qt("adsClientStateChange",b)};
q9a=function(a,b){a.j.has(b.PA())?Xy("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.PA(),b)};
r9a=function(a,b){a.j.delete(b.PA())||Xy("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
MI=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).Jv(b,c):a.J.getVideoData(1).ma(b,c)};
o9a=function(a){var b=ND(a.clientMetadata,"metadata_type_ad_placement_config");a=ND(a.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,j0:a}};
hF=function(a,b,c,d,e,f){var h=c?s9a(a):{},l=c?t9a(a,c.layoutId):{},m=u9a(a),n,p=e!=null?e:(n=aI(a.Qa.get(),2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=aI(a.Qa.get(),1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Tg.j.get(c.layoutId))==null?0:q.To)e=c.layoutId}q={};a=Object.assign({},g9a(a.J,e,d),h9a(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=F0(function(){return"1"}),q.AD_CPN=F0(function(){return p||
""}),q));
(c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=F0(function(){return(b.j0||0).toString()}));
c={};f=Object.assign({},a,f);a=g.w(Object.values(v9a));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};
s9a=function(a){var b={},c,d=(c=a.yI)==null?void 0:c.vj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=F0(function(){return Math.round(d*1E3).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=F0(function(){return Math.round(Date.now()/1E3).toString()});
return b};
t9a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.lQ();if(!a)return{};b={};return b.YT_ERROR_CODE=a.SN.toString(),b.ERRORCODE=a.NI.toString(),b.ERROR_MSG=a.errorMessage,b};
u9a=function(a){var b={},c=a.J.getVideoData(1);b.ASR=F0(function(){var d;return(d=c==null?void 0:c.yw)!=null?d:null});
b.EI=F0(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null});
return b};
H0=function(a,b,c){g.O.call(this);this.J=a;this.xt=b;this.ya=c;this.listeners=[];this.RR=null;this.OO=new Map;b=new g.jG(this);g.P(this,b);b.T(a,"videodatachange",this.nda);b.T(a,"serverstitchedvideochange",this.Oca);this.wx=aI(this)};
aI=function(a,b){var c=a.J.getVideoData(b);return c?a.CJ(c,b||a.J.getPresentingPlayerType(!0)):null};
w9a=function(a,b,c){var d=a.CJ(b,c);a.wx=d;a.listeners.forEach(function(e){e.mM(d)})};
x9a=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}};
I0=function(a,b,c){g.O.call(this);this.J=a;this.Qa=b;this.ya=c;this.listeners=[];this.dF=[];this.j=function(){Xy("Called 'doUnlockPreroll' before it's initialized.")};
b=new ft(this);c=new g.jG(this);g.P(this,c);g.P(this,b);b.T(a,"progresssync",this.nca);b.T(a,"presentingplayerstatechange",this.eca);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.Ah);b.T(a,"overlayvisibilitychange",this.Uj);b.T(a,"shortsadswipe",this.Wj);b.T(a,"resize",this.kc);c.T(a,g.ME("appad"),this.Tj)};
J0=function(a){z0(a.ya.get())||a.j()};
y9a=function(a,b){a.dF=a.dF.filter(function(c){return c!==b})};
K0=function(a,b,c){return a.getCurrentTimeSec(b,c)};
z9a=function(a,b){var c;b=(c=a.Qa.get().OO.get(b))!=null?c:null;if(b===null)return Xy("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
C0=function(a,b){return a.J.getPlayerStateObject(b)};
A9a=function(a){var b=a.J.ob().wi();a=a.J.Io(!0,!0);return b.height-(a.height+a.top)};
B9a=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
Sxa=function(a,b){var c=a.J.U();g.QP(c)||c.controlsType!=="3"||a.J.ob().jN(b)};
L0=function(a,b){g.Mp(a.J.getRootNode(),b)};
M0=function(a,b){g.Op(a.J.getRootNode(),b)};
C9a=function(a,b,c,d,e){g.O.call(this);var f=this,h=vE(function(){return new nL(f.ya)});
g.P(this,h);var l=vE(function(){return new pL(h,f.ya)});
g.P(this,l);var m=vE(function(){return new WK});
g.P(this,m);d=vE(function(){return new UK(a)});
g.P(this,d);var n=vE(function(){return new qL(h,l,f.ya)});
g.P(this,n);var p=vE(function(){return new vL});
g.P(this,p);this.Jb=vE(function(){return new xE(e)});
g.P(this,this.Jb);this.Dc=vE(function(){return new v0(b)});
g.P(this,this.Dc);this.Nc=vE(function(){return new w0(b)});
g.P(this,this.Nc);this.qd=vE(function(){return new x0(b)});
g.P(this,this.qd);this.ya=vE(function(){return new y0(b)});
g.P(this,this.ya);var q=vE(function(){return new VD(f.ya)});
g.P(this,q);var r=vE(function(){return new LK(h,n,l,f.ya,q,null,null,null)});
g.P(this,r);this.Qa=vE(function(){return new H0(b,p,f.ya)});
g.P(this,this.Qa);var t=t0({Qa:this.Qa,ya:this.ya,Re:q}),u=t.context,y=t.Tg;this.Rb=t.Rb;this.Ga=vE(function(){return new I0(b,f.Qa,f.ya)});
g.P(this,this.Ga);this.zb=vE(function(){return new B0(f.Ga,b,f.ya)});
g.P(this,this.zb);this.Na=vE(function(){return new G0(b,m,f.zb,f.Qa,f.Rb,f.ya,y)});
g.P(this,this.Na);this.Sd=new TK(d,r,c,this.ya,a,this.Qa,this.Ga,this.Dc);g.P(this,this.Sd);var A=new u0(b,this.Sd,this.Ga,this.Qa);this.Gh=vE(function(){return A});
this.Ny=A;this.Ig=new VK(d,n,this.Nc,this.Gh,u);g.P(this,this.Ig);this.Td=new fK(this.ya,d,n,r,this.Qa,this.Ig,c);g.P(this,this.Td);this.Ch={dC:new Map,pu:new Map,Nn:new Map,Sv:new Map,Vu:new Map};this.listeners=[];this.BB={Td:this.Td,Kl:this.ya.get(),fb:this.Jb.get(),kC:this.Ga.get(),Sd:this.Sd,Ux:h.get(),GG:null,Zo:{XQ:function(){}},
Xl:m.get(),Pf:this.Qa.get()}};
N0=function(a,b){g.O.call(this);this.Xo=b;this.Xo.get().addListener(this)};
O0=function(a){this.j=a};
D9a=function(a,b){if(!a)return{Zw:[],adSlots:[],cD:!0,ssdaiAdsConfig:void 0};a.trackingParams&&GL(a.trackingParams);if(a.adThrottled)return{Zw:[],adSlots:[],cD:!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{Zw:[],adSlots:d,cD:!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{Zw:[],adSlots:d,cD:!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.Q(h,gK)}).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{Zw:e,
adSlots:d,cD:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
P0=function(a){g.O.call(this);this.J=a;this.listeners=[];this.j=new ft(this);g.P(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.uS);this.j.T(this.J,"aduxmouseout",this.tS);this.j.T(this.J,"muteadaccepted",this.Naa)};
E9a=function(a,b,c){b=g.Ql(b,function(d){return new Vsa(d,c,d.id)});
a.J.eb("onAdUxUpdate",b)};
Q0=function(a,b){a=g.w(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
R0=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}};
F9a=function(a,b){var c=a.startSecs+a.lh;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{o8:new bq(b,c),H$:new PM(b,c-b,a.context,a.identifier,a.event,a.j)}};
G9a=function(){this.j=[]};
qya=function(a,b,c){var d=g.fc(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
S0=function(a,b,c){g.O.call(this);this.J=a;this.ya=b;this.Na=c;this.listeners=[];this.D=!1;this.DI=[];this.B=null;this.G=new R0(this,W8a(b.get()));this.C=new G9a;this.j=null};
H9a=function(a,b){a.DI.push(b);for(var c=!1,d=g.w(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.R0(b)||c;a.D=c};
J9a=function(a,b){JI(a.Na.get(),{cuepointTrigger:{event:I9a(b.event),cuepointId:b.identifier,totalCueDurationMs:b.lh*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
I9a=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 cd(a,"Unexpected cuepoint event")}};
T0=function(a){this.J=a};
K9a=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
U0=function(a){this.J=a};
V0=function(a){this.J=a};
L9a=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:cd(a,"unknown transitionReason")}};
M9a=function(a){this.J=a};
N9a=function(a,b,c,d,e){g.O.call(this);var f=this,h=vE(function(){return new nL(f.ya)});
g.P(this,h);var l=vE(function(){return new pL(h,f.ya)});
g.P(this,l);var m=vE(function(){return new WK});
g.P(this,m);var n=vE(function(){return new UK(a)});
g.P(this,n);var p=vE(function(){return new qL(h,l,f.ya)});
g.P(this,p);var q=vE(function(){return new vL});
g.P(this,q);this.yc=vE(function(){return new P0(b)});
g.P(this,this.yc);this.Jb=vE(function(){return new xE(e)});
g.P(this,this.Jb);this.Dc=vE(function(){return new v0(b)});
g.P(this,this.Dc);this.Nc=vE(function(){return new w0(b)});
g.P(this,this.Nc);this.md=vE(function(){return new T0(b)});
g.P(this,this.md);this.qd=vE(function(){return new x0(b)});
g.P(this,this.qd);this.ya=vE(function(){return new y0(b)});
g.P(this,this.ya);var r=vE(function(){return new O0(d)});
g.P(this,r);var t=vE(function(){return new VD(f.ya)});
g.P(this,t);this.eg=vE(function(){return new U0(b)});
g.P(this,this.eg);this.Xo=vE(function(){return new AE});
g.P(this,this.Xo);this.Qa=vE(function(){return new H0(b,q,f.ya)});
g.P(this,this.Qa);var u=t0({Qa:this.Qa,ya:this.ya,Re:t}),y=u.context,A=u.Tg;this.Rb=u.Rb;this.wf=vE(function(){return new S0(b,f.ya,f.Na)});
g.P(this,this.wf);this.Hc=vE(function(){return new V0(b)});
g.P(this,this.Hc);this.Ga=vE(function(){return new I0(b,f.Qa,f.ya)});
g.P(this,this.Ga);u=vE(function(){return new LK(h,p,l,f.ya,t,"SLOT_TYPE_ABOVE_FEED",f.Ga,f.Ak)});
g.P(this,u);this.lf=vE(function(){return new BE});
this.zb=vE(function(){return new B0(f.Ga,b,f.ya)});
g.P(this,this.zb);this.Na=vE(function(){return new G0(b,m,f.zb,f.Qa,f.Rb,f.ya,A)});
g.P(this,this.Na);this.Uk=new SK(RK,W0,function(F,H,L,N){return tK(l.get(),F,H,L,N)},n,p,l,t,this.ya,this.Qa);
g.P(this,this.Uk);this.Sd=new TK(n,u,c,this.ya,a,this.Qa,this.Ga,this.Dc);g.P(this,this.Sd);var C=new u0(b,this.Sd,this.Ga,this.Qa,this.wf);this.Gh=vE(function(){return C});
this.Ny=C;this.Ak=new OK(n,p,this.Gh,this.wf,this.Ga,this.ya,this.Na,this.Hc);g.P(this,this.Ak);this.Ig=new VK(n,p,this.Nc,this.Gh,y);g.P(this,this.Ig);this.Td=new fK(this.ya,n,p,u,this.Qa,this.Ig,c);g.P(this,this.Td);this.qk=vE(function(){return new TE(r,l,t,f.ya,f.Na,f.Ga,f.Hc)});
g.P(this,this.qk);this.bf=vE(function(){return new UE});
g.P(this,this.bf);this.ih=new cL(a,this.yc,this.ya);g.P(this,this.ih);this.ac=new dL(a);g.P(this,this.ac);this.ox=new eL(a);g.P(this,this.ox);this.Hh=new gL(a,this.Gh,y);g.P(this,this.Hh);this.Cf=new hL(a,this.Nc,this.Ga,this.Qa,y);g.P(this,this.Cf);this.yy=new iL(a,this.Qa);g.P(this,this.yy);this.jf=new jL(a);g.P(this,this.jf);this.Zd=new mL(a);g.P(this,this.Zd);this.Rk=new kL(a);g.P(this,this.Rk);this.Bz=new lL(a);g.P(this,this.Bz);this.Zd=new mL(a);g.P(this,this.Zd);this.Ve=vE(function(){return new ZK});
g.P(this,this.Ve);this.Vk=vE(function(){return new $K(f.Ga)});
g.P(this,this.Vk);this.tX=vE(function(){return new Qwa(f.yc,f.Na,a,m,f.zb)});
g.P(this,this.tX);this.pk=vE(function(){return new BF(f.Td,n,h)});
g.P(this,this.pk);this.Dk=vE(function(){return new GF(f.ya,f.Na,f.jf,f.zb)});
g.P(this,this.Dk);this.Tk=vE(function(){return new TI(a,f.Zd,f.jf,f.Qa,f.Hc,f.Ga,f.Na,q,f.wf,f.zb,f.lf,f.md,f.Nc,f.Dc,f.qd,f.Jb,f.eg,f.ya,m,y,A)});
g.P(this,this.Tk);this.vT=vE(function(){return new dxa(f.Ga,f.Na,f.Jb,f.ya,f.zb)});
g.P(this,this.vT);this.Lu=vE(function(){return new Oya(f.yc,f.Ga,f.Na,m,f.zb,f.ox,f.Bz,f.Jb,f.ya,c)});
g.P(this,this.Lu);this.S3=vE(function(){return new Rwa(f.yc)});
g.P(this,this.S3);this.KO=new N0(a,this.Xo,h);g.P(this,this.KO);this.Ch={dC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ak],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Uk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ig]]),pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qk],["SLOT_TYPE_ABOVE_FEED",this.bf],["SLOT_TYPE_FORECASTING",this.bf],
["SLOT_TYPE_IN_PLAYER",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.bf],["SLOT_TYPE_PLAYER_UNDERLAY",this.bf],["SLOT_TYPE_PLAYBACK_TRACKING",this.bf],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.bf]]),Nn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ih],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.ih],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ac],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ox],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Hh],["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.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.yy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Hh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Bz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Sv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ve],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ve],["SLOT_TYPE_FORECASTING",this.Ve],["SLOT_TYPE_IN_PLAYER",this.Ve],["SLOT_TYPE_PLAYER_BYTES",this.Vk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ve],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ve],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ve]]),Vu:new Map([["SLOT_TYPE_ABOVE_FEED",
this.tX],["SLOT_TYPE_AD_BREAK_REQUEST",this.pk],["SLOT_TYPE_FORECASTING",this.Dk],["SLOT_TYPE_PLAYER_BYTES",this.Tk],["SLOT_TYPE_PLAYBACK_TRACKING",this.vT],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.vT],["SLOT_TYPE_IN_PLAYER",this.Lu],["SLOT_TYPE_PLAYER_UNDERLAY",this.S3]])};this.listeners=[m.get()];this.BB={Td:this.Td,Kl:this.ya.get(),fb:this.Jb.get(),kC:this.Ga.get(),Sd:this.Sd,Ux:h.get(),GG:this.Xo.get(),Zo:this.ih,Xl:m.get(),Pf:this.Qa.get()}};
O9a=function(a,b,c,d,e){g.O.call(this);var f=this,h=vE(function(){return new nL(f.ya)});
g.P(this,h);var l=vE(function(){return new pL(h,f.ya)});
g.P(this,l);var m=vE(function(){return new WK});
g.P(this,m);var n=vE(function(){return new UK(a)});
g.P(this,n);var p=vE(function(){return new qL(h,l,f.ya)});
g.P(this,p);var q=vE(function(){return new vL});
g.P(this,q);this.yc=vE(function(){return new P0(b)});
g.P(this,this.yc);this.Jb=vE(function(){return new xE(e)});
g.P(this,this.Jb);this.Dc=vE(function(){return new v0(b)});
g.P(this,this.Dc);this.Nc=vE(function(){return new w0(b)});
g.P(this,this.Nc);this.md=vE(function(){return new T0(b)});
g.P(this,this.md);this.qd=vE(function(){return new x0(b)});
g.P(this,this.qd);this.ya=vE(function(){return new y0(b)});
g.P(this,this.ya);var r=vE(function(){return new O0(d)});
g.P(this,r);var t=vE(function(){return new VD(f.ya)});
g.P(this,t);var u=vE(function(){return new LK(h,p,l,f.ya,t,null,null,f.Ak)});
g.P(this,u);this.eg=vE(function(){return new U0(b)});
g.P(this,this.eg);this.Xo=vE(function(){return new AE});
g.P(this,this.Xo);this.Qa=vE(function(){return new H0(b,q,f.ya)});
g.P(this,this.Qa);var y=t0({Qa:this.Qa,ya:this.ya,Re:t}),A=y.context,C=y.Tg;this.Rb=y.Rb;this.wf=vE(function(){return new S0(b,f.ya,f.Na)});
this.Ga=vE(function(){return new I0(b,f.Qa,f.ya)});
g.P(this,this.Ga);this.zb=vE(function(){return new B0(f.Ga,b,f.ya)});
g.P(this,this.zb);this.Na=vE(function(){return new G0(b,m,f.zb,f.Qa,f.Rb,f.ya,C)});
g.P(this,this.Na);this.lf=vE(function(){return new BE});
g.P(this,this.lf);this.Uk=new SK(RK,W0,function(H,L,N,X){return tK(l.get(),H,L,N,X)},n,p,l,t,this.ya,this.Qa);
g.P(this,this.Uk);this.Sd=new TK(n,u,c,this.ya,a,this.Qa,this.Ga,this.Dc);g.P(this,this.Sd);var F=new u0(b,this.Sd,this.Ga,this.Qa,this.wf);this.Gh=vE(function(){return F});
this.Ny=F;this.Ak=new OK(n,p,this.Gh,this.wf,this.Ga,this.ya,this.Na);g.P(this,this.Ak);this.Ig=new VK(n,p,this.Nc,this.Gh,A);g.P(this,this.Ig);this.Td=new fK(this.ya,n,p,u,this.Qa,this.Ig,c);g.P(this,this.Td);this.qk=vE(function(){return new TE(r,l,t,f.ya,f.Na,f.Ga)});
g.P(this,this.qk);this.bf=vE(function(){return new UE});
g.P(this,this.bf);this.ih=new cL(a,this.yc,this.ya);g.P(this,this.ih);this.ac=new dL(a);g.P(this,this.ac);this.ox=new eL(a);g.P(this,this.ox);this.Hh=new gL(a,this.Gh,A);g.P(this,this.Hh);this.Cf=new hL(a,this.Nc,this.Ga,this.Qa,A);g.P(this,this.Cf);this.jf=new jL(a);g.P(this,this.jf);this.Rk=new kL(a);g.P(this,this.Rk);this.Bz=new lL(a);g.P(this,this.Bz);this.Hc=vE(function(){return new V0(b)});
g.P(this,this.Hc);this.Zd=new mL(a);g.P(this,this.Zd);this.Ve=vE(function(){return new ZK});
g.P(this,this.Ve);this.Vk=vE(function(){return new $K(f.Ga)});
g.P(this,this.Vk);this.pk=vE(function(){return new BF(f.Td,n,h)});
g.P(this,this.pk);this.Dk=vE(function(){return new GF(f.ya,f.Na,f.jf,f.zb)});
g.P(this,this.Dk);this.Lu=vE(function(){return new Pya(f.yc,f.Ga,f.Na,m,f.zb,f.ox,f.Bz,f.Jb,f.ya,c)});
g.P(this,this.Lu);this.Tk=vE(function(){return new UI(a,f.Zd,f.jf,f.Na,f.zb,f.lf,f.md,f.Qa,f.Ga,f.Nc,f.Dc,f.qd,f.Jb,f.eg,f.ya,f.Hc,A,C)});
g.P(this,this.Tk);this.KO=new N0(a,this.Xo,h);g.P(this,this.KO);this.Ch={dC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ak],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Uk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ig]]),pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qk],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.bf],
["SLOT_TYPE_PLAYER_BYTES",this.bf]]),Nn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ih],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ac],["TRIGGER_TYPE_CLOSE_REQUESTED",this.ox],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Hh],["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.jf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Hh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.Bz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ve],["SLOT_TYPE_FORECASTING",this.Ve],["SLOT_TYPE_IN_PLAYER",this.Ve],["SLOT_TYPE_PLAYER_BYTES",this.Vk]]),Vu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.pk],["SLOT_TYPE_FORECASTING",this.Dk],["SLOT_TYPE_IN_PLAYER",this.Lu],["SLOT_TYPE_PLAYER_BYTES",this.Tk]])};this.listeners=[m.get()];this.BB={Td:this.Td,Kl:this.ya.get(),fb:this.Jb.get(),kC:this.Ga.get(),Sd:this.Sd,Ux:h.get(),GG:this.Xo.get(),Zo:this.ih,
Xl:m.get(),Pf:this.Qa.get()}};
P9a=function(a,b,c,d,e){g.O.call(this);var f=this,h=vE(function(){return new nL(f.ya)});
g.P(this,h);var l=vE(function(){return new pL(h,f.ya)});
g.P(this,l);var m=vE(function(){return new WK});
g.P(this,m);var n=vE(function(){return new UK(a)});
g.P(this,n);var p=vE(function(){return new qL(h,l,f.ya)});
g.P(this,p);var q=vE(function(){return new vL});
g.P(this,q);this.yc=vE(function(){return new P0(b)});
g.P(this,this.yc);this.Jb=vE(function(){return new xE(e)});
g.P(this,this.Jb);this.Dc=vE(function(){return new v0(b)});
g.P(this,this.Dc);this.Nc=vE(function(){return new w0(b)});
g.P(this,this.Nc);this.md=vE(function(){return new T0(b)});
g.P(this,this.md);this.qd=vE(function(){return new x0(b)});
g.P(this,this.qd);this.ya=vE(function(){return new y0(b)});
g.P(this,this.ya);var r=vE(function(){return new O0(d)});
g.P(this,r);var t=vE(function(){return new VD(f.ya)});
g.P(this,t);var u=vE(function(){return new LK(h,p,l,f.ya,t,null,null,null)});
g.P(this,u);this.eg=vE(function(){return new U0(b)});
g.P(this,this.eg);this.Qa=vE(function(){return new H0(b,q,f.ya)});
g.P(this,this.Qa);var y=t0({Qa:this.Qa,ya:this.ya,Re:t}),A=y.context,C=y.Tg;this.Rb=y.Rb;this.Ga=vE(function(){return new I0(b,f.Qa,f.ya)});
g.P(this,this.Ga);this.zb=vE(function(){return new B0(f.Ga,b,f.ya)});
g.P(this,this.zb);this.Na=vE(function(){return new G0(b,m,f.zb,f.Qa,f.Rb,f.ya,C)});
g.P(this,this.Na);this.lf=vE(function(){return new BE});
g.P(this,this.lf);this.Uk=new SK(RK,W0,function(H,L,N,X){return tK(l.get(),H,L,N,X)},n,p,l,t,this.ya,this.Qa);
g.P(this,this.Uk);this.Sd=new TK(n,u,c,this.ya,a,this.Qa,this.Ga,this.Dc);g.P(this,this.Sd);var F=new u0(b,this.Sd,this.Ga,this.Qa);this.Gh=vE(function(){return F});
this.Ny=F;this.Ig=new VK(n,p,this.Nc,this.Gh,A);g.P(this,this.Ig);this.Td=new fK(this.ya,n,p,u,this.Qa,this.Ig,c);g.P(this,this.Td);this.qk=vE(function(){return new TE(r,l,t,f.ya,f.Na,f.Ga)});
g.P(this,this.qk);this.bf=vE(function(){return new UE});
g.P(this,this.bf);this.ih=new cL(a,this.yc,this.ya);g.P(this,this.ih);this.ac=new dL(a);g.P(this,this.ac);this.Hh=new gL(a,this.Gh,A);g.P(this,this.Hh);this.Cf=new hL(a,this.Nc,this.Ga,this.Qa,A);g.P(this,this.Cf);this.jf=new jL(a);g.P(this,this.jf);this.Rk=new kL(a);g.P(this,this.Rk);this.Hc=vE(function(){return new V0(b)});
g.P(this,this.Hc);this.Zd=new mL(a);g.P(this,this.Zd);this.Ve=vE(function(){return new ZK});
g.P(this,this.Ve);this.Vk=vE(function(){return new $K(f.Ga)});
g.P(this,this.Vk);this.pk=vE(function(){return new BF(f.Td,n,h)});
g.P(this,this.pk);this.Dk=vE(function(){return new GF(f.ya,f.Na,f.jf,f.zb)});
g.P(this,this.Dk);this.E1=vE(function(){return new bxa(f.yc,f.Ga,f.Na,m,c,f.ya)});
g.P(this,this.E1);this.Tk=vE(function(){return new UI(a,f.Zd,f.jf,f.Na,f.zb,f.lf,f.md,f.Qa,f.Ga,f.Nc,f.Dc,f.qd,f.Jb,f.eg,f.ya,f.Hc,A,C)});
g.P(this,this.Tk);this.Ch={dC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Uk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ig]]),pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qk],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.bf]]),Nn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ih],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Hh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Hh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ve],["SLOT_TYPE_ABOVE_FEED",this.Ve],["SLOT_TYPE_FORECASTING",this.Ve],["SLOT_TYPE_IN_PLAYER",this.Ve],["SLOT_TYPE_PLAYER_BYTES",this.Vk]]),Vu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.pk],["SLOT_TYPE_FORECASTING",this.Dk],["SLOT_TYPE_IN_PLAYER",
this.E1],["SLOT_TYPE_PLAYER_BYTES",this.Tk]])};this.listeners=[m.get()];this.BB={Td:this.Td,Kl:this.ya.get(),fb:this.Jb.get(),kC:this.Ga.get(),Sd:this.Sd,Ux:h.get(),GG:null,Zo:this.ih,Xl:m.get(),Pf:this.Qa.get()}};
Q9a=function(a,b,c,d,e){g.O.call(this);var f=this,h=vE(function(){return new nL(f.ya)});
g.P(this,h);var l=vE(function(){return new pL(h,f.ya)});
g.P(this,l);var m=vE(function(){return new WK});
g.P(this,m);var n=vE(function(){return new UK(a)});
g.P(this,n);var p=vE(function(){return new qL(h,l,f.ya)});
g.P(this,p);var q=vE(function(){return new vL});
g.P(this,q);this.Xn=vE(function(){return new M9a(b)});
g.P(this,this.Xn);this.yc=vE(function(){return new P0(b)});
g.P(this,this.yc);this.Jb=vE(function(){return new xE(e)});
g.P(this,this.Jb);this.Dc=vE(function(){return new v0(b)});
g.P(this,this.Dc);this.Nc=vE(function(){return new w0(b)});
g.P(this,this.Nc);this.md=vE(function(){return new T0(b)});
g.P(this,this.md);this.qd=vE(function(){return new x0(b)});
g.P(this,this.qd);this.ya=vE(function(){return new y0(b)});
g.P(this,this.ya);var r=vE(function(){return new O0(d)});
g.P(this,r);var t=vE(function(){return new VD(f.ya)});
g.P(this,t);var u=vE(function(){return new LK(h,p,l,f.ya,t,null,null,null)});
g.P(this,u);this.eg=vE(function(){return new U0(b)});
g.P(this,this.eg);this.Qa=vE(function(){return new H0(b,q,f.ya)});
g.P(this,this.Qa);var y=t0({Qa:this.Qa,ya:this.ya,Re:t}),A=y.context,C=y.Tg;this.Rb=y.Rb;this.Ga=vE(function(){return new I0(b,f.Qa,f.ya)});
g.P(this,this.Ga);this.zb=vE(function(){return new B0(f.Ga,b,f.ya)});
g.P(this,this.zb);this.Na=vE(function(){return new G0(b,m,f.zb,f.Qa,f.Rb,f.ya,C)});
g.P(this,this.Na);this.lf=vE(function(){return new BE});
g.P(this,this.lf);this.Uk=new SK(wBa,W0,function(H,L,N,X){return NBa(l.get(),H,L,N,X)},n,p,l,t,this.ya,this.Qa);
g.P(this,this.Uk);this.Sd=new TK(n,u,c,this.ya,a,this.Qa,this.Ga,this.Dc);g.P(this,this.Sd);var F=new u0(b,this.Sd,this.Ga,this.Qa);this.Gh=vE(function(){return F});
this.Ny=F;this.Ig=new VK(n,p,this.Nc,this.Gh,A);g.P(this,this.Ig);this.Td=new fK(this.ya,n,p,u,this.Qa,this.Ig,c);g.P(this,this.Td);this.qk=vE(function(){return new TE(r,l,t,f.ya,f.Na,f.Ga)});
g.P(this,this.qk);this.bf=vE(function(){return new UE});
g.P(this,this.bf);this.ih=new cL(a,this.yc,this.ya);g.P(this,this.ih);this.ac=new dL(a);g.P(this,this.ac);this.Hh=new gL(a,this.Gh,A);g.P(this,this.Hh);this.Cf=new hL(a,this.Nc,this.Ga,this.Qa,A);g.P(this,this.Cf);this.jf=new jL(a);g.P(this,this.jf);this.Rk=new kL(a);g.P(this,this.Rk);this.Hc=vE(function(){return new V0(b)});
g.P(this,this.Hc);this.Zd=new mL(a);g.P(this,this.Zd);this.Ve=vE(function(){return new ZK});
g.P(this,this.Ve);this.Vk=vE(function(){return new $K(f.Ga)});
g.P(this,this.Vk);this.pk=vE(function(){return new BF(f.Td,n,h)});
g.P(this,this.pk);this.Dk=vE(function(){return new GF(f.ya,f.Na,f.jf,f.zb)});
g.P(this,this.Dk);this.Tk=vE(function(){return new UI(a,f.Zd,f.jf,f.Na,f.zb,f.lf,f.md,f.Qa,f.Ga,f.Nc,f.Dc,f.qd,f.Jb,f.eg,f.ya,f.Hc,A,C)});
g.P(this,this.Tk);this.s4=vE(function(){return new Rya(f.yc,f.Ga,f.Na,m,f.Xn,c,f.Qa)});
g.P(this,this.s4);this.Ch={dC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Uk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ig]]),pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qk],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.bf]]),Nn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.ih],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Hh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Hh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ve],["SLOT_TYPE_FORECASTING",this.Ve],["SLOT_TYPE_IN_PLAYER",this.Ve],["SLOT_TYPE_PLAYER_BYTES",this.Vk]]),Vu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.pk],["SLOT_TYPE_FORECASTING",this.Dk],["SLOT_TYPE_IN_PLAYER",this.s4],["SLOT_TYPE_PLAYER_BYTES",
this.Tk]])};this.listeners=[m.get()];this.BB={Td:this.Td,Kl:this.ya.get(),fb:this.Jb.get(),kC:this.Ga.get(),Sd:this.Sd,Ux:h.get(),GG:null,Zo:this.ih,Xl:m.get(),Pf:this.Qa.get()}};
R9a=function(a,b,c,d,e){g.O.call(this);var f=this,h=vE(function(){return new nL(f.ya)});
g.P(this,h);var l=vE(function(){return new pL(h,f.ya)});
g.P(this,l);var m=vE(function(){return new WK});
g.P(this,m);var n=vE(function(){return new UK(a)});
g.P(this,n);var p=vE(function(){return new qL(h,l,f.ya)});
g.P(this,p);var q=vE(function(){return new vL});
g.P(this,q);this.Xn=vE(function(){return new M9a(b)});
g.P(this,this.Xn);this.yc=vE(function(){return new P0(b)});
g.P(this,this.yc);this.Jb=vE(function(){return new xE(e)});
g.P(this,this.Jb);this.Dc=vE(function(){return new v0(b)});
g.P(this,this.Dc);this.Nc=vE(function(){return new w0(b)});
g.P(this,this.Nc);this.md=vE(function(){return new T0(b)});
g.P(this,this.md);this.qd=vE(function(){return new x0(b)});
g.P(this,this.qd);this.ya=vE(function(){return new y0(b)});
g.P(this,this.ya);var r=vE(function(){return new O0(d)});
g.P(this,r);var t=vE(function(){return new VD(f.ya)});
g.P(this,t);this.eg=vE(function(){return new U0(b)});
g.P(this,this.eg);this.Qa=vE(function(){return new H0(b,q,f.ya)});
g.P(this,this.Qa);var u=t0({Qa:this.Qa,ya:this.ya,Re:t}),y=u.context,A=u.Tg;this.Rb=u.Rb;this.wf=vE(function(){return new S0(b,f.ya,f.Na)});
g.P(this,this.wf);this.Hc=vE(function(){return new V0(b)});
g.P(this,this.Hc);this.Ga=vE(function(){return new I0(b,f.Qa,f.ya)});
g.P(this,this.Ga);u=vE(function(){return new LK(h,p,l,f.ya,t,null,f.Ga,f.Ak,3)});
g.P(this,u);this.lf=vE(function(){return new BE});
this.zb=vE(function(){return new B0(f.Ga,b,f.ya)});
g.P(this,this.zb);this.Na=vE(function(){return new G0(b,m,f.zb,f.Qa,f.Rb,f.ya,A)});
g.P(this,this.Na);this.Sd=new TK(n,u,c,this.ya,a,this.Qa,this.Ga,this.Dc);g.P(this,this.Sd);var C=new u0(b,this.Sd,this.Ga,this.Qa,this.wf);this.Gh=vE(function(){return C});
this.Ny=C;this.Uk=new SK(xBa,W0,function(F,H,L,N){return NBa(l.get(),F,H,L,N)},n,p,l,t,this.ya,this.Qa);
g.P(this,this.Uk);this.Ak=new OK(n,p,this.Gh,this.wf,this.Ga,this.ya,this.Na,this.Hc);g.P(this,this.Ak);this.Ig=new VK(n,p,this.Nc,this.Gh,y);g.P(this,this.Ig);this.Td=new fK(this.ya,n,p,u,this.Qa,this.Ig,c);g.P(this,this.Td);this.qk=vE(function(){return new TE(r,l,t,f.ya,f.Na,f.Ga,f.Hc)});
g.P(this,this.qk);this.bf=vE(function(){return new UE});
g.P(this,this.bf);this.ih=new cL(a,this.yc,this.ya);g.P(this,this.ih);this.ac=new dL(a);g.P(this,this.ac);this.Hh=new gL(a,this.Gh,y);g.P(this,this.Hh);this.Cf=new hL(a,this.Nc,this.Ga,this.Qa,y);g.P(this,this.Cf);this.yy=new iL(a,this.Qa);g.P(this,this.yy);this.jf=new jL(a);g.P(this,this.jf);this.Rk=new kL(a);g.P(this,this.Rk);this.Zd=new mL(a);g.P(this,this.Zd);this.Ve=vE(function(){return new ZK});
g.P(this,this.Ve);this.Vk=vE(function(){return new $K(f.Ga)});
g.P(this,this.Vk);this.pk=vE(function(){return new BF(f.Td,n,h)});
g.P(this,this.pk);this.Dk=vE(function(){return new GF(f.ya,f.Na,f.jf,f.zb)});
g.P(this,this.Dk);this.Tk=vE(function(){return new TI(a,f.Zd,f.jf,f.Qa,f.Hc,f.Ga,f.Na,q,f.wf,f.zb,f.lf,f.md,f.Nc,f.Dc,f.qd,f.Jb,f.eg,f.ya,m,y,A)});
g.P(this,this.Tk);this.Lu=vE(function(){return new Sya(f.yc,f.Ga,f.Na,m,f.Xn,c,f.ya,f.Qa)});
g.P(this,this.Lu);this.Ch={dC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ak],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Uk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Sd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ig]]),pu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.qk],["SLOT_TYPE_FORECASTING",this.bf],["SLOT_TYPE_IN_PLAYER",this.bf],["SLOT_TYPE_PLAYER_BYTES",this.bf]]),Nn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.ih],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Hh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.yy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.yy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.jf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Hh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Zd]]),Sv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ve],["SLOT_TYPE_FORECASTING",this.Ve],["SLOT_TYPE_IN_PLAYER",this.Ve],["SLOT_TYPE_PLAYER_BYTES",
this.Vk]]),Vu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.pk],["SLOT_TYPE_FORECASTING",this.Dk],["SLOT_TYPE_PLAYER_BYTES",this.Tk],["SLOT_TYPE_IN_PLAYER",this.Lu]])};this.listeners=[m.get()];this.BB={Td:this.Td,Kl:this.ya.get(),fb:this.Jb.get(),kC:this.Ga.get(),Sd:this.Sd,Ux:h.get(),GG:null,Zo:this.ih,Xl:m.get(),Pf:this.Qa.get()}};
T9a=function(a,b,c,d){g.O.call(this);var e=this;this.j=S9a(function(){return e.B},a,b,c,d);
g.P(this,this.j);this.B=(new wE(this.j)).C();g.P(this,this.B)};
X0=function(a){return a.j.BB};
S9a=function(a,b,c,d,e){try{var f=b.U();if(g.fQ(f))var h=new N9a(a,b,c,d,e);else if(g.hQ(f))h=new O9a(a,b,c,d,e);else if(YP(f))h=new P9a(a,b,c,d,e);else if(g.vz(f))h=new Q9a(a,b,c,d,e);else if(g.SP(f))h=new R9a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),Xy("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,hpa:h.j.cver,gpa:h.j.ctheme,fpa:h.j.cplayer,Spa:h.playerStyle}),new C9a(a,b,c,d,e)}};
U9a=function(a){Cy.call(this,a)};
V9a=function(a,b,c,d,e){Ky.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.qa=this.Da("ytp-ad-timed-pie-countdown");this.D=this.Da("ytp-ad-timed-pie-countdown-container");
this.B=this.Da("ytp-ad-timed-pie-countdown-inner");this.G=this.Da("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()};
W9a=function(a,b,c,d,e,f){Zx.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.zU=e;this.oN=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Fa=this.Da("ytp-ad-action-interstitial-instream-info");this.qa=this.Da("ytp-ad-action-interstitial-image-container");this.W=new yy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-action-interstitial-image");g.P(this,this.W);this.W.Ha(this.qa);this.Ta=this.Da("ytp-ad-action-interstitial-headline-container");
this.G=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-action-interstitial-headline");g.P(this,this.G);this.G.Ha(this.Ta);this.Oa=this.Da("ytp-ad-action-interstitial-description-container");this.C=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-action-interstitial-description");g.P(this,this.C);this.C.Ha(this.Oa);this.Ya=this.Da("ytp-ad-action-interstitial-background-container");this.Ka=new yy(this.api,this.layoutId,this.interactionLoggingClientData,
this.fb,"ytp-ad-action-interstitial-background",!0);g.P(this,this.Ka);this.Ka.Ha(this.Ya);this.ib=this.Da("ytp-ad-action-interstitial-action-button-container");this.slot=this.Da("ytp-ad-action-interstitial-slot");this.Bf=this.Da("ytp-ad-action-interstitial-card");this.D=new ft;g.P(this,this.D);this.hide()};
X9a=function(a){var b=g.kh("html5-video-player");b&&g.Qp(b,"ytp-ad-display-override",a)};
a$a=function(a,b,c,d){Zx.call(this,a,{I:"div",S:"ytp-ad-overlay-slot",V:[{I:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.W=[];this.ib=this.Fa=this.D=this.Ya=this.Oa=null;this.Ta=!1;this.G=null;this.qa=0;a=this.Da("ytp-ad-overlay-container");this.Ka=new Ty(a,45E3,6E3,.3,.4);g.P(this,this.Ka);this.C=Y9a(this);g.P(this,this.C);this.C.Ha(a);this.B=Z9a(this);g.P(this,this.B);this.B.Ha(a);this.j=$9a(this);g.P(this,this.j);this.j.Ha(a);this.hide()};
Y9a=function(a){var b=new g.Yx({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:[py(b$a)]}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],va:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){Y0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){Y0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.zO);b.hide();return b};
Z9a=function(a){var b=new g.Yx({I:"div",La:["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:[py(b$a)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",va:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",va:"{{description}}"},{I:"div",La:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
va:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){Y0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){Y0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.zO);a.T(b.Da("ytp-ad-overlay-text-image"),"click",a.eda);b.hide();return b};
$9a=function(a){var b=new g.Yx({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:[py(b$a)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Da("ytp-ad-overlay-image"),"click",function(c){Y0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.zO);b.hide();return b};
c$a=function(a,b){if(b){var c=g.Q(b,bK)||null;if(c==null)g.px(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.kh("video-ads ytp-ad-module")||null,b==null)g.px(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Fa=new g.Yx({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(a,a.Fa),a.Fa.Ha(b),b=new Hy(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,a.Fa.element,!1),g.P(a,b),b.init(Ox("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ha(a.G,0);b.subscribe("f",a.Laa,a);b.subscribe("e",a.US,a);a.T(a.G,"click",a.Maa);var d=g.kh("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.Q((e=g.Q(c.button,g.dK))==null?void 0:e.serviceEndpoint,eta))a.Ta=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.ib=b}else g.px(Error("Ad info button container within overlay ad was not present."))}else g.qx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
e$a=function(a,b){if(d$a(a,Z0)||a.api.isMinimized())return!1;var c=$x(b.title),d=$x(b.description);if(g.wb(c)||g.wb(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",$x(b.title));a.C.updateValue("description",$x(b.description));a.C.updateValue("displayUrl",$x(b.displayUrl));b.navigationEndpoint&&g.bc(a.W,b.navigationEndpoint);a.C.show();a.Ka.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.qa++});
return!0};
f$a=function(a,b){if(d$a(a,Z0)||a.api.isMinimized())return!1;var c=$x(b.title),d=$x(b.description);if(g.wb(c)||g.wb(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",$x(b.title));a.B.updateValue("description",$x(b.description));a.B.updateValue("displayUrl",$x(b.displayUrl));a.B.updateValue("imageUrl",wsa(b.image));b.navigationEndpoint&&g.bc(a.W,b.navigationEndpoint);a.Ya=b.imageNavigationEndpoint||null;a.B.show();a.Ka.start();a.logVisibility(a.B.element,!0);
a.T(a.B.element,"mouseover",function(){a.qa++});
return!0};
g$a=function(a,b){if(a.api.isMinimized())return!1;var c=xsa(b.image),d=c;c.width<Z0.width&&(d=Z0);if(c.width===0||c.height===0||d$a(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",wsa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.bc(a.W,b.navigationEndpoint);b=a.j.Da("ytp-ad-image-overlay");g.Fm(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.qa++;
a.api.uS("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.tS("invideo-overlay",a.layoutId)});
return!0};
d$a=function(a,b){var c=a.api.ob().wi(),d=a.api.Io(!0,!1);return(b=YI(c,c.height-(d.height+d.top),b))?(a.Oa&&b&&(c=g.Yg(a.macros),c.ERRORCODE=b.NI.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?zE(a.fb,a.Oa,a.layoutId,c):g.px(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
Y0=function(a,b,c){var d=g.Yg(a.macros),e=g.Rm(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Pm(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.qa.toString()}};
b=g.w(a.W);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?zE(a.fb,c,a.layoutId,d):g.px(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
h$a=function(a,b){a=a.api.getRootNode();g.Qp(a,"ytp-ad-overlay-open",b);g.Qp(a,"ytp-ad-overlay-closed",!b)};
i$a=function(a,b,c,d,e){Ky.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.qa=!1;this.Fa=this.Da("ytp-ad-message-slot");this.B=new g.Yx({I:"span",S:"ytp-ad-message-container"});this.B.Ha(this.Fa);g.P(this,this.B);this.messageText=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.P(this,this.messageText);this.messageText.Ha(this.B.element);this.D=new g.Ny(this.B,
400,!1,100,function(){f.hide()});
g.P(this,this.D);this.hide()};
j$a=function(a,b){a=a.api.getRootNode();g.Qp(a,"ytp-ad-overlay-open",b);g.Qp(a,"ytp-ad-overlay-closed",!b)};
k$a=function(a,b,c,d){Zx.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.Fa=this.Da("ytp-ad-underlay-image-container");this.C=new yy(this.api,this.layoutId,this.interactionLoggingClientData,
this.fb,"ytp-ad-underlay-image");g.P(this,this.C);this.C.Ha(this.Fa);this.qa=this.Da("ytp-ad-underlay-headline-container");this.B=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-underlay-headline");g.P(this,this.B);this.B.Ha(this.qa);this.W=this.Da("ytp-ad-underlay-description-container");this.D=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-underlay-description");g.P(this,this.D);this.D.Ha(this.W);this.G=this.Da("ytp-ad-underlay-action-button-container");
this.j=this.Da("ytp-ad-underlay-side-container");this.hide()};
l$a=function(a){var b=g.kh("html5-video-player");b&&g.Qp(b,"ytp-ad-display-override",a)};
$0=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
Zx.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.Da("ytp-ad-survey-answer");this.hide()};
m$a=function(a,b,c,d){Zx.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.Da("ytp-ad-survey-none-of-the-above");this.hide()};
a1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");qy.call(this,a,b,c,d,e,"survey-submit")};
b1=function(a,b,c,d,e){Zx.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.C=this.j=null;this.B=this.Da("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Da("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Da("ytp-ad-survey-player-overlay-submit");g.P(this,this.D);this.hide()};
c1=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
Zx.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",La:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",La:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",La:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Fa=f;this.D=null;this.B=[];this.j=null;this.W=this.api.U().experiments.bb("a11y_h5_associate_survey_question");this.question=this.Da("ytp-ad-survey-question");
this.Ka=this.Da("ytp-ad-survey-question-background");this.questionText=this.Da("ytp-ad-survey-question-text");this.answers=this.Da("ytp-ad-survey-answers");this.playerOverlay=this.Da("ytp-ad-survey-question-player-overlay");this.C=g.Za()};
n$a=function(a,b){b=g.ay(b);g.zh(a.questionText,b);a.W&&a.questionText.setAttribute("id",Ox("survey-question-text"))};
o$a=function(a,b,c,d){d=new $0(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,d,a.Fa);d.Ha(a.answers);d.init(Ox("survey-answer"),b,c);a.W&&(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)};
q$a=function(a,b){if(b){var c=b.background;c&&g.Q(c,p$a)&&(c=(c=g.Q(c,p$a).image)&&wy(c)||"",g.wb(c)?g.qx(Error("Found ThumbnailDetails without valid image URL")):g.Fm(a.Ka,"backgroundImage","url("+c+")"));if(b.durationMilliseconds==null||b.durationMilliseconds===void 0||b.durationMilliseconds===0)g.px(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Za();a.j=new gz(a.api,b.durationMilliseconds);g.P(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.Q(b.instreamAdPlayerOverlay,
aK))try{var d=new b1(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,a.j);d.Ha(a.playerOverlay);d.init(Ox("survey-player-overlay"),g.Q(b.instreamAdPlayerOverlay,aK),a.macros);a.D=d;g.P(a,d);a.j2()}catch(e){g.px(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.px(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&b.durationMilliseconds>0?(b=new tz(a.api,a.j),b.Ha(a.playerOverlay),
g.P(a,b)):g.px(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.px(Error("addCommonComponents() needs to be called before starting countdown."))};
r$a=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.Za()-a.C).toString()})};
s$a=function(a,b,c,d,e){c1.call(this,a,b,c,d,"survey-question-multi-select");this.qa=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
t$a=function(a,b,c){a.noneOfTheAbove=new m$a(a.api,a.layoutId,a.interactionLoggingClientData,a.fb);a.noneOfTheAbove.Ha(a.answers);a.noneOfTheAbove.init(Ox("survey-none-of-the-above"),b,c)};
v$a=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
u$a(a,!0)};
u$a=function(a,b){var c=a.D;a=w$a(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof cz&&!c.j.D&&nta(c.j,!1));c.C&&(a?c.C.show():c.C.hide())};
w$a=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
d1=function(a,b,c,d,e){c1.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()};
e1=function(a,b,c,d){Zx.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.Da("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Da("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Da("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
z$a=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.Q(c,$J)?x$a(a,g.Q(c,$J),a.macros):g.Q(c,ZJ)&&y$a(a,g.Q(c,ZJ),a.macros);a.j=b};
x$a=function(a,b,c){var d=new d1(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,a.D.bind(a));d.Ha(a.G);d.init(Ox("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)};
y$a=function(a,b,c){var d=new s$a(a.api,a.layoutId,a.interactionLoggingClientData,a.fb,a.D.bind(a));d.Ha(a.G);d.init(Ox("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)};
f1=function(a,b,c,d){Zx.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.Da("ytp-ad-survey-interstitial");this.B=this.Da("ytp-ad-survey-interstitial-contents");this.text=this.Da("ytp-ad-survey-interstitial-text");
this.logoImage=this.Da("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Ny(this,500,!1,300);g.P(this,this.transition)};
B$a=function(a,b){b=b&&wy(b)||"";if(g.wb(b))g.qx(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText,d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;b=[cma(d.style),xea(A$a,b)].map(Sda).join("");a.style.cssText=b}};
C$a=function(a){var b=g.kh("html5-video-player");b&&g.Qp(b,"ytp-ad-display-override",a)};
g1=function(a,b,c,d,e,f){f=f===void 0?0:f;Ky.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.qa=f;this.B=0;this.D=-1;this.C=this.Da("ytp-preview-ad__text");switch(this.qa){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Ny(this,400,!1,100,function(){h.hide()});
g.P(this,this.transition);this.hide()};
h1=function(a,b,c,d){Zx.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
D$a=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}};
i1=function(a,b,c,d){Zx.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
E$a=function(a,b,c,d,e){Ky.call(this,a,{I:"div",La:["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 h1(this.api,this.layoutId,this.interactionLoggingClientData,this.fb);g.P(this,this.adAvatar);uh(this.element,this.adAvatar.element,0);this.headline=new nz(this.api,this.layoutId,this.interactionLoggingClientData,
this.fb);g.P(this,this.headline);this.headline.Ha(this.Da("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new nz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb);g.P(this,this.description);this.description.Ha(this.Da("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new i1(this.api,this.layoutId,this.interactionLoggingClientData,
this.fb);g.P(this,this.adButton);this.adButton.Ha(this.element);this.hide()};
F$a=function(a,b,c,d){Zx.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.Da("ytp-skip-ad-button__text");this.transition=new g.Ny(this,500,!1,100,function(){e.hide()});
g.P(this,this.transition);this.j=new Ty(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.j);this.hide()};
G$a=function(a,b,c,d,e){Ky.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.api.U().experiments.bb("disable_ad_preview_for_instream_ads")||(this.B=new g1(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.j),g.P(this,this.B),this.B.Ha(this.element));this.C=new F$a(this.api,this.layoutId,this.interactionLoggingClientData,this.fb);g.P(this,this.C);this.C.Ha(this.element);this.hide()};
j1=function(a,b,c,d){Zx.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide();this.api.L("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player")};
k1=function(a,b,c,d,e){Zx.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.Fa=this.Da("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Da("ytp-ad-player-overlay-layout__ad-info-container");
this.W=this.Da("ytp-ad-player-overlay-layout__skip-or-preview-container");this.qa=this.Da("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
l1=function(a,b,c){Cy.call(this,a);this.api=a;this.fb=b;this.B={};a=new g.S({I:"div",La:["video-ads","ytp-ad-module"]});g.P(this,a);mP&&g.Mp(a.element,"ytp-ads-tiny-mode");this.G=new aw(a.element);g.P(this,this.G);g.US(this.api,a.element,4);uK(c)&&(c=new g.S({I:"div",La:["ytp-ad-underlay"]}),g.P(this,c),this.C=new aw(c.element),g.P(this,this.C),g.US(this.api,c.element,0));g.P(this,Qsa())};
H$a=function(a,b){a=g.Wg(a.B,b.id,null);a==null&&g.qx(Error("Component not found for element id: "+b.id));return a||null};
I$a=function(a){g.hY.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new H8a(this.player):new s0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new O8a({Zo:X0(b.j).Zo,Pf:X0(b.j).Pf,J:b.player,Kl:X0(b.j).Kl,Na:b.j.j.Na,Xl:X0(b.j).Xl,qd:b.j.j.qd});b.B=d.e7;return b.B};
this.j=new T9a(this.player,this,this.C,this.D);g.P(this,this.j);var c=a.U();!gE(c)||g.SP(c)||YP(c)||(g.P(this,new l1(a,X0(this.j).fb,X0(this.j).Kl)),g.P(this,new U9a(a)))};
J$a=function(a){a.created!==a.loaded&&Xy("Created and loaded are out of sync")};
M$a=function(a){g.hY.prototype.load.call(a);var b=X0(a.j).Kl;try{a.player.getRootNode().classList.add("ad-created")}catch(m){Xy(m instanceof Error?m:String(m))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.U().experiments.bb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(m){return m.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(m){return g.Q(m,gK)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Wb();f=K$a(f,h,b,X0(a.j).Ux);h=c&&c.clientPlaybackNonce||"";c=c&&c.Yp||!1;if(YF(b,!0)&&c){var l;b={};(l=a.player.getVideoData())==null||l.ma("p_cpb",(b.cc=h,b))}l=1E3*a.player.getDuration(1);L$a(a);a.j.j.Ny.Pk(h,l,c,f.zM,f.yX,f.zM,e,d)};
L$a=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Yp)||g.zr("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=gE(b)&&!g.fE(b)&&b.playerStyle==="desktop-polymer";c&&(a=a.player.getInternalApi(),a.addEventListener("updateKevlarOrC3Companion",tta),a.addEventListener("updateEngagementPanelAction",uta),a.addEventListener("changeEngagementPanelVisibility",vta),window.addEventListener("yt-navigate-start",xta))};
m1=function(a,b){b===a.Pt&&(a.Pt=void 0)};
N$a=function(a){var b=X0(a.j).Sd,c=b.D().LQ("SLOT_TYPE_PLAYER_BYTES",1);b=aI(b.Qa.get(),1).clientPlaybackNonce;var d=!1;c=g.w(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 hJ?e.slotEntryTrigger.dw:void 0;f&&f===b&&(d&&Xy("More than 1 preroll playerBytes slot detected",e),d=!0)}d||J0(X0(a.j).kC)};
O$a=function(a){if(z0(X0(a.j).Kl))return!0;var b="";a=g.w(X0(a.j).Xl.tj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.Xa==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&Xy("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
P$a=function(a){a=g.w(X0(a.j).Xl.tj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
wza=function(a,b,c,d,e,f){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var h=X0(a.j).Kl,l=a.player.getVideoData(1);l&&l.getPlayerResponse();l&&l.Wb();c=K$a(b,c,h,X0(a.j).Ux);Aza(X0(a.j).Td,d,c.zM,c.yX,b,e,f)};
K$a=function(a,b,c,d){b={zM:[],yX:b};a=g.w(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.Q((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,KK)?(h=g.Q((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,KK),h=JBa(h,p),g.vx(f.sandwichedLinearAdRenderer.adVideoStart,KK,h)):g.Q((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,KK)&&
(m=g.Q((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,KK),h=JBa(m,p),g.vx(f.linearAdSequenceRenderer.adStart,KK,h))}b.zM.push(e)}return b};
g.n1=function(a){if(typeof DOMParser!="undefined")return kg(new DOMParser,Wma(a),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.o1=function(a){g.O.call(this);this.callback=a;this.j=new $p(0,0,.4,0,.2,1,1,1);this.delay=new g.Dp(this.next,window,this);g.P(this,this.delay)};
g.Q$a=function(a){var b=a.U();return b.Ad&&!b.C&&g.LP(b)?a.fd()?(a=a.Io(),Math.min(a.width,a.height)>=315):!a.Sg():!1};
g.p1=function(a){g.S.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.jG(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.W=this.G=this.j=0;this.title=new g.S({I:"h2",S:"ytp-related-title",va:"{{title}}"});this.previous=new g.S({I:"button",La:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},V:[g.dy()]});this.N=new g.o1(function(c){b.suggestions.element.scrollLeft=-c});
this.next=new g.S({I:"button",La:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},V:[g.ey()]});g.P(this,this.D);this.K=a.U().D;g.P(this,this.title);this.title.Ha(this.element);this.suggestions=new g.S({I:"div",S:"ytp-suggestions"});g.P(this,this.suggestions);this.suggestions.Ha(this.element);g.P(this,this.previous);this.previous.Ha(this.element);this.previous.listen("click",this.g7,this);g.P(this,this.N);R$a(this);g.P(this,this.next);this.next.Ha(this.element);this.next.listen("click",
this.f7,this);this.D.T(this.api,"appresize",this.kc);this.D.T(this.api,"fullscreentoggled",this.Oy);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.kc(this.api.ob().getPlayerSize());this.onVideoDataChange()};
R$a=function(a){for(var b={dB:0};b.dB<16;b={dB:b.dB},++b.dB){var c=new g.S({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().W,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",va:"{{title}}"},{I:"div",S:"ytp-suggestion-author",va:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
va:"{{duration}}"}]}]});g.P(a,c);var d=c.Da("ytp-suggestion-link");g.Fm(d,"transitionDelay",b.dB/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.dB;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.Pl(),l={},g.aNa(a.api,l),h=g.gj(h,l),g.lT(h,a.api,f)):g.kT(f,a.api,a.K,m||void 0)&&a.api.Ip(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ha(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
S$a=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.q1=function(a){var b=a.api.Oh()?32:16;b=a.W/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.Qp(a.element,"ytp-scroll-min",b>=0);g.Qp(a.element,"ytp-scroll-max",b<=c)};
U$a=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.fd()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Da("ytp-suggestion-link");g.Fm(e,"display","inline-block");T$a.test(l.title)&&(m.Da("ytp-suggestion-title").dir="rtl");T$a.test(f)&&(m.Da("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.iz(l.lengthSeconds):
"";var n=l.Pl(d.api.fd());if(g.LP(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.eS(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.gj(n,p)}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.fG||g.JP?"will-change: opacity":
void 0});f=m.Da("ytp-suggestion-image");d=d.api.fd()?l.nh("hq2.jpg"):l.nh();f.style.backgroundImage=d?"url("+d+")":""}if(b<16)for(;b<16;++b)c=a.C[b].Da("ytp-suggestion-link"),g.Fm(c,"display","none");g.q1(a)};
aaa=[];ka=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.fa=caa(this);ma("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;ka(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});
ma("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.fa[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&ka(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var V$a=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)pa(d,e)&&(a[e]=d[e])}return a};
ma("Object.assign",function(a){return a||V$a});
var gaa=typeof Object.create=="function"?Object.create:function(a){function b(){}
b.prototype=a;return new b},W$a=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=gaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),X$a;
if(typeof Object.setPrototypeOf=="function")X$a=Object.setPrototypeOf;else{var Y$a;a:{var Z$a={a:!0},$$a={};try{$$a.__proto__=Z$a;Y$a=$$a.a;break a}catch(a){}Y$a=!1}X$a=Y$a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=X$a;
sa.prototype.Z=function(a){this.B=a};
sa.prototype.return=function(a){this.C={return:a};this.j=this.D};
sa.prototype.Ea=function(a){this.j=a};
ma("Reflect",function(a){return a?a:{}});
ma("Reflect.construct",function(){return W$a});
ma("Reflect.setPrototypeOf",function(a){return a?a:qa?function(b,c){try{return qa(b,c),!0}catch(d){return!1}}:null});
ma("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.fa.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.Aa),reject:h(this.G)}};
b.prototype.Aa=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Fa(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.qa(h):this.K(h)}};
b.prototype.qa=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}typeof l=="function"?this.Ja(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.Ca();this.W()};
b.prototype.Ca=function(){var h=this;e(function(){if(h.oa()){var l=g.fa.console;typeof l!=="undefined"&&l.error(h.C)}},1)};
b.prototype.oa=function(){if(this.N)return!1;var h=g.fa.CustomEvent,l=g.fa.Event,m=g.fa.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.fa.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
b.prototype.W=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.Fa=function(h){var l=this.D();h.JJ(l.resolve,l.reject)};
b.prototype.Ja=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(y){p(y)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.JJ(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.JJ=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.w(h),p=n.next();!p.done;p=n.next())d(p.value).JJ(l,m)})};
b.all=function(h){var l=g.w(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(u){return function(y){r[u]=y;t--;t==0&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).JJ(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
ma("Object.setPrototypeOf",function(a){return a||qa});
ma("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});
ma("SuppressedError",function(a){function b(c,d,e){if(!(this instanceof b))return new b(c,d,e);e=Error(e);"stack"in e&&(this.stack=e.stack);this.message=e.message;this.error=c;this.suppressed=d}
if(a)return a;g.z(b,Error);b.prototype.name="SuppressedError";return b});
ma("Array.prototype.find",function(a){return a?a:function(b,c){return oaa(this,b,c).NN}});
ma("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.w(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(!pa(m,h)){var n=new c;ka(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(!pa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&pa(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&pa(m,h)&&pa(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&pa(m,h)&&pa(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ma("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&&pa(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.w(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.w([[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});
ma("Set",function(a){function b(c){this.j=new Map;if(c){c=g.w(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.w([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});
ma("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ma("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push(b[d]);return c}});
ma("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
ma("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}});
ma("String.prototype.includes",function(a){return a?a:function(b,c){return Fa(this,b,"includes").indexOf(b,c||0)!==-1}});
ma("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}});
ma("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)pa(b,d)&&c.push([d,b[d]]);return c}});
ma("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
ma("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ma("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
ma("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ma("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
ma("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Fa(this,b,"startsWith");b+="";var e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var h=0;h<f&&c<e;)if(d[c++]!=b[h++])return!1;return h>=f}});
ma("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Fa(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}});
ma("Array.prototype.entries",function(a){return a?a:function(){return Ga(this,function(b,c){return[b,c]})}});
ma("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}});
ma("globalThis",function(a){return a||g.fa});
ma("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}});
ma("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
ma("Array.prototype.keys",function(a){return a?a:function(){return Ga(this,function(b){return b})}});
ma("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}});
ma("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}});
ma("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
ma("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}});
ma("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}});
ma("Int8Array.prototype.fill",Ha);ma("Uint8Array.prototype.fill",Ha);ma("Uint8ClampedArray.prototype.fill",Ha);ma("Int16Array.prototype.fill",Ha);ma("Uint16Array.prototype.fill",Ha);ma("Int32Array.prototype.fill",Ha);ma("Uint32Array.prototype.fill",Ha);ma("Float32Array.prototype.fill",Ha);ma("Float64Array.prototype.fill",Ha);
ma("String.prototype.repeat",function(a){return a?a:function(b){var c=Fa(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}});
ma("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;
})})}});
ma("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Fa(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}});
ma("Array.prototype.findIndex",function(a){return a?a:function(b,c){return oaa(this,b,c).i}});
ma("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
ma("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.w(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});
ma("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}});
ma("Int8Array.prototype.copyWithin",Ia);ma("Uint8Array.prototype.copyWithin",Ia);ma("Uint8ClampedArray.prototype.copyWithin",Ia);ma("Int16Array.prototype.copyWithin",Ia);ma("Uint16Array.prototype.copyWithin",Ia);ma("Int32Array.prototype.copyWithin",Ia);ma("Uint32Array.prototype.copyWithin",Ia);ma("Float32Array.prototype.copyWithin",Ia);ma("Float64Array.prototype.copyWithin",Ia);ma("Array.prototype.at",function(a){return a?a:Ka});
ma("Int8Array.prototype.at",La);ma("Uint8Array.prototype.at",La);ma("Uint8ClampedArray.prototype.at",La);ma("Int16Array.prototype.at",La);ma("Uint16Array.prototype.at",La);ma("Int32Array.prototype.at",La);ma("Uint32Array.prototype.at",La);ma("Float32Array.prototype.at",La);ma("Float64Array.prototype.at",La);ma("String.prototype.at",function(a){return a?a:Ka});
ma("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)}});
ma("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return paa(this,b,c).i}});
ma("Int8Array.prototype.findLastIndex",Ma);ma("Uint8Array.prototype.findLastIndex",Ma);ma("Uint8ClampedArray.prototype.findLastIndex",Ma);ma("Int16Array.prototype.findLastIndex",Ma);ma("Uint16Array.prototype.findLastIndex",Ma);ma("Int32Array.prototype.findLastIndex",Ma);ma("Uint32Array.prototype.findLastIndex",Ma);ma("Float32Array.prototype.findLastIndex",Ma);ma("Float64Array.prototype.findLastIndex",Ma);ma("Number.parseInt",function(a){return a||parseInt});
ma("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 mj,Va,qaa;mj=mj||{};g.Na=this||self;Va="closure_uid_"+(Math.random()*1E9>>>0);qaa=0;xaa.prototype.Fg=function(a,b){this.j.Fg("/client_streamz/bg/fil",a,b)};
zaa.prototype.Fg=function(a,b,c){this.j.Fg("/client_streamz/bg/fcd",a,b,c)};
Baa.prototype.Fg=function(a,b){this.j.Fg("/client_streamz/bg/fsl",a,b)};
Caa.prototype.Fg=function(a,b){this.j.Fg("/client_streamz/bg/frs",a,b)};
Daa.prototype.Fg=function(a,b,c,d,e,f){this.j.Fg("/client_streamz/bg/wrl",a,b,c,d,e,f)};
Eaa.prototype.Fg=function(a,b,c,d){this.j.Fg("/client_streamz/bg/el",a,b,c,d)};g.bb(ob,Error);ob.prototype.name="CustomError";var yea;var Ne=void 0,Me,Sca=typeof TextDecoder!=="undefined",Naa,Maa=typeof String.prototype.isWellFormed==="function",Laa=typeof TextEncoder!=="undefined";var zb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Xda=/&/g,Yda=/</g,Zda=/>/g,$da=/"/g,aea=/'/g,bea=/\x00/g,Wda=/[\x00&<>"']/;var aab=Qa(1,!0),Db=Qa(610401301,!1);Qa(899588437,!1);Qa(188588736,!0);var bab=Qa(676937399,!1);Qa(651175828,!1);Qa(653718497,aab);var sda=Qa(660014094,aab);Qa(2147483644,!1);Qa(2147483645,!1);Qa(2147483646,aab);Qa(2147483647,!0);var Eb=!!g.Pa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Fb,cab=g.Na.navigator;Fb=cab?cab.userAgentData||null:null;var aba,Sl,Vm;aba=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.dab=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.lc=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.Bn=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.Ql=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};
Sl=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.lc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Vm=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.Rl=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};nc[" "]=function(){};var Gm,BU,i8a,eab,fab,gab,IP,mP,hab;g.JP=Jb();g.Hm=Saa();g.Lu=Hb("Edge");g.iQ=g.Lu||g.Hm;Gm=Hb("Gecko")&&!(yb(g.Cb(),"WebKit")&&!Hb("Edge"))&&!(Hb("Trident")||Hb("MSIE"))&&!Hb("Edge");g.mh=yb(g.Cb(),"WebKit")&&!Hb("Edge");BU=Qb();i8a=Zaa();g.Es=Yaa();eab=Ob();fab=Hb("iPad");gab=Hb("iPod");IP=Pb();mP=yb(g.Cb(),"KaiOS");
a:{var iab="",jab=function(){var a=g.Cb();if(Gm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.Lu)return/Edge\/([\d\.]+)/.exec(a);if(g.Hm)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.mh)return/WebKit\/(\S+)/.exec(a);if(g.JP)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
jab&&(iab=jab?jab[1]:"");if(g.Hm){var r1,kab=g.Na.document;r1=kab?kab.documentMode:void 0;if(r1!=null&&r1>parseFloat(iab)){hab=String(r1);break a}}hab=iab}var mba=hab,kba={};var Bs,Cs;g.OO=Kb();Bs=Ob()||Hb("iPod");Cs=Hb("iPad");g.KP=Uaa();g.fG=Lb();g.$t=Mb()&&!Pb();var oba={},uc=null,pba=Gm||g.mh||typeof g.Na.btoa=="function";var yba=typeof Uint8Array!=="undefined",sba=!g.Hm&&typeof btoa==="function",wba=/[-_.]/g,uba={"-":"+",_:"/",".":"="},wc={};var Aba;xc.prototype.isEmpty=function(){return this.j==null};
xc.prototype.sizeBytes=function(){var a=zc(this);return a?a.length:0};var zca;var ge=typeof Symbol==="function"&&typeof Symbol()==="symbol",s1=Fc(),Od=Fc("2ex"),he=Fc("1oa"),wca=Fc("0dg");Math.max.apply(Math,g.x(Object.values({Cja:1,Aja:2,zja:4,uka:8,tka:16,nka:32,Fha:64,Xla:128,Oia:256,Nia:512,Bja:1024,yia:2048,Nla:4096,Aia:8192,Pha:16384})));var Gd=ge?function(a,b){a[s1]|=b}:function(a,b){a.Oo!==void 0?a.Oo|=b:Object.defineProperties(a,{Oo:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},Td=ge?function(a,b){a[s1]&=~b}:function(a,b){a.Oo!==void 0&&(a.Oo&=~b)},Lc=ge?function(a){return a[s1]|0}:function(a){return a.Oo|0},Jd=ge?function(a){return a[s1]}:function(a){return a.Oo},Gc=ge?function(a,b){a[s1]=b}:function(a,b){a.Oo!==void 0?a.Oo=b:Object.defineProperties(a,{Oo:{value:b,
configurable:!0,writable:!0,enumerable:!1}})};var sd={},Dba={},Sd,lab=[];Gc(lab,55);Sd=Object.freeze(lab);var Qc,Ica=Object.freeze({});Object.freeze({});var Fca=Object.freeze({});var Gba=Rc(function(a){return typeof a==="number"}),Fba=Rc(function(a){return typeof a==="string"}),Hba=Rc(function(a){return typeof a==="boolean"}),XO=Rc(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),WO=Rc(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var Sc=typeof g.Na.BigInt==="function"&&typeof g.Na.BigInt(0)==="bigint";var nd=Rc(function(a){return Sc?a>=mab&&a<=nab:a[0]==="-"?Iba(a,oab):Iba(a,pab)}),oab=Number.MIN_SAFE_INTEGER.toString(),mab=Sc?BigInt(Number.MIN_SAFE_INTEGER):void 0,pab=Number.MAX_SAFE_INTEGER.toString(),nab=Sc?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Oca=typeof Uint8Array.prototype.slice==="function",Vc=0,Wc=0,yda;var Oba=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var vd=void 0,wd=void 0,td=void 0,xd=void 0,yd=void 0,zd=void 0;var Ed,mca,nca;g.k=Mca.prototype;g.k.init=function(a,b,c,d){d=d===void 0?{}:d;this.uJ=d.uJ===void 0?!1:d.uJ;a&&(a=ze(a),this.B=a.buffer,this.G=a.Zx,this.D=b||0,this.C=c!==void 0?this.D+c:this.B.length,this.j=this.D)};
g.k.free=function(){this.clear();Ie.length<100&&Ie.push(this)};
g.k.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.uJ=!1};
g.k.reset=function(){this.j=this.D};
g.k.Pd=function(){var a=this.K;a||(a=this.B,a=this.K=new DataView(a.buffer,a.byteOffset,a.byteLength));return a};
var Ie=[];Je.prototype.free=function(){this.j.clear();this.B=this.D=-1;t1.length<100&&t1.push(this)};
Je.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
var t1=[];var Ue,Te;g.k=Qe.prototype;g.k.toJSON=function(){return Ve(this)};
g.k.Fi=function(a){try{return Te=!0,a&&(Ue=a===Pe||a!==Uca&&a!==Yca&&a!==ada?Pe:a),JSON.stringify(Ve(this),qca)}finally{a&&(Ue=void 0),Te=!1}};
g.k.clone=function(){var a=this.tb;return Kd(this,a,Jd(a),!1)};
g.k.Zx=function(){return!!(Lc(this.tb)&2)};
g.k.ML=sd;g.k.toString=function(){try{return Te=!0,Ve(this).toString()}finally{Te=!1}};var dda,fda;Ye.prototype.length=function(){return this.j.length};
Ye.prototype.end=function(){var a=this.j;this.j=[];return a};var ff=ef(),qab=ef(),rab=ef(),sab=ef(),tab=ef(),uab=ef(),vab=ef(),wab=ef();var oda=hf(function(a,b,c,d,e){if(a.B!==2)return!1;Le(a,ie(b,d,c),e);return!0},nda),pda=hf(function(a,b,c,d,e){if(a.B!==2)return!1;
Le(a,ie(b,d,c,!0),e);return!0},nda),sf=Symbol(),nf=Symbol(),rda=Symbol(),vda=Symbol(),jf,kf,qf=0;var xab=vf(function(a,b,c){if(a.B!==1)return!1;xf(b,c,Ge(a.j));return!0},yf,vab),yab=vf(function(a,b,c){if(a.B!==1)return!1;
a=Ge(a.j);xf(b,c,a===0?void 0:a);return!0},yf,vab),zab=vf(function(a,b,c,d){if(a.B!==1)return!1;
ee(b,c,d,Ge(a.j));return!0},yf,vab),Aab=vf(function(a,b,c){if(a.B!==0)return!1;
xf(b,c,Be(a.j));return!0},zf,tab),Bab=vf(function(a,b,c){if(a.B!==0)return!1;
a=Be(a.j);xf(b,c,a===0?void 0:a);return!0},zf,tab),Cab=vf(function(a,b,c,d){if(a.B!==0)return!1;
ee(b,c,d,Be(a.j));return!0},zf,tab),Dab=vf(function(a,b,c){if(a.B!==0)return!1;
xf(b,c,Ce(a.j));return!0},Af,sab),Eab=vf(function(a,b,c){if(a.B!==0)return!1;
a=Ce(a.j);xf(b,c,a===0?void 0:a);return!0},Af,sab),Fab=vf(function(a,b,c,d){if(a.B!==0)return!1;
ee(b,c,d,Ce(a.j));return!0},Af,sab),Gab=vf(function(a,b,c){if(a.B!==1)return!1;
xf(b,c,Fe(a.j));return!0},function(a,b,c){lda(a,c,Yba(b))},uab),Hab=wf(function(a,b,c){if(a.B!==1&&a.B!==2)return!1;
b=Ud(b,Jd(b),c,2,!1);if(a.B==2)for(c=Ce(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(Fe(a.j));else b.push(Fe(a.j));return!0},function(a,b,c){b=uf(Yba,b,!1);
if(b!=null)for(var d=0;d<b.length;d++)lda(a,c,b[d])},uab),Iab=vf(function(a,b,c){if(a.B!==0)return!1;
xf(b,c,He(a.j));return!0},zda,qab),Jab=vf(function(a,b,c,d){if(a.B!==0)return!1;
ee(b,c,d,He(a.j));return!0},zda,qab),u1=vf(function(a,b,c){if(a.B!==2)return!1;
xf(b,c,Oe(a));return!0},Ada,rab),Kab=wf(function(a,b,c){if(a.B!==2)return!1;
a=Oe(a);var d=Jd(b);Nc(d);Ud(b,d,c,2).push(a);return!0},function(a,b,c){b=uf(pd,b,!0);
if(b!=null)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];h!=null&&df(e,f,Oaa(h))}},rab),Lab=vf(function(a,b,c,d){if(a.B!==2)return!1;
ee(b,c,d,Oe(a));return!0},Ada,rab),v1,w1=void 0;
w1=w1===void 0?ff:w1;v1=new gf(function(a,b,c,d,e){if(a.B!==2)return!1;d=Hd(void 0,d);var f=Jd(b);Nc(f);var h=Ud(b,f,c,3);f=Jd(b);Lc(h)&4&&(h=Ec(h),Gc(h,(Lc(h)|1)&-2079),Pd(b,f,c,h));h.push(d);Le(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Bda(a,b[f],c,d,e)},w1);
var x1=hf(function(a,b,c,d,e,f){if(a.B!==2)return!1;ce(b,Jd(b),f,c);b=ie(b,d,c);Le(a,b,e);return!0},Bda),Mab=vf(function(a,b,c){if(a.B!==2)return!1;
xf(b,c,Tca(a));return!0},function(a,b,c){b=Zba(b);
b!=null&&df(a,c,ze(b).buffer)},wab),Nab=wf(function(a,b,c){if(a.B!==2)return!1;
a=Tca(a);var d=Jd(b);Nc(d);Ud(b,d,c,2).push(a);return!0},function(a,b,c){b=uf(Zba,b,!1);
if(b!=null)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];h!=null&&df(e,f,ze(h).buffer)}},wab),y1=vf(function(a,b,c){if(a.B!==0)return!1;
xf(b,c,Ce(a.j)>>>0);return!0},function(a,b,c){b=jd(b);
b!=null&&b!=null&&(cf(a,c,0),$e(a.j,b))},ef()),Oab=vf(function(a,b,c){if(a.B!==0)return!1;
xf(b,c,Ce(a.j));return!0},function(a,b,c){b=id(b);
b!=null&&(b=parseInt(b,10),cf(a,c,0),hda(a.j,b))},ef());g.z(Cf,Qe);g.z(Ef,Qe);var Jf=[1,2,3];var Pab=[0,Jf,Lab,Fab,Jab];var Qab=[0,v1,[0,xab,Aab]];g.z(Ff,Qe);var If=[1,2,3];var Rab=[0,If,Cab,zab,x1,Qab];g.z(Gf,Qe);var Sab=[0,v1,Pab,Rab];var Uab=[0,[1,2,3],x1,[0,u1,-1,Iab],x1,[0,u1,-1,Dab,Iab],x1,[0,u1]];g.z(Hf,Qe);Hf.prototype.Wr=function(){var a=Yd(this,3,pd,3,void 0,!0);Oc(a);return a[void 0]};Hf.prototype.j=Cda([0,u1,Uab,Kab,v1,Sab,Gab,Hab]);g.z(Dda,Qe);var gea={};var Mda=globalThis.trustedTypes,Kf;g.Mf.prototype.toString=function(){return this.j+""};Pf.prototype.toString=function(){return this.j};
g.Uf=new Pf("about:invalid#zClosurez");var u2a=Tf("tel"),s2a=Tf("sms"),Oda=[Tf("data"),Tf("http"),Tf("https"),Tf("mailto"),Tf("ftp"),new Sf(function(a){return/^[^:]*([/?#]|$)/.test(a)})],Pda=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Yf.prototype.toString=function(){return this.j};g.Zf.prototype.toString=function(){return this.j+""};g.dg.prototype.toString=function(){return this.j+""};var ig={};g.Vab=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};g.k=rg.prototype;g.k.isEnabled=function(){if(!g.Na.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{OG: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.Aea;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.OG}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=zb(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,"",{OG:0,path:b,domain:c});return d};
g.k.Go=function(){return sg(this).keys};
g.k.fn=function(){return sg(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=sg(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
var ms=new rg(typeof document=="undefined"?null:document);g.O.prototype.Yq=!1;g.O.prototype.Ia=function(){return this.Yq};
g.O.prototype.dispose=function(){this.Yq||(this.Yq=!0,this.xa())};
g.O.prototype[Symbol.dispose]=function(){this.dispose()};
g.O.prototype.addOnDisposeCallback=function(a,b){this.Yq?b!==void 0?a.call(b):a():(this.Co||(this.Co=[]),b&&(a=a.bind(b)),this.Co.push(a))};
g.O.prototype.xa=function(){if(this.Co)for(;this.Co.length;)this.Co.shift()()};g.z(xg,Qe);yg.prototype.setInterval=function(a){this.intervalMs=a;this.Ze&&this.enabled?(this.stop(),this.start()):this.Ze&&this.stop()};
yg.prototype.start=function(){var a=this;this.enabled=!0;this.Ze||(this.Ze=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
yg.prototype.stop=function(){this.enabled=!1;this.Ze&&(clearTimeout(this.Ze),this.Ze=void 0)};
yg.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<this.intervalMs*.8?this.Ze=setTimeout(function(){a.tick()},this.intervalMs-b):(this.Ze&&(clearTimeout(this.Ze),this.Ze=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.Ze=void 0};g.z(zg,Qe);g.z(Ag,Qe);g.k=g.Eg.prototype;g.k.clone=function(){return new g.Eg(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.Gg.prototype;g.k.clone=function(){return new g.Gg(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};var oea="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");bh.prototype.toString=function(){return this.j};
var ah={};new bh(ah,"");var qea=/^[a-z][a-z\d-]*$/i,rea="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),tea="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),vea=["action","formaction","href"];var zea={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=dh.prototype;g.k.Ib=function(a){return gh(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Da=function(a){return g.kh(a,this.j)};
g.k.setProperties=lh;g.k.createElement=function(a){return oh(this.j,a)};
g.k.appendChild=g.sh;g.k.append=function(a,b){Dea(eh(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.vh;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.wh;var Yea=function(){if(!g.Na.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Na.addEventListener("test",c,b);g.Na.removeEventListener("test",c,b)}catch(d){}return a}();var Q1a=Gea("AnimationEnd"),zNa=Gea("TransitionEnd");g.Ch.prototype.B=0;g.Ch.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Ch.prototype.getValue=function(){return this.C};g.z(Eh,Qe);Eh.prototype.RK=function(){return te(this,1)};g.z(Fh,Qe);g.z(Gh,Qe);g.z(Hh,Qe);var Iea=["platform","platformVersion","architecture","model","uaFullVersion"],Jh=new Gh,Ih=null;g.z(Kh,Qe);g.z(Kea,Qe);g.z(Lh,Qe);g.z(Mh,Qe);Mh.prototype.L=function(){return Rd(this,Kea,7)};
Mh.prototype.AK=function(){return je(this,xg,16)};g.z(Nh,Qe);Nh.prototype.fI=function(a){return xe(this,2,a)};g.z(Lea,Qe);var Wab=Bf(Lea);g.z(Mea,Qe);var z1=new function(){this.j=Mea;this.isRepeated=0;this.B=je;this.defaultValue=void 0};g.z(Qh,g.O);g.k=Qh.prototype;g.k.xa=function(){this.dQ();this.j.stop();this.oa.stop();g.O.prototype.xa.call(this)};
g.k.dispatch=function(a){if(this.N)if(a instanceof Mh)this.log(a);else{var b=new Mh;a=a.Fi();b=ve(b,8,a);this.log(b)}};
g.k.log=function(a){if(this.N){a=a.clone();var b=this.Ca++;a=ue(a,21,b);this.componentId&&ve(a,26,this.componentId);if(Jca(a)==null){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Qd(b,1,md(c))}Wba(Nd(a,15))!=null||ue(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=a,c=this.experimentIds.clone(),ke(b,xg,16,c));b=this.C.length-1E3+1;b>0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.lF||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.Aa>d&&this.W<d)b&&b("throttled");else{this.network&&(typeof this.network.RK==="function"?Pea(this.B,this.network.RK()):Pea(this.B,0));var e=this.B.build(this.C,this.G,this.Z,this.sC,0,0);d={};var f=this.HF();f&&(d.Authorization=f);this.K||(this.K=Ph());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,nh().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.qa===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.Fi();d={url:h.toString(),body:l,sna: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=Wab(p)}catch(q){}n&&(m=Number,p="-1",p=p===void 0?"0":p,p=oe(Jca(n),p),m=m(p),m>0&&(c.W=Date.now(),c.Aa=c.W+m),n=z1.j?z1.B(n,z1.j,175237375,!0):z1.B(n,175237375,null,!0),n=n===null?void 0:n)&&(n=ib(n,1,-1),n!==-1&&(c.D=new g.Ch(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0};
l=function(m,n){var p=fb(e,Mh,3);var q=Wba(Nd(e,14));q=q==null?void 0:q;g.Dh(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.qa=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.lF||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z};
c.network&&c.network.send(d,h,l)}}}};
g.k.dQ=function(){Qea(this.B,!0);this.flush();Qea(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
Oh.prototype.fI=function(a){this.j.fI(a);return this};
Oh.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(Rd(Sh(this),Hh,11)){var h=Vh(this);Qd(h,3,hd(c))}Rd(Sh(this),Hh,11)&&(c=Vh(this),Qd(c,4,hd(e)));Rd(Sh(this),Hh,11)&&(e=Vh(this),Qd(e,5,hd(f)));f=this.j.clone();e=Date.now().toString();f=Qd(f,4,md(e));a=me(f,Mh,3,a.slice());d&&(f=new zg,d=Qd(f,13,hd(d)),f=new Ag,d=ke(f,zg,2,d),f=new Lh,d=ke(f,Ag,1,d),d=xe(d,2,9),ke(a,Lh,18,d));b&&ue(a,14,b);return a};Wh.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.J(function(u){switch(u.j){case 1:return f=(e=d.C7?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.wa(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.G(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ea(3);break}if((n=b)==null){u.Ea(7);break}return g.G(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.za(u);clearTimeout(f);g.Aa(u,0);break;case 2:p=g.ya(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ea(3)}})};
Wh.prototype.RK=function(){return 4};g.z(Xh,g.O);Xh.prototype.tY=function(){this.G=!0;return this};
Xh.prototype.build=function(){this.network||(this.network=new Wh);var a=new Qh({logSource:this.logSource,HF:this.HF?this.HF:jea,sessionIndex:this.sessionIndex,Ufa:this.C,oy:this.D,lF:!1,tY:this.G,MX:this.MX,network:this.network});g.P(this,a);if(this.j){var b=this.j,c=Rh(a.B);ve(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.sC&&(a.sC=this.sC);this.pageId&&(a.pageId=this.pageId);this.B&&((c=this.B)?(a.experimentIds||(a.experimentIds=new xg),b=a.experimentIds,c=c.Fi(),ve(b,4,c)):a.experimentIds&&
Qd(a.experimentIds,4));Rea(a.B);this.network.fI&&this.network.fI(this.logSource);this.network.Tea&&this.network.Tea(a);return a};g.z(Yh,g.O);Yh.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Dda,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Gda(e);c.push(f);e.clear()}me(b,Hf,1,c);this.j.dispatch(b);this.j.flush()}};g.k=Zh.prototype;g.k.L7=function(a){var b=g.Ea.apply(1,arguments),c=this.nQ(b);c?c.push(new Sea(a)):this.M2(a,b)};
g.k.M2=function(a){this.j.set(this.mW(g.Ea.apply(1,arguments)),[new Sea(a)])};
g.k.nQ=function(){var a=this.mW(g.Ea.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.t9=function(){var a=this.nQ(g.Ea.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.mW=function(){var a=g.Ea.apply(0,arguments);return a?a.join(","):"key"};g.z($h,Zh);$h.prototype.C=function(a){var b=g.Ea.apply(1,arguments),c=0,d=this.t9(b);d&&(c=d.j);this.M2(c+a,b)};g.z(ai,Zh);ai.prototype.Fg=function(a){this.L7(a,g.Ea.apply(1,arguments))};g.bi.prototype.stopPropagation=function(){this.B=!0};
g.bi.prototype.preventDefault=function(){this.defaultPrevented=!0};g.bb(ci,g.bi);
ci.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;b||(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=a.pointerType;this.state=a.state;this.timeStamp=a.timeStamp;this.j=a;a.defaultPrevented&&ci.Tf.preventDefault.call(this)};
ci.prototype.stopPropagation=function(){ci.Tf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
ci.prototype.preventDefault=function(){ci.Tf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Tea="closure_listenable_"+(Math.random()*1E6|0);var Uea=0;g.k=fi.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=hi(a,b,d,e);h>-1?(b=a[h],c||(b.IJ=!1)):(b=new Vea(b,this.src,f,!!d,e),b.IJ=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=hi(e,b,c,d);return b>-1?(ei(e[b]),g.Xb(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,ei(d[e]);delete this.listeners[c];this.j--}return b};
g.k.SF=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=hi(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.Lg(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 mi="closure_lm_"+(Math.random()*1E6|0),oi={},$ea=0,pi="__closure_events_fn_"+(Math.random()*1E9>>>0);g.bb(g.qi,g.O);g.qi.prototype[Tea]=!0;g.k=g.qi.prototype;g.k.addEventListener=function(a,b,c,d){g.ji(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){bfa(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.nT;if(b){var c=[];for(var d=1;b;b=b.nT)c.push(b),++d}b=this.F7;d=a.type||a;if(typeof a==="string")a=new g.bi(a,b);else if(a instanceof g.bi)a.target=a.target||b;else{var e=a;a=new g.bi(d,b);g.$g(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=ri(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=ri(h,d,!0,a)&&e,a.B||(e=ri(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=ri(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.qi.Tf.xa.call(this);this.Tm&&this.Tm.removeAll(void 0);this.nT=null};
g.k.listen=function(a,b,c,d){return this.Tm.add(String(a),b,!1,c,d)};
g.k.IG=function(a,b,c,d){return this.Tm.add(String(a),b,!0,c,d)};
g.k.Mc=function(a,b,c,d){this.Tm.remove(String(a),b,c,d)};
g.k.SF=function(a,b,c,d){return this.Tm.SF(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Tm.hasListener(a!==void 0?String(a):void 0,b)};si.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 ti;vi.prototype.add=function(a,b){var c=hfa.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
vi.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 hfa=new si(function(){return new wi},function(a){return a.reset()});
wi.prototype.set=function(a,b){this.Cx=a;this.scope=b;this.next=null};
wi.prototype.reset=function(){this.next=this.scope=this.Cx=null};var xi,yi=!1,ffa=new vi;kfa.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var lfa=new si(function(){return new kfa},function(a){a.reset()});
g.Fi.prototype.then=function(a,b,c){return vfa(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)};
g.Fi.prototype.$goog_Thenable=!0;g.k=g.Fi.prototype;g.k.fl=function(a,b){return vfa(this,null,a,b)};
g.k.catch=g.Fi.prototype.fl;g.k.cancel=function(a){if(this.j==0){var b=new Ni(a);g.zi(function(){rfa(this,b)},this)}};
g.k.Jfa=function(a){this.j=0;Ei(this,2,a)};
g.k.Kfa=function(a){this.j=0;Ei(this,3,a)};
g.k.c9=function(){for(var a;a=sfa(this);)tfa(this,a,this.j,this.N);this.K=!1};
var zfa=sb;g.bb(Ni,ob);Ni.prototype.name="cancel";g.bb(g.Oi,g.qi);g.k=g.Oi.prototype;g.k.enabled=!1;g.k.wd=null;g.k.setInterval=function(a){this.gj=a;this.wd&&this.enabled?(this.stop(),this.start()):this.wd&&this.stop()};
g.k.wfa=function(){if(this.enabled){var a=g.Za()-this.F_;a>0&&a<this.gj*.8?this.wd=this.BI.setTimeout(this.RX,this.gj-a):(this.wd&&(this.BI.clearTimeout(this.wd),this.wd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.wd||(this.wd=this.BI.setTimeout(this.RX,this.gj),this.F_=g.Za())};
g.k.stop=function(){this.enabled=!1;this.wd&&(this.BI.clearTimeout(this.wd),this.wd=null)};
g.k.xa=function(){g.Oi.Tf.xa.call(this);this.stop();delete this.BI};g.z(g.Ri,g.O);g.k=g.Ri.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
g.k.PD=function(){var a=this.B.values();a=[].concat(g.x(a)).filter(function(b){return b.j.size});
a.length&&this.N.flush(a,this.G);Cfa(a);this.D=0;this.j.enabled&&this.j.stop()};
g.k.rk=function(a){var b=g.Ea.apply(1,arguments);this.B.has(a)||this.B.set(a,new $h(a,b))};
g.k.dA=function(a){var b=g.Ea.apply(1,arguments);this.B.has(a)||this.B.set(a,new ai(a,b))};
g.k.Gm=function(a){this.lO(a,1,g.Ea.apply(1,arguments))};
g.k.lO=function(a,b){var c=g.Ea.apply(2,arguments),d=Bfa(this,a);d&&d instanceof $h&&(d.C(b,c),Afa(this))};
g.k.Fg=function(a,b){var c=g.Ea.apply(2,arguments),d=Bfa(this,a);d&&d instanceof ai&&(d.Fg(b,c),Afa(this))};g.z(Si,Error);Si.prototype.toString=function(){var a="RpcError("+(Efa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};Ffa.prototype.Fi=function(a){var b=[];Ui(this,a,b);return b.join("")};
var Ifa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Hfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Vi.prototype.C=null;Vi.prototype.getOptions=function(){return this.C||(this.C=this.D())};var Xab;g.bb(Wi,Vi);Wi.prototype.j=function(){return new XMLHttpRequest};
Wi.prototype.D=function(){return{}};
Xab=new Wi;var Zi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Pfa=/#|$/,Qfa=/[?&]($|#)/;g.bb(g.kj,g.qi);var Yfa=/^https?$/i,Yab=["POST","PUT"],Sfa=[];g.k=g.kj.prototype;g.k.b8=function(){this.dispose();g.Yb(Sfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.N+"; newUri="+a);b=b?b.toUpperCase():"GET";this.N=a;this.D="";this.B=0;this.Ca=!1;this.C=!0;this.j=this.Z?this.Z.j():Xab.j();this.Aa=this.Z?this.Z.getOptions():Xab.getOptions();this.j.onreadystatechange=(0,g.Xa)(this.d1,this);try{this.getStatus(),this.Fa=!0,this.j.open(b,String(a),!0),this.Fa=!1}catch(h){this.getStatus();Vfa(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.w(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.Na.FormData&&a instanceof g.Na.FormData;!g.Wb(Yab,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.w(c);for(d=b.next();!d.done;d=b.next())c=g.w(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ja&&(this.j.responseType=this.Ja);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Xfa(this),this.qa>0&&(this.getStatus(),this.oa=g.Pi(this.g6,this.qa,this)),this.getStatus(),this.W=!0,this.j.send(a),
this.W=!1}catch(h){this.getStatus(),Vfa(this,h)}};
g.k.g6=function(){typeof mj!="undefined"&&this.j&&(this.D="Timed out after "+this.qa+"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"),lj(this))};
g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),lj(this,!0));g.kj.Tf.xa.call(this)};
g.k.d1=function(){this.Ia()||(this.Fa||this.W||this.G?Wfa(this):this.pca())};
g.k.pca=function(){Wfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return g.nj(this)==4};
g.k.getStatus=function(){try{return g.nj(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)};sj.prototype.send=function(a,b,c){b=b===void 0?function(){}:b;
c=c===void 0?function(){}:c;
Tfa(a.url,function(d){d=d.target;oj(d)?b(g.pj(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
sj.prototype.RK=function(){return 1};var yj={uh:"_",It:"",Um:[],iaa:0};uj.prototype.start=function(){this.startMillis=tj()};
uj.prototype.done=function(){this.startMillis!=null&&this.logger.KG(this.event,tj()-this.startMillis)};
g.z(vj,g.O);g.z(xj,vj);g.k=xj.prototype;g.k.T_=function(){};
g.k.TR=function(){};
g.k.UR=function(){};
g.k.KG=function(){};
g.k.Yl=function(){};
g.k.Fw=function(){};
g.k.VR=function(a,b,c){return c};
g.k.V_=function(){};
g.k.S_=function(){};
g.k.U_=function(){};
g.k.Y3=function(){};
g.z(zj,vj);g.k=zj.prototype;g.k.Y3=function(a){var b;(b=this.clientExperimentsState)!=null&&qe(b)&&(a=a.sort(function(c,d){return c-d}),this.B!==a&&(this.B=a,a=Df(new Cf,this.Um.concat(this.B)),$fa(this,a)))};
g.k.T_=function(){var a;(a=this.Ca)!=null&&a.j.Gm("/client_streamz/bg/fic",this.uh)};
g.k.TR=function(){var a;(a=this.Ka)!=null&&a.j.Gm("/client_streamz/bg/fsc",this.uh)};
g.k.UR=function(a){var b;(b=this.Ua)==null||b.Fg(a,this.uh)};
g.k.KG=function(a,b){if(a==="t"){var c;(c=this.Ja)==null||c.Fg(b,this.uh)}else if(a==="n"){var d;(d=this.Oa)==null||d.Fg(b,this.uh)}else if(a==="h"||a==="u"||a==="k"){if(a=this.G.get(a)){var e;(e=this.oa)!=null&&e.j.Gm("/client_streamz/bg/fcc",a,this.uh);var f;(f=this.qa)==null||f.Fg(b,a,this.uh)}}else{var h;(h=this.Aa)==null||h.Fg(b,a,this.It,this.uh)}};
g.k.Yl=function(a){var b=this.C.get(a);if(b){var c;(c=this.Fa)!=null&&c.j.Gm("/client_streamz/bg/fiec",this.uh,b)}else{var d;(d=this.errorCount)!=null&&d.j.Gm("/client_streamz/bg/cec",a,this.It,this.uh)}};
g.k.VR=function(a,b,c){function d(h){if(!e.Ia()){var l=tj()-f,m;(m=e.Ta)==null||m.Fg(l,a,b,h,e.It,e.uh)}}
var e=this,f=tj();c.then(function(){d(0)},function(h){h instanceof Si?d(h.code):d(-1)});
return c};
g.k.V_=function(a){var b;(b=this.Ya)!=null&&b.j.Gm("/client_streamz/bg/po/csc",a,this.It,this.uh)};
g.k.S_=function(a){var b;(b=this.W)!=null&&b.j.Gm("/client_streamz/bg/po/ctav",a,this.It,this.uh)};
g.k.U_=function(a){var b;(b=this.Va)!=null&&b.j.Gm("/client_streamz/bg/po/cwsc",a,this.It,this.uh)};
g.k.Fw=function(){var a=this;if(!this.N){var b;(b=this.j)==null||b.PD()}else if(!this.Z)if(b=tj(),this.K===void 0){this.K=b;var c;(c=this.j)==null||c.PD()}else if(c=b-this.K,c>=this.N){this.K=b;var d;(d=this.j)==null||d.PD()}else this.Z=!0,setTimeout(function(){a.Ia()||(a.Z=!1,a.Fw())},this.N-c)};g.z(gb,Qe);g.z(Aj,Qe);var cga=Bf(Aj);g.z(Bj,Qe);g.z(Cj,Qe);g.z(Dj,Qe);var Zab=Bf(Dj),aga=function(a){return Rc(function(b){return b instanceof a&&!(Lc(b.tb)&2)})}(Dj);
Dj.messageId="bfkj";g.z(Ij,g.O);Ij.prototype.snapshot=function(a){var b=this;if(this.Ia())throw Error("Already disposed");var c=new g.Ej;this.B.push(c.promise);this.logger.TR();return this.D.then(function(d){var e=d.R7;return new Promise(function(f){var h=new uj(b.logger,"n");e(function(l){h.done();b.logger.UR(l.length);b.logger.Fw();f(l)},[a.Hj,
a.BU,a.r4,a.EU])})}).finally(function(){return void c.resolve()})};
Ij.prototype.IU=function(a){var b=this;if(this.Ia())throw Error("Already disposed");this.logger.TR();var c=wj(this.logger,function(){return b.G([a.Hj,a.BU,a.r4,a.EU])},"n");
this.logger.UR(c.length);this.logger.Fw();return c};
Ij.prototype.AM=function(a){this.D.then(function(b){var c;(c=b.zda)==null||c(a)})};
g.z(Jj,Error);g.z(Nj,Qe);g.z(Oj,Qe);g.z(Pj,Qe);Qj.prototype.zF=function(a,b){var c=this,d,e,f,h,l;return g.J(function(m){if(m.j==1){var n=new Nj;d=we(n,1,c.yC);a&&we(d,2,a);b&&we(d,3,b);e=c.j();return g.G(m,c.client.create(d,e),2)}f=m.B;h=Ac(Zd(f,2));if(h.length){n=m.return;var p=new Uint8Array(h.length);for(var q=0;q<h.length;q++)p[q]=h[q]+97;if(g.Na.TextDecoder)p=(new TextDecoder).decode(p);else if(p.length<=8192)p=String.fromCharCode.apply(null,p);else{q="";for(var r=0;r<p.length;r+=8192)q+=String.fromCharCode.apply(null,Array.prototype.slice.call(p,
r,r+8192));p=q}p=Zab(p);return n.call(m,p)}l=je(f,Dj,1);if(!l)throw Error("Missing field");return m.return(l)})};
Qj.prototype.ping=function(a,b){var c=this,d,e;return g.J(function(f){d=c.j();e=b||new Pj;var h=ve(e,1,c.yC);ve(h,2,a);return g.G(f,c.client.ping(e,d),0)})};g.z(Tj,g.O);Tj.prototype.snapshot=function(a){var b=this,c;return g.J(function(d){switch(d.j){case 1:if(b.Ia())throw Error("Already disposed");c=new g.Ej;(b.B||b.D)&&b.G.push(c.promise);if(b.C||b.oa){d.Ea(2);break}return g.G(d,b.K.promise,2);case 2:d.G=0;d.D=4;if(!b.C)throw b.oa;return g.G(d,b.C.snapshot(a),7);case 7:return d.return(d.B);case 4:g.za(d),c.resolve(),g.Aa(d,0)}})};
Tj.prototype.AM=function(a){var b,c;(b=this.C)==null||(c=b.AM)==null||c.call(b,a)};
Tj.prototype.handleError=function(a){if(!this.Ia()){this.oa=a;this.K.resolve();var b,c;(c=(b=this.options).Jpa)==null||c.call(b,a)}};
var lga={bea:432E5,w3:3E5,j8:1E4,h9:3E4,Z$:3E4,Wea:6E4,Z8:1E3,Y8:6E4,a9:6E5,b9:.25,X8:2,maxAttempts:10};var $ab,tga=($ab=Math.imul)!=null?$ab:function(a,b){return a*b|0},Xj=[196,
200,224,18];Yj.prototype.Fi=function(){return String(this.j)+","+this.B.join()};
Yj.prototype.Nh=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=sga("iU5q-!O9@$",this.Fi());c&&a&&b(c);return a};var Ega={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("")}};var Gga;g.z(ak,g.O);ak.prototype.qv=function(a,b){var c=this.ov(a);b==null||b(c);return wj(this.logger,function(){return g.pc(c,2)},this.j)};
Gga=Symbol.dispose;g.z(dk,ak);dk.prototype.ov=function(a,b){var c=this;++this.G>=this.K&&this.C.resolve();var d=a();a=wj(this.logger,function(){return c.D(d)},"C");
if(a===void 0)throw new Jj(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new Jj(18,"ODM:Invalid");b==null||b(a);return a};
g.z(ek,ak);ek.prototype.ov=function(){return this.D};
g.z(fk,ak);fk.prototype.ov=function(){var a=this;return wj(this.logger,function(){return rc(a.D)},"d")};
fk.prototype.qv=function(){return this.D};
g.z(gk,ak);gk.prototype.ov=function(){if(this.D)return this.D;this.D=Hga(this,function(a){return"_"+Fga(a)});
return Hga(this,function(a){return a})};
g.z(ik,ak);ik.prototype.ov=function(a){var b=a();if(b.length>118)throw new Jj(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.D&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.V_(this.clientState);return a};g.z(jk,g.O);jk.prototype.GP=function(a){if(!(a>150))try{this.cache=new Aga(a,this.logger)}catch(b){this.reportError(new Jj(22,"GBJ:init",b))}};
jk.prototype.reportError=function(a){this.logger.Yl(a.code);this.onError(a);return a};
(function(a){return Rc(function(b){if(!WO(b))return!1;for(var c=g.w(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;if(!(d in b)){if(e.kpa===!0)continue;return!1}if(!e(b[d]))return!1}return!0})})({dh:function(a){return Rc(function(b){return b instanceof a})}(Tj)},"");g.z(lk,Qe);var abb=Bf(lk);Pga.prototype.getMetadata=function(){return this.C};mk.prototype.getMetadata=function(){return this.j};
mk.prototype.getStatus=function(){return null};nk.prototype.getName=function(){return this.name};
nk.prototype.getName=nk.prototype.getName;var bbb=new nk("/google.internal.waa.v1.Waa/Create",Nj,lk,function(a){return a.Fi()},abb);g.z(ok,Qe);var iga=new nk("/google.internal.waa.v1.Waa/GenerateIT",Oj,ok,function(a){return a.Fi()},Bf(ok));g.z(pk,Qe);var cbb=new nk("/google.internal.waa.v1.Waa/Ping",Pj,pk,function(a){return a.Fi()},Bf(pk));var qha=new Set(["SAPISIDHASH","APISIDHASH"]);var lha=Promise;g.z(qk,Qe);qk.prototype.getValue=function(){var a=Nd(this,2);if(Array.isArray(a)||a instanceof Qe)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Zd(this,2)};g.z(rk,Qe);rk.prototype.getMessage=function(){return se(this,2)};
var Vga=Bf(rk);sk.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};
sk.prototype.removeListener=function(a,b){a=="data"?wk(this.C,b):a=="metadata"?wk(this.G,b):a=="status"?wk(this.K,b):a=="end"?wk(this.D,b):a=="error"&&wk(this.B,b);return this};
sk.prototype.cancel=function(){this.j.abort()};
sk.prototype.cancel=sk.prototype.cancel;sk.prototype.removeListener=sk.prototype.removeListener;sk.prototype.on=sk.prototype.on;g.bb(g.xk,Vi);g.xk.prototype.j=function(){var a=new yk(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.xk.prototype.D=Ai({});g.xk.prototype.setCredentialsMode=function(a){this.B=a};
g.bb(yk,g.qi);g.k=yk.prototype;g.k.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.oa=a;this.W=b;this.readyState=1;zk(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.oa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.qa||g.Na).fetch(new Request(this.W,b)).then(this.n$.bind(this),this.aL.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,Ak(this));this.readyState=0};
g.k.n$=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,zk(this)),this.j&&(this.readyState=3,zk(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.l$.bind(this),this.aL.bind(this));else if(typeof g.Na.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;Wga(this)}else a.text().then(this.m$.bind(this),this.aL.bind(this))};
g.k.c$=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?Ak(this):zk(this);this.readyState==3&&Wga(this)}};
g.k.m$=function(a){this.j&&(this.response=this.responseText=a,Ak(this))};
g.k.l$=function(a){this.j&&(this.response=a,Ak(this))};
g.k.aL=function(){this.j&&Ak(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(yk.prototype,"withCredentials",{get:function(){return this.G==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Bk.prototype.toString=function(){var a=[],b=this.G;b&&a.push(Lk(b,dbb,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(Lk(b,dbb,!0),"@"),a.push(g.lg(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(Lk(c,c.charAt(0)=="/"?ebb:fbb,!0));(c=this.D.toString())&&a.push("?",c);(c=this.K)&&a.push("#",Lk(c,gbb));return a.join("")};
g.Bk.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.Ck(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.Dk(b,a.j):c=a.C!=null;var d=a.B;if(c)g.Ek(b,a.C);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.xb(e,"./")||g.xb(e,"/.")){d=vb(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.D.toString()!=="";c?Fk(b,a.D.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.Bk.prototype.clone=function(){return new g.Bk(this)};
var dbb=/[#\/\?@]/g,fbb=/[#\?:]/g,ebb=/[#\?]/g,Yga=/[#\?@]/g,gbb=/#/g;g.k=Kk.prototype;g.k.add=function(a,b){Ok(this);this.C=null;a=Pk(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){Ok(this);a=Pk(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(){Ok(this);return this.B==0};
g.k.forEach=function(a,b){Ok(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Go=function(){Ok(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.fn=function(a){Ok(this);var b=[];if(typeof a==="string")$ga(this,a)&&(b=b.concat(this.j.get(Pk(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){Ok(this);this.C=null;a=Pk(this,a);$ga(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.fn(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.lg(d);d=this.fn(d);for(var f=0;f<d.length;f++){var h=e;d[f]!==""&&(h+="="+g.lg(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new Kk;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.bb(g.Rk,g.O);var hbb=[];g.k=g.Rk.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(hbb[0]=b.toString()),b=hbb);for(var e=0;e<b.length;e++){var f=g.ji(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.IG=function(a,b,c,d){return cha(this,a,b,c,d)};
g.k.Mc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Mc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ta(d)?!!d.capture:!!d,e=e||this.B||this,c=ki(c),d=!!d,b=di(a)?a.SF(b,c,d,e):a?(a=li(a))?a.SF(b,c,d,e):null:null,b&&(ni(b),delete this.j[b.key])};
g.k.removeAll=function(){g.Ig(this.j,function(a,b){this.j.hasOwnProperty(b)&&ni(a)},this);
this.j={}};
g.k.xa=function(){g.Rk.Tf.xa.call(this);this.removeAll()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};dha.prototype.isInputValid=function(){return this.C};Sk.prototype.isInputValid=function(){return this.j!=3};
Sk.prototype.Zf=function(){return this.K};
Sk.prototype.qJ=function(){return!0};
Sk.prototype.parse=function(a){function b(m){m&128&&Tk(f,h,l,"invalid tag");(m&7)!=2&&Tk(f,h,l,"invalid wire type");f.C=m>>>3;f.C!=1&&f.C!=2&&f.C!=15&&Tk(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;f.D==5&&m&240&&Tk(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:Tk(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.W++;l++}a=f.N;f.N=[];return a.length>0?a:null};Uk.prototype.isInputValid=function(){return this.j===null};
Uk.prototype.Zf=function(){return this.j};
Uk.prototype.qJ=function(){return!1};
Uk.prototype.parse=function(a){this.j!==null&&fha(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||eha(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=rba(c.j.slice(0,d*4))}catch(h){eha(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){fha(this,a,h.message)}this.B+=a.length;return b};var ibb={INIT:0,xE:1,DO:2,Yz:3,sD:4,rD:5,STRING:6,BO:7,UW:8,hX:9,iX:10,jX:11,vV:12,wV:13,xV:14,yV:15,YW:16,ZW:17,aX:18,p7:19,CO:20};g.k=Wk.prototype;g.k.isInputValid=function(){return this.G!=3};
g.k.Zf=function(){return this.W};
g.k.done=function(){return this.G===2};
g.k.qJ=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Vk(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.DO:u==="["?f.j=m.sD:Vk(u)||Xk(f,a,r);continue;case m.BO:case m.DO:if(Vk(u))continue;if(f.j===m.BO)h.push(m.UW);else if(u==="}"){e("{}");f.j=d();continue}else h.push(m.Yz);u==='"'?f.j=m.STRING:Xk(f,a,r);continue;case m.UW:case m.Yz:if(Vk(u))continue;u===":"?(f.j===m.Yz&&(h.push(m.Yz),f.B++),f.j=m.xE):u==="}"?(f.B--,e(),f.j=d()):u===","?(f.j===m.Yz&&h.push(m.Yz),f.j=m.BO):Xk(f,a,r);continue;case m.sD:case m.xE:if(Vk(u))continue;
if(f.j===m.sD)if(f.B++,f.j=m.xE,u==="]"){f.B--;if(f.B===0){f.j=m.rD;return}e("[]");f.j=d();continue}else h.push(m.rD);u==='"'?f.j=m.STRING:u==="{"?f.j=m.DO:u==="["?f.j=m.sD:u==="t"?f.j=m.hX:u==="f"?f.j=m.vV:u==="n"?f.j=m.YW:u!=="-"&&("0123456789".indexOf(u)!==-1?f.j=m.CO:Xk(f,a,r));continue;case m.rD:if(u===",")h.push(m.rD),f.j=m.xE,f.B===1&&(q=r);else if(u==="]"){f.B--;if(f.B===0)return;e();f.j=d()}else if(Vk(u))continue;else Xk(f,a,r);continue;case m.STRING:var y=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-y;continue;case m.hX:if(!u)continue;u==="r"?f.j=m.iX:Xk(f,a,r);continue;case m.iX:if(!u)continue;u==="u"?f.j=m.jX:Xk(f,a,r);continue;case m.jX:if(!u)continue;u==="e"?f.j=d():Xk(f,a,r);continue;case m.vV:if(!u)continue;u==="a"?f.j=m.wV:
Xk(f,a,r);continue;case m.wV:if(!u)continue;u==="l"?f.j=m.xV:Xk(f,a,r);continue;case m.xV:if(!u)continue;u==="s"?f.j=m.yV:Xk(f,a,r);continue;case m.yV:if(!u)continue;u==="e"?f.j=d():Xk(f,a,r);continue;case m.YW:if(!u)continue;u==="u"?f.j=m.ZW:Xk(f,a,r);continue;case m.ZW:if(!u)continue;u==="l"?f.j=m.aX:Xk(f,a,r);continue;case m.aX:if(!u)continue;u==="l"?f.j=d():Xk(f,a,r);continue;case m.p7:u==="."?f.j=m.CO:Xk(f,a,r);continue;case m.CO:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j=
d();continue;default:Xk(f,a,r)}}}
function d(){var u=h.pop();return u!=null?u:m.xE}
function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.oa?f.K.push(u):f.K.push(JSON.parse(u)),q=r)}
for(var f=this,h=f.qa,l=f.Aa,m=ibb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Xk(f,a,r),null;case 2:return b()&&Xk(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if(t==="["){f.G=1;p=r;f.j=m.sD;continue}else Xk(f,a,r)}return null;case 1:return c(),f.B===0&&f.j==m.rD?(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};Yk.prototype.isInputValid=function(){return this.G===null};
Yk.prototype.Zf=function(){return this.G};
Yk.prototype.qJ=function(){return!1};
Yk.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 Wk({pna:!0,y8:!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(!Vk(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};Zk.prototype.RQ=function(){return this.j};
Zk.prototype.getStatus=function(){return this.D};
Zk.prototype.oa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.nj(this.j),c=this.j.B,d=this.j.getStatus(),e=g.pj(this.j);a=[];if(g.qj(this.j)instanceof Array){var f=g.qj(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.W=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?$k(this,7):c==7?$k(this,8):d||$k(this,3)),this.B||(this.B=gha(this.j),this.B==null&&$k(this,5)),this.D>2)al(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.qJ())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){$k(this,5);al(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){$k(this,5);al(this);break a}}b==4?(e.length!=
0||this.W?$k(this,2):$k(this,4),al(this)):$k(this,1)}}}catch(p){$k(this,6),al(this)}};g.k=hha.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.Yb(c,b);(a=this.j[a])&&g.Yb(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.mba=function(a){var b=this.B.data;b&&iha(a,b);(b=this.j.data)&&iha(a,b);this.j.data=[]};
g.k.bda=function(){switch(this.C.getStatus()){case 1:bl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:bl(this,"error");break;case 8:bl(this,"close");break;case 2:bl(this,"end")}};jha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return kha(function(h){var l=h.j,m=h.getMetadata(),n=nha(e,!1);m=oha(e,m,n,f+l.getName());var p=pha(n,l.B,!0);h=l.j(h.B);n.send(m,"POST",h);return p},this.D).call(this,Qga(d,b,c))};cl.prototype.create=function(a,b){return Rj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},bbb)};
cl.prototype.ping=function(a,b){return Rj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},cbb)};var jbb=1,kl=new WeakMap;g.z(dl,g.O);dl.prototype.signal=function(){var a=new fl(!1);this.signals.add(a);g.P(this,a);return a};
dl.prototype.xB=function(a){return el(this,a).xB()};
g.z(fl,g.O);g.k=fl.prototype;g.k.UO=function(){var a=this,b=jbb++;gl(function(){rha(a,b)});
return b};
g.k.detach=function(a){var b=this;gl(function(){var c=b.slots.get(a);c&&c.rY()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.xB=function(){return this.D_};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=qfa();gl(function(){if(c.Ia())d.reject(new Ni("Signal initially disposed"));else if(b&&b.Ia())d.reject(new Ni("Owner initially disposed"));else if(a&&c.SX&&c.JZ)d.resolve(c.D_);else if(c.DC.add(d),Mi(d.promise,function(){c.DC.delete(d)}),b){var e=function(){d.reject(new Ni("Owner asynchronously disposed"))};
Mi(d.promise,function(){var f=kl.get(b);f&&g.Yb(f,e)});
uha(b,e)}});
return d.promise};
g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);gl(function(){for(var b=g.w(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.rY,c();a.slots.clear();b=g.w(a.DC);for(c=b.next();!c.done;c=b.next())c.value.reject(new Ni("Signal asynchronously disposed"));a.DC.clear()})};
var il=[],jl=!1;g.z(ll,g.O);ll.prototype.start=function(){var a=this;if(this.Ia())throw new nl("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&&hl(el(d,a.C),a)}a.wb.cT(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&&hl(el(d,a.C),a)}a.wb.cT(a)},this.milliseconds);
this.state=1}};
ll.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new ml);var b;(b=this.wb.G0)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&hl(el(c,this.G))}}};
ll.prototype.xa=function(){this.clear();var a;(a=this.B)==null||a.reject(new nl);this.state=4;g.O.prototype.xa.call(this)};
ll.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.fa.Object.defineProperties(ll.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.Ej),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new ml("Timer has been cancelled."));case 4:return Promise.reject(new nl("Timer has been disposed."));default:cd(this.state)}}},
cT:{configurable:!0,enumerable:!0,get:function(){if(this.Ia())throw new nl("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new dl(this)),this.C=this.j.signal());return this.C}},
G0:{configurable:!0,enumerable:!0,get:function(){if(this.Ia())throw new nl("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new dl(this)),this.G=this.j.signal());return this.G}}});
g.z(ml,ob);g.z(nl,ob);g.z(ol,jk);g.k=ol.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.J(function(b){return g.G(b,a.C.promise,0)})};
g.k.zF=function(a){return yha(this,this.logger.VR("c",a===void 0?1:a,this.Ax.zF(Lj().j,null)),new Jj(10,"JVZ:Timeout"))};
g.k.prefetch=function(){this.state===1&&(this.kG=this.zF())};
g.k.start=function(){if(this.state===1){this.state=2;var a=new uj(this.logger,"r");this.ready().finally(function(){return void a.done()});
Aha(this)}};
g.k.ov=function(a){Bha(this,a);return Oga(this,xha(a),!1)};
g.k.qv=function(a){Bha(this,a);return Oga(this,xha(a),!0)};var Fha={NONE:0,cia:1},lia={S4:0,ila:1,hla:2,jla:3},Zl={D4:"a",Xha:"d",VIDEO:"v"};ql.prototype.isVisible=function(){return this.ey?this.ue>=.3:this.ue>=.5};var Al={Hha:0,uia:1},jia={NONE:0,hja:1,Bia:2};rl.prototype.getValue=function(){return this.B};
g.z(sl,rl);sl.prototype.C=function(a){this.B===null&&g.Qg(this.D,a)&&(this.B=a)};
g.z(tl,rl);tl.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)};
g.z(ul,rl);ul.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};vl.prototype.disable=function(){this.B=!1};
vl.prototype.enable=function(){this.B=!0};
vl.prototype.isEnabled=function(){return this.B};
vl.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Xm=document,El=window;var oja=!g.Hm&&!Mb();Bl.prototype.now=function(){return 0};
Bl.prototype.B=function(){return 0};
Bl.prototype.C=function(){return 0};
Bl.prototype.j=function(){return 0};g.z(Dl,Bl);Dl.prototype.now=function(){return Cl()&&El.performance.now?El.performance.now():Bl.prototype.now.call(this)};
Dl.prototype.B=function(){return Cl()&&El.performance.memory?El.performance.memory.totalJSHeapSize||0:Bl.prototype.B.call(this)};
Dl.prototype.C=function(){return Cl()&&El.performance.memory?El.performance.memory.usedJSHeapSize||0:Bl.prototype.C.call(this)};
Dl.prototype.j=function(){return Cl()&&El.performance.memory?El.performance.memory.jsHeapSizeLimit||0:Bl.prototype.j.call(this)};var Iha=Ci(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Na.addEventListener("test",null,b)}catch(c){}return a});Jha.prototype.isVisible=function(){return Hl(Xm)===1};var Lha={vga:"allow-forms",wga:"allow-modals",xga:"allow-orientation-lock",yga:"allow-pointer-lock",zga:"allow-popups",Aga:"allow-popups-to-escape-sandbox",Bga:"allow-presentation",Cga:"allow-same-origin",Dga:"allow-scripts",Ega:"allow-top-navigation",Fga:"allow-top-navigation-by-user-activation"},Pha=Ci(function(){return Mha()});var Tha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ml.prototype.xe=function(a,b,c){a=a+"//"+b+c;var d=Xha(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=Wha(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};Ul.prototype.setInterval=function(a,b){return El.setInterval(a,b)};
Ul.prototype.clearInterval=function(a){El.clearInterval(a)};
Ul.prototype.setTimeout=function(a,b){return El.setTimeout(a,b)};
Ul.prototype.clearTimeout=function(a){El.clearTimeout(a)};g.z(Wl,Qe);Wl.prototype.j=Cda([0,yab,Bab,-2,Eab]);var kia={Nka:1,B7:2,gka:3};mia.prototype.BT=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Jc;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 A1=null;var bm=g.Na.performance,kbb=!!(bm&&bm.mark&&bm.measure&&bm.clearMarks),$l=Ci(function(){var a;if(a=kbb){var b;if(A1===null){A1="";try{a="";try{a=g.Na.top.location.hash}catch(c){a=g.Na.location.hash}a&&(A1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=A1;a=!!b.indexOf&&b.indexOf("1337")>=0}return a});
am.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&($l()&&g.lc(this.events,sia),this.events.length=0)};
am.prototype.start=function(a,b){if(!this.j)return null;var c=qia()||pia();a=new ria(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";bm&&$l()&&bm.mark(b);return a};
am.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=qia()||pia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";bm&&$l()&&bm.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};tia.prototype.YR=function(a,b,c,d,e){e=e||this.DY;try{var f=new Ml;f.j.push(1);f.B[1]=Nl("context",a);b.error&&b.meta&&b.id||(b=new fm(gm(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Nl("msg",h)}var l=b.meta||{};if(this.QO)try{this.QO(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Vha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Nl("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(Zi);var r=Xi(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5);
f.B[5]=n;nia(this.j,e,f,c)}catch(t){try{nia(this.j,e,{context:"ecmserr",rctx:a,msg:gm(t),url:m&&m.j.url},c)}catch(u){}}return this.CU};
g.z(fm,oia);var dm,em,cm=new am;dm=new function(){var a="https:";El&&El.location&&El.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01};
em=new tia;El&&El.document&&(El.document.readyState=="complete"?via():cm.j&&Gl(El,"load",function(){via()}));var yia=Date.now(),um=-1,sm=-1,Qja,vm=-1,tm=!1;g.k=wm.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new wm(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof wm?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};Am.prototype.Ib=function(){return this.N};var lbb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Sn={v7:"start",X4:"firstquartile",m7:"midpoint",w7:"thirdquartile",COMPLETE:"complete",ERROR:"error",l7:"metric",PAUSE:"pause",r7:"resume",s7:"skip",A7:"viewable_impression",o7:"mute",y7:"unmute",Y4:"fullscreen",V4:"exitfullscreen",L4:"bufferstart",K4:"bufferfinish",Z4:"fully_viewable_audible_half_duration_impression",k7:"measurable_impression",B4:"abandon",U4:"engagedview",d5:"impression",P4:"creativeview",j7:"loaded",
Rka:"progress",CLOSE:"close",Dha:"collapse",Aka:"overlay_resize",Bka:"overlay_unmeasurable_impression",Cka:"overlay_unviewable_impression",Eka:"overlay_viewable_immediate_impression",Dka:"overlay_viewable_end_of_session_impression",Q4:"custom_metric_viewable",E4:"audio_audible",G4:"audio_measurable",F4:"audio_impression"},ala="start firstquartile midpoint thirdquartile resume loaded".split(" "),bla=["start","firstquartile","midpoint","thirdquartile"],Sja=["abandon"],mo={UNKNOWN:-1,v7:0,X4:1,m7:2,
w7:3,COMPLETE:4,l7:5,PAUSE:6,r7:7,s7:8,A7:9,o7:10,y7:11,Y4:12,V4:13,Z4:14,k7:15,B4:16,U4:17,d5:18,P4:19,j7:20,Q4:21,L4:22,K4:23,F4:27,G4:28,E4:29};var Bia={jga:"addEventListener",Dia:"getMaxSize",Eia:"getScreenSize",Fia:"getState",Gia:"getVersion",dla:"removeEventListener",Dja:"isViewable"};g.k=g.Cm.prototype;g.k.clone=function(){return new g.Cm(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Eg?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.Gg(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 Fia={};Oia.prototype.update=function(a){a&&a.document&&(this.N=Bm(!1,a,this.isMobileDevice),this.j=Bm(!0,a,this.isMobileDevice),Qia(this,a),Pia(this,a))};Zm.prototype.cancel=function(){Vl().clearTimeout(this.j);this.j=null};
Zm.prototype.schedule=function(){var a=this,b=Vl(),c=Yl().j.j;this.j=b.setTimeout(Xl(c,im(143,function(){a.B++;a.C.sample()})),zia())};g.k=$m.prototype;g.k.QD=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.KA=function(){return this.j.Fa};
g.k.gG=function(){return this.j.oa};
g.k.cj=function(a,b){if(!this.oa||(b===void 0?0:b))this.oa=!0,this.Fa=a,this.Z=0,this.j!=this||bn(this)};
g.k.getName=function(){return this.j.Oa};
g.k.xu=function(){return this.j.bZ()};
g.k.bZ=function(){return{}};
g.k.qs=function(){return this.j.Z};
g.k.nW=function(){var a=Wm();a.j=Bm(!0,this.C,a.isMobileDevice)};
g.k.oW=function(){Pia(Wm(),this.C)};
g.k.qZ=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.WA=function(a){var b=this.j;this.j=a.qs()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,bn(this)):this.K!==this.j.K&&(this.K=this.j.K,bn(this))};
g.k.Hu=function(a){if(a.B===this.j){var b=this.D,c=this.W;b=!(a&&(c===void 0||!c||b.volume==a.volume)&&b.C==a.C&&ym(b.j,a.j));this.D=a;b&&Tia(this)}};
g.k.gr=function(){return this.W};
g.k.dispose=function(){this.Ca=!0};
g.k.Ia=function(){return this.Ca};g.k=cn.prototype;g.k.observe=function(){return!0};
g.k.unobserve=function(){};
g.k.dispose=function(){if(!this.Ia()){var a=this.B;g.Yb(a.G,this);a.W&&this.gr()&&Sia(a);this.unobserve();this.Aa=!0}};
g.k.Ia=function(){return this.Aa};
g.k.xu=function(){return this.B.xu()};
g.k.qs=function(){return this.B.qs()};
g.k.KA=function(){return this.B.KA()};
g.k.gG=function(){return this.B.gG()};
g.k.WA=function(){};
g.k.Hu=function(){this.Ut()};
g.k.gr=function(){return this.Ca};g.k=dn.prototype;g.k.qs=function(){return this.j.qs()};
g.k.KA=function(){return this.j.KA()};
g.k.gG=function(){return this.j.gG()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.hJ(a,b,c),an(this.j,d));return d};
g.k.pW=function(){return this.RD()};
g.k.RD=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(an(this.j,this),this.D=a,!0):!1};
g.k.WA=function(a){a.qs()==0&&this.D(a.KA(),this)};
g.k.Hu=function(){};
g.k.gr=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.Ia=function(){return this.G};
g.k.xu=function(){return{}};en.prototype.add=function(a,b,c){++this.C;a=new Via(a,b,c);this.j.push(new Via(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};$ia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=gn(this.j);b.length>0&&(a+="?"+b);return a};hn.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 eja=[1,.75,.5,.3,0];jn.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)}};pn.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.ue):b.ue;this.qa=Math.max(this.qa,b.ue);this.Aa=this.Aa!=-1?Math.min(this.Aa,b.Zk):b.Zk;this.Fa=Math.max(this.Fa,b.Zk);this.kb.update(b.Zk,c.Zk,b.j,a,d);this.Ka+=a;b.ue===0&&(this.Oa+=a);this.B.update(b.ue,c.ue,b.j,a,d);c=d||c.ey!=b.ey?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ta.update(c,a,b)};
pn.prototype.Ds=function(){return this.Ta.C>=this.ib};if(Xm&&Xm.URL){var mbb=Xm.URL,nbb;if(nbb=!!mbb){var obb;a:{if(mbb){var pbb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var B1=pbb.exec(decodeURIComponent(mbb));if(B1){obb=B1[1]&&B1[1].length>1?B1[1].substring(1):"true";break a}}catch(a){}}obb=""}nbb=obb.length>0}em.CU=!nbb};var qbb=new wm(0,0,0,0);var mja=new wm(0,0,0,0);g.z(un,g.O);g.k=un.prototype;
g.k.xa=function(){if(this.zk.j){if(this.tx.lS){var a=this.zk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.tx.lS,Fl());this.tx.lS=null}this.tx.kS&&(a=this.zk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.tx.kS,Fl()),this.tx.kS=null)}this.sI&&this.sI.dispose();this.Qe&&this.Qe.dispose();delete this.IL;delete this.ZR;delete this.U3;delete this.zk.Zu;delete this.zk.j;delete this.tx;delete this.sI;delete this.Qe;delete this.Jc;g.O.prototype.xa.call(this)};
g.k.Cu=function(){return this.Qe?this.Qe.j:this.position};
g.k.BT=function(a){Yl().BT(a)};
g.k.gr=function(){return!1};
g.k.IK=function(){return new pn};
g.k.Mj=function(){return this.IL};
g.k.fZ=function(a){return qja(this,a,1E4)};
g.k.Ra=function(a,b,c,d,e,f,h){this.Mu||(this.rF&&(a=this.aP(a,c,e,h),d=d&&this.Bi.ue>=(this.ey()?.3:.5),this.hV(f,a,d),this.Jq=b,a.ue>0&&-1===this.x3&&(this.x3=b),this.C3==-1&&this.Ds()&&(this.C3=b),this.SR==-2&&(this.SR=sn(this.Cu())?a.ue:-1),this.Bi=a),this.ZR(this))};
g.k.hV=function(a,b,c){this.Mj().update(a,b,this.Bi,c)};
g.k.EQ=function(){return new ql};
g.k.aP=function(a,b,c,d){c=this.EQ();c.j=b;b=Vl().B;b=Hl(Xm)===0?-1:b.isVisible()?0:1;c.B=b;c.ue=this.wP(a);c.ey=this.ey();c.Zk=d;return c};
g.k.wP=function(a){return this.opacity===0&&yl(this.Jc,"opac")===1?0:a};
g.k.ey=function(){return!1};
g.k.qN=function(){return this.L$||this.O$};
g.k.Ey=function(){rm()};
g.k.PB=function(){rm()};
g.k.tq=function(){return 0};
g.k.Ds=function(){return this.IL.Ds()};
g.k.tZ=function(){var a=this.rF;a=(this.hasCompleted||this.Ia())&&!a;var b=Yl().B!==2||this.Dfa;return this.Mu||b&&a?2:this.Ds()?4:3};
g.k.vK=function(){return 0};g.wn.prototype.next=function(){return g.C1};
g.C1={done:!0,value:void 0};g.wn.prototype.Km=function(){return this};g.z(wja,ql);var D1=yja([void 0,1,2,3,4,8,16]),E1=yja([void 0,4,8,16]),rbb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:An("p0",E1),p1:An("p1",E1),p2:An("p2",E1),p3:An("p3",E1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:zn("mtos1",[0,2,4],!1,E1),mtos2:zn("mtos2",[0,2,4],!1,E1),mtos3:zn("mtos3",[0,2,4],!1,E1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:An("a0",E1),a1:An("a1",E1),a2:An("a2",E1),a3:An("a3",E1),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:An("c0",E1),c1:An("c1",E1),c2:An("c2",E1),c3:An("c3",E1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:An("qmtos",D1),qnc:An("qnc",D1),qmv:An("qmv",D1),qnv:An("qnv",D1),
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:An("ss0",E1),ss1:An("ss1",E1),ss2:An("ss2",E1),ss3:An("ss3",E1),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",tm:"tm",tu:"tu"},sbb=Object.assign({},rbb,{avid:Ai("audio"),avas:"avas",vs:"vs"}),tbb={atos:"atos",avt:zn("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"};En.prototype.getValue=function(){return this.B};
En.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.z(Fn,pn);
Fn.prototype.update=function(a,b,c,d){if(!b.paused){pn.prototype.update.call(this,a,b,c,d);var e=yn(b)&&yn(c),f=(d?Math.min(b.ue,c.ue):c.ue)>=.5;Um(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.Ca+=a,this.W+=e?a:0);this.j.update(b.ue,c.ue,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.oa.update(c.fullscreen,a);this.rb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ja.update(a,b.isVisible());this.Ya.update(a,b.ue>=1);this.Va.update(a,
yn(b))}};Eja.prototype.B=function(a){this.C||(this.j(a)?(a=Pka(this.W,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.z(Hn,Eja);Hn.prototype.j=function(){return!0};
Hn.prototype.K=function(){return!1};
Hn.prototype.getId=function(){var a=this,b=Rg(Sn,function(c){return c==a.D});
return mo[b].toString()};
Hn.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.z(In,Hn);In.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);Hn.prototype.B.call(this,a)};g.z(Jn,Fja);Jn.prototype.B=function(){return null};
Jn.prototype.C=function(){return[]};g.z(Kn,cn);g.k=Kn.prototype;g.k.cP=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=Lia(a.getBoundingClientRect())}catch(n){c=new wm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Iia(a,b),h=f.x,l=f.y;var m=new wm(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=qbb.clone()}this.C=m;this.j=Uia(this,this.C)}};
g.k.TX=function(){this.K=this.B.D.j};
g.k.n_=function(a){var b=yl(this.Jc,"od")==1;return lja(a,this.K,this.element,b)};
g.k.UX=function(){this.timestamp=rm()};
g.k.Ut=function(){this.UX();this.cP();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Gg(a.videoWidth,a.videoHeight);a=this.j;var c=xm(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.TX();
a=this.j;c=this.K;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new wm(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 wm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new wm(0,0,0,0):a;a=this.B.D;b=e=d=0;if((this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0)if(this.n_(c))c=new wm(0,0,0,0);else{d=Wm().D;b=new wm(0,d.height,d.width,0);var f;d=tn(c,(f=this.G)!=null?f:this.j);e=tn(c,Wm().j);b=tn(c,b)}f=c.top>=c.bottom||
c.left>=c.right?new wm(0,0,0,0):zm(c,-this.j.left,-this.j.top);Ym()||(e=d=0);this.W=new Am(a,this.element,this.j,f,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var ubb=new wm(0,0,0,0);g.z(Ln,Kn);g.k=Ln.prototype;g.k.observe=function(){this.D();return!0};
g.k.Hu=function(){Kn.prototype.Ut.call(this)};
g.k.UX=function(){};
g.k.cP=function(){};
g.k.Ut=function(){this.D();Kn.prototype.Ut.call(this)};
g.k.WA=function(a){a=a.isActive();a!==this.Z&&(a?this.D():(Wm().j=new wm(0,0,0,0),this.j=new wm(0,0,0,0),this.K=new wm(0,0,0,0),this.timestamp=-1));this.Z=a};var F1={},Pja=(F1.firstquartile=0,F1.midpoint=1,F1.thirdquartile=2,F1.complete=3,F1);g.z(Nn,un);g.k=Nn.prototype;g.k.gr=function(){return!0};
g.k.Uo=function(){return this.Mk==2};
g.k.fZ=function(a){return qja(this,a,Math.max(1E4,this.C/3))};
g.k.Ra=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.$g(m,e);this.C=m.duration||this.C;this.W=m.isVpaid||this.W;this.Oa=m.isYouTube||this.Oa;Vl();this.kb=!1;e=Hja(this,b);Gja(this)===1&&(f=e);un.prototype.Ra.call(this,a,b,c,d,m,f,h);this.Gs&&this.Gs.C&&g.lc(this.K,function(n){n.B(l)})};
g.k.hV=function(a,b,c){un.prototype.hV.call(this,a,b,c);Qn(this).update(a,b,this.Bi,c);this.ib=yn(this.Bi)&&yn(b);this.Fa==-1&&this.Ya&&(this.Fa=this.Mj().C.j);this.Lg.C=0;a=this.Ds();b.isVisible()&&Dn(this.Lg,"vs");a&&Dn(this.Lg,"vw");Um(b.volume)&&Dn(this.Lg,"am");yn(b)?Dn(this.Lg,"a"):Dn(this.Lg,"mut");this.iB&&Dn(this.Lg,"f");b.B!=-1&&(Dn(this.Lg,"bm"),b.B==1&&(Dn(this.Lg,"b"),yn(b)&&Dn(this.Lg,"umutb")));yn(b)&&b.isVisible()&&Dn(this.Lg,"avs");this.ib&&a&&Dn(this.Lg,"avw");b.ue>0&&Dn(this.Lg,
"pv");Rn(this,this.Mj().C.j,!0)&&Dn(this.Lg,"gdr");nn(this.Mj().B,1)>=2E3&&Dn(this.Lg,"pmx");this.kb&&Dn(this.Lg,"tvoff")};
g.k.IK=function(){return new Fn};
g.k.Mj=function(){return this.IL};
g.k.EQ=function(){return new wja};
g.k.aP=function(a,b,c,d){a=un.prototype.aP.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.iB;a.paused=this.Uo();a.volume=c.volume;Um(a.volume)||(this.Kb++,b=this.Bi,Um(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a};
g.k.wP=function(a){return Wm(),this.iB?1:un.prototype.wP.call(this,a)};
g.k.tq=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.tZ=function(){return this.Mu?2:Jja(this)?5:this.Ds()?4:3};
g.k.vK=function(){return this.rb?this.Mj().G.C>=2E3?4:3:2};var vbb=g.Za();$ja.prototype.reset=function(){this.j=[];this.B=[]};
var Xn=Tl($ja);g.z($n,dn);g.k=$n.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.xu=function(){return(this.B?this.B:this.j).xu()};
g.k.qs=function(){return(this.B?this.B:this.j).qs()};
g.k.init=function(a){var b=!1;(0,g.lc)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,an(this.j,this));return b};
g.k.dispose=function(){(0,g.lc)(this.C,function(a){a.dispose()});
dn.prototype.dispose.call(this)};
g.k.pW=function(){return Vm(this.C,function(a){return a.QD()})};
g.k.RD=function(){return Vm(this.C,function(a){return a.QD()})};
g.k.hJ=function(a,b,c){return new Kn(a,this.j,b,c)};
g.k.Hu=function(a){this.B=a.B};var ika={threshold:[0,.3,.5,.75,1]};g.z(ao,Kn);g.k=ao.prototype;g.k.observe=function(){var a=this;this.qa||(this.qa=rm());if(xia(298,function(){return jka(a)}))return!0;
this.B.cj("msf");return!1};
g.k.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.Z?(this.Z.unobserve(this.element),this.Z=null):this.N&&(this.N.disconnect(),this.N=null)}catch(a){}};
g.k.Ut=function(){var a=bo(this);a.length>0&&co(this,a);Kn.prototype.Ut.call(this)};
g.k.cP=function(){};
g.k.n_=function(){return!1};
g.k.TX=function(){};
g.k.xu=function(){var a={};return Object.assign(this.B.xu(),(a.niot_obs=this.qa,a.niot_cbk=this.oa,a))};
g.k.getName=function(){return"nio"};g.z(eo,dn);eo.prototype.getName=function(){return"nio"};
eo.prototype.RD=function(){return!Wm().B&&this.j.j.C.IntersectionObserver!=null};
eo.prototype.hJ=function(a,b,c){return new ao(a,this.j,b,c)};g.z(fo,$m);fo.prototype.qZ=function(){return Wm().j};
fo.prototype.QD=function(){var a=lka();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,bn(this)),this.Z=a);return a==2};go.prototype.sample=function(){jo(this,Yn(),!1)};
go.prototype.D=function(){var a=Ym(),b=rm();a?(tm||(um=b,g.lc(Xn.j,function(c){var d=c.Mj();d.Ua=Gn(d,b,c.Mk!=1)})),tm=!0):(this.N=qka(this,b),tm=!1,Qja=b,g.lc(Xn.j,function(c){c.rF&&(c.Mj().Z=b)}));
jo(this,Yn(),!a)};
var ho=Tl(go);var ska=null,Lo="",Ko=!1;var vka=uka().bq,lo=uka().eq;var yka={via:"visible",aha:"audible",Qla:"time",Rla:"timetype"},zka={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)}};
xka.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.z(po,Hn);po.prototype.getId=function(){return this.N};
po.prototype.K=function(){return!0};
po.prototype.j=function(a){var b=a.Mj(),c=a.getDuration();return Vm(this.Z,function(d){if(d.j!=void 0)var e=Bka(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.z(qo,Aja);qo.prototype.j=function(a){var b=new zja;b.j=Cn(a,rbb);b.B=Cn(a,tbb);return b};g.z(ro,Hn);ro.prototype.j=function(a){return Jja(a)};g.z(so,Fja);g.z(to,Hn);to.prototype.j=function(a){return a.Mj().Ds()};g.z(uo,In);uo.prototype.j=function(a){var b=g.Wb(this.N,yl(Yl().Jc,"ovms"));return!a.Mu&&(a.Mk!=0||b)};g.z(vo,so);vo.prototype.B=function(){return new uo(this.j)};
vo.prototype.C=function(){return[new to("viewable_impression",this.j),new ro(this.j)]};g.z(wo,Ln);wo.prototype.D=function(){var a=g.Pa("ima.admob.getViewability"),b=yl(this.Jc,"queryid");typeof a==="function"&&b&&a(b)};
wo.prototype.getName=function(){return"gsv"};g.z(xo,dn);xo.prototype.getName=function(){return"gsv"};
xo.prototype.RD=function(){var a=Wm();Yl();return a.B&&!1};
xo.prototype.hJ=function(a,b,c){return new wo(this.j,b,c)};g.z(yo,Ln);yo.prototype.D=function(){var a=this,b=g.Pa("ima.bridge.getNativeViewability"),c=yl(this.Jc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.Sg(d)&&a.N++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Mia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?ubb.clone():Mia(e);a.timestamp=d.opt_nativeTime||-1;Wm().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})};
yo.prototype.getName=function(){return"nis"};g.z(zo,dn);zo.prototype.getName=function(){return"nis"};
zo.prototype.RD=function(){var a=Wm();Yl();return a.B&&!1};
zo.prototype.hJ=function(a,b,c){return new yo(this.j,b,c)};g.z(Ao,$m);g.k=Ao.prototype;g.k.QD=function(){return this.B.Yo!=null};
g.k.bZ=function(){var a={};this.Ja&&(a.mraid=this.Ja);this.Aa&&(a.mlc=1);a.mtop=this.B.afa;this.N&&(a.mse=this.N);this.Ka&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Nv=function(a){var b=g.Ea.apply(1,arguments);try{return this.B.Yo[a].apply(this.B.Yo,b)}catch(c){jm(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.gG();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.cj("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.cj("w"),!1;Wm().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?Fka(this):rn(this.C,"load",function(){Vl().setTimeout(im(292,function(){return Fka(a)}),100)},292);
return!0};
g.k.nW=function(){var a=Wm(),b=Kka(this,"getMaxSize");a.j=new wm(0,b.width,b.height,0)};
g.k.oW=function(){Wm().D=Kka(this,"getScreenSize")};
g.k.dispose=function(){Hka(this);$m.prototype.dispose.call(this)};var hia=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=Co.prototype;g.k.bK=function(a){vn(a,!1);dka(a)};
g.k.SK=function(){};
g.k.MH=function(a,b,c,d){var e=this;a=new Nn(El,a,c?b:-1,7,this.IP(),this.kY());a.pj=d;Dha(a.Jc);xl(a.Jc,"queryid",a.pj);a.BT("");tja(a,function(){return e.AZ.apply(e,g.x(g.Ea.apply(0,arguments)))},function(){return e.p$.apply(e,g.x(g.Ea.apply(0,arguments)))});
(d=Tl(Zn).j)&&pja(a,d);a.zk.Zu&&Tl(mka);return a};
g.k.WA=function(a){switch(a.qs()){case 0:if(a=Tl(Zn).j)a=a.j,g.Yb(a.G,this),a.W&&this.gr()&&Sia(a);Jo();break;case 2:io()}};
g.k.Hu=function(){};
g.k.gr=function(){return!1};
g.k.p$=function(a,b){a.Mu=!0;switch(a.tq()){case 1:Qka(a,b);break;case 2:this.LT(a)}};
g.k.y$=function(a){var b=a.N(a);b&&(b=b.volume,a.rb=Um(b)&&b>0);Mja(a,0);return Tn(a,"start",Ym())};
g.k.hD=function(a,b,c){jo(ho,[a],!Ym());return this.uq(a,b,c)};
g.k.uq=function(a,b,c){return Tn(a,c,Ym())};
g.k.t$=function(a){return Po(a,"firstquartile",1)};
g.k.v$=function(a){a.Ya=!0;return Po(a,"midpoint",2)};
g.k.z$=function(a){return Po(a,"thirdquartile",3)};
g.k.q$=function(a){var b=Po(a,"complete",4);On(a);return b};
g.k.r$=function(a){a.Mk=3;return Tn(a,"error",Ym())};
g.k.v2=function(a,b,c){b=Ym();if(a.Uo()&&!b){var d=a.Mj(),e=rm();d.Z=e}jo(ho,[a],!b);a.Uo()&&(a.Mk=1);return Tn(a,c,b)};
g.k.x$=function(a,b){b=this.hD(a,b||{},"skip");On(a);return b};
g.k.u$=function(a,b){vn(a,!0);return this.hD(a,b||{},"fullscreen")};
g.k.s$=function(a,b){vn(a,!1);return this.hD(a,b||{},"exitfullscreen")};
g.k.qT=function(a,b,c){b=a.Mj();var d=rm();b.Ua=Gn(b,d,a.Mk!=1);jo(ho,[a],!Ym());a.Mk==1&&(a.Mk=2);return Tn(a,c,Ym())};
g.k.w$=function(a){jo(ho,[a],!Ym());return a.B()};
g.k.bR=function(a){jo(ho,[a],!Ym());this.m2(a);On(a);return a.B()};
g.k.AZ=function(){};
g.k.LT=function(){};
g.k.m2=function(){};
g.k.qW=function(){};
g.k.JP=function(){};
g.k.kY=function(){this.j||(this.j=this.JP());return this.j==null?new Jn:new vo(this.j)};
g.k.IP=function(){return new qo};g.z(Qo,Hn);Qo.prototype.j=function(a){return a.vK()==4};g.z(Ro,In);Ro.prototype.j=function(a){a=a.vK();return a==3||a==4};g.z(So,so);So.prototype.B=function(){return new Ro(this.j)};
So.prototype.C=function(){return[new Qo(this.j)]};g.z(To,Aja);To.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 zja;b.j=Cn(a,sbb);b.B=Cn(a,tbb);return b};Uka.prototype.B=function(){return g.Pa(this.j)};g.z(Uo,Co);g.k=Uo.prototype;g.k.SK=function(a,b){var c=this,d=Tl(Zn);if(d.j!=null)switch(d.j.getName()){case "nis":var e=Yka(this,a,b);break;case "gsv":e=Xka(this,a,b);break;case "exc":e=Zka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Ska(this,a,b.opt_adElement,b.opt_osdId)));e&&e.tq()==1&&(e.N==g.Bi&&(e.N=function(f){return c.qW(f)}),Wka(this,e,b));
return e};
g.k.qW=function(a){a.B=0;a.Ca=0;if(a.D=="h"||a.D=="n"){Yl();a.Va&&(Yl(),No(this)!="h"&&No(this));var b=g.Pa("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.pj)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.Pa("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.pj)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.Pa("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.pj)}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.Sg(c)?a.B|=32:c.errorCode!=null&&(a.Ca=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in lbb)b[d]==null&&(a.Z|=lbb[d]);Tka(b,"currentTime");Tka(b,"duration");Um(c.volume)&&Um()&&(c.volume*=NaN);return c};
g.k.JP=function(){Yl();No(this)!="h"&&No(this);var a=$ka(this);return a!=null?new Uka(a):null};
g.k.LT=function(a){!a.j&&a.Mu&&Oo(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.m2=function(a){a.Y2&&(a.Ds()?Oo(this,a,"overlay_viewable_end_of_session_impression"):Oo(this,a,"overlay_unviewable_impression"),a.Y2=!1)};
g.k.AZ=function(){};
g.k.MH=function(a,b,c,d){if(iia()){var e=yl(Yl().Jc,"mm"),f={};(e=(f[Zl.D4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Zl.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&ela(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&jm(1044,Error())}a=Co.prototype.MH.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new uja),b.j[a.pj]=a.G,a.G.G=vbb);return a};
g.k.bK=function(a){a&&a.tq()==1&&this.D&&delete this.G.j[a.pj];return Co.prototype.bK.call(this,a)};
g.k.kY=function(){this.j||(this.j=this.JP());return this.j==null?new Jn:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new So(this.j):new vo(this.j)};
g.k.IP=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new To:new qo};
var wbb=hm(193,gla,void 0,Rka);g.Oa("Goog_AdSense_Lidar_sendVastEvent",wbb);var xbb=im(194,function(a,b){b=b===void 0?{}:b;a=dla(Tl(Uo),a,b);return fla(a)});
g.Oa("Goog_AdSense_Lidar_getViewability",xbb);var ybb=hm(195,function(){return cia()});
g.Oa("Goog_AdSense_Lidar_getUrlSignalsArray",ybb);var zbb=im(196,function(){return JSON.stringify(cia())});
g.Oa("Goog_AdSense_Lidar_getUrlSignalsList",zbb);var Vva=na(["//tpc.googlesyndication.com/sodar/",""]);g.k=mla.prototype;g.k.GP=function(a){this.wpc.c(a)};
g.k.ov=function(a){return this.wpc.m(lla(a))};
g.k.qv=function(a){return this.wpc.mws(lla(a))};
g.k.dispose=function(){};
g.k.Ia=function(){return!1};
Vo.prototype.snapshot=function(a){return this.dh.s(Object.assign({},a.Hj&&{c:a.Hj},a.BU&&{s:a.BU},a.EU!==void 0&&{p:a.EU}))};
Vo.prototype.AM=function(a){this.dh.e(a)};
Vo.prototype.dispose=function(){ola(this);this.C=!0};
Vo.prototype.Ia=function(){return this.C};var kna=(new Date).getTime();var pla="://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(" "),qla=/\bocr\b/;var sla=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Abb=0,Bbb=0,Cbb=0;var dp;g.Xo=null;g.Zo=!1;g.ep=1;dp=Symbol("SIGNAL");g.fp={version:0,y_:0,Sm:!1,gg:void 0,Yy:void 0,Gn:void 0,VL:0,ij:void 0,Wu:void 0,bF:!1,zP:!1,V1:function(){return!1},
W1:function(){},
AP:function(){},
Cna:function(){}};var Dbb=Symbol("UNSET"),Ebb=Symbol("COMPUTING"),Fbb=Symbol("ERRORED");Object.assign({},g.fp,{value:Dbb,Sm:!0,error:null,YP:tla,V1:function(a){return a.value===Dbb||a.value===Ebb},
W1:function(a){if(a.value===Ebb)throw Error("Detected cycle in computations.");var b=a.value;a.value=Ebb;var c=g.wla(a);try{var d=a.Ana()}catch(e){d=Fbb,a.error=e}finally{g.xla(a,c)}b!==Dbb&&b!==Fbb&&d!==Fbb&&a.YP(b,d)?a.value=b:(a.value=d,a.version++)}});var Ala;g.Cla=null;Ala=Object.assign({},g.fp,{YP:tla,value:void 0});Object.assign({},g.fp,{zP:!0,bF:!1,AP:function(a){a.schedule!==null&&a.schedule(a.UM)},
eR:!1,wna:function(){}});g.gp(!0);g.G1=g.gp(!1);g.Gbb={K8:!0,L8:!0,N8:!1,vfa:bab,R$:!1};var Fla=Object.prototype.hasOwnProperty;hp.prototype=Object.create(null);g.Hbb=g.ip();g.sp=null;var Kla=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};g.lp=null;g.np=null;g.jp=null;g.op=null;g.pp=[];g.rp=Jla;g.qp=[];g.Ibb=function(a){return Lla(function(b,c,d){g.jp=g.np=b;g.np=null;c(d);g.mp(null);g.np=g.jp;g.jp=g.jp.parentNode;return b},a)}();
g.Jbb=function(a){return Lla(function(b,c,d){var e={nextSibling:b};g.np=e;c(d);g.jp&&g.mp(b.nextSibling);return e===g.np?null:g.np},a)}();g.H1=new hp;var Kbb=g.ip();g.tp=Object.assign({},{attributes:Kbb,handleError:function(a){throw a;}},g.Gbb);var Lbb=Symbol("updater");g.z(wp,g.qi);wp.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Vo.wk(this.G);delete wp.instance};
wp.prototype.rh=function(){return this.j};
wp.prototype.Le=function(){var a=this;this.G=this.Vo.aj(function(){var b;return g.J(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ea(3):g.G(c,vp(a),3):g.G(c,vp(a),3);a.Le();g.va(c)})},3E4)};yp.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)};
yp.prototype.get=function(a){return!!this.data[a]};var Ap;g.bb(g.Dp,g.O);g.k=g.Dp.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Ola(this),b=Pla(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.ji(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(ifa(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=Ola(this),b=Pla(this);a&&!b&&this.B.mozRequestAnimationFrame?ni(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.i6=function(){this.D&&this.j&&ni(this.j);this.j=null;this.K.call(this.G,g.Za())};
g.k.xa=function(){this.stop();g.Dp.Tf.xa.call(this)};g.bb(g.Ep,g.O);g.k=g.Ep.prototype;g.k.SD=0;g.k.xa=function(){g.Ep.Tf.xa.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.SD=g.Pi(this.C,a!==void 0?a:this.gj)};
g.k.stop=function(){this.isActive()&&g.Na.clearTimeout(this.SD);this.SD=0};
g.k.isActive=function(){return this.SD!=0};
g.k.rW=function(){this.SD=0;this.j&&this.j.call(this.B)};g.Ip.prototype[Symbol.iterator]=function(){return this};
g.Ip.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.bb(g.Rp,g.qi);g.k=g.Rp.prototype;g.k.isPlaying=function(){return this.j==1};
g.k.isPaused=function(){return this.j==-1};
g.k.dM=function(){this.xo("begin")};
g.k.Ns=function(){this.xo("end")};
g.k.onFinish=function(){this.xo("finish")};
g.k.onStop=function(){this.xo("stop")};
g.k.xo=function(a){this.dispatchEvent(a)};var Mbb=Ci(function(){var a=g.qh("DIV"),b=g.mh?"-webkit":Gm?"-moz":g.Hm?"-ms":null,c="transition:opacity 1s linear;";b&&(c+=b+"-transition:opacity 1s linear;");b=uea({style:c});if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("");a.innerHTML=g.ag(b);return g.Im(a.firstChild,"transition")!=""});g.bb(Sp,g.Rp);g.k=Sp.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.dM();this.xo("play");this.startTime=g.Za();this.j=1;if(Mbb())return g.Fm(this.B,this.K),this.C=g.Pi(this.Gda,void 0,this),!0;this.mO(!1);return!1};
g.k.Gda=function(){g.Rm(this.B);Sla(this.B,this.N);g.Fm(this.B,this.D);this.C=g.Pi((0,g.Xa)(this.mO,this,!1),this.G*1E3)};
g.k.stop=function(){this.isPlaying()&&this.mO(!0)};
g.k.mO=function(a){g.Fm(this.B,"transition","");g.Na.clearTimeout(this.C);g.Fm(this.B,this.D);this.endTime=g.Za();this.j=0;if(a)this.onStop();else this.onFinish();this.Ns()};
g.k.xa=function(){this.stop();Sp.Tf.xa.call(this)};
g.k.pause=function(){};var Ula={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};Tp("Element","attributes")||Tp("Node","attributes");Tp("Element","innerHTML")||Tp("HTMLElement","innerHTML");Tp("Node","nodeName");Tp("Node","nodeType");Tp("Node","parentNode");Tp("Node","childNodes");Tp("HTMLElement","style")||Tp("Element","style");Tp("HTMLStyleElement","sheet");var ama=Wla("getPropertyValue"),bma=Wla("setProperty");Tp("Element","namespaceURI")||Tp("Node","namespaceURI");var Yla=na([""]),$la={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var fma,T$a,ema,dma,gma;fma=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]");T$a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.Nbb=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.Up=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]");ema=/^http:\/\/.*/;g.Obb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");dma=/\s+/;gma=/[\d\u06f0-\u06f9]/;Wp.prototype.Km=function(){return new Xp(this.B())};
Wp.prototype[Symbol.iterator]=function(){return new Yp(this.B())};
Wp.prototype.j=function(){return new Yp(this.B())};
g.z(Xp,g.wn);Xp.prototype.next=function(){return this.B.next()};
Xp.prototype[Symbol.iterator]=function(){return new Yp(this.B)};
Xp.prototype.j=function(){return new Yp(this.B)};
g.z(Yp,Wp);Yp.prototype.next=function(){return this.C.next()};$p.prototype.clone=function(){return new $p(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};bq.prototype.clone=function(){return new bq(this.start,this.end)};
bq.prototype.getLength=function(){return this.end-this.start};(function(){if(i8a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Cb()))?a[1]:"0"}return BU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Cb()))?a[0].replace(/_/g,"."):"10"):g.Es?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Cb()))?a[1]:""):eab||fab||gab?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Cb()))?a[1].replace(/_/g,"."):""):""})();var ima=function(){if(g.OO)return cq(/Firefox\/([0-9.]+)/);if(g.Hm||g.Lu||g.JP)return mba;if(g.fG){if(Pb()||Qb()){var a=cq(/CriOS\/([0-9.]+)/);if(a)return a}return cq(/Chrome\/([0-9.]+)/)}if(g.$t&&!Pb())return cq(/Version\/([0-9.]+)/);if(Bs||Cs){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Cb()))return a[1]+"."+a[2]}else if(g.KP)return(a=cq(/Android\s+([0-9.]+)/))?a:cq(/Version\/([0-9.]+)/);return""}();g.bb(g.eq,g.O);g.k=g.eq.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.Fh(a)}return!1};
g.k.Fh=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.Yb(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];jma(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.Ia();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.Fh(c)}}return e!=0}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Fh,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.xa=function(){g.eq.Tf.xa.call(this);this.clear();this.C.length=0};g.fq.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.Ti(b))};
g.fq.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.fq.prototype.remove=function(a){this.j.remove(a)};g.bb(gq,g.fq);gq.prototype.set=function(a,b){gq.Tf.set.call(this,a,lma(b))};
gq.prototype.B=function(a){a=gq.Tf.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
gq.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.bb(hq,gq);hq.prototype.set=function(a,b,c){if(b=lma(b)){if(c){if(c<g.Za()){hq.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Za()}hq.Tf.set.call(this,a,b)};
hq.prototype.B=function(a,b){var c=hq.Tf.B.call(this,a);if(c)if(!b&&g.mma(c))hq.prototype.remove.call(this,a);else return c};g.bb(g.iq,hq);g.bb(jq,nma);jq.prototype[Symbol.iterator]=function(){return g.Zp(this.Km(!0)).j()};
jq.prototype.clear=function(){var a=Array.from(this);a=g.w(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.bb(kq,jq);g.k=kq.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){lq(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){lq(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){lq(this);this.j.removeItem(a)};
g.k.Km=function(a){lq(this);var b=0,c=this.j,d=new g.wn;d.next=function(){if(b>=c.length)return g.C1;var e=c.key(b++);if(a)return g.xn(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.xn(e)};
return d};
g.k.clear=function(){lq(this);this.j.clear()};
g.k.key=function(a){lq(this);return this.j.key(a)};g.bb(mq,kq);g.bb(oma,kq);g.bb(nq,jq);nq.prototype.set=function(a,b){this.B.set(this.j+a,b)};
nq.prototype.get=function(a){return this.B.get(this.j+a)};
nq.prototype.remove=function(a){this.B.remove(this.j+a)};
nq.prototype.Km=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.wn;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.xn(a?e.slice(c.j.length):c.B.get(e))};
return d};pq.prototype.getValue=function(){return this.B};
pq.prototype.clone=function(){return new pq(this.j,this.B)};g.k=qq.prototype;g.k.Nh=function(a,b){var c=this.j;c.push(new pq(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.fn=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Go=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 qq(this)};
g.k.isEmpty=function(){return this.j.length===0};
g.k.clear=function(){this.j.length=0};g.z(rq,qq);rq.prototype.enqueue=function(a,b){this.Nh(a,b)};sq.ph=void 0;sq.getInstance=function(){return sq.ph?sq.ph:sq.ph=new sq};
sq.prototype.j=0;var tq={},Pbb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";tq.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};
tq.AU=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Qbb={fA: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]},
LY: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}},Rbb={fA:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
LY:function(a){return[].concat.apply([],a)}};
tq.Uea=function(){Pbb?(tq.Kz=Uint8Array,tq.Er=Uint16Array,tq.N4=Int32Array,tq.assign(tq,Qbb)):(tq.Kz=Array,tq.Er=Array,tq.N4=Array,tq.assign(tq,Rbb))};
tq.Uea();var Sbb=!0;try{new Uint8Array(1)}catch(a){Sbb=!1};var Sq={};Sq=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 Tq={},I1,Tbb=[],J1=0;J1<256;J1++){I1=J1;for(var Ubb=0;Ubb<8;Ubb++)I1=I1&1?3988292384^I1>>>1:I1>>>1;Tbb[J1]=I1}Tq=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Tbb[(a^b[d])&255];return a^-1};var Jq={};Jq={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 Cq=[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],Fq=[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],Lma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ama=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Nq=Array(576);uq(Nq);var Oq=Array(60);uq(Oq);var Eq=Array(512);uq(Eq);var Bq=Array(256);uq(Bq);var Dq=Array(29);uq(Dq);var Gq=Array(30);uq(Gq);var Ima,Jma,Kma,Hma=!1;var $q;$q=[new Zq(0,0,0,0,function(a,b){var c=65535;for(c>a.Dn-5&&(c=a.Dn-5);;){if(a.jc<=1){Wq(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Db+=a.jc;a.jc=0;var d=a.Fl+c;if(a.Db===0||a.Db>=d)if(a.jc=a.Db-d,a.Db=d,Pq(a,!1),a.Be.Ne===0)return 1;if(a.Db-a.Fl>=a.yj-262&&(Pq(a,!1),a.Be.Ne===0))return 1}a.Nh=0;if(b===4)return Pq(a,!0),a.Be.Ne===0?3:4;a.Db>a.Fl&&Pq(a,!1);return 1}),
new Zq(4,4,8,4,Xq),new Zq(4,5,16,8,Xq),new Zq(4,6,32,32,Xq),new Zq(4,4,16,16,Yq),new Zq(8,16,32,32,Yq),new Zq(8,16,128,128,Yq),new Zq(8,32,128,256,Yq),new Zq(32,128,258,1024,Yq),new Zq(32,258,258,4096,Yq)];var Gma={};Gma=function(){this.input=null;this.Dz=this.Dj=this.Hy=0;this.output=null;this.XU=this.Ne=this.RB=0;this.msg="";this.state=null;this.NP=2;this.Ud=0};var Mma=Object.prototype.toString;
ar.prototype.push=function(a,b){var c=this.Be,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=pma(a):Mma.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Hy=0;c.Dj=c.input.length;do{c.Ne===0&&(c.output=new tq.Kz(d),c.RB=0,c.Ne=d);a=Fma(c,e);if(a!==1&&a!==0)return this.Ns(a),this.ended=!0,!1;if(c.Ne===0||c.Dj===0&&(e===4||e===2))if(this.options.to==="string"){var f=tq.AU(c.output,c.RB);b=f;f=f.length;if(f<65537&&(b.subarray&&
Sbb||!b.subarray))b=String.fromCharCode.apply(null,tq.AU(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=tq.AU(c.output,c.RB),this.chunks.push(b)}while((c.Dj>0||c.Ne===0)&&a!==1);if(e===4)return(c=this.Be)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=Kq(c,-2):(c.state=null,a=d===113?Kq(c,-3):0)):a=-2,this.Ns(a),this.ended=!0,a===0;e===2&&(this.Ns(0),c.Ne=0);return!0};
ar.prototype.Ns=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):tq.LY(this.chunks));this.chunks=[];this.err=a;this.msg=this.Be.msg};var cr="@@redux/INIT"+br(),Sma="@@redux/REPLACE"+br();var Tma=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Vbb=[0,Mab,-3,y1];g.z(fr,Qe);fr.prototype.getType=function(){return te(this,11)};var XQa=function(){var a=[0,Oab,Nab,u1,Mab,u1,-1,y1,Mab,y1,-1,Oab,y1,Nab,v1,Vbb,u1,-1,y1];return function(b,c){if(t1.length){var d=t1.pop();Qca(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Je(b,c);try{var e=new fr,f=e.tb;pf(a)(f,b);var h=e}finally{b.free()}return h}}();var eta=new g.gr("adInfoDialogEndpoint");var tva=new g.gr("adPingingEndpoint");var Nxa=new g.gr("crossDeviceProgressCommand");var GJ=new g.gr("actionCompanionAdRenderer");var NF=new g.gr("adActionInterstitialRenderer");var Wbb=new g.gr("adDurationRemainingRenderer");var bK=new g.gr("adHoverTextButtonRenderer");var cta=new g.gr("adInfoDialogRenderer");var KK=new g.gr("adMessageRenderer");var cK=new g.gr("adPreviewRenderer");var IJ=new g.gr("adsEngagementPanelRenderer");var jza=new g.gr("dismissablePanelTextPortraitImageRenderer");var Xbb=new g.gr("flyoutCtaRenderer");var HJ=new g.gr("imageCompanionAdRenderer");var LF=new g.gr("instreamAdPlayerOverlayRenderer");var Ybb=new g.gr("instreamAdPlayerUnderlayRenderer");var p$a=new g.gr("instreamSurveyAdBackgroundImageRenderer");var aK=new g.gr("instreamSurveyAdPlayerOverlayRenderer");var TJ=new g.gr("instreamSurveyAdRenderer"),$J=new g.gr("instreamSurveyAdSingleSelectQuestionRenderer"),ZJ=new g.gr("instreamSurveyAdMultiSelectQuestionRenderer"),K1=new g.gr("instreamSurveyAdAnswerRenderer"),Zbb=new g.gr("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var RJ=new g.gr("instreamVideoAdRenderer");var $bb=new g.gr("textOverlayAdContentRenderer"),acb=new g.gr("enhancedTextOverlayAdContentRenderer"),bcb=new g.gr("imageOverlayAdContentRenderer");var MF=new g.gr("playerOverlayLayoutRenderer");var nza=new g.gr("aboveFeedAdLayoutRenderer");var oza=new g.gr("belowPlayerAdLayoutRenderer");var mza=new g.gr("inPlayerAdLayoutRenderer");var WJ=new g.gr("playerBytesAdLayoutRenderer");var YJ=new g.gr("playerUnderlayAdLayoutRenderer");var SJ=new g.gr("adIntroRenderer");var PJ=new g.gr("playerBytesSequentialLayoutRenderer");var Sza=new g.gr("slidingTextPlayerOverlayRenderer");var UJ=new g.gr("surveyTextInterstitialRenderer");var ccb=new g.gr("simpleAdBadgeRenderer");var QI=new g.gr("skipAdRenderer"),dcb=new g.gr("skipButtonRenderer");var gK=new g.gr("adSlotRenderer");var XJ=new g.gr("squeezebackPlayerSidePanelRenderer");var ecb=new g.gr("timedPieCountdownRenderer");var fcb=new g.gr("adAvatarViewModel");var gcb=new g.gr("adBadgeViewModel");var hcb=new g.gr("adButtonViewModel");var icb=new g.gr("adDisclosureBannerViewModel");var jcb=new g.gr("adPodIndexViewModel");var kcb=new g.gr("adPreviewViewModel");var lcb=new g.gr("playerAdAvatarLockupCardButtonedViewModel");var mcb=new g.gr("skipAdButtonViewModel");var ncb=new g.gr("skipAdViewModel");var ocb=new g.gr("visitAdvertiserLinkViewModel");var JJ=new g.gr("bannerImageLayoutViewModel");var KJ=new g.gr("topBannerImageTextIconButtonedLayoutViewModel");var LJ=new g.gr("adsEngagementPanelLayoutViewModel");g.GR=new g.gr("browseEndpoint");var pcb=new g.gr("confirmDialogEndpoint");var zra=new g.gr("rawColdConfigGroup");var yra=new g.gr("rawHotConfigGroup");g.bz=new g.gr("commandExecutorCommand");g.z(Yma,Qe);var SJa={oma:0,Ama:1,Lma:32,Qma:61,Wma:67,Sma:86,Kma:42,Mma:60,Cma:62,Pma:73,Oma:76,Tma:88,Uma:90,Xma:99,Ima:98,Vma:100,Yma:41,Zma:69,ana:70,bna:71,oka:2,pka:27,ANDROID:3,Iga:54,Jga:14,Sga:91,Kga:55,Lga:24,Mga:20,Nga:18,Pga:21,Uga:30,Xga:29,Yga:28,vma:101,Zga:34,Tga:36,Oga:38,IOS:5,jja:15,tja:92,kja:40,mja:25,nja:17,oja:19,pja:64,qja:66,rja:26,vja:22,wja:33,xja:68,yja:35,sja:53,uja:37,lja:39,ama:7,bma:57,cma:43,ema:59,dma:93,Wga:74,fma:75,gma:85,hma:65,kma:80,lma:8,Yla:10,nma:58,mma:63,jma:72,Vga:23,
ena:11,fna:13,Aha:12,Zla:16,Jma:56,Rma:31,lka:77,Hia:84,Nma:87,Jia:89,Iia:94,Xja:95};g.z(hr,Qe);hr.prototype.u9=function(){return se(this,3)};
hr.prototype.C9=function(){return se(this,5)};
hr.prototype.Xs=function(a){return ve(this,5,a)};g.z(ir,Qe);g.z(Zma,Qe);g.z(jr,Qe);g.k=jr.prototype;g.k.getDeviceId=function(){return se(this,6)};
g.k.AK=function(a){var b=Yd(this,9,id,3,void 0,!0);Oc(b,a);return b[a]};
g.k.getPlayerType=function(){return te(this,36)};
g.k.setHomeGroupInfo=function(a){return ke(this,Zma,81,a)};
g.k.clearLocationPlayabilityToken=function(){return Qd(this,89)};g.z(kr,Qe);kr.prototype.getValue=function(){return se(this,fe(this,wra)===2?2:-1)};
var wra=[2,3,4,5,6];g.z(lr,Qe);lr.prototype.setTrackingParams=function(a){return Qd(this,1,Kc(a,!1,!1))};g.z(mr,Qe);g.z(nr,Qe);nr.prototype.AK=function(a){var b=Yd(this,5,jd,3,void 0,!0);Oc(b,a);return b[a]};g.z(or,Qe);or.prototype.getToken=function(){return pe(this,2)};
or.prototype.setToken=function(a){return ve(this,2,a)};g.z(pr,Qe);pr.prototype.setSafetyMode=function(a){return xe(this,5,a)};g.z(qr,Qe);qr.prototype.eI=function(a){return ke(this,jr,1,a)};var eK=new g.gr("thumbnailLandscapePortraitRenderer");g.qcb=new g.gr("changeEngagementPanelVisibilityAction");var Cta=new g.gr("continuationCommand");g.rcb=new g.gr("openPopupAction");g.L1=new g.gr("webCommandMetadata");var FLa=new g.gr("metadataBadgeRenderer");var Bta=new g.gr("signalServiceEndpoint");var sx=new g.gr("innertubeCommand");var pta=new g.gr("loggingDirectives");var Lna={iia:"EMBEDDED_PLAYER_MODE_UNKNOWN",fia:"EMBEDDED_PLAYER_MODE_DEFAULT",hia:"EMBEDDED_PLAYER_MODE_PFP",gia:"EMBEDDED_PLAYER_MODE_PFL"};var gMa=new g.gr("channelThumbnailEndpoint");var fMa=new g.gr("embeddedPlayerErrorMessageRenderer");var bMa=new g.gr("embeddedPlayerOverlayVideoDetailsRenderer"),hMa=new g.gr("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),iMa=new g.gr("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var CLa=new g.gr("embedsInfoPanelRenderer");var scb=new g.gr("feedbackEndpoint");var tcb=new g.gr("callToActionButtonViewModel");var ucb=new g.gr("interactionLoggingCommandMetadata");var Hpa={Hma:"WEB_DISPLAY_MODE_UNKNOWN",Dma:"WEB_DISPLAY_MODE_BROWSER",Fma:"WEB_DISPLAY_MODE_MINIMAL_UI",Gma:"WEB_DISPLAY_MODE_STANDALONE",Ema:"WEB_DISPLAY_MODE_FULLSCREEN"};g.z(rr,Qe);rr.prototype.getPlayerType=function(){return te(this,7)};
rr.prototype.ag=function(){return se(this,19)};
rr.prototype.setVideoId=function(a){return ve(this,19,a)};g.z(sr,Qe);g.z(tr,Qe);g.z(ur,Qe);
var vcb=[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];g.z(vr,Qe);g.z(wr,Qe);wr.prototype.ag=function(){return pe(this,fe(this,Tw)===1?1:-1)};
wr.prototype.setVideoId=function(a){return de(this,1,Tw,od(a))};
wr.prototype.getPlaylistId=function(){return pe(this,fe(this,Tw)===2?2:-1)};
var Tw=[1,2];g.z($ma,Qe);var tR=new g.gr("changeKeyedMarkersVisibilityCommand");var wcb=new g.gr("changeMarkersVisibilityCommand");var HLa=new g.gr("loadMarkersCommand");var xcb=new g.gr("suggestedActionDataViewModel");var f3a=new g.gr("productListItemRenderer");var ycb=new g.gr("shoppingOverlayRenderer");var cMa=new g.gr("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var zcb=new g.gr("adFeedbackEndpoint");var Acb=new g.gr("menuEndpoint");var t2a=new g.gr("phoneDialerEndpoint");var r2a=new g.gr("sendSmsEndpoint");var aMa=new g.gr("copyTextEndpoint");var Bcb=new g.gr("shareEndpoint"),Ccb=new g.gr("shareEntityEndpoint"),Dcb=new g.gr("shareEntityServiceEndpoint"),Ecb=new g.gr("webPlayerShareEntityServiceEndpoint");g.uy=new g.gr("urlEndpoint");g.rR=new g.gr("watchEndpoint");var Fcb=new g.gr("watchPlaylistEndpoint");g.Gcb=new g.gr("offlineOrchestrationActionCommand");var j_a=new g.gr("compositeVideoOverlayRenderer");var Hcb=new g.gr("miniplayerRenderer");var ZLa=new g.gr("paidContentOverlayRenderer");var qLa=new g.gr("playerMutedAutoplayOverlayRenderer"),rLa=new g.gr("playerMutedAutoplayEndScreenRenderer");var GKa=new g.gr("unserializedPlayerResponse"),sLa=new g.gr("unserializedPlayerResponse");var Icb=new g.gr("playlistEditEndpoint");var M1;g.dK=new g.gr("buttonRenderer");M1=new g.gr("toggleButtonRenderer");var hza=new g.gr("counterfactualRenderer");var Jcb=new g.gr("resolveUrlCommandMetadata");var Kcb=new g.gr("modifyChannelNotificationPreferenceEndpoint");var sva=new g.gr("pingingEndpoint");var Lcb=new g.gr("unsubscribeEndpoint");g.HR=new g.gr("subscribeButtonRenderer");var Mcb=new g.gr("subscribeEndpoint");var QNa=new g.gr("buttonViewModel");var iza=new g.gr("qrCodeRenderer");var UJa={Pja:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Mja:"LIVING_ROOM_APP_MODE_MAIN",Lja:"LIVING_ROOM_APP_MODE_KIDS",Nja:"LIVING_ROOM_APP_MODE_MUSIC",Oja:"LIVING_ROOM_APP_MODE_UNPLUGGED",Kja:"LIVING_ROOM_APP_MODE_GAMING"};var zLa=new g.gr("autoplaySwitchButtonRenderer");var IQ,V3a,NKa,f4a;IQ=new g.gr("decoratedPlayerBarRenderer");V3a=new g.gr("chapteredPlayerBarRenderer");NKa=new g.gr("multiMarkersPlayerBarRenderer");f4a=new g.gr("chapterRenderer");g.Z3a=new g.gr("markerRenderer");var DLa=new g.gr("desktopOverlayConfigRenderer");var BLa=new g.gr("gatedActionsOverlayViewModel");var c4a=new g.gr("heatMarkerRenderer");var b4a=new g.gr("heatmapRenderer");var GLa=new g.gr("watchToWatchTransitionRenderer");var dMa=new g.gr("playlistPanelRenderer");var Ncb=new g.gr("productUpsellSuggestedActionViewModel");var Ocb=new g.gr("suggestedActionTimeRangeTrigger"),Pcb=new g.gr("suggestedActionsRenderer"),Qcb=new g.gr("suggestedActionRenderer");var d4a=new g.gr("timedMarkerDecorationRenderer");var $Da=new g.gr("cipher");var HKa=new g.gr("playerVars");var tLa=new g.gr("playerVars");var N1=g.Na.window,Rcb,Scb,xr=(N1==null?void 0:(Rcb=N1.yt)==null?void 0:Rcb.config_)||(N1==null?void 0:(Scb=N1.ytcfg)==null?void 0:Scb.data_)||{};g.Oa("yt.config_",xr);var Br=[];var jna=/^[\w.]*$/,fna={q:!0,search_query:!0},ena=String(Fr);var Pr=new function(){var a=window.document;this.j=window;this.B=a};
g.Oa("yt.ads_.signals_.getAdSignalsString",function(a){return Gr(Rr(a))});g.Za();var lna="XMLHttpRequest"in g.Na?function(){return new XMLHttpRequest}:null;var Tcb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x(Tcb);var pna={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-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},qna="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.x(Tcb)),yna=!1,nna=rna,vna=cs;g.z(fs,ob);is.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:ks(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:js(a):this};
is.prototype.getValue=function(){return this.B};
is.prototype.$goog_Thenable=!0;var ls=!1;var Ku=Bs||Cs;var Jna=/^([0-9\.]+):([0-9\.]+)$/;g.z(Rs,ob);Rs.prototype.name="BiscottiError";g.z(Qs,ob);Qs.prototype.name="BiscottiMissingError";var Nna={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Ss=null;var Rda=na(["data-"]),Wna={};var Ucb=0,Ts=g.mh?"webkit":Gm?"moz":g.Hm?"ms":g.JP?"o":"",Vcb=g.Pa("ytDomDomGetNextId")||function(){return++Ucb};
g.Oa("ytDomDomGetNextId",Vcb);var $na={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};Zs.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Zs.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Zs.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var $s=g.Na.ytEventsEventsListeners||{};g.Oa("ytEventsEventsListeners",$s);var coa=g.Na.ytEventsEventsCounter||{count:0};g.Oa("ytEventsEventsCounter",coa);var goa=Ci(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),doa=Ci(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var O1;O1=window;g.hu=O1.ytcsi&&O1.ytcsi.now?O1.ytcsi.now:O1.performance&&O1.performance.timing&&O1.performance.now&&O1.performance.timing.navigationStart?function(){return O1.performance.timing.navigationStart+O1.performance.now()}:function(){return(new Date).getTime()};g.bb(et,g.O);et.prototype.W=function(a){a.j===void 0&&aoa(a);var b=a.j;a.B===void 0&&aoa(a);this.j=new g.Eg(b,a.B)};
et.prototype.Cu=function(){return this.j||new g.Eg};
et.prototype.oa=function(){if(this.j){var a=(0,g.hu)();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}};
et.prototype.xa=function(){g.Xr(this.Z);g.bt(this.qa)};g.z(ft,g.O);ft.prototype.T=function(a,b,c,d,e){c=g.Dr((0,g.Xa)(c,d||this.kb));c={target:a,name:b,callback:c};var f;e&&goa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
ft.prototype.Mc=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}};
ft.prototype.xa=function(){g.ht(this);g.O.prototype.xa.call(this)};it.prototype.clone=function(){var a=new it,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]=Ra(c)=="object"?g.Yg(c):c}return a};var GMa=["att/get"],A0a=["embedded_player"],Wcb=["share/get_share_panel"],Xcb=["share/get_web_player_share_panel"],Ycb=["feedback"],Zcb=["notification/modify_channel_preference"],UYa=["player"],$cb=["browse/edit_playlist"],adb=["subscription/subscribe"],bdb=["subscription/unsubscribe"],YYa=["next","unplugged/watch_next"];var kt;g.jt=Ci(function(){try{var a=new mq;var b=a.isAvailable()?a:null}catch(c){return null}return b?new g.iq(b):null});
kt=Ci(function(){var a=new oma;return a.isAvailable()?new g.iq(a):null});g.cdb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Oa("yt.msgs_",g.cdb);qt.prototype.IF=function(a,b){a={};var c=[],d=g.Zr("enable_first_party_auth_v2");"USER_SESSION_ID"in xr&&d&&c.push({key:"u",value:g.zr("USER_SESSION_ID")});if(c=jea(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(g.zr("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.Zr("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in xr||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in xr&&(a["X-Goog-PageId"]=g.zr("DELEGATED_SESSION_ID"));
return a};var cv={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var vt=g.Pa("ytglobal.prefsUserPrefsPrefs_")||{};g.Oa("ytglobal.prefsUserPrefsPrefs_",vt);var rt;g.k=moa.prototype;g.k.get=function(a,b){zt(a);xt(a);a=vt[a]!==void 0?vt[a].toString():null;return a!=null?a:b?b:""};
g.k.set=function(a,b){zt(a);xt(a);if(b==null)throw Error("ExpectedNotNull");vt[a]=b.toString()};
g.k.remove=function(a){zt(a);xt(a);delete vt[a]};
g.k.save=function(){var a=!0;g.Zr("web_secure_pref_cookie_killswitch")&&(a=!1);g.ns(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.nea(vt)};
g.k.dump=function(){var a=[],b;for(b in vt)vt.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(vt[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])&&(vt[d]=c.toString())}};var poa={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"},Ipa={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},Jpa={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},roa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.z(g.At,Error);Dt.prototype.aj=function(a,b){return Et(a,1,b)};
Dt.prototype.W7=function(a){(a=this.j.get(a))&&a()};g.Pa("yt.scheduler.instance.timerIdMap_");g.z(Gt,Dt);Gt.prototype.wk=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=g.Pa("yt.scheduler.instance.cancelJob");b?b(a):g.Wr(a)}};
Gt.prototype.start=function(){var a=g.Pa("yt.scheduler.instance.start");a&&a()};
Gt.prototype.pause=function(){var a=g.Pa("yt.scheduler.instance.pause");a&&a()};
g.xp=g.Ht();Kt.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.Ti(b))}catch(f){return}else e=escape(b);g.ns(a,e,c,this.B)};
Kt.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.os(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
Kt.prototype.remove=function(a){this.j&&this.j.remove(a);g.ps(a,"/",this.B)};
Kt.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,typeof a==="number")?a:null};var Lt=function(){var a;return function(){a||(a=new Kt("ytidb"));return a}}();var Rt=[],Nt,St=!1;var P1={},voa=(P1.AUTH_INVALID="No user identifier specified.",P1.EXPLICIT_ABORT="Transaction was explicitly aborted.",P1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",P1.MISSING_INDEX="Index not created.",P1.MISSING_OBJECT_STORES="Object stores not created.",P1.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",P1.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",P1.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",P1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",P1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",P1.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",P1.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",P1),Q1={},woa=(Q1.AUTH_INVALID="ERROR",Q1.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Q1.EXPLICIT_ABORT="IGNORED",
Q1.IDB_NOT_SUPPORTED="ERROR",Q1.MISSING_INDEX="WARNING",Q1.MISSING_OBJECT_STORES="ERROR",Q1.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Q1.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Q1.QUOTA_EXCEEDED="WARNING",Q1.QUOTA_MAYBE_EXCEEDED="WARNING",Q1.UNKNOWN_ABORT="WARNING",Q1.INCOMPATIBLE_DB_VERSION="WARNING",Q1),R1={},xoa=(R1.AUTH_INVALID=!1,R1.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,R1.EXPLICIT_ABORT=!1,R1.IDB_NOT_SUPPORTED=!1,R1.MISSING_INDEX=!1,R1.MISSING_OBJECT_STORES=!1,R1.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,R1.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,R1.QUOTA_EXCEEDED=!1,R1.QUOTA_MAYBE_EXCEEDED=!0,R1.UNKNOWN_ABORT=!0,R1.INCOMPATIBLE_DB_VERSION=!1,R1);g.z(g.Xt,g.At);g.z(Yt,g.Xt);g.z(Zt,Error);var yoa=["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.du.all=function(a){return new g.du(new cu(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={cB:0};f.cB<a.length;f={cB:f.cB},++f.cB)g.du.resolve(a[f.cB]).then(function(h){return function(l){d[h.cB]=l;e--;e===0&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.du.resolve=function(a){return new g.du(new cu(function(b,c){a instanceof g.du?a.then(b,c):b(a)}))};
g.du.reject=function(a){return new g.du(new cu(function(b,c){c(a)}))};
g.du.prototype.then=function(a,b){var c=this,d=a!=null?a:Aoa,e=b!=null?b:zoa;return new g.du(new cu(function(f,h){c.state.status==="PENDING"?(c.j.push(function(){Boa(c,c,d,f,h)}),c.B.push(function(){Coa(c,c,e,f,h)})):c.state.status==="FULFILLED"?Boa(c,c,d,f,h):c.state.status==="REJECTED"&&Coa(c,c,e,f,h)}))};
g.du.prototype.catch=function(a){return this.then(void 0,a)};g.k=Ioa.prototype;g.k.add=function(a,b,c){return g.lu(this,[a],{mode:"readwrite",Nb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.lu(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.lu(this,[a],{mode:"readonly",Nb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.lu(this,[a],{mode:"readwrite",Nb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.lu(this,[a],{mode:"readonly",Nb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.lu(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=iu.prototype;g.k.add=function(a,b){return fu(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return fu(this.j.clear()).then(function(){})};
g.k.count=function(a){return fu(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Moa(this,a):fu(this.j.delete(a))};
g.k.get=function(a){return fu(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?fu(this.j.getAll(a,b)):Noa(this,a,b)};
g.k.index=function(a){try{return new Roa(this.j.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new Zt(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
ou.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.Xt("EXPLICIT_ABORT");};
ou.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new iu(a),this.C.set(a,b));return b};
g.k=Roa.prototype;g.k.count=function(a){return fu(this.j.count(a))};
g.k.delete=function(a){return g.uu(this,{query:a},function(b){return b.delete().then(function(){return g.ru(b)})})};
g.k.get=function(a){return fu(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?fu(this.j.getAll(a,b)):Soa(this,a,b)};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
vu.prototype.delete=function(){return fu(this.cursor.delete()).then(function(){})};
vu.prototype.getValue=function(){return this.cursor.value};
vu.prototype.update=function(a){return fu(this.cursor.update(a))};xu.prototype.B=function(a,b,c){c=c===void 0?{}:c;return Uoa(a,b,c)};
xu.prototype.delete=function(a){a=a===void 0?{}:a;return wu(this.name,a)};
xu.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,u;return g.J(function(y){switch(y.j){case 1:return h=(f=Error().stack)!=null?f:"",g.wa(y,2),g.G(y,c.B(c.name,c.options.version,e),4);case 4:for(var A=l=y.B,C=c.options,F=[],H=g.w(Object.keys(C.Ls)),L=H.next();!L.done;L=H.next()){L=L.value;var N=C.Ls[L],X=N.lea===void 0?Number.MAX_VALUE:N.lea;!(A.j.version>=N.Zn)||A.j.version>=X||A.j.objectStoreNames.contains(L)||F.push(L)}m=F;if(m.length===0){y.Ea(5);break}n=Object.keys(c.options.Ls);
p=l.objectStoreNames();if(c.G<g.$r("ytidb_reopen_db_retries",0))return c.G++,l.close(),Tt(new g.Xt("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());if(!(c.D<g.$r("ytidb_remake_db_retries",1))){y.Ea(6);break}c.D++;return g.G(y,c.delete(),7);case 7:return Tt(new g.Xt("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());case 6:throw new Yt(p,n);case 5:return y.return(l);case 2:q=
g.ya(y);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."){y.Ea(8);break}return g.G(y,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=y.B;t=r.j.version;if(c.options.version!==void 0&&t>c.options.version+1)throw r.close(),c.C=!1,Voa(c,t);return y.return(r);case 8:throw b(),
q instanceof Error&&!g.Zr("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),au(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 Voa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,sfa:b,upgrade:this.options.upgrade};return this.j=d=a()};var Fu=new xu("YtIdbMeta",{Ls:{databases:{Zn:1}},upgrade:function(a,b){b(1)&&g.ju(a,"databases",{keyPath:"actualName"})}});var Nu,Mu=new function(){}(new function(){});new g.Ej;g.z(Qu,xu);Qu.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?dpa:cpa)(a,b,Object.assign({},c))};
Qu.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?hpa:epa)(this.name,a)};var ddb={},jpa=g.Ru("ytGcfConfig",{Ls:(ddb.coldConfigStore={Zn:1},ddb.hotConfigStore={Zn:1},ddb),shared:!1,upgrade:function(a,b){b(1)&&(g.pu(g.ju(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.pu(g.ju(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.z(Tu,g.O);Tu.prototype.xa=function(){for(var a=g.w(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.O.prototype.xa.call(this)};Zu.prototype.Xs=function(a){this.hotHashData=a;g.Oa("yt.gcf.config.hotHashData",this.hotHashData||null)};var edb=typeof TextEncoder!=="undefined"?new TextEncoder:null,Zpa=edb?function(a){return edb.encode(a)}:function(a){a=g.tb(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var hua={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},jua={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};dv.prototype.Fi=function(){return{version:this.version,args:this.args}};ev.prototype.toString=function(){return this.topic};var fdb=g.Pa("ytPubsub2Pubsub2Instance")||new g.eq;g.eq.prototype.subscribe=g.eq.prototype.subscribe;g.eq.prototype.unsubscribeByKey=g.eq.prototype.Fh;g.eq.prototype.publish=g.eq.prototype.publish;g.eq.prototype.clear=g.eq.prototype.clear;g.Oa("ytPubsub2Pubsub2Instance",fdb);var hv=g.Pa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Oa("ytPubsub2Pubsub2SubscribedKeys",hv);var iv=g.Pa("ytPubsub2Pubsub2TopicToKeys")||{};g.Oa("ytPubsub2Pubsub2TopicToKeys",iv);var Mpa=g.Pa("ytPubsub2Pubsub2IsAsync")||{};
g.Oa("ytPubsub2Pubsub2IsAsync",Mpa);g.Oa("ytPubsub2Pubsub2SkipSubKey",null);var lv=void 0,kv=void 0;var Wpa=g.$r("max_body_size_to_compress",5E5),Xpa=g.$r("min_body_size_to_compress",500),pv=!0,uv=0,tv=0,$pa=g.$r("compression_performance_threshold_lr",250),aqa=g.$r("slow_compressions_before_abandon_count",4),nv=!1,ov=new Map,qv=1,Ypa=!0;g.k=wv.prototype;g.k.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(vv(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Qh.set(d,this.Df).then(function(e){d.id=e;c.wh.rh()&&c.jG(d)}).catch(function(e){c.jG(d);
xv(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(vv(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.bb&&this.bb("nwl_skip_retry")&&(e.skipRetry=c);if(this.wh.rh()||this.bb&&this.bb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.J(function(m){if(m.j==1)return g.G(m,d.Qh.set(e,d.Df).catch(function(n){xv(d,n)}),2);
f(h,l);g.va(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Qh.set(e,this.Df).catch(function(h){d.sendFn(a,b,e.skipRetry);
xv(d,h)})}else c=this.bb&&this.bb("nwl_skip_retry")&&c,this.sendFn(a,b,c)};
g.k.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(vv(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.Qh.AA(d.id,c.Df):e=!0;c.wh.Fy&&c.bb&&c.bb("vss_network_hint")&&c.wh.Fy(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.Qh.set(d,this.Df).then(function(h){d.id=h;e&&c.Qh.AA(d.id,c.Df)}).catch(function(h){xv(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.dD=function(){var a=this;if(!vv(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Vo.aj(function(){var b;return g.J(function(c){if(c.j==1)return g.G(c,a.Qh.gZ("NEW",a.Df),2);if(c.j!=3)return b=c.B,b?g.G(c,a.jG(b),3):(a.gP(),c.return());a.B&&(a.B=0,a.dD());g.va(c)})},this.v3))};
g.k.gP=function(){this.Vo.wk(this.B);this.B=0};
g.k.jG=function(a){var b=this,c;return g.J(function(d){switch(d.j){case 1:if(!vv(b))throw Error("IndexedDB is not supported: immediateSend");if(a.id===void 0){d.Ea(2);break}return g.G(d,b.Qh.naa(a.id,b.Df),3);case 3:(c=d.B)||b.XA(Error("The request cannot be found in the database."));case 2:if(b.bN(a,b.n2)){d.Ea(4);break}b.XA(Error("Networkless Logging: Stored logs request expired age limit"));if(a.id===void 0){d.Ea(5);break}return g.G(d,b.Qh.AA(a.id,b.Df),5);case 5:return d.return();case 4:a.skipRetry||
(a=gqa(b,a));if(!a){d.Ea(0);break}if(!a.skipRetry||a.id===void 0){d.Ea(8);break}return g.G(d,b.Qh.AA(a.id,b.Df),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.va(d)}})};
g.k.bN=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.eN=function(){var a=this;if(!vv(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Qh.gZ("QUEUED",this.Df).then(function(b){b&&!a.bN(b,a.d2)?a.Vo.aj(function(){return g.J(function(c){if(c.j==1)return b.id===void 0?c.Ea(2):g.G(c,a.Qh.UT(b.id,a.Df),2);a.eN();g.va(c)})}):a.wh.rh()&&a.dD()})};var yv;var Cra={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,vrCowatchUserStartOrJoinEvent:504,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,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505};var gdb={},qqa=g.Ru("ServiceWorkerLogsDatabase",{Ls:(gdb.SWHealthLog={Zn:1},gdb),shared:!0,upgrade:function(a,b){b(1)&&g.pu(g.ju(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Bv={},wqa=0;var Cv;Ev.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
Ev.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null};
Ev.prototype.removeParams=function(a){return a.split("?")[0]};
Ev.prototype.removeParams=Ev.prototype.removeParams;Ev.prototype.isEndpointCFR=Ev.prototype.isEndpointCFR;Ev.prototype.requestComplete=Ev.prototype.requestComplete;Ev.getInstance=Fv;g.z(Gv,g.qi);g.k=Gv.prototype;g.k.rh=function(){return this.j.rh()};
g.k.Fy=function(a){this.j.j=a};
g.k.V9=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
g.k.M8=function(){this.B=!0};
g.k.listen=function(a,b){return this.j.listen(a,b)};
g.k.iN=function(a){a=vp(this.j,a);a.then(function(b){g.Zr("use_cfr_monitor")&&Fv().requestComplete("generate_204",b)});
return a};
Gv.prototype.sendNetworkCheckRequest=Gv.prototype.iN;Gv.prototype.listen=Gv.prototype.listen;Gv.prototype.enableErrorFlushing=Gv.prototype.M8;Gv.prototype.getWindowStatus=Gv.prototype.V9;Gv.prototype.networkStatusHint=Gv.prototype.Fy;Gv.prototype.isNetworkAvailable=Gv.prototype.rh;Gv.getInstance=zqa;g.z(g.Hv,g.qi);g.Hv.prototype.rh=function(){var a=g.Pa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.Hv.prototype.Fy=function(a){var b=g.Pa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.Hv.prototype.iN=function(a){var b=this,c;return g.J(function(d){c=g.Pa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.Zr("skip_network_check_if_cfr")&&Fv().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Fy(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.rh())})):c?d.return(c(a)):d.return(!0)})};var Iv;g.z(Jv,wv);Jv.prototype.writeThenSend=function(a,b){b||(b={});b=Lv(a,b);g.Ct()||(this.j=!1);wv.prototype.writeThenSend.call(this,a,b)};
Jv.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Lv(a,b);g.Ct()||(this.j=!1);wv.prototype.sendThenWrite.call(this,a,b,c)};
Jv.prototype.sendAndWrite=function(a,b){b||(b={});b=Lv(a,b);g.Ct()||(this.j=!1);wv.prototype.sendAndWrite.call(this,a,b)};
Jv.prototype.awaitInitialization=function(){return this.C.promise};var Eqa=g.Na.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Oa("ytNetworklessLoggingInitializationOptions",Eqa);g.Mv.prototype.isReady=function(){!this.config_&&Apa()&&(this.config_=g.av());return!!this.config_};var hdb,Pv,Rv;hdb=g.Na.ytPubsubPubsubInstance||new g.eq;Pv=g.Na.ytPubsubPubsubSubscribedKeys||{};Rv=g.Na.ytPubsubPubsubTopicToKeys||{};g.Qv=g.Na.ytPubsubPubsubIsSynchronous||{};g.eq.prototype.subscribe=g.eq.prototype.subscribe;g.eq.prototype.unsubscribeByKey=g.eq.prototype.Fh;g.eq.prototype.publish=g.eq.prototype.publish;g.eq.prototype.clear=g.eq.prototype.clear;g.Oa("ytPubsubPubsubInstance",hdb);g.Oa("ytPubsubPubsubTopicToKeys",Rv);g.Oa("ytPubsubPubsubIsSynchronous",g.Qv);
g.Oa("ytPubsubPubsubSubscribedKeys",Pv);var Kqa={};g.z($v,g.O);$v.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)};
g.z(aw,$v);aw.prototype.Ib=function(){return this.j};g.z(Nqa,g.O);var bw=Date.now().toString();var gw={};var lw=Symbol("injectionDeps");iw.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Rqa.prototype.resolve=function(a){return a instanceof jw?mw(this,a.key,[],!0):mw(this,a,[])};var nw;var pw=window;var uw=g.Zr("web_enable_lifecycle_monitoring")&&qw()!==0,Xqa=g.Zr("web_enable_lifecycle_monitoring");Uqa.prototype.cancel=function(){for(var a=g.w(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.OM||this.scheduler.wk(b.jobId),b.OM=!0;this.B.resolve()};g.k=vw.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ea.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;uw&&Tqa(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&&(Vqa(this.B),this.B=void 0);Yqa(this,a,b);this.state=a;uw&&rw(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(Wqa(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.uea=function(a){var b=g.Ea.apply(1,arguments);g.Ht();for(var c=g.w(a),d=c.next(),e={};!d.done;e={HG:void 0},d=c.next())e.HG=d.value,toa(function(f){return function(){xw(f.HG.name);f.HG.callback.apply(f.HG,g.x(b));yw(f.HG.name)}}(e))};
g.k.tea=function(a){var b=g.Ea.apply(1,arguments),c,d,e,f;return g.J(function(h){h.j==1&&(g.Ht(),c=g.w(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ea(0);e.CB=d.value;e.xJ=void 0;f=function(l){return function(){xw(l.CB.name);var m=l.CB.callback.apply(l.CB,g.x(b));typeof(m==null?void 0:m.then)==="function"?l.xJ=m.then(function(){yw(l.CB.name)}):yw(l.CB.name)}}(e);
toa(f);return e.xJ?g.G(h,e.xJ,3):h.Ea(3)}e={CB:void 0,xJ:void 0};d=c.next();return h.Ea(2)})};
g.k.Q2=function(a){var b=g.Ea.apply(1,arguments),c=this,d=a.map(function(e){return{JR:function(){xw(e.name);e.callback.apply(e,g.x(b));yw(e.name)},
priority:ww(c,e)}});
d.length&&(this.B=new Uqa(d))};
g.fa.Object.defineProperties(vw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Aw;g.z(zw,vw);zw.prototype.G=function(a,b){var c=this;this.j=g.Ft(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
a(b==null?void 0:b.event)};
zw.prototype.K=function(a,b){this.j&&(g.xp.wk(this.j),this.j=null);a(b==null?void 0:b.event)};var ax=[];g.Oa("yt.logging.transport.getScrapedGelPayloads",function(){return ax});Bw.prototype.storePayload=function(a,b){a=Cw(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;g.Zr("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a};
Bw.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Ew(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.x(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.x(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.x(this.smartExtractMatchingEntries(a))));
return c};
Bw.prototype.extractMatchingEntries=function(a){a=Ew(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.x(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
Bw.prototype.getSequenceCount=function(a){a=Ew(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};
Bw.prototype.getSequenceCount=Bw.prototype.getSequenceCount;Bw.prototype.extractMatchingEntries=Bw.prototype.extractMatchingEntries;Bw.prototype.smartExtractMatchingEntries=Bw.prototype.smartExtractMatchingEntries;Bw.prototype.storePayload=Bw.prototype.storePayload;var pra=g.$r("initial_gel_batch_timeout",2E3),ora=g.$r("gel_queue_timeout_max_ms",6E4),qra=g.$r("gel_min_batch_size",5),Nw=void 0,Bra=new Fw,Ara=new Fw,nra=new Fw,mra=new Fw,Pw,Xw=!0,$w=1,Hw=new Map,Vw=g.Na.ytLoggingTransportTokensToCttTargetIds_||{};g.Oa("ytLoggingTransportTokensToCttTargetIds_",Vw);var Uw=g.Na.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Oa("ytLoggingTransportTokensToJspbCttTargetIds_",Uw);var Kw={},$qa=!1;var bx=g.Na.ytLoggingGelSequenceIdObj_||{};g.Oa("ytLoggingGelSequenceIdObj_",bx);var hsa=[];var Pra,S1=g.Na.ytLoggingDocDocumentNonce_;S1||(S1=g.dw(16),g.Oa("ytLoggingDocDocumentNonce_",S1));Pra=S1;var Mra={S4:0,tha:1,Iha:2,n7:3,Sha:4,yma:5,mka:6,SHARE:7,Vka:8,lla: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 Fra=1;g.k=dx.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 lr;this.j.trackingParams!==void 0?a.setTrackingParams(this.j.trackingParams):(this.j.veType!==void 0&&Qd(a,2,hd(this.j.veType)),this.j.veCounter!==void 0&&Qd(a,6,hd(this.j.veCounter)),this.j.elementIndex!==void 0&&Qd(a,3,hd(this.j.elementIndex)),this.j.isCounterfactual&&Qd(a,5,ed(!0)));if(this.j.dataElement!==void 0){var b=this.j.dataElement.getAsJspb();ke(a,lr,7,b)}this.j.youtubeData!==void 0&&ke(a,Yma,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.Oa("yt_logging_screen.getRootVeType",Jra);g.Oa("yt_logging_screen.getCurrentCsn",g.hx);g.Oa("yt_logging_screen.getCttAuthInfo",ix);g.Oa("yt_logging_screen.setCurrentScreen",Qra);var Tra="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var bsa=[{cS:function(a){return"Cannot read property '"+a.key+"'"},
BM:{Error:[{Xj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Xj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Xj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Xj:/\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"]},{Xj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Xj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Xj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{cS:function(a){return"Cannot call '"+a.key+"'"},
BM:{TypeError:[{Xj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Xj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Xj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Xj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Xj:/\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"]},
{Xj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{cS:function(a){return a.key+" is not defined"},
BM:{ReferenceError:[{Xj:/(.*) is not defined/,groups:["key"]},{Xj:/Can't find variable: (.*)/,groups:["key"]}]}}];var Xra={Js:[],Or:[{callback:Ura,weight:500}]};var kx;var rx=new g.eq;var csa=new Set,$ra=0,fsa=0,esa=0,asa=[],gsa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var jsa=new g.gr("parallelCommand");var msa=new g.gr("performOnceCommand");var lsa=new g.gr("serialCommand");var tx=void 0;var idb=g.w(function(a,b){function c(){Bbb++;return d()}
var d=Bla(a);Abb++;var e=d[dp];e.fu=b!=null?b:"[signal]";c[dp]=e;return[c,function(f){var h={stack:[],error:void 0,hasError:!1};try{if(g.cb(h,g.up("signalSet",e.fu)),Cbb++,f&&f[Lbb]){var l=f[Lbb];vla()||g.cp();Dla(e,l(e.value))}else Dla(e,f)}catch(m){h.error=m,h.hasError=!0}finally{g.eb(h)}}]}(null,"CBFTAe"));
idb.next();idb.next();g.z(wx,dv);var Lpa=new ev("screen-created",wx),Ix=[],osa=tsa,Jx=0,yx=new Map,zx=new Map,Ax=new Map;g.bb(g.Qx,g.O);g.Qx.prototype.subscribe=function(a,b,c){return this.Ia()?0:this.Pj.subscribe(a,b,c)};
g.Qx.prototype.unsubscribe=function(a,b,c){return this.Ia()?!1:this.Pj.unsubscribe(a,b,c)};
g.Qx.prototype.Fh=function(a){return this.Ia()?!1:this.Pj.Fh(a)};
g.Qx.prototype.publish=function(a,b){return this.Ia()?!1:this.Pj.publish.apply(this.Pj,arguments)};var o7a=16/9,jdb=[.25,.5,.75,1,1.25,1.5,1.75,2],kdb=jdb.concat([3,4,5,6,7,8,9,10,15]);var usa=1;g.z(g.Ux,g.O);g.k=g.Ux.prototype;
g.k.createElement=function(a,b){b=b||a.I==="svg";var c=a.S,d=a.La;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.iQ&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.qh(a.I);if(c){if(c=Vx(this,e,"class",c))Wx(this,e,"class",c),this.Kb[c]=e}else if(d){c=g.w(d);for(var f=c.next();!f.done;f=c.next())this.Kb[f.value]=e;Wx(this,e,"class",d.join(" "))}d=a.va;c=a.V;if(d)b=Vx(this,e,"child",d),b!==void 0&&e.appendChild(g.rh(b));else if(c)for(d=0,c=g.w(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if(typeof f==="string")f=Vx(this,e,"child",f),f!=null&&e.appendChild(g.rh(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Fc&&(h=Tx(),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),uh(e,f,d++))}if(a=a.X)for(b=e,d=g.w(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],Wx(this,b,c,typeof f==="string"?
Vx(this,b,c,f):f);return e};
g.k.Da=function(a){return this.Kb[a]};
g.k.Ha=function(a,b){typeof b==="number"?uh(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.vh(this.element)};
g.k.update=function(a){for(var b=g.w(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.Ee["{{"+a+"}}"])&&Wx(this,a[0],a[1],b)};
g.k.xa=function(){this.Kb={};this.Ee={};this.detach();g.O.prototype.xa.call(this)};g.z(g.S,g.Ux);g.k=g.S.prototype;g.k.Fd=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Eb||(g.Fm(this.element,"display",""),this.Eb=!0)};
g.k.hide=function(){this.Eb&&(g.Fm(this.element,"display","none"),this.Eb=!1)};
g.k.Lc=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.Xa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Mc=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.Ux.prototype.xa.call(this)};g.z(g.Yx,g.S);g.Yx.prototype.subscribe=function(a,b,c){return this.Ua.subscribe(a,b,c)};
g.Yx.prototype.unsubscribe=function(a,b,c){return this.Ua.unsubscribe(a,b,c)};
g.Yx.prototype.Fh=function(a){return this.Ua.Fh(a)};
g.Yx.prototype.publish=function(a){return this.Ua.publish.apply(this.Ua,[a].concat(g.x(g.Ea.apply(1,arguments))))};var ldb=new WeakSet;g.z(Zx,g.Yx);g.k=Zx.prototype;g.k.bind=function(a){this.Va||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Va=a;this.element.setAttribute("id",this.Va);this.rb&&g.Mp(this.element,this.rb);this.oa=b&&b.adRendererCommands;this.Ja=b.interaction;var d;((d=this.Ja)==null?0:d.onTap)&&g.Mp(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.Yx.prototype.hide.call(this);(this.N!=null||this.K)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.Yx.prototype.show.call(this);if(!this.Bb){this.Bb=!0;var a=this.oa&&this.oa.impressionCommand,b,c=(b=this.Ja)==null?void 0:b.onFirstVisible;a?this.YH(a):c&&(a=ux(c))&&this.YH(a)}(this.N!=null||this.K)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.N||this.K)&&!ldb.has(a)){var b=this.element;this.api.hasVe(b)&&this.Eb&&this.api.logClick(b,this.interactionLoggingClientData);ldb.add(a)}var c=this.oa&&this.oa.clickCommand,d;b=(d=this.Ja)==null?void 0:d.onTap;if(c)b=this.X1(c),this.YH(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.w(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=ux(b))&&this.YH(b)}};
g.k.X1=function(a){return a};
g.k.l6=function(a){var b=this.Aa;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=Oqa(b,a)||a.length!=1;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.W=Infinity):(b.Z=c.clientX,b.W=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.k6=function(a){var b=this.Aa;a=a.changedTouches.item(0);var c;if(c=Pb()){c=g.Cb();var d="";if(Zaa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Pb())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Qb())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(yb(g.Cb(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Yaa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Nb()?Fb.platform===
"Chrome OS":Hb("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(g.Bb(d||"",8)>=0)}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.W,2)>25)b.D=!0};
g.k.j6=function(a){if(this.Aa){var b=this.Aa,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&Oqa(b,c)&&(b.oa=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.YH=function(a){this.layoutId?this.fb.executeCommand(a,this.layoutId):g.px(new g.At("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.Mc(this.kb);for(var a=g.w(this.Ca),b=a.next();!b.done;b=a.next())this.Mc(b.value);g.Yx.prototype.xa.call(this)};g.z(qy,Zx);
qy.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.qx(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.Mp(this.element,a);b.text!=null&&(a=g.ay(b.text),g.wb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.Yx({I:"span",S:"ytp-ad-button-text",va:a}),g.P(this,this.C),this.C.Ha(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.wb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=py(b.icon,this.D),b!=null&&(this.B=new g.Yx({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.P(this,this.B)),this.G?uh(this.element,this.B.element,0):this.B.Ha(this.element))}};
qy.prototype.clear=function(){this.hide()};
qy.prototype.onClick=function(a){Zx.prototype.onClick.call(this,a);a=g.w(Psa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.fb.executeCommand(b,this.layoutId):g.px(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.z(ry,g.O);ry.prototype.xa=function(){this.B&&g.bt(this.B);this.j.clear();sy=null;g.O.prototype.xa.call(this)};
ry.prototype.register=function(a,b){b&&this.j.set(a,b)};
var sy=null;g.z(vy,Zx);
vy.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.Q(b.button,g.dK)||null;b==null?g.px(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,void 0,void 0,void 0,void 0,this.C),g.P(this,this.button),this.button.init(Ox("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.ay(a)),this.button.Ha(this.element),this.W&&!g.Lp(this.button.element,
"ytp-ad-clickable")&&g.Mp(this.button.element,"ytp-ad-clickable"),this.C&&g.Mp(this.button.element,"ytp-ad-hover-text-button--clean-player"),a&&(this.B=new g.Yx({I:"div",S:"ytp-ad-hover-text-container"}),this.G&&(b=new g.Yx({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ha(this.B.element),g.P(this,b)),g.P(this,this.B),this.B.Ha(this.element),b=ty(a),uh(this.B.element,b,0)),this.show())};
vy.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();Zx.prototype.hide.call(this)};
vy.prototype.show=function(){this.button&&this.button.show();Zx.prototype.show.call(this)};g.z(yy,Zx);
yy.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&wy(a)||"";g.wb(c)?Math.random()<.01&&g.qx(Error("Found AdImage without valid image URL")):(this.j?g.Fm(this.element,"backgroundImage","url("+c+")"):lh(this.element,{src:c}),lh(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())};
yy.prototype.clear=function(){this.hide()};g.z(zy,Zx);g.k=zy.prototype;g.k.hide=function(){Zx.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;Zx.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.px(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.px(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Tsa(this,b):g.px(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.ht(this.j);this.hide()};
g.k.yS=function(){this.hide()};
g.k.nO=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.fb.executeCommand(a,this.layoutId):g.px(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.zS=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.fb.executeCommand(a,this.layoutId):g.px(Error("Missing layoutId for confirm dialog.")));this.hide()};g.z(Ay,Zx);g.k=Ay.prototype;
g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.px(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.px(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.Mp(this.D,a)}a={};b.defaultText?
(c=g.ay(b.defaultText),g.wb(c)||(a.buttonText=c,this.api.U().experiments.bb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.bb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Sm(this.Fa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=py(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.qa=
!0,c=py(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Sm(this.W,!0),g.Sm(this.G,!1)),g.Sm(this.j,!1)):g.Sm(this.B,!1);g.Sg(a)||this.update(a);b.isToggled&&(g.Mp(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));By(this);this.T(this.element,"change",this.sW);this.show()}};
g.k.onClick=function(a){this.Ca.length>0&&(this.toggleButton(!this.isToggled()),this.sW());Zx.prototype.onClick.call(this,a)};
g.k.sW=function(){g.Qp(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.w(Usa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.fb.executeCommand(b,this.layoutId):g.px(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);By(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Qp(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;By(this)};
g.k.isToggled=function(){return this.j.checked};g.z(Cy,ft);Cy.prototype.K=function(a){if(Array.isArray(a)){a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Vsa&&this.D(b)}};g.z(Dy,Zx);g.k=Dy.prototype;g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.px(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.qx(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.qx(Error("AdFeedbackRenderer.title was not set.")),Zsa(this,b)):g.px(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){ct(this.G);ct(this.W);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();Zx.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;Zx.prototype.show.call(this);this.G.focus()};
g.k.J0=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.k.lda=function(){this.hide()};
Ey.prototype.Ib=function(){return this.j.element};
Ey.prototype.getCommand=function(){return this.B};
Ey.prototype.isChecked=function(){return this.C.checked};g.z(Fy,zy);Fy.prototype.yS=function(a){zy.prototype.yS.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
Fy.prototype.nO=function(a){zy.prototype.nO.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
Fy.prototype.zS=function(a){zy.prototype.zS.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.z(Gy,Zx);g.k=Gy.prototype;
g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.px(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.qx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.Q(b.closeOverlayRenderer,g.dK)||null)this.j=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.P(this,this.j),this.j.init(Ox("button"),a,this.macros),this.j.Ha(this.element);b.title&&(a=g.ay(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=ty(a[c]);if(!g.wb(d.textContent)){var e=ph("LI");e.appendChild(d);this.Ka.appendChild(e)}}else g.Sm(this.Ka,!1);b.dialogMessage&&(a=ty(b.dialogMessage,!0),this.Ta.appendChild(a));b.confirmLabel&&(a=g.ay(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.Q(b.muteAdRenderer,g.dK)||null)&&
(a=b.navigationEndpoint&&g.Q(b.navigationEndpoint,zcb)||null,c=b.navigationEndpoint&&g.Q(b.navigationEndpoint,pcb)||null,a==null&&c==null?g.qx(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?$sa(this,a):c&&ata(this,c),this.C=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.P(this,this.C),this.C.init(Ox("button"),b,this.macros),this.C.listen("click",
this.Sba,this),this.C.Ha(this.Ya)));bta(this)}};
g.k.clear=function(){ct(this.W);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();Zx.prototype.hide.call(this);this.qa&&this.qa.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Oa){for(var a=g.w(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.fb.executeCommand(b,this.layoutId):g.px(Error("Missing layoutId for ad info dialog."));this.Oa=!0}this.qa=document.activeElement;Zx.prototype.show.call(this);this.W.focus()};
g.k.tW=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.fb.executeCommand(a,this.layoutId):g.px(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.k.Sba=function(){var a=this.B?this.B:this.D;a&&!a.Eb&&(this.hide(),a.show())};g.z(Hy,vy);Hy.prototype.init=function(a,b,c){vy.prototype.init.call(this,a,b,c);a=b.button&&g.Q(b.button,g.dK)||null;a!=null&&(gta(this,a,c),this.api.L("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())};
Hy.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();vy.prototype.hide.call(this)};
Hy.prototype.show=function(){this.button&&this.button.show();vy.prototype.show.call(this)};
Hy.prototype.clear=function(){this.hide()};g.z(Iy,Zx);
Iy.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.zh(this.element,$x(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?wy(a):"",c=(c=this.api.getVideoData(1))&&c.zm,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.og(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()};
Iy.prototype.isTemplated=function(){return this.j.isTemplated||!1};
Iy.prototype.clear=function(){this.hide()};var ota={seekableStart:0,seekableEnd:1,current:0};g.z(Ky,Zx);Ky.prototype.clear=function(){this.dispose()};g.z(g.Ny,g.O);g.k=g.Ny.prototype;g.k.show=function(a){this.state!==1&&this.state!==2&&(this.state===4&&this.iJ(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Eb||(Oy(this,!0),this.state=1,a?this.delay.start(a):this.iJ()))};
g.k.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Eb&&(Oy(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.iJ=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Oy(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();Oy(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.iJ()};
g.k.xa=function(){this.element.Ia()||this.element.element.removeAttribute("aria-hidden");g.O.prototype.xa.call(this)};g.z(Py,Ky);g.k=Py.prototype;
g.k.init=function(a,b,c){Ky.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;typeof a==="number"&&a<0&&g.px(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ib&&(this.D?g.Mp(this.B.element,"modern-countdown-next-to-thumbnail"):g.Mp(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Ka=a==null||a===0?this.j.xK():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(Ox("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.zm&&b.thumbnail?this.G.init(Ox("ad-image"),b.thumbnail,c):(this.qa.hide(),this.D&&this.ib&&g.Mp(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();My(this);Ky.prototype.hide.call(this)};
g.k.show=function(){Ly(this);this.B.show();this.C.show();this.G.show();Ky.prototype.show.call(this)};
g.k.Wq=function(){this.hide()};
g.k.pp=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.Ta&&a>=this.Ka?(this.Fa.hide(),this.Ta=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Ka-a)/1E3)),a!=this.Ya&&(Jy(this.C,{TIME_REMAINING:String(a)}),this.Ya=a)))}};g.z(Ry,Ky);g.k=Ry.prototype;
g.k.init=function(a,b,c){Ky.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.Q(b.actionButton,g.dK))&&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.wb(g.og(e[0].url))&&(e[0].url=d.profilePicture)}else g.qx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(Ox("ad-image"),b.image,c);this.G.init(Ox("ad-text"),
b.headline,c);this.D.init(Ox("ad-text"),b.description,c);this.B.init(Ox("button"),a,c);c=Cp(this.B.element);Bp(this.B.element,c+" This link opens in new tab");this.qa=a.navigationEndpoint;this.api.uG()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Da("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Da("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Da("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.Da("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Da("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Da("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.Da("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.uW.bind(this));this.Fa=b.startMs||0;Ly(this)}else g.px(Error("FlyoutCtaRenderer has no valid action button."));else g.px(Error("FlyoutCtaRenderer has no description AdText."));else g.px(Error("FlyoutCtaRenderer has no headline AdText."));else g.qx(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){Ky.prototype.onClick.call(this,a);this.api.pauseVideo();!g.wh(this.B.element,a.target)&&this.qa&&(this.layoutId?this.fb.executeCommand(this.qa,this.layoutId):g.px(Error("Missing layoutId for flyout cta.")))};
g.k.pp=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Ka)&&1E3*a.current>=this.Fa&&(My(this),g.Op(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Wq=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.uW.bind(this))};
g.k.show=function(){this.B&&this.B.show();Ky.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();Ky.prototype.hide.call(this)};
g.k.uW=function(a){a=="hidden"?this.show():this.hide()};g.z(Sy,Zx);g.k=Sy.prototype;
g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.Q(this.j.likeButton,M1),b=this.j.dislikeButton&&g.Q(this.j.dislikeButton,M1),this.C.init(Ox("toggle-button"),a,c),this.B.init(Ox("toggle-button"),b,c),this.T(this.element,"change",this.vW),this.D.show(100),this.show(),c=g.w(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.fb.executeCommand(a,this.layoutId):g.px(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();Zx.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();Zx.prototype.show.call(this)};
g.k.vW=function(){Rla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.eb("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){this.Ca.length>0&&this.vW();Zx.prototype.onClick.call(this,a)};g.z(Ty,g.O);g.k=Ty.prototype;g.k.xa=function(){this.reset();g.O.prototype.xa.call(this)};
g.k.reset=function(){g.ht(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.xW,this);this.D.T(this.B,"mouseout",this.wW,this);this.oa&&(this.D.T(this.B,"focusin",this.xW,this),this.D.T(this.B,"focusout",this.wW,this));this.j?this.j.start():(this.K=this.C=!0,g.Fm(this.B,{opacity:this.W}))};
g.k.xW=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
g.k.wW=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.HX=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.z(az,Ky);g.k=az.prototype;
g.k.init=function(a,b,c){Ky.prototype.init.call(this,a,b,c);this.qa=b;(this.Fa=mta(this))&&g.qx(Error("hasAdControlInClickCommands_ is true."));if(!b||g.Sg(b))g.px(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Sg(b.message))g.px(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=py(a);b==null?g.px(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.D=new g.Yx({I:"button",La:[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.P(this,this.D),this.D.Ha(this.C.element),this.B=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(Ox("ad-text"),this.qa.message,c),g.P(this,this.B),uh(this.D.element,this.B.element,
0));var d=d===void 0?null:d;c=this.api.U();!(this.Ca.length>0)&&c.B&&(mP?0:"ontouchstart"in document.documentElement&&(Kha()||Il()))&&(this.Mc(this.kb),d&&this.Mc(d),this.Ca=[this.T(this.element,"touchstart",this.l6,this),this.T(this.element,"touchmove",this.k6,this),this.T(this.element,"touchend",this.j6,this)])}};
g.k.clear=function(){this.Ka.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();My(this);Ky.prototype.hide.call(this)};
g.k.onClick=function(a){if(this.D!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(jta(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0)this.api.eb("onAbnormalityDetected");else if(Ky.prototype.onClick.call(this,a),this.publish("j"),this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.eb("onAdSkip"),this.Ta||!this.Fa)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.X1=function(a){if(!this.Ta)return this.Fa&&Xy("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.Q(a,g.bz))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&lta(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Ka.start();this.C.show();this.B&&this.B.show();Ly(this);Ky.prototype.show.call(this);this.Ya&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.k.Wq=function(){this.publish("k")};
g.k.pp=function(){};g.z(cz,Ky);g.k=cz.prototype;
g.k.init=function(a,b,c){Ky.prototype.init.call(this,a,b,c);this.api.U().experiments.bb("disable_ad_preview_for_instream_ads")?a=null:(a=b&&b.preskipRenderer&&g.Q(b.preskipRenderer,cK)||{},a=g.Sg(a)?null:a);a?(this.G=a.durationMilliseconds!=null&&a.durationMilliseconds!==void 0?a.durationMilliseconds:5E3,this.B=new Py(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.j,kP(this.api.U().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&gE(this.api.U())),
this.B.init(Ox("preskip-component"),a,c),Qy(this.B),g.P(this,this.B),this.B.Ha(this.element)):b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.Q(b.skippableRenderer,dcb)||{};a=g.Sg(a)?null:a;a==null?g.px(Error("SkipButtonRenderer was not set in player response.")):(this.C=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.j,this.qa),this.C.init(Ox("skip-button"),a,c),g.P(this,this.C),this.C.Ha(this.element),this.api.U().experiments.bb("enable_skip_to_next_messaging")&&
(b=g.og(b.targetId))&&(c=this.C,c.D!=null&&(c.Ya=!0,c.D.element.setAttribute("data-tooltip-target-id",b),c.D.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.D&&this.C?this.C.show():this.B&&this.B.show();Ly(this);Ky.prototype.show.call(this)};
g.k.Wq=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();My(this);Ky.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();My(this);Ky.prototype.hide.call(this)};
g.k.pp=function(){1E3*this.j.getProgressState().current>=this.G&&nta(this,!0)};g.z(dz,qy);dz.prototype.init=function(a,b,c){qy.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.ay(b.text),a=!g.wb(a));a?b.navigationEndpoint==null?g.qx(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.qx(Error("Button style was not a link-style type in renderer,")):this.show():g.qx(Error("No visit advertiser text was present in the renderer."))};g.z(ez,Zx);
ez.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);a=b.text;g.wb($x(a))?g.qx(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.C&&!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 Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),a.init(Ox("simple-ad-badge"),b,c),a.Ha(this.element),g.P(this,a)),this.api.U().experiments.bb("enable_unified_ad_badge_style_fix")&&
this.D&&this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())};
ez.prototype.clear=function(){this.hide()};g.z(fz,Px);g.z(gz,g.Qx);g.k=gz.prototype;g.k.xK=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Id.Mc(this.j)};
g.k.Rc=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.m6=function(a){g.$y(a,2)&&this.publish("g")};g.z(hz,g.Qx);g.k=hz.prototype;g.k.xK=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.Ze.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.Ze.stop())};
g.k.Rc=function(){this.vj+=100;var a=!1;this.vj>this.durationMs&&(this.vj=this.durationMs,this.Ze.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.vj/1E3};this.publish("h");a&&this.publish("g")};
g.k.getProgressState=function(){return this.B};g.z(kz,Ky);g.k=kz.prototype;g.k.init=function(a,b,c){Ky.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.qx(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new Iy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb);this.B.init(Ox("ad-text"),a,{});this.B.Ha(this.element);g.P(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){My(this);Ky.prototype.hide.call(this)};
g.k.Wq=function(){this.hide()};
g.k.pp=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof gz?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof hz?a.seekableEnd:this.api.getDuration(2,!1))-a.current,Jy(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.iz(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){Ly(this);Ky.prototype.show.call(this)};g.z(lz,Iy);lz.prototype.onClick=function(a){Iy.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.z(nz,Zx);nz.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});if(a=b.content){g.zh(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.px(Error("AdSimpleAttributedString does not have text content"))};
nz.prototype.clear=function(){this.hide()};
nz.prototype.onClick=function(a){Zx.prototype.onClick.call(this,a)};g.z(oz,Zx);
oz.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.wb(a.content)?(this.adBadgeText.init(Ox("ad-simple-attributed-string"),new mz(a)),(b=b.adPodIndex)&&b.content&&!g.wb(b.content)&&(this.j=new nz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),this.j.Ha(this.element),g.P(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Ox("ad-simple-attributed-string"),new mz(b))),this.element.classList.add(this.B?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.px(Error("No label is returned in AdBadgeViewModel."))};
oz.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();Zx.prototype.show.call(this)};
oz.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();Zx.prototype.hide.call(this)};g.z(pz,Zx);
pz.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});(a=b.adPodIndex)&&a.content&&!g.wb(a.content)&&(this.j=new nz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),this.j.Ha(this.element),g.P(this,this.j),this.j.init(Ox("ad-simple-attributed-string"),new mz(a)),this.B&&b.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE"||this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()};
pz.prototype.show=function(){var a;(a=this.j)==null||a.show();Zx.prototype.show.call(this)};
pz.prototype.hide=function(){var a;(a=this.j)==null||a.hide();Zx.prototype.hide.call(this)};g.z(qz,Zx);
qz.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.wb(b.text.content)){this.j=new g.Yx({I:"div",S:"ytp-ad-disclosure-banner__text",va:b.text.content});g.P(this,this.j);this.j.Ha(this.element);var d,e;a=((d=b.interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label)||b.text.content;this.element.setAttribute("aria-label",a);var f;if((f=b.interaction)==null?0:f.onTap)this.B=new g.Yx({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.ey()]}),
g.P(this,this.B),this.B.Ha(this.element);this.show()}}else g.px(Error("No banner text found in AdDisclosureBanner."))};
qz.prototype.clear=function(){this.hide()};rz.prototype.getLength=function(){return this.j-this.B};g.z(tz,g.Yx);tz.prototype.Rc=function(){var a=this.B.getProgressState(),b=a.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.U().L("show_preskip_progress_bar_for_skippable_ads")&&(b=this.C?this.C/1E3:a.seekableEnd);a=sz(new rz(a.seekableStart,b),a.current,0);this.progressBar.style.width=a*100+"%"};
tz.prototype.onStateChange=function(){g.SP(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Rc,this),this.Rc()):this.j!==-1&&(this.hide(),this.B.Fh(this.j),this.j=-1))};g.z(uz,Zx);
uz.prototype.init=function(a,b,c,d){Zx.prototype.init.call(this,a,b,c);c=!0;if(b.skipOrPreviewRenderer){var e=b.skipOrPreviewRenderer;a=g.Q(e,QI);e=g.Q(e,cK);a?(e=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B,this.qa),e.Ha(this.W),e.init(Ox("skip-button"),a,this.macros),g.P(this,e)):e&&!this.api.U().experiments.bb("disable_ad_preview_for_instream_ads")&&(a=new Py(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B,!1),a.Ha(this.W),a.init(Ox("ad-preview"),e,
this.macros),Qy(a),g.P(this,a));if(a=g.Q(b.skipOrPreviewRenderer,QI)){c=!1;var f=a.skipOffsetMilliseconds}}b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,e=new Sy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),e.Ha(this.Ka),e.init(Ox("instream-user-sentiment"),a,this.macros),g.P(this,e));if(a=g.Q(b,Xbb))if(a=g.Q(a,Xbb))e=new Ry(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B,!!b.showWithoutLinkedMediaLayout),g.P(this,e),
e.Ha(this.D),e.init(Ox("flyout-cta"),a,this.macros);a=this.api.U().L("disable_ad_duration_remaining_for_instream_video_ads")||b.adPodIndex!==void 0;d=d&&d.videoAdDurationSeconds;if(b.adBadgeRenderer){var h=b.adBadgeRenderer;e=g.Q(h,gcb);e!=null?(h=new oz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,a),g.P(this,h),h.Ha(this.j),h.init(Ox("ad-badge"),e,this.macros),this.C=h.element):(e=h.simpleAdBadgeRenderer,e==null&&(e={text:{text:"Ad",isTemplated:!1}}),h=new ez(this.api,this.layoutId,
this.interactionLoggingClientData,this.fb,!0,!1),g.P(this,h),h.Ha(this.j),h.init(Ox("simple-ad-badge"),e,this.macros))}b.adPodIndex&&(e=g.Q(b.adPodIndex,jcb),e!=null&&(c=new pz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,c),g.P(this,c),c.Ha(this.j),c.init(Ox("ad-pod-index"),e)));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(c=b.adDurationRemaining.adDurationRemainingRenderer,c==null&&(c={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",
isTemplated:!0}}}),d=new kz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B,d,a),g.P(this,d),d.Ha(this.j),d.init(Ox("ad-duration-remaining"),c,this.macros),this.api.U().L("enable_ad_pod_index_autohide")&&d.element.classList.add("ytp-ad-duration-remaining-autohide"));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,bK))&&(c=new Hy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.element,void 0,a),g.P(this,c),this.api.U().L("enable_ad_pod_index_autohide")&&this.C!==
null?this.j.insertBefore(c.element,this.C.nextSibling):c.Ha(this.j),c.init(Ox("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(c=g.Q(b.visitAdvertiserRenderer,g.dK))&&(e=qta(this)&&this.G?this.G:this.j)&&(d=new dz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),g.P(this,d),d.Ha(e),d.init(Ox("visit-advertiser"),c,this.macros),zp(d.element),c=Cp(d.element),Bp(d.element,c+" This link opens in new tab"));!(d=this.api.U())||g.QP(d)||d.controlsType!="3"&&!d.disableOrganicUi||
(f=new tz(this.api,this.B,f,a),f.Ha(this.Oa),g.P(this,f));b.adDisclosureBannerRenderer&&(b=g.Q(b.adDisclosureBannerRenderer,icb))&&(f=new qz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),f.Ha(this.Fa),f.init(Ox("ad-disclosure-banner"),b),g.P(this,f));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Mp(this.element,"ytp-ad-player-overlay-updated-focus-style");this.api.U().L("enable_unified_ad_badge_style_fix")&&(this.D.classList.add("ytp-ad-player-overlay-flyout-cta-unified"),
this.j.classList.add("ytp-ad-player-overlay-instream-info-unified"));a&&this.api.U().B&&this.j.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()};
uz.prototype.clear=function(){this.hide()};Rz.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)};
Rz.prototype.get=function(a){return this.j.get(a)};
Rz.prototype.remove=function(a){this.j.remove(a)};var Vz=null,Wz=null,Xz=null,wta=null;g.Oa("yt.www.ads.eventcache.getLastCompanionData",function(){return Vz});
g.Oa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Oa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Wz});
g.Oa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Xz});
g.Oa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return wta});var yta=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Yz.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.Aq.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)};
Yz.prototype.replace=function(a,b){a=g.w(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Ata(this,b)};var mdb=window.location.hostname.split(".").slice(-2).join("."),T1;$z.getInstance=function(){T1=g.Pa("yt.clientLocationService.instance");T1||(T1=new $z,g.Oa("yt.clientLocationService.instance",T1));return T1};
g.k=$z.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.zr("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Zz(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.ns("YT_CL",JSON.stringify({loctok:a}),15552E3,mdb,!0))};
g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=Zz(this))&&this.localStorage.remove("yt-location-playability-token"):g.ps("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.zr("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=Fta.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.Go=function(){return Object.keys(this.j)};
g.k.remove=function(a){delete this.j[a]};bA.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
bA.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=cd(b)}}return a};
bA.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
new bA;var U1={},Gta=(U1.WEB_UNPLUGGED="^unplugged/",U1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",U1.WEB_UNPLUGGED_OPS="^unplugged/",U1.WEB_UNPLUGGED_PUBLIC="^unplugged/",U1.WEB_CREATOR="^creator/",U1.WEB_KIDS="^kids/",U1.WEB_EXPERIMENTS="^experiments/",U1.WEB_MUSIC="^music/",U1.WEB_REMIX="^music/",U1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",U1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",U1);eA.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?cv:c;var d={context:g.aA(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.dA(this.C());(e=(f=g.Q(a.commandMetadata,g.L1))==null?void 0:f.apiUrl)&&(b=e);f=Ena(qs(b));a=Object.assign({},{command:a},void 0);d={input:f,Mv:rs(f),Aq:d,config:a};d.config.bx?d.config.bx.identity=c:d.config.bx={identity:c};return d}g.px(new g.At("Error: Failed to create Request from Command.",a))};
g.fa.Object.defineProperties(eA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.z(fA,eA);g.z(gA,fA);gA.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Mv:rs("/getDatasyncIdsEndpoint","GET"),Aq:{}}};
gA.prototype.C=function(){return[]};
gA.prototype.B=function(){};
gA.prototype.j=function(){};var ndb={},mua=(ndb.GET_DATASYNC_IDS=cA(gA),ndb);var V1={},odb=(V1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",V1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",V1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",V1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",V1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",V1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",V1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
V1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",V1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",V1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",V1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",V1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",V1["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",V1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",V1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
V1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",V1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",V1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",V1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",V1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",V1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",V1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
V1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",V1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",V1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",V1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",V1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",V1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",V1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",V1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
V1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",V1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",V1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",V1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",V1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",V1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",V1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",V1["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",V1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",V1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",V1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",V1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",V1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",V1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",V1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",V1["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",V1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",V1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",V1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",V1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",V1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",V1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",V1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",V1["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",V1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",V1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",V1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",V1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",V1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",V1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",V1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",V1["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
V1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",V1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",V1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",V1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",V1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",V1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",V1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",V1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",V1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
V1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",V1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",V1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",V1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",V1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",V1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",V1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",V1["video.translations"]=
"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",V1),W1={},Nta=(W1.auto_search="LATENCY_ACTION_AUTO_SEARCH",W1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",W1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",W1.app_startup="LATENCY_ACTION_APP_STARTUP",W1.browse="LATENCY_ACTION_BROWSE",W1.cast_splash="LATENCY_ACTION_CAST_SPLASH",W1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",W1.channels="LATENCY_ACTION_CHANNELS",W1.chips="LATENCY_ACTION_CHIPS",W1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",W1.direct_playback=
"LATENCY_ACTION_DIRECT_PLAYBACK",W1.embed="LATENCY_ACTION_EMBED",W1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",W1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",W1.explore="LATENCY_ACTION_EXPLORE",W1.favorites="LATENCY_ACTION_FAVORITES",W1.home="LATENCY_ACTION_HOME",W1.inboarding="LATENCY_ACTION_INBOARDING",W1.library="LATENCY_ACTION_LIBRARY",W1.live="LATENCY_ACTION_LIVE",W1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",W1.mini_app=
"LATENCY_ACTION_MINI_APP_PLAY",W1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",W1.onboarding="LATENCY_ACTION_ONBOARDING",W1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",W1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",W1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",W1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",W1.prebuffer="LATENCY_ACTION_PREBUFFER",W1.prefetch="LATENCY_ACTION_PREFETCH",W1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",
W1.profile_switcher="LATENCY_ACTION_LOGIN",W1.reel_watch="LATENCY_ACTION_REEL_WATCH",W1.results="LATENCY_ACTION_RESULTS",W1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",W1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",W1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",W1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",W1.search_ui="LATENCY_ACTION_SEARCH_UI",W1.search_suggest="LATENCY_ACTION_SUGGEST",W1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",W1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",
W1.seek="LATENCY_ACTION_PLAYER_SEEK",W1.settings="LATENCY_ACTION_SETTINGS",W1.store="LATENCY_ACTION_STORE",W1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",W1.tenx="LATENCY_ACTION_TENX",W1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",W1.watch="LATENCY_ACTION_WATCH",W1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",W1["watch,watch7"]="LATENCY_ACTION_WATCH",W1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",W1["watch,watch7ad"]="LATENCY_ACTION_WATCH",W1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",
W1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",W1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",W1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",W1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",W1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",W1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",W1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",W1);Object.assign(Nta,odb);g.z(pA,dv);var aua=new ev("aft-recorded",pA);var pdb=g.Na.ytLoggingGelSequenceIdObj_||{};g.Oa("ytLoggingGelSequenceIdObj_",pdb);var sA=g.Na.ytLoggingLatencyUsageStats_||{};g.Oa("ytLoggingLatencyUsageStats_",sA);qA.prototype.tick=function(a,b,c,d){tA(this,"tick_"+a+"_"+b)||g.Qt("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
qA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");tA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Qt("latencyActionInfo",a,{cttAuthInfo:c}))};
qA.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<Ve(a).length;e++)Ve(a)[e]!==void 0&&(d=e===0?d.concat(""+e):d.concat("_"+e));if(!tA(this,"info_"+d+"_"+b)){ve(a,2,b);c={cttAuthInfo:c};b=g.Zr("jspb_sparse_encoded_pivot")?new ur([{}]):new ur;a!=null?qd(a,rr):a=void 0;de(b,7,vcb,a);c=c===void 0?{}:c;a=!1;g.zr("ytLoggingEventsDefaultDisabled",!1)&&(a=!0);a=a?null:g.Mv;c=c===void 0?{}:c;d=Math.round(c.timestamp||(0,g.hu)());ue(b,1,d<Number.MAX_SAFE_INTEGER?d:0);d=new tr;c.lact?ue(d,1,isFinite(c.lact)?
c.lact:-1):c.timestamp?ue(d,1,-1):(e=hw(),ue(d,1,isFinite(e)?e:-1));if(c.sequenceGroup&&!g.Zr("web_gel_sequence_info_killswitch")){e=c.sequenceGroup;var f=Dra(e),h=new sr;ue(h,2,f);ve(h,1,e);ke(d,sr,3,h);c.endOfSequence&&delete pdb[c.sequenceGroup]}ke(b,tr,33,d);(c.sendIsolatedPayload?ira:jra)("latencyActionInfo",{endpoint:"log_event",payload:b,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},a)}};
qA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");tA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Qt("latencyActionSpan",a,{cttAuthInfo:c}))};var X1=window,uA=X1.performance||X1.mozPerformance||X1.msPerformance||X1.webkitPerformance||new Ota;var $ta=!1,Rta=!1,DA={'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"},cua=(0,g.Xa)(uA.clearResourceTimings||uA.webkitClearResourceTimings||uA.mozClearResourceTimings||uA.msClearResourceTimings||uA.oClearResourceTimings||g.Bi,uA);var qdb=window;qdb.ytcsi&&(qdb.ytcsi.infoGel=g.GA,qdb.ytcsi.tick=FA);var sua="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),uua=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var xua=new iw("INNERTUBE_TRANSPORT_TOKEN");g.z(OA,fA);OA.prototype.C=function(){return adb};
OA.prototype.B=function(a){return g.Q(a,Mcb)||void 0};
OA.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.fa.Object.defineProperties(OA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.z(PA,fA);PA.prototype.C=function(){return bdb};
PA.prototype.B=function(a){return g.Q(a,Lcb)||void 0};
PA.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.fa.Object.defineProperties(PA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rdb=new iw("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.z(QA,fA);QA.prototype.C=function(){return Wcb};
QA.prototype.B=function(a){return g.Q(a,Ccb)||g.Q(a,Dcb)||g.Q(a,Bcb)};
QA.prototype.j=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.K)==null?0:c.j(b.clientParamIdentifier))a.clientParams=this.K.B(b.clientParamIdentifier)}};
QA[lw]=[rdb];g.z(RA,fA);RA.prototype.C=function(){return Ycb};
RA.prototype.B=function(a){return g.Q(a,scb)||void 0};
RA.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.fa.Object.defineProperties(RA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.z(SA,fA);SA.prototype.C=function(){return Zcb};
SA.prototype.B=function(a){return g.Q(a,Kcb)||void 0};
SA.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.z(TA,fA);TA.prototype.C=function(){return $cb};
TA.prototype.B=function(a){return g.Q(a,Icb)||void 0};
TA.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.z(UA,fA);UA.prototype.C=function(){return Xcb};
UA.prototype.B=function(a){return g.Q(a,Ecb)};
UA.prototype.j=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var sdb=new iw("FETCH_FN_TOKEN"),tdb=new iw("PARSE_FN_TOKEN");g.z(g.VA,g.At);var udb=new iw("NETWORK_SLI_TOKEN");WA.prototype.fetch=function(a,b,c){var d=this,e,f,h;return g.J(function(l){e=vua(d,a,b);h=(f=d.B)!=null?f:fetch;return l.return(h(e).then(function(m){return d.handleResponse(m,c)}).catch(function(m){g.qx(m);
if((c==null?0:c.Tr)&&m instanceof g.VA&&m.errorType===1)return Promise.reject(m)}))})};
WA.prototype.handleResponse=function(a,b){var c,d=(c=this.C)!=null?c:JSON.parse;c=a.text().then(function(e){if((b==null?0:b.Q$)&&a.ok)return cda(b.Q$,e);e=e.replace(")]}'","");if((b==null?0:b.Tr)&&e)try{var f=d(e)}catch(l){throw new g.VA(1,"JSON parsing failed after fetch");}var h;return(h=f)!=null?h:d(e)});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.Rna(),c=c.then(function(e){g.qx(new g.At("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})}));
return c};
WA[lw]=[new jw(udb),new jw(sdb),new jw(tdb)];var wua=new iw("NETWORK_MANAGER_TOKEN");var XA;$A.prototype.bindInnertubeChallengeFetcher=function(a){this.j.bicf(a)};
$A.prototype.registerChallengeFetchedCallback=function(a){this.j.bcr(a)};
$A.prototype.getLatestChallengeResponse=function(){return this.j.blc()};var Aua=[],aB=!1;fB.prototype.D=function(){var a=this;return g.J(function(b){return b.j==1?g.G(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
fB.prototype.C=function(a,b,c){var d=this,e,f,h;return g.J(function(l){d.j===null&&Cua(d,eB(d));e=!1;f={};h=function(){var m,n,p;return g.J(function(q){switch(q.j){case 1:return g.G(q,d.j,2);case 2:m=q.B;f.challenge=m.challenge;if(!m.dh){"c1a"in m.Gl&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ea(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.wa(q,4);e=!0;if(g.Zr("attbs")&&!g.Zr("attmusi")){p=m.dh.IU({Hj:n});q.Ea(6);break}return g.G(q,m.dh.snapshot({Hj:n}),7);case 7:p=q.B;case 6:p?f.webResponse=
p:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.xa(q,3);break;case 4:g.ya(q),f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var r=m.Gl,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^bB()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.zr("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
return l.return(Promise.race([h(),Gua(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var Jua=["APP_STATE","PI"];var XBa=[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,231255,231254,231258,231259,98349,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,7282,124448,196088,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,225031,177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,
171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,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,229298,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,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,230676,230679,230678,230677,230681,230680,162711,235234,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,225137,222612,222613,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,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,
75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,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,234409,234408,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,233634,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,226736,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,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,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,233471,151308,151152,228067,130975,130976,210815,191925,167637,234545,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,233985,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,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,227356,163566,186641,147842,217932,104443,96659,147595,106442,231493,182423,162776,228908,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,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,223051,17736,3832,147111,55759,64031,234746,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];hB.prototype.getState=function(){return this.store.getState()};
hB.prototype.dispatch=function(a){return this.store.dispatch(a)};
hB.prototype.subscribe=function(a){return this.store.subscribe(a)};
hB.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
hB.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.k=jB.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(Mua(this,a)){var b=this.Yf[this.Yf.length-1];this.Yf[this.Yf.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);mB(this)}else this.Yf.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new jB,c=new jB,d=g.w(this.Yf),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{fL:b,nm:c}};
g.k.isFocused=function(a){return a>=this.vk&&a<this.vk+this.Yf[this.Bj].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.vk&&mB(this);this.vk+this.Yf[this.Bj].length<=a&&this.Bj<this.Yf.length;)this.vk+=this.Yf[this.Bj].length,this.Bj+=1;this.BF=void 0}};
g.k.Rx=function(a,b){return a+b<=this.totalLength};
g.k.Pd=function(a,b){a=a===void 0?0:a;b=b===void 0?-1:b;if(!this.totalLength||!b)return new DataView(new ArrayBuffer(0));b<0&&(b=this.totalLength-a);this.focus(a);if(!nB(this,a,b)){var c=this.Bj,d=this.vk;this.focus(a+b-1);d=new Uint8Array(this.vk+this.Yf[this.Bj].length-d);for(var e=0,f=c;f<=this.Bj;f++)d.set(this.Yf[f],e),e+=this.Yf[f].length;this.Yf.splice(c,this.Bj-c+1,d);mB(this);this.focus(a)}c=this.Yf[this.Bj];return new DataView(c.buffer,c.byteOffset+a-this.vk,b)};
g.k.Gk=function(a,b){a=this.Pd(a===void 0?0:a,b===void 0?-1:b);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
g.k.getUint8=function(a){this.focus(a);return this.Yf[this.Bj][a-this.vk]};var sB,qB,uB;g.cU=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}();
sB=Array(1024);qB=window.TextDecoder?new TextDecoder:void 0;uB=window.TextEncoder?new TextEncoder:void 0;for(var Vua={accountLinkStatusEntity:122,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,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,suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},Uua={},vdb=g.w(Object.entries(Vua)),
wdb=vdb.next();!wdb.done;wdb=vdb.next()){var xdb=g.w(wdb.value),ydb=xdb.next().value,zdb=xdb.next().value,Adb=ydb,Bdb=zdb;Bdb&&(Uua[Bdb]=Adb)};var Yua=!1,VB,WB,XB,YB,ZB;g.z($B,g.O);
$B.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;)Zua(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(Zua(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var bC=!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 cC;g.eC.prototype.encrypt=function(a,b){var c=this,d,e;return g.J(function(f){if(f.j==1){d=dC();if(!d)return f.return(c.j(a,b));g.wa(f,3);return g.G(f,c.B(a,b,d),5)}if(f.j!=3)return f.return(f.B);e=g.ya(f);g.qx(e);bC=!0;return f.return(c.j(a,b))})};
g.eC.prototype.B=function(a,b,c){var d=this,e,f;return g.J(function(h){switch(h.j){case 1:if(d.G){h.Ea(2);break}return g.G(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.G(h,c.encrypt(e,d.G,a),4);case 4:return f=h.B,h.return(new Uint8Array(f))}})};
g.eC.prototype.j=function(a,b){this.C||(this.C=new $B(this.D));aC(this.C,b);return this.C.encrypt(a)};
g.eC.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.fC.prototype.encrypt=function(a,b){this.j||(this.j=new $B(this.B));aC(this.j,b);return this.j.encrypt(a)};
g.fC.prototype.decrypt=function(a,b){return this.encrypt(a,b)};gC.prototype.reset=function(){ava(this);this.update(this.C)};
gC.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,$ua(this,this.K,0));for(;b+64<=c;b+=64)$ua(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var hC=[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 Cdb;Cdb={};g.Ddb=g.Ru("yt-idb-pref-storage",{Ls:(Cdb.prefs={Zn:1},Cdb),shared:!1,upgrade:function(a,b){b(1)&&g.pu(g.ju(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var Y1;Y1={};g.Edb=(Y1.INVALID_ENCODER_VERSION="Invalid encoder version",Y1.KEY_CREATION_FAILED="Failed to create encoder key",Y1.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Y1.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Y1.WRONG_DATA_TYPE="Encoder cannot process the data type",Y1);g.RB("","downloadsPageViewConfigurationEntity");g.RB("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.Z1=g.RB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.RB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.RB("SMART_DOWNLOADS_ENABLED","settingEntity");g.RB("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");g.k=iC.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript)d=Uma(a.interpreterSafeScript);else{var f;d=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(e=dr(a.interpreterSafeUrl).toString());nva(this,d,e,a.program,b,c)}else g.qx(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.nV()};
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.nV()?this.q4({Hj:a}):null};
g.k.dispose=function(){this.rU(null);this.yd(8)};
g.k.nV=function(){return!!this.dh};
g.k.q4=function(a){return this.dh.IU(a)};
g.k.rU=function(a){g.vg(this.dh);this.dh=a};
g.k.yd=function(a){this.state=a};g.z(kC,iC);kC.prototype.rU=function(a){var b;(b=jC())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.IU.bind(a)},g.Oa("yt.abuse.playerAttLoader",b),g.Oa("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Oa("yt.abuse.playerAttLoader",null),g.Oa("yt.abuse.playerAttLoaderRun",null))};
kC.prototype.nV=function(){return!!jC()};
kC.prototype.q4=function(a){return jC().bgvmc(a)};lC.prototype.Wr=function(){return"crossDeviceProgressCommand"};
lC.prototype.Fu=function(a){if(a.crossDevicePings){var b=[];a=g.w(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.Qt("crossDeviceNotificationTransfer",{crossDevicePings:b})}};mC.prototype.Wr=function(){return"muteAdEndpoint"};
mC.prototype.Fu=function(a,b){switch(a.type){case "SKIP":ova(this.Xl,this.Zo,b)}};nC.prototype.Wr=function(){return"openPopupAction"};
nC.prototype.Fu=function(){};oC.prototype.Wr=function(){return"pingingEndpoint"};
oC.prototype.Fu=function(){};var vva={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.z(qva,g.O);var v9a={iga:"FINAL",lga:"AD_BREAK_LENGTH",nga:"AD_CPN",oga:"AH",pga:"AD_MT",qga:"ASR",tga:"AW",xha:"NM",yha:"NX",zha:"NY",Eha:"CONN",Jha:"CPN",aia:"DV_VIEWABILITY",lia:"ERRORCODE",qia:"ERROR_MSG",sia:"EI",Kia:"GOOGLE_VIEWABILITY",Zia:"IAS_VIEWABILITY",Gja:"LACT",Jja:"LIVE_TARGETING_CONTEXT",Tja:"I_X",Uja:"I_Y",Yja:"MT",aka:"MIDROLL_POS",bka:"MIDROLL_POS_MS",cka:"MOAT_INIT",dka:"MOAT_VIEWABILITY",Hka:"P_H",Ika:"PV_H",Jka:"PV_W",Kka:"P_W",Mka:"TRIGGER_TYPE",qla:"SDKV",Gla:"SLOT_POS",Pla:"SURVEY_LOCAL_TIME_EPOCH_S",
Ola:"SURVEY_ELAPSED_MS",B7:"VIS",uma:"VIEWABILITY",wma:"VED",xma:"VOL",zma:"WT",gna:"YT_ERROR_CODE"};rC.prototype.Wr=function(){return"urlEndpoint"};
rC.prototype.Fu=function(a,b,c){var d=this.Na.get(),e=YK(d.B.get(),b);e?b=hF(d,o9a(e),e,void 0,void 0,c):(Xy("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);hI(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=aI(this.Pf,2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.Wo(a.url,b);g.Uz(b,void 0,void 0,void 0,a.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};sC.prototype.get=function(){return this.value};
g.z(tC,sC);tC.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.z(uC,sC);uC.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.z(vC,sC);vC.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.z(wC,sC);wC.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.z(xC,sC);xC.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.z(yC,sC);yC.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.z(zC,sC);zC.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.z(AC,sC);AC.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.z(BC,sC);BC.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.z(CC,sC);CC.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.z(DC,sC);DC.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.z(EC,sC);EC.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.z(FC,sC);FC.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.z(GC,sC);GC.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.z(HC,sC);HC.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.z(IC,sC);IC.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.z(JC,sC);JC.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.z(KC,sC);KC.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.z(LC,sC);LC.prototype.getType=function(){return"metadata_type_content_cpn"};
g.z(MC,sC);MC.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.z(NC,sC);NC.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.z(OC,sC);OC.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.z(PC,sC);PC.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.z(QC,sC);QC.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.z(RC,sC);RC.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.z(SC,sC);SC.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.z(TC,sC);TC.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.z(UC,sC);UC.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.z(VC,sC);VC.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.z(WC,sC);WC.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.z(XC,sC);XC.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.z(YC,sC);YC.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.z(ZC,sC);ZC.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.z($C,sC);$C.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.z(aD,sC);aD.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.z(bD,sC);bD.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.z(cD,sC);cD.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.z(dD,sC);dD.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.z(eD,sC);eD.prototype.getType=function(){return"metadata_type_cue_point"};
g.z(fD,sC);fD.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.z(gD,sC);gD.prototype.getType=function(){return"metadata_type_player_vars"};
g.z(hD,sC);hD.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.z(iD,sC);iD.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.z(jD,sC);jD.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.z(kD,sC);kD.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.z(lD,sC);lD.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.z(mD,sC);mD.prototype.getType=function(){return"metadata_type_dai"};
g.z(nD,sC);nD.prototype.getType=function(){return"metadata_type_ad_intro"};
g.z(oD,sC);oD.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.z(pD,sC);pD.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.z(qD,sC);qD.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.z(rD,sC);rD.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.z(sD,sC);sD.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.z(tD,sC);tD.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.z(uD,sC);uD.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.z(vD,sC);vD.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.z(wD,sC);wD.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.z(xD,sC);xD.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.z(yD,sC);yD.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.z(zD,sC);zD.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.z(AD,sC);AD.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.z(BD,sC);BD.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.z(CD,sC);CD.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.z(DD,sC);DD.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.z(ED,sC);ED.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.z(FD,sC);FD.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.z(GD,sC);GD.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.z(HD,sC);HD.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var Iva=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 Rva=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.z(LD,ob);g.z(Z,ob);new Promise(function(){});var zva=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"]]),xva=new Map([["normal",{mz:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{mz:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{mz:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{mz:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{mz:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{mz:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{mz:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",zz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.z(WD,g.O);g.k=WD.prototype;g.k.LQ=function(a,b){return this.j.LQ(a,b)};
g.k.Ug=function(a,b){this.Rb.lJ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.w(this.B),d=c.next();!d.done;d=c.next())d.value.Ug(a,b)};
g.k.xf=function(a){if(aE(this.j,a)){this.Rb.nk("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.xf(a);for(var b=g.w(this.B),c=b.next();!c.done;c=b.next())c.value.xf(a);Dva(this,a)}};
g.k.yf=function(a){if(aE(this.j,a)){this.Rb.nk("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.yf(a);for(var b=g.w(this.B),c=b.next();!c.done;c=b.next())c.value.yf(a);aE(this.j,a)&&bE(this.j,a).G&&ZD(this,a,!1)}};
g.k.pM=function(a){this.Rb.nk("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);aE(this.j,a)&&(this.j.pM(a),ZD(this,a,!1))};
g.k.wc=function(a,b){if(aE(this.j,a)){this.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.w(this.B),d=c.next();!d.done;d=c.next())d.value.wc(a,b)}};
g.k.Kc=function(a,b,c){if(aE(this.j,a)){this.Rb.Yh(yva(c),a,b);this.j.Kc(a,b);for(var d=g.w(this.B),e=d.next();!e.done;e=d.next())e.value.Kc(a,b,c);(c=oE(this.j,a))&&b.layoutId===c.layoutId&&Ova(this,a,!1)}};
g.k.Mf=function(a,b,c,d){c.Dl&&d?(Xy(c,a,b,void 0,c.ax),this.Rb.Hm(d,c.Dl,a,b)):Xy("adsClientErrorMessage is missing.",a,b);ZD(this,a,!0)};
g.k.xa=function(){var a=Qva(this.j);a=g.w(a);for(var b=a.next();!b.done;b=a.next())ZD(this,b.value,!1);g.O.prototype.xa.call(this)};
g.k.xg=function(a,b){this.Rb.Yh("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Rb.Yh("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.w(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.xg(a,b)};Pva.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.z(rE,g.O);g.k=rE.prototype;g.k.LQ=function(a,b){b=nE(this,a+"_"+b);a=[];b=g.w(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Vg=function(a){a=bE(this,a);a.j!=="not_scheduled"&&pE(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.AF=function(a){a=bE(this,a);a.D="fill_requested";a.N.AF()};
g.k.xf=function(a){a=bE(this,a);a.j!=="enter_requested"&&pE(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.pM=function(a){bE(this,a).D="fill_canceled"};
g.k.yf=function(a){a=bE(this,a);a.j!=="exit_requested"&&pE(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Kc=function(a,b){a=bE(this,a);a.layout!=null&&a.layout.layoutId===b.layoutId&&(a.j!=="rendering_stop_requested"&&pE(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.z(uE,g.O);uE.prototype.get=function(){this.Ia()&&Xy("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.z(wE,g.O);wE.prototype.C=function(){return this.j};xE.prototype.executeCommand=function(a,b){qC(this.j(),a,b)};AE.prototype.addListener=function(a){this.listeners.add(a)};
AE.prototype.removeListener=function(a){this.listeners.delete(a)};var $1={},JE=($1.AD_MARKER="ytp-ad-progress",$1.CHAPTER_MARKER="ytp-chapter-marker",$1.TIME_MARKER="ytp-time-marker",$1);var jNa=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/)"),awa=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]+)?/)"),
kNa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),hwa=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)|$))"),
fwa=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)|$))"),cwa=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/)"),
lNa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),dwa=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)"),bwa=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/.*$)"),
OJa=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)"),
NJa=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|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://localhost\\.googleusercontent\\.com(:\\d+)?(/|$)|^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)"),
Fdb=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|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://localhost\\.googleusercontent\\.com(:\\d+)?$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.KE.prototype.getId=function(){return this.id};
g.KE.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+lwa(this.start)+", "+lwa(this.end)+"]"};
g.KE.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 kwa=1;g.KE.prototype.getId=g.KE.prototype.getId;OE.prototype.AF=function(){var a=this,b=0;Zva(this.j,function(){var c=ND(a.slot.clientMetadata,"metadata_type_ad_break_request_data");b=Date.now();MI(a.Na.get(),"abrs","ct."+b+";cmt."+a.Ga.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({f4:c.getAdBreakUrl,nY:new g.KE(c.Gv,c.Fv),vx:ND(a.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){nwa(a)},function(c){var d=Date.now()-b;
MI(a.Na.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ga.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Zw;d.length>=2&&c.ssdaiAdsConfig&&Xy("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)})||nwa(a)})};
OE.prototype.fP=function(){$va(this.j)};PE.prototype.AF=function(){var a=this;Zva(this.j,function(){var b=ND(a.slot.clientMetadata,"metadata_type_ad_break_request_data");return a.B.get().fetch({f4:b.getAdBreakUrl,nY:new g.KE(b.Gv,b.Fv)})})};
PE.prototype.fP=function(){$va(this.j)};QE.prototype.AF=function(){var a=this.slot.clientMetadata,b,c=(b=this.slot.fulfilledLayout)!=null?b:ND(a,"metadata_type_fulfilled_layout");Eva(this.callback,this.slot,c)};
QE.prototype.fP=function(){$D(this.callback,this.slot,new Z("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")};SE.prototype.build=function(a,b){return b.fulfilledLayout||RE(b,{Od:["metadata_type_fulfilled_layout"]})?new QE(a,b):this.C(a,b)};g.z(TE,SE);
TE.prototype.C=function(a,b){if(RE(b,{Od:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new OE(a,b,this.j,this.B,this.Re,this.ya,this.Na,this.Ga,this.Hc);if(RE(b,{Od:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new PE(a,b,this.j,this.B,this.Re,this.ya);throw new Z("Unsupported slot with type: "+b.slotType+" and client metadata: "+OD(b.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.z(UE,SE);UE.prototype.C=function(a,b){throw new Z("Unsupported slot with type: "+b.slotType+" and client metadata: "+OD(b.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.k=owa.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=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.Mf(this.slot,a,new LD("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=ND(a.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.wc(this.slot,a),yza(this.C,
this.slot,b)):Xy("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Ld=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Mf(this.slot,a,new LD("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.Kc(this.slot,a,b),qwa(this),rwa(this))};g.z(ZE,g.Qx);g.k=ZE.prototype;g.k.dc=function(){return this.B.slot};
g.k.Wa=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.XQ=function(){};
g.k.VQ=function(){};
g.k.UQ=function(){};
g.k.XK=function(){};
g.k.startRendering=function(a){var b=this;YE(this.B,a,function(){return void b.rN()})};
g.k.rN=function(){this.C.get().rN(this.j)};
g.k.Ld=function(a,b){var c=this;YE(this.B,a,function(){var d=c.C.get();E9a(d,c.j,3);c.j=[];c.callback.Kc(c.slot,a,b)})};
g.k.xa=function(){this.C.Ia()||this.C.get().removeListener(this);g.Qx.prototype.xa.call(this)};
g.fa.Object.defineProperties(ZE.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});fF.prototype.Wh=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&uwa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.x(d))}iF(this,a,c);this.j.add(a);b&&this.j.add(b)};
fF.prototype.Zb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&uwa(a);c&&(b=!this.j.has(c));this.Wh(a,b)}};g.z(xwa,Px);g.z(nF,ZE);g.k=nF.prototype;g.k.vg=function(a,b){bF("ads-engagement-panel-layout",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),g.Q(this.Wa().renderingContent,LJ),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new xwa(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};g.z(zwa,Px);g.z(oF,ZE);g.k=oF.prototype;g.k.vg=function(a,b){bF("banner-image",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),g.Q(this.Wa().renderingContent,JJ),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new zwa(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};g.z(pF,Px);g.z(qF,ZE);g.k=qF.prototype;g.k.vg=function(a,b){bF("action-companion",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),g.Q(this.Wa().renderingContent,GJ),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new pF(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};g.z(Cwa,Px);g.z(rF,ZE);g.k=rF.prototype;g.k.vg=function(a,b){bF("image-companion",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),g.Q(this.Wa().renderingContent,HJ),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Cwa(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};g.z(Ewa,Px);g.z(sF,ZE);g.k=sF.prototype;g.k.vg=function(a,b){bF("shopping-companion",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Ewa(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};g.z(uF,ZE);g.k=uF.prototype;g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new pF(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(){};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};
g.k.vg=function(){};g.k=Kwa.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){this.Ga.get().addListener(this);this.Ga.get().dF.push(this);var a=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=ND(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cF(this.layout.Ab)&&D0(this.zb.get(),this.layout.layoutId,{Qt:b,QI:a,listener:this})};
g.k.release=function(){this.Ga.get().removeListener(this);y9a(this.Ga.get(),this);cF(this.layout.Ab)&&E0(this.zb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.wc(this.slot,a)};
g.k.Ld=function(a,b){Y8a(this.ya.get())&&!this.j&&(this.Za.Zb("abandon"),this.j=!0);this.callback.Kc(this.slot,a,b)};
g.k.Tj=function(a){switch(a.id){case "part2viewed":this.Za.Zb("start");this.Za.Zb("impression");break;case "videoplaytime25":this.Za.Zb("first_quartile");break;case "videoplaytime50":this.Za.Zb("midpoint");break;case "videoplaytime75":this.Za.Zb("third_quartile");break;case "videoplaytime100":Y8a(this.ya.get())?this.j||(this.Za.Zb("complete"),this.j=!0):this.Za.Zb("complete");mF(this.Za)&&kF(this.Za,Infinity,!0);Z8a(this.ya.get())&&tF(this.B,Infinity,!0);break;case "engagedview":mF(this.Za)||this.Za.Zb("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Xy("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.jj=function(){};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Dg=function(){};
g.k.Si=function(){};
g.k.AS=function(a){Z8a(this.ya.get())&&tF(this.B,a*1E3,!1);mF(this.Za)&&kF(this.Za,a*1E3,!1)};
g.k.Wj=function(){};
g.k.Ly=function(){this.Za.Zb("active_view_measurable")};
g.k.My=function(){this.Za.Zb("active_view_viewable")};
g.k.Ky=function(){this.Za.Zb("active_view_fully_viewable_audible_half_duration")};
g.k.Jy=function(){this.Za.Zb("audio_measurable")};
g.k.Iy=function(){this.Za.Zb("audio_audible")};g.z(vF,ZE);g.k=vF.prototype;g.k.init=function(){ZE.prototype.init.call(this);var a=ND(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ub};this.j.push(new fz(a,this.layout.layoutId,ND(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.Nq=function(){this.D||this.Ga.get().resumeVideo(1)};
g.k.startRendering=function(a){ZE.prototype.startRendering.call(this,a);L0(this.Ga.get(),"ad-showing");this.callback.wc(this.slot,a);this.G.Pt=this};
g.k.Ld=function(a,b){ZE.prototype.Ld.call(this,a,b);M0(this.Ga.get(),"ad-showing");m1(this.G,this)};
g.k.vg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ga.get().Uo(1))||this.Ga.get().pauseVideo();break;case "visit-advertiser":this.Ga.get().pauseVideo()}};
g.k.xa=function(){ZE.prototype.xa.call(this)};g.z(wF,Px);g.z(xF,ZE);g.k=xF.prototype;g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new wF(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(){};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};
g.k.vg=function(){};g.z(yF,Px);g.z(zF,ZE);zF.prototype.init=function(){ZE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,NF)||ND(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),b=$E(this.Za);this.j.push(new yF(a,b,this.layout.layoutId,{adsClientData:this.layout.Ub},!0,!0))};
zF.prototype.startRendering=function(a){ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
zF.prototype.vg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=ND(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.oM(this.dc(),this.layout)}};
zF.prototype.xa=function(){ZE.prototype.xa.call(this)};BF.prototype.build=function(a,b,c,d){if(AF(d,{Od:["metadata_type_ad_break_response_data"],Je:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new owa(a,c,d,this.B,this.C,this.j);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.z(Nwa,Px);g.z(CF,ZE);g.k=CF.prototype;g.k.vg=function(a,b){bF("ads-engagement-panel",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),g.Q(this.Wa().renderingContent,IJ),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new Nwa(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};g.z(DF,ZE);g.k=DF.prototype;g.k.vg=function(a,b){bF("top-banner-image-text-icon-buttoned",a,this.K.get().tj,this.Na.get(),this.D,this.G,this.dc(),this.Wa(),b)};
g.k.startRendering=function(a){aF(this.Za,this.dc(),this.Wa(),g.Q(this.Wa().renderingContent,KJ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new wF(b,c,d,e,f)},this.j);
ZE.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Oi():Xy("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.xa=function(){YD(this.uc(),this);ZE.prototype.xa.call(this)};Qwa.prototype.build=function(a,b,c,d){if(AF(d,Owa())||g.Q(d.renderingContent,IJ)!==void 0)return new CF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,Bwa())||g.Q(d.renderingContent,GJ)!==void 0)return new qF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,Dwa())||g.Q(d.renderingContent,HJ)!==void 0)return new rF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,Fwa()))return new sF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,Jwa()))return new uF(a,c,d,this.yc,this.Na,this.uc,
this.zb,this.j);if(AF(d,Awa())||g.Q(d.renderingContent,JJ)!==void 0)return new oF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,Pwa())||g.Q(d.renderingContent,KJ)!==void 0)return new DF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,Lwa()))return new xF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);if(AF(d,ywa())||g.Q(d.renderingContent,LJ)!==void 0)return new nF(a,c,d,this.yc,this.Na,this.uc,this.zb,this.j);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
OD(d.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.z(EF,Px);g.z(FF,ZE);FF.prototype.init=function(){ZE.prototype.init.call(this);var a=ND(this.layout.clientMetadata,"metadata_type_player_underlay_renderer");this.j.push(new EF(g.Q(a,Ybb),this.layout.layoutId,{adsClientData:this.layout.Ub}))};
FF.prototype.vg=function(){};
FF.prototype.startRendering=function(a){ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
FF.prototype.xa=function(){ZE.prototype.xa.call(this)};Rwa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.w(gF()),f=e.next();!f.done;f=e.next())b.push(f.value);if(AF(d,{Od:b,Je:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new FF(a,c,d,this.yc);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=Swa.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Mf(this.slot,a,new LD("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.wc(this.slot,a),this.Za.Zb("impression"),DI(this.Ti,a,"normal"))};
g.k.Ld=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Mf(this.slot,a,new LD("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.Kc(this.slot,a,b)};g.k=Uwa.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.Mf(this.slot,a,new LD("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.wc(this.slot,a),this.Za.Zb("impression"),DI(this.Ti,a,"normal"))};
g.k.Ld=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Mf(this.slot,a,new LD("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.Kc(this.slot,a,b)};GF.prototype.build=function(a,b,c,d){if(!this.ya.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(AF(d,Twa()))return new Swa(a,c,d,this.Na,this.Ti)}else if(AF(d,{Od:[],Je:["LAYOUT_TYPE_FORECASTING"]}))return new Uwa(a,c,d,this.Na,this.Ti);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.z(Xwa,Px);g.z(HF,ZE);g.k=HF.prototype;g.k.init=function(){ZE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,MF)||ND(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.Ub};this.j.push(new Xwa(a,ND(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.Nq=function(){this.D||this.Ga.get().resumeVideo(2)};
g.k.startRendering=function(a){ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.G.Pt=this};
g.k.Ld=function(a,b){ZE.prototype.Ld.call(this,a,b);m1(this.G,this)};
g.k.vg=function(a){if(XK(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Na.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.Ga.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ga.get().Uo(2))||this.Ga.get().pauseVideo();break;case "visit-advertiser-link":this.Ga.get().pauseVideo();Ywa(this).YM();break;
case "skip-button":if(a=Ywa(this),!this.layout.renderingContent&&a.rL)Xy("Requesting to skip by LegacyPlayerBytes when components enabled"),a.Ry(this.dc(),this.layout);else{var b;(a=(b=ND(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.oM(this.dc(),this.layout)}}};
g.k.xa=function(){ZE.prototype.xa.call(this)};g.z(IF,ZE);g.k=IF.prototype;g.k.init=function(){ZE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,LF)||ND(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ub},c;(c=!!this.layout.renderingContent)||(c=!JF(this).rL);this.j.push(new fz(a,this.layout.layoutId,ND(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Nq=function(){this.D||this.Ga.get().resumeVideo(2)};
g.k.startRendering=function(a){ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.G.Pt=this};
g.k.Ld=function(a,b){ZE.prototype.Ld.call(this,a,b);m1(this.G,this)};
g.k.vg=function(a){if(XK(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Na.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.Ga.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ga.get().Uo(2))||this.Ga.get().pauseVideo();break;case "visit-advertiser":this.Ga.get().pauseVideo();JF(this).YM();break;case "skip-button":if(a=
JF(this),!this.layout.renderingContent&&a.rL)Xy("Requesting to skip by LegacyPlayerBytes"),a.Ry(this.dc(),this.layout);else{var b;(a=(b=ND(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.oM(this.dc(),this.layout)}}};
g.k.xa=function(){ZE.prototype.xa.call(this)};g.z($wa,Px);g.z(KF,ZE);g.k=KF.prototype;g.k.startRendering=function(a){var b=this;YE(this.B,a,function(){b.j.push(new $wa(ND(b.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Ub));b.rN();b.callback.wc(b.slot,a);g.U(C0(b.Ga.get(),1),512)&&b.callback.Mf(b.dc(),b.Wa(),new LD("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Si=function(){};
g.k.Dg=function(a){if(a.state.isError()){var b;this.callback.Mf(this.dc(),this.Wa(),new LD("A player error happened during adNotify",{playerErrorCode:(b=a.state.Pg)==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.Ah=function(){};
g.k.Uj=function(){};
g.k.jj=function(){};
g.k.onVolumeChange=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};
g.k.vg=function(){};bxa.prototype.build=function(a,b,c,d){if(a=OF(a,c,d,this.yc,this.Ga,this.Na,this.B,this.j,this.ya))return a;throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=cxa.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){this.Ga.get().addListener(this);this.Ga.get().dF.push(this);var a=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=ND(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),c=ND(this.layout.clientMetadata,"metadata_type_active_view_identifier");cF(this.layout.Ab)&&D0(this.zb.get(),this.layout.layoutId,{Qt:b,QI:a,listener:this,E7:c})};
g.k.release=function(){this.Ga.get().removeListener(this);y9a(this.Ga.get(),this);cF(this.layout.Ab)&&E0(this.zb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.wc(this.slot,a)};
g.k.Ld=function(a,b){RF(this,"abandon");this.callback.Kc(this.slot,a,b)};
g.k.Tj=function(a){switch(a.id){case "part2viewed":this.Za.Zb("start");this.Za.Zb("impression");break;case "videoplaytime25":this.Za.Zb("first_quartile");break;case "videoplaytime50":this.Za.Zb("midpoint");break;case "videoplaytime75":this.Za.Zb("third_quartile");break;case "videoplaytime100":RF(this,"complete");mF(this.Za)&&kF(this.Za,Infinity,!0);break;case "engagedview":mF(this.Za)||this.Za.Zb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:Xy("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.jj=function(){};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Dg=function(a){this.j||(g.$y(a,4)&&!g.$y(a,2)?jF(this.Za,"pause"):Zy(a,4)<0&&!(Zy(a,2)<0)&&jF(this.Za,"resume"))};
g.k.Si=function(){};
g.k.AS=function(a){mF(this.Za)&&kF(this.Za,a*1E3,!1)};
g.k.Wj=function(){RF(this,"swipe")};
g.k.Ly=function(){this.Za.Zb("active_view_measurable")};
g.k.My=function(){this.Za.Zb("active_view_viewable")};
g.k.Ky=function(){this.Za.Zb("active_view_fully_viewable_audible_half_duration")};
g.k.Jy=function(){this.Za.Zb("audio_measurable")};
g.k.Iy=function(){this.Za.Zb("audio_audible")};dxa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.w(gF()),f=e.next();!f.done;f=e.next())b.push(f.value);if(AF(d,{Od:b,Je:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new cxa(a,c,d,this.Ga,this.Na,this.ya,this.zb):new Kwa(a,c,d,this.Ga,this.Na,this.Jb,this.ya,this.zb);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var UF={contentCpn:"",Vt:new Map};nxa.prototype.Lk=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Pf.Wm(),c));this.Pf.J.ma(a,b)};var Gdb,a2,oxa;
Gdb={Gga:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",bha:"AUTHENTICATION_MALFORMED",cha:"AUTHENTICATION_MISSING",eha:"BAD_REQUEST",mha:"CAST_SESSION_DEVICE_MISMATCHED",nha:"CAST_SESSION_VIDEO_MISMATCHED",oha:"CAST_TOKEN_EXPIRED",pha:"CAST_TOKEN_FAILED",qha:"CAST_TOKEN_MALFORMED",rha:"CGI_PARAMS_MALFORMED",sha:"CGI_PARAMS_MISSING",Rha:"DEVICE_FALLBACK",mia:"GENERIC_WITH_LINK_AND_CPN",oia:"ERROR_HDCP",pia:"LICENSE",ria:"VIDEO_UNAVAILABLE",xia:"FORMAT_UNAVAILABLE",Cia:"GEO_FAILURE",
Tia:"HTML5_AUDIO_RENDERER_ERROR",Uia:"GENERIC_WITHOUT_LINK",Via:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Wia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Xia:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",Yia:"HTML5_SPS_UMP_STATUS_REJECTED",ija:"INVALID_DRM_MESSAGE",Tka:"PURCHASE_NOT_FOUND",Uka:"PURCHASE_REFUNDED",ela:"RENTAL_EXPIRED",kla:"RETRYABLE_ERROR",tla:"SERVER_ERROR",Cla:"SIGNATURE_EXPIRED",Jla:"STOPPED_BY_ANOTHER_PLAYBACK",Kla:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Lla:"STREAMING_NOT_ALLOWED",
Mla:"STREAM_LICENSE_NOT_FOUND",Tla:"TOO_MANY_REQUESTS",Ula:"TOO_MANY_REQUESTS_WITH_LINK",Vla:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Wla:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",rma:"VIDEO_FORBIDDEN",tma:"VIDEO_NOT_FOUND",hha:"BROWSER_OR_EXTENSION_ERROR"};a2={};
g.CY=(a2.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.",a2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",a2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",a2.LICENSE="Sorry, there was an error licensing this video.",a2.VIDEO_UNAVAILABLE=
"Video unavailable",a2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",a2.GEO_FAILURE="This video isn't available in your country.",a2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",a2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",a2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",a2.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",
a2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",a2.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",a2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",a2.PURCHASE_NOT_FOUND="This video requires payment.",a2.PURCHASE_REFUNDED="This video's purchase has been refunded.",a2.RENTAL_EXPIRED="This video's rental has expired.",a2.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",a2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",a2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",a2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",a2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",a2.SERVER_ERROR="There was an internal server error. Please try again later.",a2.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",a2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",a2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",a2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",a2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",a2.TOO_MANY_REQUESTS="Please log in to watch this video.",
a2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",a2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",a2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",a2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",a2.VIDEO_FORBIDDEN="Access to this video is forbidden.",a2.VIDEO_NOT_FOUND="This video can not be found.",a2.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",a2);
oxa={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 Hdb;var Idb=g.Cb(),Jdb=Idb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Jdb||Jdb.length<2)Hdb=void 0;else{var Kdb=Idb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Hdb=Kdb&&Kdb.length===6?Number(Kdb[5].replace("_",".")):0}var hR=Hdb,xY=hR>=0;g.z(g.jG,ft);g.jG.prototype.T=function(a,b,c,d,e){return ft.prototype.T.call(this,a,b,c,d,e)};var b2={},pO=(b2.FAIRPLAY="fairplay",b2.PLAYREADY="playready",b2.WIDEVINE="widevine",b2.CLEARKEY=null,b2.FLASHACCESS=null,b2.UNKNOWN=null,b2.WIDEVINE_CLASSIC=null,b2);kG.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var c2={},xM=(c2.WIDTH={name:"width",video:!0,valid:640,Po:99999},c2.HEIGHT={name:"height",video:!0,valid:360,Po:99999},c2.FRAMERATE={name:"framerate",video:!0,valid:30,Po:9999},c2.BITRATE={name:"bitrate",video:!0,valid:3E5,Po:2E9},c2.EOTF={name:"eotf",video:!0,valid:"bt709",Po:"catavision"},c2.CHANNELS={name:"channels",video:!1,valid:2,Po:99},c2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Po:"invalidformat"},c2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Po:"nope"},c2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Po:"av99.0.05M.08"},c2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Po:"invalid"},c2);var Ldb=["h","H"],Mdb=["9","("],Ndb=["9h","(h"],Odb=["8","*"],Pdb=["a","A"],Qdb=["o","O"],Rdb=["m","M"],Sdb=["mac3","MAC3"],Tdb=["meac3","MEAC3"],d2={},XIa=(d2.h=Ldb,d2.H=Ldb,d2["9"]=Mdb,d2["("]=Mdb,d2["9h"]=Ndb,d2["(h"]=Ndb,d2["8"]=Odb,d2["*"]=Odb,d2.a=Pdb,d2.A=Pdb,d2.o=Qdb,d2.O=Qdb,d2.m=Rdb,d2.M=Rdb,d2.mac3=Sdb,d2.MAC3=Sdb,d2.meac3=Tdb,d2.MEAC3=Tdb,d2),Udb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),MDa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var e2={},qG=(e2["0"]="f",e2["160"]="h",e2["133"]="h",e2["134"]="h",e2["135"]="h",e2["136"]="h",e2["137"]="h",e2["264"]="h",e2["266"]="h",e2["138"]="h",e2["298"]="h",e2["299"]="h",e2["304"]="h",e2["305"]="h",e2["214"]="h",e2["216"]="h",e2["374"]="h",e2["375"]="h",e2["140"]="a",e2["141"]="ah",e2["327"]="sa",e2["258"]="m",e2["380"]="mac3",e2["328"]="meac3",e2["161"]="H",e2["142"]="H",e2["143"]="H",e2["144"]="H",e2["222"]="H",e2["223"]="H",e2["145"]="H",e2["224"]="H",e2["225"]="H",e2["146"]="H",e2["226"]=
"H",e2["227"]="H",e2["147"]="H",e2["384"]="H",e2["376"]="H",e2["385"]="H",e2["377"]="H",e2["149"]="A",e2["261"]="M",e2["381"]="MAC3",e2["329"]="MEAC3",e2["598"]="9",e2["278"]="9",e2["242"]="9",e2["243"]="9",e2["244"]="9",e2["775"]="9",e2["776"]="9",e2["777"]="9",e2["778"]="9",e2["779"]="9",e2["780"]="9",e2["781"]="9",e2["782"]="9",e2["783"]="9",e2["247"]="9",e2["248"]="9",e2["353"]="9",e2["355"]="9",e2["356"]="9",e2["271"]="9",e2["577"]="9",e2["313"]="9",e2["579"]="9",e2["272"]="9",e2["302"]="9",
e2["303"]="9",e2["407"]="9",e2["408"]="9",e2["308"]="9",e2["315"]="9",e2["330"]="9h",e2["331"]="9h",e2["332"]="9h",e2["333"]="9h",e2["334"]="9h",e2["335"]="9h",e2["336"]="9h",e2["337"]="9h",e2["338"]="so",e2["600"]="o",e2["250"]="o",e2["251"]="o",e2["194"]="*",e2["195"]="*",e2["220"]="*",e2["221"]="*",e2["196"]="*",e2["197"]="*",e2["279"]="(",e2["280"]="(",e2["317"]="(",e2["318"]="(",e2["273"]="(",e2["274"]="(",e2["357"]="(",e2["358"]="(",e2["275"]="(",e2["359"]="(",e2["360"]="(",e2["276"]="(",e2["583"]=
"(",e2["584"]="(",e2["314"]="(",e2["585"]="(",e2["561"]="(",e2["277"]="(",e2["361"]="(h",e2["362"]="(h",e2["363"]="(h",e2["364"]="(h",e2["365"]="(h",e2["366"]="(h",e2["591"]="(h",e2["592"]="(h",e2["367"]="(h",e2["586"]="(h",e2["587"]="(h",e2["368"]="(h",e2["588"]="(h",e2["562"]="(h",e2["409"]="(",e2["410"]="(",e2["411"]="(",e2["412"]="(",e2["557"]="(",e2["558"]="(",e2["394"]="1",e2["395"]="1",e2["396"]="1",e2["397"]="1",e2["398"]="1",e2["399"]="1",e2["720"]="1",e2["721"]="1",e2["400"]="1",e2["401"]=
"1",e2["571"]="1",e2["402"]="1",e2["694"]="1h",e2["695"]="1h",e2["696"]="1h",e2["697"]="1h",e2["698"]="1h",e2["699"]="1h",e2["700"]="1h",e2["701"]="1h",e2["702"]="1h",e2["703"]="1h",e2["386"]="3",e2["387"]="w",e2["406"]="6",e2["787"]="1",e2["788"]="1",e2["645"]="(",e2["646"]="(",e2["647"]="(",e2["648"]="(",e2["649"]="(",e2["650"]="(",e2["651"]="(",e2["652"]="(",e2["653"]="(",e2["654"]="(",e2["655"]="(",e2["656"]="(",e2["657"]="(",e2["658"]="(",e2["659"]="(",e2["660"]="(",e2["661"]="(",e2["662"]="(",
e2["663"]="(",e2["664"]="(",e2["665"]="(",e2["666"]="(",e2["667"]="(",e2["668"]="(",e2["669"]="(",e2["670"]="(",e2["671"]="(",e2["672"]="(",e2["673"]="(",e2["674"]="(h",e2["675"]="(h",e2["676"]="(h",e2["677"]="(h",e2["678"]="(h",e2["679"]="(h",e2["680"]="(h",e2["681"]="(h",e2["682"]="(h",e2["683"]="(h",e2["684"]="(h",e2["685"]="(h",e2["686"]="(h",e2["687"]="(h",e2["688"]="A",e2["689"]="A",e2["690"]="A",e2["691"]="MEAC3",e2["773"]="i",e2["806"]="I",e2["805"]="I",e2);var f2={},bIa=(f2.STEREO_LAYOUT_UNKNOWN=0,f2.STEREO_LAYOUT_LEFT_RIGHT=1,f2.STEREO_LAYOUT_TOP_BOTTOM=2,f2);var g2,jM;g2={};g.mG=(g2.auto=0,g2.tiny=144,g2.light=144,g2.small=240,g2.medium=360,g2.large=480,g2.hd720=720,g2.hd1080=1080,g2.hd1440=1440,g2.hd2160=2160,g2.hd2880=2880,g2.highres=4320,g2);jM={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var oG="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");nG.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};rG.prototype.Pe=function(){return this.containerType===2};
rG.prototype.isEncrypted=function(){return!!this.qe};
rG.prototype.cg=function(){return!!this.audio};
rG.prototype.dg=function(){return!!this.video};g.z(OG,g.Qx);g.k=OG.prototype;g.k.appendBuffer=function(a,b,c){if(this.Hd.GF()!==this.appendWindowStart+this.start||this.Hd.uK()!==this.appendWindowEnd+this.start||this.Hd.zc()!==this.timestampOffset+this.start)this.Hd.supports(1),this.Hd.iU(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Hd.Kn(this.timestampOffset+this.start);this.Hd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Hd.abort()};
g.k.remove=function(a,b){this.Hd.remove(a+this.start,b+this.start)};
g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Hd.clear()};
g.k.iU=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.PQ=function(){return this.timestampOffset+this.start};
g.k.GF=function(){return this.appendWindowStart};
g.k.uK=function(){return this.appendWindowEnd};
g.k.Kn=function(a){this.timestampOffset=a};
g.k.zc=function(){return this.timestampOffset};
g.k.ke=function(a){a=this.Hd.ke(a===void 0?!1:a);return NG(a,this.start,this.end)};
g.k.Jk=function(){return this.Hd.Jk()};
g.k.UK=function(){return this.Hd.UK()};
g.k.qn=function(){return this.Hd.qn()};
g.k.xR=function(){return this.Hd.xR()};
g.k.oA=function(){this.Hd.oA()};
g.k.qy=function(a){return this.Hd.qy(a)};
g.k.Fx=function(){return this.Hd.Fx()};
g.k.EK=function(){return this.Hd.EK()};
g.k.pQ=function(){return this.Hd.pQ()};
g.k.JN=function(a,b,c){this.Hd.JN(a,b,c)};
g.k.fV=function(a,b,c){this.Hd.fV(a,b,c)};
g.k.UH=function(a,b){return this.Hd.UH(a,b)};
g.k.supports=function(a){return this.Hd.supports(a)};
g.k.RF=function(){return this.Hd.RF()};
g.k.isView=function(){return!0};
g.k.KJ=function(){return this.Hd.KJ()?this.isActive:!1};
g.k.isLocked=function(){return this.TI&&!this.isActive};
g.k.pc=function(a){a=this.Hd.pc(a);a.vw=this.start+"-"+this.end;return a};
g.k.FK=function(){return this.Hd.FK()};
g.k.NA=function(){return this.Hd.NA()};
g.k.JQ=function(){return this.Hd.JQ()};
g.k.xa=function(){Sx(this.Hd,this.EZ);g.Qx.prototype.xa.call(this)};var MU=!1;g.z(QG,g.Qx);g.k=QG.prototype;g.k.appendBuffer=function(a,b,c){this.VE=!1;c&&(this.CG=c);if(a.length){var d;((d=this.Pb)==null?0:d.appendBuffer)?this.Pb.appendBuffer(a):this.Pb?this.Pb.append(a):this.Bh&&this.Bh.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.NR=this.CG),b.type===3&&(this.Kf=b),this.BG.push(b.vc()),this.BG.length>4&&this.BG.shift());this.EC&&(this.EC.length>=2||a.length>1048576?delete this.EC:this.EC.push(a))};
g.k.abort=function(){try{this.Pb?this.Pb.abort():this.Bh&&this.Bh.webkitSourceAbort(this.id)}catch(a){S5a&&g.px(new g.At("Error while abort the source buffer: "+a.name+", "+a.message))}this.CG=this.Kf=null};
g.k.remove=function(a,b,c){this.VE=!1;var d;if((d=this.Pb)==null?0:d.remove)c&&c({b:HG(this.ke()),s:a,e:b}),this.Pb.remove(a,b)};
g.k.removeAll=function(){this.remove(this.GF(),this.uK())};
g.k.clear=function(){this.qn()||(this.abort(),this.removeAll(),this.NR=this.CG=this.Kf=null,this.appendWindowStart=this.timestampOffset=0,this.bP=GG([],[]),this.VE=!1,this.EC=PG?[]:void 0,this.OJ=!0)};
g.k.GF=function(){if(MU&&this.dg)return this.appendWindowStart;var a;return((a=this.Pb)==null?void 0:a.appendWindowStart)||0};
g.k.uK=function(){var a;return((a=this.Pb)==null?void 0:a.appendWindowEnd)||0};
g.k.iU=function(a,b){this.Pb&&(MU&&this.dg?(this.appendWindowStart=a,this.Pb.appendWindowEnd=b):a>this.GF()?(this.Pb.appendWindowEnd=b,this.Pb.appendWindowStart=a):(this.Pb.appendWindowStart=a,this.Pb.appendWindowEnd=b))};
g.k.PQ=function(){return this.timestampOffset};
g.k.Kn=function(a){MU?this.timestampOffset=a:this.supports(1)&&(this.Pb.timestampOffset=a)};
g.k.zc=function(){return MU?this.timestampOffset:this.supports(1)?this.Pb.timestampOffset:0};
g.k.ke=function(a){if(a===void 0?0:a)return this.VE||this.Jk()||(this.bP=this.ke(!1),this.VE=!0),this.bP;try{return this.Pb?this.Pb.buffered:this.Bh?this.Bh.webkitSourceBuffered(this.id):GG([0],[Infinity])}catch(b){return GG([],[])}};
g.k.Jk=function(){var a;return((a=this.Pb)==null?void 0:a.updating)||!1};
g.k.qn=function(){return this.OJ};
g.k.xR=function(){return!this.OJ&&this.Jk()};
g.k.oA=function(){this.OJ=!1};
g.k.qy=function(a){var b=a==null?void 0:a.jb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.jb&&a===this.containerType};
g.k.Fx=function(){return this.CG};
g.k.EK=function(){return this.NR};
g.k.UH=function(a,b){return this.containerType!==a||this.jb!==b};
g.k.JN=function(a,b,c){if(this.containerType!==a||c&&this.UH(a,c))this.supports(4),RG()&&this.Pb.changeType(b),c&&(this.jb=c);this.containerType=a};
g.k.fV=function(a,b,c){this.containerType&&this.UH(a,b)&&RG()&&this.Pb.changeType(c);this.containerType=a;this.jb=b};
g.k.RF=function(){return this.Kf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Pb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Pb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Pb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Pb)==null?0:e.addEventListener)&&((f=this.Pb)==null?0:f.removeEventListener));case 4:return!(!this.Pb||!this.Pb.changeType);default:return!1}};
g.k.KJ=function(){return!this.Jk()};
g.k.isLocked=function(){return!1};
g.k.pc=function(a){a.to=this.zc();a.up=this.Jk();var b,c=((b=this.Pb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Pb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=HG(this.ke())}catch(e){}return a};
g.k.UK=function(){var a;return((a=this.Pb)==null?void 0:a.writeHead)||0};
g.k.FK=function(){for(var a={},b=0;b<this.BG.length;b++)a["s"+b]=this.BG[b];return a};
g.k.xa=function(){this.supports(3)&&(this.Pb.removeEventListener("updateend",this.Id),this.Pb.removeEventListener("error",this.Id));g.Qx.prototype.xa.call(this)};
g.k.NA=function(){return this.containerType};
g.k.pQ=function(){return this.jb};
g.k.JQ=function(){return this.EC};
var PG=!1,S5a=!1;SG.prototype.dispose=function(){if(!this.Ia){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
SG.prototype.Ia=function(){return this.B};
SG.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.z(TG,g.O);g.k=TG.prototype;g.k.getDuration=function(){var a;return((a=this.Pa)==null?void 0:a.duration)||this.W};
g.k.qr=function(a){try{this.Pa?this.Pa.duration=a:(this.W=a,this.Bh.webkitSourceSetDuration(a))}catch(b){}};
g.k.Rg=function(){try{return FH(this)==="closed"}catch(a){return!0}};
g.k.Jk=function(){return!!(this.j&&this.j.Jk()||this.B&&this.B.Jk())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):GH()};
g.k.Yca=function(){!this.Ia()&&UG(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.Xca=function(){this.dispose()};
g.k.n6=function(a){if(zH&&!this.D&&a.qn()&&a.ke().length===0){var b;CH(this.mediaElement,{l:"mswoue",sr:(b=this.mediaElement.ea)==null?void 0:DH(b)},!1);a.oA();this.qn()||(this.mediaElement.jL=!0,this.mediaElement.setCurrentTime(0))}};
g.k.eP=function(){return!!this.j.supports(2)};
g.k.clear=function(){yxa(this,function(){});
var a;(a=this.j)==null||a.clear();var b;(b=this.B)==null||b.clear()};
g.k.qn=function(){var a,b;return((a=this.B)==null?void 0:a.qn())||((b=this.j)==null?void 0:b.qn())};
g.k.qy=function(a,b){return!!this.j&&!!this.B&&this.j.qy(b)&&this.B.qy(a)};
var zH=!1;HH.prototype.then=function(a,b){return this.promise.then(a,b)};
HH.prototype.resolve=function(a){this.CC(a)};
HH.prototype.reject=function(a){this.IT(a)};g.z(IH,g.O);g.k=IH.prototype;g.k.jJ=function(){return this.resource};
g.k.activate=function(a){var b="";a&&(Hxa(this,a),b=a.resource);if(!this.ri()||b)b&&this.ri()!==b&&(this.lN(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.kU(!(a==null||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.dY),this.N=!0)};
g.k.Yr=function(a,b){if(this.B)if(R5a&&EH(this.B)&&!this.B.qy(a,b)){var c;CH(this,{l:"megms",sr:(c=this.ea)==null?void 0:DH(c)});Fxa(this);this.stopVideo()}else return this.Pa=this.B,this.B=void 0,this.Pa;a=window.MediaSource?new TG(this,new window.MediaSource,!1):window.ManagedMediaSource?new TG(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new TG(this,new window.WebKitMediaSource,!1):new TG(this,void 0,!1);this.activate(a.C);this.Pa=a;this.jL=!1;return a};
g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.ri()&&this.resource&&(g.px(Error("playVideo without src")),this.lN(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&&xY&&(hR||0)>=7&&qxa(this,function(){g.Ur(function(){Gxa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){this.zl()>0&&(xY&&hR<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.tp=function(){if(!this.B&&this.Pa)if(this.Pa.G)try{var a;CH(this,{l:"mer",sr:(a=this.ea)==null?void 0:DH(a),rs:FH(this.Pa)});this.Pa.clear();this.B=this.Pa;this.Pa=void 0}catch(b){a=new g.At("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.px(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Pa)==null||Dxa(b);if(P5a){if(!this.C){var c=new HH;c.then(void 0,function(){});
this.C=c;Q5a&&this.pause();g.Ur(function(){a.C===c&&(LH(a),c.resolve())},200)}}else LH(this)}};
g.k.QA=function(){var a=this.Kh();return LG(a)>0&&this.getDuration()?KG(a,this.getCurrentTime()):0};
g.k.Ix=function(){var a=this.getDuration();return a===Infinity?1:a?this.QA()/a:0};
g.k.pc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:HG(this.Mx(),",",3),vbu:HG(this.Kh()),vbs:HG(this.VA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.zl(),vns:""+this.HK(),vec:""+this.Mh(),vemsg:this.Zf(),vvol:""+this.getVolume(),vdom:""+ +this.yR(),vsrc:""+ +!!this.ri(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return this.Mh()>0};
g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.XP(a)};
g.k.removeEventListener=function(a,b){this.D.Mc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(R5a){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.Pa;if((c==null?0:c.qn())||b<=((c==null?void 0:c.K)||0)){var d;CH(this,{l:"mede",sr:(d=this.ea)==null?void 0:DH(d),et:a.type});return!1}if(this.jL)return CH(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.K=performance.now(),this.jL=!1),!1}return this.D.dispatchEvent(a)};
g.k.UP=function(){this.K=!1};
g.k.QP=function(){this.K=!0;this.LC(!0)};
g.k.dY=function(){this.K&&!this.GK()&&this.LC(!0)};
g.k.xa=function(){this.N&&this.removeEventListener("volumechange",this.dY);P5a&&LH(this);g.O.prototype.xa.call(this)};
var P5a=!1,Q5a=!1,R5a=!1;g.k=g.NH.prototype;g.k.isPaused=function(){return g.U(this,4)};
g.k.isPlaying=function(){return g.U(this,8)&&!g.U(this,512)&&!g.U(this,64)&&!g.U(this,2)};
g.k.isOrWillBePlaying=function(){return g.U(this,8)&&!g.U(this,2)&&!g.U(this,1024)};
g.k.isCued=function(){return g.U(this,64)&&!g.U(this,8)&&!g.U(this,4)};
g.k.isBuffering=function(){return g.U(this,1)&&!g.U(this,2)};
g.k.isError=function(){return g.U(this,128)};
g.k.isSuspended=function(){return g.U(this,512)};
g.k.tG=function(){return g.U(this,64)&&g.U(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var h2={},i2=(h2.BUFFERING="buffering-mode",h2.CUED="cued-mode",h2.ENDED="ended-mode",h2.PAUSED="paused-mode",h2.PLAYING="playing-mode",h2.SEEKING="seeking-mode",h2.UNSTARTED="unstarted-mode",h2);g.z(XH,g.O);g.k=XH.prototype;g.k.Vr=function(){return this.C};
g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){var a=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=ND(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cF(this.layout.Ab)&&D0(this.zb.get(),this.layout.layoutId,{Qt:b,QI:a,listener:this,To:this.Ye()});q9a(this.Na.get(),this);a=this.Tg;b=this.layout.layoutId;var c={To:this.Ye()};a.j.set(b,c);this.lL()};
g.k.kB=function(){};
g.k.release=function(){cF(this.layout.Ab)&&E0(this.zb.get(),this.layout.layoutId);r9a(this.Na.get(),this);this.Tg.j.delete(this.layout.layoutId);this.iz()};
g.k.Ss=function(){};
g.k.Us=function(){};
g.k.startRendering=function(a){XF(YH(this));if(ZH(this,a)){var b=this.j;YF(b.params.Ij.ya.get(),!0)&&mxa(b,"p_sr",{});$H(this);this.ut(a);this.Ye()||this.BJ(!1)}};
g.k.wc=function(a,b){if(b.layoutId===this.layout.layoutId){this.lc="rendering";this.B=this.Ga.get().isMuted()||this.Ga.get().getVolume()===0;this.Zb("impression");this.Zb("start");if(this.Ga.get().isMuted()){fI(this,"mute");var c;a=((c=WH(this))==null?void 0:c.muteCommands)||[];yE(this.Jb.get(),a,this.layout.layoutId)}if(this.Ga.get().isFullscreen()){this.Wh("fullscreen");var d;c=((d=WH(this))==null?void 0:d.fullscreenCommands)||[];yE(this.Jb.get(),c,this.layout.layoutId)}this.Ye()||(d=this.Dc.get(),
d.C&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(KA("pbs",void 0,d.actionType),g.Zr("finalize_all_timelines")&&fua(d.actionType))));this.Xq(1);this.MS(b);var e;b=((e=WH(this))==null?void 0:e.impressionCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.YL=function(a,b,c){this.N={SN:3,NI:a==="load_timeout"?402:400,errorMessage:b.message};this.Zb("error");var d;a=((d=WH(this))==null?void 0:d.errorCommands)||[];yE(this.Jb.get(),a,this.layout.layoutId);this.Ye()||this.Ap.Mf(this.slot,this.layout,b,c)};
g.k.J3=function(){if(this.lc==="rendering"){fI(this,"pause");var a,b=((a=WH(this))==null?void 0:a.pauseCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId);this.Xq(2)}};
g.k.K3=function(){if(this.lc==="rendering"){fI(this,"resume");var a,b=((a=WH(this))==null?void 0:a.resumeCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.Fz=function(a,b){b=b===void 0?!1:b;if(this.lc==="rendering"){var c={currentTimeSec:a,flush:b};ZF(this.j,"p_ip",c);kF(this.Za,a*1E3,b);this.B||kF(this.Za,a*1E3,b===void 0?!1:b);var d=this.OA();if(d){d/=1E3;if(a>=d*.25||b)this.Zb("first_quartile"),ZF(this.j,"p_fq",c);if(a>=d*.5||b)this.Zb("midpoint"),ZF(this.j,"p_sq",c);if(a>=d*.75||b)this.Zb("third_quartile"),ZF(this.j,"p_tq",c);this.ya.get().J.U().experiments.bb("enable_progress_command_flush_on_kabuki")?tF(this.D,a*1E3,b):tF(this.D,a*1E3,Oxa(this)?
b:!1)}}};
g.k.Wm=function(){var a;return((a=aI(this.Qa.get(),1))==null?void 0:a.clientPlaybackNonce)||""};
g.k.Gz=function(a,b){a.layoutId!==this.layout.layoutId?this.Ap.Mf(this.slot,a,new LD("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.Kc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.lc="not_rendering",this.layoutExitReason=void 0,this.Ye()||(a=c!=="normal"||this.position+1===this.K)&&this.BJ(a),this.I3(c),this.Xq(0),c){case "abandoned":if(lF(this.Za,"impression")){var d,e=((d=WH(this))==null?void 0:d.abandonCommands)||[];yE(this.Jb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=WH(this))==null?void 0:e.completeCommands)||[];yE(this.Jb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f=
WH(this))==null?void 0:f.skipCommands)||[];yE(this.Jb.get(),d,this.layout.layoutId)}};
g.k.PA=function(){return this.layout.layoutId};
g.k.lQ=function(){return this.N};
g.k.Ly=function(){if(this.lc==="rendering"){this.Za.Zb("active_view_measurable");var a,b=((a=WH(this))==null?void 0:a.activeViewMeasurableCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.Ky=function(){if(this.lc==="rendering"){this.Za.Zb("active_view_fully_viewable_audible_half_duration");var a,b=((a=WH(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.My=function(){if(this.lc==="rendering"){this.Za.Zb("active_view_viewable");var a,b=((a=WH(this))==null?void 0:a.activeViewViewableCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.Iy=function(){if(this.lc==="rendering"){this.Za.Zb("audio_audible");var a,b=((a=WH(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.Jy=function(){if(this.lc==="rendering"){this.Za.Zb("audio_measurable");var a,b=((a=WH(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}};
g.k.BJ=function(a){this.Dc.get().BJ(ND(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,a,this.position,this.K,!1)};
g.k.onFullscreenToggled=function(a){if(this.lc==="rendering")if(a){this.Wh("fullscreen");var b,c=((b=WH(this))==null?void 0:b.fullscreenCommands)||[];yE(this.Jb.get(),c,this.layout.layoutId)}else this.Wh("end_fullscreen"),b=((c=WH(this))==null?void 0:c.endFullscreenCommands)||[],yE(this.Jb.get(),b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if(this.lc==="rendering")if(this.Ga.get().isMuted()){fI(this,"mute");var a,b=((a=WH(this))==null?void 0:a.muteCommands)||[];yE(this.Jb.get(),b,this.layout.layoutId)}else fI(this,"unmute"),a=((b=WH(this))==null?void 0:b.unmuteCommands)||[],yE(this.Jb.get(),a,this.layout.layoutId)};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.jj=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};
g.k.Wh=function(a){this.Za.Wh(a,!this.B)};
g.k.Zb=function(a){this.Za.Zb(a,!this.B)};
g.k.Ye=function(){var a=ND(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(Xy("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.ya.get().Ye(a)};g.z(lI,XH);g.k=lI.prototype;g.k.xP=function(){this.layoutExitReason?this.Ap.Kc(this.slot,this.layout,this.layoutExitReason):Kxa(this)};
g.k.lL=function(){};
g.k.iz=function(){var a=this.Na.get();a.yI===this&&(a.yI=null);this.Ze.stop()};
g.k.Ss=function(){this.Ze.stop();XH.prototype.J3.call(this)};
g.k.Us=function(){nI(this);XH.prototype.K3.call(this)};
g.k.OA=function(){return ND(this.Wa().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Ld=function(a,b){var c=this;this.Gz(a,function(){c.lc!=="rendering_stop_requested"&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,bI(c,b),c.Ze.stop())})};
g.k.Rc=function(){var a=Date.now(),b=a-this.QR;this.QR=a;this.vj+=b;this.vj>=this.OA()?this.wZ():(this.Fz(this.vj/1E3),mI(this,this.vj))};
g.k.I3=function(){};
g.k.Si=function(){};
g.z(oI,lI);g.k=oI.prototype;g.k.Dg=function(a){if(this.lc!=="not_rendering"){a=cI(this,a);var b=this.Ga.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&PF(a)&&this.RJ():b?g.$y(a,2)?Xy("Receive player ended event during MediaBreak",this.dc(),this.Wa()):dI(this,a):this.Ox()}};
g.k.ut=function(){Mxa(this);B9a(this.Ga.get());this.Na.get().yI=this;IA("pbp")||IA("pbs")||KA("pbp");IA("pbp","watch")||IA("pbs","watch")||KA("pbp",void 0,"watch");this.RJ()};
g.k.MS=function(a){this.Dc.get();var b=ND(a.clientMetadata,"metadata_type_ad_placement_config").kind,c=this.position===0;a=ND(a.clientMetadata,"metadata_type_linked_in_player_layout_type");a={adBreakType:eI(b),adType:Yxa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";FA("ad_mbs",void 0,d);g.GA(a,d);nI(this)};
g.k.Ox=function(){this.aF()};
g.k.wZ=function(){Qxa(this);this.aF()};
g.z(pI,lI);g.k=pI.prototype;g.k.Dg=function(a){this.lc!=="not_rendering"&&(a=cI(this,a),dI(this,a))};
g.k.ut=function(){Xy("Not used in SSAP")};
g.k.MS=function(){nI(this)};
g.k.Ox=function(){Xy("Not used in SSAP")};
g.k.wZ=function(){Qxa(this);this.Ap.AC(this.dc(),this.Wa(),"normal")};
g.z(qI,pI);qI.prototype.Ld=function(a,b){var c=this;this.Gz(a,function(){TF(c.C,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,bI(c,b),c.Ze.stop())})};
qI.prototype.startRendering=function(a){XF(YH(this));ZH(this,a)&&($H(this),this.Na.get().yI=this)};g.z(tI,XH);g.k=tI.prototype;g.k.xP=function(){this.layoutExitReason?this.Ap.Kc(this.slot,this.layout,this.layoutExitReason):Kxa(this)};
g.k.Ox=function(){this.Ye()&&Xy("Unexpected ad player in SSAP",this.slot,this.layout);this.aF()};
g.k.Dg=function(a){if(this.lc!=="not_rendering"){a=cI(this,a);var b=this.Ga.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&PF(a)&&this.RJ():b?g.$y(a,2)?this.aF():dI(this,a):this.Ox()}};
g.k.lL=function(){ND(this.Wa().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=ND(this.Wa().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.k.iz=function(){ND(this.Wa().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.Xt&&this.Nc.get().removeCueRange(this.Xt);this.Xt=void 0;var a;(a=this.KL)==null||a.dispose();this.NB&&this.NB.dispose()};
g.k.ut=function(a){var b=rI(this.ya.get()),c=sI(this.ya.get());if(b&&c&&!this.Ye()){c=ND(a.clientMetadata,"metadata_type_preload_player_vars");var d=g.UD(this.ya.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.NB&&this.NB.start(d*1E3)}Txa(this,a);Mxa(this);b?(c=this.md.get(),a=ND(a.clientMetadata,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):K9a(this.md.get(),ND(a.clientMetadata,"metadata_type_player_vars"));var e;(e=this.KL)==null||e.start();b||this.md.get().J.playVideo(2)};
g.k.MS=function(){var a;(a=this.KL)==null||a.stop();this.Xt="adcompletioncuerange:"+this.Wa().layoutId;this.Nc.get().addCueRange(this.Xt,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Ij;var b=this.Xt,c=this.Wa().layoutId;if(YF(a.ya.get(),!0)){var d={};a.Lk("mccr",(d.cid=b,d.p_ac=c,d))}(this.adCpn=Lxa(this))||Xy("Media layout confirmed started, but ad CPN not set.");this.qd.get().Ev("onAdStart",this.adCpn);this.xX=Date.now()};
g.k.OA=function(){var a;return(a=aI(this.Qa.get(),2))==null?void 0:a.Hda};
g.k.YM=function(){this.Za.Wh("clickthrough")};
g.k.Ld=function(a,b){var c=this;this.Gz(a,function(){if(c.lc!=="rendering_stop_requested"){c.lc="rendering_stop_requested";c.layoutExitReason=b;bI(c,b);var d;(d=c.KL)==null||d.stop();c.NB&&c.NB.stop();Uxa(c)}})};
g.k.onCueRangeEnter=function(a){if(a!==this.Xt)Xy("Received CueRangeEnter signal for unknown layout.",this.dc(),this.Wa(),{cueRangeId:a});else{var b=this.context.Ij,c=this.Wa().layoutId;if(YF(b.ya.get(),!0)){var d={};b.Lk("mccre",(d.cid=a,d.p_ac=c,d))}this.Nc.get().removeCueRange(this.Xt);this.Xt=void 0;hI(this.context.ya.get(),"html5_ssap_flush_at_stop_rendering")&&this.Ye()||(a=ND(this.Wa().clientMetadata,"metadata_type_video_length_seconds"),this.Fz(a,!0),this.Zb("complete"))}};
g.k.I3=function(a){a!=="abandoned"&&this.qd.get().Ev("onAdComplete");this.qd.get().Ev("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Si=function(a){this.lc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ga.get().PC(!0),this.Fz(a))};
g.k.Fz=function(a,b){XH.prototype.Fz.call(this,a,b===void 0?!1:b);if(a>=5&&!this.IZ){b=Date.now()-this.xX;a*=1E3;var c={contentCpn:this.Wm(),adCpn:Lxa(this)},d=b<1E3?0:1;Uy(d,"i.k_",{metadata:c,I7:b,J7:Math.floor(a/1E3)});yr("IKDSTAT",d);if(b=d===0)b=ND(this.dc().clientMetadata,"metadata_type_player_bytes_slot_metadata"),b===void 0&&Xy("PlayerBytesSlotMetadata is not filled",this.dc(),this.Wa()),b=(b==null?void 0:b.Pu)===!0;b&&this.qd.get().Ev("onAbnormalityDetected");this.IZ=!0}};g.z(uI,tI);uI.prototype.Dg=function(a){this.lc!=="not_rendering"&&(a=cI(this,a),dI(this,a))};
uI.prototype.ut=function(){Xy("Not used in SSAP")};
g.z(vI,uI);vI.prototype.Ld=function(a,b){var c=this;this.Gz(a,function(){if(TF(c.C,b)){c.lc="rendering_stop_requested";c.layoutExitReason=b;bI(c,b);if(hI(c.context.ya.get(),"html5_ssap_flush_at_stop_rendering")&&b==="normal"){var d=ND(c.Wa().clientMetadata,"metadata_type_video_length_seconds");c.Fz(d,!0)}Uxa(c)}})};
vI.prototype.startRendering=function(a){XF(YH(this));ZH(this,a)&&($H(this),Txa(this,a))};g.z(xI,g.O);g.k=xI.prototype;g.k.init=function(){var a=ND(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Qa.get().addListener(this);this.zd.init();exa([this.layout],this.Qa.get());this.RO()};
g.k.RO=function(){var a=ND(this.zd.Wa().clientMetadata,"metadata_type_player_vars");a?this.md.get().addPlayerResponseForAssociation({playerVars:a}):(a=Zxa(this.zd.Wa()),this.md.get().addPlayerResponseForAssociation({WJ:a}))};
g.k.mM=function(){};
g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.Ss=function(){this.zd.Ss()};
g.k.Us=function(){this.zd.Us()};
g.k.Ry=function(){Xy("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.k.wc=function(a,b){this.zd.wc(a,b)};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.Si=function(a){this.zd.Si(a)};
g.k.onFullscreenToggled=function(a){this.zd.onFullscreenToggled(a)};
g.k.Ah=function(a){this.zd.Ah(a)};
g.k.jj=function(a){this.zd.jj(a)};
g.k.onVolumeChange=function(){this.zd.onVolumeChange()};
g.k.Tj=function(){};
g.k.Wj=function(){};
g.k.Uj=function(){};
g.k.wR=function(){return this.Ga.get().getPresentingPlayerType()===2};
g.k.aH=function(a){jxa({cpn:a,Pf:this.Qa.get(),Cs:!0});this.layout.layoutId===a&&(IBa(this.Zd,this.slot.slotId),this.At.wc(this.slot,this.layout))};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void Xy("wrong layout");this.Ga.get().addListener(this);XD(this.uc(),this);this.zd.startRendering(this.layout)};
g.k.Dg=function(a){this.zd.Dg(a)};
g.k.Kc=function(a,b,c){this.zd.Kc(a,b,c)};
g.k.release=function(){this.Qa.get().removeListener(this);this.zd.release();fxa();YD(this.uc(),this)};
g.k.Ld=function(a,b){if(a.layoutId!==this.layout.layoutId)Xy("wrong layout");else if(!(aya(this)&&this.zd.Vr().currentState>=2)){this.zd.Ld(this.layout,b);a=hI(this.params.context.ya.get(),"html5_ssap_pass_transition_reason")&&b==="abandoned";this.wR()&&!a&&(hI(this.params.context.ya.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(b)||Xy("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:b})),this.Hc.get().finishSegmentByCpn(this.layout.layoutId,
aI(this.Qa.get(),1).clientPlaybackNonce,iI(b,this.params.context.ya)));this.Ga.get().removeListener(this);if(b=aya(this))b=this.zd.Vr(),b.currentState!==2?b=!1:(b.currentState=3,b=!0),b=!b;b&&this.At.Kc(this.slot,this.layout,this.zd.Vr().j)}};
g.k.bH=function(a,b,c){kxa({cpn:a,Pf:this.Qa.get(),Cs:!0});this.Wa().layoutId!==a||hI(this.params.context.ya.get(),"html5_ssap_pass_transition_reason")&&c===5||(this.zd.Vr().currentState<2&&(a=jI(c,this.params.context.ya),a==="error"?this.At.Mf(this.slot,this.layout,new LD("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:c},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):DI(this.jf,
this.layout,a)),hI(this.params.context.ya.get(),"html5_ssap_exit_without_waiting_for_transition")||this.At.Kc(this.slot,this.layout,this.zd.Vr().j))};g.z(yI,g.O);g.k=yI.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.mM=function(){};
g.k.Ef=function(){return this.Vh[this.IE]};
g.k.Ll=function(){return this.IE};
g.k.Ss=function(a,b){var c=this.Ef();b.layoutId!==AI(c,a,b)?Xy("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Ss()};
g.k.Us=function(a,b){var c=this.Ef();b.layoutId!==AI(c,a,b)?Xy("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Us()};
g.k.Ry=function(a,b){var c=this.Ef();dya(this,a,b);eya(c,a,b)&&this.qK(c.dc(),c.Wa(),"skipped")};
g.k.oM=function(a,b){var c=this.Ef();fya(this);gya(c,a,b)&&(a=hya(this,c,a,b),a!==void 0&&(this.Ye()?Xy("Should not happen. Should delete"):jya(this,c.dc(),c.Wa(),a)))};
g.k.o1=function(a,b){var c=Object.assign({},zI(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Cs;if(c.To){var f={};WF(c.Pf,"wrse",(f.ec=d,f.is=e,f.ctp=VF(d),f))}iE(this.vr,a,b)};
g.k.wc=function(a,b){var c;(c=this.Ef())==null||c.wc(a,b)};
g.k.Kc=function(a,b,c){b.layoutId===this.Wa().layoutId&&(this.Wx=!1,YD(this.uc(),this));var d;(d=this.Ef())==null||d.Kc(a,b,c)};
g.k.Si=function(a){var b;(b=this.Ef())==null||b.Si(a)};
g.k.YK=function(a,b,c){this.Ll()===-1&&(this.callback.wc(this.slot,this.layout),this.IE++);var d=this.Ef();d?(d.YL(a,b,c),this.Ye()&&this.callback.Mf(this.slot,this.layout,b,c)):Xy("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Ll()),layoutId:this.Wa().layoutId})};
g.k.onFullscreenToggled=function(a){var b;(b=this.Ef())==null||b.onFullscreenToggled(a)};
g.k.Ah=function(a){var b;(b=this.Ef())==null||b.Ah(a)};
g.k.jj=function(a){var b;(b=this.Ef())==null||b.jj(a)};
g.k.onVolumeChange=function(){var a;(a=this.Ef())==null||a.onVolumeChange()};
g.k.yP=function(a,b,c){jE(this.vr,a,b,c)};
g.k.LU=function(a){a.startRendering(a.Wa())};
g.k.init=function(){var a=ND(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Vh.length<1)throw new Z("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Vh.length)});if(a=ND(this.Wa().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.w(this.Vh);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Fva(this.vr,this.slot,b.Wa()),Gva(this.vr,this.slot,b.Wa());
if(this.Ye())for(this.Qa.get().addListener(this),exa(cya(this),this.Qa.get()),a=cya(this),a=g.w(a),b=a.next();!b.done;b=a.next())this.RO(b.value)};
g.k.RO=function(a){var b=ND(a.clientMetadata,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&Xy("Non-video ad contains playerVars",this.slot,a),this.md.get().addPlayerResponseForAssociation({playerVars:b})):(a=Zxa(a),this.md.get().addPlayerResponseForAssociation({WJ:a}))};
g.k.release=function(){var a=ND(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=ND(this.Wa().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.w(this.Vh);for(var b=a.next();!b.done;b=a.next())b=b.value,Hva(this.vr,this.slot,b.Wa()),b.release();this.Ye()&&(this.Qa.get().removeListener(this),fxa())};
g.k.Gz=function(a){return a.layoutId!==this.Wa().layoutId?(this.callback.Mf(this.dc(),a,new LD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Wa().layoutId+("and LayoutType: "+this.Wa().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.k.tJ=function(){this.Ga.get().addListener(this);XD(this.uc(),this)};
g.k.Dg=function(a){if(a.state.isError()){var b,c;this.YK((b=a.state.Pg)==null?void 0:b.errorCode,new LD("There was a player error during this media layout.",{playerErrorCode:(c=a.state.Pg)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Ef())&&b.Dg(a)};
g.k.Ye=function(){var a=ND(this.dc().clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(Xy("Expected SSAP eligibility in PlayerBytes slots",this.dc(),this.Wa()),!1):this.ya.get().Ye(a)};
g.k.Uj=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};
g.z(EI,yI);g.k=EI.prototype;g.k.WR=function(){var a=this.Ef();a&&a.Ox()};
g.k.s1=function(a,b,c){this.qK(a,b,c)};
g.k.q1=function(a,b){this.qK(a,b,"error")};
g.k.qK=function(a,b,c){var d=this;iya(this,a,b,c,function(){BI(d,d.Ll()+1)})};
g.k.startRendering=function(a){this.Gz(a)&&(this.tJ(),R8a(this.Dc.get()),X8a(this.ya.get())||B9a(this.Ga.get()),this.Ll()===-1&&BI(this,this.Ll()+1))};
g.k.Ld=function(a,b){var c=this;this.Wx=!0;this.Ll()===this.Vh.length?this.callback.Kc(this.slot,this.layout,b):(a=this.Ef(),a.Ld(a.Wa(),b),this.VZ=function(){c.callback.Kc(c.slot,c.layout,b)});
this.Ga.get().J.jz();K9a(this.md.get(),{});a=C0(this.Ga.get(),1);a.isPaused()&&!g.U(a,2)&&this.Ga.get().playVideo();this.Ga.get().removeListener(this);this.Wx&&this.WR()};
g.k.bH=function(){};
g.k.aH=function(){};
g.k.AC=function(){};
g.z(FI,yI);g.k=FI.prototype;g.k.s1=function(a,b,c){a=Object.assign({},zI(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};WF(a.Pf,"prse",(d.xc=b,d.ler=c,d.ctp=VF(b),d))};
g.k.q1=function(){Xy("onSubLayoutError in SSAP")};
g.k.qK=function(){Xy("exitSubLayoutAndPlayNext in SSAP")};
g.k.Ef=function(){return this.Jh};
g.k.Ll=function(){var a=this;return this.Vh.findIndex(function(b){var c;return b.Wa().layoutId===((c=a.Jh)==null?void 0:c.Wa().layoutId)})};
g.k.LU=function(a){Wy(this.Jh===void 0,"replacing another adapter");this.Jh=a;a.startRendering(a.Wa())};
g.k.yP=function(a,b,c){jE(this.vr,a,b,c);var d;Wy(b.layoutId===((d=this.Jh)==null?void 0:d.Wa().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot:  "+a.slotType:"",subLayout:Vy(b)})&&(this.Jh=void 0)};
g.k.release=function(){yI.prototype.release.call(this);Wy(this.Jh===void 0,"currentAdapter is still active during release");this.Jh=void 0};
g.k.wR=function(){return this.Ga.get().getPresentingPlayerType()===2};
g.k.Ld=function(a,b){if(Wy(a.layoutId===this.Wa().layoutId,"StopRendering for wrong layout")&&TF(this.sx.B,b)&&this.Jh){var c=this.Jh;c.Vr().currentState<2&&c.Ld(c.Wa(),b);c=GI(this)&&b==="abandoned";this.wR()&&!c&&(GI(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(b)||Xy("Composite stopRendering: Unexpected layout exit reason",this.slot,a,{layoutExitReason:b})),this.Hc.get().finishSegmentByCpn(this.Jh.Wa().layoutId,aI(this.Qa.get(),1).clientPlaybackNonce,iI(b,this.ya)))}};
g.k.Kc=function(a,b,c){yI.prototype.Kc.call(this,a,b,c);b.layoutId===this.Wa().layoutId&&this.Ga.get().removeListener(this)};
g.k.Wm=function(){return aI(this.Qa.get(),1).clientPlaybackNonce};
g.k.bH=function(a,b,c){kxa(Object.assign({},zI(this),{cpn:a}));if(!GI(this)||c!==5){if(this.Jh&&this.Jh.Wa().layoutId===a)kya(this,this.Jh,c);else{var d,e;Xy("Exiting cpn does not match active cpn",this.slot,(d=this.Jh)==null?void 0:d.Wa(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.Jh)==null?void 0:e.Wa().layoutId})}b===this.Wm()&&(this.Jh!==void 0&&(Xy("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Vy(this.Jh.Wa())}),kya(this,this.Jh,c)),this.sx.B.currentState<
2&&(a=jI(c,this.ya),a==="error"?this.callback.Mf(this.slot,this.layout,new LD("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:c},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):DI(this.Ti,this.layout,a)),this.callback.Kc(this.slot,this.layout,this.sx.B.j))}};
g.k.startRendering=function(a){this.Gz(a)&&(a=this.sx,Wy(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.tJ())};
g.k.aH=function(a){jxa(Object.assign({},zI(this),{cpn:a}));var b=this.Vh.find(function(c){return c.Wa().layoutId===a});
b?(this.sx.j!==2&&(IBa(this.Zd,this.slot.slotId),Wy(this.sx.j===2,"Expect started"),this.callback.wc(this.slot,this.layout)),this.LU(b),iE(this.vr,this.slot,b.Wa())):lya(this,a)};
g.k.Ry=function(a,b){dya(this,a,b);var c=this.Ef();c?eya(c,a,b)&&mya(this,"skipped"):nya(this,"onSkipRequested")};
g.k.oM=function(a,b){var c;a:{if(c=this.Ef()){if(fya(this),gya(c,a,b)&&(a=hya(this,c,a,b),a!==void 0)){c={D7:c,qfa:this.Vh[a]};break a}}else nya(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.D7,a=a.qfa,c.Ld(c.Wa(),"skipped"),a=a.Wa().layoutId,this.Hc.get().finishSegmentByCpn(c.Wa().layoutId,a,iI("skipped",this.ya))};
g.k.o1=function(){Xy("Not used in html5_ssap_fix_layout_exit")};
g.k.Dg=function(a){var b;(b=this.Ef())==null||b.Dg(a)};
g.k.YK=function(){Xy("Not used in html5_ssap_fix_layout_exit")};
g.k.AC=function(a,b,c){var d;if(((d=this.Ef())==null?void 0:d.Wa().layoutId)!==b.layoutId)return void Xy("requestToExitSubLayout: wrong layout");mya(this,c)};g.z(HI,g.O);g.k=HI.prototype;g.k.dc=function(){return this.zd.dc()};
g.k.Wa=function(){return this.zd.Wa()};
g.k.init=function(){var a=ND(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.lL()};
g.k.lL=function(){this.zd.init()};
g.k.release=function(){var a=ND(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.iz()};
g.k.iz=function(){this.zd.release()};
g.k.Ss=function(){this.zd.Ss()};
g.k.Us=function(){this.zd.Us()};
g.k.Ry=function(a,b){Xy("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.dc(),this.Wa(),{requestingSlot:a,requestingLayout:b})};
g.k.startRendering=function(a){a.layoutId!==this.Wa().layoutId?this.callback.Mf(this.dc(),a,new LD("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Wa().layoutId+("and LayoutType: "+this.Wa().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ga.get().addListener(this),XD(this.uc(),this),R8a(this.Dc.get()),X8a(this.ya.get())||B9a(this.Ga.get()),this.ut(a))};
g.k.ut=function(a){this.zd.startRendering(a)};
g.k.Ld=function(a,b){this.Wx=!0;this.uN(a,b);this.Ga.get().J.jz();K9a(this.md.get(),{});a=C0(this.Ga.get(),1);a.isPaused()&&!g.U(a,2)&&this.Ga.get().playVideo();this.Ga.get().removeListener(this);this.Wx&&this.WR()};
g.k.uN=function(a,b){this.zd.Ld(a,b)};
g.k.wc=function(a,b){this.zd.wc(a,b)};
g.k.Kc=function(a,b,c){b.layoutId===this.Wa().layoutId&&(this.Wx=!1,YD(this.uc(),this));this.zd.Kc(a,b,c);b.layoutId===this.Wa().layoutId&&CI(this.Dc.get())};
g.k.WR=function(){this.zd.Ox()};
g.k.Si=function(a){this.zd.Si(a)};
g.k.Dg=function(a){if(a.state.isError()){var b,c;this.YK((b=a.state.Pg)==null?void 0:b.errorCode,new LD("There was a player error during this media layout.",{playerErrorCode:(c=a.state.Pg)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.zd.Dg(a)};
g.k.YK=function(a,b,c){this.zd.YL(a,b,c)};
g.k.onFullscreenToggled=function(a){this.zd.onFullscreenToggled(a)};
g.k.Ah=function(a){this.zd.Ah(a)};
g.k.jj=function(a){this.zd.jj(a)};
g.k.onVolumeChange=function(){this.zd.onVolumeChange()};
g.k.Uj=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};g.k=II.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){this.wf.get().addListener(this);this.Ga.get().addListener(this);var a=ND(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var b=ND(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.D){var c=this.wf.get().DI.slice(-1)[0];c!==void 0&&(a=c.startSecs*1E3,b=(c.startSecs+c.lh)*1E3)}this.kB(a,b);var d;c=(d=this.Qa.get().wx)==null?void 0:d.clientPlaybackNonce;d=this.layout.Ub.adClientDataEntry;JI(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:c,
adClientData:d}});var e=this.wf.get();e=qya(e.C,a,b);e!==null&&(JI(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:c,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:d}}),this.Hc.get().nA(e,b))};
g.k.release=function(){this.iz();this.wf.get().removeListener(this);this.Ga.get().removeListener(this)};
g.k.startRendering=function(){this.ut();this.callback.wc(this.slot,this.layout)};
g.k.Ld=function(a,b){this.uN(b);this.driftRecoveryMs!==null&&(KI(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(rya(this)-ND(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ga.get().J.Xr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Kc(this.slot,this.layout,b)};
g.k.R0=function(){return!1};
g.k.M0=function(a){var b=ND(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=ND(this.layout.clientMetadata,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;JI(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:(d=this.Qa.get().wx)==null?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ub.adClientDataEntry}});this.Hc.get().nA(a,c)}};
g.k.Si=function(a){this.C0(a);a=K0(this.Ga.get(),2,!0);if(XK(this.G.get(),this.layout.layoutId)){var b=ND(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(c===null||a*1E3<b+c)){this.driftRecoveryMs=null;var d=rya(this),e=this.Ga.get().J.Xr(),f=Math.min(a+e,d/1E3);f<=a?KI(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(e*1E3).toString()}):(KI(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.Ga.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.jj=function(){};
g.k.onVolumeChange=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};g.z(LI,II);g.k=LI.prototype;g.k.kB=function(a,b){this.Qa.get().addListener(this);if(this.D){var c=a,d=0,e=[];a=this.C.slice();a.sort(function(f,h){return ND(f.Wa().clientMetadata,"metadata_type_media_sub_layout_index")-ND(h.Wa().clientMetadata,"metadata_type_media_sub_layout_index")});
a.forEach(function(f){var h=c,l=ND(f.Wa().clientMetadata,"metadata_type_video_length_seconds"),m=Math.min(h+l*1E3,b);c=m;d++;e.push(l);f.kB(h,m)})}else this.C.forEach(function(f){f.init()});
this.B!=null&&MI(this.Na.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.iz=function(){this.Qa.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.ut=function(){if(this.j)Xy("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=(a=this.Qa.get().wx)==null?void 0:a.layoutId;tya(this,b)}};
g.k.uN=function(a){var b,c,d,e;(d=this.j)==null||(e=d.Mm)==null||e.Ld((b=this.j)==null?void 0:(c=b.Mm)==null?void 0:c.Wa(),a);this.j=null};
g.k.mM=function(a){var b=a.videoId;a=a.layoutId;if(b==="nPpU29QrbiU"){var c,d;MI(this.Na.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.Mm)==null?void 0:d.Wa().layoutId))}if(this.j){var e;if(((e=this.j.Mm)==null?void 0:e.Wa().layoutId)===a)Xy("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:a});else{var f,h;(h=this.j.Mm)==null||h.Ld((f=this.j.Mm)==null?void 0:f.Wa(),"normal");
tya(this,a)}}};
g.k.bH=function(){};
g.k.aH=function(){};
g.k.C0=function(){};
g.k.Dg=function(){};
g.k.onFullscreenToggled=function(){};g.k=Eya.prototype;g.k.dc=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.Vr=function(){Xy("Should not get exitStateMachine for DAI");return new SF};
g.k.kB=function(a,b){var c=this;ND(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.Ed=uya(this.slot,this.layout,ND(this.layout.clientMetadata,"metadata_type_player_vars"),a,b,ND(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Hc.get(),this.xt.get(),function(){var d=Object,e=d.assign,f=RI(c.layout);var h=ND(c.slot.clientMetadata,"metadata_type_fulfilled_layout");h=Object.assign({},RI(h),{adPlacementConfig:ND(h.clientMetadata,"metadata_type_ad_placement_config"),
subLayouts:ND(h.clientMetadata,"metadata_type_sub_layouts").map(RI)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:ID(c.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:ND(c.layout.clientMetadata,"metadata_type_survey_overlay")})},this.Na.get());
this.Ga.get().addListener(this);a=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds");b=ND(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cF(this.layout.Ab)&&D0(this.zb.get(),this.layout.layoutId,{Qt:b,QI:a,listener:this});Fva(this.callback,this.slot,this.layout);Gva(this.callback,this.slot,this.layout)};
g.k.init=function(){var a=ND(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=ND(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.kB(a,b)};
g.k.release=function(){this.Ga.get().removeListener(this);cF(this.layout.Ab)&&E0(this.zb.get(),this.layout.layoutId);this.ya.get();Hva(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;ID(this.layout.clientMetadata,"metadata_type_survey_overlay")&&MI(this.Na.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.lc)Xy("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:ID(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:ND(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.lc={Wo:null,aI:!1};this.j=!1;if(V8a(this.ya.get())){var b;this.adCpn=
(b=aI(this.Qa.get(),2))==null?void 0:b.clientPlaybackNonce}this.ya.get().J.U().experiments.bb("html5_disable_sodar_for_tvhtml5")||vya(this.slot,this.layout,this.lf.get());this.Za.Zb("start");if(PK(this.ya.get())){b=C0(this.Ga.get());var c=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=K0(this.Ga.get(),2,!1);wya(this.Za,this.lc.Wo,b,c,d,function(){return void Gya(a,"teois")})}iE(this.callback,this.slot,this.layout);
ID(this.layout.clientMetadata,"metadata_type_survey_overlay")&&MI(this.Na.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Ld=function(a,b){var c=this;if(this.lc){if(PK(this.ya.get()))if(this.Ed===null)Xy("Unexpected media sub layout exited without a timeline playback ID");else{a=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds");var d=z9a(this.Ga.get(),this.Ed);V8a(this.ya.get())&&this.adCpn===void 0&&Xy("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:ND(this.layout.clientMetadata,"metadata_type_content_cpn")});vwa(this.Za,d,this.adCpn);OI(this.Za,null,this.lc.Wo,a,d,function(e){return void Fya(c,
e,"fue")},V8a(this.ya.get()))}this.lc=null;
jE(this.callback,this.slot,this.layout,this.j&&this.ya.get().J.U().L("dai_layout_log_skip_exit_reason")?"skipped":b)}else Xy("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.YL=function(){};
g.k.Ox=function(){};
g.k.Si=function(a){var b=this;if(this.lc){if(lF(this.Za,"impression")){var c=C0(this.Ga.get()),d=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds");PI(this.Za,c,a,this.lc.Wo,d,function(e){return void Fya(b,e,"tpaqe")})}this.lc.Wo=a}};
g.k.Dg=function(a){var b=this;if(this.lc){PK(this.ya.get())||this.lc.aI||(this.lc.aI=!0,a=new g.Yy(a.state,new g.NH));var c=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=K0(this.Ga.get(),2,!1);NI(this.Za,this.lc.Wo,a,c,d,!PK(this.ya.get()),function(){return void Gya(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){xya(this.Za,a)};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.jj=function(){};
g.k.Ry=function(a,b){var c;a=this.Na.get();var d="ti."+lF(this.Za,"impression")+";ts."+lF(this.Za,"skip")+";hp.",e;var f=!((e=this.Za.C.get("skip"))==null||!e.length);MI(a,"ads_dsr",d+f+";cpn."+ND(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=aI(this.Qa.get(),2))==null?void 0:c.clientPlaybackNonce)+";sl."+(ND(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));lF(this.Za,"impression")&&this.Za.Zb("skip");b=aI(this.Qa.get(),1).Bg&&this.ya.get().J.U().experiments.bb("html5_lifa_skip_to_content");
this.j=!0;this.Hc.get().nt(b)||(this.j=!1,Xy("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.k.onVolumeChange=function(){};
g.k.wc=function(){};
g.k.Kc=function(){};
g.k.Ss=function(){};
g.k.Us=function(){};
g.k.YM=function(){yya(this.Za)};
g.k.Ly=function(){zya(this.Za)};
g.k.Ky=function(){Aya(this.Za)};
g.k.My=function(){Bya(this.Za)};
g.k.Iy=function(){Cya(this.Za)};
g.k.Jy=function(){Dya(this.Za)};
g.k.Tj=function(){};
g.k.Wj=function(){};g.z(SI,II);g.k=SI.prototype;
g.k.kB=function(){var a=this;ND(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var b=ND(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=ND(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Ed=uya(this.slot,this.layout,ND(this.layout.clientMetadata,"metadata_type_player_vars"),b,c,ND(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Hc.get(),this.xt.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,
exitMs:c,adPlacementConfig:ND(a.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.Na.get());
var d=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),e=ND(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");cF(this.layout.Ab)&&D0(this.zb.get(),this.layout.layoutId,{Qt:e,QI:d,listener:this})};
g.k.iz=function(){cF(this.layout.Ab)&&E0(this.zb.get(),this.layout.layoutId)};
g.k.ut=function(){var a=this;if(this.lc)Xy("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.lc={Wo:null,aI:!1},vya(this.slot,this.layout,this.lf.get()),this.Za.Zb("start"),PK(this.ya.get())){var b=C0(this.Ga.get()),c=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=K0(this.Ga.get(),2,!1);wya(this.Za,this.lc.Wo,b,c,d,function(){return void Hya(a,"teois")})}};
g.k.uN=function(){var a=this;if(this.lc){if(PK(this.ya.get()))if(this.Ed===null)Xy("Unexpected single media layout exited without a timeline playback ID");else{var b=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),c=z9a(this.Ga.get(),this.Ed);vwa(this.Za,c);OI(this.Za,null,this.lc.Wo,b,c,function(d){return void Iya(a,d,"fue")})}this.lc=null}else Xy("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.C0=function(a){var b=this;if(this.lc){if(lF(this.Za,"impression")){var c=C0(this.Ga.get()),d=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds");PI(this.Za,c,a,this.lc.Wo,d,function(e){return void Iya(b,e,"tpaqe")})}this.lc.Wo=a}};
g.k.Dg=function(a){var b=this;if(this.lc){PK(this.ya.get())||this.lc.aI||(this.lc.aI=!0,a=new g.Yy(a.state,new g.NH));var c=ND(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=K0(this.Ga.get(),2,!1);NI(this.Za,this.lc.Wo,a,c,d,!PK(this.ya.get()),function(){return void Hya(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){xya(this.Za,a)};
g.k.YM=function(){yya(this.Za)};
g.k.Ly=function(){zya(this.Za)};
g.k.Ky=function(){Aya(this.Za)};
g.k.My=function(){Bya(this.Za)};
g.k.Iy=function(){Cya(this.Za)};
g.k.Jy=function(){Dya(this.Za)};TI.prototype.build=function(a,b,c,d){if(ID(c.clientMetadata,"metadata_type_dai")){var e=ND(d.clientMetadata,"metadata_type_ad_placement_config");AF(d,{Od:"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(" "),Je:["LAYOUT_TYPE_MEDIA"]})&&e!==void 0?(e=new fF(d.Ab,this.Na,e,d.layoutId,null),e=new SI(a,c,d,this.Qa,this.Hc,this.xt,this.wf,this.Ga,e,this.Na,this.lf,
this.j,this.zb,this.ya)):e=null;if(e)return e;a:{var f,h=(f=d.vt)!=null?f:ND(d.clientMetadata,"metadata_type_sub_layouts");e=ND(d.clientMetadata,"metadata_type_ad_placement_config");if(AF(d,{Od:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Je:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&h!==void 0&&e!==void 0){f=[];h=g.w(h);for(var l=h.next();!l.done;l=h.next()){l=l.value;var m=ND(l.clientMetadata,"metadata_type_media_sub_layout_index");if(!AF(l,{Od:"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(" "),
Je:["LAYOUT_TYPE_MEDIA"]})||m===void 0){a=null;break a}m=new fF(l.Ab,this.Na,e,l.layoutId,m);f.push(new Eya(b,c,l,this.Hc,m,this.Ga,this.xt,this.zb,this.lf,this.ya,this.Na,this.Qa))}b=new fF(d.Ab,this.Na,e,d.layoutId);a=new LI(a,c,d,this.Qa,this.Hc,this.wf,this.Ga,b,this.Na,this.j,f)}else a=null}if(a)return a}else if(a=pya(a,b,c,d,this.uc,this.Zd,this.Ti,this.Na,this.zb,this.lf,this.md,this.Qa,this.Ga,this.Nc,this.Dc,this.qd,this.Jb,this.eg,this.ya,this.Hc,this.context,this.Tg))return a;throw new LD("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};UI.prototype.build=function(a,b,c,d){if(a=pya(a,b,c,d,this.uc,this.Zd,this.Ti,this.Na,this.zb,this.lf,this.md,this.Qa,this.Ga,this.Nc,this.Dc,this.qd,this.Jb,this.eg,this.ya,this.Hc,this.context,this.Tg))return a;throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.z(Jya,Px);g.z(VI,ZE);VI.prototype.startRendering=function(a){var b=$E(this.Za),c={adsClientData:this.layout.Ub};this.j.push(new Jya(ND(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Wa().layoutId,c));ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
VI.prototype.vg=function(a,b){b!==this.layout.layoutId||a!=="survey-interstitial"&&a!=="button"||((a=ND(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Ry(this.slot,this.layout):Xy("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
VI.prototype.xa=function(){ZE.prototype.xa.call(this)};var XI=new g.Gg(320,63);g.z($I,Px);g.z(aJ,ZE);g.k=aJ.prototype;g.k.Si=function(){};
g.k.Dg=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ah=function(a){a&&fL(this.D,this.layout)};
g.k.Uj=function(){};
g.k.jj=function(a){var b=ZI(this.layout);if(this.N=YI(a,A9a(this.Ga.get())))b.onErrorCommand&&this.Jb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),fL(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.PA=function(){return this.Wa().layoutId};
g.k.lQ=function(){return this.N};
g.k.vg=function(a){this.G.vg(a);a==="in_video_overlay_close_button"&&fL(this.D,this.layout)};
g.k.XK=function(a){a==="invideo-overlay"&&fL(this.D,this.layout)};
g.k.Nq=function(){this.G.Nq()};
g.k.startRendering=function(a){ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.K.Pt=this};
g.k.Ld=function(a,b){ZE.prototype.Ld.call(this,a,b);m1(this.K,this)};
g.k.init=function(){ZE.prototype.init.call(this);q9a(this.Na.get(),this);this.Ga.get().addListener(this);this.j.push(new $I(ZI(this.layout),$E(this.Za),this.layout.layoutId,{adsClientData:this.layout.Ub}))};
g.k.release=function(){ZE.prototype.release.call(this);this.Ga.get().removeListener(this);r9a(this.Na.get(),this)};
g.k.Tj=function(){};
g.k.Wj=function(){};g.z(bJ,ZE);g.k=bJ.prototype;g.k.init=function(){ZE.prototype.init.call(this);q9a(this.Na.get(),this);this.Ga.get().addListener(this);this.j.push(new $I(ZI(this.layout),$E(this.Za),this.layout.layoutId,{adsClientData:this.layout.Ub}))};
g.k.Nq=function(){this.G.Nq()};
g.k.startRendering=function(a){ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.K.Pt=this};
g.k.Ld=function(a,b){ZE.prototype.Ld.call(this,a,b);m1(this.K,this)};
g.k.vg=function(a){this.G.vg(a);a==="in_video_overlay_close_button"&&fL(this.D,this.layout)};
g.k.VQ=function(a){if(a==="invideo-overlay"){a=HBa(this.Z,this.layout);a=g.w(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.XK=function(a){a==="invideo-overlay"&&fL(this.D,this.layout)};
g.k.UQ=function(a){if(a==="invideo-overlay"){a=HBa(this.Z,this.layout);a=g.w(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Si=function(){};
g.k.Dg=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ah=function(a){a&&fL(this.D,this.layout)};
g.k.Uj=function(){};
g.k.jj=function(a){var b=ZI(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=A9a(this.Ga.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.Gg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Gg(0,0)}if(this.N=YI(a,d,c))b.onErrorCommand&&this.Jb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),fL(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.PA=function(){return this.Wa().layoutId};
g.k.lQ=function(){return this.N};
g.k.release=function(){ZE.prototype.release.call(this);this.Ga.get().removeListener(this);r9a(this.Na.get(),this)};
g.k.Tj=function(){};
g.k.Wj=function(){};cJ.prototype.vg=function(a){a==="ad-info-hover-text-button"&&((this.j=this.Ga.get().Uo(1))||this.Ga.get().pauseVideo())};
cJ.prototype.Nq=function(){this.j||this.Ga.get().resumeVideo(1)};g.z(Nya,Px);g.z(dJ,ZE);g.k=dJ.prototype;g.k.init=function(){ZE.prototype.init.call(this);this.Ga.get().addListener(this)};
g.k.startRendering=function(a){var b=ND(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new Nya(b,this.layout.layoutId,{adsClientData:this.layout.Ub}));ZE.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
g.k.wc=function(){};
g.k.vg=function(a,b){b!==this.layout.layoutId||a!=="ad-info-icon-button"&&a!=="ad-info-dialog-close-button"||((b=ND(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a==="ad-info-icon-button"?b.Ss(this.slot,this.layout):a==="ad-info-dialog-close-button"&&b.Us(this.slot,this.layout):Xy("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.jj=function(a){a.width<450&&fL(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Si=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.Dg=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};
g.k.xa=function(){ZE.prototype.xa.call(this)};
g.k.release=function(){ZE.prototype.release.call(this);this.Ga.get().removeListener(this)};Oya.prototype.build=function(a,b,c,d){if(b=OF(a,c,d,this.yc,this.Ga,this.Na,this.D,this.j,this.ya))return b;if(AF(d,Mya()))return new bJ(c,d,this.Na,this.zb,this.yc,a,this.B,this.C,this.Ga,this.Jb,this.ya,this.j,new cJ(this.Ga));if(AF(d,Lya()))return new aJ(c,d,this.Na,this.zb,this.yc,a,this.B,this.Ga,this.Jb,this.ya,this.j,new cJ(this.Ga));if(AF(d,{Od:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Je:["LAYOUT_TYPE_SURVEY"]}))return new dJ(c,d,a,this.yc,this.B,this.Ga,this.ya);if(AF(d,
{Od:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Je:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new VI(c,d,a,this.yc,this.Na);if(AF(d,axa()))return new KF(c,d,a,this.yc,this.Ga,this.ya);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};Pya.prototype.build=function(a,b,c,d){if(b=OF(a,c,d,this.yc,this.Ga,this.Na,this.D,this.j,this.ya))return b;if(AF(d,Mya()))return new bJ(c,d,this.Na,this.zb,this.yc,a,this.B,this.C,this.Ga,this.Jb,this.ya,this.j,new cJ(this.Ga));if(AF(d,Lya()))return new aJ(c,d,this.Na,this.zb,this.yc,a,this.B,this.Ga,this.Jb,this.ya,this.j,new cJ(this.Ga));throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.z(eJ,IF);eJ.prototype.startRendering=function(a){IF.prototype.startRendering.call(this,a);if(a.renderingContent?Wwa(a,aI(this.Qa.get(),2)||void 0):ND(this.layout.clientMetadata,"metadata_ad_video_is_listed"))a=a.renderingContent?Vwa(a,aI(this.Qa.get(),2)||void 0):ND(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.Xn.get().J.eb("onAdMetadataAvailable",a)};Rya.prototype.build=function(a,b,c,d){if(AF(d,Qya())||d.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Q(d.renderingContent,LF)!==void 0)return new eJ(a,c,d,this.yc,this.Ga,this.Na,this.B,this.Xn,this.j,this.Qa);throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};Sya.prototype.build=function(a,b,c,d){if(AF(d,Qya()))return new eJ(a,c,d,this.yc,this.Ga,this.Na,this.B,this.Xn,this.j,this.Qa);if(a=OF(a,c,d,this.yc,this.Ga,this.Na,this.B,this.j,this.ya))return a;throw new LD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+OD(d.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};wJ.prototype.clone=function(a){var b=this;return new wJ(function(){return b.triggerId},a)};xJ.prototype.clone=function(a){var b=this;return new xJ(function(){return b.triggerId},a)};yJ.prototype.clone=function(a){var b=this;return new yJ(function(){return b.triggerId},a)};zJ.prototype.clone=function(a){var b=this;return new zJ(function(){return b.triggerId},a)};AJ.prototype.clone=function(a){var b=this;return new AJ(function(){return b.triggerId},a)};BJ.prototype.clone=function(a){var b=this;return new BJ(function(){return b.triggerId},a)};g.z(fK,g.O);var dAa={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 zK={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Wc:[],layoutExitUserInputSubmittedTriggers:[]};var VP={Qja:1,Rja:2,Sja:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.z(OK,g.O);g.k=OK.prototype;g.k.R0=function(a){if(!this.j){var b;(b=this.Hc)==null||b.get().Bv(a.identifier);return!1}tBa(this,this.j,a);return!0};
g.k.M0=function(){};
g.k.Pk=function(a){this.j&&this.j.contentCpn!==a&&(Xy("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.fp=function(a){this.j&&this.j.contentCpn!==a&&Xy("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.O.prototype.xa.call(this);this.j=null};var W0=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Vdb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.z(SK,g.O);g.k=SK.prototype;g.k.wc=function(a,b){var c=this;if(b.layoutType==="LAYOUT_TYPE_MEDIA"&&(JD(b,this.K)||JD(b,Vdb))){var d=aI(this.Qa.get(),2),e=this.D(b,d||void 0);e?VE(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[nAa(c.j.get(),e.contentCpn,e.xr,function(h){return c.G(h.slotId,"core",e,TD(c.Re.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&uK(c.ya.get())&&f.push(yBa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):Xy("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.xf=function(){};
g.k.Rh=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.Kc=function(){};g.z(TK,g.O);TK.prototype.Pk=function(a,b,c,d,e,f,h){var l=this,m=aI(this.Qa.get(),1);!U8a(this.ya.get())&&m.Yp?J0(this.Ga.get()):(Q8a(this.Dc.get(),d),VE(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return zza(l.j.get(),d,e,f,a,b,h,m,"")}),N$a(this.C))};
TK.prototype.fp=function(){};g.z(UK,g.O);g.z(VK,g.O);VK.prototype.onCueRangeEnter=function(){};
VK.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Nc.get().removeCueRange(a),VE(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=WE(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?PBa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:QBa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:QBa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
VK.prototype.Pk=function(){for(var a=g.w(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Nc.get().removeCueRange(b);this.j.clear()};
VK.prototype.fp=function(){};g.z(WK,g.O);g.k=WK.prototype;g.k.Vg=function(){};
g.k.Uh=function(a){var b=this;g.Ft(g.Ht(),function(){var c=b.j.get(a);c&&Xy("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.x(c)).map(function(d){return d.layoutType})})},0)};
g.k.xf=function(){};
g.k.Rh=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.xg=function(a,b){this.tj.has(a)&&this.tj.get(a)===b&&Xy("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)):Xy("Trying to unscheduled a Layout that was not scheduled.",a,b)}else Xy("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.wc=function(a,b){this.tj.set(a,b)};
g.k.Kc=function(a){this.tj.delete(a)};
g.k.Ug=function(){};g.k=ABa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.mK=function(){this.callback.xf(this.slot)};
g.k.oK=function(){this.callback.yf(this.slot)};
g.k.release=function(){};ZK.prototype.build=function(a,b){return new ABa(a,b)};g.k=BBa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.mK=function(){L0(this.Ga.get(),"ad-showing");this.callback.xf(this.slot)};
g.k.oK=function(){this.callback.yf(this.slot);M0(this.Ga.get(),"ad-showing")};
g.k.release=function(){};g.k=CBa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.mK=function(){L0(this.Ga.get(),"ad-showing");L0(this.Ga.get(),"ad-interrupting");this.B=this.Ga.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)};
g.k.oK=function(){M0(this.Ga.get(),"ad-showing");M0(this.Ga.get(),"ad-interrupting");var a=this.B?Infinity:K0(this.Ga.get(),1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ga.get().J.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)};
g.k.release=function(){};g.k=DBa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.mK=function(){L0(this.Ga.get(),"ad-showing");L0(this.Ga.get(),"ad-interrupting");this.callback.xf(this.slot)};
g.k.oK=function(){J0(this.Ga.get());M0(this.Ga.get(),"ad-showing");M0(this.Ga.get(),"ad-interrupting");this.callback.yf(this.slot)};
g.k.release=function(){J0(this.Ga.get())};$K.prototype.build=function(a,b){if(PD(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new BBa(a,b,this.Ga);if(b.slotEntryTrigger instanceof qJ&&PD(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new CBa(a,b,this.Ga);if(PD(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new DBa(a,b,this.Ga);throw new Z("Unsupported slot with type "+b.slotType+" and client metadata: "+(OD(b.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.z(aL,g.O);aL.prototype.j=function(a){for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof vJ&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&e.triggeringLayoutId===a&&b.push(d)}b.length?kE(this.oO(),b):Xy("Mute requested but no registered triggers can be activated.")};g.z(cL,aL);g.k=cL.prototype;g.k.vg=function(a,b){if(b)if(a==="skip-button"){a=[];for(var c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof vJ&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&e.triggeringLayoutId===b&&a.push(d)}a.length&&kE(this.oO(),a)}else hI(this.ya.get(),"supports_multi_step_on_desktop")?a==="ad-action-submit-survey"&&bL(this,b):a==="survey-submit"?bL(this,b):a==="survey-single-select-answer-button"&&bL(this,b)};
g.k.XQ=function(a){aL.prototype.j.call(this,a)};
g.k.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof CJ||b instanceof vJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Xb.set(b.triggerId,new EJ(a,b,c,d))};
g.k.wm=function(a){this.Xb.delete(a.triggerId)};
g.k.VQ=function(){};
g.k.UQ=function(){};
g.k.XK=function(){};g.z(dL,g.O);g.k=dL.prototype;
g.k.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof wJ||b instanceof xJ||b instanceof yJ||b instanceof zJ||b instanceof AJ||b instanceof BJ||b instanceof sJ||b instanceof lJ||b instanceof nJ||b instanceof mJ||b instanceof rJ||b instanceof kJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new EJ(a,b,c,d);this.Xb.set(b.triggerId,a);b instanceof
AJ&&this.G.has(b.triggeringSlotId)&&kE(this.j(),[a]);b instanceof wJ&&this.C.has(b.triggeringSlotId)&&kE(this.j(),[a]);b instanceof lJ&&this.B.has(b.triggeringLayoutId)&&kE(this.j(),[a])};
g.k.wm=function(a){this.Xb.delete(a.triggerId)};
g.k.Vg=function(a){this.G.add(a.slotId);for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof AJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&kE(this.j(),b)};
g.k.Uh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof BJ&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&kE(this.j(),b)};
g.k.Rh=function(a){for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof sJ&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&kE(this.j(),b)};
g.k.xf=function(a){this.C.add(a.slotId);for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof wJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&kE(this.j(),b)};
g.k.yf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof xJ)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof kJ){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&kE(this.j(),b)};
g.k.Sh=function(a){for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof yJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&kE(this.j(),b)};
g.k.Th=function(a){for(var b=[],c=g.w(this.Xb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof zJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&kE(this.j(),b)};
g.k.yh=function(a,b){this.K.add(b.layoutId)};
g.k.xg=function(a,b){this.K.delete(b.layoutId)};
g.k.wc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.w(this.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof lJ)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof rJ){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof kJ&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&kE(this.j(),c)};
g.k.Kc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.w(this.Xb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof nJ&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof mJ){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&kE(this.j(),a)};
g.k.Ug=function(){};
g.k.Pk=function(){this.D.clear()};
g.k.fp=function(){};g.z(eL,g.O);eL.prototype.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof iJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Xb.set(b.triggerId,new EJ(a,b,c,d))};
eL.prototype.wm=function(a){this.Xb.delete(a.triggerId)};g.z(gL,g.O);gL.prototype.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof hJ||b instanceof uJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Xb.set(b.triggerId,new EJ(a,b,c,d))};
gL.prototype.wm=function(a){this.Xb.delete(a.triggerId)};
gL.prototype.Pk=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.w(this.Xb.values()),h=f.next();!h.done;h=f.next())h=h.value,h.trigger instanceof hJ&&h.trigger.dw===a&&e.push(h);d.call(c,b,g.x(e));c=b.push;d=c.apply;e=[];f=g.w(this.Xb.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.trigger instanceof uJ&&h.trigger.j!==a&&e.push(h);d.call(c,b,g.x(e));b.length&&kE(this.j(),b)};
gL.prototype.fp=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.w(this.Xb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof uJ&&l.j===a&&e.push(h)}d.call(c,b,g.x(e));b.length&&kE(this.j(),b)};g.z(hL,g.O);g.k=hL.prototype;g.k.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof qJ)EBa(this,a,b,c,d,e,b.j.start,b.j.end,b.dw,b.visible);else if(b instanceof jJ)EBa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.dw,b.visible);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
g.k.wm=function(a){var b=this.Xb.get(a.triggerId);b&&this.Nc.get().removeCueRange(b.XJ);this.Xb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){var b=FBa(this,a);if(b&&(b=this.Xb.get(b)))if(g.U(C0(this.Ga.get()),32))this.j.add(b.XJ);else{var c=b==null?void 0:b.TE.trigger;if(c instanceof qJ||c instanceof jJ){if(YF(this.context.ya.get())){var d=b.TE.slot,e=b.TE.layout,f={};this.context.Ij.Lk("cre",(f.ca=b.TE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}kE(this.B(),[b.TE])}}};
g.k.onCueRangeExit=function(a){(a=FBa(this,a))&&(a=this.Xb.get(a))&&this.j.delete(a.XJ)};
g.k.Dg=function(a){if(Zy(a,16)<0){a=g.w(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.wc=function(){};
g.k.Kc=function(){};
g.k.Ug=function(){};
g.k.Si=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ah=function(){};
g.k.Uj=function(){};
g.k.jj=function(){};
g.k.onVolumeChange=function(){};
g.k.Tj=function(){};
g.k.Wj=function(){};g.z(iL,g.O);g.k=iL.prototype;
g.k.im=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new Z("Tried to re-register the trigger.");a=new EJ(a,b,c,d);if(a.trigger instanceof pJ)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof oJ)this.C.set(a.trigger.triggerId,a);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&kE(this.D(),[a])};
g.k.wm=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.mM=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.x(GBa(this.C,this.j)));a!=null&&b.push.apply(b,g.x(GBa(this.B,a)));this.j=a;b.length&&kE(this.D(),b)}};
g.k.bH=function(){};
g.k.aH=function(){};g.z(jL,g.O);g.k=jL.prototype;g.k.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof tJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Xb.set(b.triggerId,new EJ(a,b,c,d))};
g.k.wm=function(a){this.Xb.delete(a.triggerId)};
g.k.wc=function(){};
g.k.Kc=function(){};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};g.z(kL,g.O);g.k=kL.prototype;g.k.Ug=function(a,b){for(var c=[],d=g.w(this.Xb.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&&kE(this.j(),c)};
g.k.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof Yva))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Xb.set(b.triggerId,new EJ(a,b,c,d))};
g.k.wm=function(a){this.Xb.delete(a.triggerId)};
g.k.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.wc=function(){};
g.k.Kc=function(){};g.z(lL,g.O);g.k=lL.prototype;g.k.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof DJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Xb.set(b.triggerId,new EJ(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.wm=function(a){this.Xb.delete(a.triggerId);if(!(a instanceof DJ))throw new Z("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.Vg=function(){};
g.k.Uh=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Sh=function(){};
g.k.Th=function(){};
g.k.yh=function(){};
g.k.xg=function(){};
g.k.Ug=function(){};
g.k.wc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.w(a);var d=a.next();for(b={};!d.done;b={EN:void 0},d=a.next())b.EN=d.value,d=new g.Ep(function(e){return function(){var f=c.Xb.get(e.EN.triggerId);kE(c.C(),[f])}}(b),b.EN.durationMs),d.start(),this.B.set(b.EN.triggerId,d)}};
g.k.Kc=function(){};g.z(mL,g.O);mL.prototype.im=function(a,b,c,d){if(this.Xb.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof fJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Xb.set(b.triggerId,new EJ(a,b,c,d))};
mL.prototype.wm=function(a){this.Xb.delete(a.triggerId)};qL.prototype.Pu=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.z(tL,g.O);g.k=tL.prototype;g.k.logEvent=function(a){this.Fs(a)};
g.k.nk=function(a,b,c){this.Fs(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
g.k.Yh=function(a,b,c,d){this.Fs(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.pO=function(a,b,c,d){hI(this.ya.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);SD(this.j.get())&&this.Fs(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
g.k.lJ=function(a,b,c,d,e){this.Fs(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
g.k.Hm=function(a,b,c,d){this.Fs("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.Fs=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;hI(this.ya.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,yqa:d,Dqa:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.ya.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.wU())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||Xy("Empty PACF event type",e,f);var u=SD(r.j.get()),
y={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=RD(u,e));f&&(A.layoutData=Ava(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=QD(l.trigger,l.category));b&&(A.opportunityData=Bva(u,b,c,d));u={organicPlaybackContext:{contentCpn:aI(r.Qa.get(),1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=aI(r.Qa.get(),1).Wb;var C;u.organicPlaybackContext.isMdxPlayback=
(C=aI(r.Qa.get(),1))==null?void 0:C.isMdxPlayback;var F;if((F=aI(r.Qa.get(),1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var H;if(C=(H=aI(r.Qa.get(),2))==null?void 0:H.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:C};u&&(A.externalContext=u);y.adClientData=A;m&&(y.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(y.serializedAdServingData=n.serializedAdServingDataEntry);p&&(y.errorInfo=p);g.Qt("adsClientStateChange",{adsClientEvent:y})}};
q&&q>0?g.Ft(g.Ht(),function(){return t()},q):t()}catch(u){hI(this.ya.get(),"html5_log_pacf_logging_errors")&&g.Ft(g.Ht(),function(){Xy(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}};
g.k.wU=function(){return this.ya.get().wU()};var Wdb=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.z(uL,tL);g.k=uL.prototype;
g.k.nk=function(a,b,c){tL.prototype.nk.call(this,a,b,c);YF(this.ya.get())&&(c={},this.context.Ij.Lk("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
g.k.Yh=function(a,b,c,d){var e=Wdb.has(a);tL.prototype.Yh.call(this,a,b,c,d);YF(this.ya.get(),e)&&(d={},this.context.Ij.Lk("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.p_ac=c==null?void 0:c.layoutId,d)))};
g.k.lJ=function(a,b,c,d,e){tL.prototype.lJ.call(this,a,b,c,d,e);YF(this.ya.get())&&(c={},this.context.Ij.Lk("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))};
g.k.pO=function(a,b,c,d){tL.prototype.pO.call(this,a,b,c,d);if(YF(this.ya.get())){var e={};this.context.Ij.Lk("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.p_ac=d==null?void 0:d.layoutId,e))}};
g.k.Hm=function(a,b,c,d){tL.prototype.Hm.call(this,a,b,c,d);if(YF(this.ya.get(),!0)){var e={};this.context.Ij.Lk("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.p_ac=d==null?void 0:d.layoutId,e))}};
g.k.Fs=function(a,b,c,d,e,f,h,l,m,n,p){if(g.hE(this.ya.get().J.U())){var q=this.ya.get();q=g.UD(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;tL.prototype.Fs.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};vL.prototype.clear=function(){this.j.clear()};var wL=window.hna||"en";zL.prototype.eI=function(a){this.client=a};
zL.prototype.j=function(){this.clear();this.csn=g.hx()};
zL.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};BL.prototype.eI=function(a){g.Dr(AL().eI).bind(AL())(a)};
BL.prototype.clear=function(){g.Dr(AL().clear).bind(AL())()};g.k=CL.prototype;g.k.eI=function(a){this.client=a};
g.k.lY=function(a,b){var c=this;b=b===void 0?{}:b;g.Dr(function(){var d,e,f,h=((d=g.Q(a==null?void 0:a.commandMetadata,g.L1))==null?void 0:d.rootVe)||((e=g.Q(a==null?void 0:a.commandMetadata,ucb))==null?void 0:(f=e.screenVisualElement)==null?void 0:f.uiType);if(h){d=g.Q(a==null?void 0:a.commandMetadata,Jcb);if(d==null?0:d.parentTrackingParams){var l=g.ex(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.ex(a.clickTrackingParams));
a:{d=g.Q(a,g.rR);e=g.Q(a,Fcb);if(d){if(e=VBa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=VBa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.Zr("expectation_logging")){var n;b.loggingExpectations=((n=g.Q(a==null?void 0:a.commandMetadata,ucb))==null?void 0:n.loggingExpectations)||void 0}EL(c,h,l,b)}else g.qx(new g.At("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.hx(c===void 0?0:c))?(ssa(this.client,c,g.ex(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.ex(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]):aCa(this,a,b,c)};IL.prototype.fetch=function(a,b,c){var d=this,e=dCa(a,b,c);return new Promise(function(f,h){function l(){if(c==null?0:c.Tr)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)})};
IL.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.qx(new g.At("JSON parsing failed after XHR fetch",a,b,c));if((d==null?0:d.Tr)&&c)throw new g.VA(1,"JSON parsing failed after XHR fetch");e={}}b!==200&&(g.qx(new g.At("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};JL.getInstance=function(){var a=g.Pa("ytglobal.storage_");a||(a=new JL,g.Oa("ytglobal.storage_",a));return a};
JL.prototype.estimate=function(){var a,b,c;return g.J(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(eCa()):d.return()})};
g.Oa("ytglobal.storageClass_",JL);Ot.prototype.Yl=function(a){this.handleError(a)};
Ot.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Zr("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Zr("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":gCa(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 j2={},RKa=g.Ru("yt-player-local-media",{Ls:(j2.index={Zn:2},j2.media={Zn:2},j2.captions={Zn:5},j2),shared:!1,upgrade:function(a,b){b(2)&&(g.ju(a,"index"),g.ju(a,"media"));b(5)&&g.ju(a,"captions");b(6)&&(ku(a,"metadata"),ku(a,"playerdata"))},
version:5});var Xdb={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},k2;a:{var l2=g.Cb();l2=l2.toLowerCase();if(g.xb(l2,"android")){var Ydb=l2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ydb){var Zdb=parseFloat(Ydb[1]);if(Zdb<100){k2=Zdb;break a}}var $db=l2.match("("+Object.keys(Xdb).join("|")+")");k2=$db?Xdb[$db[0]]:0}else k2=void 0}var PP=k2,OP=PP>=0;var KWa=window;var hCa=Ci(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var LL;g.KL=new kC;LL=0;var ML={OK:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
fq:function(a){a.reverse()},
wH:function(a,b){a.splice(0,b)}};var VYa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var jP=nCa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Lu?!0:!1;var PJa={rga:"adunit",Qha:"detailpage",bia:"editpage",dia:"embedded",Hja:"leanback",Oka:"previewpage",Qka:"profilepage",z7:"unplugged",Lka:"playlistoverview",Ila:"sponsorshipsoffer",yla:"shortspage",Lia:"handlesclaiming",aja:"immersivelivepage",Lha:"creatormusic",bja:"immersivelivepreviewpage",kga:"admintoolyurt"};var yDa={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},zDa={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"},RWa={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var kLa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.dM.prototype.getLanguageInfo=function(){return this.Yb};
g.dM.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags};
g.dM.prototype.toString=function(){return this.Yb.name};
g.dM.prototype.getLanguageInfo=g.dM.prototype.getLanguageInfo;eM.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
eM.prototype.compose=function(a){if(a.C&&iM(a))return ZQ;if(a.C||iM(this))return a;if(this.C||iM(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;fM&&(d=this.qb!==0&&a.qb!==0?Math.min(this.qb,a.qb):this.qb===0?a.qb:this.qb);return fM&&b===this.B&&c===this.j&&d===this.qb||!fM&&b===this.B&&c===this.j?this:fM?new eM(b,c,!1,c===this.j&&d===this.qb?this.reason:a.reason,d):new eM(b,c,!1,c===this.j?this.reason:a.reason)};
eM.prototype.D=function(a){return!a.video||fM&&this.qb!==0&&this.qb<a.qb?!1:BDa(this,a.video.quality)};
var aeb=g.hM("auto","hd1080",!1,"l"),KVa=g.hM("auto","large",!1,"l"),ZQ=g.hM("auto","auto",!1,"p"),fM=!1;mM.prototype.wu=function(a){a=a||ZQ;for(var b=g.Bn(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};
mM.prototype.KF=function(a){a=a||ZQ;return g.Bn(this.videoInfos,function(b){return a.D(b)})};
mM.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var SDa=new Set(["356"]);g.z(nM,g.O);nM.prototype.xa=function(){g.O.prototype.xa.call(this)};g.yM.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.yM.prototype.get=function(a){zM(this);return this.j[a]||null};
g.yM.prototype.xe=function(){this.url||(this.url=YDa(this));return this.url};
g.yM.prototype.clone=function(){var a=new g.yM(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.Yg(this.j);a.url=this.url;return a};
var XDa=[Xma];g.k=g.GM.prototype;g.k.mJ=function(a){this.segments.push(a)};
g.k.Mo=function(a){return!!this.Bo(a)};
g.k.getDuration=function(a){return(a=this.Bo(a))?a.duration:0};
g.k.UY=function(a){return this.getDuration(a)};
g.k.Eo=function(){return this.segments.length?this.segments[0].Ma:-1};
g.k.df=function(a){return(a=this.Bo(a))?a.ingestionTime:NaN};
g.k.ud=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.k.xG=function(a){return this.ud()===a&&!this.B&&a>=0};
g.k.Au=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Vc=function(){return this.segments[0].startTime};
g.k.TA=function(){return this.segments.length};
g.k.Zm=function(){return 0};
g.k.Pi=function(a){return(a=this.GA(a))?a.Ma:-1};
g.k.NK=function(a){return(a=this.Bo(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Bo(a))?a.startTime:0};
g.k.zK=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.QK=ba(1);g.k.isLoaded=function(){return this.segments.length>0};
g.k.Bo=function(a){if(this.j&&this.j.Ma===a)return this.j;a=g.fc(this.segments,new FM(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return this.j=a>=0?this.segments[a]:null};
g.k.GA=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.fc(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.ac(a),this.segments.length){var b=this.segments.length?g.Rb(this.segments).endTime:0,c=a[0].Ma-this.ud();c>1&&bba(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.dZ=function(){return 0};HM.prototype.skip=function(a){this.j+=a};cEa.prototype.Gk=function(){return new Uint8Array(this.data.buffer)};var m2={},beb=(m2.predictStart="predictStart",m2.start="start",m2["continue"]="continue",m2.stop="stop",m2),dEa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};RM.prototype.hG=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"])};
RM.prototype.toString=function(){for(var a="",b=g.w(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};dN.prototype.So=function(){var a=this.pos;this.pos=0;var b=!1;try{hN(this,440786851)&&(this.pos=0,hN(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.qx(c);else throw c;}this.pos=a;return b};rN.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
rN.prototype.get=function(a){return this.j[a]||this.base.get(a)};
rN.prototype.xe=function(){this.url||(this.url=yEa(this));return this.url};vN.prototype.hk=function(a,b){return a.Qb?this.Z?this.K=!0:this.K=BEa(this,a,b):BEa(this,a,b)};
vN.prototype.JK=function(a){return this.C.get(a)};
vN.prototype.Ql=function(a,b){a.base===this.j&&(this.j=sN(a,b));a.base===this.D&&(this.D=sN(a,b))};
vN.prototype.lx=function(){return this.j!==this.D&&!this.K};AN.prototype.wg=function(){return!!this.j&&this.index.isLoaded()};
AN.prototype.tB=function(){return!1};
AN.prototype.yW=function(a){return[a]};
AN.prototype.BC=function(a){return[a]};BN.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};FN.prototype.Ri=function(){return this.Oe&&this.j.index.xG(this.Ma)};
FN.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
FN.prototype.dg=function(){return!!this.j.info.video};
FN.prototype.vc=function(){var a=KN(this),b="";g.Ig(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};MN.prototype.JA=function(){return this.j?this.j.xe():""};
MN.prototype.Cq=function(){return!!(this.j||this.D&&this.D.In)};
MN.prototype.cq=function(){return GN(this.gb[0])};
MN.prototype.Ql=function(a,b){this.resource.Ql(a,b);if(this.j){this.j=sN(a,b);b=g.w(["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.z(QN,AN);g.k=QN.prototype;g.k.un=function(){return!1};
g.k.iy=function(){return!0};
g.k.pB=function(){return!1};
g.k.tB=function(){return!this.G};
g.k.Kx=function(){return new MN([new FN(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.Uz=function(){return null};
g.k.TD=function(a){this.Mt(a);return this.iy()&&a.B&&!a.Oe?new MN([new FN(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ma,a.startTime,a.duration,a.Ob+a.B,NaN,!0)],this.index.NK(a.Ma)):this.Nt(JN(a),!1)};
g.k.gs=function(a,b){b=b===void 0?!1:b;a=this.index.Pi(a);b&&(a=Math.min(this.index.ud(),a+1));return this.Nt(a,!0)};
g.k.WQ=function(a){dO(a)};
g.k.Mt=function(a){return a.B===0?!0:this.index.ud()>a.Ma&&this.index.Eo()<=a.Ma+1};
g.k.update=function(a,b,c){this.index.append(a);aEa(this.index,c);a=this.index;a.B=b;a.C="update"};
g.k.wg=function(){return this.tB()?!0:AN.prototype.wg.call(this)};
g.k.Nt=function(a,b){var c=this.index.NK(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.qb>0?this.info.qb*e:1E3;return new MN([new FN(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.DQ=function(){return this.tB()?0:this.initRange.length};
g.k.sT=function(){return!1};TN.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new TN,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+RN(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+RN(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.lh:0,m=Date.parse(UEa(RN(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=RN(a,"media"));a=b?h-b.Ma:1;c.K=a>0?0:-a+1;a=g.w(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.Ma)h++;else{var t=new SEa(h,l,n,m+p,f);c.j.push(t);var u=d;var y=e,A=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var C=u.getAttribute("yt:cuepointDuration");if(t&&C){t=Number(t);A=-t/y+A;y=Number(C)/y;C=u.getAttribute("yt:cuepointContext")||null;var F=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new PM(A,y,C,F,beb[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.Rb(c.j))}this.K=c.K;this.B=c.B||this.B;g.bc(this.j,c.j);g.bc(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())};
TN.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.z(VN,g.GM);g.k=VN.prototype;g.k.Mo=function(a,b){a=WN(this,a);return a>=0&&(b||!this.segments[a].pending)};
g.k.Eo=function(){return this.ao?this.segments.length?this.GA(this.Vc()).Ma:-1:g.GM.prototype.Eo.call(this)};
g.k.Vc=function(){if(this.Wd)return 0;if(!this.ao)return g.GM.prototype.Vc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Rb(this.segments).endTime-this.Qr,0);return this.hf>0&&this.GA(a).Ma<this.hf?this.Bo(this.hf).startTime:a};
g.k.Au=function(){if(this.LI&&this.pn&&this.pn>0)return this.pn/1E3;if(!this.segments.length)return g.GM.prototype.Au.call(this);var a=this.ud();if(!this.ao||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new FM(a,Math.max(0,b.startTime-(b.Ma-a)*this.fk),this.fk,0,"sq/"+a,void 0,void 0,!0)}return this.Wd?Math.min(this.Qr,a.endTime):a.endTime};
g.k.TA=function(){return this.ao?this.segments.length?this.ud()-this.Eo()+1:0:g.GM.prototype.TA.call(this)};
g.k.ud=function(){var a=Math.min(this.Ci,Math.max(g.GM.prototype.ud.call(this),this.yq)),b=this.Qr*1E3;b=this.pn>0&&this.pn<b;this.Wd&&this.Qr>0&&this.yq>0&&!b&&(b=this.GA(this.Qr))&&(a=Math.min(b.Ma-1,a));return a};
g.k.Gx=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.mJ=function(a){var b=WN(this,a.Ma);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.JB&&a.Ma%(300/this.fk)===0){var c=this.segments[0].Ma,d=Math.floor(this.JB/this.fk);a=a.Ma-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.DK=function(){return this.yq};
g.k.xG=function(a){return UN?!this.B&&a>=0&&this.ud()<=a:g.GM.prototype.xG.call(this,a)};
g.k.GA=function(a){if(!this.ao)return g.GM.prototype.GA.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.fk));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.fk+1);else{b=gc(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.Ma-b.Ma-1))+1)+b.Ma}return this.Bo(b)};
g.k.Bo=function(a){if(!this.ao)return g.GM.prototype.Bo.call(this,a);if(!this.segments.length)return null;var b=WN(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.fk;if(c===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new FM(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};
var UN=!1;g.z(XN,QN);g.k=XN.prototype;g.k.pB=function(){return!0};
g.k.wg=function(){return!0};
g.k.Mt=function(a){return this.iy()&&a.B&&!a.Oe||!a.j.index.xG(a.Ma)};
g.k.Kx=function(){};
g.k.gs=function(a,b){return typeof a!=="number"||isFinite(a)?QN.prototype.gs.call(this,a,b===void 0?!1:b):new MN([new FN(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.ek,void 0,this.ek*this.info.qb)],"")};
g.k.Nt=function(a,b){var c=c===void 0?!1:c;if(this.index.Mo(a))return QN.prototype.Nt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.ek*this.info.qb),f=this.ek;b&&(f=e=0);return new MN([new FN(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.z(YN,AN);g.k=YN.prototype;g.k.un=function(){return!1};
g.k.iy=function(){return!1};
g.k.pB=function(){return!1};
g.k.Kx=function(){return new MN([new FN(1,this,void 0,"otfInit")],this.G)};
g.k.Uz=function(){return null};
g.k.TD=function(a){this.Mt(a);return bFa(this,JN(a),!1)};
g.k.gs=function(a,b){b=b===void 0?!1:b;a=this.index.Pi(a);b&&(a=Math.min(this.index.ud(),a+1));return bFa(this,a,!0)};
g.k.WQ=function(a){a.info.type===1&&(this.j||(this.j=oB(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&cFa(this,a.B))};
g.k.Mt=function(a){return a.B===0?!0:this.index.ud()>a.Ma&&this.index.Eo()<=a.Ma+1};
g.k.DQ=function(){return 0};
g.k.sT=function(){return!1};ZN.prototype.Pd=function(){return this.j.Pd()};g.k=g.eO.prototype;g.k.Mo=function(a){return a<=this.ud()};
g.k.Zm=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Xg[a]/this.j};
g.k.zK=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.QK=ba(0);g.k.df=function(){return NaN};
g.k.getDuration=function(a){a=this.UY(a);return a>=0?a/this.j:-1};
g.k.UY=function(a){return a+1<this.count||this.B?this.Xg[a+1]-this.Xg[a]:-1};
g.k.Eo=function(){return 0};
g.k.ud=function(){return this.count-1};
g.k.xG=function(a){return this.ud()===a&&a>=0};
g.k.Au=function(){return this.B?this.Xg[this.count]/this.j:NaN};
g.k.Vc=function(){return 0};
g.k.TA=function(){return this.count};
g.k.NK=function(){return""};
g.k.Pi=function(a){a=g.fc(this.Xg.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return this.ud()>=0};
g.k.dZ=function(a,b){if(a>=this.ud())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.ud()&&b>this.getStartTime(a);a++)c=Math.max(c,kFa(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.Xg;this.Xg=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Xg[a]=c[a]};
g.k.cap=function(a,b){fO(this);this.B=!0;this.Xg[this.count]=b;this.offsets[this.count]=a};g.z(gO,AN);g.k=gO.prototype;g.k.Kx=function(a,b){var c=new FN(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new FN(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 FN(4,this,DN(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new MN(d)};
g.k.WQ=function(a){if(a.info.type===1){if(this.j)return;this.j=oB(a.j)}else if(a.info.type===2){if(this.G||this.index.ud()>=0)return;if(g.xG(this.info)){var b=this.index,c=a.Pd();a=a.info.range.start;var d=g.UM(c,0,1936286840);c=mEa(d);b.j=c.zt;var e=c.H8;b.offsets[0]=c.i9+a+d.size;b.Xg[0]=e;b.B=!0;a=c.PU.length;for(d=0;d<a;d++){e=b;var f=c.Zda[d],h=c.PU[d];e.count++;fO(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Xg[e.count]=e.Xg[e.count-1]+h}}else this.G=a.Pd()}if(this.info.Pe()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new dN(c);c=e;e=c.pos;f={y3:1E6,z3:1E9,duration:0,G2:0,gU:0};if(hN(c,408125543))if(f.G2=iN(c,!0),f.gU=c.start+c.pos,hN(c,357149030)){for(h=gN(c);!eN(h);){var l=iN(h,!1);l===2807729?f.y3=kN(h):l===2807730?f.z3=kN(h):l===17545?f.duration=mN(h):lN(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(c!==null){b.j=c.z3/c.y3;e=new dN(d);d=e;h=c.gU;e=d.pos;f=[];if(hN(d,475249515)){for(l=gN(d);hN(l,187);){var m=gN(l);if(hN(m,
179)){var n=kN(m);if(hN(m,183)){m=gN(m);for(var p=h;hN(m,241);)p=kN(m)+h;f.push({QJ:p,p8:n})}}}if(f.length>0&&a===f[0].QJ)for(a=0;a<f.length;a++)f[a].QJ+=1;d.pos=e;a=f}else d.pos=e,a=null;if(a!==null){a=g.w(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.QJ,f=f.p8,fO(d),d.offsets[d.count]=e,d.Xg[d.count]=f,d.count++;b.cap(c.G2+c.gU,c.duration)}}this.G=null}};
g.k.YF=function(a,b,c,d){for(var e=[],f=a;f<=this.index.ud();f++){var h=DN(this.index.Zm(f),kFa(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 FN(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.px(new g.At("b189619593",""+a,""+b,""+c));return new MN(e)};
g.k.yW=function(a){for(var b=this.BC(a.info),c=a.info.range.start+a.info.Ob,d=[],e=0;e<b.length;e++){var f=lB(a.j,b[e].range.start+b[e].Ob-c,b[e].B);d.push(new ZN(b[e],f))}return d};
g.k.BC=function(a){for(var b=a.range.start+a.Ob,c=0;c<this.index.ud()&&b>=this.index.Zm(c+1);)c++;return this.YF(c,b,a.B).gb};
g.k.Mt=function(a){a.Ri();return this.wg()?!0:a.range.end+1<this.info.contentLength};
g.k.Uz=function(a,b){this.Mt(a);if(!this.wg())return b=DN(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new BN(b.start,this.info.contentLength-1)),new MN([new FN(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.BC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ob+a.B;a.type===3&&(a.Ri(),c=a.Ma,d===a.range.end+1&&(c+=1));return this.YF(c,d,b)};
g.k.TD=function(){return null};
g.k.gs=function(a,b,c){b=b===void 0?!1:b;a=this.index.Pi(a);b&&(a=Math.min(this.index.ud(),a+1));return this.YF(a,this.index.Zm(a),0,c)};
g.k.un=function(){return!0};
g.k.iy=function(){return!0};
g.k.pB=function(){return!1};
g.k.DQ=function(){return this.indexRange.length+this.initRange.length};
g.k.sT=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var n2={},cIa=(n2.COLOR_PRIMARIES_BT709="bt709",n2.COLOR_PRIMARIES_BT2020="bt2020",n2.COLOR_PRIMARIES_UNKNOWN=null,n2.COLOR_PRIMARIES_UNSPECIFIED=null,n2),o2={},mFa=(o2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",o2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",o2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",o2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",o2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,o2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,o2);g.hO.prototype.getName=function(){return this.name};
g.hO.prototype.getId=function(){return this.id};
g.hO.prototype.getIsDefault=function(){return this.isDefault};
g.hO.prototype.toString=function(){return this.name};
g.hO.prototype.getName=g.hO.prototype.getName;g.hO.prototype.getId=g.hO.prototype.getId;g.hO.prototype.getIsDefault=g.hO.prototype.getIsDefault;var qFa=/action_display_post/;var rFa,lO,mO;g.z(nO,g.Qx);g.k=nO.prototype;g.k.isLoading=function(){return this.state===1};
g.k.Vl=function(){return this.state===3};
g.k.vda=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.Wb=this.B=!0;this.timeline||(this.timeline=new WEa);$Ea(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=MIa(this,b[a]);if(!this.j[c.id]){var d=sO(SN(b[a],"BaseURL").textContent),e=SN(b[a],"Initialization"),f=RN(e,"sourceURL");e=CN(RN(e,"range"));this.j[c.id]=new QN(d,c,f,e)}c=this.j[c.id];d=RN(b[a],"id",
"AdaptationSet");d=d!==""?d:RN(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.w(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=c.info.qb*8,n=h.Ma;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 FM(h.Ma,h.startSecs,h.lh,h.j,q.join("$"),null,h.B))}d=e}else{f=cc(SN(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=CN(r):q=q+"?range="+r}m.call(l,new FM(n.Ma,n.startSecs,n.lh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Va)}aFa(this.timeline);return!0}this.duration=TEa(RN(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=MIa(this,f);d=sO(SN(f,"BaseURL").textContent);e=SN(f,"SegmentBase");f=CN(e.attributes.getNamedItem("indexRange").value);e=CN(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new gO(d,c,e,f);if(!c){b=!1;break a}kO(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.Ia()){var a=g.gj(this.sourceUrl,{start_seq:RIa(this).toString()});OIa(this,a).fl(function(){})}};
g.k.resume=function(){NIa(this)};
g.k.Vd=function(){if(this.isManifestless&&this.D&&uO(this))return uO(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()&&!DG(f.info.mimeType)&&(f.D&&(b=!0),h=h.Au(),f.info.cg()&&(isNaN(c)||h<c)?c=h:f.info.dg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Vc=function(){if(this.isManifestless){if(vO(this))return vO(this);if(this.qc){var a=this.df(this.Vd());if(a&&(a-=this.qc,a>0))return this.Vd()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!DG(a[b].info.mimeType))return c.Vc()}return 0};
g.k.getStreamTimeOffset=function(){return this.N};
g.k.df=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Pi(a),e=c.df(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var BO=null,ceb,CO=!((ceb=navigator.mediaCapabilities)==null||!ceb.decodingInfo),LIa={commentary:1,alternate:2,dub:3,main:4};var eW=new Set,DO=new Map;GO.prototype.clone=function(a){return new GO(this.flavor,a,this.B,this.experiments)};
GO.prototype.pc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
GO.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 deb={},QO=(deb.playready=["com.youtube.playready","com.microsoft.playready"],deb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],deb),p2={},wVa=(p2.widevine="DRM_SYSTEM_WIDEVINE",p2.fairplay="DRM_SYSTEM_FAIRPLAY",p2.playready="DRM_SYSTEM_PLAYREADY",p2),q2={},eeb=(q2.widevine=1,q2.fairplay=2,q2.playready=3,q2);SO.prototype.Fg=function(a,b){b=b===void 0?1:b;this.oo+=b;this.B+=a;a/=b;for(var c=0;c<RO.length&&!(a<RO[c]);++c)this.j[c]+=b};
SO.prototype.toString=function(){return""};
var RO=[20,100,500,2E3];VO.prototype.resolve=function(a){TO(this,a)};
VO.prototype.reject=function(a){UO(this,a)};
VO.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}};
VO.prototype.wait=function(){var a=this;return function c(){return maa(c,function(d){if(d.j==1)return d.G=0,d.D=2,g.G(d,{n9:a},4);if(d.j!=2)return d.return(d.B);g.za(d);return g.Aa(d,0)})}()};
var dJa=Rc(function(a){return WO(a)?a instanceof VO:!1});g.k=aJa.prototype;g.k.isActive=function(){return!0};
g.k.oL=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={C1:void 0,f2:void 0},b.hasOwnProperty(e)&&(d.C1=a.prototype[e],d.f2=b[e],a.prototype[e]=function(f){return function(){var h=g.Ea.apply(0,arguments),l=(0,g.hu)();h=f.C1.apply(this,h);return dP(c,h,f.f2,l)}}(d))}};
g.k.lB=function(a,b){if(b){var c=this,d={},e;for(e in b)d={gY:void 0,n0:void 0},b.hasOwnProperty(e)&&(d.n0=a.prototype[e],d.gY=b[e],a.prototype[e]=function(f){return function(){var h=g.Ea.apply(0,arguments),l=this,m=(0,g.hu)(),n=f.n0.apply(l,h);return dP(c,n,null,m,function(p){return f.gY.apply(l,[p].concat(h))})}}(d))}};
g.k.YC=function(){return new $Ia};
g.k.HA=function(a,b,c){c=c===void 0?1:c;b instanceof $Ia&&(bJa(this,a,(0,g.hu)()-b.startTimeMs,c),b.j=!0)};
g.k.Iv=function(a,b){var c=(0,g.hu)();b=b();return dP(this,b,a,c)};
g.k.MY=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(c.oo===0)c=null;else{for(var d=Math.ceil(c.oo).toFixed(0)+"."+c.B.toFixed(0),e=0;e<RO.length;++e)if(c.j[e]>0)d+="."+RO[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new ZIa;return a};
g.k.toString=function(){return""};g.k=eJa.prototype;g.k.isActive=function(){return!1};
g.k.oL=function(){};
g.k.lB=function(){};
g.k.YC=function(){};
g.k.HA=function(){};
g.k.Iv=function(a,b){return b()};
g.k.MY=function(){return{}};
g.k.toString=function(){return""};var r2,feb,geb,heb,ieb,jeb,s2,oY,OT,C7a,hP;r2=new eJa;feb=!!+Ar("html5_enable_profiler");geb=!!+Ar("html5_onesie_enable_profiler");heb=!!+Ar("html5_offline_encryption_enable_profiler");ieb=!!+Ar("html5_performance_impact_profiling_timer_ms");jeb=!!+Ar("html5_drm_enable_profiler");s2=feb||geb||heb||ieb||jeb?new aJa:r2;g.p_=feb?s2:r2;oY=geb?s2:r2;OT=heb?s2:r2;C7a=ieb?s2:r2;hP=jeb?s2:r2;var gP;g.z(eP,g.O);
eP.prototype.initialize=function(a,b){for(var c=this,d=g.w(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.w(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.qe)for(var h=g.w(Object.keys(f.qe)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=QO[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.w(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new GO(l,n,f.qe[l],this.Ba.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}xs()&&(this.C["com.youtube.fairplay"]=new GO("fairplay","com.youtube.fairplay","",this.Ba.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=YIa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
eP.prototype.L=function(a){return this.Ba.experiments.bb(a)};var MZa={"":"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"};lJa.prototype.L=function(a){return this.experiments.bb(a)};var RJa={RED:"red",cna:"white"};mJa.prototype.bb=function(a){a=this.flags[a];JSON.stringify(a);return a==="true"};var pJa=Promise.resolve(),tJa=window.queueMicrotask?window.queueMicrotask.bind(window):qJa;lP.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;Ku?a=a||keb[b]:PP===2.2?a=a||leb[b]:vs()&&(a=a||meb[b]);return!!a};
lP.prototype.isTypeSupported=function(a){return this.W?window.cast.receiver.platform.canDisplayType(a):gG(a)};
var leb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},meb={"application/x-mpegURL":"maybe"},keb={"application/x-mpegURL":"maybe"};g.z(pP,g.Qx);pP.prototype.add=function(a,b){if(!this.items[a]&&(b.MJ||b.iP||b.CN)){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)}};
pP.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
pP.prototype.get=function(a){return this.items[a]||null};
pP.prototype.isEmpty=function(){return g.Sg(this.items)};g.z(qP,g.eC);qP.prototype.j=function(a,b){return g.eC.prototype.j.call(this,a,b)};
qP.prototype.B=function(a,b,c){var d=this;return g.J(function(e){return e.j==1?g.G(e,g.eC.prototype.B.call(d,a,b,c),2):e.return(e.B)})};
g.z(rP,g.fC);rP.prototype.encrypt=function(a,b){return g.fC.prototype.encrypt.call(this,a,b)};var tP;uP.prototype.add=function(a){if(this.pos+20>this.data.length){var b=new Uint8Array(this.data.length*2);b.set(this.data);this.data=b}for(;a>31;)this.data[this.pos++]=tP[(a&31)+32],a>>=5;this.data[this.pos++]=tP[a|0]};
uP.prototype.Fi=function(){return g.tB(this.data.subarray(0,this.pos))};
uP.prototype.reset=function(){this.pos=0};vP.prototype.Cl=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
vP.prototype.Qg=function(){return this.j/(1-Math.pow(this.alpha,this.B))};wP.prototype.Cl=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.Sm=!0};
wP.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.Sm&&(g.hc(this.G,function(c,d){return b.values[c]-b.values[d]}),this.Sm=!1);
return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0};
wP.prototype.Qg=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.z(xP,g.O);xP.prototype.Ta=function(){var a;(a=this.Ka)==null||a.start();if(GP(this)&&this.policy.W){var b;(b=this.bd)==null||b.VG()}};IJa.prototype.L=function(a){return this.experiments.bb(a)};g.z(KJa,g.O);var QJa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),WJa={Qga:"caoe",Rga:"capsv",fha:"cbrand",gha:"cbr",iha:"cbrver",uha:"cchip",Bha:"ccappver",Cha:"ccrv",wia:"cfrmver",dja:"c",gja:"cver",fja:"ctheme",eja:"cplayer",fka:"cmodel",rka:"cnetwork",yka:"cos",zka:"cosver",Gka:"cplatform",gla:"crqyear"};g.z(ZP,g.O);g.k=ZP.prototype;g.k.L=function(a){return this.experiments.bb(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.aQ(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.SP(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),Ku&&(a=ana())&&(b.ebc=a));return g.gj(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.aQ(this)+"/embed/"+b;d&&(b=g.gj(b,{list:d}));d=c.width;c=c.height;b=ng(b);a=ng(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.fG&&!Ku&&ts()>=74||g.OO&&g.oc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Ta||g.$t?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Vb=function(){return this.Uf};
g.k.zv=function(){this.L("html5_enable_lawnmower_messaging")};
var $Ja=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],VJa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],YJa=[19];var t2={},cKa=(t2["140"]={numChannels:2},t2["141"]={numChannels:2},t2["251"]={audioSampleRate:48E3,numChannels:2},t2["380"]={numChannels:6},t2["328"]={numChannels:6},t2),u2={},aKa=(u2["1"]='video/mp4; codecs="av01.0.08M.08"',u2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',u2["9"]='video/webm; codecs="vp9"',u2["("]='video/webm; codecs="vp9"',u2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',u2.h='video/mp4; codecs="avc1.64001e"',u2.H='video/mp4; codecs="avc1.64001e"',u2.o=
'audio/webm; codecs="opus"',u2.a='audio/mp4; codecs="mp4a.40.2"',u2.ah='audio/mp4; codecs="mp4a.40.2"',u2.mac3='audio/mp4; codecs="ac-3"; channels=6',u2.meac3='audio/mp4; codecs="ec-3"; channels=6',u2),v2={},bKa=(v2["337"]={width:3840,height:2160,bitrate:3E7,fps:30},v2["336"]={width:2560,height:1440,bitrate:15E6,fps:30},v2["335"]={width:1920,height:1080,bitrate:75E5,fps:30},v2["702"]={width:7680,height:4320,bitrate:4E7,fps:60},v2["701"]={width:3840,height:2160,bitrate:2E7,fps:60},v2["700"]={width:2560,
height:1440,bitrate:1E7,fps:60},v2["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},v2["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},v2["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},v2["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},v2["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},v2["360"]={width:1920,height:1080,bitrate:5331E3,
fps:30,cryptoblockformat:"subsample"},v2["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},v2["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},v2["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},v2["315"]={width:3840,height:2160,bitrate:2E7,fps:60},v2["308"]={width:2560,height:1440,bitrate:1E7,fps:60},v2["303"]={width:1920,height:1080,bitrate:5E6,fps:60},v2["302"]={width:1280,height:720,bitrate:25E5,
fps:60},v2["299"]={width:1920,height:1080,bitrate:75E5,fps:60},v2["298"]={width:1280,height:720,bitrate:35E5,fps:60},v2["571"]={width:7680,height:4320,bitrate:3E7,fps:60},v2["401"]={width:3840,height:2160,bitrate:15E6,fps:60},v2["400"]={width:2560,height:1440,bitrate:75E5,fps:60},v2["399"]={width:1920,height:1080,bitrate:2E6,fps:60},v2["398"]={width:1280,height:720,bitrate:1E6,fps:60},v2["397"]={width:854,height:480,bitrate:4E5,fps:30},v2["396"]={width:640,height:360,bitrate:25E4,fps:30},v2["787"]=
{width:1080,height:608,bitrate:2E5,fps:30},v2["788"]={width:1080,height:608,bitrate:4E5,fps:30},v2["313"]={width:3840,height:2160,bitrate:8E6,fps:30},v2["271"]={width:2560,height:1440,bitrate:4E6,fps:30},v2["248"]={width:1920,height:1080,bitrate:2E6,fps:30},v2["247"]={width:1280,height:720,bitrate:15E5,fps:30},v2["244"]={width:854,height:480,bitrate:52E4,fps:30},v2["243"]={width:640,height:360,bitrate:28E4,fps:30},v2["137"]={width:1920,height:1080,bitrate:4E6,fps:30},v2["136"]={width:1280,height:720,
bitrate:3E6,fps:30},v2["135"]={width:854,height:480,bitrate:1E6,fps:30},v2["385"]={width:1920,height:1080,bitrate:6503313,fps:60},v2["376"]={width:1280,height:720,bitrate:5706960,fps:60},v2["384"]={width:1280,height:720,bitrate:3660979,fps:60},v2["225"]={width:1280,height:720,bitrate:5805E3,fps:30},v2["224"]={width:1280,height:720,bitrate:453E4,fps:30},v2["145"]={width:1280,height:720,bitrate:2682052,fps:30},v2);g.k=qQ.prototype;g.k.getInfo=function(){return this.j};
g.k.UD=function(){return null};
g.k.WY=function(){var a=this.UD();return a?(a=g.Jr(a.resource),Number(a.expire)):NaN};
g.k.hU=function(){};
g.k.getHeight=function(){return this.j.video.height};eKa.prototype.build=function(){hKa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.w(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.Yb){if(e.Yb.getIsDefault()){c=e.Yb.getId();break a}c||(c=e.Yb.getId())}}d=g.w(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.Yb||e.Yb.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.w(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.w(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.Yb){p=f.Yb;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=sQ(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(gKa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.w(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=neb,d=(h=d.Yb)?'#EXT-X-MEDIA:URI="'+sQ(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?neb:void 0;d=g.w(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="')+(gKa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+=
",FRAME-RATE="+h.fps),h.lD&&(l+=",VIDEO-RANGE="+h.lD),a.push(l),a.push(sQ(this,e.url,"")));return a.join("\n")};
var neb="text";g.z(tQ,qQ);tQ.prototype.WY=function(){return this.expiration};
tQ.prototype.UD=function(){if(!this.resource||this.resource.Ia()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new SG(a)}return this.resource};g.z(uQ,qQ);uQ.prototype.UD=function(){return new SG(this.B.xe())};
uQ.prototype.hU=function(){this.B=DM(this.B)};g.z(vQ,qQ);vQ.prototype.UD=function(){return new SG(this.B)};var w2={},tKa=(w2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",w2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",w2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",w2);g.k=g.wQ.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.xe=function(){return this.url};
g.k.getXtags=function(){return this.xtags};
g.k.toString=function(){return this.languageCode+": "+g.xQ(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.ye=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var yKa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},zKa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},AKa=/^(\d*)_((\d*)_?(\d*))$/;var CKa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},DKa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var x2={},oLa=(x2.ALWAYS=1,x2.BY_REQUEST=3,x2.UNKNOWN=void 0,x2),y2={},uLa=(y2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",y2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",y2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",y2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",y2);var Lua;
Lua=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{Qma(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 Xua(a,b)}});
g.uR=new hB;EQ.prototype.toString=function(){return this.type+this.id};g.GQ.prototype.nh=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 bQ(this.Ba,this.j,a)};
g.GQ.prototype.Pl=function(){return this.Ba.getVideoUrl(this.videoId,this.playlistId)};g.HQ.prototype.nh=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:bQ(this.Ba,this.videoId,a)};
g.HQ.prototype.Pl=function(a){return this.watchUrl||this.Ba.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var KQ=void 0;Kua("LMS",function(){return g.J(function(a){return a.return(g.LQ())})});var PQ;PQ=0;g.ZKa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Kua("LMDB",function(){var a,b;return g.J(function(c){if(c.j==1)return g.G(c,g.Pu(),2);if(c.j!=3){a=c.B;if(!a)throw g.bu("edd");return g.G(c,g.OQ(a),3)}b=c.B;return c.return(g.lu(b,["index","media","captions"],{mode:"readonly",Nb:!0},function(d){var e={};d=[g.qu(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.ru(f)}),
Poa(d.objectStore("media")),Poa(d.objectStore("captions"))];return g.du.all(d).then(function(f){var h=g.w(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:$Ka(f||[]),captions:h}})}))})});g.z(RQ,g.Qx);RQ.prototype.xa=function(){this.j&&(this.j=this.j.onload=null);g.Qx.prototype.xa.call(this)};g.k=g.VQ.prototype;g.k.getHeight=function(){return this.height};
g.k.cZ=ba(2);g.k.CK=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.xe=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.gj(b,{sigh:this.signature}));return IE(b)};
g.k.nJ=function(a){var b=this.CK()-1;return g.Bg(this.j===0?Math.round(a*this.frameCount/this.videoLength):Math.round(a*1E3/this.j),0,b)};
g.k.Vz=function(){return this.frameCount-1};
g.k.qO=function(){return this.frameCount?0:-1};
g.k.zW=function(){};g.z(WQ,RQ);WQ.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};
WQ.prototype.G=function(a,b,c,d){return new g.VQ(a,b,c,d)};g.z(XQ,g.VQ);g.k=XQ.prototype;g.k.CK=function(){return this.B.TA()};
g.k.nJ=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.ud();a=c.Pi(a);return a>d-b?-1:a};
g.k.Vz=function(){return this.B.ud()};
g.k.qO=function(){return this.B.Eo()};
g.k.zW=function(a){this.B=a};g.z(YQ,WQ);YQ.prototype.B=function(a,b){return WQ.prototype.B.call(this,"$N|"+a,b)};
YQ.prototype.G=function(a,b,c){return new XQ(a,b,c,this.isLive)};var yLa=[],pR=new Set;g.z(g.$Q,g.Qx);g.k=g.$Q.prototype;g.k.U=function(){return this.Ba};
g.k.L=function(a){return this.Ba.L(a)};
g.k.Ph=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.mf)==null||!a.kb)};
g.k.getUserAudio51Preference=function(){var a=1;gQ(this.Ba)&&this.L("html5_ytv_surround_toggle_default_off")?a=0:g.dQ(this.Ba)&&this.isLivePlayback&&this.Qi()&&(a=0);var b;return(b=g.mt("yt-player-audio51"))!=null?b:a};
g.k.N0=function(){this.Ia()||(this.j.B||this.j.unsubscribe("refresh",this.N0,this),this.bY(-1))};
g.k.bY=function(a){if(!this.isLivePlayback||!this.G||this.G.flavor!="fairplay"){var b=IIa(this.j,this.WI);if(b.length>0){for(var c=g.w(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Vc());this.publish("cuepointupdated",b,a);this.WI+=b.length;if(nR(this)&&this.Ba.Vb())for(b=g.w(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.ZD.start=this.Zh,
this.ZD.end=c+3)}}};
g.k.Qi=function(){return this.qe?!0:!!this.j&&rM(this.j)};
g.k.CJ=function(a){var b=this;if(this.Ia())return js();this.kd=this.Ya=this.C=null;jR(this,"html5_high_res_logging_always")&&(this.Ba.Uf=!0);return QLa(this,a).then(void 0,function(){return RLa(b,a)}).then(void 0,function(){return SLa(b)}).then(void 0,function(){return ULa(b)})};
g.k.Fk=function(){if(this.cotn)return null;var a=g.fE(this.Ba)||this.L("web_l3_storyboard");if(!this.Yk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Yk=new WQ(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=lea(this.j.j).index)&&(this.Yk=new YQ(b.spec,this.j.isLive,c,a))}else this.tC?this.Yk=new WQ(this.tC,this.lengthSeconds,void 0,!1,a):this.Xw&&this.j&&
(b=lea(this.j.j).index)&&(this.Yk=new YQ(this.Xw,this.j.isLive,b,a));return this.Yk};
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.tC||this.Xw};
g.k.Vd=function(){return this.j&&!isNaN(this.j.Vd())?this.j.Vd():nR(this)?0:this.lengthSeconds};
g.k.Vc=function(){return this.j&&!isNaN(this.j.Vc())?this.j.Vc():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.Pi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null};
g.k.ye=function(){return!this.Ia()&&!(!this.videoId&&!this.Cm)};
g.k.Qx=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 aR(this)&&!this.Ej&&!this.Lp};
g.k.nh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Ba.qa||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:bQ(this.Ba,this.videoId,a)};
g.k.Wb=function(){return this.isLivePlayback||this.Wd||this.Ja||!(!this.liveUtcStartSeconds||!this.vl)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Wd&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.Ww||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!yG(this.D))return g.Ub(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.il;
if(this.Ww){if(!this.xq)for(var b=g.w(this.Ww),c=b.next();!c.done;c=b.next())if(c=c.value,c.Yb.getIsDefault()){this.xq=c;break}return this.xq||this.il}return this.il};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Oa};
g.k.getHeartbeatResponse=function(){return this.FF};
g.k.Pl=function(){return this.watchUrl?this.watchUrl:this.Ba.getVideoUrl(this.videoId)};
g.k.zR=function(){return!!this.j&&(uFa(this.j)||vFa(this.j)||wFa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.oi};
g.k.Oj=function(){return(this.eventLabel||this.Ba.Ja)==="shortspage"};
g.k.isAd=function(){return this.FI||!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.Bg=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.uU=function(){return pLa(this)?this.A4:this.Br||this.Zi};
g.k.kI=function(){return this.Sj||this.Zi};
g.k.vJ=function(){return jR(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.Jv=function(a,b,c){this.publish("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.getGetAdBreakContext=function(){var a={isSabr:gR(this)},b,c=(b=this.getHeartbeatResponse())==null?void 0:b.adBreakHeartbeatParams;c&&(a.adBreakHeartbeatParams=c);return a};
g.k.fd=function(a,b){if(!g.LP(this.Ba))return!1;var c;if(((c=this.Ba.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||(this.Ba.Fa||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;var d,e;return!!(((d=this.embeddedPlayerConfig)==null?0:(e=d.embeddedPlayerFlags)==null?0:e.isShortsExperienceEligible)&&a.width<=a.height)};
g.k.xa=function(){g.Qx.prototype.xa.call(this);this.xw=null;delete this.I4;delete this.accountLinkingConfig;delete this.j;this.C=this.FF=this.playerResponse=this.Oa=null;this.Uf=this.adaptiveFormats="";delete this.botguardData;this.Ee=this.suggestions=this.Iw=null};var CMa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},DMa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},BMa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},yMa={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"},AMa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},zMa={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.z(aS,g.O);g.k=aS.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.N[a],e=this.state.Z[a],f=d;if(e)if(c&&EE(c,Fdb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.w(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.qx(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.Mp&&!this.state.W.has(a)&&(this.state.W.add(a),g.Qt("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Fa,errorCode:c}))};
g.k.publish=function(a){var b=g.Ea.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.B.publish.apply(this.state.B,[a].concat(g.x(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))};
g.k.eb=function(a){var b=g.Ea.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)))};
g.k.Cd=function(a){var b=g.Ea.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)))};
g.k.tf=function(a){var b=g.Ea.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.x(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.x(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.x(b)));this.state.G.publish.apply(this.state.G,[a].concat(g.x(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.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.state.element=null}g.O.prototype.xa.call(this)};g.z(fS,g.eq);fS.prototype.publish=function(a){var b=g.Ea.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.eq.prototype.publish.call.apply(g.eq.prototype.publish,[this,a].concat(g.x(b.shift())))}finally{this.G.delete(a)}return c};g.z(JMa,g.O);JMa.prototype.xa=function(){this.G.dispose();this.D.dispose();this.B.dispose();this.C.dispose();this.W=this.j=this.Z=this.N=this.K=void 0};var LMa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.z(hS,aS);g.k=hS.prototype;g.k.getApiInterface=function(){return Array.from(this.state.K)};
g.k.O7=function(a,b){this.state.G.subscribe(a,b)};
g.k.gea=function(a,b){this.state.G.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return X7a(this.app,a)};
g.k.I9=function(){return X7a(this.app)};
g.k.Fea=function(a,b,c){QMa(this)&&(o0(this.app,!0,1),q0(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?T7a(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)};
g.k.w9=function(){return this.app.getCurrentTime(1)};
g.k.D9=function(){var a=this.app.df(1);return isNaN(a)?this.getCurrentTime(1):a};
g.k.A9=function(){return this.app.getDuration(1)};
g.k.nN=function(a,b){a=g.Bg(Math.floor(a),0,100);isFinite(a)&&g0(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.Vea=function(a){this.nN(a,!1)};
g.k.TL=function(a){g0(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.Faa=function(){this.TL(!1)};
g.k.HN=function(a){jS(this.app)&&!this.L("embeds_enable_emc3ds_muted_autoplay")||g0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.Ifa=function(){jS(this.app)&&this.L("embeds_enable_emc3ds_muted_autoplay")||this.HN(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Jf&&(a.pfp={enableIma:g.YR(this.app.getVideoData())&&this.app.xd().allowImaMonetization,autoplay:SR(this.app.xd()),mutedAutoplay:this.app.xd().mutedAutoplay});return a};
g.k.uT=function(){var a=this.app.getPresentingPlayerType();if(this.L("html5_enable_ssap_autoplay_debug_logging")){var b;(b=g.kS(this.app))==null||b.ma("ssap",{pbintl:a})}if(a===2&&!this.app.If()&&(b=sY(this.app.yb()),!O$a(b)||P$a(b)))return;a===3?tS(this.app.yb()).dH("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.oR(this.app.xd())&&a===2||this.app.playVideo(a)};
g.k.Fda=function(){o0(this.app,!0,1);this.uT()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.If()||O$a(sY(this.app.yb())))b===3?tS(this.app.yb()).dH("control_pause"):this.app.pauseVideo(b,a)};
g.k.jfa=function(){var a=this.app,b=!1;a.Y.qc&&(a.Sa.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.Np?kdb:jdb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.kS(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.Pea=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.kS(this.app,a))?(a=g.Ql(a.wu(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.s9=function(){return this.getAvailableQualityLevels(1)};
g.k.N9=function(){return this.sZ()};
g.k.O9=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.sZ=function(){return this.getVideoLoadedFraction()};
g.k.R9=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=gS(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.aaa=function(a,b,c){a=this.loadVideoById(a,b,c,1);o0(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=gS(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.q8=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c,d){a=KMa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.daa=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);o0(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=KMa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.t8=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.T9=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.xd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.y9=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.xd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.xd().videoId,this.app.ob().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.M7=function(a,b,c){return c8a(this.app,a,b,c)};
g.k.removeCueRange=function(a){return e8a(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.Y$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);o0(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.Gaa=function(){this.nextVideo();o0(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.Rda=function(){this.previousVideo();o0(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.Eda=function(a){this.playVideoAt(a);o0(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.K9=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=g.eY(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.L_=function(a){a==="captions"&&(a=g.pY(this.app.yb()))&&!a.loaded&&a.load()};
g.k.T3=function(a){a==="captions"&&(a=g.pY(this.app.yb()))&&a.loaded&&a.Mfa()};
g.k.nU=function(a,b,c){if(!b)return null;var d=this.app.yb();return a==="captions"?(a=g.pY(d))&&a.gi(b,c):null};
g.k.E9=function(a,b,c){var d=g.kS(this.app,1);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.nU(a,b,c)};
g.k.FQ=function(a){var b=this.app.yb();if(a==="captions"){var c;return((c=g.pY(b))==null?void 0:c.getOptions())||null}return a?null:(a=[],g.pY(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Wi.volume};
g.k.isMuted=function(){return this.app.Wi.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.YR(this.app.getVideoData())&&this.app.xd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Kfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.aj(this.app.U().Ca)||""},a.embeddedPlayerMode=c.Fa,g.Qt("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=gS(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.Nda=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.Ws();this.app.jm(a?2:0)};
g.k.Mea=function(a){var b,c;((b=this.app.U().getWebPlayerContextConfig())==null?0:(c=b.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};
g.k.wakeUpControls=function(){var a=g.iS(this);a&&a.Zv()};var SMa="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.z(lS,hS);g.k=lS.prototype;g.k.P7=function(a,b){this.state.D.subscribe(a,b)};
g.k.hea=function(a,b){this.state.D.unsubscribe(a,b)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
g.k.s8=function(a,b){b=b===void 0?1:b;this.cueVideoByPlayerVars(VMa(this,a),b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
g.k.caa=function(a,b,c,d){c=c===void 0?1:c;this.loadVideoByPlayerVars(VMa(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.Pda=function(a,b,c,d){b=b===void 0?1:b;this.preloadVideoByPlayerVars(VMa(this,a),b,c,d)};
g.k.N_=function(a,b,c){this.loadVideoById(a,b,c,1)};
g.k.O_=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
g.k.J9=function(a){return this.getPlayerState(a)};
g.k.rZ=function(a){a=a===void 0?1:a;var b=NMa(this,a);if(a=g.kS(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.Ja;b.isManifestless=nR(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;a.liveUtcStartSeconds!=null&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Qi()&&(b.isEncrypted=!0);if(a.C)for(var c=g.w(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){QMa(this)&&q0(this.app,this.app.getCurrentTime()+a,b,c,e,d)};
g.k.Dea=function(a,b,c){this.seekBy(a,b,c,void 0,1)};
g.k.seekTo=function(a,b,c,d,e){QMa(this)&&q0(this.app,a,b,c,d,e)};
g.k.Gea=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.x9=function(a,b){return this.getCurrentTime(a===void 0?1:a,b)};
g.k.LK=function(){var a=this.app.getPresentingPlayerType(!0);a===2&&this.app.If()&&(a=1);return a};
g.k.getDuration=function(a,b){if(this.LK()===3){var c;return((c=tS(this.app.yb()).getProgressState())==null?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(a)};
g.k.VY=function(a,b){return this.getDuration(a===void 0?1:a,b)};
g.k.Q9=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if(a==="annotations_module"){var b=g.vY(this.app.yb());b&&!b.loaded&&b.load()}this.L_(a)};
g.k.unloadModule=function(a){if(a==="annotations_module"){var b=g.vY(this.app.yb());b&&b.loaded&&b.unload()}this.T3(a)};
g.k.getOption=function(a,b,c,d){return(d=g.kS(this.app,d))&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
g.k.iZ=function(a,b,c){return this.getOption(a,b,c,1)};
g.k.getOptions=function(a){var b=this.app.yb();switch(a){case "ad":var c,d;return((c=sY(b))==null?void 0:(d=c.getOptions)==null?void 0:d.call(c))||null;case "remote":var e,f;return((e=tS(b))==null?void 0:(f=e.getOptions)==null?void 0:f.call(e))||null;case "annotations_module":var h,l;return((h=g.vY(b))==null?void 0:(l=h.getOptions)==null?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return((m=i1a(b))==null?void 0:(n=m.getOptions)==null?void 0:n.call(m))||null;case "unplugged":var p,q;return((p=
g.tY(b))==null?void 0:(q=p.getOptions)==null?void 0:q.call(p))||null;case "kids":var r,t;return((r=g1a(b))==null?void 0:(t=r.getOptions)==null?void 0:t.call(r))||null}if(!a){a=this.FQ();if(!a)return a;sY(b)&&a.push("ad");tS(b)&&a.push("remote");g.vY(b)&&a.push("annotations_module");i1a(b)&&a.push("creatorendscreen");g.tY(b)&&a.push("unplugged");g1a(b)&&a.push("kids");return a}return this.FQ(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.yb();switch(a){case "ad":return(a=sY(d))&&a.gi&&a.gi(b,c);case "kids":return(a=g1a(d))&&a.gi(b,c);case "remote":return(a=tS(d))&&a.gi(b,c);case "unplugged":return(a=g.tY(d))&&a.gi(b,c);case "annotations_module":return(a=g.vY(d))&&a.gi(b,c);case "creatorendscreen":return(a=i1a(d))&&a.gi(b,c)}return this.nU(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return c8a(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.iS(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.iS(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.iS(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.iS(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.qx(c)}
var b=this.app.U();if(b.externalFullscreen){if(!g.hQ(b))return this.isFullscreen()?Ys(window.document.documentElement):Vs(window.document.documentElement).catch(a)}else if(g.Ws()||b.Z)return this.isFullscreen()?Ys(Xs()):b.controlsType!=="3"&&g.Ws()?Vs(this.app.ob().element).catch(a):(b=this.app.Ge().Ib())?Vs(b).catch(a):Promise.reject(Error("Media element missing"));this.tf("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.Bq=function(){return this.app.Bq()};
g.k.cancelPlayback=function(){var a=sY(this.app.yb());a&&a.created&&a.destroy();(a=g.kS(this.app))&&a.stopVideo();(a=this.app.yb().Ke.get("endscreen"))&&a.J$()&&g.sS(this.app.Sa,!0)};
g.k.getProgressState=function(a){if(this.LK()===3)return tS(this.app.yb()).getProgressState();var b=this.app.getVideoData(),c=g.kS(this.app,a)||g.kS(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=WMa(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=WMa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.df(d),m=this.app.isAtLiveHead(d),n=this.app.QA();var p=this.app;var q=g.kS(p,d);q?(q=Z_(p,q),p=i0(p,g.oR(q.videoData)?q.videoData.Vc():q.Vc(),q)):p=0;q=T7a(this.app,d);c=c.zc();var r=this.app.getVideoData().qD;!r||isNaN(r)?d=0:(d=WMa(this,r,d),r=g.UD(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Ph(),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.S9=function(){return g.kS(this.app,1).pc(!0)};
g.k.toggleSubtitles=function(){var a=g.pY(this.app.yb());a&&a.zfa()};
g.k.getPlayerSize=function(){var a=this.app.ob().getPlayerSize();return{width:a.width,height:a.height}};
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 RMa="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(" "),
UMa="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 z2={},XMa=(z2["api.invalidparam"]=2,z2.auth=150,z2["drm.auth"]=150,z2["heartbeat.net"]=150,z2["heartbeat.servererror"]=150,z2["heartbeat.stop"]=150,z2["html5.unsupportedads"]=5,z2["fmt.noneavailable"]=5,z2["fmt.decode"]=5,z2["fmt.unplayable"]=5,z2["html5.missingapi"]=5,z2["html5.unsupportedlive"]=5,z2["drm.unavailable"]=5,z2["mrm.blocked"]=151,z2["embedder.identity.denied"]=152,z2);g.z(g.mS,lS);g.k=g.mS.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.N[a]?!0:!!(this.state.Z[a]&&b&&EE(b,Fdb))};
g.k.getBandwidthEstimate=function(){return FP(this.app.U().schedule)};
g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.kS(this.app);b&&(a={gpu:(0,g.nW)(),d:a},b.handleError(new aG("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.j)};
g.k.getInternalApiInterface=function(){return g.Og(this.state.j)};
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.H9=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.U(a,1),isCued:a.isCued(),isDomPaused:g.U(a,1024),isEnded:g.U(a,2),isError:g.U(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.U(a,16),isUiSeeking:g.U(a,32),isUnstarted:g.U(a,64)}};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Lh().D.j=(0,g.hu)()};
g.k.v9=function(a,b,c){return this.getCurrentTime(a===void 0?1:a,b,c)};
g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.kS(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.zc()&&(h=f.getStreamTimeOffset());q0(e,a-h,b,c,1,d)};
g.k.getStreamTimeOffset=function(){var a=g.kS(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.kS(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&q0(this.app,Infinity,a,b,1)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.kS(this.app,1);c&&c.zC(a,b)};
g.k.Eea=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)};
g.k.Cea=function(a,b,c,d){this.seekBy(a,b,c,d,1)};
g.k.setVolume=function(a,b){this.nN(a,b===void 0?!0:b)};
g.k.mute=function(a){this.TL(a===void 0?!0:a)};
g.k.unMute=function(a){this.HN(a===void 0?!0:a)};
g.k.syncVolume=function(){var a=t7a(this.app);g0(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.kS(this.app,1);return a?g.Ql(a.wu(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.eb("SUBSCRIBE",this.app.xd().ym)};
g.k.channelUnsubscribed=function(){this.eb("UNSUBSCRIBE",this.app.xd().ym)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.kS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.kS(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.kS(this.app,1);a&&a.Gg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.U().Qj=a};
g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=Js("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,UJa)};
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 d8a(this.app,a,b,c,d,e)};
g.k.P9=function(a){a=a===void 0?1:a;var b=this.rZ(a);if(a=g.kS(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Fa;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?qg(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)?
qg(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.i7;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=XLa(a);b.paidContentOverlayDurationMs=YLa(a);a.j&&oM(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.kS(this.app,1))?a.getPlayerState():null)?a.Pg:null;return!!(a&&b&&g.U(a,128)&&YMa(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.Mi=function(){return g.iS(this)};
g.k.sendAbandonmentPing=function(){var a=g.kS(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.xd(),b==null?0:qR(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.fE=b.autonavState);else if(b.fE!==void 0)a=b.fE,b.fE=void 0;else return}k8a(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.kS(this.app,1))==null||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.kS(this.app,1);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.kS(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.kS(this.app,1);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.kS(this.app,1);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.kS(this.app,1);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){ew()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.U().Cm!==a&&(this.app.U().Cm=a,(a=g.kS(this.app,1))&&fX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.pY(this.app.yb()).b4(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.pY(this.app.yb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.pY(this.app.yb());a&&a.D3()};
g.k.isSubtitlesOn=function(){var a=g.pY(this.app.yb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(a){return(a=g.kS(this.app,a))?a.getVideoData().getPlayerResponse():null};
g.k.G9=function(){return this.getPlayerResponse(1)};
g.k.getEmbeddedPlayerResponse=function(){var a=g.kS(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(a){return(a=g.kS(this.app,a))?a.getVideoData().getWatchNextResponse():null};
g.k.U9=function(){return this.getWatchNextResponse(1)};
g.k.getHeartbeatResponse=function(a){return(a=g.kS(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
g.k.B9=function(){return this.getHeartbeatResponse(1)};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Fk();if(!c)return null;b=c.levels[b];return b?(a=g.UQ(b,a))?{column:a.column,columns:a.columns,height:a.Dy,row:a.row,rows:a.rows,url:a.url,width:a.SG}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Fk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.zc();return b.nJ(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Fk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Vz(),minFrameIndex:b.qO()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Fk();return a?a.levels.length:0};
g.k.o9=function(){return this.getAudioTrack(1)};
g.k.getAudioTrack=function(a){return(a=g.kS(this.app,a))?a.getAudioTrack():this.app.getVideoData().il};
g.k.setAudioTrack=function(a,b,c){this.LK()===3&&tS(this.app.yb()).dH("control_set_audio_track",a);if(c=g.kS(this.app,c))if(c.Ia()||g.U(c.playerState,128))a=!1;else{var d,e=!((d=c.videoData.C)==null||!d.j);d=e&&b?c.getCurrentTime()-c.zc():NaN;if(c.Y.experiments.bb("html5_record_audio_format_intent")){var f=c.Sb();if(f.qoe){f=f.qoe;var h=[a.Yb.id,isNaN(d)?"m":"t"];g.jW(f,g.QK(f.provider),"afi",h)}}if(e)b&&(e=xYa(c.Oc),c.ma("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})),c.ra.setAudioTrack(a,d,b);
else if(tZa(c)){b:{b=c.mediaElement.audioTracks();for(e=0;e<b.length;++e)if(d=b[e],d.label===a.Yb.getName()){if(d.enabled){b=!1;break b}b=d.enabled=!0;break b}b=void 0}b&&c.ma("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!yG(b.D)||a==b.xq||!b.kd||b.kd.length<=0)b=!1;else{e=g.w(b.kd);for(d=e.next();!d.done;d=e.next()){d=d.value;if(!(d instanceof tQ)){b=!1;break b}f=a.Yb.getId();d.B&&(fKa(d.B,f),d.resource=null)}b.xq=a;b=!0}b&&YW(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.ma("hlsaudio",
{id:a.id}))}a=!0}else a=!1;return a};
g.k.Kea=function(a,b){return this.setAudioTrack(a,b,1)};
g.k.r9=function(){return this.getAvailableAudioTracks(1)};
g.k.getAvailableAudioTracks=function(a){return g.kS(this.app,a).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.kS(this.app,1);return a&&a.getVideoData().B?kM(a.Of?mWa(a.Sk,a.Of,a.Hx()):ZQ):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.kS(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.pY(this.app.yb());return a?a.M9():null};
g.k.resetSubtitlesUserSettings=function(){g.pY(this.app.yb()).qea()};
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.setAppFullscreen=function(a){this.app.jm(a?4:0)};
g.k.ej=function(){return this.app.ej()};
g.k.getVisibilityState=function(){return this.ej().getVisibilityState(this.zi(),this.Bq()||g.QP(this.app.U()),this.isMinimized(),this.isInline(),this.app.hj(),this.app.oB(),this.app.uB(),this.app.Ik())};
g.k.isMutedByMutedAutoplay=function(){return this.app.QB};
g.k.isMutedByEmbedsMutedAutoplay=function(){return jS(this.app)};
g.k.setInternalSize=function(a,b){this.app.ob().setInternalSize(new g.Gg(a,b))};
g.k.zc=function(){var a=g.kS(this.app);return a?a.zc():0};
g.k.isMinimized=function(){return this.app.isMinimized()};
g.k.hj=function(){return this.app.hj()};
g.k.zi=function(){var a=g.kS(this.app);return!!a&&a.zi()};
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.Lj=Is(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.eY(b).videoId||(a.index=b.index)):c0(this.app,{list:a.list,index:a.index,playlist_length:d.length});y0a(this.app.getPlaylist(),a);this.Cd("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.kS(this.app,1);c&&g.dR(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){XP(this.app.U(),a,!1)};
g.k.Jea=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.kS(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.kS(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,d){(d=g.kS(this.app,d))&&g.qZa(d,g.hM(a,b||a,!0,"m"),!0,c)};
g.k.Qea=function(a,b,c){this.setPlaybackQualityRange(a,b,c,1)};
g.k.onAdUxClicked=function(a,b){this.publish("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.uR.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Ee.includes(e)||(c.Ee.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Yb(c.Ee,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.N7=function(a,b){this.state.B.subscribe(a,b)};
g.k.fea=function(a,b){this.state.B.unsubscribe(a,b)};
g.k.r8=function(a,b){this.cueVideoByPlayerVars(a,b===void 0?1:b)};
g.k.baa=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,c===void 0?1:c,d)};
g.k.Oda=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.Oh=function(){return g.iS(this).Oh()};
g.k.Sg=function(){return g.iS(this).Sg()};
g.k.xn=function(){return g.iS(this).xn()};
g.k.We=function(){return this.Mi().We()};
g.k.Pm=function(){var a=g.Ea.apply(0,arguments),b;(b=this.We()).Pm.apply(b,g.x(a))};
g.k.ji=function(){this.We().ji()};
g.k.jR=function(){this.We().jR()};
g.k.xi=function(){this.We().hide()};
g.k.tN=function(a,b,c,d,e,f,h,l){this.We().tN(a,b,c,d,e,f,h,l)};
g.k.mI=function(a,b){this.We().mI(a,b)};
g.k.Wy=function(a,b,c,d,e){this.Mi().Wy(a,b,c,d,e)};
g.k.iI=function(a){this.We().setEnabled(a)};
g.k.eA=function(a){this.Mi().eA(a)};
g.k.tF=function(a,b){this.Mi().tF(a,b)};
g.k.DA=function(a,b){this.Mi().DA(a,b)};
g.k.Sr=function(){this.Mi().Sr()};
g.k.mU=function(a,b){this.Mi().mU(a,b)};
g.k.MC=ba(4);g.k.NC=ba(6);g.k.gt=ba(9);g.k.Zs=ba(12);g.k.PH=function(a,b){this.Mi().PH(a,b)};
g.k.Bx=function(){this.Mi().Bx()};
g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.k.Bu=function(){var a=g.kS(this.app);return a?a.Bu():""};g.z(g.qS,g.mS);g.k=g.qS.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.JF=function(){return this.app.JF()};
g.k.uu=ba(14);g.k.yb=function(){return this.app.yb()};
g.k.Hf=function(){var a=this.yb().Ke.get("endscreen");return!!a&&a.Hf()};
g.k.getRootNode=function(){return this.ob().element};
g.k.U=function(){return this.app.U()};
g.k.RA=ba(16);g.k.Xm=function(a){return this.app.Xm(a)};
g.k.dn=function(){var a;return((a=g.iS(this))==null?void 0:a.dn())||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.kS(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&a===2||g.oR(b)&&a!==1)a:{var d=this.app;k0(d,"gssvd");b=d.getVideoData();if(d.Ae){a=d.Ae;d=d.getCurrentTime();if(a.uo)var e=void 0;else{var f=void 0;a.Lb&&(f=a.C.get(a.Lb));if(!f){f=l6a(a,d*1E3);var h=(e=f)==null?void 0:e.cpn;a.Lb?h&&a.Lb!==h&&a.ea.ma("sdai",{cpcnm:h+"_"+a.Lb,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.ub&&d.xb){c=d.ub.getVideoData(a);break a}c=b}else c=b;return c};
g.k.Fk=function(a){return this.app.Fk(a)};
g.k.Ik=function(){return this.app.Ik()};
g.k.isHdr=function(){var a=g.kS(this.app);return a?a.isHdr():!1};
g.k.GR=function(){return this.app.GR()};
g.k.fd=function(){var a=g.iS(this),b=this.getVideoData();a=a?a.mL:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.fd(new g.Gg(a.width,a.height),c))};
g.k.OC=function(a){this.app.OC(a)};
g.k.Qf=function(a,b,c,d,e){this.app.Wg(a,b,c,d,e)};
g.k.jt=function(a,b){this.app.jt(a,b)};
g.k.playVideo=function(a,b){try{if(this.getPresentingPlayerType()===3){tS(this.app.yb()).dH("control_play");return}if(!a&&this.getPresentingPlayerType()===2){var c=sY(this.app.yb());if(c&&P$a(c))return}}catch(d){g.px(d)}this.app.playVideo(a,b)};
g.k.stopVideo=function(a){g.kS(this.app,a).stopVideo()};
g.k.tp=function(a){g.kS(this.app,a).tp()};
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.GH=function(a){this.app.GH(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.wu=function(){var a={},b=g.kS(this.app).wu();b=g.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.KF=function(){return g.kS(this.app).KF()};
g.k.TF=ba(20);g.k.aN=function(a){this.app.aN(a);a&&k8a(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.UF=ba(22);g.k.gp=ba(26);g.k.qp=function(a){var b=g.kS(this.app);b&&b.qp(a)};
g.k.qj=ba(30);g.k.Xk=ba(34);g.k.EB=function(a,b){this.yb().EB(a,b)};
g.k.El=function(){var a=g.vY(this.yb());return!!a&&a.El()};
g.k.Xp=function(){var a=g.vY(this.yb());return!!a&&a.Xp()};
g.k.KC=function(a,b,c){var d=g.vY(this.yb());d&&d.KC(a,b,c)};
g.k.JC=ba(35);g.k.Fp=function(){var a=g.kS(this.app);a&&a.Fp()};
g.k.jN=function(a){this.Cd("onVideoAreaChange");this.Cd(a?"onShowControls":"onHideControls")};
g.k.Io=function(a,b){var c=g.iS(this);if(c)return c.Io(a,b);a=this.app.ob().wi();return new g.Cm(0,0,a.width,a.height)};
g.k.sG=function(){var a=this.yb().Ke.get("heartbeat");return!!a&&a.sG()};
g.k.Ph=function(){var a=this.U();if(a.Oa||a.disableSeek)return!1;var b=g.kS(this.app);if(!b)return!1;var c=b.getVideoData();if(!c.ye()||g.IR(c)||this.getPresentingPlayerType()===2&&!this.app.If()||c.Bg()&&this.getPresentingPlayerType(!0)===2||b.Lo()&&this.getPresentingPlayerType()!==3)return!1;a=g.UP(a);return g.Ps(a)&&!c.Qn||jS(this.app)?!1:!0};
g.k.pG=function(){var a;return((a=g.kS(this.app))==null?void 0:a.pG)||!1};
g.k.isLifaAdPlaying=function(){var a,b=(a=this.getVideoData())==null?void 0:a.Bg();return this.getPresentingPlayerType(b)===2};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Qv=function(){var a=g.kS(this.app);a&&a.Qv()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.qf=function(a,b,c){this.app.cA(a,b,c)};
g.k.vp=function(a,b){this.app.OH(a,b)};
g.k.kf=function(a,b){U7a(this.app,a,b)};
g.k.bL=function(a){var b=g.kS(this.app);return b?b.Ih.bL(a):!1};
g.k.Ez=function(a){return this.app.Ez(a)};
g.k.Gg=function(a,b){(b=g.kS(this.app,b))&&b.Gg(a)};
g.k.Lo=function(){var a=g.kS(this.app);return a?a.Lo():!0};
g.k.Qx=function(){var a=this.getVideoData();return!!a&&(a.Qx()||!!a.hlsFormats||!!a.Bc)};
g.k.getPlaybackRate=function(){return g.kS(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.Ge=function(){return this.app.Ge()};
g.k.Lh=function(){return this.app.Lh()};
g.k.Oi=function(a){return this.app.Oi(a)};
g.k.createClientVe=function(a,b,c,d){this.U().Ya&&this.app.zs.createClientVe(a,b,c,d===void 0?!1:d)};
g.k.createServerVe=function(a,b,c){this.U().Ya&&this.app.zs.createServerVe(a,b,c===void 0?!1:c)};
g.k.setTrackingParams=function(a,b){this.U().Ya&&this.app.zs.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.U().Ya&&(this.app.zs.click(a,b),this.publish("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.U().Ya){var d=this.app.zs;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.hx(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.Lx(e,[f]):g.Mx(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.Kx(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.U().Ya?this.app.zs.hasVe(a):!1};
g.k.destroyVe=function(a){this.U().Ya&&this.app.zs.destroyVe(a)};
g.k.Qc=function(){return g.kS(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.jz=function(){this.app.jz()};
g.k.yA=function(a,b){return this.app.yA(a,b)};
g.k.lr=function(a){this.app.lr(a)};
g.k.HB=function(){this.app.HB()};
g.k.GQ=function(){return this.app.GQ()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b,c){return this.app.finishSegmentByCpn(a,b,c)};
g.k.JE=function(a,b,c,d,e,f,h){return this.app.JE(a,b,c,d,e,f,h)};
g.k.lG=function(a,b,c,d,e,f,h){return this.app.lG(a,b,c,d,e,f,h)};
g.k.qB=function(){return this.app.qB()};
g.k.Bv=function(a){this.app.Bv(a)};
g.k.nA=function(a,b){b=b===void 0?Infinity:b;this.app.nA(a===void 0?-1:a,b)};
g.k.IN=function(a){var b;(b=g.pY(this.yb()))==null||b.IN(a)};
g.k.JI=function(a,b,c){this.app.JI(a,b,c)};
g.k.Xr=function(){return this.app.Xr()};
g.k.lK=function(a,b,c){this.app.lK(a,b,c===void 0?0:c)};
g.k.vn=function(){return this.app.vn()};
g.k.If=function(){return this.app.If()};
g.k.Yu=function(a,b,c){return this.app.Yu(a,b,c)};
g.k.ma=function(a,b,c,d){c=c===void 0?!1:c;var e;(e=g.kS(this.app,d))==null||e.ma(a,b,c)};
g.k.uS=function(a,b){this.publish("aduxmouseover",a,b)};
g.k.tS=function(a,b){this.publish("aduxmouseout",a,b)};
g.k.US=function(a,b){this.publish("muteadaccepted",a,b)};
g.k.uG=function(){return this.app.ob().uG()};
g.k.PC=function(a){this.app.ob().PC(a)};
g.k.nt=function(a){return a?this.app.FU():(a=g.kS(this.app))?a.nt():!1};
g.k.oU=function(a){this.app.oU(a)};
g.k.LB=function(a){var b,c=(b=g.kS(this.app))==null?void 0:b.ra;c&&c.LB(a)};
g.k.Ft=function(){g.kS(this.app,1).Ft()};
g.k.Ho=function(){var a=g.kS(this.app);return a?a.Ho():0};
g.k.QC=function(a){var b=g.kS(this.app);b&&b.QC(a)};
g.k.mA=function(){this.app.mA()};
g.k.getGetAdBreakContext=function(){var a=g.kS(this.app,1);if(a){a=a.getVideoData();var b=a.getGetAdBreakContext();if(this.app.U().L("enable_ltc_param_fetch_from_innertube")){var c=this.app.df(1);!isNaN(c)&&a.isLivePlayback&&b!==void 0&&(b.livePlaybackPosition={utcTimeMillis:Math.floor(c*1E3).toString()})}return b}};var eNa;g.z(dNa,qt);dNa.prototype.IF=function(a,b){a=qt.prototype.IF.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.z(g.YS,g.Yx);g.k=g.YS.prototype;g.k.show=function(){var a=this.Hk();g.Yx.prototype.show.call(this);this.Ca&&(this.N.T(window,"blur",this.Mb),this.N.T(document,"click",this.o6));a||this.publish("show",!0)};
g.k.hide=function(){var a=this.Hk();g.Yx.prototype.hide.call(this);fNa(this);a&&this.publish("show",!1)};
g.k.rd=function(a,b){this.B=a;this.oa.show();b?(this.W||(this.W=this.N.T(this.J,"appresize",this.CX)),this.CX()):this.W&&(this.N.Mc(this.W),this.W=void 0)};
g.k.OY=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.CX=function(){var a=g.iS(this.J);this.B&&a.Wy(this.element,this.B)};
g.k.Mb=function(){var a=this.Hk();fNa(this);this.oa.hide();a&&this.publish("show",!1)};
g.k.o6=function(a){var b=dt(a);b&&(g.wh(this.element,b)||this.B&&g.wh(this.B,b)||!g.jz(a))||this.Mb()};
g.k.Hk=function(){return this.Eb&&this.oa.state!==4};g.z(gNa,g.YS);gNa.prototype.rd=function(){g.YS.prototype.rd.call(this);this.dialog.focus()};g.z(g.$S,g.Yx);g.$S.prototype.setIcon=function(a){this.updateValue("icon",a)};
g.$S.prototype.dk=function(a){this.updateValue("label",a)};
g.$S.prototype.updateValue=function(a,b){g.Yx.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.mT={u7:15,Zka:14,Ela:13,n7:12,x7:11,H4:10,O4:9,C4:8,AUDIO:7,SUBTITLES:6,t7:5,SLEEP_TIMER:4,q7:3,Ija:2,REMOTE:1,Gha: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.z(bT,g.$S);bT.prototype.Lc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
bT.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(gy());var e;this.dk(cT(a==null?void 0:(e=a.menuData)==null?void 0:e.connectedMenuLabel));var f,h,l;this.C=new gNa(this.J,cT(a==null?void 0:(f=a.menuData)==null?void 0:f.connectedDialogTitle),cT(a==null?void 0:(h=a.menuData)==null?void 0:h.connectedDialogMessage),cT(a==null?void 0:
(l=a.menuData)==null?void 0:l.confirmButtonText));g.P(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.Cb.Tc(this);this.j=!0}else!c&&this.j&&(this.Cb.Dh(this),this.j=!1)};
bT.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Cb.Mb();this.C&&this.C.rd()};g.z(dT,g.O);dT.prototype.L=function(a){return this.api.L(a)};g.z(eT,dT);eT.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.oJ=b};
eT.prototype.setAccountLinkState=function(a){this.api.getVideoData().oJ=a;this.api.Fp()};
eT.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.z(iNa,dT);
iNa.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.nX&&g.Av(c.nX),c.CD&&gT(this,c.CD),c.YA)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.w(c.YA),h=f.next();!h.done;h=f.next())gT(this,g.Wo(h.value,e))}else b==="conversionview"?this.api.Ft():b==="engagedview"&&c.Nj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.Av(g.Wo(c.Nj,
e)));c.oX&&(e=c.oX,f=a.getId(),e=g.Kr(e,{label:f}),g.Av(e));switch(b){case "videoplaytime25":c.kX&&gT(this,c.kX);c.GD&&hT(this,c.GD);c.qX&&g.Av(c.qX);break;case "videoplaytime50":c.lX&&gT(this,c.lX);c.aE&&hT(this,c.aE);c.BX&&g.Av(c.BX);break;case "videoplaytime75":c.mX&&gT(this,c.mX);c.cE&&hT(this,c.cE);c.aY&&g.Av(c.aY);break;case "videoplaytime100":c.gX&&gT(this,c.gX),c.ED&&hT(this,c.ED),c.pX&&g.Av(c.pX)}(e=this.api.getVideoData().xw)&&mNa(this,e,a.getId())&&mNa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
!d)switch(b){case "videoplaybackstart":var l,m=(l=c.vB)==null?void 0:l.j;m&&gT(this,m);break;case "videoplayback2s":(l=(m=c.vB)==null?void 0:m.C)&&gT(this,l);break;case "videoplayback10s":var n;(l=(n=c.vB)==null?void 0:n.B)&&gT(this,l)}this.api.vp([a],1)};g.z(oNa,dT);g.z(qNa,g.S);g.k=qNa.prototype;
g.k.VD=function(){var a;if(a=this.J.getPresentingPlayerType()!==3&&g.VS(this.J)&&this.J.ob().getPlayerSize().width>=400)if(a=this.xd(),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.Xx(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||pNa(this),
b=this.xd(),this.BW(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.Xx(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.w(this.B),c=b.next();!c.done;c=b.next())this.Mc(c.value)};
g.k.BW=function(a){sNa(this)?this.isChecked=a!==1:((a=a!==1)||(g.tt(),a=g.Zr("web_autonav_allow_off_by_default")&&!g.ut(0,141)&&g.zr("AUTONAV_OFF_BY_DEFAULT")?!1:!g.ut(0,140)),this.isChecked=a);rNa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.aN(this.isChecked?2:1);rNa(this);if(sNa(this)){var a=this.xd().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.eb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.eb("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.xd=function(){return this.J.getVideoData(1)};g.z(tNa,dT);g.z(iT,g.$S);iT.prototype.onClick=function(){this.enabled&&(jT(this,!this.checked),this.publish("select",this.checked))};
iT.prototype.getValue=function(){return this.checked};
iT.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var vNa=["en-CA","en","es-MX","fr-CA"];g.z(nT,iT);nT.prototype.Ra=function(a){a?this.j||(this.Cb.Tc(this),this.j=!0):this.j&&(this.Cb.Dh(this),this.j=!1);this.j&&jT(this,iCa())};
nT.prototype.D=function(){g.Op(this.element,"ytp-menuitem-highlight-transition-enabled")};
nT.prototype.C=function(a){var b=iCa();a!==b&&(b=g.tt(),wt(190,a),wt(192,!0),b.save(),this.J.eb("cinematicSettingsToggleChange",a))};
nT.prototype.xa=function(){this.j&&this.Cb.Dh(this);iT.prototype.xa.call(this)};g.z(BNa,dT);BNa.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ra(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.z(CNa,dT);CNa.prototype.vS=function(a,b){b=b.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};g.z(oT,iT);oT.prototype.C=function(a){this.D(a?1:0)};
oT.prototype.B=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;jT(this,b);this.setEnabled(a)};
oT.prototype.xa=function(){this.Cb.Dh(this);iT.prototype.xa.call(this)};g.z(pT,dT);pT.prototype.getDrcUserPreference=function(){return this.j};
pT.prototype.setDrcUserPreference=function(a){g.lt("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Qc())&&this.B()&&cW(a))};
pT.prototype.updateEnvironmentData=function(){this.api.U().Wf=this.j===1};
pT.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;if(!c)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.L("mta_drc_mutual_exclusion_removal")){var d=this.api.getAudioTrack().Yb.id;return Vm(c,function(e){var f;return e.audio.j&&((f=e.Yb)==null?void 0:f.id)===d})}return Vm(c,function(e){var f;
return((f=e.audio)==null?void 0:f.j)===!0})};g.z(qT,dT);qT.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.kf("embargo",1);var c=b==null?void 0:b.gE.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?ENa(this,c.filter(function(d){return DNa(a,d)})):(b==null?0:b.cueRanges)&&ENa(this,b.cueRanges.filter(function(d){return DNa(a,d)}))};
qT.prototype.B=function(a){return a.embargo!==void 0};
qT.prototype.xa=function(){dT.prototype.xa.call(this);this.j={}};g.z(FNa,dT);
FNa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Pc,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.Ps(g.UP(b))&&e.unshift(159628),b=e.join(","),b=g.ws()?b:g.qc(b,4),a.source_ve_path=b);this.j.length=
0};g.z(GNa,dT);g.z(HNa,g.O);HNa.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.z(JNa,dT);g.z(rT,g.S);rT.prototype.show=function(){g.S.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
rT.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=KNa(d),g.U(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,NNa(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",WBa(b.label)),MNa(this,a))))};
rT.prototype.xa=function(){NNa(this);g.S.prototype.xa.call(this)};g.z(ONa,dT);g.z(sT,g.S);sT.prototype.onClick=function(){this.Sa.logClick(this.element);this.Sa.eb("onFullerscreenEduClicked")};
sT.prototype.Ra=function(){this.Sa.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Sa.logVisibility(this.element,this.Sa.isFullscreen()&&!this.B)};g.z(tT,dT);tT.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.Qp(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),oS(b.Sa,b.element,b),b.C=!0))};
tT.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ra())};g.z(PNa,g.S);g.z(SNa,dT);g.z(TNa,dT);g.z(UNa,dT);g.z(YNa,dT);var WNa="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),XNa="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.z(uT,dT);uT.prototype.getSphericalProperties=function(){var a=g.vS(this.api.yb());return a?a.getSphericalProperties():{}};
uT.prototype.setSphericalProperties=function(a){if(a){var b=g.vS(this.api.yb());b&&b.setSphericalProperties(a,!0)}};g.z(ZNa,dT);g.k=ZNa.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)};var aOa=!1;bOa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
bOa.prototype.getPlaybackRate=function(){return this.playbackRate};hOa.prototype.BQ=function(a){var b=zG(a.info.j.info,this.manifest.Wb),c=a.info.Ma+this.D,d=a.info.startTime*1E3;if(this.policy.Ya)try{d=this.policy.Ya?aO(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=oB(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.vc(),encodedDataView:g.pc(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Ya){if(a.info.j.un())var f=a.info.duration;else a.D===-1&&(a.D=bO(a)),f=a.D||a.info.duration;f*=1E3}else f=a.info.duration*
1E3;this.policy.Ya&&(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,Ma:c,startTimeMs:d,clipId:e,G8:f}};
hOa.prototype.Kn=function(a){this.timestampOffset=a};AT.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.Pb,f=uOa(this,this.videoTrack,a,this.videoTrack.Pb,b);b=uOa(this,this.audioTrack,this.policy.Wf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(qOa(this,this.videoTrack,c),qOa(this,this.audioTrack,d));return a};
AT.prototype.isSeeking=function(){return this.G};
AT.prototype.qU=function(a){this.C=a};
var tOa=2/24;var yOa=0;g.k=JT.prototype;g.k.Cv=function(){this.G=this.now();DJa(this.Gc,this.G);this.wb.Cv()};
g.k.Qs=function(a,b){var c=this.policy.B?(0,g.hu)():0;KT(this,a,b);a-this.K<10&&this.Ai()||this.Hw(a,b);this.wb.Qs(a,b);this.policy.B&&(a=(0,g.hu)()-c,this.Kb+=a,this.ib=Math.max(a,this.ib))};
g.k.Hw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.hq||(DP(this.Gc,c,d),this.Lv(c,d));this.K=a;this.B=b};
g.k.Bn=function(){this.Aa&&zOa(this);this.wb.Bn()};
g.k.Os=function(a){this.Aa||(this.Aa=this.D-this.Gb+a,this.Tb=this.D,this.qc=this.N)};
g.k.Kv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.Ai()||(this.Z=a,this.oa=b,this.isActive=!0,this.policy.j&&(this.W=!0))};
g.k.Ai=function(){return this.oa>0};
g.k.e2=function(){};
g.k.Jr=function(){var a,b={rn:this.requestNumber,rt:(this.N-this.j).toFixed(),lb:this.D,stall:(1E3*this.C).toFixed(),ht:(this.G-this.j).toFixed(),elt:(this.Z-this.j).toFixed(),elb:this.oa,d:(a=this.Ca)==null?void 0:a.Fi()};this.url&&$Na(b,this.url);this.policy.B&&(b.mph=this.ib.toFixed(),b.tph=this.Kb.toFixed());b.ulb=this.Ua;b.ult=this.Fa;b.abw=this.Oa;return b};
g.k.now=function(){return(0,g.hu)()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};g.z(LT,JT);g.k=LT.prototype;g.k.Jr=function(){var a=JT.prototype.Jr.call(this);a.pb=this.FA;a.pt=(1E3*this.Ta).toFixed();a.se=this.Qb;return a};
g.k.lq=function(){var a=this.wb;this.Ya||(this.Ya=a.lq?a.lq():1);return this.Ya};
g.k.sL=function(){return this.fm?this.lq()!==1:!1};
g.k.rS=function(a,b,c){if(!this.Bb){this.Bb=!0;if(!this.hq){KT(this,a,b);this.Hw(a,b);var d=this.lq();this.Qb=c;d===2?this.hq||(this.Fa?yP(this.Gc,this.Fa/1E3,this.Ua,this.policy.oa):yP(this.Gc,b/Math.max(this.policy.W,c||this.Oa),b,.01),BP(this.Gc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.kb||this.policy.Z||!this.Ai()||COa(this,c,b),this.Ai()&&BP(this.Gc,b,this.C));a=(a-this.j)/1E3||.01;this.policy.N&&!this.Ai()||AP(this.Gc,a,this.B,this.Ta,this.cq)}this.deactivate()}};
g.k.Hw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B,e=this.lq();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&COa(this,.05,d),this.kb=!0):d>0&&(COa(this,c,d),this.kb=!0)):DOa(this,b)&&(this.policy.j?this.Kv(a,b):(e===1&&(c=(this.G-this.j)/1E3,d=(a-this.G)/1E3,IOa(this)||this.hq||zP(this.Gc,c,d)),this.Z=a,this.oa=b,this.isActive=!0));JT.prototype.Hw.call(this,a,b)};
g.k.ZL=function(a){if(!this.hq){KT(this,a,this.D);var b=(a-this.j)/1E3;this.lq()!==2&&this.Ai()&&(this.C+=(a-this.K)/1E3,BP(this.Gc,this.B,this.C));AP(this.Gc,b,this.B,this.Ta,this.cq,!0);a=(a-this.K)/1E3;DP(this.Gc,a,0);this.Lv(a,0)}};
g.k.Kv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.Ai()||(JT.prototype.Kv.call(this,a,b),this.lq()===1&&(b=(this.G-this.j)/1E3,a=(a-this.G)/1E3,IOa(this)||this.hq||zP(this.Gc,b,a)))};
g.k.lZ=function(){this.fm&&HOa(this,this.now());return this.Ka};
g.k.jy=function(){return this.B>this.kT&&DOa(this,this.B)};
g.k.MK=function(){return this.Va};
g.k.NT=function(a){a=a===void 0?this.now():a;if(this.fm){HOa(this,a);if(this.Ya?this.sL():this.qa!==this.Ja){var b=this.Ja;if(a<b){this.Va=this.Ja;return}}else b=this.qa;b=Math.max(b,this.Ka)}else b=this.Ka;var c=this.FA-this.B;c<0&&(c=0);c=(c*this.snapshot.stall+c/this.snapshot.byterate)*1E3;this.Va=c=this.Ai()?c+a:c+Math.max(a,b)};
g.k.yK=function(){return this.now()-this.Z};
g.k.HQ=function(){return(this.B-this.oa)*1E3/this.yK()||0};
g.k.mZ=function(){return this.Z};MT.prototype.feed=function(a){kB(this.j,a);this.Le()};
MT.prototype.Le=function(){if(this.D){if(!this.j.getLength())return;var a=this.j.split(this.C-this.B),b=a.fL;a=a.nm;if(!this.wb.Os(this.D,b,this.B,this.C))return;this.B+=b.getLength();this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.w(JOa(this.j,c));b=a.next().value;c=a.next().value;c=g.w(JOa(this.j,c));a=c.next().value;c=c.next().value;if(b<0||a<0)break;if(!this.j.Rx(c,a)){if(!this.wb.Os||!this.j.Rx(c,1))break;c=this.j.split(c).nm;this.wb.Os(b,c,0,a)&&(this.D=b,this.B=
c.getLength(),this.C=a,this.j=new jB([]));break}a=this.j.split(c).nm.split(a);c=a.nm;this.wb.bC(b,a.fL);this.j=c}};
MT.prototype.dispose=function(){this.j=new jB};g.k=NT.prototype;g.k.oQ=function(){return 0};
g.k.DK=function(){return null};
g.k.aZ=function(){return null};
g.k.Ru=function(){return this.state>=1};
g.k.isComplete=function(){return this.state>=3};
g.k.Vl=function(){return this.state===5};
g.k.onStateChange=function(){};
g.k.yd=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.SB=function(a){a&&this.state<a?this.yd(a):this.callback&&this.callback(this,this.state)};
g.k.Ia=function(){return this.state===-1};
g.k.vc=function(){var a="";this.info.gb.forEach(function(b){a+=b.vc()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.Ia()||(this.info.gb[0].j.C=!1,this.yd(-1))};
g.k.MQ=function(){return 0};g.k=LOa.prototype;g.k.XB=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.wb.Cv()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.Ia||(this.D=!0,this.wb.Bn())};
g.k.Iu=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.LF=function(){return+this.getResponseHeader("content-length")};
g.k.Ym=function(){return this.B};
g.k.bz=function(){return this.status>=200&&this.status<300&&!!this.B};
g.k.Ul=function(){return this.j.getLength()>0};
g.k.vz=function(){var a=this.j;this.j=new jB;return a};
g.k.DM=function(){return this.j};
g.k.abort=function(){this.Ia=!0;this.xhr.abort()};
g.k.Vv=function(){return!0};
g.k.RM=function(){return this.C};
g.k.Zf=function(){return""};g.k=NOa.prototype;
g.k.oz=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y;return g.J(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=mg(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 MOa(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.G(A,YKa(b,c,d,n,f),5):A.Ea(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);y=new Uint8Array(p.buffer,t,u);a.B.append(y);a.loaded+=u;a.loaded<h.length&&a.wb.Qs((0,g.hu)(),a.loaded);n++;return A.Ea(2)})};
g.k.getResponseHeader=function(a){return a==="content-type"?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Iu=function(){return!0};
g.k.LF=function(){return this.range.length};
g.k.Ym=function(){return this.loaded};
g.k.bz=function(){return!!this.loaded};
g.k.Ul=function(){return!!this.B.getLength()};
g.k.vz=function(){var a=this.B;this.B=new jB;return a};
g.k.DM=function(){return this.B};
g.k.Vv=function(){return!0};
g.k.RM=function(){return!!this.error};
g.k.Zf=function(){return this.error};g.k=POa.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.W,this.onError).then(void 0,Pt)};
g.k.onDone=function(){this.Ia()||this.wb.Bn()};
g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
g.k.Iu=function(){return!!this.responseHeaders};
g.k.Ym=function(){return this.B};
g.k.LF=function(){return+this.getResponseHeader("content-length")};
g.k.bz=function(){return this.status>=200&&this.status<300&&!!this.B};
g.k.Ul=function(){return!!this.j.getLength()};
g.k.vz=function(){this.Ul();var a=this.j;this.j=new jB;return a};
g.k.DM=function(){this.Ul();return this.j};
g.k.Ia=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.Vv=function(){return!0};
g.k.RM=function(){return this.K};
g.k.Zf=function(){return this.errorMessage};g.k=QOa.prototype;g.k.onDone=function(){var a=this;if(!(this.Ia||T5a&&this.j)){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(b){}this.j=!0;T5a?setTimeout(function(){a.wb.Bn()},0):this.wb.Bn()}};
g.k.XB=function(){this.xhr.readyState===2&&this.wb.Cv()};
g.k.Eg=function(a){this.Ia||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.wb.Qs((0,g.hu)(),a.loaded))};
g.k.Iu=function(){return this.xhr.readyState>=2};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.qx(Error("Could not read XHR header "+a)),""}};
g.k.LF=function(){return+this.getResponseHeader("content-length")};
g.k.Ym=function(){return this.B};
g.k.bz=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B};
g.k.Ul=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.vz=function(){this.Ul();var a=this.response;this.response=void 0;return new jB([new Uint8Array(a)])};
g.k.DM=function(){this.Ul();return new jB([new Uint8Array(this.response)])};
g.k.abort=function(){this.Ia=!0;this.xhr.abort()};
g.k.Vv=function(){return!1};
g.k.RM=function(){return!1};
g.k.Zf=function(){return""};
var T5a=!1;g.QT.prototype.info=function(){};
g.QT.prototype.debug=function(){};
g.QT.prototype.j=ba(36);var VOa=new Map,YOa=new Map,WOa=new function(){var a=this;this.j=new Map;this.Sc={coa:function(){return a.j}}};g.z(RT,g.O);RT.prototype.lm=function(){if(!this.zf.length)return[];var a=this.zf;this.zf=[];this.C=g.Rb(a).info;return a};
RT.prototype.uH=function(){return this.zf};
RT.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.zf.length=0;this.gb.length=0;this.C=null};g.z(TT,g.O);g.k=TT.prototype;g.k.mea=function(){if(!this.Ia()){var a=(0,g.hu)(),b=!1;if(this.timing.Ai()){if(this.G){this.policy.qc&&(this.j=0);return}var c=this.timing.MK();this.timing.NT();var d=this.timing.MK();d-c>=this.policy.rl*.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.lZ();
e>0&&(this.j+=1);a=AEa(UT(this),!1)*this.policy.yG;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.wb.YQ();
b?this.cw(!1):this.B.start()}};
g.k.cw=function(a){this.C=!0;a&&(a=UT(this),a.C+=1);this.wb.aA();this.lastError="net.timeout";WT(this)};
g.k.canRetry=function(a){var b=UT(this);a=a?this.policy.Tw:this.policy.Qj;return b.timedOut<this.policy.Ww&&b.j<a};
g.k.Mh=function(){return this.lastError};
g.k.Zr=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.O.prototype.dispose.call(this)};var A2={},rPa=(A2["1h"]=8,A2["9h"]=4,A2["1"]=8,A2["9"]=4,A2["("]=4,A2.h=2,A2.H=2,A2),B2={},sPa=(B2.o=3,B2.O=3,B2.so=3,B2.a=1,B2.ah=1,B2.A=1,B2.m=1,B2.M=1,B2.sa=1,B2.mac3=7,B2.MAC3=7,B2.meac3=5,B2.MEAC3=5,B2),C2={},uPa=(C2.o=0,C2.O=0,C2.a=0,C2.ah=0,C2.A=0,C2.m=1,C2.M=1,C2.mac3=1,C2.MAC3=1,C2.meac3=1,C2.MEAC3=1,C2.so=4,C2.sa=4,C2);var xPa={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 $T,ZT,aU=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],lPa=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],mPa=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],nPa=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],oPa=["412","359"],pPa=[["140"],["251"],["380"],["328"]],B7a="397 396 395 394 788 787".split(" "),D2={},
hPa=(D2["398"]=["397","396","395","394"],D2["247"]=["780","779","244","243","242"],D2["136"]=["135","134","133","160"],D2["141"]=["140"],D2["251"]=["250"],D2),E2={},iPa=(E2["135"]=["134","133","160"],E2["243"]=["242"],E2["781"]=["780","779"],E2["777"]=["776","775"],E2["396"]=["395","394"],E2["141"]=["140"],E2["251"]=["250"],E2),F2={},jPa=(F2["274"]=["317","273","318","280","279"],F2["145"]=["144","222","223","143","142"],F2["141"]=["149"],F2["140"]=["149"],F2["380"]=["381"],F2["328"]=["329"],F2),
G2={},fPa=(G2["133"]=240,G2["134"]=360,G2["135"]=480,G2["136"]=720,G2["137"]=1080,G2["242"]=240,G2["243"]=360,G2["244"]=480,G2["247"]=720,G2["248"]=1080,G2["298"]=720,G2["299"]=1080,G2["302"]=720,G2["303"]=1080,G2["395"]=240,G2["396"]=360,G2["397"]=480,G2["398"]=720,G2["399"]=1080,G2);g.z(CT,NT);g.k=CT.prototype;g.k.cn=function(){return this.timing.requestNumber};
g.k.xe=function(){return this.Ce.xe()};
g.k.mq=function(){var a=cPa(this.Dd);if(this.qm){var b=this.qm,c=b.j.getLength();a.ulen=c;c>0&&(b=b.j.getUint8(0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.Cg&&(a.rc=this.policy.zm?this.Cg:this.Cg.toString());this.policy.kd&&this.B3&&(a.tr=this.B3);a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.wg();a.sq=""+this.info.gb[0].Ma;this.Ce&&(a.ifi=""+ +CM(this.info.resource.C));this.Cg!==410&&this.Cg!==500&&this.Cg!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==
null?void 0:d.Zf()))&&(a.msg=c);this.tI&&(a.smb="1");this.info.Cq()&&(a.sdai="1");return a};
g.k.TY=function(){return EOa(this.timing)};
g.k.Zf=function(){return this.xhr.Zf()||""};
g.k.jy=function(){return this.isComplete()||this.timing.jy()};
g.k.Qs=function(){!this.Ia()&&this.xhr&&(this.Cg=this.xhr.status,this.policy.Zq&&this.hg&&this.hn(!1),this.Fn()?this.SB(2):!this.NZ&&this.jy()&&(this.SB(),this.NZ=!0))};
g.k.Cv=function(){if(!this.Ia()&&this.xhr){if(!this.rA&&this.xhr.Iu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.rA=((0,g.hu)()-a)/1E3}this.xhr.Iu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.sE&&!sCa()&&g.lt("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.tv)==null||c.stop();this.yq=a||this.yq;
this.pn=b||this.pn}};
g.k.Bn=function(){var a=this.xhr;if(!this.Ia()&&a){this.Cg=a.status;a=this.cR(a);if(this.policy.kd){var b;(b=this.tv)==null||b.stop()}a===5?WT(this.Dd):this.yd(a);this.Dd.B.stop()}};
g.k.cR=function(a){var b=this;EPa(this);if(XT(this.Dd,this.xhr.status,this.jq?this.timing.W||this.GN:this.xhr.bz(),!1,this.py))return 5;var c="";if(APa(this)){var d=a.DM();d.getLength()<=this.policy.Sq&&(c=BPa(this,d.Gk()))}if(c)return tN(UT(this.Dd)),this.info.Ql(this.Ce,c),3;c=a.Ym();if(this.qm){this.hn(!0);EPa(this);if(XT(this.Dd,this.xhr.status,this.timing.W||this.GN,!1,this.py))return 5;if(!this.Q3){if(this.GN)return tN(UT(this.Dd)),3;this.Dd.lastError="net.closed";return 5}}else{if(XT(this.Dd,
this.xhr.status,this.xhr.bz(),!1,this.py))return 5;if((d=this.info.C)&&d!==c||a.RM())return this.Dd.lastError="net.closed",5;this.hn(!0)}d=KOa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=KOa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.K2=!0,this.policy.ED&&(d=a);bPa(this.Dd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Ta*1E3+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.Ia();var a=this.info.Cq();return this.Dd.canRetry(a)};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Pp?this.aA():this.timing.deactivate())};
g.k.cw=function(a){this.Dd.cw(a)};
g.k.YQ=function(){this.callback&&this.callback(this,this.state)};
g.k.Zr=function(){return this.Dd.Zr()};
g.k.dispose=function(){NT.prototype.dispose.call(this);this.Dd.dispose();var a;(a=this.tv)==null||a.dispose();this.policy.Pp||this.aA()};
g.k.aA=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.k.lm=function(){if(!this.uH().length)return[];this.fR=!0;return this.hg.lm()};
g.k.Fn=function(){if(this.state<1)return!1;if(this.hg&&this.hg.zf.length)return!0;var a;return((a=this.xhr)==null?0:a.Ul())?!0:!1};
g.k.uH=function(){this.hn(!1);return this.hg?this.hg.uH():[]};
g.k.hn=function(a){try{if(a||this.xhr.Iu()&&this.xhr.Ul()&&!APa(this)&&!this.hC)this.hg||(this.hg=new RT(this.policy,this.info.gb)),this.xhr.Ul()&&(this.qm?this.qm.feed(this.xhr.vz()):ST(this.hg,this.xhr.vz(),a&&!this.xhr.Ul()))}catch(b){this.qm?zPa(this,b):g.qx(b)}};
g.k.bC=function(a,b){switch(a){case 21:a=b.split(1).nm;CPa(this,a);break;case 22:this.Q3=!0;ST(this.hg,new jB([]),!0);break;case 43:if(a=DB(new xB(b),1))this.info.Ql(this.Ce,a),this.GN=!0;break;case 45:b=cM(new xB(b));a=b.cU;b=b.dU;a&&b&&(this.GJ=a/b);break;case 44:this.HC=rDa(new xB(b));var c,d,e;!this.timing.W&&((c=this.HC)==null?void 0:c.action)===4&&((d=this.HC)==null?0:(e=d.D2)==null?0:e.jq)&&(this.jq=this.HC.D2.jq);break;case 53:this.policy.kd&&(a=oDa(new xB(b)).Mq)&&(this.tv||(this.Mq=a,this.tv=
new g.Ep(this.g0,a,this)),this.tv.start());break;case 60:this.AB=bM(new xB(b));break;case 64:this.policy.BD&&(a=bDa(new xB(b)),this.policy.zv(a));break;case 58:if(a=RCa(new xB(b)))this.uj=a,this.policy.Nj&&a.uj===3&&(this.py=!0)}};
g.k.Os=function(a,b,c,d){c||this.timing.Os(d);if(a!==21)return!1;if(a=this.policy.Zq)if(d=b.getLength()+c===d,a*=this.info.gb[0].j.info.qb,!d&&b.getLength()<a)return!1;if(!c){if(b.getLength()===1)return!0;b=b.split(1).nm}CPa(this,b);return!0};
g.k.Ym=function(){return this.xhr.Ym()};
g.k.oQ=function(){return this.rA};
g.k.lq=function(){return this.sL()?2:1};
g.k.sL=function(){if(!this.policy.N.xj||!isNaN(this.info.oh)&&this.info.oh>0)return!1;if(!this.xhr.Iu())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.qm)var a=!this.info.C;else this.xhr.LF()?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.oh)){a=this.xhr.getResponseHeader("x-head-seqnum");var b=this.timing.policy.K?1:0;if(!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(a)>this.info.gb[0].Ma+b)return!1}return!0};
g.k.MQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.DK=function(){this.xhr&&(this.yq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.yq};
g.k.aZ=function(){this.xhr&&(this.pn=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.pn};
g.k.Mh=function(){return this.Dd.Mh()};
g.k.g0=function(){if(!this.Ia()&&this.xhr){this.B3="heartbeat";var a=this.Dd;a.j+=2;this.YQ()}};dU.prototype.bC=function(a,b){b.getLength();switch(a){case 20:a=new xB(b);a={zq:AB(a,1),videoId:DB(a,2),itag:AB(a,3),lmt:AB(a,4),xtags:DB(a,5),IC:AB(a,6),So:BB(a,8),ir:AB(a,9),Ena:AB(a,10),startMs:AB(a,11),durationMs:AB(a,12),Ws:AB(a,14),timeRange:EB(a,15,BCa),bk:AB(a,16),aM:AB(a,17),clipId:DB(a,1E3)};this.QS(a);break;case 21:this.OS(b,!1);break;case 22:this.Pq(b);break;case 31:a=HB(b,gDa);this.Av(a);break;case 52:a=HB(b,pDa);this.YB(a);break;default:this.ES(a,b)}};
dU.prototype.QS=function(){};
dU.prototype.ES=function(){};g.z(eU,JT);g.k=eU.prototype;g.k.Hw=function(a,b){var c=(a-this.K)/1E3,d=b-this.B;this.Ai()?d>0&&(this.qa&&(c>.2||d<1024?(this.C+=c,c>.2&&yP(this.Gc,.05,d,this.Hs?d/this.Hs:.05)):yP(this.Gc,c,d,this.Hs?d/this.Hs:c)),this.Ja&&(this.Ka+=d,this.Ta+=c)):this.policy.j?b>2048&&this.Kv(a,b):(zP(this.Gc,(this.G-this.j)/1E3,(a-this.G)/1E3),this.Z=a,this.oa=b);JT.prototype.Hw.call(this,a,b)};
g.k.rS=function(a,b){KT(this,a,b);this.Hw(a,b);this.qa&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Ai()&&BP(this.Gc,this.Ka,this.C),a=(a-this.j)/1E3||.01,this.policy.N&&!this.Ai()||AP(this.Gc,a,this.B,b,!1))};
g.k.ZL=function(a){KT(this,a,this.D);var b=(a-this.K)/1E3;DP(this.Gc,b,0);this.Lv(b,0);if(this.qa||!this.Ai())b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Ai()&&(this.C+=(a-this.K)/1E3,BP(this.Gc,this.Ka,this.C)),AP(this.Gc,(a-this.j)/1E3||.01,this.B,b,!1,!0)};
g.k.pH=function(a){a=a.YO||2147483647;(a&2)!==2&&(this.Ja=!1);(a&1)===1&&(this.qa=!0)};
g.k.gH=function(a){a=a.YO||2147483647;(a&2)===2&&(this.Ja=!1);(a&1)===1&&(this.qa=!1)};
g.k.mZ=function(){return this.Z};
g.k.yK=function(){var a=this.Ja?this.now()-this.K:0;return Math.max(this.Ta*1E3+a,1)};
g.k.HQ=function(){return this.Ka*1E3/this.yK()};
g.k.Ai=function(){return this.policy.j?JT.prototype.Ai.call(this):this.B>2048};
g.k.Kv=function(a,b){a=a===void 0?this.N:a;b=b===void 0?this.D:b;this.Ai()||(JT.prototype.Kv.call(this,a,b),zP(this.Gc,(this.G-this.j)/1E3,(a-this.G)/1E3))};
g.k.e2=function(a){this.Va=a};
g.k.Jr=function(){var a=JT.prototype.Jr.call(this);a.rbw=this.HQ();a.rbe=+this.Ja;a.gbe=+this.qa;a.ackt=(this.Va-this.j).toFixed();return a};
g.k.NT=function(){};
g.k.MK=function(){return NaN};
g.k.lZ=function(){return this.j+this.snapshot.delay*1E3};g.z(GPa,dU);g.k=GPa.prototype;
g.k.ES=function(a,b){b.getLength();switch(a){case 35:this.Qq(b);break;case 44:this.mH(b);break;case 43:this.YS(b);break;case 53:this.WS(b);break;case 55:a=new xB(b);(a={timeline:EB(a,1,tDa),wea:EB(a,2,wDa)},a.timeline)&&a.timeline.A3&&this.wb.dT(a.timeline.A3,a.timeline.Zea,a.wea);break;case 56:this.jH();break;case 57:this.lH(b);break;case 42:this.HS(b);break;case 45:this.Rq(b);break;case 59:this.kH(b);break;case 51:this.oH(b);break;case 49:this.pH(b);break;case 50:this.gH(b);break;case 47:this.nH(b);
break;case 58:this.An(b);break;case 61:this.wb.Kd.e2((0,g.hu)());break;case 66:this.Ps(b);break;case 46:this.hH(b);break;case 67:this.onSnackbarMessage(b)}};
g.k.oH=function(a){a=new xB(a);a={dqa:GB(a,1,$L),cqa:GB(a,2,$L)};this.wb.oH(a)};
g.k.kH=function(a){var b=new xB(a);a=FB(b,1);var c=FB(b,2);b=FB(b,3);this.wb.kH(a,c,b)};
g.k.Rq=function(a){a=cM(new xB(a));this.wb.Rq(a)};
g.k.nH=function(a){a=HB(a,jDa);this.wb.nH(a)};
g.k.HS=function(a){a=new xB(a);a={videoId:DB(a,1),formatId:EB(a,2,$L),endTimeMs:AB(a,3),Ina:AB(a,4),mimeType:DB(a,5),d_:EB(a,6,ZCa),indexRange:EB(a,7,ZCa),hQ:EB(a,8,$Ca)};this.wb.HS(a)};
g.k.lH=function(a){a=wDa(new xB(a));this.wb.lH(a)};
g.k.jH=function(){this.wb.jH()};
g.k.Qq=function(a){a=hDa(new xB(a));this.wb.Qq(a)};
g.k.WS=function(a){a=oDa(new xB(a));this.wb.WS(a)};
g.k.mH=function(a){a=rDa(new xB(a));this.wb.mH(a)};
g.k.YS=function(a){a={redirectUrl:DB(new xB(a),1)};this.wb.YS(a)};
g.k.OS=function(a){var b=a.getUint8(0);if(a.getLength()!==1){a=a.split(1).nm;var c=this.B[b]||null;c&&jU(this.wb.Lf,b,c,a)}};
g.k.Pq=function(a){a=a.getUint8(0);var b=this.B[a]||null;b&&this.wb.Pq(a,b)};
g.k.YB=function(a){this.wb.YB(a)};
g.k.QS=function(a){var b=a.zq,c=a.So,d=a.IC,e=a.aM,f=a.bk,h=a.ir,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Ws,q=a.clipId,r=FPa(a);a=Udb.has(qG[""+a.itag]);this.B[b]=r;this.wb.aC(r,a,{zq:b,So:!!c,IC:d!=null?d:-1,ir:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Ws:p,aM:e,bk:f,clipId:q,timeRange:n})};
g.k.pH=function(a){a={YO:AB(new xB(a),1)};this.wb.pH(a)};
g.k.gH=function(a){a={YO:AB(new xB(a),1)};this.wb.gH(a)};
g.k.Av=function(a){this.wb.Av(a)};
g.k.An=function(a){a=RCa(new xB(a));this.wb.An(a)};
g.k.Ps=function(a){a={oG:EB(new xB(a),1,mDa)};this.wb.Ps(a)};
g.k.onSnackbarMessage=function(a){a=AB(new xB(a),1);this.wb.onSnackbarMessage(a)};
g.k.hH=function(a){a={reloadPlaybackParams:EB(new xB(a),1,QCa)};this.wb.hH(a)};g.z(fU,g.O);g.k=fU.prototype;g.k.vu=function(){return Array.from(this.Zc.keys())};
g.k.kt=function(a){a=this.Zc.get(a);var b=a.zf;a.lA+=b.getLength();a.zf=new jB;return b};
g.k.Rg=function(a){return this.Zc.get(a).Rg};
g.k.Yx=function(a){return this.Zc.get(a).Yx};
g.k.aC=function(a,b,c,d){this.Zc.get(a)||NPa(this,a,b);b=this.Zc.get(a);if(this.manifest){a=PPa(this,a,c);if(d)for(var e=g.w(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.N=h;f.startTime+=h;f.Me+=h;f.Rf+=h}OPa(this,c.zq,b,a)}else c.So?b.c_=c.Ws:b.PG.push(c),b.fU.push(c)};
g.k.rq=function(a){var b;return((b=this.Zc.get(a))==null?void 0:b.gb)||[]};
g.k.SB=function(){for(var a=g.w(this.Zc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.CT&&(b.Eg&&b.Eg(),b.CT=!1)};
g.k.Pq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.Zc.get(b);if(gU){if(c&&!c.Rg){if(c.Rj.get(a))c.Rj.get(a).gy=!0;else{var d;((d=this.Xd)==null?0:d.jd)&&c.Rj.set(a,{data:new jB,FJ:0,gy:!0})}c.Yx=!0}}else c&&!c.Yx&&(c.Yx=!0)};
g.k.lm=function(a){if(gU){var b=this.Zc.get(a);if(b)for(var c=g.w(b.Rj),d=c.next();!d.done;d=c.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;var f=b.pI.get(d);if(GN(f[0])){if(!e.gy)continue;var h=f,l=e.data;l.getLength();f=0;var m=[];h=g.w(h);for(var n=h.next();!n.done;n=h.next()){n=n.value;var p=n.B,q=lB(l,f,p);f+=p;m.push(new ZN(n,q))}b.Cy.push.apply(b.Cy,g.x(m))}else if(e.data.getLength()>0||!f[0].range&&e.gy)l=void 0,f=f[0],m=e.FJ,h=e.data,f.range||(l=e.gy),n=h.getLength(),l=new ZN(NEa(f,
f.Ob+m,n,l),h),e.FJ+=l.info.B,b.Cy.push(l);b.Rj.get(d).data=new jB;e.gy&&b.Rj.delete(d)}a=this.Zc.get(a);if(!a)return[];b=a.Cy;a.Cy=[];c=g.w(b);for(d=c.next();!d.done;d=c.next())a.lA+=d.value.info.B;return b||[]}c=(b=this.Zc.get(a))==null?void 0:b.hg;if(!c)return[];this.hn(a,c);return c.lm()};
g.k.Fn=function(a){if(gU)return iU(this,a);var b,c,d;return!!((c=(b=this.Zc.get(a))==null?void 0:b.hg)==null?0:(d=c.uH())==null?0:d.length)||iU(this,a)};
g.k.hn=function(a,b){for(;iU(this,a);){var c=this.kt(a);var d=a;d=this.Zc.get(d).Rg&&!LPa(this,d);ST(b,c,d&&MPa(this,a))}};
g.k.xa=function(){g.O.prototype.xa.call(this);for(var a=g.w(this.Zc.keys()),b=a.next();!b.done;b=a.next())IPa(this,b.value);var c;if((c=this.Xd)==null?0:c.uf)for(a=g.w(this.Zc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Rj.clear(),b.pI.clear(),b.Cy.length=0,b.gb.length=0,b.fU.length=0,b.PG.length=0;this.Zc.clear()};
var gU=!1;g.z(kU,g.O);g.k=kU.prototype;g.k.Qs=function(){!this.Ia()&&this.xhr&&(this.hn(),KV(this.wb,this))};
g.k.Cv=function(){};
g.k.Bn=function(){if(!this.Ia()&&this.xhr){var a=this.cR();a===5?WT(this.Dd):this.yd(a);this.Dd.B.stop();var b;(b=this.SH)==null||b.stop()}};
g.k.cR=function(){this.hn();if(XT(this.Dd,this.xhr.status,this.xhr.bz(),this.info.Qu(),this.py))return 5;if(this.E2)return 3;bPa(this.Dd,this.xhr.Ym(),0);this.policy.Bc&&dUa(this.wb);return 4};
g.k.hn=function(){var a=this.xhr;if(a.Ul()){a=a.vz();var b=a.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
this.qm.feed(a)}};
g.k.bC=function(a,b){this.Kd.policy.j&&this.xhr.Vv()&&a===21&&this.Kd.Kv();this.F2.bC(a,b)};
g.k.Os=function(a,b,c,d){c||this.Kd.Os(d);if(a!==21)return!1;this.Kd.policy.j&&(this.Kd.W=!0);a=b.getLength();c||(this.MP=b.getUint8(0),b=b.split(1).nm);var e=this.F2.B[this.MP],f=this.manifest.C.get(e);if(f&&(f=f.info.qb*.01,a+c!==d&&a<f))return!1;jU(this.Lf,this.MP,e,b);return!0};
g.k.Qq=function(a){this.wb.Qq(a)};
g.k.WS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.SH)==null||b.dispose();this.OT=a;a.P1&&(this.SH=new g.Ep(this.f0,a.P1,this));this.f0()}};
g.k.f0=function(){var a;if((a=this.OT)!=null&&a.items){var b;(b=this.SH)==null||b.start();if(this.Kd.Ai()){a=this.Kd.yK();b=this.Kd.HQ();var c=TPa(this,a);if(!(b>c.PL||c.gS>0&&this.info.tQ()>c.gS)){this.PT=(0,g.hu)();var d;(d=this.SH)==null||d.stop();this.policy.Bc&&(d=this.wb,a={jx:Math.round(b*a/1E3),Az:a},d.policy.Bc&&(d.qa=a,d.er++));this.cw(!1)}}}};
g.k.cw=function(a){this.Dd.cw(a)};
g.k.mH=function(a){this.wb.mH(a,this.cn())};
g.k.YS=function(a){this.E2=!0;this.info.resource.Ql(this.Ce,a.redirectUrl)};
g.k.pH=function(a){this.Kd instanceof eU&&this.Kd.pH(a)};
g.k.gH=function(a){this.Kd instanceof eU&&this.Kd.gH(a)};
g.k.dT=function(a,b,c){this.wb.dT(a,b,c,this.cn())};
g.k.HS=function(a){var b=a.formatId,c=FPa({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new BN(((d=a.d_)==null?void 0:d.first)||0,((e=a.d_)==null?void 0:e.x_)||0),h,l;d=new BN(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.x_)||0);if(!this.manifest.C.get(c)){c=a.hQ||{};if(this.policy.Wn){var m,n;a=(m=a.mimeType)!=null?m:"";m=(n=b.itag)!=null?n:0;n=qG[""+m];c.mimeType=n!=="9"&&n!=="9h"?a:'video/webm; codecs="'+["vp09",n==="9h"?"02":"00","51",n==="9h"?"10":"08","01.01.01.01.00"].join(".")+
'"'}else c.mimeType=a.mimeType;c.itag=b.itag;c.lastModified=""+(b.lmt||0);c.xtags=b.xtags;b=this.manifest;n=sO("");m=qO(c,null);kO(b,new gO(n,m,f,d))}};
g.k.Rq=function(a){this.wb.Rq(a)};
g.k.onSnackbarMessage=function(a){if(this.policy.bE)this.wb.onSnackbarMessage(a)};
g.k.Av=function(a){this.yea=a;this.Q0=(0,g.hu)();this.wb.Av(a)};
g.k.kH=function(a,b,c){this.wb.kH(a,b,c)};
g.k.lH=function(a){a.scope===2&&(this.xea=a);this.wb.lH(a)};
g.k.jH=function(){this.DX=!0;this.wb.jH()};
g.k.oH=function(a){this.policy.Nd&&this.wb.oH(a)};
g.k.nH=function(a){this.wb.nH(a,this.cn())};
g.k.An=function(a){this.policy.Nj&&a.uj===3&&(this.py=!0);this.wb.An(a)};
g.k.Ps=function(a){this.wb.Ps(a)};
g.k.hH=function(a){this.wb.hH(a)};
g.k.canRetry=function(){this.Ia();return this.Dd.canRetry(!1)};
g.k.dispose=function(){if(!this.Ia()){g.O.prototype.dispose.call(this);this.Dd.dispose();var a;(a=this.SH)==null||a.dispose();this.yd(-1);this.aA()}};
g.k.yd=function(a){this.state=a;KV(this.wb,this)};
g.k.Qu=function(){return this.info.Qu()};
g.k.dP=function(){return this.DX};
g.k.KQ=function(){return this.xea};
g.k.aC=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.sj=c.ir,this.Ov=c.startMs);var d=0;this.policy.Xf&&this.h0&&this.clipId&&(d=yT(this.h0,this.clipId)/1E3);this.Lf.aC(a,b,c,d);this.Lf.Zc.get(a).HE=!0};
g.k.Pq=function(a,b){this.Lf.Pq(a,b)};
g.k.YB=function(a){this.requestIdentifier=a};
g.k.lm=function(a){return this.Lf.lm(a)};
g.k.rq=function(a){return this.Lf.rq(a)};
g.k.Fn=function(a){return this.Lf.Fn(a)};
g.k.vu=function(){return this.Lf.vu()};
g.k.lq=function(){return 1};
g.k.cn=function(){return this.Kd.requestNumber};
g.k.IQ=function(){return this.requestIdentifier};
g.k.RY=function(){return this.clipId};
g.k.xe=function(){return this.Ce.xe()};
g.k.D0=function(){this.aA()};
g.k.aA=function(){this.Kd.deactivate();var a;(a=this.xhr)==null||a.abort()};
g.k.isComplete=function(){return this.state>=3};
g.k.r_=function(){return this.state===3};
g.k.Vl=function(){return this.state===5};
g.k.s_=function(){return this.state===4};
g.k.dR=function(){return this.isComplete()};
g.k.Ru=function(){return this.state>=1};
g.k.Zr=function(){return this.policy.qc?this.Dd.Zr():0};
g.k.YQ=function(){this.policy.qc&&KV(this.wb,this)};
g.k.nZ=function(){return ISa(this.info)};
g.k.Mh=function(){return this.Dd.Mh()};
g.k.mq=function(){var a=cPa(this.Dd);Object.assign(a,KSa(this.info));a.req="sabr";a.rn=this.cn();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.zm?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.Zf())&&(a.msg=b);this.PT&&(c=TPa(this,this.PT-this.Kd.mZ()),a.letm=c.T$,a.mrbps=c.PL,a.mram=c.gS);return a};
g.k.pZ=function(){return{sj:this.sj,Ov:this.Ov,Cq:this.info.Cq()}};UPa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.hu)()};g.z(eQa,g.Qx);g.k=eQa.prototype;
g.k.kM=function(a,b,c,d){var e=!1;this.policy.Ka&&(e=c?this.Aa===a.Ma:this.qa===a.Ma);if(this.K&&d&&!e){d=[];e=[];var f=[],h=void 0,l=0;b&&(d=b.j,e=b.B,f=b.D,h=b.C,l=b.bA);this.policy.Ka&&(c?this.Aa=a.Ma:this.qa=a.Ma);this.K.ZS(a.Ma,a.startTime,this.B,d,e,f,c,l,h)}if(this.policy.Ka){if(c||this.policy.ql){this.B===1&&nU(this,5,"noad");var m;a.Ma!==((m=this.j)==null?void 0:m.Ma)&&(gQa(this,a,b,c),isNaN(a.startTime)||hQa(this,a.Ma,oU(this,a.startTime,a.Ma),!!b,this.K))}}else c&&gQa(this,a,b)};
g.k.RS=function(a,b,c){var d=this.videoTrack.j.index.ud()<=b;this.j={Ng:a,Ma:b,hG:c};d&&mU(this,a,b)};
g.k.Px=function(){this.K&&this.K.Px()};
g.k.ma=function(a,b){this.ra.ma(a,b)};
g.k.nt=function(a,b){var c=this.videoTrack.j.index.Pi(a);if(c>=0){var d;var e=((d=E_(b.Yc,c,2))==null?void 0:d.du)||"";if(this.policy.G||e)return b.Rv(a,c),jQa(this.ra,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.z(sU,g.O);sU.prototype.Cp=function(a,b,c){c=c===void 0?{}:c;this.policy.Cj=FO(a,c,this.D,b===void 0?!1:b)};pQa.prototype.hM=function(a){var b=this;if(this.policy.zD){var c=new Set(a);c.size===this.Fa.size&&[].concat(g.x(c)).every(function(d){return b.Fa.has(d)})||(this.ra.ma("lwnmow",{itagDenylist:[].concat(g.x(a)).join(",")}),this.ra.lz(!!c.size),this.W=-1,this.Fa=c,xU(this,this.j),this.Oa=!0)}};
pQa.prototype.Cp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.Cj;this.G.Cp(a,b===void 0?!1:b,c);if(d!==this.policy.Cj){xU(this,this.j);yU(this);var e,f;d>this.policy.Cj&&((e=this.C)==null?0:uG(e.info))&&((f=this.nextVideo)==null||!uG(f.info))&&(this.oa=!0)}};KQa.prototype.Kn=function(a){this.timestampOffset=a;this.flush()};
KQa.prototype.flush=function(){if(this.j.pos>0){var a={a:this.track.cg(),u:this.j.Fi(),pd:Math.round(this.D),ad:Math.round(this.C)},b=this.B;if(b){var c=b.j.info;a.itag=c.itag;c.j&&(a.xtags=c.j);a.sq=b.Ma;a.st=b.startTime;a.sd=b.duration;this.track.policy.FE&&(a.si=b.vc());b.Oe&&(a.esl=b.Ob+b.B);b.Ri()&&(a.eos=1)}isNaN(this.timestampOffset)||(a.to=this.timestampOffset);var d;if(b=(d=this.track.Pb)==null?void 0:d.pc({})){for(var e in b)e!=="bu"&&this.K[e]!==b[e]&&(a["sb_"+e]=b[e]);this.K=b}this.track.ma("sbu",
a);this.j.reset();this.buffered=[];this.G=this.C=this.D=0;this.timestampOffset=this.B=void 0}};NQa.prototype.dispose=function(){this.qa=!0};
NQa.prototype.Ia=function(){return this.qa};
g.z(GU,Error);var SZa=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]);JU.prototype.skip=function(a){this.offset+=a};
JU.prototype.Zm=function(){return this.offset};g.k=fRa.prototype;g.k.kZ=function(){return this.j};
g.k.kp=function(){return this.j.length?this.j[this.j.length-1]:null};
g.k.Gj=function(){this.j=[];LU(this);eRa(this)};
g.k.kt=function(){this.Va=this.j.shift().info};
g.k.rq=function(){return g.Ql(this.j,function(a){return a.info})};
g.k.cg=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.Au()};g.z(BT,NT);g.k=BT.prototype;g.k.onStateChange=function(){this.Ia()&&(hU(this.Lf,this.formatId),this.j.dispose())};
g.k.mq=function(){var a=KPa(this.Lf,this.formatId),b;var c=((b=this.Lf.Zc.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.Lf.Zc.get(this.formatId))==null?void 0:d.lA)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:LPa(this.Lf,this.formatId),isAnyMediaEndReceived:this.Lf.Yx(this.formatId)}};
g.k.TY=function(){return 0};
g.k.jy=function(){return!0};
g.k.lm=function(){return this.Lf.lm(this.formatId)};
g.k.uH=function(){return[]};
g.k.Fn=function(){return this.Lf.Fn(this.formatId)};
g.k.Mh=function(){return this.lastError};
g.k.Zr=function(){return 0};g.z(OU,g.O);g.k=OU.prototype;g.k.cg=function(){return!!this.j.info.audio};
g.k.kp=function(){return this.D.kp()};
g.k.kt=function(a){this.D.kt(a);var b;(b=this.Z)!=null&&(b.G.add(a.info.Ma),b.B=lOa(b,b.Uc,b.gC,b.B,a),b.C=a,b.K=(0,g.hu)());this.qb=Math.max(this.qb,a.info.j.info.qb||0)};
g.k.getDuration=function(){if(this.policy.B){var a=this.ra.Ff();if(a)return IV(a)}return this.j.index.Au()};
g.k.Gj=function(){DT(this);this.D.Gj()};
g.k.CQ=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.gb[0].Ma:!1};
g.k.Kn=function(a){var b;(b=this.Z)==null||b.Kn(a);var c;(c=this.W)==null||c.Kn(a)};
g.k.ma=function(a,b){this.ra.ma(a,b)};
g.k.Jx=function(){return this.ra.Jx()};
g.k.dispose=function(){var a;(a=this.W)==null||a.flush();g.O.prototype.dispose.call(this)};g.aSa.prototype.zv=function(a){this.Ba.zv(a)};g.z(fV,g.O);fV.prototype.C=function(){this.B++>15||(this.j=!this.j,new eSa(this.ra,this.policy,this.Gc,this.resource,this.j),this.delay.start())};
g.k=eSa.prototype;g.k.Cv=function(){};
g.k.Qs=function(){};
g.k.Bn=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Ym()===this.size)this.ra.ma("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.Iu()&&(a="net.closed");this.onError(a)}};
g.k.onError=function(a){var b=this;this.ra.handleError(a,this.getInfo());vT("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.ra.ma("pathprobe",c)},function(c){b.ra.handleError(c.errorCode,c.details)})};
g.k.getInfo=function(){var a=this.timing.Jr();a.shost=AM(this.location.base);a.pb=this.size;return a};g.z(gV,g.O);gV.prototype.FR=function(a,b){if(!$U(a)||!a.j.wg())return!1;var c=this.C.Oa||MRa(a)||b<=this.policy.FF||this.C.oa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+MRa(a)+", health: "+b});
return c};
gV.prototype.xa=function(){g.O.prototype.xa.call(this)};
var hV=2/24;g.z(mV,g.O);mV.prototype.gM=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&wSa(this,this.B)?this.B.reason:"a";this.ra.gM(new rU(a,e,c));kV(this.ra,b,a,!0)};
mV.prototype.H2=function(a,b){for(var c=g.w(this.W),d=c.next();!d.done;d=c.next())if(d=d.value,d.id===a)return this.C=[d],this.K=this.manifest.j[a],eV(this.Xd)&&(this.oa=!0),new rU(this.K,b?"t":"m");this.C=[];return null};
mV.prototype.Cp=function(a,b,c){c=c===void 0?{}:c;this.j.Cp(a,b===void 0?!1:b,c)};oV.prototype.Qu=function(){return this.requestType===1};
oV.prototype.tQ=function(){var a;return((a=this.wb)==null?void 0:a.tQ())||0};
oV.prototype.Cq=function(){var a;return!((a=this.data)==null||!a.In)};pV.prototype.encrypt=function(a){this.hd.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
pV.prototype.Ia=function(){return this.cipher===0};
pV.prototype.dispose=function(){this.hd.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};qV.prototype.encrypt=function(a,b){return YO(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:b},this.key,a).catch(function(c){return Promise.reject(c.name+": "+c.message)}).then(function(c){return new Uint8Array(c)}))};
qV.prototype.Ia=function(){return this.j};
qV.prototype.dispose=function(){this.j=!0};
oY.lB(qV,{encrypt:LSa("oan2")});rV.prototype.encrypt=function(a,b){aC(this.B,b);return YO(this.B.encrypt(a))};
rV.prototype.Ia=function(){return this.j};
rV.prototype.dispose=function(){this.j=!0};
oY.lB(rV,{encrypt:LSa("oap")});sV.prototype.encrypt=function(a,b){var c=this.hd.eF(b),d=this.j;d.hd.exports.AES128CTRCipher_setCounter(d.cipher,(c!=null?c:b).byteOffset);b=this.hd.eF(a);this.j.encrypt(b!=null?b:a);c&&this.hd.free(c.byteOffset);return b?YO(this.hd.mS(b)):YO(a)};
sV.prototype.Ia=function(){return this.j.Ia()};
sV.prototype.dispose=function(){this.j.dispose()};
oY.lB(sV,{encrypt:LSa("oalw")});SSa.prototype.encrypt=function(a){(0,g.hu)();return(new rP(this.j.j)).encrypt(a,this.iv)};
SSa.prototype.decrypt=function(a,b){(0,g.hu)();return(new rP(this.j.j)).decrypt(a,b)};g.z(tV,g.O);tV.prototype.C=function(a,b){if(b){b=b instanceof g.yM?b:uV(this,b);var c;((c=this.j.get(a))==null?void 0:AM(c.location))!==AM(b)&&this.j.set(a,new aTa(b,a))}else this.j.delete(a)};
tV.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.J(function(q){switch(q.j){case 1:b=a.j.get(0);g.wa(q,2);var r;if(r=b&&!a.B)r=AM(b.location),r=a.B===VT(r);if(r){q.Ea(4);break}return g.G(q,ZSa(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),CM(c)&&a.C(1,DM(c));case 4:g.xa(q,3);break;case 2:d=g.ya(q);g.qx(d);if(!a.B){q.Ea(3);break}a.B=!1;return g.G(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.bb("html5_onesie_probe_ec_hosts")){q.Ea(0);break}g.wa(q,9);e=a;f=e.C;h=3;return g.G(q,
ZSa(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.G(q,ZSa(a,2),12);case 12:m.call(l,n,q.B);g.xa(q,0);break;case 9:p=g.ya(q),g.qx(p),g.va(q)}})};
tV.prototype.N=function(){var a=this,b,c;return g.J(function(d){g.Fp(a.Z);b=g.UD(a.Y.experiments,"html5_onesie_prewarm_max_lact_ms");if(hw()>=b)return d.return();(c=a.j.get(0))&&YSa(a,c);g.va(d)})};
var WSa={Pka:0,rla:1,Xka:2,sla:3,Oha:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};bTa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.B=!0;b.Cn.Md("omd_s");c=new Uint8Array(16);dC()?d=new qP(a):e=new rP(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ea(4);break}f=b.j.shift();if(!d){h=e.decrypt(f.buffer.Gk(),c);m.Ea(5);break}return g.G(m,d.decrypt(f.buffer.Gk(),c),6);case 6:h=m.B;case 5:l=h;for(var n=0;n<c.length;n++)if(c[n]===255)c[n]=0;else{c[n]+=1;break}n=b.Cn;var p=f.videoId,
q=f.zq,r=f.formatId,t=new jB([l]),u;(u=wV(n.Cc,p))==null||jU(u,q,r,t);m.Ea(2);break;case 4:b.Cn.Md("omd_c"),xV(b),b.B=!1,b.Cn.PS(),g.va(m)}})};
bTa.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,zq:b,formatId:c,buffer:d,isEncrypted:e});this.B||xV(this)};var lTa=!!Uint8Array.prototype.copyWithin,yV=[],cTa=[],fTa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],AV=[],zV=[],BV=[],dTa=[];DV.prototype.ZZ=function(a){return g.kTa(new g.eTa(a))};
DV.prototype.a_=function(a){function b(h){if(!h.done)return f.append(h.value),e.read().then(function(l){return b(l)})}
if(!("DecompressionStream"in window))return ZO("native decompression unavailable");var c=new DecompressionStream("gzip"),d=c.writable.getWriter();d.write(a).then(function(){return d.close()});
var e=c.readable.getReader(),f=new jB([]);return cP(bP(bP(YO(e.read()),b),function(){return f.Gk()}),function(h){return ZO(h.message)})};
DV.prototype.b_=function(a,b){var c=void 0,d=b.eF(a);d&&(c=d.byteOffset,a=d);d=b.exports.getInflatedSize(a.byteOffset,a.length);if(d===0)return ZO("bad compressed input");var e=b.malloc(d);if(b.exports.inflateGzip(a.byteOffset,a.length,e))return b.free(e),ZO("inflateGzip failed");c&&b.free(c);return YO(new Uint8Array(b.exports.memory.buffer,e,d))};
oY.lB(DV,{ZZ:function(a){return{profile:"gzjb",oo:Math.ceil(a.byteLength/16)}},
a_:function(a){return{profile:"gznb",oo:Math.ceil(a.byteLength/16)}},
b_:function(a){return{profile:"gzwb",oo:Math.ceil(a.byteLength/16)}}});g.z(uTa,dU);g.k=uTa.prototype;g.k.PS=function(){this.Cc.PS()};
g.k.ES=function(a,b){switch(a){case 10:var c=HB(b,eDa);a=c.yda;var d=!1;switch(a){case 0:this.C=!c.M1.K$;this.iv=c.M1.iv;break;case 2:break;case 23:var e=this.Cc;c=c.xaa;e.Md("omp_r");c.videoId&&(e.Dv=c.videoId);e.Dv!==e.videoData.videoId&&(e.videoData.a5=e.Dv,e.ma("ompp","vid."+e.Dv));e.aS=!0;break;case 24:c=this.Cc;c.Md("omp_c");c.aS=!1;c.VH=!1;var f=(e=c.fg)==null?void 0:e.get(c.Dv);c.notifySubscribers(c.Dv);f!=null&&(f.j=!0);GV(c);break;default:d=!0}this.Cc.jn&&this.Cc.ma("ombup","id.10;pt."+
a+";len."+b.getLength()+(d?";ignored.1":""));this.D=a;break;case 11:xTa(this,b);break;case 12:this.OS(b,!0);break;case 37:b=HB(b,fDa);(b.S7||b.mV)&&b.videoId&&this.Cc.QY.set(b.videoId,b);break;case 60:this.LS(b);break;case 64:this.zv(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=HB(b,jDa),this.Cc.playbackStartPolicy=b);break;case 35:this.Qq(b);break;case 45:this.Rq(b);break;case 66:this.Ps(b);break;default:this.Cc.jn&&this.Cc.ma("ombup","id."+a+";len."+b.getLength()+";ignored.1")}};
g.k.Av=function(a){this.Cc.Av(a)};
g.k.LS=function(a){a=HB(a,bM);this.Cc.LS(a)};
g.k.zv=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=HB(a,bDa),this.Cc.zv(a))};
g.k.Rq=function(a){a=HB(a,cM);this.Cc.Rq(a)};
g.k.QS=function(a){var b=a.zq,c=a.So,d=a.IC,e=a.bk,f=a.ir,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Ws,p=FPa(a),q=Udb.has(qG[""+a.itag]);c&&this.Md(q?"oais_r":"ovis_r");var r=this.j[p]!==void 0;this.Cc.jn&&this.Cc.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,HZ:!1,cg:q,headers:[]});this.j[p].headers.push(a);this.Cc.aC(t,p,q,{zq:b,So:!!c,IC:d!=null?d:-1,ir:f!=null?f:-1,startMs:h!=null?h:-1,durationMs:l!=null?l:-1,Ws:n!=null?n:0,bk:e,timeRange:m})};
g.k.OS=function(a,b){var c=a.getUint8(0);this.Cc.jn&&this.Cc.ma("ombup","id."+(b?12:21)+";len."+a.getLength()+";hid."+c);if(a.getLength()!==1){a=a.split(1).nm;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.pg(this.j[d].cg?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
g.k.Pq=function(a){var b=a.getUint8(0);this.Cc.jn&&this.Cc.ma("ombup","id.22;len."+a.getLength()+";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,zq:b,formatId:a,isEncrypted:!1,m9:!0});d.B||xV(d)}else this.Cc.Pq(c,b,a)};
g.k.YB=function(a){this.Cc.YB(a)};
g.k.lM=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r;return g.J(function(t){switch(t.j){case 1:c.Cc.lM();d=a.Gk();if(!b){f=d;t.Ea(2);break}return g.G(t,ITa(c.Cc,d,c.iv),3);case 3:f=t.B;case 2:e=f;if(!c.Cc.enableCompression){t.Ea(4);break}l=(h=performance)==null?void 0:h.now();return g.G(t,mTa(e),5);case 5:e=t.B,c.Cc.ma("decompression",{ds:"DecompressionStream"in window,rt:((m=performance)==null?NaN:m.now())-l});case 4:try{n=HB(e,PCa)}catch(u){return p=u instanceof Error?{name:u.name,message:u.message}:
{},p.webcrypto=""+ +!!dC(),p.enc=""+ +c.C,q=new aG("onesie.response.parse",p),t.return(Promise.reject(q))}tTa(n);r=g.tB(n.body);return t.return(r)}})};
g.k.Qq=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=HB(a,hDa),this.Cc.Qq(a))};
g.k.Ps=function(a){a={oG:EB(new xB(a),1,mDa)};this.Cc.Ps(a)};
g.k.Md=function(a){this.Cc.Md(a)};
g.k.pg=function(a){return this.Cc.pg(a)};
g.k.L=function(a){return this.Cc.L(a)};g.z(FV,g.O);g.k=FV.prototype;g.k.RY=function(){return""};
g.k.vu=function(a){var b,c;return((c=(b=this.fg)==null?void 0:b.get(a))==null?void 0:c.vu())||[]};
g.k.Fn=function(a,b){var c;return!((c=wV(this,b))==null||!c.Fn(a))};
g.k.lm=function(a,b){var c;return((c=wV(this,b))==null?void 0:c.lm(a))||[]};
g.k.rq=function(a,b){var c;return((c=wV(this,b))==null?void 0:c.rq(a))||[]};
g.k.yd=function(a){this.state=a;this.notifySubscribers()};
g.k.Qu=function(){return!1};
g.k.dP=function(){return!1};
g.k.KQ=function(){};
g.k.Md=function(a){this.ea.Md(a)};
g.k.pg=function(a){return this.ea.pg(a)};
g.k.Os=function(a,b,c,d){c||this.Kd.Os(d);return!1};
g.k.bC=function(a,b){this.Cn.bC(a,b)};
g.k.FS=function(){this.Md("orfb");this.qL=!0;if(JTa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Ym(),rt:(1E3*EOa(this.Kd)).toFixed(),shost:g.aj(this.hT),trigger:"o1"};this.ma("pathprobe",$F(a))}};
g.k.lM=function(){this.Md("opr_r");this.MZ=!0};
g.k.aC=function(a,b,c,d){if(this.fg){if(!this.fg.has(a)){var e=new fU(this);this.fg.set(a,e);g.P(this,e)}var f;(f=this.fg.get(a))==null||f.aC(b,c,d);GV(this);this.L("html5_enable_sabr_ssdai")&&!c&&(this.sj=d.ir,this.Ov=d.startMs)}else GV(this)};
g.k.Av=function(a){this.K_=a;a.BL!=null&&this.ea.fz(a.BL)};
g.k.LS=function(a){this.AB=a};
g.k.zv=function(a){this.Y.zv(a)};
g.k.Qq=function(a){a.videoId&&this.w0.set(a.videoId,a)};
g.k.PS=function(){if(this.fg)for(var a=g.w(this.fg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;(c=this.fg.get(b.value))==null||c.SB()}};
g.k.Rq=function(a){this.B1=a};
g.k.Ps=function(a){if(a==null?0:a.oG)if(a=a.oG.PY){a=g.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.videoId&&this.gQ.set(b.videoId,b)}};
g.k.ma=function(a,b,c){this.ea.ma(a,b,c===void 0?!1:c)};
g.k.Pq=function(a,b,c){var d;(d=wV(this,a))==null||d.Pq(b,c)};
g.k.YB=function(a){this.q2.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,y,A,C,F,H,L;return g.J(function(N){switch(N.j){case 1:a.logger.debug("Onesie fetch started.");a.KI?a.kP.start():a.rH.start();a.Md("or_i");b=a.Y.experiments.bb("html5_onesie_verbose_timing");c={};d=(0,g.hu)();e=function(X){b&&(c[X]=(0,g.hu)()-d)};
e("loc_s");if(f=zTa(a.videoData,a.bB)){N.Ea(2);break}e("loc_async");h=g.UD(a.Y.experiments,"html5_onesie_redirector_timeout_ms");return g.G(N,ATa(a.videoData,a.bB,h),3);case 3:f=N.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new aG("onesie.unavailable.hotconfig",l),a.cj(m),N.return(a.wr);a.gN=AM(f);e("loc_e");n=g.oQ(a.Y,g.TR(a.videoData));if(!n.j){p=n.getValue();N.Ea(4);break}return g.G(N,n.j,5);case 5:p=N.B;case 4:q=p;e("oauth");r=CTa(a.playerRequest,a.Y,a.videoData,
q,VT(a.gN));g.wa(N,6);if(!HTa(a,r)){e("or_s_sync");a.uM=ETa(r,a.qH,a.Y,a.ea,a.LP.onesieUstreamerConfig,(t=a.videoData.gT)==null?void 0:t.Gp);N.Ea(8);break}e("or_s_async");return g.G(N,GTa(r,a.qH,a.Y,a.ea,a.LP.onesieUstreamerConfig,(u=a.videoData.gT)==null?void 0:u.Gp),9);case 9:a.uM=N.B;case 8:g.xa(N,7);break;case 6:return y=g.ya(N),a.logger.info("Failed to create OnesieRequestProto."),a.cj(y),N.return(a.wr);case 7:return e("or_e"),b&&a.ma("oreqvt",c),a.enableCompression=a.uM.sR.VP,a.Md("osor"),A=
$Ra(),C=g.PB(a.uM,xCa),F={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},H=a.L("html5_onesie_media_capabilities"),BTa(f,a.videoData,LTa(a),H),a.logger.debug("Starting Onesie network request."),a.jn&&a.ma("ombrs","1"),L=a.ea.U().schedule,a.Kd=new LT(a,{Gc:L,iK:a.jn,Lv:function(X,V){a.ea.LH(X,V)},
cq:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.Kd.requestNumber),a.hT=f.xe(),AOa(a.Kd,a.hT),a.Md("or_p"),a.xhr=PT(new rN(f),A,a.Kd,jP,F),a.z1.start(),N.return(a.wr)}})};
g.k.lq=function(){return 2};
g.k.Cv=function(){this.Md("orh_r")};
g.k.Qs=function(){!this.qL&&this.xhr.Ym()&&this.FS();if(this.nB&&!this.KI){var a;(a=this.tM)==null||a.start()}this.hn()};
g.k.Bn=function(a){a=a===void 0?!1:a;this.logger.debug("onXhrDone");this.hn();if(!(this.Ia()||this.state>=4)){var b=EV(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.Zf()){var d="onesie.net";b.msg=c.Zf()}else c.status>=400?d="onesie.net.badstatus":c.bz()?this.MZ||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.cj(new aG(d,b)):(this.Md("or_fs"),this.Kd.rS((0,g.hu)(),c.Ym(),0),this.yd(4),this.jn&&this.ma("rqs",b));this.jn&&this.ma("ombre",
"ok."+ +!d);this.VH=!1;GV(this);vTa(this.Cn);if(!this.KI){this.rH.stop();var e;(e=this.tM)==null||e.stop()}var f;if(a=(f=this.bB)==null?void 0:$Sa(f))for(f=0;f<a.length;f++)this.ma("pathprobe",a[f])}};
g.k.D0=function(){if(this.playerResponse&&this.xhr&&this.fg)for(var a=g.w(this.fg.entries()),b=a.next();!b.done;b=a.next())if(b=g.w(b.value),b.next(),b.next().value.B){this.xhr.abort();this.Bn(!0);break}};
g.k.U=function(){return this.Y};
g.k.L=function(a){return this.Y.L(a)};
g.k.uaa=function(){if(JTa(this)&&this.bB&&(!this.qL||this.L("html5_onesie_probe_ec_hosts"))){var a=this.bB;if(a.Y.experiments.bb("html5_onesie_probe_ec_hosts")){var b,c=(b=a.j.get(3))==null?void 0:AM(b.location);c&&vV(a,c,"osc",this);var d;(c=(d=a.j.get(4))==null?void 0:AM(d.location))&&vV(a,c,"ocy",this)}else{var e;(d=(e=a.j.get(1))==null?void 0:AM(e.location))&&vV(a,d,"o2",this);(d=(c=a.j.get(2))==null?void 0:AM(c.location))&&vV(a,d,"o3",this)}}};
g.k.Z7=function(){if(!this.Ia()&&!this.isComplete()){if(this.nB){if((0,g.hu)()-this.Kd.N>1E3){var a;(a=this.Kd)==null||a.ZL((0,g.hu)());a=EV(this);if(this.Y.Vb()&&this.xhr instanceof LOa){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.getLength();a.xdc=b.D}this.cj(new aG("net.timeout",a))}}else(0,g.hu)()-this.Kd.j>1E4&&((b=this.Kd)==null||b.ZL((0,g.hu)()),this.aR());this.isComplete()||this.kP.start()}};
g.k.aR=function(){this.logger.info("Onesie request timed out");this.VH=!1;if(!GV(this)){var a=EV(this);a.timeout="1";this.cj(new aG("onesie.request",a))}};
g.k.cj=function(a){var b=this;a=cG(a);this.nB?this.ea.Jd(a):(this.wr.reject(a),this.nB=!0);vTa(this.Cn);this.KI||this.rH.stop();this.Md("or_fe");var c,d;(c=this.bB)==null||(d=$Sa(c))==null||d.forEach(function(e){b.ma("pathprobe",e)});
this.yd(5);this.dispose()};
g.k.isComplete=function(){return this.state>=3};
g.k.s_=function(){return this.state===4};
g.k.dR=function(a){var b,c;return this.isComplete()||!!((b=this.fg)==null?0:(c=b.get(a))==null?0:c.j)};
g.k.r_=function(){return!1};
g.k.Vl=function(){return this.state===5};
g.k.notifySubscribers=function(a){for(var b=0;b<this.vI.length;b++)a&&this.vI[b].ag()!==a||KV(this.vI[b],this)};
g.k.nZ=function(){var a,b;return((a=this.uM)==null?void 0:(b=a.Pr)==null?void 0:b.yT)||0};
g.k.xa=function(){this.playerResponse="";var a;(a=this.xhr)==null||a.abort();vTa(this.Cn);this.qm.dispose();var b;(b=this.tM)==null||b.dispose();this.yd(-1);this.vI=[];g.O.prototype.xa.call(this)};
g.k.hn=function(){try{var a=this.xhr;a.Ym()>102400&&!this.l_&&(this.Md("or100k"),this.l_=!0);if(a.Ul()){var b=a.vz(),c=b.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.jn&&this.ma("ombrss","len."+c);this.qm.feed(b)}if(this.fg)for(var d=g.w(this.fg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.fg.get(f))==null||a.SB();this.notifySubscribers(f)}}catch(h){this.cj(h)}};
g.k.cn=function(){return this.Kd.requestNumber};
g.k.IQ=function(a){return this.q2.get(a)};
g.k.pZ=function(){return{sj:this.sj,Ov:this.Ov,Cq:!1}};g.z(NTa,g.O);g.k=NTa.prototype;g.k.nz=function(a,b){this.oa=void 0;dUa(this);aUa(this,a,b)};
g.k.DR=function(a){if(this.j.length===0)return!1;var b=this.j[0];return b instanceof FV?a===this.ra.getCurrentTime()*1E3:!(b instanceof kU&&JSa(b.info))&&Math.abs(b.nZ()-a)<50};
g.k.Qq=function(a){this.B=a;this.oa=(0,g.hu)()+(a.backoffTimeMs||0)};
g.k.mH=function(a,b){if(a.action===void 0){var c=this.ea.Lx();c!==void 0&&this.ra.bv(c)}else if(a.action!==0||!this.Fa)switch(c={},c.reason=a.Xda,c.action=a.action,c.requestNum=b,a.action){case 1:this.policy.G&&this.K&&this.K.mF(void 0,void 0,c);break;case 0:this.Fa=!0;this.ra.RP(c);break;case 2:this.ra.handleError("sabr.config",c,1);break;case 5:FZa(this.ea,!0);break;case 6:FZa(this.ea,!1);break;case 3:this.policy.Qb&&((a=this.manifest.Z)!=null&&(a.Z=!0),this.ra.handleError("sabr.hostfallback",c))}};
g.k.dT=function(a,b,c,d){if(this.policy.B){this.ra.ma("ssap",{rn:d,v:b,tl:fUa(a)});var e=this.ra.Ff();a={Vt:a,context:c,version:b};bUa(this,c);e?cUa(this,e,a):(this.ra.ma("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}};
g.k.lH=function(a){var b=this.policy.Aa||this.policy.B;this.ra.ma("ssap",{onsbrctxt:a.type,dflt:a.sendByDefault,enable:b?1:0});b&&bUa(this,a)};
g.k.jH=function(){};
g.k.Rq=function(a){if(a.cU!==void 0&&a.dU){var b=a.cU/a.dU;this.audioTrack.N=!1;this.videoTrack.N=!1;if(this.policy.W||this.policy.Zi||this.policy.Rn)this.ra.Mg.B=!1;this.ra.Wp(b,1);if(this.ea.getCurrentTime()!==b){var c={Xc:"sabr_seek",Es:!0,DU:!0};a.seekSource&&(c.seekSource=a.seekSource);HT(this.ra,b,c)}}};
g.k.onSnackbarMessage=function(a){this.ea.publish("onSnackbarMessage",a)};
g.k.Av=function(a){a.dL&&a.eL&&zO(this.manifest,a.dL,a.eL);this.policy.nw&&(a.r0&&a.s0&&(this.manifest.gq=a.r0/a.s0),a.b0&&a.d0&&(this.manifest.wl=a.b0/a.d0));a.BL!=null&&this.ea.fz(a.BL);this.policy.Mp&&a.pV&&(a=((0,g.hu)()-a.pV)/1E3,this.ra.YE.Cl(1,a))};
g.k.An=function(a){this.ra.An(a)};
g.k.kH=function(a,b,c){this.policy.C&&this.ra.ma("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.w(a);for(var d=a.next();!d.done;d=a.next())this.Sl.add(d.value)}if(b)for(b=g.w(b),a=b.next();!a.done;a=b.next())a=a.value,this.Sl.has(a)&&this.Sl.delete(a);if(c)for(c=g.w(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.MB=""))};
g.k.oH=function(){};
g.k.nH=function(a,b){bSa(this.policy,a,4,b)};
g.k.Ps=function(a){if(a==null?0:a.oG)if(a=a.oG.PY){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.C.get(jO(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}};
g.k.hH=function(a){(a=a==null?void 0:a.reloadPlaybackParams)&&this.ea.publish("reloadplayer",a)};
g.k.ag=function(){return this.ea.ag()||""};
g.k.tQ=function(){var a=VU(this.audioTrack,!0)*1E3,b=VU(this.videoTrack,!0)*1E3;return Math.min(a,b)};
g.k.Lk=function(a,b){this.ra.ma(a,b)};
g.k.xZ=function(a){zUa(this.ra,zQa(this.Ka,a))};
g.k.xa=function(){g.O.prototype.xa.call(this);this.B=void 0;aUa(this,!0,"i");this.j=[]};gUa.prototype.Le=function(a,b){if(this.D)return lUa(this,b);if(b=IT(a)){var c=b.B;c&&c.C&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Vl()&&a.info.oh===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};
gUa.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.z(g.OV,g.O);g.k=g.OV.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;this.policy.j||(b=BQa(this.j),CUa(this.ea,new rU(b.video,b.reason)),this.ea.Py(new rU(b.audio,b.reason)));this.manifest.isManifestless&&!this.policy.pD&&rSa(this.D);this.K&&iUa(this.K,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.ww&&(d=d||this.manifest.Wd);this.policy.Ja||(this.currentTime=d?a:b);this.policy.W&&this.seek(this.getCurrentTime(),{}).fl(function(){});
if(this.policy.j){var e;((e=this.oa)==null?0:MTa(e,this.ag()||""))&&qUa(this)&&pUa(this,this.videoTrack)&&pUa(this,this.audioTrack)&&(eUa(this.Z,this.oa),this.policy.K&&oUa(this))}else this.qa&&(rUa(this,this.videoTrack),rUa(this,this.audioTrack),JPa(this.qa),delete this.qa);c?(this.policy.Vf?(this.Bb=c,RV(this,c)):RV(this,!1),g.Fp(this.LG)):(c=this.getCurrentTime()===0,jV(this.D,this.videoTrack,this.videoTrack.j,c),jV(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.j&&QTa(this.Z,!0),this.policy.W||
this.seek(this.getCurrentTime(),{}).fl(function(){}),this.timing.tick("gv"));
(this.manifest.hf||this.manifest.Ci||this.manifest.Ka||this.manifest.Gb||this.manifest.qc)&&this.ea.KH(this.manifest)};
g.k.resume=function(){if(this.isSuspended||this.Bs){this.logger.debug("Resumed.");this.eK=this.Bs=this.isSuspended=!1;try{this.Le()}catch(a){g.px(a)}}};
g.k.BA=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("detaching media source");vUa(this);DH(this.ea)&&(this.G=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Oa&&this.ma("loader",{setsmb:1}),this.policy.Fa=!0,this.Gj()):(this.policy.Vf?RV(this,this.Bb):RV(this,!1),b||this.Gj())};
g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.Ia()){var d=!isNaN(b);c&&d&&(this.audioTrack.oa=Date.now(),this.policy.mf&&(this.Va=!0));if(this.policy.j){var e=this.B.H2(a.id,d);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.ea.Py(e)}else{var f=yQa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.ea.Py(new rU(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Pi(b),this.ma("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){this.policy.j&&(this.B.N=!0,this.nz(!0,"mosaic"));LRa(this.audioTrack,c,NaN,NaN);this.policy.Ee||yO(this.manifest,c,!1);return}this.ea.wp()}};
g.k.setPlaybackRate=function(a){a!==this.W.getPlaybackRate()&&this.W.setPlaybackRate(a)};
g.k.gM=function(a){var b=a.j.info.cg();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+FG(a.j.info)});
b?this.ea.Py(a):CUa(this.ea,a)};
g.k.xZ=function(a){HN(a.gb[a.gb.length-1])&&zUa(this,zQa(this.j,a.gb[0].j))};
g.k.Bu=function(){return this.ea.Bu()};
g.k.KK=function(){return this.ea.KK()};
g.k.An=function(a){if(this.policy.Nj)if(a.uj===1)this.ea.QC(0);else{if(a.uj===2||a.uj===3){var b=!1;if(a.uj===3){b=this.ea.Ho();var c;this.qc=(c=a.l2)!=null?c:Infinity;this.ea.QC(b+1);(b=qSa(this))&&this.LB(!0)}this.ea.aT(!0,b)}}else this.ea.An(a)};
g.k.UA=function(){return this.ea.UA()};
g.k.Ml=function(){return this.ea.Ml()};
g.k.fT=function(a){this.ea.fT(a)};
g.k.Kda=function(){var a,b=(a=this.ea.Ge())==null?void 0:a.getCurrentTime();b?this.ea.ma("rms",{cta:b}):g.Fp(this.Tb)};
g.k.Le=function(){yUa(this);if(this.Pa&&UG(this.Pa)&&!this.Pa.Jk()&&(!this.policy.Ja||isFinite(this.getCurrentTime()))){var a=QU(this.videoTrack);a=this.policy.yE&&a&&a.Ri();this.manifest.isManifestless&&this.manifest.D&&uO(this.manifest)?(this.G=uO(this.manifest),this.Pa.qr(this.G)):AO(this.manifest)&&!a?isNaN(this.G)?(this.G=this.getCurrentTime()+3600,this.Pa.qr(this.G)):this.G<=this.getCurrentTime()+1800&&(this.G=Math.max(this.G+1800,this.getCurrentTime()+3600),this.Pa.qr(this.G)):this.Pa.isView||
(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.G)||this.G!==a)&&a>0&&(this.Pa.qr(a),this.G=a))}if(!this.Ia())if(tO(this.manifest)&&this.manifest.Vl()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.Ya?{rc:b.Cg}:{rc:b.Cg.toString()},1)}else if(this.policy.j)a:{try{YTa(this.Z);this.manifest.isManifestless&&this.policy.K&&GT(this.Mg);if(uUa(this)&&this.Pa&&!EH(this.Pa)&&this.videoTrack.Ka&&this.audioTrack.Ka){this.ma("ssap",{delaysb:1,v:this.videoTrack.j.info.id,
vf:this.videoTrack.j.info.jb,a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.jb});var c=this.Pa,d=this.videoTrack.j,e=this.audioTrack.j;!EH(c)&&e&&d&&(Axa(c,d.info,e.info,this.policy.ge),wUa(this,c))}var f;((f=this.Pa)==null?0:EH(f))&&this.nC();this.policy.j||QV(this);QTa(this.Z)}catch(l){g.qx(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)}TUa(this);g.Fp(this.ib)}else if(!this.manifest.B||
!PRa(this.videoTrack)&&!PRa(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Bb?c=!1:(this.Gj(),this.ea.seekTo(Infinity,{Xc:"checkLoaderTracksSync",Wp:!0}),c=!0),!c){yUa(this);this.manifest.isManifestless&&(QRa(this.videoTrack),QRa(this.audioTrack),GT(this.Mg),(c=IT(this.videoTrack))&&c.B&&(c=c.B.C&&!this.policy.Bk,this.ma(c===this.policy.N.xj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.xj,dfs:this.policy.Bk},!0)));if(this.Pa)this.nC();else if(this.policy.D){var h;c=!1;if(this.policy.fD)for(d=
g.w([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=IT(f);e&&f.kp()!==QU(f);e=IT(f))f.kt(e);c=c||!!e}else(b=IT(this.videoTrack))&&this.videoTrack.kt(b),(h=IT(this.audioTrack))&&this.audioTrack.kt(h);SU(this.videoTrack)&&SU(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&JV(this)}QV(this);jV(this.D,this.videoTrack,this.videoTrack.j,!1);jV(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.Iz||BUa(this,this.videoTrack,
this.audioTrack);jSa(this.D,this.videoTrack,this.audioTrack);jSa(this.D,this.audioTrack,this.videoTrack);TUa(this);this.K&&(b=this.K,b.D?(h=b.K+b.policy.Vw,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.wl)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.Fp(this.Bc,b));g.Fp(this.ib)}};
g.k.RP=function(a){this.ea.RP(a)};
g.k.nC=function(){var a=this;if(this.Pa){var b=this.Pa.j,c=this.Pa.B;YUa(this,this.audioTrack);YUa(this,this.videoTrack);var d=EUa(this);if(d){if(this.policy.Gt){if(!b.Fx()){var e=IT(this.audioTrack);if(e){if(!NV(this,this.audioTrack,b,e.info))return;HUa(this,this.audioTrack,b,e)}}if(!c.Fx()&&(e=IT(this.videoTrack))){if(!NV(this,this.videoTrack,c,e.info))return;HUa(this,this.videoTrack,c,e)}}this.Vp||(this.Vp=(0,g.hu)(),this.logger.debug(function(){return"Appends pause start "+a.Vp+" reason "+d}),
this.policy.C&&this.ma("apdps",{r:d}))}else if(this.Vp&&(DUa(this,this.Vp),this.Vp=0),FUa(this),e=!1,this.policy.B&&bV(this.videoTrack)||!LUa(this,this.videoTrack,c)||(e=!0,XPa(this.timing),aQa(this.timing)),this.Pa&&!this.Pa.Rg()&&(this.policy.B&&bV(this.audioTrack)||!LUa(this,this.audioTrack,b)||(e=!0,YPa(this.timing),bQa(this.timing)),!this.Ia()&&this.Pa)){if(!this.policy.ib&&SU(this.videoTrack)&&SU(this.audioTrack)&&UG(this.Pa)&&!this.Pa.Jk()){c=!1;
c=QU(this.audioTrack);if(this.policy.B){var f;b=(f=this.ub)==null?void 0:zT(f,c.Me*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"),Bxa(this.Pa),EJa(this.schedule))}e&&!this.Pa.isAsync()&&JV(this)}}};
g.k.p6=function(a){var b=this,c,d=a===((c=this.Pa)==null?void 0:c.j)?this.audioTrack:this.videoTrack,e;(e=d.Ca)==null||e.stop();var f;if((f=IT(d))==null?0:f.isLocked){if(this.ea.U().Vb()){var h;this.ma("eosl",{ounlock:(h=IT(d))==null?void 0:h.info.vc()})}var l;RUa(this,a===((l=this.Pa)==null?void 0:l.j))}var m;if(this.policy.mf&&a===((m=this.Pa)==null?void 0:m.j)&&this.Ya){c=this.Ya-this.getCurrentTime();var n;this.ea.ma("asl",{l:c,xtag:(n=QU(this.audioTrack))==null?void 0:n.j.info.j});this.Va=!1;
this.Ya=0}a.qn()&&a.ke().length===0&&(a.oA(),this.Pa&&!this.Pa.qn()&&(this.ea.U().Vb()&&this.ea.ma("rms",{ld:"seek"}),this.Pa.K=performance.now(),this.ea.fQ(),this.ea.U().Vb()&&g.Fp(this.Tb)));if(d.W)CU(d.W,0);else if(this.policy.Ua&&this.Pa){d=a===this.Pa.j;var p=a.RF();if(p){if(!p.Ob||p.Oe)d=a.pc({a:d}),d.omt=(this.getCurrentTime()+this.zc()).toFixed(3),d.to=this.zc(),this.ma("sbu",d),this.policy.Sp&&p.Ri()&&!JG(a.ke(),Math.min(p.Me+hV,p.Rf))&&this.ma("sbunb",{st:p.Me,et:p.Rf});p.Oe&&!a.Jk()&&setTimeout(function(){var q=
a.ke(),r=IG(q,p.startTime+hV),t=IG(q,b.getCurrentTime());(r<0||r!==t)&&b.ma("sbu_mismatch",{b:HG(q),c:b.getCurrentTime(),s:p.vc()})},0)}}this.Le()};
g.k.Saa=function(a){if(this.Pa){var b=QU(a===this.Pa.j?this.audioTrack:this.videoTrack);if(a=a.JQ())for(var c=0;c<a.length;c++)this.ma("appendedbuffer",{i:c,b:g.pc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=KN(b),this.policy.B&&this.ub&&this.ub.Nl()&&(a.ccid=this.ub.Nl()));this.handleError("fmt.unplayable",a,1)}};
g.k.Qy=function(a){this.ea.Qy(a)};
g.k.kM=function(a,b,c){this.manifest.isManifestless&&yRa(this,b,c,!!a.info.video,!0)};
g.k.RS=function(a,b,c,d){a.info.video&&this.C.RS(b,c,d)};
g.k.hM=function(a){this.j.hM(a)};
g.k.bG=ba(18);g.k.hI=function(a){this.ub=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.ra.ma("ssap",{addcacheclips:1,v:b.N.version,tl:fUa(b.N.Vt)}),cUa(b,a,b.N),b.N=void 0)};
g.k.Ff=function(){return this.ub};
g.k.wG=function(){return this.videoTrack.N||this.audioTrack.N};
g.k.seek=function(a,b){if(this.Ia())return Ki();if(this.wG())return Ki("seeking to head");if(this.policy.W&&!isFinite(a))return sOa(this.Mg),Ji(Infinity);yUa(this);this.Iq=(0,g.hu)();this.policy.j||QV(this,a);this.Pa&&this.Pa.j&&this.Pa.B&&!this.ea.getVideoData().u_&&(this.Pa.j.isLocked()||this.Pa.B.isLocked())&&this.ea.wp({reattachOnLockedBuffer:1,vsb:""+this.Pa.B.isLocked(),asb:""+this.Pa.j.isLocked()});var c=this.getCurrentTime(),d=this.Mg.seek(a,b);this.policy.Ja||(this.currentTime=d);pU(this.C,
a,c,this.policy.Qw&&!b.Es);JV(this);return Ji(d)};
g.k.DR=function(a){return this.policy.j&&this.Z.DR(a)};
g.k.nz=function(a,b){this.Z.nz(a,b)};
g.k.getCurrentTime=function(){if(this.policy.Ja){var a=this.zc()||0;return this.ea.getCurrentTime()-a}return this.currentTime};
g.k.sQ=function(){return this.audioTrack.j.info};
g.k.Ex=function(){return this.videoTrack.j.info};
g.k.rQ=function(){return this.audioTrack.j.info.jb};
g.k.uQ=function(){return this.videoTrack.j.info.jb};
g.k.xa=function(){try{this.BA(),DT(this.audioTrack),DT(this.videoTrack),aV(this.audioTrack),aV(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.O.prototype.xa.call(this)}catch(a){g.px(a)}};
g.k.handleError=function(a,b,c){c=c===void 0?0:c;var d=bG(c);a==="fmt.unplayable"&&this.manifest.isLive&&(this.policy.Gt=!1,xO(this.manifest));b=new aG(a,b,c);g.Wa(this);$F(b.details);this.ea.handleError(b);a!=="html5.invalidstate"&&b.errorCode!=="fmt.unplayable"&&a!=="fmt.unparseable"&&d&&this.dispose()};
g.k.pc=function(){var a=QU(this.audioTrack),b=QU(this.videoTrack);a={lct:this.getCurrentTime().toFixed(3),lsk:this.Mg.isSeeking(),lmf:this.j.j.isLocked(),lbw:EP(this.schedule).toFixed(3),lhd:CP(this.schedule).toFixed(3),lst:((this.schedule.K.Qg()||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:""+TU(this.audioTrack),lvq:""+TU(this.videoTrack)};this.Pa&&!this.Pa.Rg()&&this.Pa.j&&this.Pa.B&&(a.lab=
HG(this.Pa.j.ke()),a.lvb=HG(this.Pa.B.ke()));this.Vp&&(a.lapt=((0,g.hu)()-this.Vp).toFixed(0),a.lapr=EUa(this));this.Fa&&(a.lapmabht=((0,g.hu)()-this.Fa).toFixed(0),a.lapmabh=iV(this,this.audioTrack).toFixed(0));this.Ka&&(a.lapmvbht=((0,g.hu)()-this.Ka).toFixed(0),a.lapmvbh=iV(this,this.videoTrack).toFixed(0));this.Ja&&(a.lapsdai=((0,g.hu)()-this.Ja).toFixed(0));return a};
g.k.Gj=function(){try{this.policy.j&&this.Z.nz(!1,"pending"),this.audioTrack.Gj(),this.videoTrack.Gj()}catch(a){g.px(a)}this.policy.D=""};
g.k.mQ=function(){return wT(this.W)};
g.k.ma=function(a,b,c){this.ea.ma(a,b,c===void 0?!1:c)};
g.k.ag=function(){return this.ea.ag()};
g.k.Wp=function(a,b){a/=b;isNaN(this.timestampOffset)&&ZUa(this,a-Math.min(a,this.policy.FG));return(a-this.timestampOffset)*b};
g.k.zc=function(){return this.timestampOffset};
g.k.isSeeking=function(){return this.Mg.isSeeking()};
g.k.Px=function(){this.C.Px()};
g.k.Cp=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?{}:c;this.policy.j?this.B.Cp(a,b,c):this.j.Cp(a,b,c)};
g.k.ZH=function(a,b){if(!this.N)return!1;var c=this.videoTrack.j.index.Pi(a);return this.N.ZH(a,b,c)};
g.k.nt=function(a,b){if(this.N&&this.C.nt(a,this.N))return ZUa(this,this.timestampOffset-b),JV(this),this.policy.G&&(xO(this.manifest),aV(this.audioTrack),aV(this.videoTrack),this.Gj()),!0;b=this.videoTrack.j.index.Pi(a);this.handleError("ad.skipfailed",{dec:!!this.N,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.LH=function(a,b){this.ea.LH(a,b)};
g.k.zC=function(a){if(this.policy.Op)this.policy.j&&this.Z.nz(!0,"utc"),this.Le();else{var b=this.ea.getVideoData().Ii;if(b){var c=this.D;c.Eh=a;c.Ii=b;lV(this)}}};
g.k.bv=function(a){this.videoTrack.N=!1;this.audioTrack.N=!1;this.Mg.B=!1;this.ea.bv(a)};
g.k.qU=function(a){this.Mg.qU(a-this.zc())};
g.k.XE=function(){this.ea.XE()};
g.k.LB=function(a){a!==this.policy.hh&&((this.policy.hh=a)||this.Le())};
g.k.JT=function(a,b){var c=this.audioTrack.Pb,d=this.videoTrack.Pb;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.wp=function(a){this.ea.wp(a)};
g.k.lz=function(a){this.ea.lz(a)};
g.k.Ho=function(){return this.ea.Ho()};g.k=g.TV.prototype;g.k.JA=function(a,b,c,d,e,f){return this.Yc.JA(a,b,c,d,e,f)};
g.k.TK=function(a,b,c,d,e,f){return this.Yc.TK(a,b,c,d,e,f)};
g.k.NQ=function(a){return this.Yc.NQ(a)};
g.k.WK=function(a){this.Yc.WK(a)};
g.k.mF=function(a,b,c){return this.Yc.mF(a,b,c)};
g.k.Px=function(){this.Yc.Px()};
g.k.ZH=function(a,b,c){return this.Yc.ZH(a,b,c)};
g.k.Rv=function(a,b){this.Yc.Rv(a,b)};
g.k.VT=function(){this.Yc.VT()};
g.k.NF=ba(38);g.k.Ql=function(a,b,c){this.Yc.Ql(a,b,c)};
g.k.HI=ba(40);g.k.ZS=function(a,b,c,d,e,f,h,l,m){this.Yc.ZS(a,b,c,d,e,f,h,l,m)};
g.k.sU=function(a){this.Yc.sU(a)};
g.k.xv=function(a){return this.Yc.xv(a)};
g.k.TP=function(a){return this.Yc.TP(a)};g.z(UV,g.Qx);g.z(VV,UV);VV.prototype.K=function(a,b){if(a&&b){var c=Number(ij(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.Sg(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Fp(this.B))}};
VV.prototype.G=function(){for(var a=g.w(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(Zi),f=[],h=g.w(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.lg(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 HU(d,"fairplay",!0))}this.j={}};
VV.prototype.xa=function(){this.j={};UV.prototype.xa.call(this)};g.z(WV,UV);
WV.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&this.j.length>0)for(var c=g.w(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.hu)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.w(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?cVa(this,a):this.D||(this.j.push({time:b+c,info:a}),g.Fp(this.B,c))}};
WV.prototype.xa=function(){this.j=[];UV.prototype.xa.call(this)};var H2={},kVa=(H2.DRM_TRACK_TYPE_AUDIO="AUDIO",H2.DRM_TRACK_TYPE_SD="SD",H2.DRM_TRACK_TYPE_HD="HD",H2.DRM_TRACK_TYPE_UHD1="UHD1",H2);g.z(gVa,g.O);g.z(mVa,g.Qx);g.k=mVa.prototype;g.k.Oq=function(a){var b=this;this.Ia()||a.size<=0||(a.forEach(function(c,d){var e=JO(b.B)?d:c;d=new Uint8Array(JO(b.B)?c:d);JO(b.B)&&DVa(d);c=g.pc(d,4);DVa(d);d=g.pc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),yVa(this,","),XV(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.Ia()||(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)})));bG(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Fa&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.j={};g.Qx.prototype.xa.call(this)};
g.k.pc=function(){var a={ctype:this.W.contentType||"",length:this.W.initData.length,requestedKeyIds:this.Ca,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.getInfo=function(){var a=this.D.join();if(YV(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.xe=function(){return this.url};g.z(ZV,g.O);g.k=ZV.prototype;g.k.q6=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.Oq=function(){this.N&&this.N(this.j.keyStatuses)};
g.k.onClosed=function(){this.Ia()||g.us("xboxone")&&this.C&&this.C("closed")};
g.k.Z0=function(a){this.G&&this.G(a.message,"license-request")};
g.k.Y0=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.X0=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(hP.isActive()?hP.Iv("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,yL(function(c){FVa(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 ks()};
g.k.xa=function(){this.j&&(this.W?this.j.close().catch(g.qx):this.j.close());this.element=null;g.O.prototype.xa.call(this)};g.z($V,g.O);g.k=$V.prototype;g.k.UO=function(){var a=this;if(this.j.keySystemAccess)return(hP.isActive()?hP.Iv("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ia())if(a.B=c,hP.isActive())hP.Iv("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;(d=a.element)==null||d.setMediaKeys(c)}});
if(IO(this.j))this.C=new (HO())(this.j.keySystem);else if(KO(this.j)){this.C=new (HO())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else hP.isActive()&&this.ma("emev",{v:"01b"}),gt(this.G,this.element,["keymessage","webkitkeymessage"],this.t6),gt(this.G,this.element,["keyerror","webkitkeyerror"],this.s6),gt(this.G,this.element,["keyadded","webkitkeyadded"],this.r6);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.Dm?this.B.setServerCertificate(this.j.Dm):MO(this.j)&&this.j.Va?this.B.setServerCertificate(this.j.Va):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();LO(this.j)?c=GVa(c,this.j.Va):MO(this.j)&&(c=bVa(c)||new Uint8Array(0));b&&b("genreq");var e=hP.isActive()?hP.Iv("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new ZV(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},yL(function(l){FVa(f,"t.generateRequest",l)}));
return f}if(IO(this.j))return IVa(this,c);if(KO(this.j))return HVa(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 ZV(this.element,this.j,c,null,null,this.N)};
g.k.t6=function(a){var b=JVa(this,a);b&&b.Z0(a)};
g.k.s6=function(a){var b=JVa(this,a);b&&b.Y0(a)};
g.k.r6=function(a){var b=JVa(this,a);b&&b.X0(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.w(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.O.prototype.xa.call(this);delete this.element};g.k=aW.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.Vb(this.keys,function(b){return g.ic(a,b)})};g.z(MVa,g.Qx);g.k=MVa.prototype;g.k.uba=function(a){this.Aj({onecpt:1});a.initData&&PVa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.Tba=function(a){this.Aj({onndky:1});PVa(this,a.initData,a.contentType)};
g.k.Qy=function(a){this.Aj({onneedkeyinfo:1});this.Y.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));OVa(this,a)};
g.k.zX=function(a){this.C.push(a);bW(this)};
g.k.createSession=function(a){var b=RVa(this)?ZQa(a):g.pc(a.initData);this.B.get(b);this.Ca=!0;a=new mVa(this.videoData,this.Y,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.eM,this);a.subscribe("keystatuseschange",this.Oq,this);a.subscribe("licenseerror",this.iM,this);a.subscribe("newlicense",this.U0,this);a.subscribe("newsession",this.V0,this);a.subscribe("sessionready",this.m1,this);a.subscribe("fairplay_next_need_key_info",this.O0,this);this.Y.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.kV,this);this.Y.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Jca,this);qVa(a,this.D)};
g.k.U0=function(a){this.Ia()||(this.Aj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
g.k.V0=function(){this.Ia()||(this.Aj({newlcssn:1}),this.C.shift(),this.Ca=!1,bW(this))};
g.k.m1=function(){if(IO(this.j)&&(this.Aj({onsnrdy:1}),this.Ka--,this.Ka===0)){var a=this.oa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}};
g.k.Oq=function(a){if(!this.Ia()){!this.Ja&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(SVa(this),this.Ja=!0);this.Aj({onksch:1});var b=this.kV;if(!YV(a)&&g.Lu&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(YV(a))for(var e=g.w(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(!YV(a)||d)c=a.D;c=xVa(c)}b.call(this,c);this.publish("keystatuseschange",
a)}};
g.k.eM=function(a,b){this.Ia()||this.publish("ctmp",a,b)};
g.k.O0=function(a,b){this.Ia()||this.publish("fairplay_next_need_key_info",a,b)};
g.k.iM=function(a,b,c,d){this.Ia()||(this.videoData.L("html5_log_drm_metrics_on_error")&&SVa(this),this.publish("licenseerror",a,b,c,d))};
g.k.Hx=function(){return this.Z};
g.k.kV=function(a){var b=g.hM("auto",a,!1,"l");if(this.videoData.ql){if(gM(this.Z,b))return}else if(BDa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.Aj({updtlq:a})};
g.k.Jca=function(a){this.videoData.sabrLicenseConstraint=a};
g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Aa?this.element.setMediaKeys(null).catch(g.qx):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.w(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.eM,this),b.unsubscribe("keystatuseschange",this.Oq,this),b.unsubscribe("licenseerror",this.iM,this),b.unsubscribe("newlicense",this.U0,this),b.unsubscribe("newsession",this.V0,this),b.unsubscribe("sessionready",this.m1,this),b.unsubscribe("fairplay_next_need_key_info",
this.O0,this),this.Y.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.kV,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.Qx.prototype.xa.call(this)};
g.k.pc=function(){for(var a={systemInfo:this.j.pc(),sessions:[]},b=g.w(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.pc());return a};
g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
g.k.Aj=function(a,b){b=b===void 0?!1:b;this.Ia()||($F(a),(this.Y.Vb()||b)&&this.publish("ctmp","drmlog",a))};g.z(XVa,g.O);g.k=XVa.prototype;g.k.jK=function(){return!!this.EG};
g.k.uL=function(){return this.B};
g.k.handleError=function(a){var b=this;dWa(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!cWa(this,a.errorCode,a.details))&&!hWa(this,a)){if(this.Ba.oa!=="yt"&&fWa(this,a)&&this.videoData.Kq&&(0,g.hu)()/1E3>this.videoData.Kq&&this.Ba.oa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Kq;c.init=this.videoData.dX/1E3;c.now=(0,g.hu)()/1E3;c.systelapsed=((0,g.hu)()-this.videoData.dX)/1E3;
a=new aG(a.errorCode,c,2);this.ea.Qf(a.errorCode,2,"SIGNATURE_EXPIRED",$F(a.details))}if(bG(a.severity)){var d;c=(d=this.ea.ra)==null?void 0:d.j.j;if(this.Ba.L("html5_use_network_error_code_enums"))if(eWa(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Ba.K||a.errorCode!=="auth"||a.details.rc!==429)a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED");else{e="TOO_MANY_REQUESTS";var f="6"}else eWa(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ba.K||a.errorCode!=="auth"||
a.details.rc!=="429"?a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",f="6");this.ea.Qf(a.errorCode,a.severity,e,$F(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Jd(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.hu)(),vT(a,"manifest",function(h){b.K=!0;b.ma("pathprobe",h)},function(h){b.Jd(h.errorCode,
h.details)}))}};
g.k.ma=function(a,b){this.ea.Sb().ma(a,b)};
g.k.Jd=function(a,b){b=$F(b);this.ea.Sb().Jd(a,b)};kWa.prototype.tK=function(a,b){return(b===void 0?0:b)?{tT:a?fW(this,a):ZQ,x8:a?sWa(this,a):ZQ,cfa:a?qWa(this,a):ZQ,cga:a?yWa(this,a.videoData):ZQ,T8:a?zWa(this,a.videoData,a):ZQ,dfa:a?oWa(this,a):ZQ}:{tT:a?fW(this,a):ZQ}};
kWa.prototype.L=function(a){return this.Y.L(a)};g.z(gW,g.O);gW.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(oeb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
gW.prototype.send=function(){if(!(this.C||this.j<0)){CWa(this);var a=g.QK(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Pg;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.U(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.U(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.U(this.playerState,16)||g.U(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.U(this.playerState,1)&&g.U(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.U(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.U(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.U(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=MZa[DR(this.provider.videoData)];a:switch(this.provider.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=DWa(this.provider),
f=this.B<0?a:this.B-this.j;a=this.provider.Y.Vf+36E5<(0,g.hu)();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.CR(this.provider.videoData),isGapless:this.provider.videoData.W,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:gR(this.provider.videoData)};a||g.Qt("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
gW.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.WB);window.removeEventListener("unhandledrejection",this.WB);g.O.prototype.xa.call(this)};
var oeb=/\bnet\b/;g.z(FWa,g.O);FWa.prototype.xa=function(){g.O.prototype.xa.call(this);HWa(this)};var IWa=/[?&]cpn=/;var OWa=[2,5,30];g.nW=Ci(function(){var a="";try{var b=g.qh("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.z(g.kW,g.O);g.k=g.kW.prototype;g.k.k$=function(){var a=g.QK(this.provider);SWa(this,a)};
g.k.QF=function(){return this.Ka};
g.k.WF=function(){return{pC:this.pC,qC:this.qC}};
g.k.gI=function(a,b){this.pC=a;this.qC=b};
g.k.fz=function(a){if(!this.Gb){this.Gb=!0;var b="";switch(a){case 1:b="proximaui";break;case 2:b=OLa(this.provider.videoData)?"proximawpcc":this.provider.videoData.L("html5_enable_proxima")||this.provider.videoData.L("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:b="proximaauto"}b!==""&&mW(this,b)}};
g.k.KH=function(a){this.j.lwc=[[a.hf?a.hf.toFixed():"",a.Ci?a.Ci.toFixed():"",a.Ka?(a.Ka*1E3).toFixed():"",a.Gb?(a.Gb*1E3).toFixed():"",a.qc?(a.qc*1E3).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.Ia()&&(a=a>=0?a:g.QK(this.provider),["PL","B","S"].indexOf(this.Ie)>-1&&(!g.Sg(this.j)||a>=this.G+30)&&(g.jW(this,a,"vps",[this.Ie]),this.G=a),!g.Sg(this.j))){this.sequenceNumber===7E3&&g.qx(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){lW(this,a);var b=a,c=this.provider.ea.dG(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.pC,h=e&&!this.qC;d>c.totalVideoFrames||f>5E3?ZWa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(f>0||h)&&g.jW(this,b,"df",[f]);this.pC=d;this.qC=e;this.W>0&&(g.jW(this,a,"glf",[this.W]),this.W=0);s2.isActive()&&(a=s2.MY(),Object.keys(a).length>0&&this.ma("profile",a));this.Kb&&mW(this,"lwnmow");this.provider.Y.Vb()&&this.provider.L("html5_record_now")&&this.ma("now",{wt:(0,g.hu)()});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.oa&&(a.addocid=this.oa);this.contentCpn&&(a.ccpn=this.contentCpn);this.Aa&&(a.cdocid=this.Aa);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=PR(this.provider.videoData);a.content_v=RR(this.provider.videoData);a.ns=this.provider.Y.oa;a.fexp=oJa(this.provider.Y.experiments).toString();a.cl=(683840428).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=DR(this.provider.videoData))&&(a.live=b);this.provider.videoData.Qi()&&
(a.drm=1,this.provider.videoData.G&&(a.drm_system=eeb[this.provider.videoData.G.flavor]||0),this.provider.videoData.ll&&(a.drm_product=this.provider.videoData.ll));Nr()&&this.provider.videoData.K&&(a.ctt=this.provider.videoData.K,a.cttype=this.provider.videoData.On,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.AV&&(a.dai_fallback=
"1")):this.provider.videoData.Ed?a.dai="cs":this.provider.videoData.zG&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.o0){if(b=this.provider.videoData.o0,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Nd.has(b.ns)&&mW(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.w(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.le.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;
this.isEmbargoed&&(a.embargoed="1");g.$g(a,this.provider.Y.j);if(b=a.seq)b={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+b,serializedWatchEndpointLoggingContext:this.provider.videoData.e5},this.serializedHouseBrandPlayerServiceLoggingContext&&(b.serializedHouseBrandPlayerServiceLoggingContext=rc(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn),iW.length&&(b.decoderInfo=
iW),this.provider.ea.Ff()&&(b.transitionStitchType=4,this.Ca&&(b.timestampOffsetMsecs=this.Ca)),this.remoteControlMode&&(b.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices),b=g.PB(b,YCa),b=g.pc(b,4),this.j.qclc=[b];a=g.gj("//"+this.provider.Y.Wn+"/api/stats/qoe",a);c=b="";d=g.w(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.qx(new g.At("Stats report key has invalid value",e)):(e=
"&"+e+"="+this.j[e].join(","),e.length>100?c+=e:b+=e);VWa(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.lz=function(a){this.Kb=a};
g.k.O2=function(){if(this.provider.videoData.G){var a=this.provider.videoData.G;mW(this,"eme-"+(a.keySystemAccess?"final":IO(a)?"ms":LO(a)?"ytfp":KO(a)?"safarifp":"nonfinal"))}};
g.k.cC=function(a){var b=g.QK(this.provider);if(!this.provider.Y.experiments.bb("html5_refactor_sabr_video_format_selection_logging")||a.j.id!==this.Ua){var c=[a.j.id,a.B,this.Ua,a.reason];a.token&&c.push(a.token);g.jW(this,b,"vfs",c);this.Ua=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.eQ();d>1&&c.push(d);g.jW(this,b,"view",c)}this.Ya||(this.provider.Y.Vb()&&mW(this,"rqs2"),this.provider.videoData.j&&oM(this.provider.videoData.j)&&
(this.j.preload=["1"]));this.C=this.Ya=!0}a.reason==="m"&&++this.ge===100&&$Wa(this,2);g.jW(this,b,"vps",[this.Ie]);this.reportStats(b)};
g.k.UB=function(a){var b=g.QK(this.provider);if(this.provider.Y.experiments.bb("html5_refactor_sabr_audio_format_selection_logging")){b=a.j;var c=[b.audio&&b.video?b.UL?b.UL:"":b.id];b.Yb&&b.Yb.id&&c.push(b.Yb.id);b=c.join(";");b!==this.N&&(c=[b,this.N,a.reason],a.token&&c.push(a.token),g.jW(this,g.QK(this.provider),"afs",c),this.N=b)}else a.j.id!==this.N&&(c=[a.j.id,this.N,a.reason],a.token&&c.push(a.token),g.jW(this,b,"afs",c),this.N=a.j.id)};
g.k.yv=ba(43);g.k.qp=function(a){this.isEmbargoed=a};
g.k.qj=ba(29);g.k.Xk=ba(33);g.k.onPlaybackRateChange=function(a){var b=g.QK(this.provider);a&&a!==this.jd&&(g.jW(this,b,"rate",[a]),this.jd=a);this.reportStats(b)};
g.k.gp=ba(25);g.k.getPlayerState=function(a){if(g.U(a,128))return"ER";if(g.U(a,2048))return"B";if(g.U(a,512))return"SU";if(g.U(a,16)||g.U(a,32))return"S";if(a.isOrWillBePlaying()&&g.U(a,64))return"B";var b=peb[VH(a)];g.hE(this.provider.Y)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.U(a,4)&&(b="PB");return b};
g.k.xa=function(){g.O.prototype.xa.call(this);g.Xr(this.K);g.Xr(this.Qb)};
g.k.TM=function(a){this.isOffline=a;g.jW(this,g.QK(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.ma=function(a,b,c){var d=this.j.ctmp||[],e=this.Ad.indexOf(a)!==-1;e||this.Ad.push(a);if(!c||!e){var f=typeof b!=="string"?$F(b):b;f=aXa(f);if(!c&&!/^t[.]/.test(f)){var h=g.QK(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;WWa(this);return h}};
g.k.JH=function(a,b,c){this.D={vea:Number(this.ma("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),y0:a,dea:b,isAd:c}};
g.k.ez=function(a,b,c){g.jW(this,g.QK(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.Y.Vb()&&this.ma("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?XWa(this):this.K=g.Vr(function(){a.reportStats()},1E4)};
var I2={},peb=(I2[5]="N",I2[-1]="N",I2[3]="B",I2[0]="EN",I2[2]="PA",I2[1]="PL",I2[-1E3]="ER",I2[1E3]="N",I2),iW=[];dXa.prototype.AQ=function(){return this.j};
dXa.prototype.update=function(){if(this.N){var a=this.provider.ea.wK(this.provider.videoData.clientPlaybackNonce)||0,b=g.QK(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||gXa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Jq+2||gXa(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.W,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||this.D>=0||(this.W=c,this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(qW(this),this.C=
a);this.Jq=b;this.j=a}}};hXa.prototype.send=function(a){var b=this;if(!this.Va){var c=jXa(this),d=g.gj(this.uri,c);this.Y.L("vss_through_gel_double")&&kXa(d);this.Aa&&!this.Y.L("html5_simplify_pings")?pXa(this,d):iXa(this,a).then(function(e){b.Aa&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});MWa(d,e,{token:b.oa,VU:b.rb,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.Ca,b.isFinal&&b.Uf||b.Fa||b.C&&b.Vf)});
this.Va=!0}};
hXa.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()};
var J2={},nXa=(J2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,J2.LIVING_ROOM_APP_MODE_MAIN=1,J2.LIVING_ROOM_APP_MODE_KIDS=2,J2.LIVING_ROOM_APP_MODE_MUSIC=3,J2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,J2.LIVING_ROOM_APP_MODE_GAMING=5,J2),K2={},mXa=(K2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,K2.EMBEDDED_PLAYER_MODE_DEFAULT=1,K2.EMBEDDED_PLAYER_MODE_PFP=2,K2.EMBEDDED_PLAYER_MODE_PFL=3,K2);g.z(sW,g.O);g.k=sW.prototype;g.k.Eg=function(){this.j.update();xXa(this)&&(rXa(this),sXa(this),this.Ft())};
g.k.xa=function(){g.O.prototype.xa.call(this);vW(this);eXa(this.j)};
g.k.pc=function(){return jXa(tW(this,"playback"))};
g.k.Ft=function(){this.provider.videoData.N.eventLabel=PR(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.Y.playerStyle;this.provider.videoData.Nj&&(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.Nj;a.isAd=b};
g.k.Oi=function(a){var b=tW(this,"engage");b.qa=a;return lXa(b,DXa(this.provider))};CXa.prototype.isEmpty=function(){return this.endTime===this.startTime};xW.prototype.L=function(a){return this.Y.L(a)};
xW.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Ff();if(b&&(a=a||b.Nl()))return H_(b,a)}else if(g.oR(this.videoData)){var c=this.ea.Ff();if(c)return a=this.ea.getCurrentTime(),c=(((b=zT(c,a*1E3))==null?void 0:b.gm)||0)/1E3,a-c}return this.ea.getCurrentTime()};
xW.prototype.rg=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Ff();if(b&&(a=a||b.Nl()))return H_(b,a)}else if(g.oR(this.videoData)){var c=this.ea.Ff();if(c)return a=this.ea.rg(),c=(((b=zT(c,a*1E3))==null?void 0:b.gm)||0)/1E3,a-c}return this.ea.rg()};
var EXa={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.z(g.yW,g.O);g.k=g.yW.prototype;g.k.Eg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Og){var a;(a=this.C.get(this.Og))==null||a.Eg()}else this.j&&this.j.Eg()};
g.k.qp=function(a){this.qoe&&this.qoe.qp(a)};
g.k.qj=ba(28);g.k.Xk=ba(32);g.k.Jd=function(a,b){this.qoe&&ZWa(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.cC=function(a){this.qoe&&this.qoe.cC(a)};
g.k.UB=function(a){this.qoe&&this.qoe.UB(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&qW(this.j.j)};
g.k.yv=ba(42);g.k.ma=function(a,b,c){this.qoe&&this.qoe.ma(a,b,c)};
g.k.JH=function(a,b,c){this.qoe&&this.qoe.JH(a,b,c)};
g.k.fz=function(a){var b;(b=this.qoe)==null||b.fz(a)};
g.k.KH=function(a){var b;(b=this.qoe)==null||b.KH(a)};
g.k.lz=function(a){this.qoe&&this.qoe.lz(a)};
g.k.ez=function(a,b,c){this.qoe&&this.qoe.ez(a,b,c)};
g.k.gp=ba(24);g.k.QF=function(){if(this.qoe)return this.qoe.QF()};
g.k.pc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Og){var a,b;return(b=(a=this.C.get(this.Og))==null?void 0:a.pc())!=null?b:{}}return this.j?this.j.pc():{}};
g.k.WF=function(){var a;return(a=this.qoe)==null?void 0:a.WF()};
g.k.gI=function(a,b){var c;(c=this.qoe)==null||c.gI(a,b)};
g.k.Oi=function(a){return this.j?this.j.Oi(a):function(){}};
g.k.Ft=function(){this.j&&this.j.Ft()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.z(AW,g.O);
AW.prototype.TJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!FXa(d))this.B.ma("ssap",{rlc:a}),QXa(this,a);else return}if(!this.j.has(a)){d=new xW(b,this.Y,this.ea);var e=Math.round(g.QK(this.B.provider)*1E3);d=new g.yW(d,e);FXa(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.Aa=h}GXa(d);c===2&&(this.Y.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.Qb||"",e=
b.breakType||0,b=b.videoId||"",f=this.Y.oa||"yt",g.jW(c,g.QK(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.ez(a,b.Qb||"",b.breakType||0))}};
AW.prototype.Sb=function(a){a=a||this.Og;return this.j.get(a)||this.B};g.z(BW,g.O);g.k=BW.prototype;
g.k.qf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.yF("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.w(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.jc(b.array,d,b.j);a=g.w(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.vp=function(a){a.length>1E4&&g.qx(new g.At("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ia()){for(var b=g.w(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)});
XXa(this.j,d);this.sync()}};
g.k.yF=function(a,b){var c=(isNaN(this.C)?g.U(this.K(),2)?0x8000000000000:this.W()*1E3:this.C)-b;b=this.Ml().filter(function(d){return d.namespace===a&&d.end<c});
this.vp(b);return b};
g.k.Ml=function(){return this.Ia()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.G.stop();this.j.array=[];this.B=[];this.sync()};
g.k.kf=function(a){var b=this.Ml().filter(function(c){return c.namespace===a});
this.vp(b);return b};
g.k.bL=function(a){return this.Ml().some(function(b){return b.namespace===a})};
g.k.Ez=function(a,b){var c=[],d=UXa(this.j,0x7ffffffffffff),e=[];this.D("ssap",{mecrs:d.length,cpn:b});d=g.w(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.nK(e));$Xa(this,c);c=[];b=[];d=g.w(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.pK(b));$Xa(this,c);return e.length};
g.k.nK=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.pK=function(a){var b=[];if(!a.length)return b;a.sort(g.LE);a=g.w(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.k_(),this.Z=!1,a--;this.K().isPlaying()&&(a=WXa(this.j,this.C),!isNaN(a)&&a<0x7ffffffffffff&&(a=(a-this.C)/this.Aa(),this.G.start(a)))}};
g.k.k_=function(){if(this.started&&!this.Ia()){this.G.stop();var a=this.K();g.U(a,32)&&this.qa.start();for(var b=g.U(this.K(),2)?0x8000000000000:this.W()*1E3,c=g.U(a,2),d=[],e=[],f=g.w(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.pK(e));f=e=null;c?(a=UXa(this.j,0x7ffffffffffff),e=a.filter(function(l){return l.end<0x8000000000000}),f=VXa(this.j)):a=this.C<=b&&UH(a)?TXa(this.j,this.C,b):UXa(this.j,b);
d=d.concat(this.nK(a));e&&(d=d.concat(this.pK(e)));f&&(d=d.concat(this.nK(f)));this.C=b;$Xa(this,d)}};
g.k.xa=function(){this.B=[];this.j.array=[];g.O.prototype.xa.call(this)};
g.p_.oL(BW,{qf:"crmacr",nK:"crmncr",pK:"crmxcr",k_:"crmis",vp:"crmrcr"});DW.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
DW.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)};
DW.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.z(FW,g.Qx);FW.prototype.Eq=function(){return this.Z};
FW.prototype.Fo=function(){return this.policy.N&&this.videoData.j?this.videoData.j.wl:Math.max(this.K()-HW(this)*this.j,this.videoData.Vc())};g.z(KW,g.O);KW.prototype.Le=function(){var a=this,b=this.ea.Ge(),c=this.ea.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=c.state===8&&d>this.j,f=g.U(c,8)&&g.U(c,16),h=this.ea.ej().isBackground()||c.isSuspended();LW(this,this.kb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&Ixa(b,this.j);var m=!d||Math.abs(d-this.j)>10,n=this.Y.L("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),p=d===0&&this.B&&[11,10].includes(this.B);LW(this,this.rb,l&&m&&!h&&(!n||!p),e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&JG(b.Kh(),this.j);var q=this.ea.ra;l=!q||!q.policy.ib;var r=function(){b.seekTo(a.j+.001)};
LW(this,this.Ua,m&&l&&!h,e,"qoe.slowseek",r,"jiggle_cmt");l=function(){return SV(a.ea)};
LW(this,this.Va,m&&!h,e,"qoe.slowseek",l,"new_elem");m=UH(c);n=c.isBuffering();var t=b.Kh(),u=IG(t,d),y=u>=0&&t.end(u)>d+5,A=m&&n&&y;p=this.ea.getVideoData();LW(this,this.Ta,d<.002&&this.j<.002&&f&&g.hE(this.Y)&&g.QR(p)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");LW(this,this.oa,p.Oj()&&f&&!h&&!p.Aa,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");LW(this,this.Aa,A&&!h,m&&!n,"qoe.longrebuffer",r,"jiggle_cmt");LW(this,this.Ca,A&&!h,m&&!n,"qoe.longrebuffer",l,"new_elem_nnr");if(q){var C=q.getCurrentTime();
f=b.Mx();f=wxa(f,C);f=!q.isSeeking()&&d===f;LW(this,this.Tb,m&&n&&f&&!h,m&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(C)},"seek_to_loader")}f={};
r=IG(t,Math.max(d-3.5,0));A=r>=0&&d>t.end(r)-1.1;var F=r>=0&&r+1<t.length?t.start(r+1)-t.end(r):9999;f.mindex=u;f.disIndex=r;f.isdisc=r>=0&&A&&F<11;f.close2edge=A;f.gapsize=F;f.buflen=t.length;this.B&&(f.seekSour=this.B);if(r=this.ea.Ff()){A=r.Nl();F=A!==zT(r,d*1E3).clipId;var H=g.UD(this.Y.experiments,"html5_ssap_skip_seeking_offset_ms"),L=(yT(r,A)+H)/1E3;LW(this,this.Ja,F&&m&&n&&!h,m&&!n,"qoe.longrebuffer",function(){b.seekTo(L)},"ssap_clip_not_match")}LW(this,this.Fa,m&&n&&!h,m&&!n,"qoe.longrebuffer",
function(){},"timeout",f);
f=c.isSuspended();f=PV(this.ea)&&!f;LW(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Gg("ad")},"ads_preroll_timeout");
r=d-this.D<.5;var N;f=!((N=this.ea.Ff())==null||!N.Tl());F=(A=p.isAd()||f&&this.Y.experiments.bb("html5_ssap_skip_slow_ad"))&&m&&!n&&r;N=function(){var X=a.ea,V=g.oR(X.videoData)&&X.ub,ca=X.bd.Qc();(ca&&X.videoData.isAd()&&ca.getVideoData().Ed===X.getVideoData().Ed||!X.videoData.If)&&!V?X.Qf("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+X.videoData.videoId):jR(X.videoData,"html5_ssap_skip_slow_ad")&&V&&X.ub.Tl()&&(X.Jd(new aG("ssap.transitionfailure",{cpn:zT(X.ub,X.rg()).clipId,pcpn:X.ub.Nl(),
cmt:X.rg()})),X=X.ub,V=X.ea.rg(),(V=K6a(X,V))&&G6a(X,V.Ni()/1E3))};
LW(this,this.Kb,F,!F,"ad.rebuftimeout",N,"skip_slow_ad");r=A&&n&&JG(b.Kh(),d+5)&&r;LW(this,this.Bb,r&&!h,!r,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.U(c,64)&&!h;LW(this,this.Gb,N,e,"qoe.start15s",function(){},"timeout");
N=!!q&&!q.Pa&&c.isOrWillBePlaying();LW(this,this.Ka,N,e,"qoe.start15s",l,"newElemMse");N=MG(t,0);r=g.U(c,16)||g.U(c,32);r=!h&&c.isOrWillBePlaying()&&n&&!r&&(g.U(c,64)||d===0)&&N>5;LW(this,this.ib,g.QR(p)&&r,m&&!n,"qoe.longrebuffer",function(){a.ea.wp()},"reset_media_source");
LW(this,this.Ya,g.QR(p)&&r,m&&!n,"qoe.longrebuffer",l,"reset_media_element");this.D===0&&(this.K=d);r=n&&this.j===0&&d>1&&d===this.K;LW(this,this.Oa,g.QR(p)&&r,m&&!n,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
h=c.isOrWillBePlaying()&&!h;y=mX(this.ea)-d<6&&!y&&this.ea.Nu();LW(this,this.Z,p.Oj()&&h&&n&&y,m&&!n,"qoe.longrebuffer",function(){SV(a.ea,!1,!0)},"handoff_end_long_buffer_reload");
q=(q==null?void 0:$Ua(q))||NaN;q=t.length>1||!isNaN(q)&&q-.1<=d;LW(this,this.W,vR(p)&&h&&n&&q,m&&!n,"qoe.longrebuffer",l,"gapless_slice_append_stuck");q=u>=0&&t.end(u)>=2;h=vR(p)&&this.ea.l3&&q&&!p.Aa&&h&&(n||g.U(c,8)&&g.U(c,16));LW(this,this.qa,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);LW(this,this.Qb,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.D=d;this.G.start()}};
KW.prototype.Jd=function(a,b,c){b=this.pc(b);b.wn=c;b.wdup=this.C[a]?"1":"0";this.ea.Jd(new aG(a,b));this.C[a]=!0};
KW.prototype.pc=function(a){a=Object.assign(this.ea.pc(!0),a.pc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.zc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
IW.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
IW.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.hu)();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};
IW.prototype.pc=function(){var a={},b=(0,g.hu)();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.z(qYa,g.O);g.k=qYa.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.ST()||this.seekTo(.01,{Xc:"seektimeline_setupMediaElement"})),MW(this)):OW(this)};
g.k.getCurrentTime=function(){if(NW(this.ea)){if(!isNaN(this.B))return this.B}else if(!isNaN(this.B)&&isFinite(this.B))return this.B;return this.mediaElement&&EYa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.Lx=function(){return this.Ya};
g.k.rg=function(){return this.getCurrentTime()-this.zc()};
g.k.Fo=function(){return this.j?this.j.Fo():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return GW(this.j,a)};
g.k.Eq=function(){return!!this.j&&this.j.Eq()};
g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.GI===void 0?!1:c.GI;var d=c.cV===void 0?0:c.cV;var e=c.Vx===void 0?!1:c.Vx;var f=c.WU===void 0?0:c.WU;var h=c.Xc===void 0?"":c.Xc;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.Wp===void 0?!1:c.Wp;var n=c.Es===void 0?!1:c.Es;c=c.DU===void 0?!1:c.DU;m&&(a+=this.zc());gR(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.Ya=void 0);m=a<this.Ka&&!!this.ra;var p=gR(this.videoData)&&n;if(m&&!p&&(this.ea.ma("sdai",{sk2bk:a.toFixed(3),
mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Ka.toFixed(3)}),this.Ka=NaN,this.timestampOffset-=1E3,(p=this.ra)!=null)){ZUa(p,p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(y in q.j){var t=q.j[y].index,u=t.Gx();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.N&&p.N.VT();pU(p.C,0,0,!0)}var y=a;(p=gR(this.videoData))&&n?y=!0:(q=this.L("html5_always_allow_sqless_sync")&&this.videoData.Wb(),
(p||q)&&h==="chunkSelectorSynchronize"?y=!0:(p=!isFinite(y)||(this.j?GW(this.j,y):y>=this.Vd())||!g.IR(this.videoData),p||(y={st:y,mst:this.Vd()},this.j&&this.L("html5_high_res_seek_logging")&&(y.ht=this.j.Fo(),y.adft=jYa(this.j)),this.ea.ma("seeknotallowed",y)),y=p));if(!y)return this.C&&(this.C=null,BYa(this)),Ji(this.getCurrentTime());y=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(a-this.B)<=y&&this.qa)return this.G;h&&(y=a,(this.Y.Vb()||this.L("html5_log_seek_reasons"))&&
this.ea.ma("seekreason",{reason:h,tgt:y}));l&&(this.Ca.B=l);this.qa&&OW(this);this.G||(this.G=new HH);a&&!isFinite(a)&&uYa(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.zl()>0&&JH(this.mediaElement)>0)||nR(this.videoData)&&this.Vc()===this.Vd(!1)?0:isFinite(h)||!nR(this.videoData)));h||(a=QW(this,a,e));a&&!isFinite(a)&&uYa(this,!1);this.D=a;this.Ua=f;this.B=a;this.W=0;this.j&&(e=this.j,f=a,kYa(e,f,!1),lYa(e,
f));e=this.ea;f=a;h={GI:b,seekSource:l};e.Oc.D=f;c=e.SE;c.mediaTime=f;c.j=!0;h.GI&&EZa(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Rr&&h&&isFinite(f)&&oZa(e);f<e.Vd()-.01&&(h=RH(e.playerState,2),g.U(h,8)&&(h=RH(h,4)),e.Ec(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Ta.start(d):(b={Es:n,seekSource:l},this.qa=!0,pYa(this,b)));(b=this.ea.Rr)&&a>b.start&&oZa(this.ea);return this.G};
g.k.Vd=function(a){if(!this.videoData.isLivePlayback)return a_a(this.ea);var b;return WR(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),qMa(this.df(a)*1E3)+a):this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gR(this.videoData)&&this.videoData.j?a?this.videoData.j.qa||0:this.videoData.j.wl||0:nR(this.videoData)&&this.videoData.Ja&&this.videoData.j?this.videoData.j.Vd()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&
this.j?this.j.Fo():a_a(this.ea)+this.timestampOffset:this.mediaElement?xs()?qMa(this.mediaElement.kJ().getTime()):JH(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.Vc=function(){if(g.oR(this.videoData)){var a=this.ea;g.oR(a.videoData);var b,c;return(c=(b=a.ub)==null?void 0:b.Vc())!=null?c:a.videoData.Vc()}if(this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gR(this.videoData)){var d;return((d=this.videoData.j)==null?void 0:d.gq)||0}b=this.videoData?this.videoData.Vc()+this.timestampOffset:this.timestampOffset;return WR(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a=
this.getCurrentTime(),a=this.df(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.fQ=function(){this.G||this.seekTo(this.D,{Xc:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.wG=function(){return this.qa&&!isFinite(this.B)};
g.k.xa=function(){vYa(this,null);this.Ca.dispose();g.O.prototype.xa.call(this)};
g.k.pc=function(){var a={};this.ra&&Object.assign(a,this.ra.pc());this.mediaElement&&Object.assign(a,this.mediaElement.pc());return a};
g.k.eT=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return nR(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.zc=function(){return this.timestampOffset};
g.k.df=function(a){return this.videoData&&this.videoData.j?this.videoData.j.df(a-this.timestampOffset):NaN};
g.k.Ix=function(){if(!this.mediaElement)return 0;if(JR(this.videoData)){var a=this.mediaElement,b=a.Kh();a=(LG(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Vc();b=this.Vd()-this.Vc();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Ix()};
g.k.Py=function(a){this.K&&(this.K.j=a)};
g.k.zC=function(a,b){this.ea.ma("requestUtcSeek",{time:a});gR(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Ya=a);var c;(c=this.ra)==null||c.zC(a);b&&(this.Aa=b)};
g.k.bv=function(a){gR(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Ya=void 0);if(this.Aa)this.ea.ma("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Aa}),this.ea.seekTo(this.Aa,{Xc:"utcSeekingFallback_streamTime"}),this.Aa=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.df(b)-a,b-=a,this.ea.ma("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{Xc:"utcSeekingFallback_estimate"}))}};
g.k.XE=function(){this.Aa=0};
g.k.L=function(a){return this.Y&&this.Y.L(a)};g.z(SW,g.O);SW.prototype.start=function(){this.B.start()};
SW.prototype.stop=function(){this.B.stop()};
SW.prototype.clear=function(){for(var a=g.w(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
SW.prototype.sample=function(){for(var a=g.w(this.C),b=a.next();!b.done;b=a.next()){var c=g.w(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new KYa(qeb.has(b)));this.j.get(b).update(c())}this.B.start()};
var qeb=new Set(["networkactivity"]);KYa.prototype.update=function(a){this.j?(this.buffer.add(a-this.xB||0),this.xB=a):this.buffer.add(a)};
KYa.prototype.clear=function(){this.buffer.clear();this.xB=0};VW.prototype.Ru=function(){return this.started};
VW.prototype.start=function(){this.started=!0};
VW.prototype.reset=function(){this.finished=this.started=!1};var PYa=!1;g.z(g.ZW,g.Qx);g.k=g.ZW.prototype;g.k.xa=function(){this.logger.debug("dispose");g.Xr(this.FM);WVa(this.Nf);this.visibility.unsubscribe("visibilitystatechange",this.Nf);dZa(this);dX(this);g.xp.wk(this.Zy);this.Zj();this.Of=null;g.vg(this.videoData);g.vg(this.Jl);g.vg(this.VO);g.vg(this.yJ);g.wg(this.Jaa);this.Rr=null;g.Qx.prototype.xa.call(this)};
g.k.ez=function(a,b,c,d,e){if(this.Y.L("html5_log_ad_playback_docid")){var f=this.Sb();if(f.qoe){f=f.qoe;var h=this.Y.oa||"yt";g.jW(f,g.QK(f.provider),"ad_playback",[a,b,c,e,h])}}else this.Sb().ez(a,b,c);this.L("html5_log_media_perf_info")&&this.ma("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.rQ=function(){var a;return(a=this.ra)==null?void 0:a.rQ()};
g.k.uQ=function(){var a;return(a=this.ra)==null?void 0:a.uQ()};
g.k.Ex=function(){var a;return(a=this.ra)==null?void 0:a.Ex()};
g.k.sQ=function(){var a;return(a=this.ra)==null?void 0:a.sQ()};
g.k.Qi=function(){return this.videoData.Qi()};
g.k.SA=function(){return this.GB};
g.k.TJ=function(){!this.FB||this.FB.Ia();this.FB=new g.yW(new xW(this.videoData,this.Y,this));this.GB=new AW(this.Y,this,this.FB)};
g.k.getVideoData=function(){return this.videoData};
g.k.U=function(){return this.Y};
g.k.tK=function(a){return this.Sk.tK(this.Of,a===void 0?!1:a)};
g.k.Sb=function(a){if(a)a:{for(var b=this.GB,c=g.w(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.GB.Sb();return a};
g.k.ej=function(){return this.visibility};
g.k.Ge=function(){return this.mediaElement};
g.k.lP=function(){if(this.videoData.isLoaded()){var a=this.Jl;g.UD(a.Ba.experiments,"html5_player_min_build_cl")>0&&g.UD(a.Ba.experiments,"html5_player_min_build_cl")>683840428&&gWa(a,"oldplayer");jZa(this)}else this.videoData.Ej||this.videoData.Lp?this.Ou&&g.hE(this.Y)&&this.videoData.isLivePlayback||(this.videoData.Ej?NLa(this.videoData):(a=this.Sb(),a.qoe&&(a=a.qoe,mW(a,"protected"),a.provider.videoData.G?a.O2():a.provider.videoData.subscribe("dataloaded",a.O2,a)),LLa(this.videoData))):!this.videoData.loading&&
this.V7&&fZa(this)};
g.k.hI=function(a){this.ub=a;this.ra&&this.ra.hI(a)};
g.k.RA=ba(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.U(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.hN(!0),dZa(this),g.xp.wk(this.Zy))};
g.k.Fp=function(){KXa(this.Sb())};
g.k.Qf=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.Qg(Gdb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+bB());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.CY[h]||"",ZP:h,zo:f||"",QM:d,EA:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;cX(this,"dataloaderror");this.Ec(PH(this.playerState,128,b));g.xp.wk(this.Zy);dX(this);this.tp()};
g.k.Gg=function(a){this.Tq=this.Tq.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
g.oR(this.videoData)&&!this.Lo()&&this.Hb.pg("pl_pr");this.Ts.Ru()&&hZa(this)};
g.k.Lo=function(){var a;(a=!!this.Tq.length)||(a=this.Ih.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a};
g.k.Eq=function(){return this.Oc.Eq()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.tG=function(){return this.playerState.tG()&&this.videoData.jk};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Of){var a=this.Of;a=a.videoData.nD.compose(a.videoData.z0);a=kM(a)}else a="auto";return a};
g.k.TF=ba(19);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.ht(this.kD),this.mediaElement=a,this.mediaElement.ea=this,HZa(this),this.Oc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Zj();if(!this.playerState.isError()){var b=RH(this.playerState,512);g.U(b,8)&&!g.U(b,2)&&(b=QH(b,1));a.isView()&&(b=RH(b,64));this.Ec(b)}this.mediaElement=
a;this.mediaElement.ea=this;kQ(this.Y)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);HZa(this);this.Oc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Jl.jK()&&Exa(this.mediaElement)}};
g.k.Zj=function(a,b,c){a=a===void 0?!1:a;b=b===void 0?!1:b;c=c===void 0?!1:c;this.logger.debug("remove media element");if(this.mediaElement){var d=this.getCurrentTime();d>0&&(this.Oc.D=d);this.Oc.setMediaElement(null);!a&&DH(this)?xZa(this):jX(this,c);this.ra&&(JV(this.ra),iX(this,b));this.zy.stop();if(this.mediaElement&&(!this.Ts.Ru()||this.playerState.isError()||g.U(this.playerState,2)||this.Ec(QH(this.playerState,512)),this.mediaElement)){g.ht(this.kD);if(a||!this.mediaElement.isView())this.Hb.Xv("mesv_s"),
this.mediaElement.stopVideo(),lX(this);this.mediaElement=this.mediaElement.ea=null}}};
g.k.playVideo=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;var c=this,d,e,f,h,l,m;return g.J(function(n){if(n.j==1){c.logger.debug("start play video");c.L("html5_enable_ssap_autoplay_debug_logging")&&c.ma("ssap",{playv:a});var p=window.google_image_requests;p&&p.length>10&&(window.google_image_requests=p.slice(-10));if(g.U(c.playerState,128))return n.return();if(c.Jl.uL())return c.publish("signatureexpired"),n.return();c.mediaElement&&zW(c.Sb());nZa(c);(g.U(c.playerState,64)||a)&&c.Ec(QH(c.playerState,
8));return c.Ts.finished&&c.mediaElement?c.Of||!c.tH?n.Ea(2):g.G(n,c.tH,3):n.return()}if(n.j!=2&&g.U(c.playerState,128))return n.return();if(!c.videoData.C)return c.videoData.isLivePlayback&&!g.oP(c.Y.G,!0)?(d="html5.unsupportedlive",e=2):(d=c.videoData.Qi()?"fmt.unplayable":"fmt.noneavailable",e=1),g.qx(Error("selectableFormats")),c.Qf(d,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),n.return();if(c.zi()&&c.videoData.C.j)return c.logger.debug("rebuild playbackData for airplay"),n.return(bX(c));
if(NW(c))p=c.Oc,lR(p.videoData)?!p.isAtLiveHead(p.getCurrentTime())&&p.Eq()&&p.ea.seekTo(Infinity,{Xc:"seektimeline_peggedToLive",seekSource:34}):g.oR(p.videoData)&&p.getCurrentTime()<p.Vc()&&p.ea.seekTo(p.Vc(),{Xc:"seektimeline_outOfWindow"});else if(lR(c.videoData)){if(f=c.getCurrentTime()<c.Vc()-15,h=g.IR(c.videoData)&&c.playerState.isPaused(),l=g.U(c.playerState,1024),p=c.Oc,p.videoData.Wb()&&tMa(p.videoData)||l||!f&&!h||(h?(c.logger.debug("seek to head for live because of live-only"),c.seekTo(Infinity,
{Xc:"videoplayer_unpauseLiveOnly",seekSource:102})):(c.logger.debug("seek to min seekable for live because of out of window"),c.seekTo(c.Vc(),{Xc:"videoplayer_outOfWindow",seekSource:102}))),!c.isAtLiveHead(void 0,!0)&&c.Eq()&&(c.logger.debug("seek to head for live because pegged to live"),m={Xc:"videoplayer_peggedToLive",seekSource:34},c.seekTo(Infinity,m)),g.U(c.playerState,256)&&c.videoData.Aa&&c.Oc.wG())return c.Ec(SH(c.playerState,8,4)),n.return()}else g.oR(c.videoData)&&c.getCurrentTime()<c.Vc()-
0&&c.seekTo(c.Vc(),{Xc:"videoplayer_outOfWindow"});g.U(c.playerState,4)&&g.U(c.playerState,16)&&c.Ec(SH(c.playerState,9,4));if(YW(c,b))return QZa(c),n.return();PZa(c);g.va(n)})};
g.k.wp=function(a){this.logger.debug("reset media source");a&&this.Jd(new aG("qoe.restart",a));this.Ec(QH(this.playerState,2048));jX(this);a=this.videoData.j&&rM(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.ra&&tUa(this.ra),SV(this)):(YW(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.k.wu=function(){if(!this.Of)return[];var a=mWa(this.Sk,this.Of,this.Hx());return this.Of.j.wu(a)};
g.k.KF=function(){if(!this.Of)return[];var a=mWa(this.Sk,this.Of,this.Hx());return this.Of.j.KF(a)};
g.k.Hx=function(){var a=this.Fe?this.Fe.Hx():ILa(this.videoData)&&this.videoData.j&&rM(this.videoData.j)?this.videoData.ql?ZQ:KVa:ZQ;this.ZT&&(a=a.compose(aeb));return a};
g.k.BK=function(){var a=this.ag(),b=this.bd.xd().videoId;return this.bd.fv.BK(a)||this.bd.fv.BK(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?kM(this.videoData.nD):jM[RL()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){var c=this.videoData.Vf;this.L("html5_kabuki_drm_live_51_default_off")&&(c=this.getUserAudio51Preference());c!==a&&(this.ma("toggle51",{pref:a}),this.videoData.Vf=a,g.lt("yt-player-audio51",a,b?31536E3:2592E3),cW(this))};
g.k.getUserAudio51Preference=function(){if(this.L("html5_kabuki_drm_live_51_default_off"))return this.videoData.getUserAudio51Preference();var a=1;gQ(this.Y)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return(b=g.mt("yt-player-audio51"))!=null?b:a};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.ma("proxima",{pref:a});g.lt("yt-player-proxima-pref",a,31536E3);b!==a&&(a=this.Oc,a.ib=!0,a.ea.seekTo(Infinity,{Xc:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return(a=SL())!=null?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.II=function(){this.videoData.videoId?this.bd.II(this.videoData):this.ma("piavid",{})};
g.k.getAvailableAudioTracks=function(){return g.oR(this.videoData)&&this.ub?N6a(this.ub).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(tZa(this)){var a=vZa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.VG=function(){if(gR(this.videoData)&&!this.videoData.Wb()&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;(a=this.ra)!=null&&a.Le()}};
g.k.BA=function(a){a=a===void 0?!1:a;if(this.ra){var b=this.ra,c=b.BA;var d=this.videoData;d=d.L("html5_ssdai_use_post_for_media")&&d.enableServerStitchedDai?!1:nR(d)&&d.If&&!d.isAd();c.call(b,d,a)}};
g.k.Yr=function(){return this.Pa};
g.k.Qy=function(a){this.logger.debug("onNeedKeyInfo");this.iC.set(a.initData,a);this.Fe&&(this.Fe.Qy(a),this.L("html5_eme_loader_sync")||this.iC.remove(a.initData))};
g.k.fT=function(a){this.videoData.oD=g.hM("auto",a,!1,"u");XW(this)};
g.k.Py=function(a){var b=a.reason,c=a.j.info,d=a.token,e=a.videoId,f=this.Sb(e),h=g.oR(this.videoData)?f.getVideoData():this.videoData;if(c!==h.D){var l=!h.D;h.D=c;b!=="m"&&b!=="t"&&(b=l?"i":"a");var m=b==="m"||b==="t";this.Y.experiments.bb("html5_refactor_sabr_audio_format_selection_logging")?this.NE=new jWa(h,c,b,"",d,e):f.UB(new jWa(h,c,b,"",d));this.publish("internalaudioformatchange",h,!l&&m)}this.Oc.Py(a.j.index)};
g.k.jM=function(a){this.publish("localmediachange",a)};
g.k.Cp=function(a){a=a===void 0?{}:a;var b;(b=this.ra)==null||b.Cp(this.Y,JLa(this.videoData),a)};
g.k.uL=function(){return this.Jl.uL()};
g.k.handleError=function(a){this.Jl.handleError(a)};
g.k.jK=function(){return this.Jl.jK()};
g.k.bv=function(a){this.Oc.bv(a)};
g.k.pauseVideo=function(a){a=a===void 0?!1:a;if((g.U(this.playerState,64)||g.U(this.playerState,2))&&!a)if(g.U(this.playerState,8))this.Ec(SH(this.playerState,4,8));else if(this.tG())YW(this);else return;g.U(this.playerState,128)||(a?this.Ec(QH(this.playerState,256)):this.Ec(SH(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.IR(this.videoData)&&this.ra&&iX(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.ra&&(iX(this,!1),this.ra.Gj())};
g.k.tp=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;if(DH(this)&&b){var c;(c=this.mediaElement)==null||c.tp()}else{var d;(d=this.mediaElement)==null||d.stopVideo()}lX(this);dX(this);g.U(this.playerState,128)||(a?this.Ec(RH(RH(QH(this.playerState,4),8),16)):this.Ec(PH(this.playerState)));this.videoData.videoId&&this.Y.Ka.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.U(this.playerState,2)&&YW(this);b.wpa&&this.Ec(QH(this.playerState,2048));b.seekSource!==58&&b.seekSource!==60||!this.L("html5_update_vss_during_gapless_seeking")||IXa(this.Sb(),b.seekSource);this.Oc.seekTo(a,b);this.Ih.sync()};
g.k.cM=function(){this.publish("onAbnormalityDetected")};
g.k.getCurrentTime=function(){return this.Oc.getCurrentTime()};
g.k.Lx=function(){return this.Oc.Lx()};
g.k.rg=function(){return this.Oc.rg()};
g.k.wK=function(a){return this.ub&&(a=a||this.ub.Nl())?H_(this.ub,a):this.rg()};
g.k.Fo=function(){return this.Oc.Fo()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.zc())};
g.k.QA=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.QA());return a>=0?a:this.getCurrentTime()};
g.k.df=function(){var a;return((a=this.videoData.j)==null?0:a.df)?this.videoData.j.df(this.getCurrentTime()-this.zc()):this.mediaElement&&(a=this.mediaElement.kJ())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(a){return g.oR(this.videoData)&&this.ub?a?M6a(this.ub,a):IV(this.ub):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.zc():this.Vd()?this.Vd():0};
g.k.ZF=function(){var a=new PXa;this.ra?(HJa(this.Y.schedule,a,this.Y.Vb()),UUa(this.ra,a)):this.mediaElement&&(a.ix=KH(this.mediaElement));a.Ct=this.Ct;a.Yv=this.Yv;a.C=this.isAtLiveHead()&&this.isPlaying()?$Ya(this):NaN;return a};
g.k.LH=function(a,b){this.Yv+=a;this.Ct+=b};
g.k.Ix=function(){return this.mediaElement?g.IR(this.videoData)?1:JR(this.videoData)?this.isAtLiveHead()||this.Eq()?1:this.Oc.Ix():this.mediaElement.Ix():0};
g.k.pc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.Sb().pc());this.mediaElement&&(Object.assign(b,this.mediaElement.pc()),Object.assign(b,this.dG()));this.ra&&Object.assign(b,this.ra.pc());this.Fe&&(b.drm=JSON.stringify(this.Fe.pc()));b.state=this.playerState.state.toString(16);g.U(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Pg));this.Lo()&&(b.prerolls=this.Tq.join(","));this.videoData.jd&&(b.ismb=this.videoData.jd);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.bd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
wO(this.videoData.j)&&(b.segduration=wO(this.videoData.j)),a=this.Oc,b.lat=a.K?dYa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Qj.toFixed(3);if(a=g.gX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=RL();b.release_version="youtube.player.web_20241008_01_RC00";g.oR(this.videoData)&&this.ub&&(b.ssap=nV(this.ub))}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.cA([a])};
g.k.removeCueRange=function(a){this.Ih.vp([a])};
g.k.yF=function(a,b){return this.Ih.yF(a,b)};
g.k.cA=function(a,b){this.Ih.qf(a,b)};
g.k.OH=function(a){this.Ih.vp(a)};
g.k.Ml=function(){return this.Ih.Ml()||[]};
g.k.zi=function(){return this.visibility.zi()};
g.k.Qv=function(){this.mediaElement&&this.mediaElement.Qv()};
g.k.oda=function(){cX(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.rM=function(a){var b=a.target.ri();if(this.mediaElement&&this.mediaElement.ri()&&this.mediaElement.ri()===b){XZa(this,a.type);switch(a.type){case "error":var c=MH(this.mediaElement)||"",d=this.mediaElement.Zf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.ma("capchg",{msg:d}),SV(this,!0)):bX(this);return}if(this.mediaElement.hasError()&&(cWa(this.Jl,c,{msg:d})||g.oR(this.videoData)&&this.ub&&(d=this.playerState.Pg,this.ub.handleError(c,d==null?void 0:d.EA))))return;
if(this.isBackground()&&this.mediaElement.Mh()===4){this.tp();eX(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Pa||c>0)&&c!==1&&this.qr(c);break;case "ratechange":this.ra&&this.ra.setPlaybackRate(this.mediaElement.getPlaybackRate());YXa(this.Ih);this.Sb().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":ZZa(this);this.publish("onLoadedMetadata");JZa(this);c=this.df();this.videoData.qD&&(this.videoData.qD=c);break;
case "loadstart":JZa(this);break;case "progress":case "suspend":this.Rc();this.publish("onLoadProgress",this,this.Ix());break;case "playing":this.Hb.Xv("plev");this.eU&&!NW(this)&&(this.eU=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Xc:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.zl()===0;if(c&&(!this.XL||d))return;this.XL=this.XL||!!this.mediaElement.getCurrentTime();
IZa(this);this.Rc();if(!this.mediaElement||this.mediaElement.ri()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.Mx().length>0&&this.mediaElement.Kh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.ra)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.zl()>2||!this.mediaElement.isSeeking()&&JG(this.mediaElement.Kh(),this.mediaElement.getCurrentTime()))&&
(c=this.mediaElement.pc(),c.bh=KH(this.mediaElement).toFixed(3),this.ma("uwe",c));g.oR(this.videoData)&&this.ub&&G6a(this.ub,this.mediaElement.getCurrentTime());break;case "resize":ZZa(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.KX&&g.U(this.playerState,8)&&!g.U(this.playerState,1024)&&this.getCurrentTime()===0&&g.$t){eX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.ri()===
b){HYa(this.Oc,a,this.ub||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.SE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.oR(this.videoData)&&this.ub?IV(this.ub):void 0;if(!g.U(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.U(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.U(b,
4)&&!CW(d,l);if(m||f&&l)e.HK()>0&&e.ri()&&(h=14);else switch(a.type){case "error":MH(e)&&(h|=128);break;case "pause":g.U(b,256)?(h^=256)||(h=64):g.U(b,32)||g.U(b,2)||g.U(b,4)||(h=4,g.U(b,1)&&g.U(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,OH(d,e,!0)):CW(d,e.getCurrentTime())&&(h&=-2);g.U(b,1)&&OH(d,e)&&(h|=1);break;case "seeking":h|=16;g.U(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;OH(d,e,!0);break;case "waiting":g.U(b,2)||(h|=1);OH(d,e);break;case "timeupdate":l=g.U(b,16),f=
g.U(b,4),(g.U(b,8)||l)&&!f&&CW(d,e.getCurrentTime())&&(h=8),OH(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=MH(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.pc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.Zf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.CY[f]||"",ZP:f,QM:$F(m),EA:l,cpn:b.Pg?b.Pg.cpn:""}):h=null,h&&(h.cpn=c));b=PH(b,d,h)}!g.U(this.playerState,1)&&g.U(b,1)&&VZa(this,"evt"+a.type);this.Ec(b)}}};
g.k.Oaa=function(a){a=a.j.availability==="available";a!==this.pG&&(this.pG=a,this.publish("airplayavailabilitychange"))};
g.k.Paa=function(){var a=(0,g.hu)(),b=this.mediaElement.zi();this.ma("airplay",{ia:b});!b&&!isNaN(this.wL)&&a-this.wL<2E3||(this.wL=a,b!==this.zi()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Nf()),this.ma("airplay",{rbld:b}),cW(this)),this.publish("airplayactivechange"))};
g.k.eG=function(a){if(this.ra){var b=this.ra,c=b.C,d=b.getCurrentTime(),e=Date.now()-c.W;c.W=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.N)&&c.B!==3&&jQa(c.ra,d,c.N,c.G);c.policy.G?c.C=NaN:c.D=NaN;nU(c,4,c.B===3?"adfps":"adf");JV(b)}};
g.k.Rc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){yYa(this.Oc,this.isPlaying());var c=this.getCurrentTime();!this.ra||g.U(this.playerState,4)&&g.IR(this.videoData)||gR(this.videoData)&&g.U(this.playerState,32)||WUa(this.ra,c);this.L("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&NZa(this,c,this.videoData.lengthSeconds);c>5&&(this.Oc.D=c);var d=g.It();d?g.xp.wk(this.Zy):g.Wr(this.Zy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||WR(this.videoData))&&
!g.U(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.U(b.playerState,128)){b.Y.Vb()&&XZa(b,"pfx");var h=b.getCurrentTime();b.L("html5_buffer_underrun_transition_fix")&&(h-=b.zc());var l=KH(b.mediaElement),m=g.U(b.playerState,8),n=CW(b.SE,h),p=Jxa(b.SE,h,(0,g.hu)(),l);m&&n?b.Ec(RH(b.playerState,1)):m&&p?(m=b.getDuration(),n=lR(b.videoData),m&&Math.abs(m-h)<1.1?(b.ma("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.yu()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Xc:"videoplayer_loop",
seekSource:37})):RW(b)):(b.playerState.isBuffering()||VZa(b,"progress_fix"),b.Ec(QH(b.playerState,1)))):(m&&!n&&!p&&h>0&&(m=(Date.now()-b.EG)/1E3,n=b.getDuration(),h>n-1&&b.ma("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&KH(b.mediaElement)>5&&b.Ec(RH(b.playerState,1)));b.Rc()}};
this.mediaElement.Mx().length===0?this.Zy=d?g.xp.aj(f,100):g.Ur(f,100):this.Zy=d?g.xp.aj(f,500):g.Ur(f,500)}this.videoData.Zh=c;this.ub&&G_(this.ub);!a&&this.isPlaying()&&OZa(this);xWa(this.Sk,this.Of,this.Ge(),this.isBackground())&&XW(this);this.publish("progresssync",this,a);e&&WR(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.k.Y9=function(){this.Qf("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.QF=function(){return this.Sb().QF()};
g.k.mQ=function(){return this.ra?this.ra.mQ():FP(this.Y.schedule,!0)};
g.k.Ec=function(a){if(!g.TH(this.playerState,a)){this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.Yy(a,this.playerState);this.playerState=a;YZa(this);var c=!this.IM.length;this.IM.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.TB.state===8&&!d;g.$y(b,1)&&d&&g.U(this.playerState,8)&&!g.U(this.playerState,64)&&this.ra&&(sUa(this.ra),this.mediaElement&&KH(this.mediaElement)>=5&&vWa(this.Sk,this.Of)&&XW(this));(d=g.UD(this.Y.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.U(a,1)&&(g.U(a,8)||g.U(a,16))?this.JO.start(d):this.JO.stop();(Zy(b,8)<0||g.$y(b,
1024))&&this.zy.stop();!g.$y(b,8)||this.videoData.Aa||g.U(b.state,1024)||this.zy.start();g.U(b.state,8)&&Zy(b,16)<0&&!g.U(b.state,32)&&!g.U(b.state,2)&&this.playVideo();g.U(b.state,2)&&JR(this.videoData)&&(this.qr(this.getCurrentTime()),this.Rc(!0));g.$y(b,2)&&(this.hN(!0),this.Y.Vb()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&gR(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.gq,cminst:""+(this.videoData.j.Vc()+this.zc()),maxst:""+this.videoData.j.wl,hts:""+this.videoData.j.qa,
cmaxst:""+(this.videoData.j.Vd()+this.zc())},this.ma("sabrSeekableBoundaries",d)));g.$y(b,128)&&this.tp();this.videoData.j&&this.videoData.isLivePlayback&&!this.Z3&&(Zy(b,8)<0?QIa(this.videoData.j):g.$y(b,8)&&this.videoData.j.resume());wYa(this.Oc,b);JXa(this.Sb(),b);if(c&&!this.Ia())try{for(var e=g.w(this.IM),f=e.next();!f.done;f=e.next()){var h=f.value;ZXa(this.Ih,h);this.publish("statechange",h)}}finally{this.IM.length=0}}};
g.k.XS=function(){this.Hb.tick("qoes")};
g.k.fQ=function(){this.Oc.fQ()};
g.k.iM=function(a,b,c,d){a:{var e=this.Jl;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=bG(b);a==="drm.keyerror"&&this.Fe&&this.Fe.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())iWa(e,a);else{if(e.ea.Qf(a,b,d,c),$Va(e,{detail:c}))break a}else e.Jd(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.D++,UZa(e.ea))}};
g.k.Fba=function(){var a=this,b=g.UD(this.Y.experiments,"html5_license_constraint_delay"),c=Gs();b&&c?(b=new g.Ep(function(){fX(a);cX(a)},b),g.P(this,b),b.start()):(fX(this),cX(this))};
g.k.eH=function(a){this.publish("heartbeatparams",a)};
g.k.Oq=function(a){this.ma("keystatuses",zVa(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=AVa(b,c);d=YV(a)?BVa(a,d):a.D.includes(d)}else{a:{b=AVa(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.Fe)==null?0:MO(f.j))if((c=this.Fe)==
null)c=0;else{b=f=void 0;e=g.w(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=CVa(h,"SD")),b||(b=CVa(h,"AUDIO"));c.Aj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.ma("drm",{dshdr:1});iWa(this.Jl);return}}else{this.videoData.vE||(this.videoData.vE=!0,this.ma("drm",{dphdr:1}),SV(this,!0));return}var l;if((l=this.Fe)==null?0:MO(l.j))return}else if(l=a.Z&&d,c&&!l){iWa(this.Jl);return}d||BVa(a,"AUDIO")&&BVa(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=zVa(a),this.ZT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Qf("drm.keyerror",2,void 0,"info."+a)):(this.ZT=!0,this.Jd(new aG("qoe.restart",Object.assign({},{retrydrm:1},a))),XW(this),UZa(this)))};
g.k.Hba=function(){if(!this.videoData.Aa&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.zl()>0&&KH(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Ec(QH(this.playerState,1)),VZa(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");YZa(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!ILa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].qe)||this.Fe),mfmtinfo:!this.videoData.B,prerolls:this.Lo()?this.Tq.join(","):
"0"};if(this.Fe){b=this.Fe;if(b.B.size<=0){var c="ns;";b.W||(c+="nr;");b=c+="ql."+b.C.length}else b=zVa(b.B.values().next().value),b=$F(b);a.drmp=b}var d;Object.assign(a,((d=this.ra)==null?void 0:d.pc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.pc())||{});this.Sb().Jd("qoe.start15s",$F(a));this.publish("loadsofttimeout")}};
g.k.qr=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,cX(this))};
g.k.hN=function(a,b){var c=this;a=a===void 0?!1:a;if(!this.ME)if(IA("att_s","player_att")||KA("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var e,f,h,l;return g.J(function(m){switch(m.j){case 1:if(!(e=a)){m.Ea(2);break}return g.G(m,g.Iua(),3);case 3:e=!m.B;case 2:if(e)return m.return();g.wa(m,4);f=NXa(c.Sb());if(!f)throw Error();h={};return g.G(m,g.Hua((h.cpn=c.videoData.clientPlaybackNonce,h.encryptedVideoId=c.videoData.videoId||"",h),3E4),6);case 6:l=m.B;if(c.ME)throw Error();
if(!l.challenge)throw g.qx(Error("Not sending attestation ping; no attestation challenge string")),Error();c.ME=!0;var n=[l.challenge];l.error?n.push("r1c="+l.error):l.webResponse&&n.push("r1a="+l.webResponse);var p;((p=l.adblockReporting)==null?void 0:p.reportingStatus)!==void 0&&n.push("r6a="+l.adblockReporting.reportingStatus);var q;((q=l.adblockReporting)==null?void 0:q.broadSpectrumDetectionResult)!==void 0&&n.push("r6b="+l.adblockReporting.broadSpectrumDetectionResult);f(n.join("&"));KA("att_f",
void 0,"player_att");g.xa(m,0);break;case 4:g.ya(m),KA("att_e",void 0,"player_att"),g.va(m)}})})().then(function(){b==null||b()});
else if(this.L("use_rta_for_player_alt"))(function(){var e,f;return g.J(function(h){if(h.j==1){e=new g.OL(c.videoData);if("c1a"in e.Gl&&!g.KL.isInitialized()){KA("att_wb",void 0,"player_att");c.iA===2&&Math.random()<.01&&g.qx(Error("Botguard not available after 2 attempts"));if(a)return h.return();if(c.iA<5)return g.Fp(c.yJ),c.iA++,h.return()}return g.G(h,new Promise(function(l){setTimeout(l,0)}),2)}(f=g.PL(e))?(KA("att_f",void 0,"player_att"),MXa(c.Sb(),f),c.ME=!0):KA("att_e",void 0,"player_att");
g.va(h)})})().then(function(){b==null||b()});
else{var d=new g.OL(this.videoData);if("c1a"in d.Gl&&!g.KL.isInitialized()){KA("att_wb",void 0,"player_att");this.iA===2&&Math.random()<.01&&g.qx(Error("Botguard not available after 2 attempts"));if(a)return;if(this.iA<5){g.Fp(this.yJ);this.iA++;return}}(d=g.PL(d))?(KA("att_f",void 0,"player_att"),MXa(this.Sb(),d),this.ME=!0):KA("att_e",void 0,"player_att")}};
g.k.Vd=function(a){return this.Oc.Vd(a===void 0?!1:a)};
g.k.Vc=function(){return this.Oc.Vc()};
g.k.zc=function(){return this.Oc?this.Oc.zc():0};
g.k.getStreamTimeOffset=function(){return this.Oc?this.Oc.getStreamTimeOffset():0};
g.k.Eu=function(){var a=0;this.Y.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.zc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&nWa(this.Sk,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,XW(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=eZa(this);b&&b.videoHeight>0&&(a=lG(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.Ft=function(){this.Sb().Ft()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Sb();c.j?(c=tW(c.j,"engage"),c.qa=a,c.send(b)):b&&b()};
g.k.Oi=function(a){return this.Sb().Oi(a)};
g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return lR(this.videoData)&&(this.FZ||b)?this.Oc.isAtLiveHead(a):!1};
g.k.Xr=function(){var a=this.Vd(),b=this.getCurrentTime(),c;(c=!lR(this.videoData))||(c=this.Oc,c=!(c.j&&c.j.C));return c||this.Eq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.gp=ba(23);g.k.yv=ba(41);g.k.qp=function(a){this.Sb().qp(a)};
g.k.fz=function(a){this.Sb().fz(a)};
g.k.lz=function(a){this.Sb().lz(a)};
g.k.qj=ba(27);g.k.Xk=ba(31);g.k.KH=function(a){this.Sb().KH(a)};
g.k.dG=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&kQ(this.Y)&&this.mediaElement.setLoop(a);this.ra&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ra.policy.ib=!0:tUa(this.ra))};
g.k.yu=function(){return this.mediaElement&&kQ(this.Y)?this.mediaElement.yu():this.loop};
g.k.eT=function(a){this.ma("timestamp",{o:a.toString()});this.Oc.eT(a)};
g.k.Md=function(a){this.Hb.tick(a)};
g.k.pg=function(a){return this.Hb.pg(a)};
g.k.Xv=function(a){this.Hb.Xv(a)};
g.k.ma=function(a,b,c){c=c===void 0?!1:c;this.Sb().ma(a,b,c)};
g.k.Jv=function(a,b,c){c=c===void 0?!1:c;this.Sb().ma(a,b,c)};
g.k.Jd=function(a){this.Sb().Jd(a.errorCode,$F(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")||a==="qoe.restart"){a=this.ra?BRa(this.ra.videoTrack):{};var b,c;this.ma("lasoe",Object.assign(this.ra?BRa(this.ra.audioTrack):{},(b=this.Pa)==null?void 0:(c=b.j)==null?void 0:c.FK()));var d,e;this.ma("lvsoe",Object.assign(a,(d=this.Pa)==null?void 0:(e=d.B)==null?void 0:e.FK()))}};
g.k.JH=function(a,b,c){this.Sb().JH(a,b,c)};
g.k.RP=function(a){this.videoData.x4=!0;this.Jd(new aG("sabr.fallback",a));SV(this,!0)};
g.k.Jx=function(){return g.QK(this.Sb().provider)};
g.k.getPlayerSize=function(){return this.nI.getPlayerSize()};
g.k.wi=function(){return this.nI.wi()};
g.k.Lh=function(){return this.Hb};
g.k.hs=function(){return this.bd.hs()};
g.k.getVolume=function(){return this.bd.getVolume()};
g.k.Bq=function(){return this.bd.Bq()};
g.k.isMuted=function(){return this.bd.isMuted()};
g.k.IA=function(){return this.bd.IA()};
g.k.L=function(a){return this.Y.L(a)};
g.k.nt=function(){var a=this.getCurrentTime(),b=a-this.zc();var c=this.mediaElement?LG(this.mediaElement.Kh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.L("html5_ssdai_disable_seek_to_skip")&&((d=this.ra)==null?0:d.ZH(b,this.Vd())))return this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return((e=this.ra)==null?0:e.nt(b,c))?(this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),gR(this.videoData)&&this.ra.seek(b+c,{seekSource:89,Xc:"videoplayer_skipServerStitchedAd"}),JYa(this.Oc,
a),!0):!1};
g.k.Vb=function(){return this.Y.Vb()};
g.k.Bu=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.Nw||this.bd.jS(this.videoData.videoId);this.bd.iV();return this.Y.Xf||""};
g.k.KK=function(){if(this.videoData.videoId)return this.videoData.pE};
g.k.ag=function(){return this.videoData.videoId};
g.k.UA=function(){return this.bd.Ty};
g.k.Nu=function(){return this.bd.Nu()};
g.k.zC=function(a,b){this.Oc.zC(a,b)};
g.k.XE=function(){this.Oc.XE()};
g.k.An=function(a){this.bd.An(a)};
g.k.aT=function(a,b){this.bd.aT(a,b)};
g.k.JT=function(a,b){var c;(c=this.ra)==null||c.JT(a,b)};
g.k.eP=function(){var a=this.Yr();return!!a&&a.eP()};
g.k.Ff=function(){return this.ub};
g.k.gI=function(a,b){this.Sb().gI(a,b)};
g.k.WF=function(){return this.Sb().WF()};
g.k.Ho=function(){return this.videoData.Z1};
g.k.QC=function(a){this.videoData.Z1=a};
g.k.vn=function(){return this.bd.vn()};
g.k.vG=function(){return this.bd.vG(this)};g.z(b_a,dT);g.z(oX,dT);oX.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.iS(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Wk;if(d&&a<d.length){d=g.w(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){c_a(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.cK)&&a<c.length&&c.forEach(function(f,h){h===a&&c_a(b,f.timeRangeStartMillis,f.title)})}};
oX.prototype.seekToTimeWithAnimation=function(a,b){g.iS(this.api)&&c_a(this,a,b)};
oX.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&a.getWatchNextResponse()==null&&(cR(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};g.z(f_a,dT);f_a.prototype.xa=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.w("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),b=a.next();!b.done;b=a.next())pX(b.value,null);dT.prototype.xa.call(this)};g.z(qX,dT);qX.prototype.D=function(a){return a.compositeEmbargo!==void 0};
qX.prototype.xa=function(){dT.prototype.xa.call(this);this.B.clear()};g.z(n_a,dT);g.k=n_a.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.J(function(l){return l.j==1?(f=uY(e.api.yb()))?g.G(l,f.b2([a],b,c,d),3):l.Ea(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=uY(this.api.yb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=uY(this.api.yb());b&&b.pT(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.J(function(d){return(c=uY(b.api.yb()))?d.return(c.WH(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=uY(this.api.yb());return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.setUpPositionSyncInterval=function(a){var b=uY(this.api.yb());b&&b.setUpPositionSyncInterval(a)};g.z(rX,dT);rX.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
rX.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.Ta(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.w(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=EG(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=g.xR(a);tM(e);d=[];e=g.w(e);for(f=e.next();!f.done;f=e.next())f=f.value,qM(a,f,this.api.U().G)===!0&&d.push(f);b=b.concat(o_a(d,!1,c))}a=this.api.KF();b=b.concat(o_a(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=q_a(b),p_a(b),b;a={};b=g.w(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};var L2={},reb=(L2["internal-error"]=-1,L2["non-recoverable-error"]=-2,L2["api-disabled-by-application"]=-3,L2["invalid-argument"]=-4,L2["token-provider-invalid"]=-5,L2);g.z(sX,dT);sX.prototype.II=function(a){var b=this;if(s_a())if(!this.B&&this.j){v_a(this,a);try{this.j.then(function(){u_a(b,a)},function(c){tX(c,"player_update");
b.handleError(c,a)})}catch(c){tX(c,"player_update_catch"),this.handleError(c,a)}}else this.B?u_a(this,a):this.api.ma("pf",{m:this.B?1:0,
p:this.j?1:0})};
sX.prototype.handleError=function(a,b){g.qx(a);if(this.api.L("html5_enable_d6de4_cold_start_and_error")){var c=0;a.mediaIntegrityErrorName?c||(c=reb[a.mediaIntegrityErrorName]):a.code&&(c=a.code());b.pE={Cda:{code:c}}}};g.z(uX,g.S);uX.prototype.Ra=function(a){a=a?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":a,title:a});this.api.ji()};
uX.prototype.onClick=function(){this.api.togglePictureInPicture()};g.z(vX,dT);vX.prototype.createButton=function(){var a=this;this.button=new uX(this.api);g.P(this,this.button);this.api.eA(this.button);this.events.T(this.api,"videodatachange",function(){w_a(a)});
w_a(this)};
vX.prototype.setDocumentPictureInPicture=function(a){this.api.ej().qz(a);a=this.api.hj();var b=h1a(this.api.yb());b&&(a?b.load():b.unload());this.api.publish("documentpictureinpicturechange")};g.z(x_a,dT);g.z(yX,g.S);g.k=yX.prototype;g.k.YG=function(){};
g.k.wv=function(){};
g.k.wz=function(){return!0};
g.k.efa=function(){if(this.expanded){this.Ya.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.Ya.hide();this.qc=34+a;g.Qp(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.qc)+"px";this.Va.start()};
g.k.Q8=function(){this.badge.element.style.width=(this.expanded?this.qc:34)+"px";this.ib.start()};
g.k.HL=function(){this.D&&this.J.logVisibility(this.badge.element,this.wz());this.G&&this.J.logVisibility(this.dismissButton.element,this.wz()&&this.pN())};
g.k.fM=function(a){this.Aa=a;xX(this);wX(this);this.xm()};
g.k.Pfa=function(){g.Qp(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.pN=function(){return this.qa||this.Aa||!this.W};
g.k.xm=function(){this.wz()?this.oa.show():this.oa.hide();this.HL()};
g.k.DW=function(){this.enabled=!1;this.xm()};
g.k.By=function(a){a?this.G&&this.J.logClick(this.dismissButton.element):this.D&&this.J.logClick(this.badge.element)};
g.k.Ofa=function(){this.xm()};
g.k.bba=function(a){this.Bb=a===1;this.xm();g.Qp(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.xba=function(){g.Qp(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.xm()};g.z(zX,g.Yx);zX.prototype.K0=function(){this.publish("size-change")};
zX.prototype.focus=function(){this.content.focus()};
zX.prototype.F0=function(){this.publish("back")};g.z(g.AX,zX);g.k=g.AX.prototype;g.k.Tc=function(a,b){if(b===void 0?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.fc(this.items,a,z_a);if(b>=0)return;b=~b;g.dc(this.items,b,0,a);uh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.SS,this);this.menuItems.publish("size-change")};
g.k.Dh=function(a){a.unsubscribe("size-change",this.SS,this);this.Ia()||(g.Yb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
g.k.SS=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.qq=function(){return this.items.length};g.z(g.CX,g.YS);g.k=g.CX.prototype;g.k.show=function(){g.YS.prototype.show.call(this);this.iD()};
g.k.hide=function(){g.YS.prototype.hide.call(this);this.j.length>1&&g.EX(this)};
g.k.iD=function(){C_a(this);this.Eb&&(A_a(this),g.Qm(this.element,this.size))};
g.k.nj=function(){var a=this.j.pop();B_a(this,a,this.j[this.j.length-1],!0)};
g.k.u6=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Mb();a.preventDefault();break;case 37:this.j.length>1&&this.nj();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.YS.prototype.xa.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.z(FX,g.CX);FX.prototype.open=function(a,b){this.initialize(a.items)&&this.rd(b,!!b)};
FX.prototype.initialize=function(a){g.BX(this.Te);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.w(a);for(var c=a.next();!c.done;c=a.next())this.Tc(c.value,b--);return!0};
FX.prototype.Tc=function(a,b){a.menuNavigationItemRenderer?F_a(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&G_a(this,a.menuServiceItemRenderer,b)};g.z(GX,yX);g.k=GX.prototype;g.k.YG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.By(),this.onClickCommand&&this.J.eb("innertubeCommand",this.onClickCommand))};
g.k.wv=function(){this.enabled=!1;this.oa.hide()};
g.k.wz=function(){return!!this.j&&this.enabled};
g.k.onVideoDataChange=function(a,b){this.L2(b);if(this.j){this.N2();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.Q((f=this.j)==null?void 0:f.onTap,sx);var h;if(a=g.Q((h=this.j)==null?void 0:h.onOverflow,sx))this.N=g.Q(a,Acb);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 y;
this.Ua=(y=this.j)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;I_a(this)}};
g.k.vba=function(){this.isVisible=!0;I_a(this)};
g.k.wba=function(){this.isVisible=!1;I_a(this)};
g.k.HL=function(){yX.prototype.HL.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)};
g.k.By=function(){yX.prototype.By.call(this,!1);this.B&&this.J.logClick(this.banner.element)};
g.k.v6=function(a){this.K||(this.K=new FX(this.J),g.P(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.L2=function(){};
g.k.N2=function(){};
g.k.xa=function(){this.J.kf("suggested_action_view_model");yX.prototype.xa.call(this)};g.z(HX,GX);
HX.prototype.L2=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.Q((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,Ncb);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.Q((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,xcb)}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)};
HX.prototype.N2=function(){var a=[],b,c=g.w(((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.KE(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.qf(a)};g.z(J_a,dT);g.z(L_a,dT);L_a.prototype.onVideoDataChange=function(a){a==="newdata"&&this.j&&K_a(this)};g.z(g.IX,g.$S);g.k=g.IX.prototype;g.k.open=function(){g.DX(this.Cb,this.B)};
g.k.Ji=function(a){M_a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Fd(this.Al(a)),this.C=a)};
g.k.Bl=function(a){g.BX(this.B);for(var b={},c=!1,d=0;d<a.length;d++){var e=a[d],f=this.options[e],h=e===this.C;h&&(c=!0);f&&f.priority===-d?(this.options[e].dk(this.Al(e,!0)),delete this.options[e]):f=this.kA(e,-d,h);b[e]=f;this.B.Tc(f,!0)}c||(this.C=null);a=g.w(Object.keys(this.options));for(c=a.next();!c.done;c=a.next())this.options[c.value].dispose();this.options=b};
g.k.kA=function(a,b,c,d){var e=this;c={I:"div",La:["ytp-menuitem",d?"ytp-menuitem-with-footer":""],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",La:["ytp-menuitem-label"],va:"{{label}}"}]};d&&(d={I:"div",S:"ytp-menuitem-footer",V:[d]},c.V?c.V.push(d):c.V=[d]);b=new g.$S(c,b,this.Al(a,!0));b.listen("click",function(){e.rO(a)});
return b};
g.k.enable=function(a){this.N?a||(this.N=!1,this.Wz(!1)):a&&(this.N=!0,this.Wz(!0))};
g.k.Wz=function(a){a?this.Cb.Tc(this):this.Cb.Dh(this)};
g.k.fh=function(a){this.publish("select",a)};
g.k.rO=function(a){this.fh(a)};
g.k.Al=function(a){return a.toString()};
g.k.w6=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())};
g.k.xa=function(){this.N&&this.Cb.Dh(this);g.$S.prototype.xa.call(this);for(var a=g.w(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.z(N_a,g.IX);g.k=N_a.prototype;g.k.Ra=function(){var a=this.MA("Off");this.J.getPresentingPlayerType()!==2?(O_a(this),this.Ji(this.G),this.j&&(this.G===a?this.j="":this.setSleepTimerTimeLeft(this.j)),this.K&&this.setVideoTimeLeft(this.K),this.enable(!0)):(this.Bl([]),this.enable(!1))};
g.k.fh=function(a){P_a(this,a);this.Cb.nj()};
g.k.MA=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"&&O_a(this)};
g.k.Rca=function(a){this.J.logVisibility(this.element,a)};
g.k.onClick=function(){this.J.logClick(this.element)};
g.k.resetSleepTimerMenuSettings=function(){P_a(this,this.MA("Off"))};
g.k.setSleepTimerTimeLeft=function(a){this.j=a;this.Fd(a)};
g.k.setVideoTimeLeft=function(a){this.K=a;this.D.Fd(a)};g.z(JX,dT);JX.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
JX.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)};
JX.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.z(Q_a,dT);g.z(g.LX,g.Qx);g.k=g.LX.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),MX(this),KX(this))};
g.k.Ey=function(a){MX(this);this.T(NX("move"),this.EW);this.T(NX("out"),this.PB);this.T("touchstart",this.tO);this.j&&this.T(NX("down"),this.sO);var b=a.target;a=new g.Eg(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.EW=function(a){var b=a.target;a=new g.Eg(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Fg(new g.Eg(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
g.k.PB=function(a){var b=new g.Eg(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.wh(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}MX(this);KX(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
g.k.Daa=function(a){this.Ey(a);this.sO(a)};
g.k.sO=function(a){if(typeof a.button!=="number"||a.button===0){MX(this);this.D.T(OX(a.target),NX("move"),this.Caa);this.D.T(OX(a.target),NX("up"),this.x6);var b=a.target;if(g.mh)this.T("dragstart",this.D8);else if(a.preventDefault(),(g.iQ||Gm)&&b)a:{for(var c=b;c;){if(Fea(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}OX(b).activeElement.blur()}this.C=!0;a=new g.Eg(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}};
g.k.D8=function(a){a.preventDefault()};
g.k.Caa=function(a){var b=a.target;b===OX(a.target)&&(b=null);a=new g.Eg(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)};
g.k.x6=function(a){MX(this);this.C=!1;var b=dt(a),c=a.target;a=new g.Eg(a.pageX,a.pageY);b&&g.wh(this.target,b)?(this.T(NX("move"),this.EW),this.T(NX("out"),this.PB),this.T(NX("down"),this.sO),this.T("touchstart",this.tO),this.publish("dragend",a.x,a.y,c)):(KX(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
g.k.tO=function(a){var b=a.changedTouches[0];b&&(MX(this),this.W||(this.T("touchmove",this.Afa),this.T("touchend",this.FW),this.T("touchcancel",this.FW),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.Afa=function(a){var b=R_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.FW=function(a){var b=R_a(this,a);if(b){MX(this);KX(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.mh&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");MX(this);g.Qx.prototype.xa.call(this)};
var S_a=!1;g.z(T_a,g.S);T_a.prototype.xi=function(){g.Fm(this.element,"display","none");this.J.logVisibility(this.j,!1)};g.z(QX,dT);QX.prototype.qa=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.Fp(this.delay)};
QX.prototype.Fa=function(){if(this.D){this.C=!0;this.Ca=this.api.getPlaybackRate();this.Ja=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.Fm(a.element,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Ka);this.api.hideControls();this.api.playVideo();this.N&&(this.N.hB=!0);this.oa&&(this.oa.kL=!0)}};
QX.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.Aa?this.Z=a:RX(this)}};
QX.prototype.G=function(){RX(this)};g.z(V_a,dT);V_a.prototype.onVideoDataChange=function(a){a==="newdata"&&this.api.yb().createSubtitlesModuleIfNeeded()};g.z(SX,g.bi);SX.prototype.preventDefault=function(){g.bi.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
SX.prototype.stopPropagation=function(){g.bi.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.z(g.TX,IH);g.k=g.TX.prototype;g.k.Gw=function(){return!0};
g.k.isView=function(){return!1};
g.k.ST=function(){return!1};
g.k.Ib=function(){return this.j};
g.k.ri=function(){return this.j.src};
g.k.lN=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.XM=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.yu=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.GK=function(){return this.j.muted};
g.k.LC=function(a){iG();this.j.muted=a};
g.k.Mx=function(){return this.j.played||GG([],[])};
g.k.Kh=function(){try{var a=this.j.buffered}catch(b){}return a||GG([],[])};
g.k.VA=function(){return this.j.seekable||GG([],[])};
g.k.kJ=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.zl=function(){return this.j.readyState};
g.k.HK=function(){return this.j.networkState};
g.k.Mh=function(){return this.j.error?this.j.error.code:null};
g.k.Zf=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.zi=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Qv=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():hG()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.k.Cu=function(){var a=this.j;return new g.Eg(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Rm(this.j)};
g.k.setSize=function(a){g.Qm(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){iG();this.j.volume=a};
g.k.XP=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.KE=ba(45);g.k.wI=ba(47);g.k.xI=ba(49);g.k.pA=ba(51);g.k.xF=function(){return Ys(this.j)};
g.k.Rt=function(a){g.Mp(this.j,a)};
g.k.aG=function(a){return g.Im(this.j,a)};
g.k.yR=function(){return g.wh(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.w(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);IH.prototype.xa.call(this)};
g.k.kU=function(a){this.j.disableRemotePlayback=a};g.z(UX,g.S);g.z(WX,g.S);WX.prototype.show=function(){g.S.prototype.show.call(this);this.Ra();this.Sa.L("html5_enable_moving_s4n_window")&&g.hE(this.Sa.U())&&this.N()};
WX.prototype.hide=function(){g.S.prototype.hide.call(this);this.delay.stop();this.D.stop()};
WX.prototype.Ra=function(){var a=(0,g.hu)(),b=X_a(this.Sa);VX(this.j,b.bandwidth_samples);VX(this.K,b.network_activity_samples);VX(this.C,b.live_latency_samples);VX(this.B,b.buffer_health_samples);var c={};b=g.w(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.w(d.value);d=e.next().value;e=e.next().value;this.W[d]!==e&&(c[d]=" "+String(e));this.W[d]=e}this.update(c);a=(0,g.hu)()-a>25?5E3:500;this.delay.start(a)};
WX.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.z($_a,dT);g.z(XX,g.O);XX.prototype.j=function(){var a=(0,g.hu)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(aq(seb,a));a<1&&this.delay.start()};
var seb=new $p(0,0,.4,0,.2,1,1,1),f0a=/[0-9.-]+|[^0-9.-]+/g;g.z(YX,g.S);YX.prototype.onClick=function(){var a=this.api.app;var b=a.L("web_log_theater_mode_visibility")?!a.Ik():!a.HR;a.Sa.eb("SIZE_CLICKED",b);this.api.logClick(this.element)};
YX.prototype.Ra=function(){g.Xx(this,this.api.GR()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Eb){var a=this.api.Ik();this.Ik!==a&&this.SC(a)}this.api.logVisibility(this.element,this.Eb)};
YX.prototype.SC=function(a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.Ik==null?this.updateValue("icon",b):e0a(this.transition,this.element,
b);this.Ik=a;b=g.pS(this.api,"Default view","t");var c=g.pS(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.ji()};g.z(g0a,dT);g.z(h0a,dT);var M2={},n0a=(M2[1]="pot_ss",M2[2]="pot_sf",M2[3]="pot_se",M2[4]="pot_xs",M2[5]="pot_xf",M2[6]="pot_xe",M2);g.z($X,dT);$X.prototype.xa=function(){this.G&&(g.Xr(this.G),this.G=void 0);dT.prototype.xa.call(this)};
$X.prototype.kQ=function(a){var b=this;return g.J(function(c){return b.j?c.return(b.j.ready().then(function(){b.Hb.pg("pot_if");return o0a(b,a)})):c.return(Promise.reject("web po not ready"))})};
$X.prototype.jS=function(a){return o0a(this,a)};
$X.prototype.iV=function(){this.j&&!this.j.isReady()&&aY(this)};g.z(p0a,dT);g.z(bY,g.O);bY.prototype.j=function(){for(var a=g.w(g.Ea.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
bY.prototype.xa=function(){for(var a=this.features.length-1;a>=0;a--)this.features[a].dispose();this.features.length=0;g.O.prototype.xa.call(this)};cY.prototype.xS=function(){this.B=(0,g.hu)()};
cY.prototype.reset=function(){this.j=this.B=NaN};
cY.prototype.CS=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.K&&(c.cttAuthInfo={token:a.K,videoId:a.videoId});HA("seek",c);g.GA({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||FA("pl_ss",this.B,"seek");FA(b,(0,g.hu)(),"seek")}this.reset()}};g.k=q0a.prototype;g.k.reset=function(){CA(this.timerName)};
g.k.tick=function(a,b){FA(a,b,this.timerName)};
g.k.pg=function(a){return JA(a,this.timerName)};
g.k.Xv=function(a){kI(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.GA(a,this.timerName)};g.z(t0a,g.Qx);g.k=t0a.prototype;g.k.Rl=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.wq=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.nh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Ba.qa||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.C.length)return bQ(this.Ba,this.C[0],a)};
g.k.getLength=function(){return this.length};
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.Ur(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Pl=function(){return this.Ba.getVideoUrl(g.eY(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.j=null;g.wg(this.items);g.Qx.prototype.xa.call(this)};var fY=new Map;g.z(g.hY,g.Qx);g.k=g.hY.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.gi=function(){};
g.k.Ln=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.Qx.prototype.xa.call(this)};
g.k.pc=function(){return{}};
g.k.getOptions=function(){return[]};g.z(g.kY,g.O);g.k=g.kY.prototype;g.k.Xu=ba(54);g.k.DB=function(){};
g.k.Dt=function(){};
g.k.Nx=function(){return""};
g.k.AT=ba(55);g.k.cH=function(){this.D.resolve()};
g.k.xa=function(){this.Dt();g.O.prototype.xa.call(this)};g.z(g.lY,g.kY);g.lY.prototype.Xu=ba(53);g.lY.prototype.DB=function(a){if(this.audioTrack)for(var b=g.w(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.jY(this.B,c.value);a()};
g.lY.prototype.Nx=function(a,b){var c=a.xe(),d={fmt:b};if(b==="srv3"||b==="3"||b==="json3")g.ws()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.zQ(a));this.C&&(d.xosf="1");Object.assign(d,this.Y.j);return g.Kr(c,d)};
g.lY.prototype.Dt=function(){this.Y.L("web_player_pt_tt")&&(this.D.promise.catch(function(){}),this.D.reject(),this.D=new g.Ej);
this.j&&this.j.abort()};g.teb=new Map;g.z(g.mY,g.kY);g.mY.prototype.Xu=ba(52);
g.mY.prototype.DB=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.XZ&&(d.asrs=1);c=g.Kr(c,d);this.Dt();this.j=g.ds(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.jY(b.B,new g.wQ({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.K[m.languageCode]=m.languageName,b.G.push(m)}a()},
withCredentials:!0})};
g.mY.prototype.Nx=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.Y.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.zQ(a));Object.assign(b,this.Y.j);return c=g.Kr(c,b)};
g.mY.prototype.Dt=function(){this.j&&this.j.abort()};G0a.prototype.oz=function(){for(var a=g.Ea.apply(0,arguments),b=this,c=ZO("empty"),d=[],e={gB:0};e.gB<this.B.length&&c.currentState!=="done";e={Ao:void 0,gB:e.gB},e.gB++)e.Ao=this.B[e.gB],e.Ao.condition.apply(e.Ao,g.x(a))&&(c=cP(cP(c,function(f){return function(){if(!f.Ao.condition.apply(f.Ao,g.x(a)))throw"condition failed";var h=f.Ao.Dx.apply(f.Ao,g.x(a));return b.j===void 0||b.j===null?h:bP(YO(h),function(l){if(!b.j.apply(b,[l].concat(g.x(a))))throw"verification failed";return l})}}(e)),function(f){return function(h){h!==
"empty"&&h!=="condition failed"&&h!=="verification failed"&&h!=="error"&&(f.Ao.onFailure&&f.Ao.onFailure.apply(f.Ao,[h].concat(g.x(a))),b.onFailure&&b.onFailure.apply(b,[h,
f.gB,f.Ao].concat(g.x(a))),d.push(h));throw"error";}}(e)));
return cP(c,function(){return ZO(d)})};nY.prototype.preload=function(a){a=a?H0a(this.capabilities,a):this.capabilities;return a.hd?bP(K0a(this,a),function(){}):YO()};
nY.prototype.compile=function(a){return cP(this.G.oz(a),function(b){throw Error("wasm module compile failure: "+b.map(function(c){return c.message}).join(", "),{cause:b});
})};
nY.prototype.instantiate=function(a,b){return cP(this.K.oz(a,b),function(c){throw Error("wasm module instantiation failure: "+c.map(function(d){return d.message}).join(", "),{cause:c});
})};O0a.prototype.emscripten_notify_memory_growth=function(){};var L0a;g.k=Q0a.prototype;g.k.malloc=function(a){return this.j.malloc(a)};
g.k.free=function(a){this.j.free(a)};
g.k.realloc=function(a,b){return this.j.realloc(a,b)};
g.k.eF=function(a){if(a.buffer!==this.exports.memory.buffer){var b=this.malloc(a.byteLength);b=new Uint8Array(this.exports.memory.buffer,b,a.byteLength);b.set(a);return b}};
g.k.mS=function(a){if(a.buffer===this.exports.memory.buffer){var b=a.slice();this.free(a.byteOffset);return b}};
var v7a="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);oY.lB(Q0a,{eF:function(a){return{profile:"copyj2w",oo:a===void 0?0:Math.ceil(a.byteLength/16)}},
mS:function(a){return{profile:"copyw2j",oo:a===void 0?0:Math.ceil(a.byteLength/16)}}});g.z(T0a,g.O);g.k=T0a.prototype;g.k.createSubtitlesModuleIfNeeded=function(){X0a(this)&&qY(this,"captions");return!!g.pY(this)};
g.k.vU=function(){return g.oR(this.J.getVideoData())&&!this.J.GQ().zp};
g.k.kI=function(){return this.J.getVideoData().kI()};
g.k.uU=function(){return this.J.getVideoData().uU()};
g.k.jY=function(){var a=this.Ke.get("heartbeat");qY(this,"heartbeat",!1,!0,this.jY);!a&&this.Ke.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
g.k.SJ=function(){qY(this,"annotations_module",!0,void 0,this.SJ);var a=this.Ke.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.FP=function(){if(!this.Ke.get("ad"))try{U0a(this)?qY(this,"ad",!1,!0,this.FP):this.J.Gg("ad")}catch(a){this.J.Gg("ad"),g.px(a)}};
g.k.Lh=function(){return this.B};
g.k.hs=function(){var a={},b=g.pY(this);b&&Object.assign(a,b.hs());return a};
g.k.EB=function(a,b){Object.assign(this.B,a||null);Object.assign(this.VJ,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.OR(a)&&!g.vY(this)&&this.SJ()};
g.k.xa=function(){g.O.prototype.xa.call(this);rY(this,1,!0);for(var a=g.w(Object.entries(l1a)),b=a.next();!b.done;b=a.next()){var c=g.w(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&fY.delete(b)}this.D.clear()};
var N2={},l1a=(N2.ad="ad.js",N2.annotations_module="annotations_module.js",N2.asmjs="asmjs.js",N2.creatorendscreen="annotations_module.js",N2.embed="embed.js",N2.endscreen="endscreen.js",N2.heartbeat="heartbeat.js",N2.inline_preview="inline_preview.js",N2.kids="kids.js",N2.remote="remote.js",N2.miniplayer="miniplayer.js",N2.offline="offline.js",N2.captions="captions.js",N2.unplugged="unplugged.js",N2.ux="ux.js",N2.webgl="webgl.js",N2.ypc="ypc.js",N2.ypc_clickwrap="ypc_clickwrap.js",N2.yto="yto.js",
N2),f1a="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.z(n1a,g.Qx);g.k=n1a.prototype;g.k.y6=function(a){a=new g.Eg(a.pageX,a.pageY);if(!Fg(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;wY(this,b,!0)}};
g.k.Eaa=function(){this.K&&wY(this,8,!0);wY(this,2,!1)};
g.k.Ey=function(a){var b=new g.Eg(a.pageX,a.pageY);Fg(b,this.D)||(this.D=b,(a=a.target)&&this.LJ(a)&&(wY(this,4,!0),this.j.Mc(this.C),this.C=this.j.T(this.target,"mouseover",this.PB),this.N=this.j.T(this.target,"mouseout",this.PB)))};
g.k.PB=function(a){a=a.relatedTarget;a&&this.LJ(a)||(this.D=new g.Eg(NaN,NaN),o1a(this))};
g.k.S$=function(){wY(this,1,!0)};
g.k.j9=function(a){a=a.target;a instanceof Element&&!(a.tabIndex>0)||wY(this,1,!0)};
g.k.GW=function(){this.K=!0;this.j.Mc(this.G);this.G=this.j.T(document,"mouseup",this.z6)};
g.k.z6=function(){this.K=!1;wY(this,8,!1);this.j.Mc(this.G);this.G=this.j.T(this.target,"mousedown",this.GW)};
g.k.HW=function(a){if(a=(a=a.changedTouches)&&a[0])this.Aa=a.identifier,this.j.Mc(this.Z),this.Z=this.j.T(this.target,"touchend",this.A6,void 0,!0),wY(this,1024,!0)};
g.k.A6=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Aa){var d=c;break}}d&&(this.j.Mc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.HW,void 0,!0),wY(this,1024,!1))};
g.k.Zv=function(){wY(this,2,!0)};
g.k.resize=function(){g.fG&&o1a(this)};
g.k.toString=function(){return g.Qx.prototype.toString.call(this)};g.z(g.yY,g.S);g.k=g.yY.prototype;g.k.Nfa=function(){this.Ra()};
g.k.Ra=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.fd();g.Qp(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{I:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.YR(a)?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Jf&&a.iq?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.Qp(this.element,"ytp-touch-device",b.B),b=[b.K?{I:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Jf&&a.iq&&(a=a.iq?a.iq:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.k.show=function(){g.S.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.k.Z9=function(){this.api.getVideoData().mutedAutoplay||(this.api.HB(),this.api.playVideo())};
g.k.Qda=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.z(g.zY,g.S);g.k=g.zY.prototype;g.k.show=function(){var a=this;this.Eb||(this.D.T(this.api,"videodatachange",function(){g.Fp(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.Fp(a.j)}));
g.S.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.ht(this.D);g.S.prototype.hide.call(this)};
g.k.kc=function(){g.Fp(this.j)};
g.k.onStateChange=function(){g.Fp(this.j)};
g.k.uda=function(){g.Fp(this.j)};
g.k.onReset=function(){this.B.stop();this.hide();g.Fp(this.j)};
g.k.Ra=function(){var a=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.yb().Ke.get("ypc"))&&b.xM?b=!0:(b=this.api.U(),b=g.U(a,2)&&g.rS(this.api)&&b.hh?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&p1a(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&this.api.getPresentingPlayerType()!==2||g.U(a,2)&&!g.rS(this.api)&&!this.api.JF()||g.U(a,1024)?!0:!1);var c=this.api.getVideoData();
b&&!c.zJ?(this.B.show(),this.Tfa(this.api.getPlaylist(),c)):(this.B.hide(),g.U(a,1)||this.B.stop())};
g.k.Tfa=function(){var a=g.Ea.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&&p1a(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.w(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.$Q&&!c.videoId)){e=this.api.ob().getPlayerSize();var f=g.eQ();d=e.width*f;f*=e.height;if(d>1280||f>720)if(e=c.nh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.nh("maxresdefault.jpg"))break;
if(d>320||f>180)if(e=c.nh("sddefault.jpg")||c.nh("hqdefault.jpg")||c.nh("mqdefault.jpg"))break;if(e=c.nh("default.jpg"))break}g.hQ(b)&&(b=new Image,b.addEventListener("load",function(){lua()}),b.src=e?e:"",this.api.Lh().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.z(g.AY,g.S);g.AY.prototype.resize=function(){};
g.AY.prototype.B=function(a){var b=this;this.C=!1;s1a(this);var c=a.ZP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Fd(DY(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Pl(),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?p=videoError",d&&(a=g.gj(a,{hl:d})),this.Fd(DY(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.gj(a,{hl:d})),this.Fd(DY(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Fd(g.BY(a.errorMessage)):this.Fd(DY(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.gj(c,
{hl:a})),this.Fd(DY(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.qc&&!d.D&&r1a(this,function(f){if(g.kT(f,b.api,!cQ(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Cd("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}}));
if(this.C){var e=this.Da("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),r1a(this,function(){b.api.logClick(e)}))}};
var q1a=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.z(t1a,g.S);g.k=t1a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.eb("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.kT(a,this.J,!0);this.J.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){v1a(this,b);this.Ie&&w1a(this,this.Ie)};
g.k.B6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&v1a(this,b);this.j&&w1a(this,a.state);this.Ie=a.state};
g.k.rd=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.z(EY,g.S);EY.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.S.prototype.hide.call(this)};
EY.prototype.onStateChange=function(a){this.yd(a.state)};
EY.prototype.yd=function(a){if(g.U(a,128))var b=!1;else{var c;b=((c=this.api.Qc())==null?0:c.Ou)?!1:g.U(a,16)||g.U(a,1)?!0:!1}b?this.j.start():this.hide()};
EY.prototype.B=function(){this.message.style.display="block"};g.z(FY,g.YS);FY.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(x1a(this),this.rd()):(this.j&&this.logClick(),this.Mb()))};
FY.prototype.lj=function(a){this.api.isMutedByMutedAutoplay()&&g.$y(a,2)&&this.Mb()};
FY.prototype.onClick=function(){this.api.unMute();this.logClick()};
FY.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.z(g.GY,g.jG);g.k=g.GY.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.mL=a.getPlayerSize();this.Ec(b);this.Ar();this.kc();this.api.publish("basechromeinitialized",this);this.OQ()&&this.api.publish("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.DG!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.mL=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.oR(d))&&this.zr()}c&&(this.DG=b.videoId,c=this.Kg,c.Ca=3E3,wY(c,512,!0),this.Ar());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.b3=572)};
g.k.dca=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.VC=function(){var a=this.api.El()&&this.api.Xp(),b=this.api.qB();return this.DP||a||this.hR||b};
g.k.zr=function(){var a=!this.VC();g.Qp(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.oR(b))&&g.Qp(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.LJ=function(a){try{if(!g.wh(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Fea(a);)a=a===this.api.getRootNode()?null:a.parentElement||null;return!!a};
g.k.VB=function(a){var b=this.api.getRootNode();g.Qp(b,"ytp-autohide",a);g.Qp(b,"ytp-autohide-active",!0);this.IX.start(a?250:100);a&&(this.BN=!1,g.Op(b,"ytp-touch-mode"));this.EP=!a;this.api.jN(!a)};
g.k.wS=function(){var a=this.api.getRootNode();g.Qp(a,"ytp-autohide-active",!1)};
g.k.Ica=function(){this.YU=!0};
g.k.Hca=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.YU=!1,this.ZU&&this.Mc(this.ZU),this.WG===0&&HY(this,a)?(this.iR(),this.fK.start(),this.ZU=this.T(this.api.ob(),"touchmove",this.Ica,void 0,!0)):this.fK.stop();B1a(this)&&HY(this,a)&&!this.api.U().Z&&z1a(this);var b=this.dV.Hk();if(!g.LP(this.api.U())&&IP&&C1a(this,a))b&&a.preventDefault();else if(this.BN=!0,g.Mp(this.api.getRootNode(),"ytp-touch-mode"),this.Kg.Zv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
this.api.getPlayerStateObject(),!(!this.api.Ph()||g.U(b,2)&&g.rS(this.api)||g.U(b,64))){b=Date.now()-this.C_;this.WG+=1;if(b<=350){this.pF=!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.WG-1)*10;d>0&&d<b?(this.QH(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>b*2&&d<b*3&&(this.QH(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else xY&&
this.api.U().Z&&HY(this,a)&&a.preventDefault();this.C_=Date.now();this.s2.start()}};
g.k.Gca=function(){this.RL.hB=!1;this.api.publish("rootnodemousedown",this.RL)};
g.k.Cca=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(C1a(this,a)||this.RL.hB)return}else if(this.RL.hB||C1a(this,a))return;B1a(this)||!HY(this,a)||this.fK.isActive()||(z1a(this),a.preventDefault());this.pF&&(this.pF=!1)};
g.k.iR=function(){};
g.k.lI=function(){};
g.k.QH=function(){};
g.k.PH=function(){};
g.k.Bt=function(){var a=this.api.getPlayerStateObject();g.U(a,2)&&g.rS(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.qo&&(a=this.qo.C,(this.api.L("embeds_disable_play_button_ve_focus_check")||document.activeElement===a.element)&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.HB(),this.api.playVideo(),this.qo&&document.activeElement===this.qo.C.element&&((a=this.OQ())==null?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.Dca=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!A1a(this,dt(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.pF)this.pF=!1;else if(a.Bb&&c!==3)try{this.api.toggleFullscreen().catch(function(d){b.fG(d)})}catch(d){this.fG(d)}};
g.k.fG=function(a){String(a).includes("fullscreen error")?g.qx(a):g.px(a)};
g.k.Eca=function(a){D1a(this,.3,a.scale);a.preventDefault()};
g.k.Fca=function(a){D1a(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.Qp(b,"ytp-fullscreen",this.api.isFullscreen());g.Qp(b,"ytp-large-width-mode",c);g.Qp(b,"ytp-small-mode",this.Sg());g.Qp(b,"ytp-tiny-mode",this.tL());g.Qp(b,"ytp-big-mode",this.Oh());this.zg&&this.zg.resize(a)};
g.k.lj=function(a){this.Ec(a.state);this.Ar()};
g.k.NC=ba(5);g.k.yQ=function(){var a=!!this.DG&&!this.api.Hf()&&!this.mT,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(fab&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=sY(this.api.yb());a&&(b&&b.player?a=(a=b.player.getVideoData(2))?a.isListed&&!g.fE(b.player.U()):!1:(Xy("showInfoBarDuringAd: this is null"),a=!1));return a}return a&&(c.Rn||this.api.isFullscreen()||c.bl)};
g.k.Ar=function(){var a=this.yQ();this.Qo!==a&&(this.Qo=a,g.Qp(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Ec=function(a){var b=a.isCued()||this.api.Lo()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.aV&&this.Mc(this.aV),this.aV=this.T(this.api.ob(),"touchstart",this.Hca,void 0,b));var c=this.Kg,d=a.isPlaying()&&!g.U(a,32)||this.api.sG();wY(c,128,!d);c=this.Kg;d=this.api.getPresentingPlayerType()===3;wY(c,256,d);c=this.api.getRootNode();g.U(a,2)?d=[i2.ENDED]:(d=[],g.U(a,8)?d.push(i2.PLAYING):g.U(a,4)&&d.push(i2.PAUSED),g.U(a,1)&&!g.U(a,32)&&d.push(i2.BUFFERING),g.U(a,
32)&&d.push(i2.SEEKING),g.U(a,64)&&d.push(i2.UNSTARTED));g.ic(this.HO,d)||(g.Pp(c,this.HO),this.HO=d,g.Np(c,d));d=this.api.U();var e=g.U(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.U(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:P$a(sY(this.api.yb())))||this.api.qB()||g.LP(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Qp(c,"ytp-hide-controls",!f);g.Qp(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.hR);g.U(a,
128)&&!g.LP(d)?(this.zg||(this.zg=new g.AY(this.api),g.P(this,this.zg),g.US(this.api,this.zg.element,4)),this.zg.B(a.Pg),this.zg.show()):this.zg&&(this.zg.dispose(),this.zg=null)};
g.k.Sr=function(){return this.api.El()&&this.api.Xp()?(this.api.KC(!1,!1),!0):this.api.Hf()?(g.sS(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.hR=a;this.zr()};
g.k.Oh=function(){return!1};
g.k.Sg=function(){return!this.Oh()&&(this.api.getPlayerSize().width<this.b3||this.api.getPlayerSize().height<290)};
g.k.tL=function(){return this.Sg()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.k.xn=function(){return this.BN};
g.k.dn=function(){return null};
g.k.SY=function(){return null};
g.k.Io=function(){var a=this.api.ob().getPlayerSize();return new g.Cm(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Wy=function(){};
g.k.showControls=function(a){a!==void 0&&this.api.ob().jN(a)};
g.k.Zv=function(){};
g.k.OQ=function(){return null};g.z(IY,g.Qx);g.k=IY.prototype;g.k.xK=function(){return 1E3*this.api.getDuration(this.Ep,!1)};
g.k.stop=function(){this.j&&this.Id.Mc(this.j)};
g.k.Rc=function(){var a=this.api.getProgressState(this.Ep);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Ep,!1)};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.C6=function(a){g.$y(a,2)&&this.publish("g")};g.z(g.JY,g.S);g.JY.prototype.show=function(){g.S.prototype.show.call(this);g.Fp(this.j)};
g.JY.prototype.hide=function(){this.B.stop();g.S.prototype.hide.call(this)};
g.JY.prototype.lI=function(a){a?g.U(this.J.getPlayerStateObject(),64)||KY(this,ky(),"Play"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?KY(this,Osa(),"Stop live playback"):KY(this,Ksa(),"Pause"))};g.z(G1a,g.S);g.k=G1a.prototype;g.k.iI=function(a){a?this.j=oS(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
g.k.rd=function(){this.J.U().L("player_new_info_card_format")&&g.Lp(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.LP(this.J.U())||(this.B.show(),g.Uv("iv-button-shown"))};
g.k.Mb=function(){g.Uv("iv-button-hidden");this.B.hide()};
g.k.Hk=function(){return this.Eb&&this.B.state!==4};
g.k.xa=function(){this.j&&this.j();g.S.prototype.xa.call(this)};
g.k.Cba=function(){g.Uv("iv-button-mouseover")};
g.k.onClicked=function(a){this.J.El();var b=g.Lp(this.J.getRootNode(),"ytp-cards-teaser-shown");g.Uv("iv-teaser-clicked",b);var c;if((c=this.J.getVideoData())==null?0:g.NR(c)){var d;a=(d=this.J.getVideoData())==null?void 0:g.OR(d);(a==null?0:a.onIconTapCommand)&&this.J.eb("innertubeCommand",a.onIconTapCommand)}else d=a.screenX===0&&a.screenY===0,this.J.KC(!this.J.Xp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.z(H1a,g.S);g.k=H1a.prototype;g.k.V3=function(){this.J.El()&&this.J.Xp()&&this.Hk()&&this.Mb()};
g.k.QU=function(){this.Mb();!this.J.El()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.jh.Mb();g.Uv("iv-teaser-clicked",this.j!=null);if(this.onClickCommand)this.J.eb("innertubeCommand",this.onClickCommand);else{var a;((a=this.J.getVideoData())==null?0:g.NR(a))||this.J.KC(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.E6=function(){g.Uv("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.dda=function(a){this.J.U().L("player_new_info_card_format")&&!g.LP(this.J.U())?this.jh.Mb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.jh.rd();this.j||!a||this.J.Xp()||this.B&&this.B.isActive()||(this.rd(a),g.Uv("iv-teaser-shown"))};
g.k.rd=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Vp(a.teaserText));this.D.show();this.B=new g.Ep(function(){g.Mp(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.LP(this.J.U())&&this.jh.Mb();this.uO()},0,this);
this.B.start();this.jh.iI(!1);this.j=new g.Ep(this.Mb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.JW,this));this.G.push(this.listen("mouseout",this.IW,this))};
g.k.uO=function(){if(!this.J.U().L("player_new_info_card_format")&&g.LP(this.J.U())&&this.Eb){var a=this.jh.element.offsetLeft,b=g.kh("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.jh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.c8=function(){g.LP(this.J.U())&&this.J.Sg()&&this.Eb&&this.W.start()};
g.k.JW=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
g.k.IW=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.Qba=function(){this.j&&this.j.stop()};
g.k.Pba=function(){this.Mb()};
g.k.D6=function(){this.Mb()};
g.k.Mb=function(){!this.j||this.C&&this.C.isActive()||(g.Uv("iv-teaser-hidden"),this.D.hide(),g.Op(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Ep(function(){for(var a=g.w(this.G),b=a.next();!b.done;b=a.next())this.Mc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.jh.iI(!0);!this.J.El()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.jh.Mb()},330,this),this.C.start())};
g.k.Hk=function(){return this.Eb&&this.D.state!==4};
g.k.xa=function(){var a=this.J.getRootNode();a&&g.Op(a,"ytp-cards-teaser-shown");g.wg(this.B,this.C,this.j);g.S.prototype.xa.call(this)};var O2={},MY=(O2.BUTTON="ytp-button",O2.TITLE_NOTIFICATIONS="ytp-title-notifications",O2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",O2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",O2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",O2);g.z(I1a,g.S);I1a.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);J1a(this,a)};g.Oa("yt.pubsub.publish",g.Uv);g.z(g.NY,g.S);g.NY.prototype.D=function(){window.location.reload()};
g.NY.prototype.j=function(){g.Mp(this.element,"ytp-sb-subscribed")};
g.NY.prototype.B=function(){g.Op(this.element,"ytp-sb-subscribed")};g.z(O1a,g.S);g.k=O1a.prototype;g.k.eba=function(a){this.api.logClick(this.B);var b=this.api.U();b.B||b.Ta?S1a(this)&&(this.isExpanded()?this.tP():this.bQ()):g.bg(window,N1a(this));a.preventDefault()};
g.k.TT=function(){R1a(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.bQ=function(){if(S1a(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.Bm&&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.tP=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Ra=function(){var a=this.api.U();g.Xx(this,!this.api.fd());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.rb&&!!d.profilePicture;this.api.getPresentingPlayerType()===2?this.D=e&&!!d.isListed&&!!d.author:g.LP(c)&&(this.D=e&&!g.YR(d)&&!c.C&&!(c.Z&&this.api.getPlayerSize().width<200));c=b.profilePicture;a=g.LP(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.XE("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Mp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Op(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.ym);this.updateValue("expandedTitle",b.expandedTitle);this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.Lc=function(a){g.S.prototype.Lc.call(this,a);this.api.logVisibility(this.B,this.D&&a)};g.z(OY,g.$S);OY.prototype.j=function(a){a.defaultPrevented||a.keyCode!==39||(this.element.click(),a.preventDefault())};g.z(T1a,g.S);g.k=T1a.prototype;g.k.show=function(){g.S.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.S.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.F6=function(a){var b=dt(a),c=g.wh(this.closeButton.element,b),d=g.wh(this.element,b);a=this.j&&g.wh(this.j,b)&&g.jz(a);b&&(d||a)&&!c||this.hide()};
g.k.G6=function(){L1a(g.aQ(this.Sa.U()),"user_info_panel",function(){window.location.reload()})};
g.k.Ra=function(){var a=this.Sa.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Zi};this.updateValue("icon",Lsa());this.updateValue("watchingAsUsername",g.XE("Watching as $USER_NAME",b));a.Zi?this.updateValue("watchingAsEmail",g.XE("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.z(V1a,g.AX);g.k=V1a.prototype;g.k.f8=function(){this.Cb.Mb()};
g.k.lba=function(){yNa(this.wA.element)};
g.k.yba=function(){QY(this,this.J.getDebugText(!0))&&KY(this.oe,cy())};
g.k.zba=function(){QY(this,this.J.getVideoEmbedCode())&&KY(this.oe,Csa());this.J.logClick(this.Do.element);Pz("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.Aba=function(){QY(this,this.J.getVideoUrl(!0,!0))&&KY(this.oe,gy());this.J.logClick(this.getVideoUrl.element);Pz("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.Bba=function(){QY(this,this.J.getVideoUrl(!1,!0))&&KY(this.oe,gy());this.J.logClick(this.Jo.element);Pz("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;(b=this.Zl)==null||jT(b,a)};
g.k.Jba=function(){this.J.setLoopVideo(this.Zl.getValue());this.Cb.Mb();this.J.logClick(this.Zl.element)};
g.k.yca=function(a){this.J.reportPlaybackIssue();if(g.kT(a,this.J,!cQ(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.Cd("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Cb.Mb()};
g.k.Tca=function(){g.eS(this.J,"isVideoInfoVisible",[])?g.eS(this.J,"hideVideoInfo",[]):g.eS(this.J,"showVideoInfo",[]);this.Cb.Mb()};
g.k.Sca=function(){this.mm&&(this.MI||(this.MI=new T1a(this.J,this.mm.element),g.P(this,this.MI),g.US(this.J,this.MI.element,4)),this.MI.show(),this.Cb.Mb(),this.J.logClick(this.mm.element))};
g.k.onVideoDataChange=function(a,b){this.mN(b)};
g.k.mN=function(a){var b=this.J.U(),c=this.J.getPresentingPlayerType()===2,d=!c||a.isListed;d=!b.qa&&!!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.partnerId&&(b.partnerid=a.partnerId),b=g.gj("//support.google.com/googleplay/",b));g.Xx(this.Do,d&&a.allowEmbed);g.Xx(this.getVideoUrl,d);g.Xx(this.Jo,
d&&!a.isLivePlayback);this.RH.Fd(b,"href");var e;(e=this.Zl)==null||g.Xx(e,!a.isLivePlayback&&!c);var f;(f=this.mm)==null||g.Xx(f,!c)};
g.k.Lc=function(a){g.AX.prototype.Lc.call(this,a);this.J.logVisibility(this.Do.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.Jo.element,a);this.Zl&&this.J.logVisibility(this.Zl.element,a);this.mm&&this.J.logVisibility(this.mm.element,a)};g.z(Y1a,g.CX);g.k=Y1a.prototype;g.k.I6=function(a){var b=dt(a);if(!(b&&(Bh(b,"a")||Bh(b,null,"ytp-no-contextmenu"))||this.Eb)){var c;this.Aa=(a=(c=a.touches)==null?void 0:c.item(0))?new g.Eg(a.clientX,a.clientY):new g.Eg(0,0);this.qa.start()}};
g.k.t1=function(){this.qa.stop()};
g.k.ida=function(){this.open(this.Aa)};
g.k.OY=function(){if(this.C&&W1a(this.C)){var a=W1a(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 V1a(this.J,this,this.oe),g.P(this,this.C),g.DX(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.CX.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Lc(!0)};
g.k.hide=function(){X1a(this);g.CX.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Lc(!1)};
g.k.jba=function(a){var b=dt(a);this.Eb||b&&(Bh(b,"a")||Bh(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Eg(a.pageX,a.pageY)))};
g.k.rd=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Eg(b.x,b.y))}g.CX.prototype.rd.call(this,a)};
g.k.open=function(a){Z1a(this);var b=this.J.getVideoData();g.Qp(this.element,"ytp-dni",b.Jf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.CX.prototype.rd.call(this);var c=document.body;b=new wm(0,Infinity,Infinity,0);var d=fh(c);for(var e=d.j.body,f=d.j.documentElement,h=Bea(d.j);c=Gia(c);)if((!g.mh||c.clientHeight!=0||c!=e)&&c!=e&&c!=f&&Km(c,"overflow")!="visible"){var l=g.Om(c),m=new g.Eg(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=Aea(d.j.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.Cm(0,0,0,0);d.left=a.x;d.top=a.y;d.width=
b.width;d.height=b.height;g.Mm(this.element,new g.Eg(d.left,d.top));g.ht(this.D);this.D.T(document,"contextmenu",this.qba);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.H6)};
g.k.qba=function(a){if(!a.defaultPrevented){var b=dt(a);g.wh(this.element,b)||this.Mb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Mb();Z1a(this)};
g.k.H6=function(){this.Mb()};g.z(RY,g.S);RY.prototype.onClick=function(){var a=this,b,c,d,e;return g.J(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.G(f,b2a(a,e),2);f.B&&a2a(a);a.api.logClick(a.element);g.va(f)})};
RY.prototype.Ra=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=$1a(this);g.Qp(this.element,"ytp-copylink-button-visible",this.visible);
g.Xx(this,this.visible);this.tooltip.ji();this.api.logVisibility(this.element,this.visible&&this.Z)};
RY.prototype.Lc=function(a){g.S.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
RY.prototype.xa=function(){g.S.prototype.xa.call(this);g.Op(this.element,"ytp-copylink-button-visible")};g.z(SY,g.S);SY.prototype.show=function(){g.S.prototype.show.call(this);g.Fp(this.B)};
SY.prototype.hide=function(){this.D.stop();this.C=0;g.Op(this.element,"ytp-chapter-seek");g.Op(this.element,"ytp-time-seeking");g.S.prototype.hide.call(this)};
SY.prototype.QH=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.W:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Hp(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.Da("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.Da("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");c2a(this,this.G?this.C:d)};g.z(e2a,yX);g.k=e2a.prototype;g.k.J6=function(a){this.Ka||(this.Ka=new FX(this.J),g.P(this,this.Ka));var b,c;if((b=this.rb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.Ka.open(this.rb.menu.menuRenderer,a.target),a.preventDefault()};
g.k.Dba=function(){this.J.eb("innertubeCommand",this.Pc);this.J.logClick(this.infoButton.element)};
g.k.wz=function(){return!!this.j};
g.k.pN=function(){return!!this.j};
g.k.YG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Bc&&this.J.eb("innertubeCommand",this.Bc),this.By(!1))};
g.k.wv=function(){this.By(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Qb.push(this.j.bannerData.dismissedStatusKey);this.xC()};
g.k.DW=function(){this.xC();WY(this)};
g.k.Nea=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.xC();c=g.w(this.Ca);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.Qb.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.oa.show();xX(this);g.Xx(this.Fa,!d.stayInApp);q2a(this);g2a(this);VY(this);this.Bc=g.Q(d.onTapCommand,sx);if(e=g.Q(d.menuOnTap,sx))this.rb=g.Q(e,Acb);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:j2a(this),priceDropReferencePrice:k2a(this),promotionText:i2a(this),priceA11yText:l2a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:m2a(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.Gb=new g.Ep(function(){p2a(b)},1E3),this.Fa.hide(),this.countdownTimer.show(),p2a(this));
this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&f2a(this)&&(this.Tb=new g.Ep(function(){h2a(b)},1E3),h2a(this))}}}};
g.k.xC=function(){this.j&&(this.j=void 0,this.xm())};
g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&WY(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.Q((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,ycb);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.ay(p));this.Pc=b==null?void 0:b.onClickCommand;this.Ca.length||(o2a(this,n),VY(this));var r;(r=this.jd)==null||r.call(this);this.jd=g.uR.subscribe(function(){o2a(c,n);VY(c)})}else{var t;
(t=this.jd)==null||t.call(this);this.xC()}};
g.k.xa=function(){WY(this);q2a(this);g2a(this);yX.prototype.xa.call(this)};g.z(v2a,g.S);v2a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.z(w2a,g.YS);g.k=w2a.prototype;g.k.show=function(){g.YS.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);x2a(this,!0)};
g.k.hide=function(){g.YS.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);x2a(this,!1)};
g.k.getId=function(){return this.D};
g.k.qq=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.rl)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.rl)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.rl)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.w(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.rl)==null?0:l.ctaButtons)for(b=g.w(b.rl.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Q(l.value,
tcb))l=new v2a(this.J,l,this.j),l.ye&&(this.itemData.push(l),l.Ha(this.items))}};
g.k.xa=function(){this.hide();g.YS.prototype.xa.call(this)};g.z(A2a,g.S);g.k=A2a.prototype;g.k.onVideoDataChange=function(a,b){z2a(this,b);this.Ie&&C2a(this,this.Ie)};
g.k.M6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&z2a(this,b);C2a(this,a.state);this.Ie=a.state};
g.k.L0=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.L6=function(){this.B||this.rd();this.showControls=!0};
g.k.K6=function(){this.B||this.Mb();this.showControls=!1};
g.k.rd=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.fd())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.U(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.Sea=function(){this.B=!1;this.showControls||this.Mb()};var ueb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ueb).reduce(function(a,b){a[ueb[b]]=b;return a},{});
var veb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(veb).reduce(function(a,b){a[veb[b]]=b;return a},{});
var web={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(web).reduce(function(a,b){a[web[b]]=b;return a},{});var xeb,yeb;xeb=[{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"}];yeb=[{option:0,text:XY(0)},{option:.25,text:XY(.25)},{option:.5,text:XY(.5)},{option:.75,text:XY(.75)},{option:1,text:XY(1)}];
g.aZ=[{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:xeb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:XY(.5)},{option:-1,text:XY(.75)},{option:0,text:XY(1)},{option:1,text:XY(1.5)},{option:2,
text:XY(2)},{option:3,text:XY(3)},{option:4,text:XY(4)}]},{option:"background",text:"Background color",options:xeb},{option:"backgroundOpacity",text:"Background opacity",options:yeb},{option:"windowColor",text:"Window color",options:xeb},{option:"windowOpacity",text:"Window opacity",options:yeb},{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:XY(.25)},{option:.5,text:XY(.5)},{option:.75,text:XY(.75)},{option:1,text:XY(1)}]}];var zeb=[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.z(I2a,g.jG);g.k=I2a.prototype;
g.k.BZ=function(a){a.repeat||(this.C.kL=!1);var b=!1,c=a.keyCode,d=dt(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||zeb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.mf&&!this.api.isMutedByEmbedsMutedAutoplay()&&(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=!1):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);LY(this.oe,f,!1);this.api.setVolume(f);
h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);LY(this.oe,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Ph()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Ph()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&ZY(this,!0);(b||h)&&this.Kg.Zv();(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.tf("onKeyPress",a))};
g.k.CZ=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.kL)return b;(c=g.vS(this.api.yb()))&&(c=c.Tv)&&c.Eb&&(c.zZ(a),b=!0);switch(a){case 9:ZY(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().mf){var l,m;a=(l=this.progressBar)==
null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Bt(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.kL=!1);var m=!1,n=this.api.U();if(n.mf&&!this.api.isMutedByEmbedsMutedAutoplay())return m;var p=g.vS(this.api.yb());if(p&&(p=p.Tv)&&p.Eb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.yZ(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&Rla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!this.api.isMutedByEmbedsMutedAutoplay()||
zeb.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.Wk:[];t=BU?d:c;switch(a){case 80:b&&!n.Oa&&(KY(this.oe,Nsa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Oa&&(KY(this.oe,hy(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Ph()&&(this.api.startSeekCsiAction(),this.j?this.api.L("enable_key_press_seek_logging")?(m=$Y(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),TY(this.j,
-1,10,m)):TY(this.j,-1,10):KY(this.oe,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Ph()&&(this.api.startSeekCsiAction(),this.j?this.api.L("enable_key_press_seek_logging")?(m=$Y(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),TY(this.j,1,10,m)):TY(this.j,1,10):KY(this.oe,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Ph()&&(this.api.startSeekCsiAction(),t?(t=F2a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(d2a(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?this.api.L("enable_key_press_seek_logging")?(m=$Y(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),TY(this.j,-1,5,m)):TY(this.j,-1,5):KY(this.oe,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Ph()&&(this.api.startSeekCsiAction(),t?(t=E2a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(d2a(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?this.api.L("enable_key_press_seek_logging")?(m=$Y(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),TY(this.j,1,5,m)):TY(this.j,1,5):KY(this.oe,{I:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),LY(this.oe,this.api.getVolume(),!1)):(this.api.mute(),LY(this.oe,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Oa:this.Bt(p);break;case 75:m=this.Bt(p);break;case 190:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!K2a(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),E1a(this.oe,!1),m=!0):this.api.Ph()&&
(this.step(1),m=!0);break;case 188:b?!n.enableSpeedOptions||this.api.L("html5_lifa_ui_disablement")&&!K2a(this)||(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),E1a(this.oe,!0),m=!0):this.api.Ph()&&(this.step(-1),m=!0);break;case 70:uNa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.Bx(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.pY(this.api.yb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),F1a(this.oe,!n||n&&!n.displayName),m=!0);break;case 79:bZ(this,"textOpacity");break;case 87:bZ(this,"windowOpacity");break;case 187:case 61:bZ(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:bZ(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.Ph()&&
(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.Zv()}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.Ph();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.Bt=function(a){if(!this.api.U().Oa){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.Q(d.miniplayer,Hcb))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.eb("onExpandMiniplayer");a?this.progressBar.eQ():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.oe.lI(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.xa=function(){g.Hp(this.G);g.jG.prototype.xa.call(this)};g.z(g.cZ,g.S);g.cZ.prototype.Zs=ba(11);g.cZ.prototype.Ra=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.Di.isEmpty();a=g.LP(a)&&g.uS(this.J)&&g.U(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Sg()&&!a&&c.width>=240&&!g.YR(this.J.getVideoData())&&!b&&!this.j&&!this.J.fd();g.Qp(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.ji();this.J.logVisibility(this.element,this.visible&&this.Z)};
g.cZ.prototype.Lc=function(a){g.S.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
g.cZ.prototype.xa=function(){g.S.prototype.xa.call(this);g.Op(this.element,"ytp-overflow-button-visible")};g.z(L2a,g.YS);g.k=L2a.prototype;g.k.N6=function(a){a=dt(a);g.wh(this.element,a)&&(g.wh(this.j,a)||g.wh(this.closeButton,a)||ZS(this))};
g.k.Mb=function(){g.YS.prototype.Mb.call(this);this.J.Pm(this.element)};
g.k.show=function(){this.Eb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.YS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");N2a(this,!0)};
g.k.hide=function(){g.YS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");N2a(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Hk()&&ZS(this)};
g.k.isEmpty=function(){return this.actionButtons.length===0};
g.k.focus=function(){for(var a=g.w(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Eb){b.focus();break}};g.z(O2a,g.S);O2a.prototype.onClick=function(a){g.kT(a,this.api)&&this.api.playVideoAt(this.index)};g.z(P2a,g.YS);g.k=P2a.prototype;g.k.show=function(){g.YS.prototype.show.call(this);this.j.T(this.api,"videodatachange",this.vO);this.j.T(this.api,"onPlaylistUpdate",this.vO);this.vO()};
g.k.hide=function(){g.YS.prototype.hide.call(this);g.ht(this.j);this.updatePlaylist(null)};
g.k.vO=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Da("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Mc(this.C),this.C=null))};
g.k.cN=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.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.XE(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[a.index];else{c=g.w(this.playlistData);for(d=c.next();!d.done;d=c.next())d.value.dispose();
c=a.getLength();this.playlistData=[];for(d=0;d<c;d++){var e=new O2a(this.api,a,d);this.playlistData.push(e);e.Ha(this.items)}this.selected=this.playlistData[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.hda=function(a){var b=this.api.getVideoUrl(!0);g.lT(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.cN,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.cN,this),this.cN()):this.Eb&&this.hide()):this.playlist&&this.cN()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.YS.prototype.xa.call(this)};g.z(dZ,g.S);dZ.prototype.hide=function(){g.S.prototype.hide.call(this);this.Lc(!1);this.api.ji()};
dZ.prototype.Ra=function(){var a=g.LP(this.api.U());g.Qp(this.element,"ytp-playlist-menu-button-tiny",this.api.ob().getPlayerSize().width<400&&!a);this.api.fd()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.XE("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.XE("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Eb||(this.show(),this.api.ji()),
this.visible=!0,this.Lc(!0)):this.Eb&&this.hide()};
dZ.prototype.Lc=function(a){g.S.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
dZ.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ra,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ra,this);this.Ra()};g.z(Q2a,g.S);g.k=Q2a.prototype;g.k.P6=function(){this.C?U2a(this):T2a(this)};
g.k.O6=function(){this.C?(eZ(this),this.G=!0):T2a(this)};
g.k.Kaa=function(){this.D=!0;this.dI(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);eZ(this);this.j&&this.J.logClick(this.acceptButton)};
g.k.pba=function(){this.D=!0;this.dI(2);eZ(this);this.j&&this.J.logClick(this.dismissButton)};
g.k.Q6=function(a){if(this.J.getPresentingPlayerType()===1||this.J.getPresentingPlayerType()===2&&this.K){var b=!0,c=g.kh("ytp-ad-overlay-ad-info-dialog-container"),d=g.kh("ytp-ad-player-overlay-layout"),e=dt(a);if(this.B&&e&&g.wh(this.B,e))this.B=null;else{this.J.getPresentingPlayerType()===1&&e&&Array.from(e.classList).forEach(function(m){if(m.startsWith("ytp-ad")||m.startsWith("ytp-skip-ad"))b=!1});
var f=V2a(this.tooltipRenderer),h;if(((h=this.tooltipRenderer.dismissStrategy)==null?void 0:h.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")f&&(b=b&&!g.wh(this.element,e));else{var l;((l=this.tooltipRenderer.dismissStrategy)==null?void 0:l.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(b=f?!1:b&&g.wh(this.element,e))}this.targetElement&&this.Eb&&!c&&!d&&(!e||b&&g.jz(a))&&(this.D=!0,eZ(this))}}};
g.k.dI=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.Q(d,scb))==null?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.Xm(),(a==null?0:Dta(d,a.WP))&&MA(a,d,e))}};
g.k.kc=function(){this.G||(this.targetElement||(this.targetElement=R2a(this)),U2a(this))};
var S2a={"ytp-settings-button":g.my()};g.z(fZ,g.S);fZ.prototype.onStateChange=function(a){this.yd(a.state)};
fZ.prototype.yd=function(a){g.Xx(this,g.U(a,2))};
fZ.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.z(gZ,g.S);gZ.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.gj(this.api.U().Ca,{focusSearch:"true"}),c={};g.eS(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.gj(b,c);var d;(c=(d=this.api.getVideoData().c5)==null?void 0:d.params)&&(b=g.gj(b,{bp:c}));g.bg(window,b);a.preventDefault()};
gZ.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.LP(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.fd()}else a=!1;this.visible=a;g.Xx(this,this.visible);g.Qp(this.element,"ytp-search-button-visible",this.visible);g.Qp(this.element,"ytp-show-search-title",!this.api.Sg());this.api.logVisibility(this.element,this.visible&&this.Z)};
gZ.prototype.Lc=function(a){g.S.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(g.hZ,g.S);g.k=g.hZ.prototype;g.k.gt=ba(8);g.k.onClick=function(){var a=this,b=this.api.U(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=this.api.L("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):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){X2a(a,f)})}catch(f){f instanceof Error&&X2a(this,f)}else this.Se.Sr(),ZS(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Ra=function(){var a=this.api.U(),b=this.api.fd();g.Qp(this.element,"ytp-show-share-title",g.LP(a)&&!b);this.Se.Oh()&&b?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Fm(this.element,"right",a+"px")):b&&g.Fm(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=W2a(this);g.Qp(this.element,"ytp-share-button-visible",this.visible);g.Xx(this,this.visible);this.tooltip.ji();this.api.logVisibility(this.element,W2a(this)&&this.Z)};
g.k.Lc=function(a){g.S.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.xa=function(){g.S.prototype.xa.call(this);g.Op(this.element,"ytp-share-button-visible")};g.z(Z2a,g.YS);g.k=Z2a.prototype;g.k.R6=function(a){a=dt(a);g.wh(this.G,a)||g.wh(this.closeButton,a)||ZS(this)};
g.k.Mb=function(){g.YS.prototype.Mb.call(this);this.tooltip.Pm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.w(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.Eb;g.YS.prototype.show.call(this);this.Ra();a||this.api.eb("onSharePanelOpened")};
g.k.maa=function(){this.Eb&&this.Ra()};
g.k.Ra=function(){var a=this;g.Mp(this.element,"ytp-share-panel-loading");g.Op(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&MA(this.api.Xm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ia()||(g.Op(a.element,"ytp-share-panel-loading"),a3a(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.XE("Share link $URL",{URL:b}));yNa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.Hk()&&ZS(this)};
g.k.focus=function(){this.j.focus()};
g.k.xa=function(){g.YS.prototype.xa.call(this);$2a(this)};g.z(d3a,yX);g.k=d3a.prototype;g.k.xa=function(){i3a(this);yX.prototype.xa.call(this)};
g.k.YG=function(a){a.target!==this.dismissButton.element&&(this.By(!1),this.J.eb("innertubeCommand",this.onClickCommand))};
g.k.wv=function(){this.Ta=!0;this.By(!0);this.xm()};
g.k.fca=function(a){this.N=a;this.xm()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Ta=!1,this.Aa=!0,this.W=this.qa=!1,i3a(this),h3a(this,!1),this.B=this.j=!1,jZ(this),e3a(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.Nf(!1);else{var e,f,h;b=g.Q((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,
ycb);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.uR.getState().entities;var l;if((l=TB(f,"featuredProductsEntity",e))==null?0:l.productsData){this.Nf(!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,h3a(this,!0),e3a(this),m=g3a(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.S({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.P(this,p),n.push(p),n.push.apply(n,g.x(m.slice(1)))),this.K=new g.S({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.P(this,this.K),this.Ja.element.append(this.K.element));this.text=g.ay(b.text);
var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Ua=g.ay(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.qf()}y_a(this);xX(this);this.xm()}};
g.k.wz=function(){return!this.N&&this.enabled&&!this.Ta&&!this.J.Sg()&&!this.Bb&&(this.W||this.Aa)};
g.k.fM=function(a){yX.prototype.fM.call(this,a);if(this.j||this.B)this.timing&&iZ(this.timing.preview)&&(this.j=!1,jZ(this),this.B=!1,jZ(this),this.J.kf("shopping_overlay_preview_collapsed"),this.J.kf("shopping_overlay_preview_expanded"),a=kZ(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),iZ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.kf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.qf([a])),
this.qa=!0,xX(this);jZ(this)};
g.k.Nf=function(a){(this.W=a)?(wX(this),xX(this,!1)):(i3a(this),this.Oa.start());this.xm()};
g.k.qf=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;iZ(d)&&(b3a(d,a),c.push(kZ(d.startSec,d.endSec,"shopping_overlay_visible")));iZ(e)&&(b3a(e,a),d=e.startSec+1,c.push(kZ(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(kZ(d,e.endSec,"shopping_overlay_preview_expanded")));iZ(b)&&(b3a(b,a),c.push(kZ(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.qf(c)};g.z(l3a,g.S);
l3a.prototype.Ra=function(){var a=this.api.U();g.Xx(this,g.LP(a)&&this.api.fd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Eb);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.rb&&!!b.profilePicture:g.LP(a)&&(c=!!b.videoId&&!!b.rb&&!!b.profilePicture&&!g.YR(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.LP(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.XE("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Mp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Op(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.ym);this.updateValue("expandedTitle",b.expandedTitle)};g.z(lZ,g.YS);lZ.prototype.show=function(){g.YS.prototype.show.call(this);this.j.start()};
lZ.prototype.hide=function(){g.YS.prototype.hide.call(this);this.j.stop()};
lZ.prototype.Gu=function(a,b){a==="dataloaded"&&((this.Jj=b.Jj,this.uf=b.uf,isNaN(this.Jj)||isNaN(this.uf))?this.C&&(this.J.kf("intro"),this.J.removeEventListener(g.ME("intro"),this.K),this.J.removeEventListener(g.NE("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.ME("intro"),this.K),this.J.addEventListener(g.NE("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.KE(this.Jj,this.uf,{priority:9,namespace:"intro"}),
this.J.qf([a]),this.C=!0))};g.z(mZ,g.S);mZ.prototype.onClick=function(){this.J.Qv()};
mZ.prototype.Ra=function(){var a=!0;g.LP(this.J.U())&&(a=a&&this.J.ob().getPlayerSize().width>=480);g.Xx(this,a);this.updateValue("icon",this.J.zi()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.z(n3a,g.S);n3a.prototype.xa=function(){this.j=null;g.S.prototype.xa.call(this)};g.z(nZ,g.S);nZ.prototype.onClick=function(){this.J.eb("innertubeCommand",this.B)};
nZ.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
nZ.prototype.K=function(){this.j.disabled=this.B==null;g.Qp(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Rc()};g.z(oZ,nZ);oZ.prototype.onClickCommand=function(a){g.Q(a,tR)&&this.Rc()};
oZ.prototype.updateVideoData=function(a,b){var c,d,e;a=g.Q((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,IQ);var f;this.B=(f=g.Q(a==null?void 0:a.playerBarActionButton,g.dK))==null?void 0:f.command;nZ.prototype.K.call(this)};
oZ.prototype.Rc=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=YY(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.J.eb("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;nZ.prototype.N.call(this,a)};g.z(pZ,g.S);pZ.prototype.G=function(a){g.U(a.state,32)?q3a(this,this.api.Fk()):this.Eb&&(g.U(a.state,16)||g.U(a.state,1))||this.j.hide()};
pZ.prototype.Eg=function(){var a=this.api.getPlayerStateObject();(g.U(a,32)||g.U(a,16))&&r3a(this)};
pZ.prototype.K=function(){this.C=NaN;r3a(this)};
pZ.prototype.hide=function(){this.B&&q3a(this,null);g.S.prototype.hide.call(this)};g.z(s3a,g.S);g.k=s3a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Bb||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.fG(b)})}catch(b){this.fG(b)}}else ZS(this.message,this.element,!0)};
g.k.fG=function(a){String(a).includes("fullscreen error")?g.qx(a):g.px(a);this.IS()};
g.k.IS=function(){this.disable();this.message.rd(this.element,!0)};
g.k.Oy=function(){Xs()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.Y7=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.IS()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(Us(["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.YS(this.J,{I:"div",La:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924",
target:this.J.U().W},va:b[2]},b[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(c){a.Se.tF(a.message,c)});
g.US(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.Ra=function(){var a=uNa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.Xx(this,a&&!b);this.J.logVisibility(this.element,this.Eb)};
g.k.jm=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.pS(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.qx(c)})}else b={I:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.pS(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.Se.We().ji()};
g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.S.prototype.xa.call(this)};g.z(qZ,g.S);qZ.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.Mi().xx;c&&TY(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.x(a)),g.Fp(this.B))};g.z(rZ,nZ);rZ.prototype.onClickCommand=function(a){g.Q(a,wcb)&&this.Rc()};
rZ.prototype.updateVideoData=function(){var a,b;this.B=(a=u3a(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;nZ.prototype.K.call(this)};
rZ.prototype.Rc=function(){var a="",b=this.D.K,c,d=(c=u3a(this))==null?void 0:c.headerTitle;c=d?g.ay(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=D2a(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.eb("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));nZ.prototype.N.call(this,a)};g.z(sZ,g.S);sZ.prototype.onClick=function(){this.J.eb("onCollapseMiniplayer");this.J.logClick(this.element)};
sZ.prototype.Ra=function(){this.visible=!this.J.isFullscreen();g.Xx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
sZ.prototype.Lc=function(a){g.S.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.z(v3a,g.S);g.k=v3a.prototype;g.k.KW=function(a){this.visible=a.width>=300||this.Fa;g.Xx(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.Rba=function(){this.J.U().Ua?this.J.isMuted()?this.J.unMute():this.J.mute():ZS(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.qa;isNaN(f)?y3a(this,a):c0a(this.Ca,function(l){y3a(c,f+(c.G-f)*l)},250);
this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.W;isNaN(h)?z3a(this,d):c0a(this.oa,function(l){z3a(c,h+(c.D-h)*l)},250);
this.D=d}e.Ua&&(e=g.pS(this.J,"Mute","m"),d=g.pS(this.J,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.ji())};
g.k.Lc=function(a){g.S.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
var w3a=["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"],x3a=["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.z(g.tZ,g.S);g.tZ.prototype.onStateChange=function(a){this.yd(a.state)};
g.tZ.prototype.yd=function(a){var b=g.IR(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.U(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.pS(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.pS(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:A3a(a)}):(this.update({title:b}),(b=A3a(a))&&this.j&&this.j!==3?e0a(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.ji();this.j=a}};
g.tZ.prototype.onVideoDataChange=function(){g.Qp(this.element,"ytp-play-button-playlist",g.uS(this.J))};
g.tZ.prototype.Bt=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.K)b.cttAuthInfo={token:this.J.getVideoData().K,videoId:this.J.getVideoData().videoId};HA("direct_playback",b);this.J.Lh().timerName="direct_playback"}else this.j===3&&dY(this.J.Lh());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)===
"click"&&this.element.blur()};g.z(g.uZ,g.S);g.k=g.uZ.prototype;g.k.onVideoDataChange=function(){C3a(this);this.D&&(this.Mc(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.S6);this.C=D3a(this);B3a(this);this.wO(this.J.ob().getPlayerSize())};
g.k.wO=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.uS(this.J)||this.j&&g.VS(this.J)&&!this.J.L("web_hide_next_button")||E3a(this))&&!c&&(this.j||a.width>=400);g.Xx(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.kT(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(dY(this.J.Lh()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(dY(this.J.Lh()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.S6=function(){var a=D3a(this);a!==this.C&&(this.C=a,B3a(this))};
g.k.xa=function(){this.B&&(this.B(),this.B=null);C3a(this);g.S.prototype.xa.call(this)};g.z(G3a,g.S);g.k=G3a.prototype;g.k.U6=function(a){this.yO(a.pageX);this.xO(a.pageX+a.deltaX);H3a(this)};
g.k.yO=function(a){this.oa=a-this.Ka};
g.k.xO=function(a){a-=this.Ka;!isNaN(this.oa)&&this.thumbnails.length>0&&(this.W=a-this.oa,this.thumbnails.length>0&&this.W!==0&&(this.C=this.N+this.W,a=M3a(this,this.C),this.C<=this.j/2&&this.C>=L3a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Fm(this.Aa,"transform","translateX("+(this.C-this.j/2)+"px)"),F3a(this,a)):this.C=this.N))};
g.k.T6=function(){this.qa&&(this.qa.hB=!0);var a=(0,g.hu)()-this.Ua<300;if(Math.abs(this.W)<5&&!a){this.Ua=(0,g.hu)();a=this.oa+this.W;var b=this.j/2-a;this.yO(a);this.xO(a+b);H3a(this);this.api.logClick(this.G)}H3a(this)};
g.k.ZB=function(){vZ(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(M3a(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.Oa,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.kc=function(a,b){this.Ka=a;this.j=b;vZ(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Oa=this.api.getCurrentTime(),F3a(this,this.Oa),g.Qp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ja=this.T(this.element,"wheel",this.U6),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Qp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ja&&this.Mc(this.Ja);this.logVisibility(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.Fa=!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.S.prototype.xa.call(this)};
g.z(I3a,g.S);g.z(J3a,g.S);g.z(N3a,g.S);g.z(wZ,g.S);wZ.prototype.Ib=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};Q3a.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.Bg(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.z(R3a,g.S);g.z(g.zZ,g.Yx);g.k=g.zZ.prototype;
g.k.X3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.kf("timedMarkerCueRange");U3a(this);for(var c=g.w(b.Ee),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.Oa[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.Oa[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.w(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new R3a;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;$3a(this,f)}a4a(this,this.K);a=this.K;f=this.mf;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=G2a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.qf(e);this.gh=this.Oa[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.Oa[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&&T3a(this);n=[];l&&n.push(l);for(var r=g.w(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.qa.style.height=
e+"px");p=this.G[m];q=n;t=f;var y=e,A=m===0;A=A===void 0?!1:A;O3a(p,y);r=q;u=p.j;A=A===void 0?!1:A;var C=1E3/r.length,F=[];F.push({x:0,y:100});for(var H=0;H<r.length;H++){var L=(H+.5)*C,N=100-g.Bg((r[H].intensityScoreNormalized||0)*100,t/u*100,y/u*100);H!==0||A||F.push({x:0,y:N});F.push({x:L,y:N});H===r.length-1&&F.push({x:1E3,y:N})}F.push({x:1E3,y:100});r=F;q=q.length===0?"":jva(r);p.C.setAttribute("d",q);p.ye=q!=="";g.Qp(p.api.getRootNode(),"ytp-heat-map",p.ye);n.length>0&&(l=n[n.length-1])}g.AZ(this)}e=
void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.w(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.ay(e.label):""});d=f;this.heatMarkersDecorations=d}}b.cK=this.K;g.Qp(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.kc=function(){g.AZ(this);DZ(this);a4a(this,this.K);if(this.B){var a=g.Om(this.element).x||0;this.B.kc(a,this.N)}};
g.k.onClickCommand=function(a){if(a=g.Q(a,tR)){var b=a.key;a.isVisible&&b&&e4a(this,b)}};
g.k.gda=function(a){this.api.eb("innertubeCommand",this.mf[a.id])};
g.k.Rc=function(){DZ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.WM()};
g.k.V6=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.L("enable_key_press_seek_logging")&&IZ(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS");
this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.L("enable_key_press_seek_logging")&&IZ(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&a.preventDefault()}};
g.k.Gu=function(a,b){this.updateVideoData(b,a==="newdata")};
g.k.h$=function(){this.Gu("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.ye();c&&(WR(a)||j4a(this)?this.nf=!1:this.nf=a.allowLiveDvr,g.Qp(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!WR(a))));u4a(this,this.api.Ph());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;JZ(this);for(FZ(this,this.oa,this.ib);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.rb={};var d;(d=this.B)==null||d.reset();OZ(this);g.Qp(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
yZ(this))}else this.WM();this.xi()}if(a){var e;d=((e=this.Fb)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.JQ(e);c=W3a(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.Yw)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.JQ(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.Ow=((h=d.visibleOnLoad)==null?void 0:h.key)||e.Ow;h=g.w(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.rb[d.key]=d.value,
d.value.onChapterRepeat&&(e.b5=d.value.onChapterRepeat));e.Ow!=null&&e4a(this,e.Ow);e=!0}var l;if(((l=f.Yw)==null?void 0:l.length)>0){l=g.uR.getState().entities;h=g.w(f.Yw);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=TB(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.Oa[d]=b}e=this.X3()||e}!e&&(l=W3a(f))&&(Y3a(this,l),f.Wk=this.j,X3a(this));
k4a(this,null);a.VW&&this.G.length===0&&(a=a.VW,l=a.key,a.isVisible&&l&&e4a(this,l))}else S3a(this),U3a(this)}DZ(this)};
g.k.i$=function(a){this.W&&!g.U(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.W.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.U(a.state,8)&&this.api.pauseVideo()};
g.k.LW=function(a){var b=!!this.Fb!==!!a,c=this.Fb;this.Fb=a;k4a(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",Jsa()),this.updateValue("clipendicon",Jsa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Bsa()),this.updateValue("clipendicon",Asa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.AZ(this)),JZ(this));FZ(this,this.oa,this.ib)};
g.k.ica=function(a,b,c){var d=g.Om(this.element),e=CZ(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=sz(this.C,Number(c.getAttribute("data-position")),0)*e+g.Om(this.progressBar).x);this.Ya.x=a-d.x;this.Ya.y=b-d.y;a=CZ(this);c=HZ(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:WR(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=sz(this.C,m)*CZ(this).j),b=this.C.B;
j4a(this)&&(b=this.C.B);m=f||g.iz(this.nf?c-this.C.j:c-b);b=a.position+this.Wf;c-=this.api.zc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.Fk()){if(this.j.length>1){n=GZ(this,this.Ya.x,!0);if(!this.Fb)for(d=0;d<this.j.length;)g.Qp(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.Qp(this.G[d].element,"ytp-heatmap-hover",d===n)}if(this.K.length>0)for(n=this.Ya.x,d=g.w(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=BZ(this,e.timeRangeStartMillis/
(this.C.j*1E3),CZ(this)),g.Qp(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.gh?(n=D2a(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=YY(this.j,c*1E3),n=this.j[n].title):(n=YY(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.L("web_cairo_modern_miniplayer")?(l=this.api.ob().getPlayerSize().height-225,l=n?l+110:l+110+16,this.api.L("web_cairo_modern_miniplayer_inset_progress_bar")&&
(l-=12)):l=n?110:126);d=YY(this.j,c*1E3);this.Aa=l4a(this,c,d)?d:l4a(this,c,d+1)?d+1:-1;g.Qp(this.api.getRootNode(),"ytp-progress-bar-snap",this.Aa!==-1&&this.j.length>1);d=!1;e=g.w(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.iz(h.decorationTimeMillis/1E3),d=!0)}this.le!==d&&(this.le=d,this.api.logVisibility(this.Ad,this.le));g.Qp(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].ye&&(l-=14*(this.D?2:1),this.Ja||(this.Ja=!0,this.api.logVisibility(this.qa,this.Ja)));var q;if(yZ(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Ta>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?LZ(this):this.Ta}q=void 0;yZ(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.logVisibility(this.kd,
this.Fa)));this.tooltip.tN(b,c,m,!!f,l,n,d,q)}else this.tooltip.tN(b,c,m,!!f,l);g.Mp(this.api.getRootNode(),"ytp-progress-bar-hover");i4a(this)};
g.k.hca=function(){this.xi();g.Op(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ja&&(this.Ja=!1,this.api.logVisibility(this.qa,this.Ja));this.Fa&&(this.Fa=!1,this.api.logVisibility(this.kd,this.Fa))};
g.k.gca=function(a,b){yZ(this)&&this.B&&(this.B.Fa?vZ(this.B,this.api.getCurrentTime()):K3a(this.B),this.B.show(),g.Qp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.ge&&(this.ge.dispose(),this.ge=null);this.Xf=b;this.Nd=this.api.getCurrentTime();this.j.length>1&&this.Aa!==-1?this.api.seekTo(this.j[this.Aa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(HZ(this,CZ(this)),!1,void 0,void 0,7);g.Mp(this.element,"ytp-drag");(this.uf=this.api.getPlayerStateObject().isOrWillBePlaying())&&
this.api.pauseVideo()};
g.k.jca=function(){if(yZ(this)&&this.B){var a=LZ(this);this.Ta>=a*.5?(this.B.enable(),vZ(this.B,this.api.getCurrentTime()),t4a(this,a)):OZ(this)}if(g.U(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.Aa!==-1)this.api.L("html5_enable_progress_bar_slide_seek_logging")&&IZ(this,this.Nd,this.j[this.Aa].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.j[this.Aa].startTime/1E3,void 0,void 0,void 0,7);else{a=HZ(this,CZ(this));this.api.L("html5_enable_progress_bar_slide_seek_logging")&&IZ(this,this.Nd,a,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(a,void 0,void 0,void 0,7);b=g.w(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.Ad)}g.Op(this.element,"ytp-drag");this.uf&&!g.U(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.k.kca=function(a,b){a=CZ(this);a=HZ(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;yZ(this)&&((c=this.B)==null?0:c.Fa)&&(vZ(this.B,a),this.B.isEnabled||(this.Ta=g.Bg(this.Xf-b-10,0,LZ(this)),t4a(this,this.Ta)))};
g.k.xi=function(){this.tooltip.jR()};
g.k.I0=function(){this.Fb||(this.updateValue("clipstarticon",zsa()),this.updateValue("clipendicon",zsa()),g.Mp(this.element,"ytp-clip-hover"))};
g.k.H0=function(){this.Fb||(this.updateValue("clipstarticon",Bsa()),this.updateValue("clipendicon",Asa()),g.Op(this.element,"ytp-clip-hover"))};
g.k.WM=function(){this.clipStart=0;this.clipEnd=Infinity;JZ(this);FZ(this,this.oa,this.ib)};
g.k.Rfa=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ka[c]){var d=g.qh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ka[c]=b;this.Qb[c]=d;g.Kp(d,b.style);m4a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else s4a(this,b)};
g.k.iea=function(a){a=g.w(a);for(var b=a.next();!b.done;b=a.next())s4a(this,b.value)};
g.k.Bx=function(a){this.B&&(this.B.onExit(a!=null),OZ(this))};
g.k.eQ=function(a){this.B&&(this.B.play(a!=null),OZ(this))};
g.k.Sfa=function(){u4a(this,this.api.Ph())};
g.k.xa=function(){u4a(this,!1);g.Yx.prototype.xa.call(this)};g.z(PZ,g.S);PZ.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
PZ.prototype.Ra=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.Xx(this,a&&this.J.ob().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Eb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Fc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.ysa())}g.Qp(this.element,"ytp-remote-button-active",this.isActive())}};
PZ.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Cb,b=this.element;if(a.Hk())a.Mb();else{a.initialize();a:{var c=g.w(a.Te.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.rd(b));a.rd(b)}}this.J.logClick(this.element)};g.z(QZ,g.S);QZ.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.Xx(this,a);this.J.logVisibility(this.element,a)};
QZ.prototype.C=function(){if(this.Cb.Eb)this.Cb.Mb();else{var a=g.pY(this.J.yb());a&&!a.loaded&&(a.gi("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Cb.rd(this.element)}};
QZ.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.QS(this.J),e=c&&!!g.vS(this.J.yb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Qp(this.element,"ytp-hdr-quality-badge",a);g.Qp(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.Qp(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.Qp(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.Qp(this.element,"ytp-8k-quality-badge",
!a&&c==="highres");g.Qp(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Qp(this.element,"ytp-3d-badge",!a&&e&&d)};g.z(RZ,iT);RZ.prototype.isLoaded=function(){var a=g.vY(this.J.yb());return a!==void 0&&a.loaded};
RZ.prototype.Ra=function(){g.vY(this.J.yb())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Cb.Tc(this),this.j=!0):this.j&&(this.Cb.Dh(this),this.j=!1);jT(this,this.isLoaded())};
RZ.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)};
RZ.prototype.xa=function(){this.j&&this.Cb.Dh(this);iT.prototype.xa.call(this)};g.z(SZ,g.IX);SZ.prototype.Ra=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(this.Bl(g.Ql(a,this.j)),this.tracks=g.mc(a,this.j,this),this.countLabel.Fd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ji(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
SZ.prototype.fh=function(a){g.IX.prototype.fh.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Cb.nj()};
SZ.prototype.j=function(a){return a.toString()};g.z(TZ,iT);
TZ.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.VS(this.J))this.j||(this.Cb.Tc(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.Cb.Dh(this);this.j=!1;a=g.w(this.C);for(var b=a.next();!b.done;b=
a.next())this.Mc(b.value)}};
TZ.prototype.D=function(a){jT(this,a!==1)};
TZ.prototype.onSelect=function(a){this.J.aN(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
TZ.prototype.xa=function(){this.j&&this.Cb.Dh(this);iT.prototype.xa.call(this)};g.z(w4a,g.$S);w4a.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.iS(this.J))==null||(c=b.dn())==null||c.Mb();var d,e;(d=g.iS(this.J))==null||(e=d.SY())==null||e.rd(a.target)};g.z(x4a,g.IX);g.k=x4a.prototype;
g.k.WD=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Aa=this.J.wu();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.eS(this.J,"getAvailableQualityData",[]);b=g.w(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.Ca=new Set(a)}else if(this.G){c=g.eS(this.J,"getAvailableQualityData",[]);b=[];c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.W[d.quality]=
d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.bNa(this.J)&&this.J.Qx()&&b.unshift("missing-qualities");cNa(this.J)&&b.unshift("inline-survey");this.Bl(b);a=this.J.getVideoData().cotn?!0:!1;c=this.qa.rh();c=!g.fQ(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.KZ&&(a=a.Da("ytp-panel-footer"),g.Qp(a,"ytp-panel-hide-footer",c));if(b.length){this.MW();this.enable(!0);return}}this.enable(!1)};
g.k.MW=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ca.has(a)&&(this.K=this.J.getPlaybackQuality(),this.oa=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Ji(a),this.Fd(this.Al(a))):this.Ji(this.oa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.K=this.J.getPlaybackQuality(),this.Ji(a),a==="auto"&&this.Fd(this.Al(a)))};
g.k.fh=function(a){if(a!=="missing-qualities"){g.IX.prototype.fh.call(this,a);var b=this.j?this.D[a]:this.W[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.Q(b,g.rcb))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.eb("innertubeCommand",b);else if(b){this.J.eb("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.Q(b,g.rcb))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.eb("innertubeCommand",b);else if(b){this.J.eb("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Cb.Mb();this.WD()}};
g.k.open=function(){for(var a=g.w(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.IX.prototype.open.call(this);this.J.logClick(this.element)};
g.k.kA=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.$S({I:"a",La:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().W,tabindex:"0",role:"menuitemradio"},V:[{I:"div",La:["ytp-menuitem-label"],va:"{{label}}"}]},b,this.Al(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.W[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.IX.prototype.kA.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.w([!0,!1]);f=c.next();for(e={};!f.done;e={lR:void 0},f=c.next())e.lR=f.value,f=new g.S({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.lR?Isa():Dsa()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.lR,m=g.kS(d.J.app);m&&(m.ma("iqsr",{tu:l}),m.getVideoData().tV=!0);d.Cb.Mb();d.WD()}}(e)),a.push(f);
return new g.$S({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",La:["ytp-menuitem-label"],V:a}]},b)};
g.k.Al=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?[A4a(this,a,b,!1)]:[z4a(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(A4a(this,this.oa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(A4a(this,this.K,b,!0,["ytp-menu-label-secondary"])):c.push(z4a(this,this.K,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.z(UZ,g.S);UZ.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.B);B4a(this,this.B)};
UZ.prototype.G=function(){var a=Number(this.j.value);this.B=a;this.updateValue("slidervalue",this.B);this.j.valueAsNumber=this.B;B4a(this,a);this.j.focus()};g.z(VZ,UZ);VZ.prototype.G=function(){UZ.prototype.G.call(this);this.C&&(this.C.textContent=this.B+"x")};
VZ.prototype.qa=function(){this.oa()};
VZ.prototype.W=function(){this.J.setPlaybackRate(this.B,!0)};g.z(WZ,g.S);g.k=WZ.prototype;g.k.init=function(){this.sz(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)};
g.k.Y6=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.sz(this.j+b);a.preventDefault()}};
g.k.W6=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.W:this.W;this.sz(b);a.preventDefault()};
g.k.X6=function(a){a=(a-g.Om(this.D).x)/this.oa*this.range+this.B;this.sz(a)};
g.k.sz=function(a,b){b=b===void 0?"":b;a=g.Bg(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.qa.style.left=(a-this.B)/this.range*(this.oa-this.Fa)+"px";this.j=a};
g.k.focus=function(){this.Ja.focus()};g.z(XZ,WZ);XZ.prototype.Aa=function(){this.J.setPlaybackRate(this.j,!0)};
XZ.prototype.sz=function(a){WZ.prototype.sz.call(this,a,D4a(this,a).toString());this.G&&(C4a(this),this.Ca())};
XZ.prototype.updateValues=function(){var a=this.J.getPlaybackRate();D4a(this,this.j)!==a&&(this.sz(a),C4a(this))};g.z(E4a,g.Yx);E4a.prototype.focus=function(){this.j.focus()};g.z(F4a,zX);g.z(G4a,g.IX);g.k=G4a.prototype;g.k.Al=function(a){return a==="1"?"Normal":a.toLocaleString()};
g.k.Ra=function(){var a,b=(a=this.J.getVideoData())==null?void 0:a.Bg();a=this.J.getPresentingPlayerType(b);this.enable(a!==2&&a!==3);K4a(this)};
g.k.Bl=function(a){g.IX.prototype.Bl.call(this,a);this.K&&this.K.j.focus()};
g.k.Wz=function(a){g.IX.prototype.Wz.call(this,a);a?(this.oa=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),K4a(this),I4a(this,this.J.getPlaybackRate())):(this.Mc(this.oa),this.oa=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();!this.G&&this.W.includes(b)||J4a(this,b);I4a(this,a)};
g.k.kA=function(a,b,c){return a===this.j&&L4a(this.J)?g.IX.prototype.kA.call(this,a,b,c,{I:"div",S:"ytp-speed-slider-menu-footer",V:[this.K]}):g.IX.prototype.kA.call(this,a,b,c)};
g.k.fh=function(a){g.IX.prototype.fh.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);L4a(this.J)&&a===this.j||this.Cb.nj()};
g.k.rO=function(a){var b=a===this.j;this.G=!1;b&&YZ(this.J)&&!L4a(this.J)?(a=new F4a(this.J),g.DX(this.Cb,a)):g.IX.prototype.rO.call(this,a)};g.z(N4a,g.IX);g.k=N4a.prototype;g.k.Ji=function(a){g.IX.prototype.Ji.call(this,a)};
g.k.NW=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Al=function(a){return this.getOption(a).text||""};
g.k.fh=function(a){g.IX.prototype.fh.call(this,a);this.publish("settingChange",this.setting,this.settings[a].option)};g.z(ZZ,g.AX);ZZ.prototype.Gi=function(a){for(var b=g.w(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.hv[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ji(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
ZZ.prototype.Qk=function(a,b){this.publish("settingChange",a,b)};g.z($Z,g.IX);$Z.prototype.j=function(a){return a.languageCode};
$Z.prototype.Al=function(a){return this.languages[a].languageName||""};
$Z.prototype.fh=function(a){this.publish("select",a);this.J.logClick(this.element);g.EX(this.Cb)};g.z(Q4a,g.IX);g.k=Q4a.prototype;g.k.XD=function(a){return g.Sg(a)?"__off__":a.displayName};
g.k.Al=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.fh=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.NL(this.J.U(),this.J.getVideoData());g.Uz(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=R4a(this);a_(this,c);g.IX.prototype.fh.call(this,this.XD(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.eb("innertubeCommand",c);this.Cb.nj();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=R4a(this);a_(this,b);g.IX.prototype.fh.call(this,this.XD(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.eb("innertubeCommand",b)}else this.J.logClick(this.element),
a_(this,a==="__off__"?{}:this.tracks[a]),g.IX.prototype.fh.call(this,a);this.Cb.nj()}};
g.k.Ra=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.Jw,d,e=!((d=this.J.getVideoData())==null||!g.VR(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.mc(d,this.XD,this);e=g.Ql(d,this.XD);var m,n;R4a(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.Sg(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
iba(l,f)}O4a(this.j,l);e.push("__translate__")}f=this.XD(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));this.Bl(e);this.Ji(f);h&&h.translationLanguage?this.j.Ji(this.j.j(h.translationLanguage)):M_a(this.j);a&&this.G.Gi(this.J.getSubtitlesUserSettings());this.countLabel.Fd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.Z6=function(a){var b=this.J.getOption("captions","track");b=g.Yg(b);b.translationLanguage=this.j.languages[a];a_(this,b)};
g.k.Qk=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}P4a(this,!0);this.K.start();this.G.Gi(this.J.getSubtitlesUserSettings())};
g.k.Qca=function(a){a||g.Hp(this.K)};
g.k.xa=function(){g.Hp(this.K);g.IX.prototype.xa.call(this)};
g.k.open=function(){g.IX.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.z(S4a,g.CX);g.k=S4a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.ET=new x4a(this.J,this)}catch(c){g.qx(Error("QualityMenuItem creation failed"))}g.P(this,this.ET);var b=new Q4a(this.J,this);g.P(this,b);a.C||(b=new RZ(this.J,this),g.P(this,b));a.enableSpeedOptions&&(b=new G4a(this.J,this),g.P(this,b));(g.LP(a)||a.K)&&(a.B||a.Ta)&&(b=new w4a(this.J,this),g.P(this,b));a.ge&&!a.L("web_player_move_autonav_toggle")&&(a=new TZ(this.J,this),g.P(this,a));a=new SZ(this.J,this);
g.P(this,a);this.J.publish("settingsMenuInitialized");v4a(this.settingsButton,this.Te.qq())}};
g.k.Tc=function(a){this.initialize();this.Te.Tc(a);v4a(this.settingsButton,this.Te.qq())};
g.k.Dh=function(a){this.Eb&&this.Te.qq()<=1&&this.hide();this.Te.Dh(a);v4a(this.settingsButton,this.Te.qq())};
g.k.rd=function(a){this.initialize();this.Te.qq()>0&&g.CX.prototype.rd.call(this,a)};
g.k.Mb=function(){this.yM?this.yM=!1:g.CX.prototype.Mb.call(this)};
g.k.show=function(){g.CX.prototype.show.call(this);g.Mp(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.CX.prototype.hide.call(this);g.Op(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Nf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.z(b_,g.S);b_.prototype.onClick=function(){if(U4a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.ut(g.tt(),65);g.fQ(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
b_.prototype.j=function(a){var b,c;(b=g.iS(this.J))==null||(c=b.dn())==null||c.rd(a)};
b_.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
b_.prototype.Ra=function(){var a=U4a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.pS(this.J,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)(c=this.Da("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.pS(this.J,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;(d=this.Da("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.ji();c=c&&this.J.ob().getPlayerSize().width>=b;g.Xx(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.z(g.c_,g.S);g.k=g.c_.prototype;
g.k.Rc=function(){var a=this.api.ob().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!d_(this)||!g.U(this.api.getPlayerStateObject(),64));g.Xx(this,b);g.Qp(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);e_(this)&&(c-=this.Fb.startTimeMs/1E3);c=g.iz(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=e_(this)?g.iz((this.Fb.endTimeMs-
this.Fb.startTimeMs)/1E3):g.iz(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}V4a(this,a.isAtLiveHead);W4a(this,this.api.getLoopRange())};
g.k.onLoopRangeChange=function(a){var b=this.Fb!==a;this.Fb=a;b&&(this.Rc(),X4a(this))};
g.k.qda=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.Rc();X4a(this)};
g.k.updateVideoData=function(a){this.rG=a.isLivePlayback&&!a.ib;this.B=WR(a);this.isPremiere=a.isPremiere;g.Qp(this.element,"ytp-live",d_(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.S.prototype.xa.call(this)};g.z(Z4a,g.S);g.k=Z4a.prototype;g.k.Oy=function(){var a=this.api.Oh();this.C!==a&&(this.C=a,Y4a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.OW=function(a){g.Xx(this,a.width>=350)};
g.k.c7=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.Bg(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.a7=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.Bg(b/10,-10,10));a.preventDefault()};
g.k.Wca=function(){f_(this,this.j,!0,this.B,this.api.xn());this.W=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.b7=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Om(this.N).x;this.api.setVolume(g.Bg((a-c/2)/(b-c),0,1)*100)};
g.k.Vca=function(){f_(this,this.j,!1,this.B,this.api.xn());this.volume===0&&(this.api.mute(),this.api.setVolume(this.W))};
g.k.onVolumeChange=function(a){Y4a(this,a.volume,a.muted)};
g.k.cY=function(){f_(this,this.j,this.isDragging,this.B,this.api.xn())};
g.k.xa=function(){g.S.prototype.xa.call(this);g.Op(this.K,"ytp-volume-slider-active")};g.z(g_,g.S);
g_.prototype.onVideoDataChange=function(){var a=this.api.U();this.kc();this.visible=!!this.api.getVideoData().videoId&&!g.YR(this.api.getVideoData(1));g.Xx(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.Mc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Mp(this.element,"no-link"));
b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.aQ(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.ZR(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.XE("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)};
g_.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.jz(a),!1,!0,!0);if(g.LP(b)){var d={};g.LP(b)&&g.eS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.gj(c,d)}g.lT(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g_.prototype.kc=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Fc:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
b=28666,c=this.api.getVideoData();this.api.fd()?a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]}:g.ZR(c)&&(a={I:"svg",X:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",X:{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",X:{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",X:{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",X:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",X:{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",X:{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",X:{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",X:{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",X:{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",X:{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",X:{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",X:{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.ZR(c)?g.Mp(this.element,"ytp-youtube-music-button"):g.Op(this.element,"ytp-youtube-music-button");a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)};
g_.prototype.Lc=function(a){g.S.prototype.Lc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.z(a5a,g.jG);g.k=a5a.prototype;g.k.Eg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.U(this.J.getPlayerStateObject(),2))this.progressBar.Rc(),this.Aa.Rc()};
g.k.VB=function(){this.jV();this.Kg.B?this.Eg():this.progressBar.xi()};
g.k.d7=function(){this.Eg();this.Z.start()};
g.k.jV=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.eQ();a=a.C.getLength()*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Kg.B||(a=b=!1);b?this.qa||(this.qa=this.T(this.J,"progresssync",this.Eg)):this.qa&&(this.Mc(this.qa),this.qa=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
g.k.kc=function(){var a=this.J.Oh(),b=this.J.ob().getPlayerSize(),c=c5a(this),d=Math.max(b.width-c*2,100);if(this.ib!==b.width||this.Ya!==a){this.ib=b.width;this.Ya=a;var e=d5a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.r4a(this.progressBar,c,e,a);this.J.We().PW=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-e5a(this))*.82));c.maxWidth=d;c.maxHeight=a;c.iD();this.jV();this.J.U().L("html5_player_dynamic_bottom_gradient")&&m3a(this.Ta,
b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Ka.style.background=a.Jf?a.iq:"";this.oa&&t3a(this.oa,a.showSeekingControls);this.W&&t3a(this.W,a.showSeekingControls)};
g.k.Ib=function(){return this.C.element};g.z(f5a,yX);g.k=f5a.prototype;g.k.YG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.eb("innertubeCommand",this.onClickCommand),this.wv())};
g.k.wv=function(){this.enabled=!1;this.oa.hide()};
g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&g5a(this);a=[];var c,d,e,f;if(b=(f=g.Q((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,Pcb))==null?void 0:f.suggestedActions)for(c=g.w(b),d=c.next();!d.done;d=c.next())(d=g.Q(d.value,Qcb))&&g.Q(d.trigger,Ocb)&&a.push(d);if(a.length!==0){c=[];a=g.w(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.Q(d.trigger,Ocb))f=(f=d.title)?g.ay(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.KE(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.qf(c)}};
g.k.wz=function(){return this.enabled};
g.k.Nf=function(){this.enabled?this.Oa.start():wX(this);this.xm()};
g.k.xa=function(){g5a(this);yX.prototype.xa.call(this)};var P2={},h_=(P2.CHANNEL_NAME="ytp-title-channel-name",P2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",P2.LINK="ytp-title-link",P2.SESSIONLINK="yt-uix-sessionlink",P2.SUBTEXT="ytp-title-subtext",P2.TEXT="ytp-title-text",P2.TITLE="ytp-title",P2);g.z(i_,g.S);i_.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.jz(a),!1,!0);g.LP(b)&&(b={},g.eS(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.gj(c,b));g.lT(c,this.api,a)};
i_.prototype.Ra=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:h_.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},va:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:h_.CHANNEL_NAME,va:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);h5a(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.rb&&c.profilePicture?(this.updateValue("channelLink",
c.rb),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):h5a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.bl;g.Qp(this.link,h_.FULLERSCREEN_LINK,c);b.qa||!a.videoId||c||g.YR(a)||b.C?this.j&&(this.updateValue("url",null),this.Mc(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.LP(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.z(g.j_,g.S);g.k=g.j_.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:j5a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.W=a};
g.k.tN=function(a,b,c,d,e,f,h,l){if(!this.Ka||this.env.Z){this.type===3&&this.xi();this.type!==1&&(g.Kp(this.element,"ytp-tooltip ytp-bottom"),(p3a(this.api)||this.api.isInline())&&g.Mp(this.element,"ytp-rounded-tooltip"),this.type=1,this.W&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Fk())&&this.B.subscribe("l",this.P0,this));if(l){var m=g.Rm(this.bg).height||this.Aa;this.Oa.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.Qp(this.text,"ytp-tooltip-text-no-title",
this.type===1&&!f);this.api.isInline()&&g.Mp(this.text,"ytp-modern-tooltip-text");g.Qp(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=SQ(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=eLa(this.B,c,b));l5a(this,c);if(h)switch(b=g.Rm(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"}k5a(this,!!d,a,e)}};
g.k.jR=function(){this.type===1&&this.xi()};
g.k.mI=function(a,b){if(this.type)if(this.type===3)this.xi();else return;i5a(this,a,3,b)};
g.k.ji=function(){this.j&&!this.oa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.W&&j5a(this))};
g.k.P0=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,l5a(this,a))};
g.k.X$=function(){cLa(this.B,this.D,this.N*this.scale)};
g.k.xi=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.qa);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.qa);a.addEventListener("focus",this.G);m5a(this);break;case 3:m5a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.P0,this),this.B=null),this.api.removeEventListener("videoready",this.Ca),this.Fa.stop()}this.type=null;this.W&&this.K.hide()};
g.k.Pm=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.wh(arguments[a],this.j)&&this.xi()};
g.k.xa=function(){this.type!=null&&this.xi();this.B&&this.B.dispose();g.S.prototype.xa.call(this)};g.z(o5a,g.S);g.k=o5a.prototype;g.k.YD=function(){this.visible=p5a(this);g.Xx(this,this.visible);this.icon&&r5a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.ag=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.ag();a.Aa?n5a(this):q5a(this,b)};
g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Ra(2);this.YD()};
g.k.Ra=function(a,b){var c=this.J.U();r5a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.XE("Added as $USER_NAME",a):g.XE("Watch later as $USER_NAME",a),image:mQ(c)})):this.update({title:"Watch later",image:null});this.J.ji()};
g.k.Lc=function(a){g.S.prototype.Lc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.z(g.k_,g.GY);g.k=g.k_.prototype;
g.k.init=function(){var a=this;this.oe=new g.JY(this.api);this.xx=new SY(this.api);this.Hi=new g.S({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.j_(this.api,this);this.channelAvatar=new O1a(this.api);this.title=new i_(this.api);this.Yg=new g.Ux({I:"div",S:"ytp-chrome-top-buttons"});this.jh=new G1a(this.api,this.Hi.element);this.Hg=this.api.U().controlsType==="1"?new a5a(this.api,this,this.Kg):null;this.contextMenu=new Y1a(this.api,this.oe);this.EF=new g.S({I:"div",X:{tabindex:"0"}});this.DF=new g.S({I:"div",
X:{tabindex:"0"}});var b=this.api.ob(),c=this.api.U(),d=this.api.getVideoData();this.As&&(g.Mp(this.api.getRootNode(),"ytp-embed"),g.Mp(this.api.getRootNode(),"ytp-embed-playlist"),this.pL&&(g.Mp(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Mp(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.mP=60,this.nP=89);this.api.U().C&&g.Mp(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Mp(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Mp(this.api.getRootNode(),"ytp-embed-mobile"));
this.api.L("embeds_web_enable_webfe_always_call_gep")?d&&d.videoId&&(this.oi=d&&d.getEmbeddedPlayerResponse()):this.oi=d&&d.getEmbeddedPlayerResponse();g.P(this,this.oe);g.US(this.api,this.oe.element,4);g.P(this,this.xx);g.US(this.api,this.xx.element,4);d=new g.S({I:"div",S:"ytp-gradient-top"});g.P(this,d);g.US(this.api,d.element,1);this.AN=new g.Ny(d,250,!0,100);g.P(this,this.AN);g.P(this,this.Hi);g.US(this.api,this.Hi.element,1);this.zN=new g.Ny(this.Hi,250,!0,100);g.P(this,this.zN);g.P(this,this.tooltip);
g.US(this.api,this.tooltip.element,4);var e=new P2a(this.api);g.P(this,e);g.US(this.api,e.element,5);e.subscribe("show",function(m){a.DA(e,m)});
this.CI.push(e);this.lC=new dZ(this.api,e);g.P(this,this.lC);!this.As&&this.lC.Ha(this.Hi.element);g.P(this,this.channelAvatar);this.channelAvatar.Ha(this.Hi.element);g.P(this,this.title);this.title.Ha(this.Hi.element);this.As&&(d=new l3a(this.api),g.P(this,d),d.Ha(this.Hi.element));g.P(this,this.Yg);this.Yg.Ha(this.Hi.element);var f=new Z2a(this.api,this);g.P(this,f);g.US(this.api,f.element,5);f.subscribe("show",function(m){a.DA(f,m)});
this.CI.push(f);this.searchButton=new gZ(this.api);g.P(this,this.searchButton);this.searchButton.Ha(this.Yg.element);this.Hp=new o5a(this.api);g.P(this,this.Hp);this.Hp.Ha(this.Yg.element);this.shareButton=new g.hZ(this.api,this,f);g.P(this,this.shareButton);this.shareButton.Ha(this.Yg.element);this.copyLinkButton=new RY(this.api,this);g.P(this,this.copyLinkButton);this.copyLinkButton.Ha(this.Yg.element);this.As&&this.lC.Ha(this.Yg.element);g.P(this,this.jh);this.jh.Ha(this.Yg.element);c.Pp&&(d=new lZ(this.api),
g.P(this,d),g.US(this.api,d.element,4));c.C||(d=new H1a(this.api,this.jh),g.P(this,d),d.Ha(this.Yg.element));this.Di=new L2a(this.api);g.P(this,this.Di);g.US(this.api,this.Di.element,5);this.Di.subscribe("show",function(){a.DA(a.Di,a.Di.Hk())});
this.CI.push(this.Di);this.overflowButton=new g.cZ(this.api,this.Di);g.P(this,this.overflowButton);this.overflowButton.Ha(this.Yg.element);this.Hg&&g.P(this,this.Hg);c.controlsType==="3"&&(d=new fZ(this.api),g.P(this,d),g.US(this.api,d.element,9));g.P(this,this.contextMenu);this.contextMenu.subscribe("show",this.e4,this);this.api.L("show_preskip_progress_bar_for_skippable_ads")||(d=new tz(this.api,new IY(this.api)),g.P(this,d),g.US(this.api,d.element,4));this.EF.listen("focus",this.k9,this);g.P(this,
this.EF);this.DF.listen("focus",this.l9,this);g.P(this,this.DF);var h;(this.sy=c.jk?null:new I2a(this.api,b,this.contextMenu,this.Kg,this.oe,this.xx,function(){return a.Sr()},(h=this.Hg)==null?void 0:h.progressBar))&&g.P(this,this.sy);
this.As||(this.HY=new e2a(this.api),g.P(this,this.HY),g.US(this.api,this.HY.element,4),this.V2=new d3a(this.api),g.P(this,this.V2),g.US(this.api,this.V2.element,4));this.q3=new f5a(this.api);g.P(this,this.q3);g.US(this.api,this.q3.element,4);if(this.As){var l=new w2a(this.api,this.api.U().Ta);g.P(this,l);g.US(this.api,l.element,5);l.subscribe("show",function(m){a.DA(l,m)});
b=new A2a(this.api,l);g.P(this,b);g.US(this.api,b.element,4)}this.UG.push(this.oe.element);this.T(this.api,"fullscreentoggled",this.Oy);this.T(this.api,"offlineslatestatechange",function(){a.api.sG()&&wY(a.Kg,128,!1)});
this.T(this.api,"cardstatechange",function(){a.zr()});
this.T(this.api,"resize",this.kba);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.Lba);g.GY.prototype.init.call(this)};
g.k.We=function(){return this.tooltip};
g.k.OQ=function(){return this.Hg};
g.k.DA=function(a,b){b?this.fF=a:this.fF=null;this.zr()};
g.k.tF=function(a,b){if(b)this.uv.push(a);else for(b=this.uv.length;b>=0;b--)if(this.uv[b]===a){this.uv.splice(b,1);break}wY(this.Kg,64,this.uv.length>0)};
g.k.VC=function(){this.api.El()&&this.api.Xp();return!!this.fF||s5a(this)||g.GY.prototype.VC.call(this)};
g.k.MC=ba(3);g.k.gt=ba(7);g.k.Zs=ba(10);g.k.zr=function(){var a=!this.VC(),b=a&&this.api.El()&&!g.U(this.api.getPlayerStateObject(),2)&&!g.YR(this.api.getVideoData())&&!this.api.U().C&&!this.api.fd(),c=this.As&&g.uS(this.api)&&g.U(this.api.getPlayerStateObject(),128);a||c?(this.zN.show(),this.AN.show()):(this.zN.hide(),this.AN.hide(),this.api.Pm(this.Hi.element));b?this.jh.rd():this.jh.Mb();this.Hg&&b5a(this.Hg,this.lT||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&t5a(this);g.GY.prototype.zr.call(this)};
g.k.Wy=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Rm(a),h=d||this.Hg&&g.wh(this.Hg.Ib(),b),l=d=null;c!=null&&h||(d=g.Rm(b),l=g.Pm(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Hg,d=c5a(b),l=d5a(b),h=this.api.ob().getPlayerSize().height,c=g.Bg(c,d,d+l-f.width),f=h-e5a(b)-f.height):g.wh(this.Hi.element,b)?(b=this.api.ob().getPlayerSize().width,c=g.Bg(c,12,b-f.width-12),f=this.Oh()?this.nP:this.mP,this.api.U().playerStyle==="gvn"&&(f+=
20),this.As&&(f-=this.Oh()?26:18)):(b=this.api.ob().getPlayerSize(),c=g.Bg(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.VB=function(a){a&&(this.api.Pm(this.Hi.element),this.Hg&&this.api.Pm(this.Hg.Ib()));this.pL&&(g.Qp(this.contextMenu.element,"ytp-autohide",a),g.Qp(this.contextMenu.element,"ytp-autohide-active",!0));g.GY.prototype.VB.call(this,a)};
g.k.wS=function(){g.GY.prototype.wS.call(this);this.pL&&(g.Qp(this.contextMenu.element,"ytp-autohide-active",!1),this.pL&&(this.contextMenu.hide(),this.Di&&this.Di.hide()))};
g.k.Io=function(a,b){var c=this.api.ob().getPlayerSize();c=new g.Cm(0,0,c.width,c.height);if(a||this.Kg.B&&!this.VC()){if(this.api.U().Rn||b)a=this.Oh()?this.nP:this.mP,c.top+=a,c.height-=a;this.Hg&&(c.height-=e5a(this.Hg))}return c};
g.k.Oy=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.EF.element,b),b.parentElement.insertBefore(this.DF.element,b.nextSibling))):g.px(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.EF.detach(),this.DF.detach());this.kc();this.Ar()};
g.k.Oh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
g.k.showControls=function(a){this.DP=!a;this.zr()};
g.k.kc=function(){var a=this.Oh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Qp(this.contextMenu.element,"ytp-big-mode",a);this.zr();this.api.L("web_player_hide_overflow_button_if_empty_menu")||t5a(this);this.Ar();var b=this.api.fd();b&&a?(a=(this.api.ob().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Fm(this.Hi.element,"padding-left",a+"px"),g.Fm(this.Hi.element,"padding-right",a+"px")):b&&(g.Fm(this.Hi.element,"padding-left",""),g.Fm(this.Hi.element,"padding-right",""));g.GY.prototype.kc.call(this)};
g.k.yQ=function(){if(s5a(this)&&!g.uS(this.api))return!1;var a=this.api.getVideoData();return!g.LP(this.api.U())||this.api.getPresentingPlayerType()===2||!this.oi||((a=this.oi||a.oi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Q(a.videoDetails,bMa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.GY.prototype.yQ.call(this):!1};
g.k.Ar=function(){g.GY.prototype.Ar.call(this);this.api.logVisibility(this.title.element,!!this.Qo);this.lC&&this.lC.Lc(!!this.Qo);this.channelAvatar.Lc(!!this.Qo);this.overflowButton&&this.overflowButton.Lc(this.Sg()&&!!this.Qo);this.shareButton&&this.shareButton.Lc(!this.Sg()&&!!this.Qo);this.Hp&&this.Hp.Lc(!this.Sg()&&!!this.Qo);this.searchButton&&this.searchButton.Lc(!this.Sg()&&!!this.Qo);this.copyLinkButton&&this.copyLinkButton.Lc(!this.Sg()&&!!this.Qo);if(!this.Qo){this.api.Pm(this.Hi.element);
for(var a=0;a<this.CI.length;a++){var b=this.CI[a];b.Hk()&&b.Mb()}}};
g.k.Ec=function(a){this.Hg&&b5a(this.Hg,this.VC());this.zr();g.GY.prototype.Ec.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.sy?this.sy.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.sy?this.sy.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Sr=function(){if(this.contextMenu.Eb)return this.contextMenu.Mb(),!0;if(this.uv.length)return this.uv[this.uv.length-1].Mb(),!0;if(this.fF)return this.fF.Mb(),!0;this.Hg&&this.api.Pm(this.Hg.Ib());this.Yg&&this.api.Pm(this.Yg.element);return g.GY.prototype.Sr.call(this)};
g.k.mU=function(a,b){this.bS=b;this.tF(a,b);this.e4()};
g.k.e4=function(){var a=this.bS||this.contextMenu.Hk();this.WO!==a&&(this.WO=a,this.api.eb("onAutonavPauseRequest",this.WO))};
g.k.k9=function(){u5a(this,this.api.getRootNode(),!0).focus()};
g.k.l9=function(){u5a(this,this.api.getRootNode(),!1).focus()};
g.k.dn=function(){return this.Hg&&this.Hg.B};
g.k.Zv=function(){this.Kg.Zv()};
g.k.iR=function(){this.oe.hide()};
g.k.lI=function(a){this.oe.lI(!a.isOrWillBePlaying())};
g.k.QH=function(a,b,c,d){this.xx.QH(a,b,c,d)};
g.k.PH=function(a,b){d2a(this.xx,a,b)};
g.k.kba=function(){v5a(this,!0)};
g.k.onReset=function(){t5a(this)};
g.k.Lba=function(a){v5a(this,!1,a)};
g.k.SY=function(){return this.contextMenu};
g.k.eA=function(a){var b;if((b=this.Hg)!=null){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.w(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ha(b.j.element,d)}};
g.k.Bx=function(){var a,b=(a=this.Hg)==null?void 0:a.progressBar;if(b){var c;((c=b.B)==null?0:c.isEnabled)&&b.Bx()}};g.z(g.l_,g.hY);g.l_.prototype.Ln=function(){return!1};
g.l_.prototype.create=function(){var a=this.player.U();g.vz(a)&&a.B||a.disableOrganicUi?this.chrome=new g.GY(this.player):this.chrome=new g.k_(this.player);g.P(this,this.chrome);this.chrome.init();this.player.Gg("ux")};
g.l_.prototype.Mi=function(){return this.chrome};var m_=[],s7a=!1;g.z(n_,g.O);n_.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&aR(this.j)&&Z7a(this.app,this.j,void 0,void 0,this.B)};
n_.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.xb!=null&&this.C!=null&&this.D!=null&&aR(this.j)){var a=y5a(this.xb,this.C,this.D);a==null?Z7a(this.app,this.j,void 0,void 0,this.B):(this.xb.ma("sgap",a),this.xb.getVideoData().W&&kX(this.xb,!1))}};
n_.prototype.N=function(a){var b=this.app.Qc();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})}};
n_.prototype.xa=function(){this.j=null;g.O.prototype.xa.call(this)};g.z(g.o_,IH);g.k=g.o_.prototype;g.k.isView=function(){return!0};
g.k.ST=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Kh(),c=KG(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Mx=function(){return NG(this.mediaElement.Mx(),this.start,this.end)};
g.k.Kh=function(){return NG(this.mediaElement.Kh(),this.start,this.end)};
g.k.VA=function(){return NG(this.mediaElement.VA(),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.ST()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.pc=function(){var a=IH.prototype.pc.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.jJ=function(){return this.mediaElement.jJ()};
g.k.activate=function(a){this.mediaElement.activate(a)};
g.k.Yr=function(){return this.mediaElement.Yr()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.UP=function(){this.mediaElement.UP()};
g.k.QP=function(){this.mediaElement.QP()};
g.k.Gw=function(){return this.mediaElement.Gw()};
g.k.Ib=function(){return this.mediaElement.Ib()};
g.k.ri=function(){return this.mediaElement.ri()};
g.k.lN=function(a){this.mediaElement.lN(a)};
g.k.XM=function(){this.mediaElement.XM()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.yu=function(){return this.mediaElement.yu()};
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.GK=function(){return this.mediaElement.GK()};
g.k.LC=function(a){this.mediaElement.LC(a)};
g.k.kJ=function(){return this.mediaElement.kJ()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.zl=function(){return this.mediaElement.zl()};
g.k.HK=function(){return this.mediaElement.HK()};
g.k.Mh=function(){return this.mediaElement.Mh()};
g.k.Zf=function(){return this.mediaElement.Zf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.zi=function(){return this.mediaElement.zi()};
g.k.Qv=function(){return this.mediaElement.Qv()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Cu=function(){return this.mediaElement.Cu()};
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.KE=ba(44);g.k.wI=ba(46);g.k.xI=ba(48);g.k.pA=ba(50);g.k.xF=function(){return this.mediaElement.xF()};
g.k.Rt=function(a){this.mediaElement.Rt(a)};
g.k.aG=function(a){return this.mediaElement.aG(a)};
g.k.yR=function(){return this.mediaElement.yR()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.XP=function(a){this.mediaElement.XP(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.kU=function(a){this.mediaElement.kU(a)};g.z(B5a,g.O);g.k=B5a.prototype;g.k.getStatus=function(){return this.status};
g.k.jo=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.w(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.Ge()){f=x5a(this.policy,this.j,this.B,this.Mn);h=C5a(this);c=h.u8;e=h.x0;d=h.oY;h=h.v0;if(!this.N){var l=this.B.rg()*1E3,m=this.j.rg();m=(d-c-m)*1E3;f&&f.msg==="in-the-past"&&(m=0);a=a.isAd();this.B.JH(l,
m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Wg(b,f)):this.status.status===2?I5a(this):(a=this.j.Yr())&&EH(a)&&(!UG(a)&&g.ws()?this.Wg("mse_closed"):b.j&&rM(b.j)&&a.B&&!a.B.EK()?this.Wg("encr_upgrade"):(b=this.j.Ge(),b.isEnded()?this.Wg("elem_ended"):e<0?this.Wg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=Cxa(a,c,d,!0),this.D=Cxa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),yZa(this.j,this.C,!1,F5a(this),this.bd.U().L("html5_shorts_gapless_keep_pending_requests")&&
vR(this.j.getVideoData())),this.j.setMediaElement(D5a(b,c,d,!this.j.getVideoData().isAd())),q_(this,2),I5a(this))))}else this.Wg("no-elem")};
g.k.Xz=function(a){var b=a===H5a(this).tU,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;JG(a.ke(),d-.01)&&(q_(this,4),c.isActive=!1,c.TI=c.TI||c.isActive,(this.G===1?this.j:this.B).ma("sbh",{}),b.isActive=!0,b.TI=b.TI||b.isActive,this.G!==0&&(this.j.getVideoData().u_=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(q_(this,5),this.G!==0)){a=this.B.Ex();c=this.j.Ex();this.j.ma("sbs",{citag:c==null?void 0:c.itag,nitag:a==null?void 0:a.itag});var e;if((e=this.B)!=
null&&vR(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;(f=e.ra)!=null&&f.Le()}}}};
g.k.S0=function(){this.Nu()&&this.Wg("player-reload-after-handoff")};
g.k.Wg=function(a,b){b=b===void 0?{}:b;if(!this.Ia()&&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.Jd(new aG("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Mn,msg:a})));kX(this.j,c)}this.wr.reject(a);this.dispose()}};
g.k.Nu=function(){return this.status.status>=4&&this.status.status<6};
g.k.xa=function(){G5a(this);this.j.unsubscribe("newelementrequired",this.S0,this);if(this.C){var a=this.C.B;this.C.j.Hd.unsubscribe("updateend",this.Xz,this);a.Hd.unsubscribe("updateend",this.Xz,this)}g.O.prototype.xa.call(this)};
g.k.QW=function(a){g.$y(a,128)&&this.Wg("player-error-event")};g.z(K5a,g.O);g.k=K5a.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&&kX(this.B,!1);r_(this,a)};
g.k.vn=function(){return!this.j};
g.k.vG=function(a){return this.j===a};
g.k.Nu=function(){var a;return((a=this.C)==null?void 0:a.Nu())||!1};
g.k.xa=function(){r_(this);g.O.prototype.xa.call(this)};g.z(O5a,g.Qx);g.k=O5a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:TVa()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0};
g.k.jm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Nf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Nf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Nf())};
g.k.qz=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Nf())};
g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Nf())};
g.k.SC=function(a){this.D!==a&&(this.D=a,this.Nf())};
g.k.zi=function(){return this.j};
g.k.Bq=function(){return this.fullscreen!==0};
g.k.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.k.LA=function(){return this.fullscreen};
g.k.isMinimized=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return TVa()};
g.k.hj=function(){return this.pictureInPicture};
g.k.oB=function(){return!1};
g.k.uB=function(){return this.C};
g.k.Ik=function(){return this.D};
g.k.Nf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.zi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.hj(),this.oB(),this.uB(),this.Ik());a!==this.K&&this.publish("visibilitystatechange");this.K=a};
g.k.xa=function(){WVa(this.G);g.Qx.prototype.xa.call(this)};g.z(t_,g.O);g.k=t_.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.rf=function(){return this.hc||0};
g.k.Ni=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();this.zp=void 0};
g.k.xa=function(){this.removeAll();g.O.prototype.xa.call(this)};
g.z(Z5a,g.O);g.k=Z5a.prototype;g.k.rf=function(){return this.hc};
g.k.Ni=function(){return this.C};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.mN=function(a){VLa(a);this.videoData=a};
g.k.xa=function(){$5a(this);g.O.prototype.xa.call(this)};g.z(g.x_,g.O);g.k=g.x_.prototype;g.k.UJ=function(a,b,c){return new g.KE(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
g.k.onCueRangeEnter=function(a){this.Ka.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.rg()||0).toFixed(3)});var c=b==="";this.ib.add(a.B);var d=this.C.get(b);if(c){var e;if(this.ea.getVideoData().Bg()&&((e=this.j)==null?0:e.wX)&&this.N){var f;a=((f=this.j)==null?void 0:f.Zg)||this.ea.getCurrentTime();var h,l;nX(this.ea,(h=this.j)==null?void 0:h.wX,this.MF(),a,this.ea.getCurrentTime(),!1,!0,(l=this.j)==
null?void 0:l.bfa,(0,g.hu)());this.Il=0;this.j=void 0;this.kb&&(this.events.Mc(this.kb),this.kb=null);this.N="";this.Oa=!0;return}}else if(this.ea.ma("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Bg()&&(d==null?0:d.sB))return;if(this.Oa&&!this.j)this.Oa=!1,!c&&d&&(c=this.ea.getCurrentTime(),B_(this,{je:a,isAd:!0,Dq:!0,Zg:c,adCpn:b},{isAd:!1,Dq:!1,Zg:c}),this.Lb=d.cpn,h6a(this,d),a=A_(this,"midab",d),this.ea.ma("sdai",a),this.Il=1),this.oa=!1;else if(this.j){if(this.j.Dq)this.ea.ma("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.Zg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={je:a,isAd:!c,Dq:!0,Zg:d,adCpn:b},b={je:this.j.je,isAd:this.j.isAd,Dq:!1,Zg:d,adCpn:this.j.adCpn},this.j.je&&this.ib.delete(this.j.je.B),B_(this,a,b);else{if(this.j.je===a){this.ea.ma("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Zg,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={je:a,isAd:!c,Dq:!0,Zg:this.ea.getCurrentTime(),adCpn:b};B_(this,a,this.j)}this.j=void 0;this.oa=!1}else this.j={je:a,isAd:!c,Dq:!0,Zg: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.rg()||0).toFixed(3)});var c=b==="",d=this.C.get(b);if(this.ea.getVideoData().Bg()&&!c&&d){if(d.sB)return;d.sB=!0;this.K.clear();if(this.Y.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.eP()){var e=d.hc;this.ea.JT(e/1E3,(e+d.durationMs)/1E3)}else this.ea.ma("lifa",{remove:0})}if(this.ib.has(a.B))if(this.ib.delete(a.B),this.Ka=this.Ka.filter(function(f){return f!==
a}),this.Oa&&(this.oa=this.Oa=!1,this.ea.ma("sdai",{cref:1})),this.j){if(this.j.Dq){if(this.j.je===a){this.ea.ma("sdai",{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Zg,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={je:a,isAd:!c,Dq:!1,Zg:this.ea.getCurrentTime(),adCpn:b};B_(this,this.j,b)}else this.ea.ma("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Zg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()});
this.j=void 0;this.oa=!1}else this.j={je:a,isAd:!c,Dq:!1,Zg:this.ea.getCurrentTime(),adCpn:b};else this.ea.ma("sdai",{ignore_single_exit:1})};
g.k.MF=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,hc:0,playerType:1,Yd:0,videoData:this.ea.getVideoData(),errorCount:0}};
g.k.Tl=function(){if(this.uo)return!1;var a=void 0;this.Lb&&(a=this.C.get(this.Lb));return this.ea.getVideoData().Bg()?!!a&&!a.sB:!!a};
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().Bg()&&this.Y.L("html5_lifa_ad_removed_ne")&&a<=this.Ta/1E3)this.ea.pauseVideo(),this.Ta=0,this.oa=!0,SV(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.oa=!0,c)b6a(this,a,b);else{c=this.api.Qc();var e=c===this.Ya?this.Kb:null;C_(this,!1);this.Tb=a;this.Qb=b;d!=null&&this.Gb.start(d);c&&(this.Kb=e||c.getPlayerState(),EZa(c),this.Ya=c)}};
g.k.xa=function(){C_(this,!1);m6a(this);n6a(this);g.O.prototype.xa.call(this)};
g.k.sU=function(a){this.jd=a;this.ea.ma("sdai",{swebm:a})};
g.k.Ql=function(a,b,c){if(c&&b){var d=this.K.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.yM(c);this.Ua&&this.ea.ma("sdai",{hdlredir:1,itag:b,seg:a,hostport:AM(c)});d.locations.set(e,c)}}};
g.k.TK=function(a,b,c,d,e,f){var h=d===3;e=p6a(this,a,b,d,c,f);if(!e)return F_(this,b,h),e=g.o6a(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.Lm;var l;d=((l=E_(this,b-1,d))==null?void 0:l.du)||"";d===""&&this.ea.ma("sdai",{eds:1});l=r6a(this,e.ssdaiAdsConfig);c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.nE[f];b=e.qt&&b>=e.qt?e.qt:void 0;return{In:{rJ:a?v6a(this,a):[],AX:l,du:d,HU:b,n4:qg(m.split(";")[0]),
o4:m.split(";")[1]||""}}};
g.k.NQ=function(a){a:{if(!this.uo){var b=q6a(this,a);if(!(this.ea.getVideoData().Bg()&&(b==null?0:b.sB)))break a}b=void 0}var c=b;if(!c)return this.ea.ma("sdai",{gvprp:"ncp",mt:a}),null;b=c.Lm;var d=r6a(this,c.ssdaiAdsConfig);a=c.qt&&c.GU&&a>=c.GU?c.qt:void 0;c=this.ea.getVideoData();var e,f=((e=c.B)==null?void 0:e.containerType)||0;e=c.nE[f];return{rJ:b?v6a(this,b):[],AX:d,HU:a,n4:qg(e.split(";")[0]),o4:e.split(";")[1]||""}};
g.k.JA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=p6a(this,a,b,d,c,f);this.Ua&&this.ea.ma("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return F_(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}),F_(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.w(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(",")});F_(this,b,e);return null}a.locations.set(h,new g.yM(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.ma("sdai",{gdu:"nourl",seg:b,itag:h}),F_(this,b,e),null;l=new rN(l);this.jd&&(l.get("dvc")?this.ea.ma("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=E_(this,b-1,d))==null?void 0:q.du)&&
l.set("daistate",m);a.qt&&b>=a.qt&&l.set("skipsq",""+a.qt);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Lm&&(q=v6a(this,a.Lm),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.Lm){var t;this.ea.ma("sdai",{acpns_aids_nm:1,ids:x6a(this,a.Lm).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.xe();(d==null?void 0:d.length)>2048&&this.ea.ma("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Ua&&(d&&(r=a.cpn,p=a.Lm,z6a(this,r,p),p&&!this.Nd.has(p)&&(r=w6a(this,r,p),t=y6a(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.Nd.add(p))),this.ea.ma("sdai",{gdu:"v",seg:b,itag:c,ast:a.hc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.ZH=function(a,b,c){var d=D_(this,a,c);return(d=d?(d.hc+d.durationMs)/1E3:0)&&b>d?(this.Rv(a,c,!0),this.ea.seekTo(d),!0):!1};
g.k.Rv=function(a,b,c){c=c===void 0?!1:c;var d=D_(this,a,b);if(d){var e=void 0,f=d.Lm;if(f){this.ea.ma("sdai",{skipadonsq:b,sts:c,abid:f,acpn:d.cpn,avid:d.videoData.videoId});c=this.W.get(f);if(!c)return;c=g.w(c);for(f=c.next();!f.done;f=c.next())f=f.value,f.qt=b,f.GU=a,f.hc>d.hc&&(e=f)}this.N=d.cpn;s6a(this);a=this.ea.getCurrentTime();i6a(this,d,e,a,a,!1,!0)}};
g.k.VT=function(){for(var a=g.w(this.G),b=a.next();!b.done;b=a.next())b=b.value,b.qt=NaN,b.GU=NaN;s6a(this);this.ea.ma("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""};
g.k.HI=ba(39);
g.k.ZS=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.Va.set(a,{du:m,bA:l}):this.Fa.set(a,{du:m,bA:l}));l=gR(this.ea.getVideoData())&&this.Y.L("html5_process_all_cuepoints");if(h||l){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.Eu(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.C.get(m))l-=f[h],m.Lr=m.Lr!=null?Math.min(m.Lr,l):l;
if(d.length&&e.length)for(b=(b+this.Eu())*1E3,c=0;c<d.length;c++)if(a=d[c],h=e[c]*1E3,a===this.ea.getVideoData().clientPlaybackNonce)u6a(this,b,b+h,!1),b+=h;else{this.Ad.has(a)||(this.ea.ma("sdai",{adCpnFromEmsg:1}),this.Ad.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.Ih.sync()):(m=this.UJ(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;u6a(this,m.start,m.end,!0);if(n)for(this.ea.addCueRange(m),
a=this.ea.yF("serverstitchedcuerange",36E5),a=g.w(a),h=a.next();!h.done;h=a.next())this.B.delete(h.value.getId())}else c!==5&&c!==4||u6a(this,(b+this.Eu())*1E3,(b+this.Eu())*1E3+5E3,!1)}};
g.k.NF=ba(37);g.k.Eu=function(){return this.ea.Eu()};
g.k.Yl=function(a){this.ea.ma("timelineerror",{e:a})};
g.k.eG=function(a){this.Aa&&this.qa&&this.Ca.push(this.qa);a&&this.qa&&this.Bc.push(this.qa);this.qa=null;this.ea.eG(a)};
g.k.WK=function(a){if(this.uo||a.identifier&&this.Ee.has(a.identifier))this.Ua&&this.ea.ma("sdai",{startnoad:a.identifier}),z_(this);else if(Vm(this.Ca,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{timedoutcp:1}),this.Z.start(0);
else if(Vm(this.Bc,function(c){return c.identifier===a.identifier}))this.ea.ma("sdai",{fetchedcp:1}),z_(this);
else if(this.Z.isActive()){var b;this.ea.ma("sdai",{racingcp:((b=this.qa)==null?void 0:b.identifier)+"_"+a.identifier})}else this.Pc=(new Date).getTime()/1E3,this.Ua&&this.ea.ma("sdai",{adf:1}),(b=5E3,a.event==="predictStart")&&(b-=a.j),this.Bb=Math.max(b,15E3),this.Aa=!1,this.Z.start(this.Bb),this.qa=a,this.Fa.clear(),this.Va.clear(),this.Ja.clear(),this.rb=[]};
g.k.mF=function(a,b,c){c=c||{reason:"disablessdai"};if(a&&b){if(!D_(this,a,b))return!1;c.sq=b}if(this.uo)return!1;this.uo=!0;this.Il>0&&(this.Il=0,this.Lb="",this.api.publish("serverstitchedvideochange"));YVa(this.ea,c);return!0};
g.k.Px=function(){this.ea.ma("sdai",{rstdaist:1});this.Fa.clear();this.Va.clear();this.Ja.clear()};
g.k.Bv=function(a){this.Ee.add(a);var b;((b=this.qa)==null?void 0:b.identifier)===a&&z_(this)};
g.k.qQ=function(){return this.Il};
g.k.Nl=function(){return this.Lb};
g.k.xv=function(a){var b=sY(this.api.yb());return b?b.xv(a):!1};
g.k.TP=function(a){return this.uo?!1:!!q6a(this,a)};
g.k.FU=function(a){var b=this;this.ea.pauseVideo();var c=this.ea.getCurrentTime(),d=this.C.get(this.Lb),e=this.B.get(this.Lb);if(d){this.N=this.Lb;this.oa=!1;d.sB=!0;var f=this.ea.getCurrentTime();this.j={je:e,isAd:!0,Dq:!1,Zg:f,adCpn:this.Lb,wX:d,bfa:a};if(e==null?0:e.start)this.Ta=f*1E3-e.start;this.K.clear();SV(this.ea);this.Lb=this.MF().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(c);this.ea.playVideo();this.kb||(this.kb=this.events.T(this.api,"progresssync",function(){var h=
d.Lr?d.Lr*1E3:d.hc,l=b.B.get(d.cpn);l&&b.ea.removeCueRange(l);b.B.delete(d.cpn);b.C.delete(d.cpn);l=b.G.indexOf(d);l>=0&&b.G.splice(l,1);l=[];for(var m=g.w(b.D),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ea.removeCueRange(n):l.push(n);b.D=l;t6a(b,0,h+d.durationMs)}));
return!0}this.ea.ma("sdai",{skipFail:c});return!1};
var f6a=0;g.z(D6a,g.O);g.k=D6a.prototype;
g.k.PO=function(a,b){b=b===void 0?"":b;if((this.api.L("html5_ssap_move_timeline_version")?this.timeline.zp:this.zp)===b)return!0;var c=this.timeline.j,d=c==null?void 0:c.getVideoData();if(!c||!d)return this.api.ma("ssap",{htsm:c?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||$5a(f);e.B.clear()}e=u_(c);var h=!1;f=[];var l=new Map;c=[];var m=[],n=0,p=0,q=0,r=[];a=g.w(a);for(var t=a.next();!t.done;t=a.next())a:{var u=void 0,y=void 0,A=t.value,
C=A.clipId;if(C){if(A.Ht){q=A.Ht.P_||0;t=A.Ht.Q_||1;var F=Number(((A.Ht.N1||0)/(A.Ht.O1||1)*1E3).toFixed(0));q=t=F+Number((q/t*1E3).toFixed(0))}else t=F=q,this.oI.has(C)||this.Ok.add(C);var H=(y=l.get(C))!=null?y:0,L=this.api.L("html5_ssap_move_timeline_version")?this.timeline.zp:this.zp;y=!1;if(L&&this.api.L("html5_ssap_clear_timeline_before_update")){if(L=this.yk.get(C))L.start=F,L.end=t,y=!0}else{if(L){var N=C;L=F;var X=t,V=H,ca=LV(this.timeline,N);if(ca!=null&&ca.length){V<ca.length&&(ca[V].hc=
L,ca[V].C=X);if(N=this.yk.get(N))N.start=L,N.end=X;L=!0}else L=!1}if(L){l.set(C,H+1);h=!0;break a}}r.push(C);!y&&A.Ht&&(r=this.UJ(F,t,r.join(",")),this.yk.set(C,r),c.push(r),r=[]);if(((u=A.Ht)==null?void 0:u.z4)===d.videoId){y=u=void 0;A=C;C=d;A!==C.clientPlaybackNonce&&this.api.ma("ssap",{cnm:1,cid:A,cpn:C.clientPlaybackNonce});if(this.api.L("html5_ssap_clear_timeline_before_update"))C.Ad=F,A=w_(this.timeline,1,F,t-F,C),f.push(A),F=v_(this.timeline,F,t,[A]),h=h||F;else if(L=[],C&&(C.Ad=F,L=(y=LV(this.timeline,
A))!=null?y:[]),(this.api.L("html5_ssap_move_timeline_version")?this.timeline.zp:this.zp)||!L.length||H!==0)A=w_(this.timeline,1,F,t-F,C),f.push(A),F=v_(this.timeline,F,t,[A]),h=h||F;else{h=L[0];h.hc=F;h.C=t;C=(u=this.timeline.j)==null?void 0:u.j;if((u=C==null?void 0:C.get(0))&&C)for(y=0;y<u.length;y++)if(L=u[y],L.rf()!==L.Ni()){L.hc=F;L.C=t;u.splice(y,1);C.has(F)?C.get(F).push(L):C.set(F,[L]);break}f.push(h);l.set(A,H+1);h=!0}m.length&&(m=E6a(this,n||0,p,m),h=h||m);p=n=t;m=[]}else H=void 0,u=this.po.get(C),
y=u!=null?u:new g.$Q(this.api.U(),{cpn:C}),y.FI=!0,this.Ok.has(C)&&this.po.set(C,y),n=Math.min(F,n),p=Math.max(t,p),this.api.ma("ssap",{e:F,d:t-F,c:C,p:u?1:0}),y.Ad=F,t=w_(this.timeline,2,F,t-F,y,(H=A.qS)==null?void 0:H.EL),m.push(t)}else this.api.ma("ssap",{cm:1})}m.length&&(d=E6a(this,n||0,p,m),h=h||d);e&&f.length&&(Y5a(this.timeline,e,f),this.api.L("html5_ssap_clear_timeline_before_update")&&(d=f[f.length-1].Ni(),(e=this.timeline.j)!=null&&(e.C=d)));c.length&&this.ea.cA(c);if(h){this.api.L("html5_ssap_move_timeline_version")?
this.timeline.zp=b:this.zp=b;d=this.ea.Ml();b=[];d=g.w(d);for(c=d.next();!c.done;c=d.next()){c=c.value;if(c.C){e=yT(this,c.C);if(e===c.gm)continue;c.start=c.start-c.gm+e;c.end=c.end-c.gm+e;c.gm=e;b.push(c)}c=this.ea.Ih;b.length<=0||c.Ia()||(c=c.j,c.array.sort(c.j))}this.api.ma("ssap",{tu:nV(this)});b=sY(this.api.yb());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.$Q(this.api.U(),a.playerVars);b.playerResponseCpn?b.clientPlaybackNonce=b.playerResponseCpn:this.api.ma("ssap",{eim:this.ea.getVideoData().clientPlaybackNonce});b.FI=!0;if(a=a.WJ)b.WJ=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.ma("ssap",{aprfa:a+"_"+b.videoId});if(a){this.po.set(a,b);var c=LV(this.timeline,a),d=!1;if(c==null?0:c.length){c=g.w(c);for(var e=c.next();!e.done;e=c.next())e=e.value,b.Ad=e.rf(),e.mN(b),e.B&&
(d=!0)}else d=!b.videoId;if(!d){if(!FXa(this.ea.Sb(b.videoId))){var f;this.api.ma("ssap",{nlc:a,nlcc:(f=this.timeline.j)==null?void 0:u_(f)})}this.ea.SA().TJ(a,b,2)}}};
g.k.fH=function(){this.CR=!0;this.api.L("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.Lb,YU(this),5)};
g.k.lj=function(a){if(g.$y(a,128)){var b;a=(b=a.state.Pg)==null?void 0:b.errorCode;this.finishSegmentByCpn(this.Lb,YU(this),7,a)}};
g.k.finishSegmentByCpn=function(a,b,c,d){if(this.Lb===b)return[];this.CR&&(c=5,this.CR=!1);this.api.ma("ssap",{fsbc:a+";"+b,fsbcr:c,fsbct:this.api.getCurrentTime().toFixed(),fsbce:d!=null?d:""});if(this.api.L("html5_ssap_timeline_handle_error_and_abandon")&&(c===5||c===7))return J6a(this,a,b,c),[];this.yz=b;var e=!1;if(this.Ok.has(a)&&(e=A6a(this,c),!e))return[a];var f=LV(this.timeline,b);if(f){f.sort(function(m,n){return m.rf()-n.rf()});
var h=g.w(f);for(f=h.next();!f.done;f=h.next()){f=f.value;var l=this.ea.getCurrentTime()*1E3;if(f.rf()>=l){this.eD.set(a,c);H6a(this,a,b);this.DN.set(a,(0,g.hu)());if(c=this.yk.get(b))for(c=c.getId().split(","),c=g.w(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Ok.has(h)&&(this.Ok.delete(h),this.oI.add(h));G_(this);b=f.rf()/1E3;f=void 0;c=(f=g.UD(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?f:0;this.api.L("html5_ssap_keep_media_on_finish_segment")?this.ea.seekTo(b+
c/1E3,{Es:!0}):this.ea.seekTo(b+c/1E3);this.UC?(this.api.ma("ssap",{gpfreload:this.Lb}),C6a(this)||(this.UC=!1),SV(this.ea,!1,!1,this.api.L("html5_ssap_keep_media_on_finish_segment"))):d&&SV(this.ea,!1,!1,this.api.L("html5_ssap_keep_media_on_finish_segment"));e&&this.api.playVideo(1,this.api.L("html5_ssap_keep_media_on_finish_segment"));return[a]}}}return[]};
g.k.AQ=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Ni();a=g.w(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.w(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ni()>b&&(b=d.Ni())}return b/1E3};
g.k.Vc=function(){var a=this.ea.getCurrentTime()*1E3;var b=K6a(this,a);if(!b){var c=LV(this.timeline,this.Lb);if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.rf()>a&&(b=d)}}return b&&b.getType()===1?b.rf()/1E3:0};
g.k.getVideoData=function(a){if(a===2&&!this.Tl()){if(this.zL&&this.po.has(this.zL))return this.po.get(this.zL);this.api.ma("ssap",{lpanf:""+YU(this)});return null}return N6a(this)};
g.k.Tl=function(){var a=LV(this.timeline,this.Lb);return(a==null?0:a.length)?a[0].getType()===2:!1};
g.k.qB=function(){var a=LV(this.timeline,this.Lb);return(a==null?0:a.length)?a[0].B:!1};
g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=L6a(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)};
g.k.UJ=function(a,b,c){return new g.KE(a,b,{id:c,namespace:"ssap",priority:9})};
g.k.onCueRangeEnter=function(a){if(!this.GM.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.rg()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;c<b.length&&this.yz&&b[c]!==this.yz;){var d=b[c];this.Ok.has(d)&&(this.Ok.delete(d),this.oI.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.vH.push(b[d]);b=b[c];this.Ok.has(b)&&O6a(this,b);this.oI.has(b)||I6a(this,b);b=g.w(this.yk.values());for(c=b.next();!c.done;c=
b.next())c=c.value,c.start<=a.start&&!this.GM.has(a.getId())&&this.GM.add(c.getId())}};
g.k.qQ=function(){return this.Il};
g.k.Nl=function(){return this.Lb};
g.k.handleError=function(a,b){b=b===void 0?0:b;if(a!=="fmt.decode"&&a!=="fmt.unplayable"||!this.Tl()||this.z_===this.Lb)return!1;this.z_=this.Lb;if(this.api.L("html5_enable_ssap_gapful_switch"))this.UC=!0,this.api.ma("ssap",{gpfonerr:a}),SV(this.ea);else{this.ea.ma("ssap",{skiperr:a,acpn:this.Lb});var c=this.ea.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.Lb,c,b===1||b===2?7:6,a)}return!0};
g.k.pda=function(a){var b=this.po.get(this.Lb);b&&NZa(this.ea,a-b.Ad/1E3,b.lengthSeconds,this.Lb)};
g.k.xa=function(){this.api.U().Vb()&&this.api.ma("ssap",{di:""+this.Lb,dic:""+this.ea.getVideoData().clientPlaybackNonce});this.po.clear();this.Ok.clear();this.GM.clear();this.eD.clear();this.DN.clear();this.oI.clear();this.vH=[];B6a(this);this.yz="";g.ht(this.events);g.O.prototype.xa.call(this)};g.z(R6a,g.O);g.k=R6a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Qc()){var b=this.K.get(a);b?X6a(this,b.target,b.Mn,a):this.Jd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.mu.je===a})){var c=b.mu,d=c.target;
c=c.Mn;d?X6a(this,d,c,a):W6a(this,b.Yd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.N;L_(this);if(a){if(!K_(this,a)){var b=this.api.Qc();this.Jd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:b==null?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Qc().addCueRange(a.mu.je)}};
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)Q6a(this,a,b);else{c=this.api.Qc();var e=c===this.D?this.G:null;M_(this,!1);this.oa=a;this.W=b;d!=null&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),EZa(c),this.D=c)}};
g.k.lj=function(a){g.$y(a,128)&&b7a(this)};
g.k.isManifestless=function(){return nR(this.j.getVideoData())};
g.k.xa=function(){M_(this,!1);d7a(this);g.O.prototype.xa.call(this)};
g.k.Jd=function(a,b){this.j.Jd(new aG(a,b))};
var S6a=0;var e7a="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.z(P_,g.O);g.k=P_.prototype;g.k.get=function(a){N_(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);N_(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.hu)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&Q_(this,c,!0);O_(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&&(Q_(this,c,b),g.Zb(this.data,function(d){return d.key===a}),O_(this))};
g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.w(this.data),c=b.next();!c.done;c=b.next())Q_(this,c.value,a);this.data=[];O_(this)};
g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);this.data.forEach(function(b){Q_(a,b,!0)});
this.data=[]};g.z(R_,g.O);R_.prototype.BK=function(a){if(a)return this.B.get(a)};
R_.prototype.xa=function(){this.j.removeAll();this.B.removeAll();g.O.prototype.xa.call(this)};g.Aeb=Ci(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var Q2;Q2={};g.S_=(Q2.STOP_EVENT_PROPAGATION="html5-stop-propagation",Q2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Q2.IV_DRAWER_OPEN="ytp-iv-drawer-open",Q2.MAIN_VIDEO="html5-main-video",Q2.VIDEO_CONTAINER="html5-video-container",Q2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Q2.HOUSE_BRAND="house-brand",Q2);g.z(k7a,g.S);g.k=k7a.prototype;g.k.Rt=function(){g.Np(this.element,g.Ea.apply(0,arguments))};
g.k.Zj=function(){this.Ac&&(this.Ac.removeEventListener("focus",this.GS),g.vh(this.Ac),this.Ac=null)};
g.k.OP=function(){this.Ia();var a=this.app.U();a.Un||this.Rt("tag-pool-enabled");a.K&&this.Rt(g.S_.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.Rt("ytp-gvn"),this.element.style.backgroundColor="transparent");a.qc&&(this.BP=g.Sv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.jN=function(a){g.QP(this.app.U());this.hL=!a;T_(this)};
g.k.resize=function(){if(this.Ac){var a=this.wi();if(!a.isEmpty()){var b=!g.Hg(a,this.oC.getSize()),c=p7a(this);b&&(this.oC.width=a.width,this.oC.height=a.height);a=this.app.U();(c||b||a.qc)&&this.app.Sa.publish("resize",this.getPlayerSize())}}};
g.k.Gu=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Ac){var b=this.app.U();Ku&&(this.Ac.setAttribute("x-webkit-airplay","allow"),a.title?this.Ac.setAttribute("title",a.title):this.Ac.removeAttribute("title"));this.Ac.setAttribute("controlslist","nodownload");b.Br&&a.videoId&&(this.Ac.poster=a.nh("default.jpg"))}b=g.ER(a,"yt:bgcolor");this.vA.style.backgroundColor=b?b:"";this.dS=Ms(g.ER(a,"yt:stretch"));this.eS=Ms(g.ER(a,"yt:crop"),!0);g.Qp(this.element,"ytp-dni",a.Jf);this.resize()};
g.k.setGlobalCrop=function(a){this.SQ=Ms(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.ZX=a;this.resize()};
g.k.jm=function(){};
g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Sa.isFullscreen(),c=a.externalFullscreen&&g.LP(a);if(b&&vs()&&!c)return new g.Gg(window.outerWidth,window.outerHeight);c=!isNaN(this.CF.width)&&!isNaN(this.CF.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Gg(this.element.clientWidth,this.element.clientHeight);if(b||a.Rp){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.NG&&this.NG.media===
a||(this.NG=window.matchMedia(a));var e=this.NG&&this.NG.matches}if(e)return new g.Gg(window.innerWidth,window.innerHeight)}else if(c)return this.CF.clone();return new g.Gg(this.element.clientWidth,this.element.clientHeight)};
g.k.wi=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.UD(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.zT&&b.width>c?(a=g.UD(this.app.U().experiments,"player_underlay_video_width_fraction"),new g.Gg(b.width*a,b.height)):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.dS)?m7a(this):this.dS};
g.k.getVideoContentRect=function(a){var b=this.wi();a=n7a(this,b,this.getVideoAspectRatio(),a);return new g.Cm((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.PC=function(a){this.zT=a;this.resize()};
g.k.uG=function(){return this.JM};
g.k.onMutedAutoplayChange=function(){T_(this)};
g.k.setInternalSize=function(a){g.Hg(this.CF,a)||(this.CF=a,this.resize())};
g.k.xa=function(){this.BP&&g.Tv(this.BP);this.Zj();g.S.prototype.xa.call(this)};g.k=q7a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.hx();c&&a.visualElement&&g.Nx(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=Gra(c);a.visualElement=c;var f=g.hx(),h=g.gx();f&&h&&(g.Zr("combine_ve_grafts")?FL(DL(),c,h):g.Dr(g.Cx)(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.lY=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,EL(DL(),a),r7a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.ex(b))};
g.k.hasVe=function(a){return this.elements.has(a)};g.z(g.V_,g.O);g.V_.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.Wa(a),f=R2[e];if(f){try{f.dispose()}catch(l){g.px(l)}R2[e]=null}var h=new g.V_(a,b,c,d);h.addOnDisposeCallback(function(){R2[e]=null;h.R3&&h.R3()});
return R2[e]=h}catch(l){throw g.px(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.V_.prototype;g.k.ej=function(){return this.visibility};
g.k.Xm=function(){this.tR||(this.tR=g.YA(WS(),cCa()));return this.tR};
g.k.Zj=function(a){if(this.mediaElement){this.mD&&(this.events.Mc(this.mD),this.mD=null);g.ht(this.ev);this.xb&&this.xb.Zj(!0,!1,a);this.template.Zj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.XM()}catch(b){g.qx(b)}this.mediaElement=null}};
g.k.Qc=function(){return this.xb};
g.k.jz=function(){var a=this;this.xb!==this.sb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.xb)==null?void 0:b.getPlayerType())+", vid "+((c=a.xb)==null?void 0:c.getVideoData().videoId)}),s_(this,this.sb))};
g.k.yA=function(a,b,c){var d=this,e=this.Hb;a===2&&(e=new q0a(this.Y));return new g.ZW(this.Y,a,e,this.template,function(f,h,l){d.Sa.publish(f,h,l)},function(){return d.Sa.getVisibilityState()},this.visibility,this,b,c)};
g.k.Taa=function(){if(!a0(this)){this.logger.debug("application playback ready");if(this.L("html5_enable_ssap_autoplay_debug_logging")){var a;(a=this.sb)==null||a.ma("ssap",{onpbrdy:1})}this.lr(5)}};
g.k.cca=function(a){if(!a0(this)){this.logger.debug("playback ready");g8a(this);var b=a.getPlayerState();a.tG()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}};
g.k.canPlayType=function(a){return eG(a)};
g.k.U=function(){return this.Y};
g.k.getVideoData=function(){k0(this,"gvd");return this.xb.getVideoData()};
g.k.bG=ba(17);g.k.xd=function(){return this.sb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.kS(this,a);return a?g.VR(a.getVideoData())?1:(a=a.Ge())?a.Ix():0:0};
g.k.ob=function(){return this.template};
g.k.yb=function(){return this.Rd};
g.k.Lh=function(){return this.Hb};
g.k.OC=function(a){var b=g.kS(this,1);b&&RW(b,a)};
g.k.hs=function(){var a=this.Rd.hs();this.Sa.publish("videoStatsPingCreated",a);return a};
g.k.getVolume=function(){return Math.round(this.Sa.getVolume())};
g.k.isMuted=function(){return this.Sa.isMuted()};
g.k.IA=function(){if(this.xb===this.sb&&this.Fb)return this.Fb.postId};
g.k.aea=function(){var a=this;this.L("use_rta_only_for_player")||(g.hE(this.Y)?g.oQ(this.Y,g.TR(this.getVideoData())).then(function(b){XS(WS(),b);IMa(a.getVideoData(),a.Y,a.Xm())}):IMa(this.getVideoData(),this.Y,this.Xm()))};
g.k.kQ=function(a){var b=this;return g.J(function(c){return b.mC?c.return(b.mC.kQ(a)):c.return(Promise.reject("web po not available"))})};
g.k.II=function(a){this.Sa.publish("d6de4videobindingchange",a)};
g.k.iV=function(){this.mC&&this.mC.iV()};
g.k.jS=function(a){return this.mC?this.mC.jS(a):""};
g.k.oU=function(a){this.mC=a};
g.k.GH=function(a){a===1&&(this.Hb.tick("vr"),LZa(this.xb),r0a(this.Hb,this.xb.getVideoData(),f8a(this)),e1a(this.Rd));var b=this.Y;(lQ(b)&&b.N||g.SP(b))&&(this.If()||this.Sa.tf("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.xb===this.sb&&this.xb.yu()!==a&&(this.xb.setLoop(a),this.Sa.eb("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.xb.yu()};
g.k.setLoopRange=function(a){var b=!1;!!this.Fb!==!!a?b=!0:this.Fb&&a&&(b=this.Fb.startTimeMs!==a.startTimeMs||this.Fb.endTimeMs!==a.endTimeMs||this.Fb.postId!==a.postId||this.Fb.type!==a.type);if(b){if(this.xb&&vR(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.kS(this))==null||c.ma("slr",{et:b})}this.sb.Ih.kf("applooprange");if(a)c=new g.KE(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.sb.addCueRange(c);else{this.xd().clipConfig=void 0;var d,e;((d=
this.Fb)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Fb)==null?void 0:e.loopCount))||(c={loopCount:String(this.Fb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Qt("repeatChapterLoopEvent",c))}this.Fb=a;this.Sa.eb("onLoopRangeChange",a||void 0);this.xb===this.sb&&(this.fN(),this.xb.Fp())}};
g.k.getLoopRange=function(){return this.Fb};
g.k.fN=function(){var a="";this.Fb?this.xb!==this.sb?a="pnea":S7a(this,this.sb.getCurrentTime())&&(this.Fb.loopCount=0,a="ilr"):a="nlr";if(this.xb&&vR(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.kS(this))==null||d.ma("slrre",{rej:a,ct:this.sb.getCurrentTime(),lst:(b=this.Fb)==null?void 0:b.startTimeMs,let:(c=this.Fb)==null?void 0:c.endTimeMs})}else{var e;(e=g.kS(this))==null||e.ma("slrre",{})}a||W7a(this)};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=x7a(this,a),this.sb.getPlaybackRate()!==a&&(this.sb.setPlaybackRate(a),b&&!this.Y.D&&g.lt("yt-player-playback-rate",a),this.Sa.tf("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return tS(this.Rd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.oR(this.getVideoData());k0(this,"gct");a=d||e?g.kS(this):g.kS(this,a);if(!a)return 0;if(e&&this.ub)return b=this.ub,a=a.getCurrentTime(),c?c=H_(b,c):(c=L6a(b,a),c=a-c/1E3),c;if(b){if(d&&this.Ae&&(c=this.Ae.Ta/1E3,c!==0))return c;c=$_(this,a);return i0(this,c.getCurrentTime(),c)}d&&this.Ae?(c=this.Ae,a=a.getCurrentTime(),
c=(c=k6a(c,a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c};
g.k.QA=function(){var a=g.kS(this);if(!a)return 0;a=$_(this,a);return i0(this,a.QA(),a)};
g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.oR(c);var f=d||e?g.kS(this):g.kS(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}k0(this,"agd");if(e&&this.ub)return b=M6a(this.ub,this.ub.Nl()),a===1&&b===0?f.getDuration():b;if(b)return f=
Z_(this,f),i0(this,f.getDuration(),f);d&&this.Ae?(a=this.Ae,f=f.getCurrentTime(),f=(f=l6a(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.df=function(a){var b=g.kS(this,a);return b?this.If(b)?(b=Z_(this,b),b.df()-b.getCurrentTime()+this.getCurrentTime(a)):b.df():0};
g.k.GQ=function(){return this.En};
g.k.addPlayerResponseForAssociation=function(a){this.ub&&this.ub.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b,c){k0(this,"afsc");return this.ub?this.ub.finishSegmentByCpn(a,b,c):[]};
g.k.OP=function(){this.template.OP();var a=this.Sa;a.state.element=this.template.element;var b=a.state.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Yna(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Aca)};
g.k.getDebugText=function(a){var b=this.sb.pc(a);if(this.xb&&this.xb!==this.sb){for(var c=this.xb.pc(a),d=g.w(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=gh(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.kh("video-ads");f?(m8a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.kh("videoAdUiSkipContainer"),l=g.kh("ytp-ad-skip-button-container"),m=g.kh("ytp-skip-ad-button"),n=h||l||m;n?(m8a(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.aG("opacity"),c=this.mediaElement.Cu().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.aG("display"));a&&((a=(0,g.nW)())&&(b.gpu=a),(a=this.Y.playerStyle)&&(b.ps=a),this.Y.Ta&&(b.webview=1));b.debug_playbackQuality=this.Sa.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_20241008_01_RC00"},b=this.getPlayerStateObject().Pg;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){k0(this,"gppt");if(this.appState===1)return 1;if(a0(this))return 3;var b;if(a&&((b=this.Ae)==null?0:b.Tl(this.getCurrentTime())))return 2;var c;return g.oR(this.getVideoData())&&((c=this.ub)==null?0:c.Tl())?2:g.kS(this).getPlayerType()};
g.k.qB=function(){k0(this,"invp");return g.oR(this.getVideoData())&&this.ub?this.ub.qB():!1};
g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?tS(this.Rd).Ie:g.kS(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.rM=function(a){switch(a.type){case "loadedmetadata":this.dN.start();a=g.w(this.FC);for(var b=a.next();!b.done;b=a.next())b=b.value,d8a(this,b.id,b.Yfa,b.Xfa,void 0,!1);this.FC=[];break;case "loadstart":this.Hb.Xv("gv");break;case "progress":case "timeupdate":LG(a.target.Kh())>=2&&this.Hb.Xv("l2s");break;case "playing":g.iQ&&this.dN.start();if(g.hE(this.Y))a=!1;else{b=g.vS(this.yb());a=this.mediaElement.aG("display")==="none"||this.mediaElement.getSize().area()===0;var c=U_(this.template),d=this.xb.getVideoData(),
e=g.vz(this.Y);d=wR(d);b=!c||b||e||d||this.Y.rb;a=a&&!b}a&&(this.xb.ma("hidden",{},!0),this.getVideoData().Tb||(this.getVideoData().Tb=1,this.T0(),this.xb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Sa.Cd("onLoadProgress",b)};
g.k.Zca=function(){this.Sa.publish("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=$_(this,a);b=i0(this,a.getCurrentTime(),a);this.Sa.tf("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Sa.tf("onAutoplayBlocked")};
g.k.mca=function(){this.Sa.publish("progresssync")};
g.k.bca=function(){this.Sa.Cd("onPlaybackPauseAtStart")};
g.k.Vaa=function(a){if(this.getPresentingPlayerType()===1){g.$y(a,1)&&!g.U(a.state,64)&&this.xd().isLivePlayback&&this.sb.isAtLiveHead()&&this.Sa.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.$y(a,2)){if(this.Fb&&this.Fb.endTimeMs>=(this.getDuration()-1)*1E3){W7a(this);return}J7a(this)}if(g.U(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Pg;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Sa.tf("onError",YMa(b.errorCode));this.Sa.Cd("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.ZP,cpn:b.cpn});(0,g.hu)()-this.Y.Vf>6048E5&&this.Sa.Cd("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!IA("pbresume","ad_to_video")&&IA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.GA(b,"ad_to_video");FA("pbresume",void 0,"ad_to_video");e1a(this.Rd)}this.Sa.publish("applicationplayerstatechange",a)}};
g.k.w1=function(a){this.getPresentingPlayerType()!==3&&this.Sa.publish("presentingplayerstatechange",a)};
g.k.lj=function(a){Y_(this,VH(a.state));g.U(a.state,1024)&&this.Sa.isMutedByMutedAutoplay()&&(g0(this,{muted:!1,volume:this.Wi.volume},!1),h0(this,!1))};
g.k.vS=function(a,b,c){a==="newdata"&&y7a(this);this.Sa.publish("applicationvideodatachange",a,c)};
g.k.UB=function(a,b){this.Sa.Cd("onPlaybackAudioChange",this.Sa.getAudioTrack().Yb.name);this.Sa.publish("internalaudioformatchange",this.Sa.getAudioTrack().Yb.id,b)};
g.k.cC=function(a){var b=this.xb.getVideoData();a===b&&this.Sa.tf("onPlaybackQualityChange",a.B.video.quality)};
g.k.mA=function(){var a=this.Dr[2];if(a){var b=a.getVideoData();a=a.EX;var c;(c=g.kS(this))==null||c.ma("ssdai",{cleanaply:1,acpn:b==null?void 0:b.clientPlaybackNonce,avid:b.videoId,ccpn:a,sccpn:this.xd().clientPlaybackNonce===a?1:0,isDai:this.xd().enableServerStitchedDai?1:0});delete this.Dr[2]}};
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.Y.Vb()&&b.ma("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.sb&&(this.Y.Pj=c.oauthToken);if(b===this.sb){this.getVideoData().enableServerStitchedDai&&!this.Ae?this.Ae=new g.x_(this.Sa,this.Y,this.sb):!this.getVideoData().enableServerStitchedDai&&this.Ae&&(this.Ae.dispose(),this.Ae=null);if(this.Y.Vb()&&g.oR(c)){var d,e;b.ma("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.En.j)==null?void 0:(e=d.getVideoData())==null?
void 0:e.clientPlaybackNonce)||""})}var f,h;!g.oR(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.En.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.oR(this.getVideoData())&&this.ub&&(this.Y.Vb()&&b.ma("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.ub.dispose(),this.ub=null):(X5a(this.En),this.L("html5_ssap_cleanup_ad_player_on_new_data")&&this.mA(),d=w_(this.En,1,0,this.getDuration(1)*1E3,
this.getVideoData()),this.En.enqueue(d,!0),v_(this.En,0,this.getDuration(1)*1E3,[d]),Y5a(this.En,this.getVideoData().clientPlaybackNonce,[d]),this.ub&&(this.ub.dispose(),this.ub=null,this.Y.Vb()&&b.ma("ssap",{tlmdis:1})),this.Y.Vb()&&b.ma("ssap",{tlmcreate:1}),this.ub=new D6a(this.Sa,this.En,this.sb),this.sb.hI(this.ub))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),rY(this.Rd,2),this.Sa.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.xb===
this.sb?(XP(c.Ba,c.eX),O7a(this)):M7a(this));b.getPlayerType()===1&&(this.Y.Ua&&l8a(this),this.getVideoData().isLivePlayback&&!this.Y.Zq&&this.Wg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&(($La(c)||this.getVideoData().xw)&&this.Sa.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&Y7a(this)));this.Sa.publish("videodatachange",a,c,b.getPlayerType())}this.Sa.tf("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.fN();(d=c.XH)?this.zs.lY(d,
c.clientPlaybackNonce):r7a(this.zs)};
g.k.pP=function(){c0(this,null);this.Sa.Cd("onPlaylistUpdate")};
g.k.lca=function(a){delete this.PM[a.getId()];this.sb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Oa)==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.Oa)==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.w(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.Q(c,g.rR),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.Q(a,g.rR))&&this.Sa.eb("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.lr=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(Y_(this,-1),Y_(this,5)),this.appState=a,this.Sa.publish("appstatechange",a))};
g.k.Wg=function(a,b,c,d,e){this.sb.Qf(a,b,c,d,e)};
g.k.jt=function(a,b){this.sb.handleError(new aG(a,b))};
g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.kS(this,a);if(!c)return!1;a=Z_(this,c);c=$_(this,c);return a!==c?a.isAtLiveHead(i0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Xr=function(){var a=g.kS(this);return a?Z_(this,a).Xr():0};
g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.kS(this,d))this.appState===2&&e0(this),k0(this,"seekTo"),this.If(d)?j0(this)?this.Ae.seekTo(a,{seekSource:e},b,c):this.Yc.seekTo(a,{seekSource:e},b,c):g.oR(this.getVideoData())&&this.ub?this.ub.seekTo(a,{GI:!b,cV:c,Xc:"application",seekSource:e}):d.seekTo(a,{GI:!b,cV:c,Xc:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.ZB=function(){this.Sa.tf("SEEK_COMPLETE")};
g.k.cM=function(){this.Sa.eb("onAbnormalityDetected")};
g.k.onSnackbarMessage=function(a){this.Sa.eb("onSnackbarMessage",a)};
g.k.Nca=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.U(a.getPlayerState(),512)||e0(this):this.Sa.tf("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Sa.publish("airplayactivechange");this.Y.L("html5_external_airplay_events")&&this.Sa.Cd("onAirPlayActiveChange",this.Sa.zi())};
g.k.onAirPlayAvailabilityChange=function(){this.Sa.publish("airplayavailabilitychange");this.Y.L("html5_external_airplay_events")&&this.Sa.Cd("onAirPlayAvailabilityChange",this.Sa.pG())};
g.k.showAirplayPicker=function(){var a;(a=this.xb)==null||a.Qv()};
g.k.xS=function(){this.Sa.publish("beginseeking")};
g.k.cH=function(){this.Sa.publish("contentPoTokenReady")};
g.k.CS=function(){this.Sa.publish("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.kS(this,a))?Z_(this,a).getVideoData().getStoryboardFormat():null};
g.k.Fk=function(a){return(a=g.kS(this,a))?Z_(this,a).getVideoData().Fk():null};
g.k.If=function(a){a=a||this.xb;var b=!1;if(a){a=a.getVideoData();if(j0(this))a=a===this.Ae.ea.getVideoData();else a:if(b=this.Yc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.w(b.B);for(var c=b.next();!c.done;c=b.next())if(a.Ed===c.value.Ed){a=!0;break a}a=!1}b=a}return b};
g.k.JE=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=j0(this),n;(n=g.kS(this))==null||n.ma("appattl",{sstm:this.Ae?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?g6a(this.Ae,a,b,c,d,e,f,h):V6a(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.lG=function(a,b,c,d,e,f,h){if(j0(this)){var l=g6a(this.Ae,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.Bv=function(a){var b;(b=this.Ae)==null||b.Bv(a)};
g.k.nA=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;j0(this)||d7a(this.Yc,a,b)};
g.k.JI=function(a,b,c){if(j0(this)){var d=this.Ae,e=d.qc.get(a);e?(c===void 0&&(c=e.Yd),e.durationMs=b,e.Yd=c):d.Yl("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Yc;e=null;for(var f=g.w(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.Ed===a){e=h;break}e?(c===void 0&&(c=e.Yd),c7a(d,e,b,c)):I_(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.$Q(this.Y,a);d&&(a.Ed=d);Z7a(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.Qc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().W&&(c=this.QN,d=this.jl.N,c.C!==a&&(c.xb=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=y5a(b,a,this.jl.N),c!=null?(b.ma("sgap",c),b.getVideoData().W&&kX(b,!1)):(a=a.getVideoData(),b=this.QN,b.j!==
a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
g.k.lK=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.kS(this);f&&(Z_(this,f).Z3=!0);L5a(this.jl,a,b,c,d).then(function(){e.Sa.Cd("onQueuedVideoLoaded")},function(){})};
g.k.vn=function(){return this.jl.vn()};
g.k.vG=function(a){return this.jl.vG(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.jl.clearQueue(a,b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e,f){b=b===void 0?1:b;if(b===2&&this.xd().enableServerStitchedDai&&this.sb&&!PV(this.sb)){var h;(h=this.sb)==null||h.ma("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var l=!1;h=new g.$Q(this.Y,a);h.reloadPlaybackParams=f;g.hQ(this.Y)&&!h.mj&&dY(this.Hb);var m;f=this.Hb;var n=(m=h.Ua)!=null?m:"";f.timerName=n;this.Hb.pg("pl_i");this.L("web_player_early_cpn")&&h.clientPlaybackNonce&&this.Hb.infoGel({clientPlaybackNonce:h.clientPlaybackNonce});
if(this.U().supportsGaplessShorts()&&!this.L("html5_shorts_gapless_always_fallback")){m=N5a(this.jl,h,b);if(m==null){Y_(this,-1);a=this.jl;a.app.U().L("html5_gapless_new_slr")?U7a(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().yE=!0;var p,q;(p=a.j)==null||(q=p.ra)==null||q.resume();var r;(r=a.j)==null||zW(r.Sb());c={Xc:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Qc())==null||t.seekTo(M5a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.kS(a.app))==
null||u.playVideo(!0)}a.K();return!0}t=this.L("html5_shorts_gapless_preload_fallback");u=this.jl.j;t&&u&&!u.Ia()&&(p=u.getVideoData(),p=this.Y.L("html5_autonav_autoplay_in_preload_key")?m0(this,b,p):n0(this,b,p.videoId,p.Ed),this.Xy.set(p,u,3600));this.jl.clearQueue(t);var y;(y=g.kS(this))==null||y.ma("sgap",{f:m})}if(e){for(;h.zn.length&&h.zn[0].isExpired();)h.zn.shift();l=h.zn.length-1;l=l>0&&e.B(h.zn[l])&&e.B(h.zn[l-1]);h.zn.push(e)}c||(a&&u0a(a)?(cQ(this.Y)&&!this.Lj&&(a.fetch=0),c0(this,a)):
this.playlist&&c0(this,null),a&&(this.Lj=Is(!1,a.external_list)));this.Sa.publish("loadvideo");b=this.Yu(h,b,d);l&&this.Wg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.zn.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.Y.L("html5_autonav_autoplay_in_preload_key"))f=a8a(this,b,a,e);else{var h=Ns(a);f=n0(this,b,h,e)}if(this.Xy.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.$Q(this.Y,a);e&&(a.Ed=e);return $7a(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);(a=h1a(this.Rd))&&(this.isMinimized()?a.load():a.unload());this.Sa.publish("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Rd;a=a.J.U().showInlinePreviewUi?a.Ke.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Sa.eb("onInlinePreviewModeChange"))};
g.k.qz=function(a){var b=this.Y.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.Y.wl&&this.Y.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.jQ&&b?this.jQ.start():this.VX():this.visibility.qz(a)};
g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
g.k.VX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Ib();b&&Ys(b).catch(function(c){return g.qx(c)})};
g.k.Kca=function(){this.mediaElement.Ib();this.mediaElement.Ib().webkitPresentationMode==="picture-in-picture"?this.qz(!0):this.qz(!1)};
g.k.togglePictureInPicture=function(){var a=g.kS(this);a&&a.togglePictureInPicture()};
g.k.Yu=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
IA("_start",this.Hb.timerName)||g.Dr(yA)(void 0,this.Hb.timerName);var d=!1,e=R7a(this,b,a,!1);e?(d=!0,a.dispose()):(e=L7a(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&$W(e)&&g.aX(e),this.dN.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),s_(this,e));e===this.sb&&(this.Y.Pj=a.oauthToken);if(!$W(e))return!1;if(e===this.sb){this.lr(1);c=e0(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.Uq.finished)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}nZa(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.xd().enableServerStitchedDai&&this.sb&&!PV(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&&u0a(a))if(this.ly=!0,c0(this,a),(a=g.eY(this.playlist))&&a.ye())p0(this,a,b);else this.playlist.onReady(function(){d0(c)});
else{b||(b=this.getPresentingPlayerType());b===1&&this.pP();d=new g.$Q(this.Y,a);var e=g.LP(this.Y)&&!this.Y.qa&&b===1&&!d.isAd()&&!d.Qb;this.Sa.publish("cuevideo");e?(this.Qc().getVideoData().loading=!0,B0a(d,a?a:{}).then(function(f){p0(c,f,b)}),d.dispose()):p0(this,d,b)}};
g.k.Ip=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(NP(this.Y)||g.fE(this.Y))return b=b||{},b.lact=hw(),b.vis=this.Sa.getVisibilityState(),this.Sa.eb("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;s0a(this.Hb);this.Hb.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.ly=!0;b8a(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.ly=!1;b8a(this,a,b,c,d)};
g.k.JF=function(){return this.Sa.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Rl())};
g.k.uu=ba(13);
g.k.nextVideo=function(a,b){var c=g.sR(this.sb.getVideoData());g.VS(this.Sa)&&c?this.Ip(c.videoId,b?c.vF:c.sessionData,c.playlistId,b,void 0,c.JX||void 0):this.Lj?this.Sa.Cd("onPlaylistNext"):this.getPresentingPlayerType()===3?tS(this.Rd).nextVideo():!this.playlist||cQ(this.Y)&&!this.Sa.isFullscreen()||(this.playlist.Rl(a)&&x0a(this.playlist,v0a(this.playlist)),this.playlist.loaded?(a=b&&this.Y.L("html5_player_autonav_logging"),b&&this.Sa.publish("playlistautonextvideo"),this.Yu(g.eY(this.playlist,void 0,
b,a),1)):this.ly=!1)};
g.k.previousVideo=function(a){this.Lj?this.Sa.Cd("onPlaylistPrevious"):this.getPresentingPlayerType()===3?tS(this.Rd).LM():!this.playlist||cQ(this.Y)&&!this.Sa.isFullscreen()||(this.playlist.wq(a)&&x0a(this.playlist,w0a(this.playlist)),this.playlist.loaded?this.Yu(g.eY(this.playlist),1):this.ly=!1)};
g.k.playVideoAt=function(a){this.Lj?this.Sa.Cd("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Yu(g.eY(this.playlist,a),1):this.ly=!1,x0a(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.UF=ba(21);g.k.Qaa=function(a){this.Sa.tf("onCueRangeEnter",a.getId())};
g.k.Raa=function(a){this.Sa.tf("onCueRangeExit",a.getId())};
g.k.NH=function(){var a=g.pY(this.yb());a&&a.NH()};
g.k.cA=function(a,b,c){var d=g.kS(this,b);if(d){var e=this.xd();if(g.oR(e)){k0(this,"acrl");if(this.ub)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.ub.Tl()&&(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=yT(this.ub,e.clientPlaybackNonce),h=g.w(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=
f,l.gm=f,l.C=e.clientPlaybackNonce;else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.w(a),f=e.next();!f.done;f=e.next())f.value.C=this.ub.Nl();e=g.w(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.cA(a,c);b&&this.getPresentingPlayerType()!==b||X_(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.sb.ma("ssap",{acrlpnf:this.sb.getVideoData().clientPlaybackNonce})};
g.k.OH=function(a,b){var c=g.kS(this,b);c&&(c.OH(a),b&&this.getPresentingPlayerType()!==b||X_(this,"cuerangesremoved",a))};
g.k.Ez=function(a){var b=this.Qc()||this.sb,c=b.Ih;if(c){var d=this.getPresentingPlayerType();if(this.Y.Vb()){var e=c.bL("ad");b.ma("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.Ez(d,a):c.Ez(d)}return 0};
g.k.Uaa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.hx(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.Y.L("web_player_attach_player_response_ve"),h=b.Y.L("web_playback_associated_ve");d={cpn:b.getVideoData().clientPlaybackNonce,csn:e};b.getVideoData().Fa&&(f||h)&&(f=g.ex(b.getVideoData().Fa),g.Kx(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().K&&(e.cttAuthInfo=
{token:b.getVideoData().K,videoId:b.getVideoData().videoId});g.Qt("playbackAssociated",d,e)}else g.qx(new g.At("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();r0a(this.Hb,this.xb.getVideoData(),f8a(this));b0(this)&&this.Y.D&&PR(this.xd())==="embedded"&&this.R_&&Math.random()<.01&&g.Qt("autoplayTriggered",{intentional:this.j_});this.R_=!1;e1a(this.Rd);this.L("web_player_defer_ad")&&N7a(this);this.Sa.Cd("onPlaybackStartExternal");(this.Y.L("mweb_client_log_screen_associated"),YP(this.Y))||a();var c={};this.getVideoData().K&&(c.cttAuthInfo={token:this.getVideoData().K,videoId:this.getVideoData().videoId});c.sampleRate=
20;HA("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.fQ(this.Y)||iP(this.Y)==="MWEB"?g.Ft(g.Ht(),function(){f0(b)}):f0(this);
this.fN();V7a(this)};
g.k.fH=function(){this.Sa.publish("internalAbandon");l0(this)};
g.k.onApiChange=function(){this.Y.N&&this.xb?this.Sa.tf("onApiChange",this.xb.getPlayerType()):this.Sa.tf("onApiChange")};
g.k.Oba=function(){var a=this.mediaElement;a={volume:g.Bg(Math.floor(a.getVolume()*100),0,100),muted:a.GK()};a.muted||h0(this,!1);this.Wi=g.Yg(a);this.Sa.tf("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.nS)&&(this.nS=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.nS}),this.Sa.Cd("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=h8a(this);this.jm(a?1:0);j8a(this,!!a)};
g.k.jm=function(a){var b=!!a,c=!!this.LA()!==b;this.visibility.jm(a);this.template.jm(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&h8a(this)===this.mediaElement.Ib()&&this.mediaElement.xF();this.template.resize();c&&this.Hb.tick("fsc");c&&(this.Sa.publish("fullscreentoggled",b),a=this.xd(),b={fullscreen:b,videoId:a.DE||a.videoId,time:this.getCurrentTime()},this.Sa.getPlaylistId()&&(b.listId=this.Sa.getPlaylistId()),this.Sa.tf("onFullscreenChange",b))};
g.k.Bq=function(){return this.visibility.Bq()};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.LA=function(){return this.visibility.LA()};
g.k.Aca=function(){this.xb&&(this.LA()!==0&&this.LA()!==1||this.jm(h8a(this)?1:0),this.Y.wl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.xF())};
g.k.Gba=function(a){this.getPresentingPlayerType()!==3&&this.Sa.publish("liveviewshift",a)};
g.k.playVideo=function(a,b){this.logger.debug(function(){return"play video, player type "+a});
var c=g.kS(this,a);c&&(this.appState===2?(g.hQ(this.Y)&&dY(this.Hb),e0(this)):g.U(c.getPlayerState(),2)?(b=36,this.getVideoData().Oj()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):c.playVideo(!1,b))};
g.k.pauseVideo=function(a,b){(a=g.kS(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.$Q(this.Y,{video_id:b.DE||b.videoId,oauth_token:b.oauthToken});c.Z=g.Yg(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.zJ=!0);this.cancelPlayback(6);p0(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.kS(this,b);d?b===2&&d.getPlayerType()===1&&(rMa(this.xd())||g.oR(this.getVideoData()))?d.ma("canclpb",{r:"no_adpb_ssdai"}):(this.Y.Vb()&&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.xb&&(this.logger.debug("cancel playback, destroy modules"),rY(this.Rd,a)),b===1&&(d.stopVideo(),l0(this)),d.tp(void 0,a!==6),X_(this,"cuerangesremoved",d.Ml()),d.Ih.reset(),this.jl&&d.isGapless()&&
(d.Zj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.kS(this,b))&&ZJa(this.Y,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Oi=function(a){var b=g.kS(this);return b&&ZJa(this.Y,a)?b.Oi(a):null};
g.k.updatePlaylist=function(){!cQ(this.Y)&&g.LP(this.Y)&&P7a(this);this.Sa.Cd("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.Z2=a;this.L("web_log_theater_mode_visibility")?this.SC(b):this.HR=b;this.Sa.publish("sizestylechange",a,b);this.template.resize()};
g.k.SC=function(a){this.visibility.SC(a)};
g.k.Ik=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.Ik():this.HR};
g.k.isMinimized=function(){return this.visibility.isMinimized()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.hj=function(){return this.visibility.hj()};
g.k.oB=function(){return this.visibility.oB()};
g.k.uB=function(){return this.visibility.uB()};
g.k.GR=function(){return this.Z2};
g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return tS(this.Rd).getAdState();k0(this,"gas");if(!this.If()){var a=sY(this.yb());if(a)return a.getAdState()}return-1};
g.k.zca=function(a){var b=this.template.getVideoContentRect();Dm(this.E_,b)||(this.E_=b,this.xb&&fX(this.xb),this.sb&&this.sb!==this.xb&&fX(this.sb),this.LA()===1&&this.sH&&j8a(this,!0));this.OR&&g.Hg(this.OR,a)||(this.Sa.publish("appresize",a),this.OR=a)};
g.k.Ph=function(){return this.Sa.Ph()};
g.k.Uca=function(){this.getPresentingPlayerType()===2&&this.Yc.isManifestless()?b7a(this.Yc):(this.Ae&&(m6a(this.Ae),l0(this)),I7a(this,"signature"))};
g.k.uca=function(a){a&&I7a(this,"reloadPlayerEvent",void 0,a)};
g.k.T0=function(a){this.Zj(a);W_(this)};
g.k.Uba=function(a){if(a.errorCode==="manifest.net.badstatus"){var b=this.Y.experiments.bb("html5_use_network_error_code_enums")?401:"401";a.details.rc===b&&this.Sa.eb("onPlayerRequestAuthFailed")}};
g.k.eH=function(a){this.Sa.publish("heartbeatparams",a)};
g.k.aN=function(a){this.Sa.eb("onAutonavChangeRequest",a!==1)};
g.k.Ge=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Y.rb!==a&&(this.Y.rb=a,this.xb&&(this.xb.Fp(),this.Y.Ua&&l8a(this),this.xb.qp(a)))};
g.k.Wba=function(){var a=g.kS(this);if(a){var b=!this.Sa.sG();(a.FZ=b)||a.zy.stop();a.videoData.j&&(b?a.videoData.j.resume():QIa(a.videoData.j));a.ra&&(b?a.ra.resume():iX(a,!0));g.U(a.playerState,2)||b?g.U(a.playerState,512)&&b&&a.Ec(RH(a.playerState,512)):a.Ec(QH(a.playerState,512));a=a.Sb();a.qoe&&(a=a.qoe,g.jW(a,g.QK(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Sa.Cd("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Sa.Cd("onDrmOutputRestricted")};
g.k.HB=function(){this.j_=!0};
g.k.xa=function(){this.Rd.dispose();this.g9.dispose();this.Yc.dispose();this.Ae&&this.Ae.dispose();this.En.removeAll();this.En.dispose();this.ub&&this.ub.dispose();this.sb.dispose();this.Zj();g.wg(g.Ng(this.Dr),this.playlist);g.O.prototype.xa.call(this)};
g.k.L=function(a){return this.Y.L(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Sa.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Rd.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=uY(this.Rd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Fb&&this.Fb.postId)return a=this.Y.getVideoUrl(a),a=jj(a,"v"),a.replace("/watch","/clip/"+this.Fb.postId);var f=this.Sa.fd()||this.Y.Ja==="shortspage",h=g.ZR(this.getVideoData());return this.Y.getVideoUrl(a,b,c,d,e,f,h)};
g.k.Nu=function(){return this.jl.Nu()};
g.k.An=function(a){this.Sa.publish("spsumpstatuschange",a)};
g.k.aT=function(a,b){this.Sa.publish("spsumpreject",a,b)};
g.k.VG=function(){try{for(var a=g.w(Object.values(this.Dr)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ia()||c.VG()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.w(g7a(this.Xy)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ia()||f.VG()}this.sb.VG()}catch(h){g.qx(h)}};
g.k.FU=function(){if(this.Ae){var a=(0,g.hu)();return this.Ae.FU(a)}return!1};
var R2={};var Beb={Js:[{Is:/Unable to load player module/,weight:20},{Is:/Failed to fetch/,weight:500},{Is:/XHR API fetch failed/,weight:10},{Is:/JSON parsing failed after XHR fetch/,weight:10},{Is:/Retrying OnePlatform request/,weight:10},{Is:/CSN Missing or undefined during playback association/,weight:100},{Is:/Non-recoverable error. Do not retry./,weight:0},{Is:/Internal Error. Retry with an exponential backoff./,weight:0},{Is:/API disabled by application./,weight:0}],Or:[{callback:n8a,weight:500}]};var A8a=/[&\?]action_proxy=1/,z8a=/[&\?]token=([\w-]*)/,B8a=/[&\?]video_id=([\w-]*)/,C8a=/[&\?]index=([\d-]*)/,D8a=/[&\?]m_pos_ms=([\d-]*)/,F8a=/[&\?]vvt=([\w-]*)/,r8a="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(" "),E8a="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(" "),u8a={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"},v8a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},x8a={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};s0.prototype.EB=function(a){this.player.Lh().tick(a)};
s0.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.EB("a_bid_s");var e=p8a();if(e!==null)return d&&this.EB("a_bid_f"),this.B(a,b,e);e=q8a();d&&Mi(e,function(){c.EB("a_bid_f")});
return e.then(function(f){return c.B(a,b,f)})};
s0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.vx;var f=e.je;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Qj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.lh:0,AUTONAV_STATE:r0(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Xr()*1E3,LACT:hw(),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().wi().height,P_W:this.player.ob().wi().width,YT_REMOTE:e?e.join(","):""},n=Qr(Pr);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())});
c!==""&&(m.BISCOTTI_ID=c);c={};Or(a)&&(c.sts="20005",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=Lr(g.Wo(a,m),c);return p.split("?").length!==2?Ki(Error("Invalid AdBreakInfo URL")):g.oQ(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&Nr()){var r=WS();XS(r,q)}q=d.player.Xm(r);r=G8a(d,p,m,l.isMdxPlayback,h);return g.NA(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
s0.prototype.reset=function(){this.C=this.j=1};g.z(H8a,s0);
H8a.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.vx;var e=b.je;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:I8a(this,a,{vx:d,je:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.qx(Error("Invalid AdBreakInfo URL")),Ki(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=z8a.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=A8a.test(h);e=B8a.exec(h);e=e!=null&&e.length>=
2?e[1]:"";var n=C8a.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=D8a.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=WP(this.player.U().Ca),r=g.aA(this.player.getVideoData(1).Fa,!0);t8a(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(hw()),playerHeightPixels:Math.trunc(this.player.ob().wi().height),playerWidthPixels:Math.trunc(this.player.ob().wi().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:20005,autonavState:r0(this.player.U())};
if(l){l={};var t=this.player.U().Qj;w8a(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=E8a.includes(q)?void 0:g.os("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,y=t.length;u<y;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=y8a(l)}h=F8a.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};
m=this.player.getVideoData(1).getGetAdBreakContext();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.lh:0)*1E3))?String(d):void 0;u=this.player.Xr()*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 J8a(this,b)};var Ceb={fla:"replaceUrlMacros",wka:"onAboutThisAdPopupClosed",tia:"executeCommand"};K8a.prototype.Wr=function(){return"adPingingEndpoint"};
K8a.prototype.Fu=function(a,b,c){p9a(this.Na.get(),a,b,c)};L8a.prototype.Wr=function(){return"changeEngagementPanelVisibilityAction"};
L8a.prototype.Fu=function(a){this.J.eb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};M8a.prototype.Wr=function(){return"loggingUrls"};
M8a.prototype.Fu=function(a,b,c){a=g.w(a);for(var d=a.next();!d.done;d=a.next())d=d.value,p9a(this.Na.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.z(O8a,g.O);g.z(u0,g.O);g.k=u0.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.Pk=function(a,b,c,d,e,f,h,l){if(a==="")Xy("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.Ga.get().Pk(a,b,c,d,e,f,h,l);this.Qa.get().Pk(a,b,c,d,e,f,h,l);var m;(m=this.wf)==null||m.get().Pk(a,b,c,d,e,f,h,l);this.B.Pk(a,b,c,d,e,f,h,l);m=g.w(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Pk(a,b,c,d,e,f,h,l)}};
g.k.fH=function(){this.j&&this.fp(this.j)};
g.k.fp=function(a){this.j=void 0;for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.fp(a)};v0.prototype.BJ=function(a,b,c,d,e){P8a(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.K);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.D=a;d<=0?(P8a(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.C=!0,IA("_start",this.actionType)&&S8a(this)))};
v0.prototype.reset=function(){return new v0(this.J)};g.z(w0,g.O);w0.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)?Xy("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new T8a(a,b,c,d,f),this.j.set(a.id,{je:a,listener:e,Ep:h}),this.J.qf([a],h))};
w0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.vp([b.je],b.Ep),this.j.delete(b.je.id)):Xy("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
w0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
w0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.z(T8a,g.KE);x0.prototype.GH=function(a){this.J.GH(a)};
x0.prototype.Ev=function(a){var b=g.Ea.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.tf.apply(this.J,[a].concat(g.x(b))):this.J.eb.apply(this.J,[a].concat(g.x(b)))};y0.prototype.Ye=function(a){return a&&z0(this)};
y0.prototype.wU=function(){return this.J.U().experiments.bb("h5_enable_generic_error_logging_event")};var b9a=null;g.z(a9a,g.Qx);a9a.prototype.wQ=function(a){return this.j.hasOwnProperty(a)?this.j[a].wQ():{}};
g.Oa("ytads.bulleit.getVideoMetadata",function(a){return A0().wQ(a)});
g.Oa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=A0();c=$8a(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=B0.prototype;
g.k.Wh=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=Tl(Uo).SK(a,{});c?On(c):b&&(a=Tl(Uo).MH(null,rm(),!1,a),a.Mk=3,fka([a]));return{}}b=d9a(b);if(b===null)return{};var d=this.J.Qc();d=d&&eZa(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.Ga.get().isFullscreen()};return gla(b,a,c)};
g.k.Ly=function(a){var b;(b=this.j.get(a.queryId))==null||b.Ly()};
g.k.Ky=function(a){var b;(b=this.j.get(a.queryId))==null||b.Ky()};
g.k.My=function(a){var b;(b=this.j.get(a.queryId))==null||b.My()};
g.k.Iy=function(a){var b;(b=this.j.get(a.queryId))==null||b.Iy()};
g.k.Jy=function(a){var b;(b=this.j.get(a.queryId))==null||b.Jy()};k9a.prototype.send=function(a,b,c,d){try{l9a(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.z(m9a,k9a);n9a.prototype.send=function(a,b,c,d){var e=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=xqa(a);d=e;var f=a.match(Zi);if(f[1]==="https")var h=a;else f[1]="https",h=Xi("https",f[2],f[3],f[4],f[5],f[6],f[7]);var l=rla(h);f=[];var m=ina(h)&&this.ya.get().J.U().experiments.bb("add_auth_headers_to_remarketing_google_dot_com_ping");if(Or(h)||m)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}),
f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:h,scrubReferrer:l,headers:f},b,c,d)}catch(n){}};G0.prototype.Oi=function(){var a=this.J.Qc();return a&&(a=a.Oi(1))?a:null};g.z(H0,g.O);g.k=H0.prototype;g.k.Wm=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.Pk=function(){this.OO.clear();this.RR=null;this.xt.get().clear()};
g.k.fp=function(){};
g.k.nda=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&this.J.ma("ads_ssm_vdc_s",{pt:c,dvt:a});PK(this.ya.get())&&a!=="dataloaded"||w9a(this,b,c);if(z0(this.ya.get())&&a==="newdata"&&e!==void 0){a=this.Wm();var f=b.clientPlaybackNonce,h={};WF(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=VF(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=x9a(e);if(e!==1)if(d!==void 0)for(c=g.w(this.listeners),a=c.next();!a.done;a=c.next())a.value.bH(d,
b,e);else Xy("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.w(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.aH(b)}};
g.k.Oca=function(a,b){a!==void 0&&(this.RR=a,b===void 0?Xy("Expected ad video start time on SS video changed"):this.OO.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?w9a(this,d,c):Xy("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.CJ=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.Ed,h=a.title,l=a.rj,m=a.Yj,n=a.isMdxPlayback,p=a.On,q=a.mdxEnvironment,r=a.isAutonav,t=a.jr,u=a.mj,y=a.Yp,A=a.videoId||"",C=a.profilePicture||"",F=a.ym||"",H=a.Oj()||!1,L=a.Bg()||!1;a=a.qx||void 0;f=this.xt.get().j.get(f)||{layoutId:null,slotId:null};var N=this.J.getVideoData(1),X=N.Wb();N=N.getPlayerResponse();b=1E3*this.J.getDuration(b);var V=1E3*this.J.getDuration(1),ca,la,W=(N==null?void 0:(ca=N.playerConfig)==null?void 0:
(la=ca.daiConfig)==null?void 0:la.enableDai)||!1,R,Y;ca=(N==null?void 0:(R=N.playerConfig)==null?void 0:(Y=R.daiConfig)==null?void 0:Y.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Hda:b,Hl:V,daiEnabled:W,pY:ca,isListed:e,Wb:X,profilePicture:C,title:h,ym:F,rj:l,Yj:m,qx:a,isMdxPlayback:n,On:p,mdxEnvironment:q,isAutonav:r,jr:t,mj:u,Yp:y,Oj:H,Bg:L})};
g.k.xa=function(){this.listeners.length=0;this.wx=null;g.O.prototype.xa.call(this)};g.z(I0,g.O);g.k=I0.prototype;g.k.Pk=function(){var a=this;z0(this.ya.get())||(this.j=Di(function(){a.J.Ia()||a.J.Gg("ad",1)}))};
g.k.fp=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.AS=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.Uo(a)&&this.J.playVideo()};
g.k.Uo=function(a){return this.J.getPlayerState(a)===2};
g.k.getCurrentTimeSec=function(a,b,c){var d=this.Qa.get().RR;if(a===2&&!b&&d!==null)return z9a(this,d);hI(this.ya.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.PC=function(a){this.J.PC(a)};
g.k.nca=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.w(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Si(b)}else if(a===1)for(a=g.w(this.dF),c=a.next();!c.done;c=a.next())c.value.AS(b)};
g.k.eca=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Dg(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Ah=function(){for(var a=this.J.isMinimized(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ah(a)};
g.k.Uj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Uj(a)};
g.k.kc=function(){for(var a=this.J.ob().wi(),b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.jj(a)};
g.k.Tj=function(a){for(var b=g.w(this.listeners),c=b.next();!c.done;c=b.next())c.value.Tj(a)};
g.k.Wj=function(){for(var a=g.w(this.listeners),b=a.next();!b.done;b=a.next())b.value.Wj()};g.z(C9a,g.O);g.z(N0,g.O);N0.prototype.xa=function(){this.Xo.Ia()||this.Xo.get().removeListener(this);g.O.prototype.xa.call(this)};O0.prototype.fetch=function(a){var b=a.nY;return this.j.fetch(a.f4,{vx:a.vx===void 0?void 0:a.vx,je:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return D9a(c,b)})};g.z(P0,g.O);g.k=P0.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.rN=function(a){E9a(this,a,1)};
g.k.onAdUxClicked=function(a,b){Q0(this,function(c){c.vg(a,b)})};
g.k.uS=function(a){Q0(this,function(b){b.VQ(a)})};
g.k.tS=function(a){Q0(this,function(b){b.UQ(a)})};
g.k.Naa=function(a){Q0(this,function(b){b.XK(a)})};R0.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={gF:null,G_:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.G_))if(b.G_=c,b.gF){if(c<b.gF.end){a:{c=b.gF;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.lh;a=c.end<=a?null:a}if(a!==null)for(b.gF.end=a,b=this.B,g.jc(b.C.j,a*1E3),b=g.w(b.listeners),c=b.next();!c.done;c=b.next())c.value.M0(a)}}else if(a=F9a(a,this.C))c=a.H$,b.gF=
a.o8,H9a(this.B,c)};
R0.prototype.updateTime=function(){};g.z(S0,g.O);g.k=S0.prototype;
g.k.Pk=function(){this.G=new R0(this,W8a(this.ya.get()));this.C=new G9a;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.BS,this),b.subscribe("cuepointupdated",this.BS,this),this.j=b)}this.DI.length=0;var d;b=((d=a.j)==null?void 0:IIa(d,0))||[];d=g.w(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.xv(b)&&Xy("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.fp=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.xv=function(a){J9a(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.BS=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.fE(this.J.U())){a=g.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,J9a(this,c),b?this.G.reduce(c):this.J.getCurrentTime(1)!==0&&c.event==="start"&&(this.ya.get().J.U().experiments.bb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.B==null?0:c.startSecs+c.lh>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.lh)?Xy("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,H9a(this,
c)))}};
g.k.xa=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.BS,this),this.j=null);this.listeners.length=0;this.DI.length=0;g.O.prototype.xa.call(this)};T0.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=V0.prototype;g.k.JE=function(a,b,c,d,e,f,h){return this.J.JE(a,b,c,d,e,f,h)};
g.k.nA=function(a,b){this.J.nA(a,b)};
g.k.JI=function(a,b,c){this.J.JI(a,b,c)};
g.k.Bv=function(a){this.J.Bv(a)};
g.k.lG=function(a,b,c,d,e,f,h){this.J.lG(a,b,c,d,e,f,h)};
g.k.nt=function(a){return this.J.nt(a)};
g.k.finishSegmentByCpn=function(a,b,c){c=L9a(c);this.J.finishSegmentByCpn(a,b,c)};g.z(N9a,g.O);g.z(O9a,g.O);g.z(P9a,g.O);g.z(Q9a,g.O);g.z(R9a,g.O);g.z(T9a,g.O);T9a.prototype.C=function(){return this.B};g.z(U9a,Cy);
U9a.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.eb("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.eb("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.eb("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.eb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.eb("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.eb("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.eb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.eb("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.eb("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.eb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.eb("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.eb("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.eb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.eb("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.eb("updateEngagementPanelAction",b.addAction);this.j.eb("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.eb("changeEngagementPanelVisibility",b.hideAction),this.j.eb("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.eb("updateEngagementPanelAction",{action:ux(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.eb("changeEngagementPanelVisibility",ux(c.expandAction));break;case 3:this.j.eb("changeEngagementPanelVisibility",
ux(c.hideAction)),this.j.eb("updateEngagementPanelAction",{action:ux(c.removeAction)})}}};g.z(V9a,Ky);g.k=V9a.prototype;
g.k.init=function(a,b,c){Ky.prototype.init.call(this,a,b,c);g.Fm(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.api.U().B&&
(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.qa.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){My(this);Ky.prototype.hide.call(this)};
g.k.show=function(){Ly(this);Ky.prototype.show.call(this)};
g.k.Wq=function(){this.hide()};
g.k.pp=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Fm(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.z(W9a,Zx);g.k=W9a.prototype;
g.k.init=function(a,b,c){Zx.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.Q(b.actionButton,g.dK))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.px(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.wb(g.og(e[0].url))&&(e[0].url=d.profilePicture,g.wb(g.og(d.profilePicture))&&SOa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.wb(g.og(e[0].url))&&(e[0].url=d.nh());e=b.headline;e!=null&&g.wb(g.og(e.text))&&(e.text=d.author)}this.W.init(Ox("ad-image"),b.image,c);this.G.init(Ox("ad-text"),b.headline,c);this.C.init(Ox("ad-text"),b.description,c);this.Ka.init(Ox("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().B&&(d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),d.push("ytp-ad-action-interstitial-action-button-dark"));
this.api.U().L("enable_unified_action_endcap_on_web")&&!this.api.U().B&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.Ya.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Bf.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.qa.classList.add("ytp-ad-action-interstitial-image-container-unified"),
this.Fa.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,d);g.P(this,this.actionButton);this.actionButton.Ha(this.ib);this.actionButton.init(Ox("button"),g.Q(b.actionButton,g.dK),c);zp(this.actionButton.element);d=Cp(this.actionButton.element);Bp(this.actionButton.element,d+" This link opens in new tab");this.navigationEndpoint=
b.navigationEndpoint;this.D.T(this.qa,"click",this.aQ,this);this.D.T(this.Oa,"click",this.aQ,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Ta,"click",this.aQ,this);this.j=this.zU?new gz(this.api,a):new hz(a);g.P(this,this.j);if(b.skipButton){if((a=g.Q(b.skipButton,dcb))&&this.j&&(this.skipButton=new az(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.j,this.oN),g.P(this,this.skipButton),this.skipButton.Ha(this.element),
this.skipButton.init(Ox("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){c=this.api.L("disable_ad_preview_for_instream_ads");if(a=b.adBadgeRenderer)if(a=g.Q(a,ccb))d=new ez(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,!0,!1,c),d.Ha(this.Fa),d.init(Ox("simple-ad-badge"),a,this.macros),g.P(this,d);if(a=b.adInfoRenderer)if(a=g.Q(a,bK))c=new Hy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.element,void 0,c),c.Ha(this.Fa),
c.init(Ox("ad-info-hover-text-button"),a,this.macros),g.P(this,c)}}else b.nonskippableOverlayRenderer&&(a=g.Q(b.nonskippableOverlayRenderer,cK))&&this.j&&(this.B=new Py(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.j,!1),g.P(this,this.B),this.B.Ha(this.element),this.B.init(Ox("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.Q(b,ecb)&&this.j&&(c=new V9a(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.j),g.P(this,c),c.Ha(this.element),c.init(Ox("timed-pie-countdown"),
g.Q(b,ecb),this.macros)));this.show();this.element.focus()}else g.px(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.px(Error("AdActionInterstitialRenderer has no button."));else g.px(Error("AdActionInterstitialRenderer has no background AdImage."));else g.px(Error("AdActionInterstitialRenderer has no description AdText."));else g.px(Error("AdActionInterstitialRenderer has no headline AdText."));else g.px(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.ht(this.D);this.hide()};
g.k.show=function(){X9a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();Zx.prototype.show.call(this)};
g.k.hide=function(){X9a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();Zx.prototype.hide.call(this)};
g.k.aQ=function(){this.navigationEndpoint&&(this.layoutId?this.fb.executeCommand(this.navigationEndpoint,this.layoutId):g.px(Error("Missing layoutId for ad action interstitial.")))};var b$a={iconType:"CLOSE"},Z0=new g.Gg(320,63);g.z(a$a,Zx);g.k=a$a.prototype;
g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);this.D=b;this.W=g.ac(this.D.onClickCommands||[]);this.Oa=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.Q(a,$bb)?(this.G=g.kh("ytp-ad-overlay-ad-info-button-container",this.C.element),c$a(this,b),a=e$a(this,g.Q(a,$bb))):g.Q(a,acb)?(this.G=g.kh("ytp-ad-overlay-ad-info-button-container",this.B.element),c$a(this,b),a=f$a(this,g.Q(a,acb))):g.Q(a,bcb)?(this.G=
g.kh("ytp-ad-overlay-ad-info-button-container",this.j.element),c$a(this,b),a=g$a(this,g.Q(a,bcb))):(g.px(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),h$a(this,!0))};
g.k.clear=function(){h$a(this,!1);this.Ka.reset();this.qa=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.eda=function(){this.Ya&&(this.layoutId?this.fb.executeCommand(this.Ya,this.layoutId):g.px(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.zO=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.w(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.fb.executeCommand(b,this.layoutId):g.px(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.Laa=function(){this.Ta||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.k.US=function(){this.Ta||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.US("invideo-overlay")};
g.k.Maa=function(a){a.target===this.G&&g.kh("ytp-ad-button",this.ib.element).click()};g.z(i$a,Ky);g.k=i$a.prototype;g.k.init=function(a,b,c){Ky.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(Ox("ad-text"),d,c);this.messageText.Ha(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){j$a(this,!1);Ky.prototype.hide.call(this);this.B.hide();this.messageText.hide();My(this)};
g.k.show=function(){j$a(this,!0);Ky.prototype.show.call(this);Ly(this);this.B.show();this.messageText.show()};
g.k.Wq=function(){this.hide()};
g.k.pp=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.qa&&a>=this.C?(this.D.hide(),this.qa=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(Jy(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.z(k$a,Zx);g.k=k$a.prototype;
g.k.init=function(a,b,c){Zx.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.Q(b.actionButton,g.dK)?(this.C.init(Ox("ad-image"),b.image,c),this.B.init(Ox("ad-text"),b.headline,c),this.D.init(Ox("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 qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,
a),b.backgroundColor&&g.Fm(this.element,"background-color",g.Qz(b.backgroundColor)),g.P(this,this.actionButton),this.actionButton.Ha(this.G),this.actionButton.init(Ox("button"),g.Q(b.actionButton,g.dK),c),b=g.UD(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Op(c,"ytp-ad-underlay-left-container"),g.Mp(c,"ytp-ad-underlay-right-container"),g.Fm(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.Op(c,"ytp-ad-underlay-right-container"),
g.Mp(c,"ytp-ad-underlay-left-container")),g.Fm(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.uG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.RW.bind(this)),this.api.addEventListener("resize",this.DZ.bind(this))):g.px(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.px(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.px(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.px(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){l$a(!0);this.actionButton&&this.actionButton.show();Zx.prototype.show.call(this)};
g.k.hide=function(){l$a(!1);this.actionButton&&this.actionButton.hide();Zx.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.RW.bind(this));this.api.removeEventListener("resize",this.DZ.bind(this));this.hide()};
g.k.onClick=function(a){Zx.prototype.onClick.call(this,a);this.actionButton&&g.wh(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.RW=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.DZ=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.Fm(this.B.element,"font-size",a.width/40+"px")};g.z($0,Zx);
$0.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.Q(b.answer,g.dK)?(a=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ha(this.answer),a.init(Ox("ytp-ad-survey-answer-button"),g.Q(b.answer,g.dK),c),a.show()):b.answer&&g.Q(b.answer,M1)&&(this.j=new Ay(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ha(this.answer),g.P(this,this.j),this.j.init(Ox("survey-answer-button"),g.Q(b.answer,M1),c));this.show()};
$0.prototype.YH=function(a){this.layoutId?zE(this.fb,a,this.layoutId,this.macros):g.px(new g.At("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
$0.prototype.onClick=function(a){Zx.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
$0.prototype.clear=function(){this.hide()};g.z(m$a,Zx);m$a.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);b.answer&&g.Q(b.answer,M1)&&(this.button=new Ay(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ha(this.j),this.button.init(Ox("survey-none-of-the-above-button"),g.Q(b.answer,M1),c));this.show()};g.z(a1,qy);a1.prototype.init=function(a,b,c){qy.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.ay(b.text),a=!g.wb(b));a||g.qx(Error("No submit text was present in the renderer."))};
a1.prototype.onClick=function(a){this.publish("l");qy.prototype.onClick.call(this,a)};g.z(b1,Zx);
b1.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.Q(a,QI)?(a=g.Q(a,QI),c=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.D,!0),c.Ha(this.skipOrPreview),c.init(Ox("skip-button"),a,this.macros),g.P(this,c),this.j=c):g.Q(a,cK)&&(a=g.Q(a,cK),c=new Py(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.D,!1),c.Ha(this.skipOrPreview),c.init(Ox("ad-preview"),a,this.macros),Qy(c),g.P(this,c),this.j=c);this.j==
null&&g.px(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.Q(a,g.dK)&&(a=g.Q(a,g.dK),c=new a1(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),c.Ha(this.submitButton),c.init(Ox("survey-submit"),a,this.macros),g.P(this,c),this.C=c));a=this.api.L("disable_ad_preview_for_instream_ads");if(c=b.adBadgeRenderer){c=g.Q(c,ccb);var d=new ez(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,!0,
!1,a,!0);d.Ha(this.B);d.init(Ox("simple-ad-badge"),c,this.macros);this.adBadge=d.element;g.P(this,d)}if(c=b.adDurationRemaining)c=g.Q(c,Wbb),d=new kz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.D,void 0,a),d.Ha(this.B),d.init(Ox("ad-duration-remaining"),c,this.macros),g.P(this,d);(b=b.adInfoRenderer)&&g.Q(b,bK)&&(c=new Hy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.element,void 0,a),g.P(this,c),a&&this.adBadge!==void 0?this.B.insertBefore(c.element,
this.adBadge.nextSibling):c.Ha(this.B),c.init(Ox("ad-info-hover-text-button"),g.Q(b,bK),this.macros));this.api.U().L("enable_unified_ad_badge_style_fix")&&this.B.classList.add("ytp-ad-survey-player-overlay-instream-info-unified");this.show()};
b1.prototype.clear=function(){this.hide()};g.z(c1,Zx);c1.prototype.init=function(a,b,c){Zx.prototype.init.call(this,a,b,c);r$a(this)};
c1.prototype.show=function(){this.C=g.Za();Zx.prototype.show.call(this)};
c1.prototype.j2=function(){};g.z(s$a,c1);g.k=s$a.prototype;g.k.init=function(a,b,c){var d=this;c1.prototype.init.call(this,a,b,c);b.questionText&&n$a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,K1)&&o$a(d,g.Q(e,K1),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.Q(a,Zbb))&&t$a(this,a,c);b.surveyAdQuestionCommon&&q$a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.j2=function(){u$a(this,!1);this.D.C.subscribe("l",this.cda,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?v$a(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),u$a(this,!0))};
g.k.cda=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.Zg(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=hj(f.baseUrl,b));return f});
return e});
if(c){c=g.w(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?zE(this.fb,d,this.layoutId,this.macros):g.px(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.qa(a)};
g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(d1,c1);d1.prototype.init=function(a,b,c){var d=this;c1.prototype.init.call(this,a,b,c);b.questionText&&n$a(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,K1)&&o$a(d,g.Q(e,K1),c,f)});
b.surveyAdQuestionCommon?q$a(this,b.surveyAdQuestionCommon):g.px(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
d1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.z(e1,Zx);e1.prototype.init=function(a,b,c){var d=this;Zx.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)&&z$a(this,0)}else(b.questions||[]).forEach(function(l){g.Q(l,$J)?x$a(d,g.Q(l,$J),c):g.Q(l,ZJ)&&y$a(d,g.Q(l,ZJ),c)});
this.show()};
e1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
e1.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.px(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.px(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)z$a(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.px(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 A$a=na(['background-image:url("','");']);g.z(f1,Zx);
f1.prototype.init=function(a,b,c){var d=this;Zx.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.px(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.Q(b.ctaButton,g.dK))if(b.brandImage)if(b.backgroundImage&&g.Q(b.backgroundImage,eK)&&g.Q(b.backgroundImage,eK).landscape){this.layoutId||g.px(Error("Missing layoutId for survey interstitial."));B$a(this.interstitial,
g.Q(b.backgroundImage,eK).landscape);B$a(this.logoImage,b.brandImage);g.zh(this.text,g.ay(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new qy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,e);g.P(this,this.actionButton);this.actionButton.Ha(this.B);this.actionButton.init(Ox("button"),g.Q(b.ctaButton,g.dK),c);this.actionButton.show();this.j=new gz(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()});
g.P(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.px(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.px(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.px(Error("SurveyTextInterstitialRenderer has no button."));else g.px(Error("SurveyTextInterstitialRenderer has no text."));else g.px(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
f1.prototype.clear=function(){this.hide()};
f1.prototype.show=function(){C$a(!0);Zx.prototype.show.call(this)};
f1.prototype.hide=function(){C$a(!1);Zx.prototype.hide.call(this)};g.z(g1,Ky);g.k=g1.prototype;
g.k.init=function(a,b){Ky.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.px(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.xK();var c;if((c=b.previewText)==null||!c.text||g.wb(b.previewText.text))g.px(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.zh(this.C,b.previewText.text);var d;
if(((d=this.api.getVideoData(1))==null?0:d.zm)&&b.previewImage){var e,f;(a=((f=lva(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.Yx({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.P(this,this.previewImage),this.previewImage.Ha(this.element)):g.px(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(){My(this);Ky.prototype.hide.call(this)};
g.k.show=function(){Ly(this);Ky.prototype.show.call(this)};
g.k.Wq=function(){this.hide()};
g.k.pp=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.zh(this.C,a);this.D=b}}}};g.z(h1,Zx);
h1.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});var c,d;if((a=((d=lva(((c=b.image)==null?void 0:c.sources)||[],D$a(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Da("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.px(Error("Failed to get imageUrl in AdAvatar."))};
h1.prototype.clear=function(){this.hide()};
h1.prototype.onClick=function(a){Zx.prototype.onClick.call(this,a)};g.z(i1,Zx);
i1.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.wb(a))||b.iconImage){c&&(this.buttonText=new g.Yx({I:"span",S:"ytp-ad-button-vm__text",va:a}),g.P(this,this.buttonText),this.buttonText.Ha(this.element));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)||c?a:"";f&&Bp(this.element,f+" This link opens in new tab");zp(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=
g.w(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=py(d);h!=null&&(this.buttonIcon=new g.Yx({I:"span",S:"ytp-ad-button-vm__icon",V:[h]}),g.P(this,this.buttonIcon),b.iconLeading?(uh(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):(this.buttonIcon.Ha(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")))}this.element.classList.add("ytp-ad-button-vm--style-filled");
switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.qx(Error("AdButton does not have label or an icon."))};
i1.prototype.clear=function(){this.hide()};
i1.prototype.onClick=function(a){Zx.prototype.onClick.call(this,a)};g.z(E$a,Ky);g.k=E$a.prototype;
g.k.init=function(a,b){Ky.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.Da("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"),uh(this.Da("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.Q(b.avatar,fcb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.Q(b.button,hcb);e?(this.adAvatar.init(Ox("ad-avatar"),a),this.headline.init(Ox("ad-simple-attributed-string"),new mz(c)),this.description.init(Ox("ad-simple-attributed-string"),new mz(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(Ox("ad-button"),e),this.B=b.startMs||0,this.api.uG()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.SW.bind(this)),Ly(this)):g.px(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.px(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.px(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.px(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.pp=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(My(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Wq=function(){this.clear()};
g.k.onClick=function(a){this.api.pauseVideo();Ky.prototype.onClick.call(this,a)};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.SW.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Ky.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Ky.prototype.hide.call(this)};
g.k.SW=function(a){a==="hidden"?this.show():this.hide()};g.z(F$a,Zx);g.k=F$a.prototype;
g.k.init=function(a,b){Zx.prototype.init.call(this,a,b,{});if(!b.label||g.wb(b.label))g.px(Error("No label is returned for SkipAdButton."));else if(g.zh(this.D,b.label),a=py({iconType:"SKIP_NEXT_NEW"}),a==null)g.px(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.Yx({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.P(this,this.C),this.C.Ha(this.element),this.api.U().experiments.bb("enable_skip_to_next_messaging")&&(b=g.og(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;jta(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0?this.api.eb("onAbnormalityDetected"):(Zx.prototype.onClick.call(this,a),this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.eb("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){Zx.prototype.hide.call(this)};
g.k.show=function(){this.j.start();Zx.prototype.show.call(this);this.B&&this.api.U().experiments.bb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.z(G$a,Ky);g.k=G$a.prototype;
g.k.init=function(a,b){Ky.prototype.init.call(this,a,b,{});a=g.Q(b.preskipState,kcb);if(!this.api.U().experiments.bb("disable_ad_preview_for_instream_ads")){if(!a){g.px(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var c;(c=this.B)==null||c.init(Ox("preview-ad"),a);(c=this.B)!=null&&(c.transition.show(100),c.show())}(c=g.Q(b.skippableState,mcb))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.qx(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=
5E3),this.C.init(Ox("skip-button"),c),this.show()):g.px(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){Ly(this);Ky.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();My(this);Ky.prototype.hide.call(this)};
g.k.clear=function(){var a;(a=this.B)==null||a.clear();this.C&&this.C.clear();My(this);Ky.prototype.hide.call(this)};
g.k.Wq=function(){this.hide()};
g.k.pp=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.z(j1,Zx);
j1.prototype.init=function(a,b){Zx.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.wb(b.label.content)&&(this.linkText=new g.Yx({I:"span",S:"ytp-visit-advertiser-link__text",va:b.label.content}),g.P(this,this.linkText),this.linkText.Ha(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)Bp(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.wb(b.label.content)&&Bp(this.element,
b.label.content+" This link opens in new tab")}zp(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.px(Error("No label found in VisitAdvertiserLink."))};
j1.prototype.onClick=function(a){Zx.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
j1.prototype.clear=function(){this.hide()};g.z(k1,Zx);
k1.prototype.init=function(a,b,c,d){Zx.prototype.init.call(this,a,b,{});if(b.skipOrPreview&&(c=b.skipOrPreview,a=g.Q(c,ncb),c=g.Q(c,kcb),a?(this.Rv=new G$a(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B),g.P(this,this.Rv),this.Rv.Ha(this.W),this.Rv.init(Ox("skip-ad"),a)):c&&!this.api.U().experiments.bb("disable_ad_preview_for_instream_ads")&&(this.D=new g1(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B,1),g.P(this,this.D),this.D.Ha(this.W),this.D.init(Ox("ad-preview"),
c),a=this.D,a.transition.show(100),a.show()),a=g.Q(b.skipOrPreview,ncb)))var e=a.skipOffsetMilliseconds;b.playerAdCard&&(a=g.Q(b.playerAdCard,lcb))&&(this.playerAdCard=new E$a(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B),g.P(this,this.playerAdCard),this.playerAdCard.Ha(this.Fa),this.playerAdCard.init(Ox("ad-avatar-lockup-card"),a));a=this.api.U().L("disable_ad_duration_remaining_for_instream_video_ads")||b.adPodIndex!==void 0;b.adBadgeRenderer&&((c=g.Q(b.adBadgeRenderer,
gcb))?(this.C=new oz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,a),g.P(this,this.C),this.C.Ha(this.j),this.C.init(Ox("ad-badge"),c)):g.px(Error("AdBadgeViewModel is not found in player overlay layout.")));b.adPodIndex&&(c=g.Q(b.adPodIndex,jcb))&&(this.adPodIndex=new pz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,g.Q(b.skipOrPreview,ncb)===void 0),g.P(this,this.adPodIndex),this.adPodIndex.Ha(this.j),this.adPodIndex.init(Ox("ad-pod-index"),c));b.adDurationRemaining&&
(c=g.Q(b.adDurationRemaining,Wbb))&&(this.adDurationRemaining=new kz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.B,d.videoAdDurationSeconds,!1),g.P(this,this.adDurationRemaining),this.adDurationRemaining.Ha(this.j),this.adDurationRemaining.init(Ox("ad-duration-remaining"),c,this.macros));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,bK))&&(this.adInfoButton=new Hy(this.api,this.layoutId,this.interactionLoggingClientData,this.fb,this.element,void 0,a),g.P(this,this.adInfoButton),
this.api.U().L("enable_ad_pod_index_autohide")&&this.C!==void 0?this.j.insertBefore(this.adInfoButton.element,this.C.element.nextSibling):this.adInfoButton.Ha(this.j),this.adInfoButton.init(Ox("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.Q(b.visitAdvertiserLink,ocb))&&(this.visitAdvertiserLink=new j1(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ha(this.j),this.visitAdvertiserLink.init(Ox("visit-advertiser-link"),
d));b.adDisclosureBanner&&(b=g.Q(b.adDisclosureBanner,icb))&&(this.adDisclosureBanner=new qz(this.api,this.layoutId,this.interactionLoggingClientData,this.fb),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.Ha(this.qa),this.adDisclosureBanner.init(Ox("ad-disclosure-banner"),b));this.api.U().L("show_preskip_progress_bar_for_skippable_ads")&&(this.G=new tz(this.api,this.B,e,a),g.P(this,this.G),g.US(this.api,this.G.element,4));this.show()};
k1.prototype.clear=function(){this.hide()};var Deb="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.z(l1,Cy);
l1.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!Deb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.fb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof yF?c.zU:!1,m=c instanceof yF||c instanceof fz?c.oN:!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 a$a(a,f,h,e);break;case "player-overlay":a=new uz(a,f,h,e,new IY(a),m);break;case "player-overlay-layout":a=new k1(a,f,h,e,new IY(a));break;case "survey":a=
new e1(a,f,h,e);break;case "ad-action-interstitial":a=new W9a(a,f,h,e,l,m);break;case "survey-interstitial":a=new f1(a,f,h,e);break;case "ad-message":a=new i$a(a,f,h,e,new IY(a,1));break;case "player-underlay":a=new k$a(a,f,h,e);break;default:a=null}if(!a){g.qx(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Pg(this.B,b)?g.qx(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof EF?this.C?this.C.append(a.aU):g.px(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.aU);break;case 2:b=H$a(this,a);if(b==null)break;b.bind(c);break;case 3:c=H$a(this,a),c!=null&&(g.vg(c),g.Pg(this.B,b)?(c=this.B,b in c&&delete c[b]):g.qx(Error("Ad UI component does not exist: "+b)))}};
l1.prototype.xa=function(){g.wg(Object.values(this.B));this.B={};Cy.prototype.xa.call(this)};g.z(I$a,g.hY);g.k=I$a.prototype;g.k.create=function(){try{J$a(this),this.load(),this.created=!0,J$a(this)}catch(a){Xy(a instanceof Error?a:String(a))}};
g.k.load=function(){try{M$a(this)}finally{z0(X0(this.j).Kl)&&this.player.Gg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Ny.fp(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.hY.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){Xy(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.Ln=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(Ceb)};
g.k.gi=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=g9a(this.player),Object.assign(b,a.lna),a=g.Wo(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Nq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.xv=function(a){var b;return!((b=this.j.j.wf)==null||!b.get().xv(a))};
g.k.Nq=function(a){a.isMuted&&ova(X0(this.j).Xl,X0(this.j).Zo,a.layoutId);this.Pt&&this.Pt.Nq()};
g.k.executeCommand=function(a){X0(this.j).fb.executeCommand(a.command,a.layoutId)};g.Oa("yt.player.Application.create",g.V_.create);g.Oa("yt.player.Application.createAlternate",g.V_.create);Wra(lx(),Beb);var Eeb=g.Pa("ytcsi.tick");Eeb&&Eeb("pe");g.gY("ad",I$a);g.z(g.o1,g.O);g.o1.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.hu)()};this.next()};
g.o1.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.o1.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.hu)()-a;a=this.j;d=hma(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Dg(a.C,a.y1,d);var f=Dg(a.y1,a.y2,d);a=Dg(a.y2,a.D,d);e=Dg(e,f,d);f=Dg(f,a,d);a=Dg(e,f,d)}a=g.Bg(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.z(g.p1,g.S);g.k=g.p1.prototype;g.k.f7=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.S.prototype.show.call(this);S$a(this)};
g.k.g7=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Oy=function(){this.kc(this.api.ob().getPlayerSize())};
g.k.kc=function(a){var b=this.api.fd()?.5625:16/9,c=this.api.Oh();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.w(this.C),f=e.next();!f.done;f=e.next())f=f.value.Da("ytp-suggestion-image"),f.style.width=d+"px",f.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.G=d;this.W=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.q1(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.Bn(b.suggestions,function(c){return c&&!c.playlistId}):[];
U$a(this);b.Jf?this.title.update({title:g.XE("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.fd()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.Bg(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.q1(this);S$a(this)};})(_yt_player);
