www.youtube-nocookie.com Open in urlscan Pro
2a00:1450:4001:808::200e  Public Scan

URL: https://www.youtube-nocookie.com/s/player/2d24ba15/player_ias.vflset/en_US/base.js
Submission Tags: falconsandbox
Submission: On November 21 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

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

 (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,raa,saa,la,taa,vaa,pa,waa,qa,xaa,ra,sa,ta,yaa,zaa,Aaa,Ba,Ca,Baa,Caa,Daa,Eaa,Fa,Ga,Ha,Ia,Ja,Ka,Faa,Ma,Qa,Ra,Haa,Iaa,Jaa,Kaa,Laa,nb,pb,qb,Naa,Oaa,Paa,Qaa,Raa,Saa,Taa,Uaa,Vaa,Waa,Xaa,Yaa,Zaa,$aa,aba,sb,bba,ub,cba,gba,vb,hba,iba,yb,jba,Bb,Db,Jb,Kb,Lb,Mb,kba,lba,Nb,Pb,Ob,mba,nba,oba,pba,Qb,qba,Rb,Tb,Ub,rba,sba,Wb,uba,vba,fc,wba,kc,xba,yba,hc,zba,Aba,Bba,qc,Cba,Eba,Kba,wc,Jba,Gba,Mba,Oba,Qba,yc,zc,Bc,Dc,Cc,Sba,Uba,Vba,Ec,Fc,Gc,Hc,Wba,Jc,Kc,Lc,Yba,Nc,Pc,Qc,Zba,Sc,Uc,cca,Yc,ad,cd,dca,
bd,eca,fca,dd,Zc,ed,fd,gca,gd,hca,hd,jca,jd,kd,ld,lca,pd,mca,nca,oca,kca,od,nd,md,pca,qca,rca,sca,tca,rd,sd,ud,uca,zca,xca,yd,Aca,yca,vca,wca,Dd,Cca,Hd,Fd,Eca,Dca,Fca,Gca,Id,Hca,Ica,Kd,Ld,Nd,Jca,Md,Qd,Pd,Rd,Xd,Sd,Ud,Vd,Mca,Zd,Nca,$d,ae,ee,fe,ge,be,de,ce,je,Lca,ke,Oca,fb,le,me,Td,Wd,ne,Sca,oe,qe,Tca,ib,re,se,te,ue,ve,we,xe,Uca,ye,Vca,ze,Wca,Be,Ae,Ce,Ee,Fe,Ge,He,Xca,Zca,Je,$ca,ada,Ke,Le,Oe,cda,dda,Pe,hda,kda,eda,jda,ida,gda,fda,lda,Qe,mda,Ve,We,oda,Xe,qda,Ye,Ze,$e,rda,af,sda,bf,tda,uda,cf,vda,df,ef,
gf,hf,xda,lf,Ada,wda,mf,of,pf,Cda,qf,sf,Dda,Fda,Gda,tf,uf,vf,wf,xf,yf,zf,Ida,Jda,Kda,Lda,Af,Mda,Nda,Bf,Cf,Df,Ef,Oda,Sda,Tda,Vda,Uda,Wda,Yda,If,Kf,Mf,Pf,Qf,aea,Tf,Vf,Xf,cea,dea,$f,eea,fea,eg,gg,hg,jg,kg,mg,ng,nea,oea,pea,qea,og,pg,qg,sea,tea,uea,rg,sg,tg,vg,wg,zg,Bg,Gg,vea,wea,Ng,xea,Yg,Zg,Aea,Fea,Dea,Hea,Iea,bh,ch,hh,Lea,Nea,Mea,jh,lh,Oea,kh,qh,ah,Qea,Pea,vh,uh,$g,Rea,yh,zh,Ch,Sea,Dh,Uea,Gh,Vea,Hh,Ih,Jh,Wea,Xea,Mh,Zea,Lh,Kh,Yea,$ea,afa,Oh,bfa,Nh,Ph,Qh,Rh,cfa,dfa,efa,Sh,ffa,Th,Qda,Pda,Uh,Vh,Xh,Yh,
ifa,Zh,bi,di,jfa,kfa,ei,pfa,ji,mfa,ofa,hi,gi,ni,oi,qfa,qi,rfa,ri,si,sfa,ufa,wi,wfa,yi,zi,xfa,yfa,Ci,Di,Ei,Cfa,Efa,Hi,Ffa,Gi,Jfa,Ai,Afa,Lfa,Ifa,Gfa,Hfa,Mfa,Kfa,Ii,Dfa,Li,Ofa,Pfa,Qfa,Rfa,Sfa,Ni,Tfa,Ri,Ufa,Xfa,Yfa,Si,Ti,Ui,Yi,$fa,Zi,$i,aj,aga,cga,dj,dga,ej,fj,gga,iga,kga,jga,lga,hj,kj,oj,qj,rj,sj,tj,uj,oga,pga,vj,qga,wj,xj,pj,gb,yj,zj,Aj,Bj,Dj,Ej,tga,Fj,Gj,Hj,uga,vga,wga,xga,Ij,Jj,Kj,Lj,zga,Nj,Cga,Dga,Ega,Rj,Fga,Aga,Sj,Gga,Hga,Tj,Jga,Kga,Lga,Mga,Nga,Vj,Oga,Pga,Qga,Rga,Uga,Sga,Wj,Xj,Yj,Zj,ak,bk,ck,dk,
Wga,Xga,fk,ek,gk,Yga,cha,Zga,$ga,aha,bha,hk,ik,dha,jk,kk,lk,mk,nk,ok,pk,hha,eha,sk,gha,tk,fha,rk,qk,vk,jha,xk,wk,Ck,Dk,Fk,mha,Ek,Ik,nha,Jk,kha,qha,rha,sha,Mk,Nk,Ok,tha,Pk,Qk,Rk,Sk,uha,Tk,Uk,Xk,vha,wha,Yk,xha,Mj,Aha,Bha,Cha,Dha,yha,Zk,$k,al,bl,Fha,dl,cl,Gha,Hha,Iha,hl,Jha,il,jl,Kha,Lha,kl,Nha,ll,Mha,Oha,Pha,Qha,ml,nl,ol,pl,ql,rl,sl,Rha,tl,ul,vl,Sha,Uha,Vha,xl,zl,yl,Bl,Cl,Dl,Xha,Yha,El,Fl,Gl,$ha,aia,dia,bia,eia,iia,Hl,hia,fia,Il,Jl,jia,Kl,kia,Ll,mia,lia,nia,oia,Pl,Ql,pia,qia,ria,Rl,Sl,sia,Tl,tia,uia,
wia,Aia,Ul,Bia,Cia,Dia,Eia,Fia,Xl,Gia,Hia,Iia,dm,cm,bm,Jia,Kia,Lia,em,fm,gm,Nia,lm,mm,nm,om,Oia,pm,Qia,Ria,Sia,qm,zm,Am,Em,Fm,Im,Uia,Wia,Via,Xia,Yia,Om,Zia,$ia,Pm,aja,bja,cja,dja,Tm,Rm,Um,Vm,Wm,eja,fja,gja,Xm,Ym,hja,Zm,ija,jja,kja,$m,lja,an,bn,mja,nja,oja,pja,qja,rja,cn,dn,en,gn,uja,hn,jn,vja,tja,fn,wja,kn,ln,mn,on,nn,xja,yja,zja,pn,Bja,qn,Dja,Eja,Fja,Gja,Hja,Ija,Jja,Kja,tn,un,vn,Mja,Lja,Nja,Oja,xn,Pja,yn,Qja,Rja,zn,An,Bn,Sja,Cn,Dn,Tja,En,Fn,Gn,Hn,In,Jn,Kn,Ln,Uja,Vja,Wja,Xja,Mn,Yja,$ja,Zja,On,Pn,
bka,aka,eka,hka,gka,Qn,ika,jka,kka,mka,lka,nka,Rn,oka,pka,Tn,qka,rka,ska,tka,Un,uka,Vn,vka,Wn,Xn,xka,Yn,yka,Zn,$n,zka,Aka,ao,co,Cka,eo,Bka,Dka,Eka,Fka,Hka,fo,Ika,io,jo,Kka,Lka,Oka,Pka,ko,lo,mo,no,oo,po,qo,ro,so,to,uo,vo,wo,Tka,Ska,Uka,Wka,Vka,Yka,Rka,Xka,Qka,xo,yo,$ka,ala,bla,Co,Do,Eo,zo,ela,Fo,Zka,gla,hla,fla,Go,Ho,Io,Jo,ila,dla,jla,Ko,kla,lla,mla,nla,ola,rla,sla,tla,ula,vla,xla,yla,Mo,Ala,To,Lo,Cla,Bla,Fla,Hla,Ila,Jla,Nla,Mla,Pla,Rla,Wla,ip,Xla,hp,kp,Yla,lp,np,op,Zla,$la,ama,vp,bma,cma,Ep,dma,fma,
Fp,gma,hma,nma,jma,Jp,Kp,Lp,Np,Op,sma,Pp,Qp,Rp,uma,Up,vma,wma,Vp,yma,Xp,Yp,Zp,$p,zma,aq,cq,dq,eq,fq,Ama,hq,iq,jq,kq,lq,mq,Bma,Cma,Dma,Ema,Fma,Gma,nq,Hma,uq,Ima,Jma,Kma,vq,xq,yq,zq,Cq,Dq,Eq,Mma,Hq,Iq,Jq,Nma,Oma,Kq,Pma,Qma,Mq,Yma,Zma,$ma,Nq,ana,bna,ena,Pq,gna,fna,Rq,hna,ina,Tq,Uq,jna,Vq,Wq,Xq,Yq,Zq,$q,ar,br,er,fr,gr,hr,ir,jr,kna,lna,mna,lr,nr,nna,rr,sr,tr,ur,vr,xr,yr,rna,zr,Ar,Br,tna,sna,ona,Er,Dr,xna,Fr,Or,Lr,Pr,Qr,zna,Cna,Sr,Fna,Dna,Ena,Hna,Mna,Ina,Kna,Lna,Ur,Tr,Nna,Wr,Xr,Yr,Ona,ds,Pna,es,fs,hs,Qna,
js,ks,Rna,ls,ms,Tna,ps,rs,ts,us,vs,ws,xs,ys,zs,As,Vna,Bs,Es,Ds,Xna,aoa,Zna,$na,boa,coa,eoa,foa,doa,hoa,Hs,Is,Ls,ioa,joa,Ks,Ms,loa,moa,qoa,poa,Qs,Rs,Ss,Ts,Us,Ws,soa,toa,uoa,ct,dt,voa,woa,xoa,it,jt,kt,yoa,zoa,Boa,Doa,ot,Eoa,rt,pt,vt,wt,zt,Foa,Gt,Ht,It,Jt,Lt,Mt,Ot,Koa,Loa,Qt,Moa,Noa,St,Ooa,Poa,Tt,Ut,Qoa,Roa,Toa,Yt,Voa,Woa,Wt,Xoa,Yoa,$oa,Zoa,bu,Uoa,bpa,cpa,hu,fu,dpa,epa,iu,ju,fpa,gpa,mu,hpa,ipa,jpa,kpa,ru,lpa,mpa,npa,opa,ppa,qpa,rpa,spa,uu,tpa,wu,vpa,wpa,xpa,ypa,zpa,xu,Du,Bpa,Epa,Eu,Fpa,Hpa,Apa,Ipa,Jpa,
Kpa,Cpa,Dpa,yu,zu,Cu,Gpa,Bu,Au,Lpa,Mpa,Npa,Opa,Ppa,Qpa,Vpa,Rpa,Iu,Pu,Uu,Ypa,aqa,$pa,Tu,Xu,bqa,$u,cqa,eqa,ev,dqa,nqa,fqa,mqa,iv,oqa,rqa,jv,hv,pqa,qqa,sqa,lv,uqa,vqa,wqa,xqa,yqa,zqa,Aqa,tqa,Cqa,Dqa,Eqa,Fqa,Gqa,Iqa,pv,Jqa,qv,rv,tv,Kqa,Lqa,wv,xv,Nqa,Mqa,yv,Oqa,Qqa,Sqa,Rqa,Tqa,Wqa,Uqa,Jv,Mv,Lv,Xqa,Kv,Nv,Ov,Pv,Yqa,Zqa,Rv,ara,Uv,Tv,Wv,Xv,Yv,bra,Zv,aw,cra,cw,ew,fw,dra,era,fra,gra,gw,iw,hra,jw,kw,lw,jra,mw,nw,kra,pw,tw,rw,qw,uw,vw,nra,tra,vra,sra,rra,ura,yw,Bw,xra,wra,Gw,Hw,mra,Gra,Nw,Fra,Jra,Era,xw,Ow,Fw,
Lw,Hra,Dw,pra,ora,qra,Aw,Dra,Sw,Qra,Pra,Tw,Sra,Tra,Ura,Vw,Vra,Wra,Xra,Zra,$ra,Yw,bsa,Zw,csa,dsa,fsa,gsa,ax,hsa,jsa,bx,ksa,cx,dx,Ct,psa,usa,jx,wsa,zsa,lx,Bsa,Csa,Dsa,Esa,wx,Fsa,ux,Zpa,sx,vx,tx,mx,Ex,Dx,Hx,Ix,Kx,Hsa,Lx,Ox,Px,Isa,Jsa,Sx,Lsa,Msa,Nsa,Osa,Psa,Qsa,Rsa,Ssa,Tsa,Usa,Wx,Vsa,Xx,Zx,Wsa,Xsa,Ysa,$x,Zsa,$sa,dy,ey,fy,ata,gy,bta,iy,dta,cta,ky,ly,my,ny,eta,oy,py,fta,gta,qy,ry,kta,hta,jta,ita,sy,ty,uy,lta,mta,nta,vy,pta,sta,rta,wy,yy,zy,Ay,By,Dy,Ey,Fy,Gy,Hy,Iy,tta,uta,vta,wta,Jy,Ky,Ly,My,Oy,Qy,zta,yta,
Sy,Ata,Ty,Uy,Vy,Wy,Xy,$y,az,bz,cz,dz,ez,fz,gz,hz,iz,jz,Dta,lz,nz,Eta,oz,Gta,Hta,Ita,Kta,Mta,uz,Nta,wz,vz,Qta,Rta,Sta,yz,zz,Uta,Bz,Cz,Dz,Ez,Wta,Fz,Gz,Hz,Xta,Iz,Vta,bA,cA,Zta,Yta,dA,eA,fA,gA,iA,aua,bua,kA,lA,nA,oA,cua,mA,fua,gua,hua,iua,jua,kua,lua,qA,pA,eua,oua,rA,qua,rua,wA,sua,tA,uA,tua,xA,vua,xua,yA,zA,yua,AA,Aua,BA,Gua,Eua,Bua,Dua,Cua,DA,EA,FA,GA,HA,IA,JA,LA,Iua,Lua,OA,zla,PA,Mua,Oua,RA,VA,SA,UA,TA,Rua,Qua,Pua,Sua,WA,Tua,Xua,XA,ZA,Zua,$A,aB,bB,cB,$ua,dB,ava,bva,eB,gB,kB,lB,mB,nB,oB,pB,qB,rB,sB,
tB,uB,vB,wB,cva,dva,xB,yB,zB,AB,BB,CB,eva,fva,DB,HB,iva,jva,IB,JB,PB,QB,lva,TB,WB,mva,ova,nva,pva,qva,rva,sva,tva,uva,wva,vva,xva,Ava,Cva,zva,YB,ZB,Eva,Dva,$B,aC,bC,Fva,cC,dC,eC,Hva,Iva,fC,Gva,gC,Lva,hC,iC,jC,kC,lC,mC,nC,oC,pC,qC,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,zD,AD,Nva,BD,Z,CD,yD,DD,ED,FD,Pva,HD,Rva,GD,Sva,JD,Tva,LD,ID,MD,ND,OD,QD,Vva,Wva,Xva,Yva,ZD,
$D,VD,aE,$va,awa,bwa,cwa,Uva,dwa,PD,ewa,fwa,cE,hE,dE,SD,gwa,RD,bE,eE,iE,iwa,TD,UD,gE,fE,jwa,jE,kE,lE,mE,kwa,nE,oE,pE,qE,rE,lwa,mwa,owa,pwa,uE,vE,wE,xE,uwa,wwa,ywa,zwa,zE,Bwa,Cwa,FE,Dwa,GE,HE,IE,JE,KE,LE,Ewa,Gwa,Hwa,Fwa,Iwa,Jwa,PE,QE,SE,UE,VE,WE,XE,Kwa,YE,ZE,RE,bF,cF,dF,eF,Lwa,aF,Nwa,fF,Owa,Pwa,gF,Qwa,hF,iF,Rwa,Swa,jF,Twa,Uwa,kF,Vwa,Wwa,Xwa,Ywa,lF,mF,Zwa,$wa,nF,oF,pF,axa,qF,rF,sF,tF,bxa,uF,vF,cxa,wF,dxa,xF,exa,fxa,gxa,hxa,ixa,jxa,yF,kxa,lxa,mxa,zF,nxa,AF,oxa,BF,pxa,CF,qxa,rxa,DF,HF,txa,IF,JF,uxa,KF,
vxa,LF,MF,NF,wxa,xxa,PF,QF,zxa,RF,Axa,Bxa,yxa,Cxa,Dxa,Exa,TF,Fxa,UF,VF,WF,XF,Ixa,YF,ZF,aG,Jxa,bG,cG,eG,hG,fG,lG,mG,Kxa,nG,oG,pG,qG,Lxa,sG,tG,Mxa,uG,vG,wG,jG,xG,yG,zG,Nxa,AG,BG,CG,Oxa,DG,EG,FG,GG,HG,JG,KG,LG,MG,Pxa,Qxa,Rxa,Sxa,RG,NG,SG,TG,Txa,Uxa,Vxa,UG,VG,WG,Wxa,Xxa,PG,Yxa,Zxa,XG,$xa,YG,ZG,aH,bH,cH,dH,JH,NH,OH,QH,RH,SH,TH,PH,bya,cya,VH,WH,XH,dya,ZH,fya,$H,aI,gya,bI,cI,dI,fI,hya,eI,gI,hI,iI,iya,lI,kya,lya,mya,mI,nI,nya,oya,pya,oI,rya,YH,qya,sya,pI,tya,qI,uya,rI,vya,wya,xya,yya,zya,sI,Bya,Aya,tI,wI,
Cya,xI,Dya,yI,Eya,Fya,zI,Gya,Hya,Iya,Jya,AI,Kya,BI,Mya,DI,EI,Oya,Nya,Pya,Qya,Rya,GI,HI,II,Sya,Tya,Uya,Vya,Wya,Xya,Yya,Zya,$ya,aza,KI,LI,bza,cza,MI,NI,dza,OI,PI,RI,eza,SI,TI,UI,fza,VI,gza,WI,hza,XI,iza,jza,YI,kza,lza,mza,ZI,$I,aJ,bJ,cJ,nza,oza,dJ,eJ,fJ,pza,gJ,hJ,iJ,qza,rza,jJ,sza,kJ,lJ,mJ,nJ,nwa,tza,uza,vza,wza,xza,yza,oJ,pJ,qJ,rJ,sJ,tJ,uJ,vJ,wJ,xJ,yJ,zza,Aza,FJ,GJ,Bza,HJ,OJ,JJ,Gza,Lza,Hza,Mza,Oza,Pza,Nza,Qza,Rza,Sza,$J,Vza,Xza,Zza,$za,aAa,cK,dK,cAa,dAa,hAa,eK,iAa,eAa,fK,gK,hK,iK,kAa,nAa,lAa,qAa,xAa,
wAa,rAa,yAa,kK,tAa,sAa,BAa,EAa,DAa,IAa,FAa,lK,mK,NAa,pK,OAa,UAa,TAa,SAa,QAa,XAa,WAa,RAa,bBa,aBa,cBa,uK,fBa,dBa,eBa,PAa,gBa,hBa,qK,sK,ZAa,YAa,$Aa,iBa,rK,VAa,kBa,mBa,oBa,qBa,tBa,uBa,wBa,xBa,zBa,yBa,EBa,BBa,ABa,FBa,IBa,JBa,KBa,LBa,FK,Wza,OBa,MBa,IK,RBa,LK,TBa,UBa,SBa,MK,VBa,NK,OK,ME,PK,Uza,QK,RK,SK,WBa,XBa,TK,YBa,ZBa,$Ba,UK,VK,WK,XK,YK,ZK,$K,aL,bL,aCa,bCa,cL,cCa,dL,vI,eL,fL,dCa,eCa,fCa,gL,hL,gCa,iL,hCa,iCa,Yza,QBa,jCa,jL,NE,tE,vK,kCa,lCa,lL,MAa,nK,mCa,GK,HK,xK,wK,jK,zK,rBa,vBa,yK,JAa,GBa,nCa,zAa,uAa,
mL,PBa,bK,pCa,oCa,jAa,sBa,qCa,HBa,DK,KAa,LAa,CAa,pBa,nBa,pAa,mAa,gAa,fAa,bAa,jBa,vAa,CBa,GAa,HAa,BK,CK,AK,DBa,lBa,sCa,rCa,nL,oL,pL,qL,rL,uL,xL,yL,zL,BL,CL,sL,tL,AL,uCa,tCa,DL,FL,vCa,wCa,xCa,GL,HL,IL,JL,KL,LL,ML,BCa,OL,NL,CCa,zCa,ACa,DCa,PL,QL,ECa,FCa,RL,GCa,Bt,ICa,HCa,KCa,MCa,NCa,LCa,OCa,RCa,XL,YL,SCa,TCa,ZL,$L,UCa,VCa,WCa,XCa,bM,YCa,aDa,cDa,dDa,bDa,eM,gM,fM,eDa,fDa,cM,gDa,hDa,iDa,jDa,dM,nDa,oDa,pDa,mDa,lDa,kDa,qDa,rDa,ZCa,sDa,$Ca,tDa,uDa,yDa,vDa,wDa,xDa,BDa,zDa,ADa,CDa,DDa,iM,FDa,EDa,IDa,GDa,JDa,
HDa,KDa,LDa,MDa,NDa,ODa,PDa,QDa,RDa,SDa,TDa,UDa,VDa,jM,XDa,YDa,ZDa,WDa,$Da,aEa,dEa,lM,nM,pM,rM,eEa,sM,tM,uM,iEa,kEa,jEa,mEa,uEa,CM,wM,lEa,hEa,gEa,fEa,BM,xM,AM,HM,IM,xEa,JM,KM,GM,BEa,yEa,zEa,CEa,LM,MM,EEa,OM,PM,QM,RM,SM,TM,UM,FEa,GEa,VM,WM,YM,IEa,JEa,XM,ZM,MEa,NEa,$M,OEa,cN,PEa,dN,fN,QEa,eN,gN,REa,iN,TEa,UEa,kN,lN,qN,WEa,nN,rN,tN,XEa,vN,pN,sN,YEa,wN,ZEa,xN,$Ea,mN,oN,VEa,uN,yN,aFa,bFa,zN,cFa,AN,dFa,BN,CN,eFa,EN,DN,FN,GN,fFa,gFa,HN,IN,JN,KN,LN,hFa,MN,NN,iFa,jFa,ON,PN,QN,lFa,kFa,RN,mFa,nFa,oFa,SN,pFa,
qFa,rFa,sFa,tFa,TN,UN,VN,WN,uFa,vFa,YN,wFa,ZN,$N,xFa,yFa,aO,zFa,AFa,EFa,FFa,BFa,CFa,DFa,cO,dO,eO,fO,GFa,HFa,gO,IFa,hO,iO,KFa,JFa,kO,jO,LFa,MFa,NFa,OFa,lO,PFa,nO,oO,QFa,SFa,TFa,qO,uO,XFa,sEa,yM,YFa,ZFa,$Fa,aGa,bGa,cGa,vM,rO,dGa,xO,yO,EIa,FIa,JIa,zO,mJa,jJa,kJa,oJa,pJa,AO,qJa,nJa,rJa,BO,CO,DO,sJa,tJa,EO,FO,uJa,GO,vJa,HO,vO,LO,wJa,tEa,nEa,MO,NO,PO,QO,RO,SO,TO,OO,WO,yJa,ZO,zJa,AJa,BJa,CJa,DJa,$O,FJa,aP,HJa,bP,JJa,KJa,IJa,GJa,LJa,MJa,NJa,gP,OJa,PJa,RJa,hP,wEa,jP,TJa,VJa,DM,WJa,XJa,lP,ZJa,zM,YJa,oEa,qEa,
rEa,SJa,mP,nP,oP,$Ja,aKa,pP,bKa,rP,sP,tP,cKa,uP,vP,dKa,eKa,wP,xP,yP,zP,AP,BP,gKa,fKa,CP,hKa,jKa,DP,kKa,iKa,VP,TP,WP,YP,ZP,eP,lKa,sKa,XD,UP,cQ,wKa,gQ,yKa,JP,hQ,IP,iQ,SP,lQ,DKa,mQ,nQ,EKa,FKa,GKa,HKa,oQ,IKa,JKa,pQ,KKa,PKa,OKa,LKa,NKa,MKa,qQ,QKa,rQ,RKa,SKa,UKa,VKa,WKa,aLa,wQ,xQ,dLa,yQ,zQ,eLa,hLa,iLa,jLa,kLa,AQ,lLa,nLa,oLa,MQ,xLa,sLa,tLa,zLa,NQ,ALa,CLa,BLa,DLa,PQ,SQ,ELa,OQ,TQ,UQ,FLa,ILa,GLa,LLa,ZQ,bMa,kMa,lMa,nMa,XLa,eR,mMa,iR,rR,VLa,pMa,oMa,qMa,sR,YQ,YLa,sMa,tMa,uMa,wMa,rMa,uR,vMa,zMa,AMa,yMa,wR,CMa,
XQ,gR,xMa,cMa,HLa,gMa,CR,hR,IR,oR,KR,LR,PMa,RMa,QMa,pR,SMa,TMa,NR,UMa,VMa,WMa,cR,XMa,WLa,YMa,HMa,fR,PLa,ZMa,NLa,MLa,JLa,PR,aR,iNa,hNa,kNa,lNa,TR,VR,WR,UR,ZR,mNa,nNa,$R,pNa,aS,rNa,tNa,qNa,eS,yNa,wNa,zNa,BNa,CNa,hS,DNa,GNa,HNa,sS,tS,JNa,vS,KNa,zS,AS,BS,CS,LNa,DS,MNa,QNa,ES,FS,RNa,SNa,UNa,TNa,VNa,WNa,XNa,ZS,cT,YNa,$Na,aOa,bOa,gT,eOa,dOa,fOa,hT,iT,jT,gOa,hOa,iOa,jOa,kOa,mOa,lOa,nOa,kT,pOa,oOa,qOa,rOa,lT,mT,sOa,uOa,vOa,wOa,xOa,BOa,yOa,nT,COa,oT,DOa,FOa,GOa,IOa,HOa,JOa,pT,qT,KOa,LOa,POa,MOa,QOa,ROa,NOa,
OOa,SOa,TOa,tT,UOa,WOa,YOa,aPa,ZOa,$Oa,AT,DT,cPa,ET,dPa,FT,fPa,gPa,ePa,jPa,kPa,GT,HT,lPa,mPa,nPa,rLa,wLa,oPa,qPa,pPa,rPa,JT,tPa,uPa,yPa,LT,MT,NT,APa,DPa,QT,RT,ST,FPa,EPa,OT,GPa,HPa,IPa,KPa,OPa,UPa,ZPa,WT,$Pa,vT,bQa,cQa,dQa,eQa,fQa,ZT,$T,gQa,aU,hQa,cU,jQa,kQa,lQa,dU,mQa,nQa,oQa,pQa,qQa,eU,iQa,rQa,fU,tQa,uQa,gU,vQa,wQa,xQa,yQa,zQa,AQa,BQa,CQa,DQa,EQa,FQa,HQa,hU,JQa,IQa,NQa,jU,GQa,iU,kU,lU,mU,nU,oU,pU,OQa,qU,PQa,QQa,VQa,YQa,ZQa,$Qa,aRa,uU,bRa,XQa,UQa,cRa,sU,dRa,fRa,rU,tU,SQa,TQa,vU,gRa,hRa,WQa,RQa,iRa,
jRa,kRa,xU,mRa,lRa,yU,rRa,pRa,qRa,nRa,sRa,zU,oRa,AU,BU,tRa,uRa,vRa,CU,xRa,yRa,DU,zRa,EU,ARa,BRa,CRa,DRa,FRa,GRa,HRa,ORa,KRa,ERa,QRa,RRa,LRa,MRa,JRa,NRa,WRa,GU,IRa,PRa,YRa,VRa,URa,TRa,SRa,IU,ZRa,uT,JU,KU,LU,$Ra,aSa,bSa,MU,cSa,CT,dSa,NU,xT,zT,VOa,PU,RU,hSa,iSa,TU,QU,OU,VU,fSa,eSa,gSa,WU,jSa,kSa,MQa,LQa,wT,XU,lSa,SU,mSa,nSa,oSa,pSa,qSa,YU,sSa,tSa,uSa,vSa,wSa,xSa,eRa,$U,aV,zSa,ZU,ASa,hPa,iPa,bV,BSa,CSa,DSa,ESa,cV,HSa,FSa,ISa,KSa,GSa,LSa,NSa,MSa,QSa,dV,gV,TSa,SSa,XSa,VSa,YSa,ZSa,USa,WSa,RSa,$Sa,aTa,dTa,
bTa,cTa,iV,eTa,sQa,fTa,gTa,hTa,iTa,jV,jTa,kV,kTa,lV,mV,nV,lTa,rTa,qTa,mTa,nTa,oTa,pTa,sTa,tTa,uTa,vTa,oV,CPa,pV,yTa,qV,xTa,zTa,ATa,BPa,PT,BTa,CTa,sV,JTa,ITa,xV,KTa,HTa,NTa,yV,OTa,PTa,STa,TTa,VTa,RTa,WTa,XTa,YTa,ZTa,$Ta,bUa,cUa,dUa,aUa,AV,rV,fUa,QTa,gUa,UTa,BV,iUa,eUa,zV,jUa,kUa,nUa,qUa,oUa,pUa,rUa,lUa,mUa,FV,vUa,xUa,wUa,yUa,zUa,AUa,uUa,BUa,CUa,CV,DUa,EUa,FUa,GUa,JUa,IUa,HUa,HV,KUa,MUa,NUa,OUa,PUa,LV,MV,KQa,QUa,RUa,SUa,VUa,UUa,TUa,WUa,YUa,ZUa,XUa,EV,OSa,aVa,bVa,cVa,iVa,fVa,gVa,hVa,jVa,lVa,XRa,IV,eVa,
dVa,kVa,BT,FU,yT,qVa,pVa,rVa,sVa,tVa,uVa,LUa,fV,eV,nVa,vVa,oVa,wVa,xVa,JSa,yVa,tUa,sUa,mVa,PSa,QV,RV,AVa,SV,BVa,CVa,DVa,EVa,FVa,GVa,IVa,HVa,KVa,LVa,PVa,MVa,OVa,QVa,UV,UVa,SVa,TVa,XVa,YVa,ZVa,$Va,aWa,TV,bWa,WVa,RVa,VV,cWa,NVa,dWa,WV,fWa,gWa,hWa,eWa,XV,kWa,jWa,nWa,mWa,lWa,oWa,pWa,YV,qWa,rWa,tWa,uWa,sWa,vWa,AWa,xWa,yWa,zWa,BWa,CWa,DWa,FWa,EWa,GWa,HWa,IWa,KWa,MWa,LWa,NWa,JWa,OWa,QWa,RWa,TWa,VWa,SWa,bW,WWa,XWa,PWa,YWa,UWa,cW,ZWa,$Wa,aXa,bXa,cXa,dXa,eXa,gXa,iXa,jXa,kXa,dW,mXa,nXa,pXa,hW,rXa,sXa,tXa,uXa,
wXa,vXa,zXa,AXa,iW,kW,xXa,yXa,BXa,mW,DXa,CXa,EXa,FXa,GXa,JXa,HXa,MXa,nW,IXa,NXa,oW,RXa,qW,rW,SXa,pW,TXa,sW,WXa,VXa,PXa,QXa,XXa,YXa,ZXa,OXa,$Xa,tW,aYa,UXa,qXa,lW,cYa,vW,dYa,eYa,fYa,gYa,hYa,iYa,jYa,kYa,lYa,mYa,wW,nYa,oYa,qYa,rYa,sYa,pYa,tYa,uYa,xW,vYa,wYa,xYa,yYa,yW,aya,zYa,AYa,zW,BYa,CYa,BW,FYa,GYa,CW,IYa,JYa,HYa,EYa,DW,AW,DYa,GW,FW,KYa,HW,EW,OYa,RYa,TYa,UYa,WYa,MYa,SYa,XYa,NYa,YYa,ZYa,MW,IW,aZa,$Ya,KW,dZa,eZa,QYa,PYa,cZa,fZa,VYa,LYa,OW,PW,QW,gZa,RW,mZa,jZa,nZa,kZa,iZa,oZa,hZa,sZa,pZa,SW,tZa,vZa,QG,
xZa,yZa,zZa,AZa,WW,BZa,CZa,FZa,YW,ZV,GZa,JZa,DZa,NW,LW,KZa,LZa,dX,hUa,bX,TW,OZa,PZa,RZa,QZa,SZa,IZa,$W,TZa,fX,VZa,UZa,XZa,WZa,YZa,$Ua,OV,gX,ZZa,$Za,a_a,b_a,c_a,ZW,d_a,f_a,e_a,g_a,h_a,j_a,k_a,NZa,wZa,m_a,l_a,aX,UW,n_a,hX,iX,q_a,r_a,jX,t_a,u_a,v_a,w_a,eX,KV,wWa,EZa,x_a,zVa,JW,y_a,z_a,A_a,B_a,C_a,F_a,kX,D_a,I_a,G_a,H_a,E_a,lX,M_a,K_a,L_a,N_a,mX,O_a,P_a,Q_a,nX,R_a,T_a,U_a,V_a,oX,S_a,pX,qX,W_a,X_a,tX,rX,sX,Y_a,uX,Z_a,$_a,a0a,c0a,b0a,AX,e0a,f0a,d0a,g0a,BX,h0a,CX,i0a,o0a,m0a,n0a,j0a,k0a,DX,l0a,p0a,q0a,r0a,
s0a,FX,t0a,IX,GX,u0a,JX,KX,w0a,MX,NX,x0a,LX,y0a,OX,A0a,z0a,QX,RX,SX,D0a,B0a,C0a,TX,E0a,I0a,G0a,F0a,H0a,UX,K0a,N0a,O0a,VX,P0a,Q0a,L0a,M0a,T0a,U0a,V0a,W0a,X0a,YX,a1a,ZX,Z0a,$0a,XX,$X,c1a,Y0a,d1a,aY,bY,e1a,f1a,s_a,cY,g1a,h1a,i1a,j1a,k1a,l1a,m1a,p1a,n1a,q1a,r1a,s1a,v1a,w1a,mY,C1a,y1a,z1a,D1a,E1a,B1a,x1a,F1a,H1a,G1a,I1a,O1a,oY,R1a,U1a,T1a,S1a,M1a,N1a,J1a,K1a,P1a,pY,qY,W1a,mS,sNa,X1a,sY,Y1a,$1a,Z1a,Q1a,b2a,c2a,d2a,uY,e2a,BY,g2a,h2a,i2a,k2a,j2a,l2a,CY,DY,m2a,p2a,q2a,FY,o2a,r2a,s2a,n2a,GY,JY,t2a,u2a,IY,v2a,
w2a,x2a,y2a,A2a,z2a,D2a,E2a,B2a,G2a,H2a,C2a,MY,NY,I2a,K2a,OY,J2a,L2a,N2a,M2a,O2a,PY,P2a,Q2a,R2a,QY,RY,T2a,S2a,U2a,V2a,X2a,W2a,Y2a,Z2a,$2a,a3a,b3a,d3a,TY,SY,UY,e3a,f3a,c3a,k3a,l3a,m3a,p3a,o3a,n3a,q3a,r3a,VY,WY,s3a,t3a,u3a,v3a,x3a,y3a,YY,z3a,XY,$Y,w3a,A3a,B3a,C3a,D3a,E3a,bZ,F3a,G3a,J3a,cZ,K3a,I3a,dZ,eZ,L3a,M3a,O3a,Q3a,N3a,P3a,gZ,R3a,T3a,U3a,W3a,X3a,hZ,iZ,Y3a,S3a,a4a,$3a,Z3a,jZ,kZ,c4a,b4a,lZ,mZ,d4a,e4a,nZ,f4a,g4a,h4a,oZ,i4a,pZ,j4a,qZ,k4a,n4a,o4a,p4a,r4a,s4a,t4a,q4a,v4a,u4a,w4a,z4a,tZ,B4a,A4a,x4a,y4a,
C4a,D4a,uZ,vZ,E4a,F4a,G4a,H4a,I4a,J4a,L4a,M4a,U4a,P4a,Q4a,N4a,W4a,BZ,CZ,$4a,FZ,GZ,a5a,X4a,AZ,JZ,IZ,DZ,KZ,d5a,f5a,e5a,LZ,EZ,zZ,c5a,HZ,Y4a,b5a,h5a,wZ,MZ,i5a,j5a,Z4a,NZ,OZ,k5a,PZ,QZ,RZ,l5a,m5a,o5a,p5a,n5a,SZ,q5a,TZ,UZ,VZ,r5a,s5a,t5a,u5a,v5a,x5a,z5a,y5a,w5a,WZ,A5a,C5a,B5a,XZ,YZ,D5a,F5a,G5a,ZZ,E5a,H5a,I5a,$Z,J5a,K5a,L5a,M5a,b_,c_,O5a,N5a,P5a,d_,e_,Q5a,R5a,T5a,S5a,U5a,V5a,W5a,g_,X5a,Y5a,Z5a,$5a,a6a,b6a,d6a,e6a,f6a,c6a,g6a,h6a,i6a,j6a,k6a,l6a,m6a,n6a,l_,o6a,p6a,q6a,t6a,x6a,v6a,s6a,o_,u6a,r6a,w6a,z6a,A6a,
y6a,p_,B6a,C6a,D6a,$V,I6a,J6a,K6a,r_,L6a,t_,GV,M6a,u_,N6a,s_,O6a,P6a,V6a,y_,W6a,z_,Y6a,$6a,Z6a,Q6a,A_,a7a,b7a,d7a,B_,e7a,f7a,g7a,X6a,C_,i7a,h7a,D_,T6a,w_,j7a,k7a,l7a,m7a,n7a,R6a,S6a,x_,r7a,s7a,u7a,q7a,x7a,rT,sT,DV,z7a,A7a,y7a,B7a,t7a,p_a,o7a,C7a,w7a,D7a,v7a,UU,rSa,bZa,E_,F_,hV,p7a,F7a,J7a,H_,K7a,L7a,H7a,J_,M7a,N7a,E7a,O7a,I7a,P7a,K_,I_,Q7a,S7a,R7a,G_,U7a,N_,V7a,L_,O_,M_,P_,HZa,W7a,Z7a,Y7a,a8a,b8a,$7a,S_,R_,d8a,e8a,f8a,o8a,k8a,q8a,i8a,r8a,h8a,U_,q_,w8a,s8a,u8a,t8a,y8a,X_,Y_,B8a,A8a,z8a,$_,n8a,d0,D8a,
c0,Z_,F8a,I8a,J8a,l8a,G8a,g0,K8a,m8a,C8a,a0,L8a,W_,M8a,N8a,O8a,k0,l0,E8a,m0,n0,P8a,b0,x8a,Q8a,R8a,S8a,H8a,T8a,e0,U8a,f0,cS,V8a,X8a,V_,o0,v8a,Y8a,Z8a,j0,h0,$8a,X7a,i0,a9a,b9a,c9a,d9a,p0,q0,g9a,j9a,l9a,f9a,t9a,u9a,v9a,w9a,x9a,y9a,z9a,B9a,A9a,r0,s0,t0,C9a,D9a,E9a,uI,F9a,u0,G9a,v0,w0,SF,x0,sE,H9a,JK,NBa,I9a,oK,J9a,jI,kI,kL,K9a,L9a,M9a,N9a,y0,P9a,Q9a,z0,B0,C0,R9a,U9a,V9a,D0,W9a,S9a,T9a,X9a,Y9a,Z9a,$9a,a$a,E0,c$a,Mwa,TE,CI,d$a,e$a,FI,b$a,$E,f$a,g$a,h$a,F0,UH,j$a,k$a,G0,H0,l$a,I0,m$a,A0,n$a,o$a,jya,J0,K0,
p$a,L0,M0,q$a,N0,r$a,O0,P0,s$a,t$a,Lya,Q0,u$a,w$a,v$a,R0,x$a,S0,T0,y$a,z$a,A$a,B$a,C$a,D$a,E$a,G$a,V0,F$a,H$a,I$a,J$a,K$a,O$a,L$a,M$a,N$a,Q$a,S$a,T$a,U$a,R$a,W0,V$a,W$a,X$a,Y$a,Z$a,Y0,$$a,Z0,$0,a1,aab,bab,dab,eab,fab,gab,iab,hab,jab,b1,c1,mab,kab,lab,d1,oab,pab,e1,f1,qab,g1,rab,h1,sab,i1,j1,tab,k1,l1,uab,vab,m1,n1,wab,o1,xab,zab,r1,Aab,Bab,Cab,Fab,Eab,s1,Gab,Hab,Iab,Tza,Dab,Kab,Lab,Nab,paa,ka;ba=function(a){return function(){return paa[a].apply(this,arguments)}};
g.ca=function(a,b){return paa[a]=b};
raa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
saa=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");};
la=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})}};
taa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
g.w=function(a,b){a.prototype=uaa(b.prototype);a.prototype.constructor=a;if(ma)ma(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.Wf=b.prototype};
g.x=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:raa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
vaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.z=function(a){return a instanceof Array?a:vaa(g.x(a))};
pa=function(a){return waa(a,a)};
waa=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};
qa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
xaa=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
ra=function(){this.U=!1;this.G=null;this.B=void 0;this.j=1;this.D=this.L=0;this.Z=this.C=null};
sa=function(a){if(a.U)throw new TypeError("Generator is already running");a.U=!0};
ta=function(a,b){a.C={HY:b,r_:!0};a.j=a.L||a.D};
g.G=function(a,b,c){a.j=c;return{value:b}};
yaa=function(a,b,c){b=g.x(b);var d=b.next();xaa(d);if(d.done)a.B=d.value,a.j=c;else return a.G=b,g.G(a,d.value,c)};
g.va=function(a){a.j=0};
g.wa=function(a,b,c){a.L=b;c!=void 0&&(a.D=c)};
g.xa=function(a,b,c){a.j=b;a.L=c||0};
g.ya=function(a,b){a.L=b||0;b=a.C.HY;a.C=null;return b};
g.za=function(a,b,c){a.Z=[a.C];a.L=b||0;a.D=c||0};
g.Aa=function(a,b){var c=a.Z.splice(0)[0];(c=a.C=a.C||c)?c.r_?a.j=a.L||a.D:c.Ga!=void 0&&a.D<c.Ga?(a.j=c.Ga,a.C=null):a.j=a.D:a.j=b};
zaa=function(a){this.j=new ra;this.B=a};
Aaa=function(a,b){sa(a.j);var c=a.j.G;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.G,c);xaa(e);if(!e.done)return a.j.U=!1,e;var f=e.value}catch(h){return a.j.G=null,ta(a.j,h),Ca(a)}a.j.G=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.U=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,ta(a.j,c)}a.j.U=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.r_)throw b.HY;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
Baa=function(a){this.next=function(b){sa(a.j);a.j.G?b=Ba(a,a.j.G.next,b,a.j.W):(a.j.W(b),b=Ca(a));return b};
this.throw=function(b){sa(a.j);a.j.G?b=Ba(a,a.j.G["throw"],b,a.j.W):(ta(a.j,b),b=Ca(a));return b};
this.return=function(b){return Aaa(a,b)};
this[Symbol.iterator]=function(){return this}};
Caa=function(a,b){b=new Baa(new zaa(b));ma&&a.prototype&&ma(b,a.prototype);return b};
Daa=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.I=function(a){return Daa(new Baa(new zaa(a)))};
g.Da=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Eaa=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,LN:f}}return{i:-1,LN: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};
Ja=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
Ka=function(a){return a?a:Ja};
Faa=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,LN:e}}return{i:-1,LN:void 0}};
Ma=function(a){return a?a:function(b,c){return Faa(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.Va=function(a){return Object.prototype.hasOwnProperty.call(a,Ua)&&a[Ua]||(a[Ua]=++Gaa)};
Haa=function(a,b,c){return a.call.apply(a.bind,arguments)};
Iaa=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?Haa:Iaa;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()};
Jaa=function(a){return a};
g.bb=function(a,b){function c(){}
c.prototype=b.prototype;a.Wf=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()};
Kaa=function(a){var b=b===void 0?Number("34"):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};
Laa=function(a){var b=b===void 0?Number("34"):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};
g.jb=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
g.lb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Sa(d)?g.lb.apply(null,d):g.jb(d)}};
g.O=function(){this.Wq=this.Wq;this.Po=this.Po};
g.P=function(a,b){a.addOnDisposeCallback(g.Ya(g.jb,b))};
nb=function(a){a.then(function(){},function(){})};
pb=function(){g.O.apply(this,arguments);this.G=1;this[Maa]=this.dispose};
qb=function(a){return{fieldType:2,fieldName:a}};
g.rb=function(a){return{fieldType:3,fieldName:a}};
Naa=function(a){this.j=a;a.Dj("/client_streamz/bg/fic",g.rb("ke"))};
Oaa=function(a){this.j=a;a.Dj("/client_streamz/bg/fiec",g.rb("ke"),qb("ec"))};
Paa=function(a){this.j=a;a.dA("/client_streamz/bg/fil",g.rb("ke"))};
Qaa=function(a){this.j=a;a.Dj("/client_streamz/bg/fcc",qb("ph"),g.rb("ke"))};
Raa=function(a){this.j=a;a.dA("/client_streamz/bg/fcd",qb("ph"),g.rb("ke"))};
Saa=function(a){this.j=a;a.Dj("/client_streamz/bg/fsc",g.rb("ke"))};
Taa=function(a){this.j=a;a.dA("/client_streamz/bg/fsl",g.rb("ke"))};
Uaa=function(a){this.j=a;a.dA("/client_streamz/bg/frs",g.rb("ke"))};
Vaa=function(a){this.j=a;a.dA("/client_streamz/bg/wrl",g.rb("mn"),qb("ac"),qb("sc"),g.rb("rk"),g.rb("mk"))};
Waa=function(a){this.j=a;a.Dj("/client_streamz/bg/ec",g.rb("en"),g.rb("mk"))};
Xaa=function(a){this.j=a;a.dA("/client_streamz/bg/el",g.rb("en"),g.rb("rk"),g.rb("mk"))};
Yaa=function(a){this.j=a;a.Dj("/client_streamz/bg/cec",qb("ec"),g.rb("rk"),g.rb("mk"))};
Zaa=function(a){this.j=a;a.Dj("/client_streamz/bg/po/csc",qb("cs"),g.rb("rk"),g.rb("mk"))};
$aa=function(a){this.j=a;a.Dj("/client_streamz/bg/po/ctav",g.rb("av"),g.rb("rk"),g.rb("mk"))};
aba=function(a){this.j=a;a.Dj("/client_streamz/bg/po/cwsc",g.rb("su"),g.rb("rk"),g.rb("mk"))};
sb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,sb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)};
bba=function(){};
ub=function(){throw Error("Invalid UTF8");};
cba=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b};
gba=function(a){var b=!1;b=b===void 0?!1:b;if(dba){if(b&&(eba?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(fba||(fba=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};
vb=function(a){g.Na.setTimeout(function(){throw a;},0)};
hba=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")};
iba=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.xb=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};
yb=function(a,b){return a.lastIndexOf(b,0)==0};
jba=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};
g.zb=function(a){return/^[\s\xa0]*$/.test(a)};
g.Ab=function(a,b){return a.indexOf(b)!=-1};
Bb=function(a,b){return g.Ab(a.toLowerCase(),b.toLowerCase())};
g.Eb=function(a,b){var c=0;a=Cb(String(a)).split(".");b=Cb(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=Db(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||Db(f[2].length==0,h[2].length==0)||Db(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c};
Db=function(a,b){return a<b?-1:a>b?1:0};
g.Fb=function(){var a=g.Na.navigator;return a&&(a=a.userAgent)?a:""};
Jb=function(a){return Gb||Hb?Ib?Ib.brands.some(function(b){return(b=b.brand)&&g.Ab(b,a)}):!1:!1};
Kb=function(a){return g.Ab(g.Fb(),a)};
Lb=function(){return Gb||Hb?!!Ib&&Ib.brands.length>0:!1};
Mb=function(){return Lb()?!1:Kb("Opera")};
kba=function(){return Lb()?!1:Kb("Trident")||Kb("MSIE")};
lba=function(){return Lb()?Jb("Microsoft Edge"):Kb("Edg/")};
Nb=function(){return Kb("Firefox")||Kb("FxiOS")};
Pb=function(){return Kb("Safari")&&!(Ob()||(Lb()?0:Kb("Coast"))||Mb()||(Lb()?0:Kb("Edge"))||lba()||(Lb()?Jb("Opera"):Kb("OPR"))||Nb()||Kb("Silk")||Kb("Android"))};
Ob=function(){return Lb()?Jb("Chromium"):(Kb("Chrome")||Kb("CriOS"))&&!(Lb()?0:Kb("Edge"))||Kb("Silk")};
mba=function(){return Kb("Android")&&!(Ob()||Nb()||Mb()||Kb("Silk"))};
nba=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})]||""}};
oba=function(a){var b=g.Fb();if(a==="Internet Explorer"){if(kba())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=nba(c);switch(a){case "Opera":if(Mb())return b(["Version","Opera"]);if(Lb()?Jb("Opera"):Kb("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Lb()?0:Kb("Edge"))return b(["Edge"]);if(lba())return b(["Edg"]);break;case "Chromium":if(Ob())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Nb()||a==="Safari"&&Pb()||a==="Android Browser"&&mba()||a==="Silk"&&Kb("Silk")?(b=c[2])&&b[1]||"":""};
pba=function(a){if(Lb()&&a!=="Silk"){var b=Ib.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=oba(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
Qb=function(){return Gb||Hb?!!Ib&&!!Ib.platform:!1};
qba=function(){return Qb()?Ib.platform==="Android":Kb("Android")};
Rb=function(){return Kb("iPhone")&&!Kb("iPod")&&!Kb("iPad")};
Tb=function(){return Rb()||Kb("iPad")||Kb("iPod")};
Ub=function(){return Qb()?Ib.platform==="macOS":Kb("Macintosh")};
rba=function(){return Qb()?Ib.platform==="Windows":Kb("Windows")};
g.Vb=function(a){return a[a.length-1]};
sba=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.Xb=function(a,b,c){b=Wb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]};
Wb=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.Yb=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.Zb=function(a,b){return tba(a,b)>=0};
uba=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0};
g.ac=function(a,b){b=tba(a,b);var c;(c=b>=0)&&g.$b(a,b);return c};
g.$b=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};
g.bc=function(a,b){b=Wb(a,b);b>=0&&g.$b(a,b)};
vba=function(a,b){var c=0;sba(a,function(d,e){b.call(void 0,d,e,a)&&g.$b(a,e)&&c++})};
g.cc=function(a){return Array.prototype.concat.apply([],arguments)};
g.dc=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.ec=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.gc=function(a,b,c,d){Array.prototype.splice.apply(a,fc(arguments,1))};
fc=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
wba=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ta(e)?"o"+g.Va(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.ic=function(a,b,c){return xba(a,c||hc,!1,b)};
kc=function(a,b){return xba(a,b,!0)};
xba=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.lc=function(a,b){a.sort(b||hc)};
yba=function(a,b){var c=hc;g.lc(a,function(d,e){return c(b(d),b(e))})};
g.mc=function(a,b,c){if(!g.Sa(a)||!g.Sa(b)||a.length!=b.length)return!1;var d=a.length;c=c||zba;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};
hc=function(a,b){return a>b?1:a<b?-1:0};
zba=function(a,b){return a===b};
g.nc=function(a,b,c){c=g.ic(a,b,c);c<0&&g.gc(a,-(c+1),0,b)};
g.pc=function(a,b,c){var d={};(0,g.oc)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Aba=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Bba=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
qc=function(a){qc[" "](a);return a};
Cba=function(a,b){try{return qc(a[b]),!0}catch(c){}return!1};
Eba=function(a,b){var c=Dba;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
g.tc=function(a){return Eba(a,function(){return g.Eb(Fba,a)>=0})};
g.uc=function(a,b){b===void 0&&(b=0);Gba();b=Hba[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.vc=function(a,b){if(Iba&&!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.uc(c,b)}return a};
Kba=function(a){var b=[];Jba(a,function(c){b.push(c)});
return b};
wc=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.Ab("=.",a[b-1])&&(c=g.Ab("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Jba(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Jba=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=xc[n];if(p!=null)return p;if(!g.zb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Gba();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))}};
Gba=function(){if(!xc){xc={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Hba[c]=d;for(var e=0;e<d.length;e++){var f=d[e];xc[f]===void 0&&(xc[f]=e)}}}};
Mba=function(a){if(!Lba)return g.uc(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)};
Oba=function(a){return Nba[a]||""};
Qba=function(a){if(!Lba)return wc(a);Pba.test(a)&&(a=a.replace(Pba,Oba));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
yc=function(a){return Rba&&a!=null&&a instanceof Uint8Array};
zc=function(a,b){Sba(b);this.j=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");};
Bc=function(){return Tba||(Tba=new zc(null,Ac))};
Dc=function(a){return new Uint8Array(Cc(a)||0)};
Cc=function(a){Sba(Ac);var b=a.j;b=b==null||yc(b)?b:typeof b==="string"?Qba(b):null;return b==null?b:a.j=b};
Sba=function(a){if(a!==Ac)throw Error("illegal external caller");};
Uba=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
Vba=function(){var a=Error();Uba(a,"incident");vb(a)};
Ec=function(a){a=Error(a);Uba(a,"warning");return a};
Fc=function(){return typeof BigInt==="function"};
Gc=function(a){return Array.prototype.slice.call(a)};
Hc=function(a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():a};
Wba=function(a,b){Ic(b,(a|0)&-30975)};
Jc=function(a,b){Ic(b,(a|34)&-30941)};
Kc=function(a){return!(!a||typeof a!=="object"||a.j!==Xba)};
Lc=function(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object};
Yba=function(a,b){if(a!=null)if(typeof a==="string")a=a?new zc(a,Ac):Bc();else if(a.constructor!==zc)if(yc(a))a=a.length?new zc(new Uint8Array(a),Ac):Bc();else{if(!b)throw Error();a=void 0}return a};
Nc=function(a){return!Array.isArray(a)||a.length?!1:Mc(a)&1?!0:!1};
Pc=function(a){if(a&2)throw Error();};
Qc=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();};
Zba=function(a,b){(b=Rc?b[Rc]:void 0)&&(a[Rc]=Gc(b))};
Sc=function(a){a.Cpa=!0;return a};
Uc=function(a){var b=a;if($ba(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(aca(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Tc?BigInt(a):a=bca(a)?a?"1":"0":$ba(a)?a.trim()||"0":String(a)};
cca=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}};
Yc=function(a){var b=a>>>0;Wc=b;Xc=(a-b)/4294967296>>>0};
ad=function(a){if(a<0){Yc(0-a);var b=g.x(Zc(Wc,Xc));a=b.next().value;b=b.next().value;Wc=a>>>0;Xc=b>>>0}else Yc(a)};
cd=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:bd(a,b)};
dca=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=cd(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a};
bd=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Fc()?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+eca(c)+eca(a));return c};
eca=function(a){a=String(a);return"0000000".slice(a.length)+a};
fca=function(){var a=Wc,b=Xc;b&2147483648?Fc()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.x(Zc(a,b)),a=b.next().value,b=b.next().value,a="-"+bd(a,b)):a=bd(a,b);return a};
dd=function(a){if(a.length<16)ad(Number(a));else if(Fc())a=BigInt(a),Wc=Number(a&BigInt(4294967295))>>>0,Xc=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");Xc=Wc=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)),Xc*=1E6,Wc=Wc*1E6+d,Wc>=4294967296&&(Xc+=Math.trunc(Wc/4294967296),Xc>>>=0,Wc>>>=0);b&&(b=g.x(Zc(Wc,Xc)),a=b.next().value,b=b.next().value,Wc=a,Xc=b)}};
Zc=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
ed=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);};
fd=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};
gca=function(a){return a.displayName||a.name||"unknown type name"};
gd=function(a){if(a!=null&&typeof a!=="boolean")throw Error("Expected boolean but got "+Ra(a)+": "+a);return a};
hca=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
hd=function(a){var b=typeof a;switch(b){case "bigint":return!0;case "number":return Number.isFinite(a)}return b!=="string"?!1:ica.test(a)};
jca=function(a){if(typeof a!=="number")throw Ec("int32");if(!Number.isFinite(a))throw Ec("int32");return a|0};
jd=function(a){return a==null?a:jca(a)};
kd=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};
ld=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};
lca=function(a){var b=0;b=b===void 0?0:b;if(!hd(a))throw Ec("int64");var c=typeof a;switch(b){case 4096:switch(c){case "string":return md(a);case "bigint":return String(BigInt.asIntN(64,a));default:return nd(a)}case 8192:switch(c){case "string":return b=Math.trunc(Number(a)),Number.isSafeInteger(b)?a=Uc(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=Fc()?Uc(BigInt.asIntN(64,BigInt(a))):Uc(kca(a))),a;case "bigint":return Uc(BigInt.asIntN(64,a));default:return Number.isSafeInteger(a)?Uc(od(a)):
Uc(nd(a))}case 0:switch(c){case "string":return md(a);case "bigint":return Uc(BigInt.asIntN(64,a));default:return od(a)}default:return ed(b,"Unknown format requested type for int64")}};
pd=function(a){return a==null?a:lca(a)};
mca=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467};
nca=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};
oca=function(a){if(a<0){ad(a);var b=bd(Wc,Xc);a=Number(b);return Number.isSafeInteger(a)?a:b}b=String(a);if(mca(b))return b;ad(a);return cd(Wc,Xc)};
kca=function(a){if(nca(a))return a;dd(a);return fca()};
od=function(a){hd(a);a=Math.trunc(a);Number.isSafeInteger(a)||(ad(a),a=dca(Wc,Xc));return a};
nd=function(a){hd(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);nca(b)?a=b:(ad(a),a=fca())}return a};
md=function(a){hd(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 kca(a)};
pca=function(a){if(a==null)return a;if(typeof a==="bigint")return qd(a)?a=Number(a):(a=BigInt.asIntN(64,a),a=qd(a)?Number(a):String(a)),a;if(hd(a))return typeof a==="number"?od(a):md(a)};
qca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(BigInt.asIntN(64,a));if(hd(a)){if(b==="string")return md(a);if(b==="number")return od(a)}};
rca=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(BigInt.asUintN(64,a));if(hd(a)){if(b==="string")return hd(a),b=Math.trunc(Number(a)),Number.isSafeInteger(b)&&b>=0?a=String(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),mca(a)||(dd(a),a=bd(Wc,Xc))),a;if(b==="number")return hd(a),a=Math.trunc(a),a>=0&&Number.isSafeInteger(a)?a:oca(a)}};
sca=function(a){if(a==null||typeof a=="string"||yc(a)||a instanceof zc)return a};
tca=function(a){if(typeof a!=="string")throw Error();return a};
rd=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
sd=function(a){return a==null||typeof a==="string"?a:void 0};
ud=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+gca(b)+" but got "+(a&&gca(a.constructor)));return a};
uca=function(a,b,c){if(a!=null&&typeof a==="object"&&a.KL===vd)return a;if(Array.isArray(a)){var d=Mc(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&Ic(a,e);return new b(a)}};
zca=function(a){wd===void 0&&(wd=typeof Proxy==="function"?vca(Proxy):null);var b;(b=!wd)||(xd===void 0&&(xd=typeof WeakMap==="function"?vca(WeakMap):null),b=!xd);if(b)return a;if(b=yd(a))return b;if(Math.random()>.01)return a;wca(a);b=new wd(a,{set:function(c,d,e){xca();c[d]=e;return!0}});
yca(a,b);return b};
xca=function(){Vba()};
yd=function(a){var b;return(b=zd)==null?void 0:b.get(a)};
Aca=function(a){var b;return((b=Ad)==null?void 0:b.get(a))||a};
yca=function(a,b){(zd||(zd=new xd)).set(a,b);(Ad||(Ad=new xd)).set(b,a)};
vca=function(a){try{return a.toString().indexOf("[native code]")!==-1?a:null}catch(b){return null}};
wca=function(a){if(Bd===void 0){var b=new wd([],{});Bd=Array.prototype.concat.call([],b).length===1}Bd&&typeof Symbol==="function"&&Symbol.isConcatSpreadable&&(a[Symbol.isConcatSpreadable]=!0)};
Dd=function(a,b){Cd=b;a=new a(b);Cd=void 0;return a};
Cca=function(a){switch(typeof a){case "boolean":return Ed||(Ed=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Bca||(Bca=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
Hd=function(a,b,c){a=Fd(a,b[0],b[1],c?1:2);b!==Ed&&c&&Gd(a,16384);return a};
Fd=function(a,b,c,d){var e;d=(e=d)!=null?e:0;a==null&&(a=Cd);Cd=void 0;if(a==null)e=96,c?(a=[c],e|=512):a=[],b&&(e=e&-33521665|(b&1023)<<15);else{if(!Array.isArray(a))throw Error("narr");e=Mc(a);if(e&2048)throw Error("farr");if(e&64)return a;d===1||d===2||(e|=64);if(c&&(e|=512,c!==a[0]))throw Error("mid");a:{d=a;c=e;if(e=d.length){var f=e-1;if(Lc(d[f])){c|=256;b=f-(+!!(c&512)-1);if(b>=1024)throw Error("pvtlmt");e=c&-33521665|(b&1023)<<15;break a}}if(b){b=Math.max(b,e-(+!!(c&512)-1));if(b>1024)throw Error("spvt");
e=c&-33521665|(b&1023)<<15}else e=c}}Ic(a,e);return a};
Eca=function(a,b){return Dca(b)};
Dca=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "bigint":return qd(a)?Number(a):String(a);case "boolean":return a?1:0;case "object":if(a)if(Array.isArray(a)){if(Nc(a))return}else{if(yc(a))return Mba(a);if(a instanceof zc){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=Mba(b)}}}return a};
Fca=function(a,b,c){var d=Gc(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])}Zba(d,a);return d};
Gca=function(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=Nc(a)?void 0:e&&Mc(a)&2?a:Id(a,b,c,d!==void 0,e);else if(Lc(a)){var f={},h;for(h in a)f[h]=Gca(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?Mc(a):0;d=d?!!(f&32):void 0;for(var h=Gc(a),l=0;l<h.length;l++)h[l]=Gca(h[l],b,c,d,e);c&&(Zba(h,a),c(f,h));return h};
Hca=function(a){return a.KL===vd?a.toJSON():Dca(a)};
Ica=function(a,b,c){c=c===void 0?Jc:c;if(a!=null){if(Rba&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Mc(a);if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(Ic(a,(d|34)&-12293),a):Id(a,Ica,d&4?Jc:c,!0,!0)}a.KL===vd&&(c=a.xb,d=Jd(c),a=d&2?a:Dd(a.constructor,Kd(c,d,!0)));return a}};
Kd=function(a,b,c){var d=c||b&2?Jc:Wba,e=!!(b&32);a=Fca(a,b,function(f){return Ica(f,e,d)});
Gd(a,32|(c?2:0));return a};
Ld=function(a){var b=a.xb,c=Jd(b);return c&2?Dd(a.constructor,Kd(b,c,!1)):a};
Nd=function(a,b){a=a.xb;return Md(a,Jd(a),b)};
Jca=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(Jca(a,b,e,c)&&Od!=null){var h;a=(h=Kca)!=null?h:Kca={};h=a[Od]||0;h>=4||(a[Od]=h+1,Vba())}return d}return Jca(a,b,e,c)}};
Qd=function(a,b,c){var d=a.xb,e=Jd(d);Pc(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&&Ic(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 Lca(a,b,c,!1)!==void 0};
Xd=function(a,b,c,d,e,f){var h=a.xb;a=Jd(h);d=2&a?1:d;f=!!f;e=Sd(h,a,b,e);var l=Mc(e);if(!(4&l)){4&l&&(e=Gc(e),l=Td(l,a),a=Pd(h,a,b,e));for(var m=0,n=0;m<e.length;m++){var p=c(e[m]);p!=null&&(e[n++]=p)}n<m&&(e.length=n);l=Ud(l,a);c=(l|20)&-4097;l=c&=-8193;Ic(e,l);2&l&&Object.freeze(e)}if(d===1||d===4&&32&l)Vd(l)||(f=l,l|=2,l!==f&&Ic(e,l),Object.freeze(e));else if(c=d!==5?!1:!!(32&l)||Vd(l)||!!yd(e),(d===2||c)&&Vd(l)&&(e=Gc(e),l=Td(l,a),l=Wd(l,a,f),Ic(e,l),a=Pd(h,a,b,e)),Vd(l)||(b=l,l=Wd(l,a,f),l!==
b&&Ic(e,l)),c)var q=zca(e);else if(d===2&&!f){var r;(r=zd)==null||r.delete(e)}return q||e};
Sd=function(a,b,c,d){a=Md(a,b,c,d);return Array.isArray(a)?a:Yd};
Ud=function(a,b){a===0&&(a=Td(a,b));return a|1};
Vd=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
Mca=function(a){return Yba(a,!0)};
Zd=function(a,b){a=a.xb;var c=Jd(a),d=Md(a,c,b),e=Mca(d);e!=null&&e!==d&&Pd(a,c,b,e);return e==null?Bc():e};
Nca=function(a,b,c){var d=a.xb,e=Jd(d);Pc(e);if(b==null)return Pd(d,e,3),a;b=Aca(b);if(!Array.isArray(b))throw Ec();var f=Mc(b),h=f,l=!!(4&f),m=Vd(f),n=m||Object.isFrozen(b);m||(f=0);n||(b=Gc(b),h=0,f=Td(f,e),f=Wd(f,e,!0),n=!1);f|=21;m=4&f?4096&f?4096:8192&f?8192:0:void 0;m=m!=null?m:0;if(!l)for(l=0;l<b.length;l++){var p=b[l],q=c(p,m);Object.is(p,q)||(n&&(b=Gc(b),h=0,f=Td(f,e),f=Wd(f,e,!0),n=!1),b[l]=q)}f!==h&&(n&&(b=Gc(b),f=Td(f,e),f=Wd(f,e,!0)),Ic(b,f));Pd(d,e,3,b);return a};
$d=function(a,b,c,d){var e=a.xb,f=Jd(e);Pc(f);Pd(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a};
ae=function(a,b,c,d,e){Pc(b);var f=!!(64&b)||!(16384&b);e=Sd(a,b,c,e);var h=e!==Yd;if(f||!h){var l=f=h?Mc(e):0;if(!h||2&l||Vd(l)||4&l&&!(32&l))e=Gc(e),l=Td(l,b),b=Pd(a,b,c,e);l=Ud(l,b)&-13;l=Wd(d?l&-17:l|16,b,!0);l!==f&&Ic(e,l)}return e};
ee=function(a,b,c,d){var e=a.xb,f=Jd(e);Pc(f);if(d==null){var h=be(e);if(ce(h,e,f,c)===b)h.set(c,0);else return a}else f=de(e,f,c,b);Pd(e,f,b,d);return a};
fe=function(a,b,c,d){var e=Jd(a);e=de(a,e,c,b);Pd(a,e,b,d)};
ge=function(a,b){a=a.xb;return ce(be(a),a,Jd(a),b)};
be=function(a){if(he){var b;return(b=a[ie])!=null?b:a[ie]=new Map}if(ie in a)return a[ie];b=new Map;Object.defineProperty(a,ie,{value:b});return b};
de=function(a,b,c,d){c.includes(d);var e=be(a),f=ce(e,a,b,c);f!==d&&(f&&(b=Pd(a,b,f)),e.set(c,d));return b};
ce=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};
je=function(a,b,c,d){var e=Jd(a);d=Md(a,e,c,d);var f;if(d!=null&&d.KL===vd)return b=Ld(d),b!==d&&Pd(a,e,c,b),b.xb;if(Array.isArray(d)){var h=Mc(d);h&2?f=Hd(Kd(d,h,!1),b,!0):h&64?f=d:f=Hd(f,b,!0)}else f=Hd(void 0,b,!0);f!==d&&Pd(a,e,c,f);return f};
Lca=function(a,b,c,d){a=a.xb;var e=Jd(a);d=Md(a,e,c,d);b=uca(d,b,e);b!==d&&b!=null&&Pd(a,e,c,b);return b};
ke=function(a,b,c,d){b=Lca(a,b,c,d===void 0?!1:d);if(b==null)return b;a=a.xb;d=Jd(a);if(!(d&2)){var e=Ld(b);e!==b&&(b=e,Pd(a,d,c,b))}return b};
Oca=function(a,b,c,d,e,f,h){a=a.xb;var l=!!(2&b);e=l?1:e;f=!!f;h&&(h=!l);l=Sd(a,b,d);var m=Mc(l),n=!!(4&m);if(!n){m=Ud(m,b);var p=l,q=b,r=!!(2&m);r&&(q|=2);for(var t=!r,u=!0,y=0,A=0;y<p.length;y++){var C=uca(p[y],c,q);if(C instanceof c){if(!r){var F=!!(Mc(C.xb)&2);t&&(t=!F);u&&(u=F)}p[A++]=C}}A<y&&(p.length=A);m|=4;m=u?m|16:m&-17;m=t?m|8:m&-9;Ic(p,m);r&&Object.freeze(p)}if(h&&!(8&m||!l.length&&(e===1||e===4&&32&m))){Vd(m)&&(l=Gc(l),m=Td(m,b),b=Pd(a,b,d,l));c=l;h=m;for(p=0;p<c.length;p++)m=c[p],q=
Ld(m),m!==q&&(c[p]=q);h|=8;h=c.length?h&-17:h|16;Ic(c,h);m=h}if(e===1||e===4&&32&m)Vd(m)||(b=m,m|=!l.length||16&m&&(!n||32&m)?2:2048,m!==b&&Ic(l,m),Object.freeze(l));else if(n=e!==5?!1:!!(32&m)||Vd(m)||!!yd(l),(e===2||n)&&Vd(m)&&(l=Gc(l),m=Td(m,b),m=Wd(m,b,f),Ic(l,m),b=Pd(a,b,d,l)),Vd(m)||(d=m,m=Wd(m,b,f),m!==d&&Ic(l,m)),n)var H=zca(l);else if(e===2&&!f){var K;(K=zd)==null||K.delete(l)}return H||l};
fb=function(a,b,c){var d=Jd(a.xb);return Oca(a,d,b,c,void 0===Pca?2:Qca?4:5,!1,!(2&d))};
le=function(a,b,c,d){d!=null?ud(d,b):d=void 0;return Qd(a,c,d)};
me=function(a,b,c,d){var e=a.xb,f=Jd(e);Pc(f);if(d==null)return Pd(e,f,c),a;d=Aca(d);if(!Array.isArray(d))throw Ec();for(var h=Mc(d),l=h,m=Vd(h),n=m||Object.isFrozen(d),p=!n&&!0,q=!0,r=!0,t=0;t<d.length;t++){var u=d[t];ud(u,b);m||(u=!!(Mc(u.xb)&2),q&&(q=!u),r&&(r=u))}m||(h=q?13:5,h=r?h|16:h&-17);if(p||n&&h!==l)d=Gc(d),l=0,h=Td(h,f),h=Wd(h,f,!0);h!==l&&Ic(d,h);Pd(e,f,c,d);return a};
Td=function(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049};
Wd=function(a,b,c){32&b&&c||(a&=-33);return a};
ne=function(a,b,c,d){var e=Jd(a.xb);Pc(e);a=Oca(a,e,c,b,2,!0);d=d!=null?ud(d,c):new c;a.push(d);Mc(d.xb)&2?Rca(a,8):Rca(a,16)};
Sca=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)):hd(a)?c==="string"?md(a):b?nd(a):od(a):void 0;return b};
oe=function(a,b){return a!=null?a:b};
qe=function(a,b){return sd(Nd(a,b))};
Tca=function(a){var b=b===void 0?!1:b;a=hca(Nd(a,4));return oe(a,b)};
ib=function(a,b,c){c=c===void 0?0:c;return oe(kd(Nd(a,b)),c)};
re=function(a,b){var c=c===void 0?0:c;return oe(ld(Nd(a,b)),c)};
se=function(a,b){var c=c===void 0?"":c;return oe(qe(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,pd(c))};
ve=function(a,b,c){return Qd(a,b,rd(c))};
we=function(a,b,c){return $d(a,b,rd(c),"")};
xe=function(a,b,c){if(c!=null){if(!Number.isFinite(c))throw Ec("enum");c|=0}return Qd(a,b,c)};
Uca=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
ye=function(){return Error("Failed to read varint, encoding is invalid.")};
Vca=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:Qba(a),Ux:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),Ux:!1};if(a.constructor===Uint8Array)return{buffer:a,Ux:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),Ux:!1};if(a.constructor===zc)return{buffer:Cc(a)||new Uint8Array(0),Ux:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),Ux:!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");
};
Wca=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 dca(b>>>0,c>>>0);throw ye();};
Ae=function(a,b){a.j=b;if(b>a.C)throw Vca(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};
Ee=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=Ee(a);a=Ee(a);return cd(b,a)};
Ge=function(a){var b=Ee(a),c=Ee(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();};
Xca=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 Vca(b,a.C-c);a.j=d;return c};
Zca=function(a,b){if(b==0)return Bc();var c=Xca(a,b);a.pJ&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):Yca?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?Bc():new zc(c,Ac)};
Je=function(a,b){if(Ie.length){var c=Ie.pop();c.init(a,void 0,void 0,b);a=c}else a=new Wca(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;$ca(this,b)};
$ca=function(a,b){b=b===void 0?{}:b;a.RP=b.RP===void 0?!1:b.RP};
ada=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 Uca(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(!ada(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 Uca(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=Xca(a,b);a=a.B;if(bda){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?ub():(m=a[f++],l<194||(m&192)!==128?(f--,ub()):c.push((l&31)<<6|m&63)):
l<240?f>=b-1?ub():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,ub()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?ub():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,ub()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):ub(),c.length>=8192&&(h=cba(h,c),c.length=0);f=cba(h,c)}return f};
cda=function(a){var b=Ce(a.j)>>>0;return Zca(a.j,b)};
dda=function(a){return a};
Pe=function(a){return a};
hda=function(a,b,c,d){return eda(a,b,c,d,fda,gda)};
kda=function(a,b,c,d){return eda(a,b,c,d,ida,jda)};
eda=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+=lda(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+=lda(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};
jda=function(a,b,c){return c+a*3+(a>1?a-1:0)};
ida=function(a,b){return(a>1?a-1:0)+(a-b)*4};
gda=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};
fda=function(a){return 40+4*a};
lda=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.xb=Fd(a,b,c)};
mda=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 Dd(a,b)};
Ve=function(a){var b=Re?a.xb:Id(a.xb,Hca,void 0,void 0,!1);var c=!Re,d=Jd(c?a.xb:b);if(a=b.length){var e=b[a-1],f=Lc(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||Nc(t)||Kc(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)&&(Nc(t)||Kc(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||Nc(r)||Kc(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};
oda=function(a){if(!a)return nda||(nda=new We(0,0));if(!/^\d+$/.test(a))return null;dd(a);return new We(Wc,Xc)};
Xe=function(a,b){this.B=a>>>0;this.j=b>>>0};
qda=function(a){if(!a)return pda||(pda=new Xe(0,0));if(!/^-?\d+$/.test(a))return null;dd(a);return new Xe(Wc,Xc)};
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)};
rda=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)};
sda=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)};
tda=function(a,b){cf(a,b,2);b=a.j.end();bf(a,b);b.push(a.B);return b};
uda=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)};
vda=function(a,b,c){if(c!=null){switch(typeof c){case "string":oda(c)}cf(a,b,1);switch(typeof c){case "number":a=a.j;Yc(c);af(a,Wc);af(a,Xc);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=oda(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(){throw Error();}
Object.setPrototypeOf(a,a.prototype);return a};
gf=function(a,b,c){this.RN=a;this.SN=b;a=Jaa(ff);this.j=!!a&&c===a||!1};
hf=function(a,b){var c=c===void 0?ff:c;return new gf(a,b,c)};
xda=function(a,b,c,d,e){b=wda(b,d);b!=null&&(c=tda(a,c),e(b,a),uda(a,c))};
lf=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.JL=Cca(d[0]);var f=d[1],h=1;f&&f.constructor===Object&&(e.extensions=f,f=d[++h],typeof f==="function"&&(e.t_=!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=yda,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};
Ada=function(a){return Array.isArray(a)?a[0]instanceof gf?a:[zda,a]:[a,void 0]};
wda=function(a,b){if(a instanceof Qe)return a.xb;if(Array.isArray(a))return Hd(a,b,!1)};
mf=function(a,b,c,d){var e=c.RN;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
of=function(a,b,c,d,e){var f=c.RN,h,l;a[b]=function(m,n,p){return f(m,n,p,l||(l=lf(nf,mf,of,d).JL),h||(h=pf(d)),e)}};
pf=function(a){var b=a[Bda];if(b!=null)return b;var c=lf(nf,mf,of,a);b=c.t_?function(d,e){return jf(d,e,c)}:function(d,e){for(var f=Jd(d);ada(e)&&e.B!=4;){var h=e.D,l=c[h];
if(l==null){var m=c.extensions;m&&(m=m[h])&&(m=Cda(m),m!=null&&(l=c[h]=m))}l!=null&&l(e,d,h)||(l=e,h=l.C,Ke(l),l.RP?l=void 0:(m=l.j.j-h,l.j.j=h,l=Zca(l.j,m)),h=d,l&&(Rc||(Rc=Symbol()),(m=h[Rc])?m.push(l):h[Rc]=[l]))}f&16384&&Gd(d,34);return!0};
return a[Bda]=b};
Cda=function(a){a=Ada(a);var b=a[0].RN;if(a=a[1]){var c=pf(a),d=lf(nf,mf,of,a).JL;return function(e,f,h){return b(e,f,h,d,c)}}return b};
qf=function(a,b,c){a[b]=c.SN};
sf=function(a,b,c,d){var e,f,h=c.SN;a[b]=function(l,m,n){return h(l,m,n,f||(f=lf(rf,qf,sf,d).JL),e||(e=Dda(d)))}};
Dda=function(a){var b=a[Eda];if(!b){var c=lf(rf,qf,sf,a);b=function(d,e){return Fda(d,e,c)};
a[Eda]=b}return b};
Fda=function(a,b,c){for(var d=Mc(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=Gda(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[e],f!=null&&(h=Gda(c,e))&&h(b,f,e))}if(a=Rc?a[Rc]:void 0)for(bf(b,b.j.end()),c=0;c<a.length;c++)bf(b,Cc(a[c])||new Uint8Array(0))};
Gda=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Ada(c);var d=c[0].SN;if(c=c[1]){var e=Dda(c),f=lf(rf,qf,sf,c).JL;c=a.t_?kf(f,e):function(h,l,m){return d(h,l,m,f,e)}}else c=d;
return a[b]=c}};
tf=function(a,b,c){if(Array.isArray(b)){var d=Mc(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&&(Ic(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
uf=function(a,b,c){return new gf(a,b,c)};
vf=function(a,b,c){return new gf(a,b,c)};
wf=function(a,b,c){Pd(a,Jd(a),b,c)};
xf=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=Hda||(Hda=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Wc=c.getUint32(0,!0),Xc=c.getUint32(4,!0),af(a,Wc),af(a,Xc))};
yf=function(a,b,c){b=qca(b);if(b!=null){switch(typeof b){case "string":qda(b)}if(b!=null)switch(cf(a,c,0),typeof b){case "number":a=a.j;ad(b);Ze(a,Wc,Xc);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=qda(b),Ze(a.j,c.B,c.j)}}};
zf=function(a,b,c){b=kd(b);b!=null&&b!=null&&(cf(a,c,0),rda(a.j,b))};
Ida=function(a,b,c){b=hca(b);b!=null&&(cf(a,c,0),a.j.j.push(b?1:0))};
Jda=function(a,b,c){b=sd(b);b!=null&&df(a,c,gba(b))};
Kda=function(a,b,c,d,e){b=wda(b,d);b!=null&&(c=tda(a,c),e(b,a),uda(a,c))};
Lda=function(a){return function(){var b=new sda;Fda(this.xb,b,lf(rf,qf,sf,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}};
Af=function(a){return function(b){return mda(a,b)}};
Mda=function(a){this.xb=Fd(a)};
Nda=function(a,b){return Nca(a,b,jca)};
Bf=function(a){this.xb=Fd(a)};
Cf=function(a){this.xb=Fd(a)};
Df=function(a){this.xb=Fd(a)};
Ef=function(a){this.xb=Fd(a)};
Oda=function(a){this.xb=Fd(a)};
g.Rda=function(a){var b=new Ef;b=ve(b,1,a.B);var c=Pda(a);b=Nca(b,c,tca);c=[];for(var d=[],e=g.x(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.lQ(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new Cf;switch(h){case 3:q=Number(q);Number.isFinite(q)&&ee(p,1,Ff,pd(q));break;case 2:ee(p,2,Ff,fd(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Df;m=le(n,Cf,2,m);n=[];p=Qda(a);for(q=0;q<p.length;q++){var r=p[q],
t=f[q],u=new Bf;switch(r){case 3:ee(u,1,Gf,rd(String(t)));break;case 2:r=Number(t);Number.isFinite(r)&&ee(u,2,Gf,jd(r));break;case 1:ee(u,3,Gf,gd(t==="true"))}n.push(u)}me(m,Bf,1,n);c.push(m)}}me(b,Df,4,c);return b};
Sda=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};
Tda=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,G8: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}}};
Vda=function(a,b,c){var d=String(g.Na.location.href);return d&&a&&b?[b,Uda(Sda(d),a,c||null)].join(" "):null};
Uda=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],g.oc(d,function(l){e.push(l)}),Wda(e.join(" "));
var f=[],h=[];g.oc(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.oc(d,function(l){e.push(l)});
a=Wda(e.join(" "));a=[c,a];h.length==0||a.push(h.join(""));return a.join("_")};
Wda=function(a){var b=Tda();b.update(a);return b.G8().toLowerCase()};
Yda=function(){var a=null;if(!Xda)return a;try{var b=function(c){return c};
a=Xda.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};
If=function(){Hf===void 0&&(Hf=Yda());return Hf};
g.Jf=function(a){this.j=a};
Kf=function(a){var b=If();return new g.Jf(b?b.createScriptURL(a):a)};
g.Lf=function(a){if(a instanceof g.Jf)return a.j;throw Error("");};
Mf=function(a){this.j=a};
g.Nf=function(a){return a instanceof Mf};
g.Of=function(a){if(g.Nf(a))return a.j;throw Error("");};
Pf=function(a){this.Be=a};
Qf=function(a){return new Pf(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
g.Sf=function(a,b){b=b===void 0?Zda:b;a:if(b=b===void 0?Zda:b,!g.Nf(a)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Pf&&d.Be(a)){a=new Mf(a);break a}}a=void 0}return a||g.Rf};
aea=function(a){if($da.test(a))return a};
Tf=function(a){return a instanceof Mf?g.Of(a):aea(a)};
g.Uf=function(a,b){b=Tf(b);b!==void 0&&(a.href=b)};
Vf=function(){this.j=bea[0].toLowerCase()};
g.Wf=function(a){this.j=a};
Xf=function(a){var b=If();return new g.Wf(b?b.createHTML(a):a)};
g.Yf=function(a){if(a instanceof g.Wf)return a.j;throw Error("");};
cea=function(a){return a};
dea=function(a){var b="true".toString(),c=[new Vf];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof Vf)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.Zf=function(a,b,c,d){b=Tf(b);return b!==void 0?a.open(b,c,d):null};
$f=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.ag=function(a){this.j=a};
eea=function(a){var b=If();return new g.ag(b?b.createScript(a):a)};
g.bg=function(a){if(a instanceof g.ag)return a.j;throw Error("");};
g.cg=function(a){var b=$f(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
g.dg=function(a,b){a.src=g.Lf(b);g.cg(a)};
fea=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=eg(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,fg[c])c=fg[c];else{c=String(c);if(!fg[c]){var f=/function\s+([^\(]+)/m.exec(c);fg[c]=f?f[1]:"[Anonymous]"}c=fg[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}};
eg=function(a,b){b||(b={});b[gg(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[gg(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=eg(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[gg(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+=eg(a[e],b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c};
gg=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack};
hg=function(a,b,c){return a.parseFromString(g.Yf(b),c)};
g.ig=function(a){return encodeURIComponent(String(a))};
jg=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
kg=function(a){gea.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(hea,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(iea,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(jea,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(kea,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(lea,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(mea,"&#0;")));return a};
g.lg=function(a){return a==null?"":String(a)};
mg=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
ng=function(a){var b=Number(a);return b==0&&g.zb(a)?NaN:b};
nea=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
oea=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
pea=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
qea=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};
og=function(a){this.j=a||{cookie:""}};
pg=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Cb(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}};
qg=function(a){return!!rea.FPA_SAMESITE_PHASE2_MOD||!(a===void 0||!a)};
sea=function(a){a=a===void 0?!1:a;var b=g.Na.__SAPISID||g.Na.__APISID||g.Na.__3PSAPISID||g.Na.__OVERRIDE_SID;qg(a)&&(b=b||g.Na.__1PSAPISID);if(b)return!0;if(typeof document!=="undefined"){var c=new og(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");qg(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
tea=function(a,b,c,d){(a=g.Na[a])||typeof document==="undefined"||(a=(new og(document)).get(b));return a?Vda(a,c,d):null};
uea=function(a,b){b=b===void 0?!1:b;var c=Sda(String(g.Na.location.href)),d=[];if(sea(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 og(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?Vda(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&qg(b)&&((b=tea("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",
a))&&d.push(b),(a=tea("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return d.length==0?null:d.join(" ")};
rg=function(){};
sg=function(a){this.xb=Fd(a)};
tg=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.Za()};
this.B=this.j()};
vg=function(a){this.xb=Fd(a)};
wg=function(a){this.xb=Fd(a)};
g.xg=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.yg=function(a,b){a%=b;return a*b<0?a+b:a};
zg=function(a,b,c){return a+c*(b-a)};
g.Ag=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};
Bg=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Cg=function(a,b){this.width=a;this.height=b};
g.Dg=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Eg=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Fg=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Gg=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Hg=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
vea=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Ig=function(a){for(var b in a)return b};
wea=function(a){for(var b in a)return a[b]};
g.Jg=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Kg=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Lg=function(a,b){return a!==null&&b in a};
g.Mg=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Ng=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
xea=function(a,b){return(b=Ng(a,b))&&a[b]};
g.Og=function(a){for(var b in a)return!1;return!0};
g.yea=function(a){for(var b in a)delete a[b]};
g.Pg=function(a,b,c){return a!==null&&b in a?a[b]:c};
g.Qg=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.Rg=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.Sg=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.Sg(a[c]);return b};
g.Tg=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<zea.length;f++)c=zea[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
Yg=function(a,b){this.j=a===Xg&&b||""};
Zg=function(a){if(a instanceof g.Wf)return a;a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");return Xf(a)};
Aea=function(a){var b=Zg("");return Xf(a.map(function(c){return g.Yf(Zg(c))}).join(g.Yf(b).toString()))};
Fea=function(a){var b;if(!Bea.test("div"))throw Error("");if(Cea.indexOf("DIV")!==-1)throw Error("");var c="<div";a&&(c+=Dea(a));Array.isArray(b)||(b=b===void 0?[]:[b]);Eea.indexOf("DIV")!==-1?c+=">":(a=Aea(b.map(function(d){return d instanceof g.Wf?d:Zg(String(d))})),c+=">"+a.toString()+"</div>");
return Xf(c)};
Dea=function(a){for(var b="",c=Object.keys(a),d=0;d<c.length;d++){var e=c[d],f=a[e];if(!Bea.test(e))throw Error("");if(f!==void 0&&f!==null){if(/^on./i.test(e))throw Error("");Gea.indexOf(e.toLowerCase())!==-1&&(f=g.Nf(f)?f.toString():aea(String(f))||"about:invalid#zClosurez");f=e+'="'+Zg(String(f))+'"';b+=" "+f}}return b};
Hea=function(a){var b=g.Da.apply(1,arguments);if(b.length===0)return Kf(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Kf(c)};
Iea=function(a){for(var b=g.Da.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};
bh=function(a){return a?new $g(ah(a)):Jea||(Jea=new $g)};
ch=function(a,b){return typeof b==="string"?a.getElementById(b):b};
g.dh=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.eh=function(a,b){return(b||document).querySelectorAll("."+a)};
g.gh=function(a,b){var c=b||document;c.getElementsByClassName?a=c.getElementsByClassName(a)[0]:(c=document,a=a?(b||c).querySelector(a?"."+a:""):g.fh(c,"*",a,b)[0]||null);return a||null};
g.fh=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")};
hh=function(a,b){g.Eg(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Kea.hasOwnProperty(d)?a.setAttribute(Kea[d],c):yb(d,"aria-")||yb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Lea=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Cg(a.clientWidth,a.clientHeight)};
Nea=function(a){var b=Mea(a);a=a.defaultView;return new g.Ag(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Mea=function(a){return a.scrollingElement?a.scrollingElement:g.ih||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
jh=function(a){return a?a.defaultView:window};
lh=function(a,b,c){var d=arguments,e=document,f=d[1],h=kh(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):hh(h,f));d.length>2&&Oea(e,h,d,2);return h};
Oea=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.oc(h?g.dc(f):f,e)}}};
g.mh=function(a){return kh(document,a)};
kh=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};
g.nh=function(a){return document.createTextNode(String(a))};
g.oh=function(a,b){a.appendChild(b)};
g.ph=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
qh=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.rh=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.sh=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};
ah=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
g.th=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.ph(a),a.appendChild(ah(a).createTextNode(String(b)))};
Qea=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")||Pea(a)):a.hasAttribute("tabindex")&&Pea(a)};
Pea=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
vh=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return uh(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Zb(e.className.split(/\s+/),c))},!0)};
uh=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
$g=function(a){this.j=a||g.Na.document||document};
Rea=function(a){return g.ih?"webkit"+a:a.toLowerCase()};
g.wh=function(a,b,c,d){this.D=a;this.G=b;this.j=this.C=a;this.L=c||0;this.U=d||2};
g.xh=function(a){a.j=Math.min(a.G,a.j*a.U);a.C=Math.min(a.G,a.j+(a.L?Math.round(a.L*(Math.random()-.5)*2*a.j):0));a.B++};
yh=function(a){this.xb=Fd(a)};
zh=function(a){this.xb=Fd(a)};
Ch=function(a){this.xb=Fd(a)};
Sea=function(a,b){me(a,zh,1,b)};
Dh=function(a){this.xb=Fd(a)};
Uea=function(a,b){b=b===void 0?Tea:b;if(!Eh){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 zh;f=ve(f,1,e.brand);return ve(f,2,e.version)});
Sea(Qd(Fh,2,gd(a.mobile)),c);Eh=a.getHighEntropyValues(b)}var d=new Set(b);return Eh.then(function(e){var f=Fh.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 Fh.clone()})};
Gh=function(a){this.xb=Fd(a)};
Vea=function(a){this.xb=Fd(a)};
Hh=function(a){this.xb=Fd(a,4)};
Ih=function(a){this.xb=Fd(a,36)};
Jh=function(a){this.xb=Fd(a,19)};
Wea=function(a){this.xb=Fd(a,8)};
Xea=function(a){this.xb=Fd(a)};
Mh=function(a){g.O.call(this);var b=this;this.componentId="";this.C=[];this.Ba="";this.pageId=null;this.Ea=this.Z=-1;this.L=this.experimentIds=null;this.W=this.G=0;this.Fa=1;this.timeoutMillis=0;this.logSource=a.logSource;this.CF=a.CF||function(){};
this.B=new Kh(a.logSource,a.ey);this.network=a.network;this.pC=a.pC||null;this.U=a.jga||null;this.sessionIndex=a.sessionIndex||null;this.gF=a.gF||!1;this.logger=null;this.withCredentials=!a.wY;this.ey=a.ey||!1;this.ra=typeof URLSearchParams!=="undefined"&&!!(new URL(Lh())).searchParams&&!!(new URL(Lh())).searchParams.set;var c=xe(new Gh,1,1);Yea(this.B,c);this.D=new g.wh(1E4,3E5,.1);a=Zea(this,a.OX);this.j=new tg(this.D.getValue(),a);this.qa=new tg(6E5,a);this.gF||this.qa.start();this.ey||(document.addEventListener("visibilitychange",
function(){document.visibilityState==="hidden"&&b.cQ()}),document.addEventListener("pagehide",this.cQ.bind(this)))};
Zea=function(a,b){return a.ra?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
Lh=function(){return"https://play.google.com/log?format=json&hasfast=true"};
Kh=function(a,b){this.ey=b=b===void 0?!1:b;this.uach=this.locale=null;this.j=new Jh;Number.isInteger(a)&&this.j.aI(a);b||(this.locale=document.documentElement.getAttribute("lang"));Yea(this,new Gh)};
Yea=function(a,b){le(a.j,Gh,1,b);te(b,1)||xe(b,1,1);a.ey||(b=Nh(a),se(b,5)||ve(b,5,a.locale));a.uach&&(b=Nh(a),ke(b,Ch,9)||le(b,Ch,9,a.uach))};
$ea=function(a,b){Rd(Oh(a),Dh,11)&&(a=Ph(a),xe(a,1,b))};
afa=function(a,b){Rd(Oh(a),Dh,11)&&(a=Ph(a),Qd(a,2,gd(b)))};
Oh=function(a){return ke(a.j,Gh,1)};
bfa=function(a){var b=b===void 0?Tea:b;var c=a.ey?void 0:jh();c?Uea(c,b).then(function(d){a.uach=d;d=Nh(a);le(d,Ch,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
Nh=function(a){a=Oh(a);var b=ke(a,Dh,11);b||(b=new Dh,le(a,Dh,11,b));return b};
Ph=function(a){a=Nh(a);var b=ke(a,yh,10);b||(b=new yh,Qd(b,2,gd(!1)),le(a,yh,10,b));return b};
Qh=function(){this.D7=typeof AbortController!=="undefined"};
Rh=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.B=null;this.D=!1;this.network=null;this.componentId="";this.pageId=this.j=this.pC=null};
cfa=function(a,b){a.B=b;return a};
dfa=function(a,b){a.network=b;return a};
efa=function(a,b){a.j=b};
Sh=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 Rh(a,"0"),a.componentId=b,g.P(this,a),c!==""&&(a.C=c),d&&(a.D=!0),e&&cfa(a,e),h&&dfa(a,h),b=a.build());this.j=b};
ffa=function(a){this.j=a};
Th=function(a,b,c){this.B=a;this.D=b;this.fields=c||[];this.j=new Map};
Qda=function(a){return a.fields.map(function(b){return b.fieldType})};
Pda=function(a){return a.fields.map(function(b){return b.fieldName})};
Uh=function(a,b){Th.call(this,a,3,b)};
Vh=function(a,b){Th.call(this,a,2,b)};
g.Wh=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
Xh=function(a,b){g.Wh.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)};
Yh=function(a){return!(!a||!a[gfa])};
ifa=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Md=e;this.key=++hfa;this.removed=this.CJ=!1};
Zh=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Md=null};
bi=function(a){this.src=a;this.listeners={};this.j=0};
g.ci=function(a,b){var c=b.type;c in a.listeners&&g.ac(a.listeners[c],b)&&(Zh(b),a.listeners[c].length==0&&(delete a.listeners[c],a.j--))};
di=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.Md==d)return e}return-1};
g.fi=function(a,b,c,d,e){if(d&&d.once)return ei(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.fi(a,b[f],c,d,e);return null}c=gi(c);return Yh(a)?a.listen(b,c,g.Ta(d)?!!d.capture:!!d,e):jfa(a,b,c,!1,d,e)};
jfa=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Ta(e)?!!e.capture:!!e,l=hi(a);l||(a[ii]=l=new bi(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=kfa();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)lfa||(e=h),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(mfa(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");nfa++;return c};
kfa=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=ofa;return a};
ei=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ei(a,b[f],c,d,e);return null}c=gi(c);return Yh(a)?a.CG(b,c,g.Ta(d)?!!d.capture:!!d,e):jfa(a,b,c,!0,d,e)};
pfa=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)pfa(a,b[f],c,d,e);else d=g.Ta(d)?!!d.capture:!!d,c=gi(c),Yh(a)?a.Nc(b,c,d,e):a&&(a=hi(a))&&(b=a.NF(b,c,d,e))&&ji(b)};
ji=function(a){if(typeof a!=="number"&&a&&!a.removed){var b=a.src;if(Yh(b))g.ci(b.Vm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(mfa(c),d):b.addListener&&b.removeListener&&b.removeListener(d);nfa--;(c=hi(b))?(g.ci(c,a),c.j==0&&(c.src=null,b[ii]=null)):Zh(a)}}};
mfa=function(a){return a in ki?ki[a]:ki[a]="on"+a};
ofa=function(a,b){if(a.removed)a=!0;else{b=new Xh(b,this);var c=a.listener,d=a.Md||a.src;a.CJ&&ji(a);a=c.call(d,b)}return a};
hi=function(a){a=a[ii];return a instanceof bi?a:null};
gi=function(a){if(typeof a==="function")return a;a[li]||(a[li]=function(b){return a.handleEvent(b)});
return a[li]};
g.mi=function(){g.O.call(this);this.Vm=new bi(this);this.G7=this;this.lT=null};
ni=function(a,b,c,d){b=a.Vm.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.Md||h.src;h.CJ&&g.ci(a.Vm,h);e=l.call(m,d)!==!1&&e}}return e&&!d.defaultPrevented};
oi=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
qfa=function(a,b){a.D(b);a.B<100&&(a.B++,b.next=a.j,a.j=b)};
qi=function(a){pi||(pi=rfa());pi(a)};
rfa=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.XX;b.XX=null;d()}};
return function(d){c.next={XX:d};c=c.next;a.port2.postMessage(0)}}return function(d){g.Na.setTimeout(d,0)}};
ri=function(){this.B=this.j=null};
si=function(){this.next=this.scope=this.wx=null};
g.vi=function(a,b){ti||sfa();ui||(ti(),ui=!0);tfa.add(a,b)};
sfa=function(){var a=Promise.resolve(void 0);ti=function(){a.then(ufa)}};
ufa=function(){for(var a;a=tfa.remove();){try{a.wx.call(a.scope)}catch(b){vb(b)}qfa(vfa,a)}ui=!1};
wi=function(a){return function(){return a}};
g.xi=function(){};
wfa=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
yi=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
zi=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
xfa=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.Bi=function(a){this.j=0;this.U=void 0;this.D=this.B=this.C=null;this.G=this.L=!1;if(a!=g.xi)try{var b=this;a.call(void 0,function(c){Ai(b,2,c)},function(c){Ai(b,3,c)})}catch(c){Ai(this,3,c)}};
yfa=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
Ci=function(a,b,c){var d=zfa.get();d.C=a;d.B=b;d.context=c;return d};
Di=function(a){if(a instanceof g.Bi)return a;var b=new g.Bi(g.xi);Ai(b,2,a);return b};
Ei=function(a){return new g.Bi(function(b,c){c(a)})};
g.Bfa=function(a,b,c){Afa(a,b,c,null)||g.vi(g.Ya(b,a))};
Cfa=function(a){return new g.Bi(function(b,c){a.length||b(void 0);for(var d,e=0;e<a.length;e++)d=a[e],g.Bfa(d,b,c)})};
Efa=function(){var a,b,c=new g.Bi(function(d,e){a=d;b=e});
return new Dfa(c,a,b)};
Hi=function(a,b){b=Fi(b);b=Ci(b,b);b.D=!0;Gi(a,b);return a};
Ffa=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?Ffa(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):Gfa(c),Hfa(c,e,3,b)))}a.C=null}else Ai(a,3,b)};
Gi=function(a,b){a.B||a.j!=2&&a.j!=3||Ifa(a);a.D?a.D.next=b:a.B=b;a.D=b};
Jfa=function(a,b,c,d){var e=Ci(null,null,null);e.j=new g.Bi(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 Ii?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;Gi(a,e);return e.j};
Ai=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,Afa(c,a.Xfa,a.Yfa,a)||(a.U=c,a.j=b,a.C=null,Ifa(a),b!=3||c instanceof Ii||Kfa(a,c)))};
Afa=function(a,b,c,d){if(a instanceof g.Bi)return Gi(a,Ci(b||g.xi,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 Lfa(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Lfa=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)}};
Ifa=function(a){a.L||(a.L=!0,g.vi(a.i9,a))};
Gfa=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
Hfa=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,Mfa(b,c,d);else try{b.D?b.C.call(b.context):Mfa(b,c,d)}catch(e){Nfa.call(null,e)}qfa(zfa,b)};
Mfa=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
Kfa=function(a,b){a.G=!0;g.vi(function(){a.G&&Nfa.call(null,b)})};
Ii=function(a){sb.call(this,a)};
Dfa=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.Ji=function(a,b){g.mi.call(this);this.lj=a||1;this.xI=b||g.Na;this.SX=(0,g.Xa)(this.Kfa,this);this.H_=g.Za()};
g.Ki=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)};
Li=function(a,b){var c=null;return(new g.Bi(function(d,e){c=g.Ki(function(){d(b)},a);
c==-1&&e(Error("Failed to schedule timer."))})).wl(function(d){g.Na.clearTimeout(c);
throw d;})};
g.Mi=function(a){g.O.call(this);this.U=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.L=new Set;this.flushInterval=3E4;this.j=new g.Ji(this.flushInterval);this.j.listen("tick",this.ID,!1,this);g.P(this,this.j)};
Ofa=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.ID()};
Pfa=function(a,b){return a.L.has(b)?void 0:a.B.get(b)};
Qfa=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Rfa=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}};
Sfa=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""}};
Ni=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.Qi=function(a){return(new Tfa).Hi(a)};
Tfa=function(){};
Ri=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),Ri(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),Ufa(d,c),c.push(":"),Ri(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ufa(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);}}};
Ufa=function(a,b){b.push('"',a.replace(Vfa,function(c){var d=Wfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Wfa[c]=d);return d}),'"')};
Xfa=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"}};
Yfa=function(){};
Si=function(){};
Ti=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};
Ui=function(a){return a?decodeURI(a):a};
g.Wi=function(a,b){return b.match(Vi)[a]||null};
g.Xi=function(a){return Ui(g.Wi(3,a))};
g.Zfa=function(a){a=a.match(Vi);return Ti(a[1],a[2],a[3],a[4])};
Yi=function(a){a=a.match(Vi);return Ti(null,null,null,null,a[5],a[6],a[7])};
$fa=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)};
Zi=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?jg(e):"")}}};
$i=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]};
aj=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)aj(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+g.ig(b)))};
aga=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)aj(a[b],a[b+1],c);return c.join("&")};
g.bj=function(a){var b=[],c;for(c in a)aj(c,a[c],b);return b.join("&")};
cga=function(a,b){var c=arguments.length==2?aga(arguments[1],0):aga(arguments,1);return $i(a,c)};
g.cj=function(a,b){b=g.bj(b);return $i(a,b)};
dj=function(a,b,c){c=c!=null?"="+g.ig(c):"";return $i(a,b+c)};
dga=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};
ej=function(a,b){var c=a.search(ega),d=dga(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 jg(a.slice(d,e!==-1?e:0))};
fj=function(a,b){for(var c=a.search(ega),d=0,e,f=[];(e=dga(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(fga,"$1")};
gga=function(a,b,c){return dj(fj(a,b),b,c)};
g.gj=function(a){g.mi.call(this);this.headers=new Map;this.Fa=a||null;this.C=!1;this.j=null;this.W="";this.B=0;this.D="";this.G=this.Ba=this.Z=this.ra=!1;this.qa=0;this.L=null;this.Ea="";this.U=!1};
iga=function(a,b,c,d,e,f,h){var l=new g.gj;hga.push(l);b&&l.listen("complete",b);l.CG("ready",l.g8);f&&(l.qa=Math.max(0,f));h&&(l.U=h);l.send(a,c,d,e)};
kga=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;jga(a);hj(a)};
jga=function(a){a.ra||(a.ra=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
lga=function(a){if(a.C&&typeof ij!="undefined")if(a.Z&&g.jj(a)==4)setTimeout(a.V0.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(kj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.jj(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";jga(a)}}finally{hj(a)}}};
hj=function(a,b){if(a.j){a.L&&(clearTimeout(a.L),a.L=null);var c=a.j;a.j=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};
kj=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.Wi(1,String(a.W)),!a&&g.Na.self&&g.Na.self.location&&(a=g.Na.self.location.protocol.slice(0,-1)),b=!mga.test(a?a.toLowerCase():"");c=b}return c};
g.jj=function(a){return a.j?a.j.readyState:0};
g.lj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.mj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ea){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.nga=function(a){var b={};a=(a.j&&g.jj(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.zb(a[c])){var d=qea(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 Gg(b,function(h){return h.join(", ")})};
g.nj=function(a,b){return a.j?a.j.getResponseHeader(b):null};
oj=function(){};
qj=function(a,b){this.logger=a;this.event=b;this.startTime=pj()};
rj=function(){pb.apply(this,arguments);this.Qc={KA:function(){return[]}}};
sj=function(a,b,c){var d=pj();b=b();a.wy(c,pj()-d);return b};
tj=function(){rj.apply(this,arguments)};
uj=function(a){rj.call(this);var b=this;this.logger=a;this.Qc={Coa:function(){return b.logger},
KA:function(){return b.logger.Qc.KA()}};
this.addOnDisposeCallback(function(){return void b.logger.dispose()})};
oga=function(a){return{N$:new Naa(a),P$:new Paa(a),O$:new Oaa(a),qfa:new Saa(a),rfa:new Taa(a),sfa:new Uaa(a),d8:new Qaa(a),e8:new Raa(a),errorCount:new Yaa(a),eventCount:new Waa(a),h9:new Xaa(a),tga:new Vaa(a),wga:new Zaa(a),X7:new $aa(a),vga:new aba(a)}};
pga=function(a){var b=dfa(cfa(new Rh(1828,"0"),"34"),new oj);a.length&&efa(b,Nda(new Mda,a));a=new Sh(1828,"","",!1,"",b.build());g.P(a,b);var c=new g.Mi(a);c.addOnDisposeCallback(function(){return void c.ID()});
g.P(c,a);c.C=1E5;c.flushInterval=3E4;c.j.setInterval(3E4);return c};
vj=function(a,b){g.O.call(this);var c=this;this.callback=a;this.B=b;this.j=-b;b&&this.addOnDisposeCallback(function(){return void clearTimeout(c.ye)})};
qga=function(a){if(a.ye===void 0){var b=pj(),c=a.j+a.B-b;c>0?a.ye=setTimeout(function(){a.ye=void 0;qga(a)},c):(a.j=b,a.callback())}};
wj=function(a,b,c){rj.call(this);this.metrics=a;this.Af=b;this.Al=c;this.j=new Map;this.B=new Map;this.j.set("h",1);this.j.set("u",2);this.j.set("k",3);this.B.set(25,1);this.B.set(26,2);this.B.set(27,3);this.B.set(28,4)};
xj=function(a,b){b=b===void 0?[]:b;a={Af:a.Af||"_",Al:a.Al||"",Ur:a.Ur||[],EG:a.EG|0};var c=pga(a.Ur.concat(b));wj.call(this,oga(c),a.Af,a.Al);var d=this;this.D=b;this.Qc={KA:function(){return d.options.Ur.concat(d.D).sort(function(e,f){return e-f})}};
this.options=a;this.service=c;this.C=new vj(function(){return void d.service.ID()},a.EG);
this.addOnDisposeCallback(function(){d.C.dispose();d.service.dispose()})};
pj=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.xb=Fd(a)};
yj=function(a){this.xb=Fd(a)};
zj=function(a){this.xb=Fd(a)};
Aj=function(a){this.xb=Fd(a)};
Bj=function(a){this.xb=Fd(a,0,Bj.messageId)};
g.Cj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Dj=function(a){function b(A,C,F,H){Promise.resolve().then(function(){p.done();n.Tz();n.dispose();m.resolve({S7:A,lfa:C,Kda:F,Lna:H})})}
function c(A,C,F,H){if(!d.logger.Ja()){var K="k";C?K="h":F&&(K="u");K!=="k"?H!==0&&(d.logger.Vu(K),d.logger.wy(K,A)):d.B<=0?(d.logger.Vu(K),d.logger.wy(K,A),d.B=Math.floor(Math.random()*200)):d.B--}}
g.O.call(this);var d=this;this.B=Math.floor(Math.random()*200);if("challenge"in a&&rga(a.challenge)){var e=se(a.challenge,4);var f=se(a.challenge,5);se(a.challenge,7).length?this.j=sga(se(a.challenge,7)):this.j=ke(a.challenge,yj,6)}else e=a.program,f=a.globalName;this.addOnDisposeCallback(function(){var A,C,F;return g.I(function(H){if(H.j==1)return g.G(H,d.C,2);A=H.B;C=A.lfa;(F=C)==null||F();g.va(H)})});
var h;if((h=a.MB)==null?0:h.disable)this.logger=new tj;else{var l;h=((l=this.j)==null?0:Tca(l))?Kaa(this.j):[];a.hY?(this.logger=a.hY.share(),h.length&&this.logger.HN(h)):(l=a.MB||{},this.logger=new xj({Af:l.Af,Al:l.Al,Ur:l.j9,EG:l.Kaa},h))}g.P(this,this.logger);var m=new g.Cj;this.C=m.promise;this.logger.Vu("t");var n=this.logger.share(),p=new qj(n,"t");if(!g.Na[f])throw this.logger.Sj(25),Error("EGOU");if(!g.Na[f].a)throw this.logger.Sj(26),Error("ELIU");try{var q=g.Na[f].a;f=[];l=[];var r;if((r=
this.j)==null?0:Tca(r)){var t=Kaa(this.j);for(r=0;r<t.length;r++)f.push(t[r]),l.push(1);var u=Laa(this.j);for(t=0;t<u.length;t++)f.push(u[t]),l.push(2)}var y;this.D=g.x(q(e,b,!0,a.e4,c,[f,l],(y=this.j)==null?void 0:se(y,5))).next().value;this.NC=m.promise.then(function(){})}catch(A){throw this.logger.Sj(28),A;
}};
Ej=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)};
tga=function(a){if(!a)return null;a=qe(a,4);return a===null||a===void 0?null:Kf(a)};
Fj=function(){this.B={};this.j=null};
Gj=function(){Fj.instance||(Fj.instance=new Fj);return Fj.instance};
Hj=function(a,b){return uga(a,ke(b,zj,1),ke(b,Aj,2),se(b,3))};
uga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return vga(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){vga(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
h(l)})}));
return a.B[d]};
vga=function(a,b){return b?wga(b):a?xga(a):Promise.resolve()};
wga=function(a){return new Promise(function(b,c){var d=g.mh("SCRIPT"),e=tga(a);g.dg(d,e);d.onload=function(){g.rh(d);b()};
d.onerror=function(){g.rh(d);c(Error("EWLS"))};
(g.dh("HEAD")[0]||document.documentElement).appendChild(d)})};
xga=function(a){return new Promise(function(b){var c=g.mh("SCRIPT");if(a){var d=qe(a,6);d=d===null||d===void 0?null:eea(d)}else d=null;c.textContent=g.bg(d);g.cg(c);(g.dh("HEAD")[0]||document.documentElement).appendChild(c);g.rh(c);b()})};
Ij=function(a){this.xb=Fd(a)};
Jj=function(a){this.xb=Fd(a)};
Kj=function(a){this.xb=Fd(a)};
Lj=function(a,b,c){this.client=a;this.uC=b;this.j=c};
zga=function(a,b){var c,d;return g.I(function(e){c=a.j();var f=new Jj;f=we(f,1,a.uC);d=we(f,2,b);f=e.return;var h=a.client;h=Mj(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},yga);return f.call(e,h)})};
Nj=function(a){g.O.call(this);var b=this;this.options=a;this.L=new g.Cj;this.NC=this.L.promise;this.C=new g.Cj;this.D=new g.Cj;this.G=[];var c=a.MB||{};this.logger=new uj(c.disable?new tj:new xj({Af:c.Af,Al:c.Al,Ur:c.j9,EG:c.Kaa}));Aga(this,a.tx,a.fG,a.sqa,a.Jqa,Object.assign({},Bga,a.Vqa||{}));this.addOnDisposeCallback(function(){return void Cga(b)})};
Cga=function(a){a.U=Error("Cancelled by dispose");a.C.resolve();nb(a.L.promise);a.L.reject(Error("Cancelled by dispose"));a.logger.dispose();a.logger=new uj(new tj);Promise.all(a.G).then(function(){var c;return g.I(function(d){(c=a.j)==null||c.dispose();a.j=void 0;g.va(d)})});
a.G=[];var b;(b=a.B)!=null&&(b.endTimeMs=0,b.yC());nb(a.D.promise);a.D.reject(Error("Cancelled by dispose"))};
Dga=function(a,b){a.Ja()||(a.j=b,a.logger.update(b.pU()),a.C.resolve(),a.L.resolve(void 0))};
Ega=function(a,b){b&&(Promise.all(a.G).then(function(){return void b.dispose()}),a.G=[])};
Rj=function(a,b){var c,d;(d=(c=a.options).dqa)==null||d.call(c,b)};
Fga=function(a){a.Ja()||(a.D.resolve(),a.D=new g.Cj)};
Aga=function(a,b,c,d,e,f){d=d===void 0?Gj():d;e=e===void 0?Promise.resolve(void 0):e;var h,l,m,n,p,q,r,t,u,y,A;g.I(function(C){switch(C.j){case 1:return g.G(C,0,3);case 3:l=null;if(!h){C.Ga(6);break}Rj(a,7);g.wa(C,7);return g.G(C,Sj(h.snapshot({}),f.o8,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.d9:f.e9,p=new g.wh(n,f.f9,f.g9,f.c9),q=0;case 10:if(!(q<f.maxAttempts)){C.Ga(12);break}if(q===0){C.Ga(13);break}Rj(a,0);a.B=new Gga(p.getValue(),f.s3,f.y3);return g.G(C,a.B.promise,14);case 14:a.B=void 0,g.xh(p);case 13:g.wa(C,15);r=void 0;if(c){r=c;C.Ga(17);break}Rj(a,5);t=d.j;return g.G(C,Sj(b.uF(t,l),f.o9,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18);
case 18:r=C.B;case 17:return Rj(a,3),g.G(C,Sj(Hj(d,r),f.maa,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19);
case 19:return Rj(a,8),g.G(C,e,20);case 20:return u=new Dj({challenge:r,MB:a.options.MB,e4:a.options.e4}),g.G(C,Sj(u.NC,f.kfa,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21);
case 21:m=u;C.Ga(12);break;case 15:y=g.ya(C),a.handleError(y),Fga(a);case 11:q++;C.Ga(10);break;case 12:if(a.Ja()){C.Ga(5);break}m&&(c=void 0,Ega(a,h),h=m,Dga(a,m),Fga(a));Rj(a,2);a.B=new Gga(f.nea,f.s3,f.y3);return g.G(C,a.B.promise,22);case 22:a.B=void 0;if(a.Ja()){C.Ga(5);break}C.Ga(3);break;case 5:(A=h)==null||A.dispose(),g.va(C)}})};
Sj=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)])};
Gga=function(a,b,c){function d(){var f=e.endTimeMs-Date.now();f<=c?e.yC():setTimeout(d,Math.min(f,b))}
var e=this;this.endTimeMs=Date.now()+a;this.promise=new Promise(function(f){e.yC=f});
d()};
Hga=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
Tj=function(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=Tj(d));b<c;b++)d=typeof a==="string"?a.charCodeAt(b):a[b],e=Iga(31,e)+d|0;return e};
Jga=function(a,b){return[Tj(a,0,a.length>>1,b),Tj(a,a.length>>1)]};
Kga=function(a){var b=g.x(Jga(a,Uj));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
Lga=function(a,b){var c=Jga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.x(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])}};
Mga=function(a,b,c,d,e){var f=(4-(Uj.length+c.length)%4)%4,h=new Uint8Array(4+f+Uj.length+4+c.length),l=new DataView(h.buffer),m=0;l.setUint32(m,Math.random()*4294967295);m=m+4+f;h.set(Uj,m);m+=Uj.length;l.setUint32(m,e);h.set(c,m+4);Lga(h,d);return a.Uh(b,function(n){return void globalThis.sessionStorage.removeItem(n)})?Hga(b,g.uc(h))?"s":"t":"i"};
Nga=function(a,b){var c=globalThis.sessionStorage.getItem(a);if(!c)return["m"];try{var d=wc(c);Lga(d,b)}catch(e){return globalThis.sessionStorage.removeItem(a),["c"]}for(b=4;b<7&&d[b]===0;)b++;for(c=0;c<Uj.length;c++)if(d[b++]!==Uj[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)]};
Vj=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c};
Oga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Vj(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Vj(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 Vj(a)):new Vj(a,c,b)};
Pga=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=Oga(a))};
Qga=function(a,b,c,d,e){var f=a.index?sj(a.logger,function(){return Mga(a.index,Kga(b),c,d,e)},"W"):"u";
a.logger.zL(f)};
Rga=function(a,b,c){var d=g.x(a.index?sj(a.logger,function(){return Nga(Kga(b),c)},"R"):["u"]),e=d.next().value;
d=d.next().value;a.logger.xL(e);return d};
Uga=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=Sga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=Wj(a,l),d+=Wj(a,l+4),e+=Wj(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 Tga.toString(e)};
Sga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Wj=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
Xj=function(a){g.O.call(this);var b=this;this.logger=a;this.C=new g.Cj;this[Vga]=this.dispose;this.addOnDisposeCallback(function(){nb(b.C.promise);b.C.reject()})};
Yj=function(a,b){var c=setTimeout(function(){a.C.resolve()},b);
a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
Zj=function(a,b,c,d){return sj(a.logger,function(){return c?a.fv(b,d):a.ev(b,d)},a.B)};
ak=function(a,b,c,d){Xj.call(this,a);this.D=b;this.L=c;this.B="m";this.j="x";this.G=0;Yj(this,d)};
bk=function(a,b,c){Xj.call(this,a);this.D=b;this.B="f";this.j="z";Yj(this,c)};
ck=function(a,b,c){Xj.call(this,a);this.D=b;this.B="w";this.j="z";Yj(this,c)};
dk=function(a,b){Xj.call(this,a);this.error=b;this.B="e";this.j="y"};
Wga=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=ek(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};
Xga=function(){var a=0,b;return function(c){b||(b=new tj);var d=new fk(b,a,1),e=Zj(d,function(){return ek(c)},!0);
d.dispose();a++;return e}};
fk=function(a,b,c){Xj.call(this,a);this.D=b;this.clientState=c;this.B="S";this.j="q"};
ek=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.xb(a)};
gk=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)})};
Yga=function(a,b){b=b instanceof Ej?b:new Ej(5,"TVD:error",b);return a.reportError(b)};
cha=function(a,b,c){try{if(a.Ja())throw new Ej(21,"BNT:disposed");var d,e;return(e=(d=Zga(a,b,c))!=null?d:$ga(a,b,c))!=null?e:aha(a,b,c)}catch(f){if(!b.bS)throw Yga(a,f);return bha(a,c,f)}};
Zga=function(a,b,c){var d;return(d=a.j)==null?void 0:Zj(d,function(){return hk(a,b)},c,function(e){var f;
if(a.j instanceof ak&&((f=b.ji)==null?0:f.UC))try{var h;(h=a.cache)==null||Qga(h,hk(a,b),e,b.ji.ex,a.D)}catch(l){a.reportError(new Ej(24,"ELX:write",l))}})};
$ga=function(a,b,c){var d;if((d=b.ji)!=null&&d.hA)try{var e,f=(e=a.cache)==null?void 0:Rga(e,hk(a,b),b.ji.ex);return f?c?sj(a.logger,function(){return g.uc(f,2)},"a"):f:void 0}catch(h){a.reportError(new Ej(23,"RXO:read",h))}};
aha=function(a,b,c){var d={stack:[],error:void 0,hasError:!1};try{if(!b.aS)throw new Ej(29,"SDF:notready");return Zj(g.cb(d,new fk(a.logger,a.B,a.state)),function(){return hk(a,b)},c)}catch(e){d.error=e,d.hasError=!0}finally{g.eb(d)}};
bha=function(a,b,c){var d={stack:[],error:void 0,hasError:!1};try{var e=Yga(a,c);return Zj(g.cb(d,new dk(a.logger,e)),function(){return[]},b)}catch(f){d.error=f,d.hasError=!0}finally{g.eb(d)}};
hk=function(a,b){return b.pF?b.pF:b.Jj?sj(a.logger,function(){return b.pF=ek(b.Jj)},"c"):[]};
ik=function(a){this.xb=Fd(a)};
dha=function(a,b,c){this.j2=a;this.l0=b;this.metadata=c};
jk=function(a,b){b=b===void 0?{}:b;this.Eea=a;this.metadata=b;this.status=null};
kk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
lk=function(a){this.xb=Fd(a)};
mk=function(a){this.xb=Fd(a)};
nk=function(a){this.xb=Fd(a)};
ok=function(a){this.xb=Fd(a)};
pk=function(a,b){this.U=a.Saa;this.W=b;this.j=a.xhr;this.C=[];this.G=[];this.L=[];this.D=[];this.B=[];this.U&&eha(this)};
hha=function(a,b){g.fi(a.j,"complete",function(){if(kj(a.j)){var c=g.lj(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.W(c)}catch(h){qk(a,new Ni(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Rfa(a.j.getStatus());rk(a,sk(a));c==0?fha(a,d):qk(a,new Ni(c,"Xhr succeeded but the status code is not 200"))}else{c=g.lj(a.j);d=sk(a);if(c){var e=gha(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.W)+", error code: "+a.j.B+", error: "+a.j.getLastError(),e=d;rk(a,d);qk(a,new Ni(c,f,e))}})};
eha=function(a){a.U.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.W(c)}catch(e){qk(a,new Ni(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&fha(a,d)}if("2"in b)for(b=gha(a,b["2"]),c=0;c<a.L.length;c++)a.L[c](b)});
a.U.on("end",function(){rk(a,sk(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.U.on("error",function(){if(a.B.length!=0){var b=a.j.B;b!==0||kj(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=Rfa(c);break;default:d=14}rk(a,sk(a));b=Xfa(b)+", error: "+a.j.getLastError();c!=-1&&(b+=", http status code: "+c);qk(a,new Ni(d,b))}})};
sk=function(a){var b={},c=g.nga(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
gha=function(a,b){var c=2,d={};try{var e=iha(b);c=ib(e,1);var f=e.getMessage();fb(e,nk,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.W)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
tk=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
fha=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
rk=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
qk=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.uk=function(a){this.D=a.yga||null;this.C=a.g3||!1;this.B=void 0};
vk=function(a,b){g.mi.call(this);this.ra=a;this.L=b;this.G=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.W=new Headers;this.B=null;this.qa="GET";this.Z="";this.j=!1;this.U=this.C=this.D=null};
jha=function(a){a.C.read().then(a.j$.bind(a)).catch(a.SK.bind(a))};
xk=function(a){a.readyState=4;a.D=null;a.C=null;a.U=null;wk(a)};
wk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.yk=function(a){this.j=this.W=this.G="";this.C=null;this.L=this.B="";this.U=!1;var b;a instanceof g.yk?(this.U=a.U,g.zk(this,a.G),this.W=a.W,g.Ak(this,a.j),g.Bk(this,a.C),this.B=a.B,Ck(this,a.D.clone()),this.L=a.L):a&&(b=String(a).match(Vi))?(this.U=!1,g.zk(this,b[1]||"",!0),this.W=Dk(b[2]||""),g.Ak(this,b[3]||"",!0),g.Bk(this,b[4]),this.B=Dk(b[5]||"",!0),Ck(this,b[6]||"",!0),this.L=Dk(b[7]||"")):(this.U=!1,this.D=new Ek(null,this.U))};
g.zk=function(a,b,c){a.G=c?Dk(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.Ak=function(a,b,c){a.j=c?Dk(b,!0):b};
g.Bk=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};
Ck=function(a,b,c){b instanceof Ek?(a.D=b,kha(a.D,a.U)):(c||(b=Fk(b,lha)),a.D=new Ek(b,a.U))};
g.Gk=function(a,b,c){a.D.set(b,c)};
g.Hk=function(a){return a instanceof g.yk?a.clone():new g.yk(a)};
Dk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Fk=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,mha),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
mha=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Ek=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
Ik=function(a){a.j||(a.j=new Map,a.B=0,a.C&&Zi(a.C,function(b,c){a.add(jg(b),c)}))};
nha=function(a,b){Ik(a);b=Jk(a,b);return a.j.has(b)};
g.oha=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(Jk(a,b),g.dc(c)),a.B=a.B+c.length)};
Jk=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
kha=function(a,b){b&&!a.D&&(Ik(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.oha(this,e,c))},a));
a.D=b};
g.pha=function(a){var b="";g.Eg(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Kk=function(a,b,c){if(g.Og(c))return a;c=g.pha(c);if(typeof a==="string")return dj(a,g.ig(b),c);g.Gk(a,b,c);return a};
g.Lk=function(a){g.O.call(this);this.B=a;this.j={}};
qha=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)qha(a,b,c[h],d,e,f);else{b=ei(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
rha=function(){this.C=!0;this.B=0;this.j=""};
sha=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
Mk=function(){this.L=null;this.U=[];this.D=this.B=this.C=this.j=this.Z=0;this.G=null;this.W=0};
Nk=function(a,b,c,d){a.j=3;a.L="The stream is broken @"+a.Z+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.L);};
Ok=function(){this.j=null;this.B=0;this.C=new rha;this.D=new Mk};
tha=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Pk=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};
Qk=function(a){this.Z=null;this.L=[];this.D="";this.ra=[];this.C=this.B=0;this.U=!1;this.W=0;this.Ba=/[\\"]/g;this.j=this.G=0;this.qa=!(!a||!a.D8)};
Rk=function(a,b,c){a.G=3;a.Z="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Z);};
Sk=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.L=!1};
uha=function(a){var b=g.nj(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Sk:new Qk:b.startsWith("application/x-protobuf")?(a=g.nj(a,"Content-Transfer-Encoding"))?a.toLowerCase()=="base64"?new Ok:null:new Mk:null};
Tk=function(a){this.j=a;this.B=null;this.G=this.C=0;this.Z=!1;this.D=this.U=this.L=null;this.W=new g.Lk(this);this.W.listen(this.j,"readystatechange",this.qa)};
Uk=function(a,b){a.G!=b&&(a.G=b,a.U&&a.U())};
Xk=function(a){a.W.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
vha=function(a){a=this.C=a;var b=(0,g.Xa)(this.xba,this);a.D=b;a=this.C;b=(0,g.Xa)(this.mda,this);a.U=b;this.B={};this.j={}};
wha=function(a,b){for(var c={},d=0;d<a.length;c={g0:void 0},d++)c.g0=a[d],b.forEach(function(e){return function(f){try{f(e.g0)}catch(h){}}}(c))};
Yk=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]=[]};
xha=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.G=a.Tqa||g.Pa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Pa("withCredentials",a)||!1;this.D=a.Sqa||[];this.L=a.Zqa||[];this.j=a.fra;this.C=a.cra||!1};
Mj=function(a,b,c,d,e){var f=b.substring(0,b.length-e.name.length);return yha(function(h){return new zha(function(l,m){var n={},p=Aha(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 jk(q,r))})})},a.L).call(a,e.U(c,d)).then(function(h){return h.Eea})};
Aha=function(a,b,c){var d=b.l0,e=b.getMetadata(),f=Bha(a,!0);a=Cha(a,e,f,c+d.getName());c=Dha(f,d.B,!1);hha(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.j(b.j2);f.send(a,"POST",b);return c};
Bha=function(a,b){b=a.C&&!b;return a.j||b?new g.gj(new g.uk({yga:a.j,g3:b})):new g.gj};
Cha=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&&Eha.has(e.split(" ")[0])||a.B)c.U=!0;if(a.G)d=g.Kk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Dha=function(a,b,c){if(c){a.isActive();c=new Tk(a);var d=new vha(c)}return new pk({xhr:a,Saa:d},b)};
yha=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)};
Zk=function(){this.j=new xha;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
$k=function(a){g.O.call(this);this.owner=a;this.signals=new Set;a&&g.P(a,this)};
al=function(a,b){a.signals.has(b);return b};
bl=function(a){g.O.call(this);this.TX=a;this.slots=new Map;this.zC=new Set;this.LZ=!1};
Fha=function(a,b){a.Ja()||a.slots.set(b,{slotId:b,slot:void 0,uY:function(){return a.slots.delete(b)}})};
dl=function(a,b){new Promise(function(c){cl(function(){a.TX&&(a.F_=b,a.LZ=!0);for(var d=g.x(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){vb(h)}}d=g.x(a.zC);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.zC.clear();c()})})};
cl=function(a){el.push(a);Gha()};
Gha=function(){var a,b;g.I(function(c){switch(c.j){case 1:if(fl)return c.return();g.wa(c,2,3);fl=!0;a=Hha(0);case 5:if(!(a<el.length)){c.Ga(3);break}return g.G(c,Promise.resolve(),8);case 8:a=Hha(a);c.Ga(5);break;case 3:g.za(c);el.length=0;fl=!1;g.Aa(c,0);break;case 2:b=g.ya(c),vb(b),c.Ga(3)}})};
Hha=function(a){for(var b=a+100;a<b&&a<el.length;)try{el[a++]()}catch(c){vb(c)}return a};
Iha=function(a,b){if(a.Ja())b();else{var c=gl.get(a);if(c)c.push(b);else{var d=[b];gl.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.x([].concat(g.z(d))),f=e.next();!f.done;f=e.next())f=f.value,f();gl.delete(a)})}}};
hl=function(a,b,c){g.O.call(this);this.U=a;this.milliseconds=b;this.Ab=c;this.state=this.D=0};
Jha=function(a){return new hl(!1,a,{aT:function(){},
C0:void 0})};
il=function(a){sb.call(this,a);this.name="TimerCancelledError"};
jl=function(a){sb.call(this,a);this.name="TimerDisposedError"};
Kha=function(a){var b=new Zk,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Lj(b,a,function(){return c})};
Lha=function(a){var b={Jj:a.Jj,pF:a.pF,aS:!0,bS:!0};a.ji&&(a=a.ji,b.ji={ex:a.ex,hA:a.hA,UC:a.UC});return b};
kl=function(a){var b;gk.call(this,a.rea?new tj:new xj({Af:a.Af,Al:a.uC,Ur:a.Ur},[]),(b=a.onError)!=null?b:function(){},1);
this.C=new g.Cj;this.fG=void 0;this.tx=a.tx;this.FS=a.FS;var c;this.onEvent=(c=a.onEvent)!=null?c:function(){}};
Nha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A;return g.I(function(C){switch(C.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.wh(c,6E5,.25,2),e={},f=1;case 2:if(!(f<=2)){C.Ga(4);break}g.wa(C,5);a.state=3;a.B=f-1;return g.G(C,a.fG&&f===1?a.fG:a.uF(f),7);case 7:return h=C.B,a.fG=void 0,a.state=4,l=new qj(a.logger,"b"),g.G(C,Hj(Gj(),h),8);case 8:return a.state=5,a.onEvent(1),e.ZO=3,e.uJ=new Dj({challenge:h,hY:a.logger}),m=ll(a,12E4).then(function(H){return function(){a.onEvent(H.ZO);return Promise.reject(new Ej(15,
"MDA:Timeout"))}}(e)),g.G(C,Promise.race([e.uJ.NC,
m]),9);case 9:return a.onEvent(2),n=[],a.onEvent(4),e.ZO=6,g.G(C,Promise.race([e.uJ.snapshot({n4:n}),m]),10);case 10:return p=C.B,a.onEvent(5),q=g.x(n),r=q.next().value,e.K2=r,l.done(),a.state=6,g.G(C,Mha(a,a.logger.GG("g",f,zga(a.tx,p)),new Ej(10,"BWB:Timeout")),11);case 11:return e.rR=C.B,a.state=7,t=sj(a.logger,function(H){return function(){var K=H.rR;var N=H.uJ;var W=H.K2;if(se(K,4))N.dispose(),N=new ck(a.logger,se(K,4),re(K,2)*1E3);else if(re(K,3)){if(!W)throw new Ej(4,"PMD:Undefined");var V=
W(Dc(Zd(K,1)));if(!(V instanceof Function))throw new Ej(16,"APF:Failed");W=re(K,2)*1E3;K=new ak(a.logger,V,re(K,3),W);g.P(K,N);a.D=Math.floor((Date.now()+W)/1E3);N=K}else N.dispose(),N=new bk(a.logger,Dc(Zd(K,1)),re(K,2)*1E3);return N}}(e),"i"),y=u=void 0,(y=(u=a).FS)==null||y.call(u,Dc(Zd(e.rR,1))),a.state=8,C.return(t);
case 5:A=g.ya(C);b=A instanceof Ej?A:A instanceof jl?new Ej(20,"WTO:Disposed",A):A instanceof Ni?new Ej(11,"EBH:Error",A):new Ej(12,"BSO:Unknown",A);a.reportError(b);a:{if(A instanceof Ni)switch(A.code){case 2:case 13:case 14:case 4:var F=!0;break a;default:F=!1;break a}F=A instanceof Ej?A.code!==20:!0}if(!F)throw b;return g.G(C,ll(a,d.getValue()),12);case 12:g.xh(d);case 3:e={ZO:void 0,rR:void 0,uJ:void 0,K2:void 0};f++;C.Ga(2);break;case 4:throw b;}})};
ll=function(a,b){b=Jha(b);g.P(a,b);b.start();return b.W};
Mha=function(a,b,c){return Promise.race([b,ll(a,12E4).then(function(){return Promise.reject(c)})])};
Oha=function(a){var b,c,d;g.I(function(e){switch(e.j){case 1:return b=void 0,g.wa(e,5),g.G(e,Nha(a),7);case 7:b=e.B;g.xa(e,6);break;case 5:c=g.ya(e);if(a.j){a.logger.Sj(13);e.Ga(0);break}a.logger.Sj(14);b=new dk(a.logger,c instanceof Ej?c:new Ej(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.Ga(0)}})};
Pha=function(a,b){b.ji&&!a.cache&&a.FP(Math.min(b.ji.xaa,150))};
Qha=function(a){var b={};g.oc(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?e!==null&&(c.j(e)||(b[d]=null)):b[d]=c});
vba(a,function(c){return b[c.event]===null})};
ml=function(){this.Ae=0;this.j=!1;this.B=-1;this.Vx=!1;this.rl=0};
nl=function(){this.B=null;this.j=!1};
ol=function(a){nl.call(this);this.D=a};
pl=function(){nl.call(this)};
ql=function(){nl.call(this)};
rl=function(){this.j={};this.B=!0;this.C={}};
sl=function(a,b,c){a.j[b]||(a.j[b]=new ol(c));return a.j[b]};
Rha=function(a){a.j.queryid||(a.j.queryid=new ql)};
tl=function(a,b,c){(a=a.j[b])&&a.C(c)};
ul=function(a,b){if(g.Lg(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
vl=function(a){var b={},c=g.Fg(a.j,function(d){return d.j});
g.Eg(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};
Sha=function(a){a=vl(a);var b=[];g.Eg(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))});
return b};
Uha=function(a){sl(a,"od",Tha);sl(a,"opac",wl).j=!0;sl(a,"sbeos",wl).j=!0;sl(a,"prf",wl).j=!0;sl(a,"mwt",wl).j=!0;sl(a,"iogeo",wl)};
Vha=function(){this.j=this.Wu=null};
xl=function(){};
zl=function(){if(!yl())throw Error();};
yl=function(){return!(!Al||!Al.performance)};
Bl=function(a){return a?a.passive&&Wha()?a:a.capture||!1:!1};
Cl=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Bl(d)),!0):!1};
Dl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Xha=function(){};
Yha=function(){return(Gb||Hb)&&Ib?Ib.mobile:!El()&&(Kb("iPod")||Kb("iPhone")||Kb("Android")||Kb("IEMobile"))};
El=function(){return(Gb||Hb)&&Ib?!Ib.mobile&&(Kb("iPad")||Kb("Android")||Kb("Silk")):Kb("iPad")||Kb("Android")&&!Kb("Mobile")||Kb("Silk")};
Fl=function(a){try{return!!a&&a.location.href!=null&&Cba(a,"foo")}catch(b){return!1}};
Gl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
$ha=function(){var a=[];Gl(Zha,function(b){a.push(b)});
return a};
aia=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""};
dia=function(){var a=bia("IFRAME"),b={};g.oc(cia(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
bia=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())};
eia=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Fl(a)&&(b=a);return b};
iia=function(a){a=a||Hl();for(var b=new fia(g.Na.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&gia.test(f.url)&&(c=f);if(f.url&&!f.xR){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new hia(b,e,c)};
Hl=function(){var a=g.Na,b=[],c=null;do{var d=a;if(Fl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new fia(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.xR=!0);return b};
hia=function(a,b,c){this.j=a;this.B=b;this.C=c};
fia=function(a,b){this.url=a;this.xR=!!b;this.depth=null};
Il=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Jl=function(a,b){var c={};c[a]=b;return[c]};
jia=function(a,b,c,d,e){var f=[];Gl(a,function(h,l){(h=Kl(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Kl=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(Kl(a[h],b,c,d+1,e));return f.join(c[d])}}else if(typeof a==="object")return e||(e=0),e<2?encodeURIComponent(jia(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
kia=function(a){var b=1,c;for(c in a.B)c.length>b&&(b=c.length);return 3997-b-a.C.length-1};
Ll=function(a,b){this.j=a;this.depth=b};
mia=function(){function a(l,m){return l==null?m:l}
var b=Hl(),c=Math.max(b.length-1,0),d=iia(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Ll([f.url,f.xR?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Ll([e.url,2],0));b.url&&b!=f&&h.push(new Ll([b.url,0],a(b.depth,c)));d=g.Ml(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=aia(b.url))&&d.push([new Ll([e,1],a(b.depth,c))]);d.push([]);return g.Ml(d,function(l){return lia(c,l)})};
lia=function(a,b){g.Nl(b,function(e){return e.depth>=0});
var c=Ol(b,function(e,f){return Math.max(e,f.depth)},-1),d=Aba(c+2);
d[0]=a;g.oc(b,function(e){return d[e.depth+1]=e.j});
return d};
nia=function(){var a=a===void 0?mia():a;return a.map(function(b){return Kl(b)})};
oia=function(a){var b=!1;b=b===void 0?!1:b;Al.google_image_requests||(Al.google_image_requests=[]);var c=bia("IMG",Al.document);b&&(c.attributionSrc="");c.src=a;Al.google_image_requests.push(c)};
Pl=function(a){var b="yh";if(a.yh&&a.hasOwnProperty(b))return a.yh;var c=new a;a.yh=c;a.hasOwnProperty(b);return c};
Ql=function(){this.B=new Xha;this.j=yl()?new zl:new xl};
pia=function(){Rl();var a=Al.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof Al.setInterval==="function"&&typeof Al.clearInterval==="function"&&typeof Al.setTimeout==="function"&&typeof Al.clearTimeout==="function")};
qia=function(){Rl();return nia()};
ria=function(){};
Rl=function(){var a=Pl(ria);if(!a.j){if(!Al)throw Error("Context has not been set and window is undefined.");a.j=Pl(Ql)}return a.j};
Sl=function(a){this.xb=Fd(a)};
sia=function(a){this.C=a;this.j=-1;this.B=this.D=0};
Tl=function(a,b){return function(){var c=g.Da.apply(0,arguments);if(a.j>-1)return b.apply(null,g.z(c));try{return a.j=a.C.j.now(),b.apply(null,g.z(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
tia=function(a,b){this.B=a;this.C=b;this.j=new sia(a)};
uia=function(){this.j={}};
wia=function(){var a=Ul().flags,b=via;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};
Aia=function(){this.C=void 0;this.B=this.L=0;this.G=-1;this.Lc=new rl;sl(this.Lc,"mv",xia).j=!0;sl(this.Lc,"omid",wl);sl(this.Lc,"epoh",wl).j=!0;sl(this.Lc,"epph",wl).j=!0;sl(this.Lc,"umt",wl).j=!0;sl(this.Lc,"phel",wl).j=!0;sl(this.Lc,"phell",wl).j=!0;sl(this.Lc,"oseid",yia).j=!0;var a=this.Lc;a.j.sloi||(a.j.sloi=new pl);a.j.sloi.j=!0;sl(this.Lc,"mm",Vl);sl(this.Lc,"ovms",zia).j=!0;sl(this.Lc,"xdi",wl).j=!0;sl(this.Lc,"amp",wl).j=!0;sl(this.Lc,"prf",wl).j=!0;sl(this.Lc,"gtx",wl).j=!0;sl(this.Lc,
"mvp_lv",wl).j=!0;sl(this.Lc,"ssmol",wl).j=!0;sl(this.Lc,"fmd",wl).j=!0;sl(this.Lc,"gen204simple",wl);this.j=new tia(Rl(),this.Lc);this.D=!1;this.flags=new uia};
Ul=function(){return Pl(Aia)};
Bia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Il)var e=c;else e=new Il,Gl(c,function(h,l){var m=e,n=m.D++;h=Jl(l,h);m.j.push(n);m.B[n]=h});
var f=e.qe(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Rl(),oia(f))}catch(h){}};
Cia=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};
Dia=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()};
Eia=function(){var a=a===void 0?g.Na:a;return(a=a.performance)&&a.now?a.now():null};
Fia=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()};
Xl=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=Wl()||(b!=null?b:Math.random()<1)};
Gia=function(a){a&&Yl&&Wl()&&(Yl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),Yl.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
Hia=function(){var a=Zl;this.j=$l;this.FY="jserror";this.yU=!0;this.OO=null;this.B=this.RR;this.rd=a===void 0?null:a};
Iia=function(a,b,c){var d=am;return Tl(Ul().j.j,function(){try{if(d.rd&&d.rd.j){var e=d.rd.start(a.toString(),3);var f=b();d.rd.end(e)}else f=b()}catch(l){var h=d.yU;try{Gia(e),h=d.B(a,new bm(cm(l)),void 0,c)}catch(m){d.RR(217,m)}if(!h)throw l;}return f})()};
dm=function(a,b,c,d){return Tl(Ul().j.j,function(){var e=g.Da.apply(0,arguments);return Iia(a,function(){return b.apply(c,e)},d)})};
cm=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};
bm=function(a){Cia.call(this,Error(a),{message:a})};
Jia=function(){Al&&typeof Al.google_measure_js_timing!="undefined"&&(Al.google_measure_js_timing||Zl.disable())};
Kia=function(a){am.OO=function(b){g.oc(a,function(c){c(b)})}};
Lia=function(a,b){return Iia(a,b)};
em=function(a,b){return dm(a,b)};
fm=function(a,b,c,d){am.RR(a,b,c,d)};
gm=function(){return Date.now()-Mia};
Nia=function(){var a=Ul().C,b=hm>=0?gm()-hm:-1,c=im?gm()-jm:-1,d=km>=0?gm()-km:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];fm(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};
lm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
mm=function(a){return a.right-a.left};
nm=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};
om=function(a,b,c){b instanceof g.Ag?(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};
Oia=function(a,b,c){var d=new lm(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
pm=function(a,b,c,d,e,f,h,l){this.D=a;this.U=b;this.C=c;this.L=d;this.j=e;this.G=f;this.B=h;this.W=l};
Qia=function(a){var b=a!==a.top,c=a.top===eia(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),vea(Pia,function(h){return typeof f[h]==="function"})||(e=1));
return{Zo:f,compatibility:e,ofa:d}};
Ria=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"};
Sia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Cg(b.innerWidth,b.innerHeight)).round():Lea(b||window).round()}catch(d){return new g.Cg(-12245933,-12245933)}};
qm=function(a,b,c){try{a&&(b=b.top);var d=Sia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new lm(f,f,f,f);var h=Nea(bh(b.document).j),l=h.x,m=h.y;return new lm(m,l+f,m+e,l)}catch(n){return new lm(-12245933,-12245933,-12245933,-12245933)}};
g.ym=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
zm=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.Bm=function(a,b,c){if(typeof b==="string")(b=Am(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Am(c,d);f&&(c.style[f]=e)}};
Am=function(a,b){var c=Tia[b];if(!c){var d=nea(b);c=d;a.style[d]===void 0&&(d=(g.ih?"Webkit":Cm?"Moz":null)+pea(d),a.style[d]!==void 0&&(c=d));Tia[b]=c}return c};
g.Dm=function(a,b){var c=a.style[nea(b)];return typeof c!=="undefined"?c:a.style[Am(a,b)]||""};
Em=function(a,b){var c=ah(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Fm=function(a,b){return Em(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Hm=function(a,b,c){if(b instanceof g.Ag){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Gm(d,!1);a.style.top=g.Gm(b,!1)};
Im=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
Uia=function(a){var b=ah(a),c=Fm(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=Fm(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.Jm=function(a){var b=ah(a),c=new g.Ag(0,0);if(a==(b?ah(b):document).documentElement)return c;a=Im(a);b=Nea(bh(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Wia=function(a,b){var c=new g.Ag(0,0),d=jh(ah(a));if(!Cba(d,"parent"))return c;do{var e=d==b?g.Jm(a):Via(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.Km=function(a,b){a=Xia(a);b=Xia(b);return new g.Ag(a.x-b.x,a.y-b.y)};
Via=function(a){a=Im(a);return new g.Ag(a.left,a.top)};
Xia=function(a){if(a.nodeType==1)return Via(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ag(a.clientX,a.clientY)};
g.Lm=function(a,b,c){if(b instanceof g.Cg)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.Gm(b,!0);a.style.height=g.Gm(c,!0)};
g.Gm=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};
g.Mm=function(a){var b=Yia;if(Fm(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};
Yia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.ih&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Im(a),new g.Cg(a.right-a.left,a.bottom-a.top)):new g.Cg(b,c)};
g.Nm=function(a,b){a.style.display=b?"":"none"};
Om=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Zia=function(a){return new lm(a.top,a.right,a.bottom,a.left)};
$ia=function(a){var b=a.top||0,c=a.left||0;return new lm(b,c+(a.width||0),b+(a.height||0),c)};
Pm=function(a){return a!=null&&a>=0&&a<=1};
aja=function(){var a=g.Fb();return a?Qm("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 Bb(a,b)})||Bb(a,"OMI/")&&!Bb(a,"XiaoMi/")?!0:Bb(a,"Presto")&&Bb(a,"Linux")&&!Bb(a,"X11")&&!Bb(a,"Android")&&!Bb(a,"Mobi"):!1};
bja=function(){this.C=!Fl(Al.top);this.isMobileDevice=El()||Yha();var a=Hl();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.Xi(a[a.length-1].url)||"":"";this.j=new lm(0,0,0,0);this.D=new g.Cg(0,0);this.G=new g.Cg(0,0);this.U=new lm(0,0,0,0);this.frameOffset=new g.Ag(0,0);this.L=0;this.W=!1;this.B=!(!Al||!Qia(Al).Zo);this.update(Al)};
cja=function(a,b){b&&b.screen&&(a.D=new g.Cg(b.screen.width,b.screen.height))};
dja=function(a,b){a:{var c=a.j?new g.Cg(mm(a.j),a.j.getHeight()):new g.Cg(0,0);b=b===void 0?Al: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.Cg(e,d);break a}catch(t){r=new g.Cg(-12245933,-12245933);break a}r=void 0}a.G=r};
Tm=function(){var a=Rm();if(a.L>0||a.W)return!0;a=Rl().B.isVisible();var b=Dl(Sm)===0;return a||b};
Rm=function(){return Pl(bja)};
Um=function(a){this.C=a;this.B=0;this.j=null};
Vm=function(a,b,c){this.C=a;this.Pa=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new Oia(-1,!0,this);this.j=this;this.W=b;this.qa=this.Z=!1;this.Fa="uk";this.Ea=!1;this.L=!0};
Wm=function(a,b){g.Zb(a.G,b)||(a.G.push(b),b.YA(a.j),b.Cu(a.D),b.Vq()&&(a.Z=!0))};
eja=function(a){a=a.j;a.mW();a.lW();var b=Rm();b.U=qm(!1,a.C,b.isMobileDevice);dja(Rm(),a.C);a.D.j=a.sZ()};
fja=function(a){a.Z=a.G.length?Qm(a.G,function(b){return b.Vq()}):!1};
gja=function(a){var b=g.dc(a.G);g.oc(b,function(c){c.Cu(a.D)})};
Xm=function(a){var b=g.dc(a.G);g.oc(b,function(c){c.YA(a.j)});
a.j!=a||gja(a)};
Ym=function(a,b,c,d){this.element=a;this.j=new lm(0,0,0,0);this.C=null;this.L=new lm(0,0,0,0);this.B=b;this.Lc=c;this.Ea=d;this.Ba=!1;this.timestamp=-1;this.Z=new pm(b.D,this.element,this.j,new lm(0,0,0,0),0,0,gm(),0);this.G=void 0};
hja=function(a,b){return a.G?new lm(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()};
Zm=function(a){this.G=!1;this.j=a;this.D=function(){}};
ija=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b};
jja=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}};
kja=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};
$m=function(){this.C=0;this.j=[];this.B=!1};
lja=function(a,b){(0,g.oc)(b.j,function(c){a.add(c.B,c.j,jja(c))})};
an=function(a,b){var c=c===void 0?0:c;var d=d===void 0?!0:d;Gl(b,function(e,f){d&&e===void 0||a.add(f,e,c)});
return a};
bn=function(a){var b=mja;a.B&&(g.lc(a.j,function(c,d){return kja(d,c)?1:kja(c,d)?-1:0}),a.B=!1);
return Ol(a.j,function(c,d){d=b(d);return""+c+(c!=""&&d!=""?"&":"")+d},"")};
mja=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.Zb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
nja=function(a){var b=b===void 0?!0:b;this.j=new $m;a!==void 0&&lja(this.j,a);b&&this.j.add("v","unreleased",-16)};
oja=function(a){var b=[],c=[];g.Eg(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)};
pja=function(a){a=a.toString();Rl();oia(a)};
qja=function(){this.j=0};
rja=function(a,b,c){(0,g.oc)(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 $m;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=Pl(qja);h.add("i",d.j++);h.add("adk",e);an(h,f);e=new nja(h);pja(e)}})};
cn=function(){this.B=this.C=this.D=this.j=0};
dn=function(a){this.B=a=a===void 0?sja:a;this.j=g.Ml(this.B,function(){return new cn})};
en=function(a,b){return tja(a,function(c){return c.j},b===void 0?!0:b)};
gn=function(a,b){return fn(a,b,function(c){return c.j})};
uja=function(a,b){return tja(a,function(c){return c.C},b===void 0?!0:b)};
hn=function(a,b){return fn(a,b,function(c){return c.C})};
jn=function(a,b){return fn(a,b,function(c){return c.B})};
vja=function(a){g.oc(a.j,function(b){b.B=0})};
tja=function(a,b,c){a=g.Ml(a.j,function(d){return b(d)});
return c?a:wja(a)};
fn=function(a,b,c){var d=g.Yb(a.B,function(e){return b<=e});
return d==-1?0:c(a.j[d])};
wja=function(a){return g.Ml(a,function(b,c,d){return c>0?d[c]-d[c-1]:d[c]})};
kn=function(){this.B=new dn;this.Pa=this.La=0;this.Ua=new cn;this.ra=this.U=-1;this.ib=1E3;this.rb=new dn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Fa=this.Ba=-1};
ln=function(a,b){return uja(a.B,b===void 0?!0:b)};
mn=function(a,b,c,d){var e=e===void 0?!1:e;c=dm(d,c);Cl(a,b,c,{capture:e})};
on=function(a,b){b=nn(b);return b===0?0:nn(a)/b};
nn=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
xja=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=ah(a),e=d&&jh(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
yja=function(a,b,c){if(!a||!b)return!1;b=om(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Fl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!Ria())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=ah(c))&&b.defaultView&&b.defaultView.frameElement)&&xja(b,a);var d=a===c;a=!d&&a&&uh(a,function(e){return e===c});
return!(b||d||a)};
zja=function(a,b,c,d){return Rm().C?!1:mm(a)<=0||a.getHeight()<=0?!0:c&&d?Lia(208,function(){return yja(a,b,c)}):!1};
pn=function(a,b,c){g.O.call(this);this.position=Aja.clone();this.GL=this.AK();this.PR=-2;this.timeCreated=Date.now();this.z3=-1;this.Eq=b;this.sL=null;this.lF=!1;this.bM=null;this.opacity=-1;this.requestSource=c;this.Rfa=!1;this.SR=function(){};
this.R3=function(){};
this.Hk=new Vha;this.Hk.Wu=a;this.Hk.j=a;this.Hu=!1;this.lx={dS:null,cS:null};this.T2=!0;this.oI=null;this.jB=this.Y$=!1;Ul().L++;this.Ci=this.CQ();this.t3=-1;this.Ce=null;this.hasCompleted=this.V$=!1;this.Lc=new rl;Uha(this.Lc);Bja(this);this.requestSource==1?tl(this.Lc,"od",1):tl(this.Lc,"od",0)};
Bja=function(a){a=a.Hk.Wu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Cja&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+oea()):!!a.getAttribute("data-"+oea());b&&(Rm().B=!0)};
qn=function(a,b){b!=a.jB&&(a.jB=b,a=Rm(),b?a.L++:a.L>0&&a.L--)};
Dja=function(a,b){if(a.Ce){if(b.getName()===a.Ce.getName())return;a.Ce.dispose();a.Ce=null}b=b.create(a.Hk.j,a.Lc,a.Vq());if(b=b!=null&&b.observe()?b:null)a.Ce=b};
Eja=function(a,b,c){if(!a.sL||a.Eq==-1||b.B===-1||a.sL.B===-1)return 0;a=b.B-a.sL.B;return a>c?0:a};
Fja=function(a,b,c){if(a.Ce){a.Ce.Qt();var d=a.Ce.Z,e=d.D,f=e.j;if(d.L!=null){var h=d.C;a.bM=new g.Ag(h.left-f.left,h.top-f.top)}f=a.pN()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.hZ(d);a.sL=d;a.Ta(f,b,c,!1,h,e,d.W)}};
Gja=function(a){if(a.lF&&a.oI){var b=ul(a.Lc,"od")==1,c=Rm().j,d=a.oI,e=a.Ce?a.Ce.getName():"ns",f=a.bM,h=new g.Cg(mm(c),c.getHeight());c=a.pN();a={zfa:e,bM:f,qga:h,pN:c,Ae:a.Ci.Ae,lga:b};if(b=d.B){b.Qt();e=b.Z;f=e.D.j;var l=h=null;e.L!=null&&f&&(h=e.C,h=new g.Ag(h.left-f.left,h.top-f.top),l=new g.Cg(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={zfa:b.getName(),bM:h,qga:l,pN:c,lga:!1,Ae:e}}else c=null;c&&rja(d,a,c)}};
Hja=function(a,b,c){b&&(a.SR=b);c&&(a.R3=c)};
g.rn=function(){};
g.sn=function(a){return{value:a,done:!1}};
Ija=function(){this.D=this.j=this.C=this.B=this.G=0};
Jja=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};
Kja=function(){ml.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
tn=function(a){return Pm(a.volume)&&a.volume>0};
un=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 Lja(f,b,c)}};
vn=function(a,b){return function(c){return b(c)?c[a]:void 0}};
Mja=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}};
Lja=function(a,b,c){return c===void 0||c?g.wn(a,function(d,e){return g.Zb(b,e)}):g.Ml(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)})};
Nja=function(){this.B=this.j=""};
Oja=function(){};
xn=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.Tg(c,a);return bn(an(new $m,c))};
Pja=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};
yn=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)};
Qja=function(a){var b=g.Kg(a.B),c=0,d;for(d in a.j)g.Zb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c};
Rja=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};
zn=function(){this.j=this.B=0};
An=function(){kn.call(this);this.C=new cn;this.Va=this.Z=this.Ea=0;this.W=-1;this.tb=new cn;this.G=new cn;this.j=new dn;this.L=this.D=-1;this.qa=new cn;this.ib=2E3;this.Ma=new zn;this.eb=new zn;this.Za=new zn};
Bn=function(a,b,c){var d=a.Va;im||c||a.W==-1||(d+=b-a.W);return d};
Sja=function(){this.C=!1};
Cn=function(a,b){this.C=!1;this.D=a;this.Z=b;this.G=0};
Dn=function(a,b){Cn.call(this,a,b);this.U=[]};
Tja=function(){};
En=function(){};
Fn=function(a,b,c,d){Ym.call(this,a,b,c,d)};
Gn=function(a,b,c){Ym.call(this,null,a,b,c);this.W=a.isActive();this.U=0};
Hn=function(a){return[a.top,a.left,a.bottom,a.right]};
In=function(a,b,c,d,e,f){f=f===void 0?new En:f;pn.call(this,b,c,d);this.pT=e;this.OP=0;this.Gi={};this.Tg=new Pja;this.l4={};this.sj="";this.Za=null;this.Db=!1;this.j=[];this.Fs=f.B();this.L=f.C();this.D=null;this.C=-1;this.Pa=this.Z=void 0;this.ra=this.qa=0;this.Fa=-1;this.ib=this.eb=!1;this.Ea=this.W=this.B=this.eD=this.Kb=0;new dn;this.Ma=this.Va=0;this.Ua=-1;this.Vk=0;this.U=g.xi;this.Ba=[this.AK()];this.Sb=2;this.Ez={};this.Ez.pause="p";this.Ez.resume="r";this.Ez.skip="s";this.Ez.mute="m";this.Ez.unmute=
"um";this.Ez.exitfullscreen="ef";this.G=null;this.rb=this.tb=!1;this.Ib=Math.floor(Date.now()/1E3-1704067200);this.La=0};
Jn=function(a){a.hasCompleted=!0;a.Vk!=0&&(a.Vk=3)};
Kn=function(a){return a===void 0?a:Number(a)?Om(a,3):0};
Ln=function(a,b){return a.Ba[b!=null&&b<a.Ba.length?b:a.Ba.length-1]};
Uja=function(a){var b=!!ul(Ul().Lc,"umt");return a.Z||!b&&!a.Pa?0:1};
Vja=function(a,b){a.Vo()?b=0:a.Eq==-1?b=0:(b-=a.Eq,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.U(a)||{};c=c.currentTime!==void 0?c.currentTime:a.qa;var d=c-a.qa,e=0;d>=0?(a.ra+=b,a.Ma+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);d!=0&&(a.ra=0);a.Ua==-1&&d>0&&(a.Ua=km>=0?gm()-km:-1);a.qa=c;return e};
Wja=function(a,b){Qm(a.L,function(c){return c.D==b.D})||a.L.push(b)};
Xja=function(a){var b=gn(a.Oj().j,1);return Mn(a,b)};
Mn=function(a,b,c){return b>=15E3?!0:a.eb?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Fa>0?b>=a.Fa:!1:!1};
Yja=function(a){var b=Om(a.Ci.Ae,2),c=a.Tg.C,d=a.Ci,e=Ln(a),f=Kn(e.D),h=Kn(e.L),l=Kn(d.volume),m=Om(e.U,2),n=Om(e.ra,2),p=Om(d.Ae,2),q=Om(e.Ba,2),r=Om(e.Fa,2);d=Om(d.rl,2);var t=a.wu().clone().round();a=a.Ce&&a.Ce.C?(a.Ce?a.Ce.C:null).clone().round():null;e=ln(e,!1);return{pga:b,hG:c,ML:f,BL:h,HE:l,NL:m,DL:n,Ae:p,PL:q,EL:r,rl:d,position:t,XE:a,RL:e}};
$ja=function(a,b){Zja(a.j,b,function(){return{pga:0,hG:void 0,ML:-1,BL:-1,HE:-1,NL:-1,DL:-1,Ae:-1,PL:-1,EL:-1,rl:-1,position:void 0,XE:void 0,RL:[]}});
a.j[b]=Yja(a)};
Zja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
On=function(a,b,c){var d=a.l4[b];if(d!=null)return d;d=aka(a,b);var e=Ng(Nn,function(f){return f==b});
a=bka(a,d,d,c,cka[Nn[e]]);b=="fully_viewable_audible_half_duration_impression"&&(a.std="csm");return a};
Pn=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
bka=function(a,b,c,d,e){if(a.Hu)return{"if":0,vs:0};var f=a.wu().clone().round(),h=a.Ce?a.Ce.C:null,l=Rm(),m=Ul(),n=a.Oj(),p=a.Ce?a.Ce.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&&!nm(h,f)&&(f=h.round(),q.cp=[f.top,f.left,f.bottom,f.right]);q.tos=en(n.B,!1);q.mtos=ln(n);q.mcvt=n.Ua.C;q.ps=void 0;f=Bn(n,gm(),a.Vo());q.vht=f;q.mut=n.tb.C;q.a=Kn(a.Ci.volume);q.mv=Kn(n.L);q.fs=a.jB?1:0;q.ft=n.qa.j;q.at=n.G.j;q.as=n.D>0?1:0;q.atos=
en(n.j);q.ssb=en(n.rb,!1);q.amtos=uja(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=Mn(a,n.C.j,!0)?1:0;q.efpf=a.Sb;if(p=="gsv"||p=="nis")p=a.Ce,p.U>0&&(q.nnut=p.U);q.tcm=Uja(a);q.nmt=a.Va;q.bt=a.Ma;q.pst=a.Ua;q.vpaid=a.Z;q.dur=a.C;q.vmtime=a.qa;q.is=a.Tg.C;a.j.length>=1&&(q.i0=a.j[0].hG,q.a0=[a.j[0].HE],q.c0=[a.j[0].Ae],q.ss0=[a.j[0].rl],p=a.j[0].position,f=a.j[0].XE,q.p0=p?Hn(p):void 0,p&&f&&!nm(f,p)&&(q.cp0=Hn(f)));a.j.length>=2&&(q.i1=a.j[1].hG,q.a1=Pn(a.j[1].ML,
a.j[1].HE,a.j[1].BL),q.c1=Pn(a.j[1].NL,a.j[1].Ae,a.j[1].DL),q.ss1=Pn(a.j[1].PL,a.j[1].rl,a.j[1].EL),p=a.j[1].position,f=a.j[1].XE,q.p1=p?Hn(p):void 0,p&&f&&!nm(f,p)&&(q.cp1=Hn(f)),q.mtos1=a.j[1].RL);a.j.length>=3&&(q.i2=a.j[2].hG,q.a2=Pn(a.j[2].ML,a.j[2].HE,a.j[2].BL),q.c2=Pn(a.j[2].NL,a.j[2].Ae,a.j[2].DL),q.ss2=Pn(a.j[2].PL,a.j[2].rl,a.j[2].EL),p=a.j[2].position,f=a.j[2].XE,q.p2=p?Hn(p):void 0,p&&f&&!nm(f,p)&&(q.cp2=Hn(f)),q.mtos2=a.j[2].RL);a.j.length>=4&&(q.i3=a.j[3].hG,q.a3=Pn(a.j[3].ML,a.j[3].HE,
a.j[3].BL),q.c3=Pn(a.j[3].NL,a.j[3].Ae,a.j[3].DL),q.ss3=Pn(a.j[3].PL,a.j[3].rl,a.j[3].EL),p=a.j[3].position,f=a.j[3].XE,q.p3=p?Hn(p):void 0,p&&f&&!nm(f,p)&&(q.cp3=Hn(f)),q.mtos3=a.j[3].RL);q.cs=Rja(a.Tg);b&&(q.ic=Qja(a.Tg),q.dvpt=n.C.B,q.dvs=jn(n.B,.5),q.dfvs=jn(n.B,1),q.davs=jn(n.j,.5),q.dafvs=jn(n.j,1),c&&(n.C.B=0,vja(n.B),vja(n.j)),a.Cs()&&(q.dtos=n.Ea,q.dav=n.Z,q.dtoss=a.OP+1,c&&(n.Ea=0,n.Z=0,a.OP++)),q.dat=n.G.B,q.dft=n.qa.B,c&&(n.G.B=0,n.qa.B=0));q.ps=[l.G.width,l.G.height];q.bs=[mm(l.j),l.j.getHeight()];
q.scs=[l.D.width,l.D.height];q.dom=l.domain;a.eD&&(q.vds=a.eD);if(a.L.length>0||a.Fs)b=g.dc(a.L),a.Fs&&b.push(a.Fs),q.pings=g.Ml(b,function(r){return r.toString()});
b=g.Ml(g.wn(a.L,function(r){return r.L()}),function(r){return r.getId()});
wba(b);q.ces=b;a.B&&(q.vmer=a.B);a.W&&(q.vmmk=a.W);a.Ea&&(q.vmiec=a.Ea);q.avms=a.Ce?a.Ce.getName():"ns";a.Ce&&g.Tg(q,a.Ce.ou());d?(q.c=Om(a.Ci.Ae,2),q.ss=Om(a.Ci.rl,2)):q.tth=gm()-dka;q.mc=Om(n.ra,2);q.nc=Om(n.U,2);q.mv=Kn(n.L);q.nv=Kn(n.D);q.lte=Om(a.PR,2);d=Ln(a,e);ln(n);q.qmtos=ln(d);q.qnc=Om(d.U,2);q.qmv=Kn(d.L);q.qnv=Kn(d.D);q.qas=d.D>0?1:0;q.qi=a.sj;q.avms||(q.avms="geo");q.psm=n.Ma.j;q.psv=n.Ma.getValue();q.psfv=n.eb.getValue();q.psa=n.Za.getValue();m=Sha(m.Lc);m.length&&(q.veid=m);a.G&&g.Tg(q,
Jja(a.G));q.avas=a.oK();q.vs=a.vZ();q.co=eka(a);q.tm=n.La;q.tu=n.Pa;return q};
aka=function(a,b){if(g.Zb(fka,b))return!0;var c=a.Gi[b];return c!==void 0?(a.Gi[b]=!0,!c):!1};
eka=function(a){var b=a.La.toString(10).padStart(2,"0");b=""+a.Ib+b;a.La<99&&a.La++;return b};
hka=function(){this.j={};var a=jh();Qn(this,a,document);var b=gka();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)Qn(this,c,c.document);Qn(this,a.top,a.top.document)}}catch(d){}};
gka=function(){var a=document.documentElement;try{if(!Fl(jh().top))return"2";var b=[],c=jh(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}};
Qn=function(a,b,c){mn(c,"mousedown",function(){return ika(a)},301);
mn(b,"scroll",function(){return jka(a)},302);
mn(c,"touchmove",function(){return kka(a)},303);
mn(c,"mousemove",function(){return lka(a)},304);
mn(c,"keydown",function(){return mka(a)},305)};
ika=function(a){g.Eg(a.j,function(b){b.C>1E5||++b.C})};
jka=function(a){g.Eg(a.j,function(b){b.j>1E5||++b.j})};
kka=function(a){g.Eg(a.j,function(b){b.j>1E5||++b.j})};
mka=function(a){g.Eg(a.j,function(b){b.B>1E5||++b.B})};
lka=function(a){g.Eg(a.j,function(b){b.D>1E5||++b.D})};
nka=function(){this.j=[];this.B=[]};
Rn=function(a,b){return g.Xb(a.j,function(c){return c.sj==b})};
oka=function(a,b){return b?g.Xb(a.j,function(c){return c.Hk.Wu==b}):null};
pka=function(a,b){return g.Xb(a.B,function(c){return c.kq()==2&&c.sj==b})};
Tn=function(){var a=Sn;return a.j.length==0?a.B:a.B.length==0?a.j:g.cc(a.B,a.j)};
qka=function(a,b){a=b.kq()==1?a.j:a.B;var c=Wb(a,function(d){return d==b});
return c!=-1?(a.splice(c,1),b.Ce&&b.Ce.unobserve(),b.dispose(),!0):!1};
rka=function(a){var b=Sn;if(qka(b,a)){switch(a.kq()){case 0:var c=function(){return null};
case 2:c=function(){return pka(b,a.sj)};
break;case 1:c=function(){return Rn(b,a.sj)}}for(var d=c();d;d=c())qka(b,d)}};
ska=function(a){var b=Sn;a=g.wn(a,function(c){return!oka(b,c.Hk.Wu)});
b.j.push.apply(b.j,g.z(a))};
tka=function(a){var b=[];g.oc(a,function(c){Qm(Sn.j,function(d){return d.Hk.Wu===c.Hk.Wu&&d.sj===c.sj})||(Sn.j.push(c),b.push(c))})};
Un=function(){this.j=this.B=null};
uka=function(a,b){function c(d,e){b(d,e)}
if(a.B==null)return!1;a.j=g.Xb(a.B,function(d){return d!=null&&d.nW()});
a.j&&(a.j.init(c)?eja(a.j.j):b(a.j.j.LA(),a.j));return a.j!=null};
Vn=function(a){a=vka(a);Zm.call(this,a.length?a[a.length-1]:new Vm(Al,0));this.C=a;this.B=null};
vka=function(a){if(!a.length)return[];a=(0,g.wn)(a,function(c){return c!=null&&c.JD()});
for(var b=1;b<a.length;b++)Wm(a[b-1],a[b]);return a};
Wn=function(a,b,c,d){Ym.call(this,a,b,c,d);this.ra=this.qa=this.U=this.W=this.D=null};
Xn=function(a){return a.D&&a.D.takeRecords?a.D.takeRecords():[]};
xka=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=Ul().j.j;a.D=new c.IntersectionObserver(Tl(d,function(e){return Yn(a,e)}),wka);
d=Tl(d,function(){a.D.unobserve(b);a.D.observe(b);Yn(a,Xn(a))});
c.ResizeObserver?(a.W=new c.ResizeObserver(d),a.W.observe(b)):c.MutationObserver&&(a.U=new g.Na.MutationObserver(d),a.U.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.D.observe(b);Yn(a,Xn(a));return!0};
Yn=function(a,b){try{if(b.length){a.qa||(a.qa=gm());var c=yka(b),d=Wia(a.element,a.B.j.C),e=d.x,f=d.y;a.C=new lm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));a.j=hja(a,a.C);var h=Zia(c.intersectionRect);a.L=om(h,a.C.left-h.left,a.C.top-h.top)}}catch(l){a.unobserve(),fm(299,l)}};
yka=function(a){return Ol(a,function(b,c){return b.time>c.time?b:c},a[0])};
Zn=function(a){a=a===void 0?Al:a;Zm.call(this,new Vm(a,2))};
$n=function(){var a=zka();Vm.call(this,Al.top,a,"geo")};
zka=function(){Ul();var a=Rm();return a.C||a.B?0:2};
Aka=function(){};
ao=function(){this.done=!1;this.j={H7:0,uX:0,tqa:0,zY:0,lR:-1,q8:0,p8:0,r8:0,xfa:0};this.G=null;this.L=!1;this.C=null;this.U=0;this.B=new Um(this)};
co=function(){var a=bo;a.L||(a.L=!0,Bka(a,function(){return a.D.apply(a,g.z(g.Da.apply(0,arguments)))}),a.D())};
Cka=function(){Pl(Aka);var a=Pl(Un);a.j!=null&&a.j.j?eja(a.j.j):Rm().update(Al)};
eo=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{Cka();var d=gm();Ul().G=d;if(Pl(Un).j!=null)for(var e=0;e<b.length;e++)Fja(b[e],d,c);for(d=0;d<b.length;d++)Gja(b[d]);++a.j.zY}finally{c?g.oc(b,function(f){f.Ci.Ae=0}):a.B.schedule()}}};
Bka=function(a,b){if(!a.G){b=dm(142,b);Rl();var c;Sm.visibilityState?c="visibilitychange":Sm.mozVisibilityState?c="mozvisibilitychange":Sm.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Cl(Sm,c,b,{capture:!1})&&(a.G=b)}};
Dka=function(){var a=Pl(Un);if(a.j!=null){var b=a.j;g.oc(Tn(),function(c){return Dja(c,b)})}};
Eka=function(a,b){a=a.U;im&&(a+=b-jm);return a};
Fka=function(a){a=a===void 0?function(){return{}}:a;
am.FY="av-js";$l.j=.01;Kia([function(b){var c=Ul(),d={};d=(d.bin=c.B,d.type="error",d);c=vl(c.Lc);if(!bo.C){var e=bo,f=Al.document,h=hm>=0?gm()-hm:-1,l=gm();e.j.lR==-1&&(h=l);var m=Rm(),n=Ul(),p=vl(n.Lc),q=Tn();try{if(q.length>0){var r=m.j;r&&(p.bs=[mm(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Al.screen&&(p.scs=[Al.screen.width,Al.screen.height])}else p.url=encodeURIComponent(Al.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=hm;p.bin=n.B;Al.google_osd_load_pub_page_exp!==void 0&&(p.olpp=Al.google_osd_load_pub_page_exp);p.deb=[1,e.j.H7,e.j.uX,e.j.zY,e.j.lR,0,e.B.B,e.j.q8,e.j.p8,e.j.r8,e.j.xfa,-1].join(";");p.tvt=Eka(e,l);m.B&&(p.inapp=1);if(Al!==null&&Al!=Al.top){q.length>0&&(p.iframe_loc=encodeURIComponent(Al.location.href.substring(0,512)));var u=m.U;p.is=[mm(u),u.getHeight()]}}catch(y){p.error=1}bo.C=p}r=g.Rg(bo.C);t=Ul().j;ul(t.C,"prf")==1?(u=new Sl,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=$d(u,1,fd(e.D+
f),0),e=t.j,u=$d(u,5,jd(e.j>-1?e.B+1:e.B),0),u=$d(u,2,pd(t.B.j.C()),"0"),u=$d(u,3,pd(t.B.j.B()),"0"),t=$d(u,4,pd(t.B.j.j()),"0"),u={},t=(u.pf=g.uc(t.j()),u)):t={};g.Tg(r,t);g.Tg(b,d,c,r,a())}])};
Hka=function(){var a=Gka||Al;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("&")};
fo=function(){var a="youtube.player.web_20241113_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20241113_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20241113_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20241113_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_20241113_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};
Ika=function(){return"av.default_js".includes("ima_html5_sdk")?{Yp:"ima",aq:null}:"av.default_js".includes("ima_native_sdk")?{Yp:"nima",aq:null}:"av.default_js".includes("admob-native-video-javascript")?{Yp:"an",aq:null}:"youtube.player.web_20241113_01_RC00".includes("cast_js_sdk")?{Yp:"cast",aq:fo()}:"youtube.player.web_20241113_01_RC00".includes("youtube.player.web")?{Yp:"yw",aq:fo()}:"youtube.player.web_20241113_01_RC00".includes("outstream_web_client")?{Yp:"out",aq:fo()}:"youtube.player.web_20241113_01_RC00".includes("drx_rewarded_web")?
{Yp:"r",aq:fo()}:"youtube.player.web_20241113_01_RC00".includes("gam_native_web_video")?{Yp:"n",aq:fo()}:"youtube.player.web_20241113_01_RC00".includes("admob_interstitial_video")?{Yp:"int",aq:fo()}:{Yp:"j",aq:null}};
io=function(a,b){var c={sv:"966"};go!==null&&(c.v=go);c.cb=Jka;c.nas=Sn.j.length;c.msg=a;b!==void 0&&(a=Kka(b))&&(c.e=ho[a]);return c};
jo=function(a){return yb(a,"custom_metric_viewable")};
Kka=function(a){var b=jo(a)?"custom_metric_viewable":a.toLowerCase();return Ng(Nn,function(c){return c==b})};
Lka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
Oka=function(a){try{var b=a.split(",");return b.length>g.Kg(Mka).length?null:Ol(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||Nka[d[0]]===void 0||!Nka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
Pka=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?hn(b.j,a.j):hn(b.B,a.j);case "tos":return a.B?gn(b.j,a.j):gn(b.B,a.j)}return 0};
ko=function(a,b,c,d){Cn.call(this,b,d);this.U=a;this.W=c};
lo=function(){};
mo=function(a){Cn.call(this,"fully_viewable_audible_half_duration_impression",a)};
no=function(a){this.j=a};
oo=function(a,b){Cn.call(this,a,b)};
po=function(a){Dn.call(this,"measurable_impression",a)};
qo=function(){no.apply(this,arguments)};
ro=function(a,b,c){Gn.call(this,a,b,c)};
so=function(a){a=a===void 0?Al:a;Zm.call(this,new Vm(a,2))};
to=function(a,b,c){Gn.call(this,a,b,c)};
uo=function(a){a=a===void 0?Al:a;Zm.call(this,new Vm(a,2))};
vo=function(){Vm.call(this,Al,2,"mraid");this.Ma=0;this.ra=this.Ba=!1;this.U=null;this.B=Qia(this.C);this.D.j=new lm(0,0,0,0);this.La=!1};
wo=function(a,b,c){a.Kv("addEventListener",b,c)};
Tka=function(a){Ul().D=!!a.Kv("isViewable");wo(a,"viewableChange",Qka);a.Kv("getState")==="loading"?wo(a,"ready",Rka):Ska(a)};
Ska=function(a){typeof a.B.Zo.AFMA_LIDAR==="string"?(a.Ba=!0,Uka(a)):(a.B.compatibility=3,a.U="nc",a.hj("w"))};
Uka=function(a){a.ra=!1;var b=ul(Ul().Lc,"rmmt")==1,c=!!a.Kv("isViewable");(b?!c:1)&&Rl().setTimeout(em(524,function(){a.ra||(Vka(a),fm(540,Error()),a.U="mt",a.hj("w"))}),500);
Wka(a);wo(a,a.B.Zo.AFMA_LIDAR,Xka)};
Wka=function(a){var b=ul(Ul().Lc,"sneio")==1,c=a.B.Zo.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Zo.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Zo.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Zo.AFMA_LIDAR_EXP_1=!b)};
Vka=function(a){a.Kv("removeEventListener",a.B.Zo.AFMA_LIDAR,Xka);a.Ba=!1};
Yka=function(a,b){if(a.Kv("getState")==="loading")return new g.Cg(-1,-1);b=a.Kv(b);if(!b)return new g.Cg(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Cg(-1,-1):new g.Cg(a,b)};
Rka=function(){try{var a=Pl(vo);a.Kv("removeEventListener","ready",Rka);Ska(a)}catch(b){fm(541,b)}};
Xka=function(a,b){try{var c=Pl(vo);c.ra=!0;var d=a?new lm(a.y,a.x+a.width,a.y+a.height,a.x):new lm(0,0,0,0);var e=gm(),f=Tm();var h=new Oia(e,f,c);h.j=d;h.volume=b;c.Cu(h)}catch(l){fm(542,l)}};
Qka=function(a){var b=Ul(),c=Pl(vo);a&&!b.D&&(b.D=!0,c.La=!0,c.U&&c.hj("w",!0))};
xo=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.U=(a.start=this.F$,a.firstquartile=this.A$,a.midpoint=this.C$,a.thirdquartile=this.G$,a.complete=this.x$,a.error=this.y$,a.pause=this.oT,a.resume=this.n2,a.skip=this.E$,a.viewable_impression=this.lq,a.mute=this.cD,a.unmute=this.cD,a.fullscreen=this.B$,a.exitfullscreen=this.z$,a.fully_viewable_audible_half_duration_impression=this.lq,a.measurable_impression=this.lq,a.abandon=this.oT,a.engagedview=this.lq,a.impression=this.lq,a.creativeview=
this.lq,a.progress=this.cD,a.custom_metric_viewable=this.lq,a.bufferstart=this.oT,a.bufferfinish=this.n2,a.audio_measurable=this.lq,a.audio_audible=this.lq,a);a={};this.W=(a.overlay_resize=this.D$,a.abandon=this.ZQ,a.close=this.ZQ,a.collapse=this.ZQ,a.overlay_unmeasurable_impression=function(b){return On(b,"overlay_unmeasurable_impression",Tm())},a.overlay_viewable_immediate_impression=function(b){return On(b,"overlay_viewable_immediate_impression",Tm())},a.overlay_unviewable_impression=function(b){return On(b,
"overlay_unviewable_impression",Tm())},a.overlay_viewable_end_of_session_impression=function(b){return On(b,"overlay_viewable_end_of_session_impression",Tm())},a);
Ul().B=3;Zka(this);this.C=null};
yo=function(a,b,c,d){a=a.GH(null,d,!0,b);a.D=c;ska([a]);return a};
$ka=function(a,b,c){Qha(b);var d=a.j;g.oc(b,function(e){var f=g.Ml(e.criteria,function(h){var l=Oka(h);if(l==null)h=null;else if(h=new Lka,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=jba(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h});
Qm(f,function(h){return h==null})||Wja(c,new ko(e.id,e.event,f,d))})};
ala=function(){var a=[],b=Ul();a.push(Pl($n));ul(b.Lc,"mvp_lv")&&a.push(Pl(vo));b=[new so,new uo];b.push(new Vn(a));b.push(new Zn(Al));return b};
bla=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=gm(),c=Ul(),d=Rm();hm=b;c.C=79463069;a.B!=="o"&&(Gka=eia(Al));if(pia()){bo.j.uX=0;bo.j.lR=gm()-b;var e=ala(),f=Pl(Un);f.B=e;uka(f,function(){zo()})?bo.done||(Dka(),Wm(f.j.j,a),co()):d.C?zo():co()}else Ao=!0}catch(h){throw Sn.reset(),h;
}}};
Co=function(a){bo.B.cancel();Bo=a;bo.done=!0};
Do=function(a){if(a.B)return a.B;var b=Pl(Un).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};
Eo=function(a,b,c){if(a.j==null)return b.eD|=4,!1;a=dla(a.j,c,b);b.eD|=a;return a==0};
zo=function(){var a=[new Zn(Al)],b=Pl(Un);b.B=a;uka(b,function(){Co("i")})?bo.done||(Dka(),co()):Co("i")};
ela=function(a,b){if(!a.Db){var c=On(a,"start",Tm());c=a.pT.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="966";go!==null&&(d.v=go);Zi(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)});
b=Hka();Zi(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+bn(an(new $m,d));pja(b);a.Db=!0}};
Fo=function(a,b,c){eo(bo,[a],!Tm());$ja(a,c);c!=4&&Zja(a.Ba,c,a.AK);return On(a,b,Tm())};
Zka=function(a){Fka(function(){var b=fla();a.B!=null&&(b.sdk=a.B);var c=Pl(Un);c.j!=null&&(b.avms=c.j.getName());return b})};
gla=function(a,b,c,d){var e=oka(Sn,c);e!==null&&e.sj!==b&&(a.UJ(e),e=null);e||(b=a.GH(c,gm(),!1,b),Sn.B.length==0&&(Ul().C=79463069),tka([b]),e=b,e.D=Do(a),d&&(e.Za=d));return e};
hla=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))};
fla=function(){var a=Rm(),b={},c={},d={};return Object.assign({},(b.sv="966",b),go!==null&&(c.v=go,c),(d["if"]=a.C?"1":"0",d.nas=String(Sn.j.length),d))};
Go=function(a){Cn.call(this,"audio_audible",a)};
Ho=function(a){Dn.call(this,"audio_measurable",a)};
Io=function(){no.apply(this,arguments)};
Jo=function(){};
ila=function(a){this.j=a};
dla=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},go!==null&&(d.v=go,d),(e.sv="966",e.cb=Jka,e.e=jla(b),e));e=On(c,b,Tm());g.Tg(d,e);c.l4[b]=e;d=c.kq()==2?oja(d).join("&"):c.pT.j(d).j;try{return a(c.sj,d,b),0}catch(f){return 2}}else return 1};
jla=function(a){var b=jo(a)?"custom_metric_viewable":a;a=Ng(Nn,function(c){return c==b});
return ho[a]};
Ko=function(){xo.call(this);this.L=null;this.G=!1;this.D="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
kla=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&$ka(a,c,b)};
lla=function(a,b,c){var d=Rn(Sn,b);d||(d=c.opt_nativeTime||-1,d=yo(a,b,Do(a),d),c.opt_osdId&&(d.Za=c.opt_osdId));return d};
mla=function(a,b,c){var d=Rn(Sn,b);d||(d=yo(a,b,"n",c.opt_nativeTime||-1));return d};
nla=function(a,b){var c=Rn(Sn,b);c||(c=yo(a,b,"h",-1));return c};
ola=function(a){Ul();switch(Do(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};
rla=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.Tg(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.JK(b,c);c=f?f.pT:a.HP();if(e.opt_bounds)return c.j(io("ol",d));if(d!==void 0)if(Kka(d)!==void 0)if(Ao)a=io("ue",d);else if(bla(a),Bo=="i")a=io("i",d),a["if"]=0;else if(b=a.JK(b,e)){b:{Bo=="i"&&(b.Hu=!0);f=e.opt_fullscreen;f!==void 0&&qn(b,!!f);var h;if(f=!Rm().B)(f=Bb(g.Fb(),"CrKey")&&!(Bb(g.Fb(),"CrKey")&&Bb(g.Fb(),"SmartSpeaker"))||Bb(g.Fb(),"PlayStation")||Bb(g.Fb(),"Roku")||aja()||Bb(g.Fb(),
"Xbox"))||(f=g.Fb(),f=Bb(f,"AppleTV")||Bb(f,"Apple TV")||Bb(f,"CFNetwork")||Bb(f,"tvOS")),f||(f=g.Fb(),f=Bb(f,"sdk_google_atv_x86")||Bb(f,"Android TV")),f=!f;f&&(Rl(),f=Dl(Sm)===0);if(h=f){switch(b.kq()){case 1:ela(b,"pv");break;case 2:a.IT(b)}Co("pv")}f=d.toLowerCase();if(h=!h)h=ul(Ul().Lc,"ssmol")&&f==="loaded"?!1:g.Zb(pla,f);if(h&&b.Vk==0){Bo!="i"&&(bo.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;km=h=typeof h==="number"?h:gm();b.lF=!0;var l=Tm();b.Vk=1;b.Gi={};b.Gi.start=!1;b.Gi.firstquartile=
!1;b.Gi.midpoint=!1;b.Gi.thirdquartile=!1;b.Gi.complete=!1;b.Gi.resume=!1;b.Gi.pause=!1;b.Gi.skip=!1;b.Gi.mute=!1;b.Gi.unmute=!1;b.Gi.viewable_impression=!1;b.Gi.measurable_impression=!1;b.Gi.fully_viewable_audible_half_duration_impression=!1;b.Gi.fullscreen=!1;b.Gi.exitfullscreen=!1;b.OP=0;l||(b.Oj().W=h);eo(bo,[b],!l)}(h=b.Ez[f])&&yn(b.Tg,h);ul(Ul().Lc,"fmd")||g.Zb(qla,f)&&b.Fs&&b.Fs.B(b,null);switch(b.kq()){case 1:var m=jo(f)?a.U.custom_metric_viewable:a.U[f];break;case 2:m=a.W[f]}if(m&&(d=m.call(a,
b,e,d),ul(Ul().Lc,"fmd")&&g.Zb(qla,f)&&b.Fs&&b.Fs.B(b,null),d!==void 0)){e=io(void 0,f);g.Tg(e,d);d=e;break b}d=void 0}b.Vk==3&&a.UJ(b);a=d}else a=io("nf",d);else a=void 0;else Ao?a=io("ue"):f?(a=io(),g.Tg(a,bka(f,!0,!1,!1))):a=io("nf");return typeof a==="string"?c.j():c.j(a)};
sla=function(a,b){b&&(a.D=b)};
tla=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
ula=function(a,b,c){c=c===void 0?{}:c;a=rla(Pl(Ko),b,c,a);return tla(a)};
vla=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}};
xla=function(a,b,c,d,e){var f=window,h=c?"//pagead2.googlesyndication.com/bg/"+kg(c)+".js":"";c=f.document;var l={};b&&(l._scs_=b);l._bgu_=h;l._bgp_=d;l._li_="v_h.3.0.0.0";e&&(l._upb_=e);(b=f.GoogleTyFxhY)&&typeof b.push=="function"||(b=f.GoogleTyFxhY=[]);b.push(l);b=bh(c).createElement("SCRIPT");b.type="text/javascript";b.async=!0;a=Hea(wla,kg(a)+".js");g.dg(b,a);(f=(f.GoogleTyFxhYEET||{})[b.src])?f():c.getElementsByTagName("head")[0].appendChild(b)};
yla=function(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}};
Mo=function(){var a=zla();a=a===void 0?"bevasrsg":a;return new Promise(function(b){var c=window===window.top?window:yla()?window:window.top,d=c[a],e;((e=d)==null?0:e.bevasrs)?b(new Lo(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),c[a]=d),d.nqfbel.push(function(f){b(new Lo(f))}))})};
Ala=function(a){var b={c:a.Jj,e:a.pF,mc:a.aS,me:a.bS};a.ji&&(b.co={c:a.ji.ex,a:a.ji.hA,s:a.ji.UC});return b};
To=function(a){g.O.call(this);this.wpc=a};
Lo=function(a){g.O.call(this);var b=this;this.Qg=a;this.C="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.j=void 0;this.NC=this.Qg.p;this.D=this.yM.bind(this);this.addOnDisposeCallback(function(){return void Bla(b)})};
Cla=function(a){var b;return g.I(function(c){if(c.j==1){if(!a.Qg.wpc)throw new Ej(30,"NWA");return a.B?c.return(a.B):g.G(c,a.Qg.wpc(),2)}b=c.B;a.B=new To(b);return c.return(a.B)})};
Bla=function(a){a.j!==void 0&&(a.C.forEach(function(b){var c;(c=a.j)==null||c.removeEventListener(b,a.D)}),a.j=void 0)};
Fla=function(a){if(g.zb(g.lg(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.yk(a)}catch(c){return g.Xb(Dla,function(d){return a.search(d)>0})!=null}return b.L.match(Ela)?!0:g.Xb(Dla,function(c){return a.match(c)!=null})!=null};
g.Uo=function(a,b){return a.replace(Gla,function(c,d){try{var e=g.Pg(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.zb(g.lg(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Hla=function(a,b){return Object.is(a,b)};
g.Wo=function(a){var b=g.Vo;g.Vo=a;return b};
Ila=function(a){if(a.nj!==void 0){var b=g.Xo;g.Xo=!0;try{for(var c=g.x(a.nj),d=c.next();!d.done;d=c.next()){var e=d.value;e.Um||(a=void 0,e.Um=!0,Ila(e),(a=e.zP)==null||a.call(e,e))}}finally{g.Xo=b}}};
Jla=function(){var a;return((a=g.Vo)==null?void 0:a.WE)!==!1};
g.Kla=function(a){a&&(a.UL=0);return g.Wo(a)};
g.Lla=function(a,b){g.Wo(b);if(a&&a.pg!==void 0&&a.Gn!==void 0&&a.Xy!==void 0){if(g.Yo(a))for(b=a.UL;b<a.pg.length;b++)g.Zo(a.pg[b],a.Gn[b]);for(;a.pg.length>a.UL;)a.pg.pop(),a.Xy.pop(),a.Gn.pop()}};
Nla=function(a,b,c){Mla(a);if(a.nj.length===0&&a.pg!==void 0)for(var d=0;d<a.pg.length;d++)a.Gn[d]=Nla(a.pg[d],a,d);a.Su.push(c);return a.nj.push(b)-1};
g.Zo=function(a,b){Mla(a);if(a.nj.length===1&&a.pg!==void 0)for(var c=0;c<a.pg.length;c++)g.Zo(a.pg[c],a.Gn[c]);c=a.nj.length-1;a.nj[b]=a.nj[c];a.Su[b]=a.Su[c];a.nj.length--;a.Su.length--;b<a.nj.length&&(c=a.Su[b],a=a.nj[b],g.$o(a),a.Gn[c]=b)};
g.Yo=function(a){var b,c;return a.yP||((c=a==null?void 0:(b=a.nj)==null?void 0:b.length)!=null?c:0)>0};
g.$o=function(a){a.pg!=null||(a.pg=[]);a.Gn!=null||(a.Gn=[]);a.Xy!=null||(a.Xy=[])};
Mla=function(a){a.nj!=null||(a.nj=[]);a.Su!=null||(a.Su=[])};
g.ap=function(){throw Error();};
Pla=function(a){function b(){if(g.Xo)throw Error("");if(g.Vo!==null){var d=g.Vo.UL++;g.$o(g.Vo);d<g.Vo.pg.length&&g.Vo.pg[d]!==c&&g.Yo(g.Vo)&&g.Zo(g.Vo.pg[d],g.Vo.Gn[d]);g.Vo.pg[d]!==c&&(g.Vo.pg[d]=c,g.Vo.Gn[d]=g.Yo(g.Vo)?Nla(c,g.Vo,d):0);g.Vo.Xy[d]=c.version}return c.value}
var c=Object.create(Ola);c.value=a;b[bp]=c;return b};
Rla=function(a,b){Jla()||g.ap();if(!a.XP(a.value,b)){a.value=b;a.version++;g.cp++;Ila(a);var c;(c=g.Qla)==null||c()}};
g.ep=function(a){return Object.create(Object.assign({},g.dp,{WE:a}))};
g.gp=function(a,b){var c=g.fp.T8;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};
Wla=function(a,b){function c(){Sla++;return d()}
var d=Pla(a);Tla++;var e=d[bp];e.Yt=b!=null?b:"[signal]";c[bp]=e;return[c,function(f){var h={stack:[],error:void 0,hasError:!1};try{if(g.cb(h,g.gp("signalSet",e.Yt)),Ula++,f&&f[Vla]){var l=f[Vla];Jla()||g.ap();Rla(e,l(e.value))}else Rla(e,f)}catch(m){h.error=m,h.hasError=!0}finally{g.eb(h)}}]};
ip=function(a){g.mi.call(this);var b=this;this.G=this.B=0;this.Wo=a!=null?a:{aj:function(e,f){return setTimeout(e,f)},
Dk: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.I(function(e){return g.G(e,hp(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.xe()};
Xla=function(){var a=g.jp;ip.instance||(ip.instance=new ip(a));return ip.instance};
hp=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.I(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.Wo.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.Wo.Dk(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.Ga(3)}})})};
kp=function(){this.data=[];this.j=-1};
Yla=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};
lp=function(a){a.setAttribute("role","link")};
np=function(a,b){Array.isArray(b)&&(b=b.join(" "));b===""||b==void 0?(mp||(b={},mp=(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=mp,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
op=function(a){a=a.getAttribute("aria-label");return a==null||a==void 0?"":String(a)};
g.pp=function(a,b,c){g.O.call(this);this.j=null;this.D=!1;this.L=a;this.G=c;this.B=b||window;this.C=(0,g.Xa)(this.j6,this)};
Zla=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
$la=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.qp=function(a,b,c){g.O.call(this);this.j=a;this.lj=b||0;this.B=c;this.C=(0,g.Xa)(this.pW,this)};
g.rp=function(a,b){a.isActive()||a.start(b)};
g.sp=function(a){a.stop();a.pW()};
g.tp=function(a){a.isActive()&&g.sp(a)};
g.up=function(a,b){this.j=a[g.Na.Symbol.iterator]();this.B=b};
ama=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
vp=function(a){return a.classList?a.classList:ama(a).match(/\S+/g)||[]};
g.wp=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.xp=function(a,b){return a.classList?a.classList.contains(b):g.Zb(vp(a),b)};
g.yp=function(a,b){if(a.classList)a.classList.add(b);else if(!g.xp(a,b)){var c=ama(a);g.wp(a,c+(c.length>0?" "+b:b))}};
g.zp=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.yp(a,e)});
else{var c={};Array.prototype.forEach.call(vp(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.wp(a,b)}};
g.Ap=function(a,b){a.classList?a.classList.remove(b):g.xp(a,b)&&g.wp(a,Array.prototype.filter.call(vp(a),function(c){return c!=b}).join(" "))};
g.Bp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Ap(a,c)}):g.wp(a,Array.prototype.filter.call(vp(a),function(c){return!g.Zb(b,c)}).join(" "))};
g.Cp=function(a,b,c){c?g.yp(a,b):g.Ap(a,b)};
bma=function(a,b){var c=!g.xp(a,b);g.Cp(a,b,c)};
g.Dp=function(){g.mi.call(this);this.j=0;this.endTime=this.startTime=null};
cma=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.Bm(a,"transition",b.join(","))};
Ep=function(a,b,c,d,e){g.Dp.call(this);this.B=a;this.G=b;this.L=c;this.D=d;this.U=Array.isArray(e)?e:[e]};
dma=function(a,b,c,d){return new Ep(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
fma=function(a){a=Cb(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 ema))return null}return a};
Fp=function(a,b){a=g.Na[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
gma=function(a){var b=g.Na.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
hma=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Gp&&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)};
nma=function(a){if(!a)return Iea(ima);var b=document.createElement("div").style;jma(a).forEach(function(c){var d=g.ih&&c in kma?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");yb(d,"--")||yb(d,"var")||(c=hma(lma,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=fma(c),c!=null&&hma(mma,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return b.cssText||""};
jma=function(a){g.Sa(a)?a=g.dc(a):(a=g.Kg(a),g.ac(a,"cssText"));return a};
g.Ip=function(a){var b,c=b=0,d=!1;a=a.split(oma);for(var e=0;e<a.length;e++){var f=a[e];g.Hp.test(f)?(b++,c++):pma.test(f)?d=!0:qma.test(f)?c++:rma.test(f)&&(d=!0)}b=c==0?d?1:0:b/c>.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"};
g.Mp=function(a){if(a instanceof Jp||a instanceof Kp||a instanceof Lp)return a;if(typeof a.next=="function")return new Jp(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new Jp(function(){return a[Symbol.iterator]()});
if(typeof a.Lm=="function")return new Jp(function(){return a.Lm()});
throw Error("Not an iterator or iterable.");};
Jp=function(a){this.B=a};
Kp=function(a){this.B=a};
Lp=function(a){Jp.call(this,function(){return a});
this.C=a};
Np=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};
Op=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=zg(a.j,a.x1,b),d=zg(a.x1,a.x2,b);a=zg(a.x2,a.B,b);c=zg(c,d,b);d=zg(d,a,b);return zg(c,d,b)};
sma=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=Op(a,c);var l=(Op(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=Op(a,c);return c};
Pp=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Qp=function(a){return(a=a.exec(g.Fb()))?a[1]:""};
Rp=function(a){return g.Eb(tma,a)>=0};
g.Sp=function(a){g.O.call(this);this.L=1;this.C=[];this.D=0;this.j=[];this.B={};this.U=!!a};
uma=function(a,b,c){g.vi(function(){a.apply(b,c)})};
g.Tp=function(a){this.j=a};
Up=function(a){this.j=a};
vma=function(a){this.data=a};
wma=function(a){return a===void 0||a instanceof vma?a:new vma(a)};
Vp=function(a){this.j=a};
g.xma=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Za()||!!b&&b>g.Za()};
g.Wp=function(a){this.j=a};
yma=function(){};
Xp=function(){};
Yp=function(a){this.j=a;this.B=null};
Zp=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||vb(Error("Storage mechanism: Storage unavailable"))};
$p=function(){var a=null;try{a=g.Na.localStorage||null}catch(b){}Yp.call(this,a)};
zma=function(){var a=null;try{a=g.Na.sessionStorage||null}catch(b){}Yp.call(this,a)};
aq=function(a,b){this.B=a;this.j=b+"::"};
g.bq=function(a){var b=new $p;return b.isAvailable()?a?new aq(b,a):b:null};
cq=function(a,b){this.j=a;this.B=b};
dq=function(a){this.j=[];if(a)a:{if(a instanceof dq){var b=a.Ko();a=a.fn();if(this.j.length<=0){for(var c=this.j,d=0;d<b.length;d++)c.push(new cq(b[d],a[d]));break a}}else b=g.Kg(a),a=g.Jg(a);for(c=0;c<b.length;c++)this.Uh(b[c],a[c])}};
eq=function(){dq.apply(this,arguments)};
fq=function(){};
Ama=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 gq.Hz(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};
hq=function(a){for(var b=a.length;--b>=0;)a[b]=0};
iq=function(a,b,c,d,e){this.e3=a;this.l9=b;this.k9=c;this.O8=d;this.Caa=e;this.RZ=a&&a.length};
jq=function(a,b){this.AY=a;this.JB=0;this.Sv=b};
kq=function(a,b){a.zg[a.pending++]=b&255;a.zg[a.pending++]=b>>>8&255};
lq=function(a,b,c){a.Mi>16-c?(a.Ij|=b<<a.Mi&65535,kq(a,a.Ij),a.Ij=b>>16-a.Mi,a.Mi+=c-16):(a.Ij|=b<<a.Mi&65535,a.Mi+=c)};
mq=function(a,b,c){lq(a,c[b*2],c[b*2+1])};
Bma=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(--b>0);return c>>>1};
Cma=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]=Bma(d[e]++,e))};
Dma=function(a){var b;for(b=0;b<286;b++)a.Kk[b*2]=0;for(b=0;b<30;b++)a.qx[b*2]=0;for(b=0;b<19;b++)a.cj[b*2]=0;a.Kk[512]=1;a.Ps=a.TC=0;a.zn=a.matches=0};
Ema=function(a){a.Mi>8?kq(a,a.Ij):a.Mi>0&&(a.zg[a.pending++]=a.Ij);a.Ij=0;a.Mi=0};
Fma=function(a,b,c){Ema(a);kq(a,c);kq(a,~c);gq.fA(a.zg,a.window,b,c,a.pending);a.pending+=c};
Gma=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]};
nq=function(a,b,c){for(var d=a.Eg[c],e=c<<1;e<=a.xs;){e<a.xs&&Gma(b,a.Eg[e+1],a.Eg[e],a.depth)&&e++;if(Gma(b,d,a.Eg[e],a.depth))break;a.Eg[c]=a.Eg[e];c=e;e<<=1}a.Eg[c]=d};
Hma=function(a,b,c){var d=0;if(a.zn!==0){do{var e=a.zg[a.dF+d*2]<<8|a.zg[a.dF+d*2+1];var f=a.zg[a.HR+d];d++;if(e===0)mq(a,f,b);else{var h=oq[f];mq(a,h+256+1,b);var l=pq[h];l!==0&&(f-=qq[h],lq(a,f,l));e--;h=e<256?rq[e]:rq[256+(e>>>7)];mq(a,h,c);l=sq[h];l!==0&&(e-=tq[h],lq(a,e,l))}}while(d<a.zn)}mq(a,256,b)};
uq=function(a,b){var c=b.AY,d=b.Sv.e3,e=b.Sv.RZ,f=b.Sv.O8,h,l=-1;a.xs=0;a.aB=573;for(h=0;h<f;h++)c[h*2]!==0?(a.Eg[++a.xs]=l=h,a.depth[h]=0):c[h*2+1]=0;for(;a.xs<2;){var m=a.Eg[++a.xs]=l<2?++l:0;c[m*2]=1;a.depth[m]=0;a.Ps--;e&&(a.TC-=d[m*2+1])}b.JB=l;for(h=a.xs>>1;h>=1;h--)nq(a,c,h);m=f;do h=a.Eg[1],a.Eg[1]=a.Eg[a.xs--],nq(a,c,1),d=a.Eg[1],a.Eg[--a.aB]=h,a.Eg[--a.aB]=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.Eg[1]=m++,nq(a,c,1);while(a.xs>=
2);a.Eg[--a.aB]=a.Eg[1];h=b.AY;m=b.JB;d=b.Sv.e3;e=b.Sv.RZ;f=b.Sv.l9;var n=b.Sv.k9,p=b.Sv.Caa,q,r=0;for(q=0;q<=15;q++)a.Lr[q]=0;h[a.Eg[a.aB]*2+1]=0;for(b=a.aB+1;b<573;b++){var t=a.Eg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.Lr[q]++;var u=0;t>=n&&(u=f[t-n]);var y=h[t*2];a.Ps+=y*(q+u);e&&(a.TC+=y*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.Lr[q]===0;)q--;a.Lr[q]--;a.Lr[q+1]+=2;a.Lr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.Lr[q];t!==0;)d=a.Eg[--b],d>m||(h[d*2+1]!==q&&(a.Ps+=(q-
h[d*2+1])*h[d*2],h[d*2+1]=q),t--)}Cma(c,l,a.Lr)};
Ima=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.cj[n*2]+=h:n!==0?(n!==e&&a.cj[n*2]++,a.cj[32]++):h<=10?a.cj[34]++:a.cj[36]++,h=0,e=n,f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Jma=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 mq(a,n,a.cj);while(--h!==0)}else n!==0?(n!==e&&(mq(a,n,a.cj),h--),mq(a,16,a.cj),lq(a,h-3,2)):h<=10?(mq(a,17,a.cj),lq(a,h-3,3)):(mq(a,18,a.cj),lq(a,h-11,7));h=0;e=n;f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Kma=function(a){var b=4093624447,c;for(c=0;c<=31;c++,b>>>=1)if(b&1&&a.Kk[c*2]!==0)return 0;if(a.Kk[18]!==0||a.Kk[20]!==0||a.Kk[26]!==0)return 1;for(c=32;c<256;c++)if(a.Kk[c*2]!==0)return 1;return 0};
vq=function(a,b,c){a.zg[a.dF+a.zn*2]=b>>>8&255;a.zg[a.dF+a.zn*2+1]=b&255;a.zg[a.HR+a.zn]=c&255;a.zn++;b===0?a.Kk[c*2]++:(a.matches++,b--,a.Kk[(oq[c]+256+1)*2]++,a.qx[(b<256?rq[b]:rq[256+(b>>>7)])*2]++);return a.zn===a.DG-1};
xq=function(a,b){a.msg=wq[b];return b};
yq=function(a){for(var b=a.length;--b>=0;)a[b]=0};
zq=function(a){var b=a.state,c=b.pending;c>a.Qe&&(c=a.Qe);c!==0&&(gq.fA(a.output,b.zg,b.rH,c,a.QB),a.QB+=c,b.rH+=c,a.TU+=c,a.Qe-=c,b.pending-=c,b.pending===0&&(b.rH=0))};
Cq=function(a,b){var c=a.Ol>=0?a.Ol:-1,d=a.Gb-a.Ol,e=0;if(a.level>0){a.Fe.MP===2&&(a.Fe.MP=Kma(a));uq(a,a.pL);uq(a,a.SJ);Ima(a,a.Kk,a.pL.JB);Ima(a,a.qx,a.SJ.JB);uq(a,a.RX);for(e=18;e>=3&&a.cj[Lma[e]*2+1]===0;e--);a.Ps+=3*(e+1)+5+5+4;var f=a.Ps+3+7>>>3;var h=a.TC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)lq(a,b?1:0,3),Fma(a,c,d);else if(a.strategy===4||h===f)lq(a,2+(b?1:0),3),Hma(a,Aq,Bq);else{lq(a,4+(b?1:0),3);c=a.pL.JB+1;d=a.SJ.JB+1;e+=1;lq(a,c-257,5);lq(a,d-1,5);lq(a,e-4,4);for(f=0;f<e;f++)lq(a,
a.cj[Lma[f]*2+1],3);Jma(a,a.Kk,c-1);Jma(a,a.qx,d-1);Hma(a,a.Kk,a.qx)}Dma(a);b&&Ema(a);a.Ol=a.Gb;zq(a.Fe)};
Dq=function(a,b){a.zg[a.pending++]=b};
Eq=function(a,b){a.zg[a.pending++]=b>>>8&255;a.zg[a.pending++]=b&255};
Mma=function(a,b){var c=a.Z_,d=a.Gb,e=a.mm,f=a.w0,h=a.Gb>a.Aj-262?a.Gb-(a.Aj-262):0,l=a.window,m=a.ew,n=a.Rq,p=a.Gb+258,q=l[d+e-1],r=l[d+e];a.mm>=a.xZ&&(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.HB=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};
Hq=function(a){var b=a.Aj,c;do{var d=a.r4-a.jc-a.Gb;if(a.Gb>=b+(b-262)){gq.fA(a.window,a.window,b,b,0);a.HB-=b;a.Gb-=b;a.Ol-=b;var e=c=a.UK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Rq[--e],a.Rq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.Fe.Hj===0)break;e=a.Fe;c=a.window;f=a.Gb+a.jc;var h=e.Hj;h>d&&(h=d);h===0?c=0:(e.Hj-=h,gq.fA(c,e.input,e.Fy,h,f),e.state.wrap===1?e.Zd=Fq(e.Zd,c,h,f):e.state.wrap===2&&(e.Zd=Gq(e.Zd,c,h,f)),e.Fy+=h,e.Az+=h,c=h);a.jc+=c;if(a.jc+a.Uh>=3)for(d=a.Gb-a.Uh,
a.Me=a.window[d],a.Me=(a.Me<<a.ws^a.window[d+1])&a.us;a.Uh&&!(a.Me=(a.Me<<a.ws^a.window[d+3-1])&a.us,a.Rq[d&a.ew]=a.head[a.Me],a.head[a.Me]=d,d++,a.Uh--,a.jc+a.Uh<3););}while(a.jc<262&&a.Fe.Hj!==0)};
Iq=function(a,b){for(var c;;){if(a.jc<262){Hq(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.Me=(a.Me<<a.ws^a.window[a.Gb+3-1])&a.us,c=a.Rq[a.Gb&a.ew]=a.head[a.Me],a.head[a.Me]=a.Gb);c!==0&&a.Gb-c<=a.Aj-262&&(a.bf=Mma(a,c));if(a.bf>=3)if(c=vq(a,a.Gb-a.HB,a.bf-3),a.jc-=a.bf,a.bf<=a.QR&&a.jc>=3){a.bf--;do a.Gb++,a.Me=(a.Me<<a.ws^a.window[a.Gb+3-1])&a.us,a.Rq[a.Gb&a.ew]=a.head[a.Me],a.head[a.Me]=a.Gb;while(--a.bf!==0);a.Gb++}else a.Gb+=a.bf,a.bf=0,a.Me=a.window[a.Gb],a.Me=(a.Me<<a.ws^
a.window[a.Gb+1])&a.us;else c=vq(a,0,a.window[a.Gb]),a.jc--,a.Gb++;if(c&&(Cq(a,!1),a.Fe.Qe===0))return 1}a.Uh=a.Gb<2?a.Gb:2;return b===4?(Cq(a,!0),a.Fe.Qe===0?3:4):a.zn&&(Cq(a,!1),a.Fe.Qe===0)?1:2};
Jq=function(a,b){for(var c,d;;){if(a.jc<262){Hq(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.Me=(a.Me<<a.ws^a.window[a.Gb+3-1])&a.us,c=a.Rq[a.Gb&a.ew]=a.head[a.Me],a.head[a.Me]=a.Gb);a.mm=a.bf;a.P1=a.HB;a.bf=2;c!==0&&a.mm<a.QR&&a.Gb-c<=a.Aj-262&&(a.bf=Mma(a,c),a.bf<=5&&(a.strategy===1||a.bf===3&&a.Gb-a.HB>4096)&&(a.bf=2));if(a.mm>=3&&a.bf<=a.mm){d=a.Gb+a.jc-3;c=vq(a,a.Gb-1-a.P1,a.mm-3);a.jc-=a.mm-1;a.mm-=2;do++a.Gb<=d&&(a.Me=(a.Me<<a.ws^a.window[a.Gb+3-1])&a.us,a.Rq[a.Gb&a.ew]=
a.head[a.Me],a.head[a.Me]=a.Gb);while(--a.mm!==0);a.yy=0;a.bf=2;a.Gb++;if(c&&(Cq(a,!1),a.Fe.Qe===0))return 1}else if(a.yy){if((c=vq(a,0,a.window[a.Gb-1]))&&Cq(a,!1),a.Gb++,a.jc--,a.Fe.Qe===0)return 1}else a.yy=1,a.Gb++,a.jc--}a.yy&&(vq(a,0,a.window[a.Gb-1]),a.yy=0);a.Uh=a.Gb<2?a.Gb:2;return b===4?(Cq(a,!0),a.Fe.Qe===0?3:4):a.zn&&(Cq(a,!1),a.Fe.Qe===0)?1:2};
Nma=function(a,b){for(var c,d,e,f=a.window;;){if(a.jc<=258){Hq(a);if(a.jc<=258&&b===0)return 1;if(a.jc===0)break}a.bf=0;if(a.jc>=3&&a.Gb>0&&(d=a.Gb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Gb+258;c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&c===f[++d]&&d<e;);a.bf=258-(e-d);a.bf>a.jc&&(a.bf=a.jc)}a.bf>=3?(c=vq(a,1,a.bf-3),a.jc-=a.bf,a.Gb+=a.bf,a.bf=0):(c=vq(a,0,a.window[a.Gb]),a.jc--,a.Gb++);if(c&&(Cq(a,!1),a.Fe.Qe===0))return 1}a.Uh=0;return b===
4?(Cq(a,!0),a.Fe.Qe===0?3:4):a.zn&&(Cq(a,!1),a.Fe.Qe===0)?1:2};
Oma=function(a,b){for(var c;;){if(a.jc===0&&(Hq(a),a.jc===0)){if(b===0)return 1;break}a.bf=0;c=vq(a,0,a.window[a.Gb]);a.jc--;a.Gb++;if(c&&(Cq(a,!1),a.Fe.Qe===0))return 1}a.Uh=0;return b===4?(Cq(a,!0),a.Fe.Qe===0?3:4):a.zn&&(Cq(a,!1),a.Fe.Qe===0)?1:2};
Kq=function(a,b,c,d,e){this.d$=a;this.Baa=b;this.Raa=c;this.Aaa=d;this.func=e};
Pma=function(){this.Fe=null;this.status=0;this.zg=null;this.wrap=this.pending=this.rH=this.Dn=0;this.Qd=null;this.Mo=0;this.method=8;this.yB=-1;this.ew=this.lV=this.Aj=0;this.window=null;this.r4=0;this.head=this.Rq=null;this.w0=this.xZ=this.strategy=this.level=this.QR=this.Z_=this.mm=this.jc=this.HB=this.Gb=this.yy=this.P1=this.bf=this.Ol=this.ws=this.us=this.eR=this.UK=this.Me=0;this.Kk=new gq.Dr(1146);this.qx=new gq.Dr(122);this.cj=new gq.Dr(78);yq(this.Kk);yq(this.qx);yq(this.cj);this.RX=this.SJ=
this.pL=null;this.Lr=new gq.Dr(16);this.Eg=new gq.Dr(573);yq(this.Eg);this.aB=this.xs=0;this.depth=new gq.Dr(573);yq(this.depth);this.Mi=this.Ij=this.Uh=this.matches=this.TC=this.Ps=this.dF=this.zn=this.DG=this.HR=0};
Qma=function(a,b){if(!a||!a.state||b>5||b<0)return a?xq(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.Hj!==0||c.status===666&&b!==4)return xq(a,a.Qe===0?-5:-2);c.Fe=a;var d=c.yB;c.yB=b;if(c.status===42)if(c.wrap===2)a.Zd=0,Dq(c,31),Dq(c,139),Dq(c,8),c.Qd?(Dq(c,(c.Qd.text?1:0)+(c.Qd.Eu?2:0)+(c.Qd.extra?4:0)+(c.Qd.name?8:0)+(c.Qd.comment?16:0)),Dq(c,c.Qd.time&255),Dq(c,c.Qd.time>>8&255),Dq(c,c.Qd.time>>16&255),Dq(c,c.Qd.time>>24&255),Dq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Dq(c,c.Qd.os&
255),c.Qd.extra&&c.Qd.extra.length&&(Dq(c,c.Qd.extra.length&255),Dq(c,c.Qd.extra.length>>8&255)),c.Qd.Eu&&(a.Zd=Gq(a.Zd,c.zg,c.pending,0)),c.Mo=0,c.status=69):(Dq(c,0),Dq(c,0),Dq(c,0),Dq(c,0),Dq(c,0),Dq(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Dq(c,3),c.status=113);else{var e=8+(c.lV-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Gb!==0&&(e|=32);c.status=113;Eq(c,e+(31-e%31));c.Gb!==0&&(Eq(c,a.Zd>>>16),Eq(c,a.Zd&65535));a.Zd=1}if(c.status===69)if(c.Qd.extra){for(e=
c.pending;c.Mo<(c.Qd.extra.length&65535)&&(c.pending!==c.Dn||(c.Qd.Eu&&c.pending>e&&(a.Zd=Gq(a.Zd,c.zg,c.pending-e,e)),zq(a),e=c.pending,c.pending!==c.Dn));)Dq(c,c.Qd.extra[c.Mo]&255),c.Mo++;c.Qd.Eu&&c.pending>e&&(a.Zd=Gq(a.Zd,c.zg,c.pending-e,e));c.Mo===c.Qd.extra.length&&(c.Mo=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.Eu&&c.pending>e&&(a.Zd=Gq(a.Zd,c.zg,c.pending-e,e)),zq(a),e=c.pending,c.pending===c.Dn)){var f=1;break}f=c.Mo<c.Qd.name.length?
c.Qd.name.charCodeAt(c.Mo++)&255:0;Dq(c,f)}while(f!==0);c.Qd.Eu&&c.pending>e&&(a.Zd=Gq(a.Zd,c.zg,c.pending-e,e));f===0&&(c.Mo=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.Eu&&c.pending>e&&(a.Zd=Gq(a.Zd,c.zg,c.pending-e,e)),zq(a),e=c.pending,c.pending===c.Dn)){f=1;break}f=c.Mo<c.Qd.comment.length?c.Qd.comment.charCodeAt(c.Mo++)&255:0;Dq(c,f)}while(f!==0);c.Qd.Eu&&c.pending>e&&(a.Zd=Gq(a.Zd,c.zg,c.pending-e,e));f===0&&(c.status=103)}else c.status=
103;c.status===103&&(c.Qd.Eu?(c.pending+2>c.Dn&&zq(a),c.pending+2<=c.Dn&&(Dq(c,a.Zd&255),Dq(c,a.Zd>>8&255),a.Zd=0,c.status=113)):c.status=113);if(c.pending!==0){if(zq(a),a.Qe===0)return c.yB=-1,0}else if(a.Hj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return xq(a,-5);if(c.status===666&&a.Hj!==0)return xq(a,-5);if(a.Hj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?Oma(c,b):c.strategy===3?Nma(c,b):Lq[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Qe===0&&(c.yB=
-1),0;if(d===2&&(b===1?(lq(c,2,3),mq(c,256,Aq),c.Mi===16?(kq(c,c.Ij),c.Ij=0,c.Mi=0):c.Mi>=8&&(c.zg[c.pending++]=c.Ij&255,c.Ij>>=8,c.Mi-=8)):b!==5&&(lq(c,0,3),Fma(c,0,0),b===3&&(yq(c.head),c.jc===0&&(c.Gb=0,c.Ol=0,c.Uh=0))),zq(a),a.Qe===0))return c.yB=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(Dq(c,a.Zd&255),Dq(c,a.Zd>>8&255),Dq(c,a.Zd>>16&255),Dq(c,a.Zd>>24&255),Dq(c,a.Az&255),Dq(c,a.Az>>8&255),Dq(c,a.Az>>16&255),Dq(c,a.Az>>24&255)):(Eq(c,a.Zd>>>16),Eq(c,a.Zd&65535));zq(a);c.wrap>0&&
(c.wrap=-c.wrap);return c.pending!==0?0:1};
Mq=function(a){if(!(this instanceof Mq))return new Mq(a);a=this.options=gq.assign({level:-1,method:8,chunkSize:16384,gw:15,Haa:8,strategy:0,to:""},a||{});a.raw&&a.gw>0?a.gw=-a.gw:a.e$&&a.gw>0&&a.gw<16&&(a.gw+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Fe=new Rma;this.Fe.Qe=0;var b=this.Fe;var c=a.level,d=a.method,e=a.gw,f=a.Haa,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=xq(b,-2);else{e===8&&(e=9);
var m=new Pma;b.state=m;m.Fe=b;m.wrap=l;m.Qd=null;m.lV=e;m.Aj=1<<m.lV;m.ew=m.Aj-1;m.eR=f+7;m.UK=1<<m.eR;m.us=m.UK-1;m.ws=~~((m.eR+3-1)/3);m.window=new gq.Hz(m.Aj*2);m.head=new gq.Dr(m.UK);m.Rq=new gq.Dr(m.Aj);m.DG=1<<f+6;m.Dn=m.DG*4;m.zg=new gq.Hz(m.Dn);m.dF=1*m.DG;m.HR=3*m.DG;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Az=b.TU=0;b.MP=2;c=b.state;c.pending=0;c.rH=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Zd=c.wrap===2?0:1;c.yB=0;if(!Sma){d=Array(16);for(f=h=0;f<28;f++)for(qq[f]=
h,e=0;e<1<<pq[f];e++)oq[h++]=f;oq[h-1]=f;for(f=h=0;f<16;f++)for(tq[f]=h,e=0;e<1<<sq[f];e++)rq[h++]=f;for(h>>=7;f<30;f++)for(tq[f]=h<<7,e=0;e<1<<sq[f]-7;e++)rq[256+h++]=f;for(e=0;e<=15;e++)d[e]=0;for(e=0;e<=143;)Aq[e*2+1]=8,e++,d[8]++;for(;e<=255;)Aq[e*2+1]=9,e++,d[9]++;for(;e<=279;)Aq[e*2+1]=7,e++,d[7]++;for(;e<=287;)Aq[e*2+1]=8,e++,d[8]++;Cma(Aq,287,d);for(e=0;e<30;e++)Bq[e*2+1]=5,Bq[e*2]=Bma(e,5);Tma=new iq(Aq,pq,257,286,15);Uma=new iq(Bq,sq,0,30,15);Vma=new iq([],Wma,0,19,7);Sma=!0}c.pL=new jq(c.Kk,
Tma);c.SJ=new jq(c.qx,Uma);c.RX=new jq(c.cj,Vma);c.Ij=0;c.Mi=0;Dma(c);c=0}else c=xq(b,-2);c===0&&(b=b.state,b.r4=2*b.Aj,yq(b.head),b.QR=Lq[b.level].Baa,b.xZ=Lq[b.level].d$,b.w0=Lq[b.level].Raa,b.Z_=Lq[b.level].Aaa,b.Gb=0,b.Ol=0,b.jc=0,b.Uh=0,b.bf=b.mm=2,b.yy=0,b.Me=0);b=c}}else b=-2;if(b!==0)throw Error(wq[b]);a.header&&(b=this.Fe)&&b.state&&b.state.wrap===2&&(b.state.Qd=a.header);if(a.eF){var n;typeof a.eF==="string"?n=Ama(a.eF):Xma.call(a.eF)==="[object ArrayBuffer]"?n=new Uint8Array(a.eF):n=a.eF;
a=this.Fe;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.Zd=Fq(a.Zd,f,h,0));n.wrap=0;h>=n.Aj&&(b===0&&(yq(n.head),n.Gb=0,n.Ol=0,n.Uh=0),c=new gq.Hz(n.Aj),gq.fA(c,f,h-n.Aj,n.Aj,0),f=c,h=n.Aj);c=a.Hj;d=a.Fy;e=a.input;a.Hj=h;a.Fy=0;a.input=f;for(Hq(n);n.jc>=3;){f=n.Gb;h=n.jc-2;do n.Me=(n.Me<<n.ws^n.window[f+3-1])&n.us,n.Rq[f&n.ew]=n.head[n.Me],n.head[n.Me]=f,f++;while(--h);n.Gb=f;n.jc=2;Hq(n)}n.Gb+=n.jc;n.Ol=n.Gb;n.Uh=n.jc;n.jc=0;n.bf=n.mm=2;
n.yy=0;a.Fy=d;a.input=e;a.Hj=c;n.wrap=b;b=0}else b=-2;if(b!==0)throw Error(wq[b]);this.zna=!0}};
Yma=function(a,b){b=b||{};b.e$=!0;b=new Mq(b);b.push(a,!0);if(b.err)throw b.msg||wq[b.err];return b.result};
Zma=function(){var a=g.Da.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.z(g.Da.apply(0,arguments))))}})};
$ma=function(){var a=g.Da.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.z(g.Da.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Zma.apply(null,g.z(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Nq=function(){return Math.random().toString(36).substring(7).split("").join(".")};
ana=function(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:Oq})==="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"+Nq()})==="undefined")throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Oq+'\' 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.'));})};
bna=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(bna)(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:Oq});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:cna});return r},q[dna]=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[dna]=function(){return this},t},q);
return r};
ena=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?eea(a):null:null};
Pq=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Kf(a):null:null};
gna=function(a){a=fna(a);return Xf(a)};
g.Qq=function(a){a=fna(a);return Kf(a)};
fna=function(a){return a===null?"null":a===void 0?"undefined":a};
Rq=function(a){this.xb=Fd(a)};
hna=function(a){var b=a.split(a.slice(0,0)),c=[1725833647,"bAEmi",1178028506,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},
function(d){d.reverse()},
function(d,e){e.splice(e.length,0,d)},
-1778854875,b,-1553519264,252383716,-2052154507,-856080184,-1798450313,b,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
b,-1054541486,function(d,e,f,h,l,m){return e(h,l,m)},
null,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
null,484527317,function(d,e,f,h,l){return e(f,h,l)},
function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
function(d,e,f){var h=d.length;f.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},e.split(""))},
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]))},
1416825181,433822610,-639438614,-1441899530,343566068,629371331,"\u22db,}",660253792,1088407830,533229507,1207155655,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},
676981485,531380896,844866183,701335150,-1609168461,836836316,1425647269,1389439333,-1099193187,-2139278567,1228055390,-1970744596,1389439333,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
1282517832,1888127297,1711825785,-1159532949,-12261631,function(d,e){if(d.length!=0){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f}},
-1259688,-1124383901,-1592827160,-131904266,function(d,e){e.push(d)},
null];c[18]=c;c[20]=c;c[63]=c;try{try{c[new Date("1969-12-31T15:00:43.000-09:00")/1E3]>=6?(((((0,c[51])(c[13]),c[62])(c[43],c[20]),c[25])(c[7],c[21]),c[14])(c[7],c[42]),c[14])(c[7],c[31]):(0,c[22])(((0,c[19])(c[39],c[7]),(0,c[22])((0,c[24])((0,c[37])(),c[1],c[13]),c[24],(0,c[3])(),c[1],c[7]),(0,c[19])(c[55],c[15])),c[57],c[15],c[45]),c[48]>8?(0,c[25])(c[15],c[47]):(0,c[4])(c[18]),c[33]!=2&&(((0,c[19])(c[27],c[15])>>>(((((0,c[14])(c[15],c[8]),c[4])(c[13]),c[51])(c[15]),c[19])(c[40],c[13]),(0,c[25])(c[18],
c[10]),c[25])(c[18],c[new Date("1970-01-01T04:45:44.000+04:45")/1E3]))*((0,c[22])((0,c[14])(c[63],c[33]),c[0],c[57],c[30]),(0,c[2])(c[40],c[38]),(0,c[61])(c[44],c[36])),(0,c[64])((0,c[1])((0,c[14])(),c[43],c[49]),c[28],c[57]),c[47])(c[0],c[40]),(c[38]!==-5||((0,c[28])(c[49]),0))&&(0,c[39])(c[62],c[11]),c[6]!==-3&&(c[26]<9&&(((0,c[10])(c[39]),c[10])(c[22])+(0,c[28])(c[31]),"true")||(0,c[41])((0,c[21])(c[39],c[17]),c[16],(0,c[50])(c[42],c[51]),c[42],c[7])),c[52]!=-3&&(c[9]>=-4?(0,c[16])(c[31],c[5]):
(0,c[38])(c[31],c[8])),c[9]>new Date("1969-12-31T18:29:54.000-05:30")/1E3&&(c[59]!=10||((0,c[46])((0,c[16])(c[39],c[61]),c[49],(0,c[62])(),c[25],c[31]),""))&&(0,c[46])((0,c[16])(c[31],c[19]),c[10],c[31])}catch(d){(0,c[43])(c[35],c[39]),(((0,c[43])(c[11],c[44]),c[38])(c[18],c[54]),c[43])(c[53],c[39]),(0,c[46])((0,c[49])((0,c[62])(),c[25],c[31])&(0,c[38])(c[44],c[56]),c[16],c[18],c[15])}try{c[7]>-8&&(c[60]===9&&((0,c[28])(c[18]),2)||(0,c[10])(c[44]))}catch(d){(0,c[22])(c[2],c[21])}finally{c[51]<=8&&
(c[1]!=3?(0,c[27])(c[34],c[29]):(0,c[16])((0,c[38])(),c[40],c[34])),c[41]!==-4&&(((((0,c[49])(c[23],c[10]),c[49])(c[43],c[0]),(0,c[19])((0,c[44])(c[47],c[41]),c[27],c[21],c[5]),c[24])(c[40],c[32]),c[7])(c[47],c[10]),(0,c[60])(c[11],c[47])),(c[20]!==-8||(((0,c[61])(c[45]),c[40])((0,c[27])(),c[64],c[50]),(0,c[61])(c[50]),0))&&((0,c[39])(c[47],c[49]),c[43])((0,c[new Date("1970-01-01T01:00:02.000+01:00")/1E3])(c[45],c[10]),c[2],c[65],c[3])}}catch(d){return"enhanced_except_yZwBtuP-_w8_"+a}return b.join("")};
g.Sq=function(a){this.name=a};
ina=function(a){this.xb=Fd(a)};
Tq=function(a){this.xb=Fd(a)};
Uq=function(a){this.xb=Fd(a)};
jna=function(a){this.xb=Fd(a)};
Vq=function(a){this.xb=Fd(a)};
Wq=function(a){this.xb=Fd(a)};
Xq=function(a){this.xb=Fd(a)};
Yq=function(a){this.xb=Fd(a)};
Zq=function(a){this.xb=Fd(a)};
$q=function(a){this.xb=Fd(a)};
ar=function(a){this.xb=Fd(a)};
br=function(a){this.xb=Fd(a)};
er=function(a){this.xb=Fd(a)};
fr=function(a){this.xb=Fd(a)};
gr=function(a){this.xb=Fd(a)};
hr=function(a){this.xb=Fd(a,500)};
ir=function(a){this.xb=Fd(a)};
jr=function(a){this.xb=Fd(a)};
kna=function(a){this.xb=Fd(a)};
lna=function(){return g.Pa("yt.ads.biscotti.lastId_")||""};
mna=function(a){g.Oa("yt.ads.biscotti.lastId_",a)};
lr=function(){var a=arguments,b=kr;a.length>1?b[a[0]]=a[1]:a.length===1&&Object.assign(b,a[0])};
g.mr=function(a,b){return a in kr?kr[a]:b};
nr=function(a){var b=kr.EXPERIMENT_FLAGS;return b?b[a]:void 0};
nna=function(a){or.forEach(function(b){return b(a)})};
g.qr=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.pr(b)}}:a};
g.pr=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.mr("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),lr("ERRORS",b));nna(a)};
rr=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.mr("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),lr("ERRORS",f))};
sr=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=ona(f[0]||""),l=ona(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.ec(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(sr);n.args=[{key:p,value:f[1],query:a,method:pna===q?"unchanged":q}];qna.hasOwnProperty(p)||rr(n)}}return c};
tr=function(a){var b=[];g.Eg(a,function(c,d){var e=g.ig(d);g.oc(Array.isArray(c)?c:[c],function(f){f==""?b.push(e):b.push(e+"="+g.ig(f))})});
return b.join("&")};
ur=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return sr(a,"&")};
vr=function(a){return a.split(",").map(function(b){return ur(b)})};
g.wr=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),ur(a.length>1?a[1]:a[0])):{}};
xr=function(a,b){return rna(a,b||{},!0)};
yr=function(a,b){return rna(a,b||{},!1)};
rna=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=ur(e[1]||"");for(var f in b)if(c||!g.Lg(e,f))e[f]=b[f];return g.cj(a,e)+d};
zr=function(a){if(!b)var b=window.location.href;var c=g.Wi(1,a),d=g.Xi(a);c&&d?(a=a.match(Vi),b=b.match(Vi),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Xi(b)===d&&(Number(g.Wi(4,b))||null)===(Number(g.Wi(4,a))||null):!0;return a};
Ar=function(a){a||(a=document.location.href);a=g.Wi(1,a);return a!==null&&a==="https"};
Br=function(a){a=sna(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
tna=function(a){a=sna(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};
sna=function(a){a=g.Xi(a);return a!==null?a.split(".").reverse():null};
ona=function(a){return a&&a.match(una)?a:jg(a)};
Er=function(a){var b=Cr;a=a===void 0?lna():a;var c=Object,d=c.assign,e=Dr(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=Sia(!1,b.j.top);l={};var A=A===void 0?g.Na:A;m=new kp;"SVGElement"in A&&"createElementNS"in
A.document&&m.set(0);n=dia();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=Yla(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Dl(b.B),l.wgl=!!Al.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Dr=function(a){var b={};b.dt=vna;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?Al:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=Al.screen)==null?void 0:f.height;var h;b.u_w=(h=Al.screen)==null?void 0:h.width;var l;b.u_ah=(l=Al.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=Al.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=Al.screen)==null?void 0:
n.colorDepth}catch(p){}return b};
xna=function(){if(!wna)return null;var a=wna();return"open"in a?a:null};
g.Gr=function(a){switch(Fr(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Fr=function(a){return a&&"status"in a?a.status:-1};
g.Hr=function(a,b){typeof a==="function"&&(a=g.qr(a));return window.setTimeout(a,b)};
g.Ir=function(a,b){typeof a==="function"&&(a=g.qr(a));return window.setInterval(a,b)};
g.Jr=function(a){window.clearTimeout(a)};
g.Kr=function(a){window.clearInterval(a)};
g.Mr=function(a){a=Lr(a);return typeof a==="string"&&a==="false"?!1:!!a};
g.Nr=function(a,b){a=Lr(a);return a===void 0&&b!==void 0?b:Number(a||0)};
Or=function(){return g.mr("EXPERIMENTS_TOKEN","")};
Lr=function(a){return g.mr("EXPERIMENT_FLAGS",{})[a]};
Pr=function(){for(var a=[],b=g.mr("EXPERIMENTS_FORCED_FLAGS",{}),c=g.x(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.mr("EXPERIMENT_FLAGS",{});d=g.x(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};
Qr=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.qr(b)(n)}
c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=xna();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.Mr("debug_forward_web_query_parameters")&&(a=yna(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=zna(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){rr(q)}}n.send(d);return n};
zna=function(a,b){b=b===void 0?{}:b;var c=zr(a),d=g.mr("INNERTUBE_CLIENT_NAME"),e=g.Mr("web_ajax_ignore_global_headers_if_set"),f;for(f in Ana){var h=g.mr(Ana[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.mr("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.Xi(a)?!1:!0))){m=a;var n;if(n=g.Mr("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&tna(m))m=Ui(g.Wi(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.Xi(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.Xi(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.Xi(a)||(b["X-YouTube-Ad-Signals"]=
tr(Er()));return b};
Cna=function(a,b){var c=g.Xi(a);g.Mr("debug_handle_relative_url_for_query_forward_killswitch")||!c&&zr(a)&&(c=document.location.hostname);var d=Ui(g.Wi(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=ur(b),f={};g.oc(Bna,function(h){e[h]&&(f[h]=e[h])});
return yr(a,f)};
Sr=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.Rr(a,b)};
Fna=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=Dna(a,b);var d=Ena(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.Jr(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.Hr(function(){f||(f=!0,g.Jr(h),b.onFetchTimeout.call(b.context||g.Na))},a))}else g.Rr(a,b)};
g.Rr=function(a,b){var c=b.format||"JSON";a=Dna(a,b);var d=Ena(a,b),e=!1,f=Gna(a,function(m){if(!e){e=!0;l&&g.Jr(l);var n=g.Gr(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=Hna(a,c,m,b.convertToSafeHtml);n&&(n=Ina(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.Hr(function(){e||(e=!0,f.abort(),g.Jr(l),h.call(b.context||g.Na,f))},d)}return f};
Dna=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.mr("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=xr(a,b);return a};
Ena=function(a,b){var c=g.mr("XSRF_FIELD_NAME"),d=g.mr("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.mr("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Xi(a)&&!b.withCredentials&&g.Xi(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.Mr("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=ur(e),g.Tg(e,f),e=b.postBodyFormat&&
b.postBodyFormat==="JSON"?JSON.stringify(e):g.bj(e));f=e||f&&!g.Og(f);!Jna&&f&&b.method!=="POST"&&(Jna=!0,g.pr(Error("AJAX request with postData should use POST")));return e};
Hna=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,rr(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)?Kna(a):null)e={},g.oc(a.getElementsByTagName("*"),function(h){e[h.tagName]=Lna(h)})}d&&Mna(e);
return e};
Mna=function(a){if(g.Ta(a))for(var b in a)b==="html_content"||jba(b,"_html")?a[b]=Xf(a[b]):Mna(a[b])};
Ina=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}};
Kna=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
Lna=function(a){var b="";g.oc(a.childNodes,function(c){b+=c.nodeValue});
return b};
Ur=function(a,b){var c=g.Rg(b),d;return(new g.Bi(function(e,f){c.onSuccess=function(h){g.Gr(h)?e(new Nna(h)):f(new Tr("Request failed, status="+Fr(h),"net.badstatus",h))};
c.onError=function(h){f(new Tr("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Tr("Request timed out","net.timeout",h))};
d=g.Rr(a,c)})).wl(function(e){if(e instanceof Ii){var f;
(f=d)==null||f.abort()}return Ei(e)})};
g.Vr=function(a,b,c,d){function e(l,m,n){return l.wl(function(p){if(m<=0||Fr(p.xhr)===403)return Ei(new Tr("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(Ur(a,b),m-1,q)})})}
function f(l){return new g.Bi(function(m){setTimeout(m,l)})}
var h=h===void 0?-1:h;return e(Ur(a,b),c-1,d)};
Tr=function(a,b,c){sb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Nna=function(a){this.xhr=a};
Wr=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null};
Xr=function(a){var b=new Wr;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b};
Yr=function(a){var b=new Wr;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b};
g.as=function(a,b,c,d,e){Zr||$r.set(""+a,b,{KG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})};
g.bs=function(a,b){if(!Zr)return $r.get(""+a,b)};
g.cs=function(a,b,c){Zr||$r.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)};
Ona=function(){if(g.Mr("embeds_web_enable_cookie_detection_fix")){if(!g.Na.navigator.cookieEnabled)return!1}else if(!$r.isEnabled())return!1;if(!$r.isEmpty())return!0;g.Mr("embeds_web_enable_cookie_detection_fix")?$r.set("TESTCOOKIESENABLED","1",{KG:60,Nea:"none",secure:!0}):$r.set("TESTCOOKIESENABLED","1",{KG:60});if($r.get("TESTCOOKIESENABLED")!=="1")return!1;$r.remove("TESTCOOKIESENABLED");return!0};
g.Q=function(a,b){if(a)return a[b.name]};
ds=function(a){var b=g.mr("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Yi(a)));return a};
Pna=function(a){var b={};g.Mr("json_condensed_response")&&(b.prettyPrint="false");return a=yr(a,b)};
es=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:zr(a)?"same-origin":"cors",credentials:zr(a)?"same-origin":"include"};b={};for(var d=g.x(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};
fs=function(){var a=/Chrome\/(\d+)/.exec(g.Fb());return a?parseFloat(a[1]):NaN};
hs=function(){return g.gs("android")&&g.gs("chrome")&&!(g.gs("trident/")||g.gs("edge/"))&&!g.gs("cobalt")};
Qna=function(){return g.gs("armv7")||g.gs("aarch64")||g.gs("android")};
g.is=function(){return g.gs("cobalt")};
js=function(){return g.gs("cobalt")&&g.gs("appletv")};
ks=function(){return g.gs("(ps3; leanback shell)")||g.gs("ps3")&&g.is()};
Rna=function(){return g.gs("(ps4; leanback shell)")||g.gs("ps4")&&g.is()};
g.Sna=function(){return g.is()&&(g.gs("ps4 vr")||g.gs("ps4 pro vr"))};
ls=function(){var a=/WebKit\/([0-9]+)/.exec(g.Fb());return!!(a&&parseInt(a[1],10)>=600)};
ms=function(){var a=/WebKit\/([0-9]+)/.exec(g.Fb());return!!(a&&parseInt(a[1],10)>=602)};
Tna=function(){return g.gs("iemobile")||g.gs("windows phone")&&g.gs("edge")};
ps=function(){return(ns||os)&&g.gs("applewebkit")&&!g.gs("version")&&(!g.gs("safari")||g.gs("gsa/"))};
rs=function(){return g.qs&&g.gs("version/")};
ts=function(){return g.gs("smart-tv")&&g.gs("samsung")};
g.gs=function(a){var b=g.Fb();return b?b.toLowerCase().indexOf(a)>=0:!1};
us=function(){return sea()||ps()||rs()?!0:g.mr("EOM_VISITOR_DATA")?!1:!0};
vs=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1};
ws=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
xs=function(a,b){return b===void 0||b===null?a:Number(b)};
ys=function(a,b){return b===void 0||b===null?a:b.toString()};
zs=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(Una))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN};
As=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};
Vna=function(a){return Bs(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.Cs=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
Bs=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?ws(b,c.embeddedPlayerMode,Wna):b};
Es=function(a){sb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof Ds;this.isTimeout=a instanceof Tr&&a.errorCode=="net.timeout";this.isCanceled=a instanceof Ii};
Ds=function(){sb.call(this,"Biscotti ID is missing from server")};
Xna=function(){if(g.Mr("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!us())return Error("User has not consented - not fetching biscotti id.");var a=g.mr("PLAYER_VARS",{});if(g.Pg(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Vna(a))return Error("Biscotti id fetching has been disabled for pfl.")};
aoa=function(){var a=Xna();if(a!==void 0)return Ei(a);Fs||(Fs=Ur("//googleads.g.doubleclick.net/pagead/id",Yna).then(Zna).wl(function(b){return $na(2,b)}));
return Fs};
Zna=function(a){a=a.xhr.responseText;if(!yb(a,")]}'"))throw new Ds;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new Ds;a=a.id;mna(a);Fs=Yr(a);boa(18E5,2);return a};
$na=function(a,b){b=new Es(b);mna("");Fs=Xr(b);a>0&&boa(12E4,a-1);throw b;};
boa=function(a,b){g.Hr(function(){Ur("//googleads.g.doubleclick.net/pagead/id",Yna).then(Zna,function(c){return $na(b,c)}).wl(g.xi)},a)};
coa=function(){try{var a=g.Pa("yt.ads.biscotti.getId_");return a?a():aoa()}catch(b){return Ei(b)}};
eoa=function(a){a&&(a.dataset?a.dataset[doa()]="true":dea(a))};
foa=function(a){return a?a.dataset?a.dataset[doa()]:a.getAttribute("data-loaded"):null};
doa=function(){return goa.loaded||(goa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
hoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Gs+"VisibilityState";if(b in a)return a[b]};
Hs=function(a,b){var c;Qm(a,function(d){c=b[d];return!!c});
return c};
Is=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()};
Ls=function(a){var b;g.Js()?Ks()==a&&(b=document):b=a;return b&&(a=Hs(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
ioa=function(a){return g.Xb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
joa=function(){var a=document;return g.Xb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.Js=function(){return!!Hs(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
Ks=function(a){a=a===void 0?!1:a;var b=Hs(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Ms=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 koa||(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){}};
loa=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}};
moa=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 Ng(Ns,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.Ta(e[4])&&g.Ta(d)&&g.Qg(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Os=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=moa(a,b,c,d);if(e)return e;e=++noa.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Ms(l);if(!uh(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Ms(l);
l.currentTarget=a;return c.call(a,l)};
h=g.qr(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),ooa()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Ns[e]=[a,b,c,h,d];return e};
qoa=function(a){return poa(a,function(b){return g.xp(b,"ytp-ad-has-logging-urls")})};
poa=function(a,b){var c=document.body||document;return g.Os(c,"click",function(d){var e=uh(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Ps=function(a){a&&(typeof a=="string"&&(a=[a]),g.oc(a,function(b){if(b in Ns){var c=Ns[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?ooa()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Ns[b]}}))};
Qs=function(a){for(var b in Ns)Ns[b][0]==a&&g.Ps(b)};
Rs=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};
Ss=function(a){this.U=a;this.j=null;this.D=0;this.L=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.ra=g.Os(window,"mousemove",(0,g.Xa)(this.Z,this));this.W=g.Ir((0,g.Xa)(this.qa,this),25)};
Ts=function(a){g.O.call(this);this.U=[];this.rb=a||this};
Us=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.Vs=function(a,b){for(;a.U.length;){var c=a.U.pop(),d=void 0;b&&roa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
Ws=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.Rg(b);this.assets=a.assets||{};this.attrs=a.attrs||g.Rg(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||{}};
soa=function(a){a instanceof Ws||(a=new Ws(a));return a};
g.Zs=function(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.Xs)():Ys())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.$s=function(a){var b=Ys(),c=(0,g.Xs)();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};
toa=function(){var a=(0,g.Xs)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.at=function(a){try{var b=Ys(),c=(0,g.Xs)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.bt=function(){return g.$s("yt-remote-session-screen-id")};
uoa=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})};
ct=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"}};
dt=function(){this.m3=!0};
voa=function(){dt.instance||(dt.instance=new dt);return dt.instance};
woa=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}};
xoa=function(){this.j=g.mr("ALT_PREF_COOKIE_NAME","PREF");this.B=g.mr("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.bs(this.j);a&&this.parse(a)};
g.ft=function(){et||(et=new xoa);return et};
g.gt=function(a,b){return!!((yoa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
it=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=yoa(c)||0;d=b?d|a:d&~a;d===0?delete ht[c]:(b=d.toString(16),ht[c]=b.toString())};
jt=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
kt=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
yoa=function(a){a=ht[a]!==void 0?ht[a].toString():null;return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
zoa=function(){var a=g.Na.navigator;return a?a.connection:void 0};
Boa=function(){var a=zoa();if(a){var b=Aoa[a.type||"unknown"]||"CONN_UNKNOWN";a=Aoa[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}};
Doa=function(){var a=zoa();if(a!=null&&a.effectiveType)return Coa.hasOwnProperty(a.effectiveType)?Coa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.lt=function(a){var b=g.Da.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.z(b))};
g.nt=function(){try{return g.mt(),!0}catch(a){return!1}};
g.mt=function(a){if(g.mr("DATASYNC_ID")!==void 0)return g.mr("DATASYNC_ID");throw new g.lt("Datasync ID not set",a===void 0?"unknown":a);};
ot=function(){this.j=new WeakMap};
g.qt=function(a,b,c){return pt(b,0,c)};
Eoa=function(a){var b=g.Pa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
rt=function(){ot.apply(this,arguments)};
g.tt=function(){rt.instance||(rt.instance=new rt);return rt.instance};
g.ut=function(){return!!g.Pa("yt.scheduler.instance")};
pt=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.Hr(a,c||0)};
vt=function(a,b){(a=g.Pa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
wt=function(a){this.j=(a=g.bq(a))?new Vp(a):null;this.B=document.domain||window.location.hostname};
zt=function(){var a;return(a=xt())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Foa=function(){var a={};for(At=new Bt(a.handleError===void 0?Ct:a.handleError,a.logEvent===void 0?g.Dt:a.logEvent);Et.length>0;)switch(a=Et.shift(),a.type){case "ERROR":At.Sj(a.payload);break;case "EVENT":At.logEvent(a.eventType,a.payload)}};
Gt=function(a){Ft||(At?At.Sj(a):(Et.push({type:"ERROR",payload:a}),Et.length>10&&Et.shift()))};
Ht=function(a,b){Ft||(At?At.logEvent(a,b):(Et.push({type:"EVENT",eventType:a,payload:b}),Et.length>10&&Et.shift()))};
It=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
Jt=function(a){return a.substr(0,a.indexOf(":"))||a};
g.Kt=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Goa[a]:c;d=d===void 0?Hoa[a]:d;e=e===void 0?Ioa[a]:e;g.lt.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.Kt.prototype)};
Lt=function(a,b){g.Kt.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Goa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Lt.prototype)};
Mt=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,Mt.prototype)};
Ot=function(a,b,c,d){b=Jt(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.Kt)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.Kt("QUOTA_EXCEEDED",a);if(g.Nt&&e.name==="UnknownError")return new g.Kt("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof Mt)return new g.Kt("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Joa.some(function(f){return e.message.includes(f)}))return new g.Kt("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(e.name==="AbortError")return new g.Kt("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",tM:e.name})];e.level="WARNING";return e};
g.Pt=function(a,b,c){var d=zt();return new g.Kt("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
Koa=function(a){if(!a)throw Error();throw a;};
Loa=function(a){return a};
Qt=function(a){this.j=a};
g.Rt=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.x(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.x(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)}};
Moa=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.Rt?St(a,b,f,d,e):d(f)}catch(h){e(h)}};
Noa=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.Rt?St(a,b,f,d,e):d(f)}catch(h){e(h)}};
St=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.Rt?St(a,b,f,d,e):d(f)},function(f){e(f)})};
Ooa=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)};
Poa=function(a){return new Promise(function(b,c){Ooa(a,b,c)})};
Tt=function(a){return new g.Rt(new Qt(function(b,c){Ooa(a,b,c)}))};
Ut=function(a,b){return new g.Rt(new Qt(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Qoa=function(a,b){this.request=a;this.cursor=b};
Roa=function(a){return Tt(a).then(function(b){return b?new Qoa(a,b):null})};
g.Soa=function(a){a.cursor.continue(void 0);return Roa(a.request)};
Toa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.Vt)());this.B=!1};
g.Xt=function(a,b,c){a=a.j.createObjectStore(b,c);return new Wt(a)};
Yt=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.au=function(a,b,c){return g.Zt(a,[b],{mode:"readwrite",Qb:!0},function(d){return g.$t(d.objectStore(b),c)})};
g.Zt=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,y;return g.I(function(A){switch(A.j){case 1:var C={mode:"readonly",Qb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Qb?3:1;h=0;case 2:if(l){A.Ga(4);break}h++;m=Math.round((0,g.Vt)());g.wa(A,5);n=a.j.transaction(b,e.mode);C=new bu(n);C=Uoa(C,d);return g.G(A,C,7);case 7:return p=A.B,q=Math.round((0,g.Vt)()),Voa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.ya(A);t=Math.round((0,g.Vt)());
u=Ot(r,a.j.name,b.join(),a.j.version);if((y=u instanceof g.Kt&&!u.j)||h>=f)Voa(a,m,t,h,u,b.join(),e),l=u;A.Ga(2);break;case 4:return A.return(Promise.reject(l))}})};
Voa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.Kt&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&Ht("QUOTA_EXCEEDED",{dbName:Jt(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.Kt&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=2147483648&&(c=0),Ht("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Woa(a,!1,d,f,b,h.tag),Gt(e)):Woa(a,!0,d,f,b,
h.tag)};
Woa=function(a,b,c,d,e,f){Ht("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Wt=function(a){this.j=a};
g.cu=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Xoa=function(a,b){return g.du(a,{query:b},function(c){return c.delete().then(function(){return g.eu(c)})}).then(function(){})};
Yoa=function(a,b,c){var d=[];return g.du(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.eu(e)}).then(function(){return d})};
$oa=function(a){return"getAllKeys"in IDBObjectStore.prototype?Tt(a.j.getAllKeys(void 0,void 0)):Zoa(a)};
Zoa=function(a){var b=[];return g.apa(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Soa(c)}).then(function(){return b})};
g.$t=function(a,b,c){return Tt(a.j.put(b,c))};
g.du=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return fu(a).then(function(d){return Ut(d,c)})};
g.apa=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 Roa(a).then(function(e){return Ut(e,c)})};
bu=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.Kt;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)}})})};
Uoa=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.x(d).next().value})};
bpa=function(a){this.j=a};
cpa=function(a,b,c){var d=[];return g.gu(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.eu(e)}).then(function(){return d})};
g.gu=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return fu(a).then(function(d){return Ut(d,c)})};
hu=function(a,b){this.request=a;this.cursor=b};
fu=function(a){return Tt(a).then(function(b){return b?new hu(a,b):null})};
g.eu=function(a){a.cursor.continue(void 0);return fu(a.request)};
dpa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Toa(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.Hfa,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"&&Ht("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:Jt(a)});var u=f(),y=new bu(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(){Ht("IDB_UNEXPECTEDLY_CLOSED",{dbName:Jt(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
epa=function(a,b,c){c=c===void 0?{}:c;return dpa(a,b,c)};
iu=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.I(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,Poa(c),4);
if(h.j!=2)return g.xa(h,0);f=g.ya(h);throw Ot(f,a,"",-1);})};
ju=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
fpa=function(a,b){return new g.Kt("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.ku=function(a,b){if(!b)throw g.Pt("openWithToken",Jt(a.name));return a.open()};
gpa=function(a,b){var c;return g.I(function(d){if(d.j==1)return g.G(d,g.ku(lu,b),2);c=d.B;return d.return(g.Zt(c,["databases"],{Qb:!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.$t(f,a).then(function(){})})}))})};
mu=function(a,b){var c;return g.I(function(d){if(d.j==1)return a?g.G(d,g.ku(lu,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
hpa=function(a,b){var c,d;return g.I(function(e){return e.j==1?(c=[],g.G(e,g.ku(lu,b),2)):e.j!=3?(d=e.B,g.G(e,g.Zt(d,["databases"],{Qb:!0,mode:"readonly"},function(f){c.length=0;return g.du(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.eu(h)})}),3)):e.return(c)})};
ipa=function(a,b){return hpa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)};
jpa=function(){var a,b,c,d;return g.I(function(e){switch(e.j){case 1:a=zt();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(nu&&ls()&&!ms()||g.ou)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,gpa(d,pu),4);case 4:return g.G(e,mu("yt-idb-test-do-not-use",pu),5);case 5:return e.return(!0);case 2:return g.ya(e),e.return(!1)}})};
kpa=function(){if(qu!==void 0)return qu;Ft=!0;return qu=jpa().then(function(a){Ft=!1;var b;if((b=xt())!=null&&b.j){var c;b={hasSucceededOnce:((c=zt())==null?void 0:c.hasSucceededOnce)||a};var d;(d=xt())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
ru=function(){return g.Pa("ytglobal.idbToken_")||void 0};
g.tu=function(){var a=ru();return a?Promise.resolve(a):kpa().then(function(b){(b=b?pu:void 0)&&g.Oa("ytglobal.idbToken_",b);return b})};
lpa=function(a){if(!g.nt())throw a=new g.Kt("AUTH_INVALID",{dbName:a}),Gt(a),a;var b=g.mt();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
mpa=function(a,b,c,d){var e,f,h,l,m,n;return g.I(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.G(p,g.tu(),2);case 2:h=p.B;if(!h)throw l=g.Pt("openDbImpl",a,b),g.Mr("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),Gt(l),l;It(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:lpa(a);g.wa(p,3);return g.G(p,gpa(m,h),5);case 5:return g.G(p,epa(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,mu(m.actualName,
h),9);case 9:g.xa(p,8);break;case 7:g.ya(p);case 8:throw n;}})};
npa=function(a,b,c){c=c===void 0?{}:c;return mpa(a,b,!1,c)};
opa=function(a,b,c){c=c===void 0?{}:c;return mpa(a,b,!0,c)};
ppa=function(a,b){b=b===void 0?{}:b;var c,d;return g.I(function(e){if(e.j==1)return g.G(e,g.tu(),2);if(e.j!=3){c=e.B;if(!c)return e.return();It(a);d=lpa(a);return g.G(e,iu(d.actualName,b),3)}return g.G(e,mu(d.actualName,c),0)})};
qpa=function(a,b,c){a=a.map(function(d){return g.I(function(e){return e.j==1?g.G(e,iu(d.actualName,b),2):g.G(e,mu(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
rpa=function(a){var b=b===void 0?{}:b;var c,d;return g.I(function(e){if(e.j==1)return g.G(e,g.tu(),2);if(e.j!=3){c=e.B;if(!c)return e.return();It(a);return g.G(e,ipa(a,c),3)}d=e.B;return g.G(e,qpa(d,b,c),0)})};
spa=function(a,b){b=b===void 0?{}:b;var c;return g.I(function(d){if(d.j==1)return g.G(d,g.tu(),2);if(d.j!=3){c=d.B;if(!c)return d.return();It(a);return g.G(d,iu(a,b),3)}return g.G(d,mu(a,c),0)})};
uu=function(a,b){ju.call(this,a,b);this.options=b;It(a)};
tpa=function(a,b){var c;return function(){c||(c=new uu(a,b));return c}};
g.vu=function(a,b){return tpa(a,b)};
wu=function(a){return g.ku(upa(),a)};
vpa=function(a,b,c,d){var e,f,h;return g.I(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,g.Vt)()},g.G(l,wu(c),2);case 2:return f=l.B,g.G(l,f.clear("hotConfigStore"),3);case 3:return g.G(l,g.au(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
wpa=function(a,b,c,d,e){var f,h,l;return g.I(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,g.Vt)()},g.G(m,wu(d),2);case 2:return h=m.B,g.G(m,h.clear("coldConfigStore"),3);case 3:return g.G(m,g.au(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
xpa=function(a){var b,c;return g.I(function(d){return d.j==1?g.G(d,wu(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.Zt(b,["coldConfigStore"],{mode:"readwrite",Qb:!0},function(e){return g.gu(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
ypa=function(a){var b,c;return g.I(function(d){return d.j==1?g.G(d,wu(a),2):d.j!=3?(b=d.B,c=void 0,g.G(d,g.Zt(b,["hotConfigStore"],{mode:"readwrite",Qb:!0},function(e){return g.gu(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
zpa=function(){return g.I(function(a){return g.G(a,rpa("ytGcfConfig"),0)})};
xu=function(){g.O.call(this);this.B=[];this.j=[];var a=g.Pa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.z(a)),this.j=a):(this.j=[],g.Oa("yt.gcf.config.hotUpdateCallbacks",this.j))};
Du=function(){var a=this;this.G=!1;this.C=this.D=0;this.L=new xu;this.Qc={ypa:function(){a.G=!0},
xoa:function(){return a.j},
Eqa:function(b){yu(a,b)},
Ws:function(b){a.Ws(b)},
yqa:function(b){zu(a,b)},
B9:function(){return a.coldHashData},
J9:function(){return a.hotHashData},
Poa:function(){return a.B},
Hoa:function(){return Au()},
Joa:function(){return Bu()},
Ioa:function(){return g.Pa("yt.gcf.config.coldHashData")},
Koa:function(){return g.Pa("yt.gcf.config.hotHashData")},
Xqa:function(){Apa(a)},
rqa:function(){a.Ws(void 0);Cu(a);delete Du.instance},
Bqa:function(b){a.C=b},
Doa:function(){return a.C}}};
Bpa=function(){if(!Du.instance){var a=new Du;Du.instance=a}return Du.instance};
Epa=function(a){var b;g.I(function(c){if(c.j==1)return g.Mr("start_client_gcf")||g.Mr("delete_gcf_config_db")?g.Mr("start_client_gcf")?g.G(c,g.tu(),3):c.Ga(2):c.return();c.j!=2&&((b=c.B)&&g.nt()&&!g.Mr("delete_gcf_config_db")?(a.G=!0,Apa(a)):(Cpa(a),Dpa(a)));return g.Mr("delete_gcf_config_db")?g.G(c,zpa(),0):c.Ga(0)})};
Eu=function(){var a;return(a=Bu())!=null?a:g.mr("RAW_HOT_CONFIG_GROUP")};
Fpa=function(a){var b,c,d,e,f,h;return g.I(function(l){switch(l.j){case 1:if(a.B)return l.return(Bu());if(!a.G)return b=g.Pt("getHotConfig IDB not initialized"),rr(b),l.return(Promise.reject(b));c=ru();d=g.mr("TIME_CREATED_MS");if(!c){e=g.Pt("getHotConfig token error");rr(e);l.Ga(2);break}return g.G(l,ypa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return yu(a,f.config),a.Ws(f.hashData),l.return(Bu());case 2:Dpa(a);if(!(c&&a.B&&a.hotHashData)){l.Ga(4);break}return g.G(l,vpa(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(Bu()):(h=new g.lt("Config not available in ytConfig"),rr(h),l.return(Promise.reject(h)))}})};
Hpa=function(a){var b,c,d,e,f,h;return g.I(function(l){switch(l.j){case 1:if(a.j)return l.return(Au());if(!a.G)return b=g.Pt("getColdConfig IDB not initialized"),rr(b),l.return(Promise.reject(b));c=ru();d=g.mr("TIME_CREATED_MS");if(!c){e=g.Pt("getColdConfig");rr(e);l.Ga(2);break}return g.G(l,xpa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return zu(a,f.config),Gpa(a,f.configData),Cu(a,f.hashData),l.return(Au());case 2:Cpa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ga(4);break}return g.G(l,wpa(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(Au()):(h=new g.lt("Config not available in ytConfig"),rr(h),l.return(Promise.reject(h)))}})};
Apa=function(a){if(!a.B||!a.j){if(!ru()){var b=g.Pt("scheduleGetConfigs");rr(b)}a.D||(a.D=g.jp.aj(function(){return g.I(function(c){switch(c.j){case 1:return g.wa(c,2),g.G(c,Fpa(a),4);case 4:g.xa(c,3);break;case 2:g.ya(c);case 3:return g.wa(c,5),g.G(c,Hpa(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))}};
Ipa=function(a,b,c){var d,e,f;return g.I(function(h){switch(h.j){case 1:if(!g.Mr("start_client_gcf")){h.Ga(0);break}c&&yu(a,c);a.Ws(b);d=ru();if(!d){h.Ga(3);break}if(c){h.Ga(4);break}return g.G(h,ypa(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.G(h,vpa(c,b,d),3);case 3:if(c)for(var l=c,m=g.x(a.L.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.va(h)}})};
Jpa=function(a,b,c){var d,e,f,h;return g.I(function(l){if(l.j==1){if(!g.Mr("start_client_gcf"))return l.Ga(0);Cu(a,b);return(d=ru())?c?l.Ga(4):g.G(l,xpa(d),5):l.Ga(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ga(0);h=c.configData;return g.G(l,wpa(c,b,h,d),0)})};
Kpa=function(){var a=Bpa(),b=(0,g.Vt)()-a.C;if(!(a.C!==0&&b<g.Nr("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.Vt)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
Cpa=function(a){zu(a,g.mr("RAW_COLD_CONFIG_GROUP"));Cu(a,g.mr("SERIALIZED_COLD_HASH_DATA"));var b;Gpa(a,(b=a.j)==null?void 0:b.configData)};
Dpa=function(a){yu(a,g.mr("RAW_HOT_CONFIG_GROUP"));a.Ws(g.mr("SERIALIZED_HOT_HASH_DATA"))};
yu=function(a,b){a.B=b;g.Oa("yt.gcf.config.hotConfigGroup",a.B||null)};
zu=function(a,b){a.j=b;g.Oa("yt.gcf.config.coldConfigGroup",a.j||null)};
Cu=function(a,b){a.coldHashData=b;g.Oa("yt.gcf.config.coldHashData",a.coldHashData||null)};
Gpa=function(a,b){a.configData=b;g.Oa("yt.gcf.config.coldConfigData",a.configData||null)};
Bu=function(){return g.Pa("yt.gcf.config.hotConfigGroup")};
Au=function(){return g.Pa("yt.gcf.config.coldConfigGroup")};
Lpa=function(){return"INNERTUBE_API_KEY"in kr&&"INNERTUBE_API_VERSION"in kr};
g.Fu=function(){return{innertubeApiKey:g.mr("INNERTUBE_API_KEY"),innertubeApiVersion:g.mr("INNERTUBE_API_VERSION"),fL:g.mr("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),mR:g.mr("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),h_:g.mr("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.mr("INNERTUBE_CONTEXT_CLIENT_VERSION"),oR:g.mr("INNERTUBE_CONTEXT_HL"),nR:g.mr("INNERTUBE_CONTEXT_GL"),i_:g.mr("INNERTUBE_HOST_OVERRIDE")||"",k_:!!g.mr("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),j_:!!g.mr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.mr("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.Gu=function(a){var b={client:{hl:a.oR,gl:a.nR,clientName:a.mR,clientVersion:a.innertubeContextClientVersion,configInfo:a.fL}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Na.devicePixelRatio;c&&c!=1&&(b.client.screenDensityFloat=String(c));c=Or();c!==""&&(b.client.experimentsToken=c);c=Pr();c.length>0&&(b.request={internalExperimentFlags:c});Mpa(a,void 0,b);Npa(void 0,b);Opa(void 0,b);Ppa(a,void 0,b);Qpa(void 0,b);g.Mr("start_client_gcf")&&Rpa(void 0,b);g.mr("DELEGATED_SESSION_ID")&&
!g.Mr("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.mr("DELEGATED_SESSION_ID")});!g.Mr("fill_delegate_context_in_gel_killswitch")&&(a=g.mr("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=g.mr("INNERTUBE_CONTEXT");var d;if(g.Mr("enable_persistent_device_token")&&(a==null?0:(d=a.client)==null?0:d.rolloutToken)){var e;b.client.rolloutToken=a==null?void 0:(e=a.client)==null?void 0:e.rolloutToken}d=Object;e=d.assign;a=b.client;
c={};for(var f=g.x(Object.entries(ur(g.mr("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.x(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?c.deviceMake=l:h==="cmodel"?c.deviceModel=l:h==="cbr"?c.browserName=l:h==="cbrver"?c.browserVersion=l:h==="cos"?c.osName=l:h==="cosver"?c.osVersion=l:h==="cplatform"&&(c.platform=l)}b.client=e.call(d,a,c);return b};
Mpa=function(a,b,c){a=a.mR;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=ke(b,Uq,96)||new Uq;var d=ct();d=Object.keys(Spa).indexOf(d);d=d===-1?null:d;d!==null&&xe(c,3,d);le(b,Uq,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=ct())};
Npa=function(a,b){var c=g.Pa("yt.embedded_player.embed_url");c&&(a?(b=ke(a,Zq,7)||new Zq,ve(b,4,c),le(a,Zq,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Opa=function(a,b){var c;if(g.Mr("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,pd(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}};
Ppa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=ke(b,Tq,62))!=null?d:new Tq;ve(c,6,a.appInstallData);le(b,Tq,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Qpa=function(a,b){var c=Boa();c&&(a?xe(a,61,Tpa[c]):b&&(b.client.connectionType=c));g.Mr("web_log_effective_connection_type")&&(c=Doa())&&(a?xe(a,94,Upa[c]):b&&(b.client.effectiveConnectionType=c))};
Vpa=function(a,b,c){c=c===void 0?{}:c;var d={};g.mr("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.mr("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.mr("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.HX||g.mr("AUTHORIZATION");b||(a?b="Bearer "+g.Pa("gapi.auth.getToken")().access_token:(a=voa().DF(Hu),g.Mr("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Rpa=function(a,b){var c=Kpa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=ke(a,Tq,62))!=null?f:new Tq;d=ve(b,1,d);ve(d,3,e).Ws(c);le(a,Tq,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))}};
Iu=function(a,b){this.version=a;this.args=b};
Pu=function(a,b){this.topic=a;this.j=b};
Uu=function(a,b){var c=Tu();c&&c.publish.call(c,a.toString(),a,b)};
Ypa=function(a){var b=Wpa,c=Tu();if(!c)return 0;var d=c.subscribe(b.toString(),function(e,f){var h=g.Pa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(Vu[d])try{if(f&&b instanceof Pu&&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.dw){var n=new l;l.dw=n.version}var p=l.dw}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.dc(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.pr(q)}},Xpa[b.toString()]?g.ut()?g.jp.aj(h):g.Hr(h,0):h())});
Vu[d]=!0;Wu[b.toString()]||(Wu[b.toString()]=[]);Wu[b.toString()].push(d);return d};
aqa=function(){var a=Zpa,b=Ypa(function(c){a.apply(void 0,arguments);$pa(b)});
return b};
$pa=function(a){var b=Tu();b&&(typeof a==="number"&&(a=[a]),g.oc(a,function(c){b.unsubscribeByKey(c);delete Vu[c]}))};
Tu=function(){return g.Pa("ytPubsub2Pubsub2Instance")};
Xu=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&Uu("meta_logging_csi_event",{timerName:a,Uqa:b})};
bqa=function(){Yu||(Yu=Pq(g.mr("WORKER_SERIALIZATION_URL")));return Yu||void 0};
$u=function(){var a=bqa();Zu||a===void 0||(Zu=new Worker(g.Lf(a),void 0));return Zu};
cqa=function(){return typeof Worker==="function"&&bqa()?!0:!1};
eqa=function(){if(cqa()&&!av){var a=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var d=bv.get(c.key);d&&(dqa(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),bv.delete(c.key))}},b=$u();
b&&(b.addEventListener("message",a),b.onerror=function(){bv.clear()},av=!0)}};
ev=function(a,b,c,d,e){e=e===void 0?!1:e;var f={startTime:(0,g.Vt)(),ticks:{},infos:{}};if(cv)try{var h=fqa(b);if(h!=null&&(h>gqa||h<hqa))d(a,c);else{if(g.Mr("gzip_gel_with_worker")&&(g.Mr("initial_gzip_use_main_thread")&&!iqa||!g.Mr("initial_gzip_use_main_thread"))){av||eqa();var l=$u();if(l&&!e){bv.set(dv,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:dv});dv++;return}}var m=Yma(jqa(b));dqa(m,f,a,c,d)}}catch(n){rr(n),d(a,c)}else d(a,c)};
dqa=function(a,b,c,d,e){iqa=!1;var f=(0,g.Vt)();b.ticks.gelc=f;fv++;g.Mr("disable_compression_due_to_performance_degredation")&&f-b.startTime>=kqa&&(gv++,g.Mr("abandon_compression_after_N_slow_zips")?fv===g.Nr("compression_disable_point")&&gv>lqa&&(cv=!1):cv=!1);mqa(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
nqa=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.Vt)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Pa("yt.logging.gzipForFetch",!1):!0;if(cv&&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=fqa(h);if(l!=null&&(l>gqa||l<hqa))return a;c=b?{level:1}:void 0;f=Yma(jqa(h),c);var m=(0,g.Vt)();e.ticks.gelc=m;if(b){fv++;if((g.Mr("disable_compression_due_to_performance_degredation")||g.Mr("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=kqa)if(gv++,g.Mr("abandon_compression_after_N_slow_zips")||g.Mr("abandon_compression_after_N_slow_zips_lr")){b=gv/fv;var n=lqa/g.Nr("compression_disable_point");fv>0&&fv%g.Nr("compression_disable_point")===0&&b>=n&&(cv=!1)}else cv=!1;mqa(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return rr(p),a}}else return a};
fqa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return rr(b),null}};
mqa=function(a){g.Mr("gel_compression_csi_killswitch")||!g.Mr("log_gel_compression_latency")&&!g.Mr("log_gel_compression_latency_lr")||Xu("gel_compression",a,{sampleRate:.1})};
iv=function(a){var b=this;this.yJ=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.ZA=function(){};
this.now=Date.now;this.hF=!1;this.Qc={Aqa:function(p){b.Gf=p},
Yqa:function(){b.XC()},
Z7:function(){b.gP()},
eG:function(p){return g.I(function(q){return g.G(q,b.eG(p),0)})},
aN:function(p,q){return b.aN(p,q)},
dN:function(){b.dN()}};
var c;this.r3=(c=a.r3)!=null?c:100;var d;this.s2=(d=a.s2)!=null?d:1;var e;this.d2=(e=a.d2)!=null?e:2592E6;var f;this.V1=(f=a.V1)!=null?f:12E4;var h;this.q2=(h=a.q2)!=null?h:5E3;var l;this.Gf=(l=a.Gf)!=null?l:void 0;this.aK=!!a.aK;var m;this.HJ=(m=a.HJ)!=null?m:.1;var n;this.IM=(n=a.IM)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.ZA&&(this.ZA=a.ZA);a.hF&&(this.hF=a.hF);a.yJ&&(this.yJ=a.yJ);this.fb=a.fb;this.Wo=a.Wo;this.Wh=a.Wh;this.Ch=a.Ch;this.sendFn=a.sendFn;this.gT=a.gT;this.kS=
a.kS;hv(this)&&(!this.fb||this.fb("networkless_logging"))&&oqa(this)};
oqa=function(a){hv(a)&&!a.hF&&(a.j=!0,a.aK&&Math.random()<=a.HJ&&a.Wh.f8(a.Gf),a.dN(),a.Ch.Ah()&&a.XC(),a.Ch.listen(a.gT,a.XC.bind(a)),a.Ch.listen(a.kS,a.gP.bind(a)))};
rqa=function(a,b){if(!hv(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.I(function(p){switch(p.j){case 1:h=pqa(f);(l=qqa(f))&&a.fb&&a.fb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.fb&&a.fb("nwl_consider_error_code")&&h||a.fb&&!a.fb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.IM)){p.Ga(2);break}if(!a.Ch.hN){p.Ga(3);break}return g.G(p,a.Ch.hN(),3);case 3:if(a.Ch.Ah()){p.Ga(2);break}c(e,f);if(!a.fb||!a.fb("nwl_consider_error_code")||((m=b)==null?void 0:
m.id)===void 0){p.Ga(6);break}return g.G(p,a.Wh.QT(b.id,a.Gf,!1),6);case 6:return p.return();case 2:if(a.fb&&a.fb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.IM)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ga(8);break}return b.sendCount<a.s2?g.G(p,a.Wh.QT(b.id,a.Gf,!0,l?!1:void 0),12):g.G(p,a.Wh.zA(b.id,a.Gf),8);case 12:a.Wo.aj(function(){a.Ch.Ah()&&a.XC()},a.q2);
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.I(function(l){if(l.j==1)return((h=b)==null?void 0:h.id)===void 0?l.Ga(2):g.G(l,a.Wh.zA(b.id,a.Gf),2);a.Ch.Dy&&a.fb&&a.fb("vss_network_hint")&&a.Ch.Dy(!0);d(e,f);g.va(l)})};
return b};
jv=function(a,b){a.s4&&!a.Ch.Ah()?a.s4(b):a.handleError(b)};
hv=function(a){return!!a.Gf||a.yJ};
pqa=function(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0};
qqa=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)};
sqa=function(){if(kv)return kv();var a={};kv=g.vu("LogsDatabaseV2",{Js:(a.LogsRequestsStore={po:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.Xt(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.cu(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&Yt(b,"sapisid");c(9)&&Yt(b,"SWHealthLog")},
version:9});return kv()};
lv=function(a){return g.ku(sqa(),a)};
uqa=function(a,b){var c,d,e,f;return g.I(function(h){if(h.j==1)return c={startTime:(0,g.Vt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.G(h,lv(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.mr("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.G(h,g.au(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.Vt)();tqa(c);return h.return(f)})};
vqa=function(a,b){var c,d,e,f,h,l,m,n;return g.I(function(p){if(p.j==1)return c={startTime:(0,g.Vt)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.G(p,lv(b),2);if(p.j!=3)return d=p.B,e=g.mr("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.Vt)()],l=IDBKeyRange.bound(f,h),m="prev",g.Mr("use_fifo_for_networkless")&&(m="next"),n=void 0,g.G(p,g.Zt(d,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(q){return g.gu(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.Vt)();tqa(c);return p.return(n)})};
wqa=function(a,b){var c;return g.I(function(d){if(d.j==1)return g.G(d,lv(b),2);c=d.B;return d.return(g.Zt(c,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.$t(f,h).then(function(){return h})})}))})};
xqa=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.I(function(f){if(f.j==1)return g.G(f,lv(b),2);e=f.B;return f.return(g.Zt(e,["LogsRequestsStore"],{mode:"readwrite",Qb:!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.$t(l,m).then(function(){return m})):g.Rt.resolve(void 0)})}))})};
yqa=function(a,b){var c;return g.I(function(d){if(d.j==1)return g.G(d,lv(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
zqa=function(a){var b,c;return g.I(function(d){if(d.j==1)return g.G(d,lv(a),2);b=d.B;c=(0,g.Vt)()-2592E6;return g.G(d,g.Zt(b,["LogsRequestsStore"],{mode:"readwrite",Qb:!0},function(e){return g.du(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.eu(f)})})}),0)})};
Aqa=function(){g.I(function(a){return g.G(a,rpa("LogsDatabaseV2"),0)})};
tqa=function(a){g.Mr("nwl_csi_killswitch")||Xu("networkless_performance",a,{sampleRate:1})};
Cqa=function(a){return g.ku(Bqa(),a)};
Dqa=function(a){var b,c;g.I(function(d){if(d.j==1)return g.G(d,Cqa(a),2);b=d.B;c=(0,g.Vt)()-2592E6;return g.G(d,g.Zt(b,["SWHealthLog"],{mode:"readwrite",Qb:!0},function(e){return g.du(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.eu(f)})})}),0)})};
Eqa=function(a){var b;return g.I(function(c){if(c.j==1)return g.G(c,Cqa(a),2);b=c.B;return g.G(c,b.clear("SWHealthLog"),0)})};
g.mv=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.is())a&&(a=g.Of(g.Sf(a)),a===g.Rf.toString()||a.startsWith("data")?a="":(a=g.Yf(Zg(a)).toString(),a=g.ig(g.Qi(a))),g.zb(a)||(a=lh("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),ah(a).body.appendChild(a)));else if(e)Qr(a,b,"POST",e,d);else if(g.mr("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Qr(a,b,"GET","",d,void 0,f,h);else{b:{try{var l=new vla({url:a});if(l.C&&
l.B||l.D){var m=Ui(g.Wi(5,a));var n=!(!m||!m.endsWith("/aclk")||ej(a,"ri")!=="1");break b}}catch(p){}n=!1}n?Fqa(a)?(b&&b(),c=!0):c=!1:c=!1;c||Gqa(a,b)}};
Fqa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1};
Gqa=function(a,b){var c=new Image,d=""+Hqa++;nv[d]=c;c.onload=c.onerror=function(){b&&nv[d]&&b();delete nv[d]};
c.src=a};
Iqa=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
pv=function(){ov||(ov=new wt("yt.offline"));return ov};
Jqa=function(a){if(g.Mr("offline_error_handling")){var b=pv().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);pv().set("errors",b,2592E3,!0)}};
qv=function(){this.j=new Map;this.B=!1};
rv=function(){if(!qv.instance){var a=g.Pa("yt.networkRequestMonitor.instance")||new qv;g.Oa("yt.networkRequestMonitor.instance",a);qv.instance=a}return qv.instance};
tv=function(){g.mi.call(this);var a=this;this.B=!1;this.j=Xla();this.j.listen("networkstatus-online",function(){if(a.B&&g.Mr("offline_error_handling")){var b=pv().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.lt(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.pr(d)}pv().set("errors",{},2592E3,!0)}}})};
Kqa=function(){if(!tv.instance){var a=g.Pa("yt.networkStatusManager.instance")||new tv;g.Oa("yt.networkStatusManager.instance",a);tv.instance=a}return tv.instance};
g.uv=function(a){a=a===void 0?{}:a;g.mi.call(this);var b=this;this.j=this.D=0;this.B=Kqa();var c=g.Pa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Lqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Lqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Lqa=function(a,b){a.rateLimit?a.j?(g.jp.Dk(a.D),a.D=g.jp.aj(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.Vt)())},a.rateLimit-((0,g.Vt)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.Vt)()):a.dispatchEvent(b)};
wv=function(){var a=iv.call;vv||(vv=new g.uv({Mpa:!0,Xna:!0}));a.call(iv,this,{Wh:{f8:zqa,zA:yqa,iZ:vqa,waa:wqa,QT:xqa,set:uqa},Ch:vv,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;rr(new g.lt(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.pr(b)},
ZA:rr,sendFn:Mqa,now:g.Vt,s4:Jqa,Wo:g.tt(),gT:"publicytnetworkstatus-online",kS:"publicytnetworkstatus-offline",aK:!0,HJ:.1,IM:g.Nr("potential_esf_error_limit",10),fb:g.Mr,hF:!(g.nt()&&g.Xi(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.Cj;g.Mr("networkless_immediately_drop_all_requests")&&Aqa();spa("LogsDatabaseV2")};
xv=function(){var a=g.Pa("yt.networklessRequestController.instance");a||(a=new wv,g.Oa("yt.networklessRequestController.instance",a),g.Mr("networkless_logging")&&g.tu().then(function(b){a.Gf=b;oqa(a);a.C.resolve();a.aK&&Math.random()<=a.HJ&&a.Gf&&Dqa(a.Gf);g.Mr("networkless_immediately_drop_sw_health_store")&&Nqa(a)}));
return a};
Nqa=function(a){var b;g.I(function(c){if(!a.Gf)throw b=g.Pt("clearSWHealthLogsDb"),b;return c.return(Eqa(a.Gf).catch(function(d){a.handleError(d)}))})};
Mqa=function(a,b,c,d){d=d===void 0?!1:d;b=g.Mr("web_fp_via_jspb")?Object.assign({},b):b;g.Mr("use_cfr_monitor")&&Oqa(a,b);if(g.Mr("use_request_time_ms_header"))b.headers&&zr(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Vt)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Vt)())}c&&Object.keys(b).length===0?g.mv(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),ev(a,b.postBody,
b,g.Rr,d)):ev(a,JSON.stringify(b.postParams),b,Sr,d):g.Rr(a,b)};
yv=function(a,b){g.Mr("use_event_time_ms_header")&&zr(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Vt)())));return b};
Oqa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){rv().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){rv().requestComplete(a,!0);d(e,f)}};
g.zv=function(a){this.config_=null;a?this.config_=a:Lpa()&&(this.config_=g.Fu())};
g.Av=function(a,b,c,d){function e(n){try{if((n===void 0?0:n)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?xv().writeThenSend(m,f):xv().sendAndWrite(m,f);else if(d.compress){var p=!d.networklessOptions.writeThenSend;if(f.postBody){var q=f.postBody;typeof q!=="string"&&(q=JSON.stringify(f.postBody));ev(m,q,f,g.Rr,p)}else ev(m,JSON.stringify(f.postParams),f,Sr,p)}else g.Mr("web_all_payloads_via_jspb")?g.Rr(m,f):Sr(m,f)}catch(r){if(r.name==="InvalidAccessError")rr(Error("An extension is blocking network request."));
else throw r;}}
!g.mr("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&rr(new g.lt("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.lt("innertube xhrclient not ready",b,c,d),g.pr(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(n,p){if(d.onSuccess)d.onSuccess(p)},
onFetchSuccess:function(n){if(d.onSuccess)d.onSuccess(n)},
onError:function(n,p){if(d.onError)d.onError(p)},
onFetchError:function(n){if(d.onError)d.onError(n)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.i_;h&&(c=h);h=a.config_.k_||!1;var l=Vpa(h,c,d);Object.assign(f.headers,l);f.headers.Authorization&&!c&&h&&(f.headers["x-origin"]=window.location.origin);var m=xr(""+c+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"});g.Pa("ytNetworklessLoggingInitializationOptions")&&Pqa.isNwlInitialized?kpa().then(function(n){e(n)}):e(!1)};
g.Fv=function(a,b,c){var d=g.Bv();if(d&&b){var e=d.subscribe(a,function(){function f(){Cv[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)}
var h=arguments;try{g.Dv[a]?f():g.Hr(f,0)}catch(l){g.pr(l)}},c);
Cv[e]=!0;Ev[a]||(Ev[a]=[]);Ev[a].push(e);return e}return 0};
Qqa=function(a){var b=g.Fv("LOGGED_IN",function(c){a.apply(void 0,arguments);g.Gv(b)})};
g.Gv=function(a){var b=g.Bv();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.oc(a,function(c){b.unsubscribeByKey(c);delete Cv[c]}))};
g.Hv=function(a,b){var c=g.Bv();return c?c.publish.apply(c,arguments):!1};
Sqa=function(a){var b=g.Bv();if(b)if(b.clear(a),a)Rqa(a);else for(var c in Ev)Rqa(c)};
g.Bv=function(){return g.Na.ytPubsubPubsubInstance};
Rqa=function(a){Ev[a]&&(a=Ev[a],g.oc(a,function(b){Cv[b]&&delete Cv[b]}),a.length=0)};
g.Iv=function(a,b,c){Tqa(a,b,c===void 0?null:c)};
Tqa=function(a,b,c){c=c===void 0?null:c;var d=Uqa(a),e=document.getElementById(d),f=e&&foa(e),h=e&&!f;f?b&&b():(b&&(f=g.Fv(d,b),b=""+g.Va(b),Vqa[b]=f),h||(e=Wqa(a,d,function(){foa(e)||(eoa(e),g.Hv(d),g.Hr(function(){Sqa(d)},0))},c)))};
Wqa=function(a,b,c,d){d=d===void 0?null:d;var e=g.mh("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.dg(e,g.Qq(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Uqa=function(a){var b=document.createElement("a");g.Uf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+mg(a)};
Jv=function(a,b){if(a===b)a=!0;else if(Array.isArray(a)&&Array.isArray(b))a=g.mc(a,b,Jv);else if(g.Ta(a)&&g.Ta(b))a:if(g.Kg(a).length!=g.Kg(b).length)a=!1;else{for(var c in a)if(!Jv(a[c],b[c])){a=!1;break a}a=!0}else a=!1;return a};
Mv=function(a){var b=g.Da.apply(1,arguments);if(!Kv(a)||b.some(function(d){return!Kv(d)}))throw Error("Only objects may be merged.");
b=g.x(b);for(var c=b.next();!c.done;c=b.next())Lv(a,c.value)};
Lv=function(a,b){for(var c in b)if(Kv(b[c])){if(c in a&&!Kv(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Lv(a[c],b[c])}else if(Nv(b[c])){if(c in a&&!Nv(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Xqa(a[c],b[c])}else a[c]=b[c];return a};
Xqa=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Kv(c)?a.push(Lv({},c)):Nv(c)?a.push(Xqa([],c)):a.push(c);return a};
Kv=function(a){return typeof a==="object"&&!Array.isArray(a)};
Nv=function(a){return typeof a==="object"&&Array.isArray(a)};
Ov=function(a){g.O.call(this);this.B=a};
Pv=function(a){Ov.call(this,!0);this.j=a};
Yqa=function(a,b){g.O.call(this);var c=this;this.C=[];this.U=!1;this.B=0;this.G=this.L=this.D=!1;this.qa=null;var d=(0,g.Xa)(a,b);this.j=new g.qp(function(){return d(c.qa)},300);
g.P(this,this.j);this.Z=this.W=Infinity};
Zqa=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};
Rv=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(Qv)for(c=1,d=0;d<Qv.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^Qv.charCodeAt(d),c++;return b};
g.Sv=function(a){a=Rv(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.$qa=function(){return g.Ml(Rv(16),function(a){return(a&15).toString(16)}).join("")};
ara=function(){var a={};var b=a.Xda===void 0?!1:a.Xda;a=a.U8===void 0?!0:a.U8;if(g.Pa("_lact",window)==null){var c=parseInt(g.mr("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Oa("_lact",c,window);g.Oa("_fact",c,window);c==-1&&Tv();g.Os(document,"keydown",Tv);g.Os(document,"keyup",Tv);g.Os(document,"mousedown",Tv);g.Os(document,"mouseup",Tv);b?g.Os(window,"touchmove",function(){Uv("touchmove",200)},{passive:!0}):(g.Os(window,"resize",function(){Uv("resize",200)}),a&&g.Os(window,"scroll",
function(){Uv("scroll",200)}));
new Ss(function(){Uv("mouse",100)});
g.Os(document,"touchstart",Tv,{passive:!0});g.Os(document,"touchend",Tv,{passive:!0})}};
Uv=function(a,b){Vv[a]||(Vv[a]=!0,g.jp.aj(function(){Tv();Vv[a]=!1},b))};
Tv=function(){g.Pa("_lact",window)==null&&(ara(),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()};
Wv=function(){var a=g.Pa("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
Xv=function(a){this.name=a};
Yv=function(a){this.key=a};
bra=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.Qc={Roa:function(){return new Map(a.j)}}};
Zv=function(a,b){a.j.set(b.yH,b);var c=a.C.get(b.yH);if(c)try{c.yC(a.resolve(b.yH))}catch(d){c.FT(d)}};
aw=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.iV!==void 0)var e=d.iV;else if(d.kga)e=d[$v]?cra(a,d[$v],c):[],e=d.kga.apply(d,g.z(e));else if(d.b4){e=d.b4;var f=e[$v]?cra(a,e[$v],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.z(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Pqa||a.B.set(b,e);
return e};
cra=function(a,b,c){return b?b.map(function(d){return d instanceof Yv?aw(a,d.key,c,!0):aw(a,d,c)}):[]};
cw=function(){bw||(bw=new bra);return bw};
ew=function(){var a,b;return"h5vcc"in dw&&((a=dw.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=dw.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in dw&&dw.performance.mark&&dw.performance.measure?2:0};
fw=function(a){var b=ew();switch(b){case 1:dw.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:dw.performance.mark(a+"-start");break;case 0:break;default:ed(b,"unknown trace type")}};
dra=function(a){var b=ew();switch(b){case 1:dw.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";dw.performance.mark(c);dw.performance.measure(a,b,c);break;case 0:break;default:ed(b,"unknown trace type")}};
era=function(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)};
fra=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.tt():d;this.C=c;this.scheduler=d;this.B=new g.Cj;this.j=a;for(a={Nx:0};a.Nx<this.j.length;a={AM:void 0,Nx:a.Nx},a.Nx++)a.AM=this.j[a.Nx],c=function(e){return function(){e.AM.GR();b.j[e.Nx].LM=!0;b.j.every(function(f){return f.LM===!0})&&b.B.resolve()}}(a),d=pt(c,gw(this,a.AM)),this.j[a.Nx]=Object.assign({},a.AM,{GR:c,
jobId:d})};
gra=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return gw(a,a.j[e])-gw(a,a.j[d])});
b=g.x(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],c.jobId===void 0||c.LM||(a.scheduler.Dk(c.jobId),pt(c.GR,10))};
gw=function(a,b){var c;return(c=b.priority)!=null?c:a.C};
iw=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};hw&&fw(this.state)};
hra=function(a,b){var c=b.filter(function(e){return jw(a,e)===10}),d=b.filter(function(e){return jw(a,e)!==10});
return a.D.Lqa?function(){var e=g.Da.apply(0,arguments);return g.I(function(f){if(f.j==1)return g.G(f,a.Gea.apply(a,[c].concat(g.z(e))),2);a.L2.apply(a,[d].concat(g.z(e)));g.va(f)})}:function(){var e=g.Da.apply(0,arguments);
a.Hea.apply(a,[c].concat(g.z(e)));a.L2.apply(a,[d].concat(g.z(e)))}};
jw=function(a,b){var c,d;return(d=(c=a.C)!=null?c:b.priority)!=null?d:0};
kw=function(a){hw&&a&&fw(a)};
lw=function(a){hw&&a&&dra(a)};
jra=function(a,b,c){ira&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
mw=function(a){if(g.Mr("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){era(b)}};
nw=function(a){iw.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.L},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
kra=function(){ow||(ow=new nw);return ow};
pw=function(){var a=this;this.store={};this.j=0;this.B={};this.Qc={Foa:function(){return a.j}}};
tw=function(a,b){var c=qw(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(d.length<=1&&qw(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(rw(b.auth,h[0])){var l=b.isJspb;rw(l===void 0?"undefined":l?"true":"false",h[1])&&rw(b.cttAuthInfo,h[2])&&(l=b.tier,l=l===void 0?"undefined":JSON.stringify(l),rw(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
rw=function(a,b){return a===void 0||a==="undefined"?!0:a===b};
qw=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("/")};
uw=function(){this.D=this.j=this.B=0;this.C=!1};
vw=function(){var a=g.Pa("yt.logging.ims");a||(a=new pw,g.Oa("yt.logging.ims",a));return a};
nra=function(){if(cqa()&&!lra){var a=function(c){c=c.data;if(c.op==="serializedGelBatch"){var d=ww.get(c.key);d&&(mra(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),ww.delete(c.key))}},b=$u();
b&&(b.addEventListener("message",a),b.onerror=function(){ww.clear()});
lra=!0}};
tra=function(a,b){if(a.endpoint==="log_event"){xw(a);var c=yw(a),d=ora(a.payload)||"",e=pra(d),f=200;if(e){if(e.enabled===!1&&!g.Mr("web_payload_policy_disabled_killswitch"))return;f=qra(e.tier);if(f===400){rra(a,b);return}}zw[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};vw().storePayload(e,a.payload);sra(b,c,!1,e,Aw(d))}};
vra=function(a,b,c){if(b.endpoint==="log_event"){xw(void 0,b);var d=yw(b,!0),e=pra(a),f=200;if(e){if(e.enabled===!1&&!g.Mr("web_payload_policy_disabled_killswitch"))return;f=qra(e.tier);if(f===400){ura(a,b,c);return}}zw[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};vw().storePayload(e,Ve(b.payload));sra(c,d,!0,e,Aw(a))}};
sra=function(a,b,c,d,e){function f(){Bw({writeThenSend:!0},g.Mr("flush_only_full_queue")?b:void 0,c,d.tier)}
c=c===void 0?!1:c;e=e===void 0?!1:e;a&&(Cw=new a);a=g.Nr("tvhtml5_logging_max_batch_ads_fork")||g.Nr("tvhtml5_logging_max_batch")||g.Nr("web_logging_max_batch")||100;var h=(0,g.Vt)(),l=Dw(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=vw().getSequenceCount(d));e>=1E3?f():e>=a?Ew||(Ew=Fw(function(){f();Ew=void 0},0)):h-m>=10&&(wra(c,d.tier),l.D=h)};
rra=function(a,b){if(a.endpoint==="log_event"){g.Mr("more_accurate_gel_parser")&&vw().storePayload({isJspb:!1},a.payload);xw(a);var c=yw(a),d=new Map;d.set(c,[a.payload]);var e=ora(a.payload)||"";b&&(Cw=new b);return new g.Bi(function(f,h){Cw&&Cw.isReady()?Gw(d,Cw,f,h,{bypassNetworkless:!0},!0,Aw(e)):f()})}};
ura=function(a,b,c){if(b.endpoint==="log_event"){xw(void 0,b);var d=yw(b,!0),e=new Map;e.set(d,[Ve(b.payload)]);c&&(Cw=new c);return new g.Bi(function(f){Cw&&Cw.isReady()?Hw(e,Cw,f,{bypassNetworkless:!0},!0,Aw(a)):f()})}};
yw=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 jr;c.videoId?d.setVideoId(c.videoId):c.playlistId&&ee(d,2,Iw,rd(c.playlistId));Jw[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),Kw[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Bw=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.Bi(function(e,f){var h=Dw(c,d),l=h.C;h.C=!1;Lw(h.B);Lw(h.j);h.j=0;Cw&&Cw.isReady()?d===void 0&&g.Mr("enable_web_tiered_gel")?xra(e,f,a,b,c,300,l):xra(e,f,a,b,c,d,l):(wra(c,d),e())})};
xra=function(a,b,c,d,e,f,h){var l=Cw;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.Mr("enable_web_tiered_gel")?vw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):vw().extractMatchingEntries(q),m.set(d,b),Hw(m,l,a,c,!1,h)):(m=g.Mr("enable_web_tiered_gel")?vw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):vw().extractMatchingEntries(q),n.set(d,m),
Gw(n,l,a,b,c,!1,h));else if(e){b=g.x(Object.keys(zw));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.Mr("enable_web_tiered_gel")?vw().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):vw().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.Mr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Mr("web_fp_via_jspb_and_json"))&&delete zw[n];Hw(m,l,a,c,!1,h)}else{m=g.x(Object.keys(zw));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.Mr("enable_web_tiered_gel")?vw().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):vw().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.Mr("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.Mr("web_fp_via_jspb_and_json"))&&delete zw[p];Gw(n,l,a,b,c,!1,h)}};
wra=function(a,b){function c(){Bw({writeThenSend:!0},void 0,a,b)}
a=a===void 0?!1:a;b=b===void 0?200:b;var d=Dw(a,b),e=d===yra||d===zra?5E3:Ara;g.Mr("web_gel_timeout_cap")&&!d.j&&(e=Fw(function(){c()},e),d.j=e);
Lw(d.B);e=g.mr("LOGGING_BATCH_TIMEOUT",g.Nr("web_gel_debounce_ms",1E4));g.Mr("shorten_initial_gel_batch_timeout")&&Mw&&(e=Bra);e=Fw(function(){g.Nr("gel_min_batch_size")>0?vw().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Cra&&c():c()},e);
d.B=e};
Gw=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.Vt)()),m=a.size,n=Dra(h);a=g.x(a);var p=a.next();for(h={};!p.done;h={gS:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,ZS:void 0,xS:void 0},p=a.next()){var q=g.x(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.Sg({context:g.Gu(b.config_||g.Fu())});if(!g.Sa(q)&&!g.Mr("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=Kw[p])&&Era(h.batchRequest,p,q);delete Kw[p];h.dangerousLogToVisitorSession=
p==="visitorOnlyApprovedKey";Fra(h.batchRequest,l,h.dangerousLogToVisitorSession);Gra(e);h.ZS=function(r){g.Mr("start_client_gcf")&&g.jp.aj(function(){return g.I(function(t){return g.G(t,Hra(r),0)})});
m--;m||c()};
h.gS=0;h.xS=function(r){return function(){r.gS++;if(e.bypassNetworkless&&r.gS===1)try{g.Av(b,n,r.batchRequest,Nw({writeThenSend:!0},r.dangerousLogToVisitorSession,r.ZS,r.xS,f)),Mw=!1}catch(t){g.pr(t),d()}m--;m||c()}}(h);
try{g.Av(b,n,h.batchRequest,Nw(e,h.dangerousLogToVisitorSession,h.ZS,h.xS,f)),Mw=!1}catch(r){g.pr(r),d()}}};
Hw=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.Vt)()),l={value:a.size},m=new Map([].concat(g.z(a)));m=g.x(m);for(var n=m.next();!n.done;n=m.next()){var p=g.x(n.value).next().value,q=a.get(p);n=new kna;var r=b.config_||g.Fu(),t=new br,u=new Vq;ve(u,1,r.oR);ve(u,2,r.nR);xe(u,16,r.h_);ve(u,17,r.innertubeContextClientVersion);if(r.fL){var y=r.fL,A=new Tq;y.coldConfigData&&ve(A,1,y.coldConfigData);y.appInstallData&&ve(A,6,y.appInstallData);y.coldHashData&&ve(A,3,y.coldHashData);y.hotHashData&&
A.Ws(y.hotHashData);le(u,Tq,62,A)}(y=g.Na.devicePixelRatio)&&y!=1&&Qd(u,65,fd(y));y=Or();y!==""&&ve(u,54,y);y=Pr();if(y.length>0){A=new Yq;for(var C=0;C<y.length;C++){var F=new Wq;ve(F,1,y[C].key);ee(F,2,Ira,rd(y[C].value));ne(A,15,Wq,F)}le(t,Yq,5,A)}Mpa(r,u);Npa(t);Opa(u);Ppa(r,u);Qpa(u);g.Mr("start_client_gcf")&&Rpa(u);g.mr("DELEGATED_SESSION_ID")&&!g.Mr("pageid_as_header_web")&&(r=new ar,ve(r,3,g.mr("DELEGATED_SESSION_ID")));!g.Mr("fill_delegate_context_in_gel_killswitch")&&(y=g.mr("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(A=ke(t,ar,3)||new ar,r=t,y=ve(A,18,y),le(r,ar,3,y));r=u;y=g.x(Object.entries(ur(g.mr("DEVICE",""))));for(A=y.next();!A.done;A=y.next())C=g.x(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,woa(C));t.ZH(u);le(n,br,1,t);if(u=Jw[p])a:{if(u.eg())t=1;else if(u.getPlaylistId())t=2;else break a;le(n,jr,4,u);u=ke(n,br,1)||new br;r=ke(u,ar,3)||new ar;
y=new $q;y.setToken(p);xe(y,1,t);ne(r,12,$q,y);le(u,ar,3,r)}delete Jw[p];p=p==="visitorOnlyApprovedKey";Ow()||ue(n,2,h);!p&&(t=g.mr("EVENT_ID"))&&(u=Jra(),r=new ir,ve(r,1,t),ue(r,2,u),le(n,ir,5,r));Gra(d);if(g.Mr("jspb_serialize_with_worker")&&(t=$u())&&d.writeThenSend){ww.set(Pw,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:Ve(n),clientEvents:q,key:Pw});Pw++;break}if(q){t=
[];for(u=0;u<q.length;u++)try{t.push(new hr(q[u]))}catch(H){g.pr(new g.lt("Transport failed to deserialize "+String(q[u])))}q=t}else q=[];q=g.x(q);for(t=q.next();!t.done;t=q.next())ne(n,3,hr,t.value);q={startTime:(0,g.Vt)(),ticks:{},infos:{}};n=n.Hi();q.ticks.geljspc=(0,g.Vt)();g.Mr("log_jspb_serialize_latency")&&Xu("gel_jspb_serialize",q,{sampleRate:.1});mra(n,b,c,d,e,f,p,l)}};
mra=function(a,b,c,d,e,f,h,l){d=d===void 0?{}:d;l=l===void 0?{value:0}:l;f=Dra(f);d=Nw(d,h,function(m){g.Mr("start_client_gcf")&&g.jp.aj(function(){return g.I(function(n){return g.G(n,Hra(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.Av(b,f,"",d);Mw=!1};
Gra=function(a){g.Mr("always_send_and_write")&&(a.writeThenSend=!1)};
Nw=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Jna:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.Mr("compress_gel")||g.Mr("compress_gel_lr")};Ow()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Vt)())));return a};
Fra=function(a,b,c){Ow()||(a.requestTimeMs=String(b));g.Mr("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.mr("EVENT_ID"))&&(c=Jra(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Jra=function(){var a=g.mr("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*65535/2));a++;a>65535&&(a=1);lr("BATCH_CLIENT_COUNTER",a);return a};
Era=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}]};
xw=function(a,b){if(!g.Pa("yt.logging.transport.enableScrapingForTest")){var c=Lr("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")Qw=[],g.Oa("yt.logging.transport.enableScrapingForTest",!0),g.Oa("yt.logging.transport.scrapedPayloadsForTesting",Qw),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)};
Ow=function(){return g.Mr("use_request_time_ms_header")||g.Mr("lr_use_request_time_ms_header")};
Fw=function(a,b){return g.Mr("transport_use_scheduler")===!1?g.Hr(a,b):g.Mr("logging_avoid_blocking_during_navigation")||g.Mr("lr_logging_avoid_blocking_during_navigation")?g.qt(0,function(){if(kra().currentState==="none")a();else{var c={};kra().install((c.none={callback:a},c))}},b):pt(a,0,b)};
Lw=function(a){g.Mr("transport_use_scheduler")?g.jp.Dk(a):g.Jr(a)};
Hra=function(a){var b,c,d,e,f,h,l,m,n,p;return g.I(function(q){return q.j==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=g.Q(d,Kra),h=(f=d)==null?void 0:f.hotHashData,l=g.Q(d,Lra),n=(m=d)==null?void 0:m.coldHashData,(p=cw().resolve(new Yv(Du)))?h?e?g.G(q,Ipa(p,h,e),2):g.G(q,Ipa(p,h),2):q.Ga(2):q.return()):n?l?g.G(q,Jpa(p,n,l),0):g.G(q,Jpa(p,n),0):q.Ga(0)})};
Dw=function(a,b){b=b===void 0?200:b;return a?b===300?yra:Mra:b===300?zra:Nra};
pra=function(a){if(g.Mr("enable_web_tiered_gel")){a=Ora[a||""];var b,c,d,e=cw().resolve(new Yv(Du))==null?void 0:(b=Eu())==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]}};
ora=function(a){a=Object.keys(a);a=g.x(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Ora[b])return b};
qra=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}};
Aw=function(a){return a==="gelDebuggingEvent"};
Dra=function(a){return(a===void 0?0:a)&&g.Mr("vss_through_gel_video_stats")?"video_stats":"log_event"};
Sw=function(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||(0,g.Vt)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=Wv();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.Mr("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Pra(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete Rw[d.sequenceGroup]);(d.sendIsolatedPayload?rra:tra)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Qra=function(a){Bw(void 0,void 0,a===void 0?!1:a)};
Pra=function(a){Rw[a]=a in Rw?Rw[a]+1:0;return Rw[a]};
g.Dt=function(a,b,c){c=c===void 0?{}:c;var d=g.zv;g.mr("ytLoggingEventsDefaultDisabled",!1)&&g.zv===g.zv&&(d=null);Sw(a,b,d,c)};
Tw=function(a){this.j=a};
g.Uw=function(a){return new Tw({trackingParams:a})};
Sra=function(a){var b=Rra++;return new Tw({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
Tra=function(a){return g.mr("client-screen-nonce-store",{})[a===void 0?0:a]};
Ura=function(a,b){b=b===void 0?0:b;var c=g.mr("client-screen-nonce-store");c||(c={},lr("client-screen-nonce-store",c));c[b]=a};
Vw=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Vra=function(a){return g.mr(Vw(a===void 0?0:a))};
g.Ww=function(a){return(a=Vra(a===void 0?0:a))?new Tw({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Wra=function(){var a=g.mr("csn-to-ctt-auth-info");a||(a={},lr("csn-to-ctt-auth-info",a));return a};
Xra=function(){return Object.values(g.mr("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
g.Xw=function(a){a=Tra(a===void 0?0:a);if(!a&&!g.mr("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Zra=function(a){for(var b=g.x(Object.values(Yra)),c=b.next();!c.done;c=b.next())if(g.Xw(c.value)===a)return!0;return!1};
$ra=function(a,b,c){var d=Wra();(c=g.Xw(c))&&delete d[c];b&&(d[a]=b)};
Yw=function(a){return Wra()[a]};
bsa=function(a,b,c,d){c=c===void 0?0:c;if(a!==Tra(c)||b!==g.mr(Vw(c)))if($ra(a,d,c),Ura(a,c),lr(Vw(c),b),b=function(){setTimeout(function(){a&&g.Dt("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:asa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
Zw=function(a,b){var c=c===void 0?!0:c;var d=g.mr("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Xi(window.location.href);e&&d.push(e);e=g.Xi(a);if(g.Zb(d,e)||!e&&yb(a,"/"))if(d=document.createElement("a"),g.Uf(d,a),a=d.href)if(a=Yi(a),a=$fa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.Xw()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&csa(a,b,f)}else csa(a,b)};
csa=function(a,b,c){a=dsa(a);b=b?g.bj(b):"";c=c||5;us()&&g.as(a,b,c)};
dsa=function(a){for(var b=g.x(esa),c=b.next();!c.done;c=b.next())a=fj(a,c.value);return"ST-"+mg(a).toString(36)};
fsa=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
gsa=function(){this.Mr=[];this.Hs=[]};
ax=function(){if(!$w){var a=$w=new gsa;a.Hs.length=0;a.Mr.length=0;hsa(a,isa)}return $w};
hsa=function(a,b){b.Hs&&a.Hs.push.apply(a.Hs,b.Hs);b.Mr&&a.Mr.push.apply(a.Mr,b.Mr)};
jsa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=bx(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=bx(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=bx(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)};
bx=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};
ksa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=cx(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=jsa(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?cx(f+".ve",h,l,m):0;d+=f;d+=cx(e,a[e],b,c);if(d>500)break}}else c[b]=dx(a),d+=c[b].length;else c[b]=dx(a),d+=c[b].length;return d};
cx=function(a,b,c,d){c+="."+a;a=dx(b);d[c]=a;return c.length+a.length};
dx=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+")"}};
Ct=function(a){g.ex(a)};
g.fx=function(a){g.ex(a,"WARNING")};
g.ex=function(a,b){var c=c===void 0?{}:c;c.name=g.mr("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.mr("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.Mr("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(!(lsa>=5)){e=msa;var f=fea(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=ksa(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=dx(r[q]);c[t]=u;p+=t.length+u.length;if(p>500)break}}else c.params=dx(r)}if(e.length)for(q=0;q<e.length&&!(p=ksa(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=ax();e=g.x(a.Hs);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.Gs)){a=h.weight;break a}a=g.x(a.Mr);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.x(nsa);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.zM[c.name])for(l=g.x(e.zM[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.fk)){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.VR(q);break}c.params||(c.params={});a=ax();c.params["params.errorServiceSignature"]="msg="+a.Hs.length+"&cb="+a.Mr.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 Yg(Xg,"sample")).constructor!==Yg&&(c.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(c);if(c.sampleWeight!==0&&!osa.has(c.message)){if(d&&
g.Mr("web_enable_error_204"))psa(b===void 0?"ERROR":b,c);else{b=b===void 0?"ERROR":b;b==="ERROR"?(gx.publish("handleError",c),g.Mr("record_app_crashed_web")&&qsa===0&&c.sampleWeight===1&&(qsa++,d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.Mr("report_client_error_with_app_crash_ks")||(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.Dt("appCrashed",d)),rsa++):b==="WARNING"&&gx.publish("handleWarning",c);if(g.Mr("kevlar_gel_error_routing")){d=b;a=void 0;a=a===void 0?{}:a;
b:{e=g.x(ssa);for(h=e.next();!h.done;h=e.next())if(g.gs(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.mr("FEXP_EXPERIMENTS")&&(a.experimentIds=g.mr("FEXP_EXPERIMENTS"));l=g.mr("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!nr("web_disable_gel_stp_ecatcher_killswitch")&&l)for(q=g.x(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.x(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.mr("SERVER_NAME");q=g.mr("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.Dt("clientError",a),d==="ERROR"||g.Mr("errors_flush_gel_always_killswitch")))a:{if(g.Mr("web_fp_via_jspb")){d=!0;d=d===void 0?!1:d;a=tsa;tsa=[];if(a)for(a=g.x(a),e=a.next();!e.done;e=a.next())e=e.value,d?Sw(e.payloadName,e.payload,
g.zv,e.options):g.Dt(e.payloadName,e.payload,e.options);Qra(!0);if(!g.Mr("web_fp_via_jspb_and_json"))break a}Qra()}}g.Mr("suppress_error_204_logging")||psa(b,c)}try{osa.add(c.message)}catch(y){}lsa++}}}};
psa=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.mr("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.x(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.mr("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.x(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.mr("SERVER_NAME");b=g.mr("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.Rr(g.mr("ECATCHER_REPORT_HOST","")+"/error_204",a)};
usa=function(a){var b=g.Da.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.z(b))};
jx=function(a){var b=g.Q(a,hx);if(b)return b;if((b=g.Q(a,vsa))&&b.commands)return wsa(b.commands);if((b=g.Q(a,xsa))&&b.commands)return wsa(b.commands);if((a=g.Q(a,ysa))&&a.identifier&&a.command&&(ix||(ix=[]),!ix.includes(a.identifier)))return ix.push(a.identifier),g.Q(a.command,hx)};
wsa=function(a){if(a.length!==0){var b=[];a=g.x(a);for(var c=a.next();!c.done;c=a.next())(c=jx(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.kx=function(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c};
zsa=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};
lx=function(a){Iu.call(this,1,arguments);this.csn=a};
Bsa=function(a,b,c,d,e,f,h,l){var m=Asa(),n=new Tw({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=mx({},m);e&&(f.cttAuthInfo=e);e={csn:m,pageVe:n.getAsJson()};g.Mr("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.fx(new g.lt("newScreen() parent element does not have a VE - rootVe",
b));d&&(e.cloneCsn=d);a?Sw("screenCreated",e,a,f):g.Dt("screenCreated",e,f);Uu(Wpa,new lx(m));nx.clear();ox.clear();px.clear();return m};
g.rx=function(a,b,c,d,e){g.qx(a,b,c,[d],e===void 0?!1:e)};
g.qx=function(a,b,c,d,e){e=e===void 0?!1:e;for(var f=mx({cttAuthInfo:Yw(b)||void 0},b),h=g.x(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.Og(m)||!m.trackingParams&&!m.veType)&&g.fx(Error("Child VE logged with no data"));if(g.Mr("no_client_ve_attach_unless_shown")){var n=sx(l,b);if(m.veType&&!ox.has(n)&&!px.has(n)&&!e){if(!g.Mr("il_attach_cache_limit")||nx.size<1E3){nx.set(n,[a,b,c,l]);return}g.Mr("il_attach_cache_limit")&&nx.size>1E3&&g.fx(new g.lt("IL Attach cache exceeded limit"))}l=
sx(c,b);nx.has(l)?tx(c,b):px.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.Ml(d,function(p){return p.getAsJson()})};
b==="UNDEFINED_CSN"?ux("visualElementAttached",f,c):a?Sw("visualElementAttached",c,a,f):g.Dt("visualElementAttached",c,f)};
Csa=function(a,b,c,d,e){vx(c,b);d=mx({cttAuthInfo:Yw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};e&&(c.clientData=e);b==="UNDEFINED_CSN"?ux("visualElementShown",d,c):a?Sw("visualElementShown",c,a,d):g.Dt("visualElementShown",c,d)};
Dsa=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8;d=mx({cttAuthInfo:Yw(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:e};b==="UNDEFINED_CSN"?ux("visualElementHidden",d,c):a?Sw("visualElementHidden",c,a,d):g.Dt("visualElementHidden",c,d)};
Esa=function(a,b,c,d,e){wx(a,b,c,void 0,d,e)};
wx=function(a,b,c,d,e){vx(c,b);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=mx({cttAuthInfo:Yw(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:d};e&&(c.clientData=e);b==="UNDEFINED_CSN"?ux("visualElementGestured",f,c):a?Sw("visualElementGestured",c,a,f):g.Dt("visualElementGestured",c,f)};
Fsa=function(){var a=Rv(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
ux=function(a,b,c){xx.push({payloadName:a,payload:c,Ipa:void 0,options:b});yx||(yx=aqa())};
Zpa=function(a){if(xx){for(var b=g.x(xx),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,g.Dt(c.payloadName,c.payload,c.options));xx.length=0}yx=0};
sx=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
vx=function(a,b){if(g.Mr("no_client_ve_attach_unless_shown")){var c=sx(a,b);ox.set(c,!0);tx(a,b)}};
tx=function(a,b){a=sx(a,b);nx.has(a)&&(b=nx.get(a)||[],g.rx(b[0],b[1],b[2],b[3],!0),nx.delete(a))};
mx=function(a,b){g.Mr("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.zx=function(a,b,c,d){g.qr(Csa)(void 0,a,b,c,d,void 0)};
g.Ax=function(a,b){g.qr(function(){g.oc(b,function(c){vx(c,a);var d=mx({cttAuthInfo:Yw(a)||void 0},a);c={csn:a,ve:c.getAsJson(),eventType:4};a==="UNDEFINED_CSN"?ux("visualElementShown",d,c):g.Dt("visualElementShown",c,d)})})()};
g.Bx=function(a,b){g.qr(function(){g.oc(b,function(c){Dsa(void 0,a,c)})})()};
g.Cx=function(a,b,c){g.qr(Esa)(void 0,a,b,c,void 0)};
Ex=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=Dx(a)};
Dx=function(a){var b=":"+(fq.getInstance().j++).toString(36);return a+b};
g.Fx=function(a){a=a===void 0?!1:a;g.O.call(this);this.Uj=new g.Sp(a);g.P(this,this.Uj)};
g.Gx=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
Hx=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
Ix=function(){var a="ytp-id-"+Gsa.toString();Gsa++;return a};
g.Jx=function(a){g.O.call(this);this.Kb={};this.Te={};this.element=this.createElement(a)};
Kx=function(a,b,c,d){if(d.substring(0,2)==="{{")a.Te[d]=[b,c];else return d};
Hsa=function(a,b){var c=[];if(!b)return c;b=g.x(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.J==="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.mh("BR"));c.push(g.nh(f))}):c.push(g.nh(d))}return c};
Lx=function(a,b,c,d){if(c==="child"){g.ph(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.J==="string"?[d]:d;c=Hsa(a,e);c=g.x(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.Bm(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.Of(g.Sf(a))),b.setAttribute(c,a))};
g.S=function(a){g.Jx.call(this,a);this.Eb=!0;this.U=!1;this.listeners=[]};
g.Mx=function(a,b){b?a.show():a.hide()};
g.Nx=function(a){g.S.call(this,a);this.Va=new g.Fx;g.P(this,this.Va)};
Ox=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.Nx.call(this,b);this.api=a;this.macros={};this.componentType=c;this.L=this.W=null;this.tb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.Ya=f;this.Za=null;this.UT=new Pv(this.element);g.P(this,this.UT);this.rb=this.T(this.element,"click",this.onClick);this.Ea=[];this.Ba=new Yqa(this.onClick,this);g.P(this,this.Ba);this.Db=!1;this.Ma=this.qa=null};
Px=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.fx(Error("Got null or undefined adText object")),"";var c=g.lg(a.text);if(!a.isTemplated)return c;if(b==null)return g.fx(Error("Missing required parameters for a templated message")),c;a=g.x(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.x(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Isa=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.lg(a.thumbnails[0].url):""};
Jsa=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.Cg(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Cg(0,0)};
g.Qx=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.x(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.Rx=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=lh("B",null,h||l));d.italics&&(h=lh("I",null,h||l));d.strikethrough&&(h=lh("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=lh("A",null,h||l),g.Uf(h,d.url),d.target=="TARGET_NEW_WINDOW"&&(h.target="_blank"));l=h||lh("SPAN",null,
l);f.call(e,l)}}return b.length==1?b[0]:lh("SPAN",null,b)};
g.Ksa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}};
Sx=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Y:{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.Tx=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{J:"path",Y:{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.Ux=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},X:[{J:"path",Y:{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"}}]}};
Lsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{J:"path",Y:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{J:"path",Y:{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"}}]}};
Msa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{J:"path",Gc:!0,Y:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Nsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{J:"path",Gc:!0,Y:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.Vx=function(){return{J:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Y:{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"}}]}};
Osa=function(){return{J:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Y:{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"}}]}};
Psa=function(){return{J:"svg",Y:{viewBox:"0 0 24 24"},X:[{J:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{J:"path",Y:{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"}}]}};
Qsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
Rsa=function(){return{J:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{"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"}}]}};
Ssa=function(){return{J:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{J:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{J:"path",Y:{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"}}]}};
Tsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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"}}]}};
Usa=function(){return{J:"svg",Y:{viewBox:"0 0 24 24"},X:[{J:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{J:"path",Y:{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"}}]}};
Wx=function(){return{J:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Y:{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"}}]}};
Vsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},X:[{J:"path",Gc:!0,Y:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
Xx=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.Yx=function(){return{J:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{J:"path",Y:{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"}}]}};
Zx=function(){return{J:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},X:[{J:"path",Y:{d:"M0 0h48v48H0z",fill:"none"}},{J:"path",Y:{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"}}]}};
Wsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Xsa=function(){return{J:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",S:"ytp-svg-fill",Y:{"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"}}]}};
Ysa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}};
$x=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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"}}]}};
Zsa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.ay=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.by=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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.cy=function(){return{J:"svg",Y:{height:"100%",viewBox:"0 0 16 16",width:"100%"},X:[{J:"path",Y:{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"}}]}};
$sa=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
dy=function(){return{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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"}}]}};
ey=function(a,b){b=b===void 0?!1:b;if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return Zx();case "CHECK_BOX":return{J:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{J:"path",Y:{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{J:"svg",Y:{height:"100%",viewBox:"0 0 24 24",
width:"100%"},X:[{J:"path",Y:{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"}},{J:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.Vx();case "INFO_OUTLINE":return b?{J:"svg",Y:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},X:[{J:"path",Y:{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"}}]}:
Ssa();case "REMOVE_CIRCLE":return{J:"svg",Y:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Y:{d:"M0 0h24v24H0z",fill:"none"}},{J:"path",Y:{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 Xx();case "SKIP_NEXT_NEW":return{J:"svg",Y:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},X:[{J:"path",Y:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Usa();
case "DISLIKE":return Psa();default:return g.fx(new g.lt("Unexpected icon:",a)),null}};
fy=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={J:"button",Ka:["ytp-ad-button"].concat(e)};l!=null&&(e.Y={tabindex:l});Ox.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()};
ata=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||[]};
gy=function(){g.O.call(this);var a=this;this.j=new Map;this.B=qoa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.mv(b[c])})};
bta=function(){hy==null&&(hy=new gy);return hy};
iy=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=cta(a))){b=lh("SPAN",null,b);break a}b=g.nh(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(dta(e,b))}return c.length==1?c[0]:lh("SPAN",null,c)};
dta=function(a,b){var c=null,d=a.text;b&&(d=cta(d)||d);a.bold&&(c=lh("B",null,c||d));a.italics&&(c=lh("I",null,c||d));a.strikethrough&&(c=lh("STRIKE",null,c||d));a.navigationEndpoint&&g.Q(a.navigationEndpoint,g.jy)&&(b=g.Q(a.navigationEndpoint,g.jy),c=lh("A",null,c||d),g.Uf(c,b.url),b.target=="TARGET_NEW_WINDOW"&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),bta().register(c,a),g.yp(c,"ytp-ad-has-logging-urls"));
return c||lh("SPAN",null,d)};
cta=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(lh("BR")),b.push(a[c]);return b}return null};
ky=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;Ox.call(this,a,{J:"span",Ka:["ytp-ad-hover-text-button"].concat(h)},l===void 0?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.Z=f;this.G=e;this.C=m;this.hide()};
ly=function(a){return a&&a.thumbnails&&(a.thumbnails||null).length!=0&&a.thumbnails[0].url?g.lg(a.thumbnails[0].url):""};
my=function(a,b,c,d,e,f){f=f===void 0?!1:f;Ox.call(this,a,{J:"img",S:"ytp-ad-image"},"ad-image",b,c,d,e===void 0?null:e);this.j=f;this.hide()};
ny=function(a,b,c,d,e,f){e=e===void 0?[]:e;Ox.call(this,a,{J:"div",Ka:["ytp-ad-confirm-dialog-background"],X:[{J:"div",S:"ytp-ad-confirm-dialog-container",X:[{J:"div",Ka:["ytp-ad-confirm-dialog"].concat(e),Y:{role:"dialog",tabindex:"-1"},X:[{J:"div",S:"ytp-ad-confirm-dialog-title",ya:"{{title}}"},{J:"div",S:"ytp-ad-confirm-dialog-messages"},{J:"div",S:"ytp-ad-confirm-dialog-confirm-container",X:[{J:"button",S:"ytp-ad-confirm-dialog-cancel-button",ya:"{{cancelLabel}}"},{J:"button",S:"ytp-ad-confirm-dialog-confirm-button",
ya:"{{confirmLabel}}"}]}]}]},{J:"button",Ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],X:[{J:"span",S:"ytp-ad-button-icon",X:[g.Vx()]}]}]},f===void 0?"confirm-dialog":f,b,c,d);this.Z=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.ra=this.Da("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new Ts;g.P(this,this.j);this.B=null;this.hide()};
eta=function(a,b){if(b.title){var c=g.Qx(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.x(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=iy(d.value),a.ra.appendChild(d)}b.cancelLabel&&(c=g.Qx(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.mO(e)}));
b.confirmLabel&&(b=g.Qx(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.sS(e)}));
a.j.T(a.Z,"click",function(e){return a.rS(e)})};
oy=function(a,b,c,d,e,f){e=e===void 0?[]:e;f=f===void 0?"toggle-button":f;var h=Dx("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.V().experiments.fb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.V().experiments.fb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");Ox.call(this,a,{J:"div",Ka:["ytp-ad-toggle-button"].concat(e),X:[{J:"label",S:"ytp-ad-toggle-button-label",Y:{"for":h},X:[{J:"span",S:"ytp-ad-toggle-button-icon",Y:l,X:[{J:"span",S:"ytp-ad-toggle-button-untoggled-icon",
ya:"{{untoggledIconTemplateSpec}}"},{J:"span",S:"ytp-ad-toggle-button-toggled-icon",ya:"{{toggledIconTemplateSpec}}"}]},{J:"input",S:"ytp-ad-toggle-button-input",Y:{id:h,type:"checkbox"}},{J:"span",S:"ytp-ad-toggle-button-text",ya:"{{buttonText}}"},{J:"span",S:"ytp-ad-toggle-button-tooltip",ya:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Da("ytp-ad-toggle-button");this.j=this.Da("ytp-ad-toggle-button-input");this.B=this.Da("ytp-ad-toggle-button-icon");this.Z=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.ra=!1;this.hide()};
py=function(a){a.ra&&(a.isToggled()?(g.Nm(a.Z,!1),g.Nm(a.G,!0),a.api.V().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Nm(a.Z,!0),g.Nm(a.G,!1),a.api.V().experiments.fb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
fta=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||[]};
gta=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
qy=function(a){Ts.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.L)};
ry=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-feedback-dialog-background",X:[{J:"div",S:"ytp-ad-feedback-dialog-container",X:[{J:"div",S:"ytp-ad-feedback-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{J:"div",S:"ytp-ad-feedback-dialog-title",X:[{J:"span",ya:"{{title}}"}]},{J:"span",S:"ytp-ad-info-dialog-feedback-options-title",ya:"{{reasonsTitle}}"},{J:"div",S:"ytp-ad-info-dialog-feedback-options"},{J:"div",S:"ytp-ad-feedback-dialog-confirm-container",X:[{J:"button",S:"ytp-ad-feedback-dialog-cancel-button",
ya:"{{cancelLabel}}"},{J:"button",S:"ytp-ad-feedback-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Da("ytp-ad-feedback-dialog-cancel-button");this.Z=this.Da("ytp-ad-feedback-dialog-confirm-button");this.ra=this.Da("ytp-ad-info-dialog-feedback-options");this.Fa=this.Da("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
kta=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new fy(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,["ytp-ad-feedback-dialog-close-button"],"button"),g.P(a,a.j),a.j.init(Dx("button"),c,a.macros),a.j.listen("click",a.F0,a),a.j.Ha(a.element));b.title&&(c=g.Qx(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.Qx(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&hta(a,b.reasons);b.cancelLabel&&(c=g.Qx(b.cancelLabel),a.updateValue("cancelLabel",
c),g.Os(a.G,"click",function(){return a.F0()}));
b.confirmLabel&&(c=g.Qx(b.confirmLabel),a.updateValue("confirmLabel",c),g.Os(a.Z,"click",function(){return ita(a)}));
b.undoRenderer&&jta(a,b.undoRenderer)};
hta=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(c==null)g.fx(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,d==null)g.fx(Error("AdFeedbackReason.endpoint was not set."));else{c=new sy(c,d);g.P(a,c);d=a.ra;var e=c.Jb();d.appendChild(e);a.D.push(c)}}};
jta=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new fy(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.P(a,a.B),a.B.init(Dx("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.wda,a),a.B.Ha(a.Fa)):g.fx(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
ita=function(a){var b=a.D.filter(function(c){return c.isChecked()});
b.length!==0&&(b=b[0].getCommand(),a.layoutId?a.Ya.executeCommand(b,a.layoutId):g.ex(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
sy=function(a,b){this.B=b;this.j=new g.Nx({J:"label",S:"ytp-ad-feedback-dialog-reason-label",X:[{J:"input",S:"ytp-ad-feedback-dialog-reason-input",Y:{type:"radio",name:"feedback-reason-group"}},{J:"span",S:"ytp-ad-feedback-dialog-reason-text",ya:g.Qx(a)}]});this.C=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
ty=function(a,b,c,d){ny.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
uy=function(a,b,c,d,e){Ox.call(this,a,{J:"div",S:"ytp-ad-info-dialog-background",X:[{J:"div",S:"ytp-ad-info-dialog-container",X:[{J:"div",S:"ytp-ad-info-dialog-form",Y:{role:"dialog",tabindex:"-1"},X:[{J:"div",S:"ytp-ad-info-dialog-title",ya:"{{title}}"},{J:"ul",S:"ytp-ad-info-dialog-ad-reasons"},{J:"div",S:"ytp-ad-info-dialog-message"},{J:"div",S:"ytp-ad-info-dialog-mute-container"},{J:"div",S:"ytp-ad-info-dialog-confirm-container",X:[{J:"button",S:"ytp-ad-info-dialog-confirm-button",ya:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.B=null;this.Z=this.Da("ytp-ad-info-dialog-confirm-button");this.eb=this.Da("ytp-ad-info-dialog-mute-container");this.Ua=this.Da("ytp-ad-info-dialog-message");this.La=this.Da("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Fa=e;this.G=null;this.Pa=!1;this.ra=null;this.hide()};
lta=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new ry(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya),g.P(a,a.B),a.B.init(Dx("ad-feedback-dialog"),b,a.macros),a.B.Ha(a.Fa),a.B.subscribe("a",function(){return a.publish("c")})};
mta=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new ty(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya),g.P(a,a.D),a.D.init(Dx("ad-mute-confirm-dialog"),b,a.macros),a.D.Ha(a.Fa),a.D.subscribe("b",function(){return a.publish("c")})};
nta=function(a){a.j&&a.j.listen("click",a.rW,a);g.Os(a.Z,"click",function(){return a.rW()})};
vy=function(a,b,c,d,e,f,h){ky.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()};
pta=function(a,b,c){b=b.dialog&&g.Q(b.dialog,ota)||null;b==null?g.ex(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new uy(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,a.D),g.P(a,a.j),a.j.init(Dx("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")}))};
sta=function(a,b,c){a.button==null?g.ex(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.yp(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.Q(b.serviceEndpoint,qta)||null)?(pta(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Eb&&(a.j.show(),rta(a))})):a.button.listen("click",function(){return rta(a)}))};
rta=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
wy=function(a,b,c,d,e,f){Ox.call(this,a,{J:"div",S:"ytp-ad-text"},f===void 0?"ad-text":f,b,c,d,e===void 0?null:e);this.j=null;this.hide()};
yy=function(a,b){b&&g.th(a.element,Px(a.j,b))};
zy=function(a,b,c,d,e,f,h){Ox.call(this,a,b,c,d,e,f);this.j=h;g.P(this,this.j);this.Pa=this.Z=-1};
Ay=function(a){a.j&&a.Z===-1&&(a.Z=a.j.subscribe("h",a.nm,a),a.Pa=a.j.subscribe("g",a.Hn,a),a.nm())};
By=function(a){a.j!=null&&a.Z!==-1&&(a.j.Nh(a.Z),a.j.Nh(a.Pa),a.Pa=-1,a.Z=-1)};
g.Cy=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.qp(this.fJ,0,this);g.P(this,this.delay)};
Dy=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
Ey=function(a,b,c,d,e,f){zy.call(this,a,{J:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.eb=-1;this.D=this.api.V().experiments.fb("enable_modern_skip_button_on_web");this.B=new g.Nx({J:"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 wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-preview-text-modern"):new wy(this.api,this.layoutId,this.interactionLoggingClientData,
this.Ya,"ytp-ad-preview-text");g.P(this,this.C);this.C.Ha(this.B.element);this.ra=this.D?new g.Nx({J:"span",S:"ytp-ad-preview-image-modern"}):new g.Nx({J:"span",S:"ytp-ad-preview-image"});g.P(this,this.ra);this.G=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.G);this.G.Ha(this.ra.element);this.ra.Ha(this.B.element);this.B.Ha(this.element);this.Fa=new g.Cy(this.B,400,!1,100,function(){return h.hide()});
g.P(this,this.Fa);this.La=0;this.Ua=!1;this.ib=f;this.hide()};
Fy=function(a){a.Fa.show(100);a.show()};
Gy=function(a,b,c,d,e,f){zy.call(this,a,{J:"div",Ka:["ytp-flyout-cta","ytp-flyout-cta-inactive"],X:[{J:"div",S:"ytp-flyout-cta-icon-container"},{J:"div",S:"ytp-flyout-cta-body",X:[{J:"div",S:"ytp-flyout-cta-text-container",X:[{J:"div",S:"ytp-flyout-cta-headline-container"},{J:"div",S:"ytp-flyout-cta-description-container"}]},{J:"div",S:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-flyout-cta-icon");
g.P(this,this.C);this.C.Ha(this.Da("ytp-flyout-cta-icon-container"));this.api.V().N("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-flyout-cta-headline");g.P(this,this.G);this.G.Ha(this.Da("ytp-flyout-cta-headline-container"));this.D=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"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.V().N("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.B=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,a);g.P(this,this.B);this.B.Ha(this.Da("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");lp(this.B.element);this.ra=null;this.Fa=0;this.La=f;this.hide()};
Hy=function(a,b,c,d,e){Ox.call(this,a,{J:"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 oy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,["ytp-ad-instream-user-sentiment-like-button"]);g.P(this,this.C);this.C.Ha(this.element);this.B=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,["ytp-ad-instream-user-sentiment-dislike-button"]);g.P(this,this.B);this.B.Ha(this.element);
this.D=new g.Cy(this,400,!1,500,function(){return f.hide()});
g.P(this,this.D);this.hide()};
Iy=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.Z=d;this.qa=f;this.L=!1;this.j=null;b>0&&(this.j=new g.qp(this.IX,b,this),g.P(this,this.j));this.G=new g.qp(this.IX,c,this);g.P(this,this.G);this.W=dma(this.B,e,1,d);g.P(this,this.W);this.U=dma(this.B,0,d,1);g.P(this,this.U);this.D=new Ts;g.P(this,this.D)};
tta=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:ed(a,"unknown result type")}};
uta=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 "g.o_":return 22;case "p.i_":return 24;case "i.k_":return 28;case "n.k_":return 20;case "n.h_":return 26;default:return-1}};
vta=function(a,b){var c=1;a.isTrusted===!1&&(c=0);lr("ISDSTAT",c);Jy(c,"i.s_",{triggerContext:"sk",metadata:b});return c};
wta=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");Jy(0,"a.s_",{metadata:a,states:c});lr("ASDSTAT",0)};
Jy=function(a,b,c){var d,e,f={detected:a===0,source:""+b+((d=c.triggerContext)!=null?d:"")+((e=c.xX)!=null?e:""),detectionStates:c.states,durationMs:c.wX};c.metadata&&(f.contentCpn=c.metadata.contentCpn,f.adCpn=c.metadata.adCpn);g.Dt("biscottiBasedDetection",f);xta.includes(b)&&(a=tta(a),c=uta(b),d=Number(g.mr("CATSTAT",0)),b=xta.includes(b)?d&~(3<<c)|a<<c:d,lr("CATSTAT",b))};
Ky=function(a){return a?"layout:  "+a.layoutType:""};
Ly=function(a,b,c){return a?!0:(g.fx(new g.lt("Assertion: "+b,c)),!1)};
My=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.lt(a);if(a.args)for(var f=g.x(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=Ky(c),d.layoutId=c.layoutId);e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.fx(a)}};
g.Ny=function(a,b){this.state=a;this.Gy=b};
Oy=function(a,b){return g.T(a.state,b)&&!g.T(a.Gy,b)?1:!g.T(a.state,b)&&g.T(a.Gy,b)?-1:0};
g.Py=function(a,b){return Oy(a,b)>0};
Qy=function(a,b,c,d,e,f){zy.call(this,a,{J:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Fa=!1;this.Ua=f;this.G=this.api.V().experiments.fb("enable_modern_skip_button_on_web");this.eb=!1;this.C=new g.Nx({J:"span",Ka:["ytp-ad-skip-button-container"]});this.G&&this.C.element.classList.add("ytp-ad-skip-button-container-detached");this.api.N("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.Cy(this.C,500,!1,100,function(){return h.hide()});
g.P(this,this.ib);this.La=new Iy(this.C.element,15E3,5E3,.5,.5,this.G);g.P(this,this.La);this.hide()};
zta=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.Q(a.clickCommand,g.Ry)&&g.Q(a.clickCommand,g.Ry).commands||[]).some(function(b){return b.adLifecycleCommand?yta(b.adLifecycleCommand):!1})};
yta=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"};
Sy=function(a,b,c,d,e,f){zy.call(this,a,{J:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
Ata=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())};
Ty=function(a,b,c,d){fy.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
Uy=function(a,b,c,d,e,f,h){f=f===void 0?!1:f;h=h===void 0?!1:h;Ox.call(this,a,{J:"span",S:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.C=e;this.j=this.Da("ytp-ad-simple-ad-badge");(this.B=f)&&this.j.classList.add("ytp-ad-simple-ad-badge--clean-player");h&&this.j.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()};
Vy=function(a,b,c,d,e){e=e===void 0?!1:e;Ex.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.nN=e};
Wy=function(a,b){g.Fx.call(this);this.api=a;this.durationMs=b;this.j=null;this.Md=new Ts(this);g.P(this,this.Md);this.B=Bta;this.Md.T(this.api,"presentingplayerstatechange",this.n6);this.j=this.Md.T(this.api,"onAdPlaybackProgress",this.Uc)};
Xy=function(a){g.Fx.call(this);this.j=!1;this.xj=0;this.Md=new Ts(this);g.P(this,this.Md);this.durationMs=a;this.ye=new g.Ji(100);g.P(this,this.ye);this.Md.T(this.ye,"tick",this.Uc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.Yy=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.Zy=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)};
$y=function(a,b,c,d,e,f,h){zy.call(this,a,{J:"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;this.api.N("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");h&&this.api.V().B&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.N("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"),
nu&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()};
az=function(a,b,c,d){wy.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title");a.N("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")};
bz=function(a){this.content=a.content;if(a.commandRuns){a=g.x(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.Q(b,Cta),b.onTap&&(this.interaction={onTap:b.onTap})}};
cz=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
dz=function(a,b,c,d,e){Ox.call(this,a,{J:"span",S:e?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",b,c,d);this.B=e;this.adBadgeText=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);this.adBadgeText.Ha(this.element);g.P(this,this.adBadgeText);e?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.N("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),nu&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))):
this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
ez=function(a,b,c,d,e){Ox.call(this,a,{J:"span",S:"ytp-ad-pod-index"},"ad-pod-index",b,c,d);this.B=e;this.api.V().B&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.N("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),nu&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()};
fz=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()};
gz=function(a,b){this.B=a;this.j=b};
hz=function(a,b,c){if(!a.getLength())return c!=null?c:Infinity;a=(b-a.B)/a.getLength();return g.xg(a,0,1)};
iz=function(a,b,c,d){d=d===void 0?!1:d;g.Nx.call(this,{J:"div",S:"ytp-ad-persistent-progress-bar-container",X:[{J:"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()};
jz=function(a,b,c,d,e,f){Ox.call(this,a,{J:"div",S:"ytp-ad-player-overlay",X:[{J:"div",S:"ytp-ad-player-overlay-flyout-cta"},{J:"div",S:"ytp-ad-player-overlay-instream-info"},{J:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{J:"div",S:"ytp-ad-player-overlay-progress-bar"},{J:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"},{J:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.ra=f;this.G=this.Da("ytp-ad-player-overlay-flyout-cta");this.api.V().N("web_rounded_thumbnails")&&
this.G.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");this.j=this.Da("ytp-ad-player-overlay-instream-info");this.D=null;Dta(this)&&(a=lh("div"),g.yp(a,"ytp-ad-player-overlay-top-bar-gradients"),this.api.N("disable_ad_preview_for_instream_ads")&&g.yp(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 az(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),
c.Ha(a),c.init(Dx("ad-title"),{text:b.title},this.macros),g.P(this,c)),this.D=a);this.C=null;this.Z=this.Da("ytp-ad-player-overlay-skip-or-preview");this.Pa=this.Da("ytp-ad-player-overlay-progress-bar");this.La=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()};
Dta=function(a){a=a.api.V();return g.kz(a)&&a.B};
lz=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.cj("/sharing_services",a);g.mv(d)};
g.mz=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)};
nz=function(a){this.j=new Vp(a)};
Eta=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.mr("INNERTUBE_CLIENT_NAME")==="WEB"||g.mr("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
oz=function(a){if(g.mr("LOGGED_IN",!0)&&Eta()){var b=g.mr("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.Xi(window.location.href);c&&b.push(c);c=g.Xi(a);g.Zb(b,c)||!c&&yb(a,"/")?(b=Yi(a),(b=$fa(b))?(b=dsa(b),b=(b=g.bs(b)||null)?ur(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;Eta()?(d||(d=g.mr("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Zw(a,b)}};
g.Fta=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.cj(a,b);oz(a);c=g.Sf(a+c);d=d.location;c=Tf(c);c!==void 0&&(d.href=c)};
g.pz=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.mr("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Zw(a,b);c||(oz(a),g.Fta(a))};
g.qz=function(a,b,c,d,e){e=e===void 0?!1:e;c&&Zw(a,c);c=g.Sf(a);var f=g.Of(c);a!=f&&rr(Error("Unsafe window.open URL: "+a));a=f;b=b||mg(a).toString(36);try{if(e){e=a;e=Iqa(e);oz(e);g.Zf(window,e,b,"attributionsrc");return}}catch(h){g.pr(h)}oz(a);g.Zf(window,c,b,d)};
Gta=function(a){rz=a};
Hta=function(a){sz=a};
Ita=function(a){tz=a};
Kta=function(){Jta=tz=sz=rz=null};
Mta=function(){var a=a===void 0?window.location.href:a;if(g.Mr("kevlar_disable_theme_param"))return null;var b=Ui(g.Wi(5,a));if(g.Mr("enable_dark_theme_only_on_shorts")&&b!=null&&b.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var c=g.wr(a).theme;return Lta.get(c)||null}catch(d){}return null};
uz=function(){this.j={};if(this.B=Ona()){var a=g.bs("CONSISTENCY");a&&Nta(this,{encryptedTokenJarContents:a})}};
Nta=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.as("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
wz=function(){this.B=-1;var a=g.mr("LOCATION_PLAYABILITY_TOKEN");g.mr("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=vz(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
vz=function(a){return a.localStorage===void 0?new wt("yt-client-location"):a.localStorage};
g.xz=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.mr("INNERTUBE_CONTEXT");if(!d)return g.ex(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.Sg(d);g.Mr("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.mr("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.ft();var h="USER_INTERFACE_THEME_LIGHT";g.gt(0,165)?h="USER_INTERFACE_THEME_DARK":g.gt(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.Mr("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:Mta()||h;e.userInterfaceTheme=f;if(!b){if(f=Boa())e.connectionType=f;g.Mr("web_log_effective_connection_type")&&(f=Doa())&&(d.client.effectiveConnectionType=f)}var l;if(g.Mr("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.Mr("web_gcf_hashes_innertube")&&(f=Kpa())&&(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.wr(g.Na.location.href);!g.Mr("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.Mr("kevlar_woffle")&&uoa.instance&&(m=uoa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=ct(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.Mr("web_lr_app_quality_killswitch")&&(m=g.mr("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.mr("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.Mr("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(K){}n=void 0}n&&(e.timeZone=n)}(n=Or())?e.experimentsToken=n:delete e.experimentsToken;n=Pr();uz.instance||(uz.instance=new uz);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.Jg(uz.instance.j)});!g.Mr("web_prequest_context_killswitch")&&(n=g.mr("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.ft();n=g.gt(0,58);e=e.get("gsml","");d.user=Object.assign({},
d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.Mr("warm_op_csn_cleanup")?c&&(b=g.Xw())&&(d.clientScreenNonce=b):!b&&(b=g.Xw())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Pa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;wz.getInstance().setLocationOnInnerTubeContext(d);try{var p=Er(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.x(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.x(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.Mr("add_ifa_to_tvh5_requests")){var H=g.mr("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(K){g.ex(K)}return d};
Qta=function(a,b){if(!a)return!1;var c,d=(c=g.Q(a,Ota))==null?void 0:c.signal;if(d&&b.sz)return!!b.sz[d];var e;if((c=(e=g.Q(a,Pta))==null?void 0:e.request)&&b.BP)return!!b.BP[c];for(var f in a)if(b.uP[f])return!0;return!1};
Rta=function(a){var b={"Content-Type":"application/json"};g.mr("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.mr("EOM_VISITOR_DATA"):g.mr("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.mr("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.mr("LOGGED_IN",!1);g.mr("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.mr("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.mr("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.mr("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=g.mr("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.mr("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
Sta=function(){this.j={}};
yz=function(){this.mappings=new Sta};
zz=function(a){return function(){return new a}};
Uta=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=Tta[b];if(c){c=new RegExp(c);for(var d=g.x(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Tta).forEach(function(h){var l=g.x(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.x(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.Az=function(a){return"/youtubei/v1/"+Uta(a)};
Bz=function(){};
Cz=function(){};
Dz=function(){};
Ez=function(a){return g.Pa("ytcsi."+(a||"")+"data_")||Vta(a)};
Wta=function(){var a=Ez();a.info||(a.info={});return a.info};
Fz=function(a){a=Ez(a);a.metadata||(a.metadata={});return a.metadata};
Gz=function(a){a=Ez(a);a.tick||(a.tick={});return a.tick};
Hz=function(a){a=Ez(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Xta=function(a){a=Hz(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
Iz=function(a){var b=Ez(a).nonce;b||(b=g.Sv(16),Ez(a).nonce=b);return b};
Vta=function(a){var b={tick:{},info:{}};g.Oa("ytcsi."+(a||"")+"data_",b);return b};
bA=function(){var a=g.Pa("ytcsi.debug");a||(a=[],g.Oa("ytcsi.debug",a),g.Oa("ytcsi.reference",{}));return a};
cA=function(a){a=a||"";var b=Yta();if(b[a])return b[a];var c=bA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Zta=function(a){a=a||"";var b=Yta();b[a]&&delete b[a];var c=bA(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Yta=function(){var a=g.Pa("ytcsi.reference");if(a)return a;bA();return g.Pa("ytcsi.reference")};
dA=function(a){return $ta[a]||"LATENCY_ACTION_UNKNOWN"};
eA=function(a,b){Iu.call(this,1,arguments);this.ye=b};
fA=function(){this.j=0};
gA=function(){fA.instance||(fA.instance=new fA);return fA.instance};
iA=function(a,b){hA[b]=hA[b]||{count:0};var c=hA[b];c.count++;c.time=(0,g.Vt)();a.j||(a.j=g.qt(0,function(){var d=(0,g.Vt)(),e;for(e in hA)hA[e]&&d-hA[e].time>6E4&&delete hA[e];a&&(a.j=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.lt("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.fx(c)),!0):!1};
aua=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
bua=function(){var a;if(g.Mr("csi_use_performance_navigation_timing")||g.Mr("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=jA==null?void 0:(a=jA.getEntriesByType)==null?void 0:(b=a.call(jA,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=kA(e.requestStart),e.responseEnd=kA(e.responseEnd),e.redirectStart=kA(e.redirectStart),e.redirectEnd=kA(e.redirectEnd),e.domainLookupEnd=kA(e.domainLookupEnd),e.connectStart=kA(e.connectStart),
e.connectEnd=kA(e.connectEnd),e.responseStart=kA(e.responseStart),e.secureConnectionStart=kA(e.secureConnectionStart),e.domainLookupStart=kA(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=jA.timing}else a=g.Mr("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(jA.timing)):jA.timing;return a};
kA=function(a){return Math.round(lA()+a)};
lA=function(){return(g.Mr("csi_use_time_origin")||g.Mr("csi_use_time_origin_tvhtml5"))&&jA.timeOrigin?Math.floor(jA.timeOrigin):jA.timing.navigationStart};
nA=function(a,b){mA("_start",a,b)};
oA=function(a,b){if(!g.Mr("web_csi_action_sampling_enabled")||!Ez(b).actionDisabled){var c=cA(b||"");Mv(c.info,a);a.loadType&&(c=a.loadType,Fz(b).loadType=c);Mv(Xta(b),a);c=Iz(b);b=Ez(b).cttAuthInfo;gA().info(a,c,b)}};
cua=function(){var a,b,c,d;return((d=cw().resolve(new Yv(Du))==null?void 0:(a=Eu())==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]})};
mA=function(a,b,c){if(!g.Mr("web_csi_action_sampling_enabled")||!Ez(c).actionDisabled){var d=Iz(c),e;if(e=g.Mr("web_csi_debug_sample_enabled")&&d){(cw().resolve(new Yv(Du))==null?0:Eu())&&!dua&&(dua=!0,mA("gcfl",(0,g.Vt)(),c));var f,h,l;e=(cw().resolve(new Yv(Du))==null?void 0:(f=Eu())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=cua();if(f.length>0)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=zsa(d)%e!==0,Ez(c).debugTicksExcludedLogged||
(f={},f.debugTicksExcluded=e,oA(f,c)),Ez(c).debugTicksExcludedLogged=!0):e=!1}if(!e){if(a[0]!=="_"&&(e=a,f=b,jA.mark))if(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),f===void 0||g.Mr("web_csi_disable_alt_time_performance_mark"))jA.mark(e);else{f=g.Mr("csi_use_performance_navigation_timing")||g.Mr("csi_use_performance_navigation_timing_tvhtml5")?f-jA.timeOrigin:f-(jA.timeOrigin||jA.timing.navigationStart);try{jA.mark(e,{startTime:f})}catch(m){}}e=cA(c||"");e.tick[a]=b||(0,g.Vt)();if(e.callback&&
e.callback[a])for(e=g.x(e.callback[a]),f=e.next();!f.done;f=e.next())f=f.value,f();e=Hz(c);e.gelTicks&&(e.gelTicks[a]=!0);f=Gz(c);e=b||(0,g.Vt)();g.Mr("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=Ez(c).cttAuthInfo;a==="_start"?(a=gA(),iA(a,"baseline_"+d)||g.Dt("latencyActionBaselined",{clientActionNonce:d},{timestamp:b,cttAuthInfo:f})):gA().tick(a,d,b,f);eua(c);return e}}};
fua=function(){var a,b=(a=jA.getEntriesByType)==null?void 0:a.call(jA,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=jA.clearMarks)==null||d.call(jA,c.name)}})};
gua=function(){switch(hoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
hua=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.x(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.x(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};
iua=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);$f(window)&&a.setAttribute("nonce",$f(window));return c?(a=jA.getEntriesByName(c))&&a[0]&&(a=a[0],c=lA(),mA("rsf_"+b,c+Math.round(a.fetchStart)),mA("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
jua=function(){var a=window.location.protocol,b=jA.getEntriesByType("resource");b=g.wn(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(b=Ol(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(mA("wffs",kA(b.startTime)),mA("wffe",kA(b.responseEnd)))};
kua=function(a,b,c){jA&&jA.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?jA.measure(a,b,c):b?jA.measure(a,b):jA.measure(a))};
lua=function(a){var b=pA("aft",a);if(b)return b;b=g.mr((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=pA(b[d],a);if(e)return e}return NaN};
qA=function(a,b){g.Oa("ytglobal.timing"+(b||"")+"ready_",a)};
pA=function(a,b){if(a=Gz(b)[a])return typeof a==="number"?a:a[a.length-1]};
eua=function(a){var b=pA("_start",a),c=lua(a),d=g.Mr("enable_cow_info_csi")||!mua;b&&c&&d&&(Uu(nua,new eA(Math.round(c-b),a)),mua=!0)};
oua=function(){if(jA.getEntriesByType){var a=jA.getEntriesByType("paint");if(a=g.Xb(a,function(c){return c.name==="first-paint"}))return kA(a.startTime)}var b;
g.Mr("csi_use_performance_navigation_timing")||g.Mr("csi_use_performance_navigation_timing_tvhtml5")?b=jA.getEntriesByType("first-paint")[0].startTime:b=jA.timing.Upa;return b?Math.max(0,b):0};
rA=function(a){Vta(a);pua();fua();a||(g.mr("TIMING_ACTION")&&lr("PREVIOUS_ACTION",g.mr("TIMING_ACTION")),lr("TIMING_ACTION",""))};
qua=function(){var a=["pbs","pbu"];g.qr(function(){cA("").info.actionType="watch";a&&lr("TIMING_AFT_KEYS",a);lr("TIMING_ACTION","watch");var b=hua(g.mr("TIMING_INFO",{}));Object.keys(b).length>0&&oA(b);b={isNavigation:!0,actionType:dA(g.mr("TIMING_ACTION"))};var c=g.mr("PREVIOUS_ACTION");c&&(b.previousAction=dA(c));if(c=g.mr("CLIENT_PROTOCOL"))b.httpProtocol=c;if(c=g.mr("CLIENT_TRANSPORT"))b.transportProtocol=c;(c=g.Xw())&&c!=="UNDEFINED_CSN"&&(b.clientScreenNonce=c);c=gua();if(c===1||c===-1)b.isVisible=
!0;c=Fz().loadType==="cold";var d=Wta();c||(c=d.yt_lt==="cold");if(c){b.loadType="cold";c=Wta();d=bua();var e=lA(),f=g.mr("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.Mr("embeds_web_enable_csi_start_override_killswitch")&&(e=f);e&&(mA("srt",d.responseStart),c.prerender!==1&&nA(e));c=oua();c>0&&mA("fpt",c);c=bua();c.isPerformanceNavigationTiming&&oA({performanceNavigationTiming:!0},void 0);mA("nreqs",c.requestStart,void 0);mA("nress",c.responseStart,void 0);mA("nrese",c.responseEnd,void 0);c.redirectEnd-
c.redirectStart>0&&(mA("nrs",c.redirectStart,void 0),mA("nre",c.redirectEnd,void 0));c.domainLookupEnd-c.domainLookupStart>0&&(mA("ndnss",c.domainLookupStart,void 0),mA("ndnse",c.domainLookupEnd,void 0));c.connectEnd-c.connectStart>0&&(mA("ntcps",c.connectStart,void 0),mA("ntcpe",c.connectEnd,void 0));c.secureConnectionStart>=lA()&&c.connectEnd-c.secureConnectionStart>0&&(mA("nstcps",c.secureConnectionStart,void 0),mA("ntcpe",c.connectEnd,void 0));jA&&"getEntriesByType"in jA&&jua();c=[];if(document.querySelector&&
jA&&jA.getEntriesByName)for(var h in sA)sA.hasOwnProperty(h)&&(d=sA[h],iua(h,d)&&c.push(d));if(c.length>0)for(b.resourceInfo=[],h=g.x(c),c=h.next();!c.done;c=h.next())b.resourceInfo.push({resourceCache:c.value})}oA(b);b=Hz();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);h=b.preLoggedGelInfos;b=Xta();c=void 0;for(d=0;d<h.length;d++)if(e=h[d],e.loadType){c=e.loadType;break}if(Fz().loadType==="cold"&&(b.loadType==="cold"||c==="cold")){c=Gz();d=Hz();d=d.gelTicks?d.gelTicks:d.gelTicks={};for(var l in c)if(!(l in
d))if(typeof c[l]==="number")mA(l,pA(l));else if(g.Mr("log_repeated_ytcsi_ticks"))for(e=g.x(c[l]),f=e.next();!f.done;f=e.next())mA(l.slice(1),f.value);l={};c=!1;h=g.x(h);for(d=h.next();!d.done;d=h.next())c=d.value,Mv(b,c),Mv(l,c),c=!0;c&&oA(l)}qA(!0);l=g.mr("TIMING_ACTION");g.Pa("ytglobal.timingready_")&&l&&tA()&&lua()&&eua()})()};
rua=function(){var a=a===void 0?{}:a;g.qr(function(){tA()&&uA("aa",void 0,void 0);Zta();rA();qA(!1);a.cttAuthInfo&&(Ez().cttAuthInfo=a.cttAuthInfo);lr("TIMING_AFT_KEYS",[]);a.Dpa?g.vA({loadType:"hot"}):g.vA({loadType:"warm"});lr("TIMING_ACTION","");delete g.mr("TIMING_INFO",{}).yt_lt;g.qr(nA)(a.startTime,void 0)})()};
wA=function(a,b){b=b===void 0?{}:b;g.qr(function(){sua(a);var c=b.sampleRate;if(!g.Mr("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var d=Iz(a);c=zsa(d)%c!==0}c&&(Ez(a).actionDisabled=!0);cA(a||"").info.actionType=a;b.cttAuthInfo&&(Ez(a).cttAuthInfo=b.cttAuthInfo);lr(a+"TIMING_ACTION",a);g.qr(nA)(b.startTime,a);c={actionType:dA(a)};b.Npa&&(c.previousAction=dA(g.mr("TIMING_ACTION")));(d=g.Xw())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);g.vA(c,a);qA(!0,a)})()};
sua=function(a){g.qr(function(){tA(a)&&uA("aa",void 0,a);Zta(a);rA(a)})()};
tA=function(a){return g.qr(function(){return xA("_start",a)})()};
g.vA=function(a,b,c){g.qr(oA)(a,b,c===void 0?!1:c)};
uA=function(a,b,c){return g.qr(mA)(a,b,c)};
tua=function(a){g.qr(kua)("action_finished",a,void 0)};
xA=function(a,b){return g.qr(function(){var c=Gz(b);return a in c})()};
vua=function(a){if(!g.Mr("universal_csi_network_ticks"))return"";a=Ui(g.Wi(5,a))||"";for(var b=Object.keys(uua),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
xua=function(a){if(!g.Mr("universal_csi_network_ticks"))return function(){};
var b=uua[a];return b?(yA(b),function(){var c=g.Mr("universal_csi_network_ticks")?(c=wua[a])?yA(c):!1:!1;return c}):function(){}};
yA=function(a,b){return g.qr(function(){if(xA(a,b))return!1;uA(a,void 0,b);return!0})()};
zA=function(a,b,c){g.qr(function(){if(!tA(c)||xA(a,c))return!1;uA(a,b,c);return!0})()};
yua=function(){g.qr(function(){var a=Iz();requestAnimationFrame(function(){setTimeout(function(){a===Iz()&&uA("ftl",void 0,void 0)},0)})})()};
AA=function(a,b,c,d){this.VP=a;this.Ch=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.sz||(a.sz={});a.sz=Object.assign({},zua,a.sz)};
Aua=function(a,b,c,d){if(AA.instance!==void 0){if(d=AA.instance,a=[a!==d.VP,b!==d.Ch,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.lt("InnerTubeTransportService is already initialized",a);
}else AA.instance=new AA(a,b,c,d)};
BA=function(a,b,c){var d=d===void 0?Hu:d;var e=Bua(a,b);return e?new g.Bi(function(f,h){var l,m,n,p,q;return g.I(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.lt("Error: Failed to build request for command.",b));r.Ga(0);break}oz(m.input);p=((n=m.Iv)==null?void 0:n.mode)==="cors"?"cors":void 0;if(a.j.m3){q=Cua(a,m.config,p);r.Ga(4);break}return g.G(r,Dua(a,m.config,p),5);case 5:q=r.B;case 4:f(Eua(a,m,q)),g.va(r)}})}):Ei(new g.lt("Error: No request builder found for command.",
b))};
g.CA=function(a,b,c,d,e){function f(){}
e=e===void 0?{Ww:{identity:Hu}}:e;var h=h===void 0?!0:h;f=xua(vua(c));b.context||(b.context=g.xz(d,h));return new g.Bi(function(l){var m,n,p,q,r;return g.I(function(t){if(t.j==1)return m=ds(c),n=zr(m)?"same-origin":"cors",a.j.m3?(p=Cua(a,e,n),t.Ga(2)):g.G(t,Dua(a,e,n),3);t.j!=2&&(p=t.B);q=Pna(ds(c));r={input:q,Iv:es(q),wq:b,config:e};l(Eua(a,r,p,f));g.va(t)})})};
Gua=function(a,b,c){var d;if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.D){d=g.x(Fua);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
Eua=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,K,N,W,V,da,na,X,R,Y,v,U,$a,wb,ob;return g.I(function(Ea){switch(Ea.j){case 1:Ea.Ga(2);break;case 3:if((e=Ea.B)&&!e.isExpired())return Ea.return(Promise.resolve(e.j()));case 2:if(!((f=b)==null?0:(h=f.wq)==null?0:h.context)){Ea.Ga(4);break}l=b.wq.context;Ea.Ga(5);break;case 5:m=g.x([]),n=m.next();case 8:if(n.done){Ea.Ga(4);break}p=n.value;return g.G(Ea,p.oqa(l),9);case 9:n=m.next();Ea.Ga(8);break;case 4:if((q=a.C)==null||!q.Kqa(b.input,b.wq)){Ea.Ga(12);break}return g.G(Ea,
a.C.Lpa(b.input,b.wq),13);case 13:return r=Ea.B,Gua(a,r,b),Ea.return(r);case 12:return(y=(u=b.config)==null?void 0:u.uC)&&a.B.has(y)?t=a.B.get(y):(A=JSON.stringify(b.wq),H=(F=(C=b.Iv)==null?void 0:C.headers)!=null?F:{},b.Iv=Object.assign({},b.Iv,{headers:Object.assign({},H,c)}),K=Object.assign({},b.Iv),b.Iv.method==="POST"&&(K=Object.assign({},K,{body:A})),((N=b.config)==null?0:N.Bea)&&uA(b.config.Bea),W=function(){return a.Ch.fetch(b.input,K,b.config)},t=W(),y&&a.B.set(y,t)),g.G(Ea,t,14);
case 14:if((V=Ea.B)&&"error"in V&&((da=V)==null?0:(na=da.error)==null?0:na.details))for(X=V.error.details,R=g.x(X),Y=R.next();!Y.done;Y=R.next())v=Y.value,(U=v["@type"])&&Hua.indexOf(U)>-1&&(delete v["@type"],V=v);y&&a.B.has(y)&&a.B.delete(y);(($a=b.config)==null?0:$a.Fea)&&uA(b.config.Fea);if(V||(wb=a.C)==null||!wb.Kna(b.input,b.wq)){Ea.Ga(15);break}return g.G(Ea,a.C.Kpa(b.input,b.wq),16);case 16:V=Ea.B;case 15:return Gua(a,V,b),((ob=b.config)==null?0:ob.gea)&&uA(b.config.gea),d(),Ea.return(V||void 0)}})};
Bua=function(a,b){a:{a=a.VP;var c,d=(c=g.Q(b,Ota))==null?void 0:c.signal;if(d&&a.sz&&(c=a.sz[d])){var e=c();break a}var f;if((c=(f=g.Q(b,Pta))==null?void 0:f.request)&&a.BP&&(f=a.BP[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)};
Dua=function(a,b,c){var d,e,f,h,l,m,n;return g.I(function(p){if(p.j==1){f=((d=b)==null?void 0:(e=d.Ww)==null?void 0:e.identity)||Hu;m=(h=b)==null?void 0:(l=h.Ww)==null?void 0:l.sessionIndex;var q=Di(a.j.DF(f,{sessionIndex:m}));return g.G(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Rta(c),n)))})};
Cua=function(a,b,c){var d,e=(b==null?void 0:(d=b.Ww)==null?void 0:d.identity)||Hu,f;b=b==null?void 0:(f=b.Ww)==null?void 0:f.sessionIndex;a=a.j.DF(e,{sessionIndex:b});return Object.assign({},Rta(c),a)};
DA=function(){};
EA=function(){};
FA=function(a){this.L=a};
GA=function(){};
HA=function(){};
IA=function(){};
JA=function(){};
g.KA=function(a,b){var c=g.Da.apply(2,arguments);a=a===void 0?0:a;g.lt.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
LA=function(a,b,c){this.j=a;this.B=b;this.C=c};
Iua=function(a,b,c){if(a.j){var d=Ui(g.Wi(5,fj(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.Mr("wug_networking_gzip_request")&&(a=nqa(c));return new window.Request(b,a)};
g.NA=function(a,b){if(!MA){var c=cw();Zv(c,{yH:Jua,b4:LA});var d={uP:{feedbackEndpoint:zz(GA),modifyChannelNotificationPreferenceEndpoint:zz(HA),playlistEditEndpoint:zz(IA),shareEntityEndpoint:zz(FA),subscribeEndpoint:zz(DA),unsubscribeEndpoint:zz(EA),webPlayerShareEntityServiceEndpoint:zz(JA)}},e=wz.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=voa());b===void 0&&(b=c.resolve(Jua));Aua(d,b,a,f);Zv(c,{yH:Kua,iV:AA.instance});MA=c.resolve(Kua)}return MA};
Lua=function(a){var b=new Bj;if(a.interpreterJavascript){var c=ena(a.interpreterJavascript);c=g.bg(c).toString();var d=new zj;ve(d,6,c);le(b,zj,1,d)}else a.interpreterUrl&&(c=Pq(a.interpreterUrl),c=g.Lf(c).toString(),d=new Aj,ve(d,4,c),le(b,Aj,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};
OA=function(a){var b={};a=a.split("&");a=g.x(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};
zla=function(){if(g.Mr("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
PA=function(a){this.j=a};
Mua=function(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new PA(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new PA(c))}))})};
Oua=function(){if(!g.Mr("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.Mr("disable_biscotti_fetch_entirely_for_all_web_clients")&&us()){var a=g.mr("PLAYER_VARS",{});if(g.Pg(a,"privembed",!1)!="1"&&!Vna(a)){var b=function(){QA=!0;"google_ad_status"in window?lr("DCLKSTAT",1):lr("DCLKSTAT",2)};
try{g.Iv("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Nua.push(g.jp.aj(function(){if(!(QA||"google_ad_status"in window)){try{if(b){var c=""+g.Va(b),d=Vqa[c];d&&g.Gv(d)}}catch(e){}QA=!0;lr("DCLKSTAT",3)}},5E3))}}};
RA=function(){var a=Number(g.mr("DCLKSTAT",0));return isNaN(a)?0:a};
VA=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;if(g.Mr("attmusi")){var e=new g.Cj;this.j=e.promise;g.Na.ytAtRC&&pt(function(){var f,h;return g.I(function(l){if(l.j==1){if(!g.Na.ytAtRC)return l.return();f=SA(null);return g.G(l,TA(d,f),2)}h=l.B;g.Na.ytAtRC&&g.Na.ytAtRC(JSON.stringify(h));g.va(l)})},2);
Mua().then(function(f){var h,l,m,n;return g.I(function(p){if(p.j==1)return f.bindInnertubeChallengeFetcher(function(q){return TA(d,SA(q))}),g.G(p,Mo(),2);
h=p.B;l=f.getLatestChallengeResponse();m=l.challenge;if(!m)throw Error("BGE_MACIL");n={challenge:m,Rm:OA(m),Qg:h,bgChallenge:new Bj};e.resolve(n);f.registerChallengeFetchedCallback(function(q){q=q.challenge;if(!q)throw Error("BGE_MACR");q={challenge:q,Rm:OA(q),Qg:h,bgChallenge:new Bj};d.j=Promise.resolve(q)});
g.va(p)})})}else b&&Pua(this,new Promise(function(f){g.qt(0,function(){f(UA(d))},0)}))};
SA=function(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b};
UA=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.I(function(u){switch(u.j){case 1:c=SA(Gj().j);if(g.Mr("att_fet_ks"))return g.wa(u,7),g.G(u,TA(a,c),9);g.wa(u,4);return g.G(u,Qua(a,c),6);case 6:h=u.B;e=h.Hda;f=h.Ida;d=h;g.xa(u,3);break;case 4:return g.ya(u),g.fx(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),WA(a,864E5),u.return({challenge:"",Rm:{},Qg: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=OA(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.fx(l);b++;if(b>=5)return g.fx(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),WA(a,864E5),u.return({challenge:"",Rm:{},Qg:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(y){g.qt(0,
function(){y(UA(a,b))},m)}));
case 3:n=Number(f.t)||7200;WA(a,n*1E3);p=void 0;if(!("c1a"in f&&d.bgChallenge)){u.Ga(10);break}q=Lua(d.bgChallenge);g.wa(u,11);return g.G(u,Hj(Gj(),q),13);case 13:g.xa(u,12);break;case 11:return r=g.ya(u),g.fx(r),u.return({challenge:e,Rm:f,Qg:p,bgChallenge:q});case 12:return g.wa(u,14),p=new Dj({challenge:q,MB:{Af:"aGIf"}}),g.G(u,p.NC,16);case 16:g.xa(u,10);break;case 14:t=g.ya(u),g.fx(t),p=void 0;case 10:return u.return({challenge:e,Rm:f,Qg:p,bgChallenge:q})}})};
TA=function(a,b){var c;return g.I(function(d){c=a.B;if(!c||c.Ah())return d.return(TA(a.network,b));zA("att_pna",void 0,"attestation_challenge_fetch");return d.return(new Promise(function(e){c.CG("publicytnetworkstatus-online",function(){TA(a.network,b).then(e)})}))})};
Rua=function(a){if(!a)throw Error("Fetching Attestation challenge returned falsy");if(!a.challenge)throw Error("Missing Attestation challenge");var b=a.challenge,c=OA(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},a,{Hda:b,Ida:c})};
Qua=function(a,b){var c,d,e,f,h;return g.I(function(l){switch(l.j){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){l.Ga(4);break}if(!(d>0)){l.Ga(5);break}e.PX=1E3*Math.pow(2,d-1)+Math.random()*1E3;return g.G(l,new Promise(function(m){return function(n){g.qt(0,function(){n(void 0)},m.PX)}}(e)),5);
case 5:return g.wa(l,7),g.G(l,TA(a,b),9);case 9:return f=l.B,l.return(Rua(f));case 7:c=h=g.ya(l),h instanceof Error&&g.fx(h);case 8:d++;e={PX:void 0};l.Ga(2);break;case 4:throw c;}})};
Pua=function(a,b){a.j=b};
Sua=function(a){var b,c,d;return g.I(function(e){if(e.j==1)return g.G(e,Promise.race([a.j,null]),2);b=e.B;var f=UA(a);a.j=f;(c=b)==null||(d=c.Qg)==null||d.dispose();g.va(e)})};
WA=function(a,b){function c(){var e;return g.I(function(f){e=d-Date.now();return e<1E3?g.G(f,Sua(a),0):(pt(c,0,Math.min(e,6E4)),f.Ga(0))})}
var d=Date.now()+b;c()};
Tua=function(a,b){return new Promise(function(c){g.qt(0,function(){c(b())},a)})};
g.Uua=function(a,b){var c;return g.I(function(d){var e=g.Pa("yt.aba.att");return(c=e?e:VA.instance!==void 0?VA.instance.C.bind(VA.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.Vua=function(){var a;return(a=(a=g.Pa("yt.aba.att2"))?a:VA.instance!==void 0?VA.instance.D.bind(VA.instance):null)?a():Promise.resolve(!1)};
Xua=function(a,b){var c=g.Pa("ytDebugData.callbacks");c||(c={},g.Oa("ytDebugData.callbacks",c));if(g.Mr("web_dd_iu")||Wua.includes(a))c[a]=b};
XA=function(){var a=Yua;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=Zma.apply(null,[$ma.apply(null,g.z(b))].concat(g.z(c)));this.store=bna(a,void 0,b)};
g.YA=function(a,b,c){for(var d=Object.assign({},a),e=g.x(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.z(h),g.z(l)):l;else if(!Array.isArray(l)&&g.Ta(l)&&!Array.isArray(h)&&g.Ta(h))d[f]=g.YA(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.lt("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,fqa:h,updateValue:l}),g.ex(b),
a}return d};
ZA=function(a){var b=this;a=a===void 0?[]:a;this.cg=[];this.Ck=this.Fj=0;this.wF=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
Zua=function(a,b){return a.cg.length===0?!1:(a=a.cg[a.cg.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
$A=function(a,b){b=g.x(b.cg);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
aB=function(a,b,c){return a.split(b).xm.split(c).XK};
bB=function(a){a.wF=void 0;a.Fj=0;a.Ck=0};
cB=function(a,b,c){a.isFocused(b);return b-a.Ck+c<=a.cg[a.Fj].length};
$ua=function(a){if(!a.wF){var b=a.cg[a.Fj];a.wF=new DataView(b.buffer,b.byteOffset,b.length)}return a.wF};
dB=function(a,b,c){a=a.Ok(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};
ava=function(a,b){a.focus(b);return cB(a,b,4)?$ua(a).getUint32(b-a.Ck):256*(256*(256*a.getUint8(b)+a.getUint8(b+1))+a.getUint8(b+2))+a.getUint8(b+3)};
bva=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
eB=function(a){return String.fromCharCode.apply(null,a)};
gB=function(a){return a.length?fB?fB.decode(a):eB(a):""};
g.iB=function(a){if(!a.length)return"";try{if(fB)return fB.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)hB[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;hB[e++]=55296|f>>10;f=56320|f&1023}hB[e++]=f}}f=String.fromCharCode.apply(String,hB);
e<1024&&(f=f.substring(0,e));c.push(f)}return c.join("")};
kB=function(a,b){var c;if((c=jB)==null?0:c.encodeInto)return b=jB.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};
lB=function(a){if(jB)return jB.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=kB(a,b);b.length<c&&(b=new Uint8Array(c),c=kB(a,b));b.length>c&&(b=b.subarray(0,c));return b};
mB=function(a){this.j=a;this.pos=0;this.B=-1};
nB=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};
oB=function(a,b){var c=a.B;for(a.B=-1;a.j.Lx(a.pos,1);){c<0&&(c=nB(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:nB(a);break;case 1:a.pos+=8;break;case 2:d=nB(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
pB=function(a,b){if(oB(a,b))return nB(a)};
qB=function(a,b){if(oB(a,b))return!!nB(a)};
rB=function(a,b){if(oB(a,b)){b=nB(a);var c=a.j.Ok(a.pos,b);a.pos+=b;return c}};
sB=function(a,b){if(a=rB(a,b))return g.iB(a)};
tB=function(a,b,c){if(a=rB(a,b))return c(new mB(new ZA([a])))};
uB=function(a,b){for(var c=[];oB(a,b);)c.push(nB(a));return c.length?c:void 0};
vB=function(a,b,c){for(var d=[],e;e=rB(a,b);)d.push(c(new mB(new ZA([e]))));return d.length?d:void 0};
wB=function(a,b){a=a instanceof Uint8Array?new ZA([a]):a;return b(new mB(a))};
cva=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};
dva=function(a,b){this.Wd=b;this.pos=0;this.B=[];this.j=cva(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
xB=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=cva(c,a.Wd,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
yB=function(a,b){if(b>268435455){xB(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(xB(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};
zB=function(a,b,c){c!==void 0&&(yB(a,b*8),yB(a,c))};
AB=function(a,b,c){c!==void 0&&zB(a,b,c?1:0)};
BB=function(a,b,c){c!==void 0&&(yB(a,b*8+2),b=c.length,yB(a,b),xB(a,b),a.j.set(c,a.pos),a.pos+=b)};
CB=function(a,b,c){c!==void 0&&(eva(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),xB(a,c.length*1.2),b=kB(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(xB(a,b),b=kB(c,a.j.subarray(a.pos))),a.pos+=b,fva(a))};
eva=function(a,b,c){c=c===void 0?2:c;yB(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
fva=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}};
DB=function(a,b,c,d,e){c&&(eva(a,b,e===void 0?3:e),d(a,c),fva(a))};
g.EB=function(a,b,c){c=new dva(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.FB=function(a){var b=new mB(new ZA([wc(decodeURIComponent(a))]));a=sB(b,2);b=pB(b,4);var c=gva[b];if(typeof c==="undefined")throw a=new g.lt("Failed to recognize field number",{name:"EntityKeyHelperError",loa:b}),g.ex(a),a;return{b9:b,entityType:c,entityId:a}};
g.GB=function(a,b){var c=new dva;BB(c,2,lB(a));a=hva[b];if(typeof a==="undefined")throw b=new g.lt("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.ex(b),b;zB(c,4,a);zB(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.uc(b))};
HB=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))};
iva=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.YA(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))};
jva=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.ex(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.ex(new g.lt("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Ig(e.payload);
return HB(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.FB(e).entityType;l=HB(d,m,e);break a}catch(q){if(q instanceof Error){g.ex(new g.lt("Failed to deserialize entity key",{entityKey:e,hT: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.ex(new g.lt("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Ig(e.payload);var n,p;return iva(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 HB(a,c.entityType,c.key,c.a9);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 HB(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,iva(a,c.entityType,c.key,c.a9,c.Ppa);default:return a}};
IB=function(a,b,c){return a[b]?a[b][c]||null:null};
JB=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
PB=function(a){g.O.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!kva){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);KB=new Uint8Array(256);LB=JB(256);MB=JB(256);NB=JB(256);OB=JB(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;KB[f]=e;b=e<<1^(e>>7&&283);var h=b^e;LB[f]=b<<24|e<<16|e<<8|h;MB[f]=h<<24|LB[f]>>>8;NB[f]=e<<24|MB[f]>>>8;OB[f]=e<<24|NB[f]>>>8}kva=!0}e=JB(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=(KB[a>>16&255]^d)<<24|KB[a>>8&255]<<16|KB[a&255]<<8|KB[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
QB=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};
lva=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=LB[c>>>24]^MB[d>>16&255]^NB[e>>8&255]^OB[f&255]^b[n++],l=LB[d>>>24]^MB[e>>16&255]^NB[f>>8&255]^OB[c&255]^b[n++],m=LB[e>>>24]^MB[f>>16&255]^NB[c>>8&255]^OB[d&255]^b[n++],f=LB[f>>>24]^MB[c>>16&255]^NB[d>>8&255]^OB[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=KB[c>>>24]^h>>>24;a[1]=KB[d>>16&255]^h>>16&255;a[2]=KB[e>>8&255]^
h>>8&255;a[3]=KB[f&255]^h&255;h=b[41];a[4]=KB[d>>>24]^h>>>24;a[5]=KB[e>>16&255]^h>>16&255;a[6]=KB[f>>8&255]^h>>8&255;a[7]=KB[c&255]^h&255;h=b[42];a[8]=KB[e>>>24]^h>>>24;a[9]=KB[f>>16&255]^h>>16&255;a[10]=KB[c>>8&255]^h>>8&255;a[11]=KB[d&255]^h&255;h=b[43];a[12]=KB[f>>>24]^h>>>24;a[13]=KB[c>>16&255]^h>>16&255;a[14]=KB[d>>8&255]^h>>8&255;a[15]=KB[e&255]^h&255};
TB=function(){if(!RB&&!g.ou){if(SB)return SB;var a;SB=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=SB)==null?0:b.importKey)&&((c=SB)==null?0:c.sign)&&((d=SB)==null?0:d.encrypt))return SB;SB=void 0}};
g.UB=function(a){this.D=a};
g.VB=function(a){this.B=a};
WB=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.L=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()};
mva=function(a,b,c){for(var d=a.U,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+XB[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+XB[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+XB[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+XB[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};
ova=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;nva(a);return b};
nva=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.U=[];a.U.length=64;a.D=0;a.B=0};
pva=function(a){this.j=a};
qva=function(a,b,c){a=new WB(a.j);a.update(b);a.update(c);b=ova(a);a.update(a.G);a.update(b);b=ova(a);a.reset();return b};
rva=function(a){this.B=a};
sva=function(a,b,c,d){var e,f,h;return g.I(function(l){switch(l.j){case 1:if(a.j){l.Ga(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))}})};
tva=function(a,b,c){a.C||(a.C=new pva(a.B));return qva(a.C,b,c)};
uva=function(a,b,c){var d,e;return g.I(function(f){if(f.j==1){d=TB();if(!d)return f.return(tva(a,b,c));g.wa(f,3);return g.G(f,sva(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.ya(f);g.fx(e);RB=!0;return f.return(tva(a,b,c))})};
wva=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=vva(a[c-1],a[c-2],d),f=vva(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};
vva=function(a,b,c,d){d=d===void 0?!1:d;b=new xva(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}};
xva=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
Ava=function(a){var b,c,d,e;return g.I(function(f){if(f.j==1)return b={context:g.xz(),settingItemIds:a},c=g.Az(yva),d=g.NA(),g.G(f,g.CA(d,b,c),2);e=f.B;return!e||e.errorMetadata?(zva("GetSettingValuesRequest",e),f.return(void 0)):f.return(e.settingValues)})};
Cva=function(a,b){var c,d,e,f;g.I(function(h){if(h.j==1)return c={context:g.xz(),settingItemId:a,newValue:b},d=g.Az(Bva),e=g.NA(),g.G(h,g.CA(e,c,d),2);f=h.B;if(!f||f.errorMetadata)return zva("SetSettingRequest",f),h.return(void 0);g.va(h)})};
zva=function(a,b){b?b.errorMetadata&&g.fx(new g.lt(a+" failed with status "+b.errorMetadata.status)):g.fx(new g.lt(a+" failed with empty response"))};
YB=function(a,b,c){if(!b)return a.length>=1?a[a.length-1]:null;for(var d=g.x(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]};
ZB=function(){this.state=1;this.Qg=null};
Eva=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.xd(2),g.Iv(c,function(){if(window[h])Dva(a,d,h,e);else{a.xd(3);var l=Uqa(c),m=document.getElementById(l);m&&(Sqa(l),m.parentNode.removeChild(m));g.fx(new g.lt("Unable to load Botguard","from "+c))}},f)):b?(f=g.mh("SCRIPT"),b instanceof g.ag?(f.textContent=g.bg(b),g.cg(f)):f.textContent=b,f.nonce=$f(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?Dva(a,d,h,e):(a.xd(4),g.fx(new g.lt("Unable to load Botguard from JS")))):
g.fx(new g.lt("Unable to load VM; no url or JS provided"))};
Dva=function(a,b,c,d){a.xd(5);try{var e=new Dj({program:b,globalName:c,MB:{disable:!g.Mr("att_web_record_metrics"),Af:"aGIf"}});e.NC.then(function(){a.xd(6);d&&d(b)});
a.nU(e)}catch(f){a.xd(7),f instanceof Error&&g.fx(f)}};
$B=function(){var a=g.Pa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
aC=function(){ZB.apply(this,arguments)};
bC=function(){};
Fva=function(a,b,c){for(var d=!1,e=g.x(a.wj.entries()),f=e.next();!f.done;f=e.next())f=g.x(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.Xa==="core"&&(d=!0);if(d){a:if(!c){a=g.x(a.wj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.x(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.VQ(c):My("No triggering layout ID available when attempting to mute.")}};
cC=function(a,b){this.hm=a;this.fp=b};
dC=function(){};
eC=function(){};
Hva=function(a){g.O.call(this);var b=this;this.ud=a;this.j=new Map;fC(this,"commandExecutorCommand",function(c,d,e){Gva(b,c.commands,d,e)});
fC(this,"clickTrackingParams",function(){})};
Iva=function(a,b){fC(a,b.Vr(),function(c,d,e){b.Au(c,d,e)})};
fC=function(a,b,c){a.Ja();a.j.get(b)&&g.ex(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
Gva=function(a,b,c,d){b=b===void 0?[]:b;a.Ja();var e=[],f=[];b=g.x(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.Q(h,Jva)||g.Q(h,Kva)?e.push(h):f.push(h);e=g.x(e);for(b=e.next();!b.done;b=e.next())gC(a,b.value,c,d);f=g.x(f);for(e=f.next();!e.done;e=f.next())gC(a,e.value,c,d)};
gC=function(a,b,c,d){a.Ja();b.loggingUrls&&Lva(a,"loggingUrls",b.loggingUrls,c,d);b=g.x(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.x(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.ud.get().Ss("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.ud.get().Ss("innertubeCommand",{confirmDialogEndpoint:f}):Mva.hasOwnProperty(e)||Lva(a,e,f,c,d)}};
Lva=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.ex(f)}else b=new g.lt("Unhandled field",b),g.fx(b)};
hC=function(a,b,c){this.Uf=a;this.j=b;this.Na=c};
iC=function(a){this.value=a};
jC=function(a){this.value=a};
kC=function(a){this.value=a};
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(){iC.apply(this,arguments)};
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};
AC=function(){iC.apply(this,arguments)};
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(a){this.value=a};
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(){iC.apply(this,arguments)};
nD=function(a){this.value=a};
oD=function(){iC.apply(this,arguments)};
pD=function(){iC.apply(this,arguments)};
qD=function(){iC.apply(this,arguments)};
rD=function(){iC.apply(this,arguments)};
sD=function(){iC.apply(this,arguments)};
tD=function(a){this.value=a};
uD=function(a){this.value=a};
vD=function(a){this.value=a};
wD=function(a){this.value=a};
xD=function(a){this.value=a};
zD=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.x(b);for(c=b.next();!c.done;c=b.next())if(!yD(a.clientMetadata,c.value))return!1;return!0};
AD=function(){return""};
Nva=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}};
BD=function(a,b,c,d){d=d===void 0?!1:d;sb.call(this,a);this.Ml=c;this.Vw=d;this.args=[];b&&this.args.push(b)};
Z=function(a,b,c,d){d=d===void 0?!1:d;sb.call(this,a);this.Ml=c;this.Vw=d;this.args=[];b&&this.args.push(b)};
CD=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
yD=function(a,b){return a.j.has(b)};
DD=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()};
ED=function(a){return Array.from(a.j.keys())};
FD=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.x(b);for(c=b.next();!c.done;c=b.next())if(!yD(a.clientMetadata,c.value))return!1;return!0};
Pva=function(a){var b;return((b=Ova.get(a))==null?void 0:b.xz)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
HD=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:Qva.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=GD(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.x(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(GD(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.x(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(GD(a.value))}return c};
Rva=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:Qva.get(b.Xa)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
GD=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};
Sva=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Ml(d||[],function(e){return HD(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{}));
return b};
JD=function(a,b){return function(c){return Tva(ID(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Xa,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Xa)}};
Tva=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:HD(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Xa:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,clientMetadata:new CD([])}),layoutData:Rva(a,{layoutId:m,layoutType:n,Xa:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],zb:new Map,clientMetadata:new CD([]),Ub:{}})}}};
LD=function(a){this.Aa=a;a=Math.random();var b=this.Aa.get();b=g.KD(b.K.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a<b};
ID=function(a){return a.j||a.Aa.get().K.V().N("html5_force_debug_data_for_client_tmp_logs")};
MD=function(a,b,c,d){g.O.call(this);this.B=b;this.Tb=c;this.Aa=d;this.j=a(this,this,this,this,this);g.P(this,this.j);a=g.x(b);for(b=a.next();!b.done;b=a.next())g.P(this,b.value)};
ND=function(a,b){a.B.add(b)};
OD=function(a,b){a.B.delete(b)};
QD=function(a,b,c,d){My(c,b,void 0,void 0,c.Vw);c.Ml?a.Tb.Gm(d,c.Ml,b):My("adsClientErrorMessage is missing.",b);PD(a,b,!0)};
Vva=function(a,b,c){if(RD(a.j,b))if(SD(a.j,b).D=c?"filled":"not_filled",c===null){a.Tb.gi("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.x(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Fh(b);PD(a,b,!1)}else{a.Tb.gi("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=(e=c.jr)!=null?e:DD(c.clientMetadata,"metadata_type_sub_layouts");if(f)for(e=g.x(f),f=e.next();!f.done;f=e.next())a.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",
b,f.value);e=g.x(a.B);for(f=e.next();!f.done;f=e.next())f.value.Gh(b);if(RD(a.j,b))if(SD(a.j,b).G)PD(a,b,!1);else{a.Tb.gi("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!SD(d,b))throw new BD("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.Jh.Qu.get(b.slotType))throw new BD("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.Xc.length==0)throw new BD("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");TD(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);TD(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);TD(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);
TD(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);TD(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){n instanceof BD?a.Rf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Rf(b,c,new BD("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");PD(a,b,!0);return}SD(a.j,b).L=!0;try{var h=a.j,l=SD(h,b),m=h.Jh.Qu.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=
c;if(l.C)throw new BD("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;UD(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);UD(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);UD(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);UD(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);UD(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",
c.Xc)}catch(n){VD(a,b);n instanceof BD?a.Rf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.Rf(b,c,new BD("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");PD(a,b,!0);return}a.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.x(a.B);for(h=d.next();!h.done;h=d.next())h.value.fh(b,c);VD(a,b);Uva(a,b)}else a=a.Aa.get(),g.WD(a.K.V())||XD(a.K.V())||g.YD(a.K.V())?a=!0:(My("Composite VOD on legacy path."),a=!1),a&&My("slot is unscheduled after been fulfilled.",
b,c)}};
Wva=function(a,b,c){b.Xa!=="core"&&a.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
Xva=function(a,b,c){a.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.x(a.B);for(var d=a.next();!d.done;d=a.next())d.value.fh(b,c)};
Yva=function(a,b,c){a=g.x(a.B);for(var d=a.next();!d.done;d=a.next())d.value.jg(b,c)};
ZD=function(a,b,c){a.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.x(a.B);for(var d=a.next();!d.done;d=a.next())d.value.kc(b,c)};
$D=function(a,b,c,d){a.Tb.gi(Pva(d),b,c,void 0);a=g.x(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Hc(b,c,d)};
VD=function(a,b){if(RD(a.j,b)){SD(a.j,b).L=!1;var c=aE;b=SD(a.j,b);var d=[].concat(g.z(b.W));uba(b.W);c(a,d)}};
aE=function(a,b){b.sort(function(f,h){function l(m){My("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):Nva(f.category,l)-Nva(h.category,l)});
var c=new Map;b=g.x(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,RD(a.j,d.slot))if(SD(a.j,d.slot).L)SD(a.j,d.slot).W.push(d);else{a.Tb.oO("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.x(Zva);for(d=b.next();!d.done;d=b.next())e=g.x(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&$va(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&awa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&bwa(a,
b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&cwa(a,c)};
$va=function(a,b,c){b=g.x(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&bE(a.j,d.slot)&&dwa(a,d.slot,d.layout,c)};
awa=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next())PD(a,c.value.slot,!1)};
bwa=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(SD(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Tb.zk("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.vF(c.slot))}};
cwa=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Tb.zk("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.x(a.B),e=d.next();!e.done;e=d.next())e.value.Eh(c.slot);try{var f=a.j,h=c.slot,l=SD(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(cE(l))throw new Z("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.x(dE(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&cE(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.Ml?(a.Tb.Gm("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Ml,c.slot),My(q,c.slot,eE(a.j,c.slot),void 0,q.Vw)):(a.Tb.Gm("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),My(q,c.slot));PD(a,c.slot,!0);continue}c=SD(a.j,c.slot);c.j!=="scheduled"&&fE(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.fK()}};
Uva=function(a,b){if(RD(a.j,b)&&cE(SD(a.j,b))&&eE(a.j,b)&&!bE(a.j,b)){var c;a.Tb.gi("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,(c=eE(a.j,b))!=null?c:void 0);a=SD(a.j,b);a.j!=="entered"&&fE(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
dwa=function(a,b,c,d){if(RD(a.j,b)){var e=a.Tb,f=e.gi,h;var l=((h=Ova.get(d))==null?void 0:h.lz)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=SD(a.j,b);a.j!=="rendering"&&fE(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.Kd(c,d)}};
PD=function(a,b,c){if(RD(a.j,b)){a:switch(SD(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(SD(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(SD(a.j,b).G=!0,!c))return;if(cE(SD(a.j,b)))SD(a.j,b).G=!0,ewa(a,b,c);else{a:switch(SD(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)SD(a.j,b).G=!0,RD(a.j,b)&&(a.Tb.zk("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=SD(a.j,b),b.D="fill_cancel_requested",b.U.fP());else{c=
eE(a.j,b);(d=a.Aa.get().K.V().experiments.fb("h5_enable_layout_unscheduling_events"))&&(c?a.jg(b,c):My(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Tb.zk("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=SD(a.j,b),f=b.slotEntryTrigger,h=e.Ba.get(f.triggerId);h&&(h.yl(f),e.Ba.delete(f.triggerId));f=g.x(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.qa.get(h.triggerId);l&&(l.yl(h),e.qa.delete(h.triggerId))}f=g.x(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Z.get(h.triggerId))l.yl(h),e.Z.delete(h.triggerId);e.layout!=null&&(f=e.layout,gE(e,f.layoutExitNormalTriggers),gE(e,f.layoutExitSkipTriggers),gE(e,f.layoutExitMuteTriggers),gE(e,f.layoutExitUserInputSubmittedTriggers),gE(e,f.Xc));e.U=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;SD(e,b)&&(e=dE(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Tb.zk("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.x(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Hh(b),c&&!d&&e.jg(b,c)}}}};
ewa=function(a,b,c){if(RD(a.j,b)&&cE(SD(a.j,b))){var d=eE(a.j,b);if(d&&bE(a.j,b))dwa(a,b,d,c?"error":"abandoned");else{a.Tb.zk("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=SD(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"&&fE(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.hK()}catch(f){f instanceof Z&&f.Ml?(a.Tb.Gm("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Ml,b),My(f,b,void 0,void 0,f.Vw)):(a.Tb.Gm("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),My(f,b))}}}};
fwa=function(a){this.slot=a;this.Ba=new Map;this.qa=new Map;this.Z=new Map;this.ra=new Map;this.C=this.layout=this.B=this.U=void 0;this.L=this.G=!1;this.W=[];this.j="not_scheduled";this.D="not_filled"};
cE=function(a){return a.j==="enter_requested"||a.isActive()};
hE=function(a,b,c,d,e,f){g.O.call(this);this.Jh=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Aa=f;this.j=new Map};
dE=function(a,b){return(a=a.j.get(b))?a:new Map};
SD=function(a,b){return dE(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
gwa=function(a){var b=[];a.j.forEach(function(c){c=g.x(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
RD=function(a,b){return SD(a,b)!=null};
bE=function(a,b){a=SD(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};
eE=function(a,b){(a=SD(a,b))?a.layout!=null&&!a.layout&&My("Unexpected empty layout",b):My("Unexpected undefined slotState",b);return(a==null?void 0:a.layout)||null};
iE=function(a,b,c){if(c.length==0)throw new Z("No "+hwa.get(b)+" triggers found for slot.",void 0,iwa(b));c=g.x(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Jh.Rn.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");};
iwa=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"}};
TD=function(a,b,c){c=g.x(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.Jh.Rn.get(d.triggerType))throw new BD("No trigger adapter registered for "+hwa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
UD=function(a,b,c,d){d=g.x(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Jh.Rn.get(e.triggerType);f.ll(c,e,b.slot,b.layout?b.layout:null);b.ra.set(e.triggerId,f)}};
gE=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ra.get(c.triggerId);d&&(d.yl(c),a.ra.delete(c.triggerId))}};
fE=function(a,b,c){My("Slot stage was "+b+" when calling method "+c,a)};
jwa=function(a){return jE(a.bC).concat(jE(a.Rn)).concat(jE(a.fu)).concat(jE(a.Qv)).concat(jE(a.Qu))};
jE=function(a){var b=[];a=g.x(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Zg&&b.push(c);return b};
kE=function(a){g.O.call(this);var b=this;this.j=a;this.instance=null;this.addOnDisposeCallback(function(){g.jb(b.instance);b.instance=null})};
lE=function(a){return new kE(a)};
mE=function(a){g.O.call(this);this.qh=a;this.j=kwa(this)};
kwa=function(a){var b=new MD(function(c,d,e,f){return new hE(a.qh.Jh,c,d,e,f,a.qh.Aa)},new Set(jwa(a.qh.Jh).concat(a.qh.listeners)),a.qh.Tb,a.qh.Aa);
g.P(a,b);return b};
nE=function(a){this.j=a};
oE=function(a,b,c){Gva(a.j(),b,c)};
pE=function(a,b,c,d){(a=a.j())||My("Could not initiate a command router instance.");gC(a,b,c,d)};
qE=function(){this.listeners=new Set};
rE=function(a){this.Aa=a};
lwa=function(a,b){var c=b.bgp&&b.bgub,d=!!b.upb;b.siub&&b.scs&&(c||d)&&(d&&sE(a.Aa.get(),"html5_export_sodar_snapshot")?Mo().then(function(e){e=e.snapshot.bind(e);g.Oa("yt.abuse.playerAttLoaderRun",e);xla(b.siub,b.scs,b.bgub,b.bgp,b.upb)}):xla(b.siub,b.scs,b.bgub,b.bgp,b.upb))};
mwa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Ue=d;this.Aa=e;this.j=null};
owa=function(a,b,c,d){a.j&&My("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.WC?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=JD(a.Ue.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=tE(h.B.get(),f,l),p={layoutId:n,layoutType:f,Xa:"core"};e={layoutId:n,layoutType:f,zb:new Map,layoutExitNormalTriggers:[new nwa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new iD(e)]),Ub:m(p)};Vva(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Ii||QD(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")})};
pwa=function(a){if(a.j==null)a.callback.nM(a.slot);else try{a.j.cancel(),a.j=null,a.callback.nM(a.slot)}catch(b){a.j=null,QD(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")}};
uE=function(a,b,c,d){!a&&(c===void 0?0:c)&&g.fx(Error("Player URL validator detects invalid url. "+(d===void 0?"":d)+": "+b));return a};
vE=function(a,b){return b&&b.test(a)?!0:!1};
wE=function(a){return(a=qwa&&qwa.exec(a))?a[0]:""};
xE=function(a){var b=b===void 0?!1:b;return uE(vE(a,rwa),a,b,"Trusted Stream URL")};
g.yE=function(a){var b=b===void 0?!1:b;return uE(vE(a,swa),a,b,"Trusted Image URL")};
uwa=function(a){var b=b===void 0?!1:b;return uE(vE(a,twa),a,b,"Trusted Promoted Video Domain URL")};
wwa=function(a){var b=b===void 0?!1:b;return uE(vE(a,vwa),a,b,"Drm Licensor URL")};
ywa=function(a,b){b=b===void 0?!1:b;return uE(vE(a,xwa),a,b,"Captions URL")};
zwa=function(a){a=new g.yk(a);g.zk(a,document.location.protocol);g.Ak(a,document.location.hostname);document.location.port&&g.Bk(a,document.location.port);return a.toString()};
zE=function(a){a=new g.yk(a);g.zk(a,document.location.protocol);return a.toString()};
g.BE=function(a,b,c){c=c===void 0?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.lm=0;this.B=Awa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||AE.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.Nl(d.thumbnails,function(e){return g.yE(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Bwa=function(a){return a===-0x8000000000000?"BEFORE_MEDIA_START":a===0?"MEDIA_START":a===0x7ffffffffffff?"MEDIA_END":a===0x8000000000000?"AFTER_MEDIA_END":a.toString()};
Cwa=function(a,b){switch(a.style){case AE.CHAPTER_MARKER:return b?8:5;case AE.AD_MARKER:return 6;case AE.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.CE=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.DE=function(a){return"crn_"+a};
g.EE=function(a){return"crx_"+a};
FE=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Na=h;this.Ia=l;this.Ec=m;this.j=new mwa(a,b,d,e,f)};
Dwa=function(a){var b;(b=a.Ec)==null||b.get().yv(DD(a.slot.clientMetadata,"metadata_type_cue_point").identifier)};
GE=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new mwa(a,b,d,e,f)};
HE=function(a,b){this.callback=a;this.slot=b};
IE=function(a,b){return FD(a,b.Od,b.slotType)?!0:!1};
JE=function(){};
KE=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Ue=c;this.Aa=d;this.Na=e;this.Ia=f;this.Ec=h};
LE=function(){};
Ewa=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};
Gwa=function(a){if(DD(a.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=Fwa(a,a.slot);ME(a.j.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
Hwa=function(a){if(DD(a.slot.clientMetadata,"metadata_type_prefetch_metadata")){var b=Fwa(a,a.slot);ME(a.j.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[b]})}};
Fwa=function(a,b){var c=NE(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:Iwa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:Iwa(b.slotId,c,b.slotExpirationTriggers)})};
Iwa=function(a,b,c){var d=[];c=g.x(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.OE=function(a,b){for(var c=g.x(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};
Jwa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
PE=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.Rf(a.slot,b,new BD("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()};
QE=function(a,b,c,d){g.Fx.call(this);this.callback=a;this.C=d;this.j=[];this.B=new Jwa(a,b,c)};
SE=function(a,b,c,d,e,f,h,l){d=d||DD(c.clientMetadata,f);a=RE(a);var m=zi(function(){e.kc(b,c)});
l.push(h(d,a,c.layoutId,{adsClientData:c.Ub},function(){m()}))};
UE=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.x(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?TE(d,1):e?e():My("Tried to call engagePingCallback but it is null",h,l)}}else My("Companion AdUxClick received without a layoutId",h,l)};
VE=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)};
WE=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"};
XE=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||[]]])};
Kwa=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}};
YE=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.L=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.U={adPlacementConfig:c,f0:e}};
ZE=function(){return["metadata_type_ad_placement_config"]};
RE=function(a){var b=a.Na.get();return $E(b,a.U)};
bF=function(a,b,c){c=c===void 0?!1:c;a.j.has(b)?aF(a,b,[]):a.ac(b,c)};
cF=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)aF(a,"progress",[d]),a.D++;else break}};
dF=function(a,b){return a.j.has(b)};
eF=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
Lwa=function(a,b,c){a.L=b;a.G=c};
aF=function(a,b,c){var d;Mwa(a.Na.get(),a.layoutId,b,c,(d=a.L)!=null?d:void 0,a.G)};
Nwa=function(a,b,c,d,e){Ex.call(this,"ads-engagement-panel-layout",a,b,c,d,e)};
fF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
Owa=function(){var a=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_PANEL"]}};
Pwa=function(a,b,c,d,e){Ex.call(this,"banner-image",a,b,c,d,e)};
gF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);this.adPlacementConfig=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,this.adPlacementConfig,c.layoutId)};
Qwa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
hF=function(a,b,c,d,e){Ex.call(this,"action-companion",a,b,c,d,e)};
iF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
Rwa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
Swa=function(a,b,c,d,e){Ex.call(this,"image-companion",a,b,c,d,e)};
jF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
Twa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
Uwa=function(a,b,c,d,e){Ex.call(this,"shopping-companion",a,b,c,d,e)};
kF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
Vwa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
Wwa=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};
Xwa=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))};
Ywa=function(a,b,c,d){this.Nb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.x(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":Wwa(b)?this.B.push(b):My("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":Xwa(b)?this.j.push(b):My("Invalid AdVideoProgressMillisecondsCommand");break;default:My("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)})};
lF=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.Nb.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.Nb.get().executeCommand(d.command,a.layoutId),a.C++;else break}};
mF=function(a,b,c,d,e,f){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.Zg=!0;ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
Zwa=function(){var a=["metadata_type_action_companion_ad_renderer"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
$wa=function(a,b,c,d,e,f,h,l){this.callback=a;this.slot=b;this.layout=c;this.Ia=d;this.Na=e;this.Aa=h;this.Cb=l;this.j=!1;a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId);var m;a=((m=DD(this.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"))==null?void 0:m.progressCommands)||[];var n=DD(c.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.B=new Ywa(f,a,c.layoutId,function(){return n*1E3})};
nF=function(a,b,c,d,e,f){QE.call(this,a,b,c,d);this.Ia=e;this.G=f;this.D=!1};
oF=function(a,b,c,d,e){Ex.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
pF=function(a,b,c,d,e,f){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.Zg=!0;ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
axa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
qF=function(a,b,c){Ex.call(this,"display-underlay-text-grid-cards",a,{},b,c);this.interactionLoggingClientData=c};
rF=function(a,b,c,d,e,f){QE.call(this,a,b,c,d);this.Na=e;this.D=f;this.G=DD(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
sF=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;Ex.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.vU=e;this.nN=f};
tF=function(a,b,c,d,e){QE.call(this,a,b,c,d);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,e,a,c.layoutId)};
bxa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_ENDCAP"]}};
uF=function(a,b){return zD(a,b.Od,b.Oe)?!0:!1};
vF=function(a,b,c){this.B=a;this.C=b;this.j=c};
cxa=function(a,b,c,d,e){Ex.call(this,"ads-engagement-panel",a,b,c,d,e)};
wF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
dxa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
xF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Na=e;this.vc=f;this.L=l;this.Zg=!0;this.D=null;this.G=DD(c.clientMetadata,"metadata_type_linked_player_bytes_layout_id");ND(this.vc(),this);this.adPlacementConfig=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,this.adPlacementConfig,c.layoutId)};
exa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
fxa=function(a,b,c,d,e){this.Bc=a;this.Na=b;this.vc=c;this.j=d;this.Cb=e};
gxa=function(a,b,c){this.Bc=a;this.Na=b;this.j=c};
hxa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Na=d;this.Vi=e;a=DD(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
ixa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_FORECASTING"]}};
jxa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Na=d;this.Vi=e;a=DD(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
yF=function(a,b,c,d){this.Aa=a;this.Na=b;this.Vi=c;this.Cb=d};
kxa=function(a,b){return yD(a.clientMetadata,"metadata_type_ad_info_ad_metadata")?DD(a.clientMetadata,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Bm,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(My("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
lxa=function(a,b){return yD(a.clientMetadata,"metadata_ad_video_is_listed")?DD(a.clientMetadata,"metadata_ad_video_is_listed"):b?b.isListed:(My("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
mxa=function(a,b,c,d){Ex.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
zF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Ia=e;this.Na=f;this.L=h;this.G=l;this.D=!1;this.U=DD(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
nxa=function(a){if(a.layout.renderingContent){var b;return(b=DD(a.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return DD(a.layout.clientMetadata,"metadata_type_player_bytes_callback")};
AF=function(a,b,c,d,e,f,h,l){QE.call(this,a,b,c,d);this.Ia=e;this.Na=f;this.L=h;this.G=l;this.D=!1;this.U=DD(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")};
oxa=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"],Oe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
BF=function(a){if(a.layout.renderingContent){var b;return(b=DD(a.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return DD(a.layout.clientMetadata,"metadata_type_player_bytes_callback")};
pxa=function(a,b,c){Ex.call(this,"ad-message",a,void 0,b,c)};
CF=function(a,b,c,d,e,f){QE.call(this,c,a,b,d);this.Ia=e;this.Aa=f};
qxa=function(){return{Od:["metadata_type_valid_ad_message_renderer"],Oe:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
rxa=function(a,b,c,d){Ex.call(this,"video-interstitial-buttoned-centered",a,b,c,d);this.interactionLoggingClientData=d};
DF=function(a,b,c,d,e){QE.call(this,a,b,c,d);a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,e,a,c.layoutId)};
HF=function(a,b,c,d,e,f,h,l,m){return uF(c,oxa())||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Q(c.renderingContent,EF)!==void 0?new AF(a,b,c,d,e,f,h,l):uF(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"],Oe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Q(c.renderingContent,FF)!==void 0?
new zF(a,b,c,d,e,f,h,l):uF(c,bxa())||c.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.Q(c.renderingContent,GF)!==void 0?new tF(a,b,c,d,f):uF(c,qxa())?new CF(b,c,a,d,e,m):uF(c,{Od:["metadata_type_instream_ad_player_overlay_renderer"],Oe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new nF(a,b,c,d,e,l):c.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.Q(c.renderingContent,sxa)!==void 0?new DF(a,b,c,d,f):null};
txa=function(a,b,c,d,e,f){this.Bc=a;this.Ia=b;this.Na=c;this.B=d;this.j=e;this.Aa=f};
IF=function(a){return!a.Gy.isPlaying()&&a.state.isPlaying()};
JF=function(a,b,c){return a<b?!1:c!=null?c<=b:a<=b+1};
uxa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ia=d;this.Na=e;this.Aa=f;this.Cb=h;this.j=!1;a=DD(c.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId)};
KF=function(a,b){a.j||(a.bb.ac(b),a.j=!0)};
vxa=function(a,b,c,d,e){this.Ia=a;this.Na=b;this.Nb=c;this.Aa=d;this.Cb=e};
LF=function(){this.currentState=1;this.j="unknown"};
MF=function(a,b){if(a.currentState>1){g.fx(new g.lt("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0};
NF=function(a){if(a.currentState!==2)return!1;a.currentState=3;return!0};
wxa=function(a,b){var c=new Map;a=g.x(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=DD(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.K.oa("uct",d)}}a=
b.Tl();OF={contentCpn:a,Rt:c};d={};c=(d.ct=c.size,d.c=a,d);b.K.oa("acc",c)};
xxa=function(){OF={contentCpn:"",Rt:new Map}};
PF=function(a){var b;return(b=OF.Rt.get(a))!=null?b:"u"};
QF=function(a,b,c){a.K.oa(b,c);yxa(a)};
zxa=function(a){var b=a.layoutId,c=a.Bs;if(a.Uo){var d={};QF(a.Uf,"slso",(d.ec=b,d.is=c,d.ctp=PF(b),d))}};
RF=function(a){var b=a.layoutId,c=a.Bs;if(a.Uo){var d={};QF(a.Uf,"slse",(d.ec=b,d.is=c,d.ctp=PF(b),d))}};
Axa=function(a){var b=a.layoutId,c=a.Bs,d=a.Uf;a.Uo&&(a={},QF(d,"sleo",(a.xc=b,a.is=c,a.ctp=PF(b),a)),yxa(d))};
Bxa=function(a){var b=a.cpn,c=a.Uf;a=a.Bs;var d=c.Tl(),e={};QF(c,"ce",(e.ec=b,e.ia=b!==d,e.r=OF.Rt.has(b),e.is=a,e.ctp=PF(b),e))};
yxa=function(a){if(a.Tl()!==OF.contentCpn){var b={};b=(b.c=OF.contentCpn,b);a.K.oa("ccm",b)}};
Cxa=function(a){var b=a.cpn,c=a.Uf;a=a.Bs;var d=c.Tl(),e={};QF(c,"cx",(e.xc=b,e.ia=b!==d,e.r=OF.Rt.has(b),e.is=a,e.ctp=PF(b),e))};
Dxa=function(a){this.params=a;this.j=new Set};
Exa=function(a,b,c){if(!a.j.has(b)){a.j.add(b);var d={};a.params.ej.Rj(b,Object.assign({},c,(d.p_ac=a.params.adCpn,d.p_isv=a.params.Z$&&a.params.Of,d)))}};
TF=function(a,b,c){if(SF(a.params.ej.Aa.get(),!0)){var d=c.flush,e={};Exa(a,b,(e.cts=c.currentTimeSec,e.f=d,e))}};
Fxa=function(a,b){this.Uf=a;this.Aa=b};
UF=function(a){var b=[];if(a){a=g.x(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.x(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(";")};
VF=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c};
WF=function(a){return a===1||a===2};
XF=function(a,b){b=b===void 0?0:b;if(a instanceof VF)return a;a=a&&a instanceof Error?a:Error(""+a);WF(b)?g.ex(a):g.fx(a);return new VF(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.Hxa=function(a){return(a=Gxa[a.toString()])?a:"LICENSE"};
Ixa=function(a,b){function c(){var d=g.Da.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.z(d))}
a.addEventListener("playing",c)};
YF=function(){var a=g.Pa("yt.player.utils.videoElement_");a||(a=g.mh("VIDEO"),g.Oa("yt.player.utils.videoElement_",a));return a};
ZF=function(a){var b=YF();return!!(b&&b.canPlayType&&b.canPlayType(a))};
aG=function(a){if(/opus/.test(a)&&g.$F&&!Rp("38")&&!g.is())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)&&!Rna())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!ZF(a)};
Jxa=function(a){try{var b=aG('video/mp4; codecs="avc1.42001E"')||aG('video/webm; codecs="vp9"');return(aG('audio/mp4; codecs="mp4a.40.2"')||aG('audio/webm; codecs="opus"'))&&(b||!a)||ZF('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
bG=function(){var a=YF();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")};
cG=function(){var a=YF();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.dG=function(){Ts.apply(this,arguments)};
eG=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};
hG=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||fG(a,b);this.j=g.gG[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.gG[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||""};
fG=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=iG[0];for(var d=0;d<iG.length;d++){var e=iG[d],f=g.gG[e];if(c>=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"};
lG=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.sb>0||(c.sb=16E3);Object.assign(this,c);a=g.x(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=jG(b);this.ob=kG[this.itag]||""};
mG=function(a){return a.ob==="9"||a.ob==="("||a.ob==="9h"||a.ob==="(h"};
Kxa=function(a){return a.ob==="H"||a.ob==="h"};
nG=function(a){return a.ob==="9h"||a.ob==="(h"};
oG=function(a){return a.ob==="1"||a.ob==="1h"};
pG=function(a){return a.ob==="mac3"||a.ob==="meac3"||a.ob==="m"};
qG=function(a){return a.ob==="MAC3"||a.ob==="MEAC3"||a.ob==="M"};
g.rG=function(a){return a.containerType===1};
Lxa=function(a){return a.ob==="("||a.ob==="(h"||a.ob==="H"};
sG=function(a){return a.mimeType==="application/x-mpegURL"};
tG=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
Mxa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.ob==="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.sb*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.sb*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
uG=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
vG=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
wG=function(a){return a.includes("vtt")||a.includes("text/mp4")};
jG=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};
xG=function(a,b,c,d,e,f){var h=new eG;b in g.gG||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.gG[b],d=Math.round(e*16/9));f=new hG(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new lG(c,a,{audio:h,video:f})};
yG=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.Xw)==null?void 0:c.toFixed(0))+", "+((d=a.sb)==null?void 0:d.toFixed(0))+")"};
zG=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
Nxa=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 zG(d,e)};
AG=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)};
BG=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};
CG=function(a,b){return BG(a,b)>=0};
Oxa=function(a,b){if(!a)return NaN;b=BG(a,b);return b>=0?a.start(b):NaN};
DG=function(a,b){if(!a)return NaN;b=BG(a,b);return b>=0?a.end(b):NaN};
EG=function(a){return a&&a.length?a.end(a.length-1):NaN};
FG=function(a,b){a=DG(a,b);return a>=0?a-b:0};
GG=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 zG(d,e)};
HG=function(a,b,c,d){g.Fx.call(this);var e=this;this.Jd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.GZ={error:function(){!e.Ja()&&e.isActive&&e.publish("error",e)},
updateend:function(){!e.Ja()&&e.isActive&&e.publish("updateend",e)}};
g.Gx(this.Jd,this.GZ);this.OI=this.isActive};
JG=function(a,b,c,d,e,f){g.Fx.call(this);var h=this;this.Rb=a;this.Ih=b;this.id=c;this.containerType=d;this.ob=e;this.Of=f;this.KR=this.wG=this.Pf=null;this.IJ=!1;this.appendWindowStart=this.timestampOffset=0;this.bP=zG([],[]);this.QE=!1;this.vG=[];this.AC=IG?[]:void 0;this.Md=function(m){return h.publish(m.type,h)};
var l;if((l=this.Rb)==null?0:l.addEventListener)this.Rb.addEventListener("updateend",this.Md),this.Rb.addEventListener("error",this.Md)};
KG=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
LG=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1};
MG=function(a,b,c){c=c===void 0?!1:c;g.O.call(this);this.mediaElement=a;this.Ra=b;this.isView=c;this.L=0;this.D=!1;this.G=!0;this.Z=0;this.callback=null;this.W=!1;this.Ra||(this.Ih=this.mediaElement.Jb());this.events=new g.dG(this);g.P(this,this.events);this.C=new LG(this.Ra?window.URL.createObjectURL(this.Ra):this.Ih.webkitMediaSourceURL,!0);a=this.Ra||this.Ih;Us(this.events,a,["sourceopen","webkitsourceopen"],this.kda);Us(this.events,a,["sourceclose","webkitsourceclose"],this.jda);this.U={updateend:this.o6}};
Pxa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Qxa=function(a,b){NG(a)?g.vi(function(){b(a)}):a.callback=b};
Rxa=function(a,b,c){if(OG){var d;PG(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ma)==null?void 0:QG(d)},!1);g.Gx(b,a.U,a);g.Gx(c,a.U,a)}a.j=b;a.B=c;g.P(a,b);g.P(a,c)};
Sxa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.ob;c=c.ob;var f;a.qa=(f=a.Ra)==null?void 0:f.addSourceBuffer(e);var h;a.ra=d.split(";")[0]==="fakesb"?void 0:(h=a.Ra)==null?void 0:h.addSourceBuffer(d);a.Ih&&(a.Ih.webkitSourceAddId("0",e),a.Ih.webkitSourceAddId("1",d));f=new JG(a.qa,a.Ih,"0",jG(e),c,!1);d=new JG(a.ra,a.Ih,"1",jG(d),b,!0);Rxa(a,f,d)};
RG=function(a){return!!a.j||!!a.B};
NG=function(a){try{return SG(a)==="open"}catch(b){return!1}};
SG=function(a){if(a.Ra)return a.Ra.readyState;switch(a.Ih.webkitSourceState){case a.Ih.SOURCE_OPEN:return"open";case a.Ih.SOURCE_ENDED:return"ended";default:return"closed"}};
TG=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
Txa=function(a){NG(a)&&(a.Ra?a.Ra.endOfStream():a.Ih.webkitSourceEndOfStream(a.Ih.EOS_NO_ERROR))};
Uxa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Jd:a.j,f=a.B.isView()?a.B.Jd:a.B,h=new MG(a.mediaElement,a.Ra,!0);h.C=a.C;Rxa(h,new HG(e,b,c,d),new HG(f,b,c,d));NG(a)||a.j.Mn(a.j.Mc());return h};
Vxa=function(a){var b;(b=a.j)==null||b.nA();var c;(c=a.B)==null||c.nA();a.G=!1};
UG=function(){var a=this;this.FT=this.yC=bba;this.promise=new g.Bi(function(b,c){a.yC=b;a.FT=c})};
VG=function(){g.O.call(this);this.bL=!1;this.resource=null;this.U=this.L=!1;this.D=new g.mi;this.ma=null;g.P(this,this.D)};
WG=function(a){a=a.WA();return a.length<1?NaN:a.end(a.length-1)};
Wxa=function(a){!a.B&&Pxa()&&(a.C?a.C.then(function(){return Wxa(a)}):a.xi()||(a.B=a.Xr()))};
Xxa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
PG=function(a,b,c){var d;((d=a.ma)==null?0:d.Xb())&&a.ma.oa("rms",b,c===void 0?!1:c)};
Yxa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.Hr(function(){Yxa(a,a.getCurrentTime(),c+1)},500))};
Zxa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
XG=function(a){return FG(a.Rh(),a.getCurrentTime())};
$xa=function(a,b){if(a.Jl()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.WA(),a.length||!c)?CG(a,b):c};
YG=function(a){a.xi()&&(a.ma&&a.ma.Vv("rs_s"),nu&&a.getCurrentTime()>0&&a.seekTo(0),a.WM(),a.load(),Zxa(a,null));delete a.C};
ZG=function(a){switch(a.Th()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.dg())==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.$G=function(a,b,c){this.Yg=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64};
aH=function(a,b,c){c=c===void 0?!1:c;return aya(a,b.getCurrentTime(),(0,g.Vt)(),XG(b),c)};
bH=function(a,b,c,d){if(!(b===a.state&&c===a.Yg&&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.$G(b,c,e?d?d:a.seekSource:null)}return a};
cH=function(a,b,c){return bH(a,a.state|b,null,c===void 0?null:c)};
dH=function(a,b){return bH(a,a.state&~b,null,null)};
JH=function(a,b,c,d){return bH(a,(a.state|b)&~c,null,d===void 0?null:d)};
g.T=function(a,b){return!!(a.state&b)};
g.MH=function(a,b){return b.state===a.state&&b.Yg===a.Yg};
NH=function(a){return a.isPlaying()&&!g.T(a,16)&&!g.T(a,32)};
OH=function(a){return g.T(a,128)?-1:g.T(a,2)?0:g.T(a,2048)?3:g.T(a,64)?-1:g.T(a,1)&&!g.T(a,32)?3:g.T(a,8)?1:g.T(a,4)?2:-1};
QH=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.zp=a;this.slot=b;this.layout=c;this.Na=d;this.Cb=e;this.Sa=f;this.Ia=h;this.Kc=l;this.Nb=m;this.In=n;this.position=q;this.L=r;this.Aa=t;this.Nu=u;this.Xh=y;this.context=A;this.Zg=!0;this.G=!1;this.pc="not_rendering";this.B=!1;this.C=new LF;a=DD(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(c.zb,this.Na,a,c.layoutId);var F;a=((F=PH(this))==null?void 0:F.progressCommands)||[];this.D=new Ywa(m,
a,c.layoutId,function(){return C.PA()});
this.j=new Dxa({adCpn:this.layout.layoutId,ej:A.ej,Z$:this.Nu,Of:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})};
RH=function(a){return{layoutId:a.QA(),Bs:a.Nu,Uf:a.Sa.get(),Uo:a.qf()}};
SH=function(a,b){return b.layoutId!==a.layout.layoutId?(a.zp.Rf(a.slot,b,new BD("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};
TH=function(a){a.pc="rendering_start_requested";a.In(-1)};
PH=function(a){return DD(a.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
bya=function(a){My("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)};
cya=function(a){var b;return((b=UH(a.Sa.get(),2))==null?void 0:b.clientPlaybackNonce)||""};
VH=function(a,b){switch(b){case "normal":a.ac("complete");break;case "skipped":a.ac("skip");break;case "abandoned":dF(a.bb,"impression")&&a.ac("abandon")}};
WH=function(a,b){a.G||(b=new g.Ny(b.state,new g.$G),a.G=!0);return b};
XH=function(a,b){IF(b)?a.In(1):g.Py(b,4)&&!g.Py(b,2)&&a.G3();Oy(b,4)<0&&!(Oy(b,2)<0)&&a.H3()};
dya=function(a){a.position===0&&(a.Kc.get(),a=DD(a.layout.clientMetadata,"metadata_type_ad_placement_config").kind,a={adBreakType:YH(a)},uA("ad_bl"),g.vA(a))};
ZH=function(a,b){bF(a.bb,b,!a.B)};
fya=function(a){var b;return(((b=PH(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.Q(c==null?void 0:c.command,eya)})!==-1};
$H=function(a,b){var c=DD(a.clientMetadata,"metadata_type_eligible_for_ssap");return c===void 0?(My("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.qf(c)};
aI=function(a,b){if(!sE(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 My("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return My("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:a}),3;default:ed(a,"unknown layoutExitReason")}};
gya=function(a){My("getExitReason: unexpected reason",void 0,void 0,{reason:a})};
bI=function(a,b){if(sE(b.get(),"html5_ssap_pass_transition_reason"))switch(a){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return gya(a),"abandoned";case 3:case 1:return gya(a),"error";default:ed(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 My("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:ed(a,"unexpected transition reason")}};
cI=function(a,b,c){xA(a,c)||zA(a,b,c);xA(a,"video_to_ad")||zA(a,b,"video_to_ad");xA(a,"ad_to_video")||zA(a,b,"ad_to_video");xA(a,"ad_to_ad")||zA(a,b,"ad_to_ad")};
dI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C){QH.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,y,A,C);var F=this;this.ud=m;this.uq=q;this.kL=!0;this.NR=this.xj=0;this.LJ=zi(function(){zxa(RH(F));F.zp.kc(F.slot,F.layout)});
this.VE=zi(function(){Axa(RH(F));F.pc!=="rendering_stop_requested"&&F.uq(F);F.layoutExitReason?F.zp.Hc(F.slot,F.layout,F.layoutExitReason):bya(F)});
this.ye=new g.Ji(200);this.ye.listen("tick",function(){F.Uc()});
g.P(this,this.ye)};
fI=function(a){a.NR=Date.now();eI(a,a.xj);a.ye.start()};
hya=function(a){a.xj=a.PA();a.Cz(a.xj/1E3,!0);eI(a,a.xj)};
eI=function(a,b){b={current:b/1E3,duration:a.PA()/1E3};a.ud.get().Ss("onAdPlaybackProgress",b)};
gI=function(a){dI.call(this,a.zp,a.slot,a.Ag,a.Na,a.Cb,a.Sa,a.Ia,a.Kc,a.ud,a.Nb,a.In,a.uq,a.Pn,a.zI,a.Aa,a.Nu,a.Xh,a.context)};
hI=function(a){dI.call(this,a.zp,a.slot,a.Ag,a.Na,a.Cb,a.Sa,a.Ia,a.Kc,a.ud,a.Nb,a.In,a.uq,a.Pn,a.zI,a.Aa,a.Nu,a.Xh,a.context)};
iI=function(){hI.apply(this,arguments)};
iya=function(a){return $H(a.slot,a.Aa.get())?new iI(a):new gI(a)};
lI=function(a){QH.call(this,a.callback,a.slot,a.Ag,a.Na,a.Cb,a.Sa,a.Ia,a.Kc,a.Nb,a.In,a.uq,a.Pn,a.zI,a.Aa,a.Nu,a.Xh,a.context);var b=this;this.adCpn="";this.yX=0;this.KZ=!1;this.A_=0;this.LJ=zi(function(){zxa(RH(b));b.zp.kc(b.slot,b.layout)});
this.VE=zi(function(){Axa(RH(b));b.pc!=="rendering_stop_requested"&&b.uq(b);b.layoutExitReason?b.zp.Hc(b.slot,b.layout,b.layoutExitReason):bya(b)});
this.Df=a.Df;this.Ad=a.Ad;this.Wc=a.Wc;this.ud=a.ud;this.Gg=a.Gg;this.uq=a.uq;if(!this.qf()){sE(this.Aa.get(),"html5_disable_media_load_timeout")||(this.IL=new g.qp(function(){b.YL("load_timeout",new BD("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4));
a=jI(this.Aa.get());var c=kI(this.Aa.get());a&&c&&(this.LB=new g.qp(function(){var d=DD(b.layout.clientMetadata,"metadata_type_preload_player_vars");d&&b.Ad.get().K.preloadVideoByPlayerVars(d,2,300)}))}};
kya=function(a,b){var c=DD(b.clientMetadata,"metadata_type_ad_video_id"),d=DD(b.clientMetadata,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.Gg.get().K.V().La.add(c,{GJ:d});(b=DD(b.clientMetadata,"metadata_type_sodar_extension_data"))&&lwa(a.Df.get(),b);jya(a.Ia.get(),!1)};
lya=function(a){jya(a.Ia.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ia.get().er(!1)};
mya=function(a){var b=DD(a.Zb().clientMetadata,"metadata_type_player_bytes_slot_metadata");b===void 0&&My("PlayerBytesSlotMetadata is not filled",a.Zb(),a.Wa());return(b==null?void 0:b.Ku)===!0};
mI=function(){lI.apply(this,arguments)};
nI=function(){mI.apply(this,arguments)};
nya=function(a){return iya(Object.assign({},a,{zp:a.callback,In:function(){}}))};
oya=function(a){return new lI(Object.assign({},a,{In:function(b){a.ud.get().Ss("onAdIntroStateChange",b)}}))};
pya=function(a){function b(c){a.ud.get().zH(c)}
return $H(a.slot,a.Aa.get())?new nI(Object.assign({},a,{In:b})):new lI(Object.assign({},a,{In:b}))};
oI=function(a){for(var b=a.Ag,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.x(ZE()),e=d.next();!e.done;e=d.next())c.push(e.value);if(uF(b,{Od:c,Oe:["LAYOUT_TYPE_MEDIA_BREAK"]}))return nya(a);b=a.Ag;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.x(ZE());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(uF(b,{Od:c,Oe:["LAYOUT_TYPE_MEDIA"]}))return yD(a.Ag.clientMetadata,"metadata_type_ad_intro")?oya(a):pya(a)};
rya=function(a){var b=DD(a.clientMetadata,"metadata_type_ad_placement_config").kind,c=DD(a.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:qya(c),adBreakType:YH(b)}};
YH=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"}};
qya=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"}};
sya=function(a){try{return new pI(a.vt,a.slot,a.layout,a.ke,a.nf,a.Sa,a.Ec,a.Ad,a.vc,a.Ia,a.Afa,a)}catch(b){}};
pI=function(a,b,c,d,e,f,h,l,m,n,p,q){g.O.call(this);this.vt=a;this.slot=b;this.layout=c;this.ke=d;this.nf=e;this.Sa=f;this.Ec=h;this.Ad=l;this.vc=m;this.Ia=n;this.params=q;this.Zg=!0;a=oI(p);if(!a)throw Error("Invalid params for sublayout");this.yd=a};
tya=function(){this.j=1;this.B=new LF};
qI=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.O.call(this);this.callback=a;this.Sa=b;this.Ec=c;this.Ad=d;this.Ia=e;this.Kc=f;this.xp=h;this.slot=l;this.layout=m;this.ke=n;this.Vi=p;this.vc=q;this.Aa=r;this.Zg=!0;this.Rx=!1;this.Yh=[];this.DE=-1;this.sR=!1;this.Tt=new tya};
uya=function(a){var b;return(b=a.layout.jr)!=null?b:DD(a.layout.clientMetadata,"metadata_type_sub_layouts")};
rI=function(a){return{Uf:a.Sa.get(),Bs:!1,Uo:a.qf()}};
vya=function(a,b,c){if(a.Sl()===a.Yh.length-1){var d,e;My("Unexpected skip requested during the last sublayout",(d=a.Hf())==null?void 0:d.Zb(),(e=a.Hf())==null?void 0:e.Wa(),{requestingSlot:b,requestingLayout:c})}};
wya=function(a,b,c){return c.layoutId!==sI(a,b,c)?(My("onSkipRequested for a PlayerBytes layout that is not currently active",a.Zb(),a.Wa()),!1):!0};
xya=function(a){a.Sl()===a.Yh.length-1&&My("Unexpected skip with target requested during the last sublayout")};
yya=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==sI(a,b,c)?(My("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.Zb(),a.Wa(),{requestingSlot:b,requestingLayout:c}),!1):!0};
zya=function(a,b,c,d){var e=DD(b.Wa().clientMetadata,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e<a.Yh.length){a:{for(var f=e;f<a.Yh.length;){if(e===DD(a.Yh[f].Wa().clientMetadata,"metadata_type_ad_pod_skip_index")){a=f;break a}f++}a=void 0}if(a===void 0)My("Skip-to-index was requested but target index was not found",b.Zb(),b.Wa(),{requestingSlot:c,requestingLayout:d});else return a}else My("Invalid ad pod skip target index",b.Zb(),b.Wa(),{requestingSlot:c,requestingLayout:d})};
sI=function(a,b,c){var d=DD(a.Wa().clientMetadata,"metadata_type_linked_in_player_layout_id");return d?d:(My("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Zb(),a.Wa(),{requestingSlot:b,requestingLayout:c}),null)};
Bya=function(a,b,c,d){Aya(a,b,c,"skipped",function(){tI(a,d)})};
Aya=function(a,b,c,d,e){if(!a.sR){var f=a.Hf();if(f){f.Wa().layoutId!==c.layoutId&&My("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Wa().layoutId});a.sR=!0;f.Kd(f.Wa(),d);f=Object.assign({},rI(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.Uo){var m={};QF(f.Uf,"wrsx",(m.xc=h,m.ler=l,m.ctp=PF(h),m))}a.xP(b,c,d);a.sR=!1;a.XZ?(a.XZ(),a.qf()||uI(a.Kc.get())):e()}else My("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
b,c)}};
tI=function(a,b){if(a.Sl()===a.Yh.length-1)a.DE++,vI(a.Vi,a.layout,"normal"),a.qf()||uI(a.Kc.get());else a:{if(a.Sl()===-1&&(a.callback.kc(a.slot,a.layout),b>0)){My("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.DE=b;b=a.Hf();if(a.Sl()>0&&!a.qf()){var c=a.Kc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});wA("ad_to_ad",d)}a.HU(b)}};
wI=function(a){qI.call(this,a.vt,a.Sa,a.Ec,a.Ad,a.Ia,a.Kc,a.xp,a.slot,a.layout,a.ke,a.Vi,a.vc,a.Aa)};
Cya=function(a){(a=a.Hf())&&a.XA()};
xI=function(a){qI.call(this,a.vt,a.Sa,a.Ec,a.Ad,a.Ia,a.Kc,a.xp,a.slot,a.layout,a.ke,a.Vi,a.vc,a.Aa);this.rf=void 0};
Dya=function(a,b){a.Mv()&&!NF(a.Tt.B)||a.callback.Hc(a.slot,a.layout,b)};
yI=function(a){return sE(a.Aa.get(),"html5_ssap_pass_transition_reason")};
Eya=function(a,b,c){b.Ho().currentState<2&&(c=bI(c,a.Aa),b.Kd(b.Wa(),c));c=b.Ho().j;a.xP(a.slot,b.Wa(),c)};
Fya=function(a,b){if(a.Tt.B.currentState<2){var c=bI(b,a.Aa);c==="error"?a.callback.Rf(a.slot,a.layout,new BD("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:b},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):vI(a.Vi,a.layout,c)}};
zI=function(a,b,c){b.Ho().currentState>=2||(b.Kd(b.Wa(),c),NF(b.Ho())&&($D(a.xp,a.slot,b.Wa(),c),a.rf=void 0))};
Gya=function(a,b){a.Tt.j===2&&b!==a.Tl()&&My("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})};
Hya=function(a,b){var c=a.Hf();if(c){var d=c.Wa().layoutId,e=a.Sl()+1;a.Mv()?zI(a,c,b):c.Kd(c.Wa(),b);e>=0&&e<a.Yh.length?(c=a.Yh[e].Wa().layoutId,yI(a)&&(["normal","skipped"].includes(b)||My("exitActiveLayoutAndPlayNext: unexpected exit reason",a.slot,a.layout,{exitReason:b})),a.Ec.get().finishSegmentByCpn(d,c,aI(b,a.Aa))):e===a.Yh.length?vI(a.Vi,a.layout,"normal"):My("unexpected index",a.slot,a.layout,{index:e})}else My("exitActiveLayoutAndPlayNext: no active adapter",a.slot,a.layout)};
Iya=function(a,b){My(b+": undefined adapter",a.slot,a.layout)};
Jya=function(a){return $H(a.slot,a.Aa.get())?new xI(a):new wI(a)};
AI=function(a,b,c,d,e,f,h){g.O.call(this);this.callback=a;this.Ad=b;this.Ia=c;this.Kc=d;this.yd=e;this.vc=f;this.Aa=h;this.Zg=!0;this.Rx=!1};
Kya=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,K,N){function W(){var X=oI(Object.assign({},na,{callback:{kc:a.kc.bind(a),Hc:a.Hc.bind(a),wC:function(){},
Rf:a.Rf.bind(a)},slot:c,Ag:d,uq:function(){vI(h,d,"normal")},
Pn:0,zI:1,Nu:!0}));return X?new AI(a,p,r,u,X,e,F):X}
function V(){var X=Object.assign({},na,{callback:{kc:function(){},
Hc:function(){},
wC:function(){return void vI(h,d,"normal")},
Rf:function(){}},
slot:c,Ag:d,uq:function(){},
Pn:0,zI:1,Nu:!0});return sya({vt:a,slot:c,layout:d,ke:f,nf:h,Sa:q,Ec:H,Ad:p,vc:e,Ia:r,Afa:X,context:K})}
function da(){var X,R=(X=d.jr)!=null?X:DD(d.clientMetadata,"metadata_type_sub_layouts");X=Jya({vt:a,Sa:q,Ec:H,Ad:p,Ia:r,Kc:u,xp:b,slot:c,layout:d,ke:f,Vi:h,vc:e,Aa:F});for(var Y=[],v={Ox:0};v.Ox<R.length;v={Ox:v.Ox},v.Ox++){var U=oI(Object.assign({},na,{callback:{kc:X.e1.bind(X),Hc:X.j1.bind(X),wC:X.wC.bind(X),Rf:X.f1.bind(X)},slot:c,Ag:R[v.Ox],uq:function($a){return function(wb){wb.Kd(R[$a.Ox],"normal")}}(v),
Pn:v.Ox,zI:R.length,Nu:!1}));if(!U)return;Y.push(U)}X.Yh=Y;return X}
var na={Na:l,Cb:m,Df:n,Ad:p,Sa:q,Ia:r,Wc:t,Kc:u,ud:y,Nb:A,Gg:C,Aa:F,context:K,Xh:N};l=uF(d,{Od:["metadata_type_sub_layouts"],Oe:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||d.jr!==void 0&&d.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";m=$H(c,F.get())&&uF(d,{Od:[],Oe:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});n=uF(d,{Od:[],Oe:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(l)return da();if(m)return V();if(n)return W()};
BI=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Sa=d;this.Ec=e;this.Ie=f;this.Ia=h;this.bb=l;this.Na=m;this.G=n;this.driftRecoveryMs=DD(this.layout.clientMetadata,"metadata_type_drift_recovery_ms")||null;this.D=DD(this.layout.clientMetadata,"metadata_type_prefetch_metadata")!==void 0};
Mya=function(a){var b=DD(a.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=DD(a.layout.clientMetadata,"metadata_type_layout_exit_ms");a=a.Ie.get();b=Lya(a.C,b,c);return Math.min(c,b!==null?b:Infinity)};
DI=function(a,b){var c;CI(a.Na.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(c=a.Sa.get().nx)==null?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ub.adClientDataEntry},b)})};
EI=function(a,b,c,d,e,f,h,l,m,n,p){BI.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.x(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,yD(b.Wa().clientMetadata,"metadata_type_survey_overlay")&&(this.B=b.Wa().layoutId)};
Oya=function(a,b){var c=Nya(a,b);c||My("Expected subLRA found by layout ID",a.slot,a.layout,{layoutId:b});a.j={Nm:c};c?c.startRendering(c.Wa()):b===a.B&&My("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
Nya=function(a,b){return b==null?null:a.C.find(function(c){return c.Wa().layoutId===b})||null};
Pya=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=yD(b.clientMetadata,"metadata_type_survey_overlay"),r,t=((r=a.fulfilledLayout||DD(a.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:DD(r.clientMetadata,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.gG(c,t,2,f,d,e,a.slotId),FI(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.EE(c,t,2,f,d,e,a.slotId);FI(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);
if(!p)return My("Unexpected failure to add to playback timeline",a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&My("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):My("Invalid timeline playback ID");d+f>e&&h.FI(p,e-d);return p};
Qya=function(a,b,c){var d=DD(b.clientMetadata,"metadata_type_sodar_extension_data");if(d)try{lwa(c,d)}catch(e){My("Unexpected error when loading Sodar",a,b,{error:e})}};
Rya=function(a,b,c,d,e,f){GI(a,b,new g.Ny(c,new g.$G),d,e,!1,f)};
GI=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;IF(c)&&JF(e,0,null)&&(!dF(a,"impression")&&h&&h(),a.ac("impression"));dF(a,"impression")&&(g.Py(c,4)&&!g.Py(c,2)&&a.Zh("pause"),Oy(c,4)<0&&!(Oy(c,2)<0)&&a.Zh("resume"),g.Py(c,16)&&e>=.5&&a.Zh("seek"),f&&g.Py(c,2)&&HI(a,c.state,b,d,e))};
HI=function(a,b,c,d,e,f,h){if(dF(a,"impression")){var l=Math.abs(d-e)<=1;II(a,b,l?d:e,c,d,f,h&&l);l&&a.ac("complete")}};
II=function(a,b,c,d,e,f,h){cF(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.T(b,16))||(b==null?0:g.T(b,32))||(JF(c,e*.25,d)&&(f&&!dF(a,"first_quartile")&&f("first"),a.ac("first_quartile")),JF(c,e*.5,d)&&(f&&!dF(a,"midpoint")&&f("second"),a.ac("midpoint")),JF(c,e*.75,d)&&(f&&!dF(a,"third_quartile")&&f("third"),a.ac("third_quartile")))};
Sya=function(a,b){dF(a,"impression")&&a.Zh(b?"fullscreen":"end_fullscreen")};
Tya=function(a){dF(a,"impression")&&a.Zh("clickthrough")};
Uya=function(a){a.Zh("active_view_measurable")};
Vya=function(a){dF(a,"impression")&&!dF(a,"seek")&&a.Zh("active_view_fully_viewable_audible_half_duration")};
Wya=function(a){dF(a,"impression")&&!dF(a,"seek")&&a.Zh("active_view_viewable")};
Xya=function(a){dF(a,"impression")&&!dF(a,"seek")&&a.Zh("audio_audible")};
Yya=function(a){dF(a,"impression")&&!dF(a,"seek")&&a.Zh("audio_measurable")};
Zya=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Ec=d;this.bb=e;this.Ia=f;this.qt=h;this.Cb=l;this.Df=m;this.Aa=n;this.Na=p;this.Sa=q;this.kL=!0;this.Cd=this.pc=null;this.adCpn=void 0;this.j=!1};
$ya=function(a,b,c){var d;FI(a.Na.get(),"ads_qua","cpn."+DD(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=UH(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
aza=function(a,b){var c,d;FI(a.Na.get(),"ads_imp","cpn."+DD(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=UH(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.Q((d=DD(a.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,JI))};
KI=function(a){return{enterMs:DD(a.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:DD(a.clientMetadata,"metadata_type_layout_exit_ms")}};
LI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){BI.call(this,a,b,c,d,e,h,l,m,n,q);this.qt=f;this.Df=p;this.Cb=r;this.Aa=t;this.Cd=this.pc=null};
bza=function(a,b){var c;FI(a.Na.get(),"ads_imp","acpn."+((c=UH(a.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)};
cza=function(a,b,c){var d;FI(a.Na.get(),"ads_qua","cpn."+DD(a.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=UH(a.Sa.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
MI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,K){this.vc=a;this.ke=b;this.Vi=c;this.Sa=d;this.Ec=e;this.Ia=f;this.Na=h;this.qt=l;this.Ie=m;this.Cb=n;this.Df=p;this.Ad=q;this.Wc=r;this.Kc=t;this.ud=u;this.Nb=y;this.Gg=A;this.Aa=C;this.j=F;this.context=H;this.Xh=K};
NI=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C){this.vc=a;this.ke=b;this.Vi=c;this.Na=d;this.Cb=e;this.Df=f;this.Ad=h;this.Sa=l;this.Ia=m;this.Wc=n;this.Kc=p;this.ud=q;this.Nb=r;this.Gg=t;this.Aa=u;this.Ec=y;this.context=A;this.Xh=C};
dza=function(a,b,c,d){Ex.call(this,"survey-interstitial",a,b,c,d)};
OI=function(a,b,c,d,e){QE.call(this,c,a,b,d);this.Na=e;a=DD(b.clientMetadata,"metadata_type_ad_placement_config");this.bb=new YE(b.zb,e,a,b.layoutId)};
PI=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
RI=function(a,b,c){c=c===void 0?QI:c;c.width<QI.width&&(c=QI);if(a.width<c.width||a.height<c.height)return{QN:3,JI:501,errorMessage:"ad("+PI(c)+") larger than container("+PI(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{QN:3,JI:501,errorMessage:"ad("+PI(c)+") to container("+PI(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{QN:3,JI:501,errorMessage:"ad("+PI(c)+") covers container("+PI(a)+") center."}};
eza=function(a,b){var c=DD(a.clientMetadata,"metadata_type_ad_placement_config");return new YE(a.zb,b,c,a.layoutId)};
SI=function(a){return DD(a.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")};
TI=function(a,b,c,d){Ex.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
UI=function(a,b,c,d,e,f,h,l,m,n,p,q){QE.call(this,f,a,b,e);this.Na=c;this.D=h;this.Ia=l;this.Nb=m;this.Aa=n;this.L=p;this.G=q;this.bb=eza(b,c)};
fza=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];ZE().forEach(function(b){a.push(b)});
return{Od:a,Oe:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
VI=function(a,b,c,d,e,f,h,l,m,n,p,q,r){QE.call(this,f,a,b,e);this.Na=c;this.D=h;this.W=l;this.Ia=m;this.Nb=n;this.Aa=p;this.L=q;this.G=r;this.bb=eza(b,c)};
gza=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.x(ZE()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Od:a,Oe:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
WI=function(a){this.Ia=a;this.j=!1};
hza=function(a,b,c){Ex.call(this,"survey",a,{},b,c)};
XI=function(a,b,c,d,e,f,h){QE.call(this,c,a,b,d);this.D=e;this.Ia=f;this.Aa=h};
iza=function(a,b,c,d,e,f,h,l,m,n){this.Bc=a;this.Ia=b;this.Na=c;this.D=d;this.Cb=e;this.B=f;this.C=h;this.Nb=l;this.Aa=m;this.j=n};
jza=function(a,b,c,d,e,f,h,l,m,n){this.Bc=a;this.Ia=b;this.Na=c;this.D=d;this.Cb=e;this.B=f;this.C=h;this.Nb=l;this.Aa=m;this.j=n};
YI=function(a,b,c,d,e,f,h,l,m,n){AF.call(this,a,b,c,d,e,f,h,m);this.jo=l;this.Sa=n};
kza=function(){var a=oxa();a.Od.push("metadata_type_ad_info_ad_metadata");return a};
lza=function(a,b,c,d,e,f,h){this.Bc=a;this.Ia=b;this.Na=c;this.B=d;this.jo=e;this.j=f;this.Sa=h};
mza=function(a,b,c,d,e,f,h,l){this.Bc=a;this.Ia=b;this.Na=c;this.B=d;this.jo=e;this.j=f;this.Aa=h;this.Sa=l};
ZI=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
$I=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};
aJ=function(a,b,c){this.Zv=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
bJ=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
cJ=function(a,b,c,d){this.Zv=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
nza=function(a){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=a(this.triggerType)};
oza=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
dJ=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)};
eJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
fJ=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)};
pza=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)}};
gJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
hJ=function(a,b){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=b||a(this.triggerType)};
iJ=function(a,b){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=b||a(this.triggerType)};
qza=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
rza=function(a,b,c,d,e){this.Zv=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)};
jJ=function(a,b,c,d,e){this.Zv=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
sza=function(a,b,c){this.Zv=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
kJ=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)};
lJ=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)};
mJ=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
nJ=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
nwa=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)};
tza=function(a,b){this.ping=a;this.index=b};
uza=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
vza=function(a){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=a(this.triggerType)};
wza=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)};
xza=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
yza=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)};
oJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
pJ=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
qJ=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
rJ=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
sJ=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
tJ=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
uJ=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
vJ=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
wJ=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)};
xJ=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
yJ=function(a){return(a==null?void 0:a.layoutId)!=null&&(a==null?void 0:a.layoutType)!=null};
zza=function(a){if(!yJ(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.Q(a,zJ)||g.Q(a,AJ)||g.Q(a,BJ)||g.Q(a,CJ)||g.Q(a,DJ)||g.Q(a,EJ)?!0:!1};
Aza=function(a){return(a==null?void 0:a.durationMs)!=null&&(a==null?void 0:a.durationMs)>0};
FJ=function(a){return!!(a.S$&&a.slot&&a.layout)};
GJ=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)};
Bza=function(a){if(!yJ(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.Q(a,GF)||g.Q(a,EF)||g.Q(a,FF)?!0:!1};
HJ=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0};
OJ=function(a){if(!yJ(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.Q(a,IJ);return b?JJ(b):(b=g.Q(a,KJ))?HJ(b):(b=g.Q(a,LJ))?b.playerVars!==void 0:(b=g.Q(a,GF))?b.durationMilliseconds!==void 0:g.Q(a,MJ)||g.Q(a,NJ)?!0:!1};
JJ=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.Q(b,PJ)});
return a.length>0&&a.every(OJ)};
Gza=function(a){if(!yJ(a.adLayoutMetadata))return!1;if(g.Q(a.renderingContent,Cza)||g.Q(a.renderingContent,Dza))return!0;var b=g.Q(a.renderingContent,QJ);return g.Q(a.renderingContent,RJ)||g.Q(b==null?void 0:b.sidePanel,Eza)||g.Q(b==null?void 0:b.sidePanel,Fza)?!0:!1};
Lza=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||!(Hza(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,PJ))?OJ(c):(c=g.Q(a,SJ))?Gza(c):(c=g.Q(a,Iza))?Bza(c):(c=g.Q(a,Jza))?zza(c):(a=g.Q(a,Kza))?yJ(a.adLayoutMetadata)?g.Q(a.renderingContent,zJ)?!0:!1:!1:!1};
Hza=function(a){var b;a=g.Q((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,SJ);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0};
Mza=function(a){var b;return(a==null?void 0:(b=a.adSlotMetadata)==null?void 0:b.slotType)==="SLOT_TYPE_IN_PLAYER"};
Oza=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.x(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.Q(b,TJ))==null?void 0:c.surveyAdQuestionCommon)||((d=g.Q(b,UJ))==null?void 0:d.surveyAdQuestionCommon);if(!Nza(e))return!1}return!0};
Pza=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],TJ))==null?void 0:b.surveyAdQuestionCommon)||((c=g.Q(a.questions[0],UJ))==null?void 0:c.surveyAdQuestionCommon);b=Nza(d)}else b=!1;else b=!1;return b};
Nza=function(a){if(!a)return!1;a=g.Q(a.instreamAdPlayerOverlay,VJ);var b=g.Q(a==null?void 0:a.skipOrPreviewRenderer,JI),c=g.Q(a==null?void 0:a.adInfoRenderer,WJ);return(g.Q(a==null?void 0:a.skipOrPreviewRenderer,XJ)||b)&&c?!0:!1};
Qza=function(a){return a.linearAds!=null&&yJ(a.adLayoutMetadata)};
Rza=function(a){return a.linearAd!=null&&a.adVideoStart!=null};
Sza=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.Q(a.ctaButton,g.YJ)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.Q(a.backgroundImage,ZJ)&&((b=g.Q(a.backgroundImage,ZJ))==null?0:b.landscape)?!0:!1};
$J=function(a,b,c,d,e,f,h){g.O.call(this);this.Aa=a;this.j=b;this.C=d;this.Sa=e;this.D=f;this.B=h};
Vza=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(l){return g.Q(l,aK)});
if(c.WC)if(DD(b.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ME(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId);
else{if(a.Aa.get().K.V().N("h5_check_forecasting_renderer_for_throttled_midroll")){var f=c.Tw.filter(function(l){var m;return((m=l.renderer)==null?void 0:m.clientForecastingAdRenderer)!=null});
f.length!==0?Tza(a.B,f,e,b.slotId,c.ssdaiAdsConfig):ME(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)}else ME(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId);
Uza(a.D,b)}else{var h;d={Dv:Math.round(((f=DD(b.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.Dv)||0),Cv:(h=DD(b.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:h.Cv};Tza(a.B,c.Tw,e,b.slotId,c.ssdaiAdsConfig,d)}};
Xza=function(a,b,c,d,e,f,h){var l=UH(a.Sa.get(),1);ME(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Wza(a.C.get(),c,d,e,l.clientPlaybackNonce,l.Fk,l.daiEnabled,l,f,h)},b)};
Zza=function(a,b,c,d,e,f,h){b=Yza(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof Z?b:bK(a,d,e,b,c);return a instanceof Z?a:[a]};
$za=function(a,b,c,d,e){var f=NE(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new hD({getAdBreakUrl:d.getAdBreakUrl,Dv:0,Cv:0}),new vD(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new tJ(a.j,f),slotFulfillmentTriggers:[new oza(a.j)],slotExpirationTriggers:[new nJ(a.j,e),new qJ(a.j,f)],Xa:"core",clientMetadata:new CD(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]};
aAa=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0};
cK=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new aJ(AD,b,a.id):new Z("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new gJ(AD,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=pza(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof Z?b:new fJ(AD,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 mJ(AD,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new Z("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new nJ(AD,b,a.id):new Z("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new oJ(AD,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 pJ(AD,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 qJ(AD,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 vJ(AD,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new Z("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new qza(a.id):new Z("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new bJ(AD,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 tJ(AD,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 Pp(d,u),a=c instanceof Z?c:new jJ(AD,b,c,!1,a.id)):a=new Z("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new cJ(AD,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 eJ(AD,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 wJ(AD,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 kJ(AD,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 iJ(AD,a.id):new Z("Not able to create LiveStreamBreakStartedTrigger"):
a.liveStreamBreakEndedTrigger?a.liveStreamBreakEndedTrigger&&a.id?new hJ(AD,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};
dK=function(a,b){b.j>=2&&(a.slot_pos=b.adPodIndex);a.autoplay="1"};
cAa=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}):[bAa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new CD([new jC(d),new vC(e)]);n=tE(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",zb:new Map,
layoutExitNormalTriggers:[new nJ(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:q,Ub:m(r),adLayoutLoggingData:p}})]};
dAa=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}):[bAa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new CD([new kC(d),new vC(e)]);n=tE(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",
zb:new Map,layoutExitNormalTriggers:[new nJ(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:q,Ub:m(r),adLayoutLoggingData:p}})]};
hAa=function(a,b,c,d,e,f){if(!f)for(b=g.x(b),f=b.next();!f.done;f=b.next())f=f.value,eK(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return eAa(p)});
b=[];f=g.x(a);for(var h=f.next(),l={};!h.done;l={hx:void 0},h=f.next()){l.hx=h.value;h=g.x(l.hx.KO);for(var m=h.next(),n={};!m.done;n={oo:void 0},m=h.next())n.oo=m.value,m=function(p,q){return function(r){return p.oo.GP(r,q.hx.instreamVideoAdRenderer.elementId,p.oo.JO)}}(n,l),n.oo.isContentVideoCompanion?b.push(fAa(c,d,e,l.hx.instreamVideoAdRenderer.elementId,n.oo.associatedCompositePlayerBytesLayoutId,n.oo.adSlotLoggingData,m)):a.length>1?b.push(gAa(c,d,e,l.hx.instreamVideoAdRenderer.elementId,n.oo.adSlotLoggingData,
function(p,q){return function(r){return p.oo.GP(r,q.hx.instreamVideoAdRenderer.elementId,p.oo.JO,p.oo.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(gAa(c,d,e,l.hx.instreamVideoAdRenderer.elementId,n.oo.adSlotLoggingData,m))}return b};
eK=function(a,b,c){if(b=iAa(b)){b=g.x(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=fK(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.iG=c)}else My("InstreamVideoAdRenderer without externalVideoId")}};
iAa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.Q(a.sandwichedLinearAdRenderer.linearAd,KJ);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.x(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.Q(c,KJ)&&b.push(g.Q(c,KJ));return b}return null};
eAa=function(a){if(a.instreamVideoAdRenderer===void 0)return My("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.x(a.KO),c=b.next();!c.done;c=b.next()){c=c.value;if(c.GP===void 0)return!1;if(c.JO===void 0)return My("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.iG===void 0||c.nJ===void 0||a.iG!==c.nJ&&c.nJ!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return My("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.iG,"matching APSR kind":c.nJ}),!1}return!0};
fK=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,iG:void 0,adVideoId:b,KO:[]});return a.get(b)};
gK=function(a,b,c,d,e,f,h,l,m){e?fK(a,e).KO.push({Ana:b,nJ:c,isContentVideoCompanion:d,JO:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,GP:m}):My("Companion AdPlacementSupportedRenderer without adVideoId")};
hK=function(a){var b=0;a=g.x(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.Q(c,TJ)||g.Q(c,UJ)){var d=void 0;b+=((d=c.surveyAdQuestionCommon)==null?void 0:d.durationMilliseconds)||0}return b};
iK=function(a){var b,c,d,e,f=((c=g.Q((b=a.questions)==null?void 0:b[0],TJ))==null?void 0:c.surveyAdQuestionCommon)||((e=g.Q((d=a.questions)==null?void 0:d[0],UJ))==null?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.z(((h=a.playbackCommands)==null?void 0:h.instreamAdCompleteCommands)||[]),g.z((f==null?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,u,y,A,C,F,H,K,N,W,V,da,na,X;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,Ona:(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:(K=a.playbackCommands)==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(N=a.playbackCommands)==
null?void 0:(W=N.activeViewTracking)==null?void 0:W.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(V=a.playbackCommands)==null?void 0:(da=V.activeViewTracking)==null?void 0:da.activeViewAudioMeasurableCommands,endFullscreenCommands:(na=a.playbackCommands)==null?void 0:na.endFullscreenCommands,abandonCommands:(X=a.playbackCommands)==null?void 0:X.abandonCommands,completeCommands:b}};
kAa=function(a,b,c,d,e,f,h){return function(l,m){return jAa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return jK(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new LC(c),d],c.adLayoutLoggingData)})}};
nAa=function(a,b,c,d,e,f,h){if(!lAa(a))return new Z("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[mAa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=tE(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 gJ(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",zb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new MC(l)]),Ub:m(p)}})]};
lAa=function(a){a=g.Q(a==null?void 0:a.additionalPlayerOverlay,oAa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&b.length!==0?!0:!1};
qAa=function(a,b,c,d,e){var f;if((f=a.playerOverlay)==null||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!Pza(a))return function(){return new Z("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=hK(h);return l<=0?function(){return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=pAa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=iK(h);r=tE(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var u={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Xa:"core"},y=new gJ(e.j,d),A=new oJ(e.j,r),C=new vJ(e.j,r),F=new uza(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",zb:new Map,layoutExitNormalTriggers:[y,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],Xc:[],Xa:"core",clientMetadata:new CD([new KC(h),new vC(b),new kD(l/1E3),new oD(t)]),Ub:q(u),adLayoutLoggingData:h.adLayoutLoggingData}});
m=nAa(a,c,p.slotId,d,e,m,n);return m instanceof Z?m:[p].concat(g.z(m))}};
xAa=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=rAa(y.slotId,c,b,e(y),d,f,h);m=y.Efa;return y.A8};
else if(c.renderer.instreamVideoAdRenderer)n=function(y){var A=y.slotId;y=e(y);var C=h,F=c.config.adPlacementConfig,H=sAa(F),K=H.EY,N=H.IY;H=c.renderer.instreamVideoAdRenderer;var W;if(H==null?0:(W=H.playerOverlay)==null?0:W.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var V=kK(H,C);W=Math.min(K+V.videoLengthSeconds*1E3,N);C=new $I(0,[V.videoLengthSeconds]);N=V.videoLengthSeconds;var da=V.playerVars,na=V.instreamAdPlayerOverlayRenderer,X=V.playerOverlayLayoutRenderer,
R=V.adVideoId,Y=tAa(c),v=V.zb;V=V.Mt;var U=H==null?void 0:H.adLayoutLoggingData;H=H==null?void 0:H.sodarExtensionData;A=tE(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var $a={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",zb:v,layoutExitNormalTriggers:[new hJ(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new BC(d),new WC(N),new XC(da),new $C(K),new aD(W),na&&new CC(na),
X&&new DC(X),new vC(F),new AC(R),new wC(C),new fD(Y),H&&new ZC(H),new SC({current:null}),new cD({}),new rD(V)].filter(uAa)),Ub:y($a),adLayoutLoggingData:U}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=vAa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.x(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.z(u))}}catch(y){return new Z(y,{errorMessage:y.message,AdPlacementRenderer:c,numberOfSurveyRenderers:wAa(c)})}return l};
wAa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return a!=null&&a.length?a.filter(function(b){var c,d;return((c=g.Q(b,KJ))==null?void 0:(d=c.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer)!=null}).length:0};
rAa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=sAa(l),n=m.EY,p=m.IY;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(m==null||!m.length)throw new TypeError("Expected linear ads");var q=[],r={qI:n,Pn:0,Bfa:q};m=m.map(function(u){return yAa(a,u,r,c,d,l,e,p,h)}).map(function(u,y){y=new $I(y,q);
return u(y)});
var t=m.map(function(u){return u.B8});
return{A8:zAa(c,a,n,t,l,tAa(b),d,p,f),Efa:m.map(function(u){return u.Dfa})}};
yAa=function(a,b,c,d,e,f,h,l,m){var n=kK(g.Q(b,KJ),m),p=c.qI,q=c.Pn,r=Math.min(p+n.videoLengthSeconds*1E3,l);c.qI=r;c.Pn++;c.Bfa.push(n.videoLengthSeconds);var t,u,y=(t=g.Q(b,KJ))==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){dK(n.playerVars,A);var C,F,H=n.videoLengthSeconds,K=n.playerVars,N=n.zb,W=n.Mt,V=n.instreamAdPlayerOverlayRenderer,da=n.playerOverlayLayoutRenderer,
na=n.adVideoId,X=(C=g.Q(b,KJ))==null?void 0:C.adLayoutLoggingData;C=(F=g.Q(b,KJ))==null?void 0:F.sodarExtensionData;F=tE(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var R={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};A={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",zb:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"adapter",clientMetadata:new CD([new BC(h),new WC(H),new XC(K),new $C(p),new aD(r),new bD(q),new SC({current:null}),
V&&new CC(V),da&&new DC(da),new vC(f),new AC(na),new wC(A),C&&new ZC(C),y&&new qD(y),new cD({}),new rD(W)].filter(uAa)),Ub:e(R),adLayoutLoggingData:X};H=qAa(g.Q(b,KJ),f,h,A.layoutId,d);return{B8:A,Dfa:H}}};
kK=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=ur(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=AAa[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,zb:a.pings?XE(a.pings):new Map,Mt:WE(a.pings)}};
tAa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a};
sAa=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{EY:b,IY:a}};
BAa=function(a){var b,c=(b=DD(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=DD(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=DD(a.clientMetadata,"metadata_type_content_cpn"),f=DD(a.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),h=DD(a.clientMetadata,"metadata_type_player_underlay_renderer"),l=DD(a.clientMetadata,"metadata_type_ad_placement_config"),m=DD(a.clientMetadata,"metadata_type_video_length_seconds");
var n=yD(a.clientMetadata,"metadata_type_layout_enter_ms")&&yD(a.clientMetadata,"metadata_type_layout_exit_ms")?(DD(a.clientMetadata,"metadata_type_layout_exit_ms")-DD(a.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{qr:d,contentCpn:e,uT:c,LO:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,HL:n,inPlayerLayoutId:DD(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:DD(a.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
EAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=NE(d,"SLOT_TYPE_PLAYER_BYTES");a=CAa(e,a,h,c,d,m,n);if(a instanceof Z)return a;var y;n=(y=DD(a.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:y.layoutId;if(!n)return new Z("Invalid adNotify layout");b=DAa(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof Z?b:[a].concat(g.z(b))};
DAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=FAa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof Z)return c;a=GAa(b,a,h,e,c);return a instanceof Z?a:[].concat(g.z(a.wf),[a.Uy])};
IAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=FAa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof Z)return b;a=HAa(a,c,f,h,d,l.Yb,b);return a instanceof Z?a:a.wf.concat(a.Uy)};
FAa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=lK(d,c,n);return r instanceof BD?new Z(r):n.K.V().experiments.fb("html5_refactor_in_player_slot_generation")?function(t){var u=new $I(0,[r.Rp]);t=JAa(b,r.layoutId,r.Cp,c,mK(r.playerVars,r.sC,f,m,u),r.Rp,e,u,h(t),l.get(r.Cp.externalVideoId),q);u=[];if(r.Cp.playerOverlay.instreamAdPlayerOverlayRenderer){var y=BAa(t);if(!y)return My("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,wf:[]};
u=[KAa(a,y.contentCpn,y.qr,function(C){return nK(b,C.slotId,"core",y,JD(p,C))},y.inPlayerSlotId)].concat(g.z(u));
if(y.instreamAdPlayerUnderlayRenderer&&oK(n)){var A=y.instreamAdPlayerUnderlayRenderer;u=[LAa(a,y.contentCpn,y.qr,function(C){return MAa(b,C.slotId,A,y.adPlacementConfig,y.qr,JD(p,C))})].concat(g.z(u))}}return{layout:t,
wf:u}}:function(t){var u=new $I(0,[r.Rp]);
return{layout:JAa(b,r.layoutId,r.Cp,c,mK(r.playerVars,r.sC,f,m,u),r.Rp,e,u,h(t),l.get(r.Cp.externalVideoId),q),wf:[]}}};
lK=function(a,b,c){if(!a.playerVars)return new BD("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 BD("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=ur(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,My("Expected valid length seconds in player vars but got NaN"));if(c.qf(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new BD("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Cp:a,playerVars:d,sC:a.playerVars,Rp:e}};
mK=function(a,b,c,d,e){a.iv_load_policy=d;b=ur(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){My(f)}c.uj&&(a.ctrl=c.uj);c.gk&&(a.ytr=c.gk);c.kx&&(a.ytrcc=c.kx);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Sn&&(a.vss_credentials_token_type=c.Sn),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));dK(a,e);return a};
NAa=function(a){var b=new Map;a=g.x(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};
pK=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
OAa=function(a){return a!=null};
UAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=[],y=g.x(a),A=y.next();!A.done;A=y.next())if(A=A.value,!Hza(A)&&!Mza(A)){var C=pK(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger,F=m.qf(C),H=PAa(A,n,d,c.Fk,F);if(H instanceof Z)return H;var K=void 0,N={slotId:A.adSlotMetadata.slotId,slotType:A.adSlotMetadata.slotType,slotPhysicalPosition:(K=A.adSlotMetadata.slotPhysicalPosition)!=null?K:1,Xa:"core",slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,
slotExpirationTriggers:H.slotExpirationTriggers},W=g.Q(A.fulfillmentContent.fulfilledLayout,PJ);if(W){if(!OJ(W))return new Z("Invalid PlayerBytesAdLayoutRenderer");K=q&&!(pK(A)&&A.slotEntryTrigger.beforeContentVideoIdStartedTrigger);H=H.slotFulfillmentTriggers.some(function(){return!1});
F=K?QAa(N,A.adSlotMetadata.triggerEvent,W,c,d,f,n,a,F,r,H,t):RAa(N,A.adSlotMetadata.triggerEvent,W,b,c,d,e,f,h,l,m,n,a,p,F,A.adSlotMetadata.triggeringSourceLayoutId);if(F instanceof Z)return F;H=[];pK(A)&&H.push(new wD({Ku:pK(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));K&&H.push(new cD({}));c.Yb&&H.push(new pD({}));H.push(new uD(C));A=Object.assign({},N,{clientMetadata:new CD(H),fulfilledLayout:F.layout,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});u.push.apply(u,g.z(F.wf));
u.push(A)}else if(C=g.Q(A.fulfillmentContent.fulfilledLayout,SJ),F=K=void 0,((K=C)==null?void 0:(F=K.adLayoutMetadata)==null?void 0:F.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||A.slotEntryTrigger!==void 0)if(C){if(!Gza(C))return new Z("Invalid PlayerUnderlayAdLayoutRenderer");C=SAa(C,d,c.Fk,f,N,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof Z)return C;A=Object.assign({},N,{clientMetadata:new CD([]),fulfilledLayout:C,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});
u.push(A)}else if(C=g.Q(A.fulfillmentContent.fulfilledLayout,Jza)){if(!zza(C))return new Z("Invalid AboveFeedAdLayoutRenderer");C=TAa(C,d,c.Fk,f,N,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof Z)return C;A=Object.assign({},N,{clientMetadata:new CD([]),fulfilledLayout:C,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});u.push(A)}else if(C=g.Q(A.fulfillmentContent.fulfilledLayout,Kza)){if(!yJ(C.adLayoutMetadata)||!g.Q(C.renderingContent,zJ))return new Z("Invalid BelowPlayerAdLayoutRenderer");
C=TAa(C,d,c.Fk,f,N,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof Z)return C;A=Object.assign({},N,{clientMetadata:new CD([]),fulfilledLayout:C,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData});u.push(A)}else return new Z("Unable to retrieve a client slot ["+N.slotType+"] from a given AdSlotRenderer")}return u};
TAa=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"};b=qK(a,b,c);if(b instanceof Z)return b;c=[];c.push(new vC(rK(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new NC(h));return Object.assign({},l,{renderingContent:a.renderingContent,zb:new Map([["impression",VAa(a)]])},b,{Ub:JD(d,e)(l),clientMetadata:new CD(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})};
SAa=function(a,b,c,d,e,f,h){if(a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(h=g.Q(a.renderingContent,QJ))if(h=g.Q(h.sidePanel,Fza)){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"};b=qK(a,b,c);a=b instanceof Z?b:Object.assign({},l,{renderingContent:a.renderingContent,zb:new Map([["impression",h.impressionPings||[]],["resume",h.resumePings||[]]])},b,{Ub:JD(d,e)(l),clientMetadata:new CD([new vC(rK(f))]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})}else a=
new Z("DismissablePanelTextPortraitImageRenderer is missing");else a=new Z("SqueezebackPlayerSidePanelRenderer is missing");else a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.Q(a.renderingContent,Cza)?(h={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"},b=qK(a,b,c),a=b instanceof Z?b:Object.assign({},h,{renderingContent:a.renderingContent,zb:new Map},b,{Ub:JD(d,e)(h),clientMetadata:new CD([new vC(rK(f))]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})):
a=new Z("CounterfactualRenderer is missing"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?a=new Z("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.Q(a.renderingContent,RJ)?(f={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"},b=qK(a,b,c),a=b instanceof Z?b:h?Object.assign({},f,{renderingContent:a.renderingContent,zb:new Map},b,{Ub:JD(d,
e)(f),clientMetadata:new CD([new NC(h)]),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData}):new Z("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):a=new Z("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):a.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.Q(a.renderingContent,Dza)?(f={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Xa:"core"},b=qK(a,b,c),a=b instanceof Z?b:
Object.assign({},f,{renderingContent:a.renderingContent,zb:new Map([])},b,{Ub:JD(d,e)(f),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new CD([])})):a=new Z("AdsEngagementPanelSectionListViewModel is missing"):a=new Z("LayoutType ["+a.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return a};
QAa=function(a,b,c,d,e,f,h,l,m,n,p,q){if((q==null?void 0:q.Dv)===void 0||(q==null?void 0:q.Cv)===void 0)return new Z("Cached ad break range from cue point is missing");var r=qK(c,e,d.Fk);if(r instanceof Z)return r;r={layoutExitMuteTriggers:[],layoutExitNormalTriggers:r.layoutExitNormalTriggers,layoutExitSkipTriggers:[],Xc:[],layoutExitUserInputSubmittedTriggers:[]};if(g.Q(c.renderingContent,KJ))return a=WAa(a,b,c,r,e,f,l,m,d.Fk,h,q.Dv,q.Cv),a instanceof Z?a:a.De===void 0?new Z("Expecting associatedInPlayerSlot for single DAI media layout"):
{layout:a.layout,wf:[a.De]};var t=g.Q(c.renderingContent,IJ);if(t){if(!yJ(c.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!JJ(t))return new Z("Invalid sequential layout");t=t.sequentialLayouts.map(function(u){return u.playerBytesAdLayoutRenderer});
a=XAa(a,b,c,r,t,e,d,f,h,m,l,n,q.Dv,q.Cv,p);return a instanceof Z?a:{layout:a.vP,wf:a.wf}}return new Z("Not able to convert a sequential layout")};
XAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){var y=YAa(e,r,t);if(y instanceof Z)return y;var A=[],C=[];y=g.x(y);for(var F=y.next();!F.done;F=y.next()){var H=F.value;F=a;var K=e[H.Pn],N=H,W=b;H=f;var V=h,da=l,na=m,X=n,R=p,Y=sK(K);if(Y instanceof Z)F=Y;else{var v={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,Xa:"adapter"};N=ZAa(W,K,N,H);N instanceof Z?F=N:(F=Object.assign({},v,tK,{zb:Y,renderingContent:K.renderingContent,clientMetadata:new CD(N),Ub:JD(da,F)(v),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData}),
F=(K=uK(R,F,H,V.Fk,da,na,X,void 0,!0))?K instanceof Z?K:{layout:F,De:K}:new Z("Expecting associatedInPlayerSlot"))}if(F instanceof Z)return F;A.push(F.layout);C.push(F.De)}e={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:"core"};b=[new fD(Number(c.driftRecoveryMs)),new $C(r),new aD(t),new vC(rK(b)),new tD(q),new cD({})];u&&b.push(new xD({}));return{vP:Object.assign({},e,d,{jr:A,zb:new Map,clientMetadata:new CD(b),Ub:JD(l,a)(e)}),wf:C}};
WAa=function(a,b,c,d,e,f,h,l,m,n,p,q){if(!OJ(c))return new Z("Invalid PlayerBytesAdLayoutRenderer");var r=sK(c);if(r instanceof Z)return r;var t={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:"core"},u=g.Q(c.renderingContent,KJ);if(!u)return new Z("Invalid rendering content for DAI media layout");u=kK(u,!1);p={TJ:u,Pn:0,qI:p,j3:Math.min(p+u.videoLengthSeconds*1E3,q),Qp:new $I(0,[u.videoLengthSeconds])};var y;q=(y=Number(c.driftRecoveryMs))!=null?y:void 0;b=ZAa(b,
c,p,e,q);if(b instanceof Z)return b;a=Object.assign({},t,d,{zb:r,renderingContent:c.renderingContent,clientMetadata:new CD(b),Ub:JD(f,a)(t),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});return(e=uK(h,a,e,m,f,n,l,void 0,!0))?e instanceof Z?e:{layout:a,De:e}:new Z("Expecting associatedInPlayerSlot")};
RAa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){var A=qK(c,f,e.Fk);if(A instanceof Z)return A;if(g.Q(c.renderingContent,KJ)){m=$Aa([c],e,m);if(m instanceof Z)return m;if(m.length!==1)return new Z("Only expected one media layout.");a=aBa(a,b,c,A,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Fk,q,void 0,y);return a instanceof Z?a:{layout:a.layout,wf:a.De?[a.De]:[]}}var C=g.Q(c.renderingContent,IJ);if(C){if(!yJ(c.adLayoutMetadata))return new Z("Invalid ad layout metadata");if(!JJ(C))return new Z("Invalid sequential layout");
C=C.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer});
a=bBa(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,wf:a.wf}}return new Z("Not able to convert a sequential layout")};
bBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C){var F=new zC({current:null}),H=$Aa(e,l,m);if(H instanceof Z)return H;m=[];for(var K=[],N=void 0,W=0;W<e.length;W++){var V=e[W];if(g.Q(V.renderingContent,KJ)){N=jI(r)&&kI(r)?H[W+1]:void 0;N=aBa(a,b,V,tK,H[W],N,"adapter",f,h,n,p,q,y,A,u,l.Fk,t,F,C);if(N instanceof Z)return N;m.push(N.layout);N.De&&K.push(N.De);N=H[W]}else if(g.Q(V.renderingContent,LJ)){var da=a,na=p;if(OJ(V)){var X=g.Q(V.renderingContent,LJ);if(X&&X.playerVars!==void 0){var R={layoutId:V.adLayoutMetadata.layoutId,
layoutType:V.adLayoutMetadata.layoutType,Xa:"adapter"};X=ur(X.playerVars);X.autoplay="1";V=Object.assign({},R,tK,{renderingContent:V.renderingContent,clientMetadata:new CD([new dD({}),new vC({kind:"AD_PLACEMENT_KIND_START"}),new SC({current:null}),new XC(X)]),zb:new Map,Ub:JD(na,da)(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,
GF))if(A){V=cBa(a,V,p,rK(b),N);if(V instanceof Z)return V;m.push(V);V=uK(y,V,h,l.Fk,p,t,u,F,!1);if(V instanceof Z)return V;if(V)K.push(V);else return new Z("Not able to retrieve InPlayer slot for endcap")}else{a:{da=V.adLayoutMetadata.layoutId;na=g.x(f);for(R=na.next();!R.done;R=na.next()){R=R.value;var Y=X=void 0,v=((X=R.renderer)==null?void 0:(Y=X.linearAdSequenceRenderer)==null?void 0:Y.linearAds)||[];X=g.x(v);for(Y=X.next();!Y.done;Y=X.next())if((Y=g.Q(Y.value,GF))&&Y.inPlayerSlotId!==void 0&&
Y.inPlayerLayoutId!==void 0&&Y.associatedPlayerBytesLayoutId!==void 0&&Y.associatedPlayerBytesLayoutId===da){da={dK:Y,adPlacementConfig:R.config.adPlacementConfig};break a}}da=new Z("Not able to find associated InPlayer slot for endcap")}if(da instanceof Z)return da;V=cBa(a,V,p,da.adPlacementConfig,N);if(V instanceof Z)return V;m.push(V);V=dBa(V.layoutId,t,h,da,F,p);if(V instanceof Z)return V;K.push(V)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Xa:"core"};return{vP:Object.assign({},b,d,{jr:m,
zb:new Map,clientMetadata:new CD([F]),Ub:JD(p,a)(b)}),wf:K}};
aBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F){if(!OJ(c))return new Z("Invalid PlayerBytesAdLayoutRenderer");var H=sK(c);if(H instanceof Z)return H;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Xa:h};a:{var K=c.adLayoutMetadata.layoutId,N=g.Q(c.renderingContent,KJ);if(N&&HJ(N)){var W=[];if(t)W.push(new vC(rK(b)));else{b:{l=g.x(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var V=iAa(b.renderer)||[],da=g.x(V);for(V=da.next();!V.done;V=da.next())if(V=V.value,
V.associatedPlayerBytesLayoutId===K){V.associatedPlayerBytesLayoutId?(l=V.playerOverlay,da=l!==void 0&&l.playerOverlayLayoutRenderer!==void 0&&l.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&l.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,l=l!==void 0&&l.instreamAdPlayerOverlayRenderer!==void 0&&l.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||da):l=!1;b=l?{instreamVideoAdRenderer: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 na;da=(na=l==null?void 0:l.inPlayerSlotId)!=null?na:V==null?void 0:V.inPlayerSlotId;var X;na=(X=l==null?void 0:l.inPlayerLayoutId)!=null?X:V==null?void 0:V.inPlayerLayoutId;if(da===void 0){f=new Z("InPlayer shim slot id is undefined");
break a}if(na===void 0){f=new Z("InPlayer shim layout id is undefined");break a}W.push(new OC(na),new QC(da),new bD(e.Qp.adPodIndex),new vC(b.adPlacementConfig));l&&W.push(new CC(l));V&&W.push(new DC(V))}W.push(new wC(e.Qp),new AC(N.externalVideoId),new BC(m),new oD({impressionCommands:N.impressionCommands,abandonCommands:N.onAbandonCommands,completeCommands:N.completeCommands,progressCommands:N.adVideoProgressCommands}),new XC(e.IE),new SC({current:null}),new WC(e.Tda.Rp),new rD(WE(N.pings)),new xC(e.Qp.adPodIndex));
F&&W.push(new NC(F));(e=eBa(K,r))&&W.push(new FC(e));f&&W.push(new YC(f.IE));N.adNextParams&&W.push(new nC(N.adNextParams));N.clickthroughEndpoint&&W.push(new oC(N.clickthroughEndpoint));N.legacyInfoCardVastExtension&&W.push(new mD(N.legacyInfoCardVastExtension));N.sodarExtensionData&&W.push(new ZC(N.sodarExtensionData));C&&N.adPodSkipTarget&&N.adPodSkipTarget>0&&(W.push(C),W.push(new yC(N.adPodSkipTarget)));(f=n.get(N.externalVideoId))&&W.push(new jD(f));f=W}else f=new Z("Invalid vod media renderer")}if(f instanceof
Z)return f;a=Object.assign({},h,d,{zb:H,renderingContent:c.renderingContent,clientMetadata:new CD(f),Ub:JD(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.Q(c.renderingContent,KJ);if(!c||!HJ(c))return new Z("Invalid meida renderer");q=fK(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.iG="AD_PLACEMENT_KIND_START";return t?(m=uK(r,a,m,y,p,A,u,C,!1),m instanceof Z?m:eBa(a.layoutId,r)&&m?{layout:Object.assign({},a,{clientMetadata:new CD(f.concat(new GC(m)))})}:{layout:a,De:m}):
{layout:a}};
cBa=function(a,b,c,d,e){if(!OJ(b))return new Z("Invalid PlayerBytesAdLayoutRenderer");var f=g.Q(b.renderingContent,GF);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 lD(f.durationMilliseconds),new oD({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new vC(d),
new PC("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new xC(e.Qp.adPodIndex-1));d.push(new bD(e.Qp.adPodIndex));var l;d.push(new yC((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,tK,{renderingContent:b.renderingContent,clientMetadata:new CD(d),zb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,Ub:JD(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
uK=function(a,b,c,d,e,f,h,l,m){a=a.filter(function(p){return p.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&p.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=PAa(a,f,c,d,h);if(h instanceof Z)return h;var n;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(n=a.adSlotMetadata.slotPhysicalPosition)!=null?n:1,Xa:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};n=g.Q(a.fulfillmentContent.fulfilledLayout,
Iza);if(!n||!Bza(n))return new Z("Invalid InPlayerAdLayoutRenderer");h={layoutId:n.adLayoutMetadata.layoutId,layoutType:n.adLayoutMetadata.layoutType,Xa:"core"};c=qK(n,c,d);if(c instanceof Z)return c;d=[];m&&d.push(new cD({}));if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.z(fBa(a.adSlotMetadata.triggerEvent,b)));else if(n.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new vC(rK(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:n.renderingContent,zb:new Map,Ub:JD(e,f)(h),clientMetadata:new CD(d),adLayoutLoggingData:n.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,clientMetadata:new CD([])})}};
fBa=function(a,b){var c=[];c.push(new vC(rK(a)));c.push(new NC(b.layoutId));(a=DD(b.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&c.push(new SC(a));(a=DD(b.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new zC(a));(a=DD(b.clientMetadata,"metadata_type_remote_slots_data"))&&c.push(new jD(a));(a=DD(b.clientMetadata,"metadata_type_ad_next_params"))&&c.push(new nC(a));(a=DD(b.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new oC(a));(a=
DD(b.clientMetadata,"metadata_type_ad_pod_info"))&&c.push(new wC(a));(b=DD(b.clientMetadata,"metadata_type_ad_video_id"))&&c.push(new AC(b));return c};
dBa=function(a,b,c,d,e,f){function h(n){return vK(b,n)}
var l=d.dK.inPlayerSlotId,m={layoutId:d.dK.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Xa:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:new eJ(h,a),slotFulfillmentTriggers:[new pJ(h,l)],slotExpirationTriggers:[new qJ(h,l),new nJ(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new gJ(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],zb:new Map,clientMetadata:new CD([new IC(d.dK),
new vC(d.adPlacementConfig),e]),Ub:JD(f,c)(m),adLayoutLoggingData:d.dK.adLayoutLoggingData});return Object.assign({},c,{clientMetadata:new CD([new gD(a)])})};
eBa=function(a,b){b=g.x(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,SJ);if(d&&(d=g.Q(d.renderingContent,QJ))&&d.associatedPlayerBytesLayoutId===a)return c}};
PAa=function(a,b,c,d,e){var f=gBa(cK(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof Z)return f;for(var h=[],l=g.x(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=cK(m.value,c,d);if(m instanceof Z)return m;h.push(m)}h=hBa(h,e,a,b);b=[];a=g.x(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=cK(e.value,c,d);if(e instanceof Z)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
gBa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof aJ?new ZI(function(e){return vK(d,e)},c.adSlotMetadata.slotId):a};
hBa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof pJ?new tJ(function(f){return vK(d,f)},c.adSlotMetadata.slotId):e}):a};
qK=function(a,b,c){for(var d=[],e=g.x(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=cK(f.value,b,c);if(f instanceof Z)return f;d.push(f)}e=[];f=g.x(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=cK(h.value,b,c);if(h instanceof Z)return h;e.push(h)}f=[];h=g.x(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=cK(l.value,b,c);if(l instanceof Z)return l;f.push(l)}h=[];a=g.x(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
a.next()){l=cK(l.value,b,c);if(l instanceof Z)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Xc:[]}};
sK=function(a){var b=g.Q(a.renderingContent,KJ);if(b==null?0:b.pings)return XE(b.pings);a=g.Q(a.renderingContent,GF);return(a==null?0:a.skipPings)?new Map([["skip",a.skipPings]]):new Map};
ZAa=function(a,b,c,d,e){b=g.Q(b.renderingContent,KJ);if(!b)return new Z("Invalid rendering content for DAI media layout");a=[new BC(d),new WC(c.TJ.videoLengthSeconds),new XC(c.TJ.playerVars),new $C(c.qI),new aD(c.j3),new bD(c.Pn),new vC(rK(a)),new AC(c.TJ.adVideoId),new wC(c.Qp),b.sodarExtensionData&&new ZC(b.sodarExtensionData),new SC({current:null}),new cD({}),new rD(WE(b.pings))].filter(OAa);e!==void 0&&a.push(new fD(e));return a};
YAa=function(a,b,c){a=a.map(function(m){return kK(g.Q(m.renderingContent,KJ),!1)});
var d=a.map(function(m){return m.videoLengthSeconds}),e=d.map(function(m,n){return new $I(n,d)}),f=b,h=c,l=[];
a.forEach(function(m,n){h=Math.min(f+m.videoLengthSeconds*1E3,c);dK(m.playerVars,e[n]);l.push({TJ:m,qI:f,j3:h,Pn:n,Qp:e[n]});f=h});
return l};
$Aa=function(a,b,c){for(var d=[],e=g.x(a),f=e.next();!f.done;f=e.next())if(f=g.Q(f.value.renderingContent,KJ)){if(!HJ(f))return new Z("Invalid vod media renderer");d.push(iBa(f))}e=d.map(function(q){return q.Rp});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.Q(a[l].renderingContent,KJ);if(m){var n=new $I(h,e),p=mK(d[h].playerVars,d[h].sC,b,c,n);f[l]={Qp:n,adPodSkipTarget:m.adPodSkipTarget,Tda:d[h],IE:p};h++}}return f};
iBa=function(a){var b=ur(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,My("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,sC:a.playerVars,Rp:c}};
rK=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"}}};
VAa=function(a){if(g.Q(a.renderingContent,BJ)){var b;return((b=g.Q(a.renderingContent,BJ))==null?void 0:b.impressionPings)||[]}if(g.Q(a.renderingContent,zJ)){var c;return((c=g.Q(a.renderingContent,zJ))==null?void 0:c.impressionPings)||[]}if(g.Q(a.renderingContent,AJ)){var d;return((d=g.Q(a.renderingContent,AJ))==null?void 0:d.impressionPings)||[]}return[]};
kBa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[jBa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData,t=c.progressCommands;q=tE(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var u={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xa:"core"},y=XE(n),A=[new nJ(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",zb:y,layoutExitNormalTriggers:A,layoutExitSkipTriggers:[],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new vC(d),new rD(WE(n)),new sD(F),new WC(h/1E3),new oD({progressCommands:t}),new kD(h/1E3)]),Ub:p(u),adLayoutLoggingData:r}})]:new Z("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
mBa=function(a,b,c,d,e,f,h,l){a=lBa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=tE(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",zb:q,layoutExitNormalTriggers:[new mJ(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new eD(e),new vC(c)]),Ub:m(p)}});
return a instanceof Z?a:[a]};
oBa=function(a,b,c,d,e,f,h){return[nBa(a,f,d,function(l){var m=l.slotId;l=h(l);m=tE(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",zb:new Map,layoutExitNormalTriggers:[new nJ(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new CC(e),new vC(c)]),Ub:l(n),
adLayoutLoggingData:e.adLayoutLoggingData}})]};
qBa=function(a,b,c,d,e,f,h,l){a=pBa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=tE(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=wK(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,xK(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=tE(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=wK(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,xK(b,n,p))):q.imageOverlayAdContentRenderer?(q=tE(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=xK(b,n,p),n.push(new wJ(b.j,45E3,q)),n=wK(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new BD("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new BD("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof Z?a:[a]};
tBa=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 rBa(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 sBa(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=tE(b.B.get(),"LAYOUT_TYPE_ENDCAP",
u);return jK(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new IC(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
uBa=function(a,b,c,d){if(!c.playerVars)return new Z("No playerVars available in AdIntroRenderer.");var e=ur(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=tE(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Xa:"adapter"};return{Ag:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",zb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"adapter",clientMetadata:new CD([new dD({}),
new vC(b),new SC({current:null}),new XC(e)]),Ub:f(l)},Tm:[new fJ(a.j,h,["error"])],Ek:[],sA:[],rA:[]}}};
wBa=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=hK(e);if(!Oza(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=kAa(a,b,e,f,c,d,h);return q instanceof Z?q:function(r){return vBa(b,r.slotId,c,p,e,iK(e),h(r),q,l,m)}};
xBa=function(a,b,c,d,e,f,h,l){function m(q){return sBa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=tE(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return jK(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new JC(e),f],e.adLayoutLoggingData)}
if(!Sza(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=yK(b,r,c,p,t,new Map,q,m,void 0,zK(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new OC(r.uM);q=new xC(l);return{Ag:{layoutId:r.layoutId,layoutType:r.layoutType,zb:r.zb,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:r.Xa,clientMetadata:new CD([].concat(g.z(r.pA),[t,q])),Ub:r.Ub,adLayoutLoggingData:r.adLayoutLoggingData},Tm:[],Ek:r.layoutExitMuteTriggers,sA:r.layoutExitUserInputSubmittedTriggers,rA:r.Xc,De:r.De}}};
zBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y){a=NE(a,"SLOT_TYPE_PLAYER_BYTES");d=CAa(b,h,d,e,a,n,p);if(d instanceof Z)return d;var A;h=(A=DD(d.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new Z("Invalid adNotify layout");b=yBa(h,b,c,e,f,m,l,n,q,r,t,u,y);return b instanceof Z?b:[d].concat(g.z(b))};
yBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=ABa(b,c,d,f,h,l,m,n,p,q,r);BBa(f)?(d=CBa(b,a),a=NE(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=tE(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=AK(b,d,l),b=[].concat(g.z(l.slotExpirationTriggers),[new bJ(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:{Uy:Object.assign({},
l,{slotExpirationTriggers:b,clientMetadata:new CD([new gD(a.layout)]),adSlotLoggingData:e}),wf:a.wf}):e=GAa(b,a,l,e,c);return e instanceof Z?e:[].concat(g.z(e.wf),[e.Uy])};
EBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=ABa(a,b,c,e,f,h,m,n,p,q,r,t);BBa(e)?(e=DBa(a,c,h,l),e instanceof Z?a=e:(l=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=tE(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.z(e.slotExpirationTriggers),[new bJ(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:{Uy:{slotId:e.slotId,
slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:BK(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:CK(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Xa:e.Xa,clientMetadata:new CD([new uD(DK(c)),new gD(l.layout),new wD({Ku:a.Ku(c)})]),adSlotLoggingData:d},wf:l.wf})):a=HAa(a,c,h,l,d,m.Yb,b);return a instanceof Z?a:a.wf.concat(a.Uy)};
BBa=function(a){a=g.x(a);for(var b=a.next();!b.done;b=a.next())if(g.Q(b.value,MJ))return!0;return!1};
ABa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(jI(p)&&kI(p))a:{var u=FBa(d,c,p);if(u instanceof Z)t=u;else{for(var y=0,A=[],C=[],F=[],H=[],K=[],N=[],W=new TC({current:null}),V=new zC({current:null}),da=!1,na=[],X=0,R=[],Y=0;Y<d.length;Y++){var v=d[Y],U=g.Q(v,KJ);if(U){U=lK(U,c,p);if(U instanceof BD){t=new Z(U);break a}var $a=new $I(X,u),wb=mK(U.playerVars,U.sC,h,n,$a);X++;R[Y]={renderer:v,data:U,Qp:$a,IE:wb}}}X=-1;for(u=0;u<d.length;u++)if(Y=d[u],v=g.Q(Y,LJ)){Y=uBa(b,c,v,l);if(Y instanceof
Z){t=Y;break a}Y=Y(r);A.push(Y.Ag);C=[].concat(g.z(Y.Tm),g.z(C));F=[].concat(g.z(Y.Ek),g.z(F));Y.De&&(na=[Y.De].concat(g.z(na)))}else if(g.Q(Y,KJ))v=R[u],X=v.data,Y=v.Qp,v=v.IE,U=R[u+1],$a=void 0,U&&($a=U.IE),Y=GBa(b,X.layoutId,X.Cp,c,v,X.Rp,f,Y,l(r),V,m.get(X.Cp.externalVideoId),$a,q),y++,A.push(Y.Ag),C=[].concat(g.z(Y.Tm),g.z(C)),F=[].concat(g.z(Y.Ek),g.z(F)),da||(N.push(V),da=!0),X=(X=X.Cp.adPodSkipTarget)&&X>0?X:-1;else if(v=g.Q(Y,GF)){Y=tBa(a,b,c,v,f,y,l,V,X);if(Y instanceof Z){t=Y;break a}Y=
Y(r);A.push(Y.Ag);C=[].concat(g.z(Y.Tm),g.z(C));F=[].concat(g.z(Y.Ek),g.z(F));Y.De&&(na=[Y.De].concat(g.z(na)))}else if(v=g.Q(Y,MJ)){if(t===void 0){t=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:v});break a}Y=wBa(a,b,c,f,v,W,l,t,y,sE(p,"supports_multi_step_on_desktop"));if(Y instanceof Z){t=Y;break a}Y=Y(r);A.push(Y.Ag);Y.De&&na.push(Y.De);C=[].concat(g.z(Y.Tm),g.z(C));F=[].concat(g.z(Y.Ek),g.z(F));H=[].concat(g.z(Y.sA),g.z(H));K=[].concat(g.z(Y.rA),
g.z(K));N=[W].concat(g.z(N))}else if(Y=g.Q(Y,NJ)){Y=xBa(a,b,c,f,Y,W,l,y);if(Y instanceof Z){t=Y;break a}Y=Y(r);A.push(Y.Ag);Y.De&&na.push(Y.De);F=[].concat(g.z(Y.Ek),g.z(F))}else{t=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={jr:A,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:H,Xc:K,layoutExitMuteTriggers:F,pA:N,wf:na}}}else a:if(y=FBa(d,c,p),y instanceof Z)t=y;else{A=0;C=[];F=[];H=[];K=[];N=[];W=[];V=new TC({current:null});da=new zC({current:null});
na=!1;R=[];X=-1;u=g.x(d);for(Y=u.next();!Y.done;Y=u.next())if(Y=Y.value,g.Q(Y,LJ)){Y=uBa(b,c,g.Q(Y,LJ),l);if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Ag);F=[].concat(g.z(Y.Tm),g.z(F));H=[].concat(g.z(Y.Ek),g.z(H));Y.De&&(R=[Y.De].concat(g.z(R)))}else if(g.Q(Y,KJ)){X=lK(g.Q(Y,KJ),c,p);if(X instanceof BD){t=new Z(X);break a}Y=new $I(A,y);Y=GBa(b,X.layoutId,X.Cp,c,mK(X.playerVars,X.sC,h,n,Y),X.Rp,f,Y,l(r),da,m.get(X.Cp.externalVideoId),void 0,q);A++;C.push(Y.Ag);F=[].concat(g.z(Y.Tm),g.z(F));H=[].concat(g.z(Y.Ek),
g.z(H));na||(W.push(da),na=!0);X=(X=X.Cp.adPodSkipTarget)&&X>0?X:-1}else if(g.Q(Y,GF)){Y=tBa(a,b,c,g.Q(Y,GF),f,A,l,da,X);if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Ag);F=[].concat(g.z(Y.Tm),g.z(F));H=[].concat(g.z(Y.Ek),g.z(H));Y.De&&(R=[Y.De].concat(g.z(R)))}else if(g.Q(Y,MJ)){if(t===void 0){t=new Z("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(Y,MJ)});break a}Y=wBa(a,b,c,f,g.Q(Y,MJ),V,l,t,A,sE(p,"supports_multi_step_on_desktop"));
if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Ag);Y.De&&R.push(Y.De);F=[].concat(g.z(Y.Tm),g.z(F));H=[].concat(g.z(Y.Ek),g.z(H));K=[].concat(g.z(Y.sA),g.z(K));N=[].concat(g.z(Y.rA),g.z(N));W=[V].concat(g.z(W))}else if(g.Q(Y,NJ)){Y=xBa(a,b,c,f,g.Q(Y,NJ),V,l,A);if(Y instanceof Z){t=Y;break a}Y=Y(r);C.push(Y.Ag);Y.De&&R.push(Y.De);H=[].concat(g.z(Y.Ek),g.z(H))}else{t=new Z("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={jr:C,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:K,
Xc:N,layoutExitMuteTriggers:H,pA:W,wf:R}}t instanceof Z?r=t:(N=r.slotId,y=t.jr,A=t.layoutExitSkipTriggers,C=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,H=t.pA,r=l(r),K=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:tE(b.B.get(),K,N),W={layoutId:N,layoutType:K,Xa:"core"},r={layout:{layoutId:N,layoutType:K,zb:new Map,layoutExitNormalTriggers:[new mJ(b.j,N)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:F,Xc:[],Xa:"core",
clientMetadata:new CD([new UC(y)].concat(g.z(H))),Ub:r(W)},wf:t.wf});return r}};
FBa=function(a,b,c){var d=[];a=g.x(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.Q(e,KJ)){e=lK(g.Q(e,KJ),b,c);if(e instanceof BD)return new Z(e);d.push(e.Rp)}return d};
IBa=function(a,b,c,d,e,f,h,l){if(!Oza(c,l===void 0?!1:l))return new Z("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=hK(c);if(m<=0)return new Z("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new TC({current:null}),p=kAa(a,b,c,n,d,f,h);return HBa(a,d,f,m,e,function(q,r){var t=q.slotId,u=iK(c);q=h(q);var y,A=(y=zK(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?y:
tE(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"core"};y=p(A,r);var C=DD(y.clientMetadata,"metadata_type_fulfilled_layout");C||My("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new vC(d),new lD(m),new oD(u),n];C&&u.push(new PC(C.layoutType));return{Faa:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",zb:new Map,layoutExitNormalTriggers:[new mJ(b.j,A)],layoutExitSkipTriggers:[new oJ(b.j,
r.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new vJ(b.j,r.layoutId)],Xc:[],Xa:"core",clientMetadata:new CD(u),Ub:q(t)},L$:y}})};
JBa=function(a){if(!Rza(a))return!1;var b=g.Q(a.adVideoStart,EK);return b?g.Q(a.linearAd,KJ)&&FJ(b)?!0:(My("Invalid Sandwich with notify"),!1):!1};
KBa=function(a){if(a.linearAds==null)return!1;a=g.Q(a.adStart,EK);return a?FJ(a)?!0:(My("Invalid LASR with notify"),!1):!1};
LBa=function(a){if(!Qza(a))return!1;a=g.Q(a.adStart,EK);return a?FJ(a)?!0:(My("Invalid LASR with notify"),!1):!1};
FK=function(a,b,c,d,e,f,h,l,m,n){this.D=a;this.B=b;this.j=c;this.Aa=d;this.Ue=e;this.C=f;this.Ia=h;this.Ik=l;this.Bf=m;this.loadPolicy=n===void 0?1:n};
Wza=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(GJ);var q=c.filter(Lza),r=d.filter(GJ),t=new Map,u=NAa(b),y=c.some(function(v){var U;return(v==null?void 0:(U=v.adSlotMetadata)==null?void 0:U.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),A=c.some(function(v){var U;
return(v==null?void 0:(U=v.adSlotMetadata)==null?void 0:U.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),C=c.some(function(v){var U;
return(v==null?void 0:(U=v.adSlotMetadata)==null?void 0:U.slotType)==="SLOT_TYPE_IN_PLAYER"});
c=c.some(function(v){var U,$a;return(v==null?void 0:(U=v.adSlotMetadata)==null?void 0:U.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=UAa(q,b,l,e,u,a.Ue.get(),a.loadPolicy,t,a.Aa.get(),a.D.get(),C,h,m,n),n instanceof Z?My(n,void 0,void 0,{contentCpn:e}):p.push.apply(p,g.z(n));n=g.x(b);for(c=n.next();!c.done;c=n.next())c=c.value,A=MBa(a,t,c,e,f,h,y,l,u,m,q),A instanceof Z?My(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.z(A));NBa(a.Aa.get())||(f=OBa(a,r,e,l,u,t),p.push.apply(p,g.z(f)));if(a.C===null||h&&!l.sY){var F,
H,K;a=l.Yb&&b.length===1&&((F=b[0].config)==null?void 0:(H=F.adPlacementConfig)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((K=b[0].renderer)==null?void 0:K.adBreakServiceRenderer);if(!p.length&&!a){var N,W,V,da;My("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:(W=N.config)==null?void 0:(V=W.adPlacementConfig)==null?void 0:V.kind,renderer:(da=b[0])==null?void 0:da.renderer})}return p}F=
d.filter(GJ);p.push.apply(p,g.z(hAa(t,F,a.B.get(),a.C,e,y)));if(!p.length){var na,X,R,Y;My("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(na=b[0])==null?void 0:(X=na.config)==null?void 0:(R=X.adPlacementConfig)==null?void 0:R.kind,renderer:(Y=b[0])==null?void 0:Y.renderer})}return p};
OBa=function(a,b,c,d,e,f){function h(r){return JD(a.Ue.get(),r)}
var l=[];b=g.x(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&&JBa(p)?(My("Found AdNotify with SandwichedLinearAdRenderer"),q=g.Q(p.adVideoStart,EK),p=g.Q(p.linearAd,KJ),eK(f,n,m.config.adPlacementConfig.kind),n=void 0,q=DAa((n=q)==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Aa.get(),a.Ue.get()),q instanceof Z?My(q):l.push.apply(l,g.z(q))):
q&&(!q.adLayoutMetadata&&KBa(q)||q.adLayoutMetadata&&LBa(q))&&(My("Found AdNotify with LinearAdSequenceRenderer"),eK(f,n,m.config.adPlacementConfig.kind),n=void 0,p=yBa((n=g.Q(q.adStart,EK))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,yJ(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Aa.get()),p instanceof Z?My(p):l.push.apply(l,g.z(p)))}return l};
MBa=function(a,b,c,d,e,f,h,l,m,n,p){function q(C){return JD(a.Ue.get(),C)}
var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,y=c.adSlotLoggingData,A=l.sY&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return gK(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.adsEngagementPanelRenderer;C=JD(a.Ue.get(),C);return GK(N,W,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new lC(V),F,H,V.impressionPings,C,r.adsEngagementPanelRenderer.adLayoutLoggingData,K)}),[];
if(r.adsEngagementPanelLayoutViewModel)return gK(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.adsEngagementPanelLayoutViewModel;C=JD(a.Ue.get(),C);return HK(N,W,"LAYOUT_TYPE_PANEL",new mC(V),F,H,C,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,K)}),[];
if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return cAa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,y,d,q);gK(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.actionCompanionAdRenderer;C=JD(a.Ue.get(),C);return GK(N,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new jC(V),F,H,V.impressionPings,C,r.actionCompanionAdRenderer.adLayoutLoggingData,K)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return dAa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,y,d,q);
gK(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.topBannerImageTextIconButtonedLayoutViewModel;C=JD(a.Ue.get(),C);return HK(N,W,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new kC(V),F,H,C,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,K)})}else if(r.imageCompanionAdRenderer)gK(b,
c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.imageCompanionAdRenderer;
C=JD(a.Ue.get(),C);return GK(N,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new qC(V),F,H,V.impressionPings,C,r.imageCompanionAdRenderer.adLayoutLoggingData,K)});
else if(r.bannerImageLayoutViewModel)gK(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.bannerImageLayoutViewModel;C=JD(a.Ue.get(),C);return HK(N,W,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new rC(V),F,H,C,r.bannerImageLayoutViewModel.adLayoutLoggingData,K)});
else if(r.shoppingCompanionCarouselRenderer)gK(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,y,function(C,F,H,K){var N=a.j.get(),W=C.slotId,V=r.shoppingCompanionCarouselRenderer;C=JD(a.Ue.get(),C);return GK(N,W,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new sC(V),F,H,V.impressionPings,C,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,K)});
else if(r.adBreakServiceRenderer){if(!aAa(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return $za(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Zza(a.B.get(),t,y,c.renderer.adBreakServiceRenderer,d,e,f);l.Yb||My("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.Yb),clientPlaybackNonce:l.clientPlaybackNonce});
if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ia)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!a.Bf)return new Z("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");a.Bf.zS({adPlacementRenderer:c,contentCpn:d,Fk:e});e=a.Ia.get().getCurrentTimeSec(1,!1);return PBa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,y,f)}if(!a.Ik)return new Z("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");
a.Ik.zS({adPlacementRenderer:c,contentCpn:d,Fk:e})}else{if(r.clientForecastingAdRenderer)return mBa(a.B.get(),a.j.get(),t,y,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return qBa(a.B.get(),a.j.get(),t,y,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return oBa(a.B.get(),a.j.get(),t,y,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return xAa(a.B.get(),a.j.get(),c,d,q,n,!a.Aa.get().K.V().N("html5_override_ad_video_length_killswitch"));
if(r.linearAdSequenceRenderer&&!A){if(h)return[];eK(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!Qza(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,EK)){My("Found AdNotify in LinearAdSequenceRenderer");c=g.Q(r.linearAdSequenceRenderer.adStart,EK);if(!Aza(c))return new Z("Invalid AdMessageRenderer.");
f=r.linearAdSequenceRenderer.linearAds;return zBa(a.D.get(),a.B.get(),a.j.get(),a.Ue.get(),t,y,c,yJ(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Aa.get())}return EBa(a.B.get(),a.j.get(),t,y,r.linearAdSequenceRenderer.linearAds,yJ(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&
!A){if(h)return[];eK(b,r,u);return IAa(a.B.get(),a.j.get(),t,y,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Aa.get(),a.Ue.get(),p)}if(r.instreamSurveyAdRenderer)return IBa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,y,d,q,sE(a.Aa.get(),"supports_multi_step_on_desktop"));if(r.sandwichedLinearAdRenderer!=null)return Rza(r.sandwichedLinearAdRenderer)?g.Q(r.sandwichedLinearAdRenderer.adVideoStart,EK)?(My("Found AdNotify in SandwichedLinearAdRenderer"),c=g.Q(r.sandwichedLinearAdRenderer.adVideoStart,
EK),Aza(c)?(f=g.Q(r.sandwichedLinearAdRenderer.linearAd,KJ))?EAa(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Ue.get(),y,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new Z("Missing IVAR from Sandwich"):new Z("Invalid AdMessageRenderer.")):EBa(a.B.get(),a.j.get(),t,y,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Aa.get()):new Z("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=sE(a.Aa.get(),"enable_h5_shorts_ad_terminal_events")&&
l.Pj,kBa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,y,d,e,l,q)}}return[]};
IK=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.B=a;this.C=b;this.Ie=d;this.Ia=e;this.Aa=f;this.Na=h;this.Ec=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ja()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ja()||d.get().removeListener(m)})};
RBa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);a.Aa.get().K.V().Xb()&&FI(a.Na.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Xg.toFixed(3));ME(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=JK(a.Aa.get()),n=a.Na;if(e.Aa.get().K.V().experiments.fb("enable_smearing_expansion_dai")){var p=g.KD(e.Aa.get().K.V().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.KD(e.Aa.get().K.V().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Jn:QBa(c),rC:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Xg;if(d===0)m.fq=new Pp(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.fq=t<=0?new Pp(q*1E3,r*1E3):new Pp(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={Jn:QBa(c),rC:!1},r=c.startSecs+c.Xg,c.startSecs<=d?m=new Pp((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new Pp(Math.floor(d+
Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.fq=m;e=bK(e,f,h,p,l,[new VC(c)]);h=n.get();n=p.fq.start/1E3-d;f=c.startSecs-d;(h=h.K.Rc())!=null&&(h=h.Wb(),h.qoe&&(h=h.qoe,l=g.KK(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]})};
LK=function(a){var b,c=(b=DD(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=DD(a.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=DD(a.clientMetadata,"metadata_type_content_cpn"),f=DD(a.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),h=DD(a.clientMetadata,"metadata_type_player_overlay_layout_renderer"),l=DD(a.clientMetadata,"metadata_type_player_underlay_renderer"),m=DD(a.clientMetadata,
"metadata_type_ad_placement_config"),n=DD(a.clientMetadata,"metadata_type_video_length_seconds");var p=yD(a.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?DD(a.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):yD(a.clientMetadata,"metadata_type_layout_enter_ms")&&yD(a.clientMetadata,"metadata_type_layout_exit_ms")?(DD(a.clientMetadata,"metadata_type_layout_exit_ms")-DD(a.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{qr:d,contentCpn:e,uT:c,LO:b,instreamAdPlayerOverlayRenderer:f,
playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,HL:p,inPlayerLayoutId:DD(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:DD(a.clientMetadata,"metadata_type_linked_in_player_slot_id")}};
TBa=function(a,b){return SBa(a,b)};
UBa=function(a,b){b=SBa(a,b);if(!b)return null;var c;b.HL=(c=DD(a.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b};
SBa=function(a,b){var c,d=(c=DD(a.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=lxa(a,b);return{I7:kxa(a,b),adPlacementConfig:DD(a.clientMetadata,"metadata_type_ad_placement_config"),K7:c,contentCpn:DD(a.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:DD(a.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:DD(a.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:DD(a.clientMetadata,
"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,HL:void 0,uT:d,qr:a.layoutId,videoLengthSeconds:DD(a.clientMetadata,"metadata_type_video_length_seconds")}};
MK=function(a,b,c,d,e,f,h,l,m){g.O.call(this);this.D=a;this.L=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Ue=h;this.Aa=l;this.Sa=m;this.Zg=!0};
VBa=function(a,b,c){return LAa(a.j.get(),b.contentCpn,b.qr,function(d){return MAa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.qr,JD(a.Ue.get(),d))})};
NK=function(a,b,c,d,e,f,h,l){g.O.call(this);this.B=a;this.j=b;this.C=c;this.Aa=d;this.D=e;this.Sa=f;this.Ia=h;this.Kc=l};
OK=function(a){g.O.call(this);this.j=a};
ME=function(a,b,c,d){a.j().Hg(b,d);c=c();a=a.j();a.Tb.iJ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.x(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Tb.zk("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Tb.zk("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.zb(c.slotId))throw new Z("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(SD(e,c))throw new Z("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.Jh.fu.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.Jh.Qv.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");iE(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);iE(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);iE(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=dE(f,h);if(SD(f,c))throw new Z("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new fwa(c));f.j.set(h,l)}catch(da){da instanceof Z&&da.Ml?(d.Tb.Gm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",da.Ml,c),My(da,c,void 0,void 0,da.Vw)):(d.Tb.Gm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),My(da,c));break a}SD(d.j,c).L=!0;try{var m=d.j,n=SD(m,c),p=c.slotEntryTrigger,q=m.Jh.Rn.get(p.triggerType);q&&(q.ll("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ba.set(p.triggerId,q));for(var r=g.x(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,y=m.Jh.Rn.get(u.triggerType);y&&(y.ll("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.qa.set(u.triggerId,y))}for(var A=g.x(c.slotExpirationTriggers),C=A.next();!C.done;C=A.next()){var F=C.value,H=m.Jh.Rn.get(F.triggerType);H&&(H.ll("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.Z.set(F.triggerId,H))}var K=m.Jh.fu.get(c.slotType).get().build(m.C,c);n.U=K;var N=m.Jh.Qv.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(da){da instanceof Z&&da.Ml?(d.Tb.Gm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",da.Ml,c),My(da,c,void 0,void 0,da.Vw)):(d.Tb.Gm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),My(da,c));PD(d,c,!0);break a}d.Tb.zk("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Kg(c);for(var W=g.x(d.B),V=W.next();!V.done;V=
W.next())V.value.Kg(c);VD(d,c)}};
PK=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.C=b;this.Wc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ja()||d.get().removeListener(f)})};
Uza=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.x(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof jJ?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):My("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Pp(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Wc.get().addCueRange(c,d.start,d.end,!1,a);SF(a.context.Aa.get())&&(b=d.start,d=d.end,e={},a.context.ej.Rj("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
QK=function(){g.O.apply(this,arguments);this.Zg=!0;this.wj=new Map;this.j=new Map};
RK=function(a,b){a=g.x(a.wj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
SK=function(a,b){a=g.x(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.x(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}My("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.zb(b)),layoutId:b})};
WBa=function(){this.j=new Map};
XBa=function(a,b){this.callback=a;this.slot=b};
TK=function(){};
YBa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
ZBa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.B=!1;this.j=0};
$Ba=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
UK=function(a){this.Ia=a};
VK=function(a){g.O.call(this);this.nO=a;this.Ob=new Map};
WK=function(a,b){for(var c=[],d=g.x(a.Ob.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof vJ&&f.triggeringLayoutId===b&&c.push(e)}c.length?aE(a.nO(),c):My("Survey is submitted but no registered triggers can be activated.")};
XK=function(a,b,c){VK.call(this,a);var d=this;this.Aa=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ja()||b.get().removeListener(d)})};
YK=function(a){g.O.call(this);this.j=a;this.Zg=!0;this.Ob=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.L=new Set;this.B=new Set};
ZK=function(a){g.O.call(this);this.j=a;this.Ob=new Map};
$K=function(a,b){for(var c=[],d=g.x(a.Ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&aE(a.j(),c)};
aL=function(a,b,c){g.O.call(this);var d=this;this.j=a;this.context=c;this.Ob=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ja()||b.get().removeListener(d)})};
bL=function(a,b,c,d,e){g.O.call(this);var f=this;this.B=a;this.Wc=b;this.Ia=c;this.Sa=d;this.context=e;this.Zg=!0;this.Ob=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ja()||c.get().removeListener(f)})};
aCa=function(a,b,c,d,e,f,h,l,m,n){if(UH(a.Sa.get(),1).clientPlaybackNonce!==m)throw new Z("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Ob.set(c.triggerId,{OE:new xJ(b,c,d,e),cueRangeId:f});a.Wc.get().addCueRange(f,h,l,n,a);SF(a.context.Aa.get())&&(m={},a.context.ej.Rj("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)))};
bCa=function(a,b){a=g.x(a.Ob.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.x(c.value);c=d.next().value;d=d.next().value;if(b===d.cueRangeId)return c}return""};
cL=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.Ja()||b.get().removeListener(c)});
var d;this.j=((d=b.get().nx)==null?void 0:d.slotId)||null};
cCa=function(a,b){var c=[];a=g.x(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
dL=function(a){g.O.call(this);this.j=a;this.Zg=!0;this.Ob=new Map};
vI=function(a,b,c){b=b.layoutId;for(var d=[],e=g.x(a.Ob.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof mJ){var h;if(h=f.trigger.layoutId===b){h=c;var l=Zva.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&aE(a.j(),d)};
eL=function(a){g.O.call(this);this.j=a;this.Zg=!0;this.Ob=new Map};
fL=function(a,b,c,d,e){g.O.call(this);var f=this;this.G=a;this.Ie=b;this.Ia=c;this.Na=d;this.j=null;this.Zg=!0;this.Ob=new Map;this.C=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ja()||b.get().removeListener(f)});
e.get().addListener(this);this.addOnDisposeCallback(function(){e.Ja()||e.get().removeListener(f)})};
dCa=function(a,b){for(var c=[],d=g.x(a.Ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.triggerType===b&&c.push(e);c.length>0&&aE(a.G(),c)};
eCa=function(a){a=a.adPlacementRenderer.config.adPlacementConfig;if(!a.prefetchModeConfig||!a.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;a=Number(a.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(a)||a<=0?0:Math.floor(Math.random()*a)};
fCa=function(a){a=a.adPlacementRenderer.config.adPlacementConfig;if(a.prefetchModeConfig&&a.prefetchModeConfig.cacheFetchRefreshDurationMs&&(a=Number(a.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(a)||a<=0)))return a};
gL=function(a){a.j=null;a.Ob.clear();a.C.clear();a.B&&a.B.stop();a.D&&a.D.stop()};
hL=function(a){g.O.call(this);this.C=a;this.Zg=!0;this.Ob=new Map;this.j=new Map;this.B=new Map};
gCa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.x(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
iL=function(a){g.O.call(this);this.j=a;this.Ob=new Map};
hCa=function(a,b){for(var c=[],d=g.x(a.Ob.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof ZI&&e.trigger.slotId===b&&c.push(e);c.length>=1&&aE(a.j(),c)};
iCa=function(a,b){var c={slotId:NE(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Xa:"surface",clientMetadata:new CD([])},d=Object,e=d.assign;b=tE(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",zb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"surface",
clientMetadata:new CD([]),Ub:Tva(!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,{S$:!0,slot:c,layout:b})};
Yza=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Jn:new Pp(-0x8000000000000,-0x8000000000000),rC:d},c!=null&&(d.fq=new Pp(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Jn:new Pp(0x7ffffffffffff,0x8000000000000),rC:d},c!=null&&(d.fq=new Pp(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||My("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||My("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={Jn:new Pp(a,e),rC:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.fq=new Pp(a,e)}return d;
default:return new Z("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
QBa=function(a){var b=a.startSecs*1E3;return new Pp(b,b+a.Xg*1E3)};
jCa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.x(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.x(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.Q(b.value,aK))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
jL=function(a){this.Aa=a;this.B=new Map;this.j=new Map;this.C=new Map};
NE=function(a,b){if(kL(a.Aa.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.Sv(16)};
tE=function(a,b,c){if(kL(a.Aa.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.Sv(16)};
vK=function(a,b){if(kL(a.Aa.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.Sv(16)};
kCa=function(a){var b=[new NC(a.qr),new RC(a.uT),new vC(a.adPlacementConfig),new WC(a.videoLengthSeconds),new kD(a.HL)];a.instreamAdPlayerOverlayRenderer&&b.push(new CC(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new DC(a.playerOverlayLayoutRenderer));a.LO&&b.push(new zC(a.LO));return b};
lCa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:tE(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",zb:new Map,layoutExitNormalTriggers:[new gJ(function(n){return vK(f,
n)},c.qr)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:b,clientMetadata:d,Ub:e(h),adLayoutLoggingData:m}};
lL=function(a,b){var c=this;this.B=a;this.Aa=b;this.j=function(d){return vK(c.B.get(),d)}};
MAa=function(a,b,c,d,e,f){c=new CD([new EC(c),new vC(d)]);b=tE(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",zb:new Map,layoutExitNormalTriggers:[new gJ(function(h){return vK(a.B.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:c,Ub:f(d),adLayoutLoggingData:void 0}};
nK=function(a,b,c,d,e){var f=kCa(d);return lCa(b,c,d,new CD(f),e,a.B.get())};
mCa=function(a,b,c,d,e){var f=kCa(d);f.push(new tC(d.I7));f.push(new uC(d.K7));return lCa(b,c,d,new CD(f),e,a.B.get())};
GK=function(a,b,c,d,e,f,h,l,m,n){b=tE(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Xa:"core"},q=new Map;h&&q.set("impression",h);h=[new kJ(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new fJ(a.j,n,["normal"]));return{layoutId:b,layoutType:c,zb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([d,new vC(f),new NC(e)]),Ub:l(p),adLayoutLoggingData:m}};
HK=function(a,b,c,d,e,f,h,l,m){b=tE(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Xa:"core"},p=[new kJ(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new fJ(a.j,m,["normal"]));return{layoutId:b,layoutType:c,zb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([d,new vC(f),new NC(e)]),Ub:h(n),adLayoutLoggingData:l}};
xK=function(a,b,c){var d=[];d.push(new lJ(a.j,c));b&&d.push(b);return d};
wK=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Xa:"core"};return{layoutId:b,layoutType:c,zb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new bJ(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new pC(d),new vC(e)]),Ub:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
jK=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Xa:"core"};return{layoutId:b,layoutType:f,zb:new Map,layoutExitNormalTriggers:[new gJ(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new vC(d)].concat(g.z(h))),Ub:e(m),adLayoutLoggingData:l}};
zK=function(a,b,c,d){if(a.Aa.get().qf(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)My("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
rBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=yK(a,b,c,e,f,h,l,m,q,zK(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.pA;c=new OC(a.uM);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new yC(n)),d=[]);b.push(new xC(p));return{Ag:{layoutId:a.layoutId,layoutType:a.layoutType,zb:a.zb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:a.Xa,clientMetadata:new CD(b),Ub:a.Ub,adLayoutLoggingData:a.adLayoutLoggingData},
Tm:d,Ek:a.layoutExitMuteTriggers,sA:a.layoutExitUserInputSubmittedTriggers,rA:a.Xc,De:a.De}};
vBa=function(a,b,c,d,e,f,h,l,m,n){b=yK(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,zK(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new vJ(a.j,b.uM);c=new OC(b.uM);n=new xC(n);return{Ag:{layoutId:b.layoutId,layoutType:b.layoutType,zb:b.zb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:b.Xa,clientMetadata:new CD([].concat(g.z(b.pA),[c,n])),Ub:b.Ub,adLayoutLoggingData:b.adLayoutLoggingData},Tm:b.layoutExitSkipTriggers,Ek:b.layoutExitMuteTriggers,sA:[].concat(g.z(b.layoutExitUserInputSubmittedTriggers),[a]),rA:b.Xc,De:b.De}};
yK=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:tE(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xa:"adapter"};l=l(b);var q=DD(l.clientMetadata,"metadata_type_fulfilled_layout");q||My("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new vC(c),new lD(d),new oD(e)];q&&c.push(new PC(q.layoutType));p&&c.push(new bD(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
zb:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new oJ(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"adapter",pA:c,Ub:h(n),adLayoutLoggingData:m,De:l,uM:r}};
JAa=function(a,b,c,d,e,f,h,l,m,n,p){a=nCa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,zb:a.zb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Xc:a.Xc,Xa:a.Xa,clientMetadata:new CD(a.fY),Ub:a.Ub,adLayoutLoggingData:a.adLayoutLoggingData}};
GBa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=nCa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.fY;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new yC(c.adPodSkipTarget)),d=[]);e.push(new xC(l.adPodIndex));c.isCritical&&(d=[new fJ(a.j,b.layoutId,["error"])].concat(g.z(d)));return{Ag:{layoutId:b.layoutId,layoutType:b.layoutType,zb:b.zb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:b.Xa,clientMetadata:new CD(e),
Ub:b.Ub,adLayoutLoggingData:b.adLayoutLoggingData},Tm:d,Ek:b.layoutExitMuteTriggers,sA:b.layoutExitUserInputSubmittedTriggers,rA:b.Xc}};
nCa=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 vC(e),new wC(m),new AC(d.externalVideoId),new BC(l),new oD({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new XC(f),new SC({current:null}),new WC(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new CC(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new DC(h));
q&&e.push(new YC(q));(q=d.playerUnderlay)&&e.push(new EC(q));l=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:tE(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new OC(q));e.push(new QC(l));e.push(new bD(m.adPodIndex));d.adNextParams&&e.push(new nC(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new HC(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new oC(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new mD(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new ZC(d.sodarExtensionData));p&&e.push(new jD(p));e.push(new rD(WE(d.pings)));m=XE(d.pings);if(r){a:{r=g.x(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,SJ))&&(f=g.Q(f.renderingContent,QJ))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new FC(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",zb:m,layoutExitNormalTriggers:[new mJ(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new oJ(a.j,q)]:[],layoutExitMuteTriggers:[new oJ(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:c,fY:e,Ub:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
zAa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return zD(p,[],["LAYOUT_TYPE_MEDIA"])})||My("Unexpect subLayout type for DAI composite layout");
b=tE(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",zb:new Map,layoutExitNormalTriggers:[new hJ(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Xa:"core",clientMetadata:new CD([new $C(c),new aD(l),new UC(d),new vC(e),new fD(f),new cD({}),new tD(m)]),Ub:h(n)}};
uAa=function(a){return a!=null};
mL=function(a,b,c){var d=this;this.B=a;this.C=b;this.Aa=c;this.j=function(e){return vK(d.B.get(),e)}};
PBa=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.x(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);n={Jn:new Pp(q,q+Number(n)),rC:!1,fq:new Pp(Math.floor(p+Math.random()*
Number(c.cacheFetchSmearingDurationMs)),q)};p=[];p.push(new xD({}));q=[];q.push(new vza(a.j));q.push(new nza(a.j));h&&p.push(new cD({}));l.push(bK(a,b,e,n,f,p,q))}return l};
bK=function(a,b,c,d,e,f,h){f=f===void 0?[]:f;h=h===void 0?[]:h;var l=NE(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),m=[];h=g.x(h);for(var n=h.next();!n.done;n=h.next())m.push(n.value);d.fq&&d.fq.start!==d.Jn.start&&m.push(new jJ(a.j,c,new Pp(d.fq.start,d.Jn.start),!1));m.push(new jJ(a.j,c,new Pp(d.Jn.start,d.Jn.end),d.rC));d={getAdBreakUrl:b.getAdBreakUrl,Dv:d.Jn.start,Cv:d.Jn.end,cueProcessedMs:d.cueProcessedMs};b=new sJ(a.j,l);f=[new hD(d)].concat(g.z(f));return{slotId:l,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",
slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:m,slotExpirationTriggers:[new nJ(a.j,c),new qJ(a.j,l),new rJ(a.j,l)],Xa:"core",clientMetadata:new CD(f),adSlotLoggingData:e}};
pCa=function(a,b,c){var d=[];c=g.x(c);for(var e=c.next();!e.done;e=c.next())d.push(oCa(a,b,e.value));return d};
oCa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c};
jAa=function(a,b,c,d,e){return qCa(a,b,c,d,e)};
sBa=function(a,b,c,d){var e=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER");return qCa(a,e,b,c,d)};
qCa=function(a,b,c,d,e){var f=new eJ(a.j,c),h=[new pJ(a.j,b)];a=[new qJ(a.j,b),new nJ(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
HBa=function(a,b,c,d,e,f){var h=NE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=tE(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=nL(a,b,c,d);var n=[new pJ(a.j,h)];c=[new qJ(a.j,h),new nJ(a.j,c),new bJ(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.Faa;l=l.L$;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:BK(a,b,h,d),slotFulfillmentTriggers:CK(a,b,h,n),slotExpirationTriggers:c,Xa:"core",clientMetadata:new CD([new gD(f),new uD(DK(b)),new wD({Ku:a.Ku(b)})]),adSlotLoggingData:e},l]};
DK=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};
KAa=function(a,b,c,d,e){e=e?e:NE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new eJ(a.j,c);var f=[new pJ(a.j,e)];a=[new nJ(a.j,b),new qJ(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
LAa=function(a,b,c,d){var e=NE(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new eJ(a.j,c);var f=[new pJ(a.j,e)];a=[new nJ(a.j,b),new qJ(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
CAa=function(a,b,c,d,e,f,h){var l=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=tE(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=rCa(a,d,f,h,m);if(d instanceof Z)return d;h=[new pJ(a.j,l)];e=[new nJ(a.j,f),new pJ(a.j,e),new uJ(a.j,e)];c=JD(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",
zb:new Map,layoutExitNormalTriggers:[new wza(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new yza(a.j,m,b.durationMs)],Xc:[new xza(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xa:"core",clientMetadata:new CD([new nD(b)]),Ub:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,clientMetadata:new CD([new gD(b)])}};
pBa=function(a,b,c,d,e,f){b=nL(a,b,c,d);if(b instanceof Z)return b;var h=b instanceof jJ?new sza(a.j,c,b.j):null;d=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new pJ(a.j,d)];a=[new nJ(a.j,c),new qJ(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 BD?new Z(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
Xa:"core",clientMetadata:new CD([new gD(f)]),adSlotLoggingData:e}};
nBa=function(a,b,c,d){var e=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new aJ(a.j,b),h=[new tJ(a.j,e)];a=[new nJ(a.j,b),new qJ(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
pAa=function(a,b,c,d){var e=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new eJ(a.j,c);var f=[new pJ(a.j,e)],h=[new qJ(a.j,e),new nJ(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 pJ(a.j,e)],slotExpirationTriggers:[new nJ(a.j,b),new qJ(a.j,e)],Xa:"core",clientMetadata:new CD([new gD(d(f))])}};
mAa=function(a,b,c,d,e){var f=NE(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new dJ(a.j,d,c);d=[new pJ(a.j,f)];a=[new nJ(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
gAa=function(a,b,c,d,e,f){var h=NE(a.B.get(),b);return oL(a,h,b,new eJ(a.j,d),[new nJ(a.j,c),new qJ(a.j,h),new fJ(a.j,d,["error"])],e,f)};
fAa=function(a,b,c,d,e,f,h){var l=NE(a.B.get(),b);return oL(a,l,b,new fJ(a.j,e,["normal"]),[new nJ(a.j,c),new qJ(a.j,l),new fJ(a.j,d,["error"])],f,h)};
bAa=function(a,b,c,d,e){var f=NE(a.B.get(),b);return oL(a,f,b,new aJ(a.j,c),[new nJ(a.j,c),new qJ(a.j,f)],d,e)};
jBa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=NE(a.B.get(),c);b=new aJ(a.j,b);var h=[new pJ(a.j,f)];a=[new qJ(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(e({slotId:f,slotType:c,slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
vAa=function(a,b,c,d){var e=NE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new iJ(a.j),h=[new tJ(a.j,e)];a=[new nJ(a.j,b)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a})),new cD({})]),adSlotLoggingData:c}};
CBa=function(a,b){return NBa(a.Aa.get())?new fJ(a.j,b,["normal","error","skipped"]):new fJ(a.j,b,["normal"])};
GAa=function(a,b,c,d,e){b=CBa(a,b);a=AK(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:{Uy:Object.assign({},a,{clientMetadata:new CD([new gD(e.layout)]),adSlotLoggingData:d}),wf:e.wf}};
HAa=function(a,b,c,d,e,f,h){c=DBa(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 uD(DK(b)),new gD(h.layout),new wD({Ku:a.Ku(b)})];f&&d.push(new pD({}));return{Uy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:BK(a,
b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:CK(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Xa:c.Xa,clientMetadata:new CD(d),adSlotLoggingData:e},wf:h.wf}};
BK=function(a,b,c,d){return a.Aa.get().qf(DK(b))?new ZI(a.j,c):d};
CK=function(a,b,c,d){return a.Aa.get().qf(DK(b))?[new tJ(a.j,c)]:d};
AK=function(a,b,c){var d=NE(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new pJ(a.j,d)];a=[new qJ(a.j,d),new nJ(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Xa:"core"}};
DBa=function(a,b,c,d){b=nL(a,b,c,d);return b instanceof Z?b:AK(a,b,c)};
lBa=function(a,b,c,d,e,f){var h=NE(a.B.get(),"SLOT_TYPE_FORECASTING");b=nL(a,b,c,d);if(b instanceof Z)return b;d=[new pJ(a.j,h)];a=[new qJ(a.j,h),new nJ(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Xa:"core",clientMetadata:new CD([new gD(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
sCa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new aJ(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Yza(b,d),a instanceof Z?a:e(a.Jn,f);case "AD_PLACEMENT_KIND_END":return new cJ(a.j,c,f);default:return new Z("Cannot construct entry trigger",{kind:b.kind})}};
rCa=function(a,b,c,d,e){return sCa(a,b,c,d,function(f,h){return new rza(a.j,c,f,h,e)})};
nL=function(a,b,c,d){return sCa(a,b,c,d,function(e,f){return new jJ(a.j,c,e,f)})};
oL=function(a,b,c,d,e,f,h){a=[new tJ(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Xa:"core",clientMetadata:new CD([new gD(h({slotId:b,slotType:c,slotPhysicalPosition:1,Xa:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
pL=function(a,b){g.O.call(this);this.Aa=a;this.j=b;this.eventCount=0};
qL=function(a,b,c,d){pL.call(this,a,b);this.Aa=a;this.Sa=c;this.context=d};
rL=function(){this.j=new Map};
uL=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){sL(c,d)},function(d){tL(c,d)})};
xL=function(a){if(vL(a)){if(a instanceof uL)return a;if(wL(a))return new uL("wait",{promise:a})}return new uL("done",{result:a})};
yL=function(a){return new uL("fail",{error:a})};
zL=function(a){try{return xL(a())}catch(b){return yL(b)}};
BL=function(a,b){var c=new uL("wait",{});a.onSuccess.push(function(d){try{var e=b(d);sL(c,e)}catch(f){tL(c,f)}});
a.onFailure.push(function(d){tL(c,d)});
AL(a);return c};
CL=function(a,b){var c=new uL("wait",{});a.onSuccess.push(function(d){sL(c,d)});
a.onFailure.push(function(d){try{var e=b(d);sL(c,e)}catch(f){tL(c,f)}});
AL(a);return c};
sL=function(a,b){if(vL(b)){if(wL(b)){b.then(function(c){sL(a,c)},function(c){tL(a,c)});
return}if(b instanceof uL){BL(b,function(c){sL(a,c)});
CL(b,function(c){tL(a,c)});
return}}a.currentState="done";a.result=b;AL(a)};
tL=function(a,b){a.currentState="fail";a.error=b;AL(a)};
AL=function(a){if(a.currentState==="done"){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.x(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.x(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)};
uCa=function(a){return function(){return tCa(a.apply(this,g.Da.apply(0,arguments)))}};
tCa=function(a){return zL(function(){return DL(a,a.next())})};
DL=function(a,b){return b.done?xL(b.value):CL(BL(b.value.u9,function(c){return DL(a,a.next(c))}),function(c){return DL(a,a.throw(c))})};
FL=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(EL)?e.replace(",","\u00a0"):f.includes(EL)?e.replace(",","\u202f"):h.includes(EL)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(EL)||d)&&c<10?vCa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=vCa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(EL)&&(c=".");return b.join(c)};
vCa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
wCa=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};
xCa=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};
GL=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.ex(b)}}:a};
HL=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
IL=function(){HL.instance||(HL.instance=new HL);return HL.instance};
JL=function(){};
KL=function(){this.U=[];this.W=[];this.j=[];this.ra=[];this.G=[];this.Z=[];this.C=new Map;this.L=new Map;this.B=new Set;this.Ba=new Map};
LL=function(){KL.instance||(KL.instance=new KL);return KL.instance};
ML=function(a,b,c,d){d=d===void 0?{}:d;g.qr(function(){yCa.includes(b)||(g.fx(new g.lt("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.ra=[],a.j.push({rootVe:b,key:d.key||""}));a.U=[];a.W=[];d.tY?zCa(a,b,c,d):ACa(a,b,c,d)})()};
BCa=function(a,b,c){c=c===void 0?0:c;g.qr(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.Xw(c),f=g.Ww(c);if(e&&f){var h;(d==null?0:(h=d.response)==null?0:h.trackingParams)&&g.rx(a.client,e,f,g.Uw(d.response.trackingParams));var l;(d==null?0:(l=d.playerResponse)==null?0:l.trackingParams)&&g.rx(a.client,e,f,g.Uw(d.playerResponse.trackingParams))}})})()};
OL=function(a){var b=LL();g.qr(function(){var c=g.Uw(a);NL(b,c);return c})()};
NL=function(a,b,c,d){d=d===void 0?0:d;g.qr(function(){if(a.B.has(d))return a.U.push([b,c]),!0;var e=g.Xw(d),f=c||g.Ww(d);if(e&&f){if(g.Mr("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.L.set(f.toString(),f),a.C.set(f.toString(),[b]));a.qa||(a.qa=g.qt(0,function(){PL(a,e)},1200))}else g.rx(a.client,e,f,b);
return!0}return!1})()};
CCa=function(a,b,c,d){d=d===void 0?0:d;var e=g.Xw(d);b=b||g.Ww(d);e&&b&&(a=a.client,d=mx({cttAuthInfo:Yw(e)||void 0},e),c={csn:e,ve:b.getAsJson(),clientData:c},e==="UNDEFINED_CSN"?ux("visualElementStateChanged",d,c):a?Sw("visualElementStateChanged",c,a,d):g.Dt("visualElementStateChanged",c,d))};
zCa=function(a,b,c,d){d=d===void 0?{}:d;a.B.add(d.layer||0);a.D=function(){ACa(a,b,c,d);var h=g.Ww(d.layer);if(h){for(var l=g.x(a.U),m=l.next();!m.done;m=l.next())m=m.value,NL(a,m[0],m[1]||h,d.layer);h=g.x(a.W);for(l=h.next();!l.done;l=h.next())l=l.value,CCa(a,l[0],l[1])}};
c||g.Xw(d.layer)||a.D();if(d.tY)for(var e=g.x(d.tY),f=e.next();!f.done;f=e.next())BCa(a,f.value,d.layer);else g.ex(Error("Delayed screen needs a data promise."))};
ACa=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.Xw(e);e=g.Ww(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.mr("EVENT_ID");f==="UNDEFINED_CSN"&&n&&(m={servletData:{serializedServletEventId:n}});g.Mr("combine_ve_grafts")&&f&&PL(a,f);g.Mr("no_client_ve_attach_unless_shown")&&h&&f&&tx(h,f);try{var p=Bsa(a.client,
b,l,d.pY,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){usa(t,{RH:b,rootVe:e,iqa:c,Tna:f,hqa:l,pY:d.pY});g.ex(t);return}bsa(p,b,d.layer,d.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&e&&!Zra(f)&&Dsa(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.vA({clientScreenNonce:p});JL.instance||(JL.instance=new JL);g.qr(IL().j).bind(IL())();var q=g.Ww(d.layer);f&&f!=="UNDEFINED_CSN"&&q&&(g.Mr("web_mark_root_visible")||g.Mr("music_web_mark_root_visible"))&&
g.zx(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;(r=a.Ba.get(d.layer))==null||r.forEach(function(t,u){t?NL(a,u,t,d.layer):q&&NL(a,u,q,d.layer)});
DCa(a)};
DCa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.ex(d)}}for(b=a.G.length=0;b<a.Z.length;b++){c=a.Z[b];try{c()}catch(d){g.ex(d)}}};
PL=function(a,b){if(b===void 0)for(var c=Xra(),d=0;d<c.length;d++)c[d]!==void 0&&PL(a,c[d]);else a.C.forEach(function(e,f){(f=a.L.get(f))&&g.qx(a.client,b,f,e)}),a.C.clear(),a.L.clear(),a.qa=void 0};
QL=function(){};
ECa=function(){QL.instance||(QL.instance=new QL);return QL.instance};
FCa=function(a,b,c){var d=new XMLHttpRequest;if(c==null?0:c.VB)d.onreadystatechange=function(f){c.VB(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.x(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.x(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
RL=function(){};
GCa=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."))})};
Bt=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};
ICa=function(a,b){RL.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:HCa(c==null?void 0:c.usage),deviceStorageQuotaMbytes:HCa(c==null?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
HCa=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))};
KCa=function(){g.ft();return g.gt(0,192)?g.gt(0,190):!(g.Mr("web_watch_cinematics_disabled_by_default")||g.Mr("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&JCa())};
MCa=function(a,b){LCa(a.program,b.oea)&&(zA("bg_i",void 0,"player_att"),g.SL.initialize(a,function(){zA("bg_l",void 0,"player_att");TL=(0,g.Vt)()},b.cspNonce))};
NCa=function(a){a=a===void 0?{}:a;return g.SL.invoke(a)};
LCa=function(a,b){if(a){var c;g.SL.isLoading()?c=!1:c=!TL||(0,g.Vt)()-TL>b;a=c}else a=!1;return a};
OCa=function(a){a=a.split("");UL.oP(a,1);UL.Wj(a,31);UL.Wj(a,58);UL.kI(a,44);UL.oP(a,2);UL.Wj(a,11);UL.kI(a,39);UL.Wj(a,5);return a.join("")};
g.VL=function(a,b){return a.Ea+"timedtext_video?ref=player&v="+b.videoId};
g.PCa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.SL.isInitialized()){var d="";b.videoData&&b.videoData.Kr&&(d=b.videoData.Kr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);zA("bg_v",void 0,"player_att");(d=NCa(d))?(zA("bg_s",void 0,"player_att"),c.push("r1a="+d)):(zA("bg_e",void 0,"player_att"),c.push("r1c=2"))}else zA("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.SL.getState());
return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^RA())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.mr("CATSTAT",0)))},a);
this.videoData&&this.videoData.Kr?this.Rm=ur(this.videoData.Kr):this.Rm={}};
g.QCa=function(a){if(a.videoData&&a.videoData.Kr){for(var b=[a.videoData.Kr],c=g.x(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.Rm[d]&&a.j[d]&&(d=a.j[d](a.Rm))&&b.push(d);return b.join("&")}return null};
g.WL=function(a,b){MCa(a,{oea:g.KD(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
RCa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3};
XL=function(a){a=a===void 0?2592E3:a;if(a>0&&!(toa()>(0,g.Vt)()-a*1E3))return 0;a=g.$s("yt-player-quality");if(typeof a==="string"){if(a=g.gG[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0};
YL=function(){var a=g.$s("yt-player-proxima-pref");return a==null?null:a};
SCa=function(){var a=g.$s("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};
TCa=function(){var a={values:{},qs:{}};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};
ZL=function(){return g.$s("yt-player-performance-cap")||{}};
$L=function(){var a;return(a=g.$s("yt-player-performance-cap-active-set"))!=null?a:[]};
UCa=function(a){(a===void 0?0:a)?(a=$L().filter(function(b){return b.startsWith("1")}),g.Zs("yt-player-performance-cap-active-set",a,2592E3)):g.Zs("yt-player-performance-cap-active-set",[],2592E3)};
VCa=function(a){g.Zs("yt-player-watch-later-pending",a)};
WCa=function(){return!!g.$s("yt-player-headers-readable")};
XCa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.aM=function(){var a=g.$s("yt-player-caption-language-preferences");return a?a:[]};
bM=function(){var a=g.$s("yt-player-user-settings"),b=new Map;if(a){a=g.x(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.x(c.value);c=d.next().value;d=d.next().value;b.set(c,d)}}return b};
YCa=function(a,b){a.thirdParty||(a.thirdParty={});b.ancestorOrigins&&(a.thirdParty.embeddedPlayerContext=Object.assign({},a.thirdParty.embeddedPlayerContext,{ancestorOrigins:b.ancestorOrigins}))};
aDa=function(a,b){DB(a,2,b.Nr,cM,3);DB(a,3,b.pR,ZCa,3);BB(a,4,b.onesieUstreamerConfig);BB(a,9,b.Fp);DB(a,10,b.VC,dM,3);DB(a,15,b.reloadPlaybackParams,$Ca,3)};
cDa=function(a,b){DB(a,1,b.formatId,eM,3);zB(a,2,b.startTimeMs);zB(a,3,b.durationMs);zB(a,4,b.On);zB(a,5,b.gj);DB(a,9,b.Dna,bDa,3);DB(a,11,b.jqa,fM,1);DB(a,12,b.mT,fM,1)};
dDa=function(a,b){CB(a,1,b.videoId);zB(a,2,b.lmt)};
bDa=function(a,b){if(b.vX)for(var c=0;c<b.vX.length;c++)DB(a,1,b.vX[c],dDa,3)};
eM=function(a,b){zB(a,1,b.itag);zB(a,2,b.lmt);CB(a,3,b.xtags)};
gM=function(a){return{itag:pB(a,1),lmt:pB(a,2),xtags:sB(a,3)}};
fM=function(a,b){zB(a,1,b.hh);zB(a,2,b.kF);zB(a,3,b.ut)};
eDa=function(a){return{hh:pB(a,1),kF:pB(a,2),ut:pB(a,3)}};
fDa=function(a,b){zB(a,1,b.defaultPolicy);zB(a,2,b.smooth);zB(a,3,b.visibility);zB(a,4,b.X8);zB(a,5,b.performance);zB(a,6,b.speed)};
cM=function(a,b){zB(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;c!==void 0&&(yB(a,112),yB(a,c<<1^c>>31));zB(a,16,b.eaa);zB(a,17,b.detailedNetworkType);zB(a,18,b.j8);zB(a,19,b.i8);zB(a,21,b.wfa);zB(a,23,b.U7);zB(a,28,b.wT);zB(a,29,b.Mfa);zB(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(yB(a,285),xB(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}zB(a,36,b.N8);
DB(a,38,b.mediaCapabilities,gDa,3);zB(a,39,b.Lfa);zB(a,40,b.oF);zB(a,44,b.playerState);AB(a,46,b.K8);zB(a,48,b.mz);zB(a,50,b.bx);zB(a,51,b.yz);zB(a,54,b.Uq);AB(a,56,b.Laa);zB(a,57,b.n8);AB(a,58,b.pp);zB(a,59,b.Gj);zB(a,60,b.Ey);AB(a,61,b.isPrefetch);zB(a,62,b.sP);BB(a,63,b.sabrLicenseConstraint);zB(a,64,b.haa);zB(a,66,b.faa);zB(a,67,b.Rpa);zB(a,68,b.yaa);AB(a,71,b.gx);DB(a,72,b.jea,fDa,1)};
gDa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c<b.videoFormatCapabilities.length;c++)DB(a,1,b.videoFormatCapabilities[c],hDa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)DB(a,2,b.audioFormatCapabilities[c],iDa,1);DB(a,4,b.perPlaybackAttributes,jDa,3);zB(a,5,b.hdrModeBitmask)};
hDa=function(a,b){zB(a,1,b.videoCodec);zB(a,3,b.maxHeight);zB(a,4,b.maxWidth);zB(a,11,b.maxFramerate);zB(a,12,b.maxBitrateBps);AB(a,15,b.is10BitSupported)};
iDa=function(a,b){zB(a,1,b.audioCodec);zB(a,2,b.numChannels);zB(a,3,b.maxBitrateBps);zB(a,6,b.spatialCapabilityBitmask)};
jDa=function(a,b){if(b.itagDenylist)for(var c=0;c<b.itagDenylist.length;c++)zB(a,1,b.itagDenylist[c])};
dM=function(a,b){DB(a,1,b.clientInfo,kDa,3);BB(a,2,b.xH);BB(a,3,b.playbackCookie);BB(a,4,b.Fp);if(b.CC)for(var c=0;c<b.CC.length;c++)DB(a,5,b.CC[c],lDa,3);if(b.bD)for(c=0;c<b.bD.length;c++)zB(a,6,b.bD[c]);CB(a,7,b.mfa);DB(a,8,b.hC,mDa,3)};
nDa=function(a,b){zB(a,1,b.Jpa);zB(a,2,b.Spa)};
oDa=function(a,b){var c=b.code;c!==void 0&&(yB(a,8),yB(a,c<<1^c>>31));CB(a,2,b.message)};
pDa=function(a,b){zB(a,1,b.clientState);DB(a,2,b.Tpa,nDa,1)};
mDa=function(a,b){BB(a,1,b.Oda);DB(a,2,b.Nda,oDa,3);DB(a,3,b.coldStartInfo,pDa,3)};
lDa=function(a,b){zB(a,1,b.type);BB(a,2,b.value)};
kDa=function(a,b){CB(a,12,b.deviceMake);CB(a,13,b.deviceModel);zB(a,16,b.clientName);CB(a,17,b.clientVersion);CB(a,18,b.osName);CB(a,19,b.osVersion)};
qDa=function(a,b){CB(a,1,b.name);CB(a,2,b.value)};
rDa=function(a,b){CB(a,1,b.url);if(b.iR)for(var c=0;c<b.iR.length;c++)DB(a,2,b.iR[c],qDa,3);BB(a,3,b.postBody);AB(a,4,b.hea);AB(a,6,b.QC)};
ZCa=function(a,b){BB(a,2,b.DY);BB(a,5,b.encryptedClientKey);BB(a,6,b.iv);BB(a,7,b.TZ);AB(a,10,b.E2);AB(a,13,b.CY);AB(a,14,b.UP);BB(a,16,b.Zfa);AB(a,17,b.d4)};
sDa=function(a){return{q1:pB(a,1),VZ:pB(a,2),body:rB(a,4)}};
$Ca=function(a,b){CB(a,1,b.token)};
tDa=function(a){return{token:sB(a,1)}};
uDa=function(a){return{ir:pB(a,1),pea:pB(a,2)}};
yDa=function(a,b){DB(a,1,b.Nr,cM,3);if(b.Sx)for(var c=0;c<b.Sx.length;c++)DB(a,2,b.Sx[c],eM,3);if(b.Yc)for(c=0;c<b.Yc.length;c++)DB(a,3,b.Yc[c],cDa,3);BB(a,5,b.videoPlaybackUstreamerConfig);if(b.kp)for(c=0;c<b.kp.length;c++)DB(a,6,b.kp[c],vDa,3);if(b.VH)for(c=0;c<b.VH.length;c++)DB(a,16,b.VH[c],eM,3);if(b.XH)for(c=0;c<b.XH.length;c++)DB(a,17,b.XH[c],eM,3);if(b.WH)for(c=0;c<b.WH.length;c++)DB(a,18,b.WH[c],eM,3);DB(a,19,b.VC,dM,3);DB(a,21,b.Kn,wDa,3);zB(a,22,b.uL);zB(a,23,b.rL);if(b.nI)for(c=0;c<b.nI.length;c++)DB(a,
1E3,b.nI[c],xDa,3)};
vDa=function(a,b){DB(a,1,b.formatId,eM,3);zB(a,2,b.jk);zB(a,3,b.sequenceNumber);DB(a,4,b.lK,fM,1);zB(a,5,b.J_);zB(a,6,b.GY)};
wDa=function(a,b){if(b.mJ)for(var c=0;c<b.mJ.length;c++)CB(a,1,b.mJ[c]);BB(a,2,b.BX);CB(a,3,b.Xt);zB(a,4,b.DU);zB(a,5,b.i4);CB(a,6,b.j4)};
xDa=function(a,b){if(b.Sx)for(var c=0;c<b.Sx.length;c++)DB(a,1,b.Sx[c],eM,3);if(b.Yc)for(c=0;c<b.Yc.length;c++)DB(a,2,b.Yc[c],cDa,3);CB(a,3,b.clipId)};
g.hM=function(a,b){DB(a,1,b.Nr,cM,3);BB(a,3,b.videoPlaybackUstreamerConfig);DB(a,5,b.VC,dM,3);DB(a,6,b.Kn,wDa,3)};
BDa=function(a,b){CB(a,1,b.cpn);zB(a,2,b.sequenceNumber);CB(a,3,b.serializedWatchEndpointLoggingContext);if(b.decoderInfo)for(var c=0;c<b.decoderInfo.length;c++)DB(a,6,b.decoderInfo[c],zDa,3);CB(a,9,b.playerResponseCpn);zB(a,10,b.transitionStitchType);zB(a,12,b.timestampOffsetMsecs);zB(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)DB(a,16,b.remoteConnectedDevices[c],ADa,3);BB(a,17,b.serializedHouseBrandPlayerServiceLoggingContext)};
zDa=function(a,b){zB(a,1,b.elapsedTimeMs);CB(a,3,b.videoDecoderName)};
ADa=function(a,b){zB(a,1,b.deviceInterface);CB(a,2,b.deviceVersion);AB(a,3,b.isSleeping)};
CDa=function(a){return{first:pB(a,1),y_:pB(a,2)}};
DDa=function(a){return{bitrate:pB(a,6),width:pB(a,7),height:pB(a,8),fps:pB(a,25),averageBitrate:pB(a,31),audioSampleRate:pB(a,45),audioChannels:pB(a,46)}};
iM=function(a){return{itagDenylist:uB(a,1)}};
FDa=function(a){return{Qpa:vB(a,1,EDa)}};
EDa=function(a){return{conditions:uB(a,1),Vpa:pB(a,2)}};
IDa=function(a){return{Jda:pB(a,1),itag:sB(a,3),G1:tB(a,4,GDa),lmt:pB(a,5),hoa:pB(a,7),xtags:sB(a,15),Gaa:tB(a,23,HDa),AB:tB(a,34,iM)}};
GDa=function(a){return{iv:rB(a,5),U$:qB(a,7)}};
JDa=function(a){return{T7:uB(a,2),videoId:sB(a,3),jV:pB(a,4)}};
HDa=function(a){return{videoId:sB(a,2)}};
KDa=function(a){return{VK:pB(a,3),WK:pB(a,4),mV:pB(a,5),Wda:qB(a,8),tpa:pB(a,10),n0:pB(a,12),o0:pB(a,13),X_:pB(a,14),Y_:pB(a,15),wL:pB(a,16)}};
LDa=function(a){return{targetAudioReadaheadMs:pB(a,1),targetVideoReadaheadMs:pB(a,2),backoffTimeMs:pB(a,4),playbackCookie:rB(a,7),videoId:sB(a,8)}};
MDa=function(a){return{minBandwidthBytesPerSec:pB(a,1),minReadaheadMs:pB(a,2)}};
NDa=function(a){return{startMinReadaheadPolicy:vB(a,1,MDa),resumeMinReadaheadPolicy:vB(a,2,MDa)}};
ODa=function(a){return{label:sB(a,1),text:sB(a,2)}};
PDa=function(a){return{videoId:sB(a,1),formatId:tB(a,2,gM),debugInfo:vB(a,3,ODa)}};
QDa=function(a){return{RY:vB(a,1,PDa)}};
RDa=function(a){return{YR:pB(a,1),OL:pB(a,2),minReadaheadMs:pB(a,3)}};
SDa=function(a){return{K1:pB(a,1),items:vB(a,2,RDa),Iq:pB(a,3)}};
TDa=function(a){return{token:sB(a,1),videoId:sB(a,2)}};
UDa=function(a){return{eq:pB(a,1)}};
VDa=function(a){return{iea:sB(a,1),action:pB(a,2),w2:tB(a,3,UDa)}};
jM=function(a){return{XT:pB(a,1),ZT:pB(a,2),seekSource:pB(a,3)}};
XDa=function(a){return{w3:vB(a,1,WDa),nfa:sB(a,2)}};
YDa=function(a){return{x4:sB(a,1),H1:pB(a,2),raa:pB(a,3),Q_:pB(a,4),R_:pB(a,5),I1:pB(a,6)}};
ZDa=function(a){return{CL:pB(a,1)}};
WDa=function(a){return{clipId:sB(a,1),Ct:tB(a,2,YDa),iS:tB(a,3,ZDa)}};
$Da=function(a){return{type:pB(a,1),scope:pB(a,2),value:rB(a,3),sendByDefault:qB(a,4)}};
aEa=function(a){var b=[];a=g.x(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({W2:d[0],platform:d[1],deviceVersion:d[2],YZ:c}))}return b};
dEa=function(a){return aEa(a).map(function(b){return{deviceInterface:bEa[cEa[b.W2]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.YZ}})};
g.kM=function(a,b){this.id=a;this.qc=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.qc.id.split(".");a.length>1&&(this.G=a[1]==="2")};
lM=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.sb=e===void 0?0:e};
nM=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!mM||a.sb===b.sb)};
g.oM=function(a,b,c,d){return new lM(g.gG[a]||0,g.gG[b]||0,c,d)};
pM=function(a){if(mM&&a.sb)return!1;var b=g.gG.auto;return a.B===b&&a.j===b};
rM=function(a){return qM[a.j||a.B]||"auto"};
eEa=function(a,b){b=g.gG[b];return a.B<=b&&(!a.j||a.j>=b)};
sM=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
tM=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.x(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.qc||a.has(d.qc.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.qc,itag:d.itag,xtag:d.j,lang:((e=d.qc)==null?void 0:e.name)||"",langid:((f=d.qc)==null?void 0:f.id)||""})}else e=new g.kM(d.id,d.qc),a.add(d.qc.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}};
uM=function(){g.O.apply(this,arguments);this.j=null};
iEa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(vM(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.ob]=[a.info]);return n}p=fEa(b,d,l);f&&e({aftsrt:wM(p)});for(var q={},r=g.x(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.x(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=xM(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:wM(n)});for(var H in n)n.hasOwnProperty(H)&&(d=H,n[d]&&n[d][0].Of()&&(n[d]=n[d],n[d]=gEa(b,n[d],l),n[d]=hEa(n[d],l)));f&&e(l);b=g.x(m.values());for(d=b.next();!d.done;d=b.next())(d=c.B.get(d.value))&&--d.o2;f&&e({aftflt:wM(n)});a.j=g.Fg(n,function(K){return!!K.length});
return a.j};
kEa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Fd&&h&&h.length>1&&!(b.Gj>0||b.Z)){for(var m=b.B||!!e,n=m&&b.Ac?f:void 0,p=fEa(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.ob;if(xM(b,C,c,d.isLive)){y=C.Of()?q:r;C=g.x(p[A]);for(var F=C.next();!F.done;F=C.next()){F=F.value;var H=void 0,K=A+"_"+(((H=F.video)==null?void 0:H.fps)||0);t.hasOwnProperty(K)?t[K]===!0&&y.push(F):xM(b,F,c,d.isLive)&&(y.push(F),t[K]=!0)}}else m&&f({opfu:y})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),Yr(new tM(q,r,n))}return jEa(a,b,c,d,e,f,l)};
jEa=function(a,b,c,d,e,f,h){function l(C){return!!q[C]}
var m=b.B||!!e,n=m&&b.Ac?f:void 0,p=new Set,q=iEa(a,b,c,d,f,m,p);yM(d)&&(q=lEa(c,q,e,m,f,b),m&&f({enflt:wM(q)}));b.Kb=mEa(q);if(vM(d))return f=g.Xb(Object.values(q),function(C){return!!C.length&&!!C[0].audio}),a=g.Xb(Object.values(q),function(C){return!!C.length&&!!C[0].video}),f&&a||Xr(),Yr(new tM(a,f,n));
e=nEa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.Pc){e=g.wn(e,l);for(var r=new Set,t=g.x(e),u=t.next();!u.done;u=t.next()){u=g.x(q[u.value]);for(var y=u.next();!y.done;y=u.next())y=y.value,y.qc&&!r.has(y.qc.id)&&(r.add(y.qc.id),a.push(y))}if(a.length===0){if(e.length===0)return m&&f({noaudio:1}),Xr();a=q[e[0]]}}else{a=g.Xb(e,l);if(!a)return m&&f({noaudio:1}),Xr();a=q[a]}q["9"]&&q.h&&d.Yb&&!b.Za&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:wM(q),bfsflta:zM(c)});oEa(c,p);m&&f({bfsfltb:zM(c)});
for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!(h==="f"||b.La===0&&pEa.has(h))))for(p=g.x(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.Gd?qEa(c,h,e):rEa(c,h,e);m&&f({aftsflt:zM(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.Se&&e)A=e,p=[h],f({forceAv1:h});else if(b.Z&&!b.pp)for(p=sEa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
e=g.x(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(C){return C});
else b.Gj>0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(C){return C}));
if(A.length&&!b.pp){AM(A,p);if(m){m=[];b=g.x(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return Yr(new tM(A,a,n))}A=tEa(b);A=g.Xb(A,l);if(!A){if(q[h])return f=q[h],AM(f),Yr(new tM(f,a,n));m&&f({novideo:1});return Xr()}b.kd&&(A==="1"||A==="1h")&&q[c]&&(h=BM(q[A]),p=BM(q[c]),p>h?A=c:p===h&&uEa(q[c])&&(A=c));A==="9"&&q.h&&BM(q.h)>BM(q["9"])&&(A="h");b.Ib&&d.isLive&&A==="("&&q.H&&BM(q["("])<1440&&(A="H");m&&f({vfmly:CM(A)});b=q[A];if(!b.length)return m&&f({novfmly:CM(A)}),
Xr();AM(b);return Yr(new tM(b,a,n))};
mEa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3),d=!(!a.i&&!a.I);return!(!a.m&&!a.M)||b||c||d};
uEa=function(a){a=g.x(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&vEa.has(b.itag))return!0;return!1};
CM=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
wM=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(CM(d));d=g.x(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
lEa=function(a,b,c,d,e,f){var h={},l={};g.Eg(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.le)return l[q]="noenc",!1;if(f.Vb&&p.ob==="(h"&&f.Db)return l[q]="lichdr",!1;if(p.ob==="("||p.ob==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.le[c.flavor]&&!!c.j[r])||(l[q]=p.le[c.flavor]?"unspt":"noflv");return r}if(!DM(a,EM.CRYPTOBLOCKFORMAT)&&!a.Ma||a.Ba)return l[q]=a.Ba?"disvp":"vpsub",!1}return c&&p.le[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.le[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
hEa=function(a,b){var c=Ol(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}));
ks()&&(a=a.filter(function(d){if(d.itag!=="299")return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
gEa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Jc)return!0;c[d.itag]="maxquality";return!1})};
fEa=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.U&&f.video&&f.video.j<a.U)c&&(c[f.itag]="min"+a.U);else{var h=f.ob;d[h]=d[h]||[];d[h].push(f)}}a=g.x(Object.keys(d));for(b=a.next();!b.done;b=a.next())AM(d[b.value]);return d};
BM=function(a){return Ol(a,function(b,c){return Math.max(b,c.video.j)},0)};
xM=function(a,b,c,d,e){e=e===void 0?new Set:e;if(b.ob==="")return"unkn";if((b.itag==="304"||b.itag==="266")&&a.Ea)return"blk2khfr";if(a.L&&b.video&&b.video.j>a.L)return"max"+a.L;if(a.tb&&b.ob==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.ob==="(h"&&!c.L)return"enchdr";if((d===void 0?0:d)&&qG(b)&&!a.Ua)return"blk51live";if((b.ob==="MAC3"||b.ob==="mac3")&&!a.D)return"blkac3";if((b.ob==="MEAC3"||b.ob==="meac3")&&!a.G)return"blkeac3";if((b.ob==="M"||b.ob==="m")&&!a.ra)return"blkaac51";if((b.ob===
"so"||b.ob==="sa")&&!a.Ba)return"blkamb";if(!a.Vb&&b.le&&b.le.fairplay&&(b.ob==="("||b.ob==="(h"||b.ob==="A"||b.ob==="MEAC3"))return"cbc";if((b.ob==="i"||b.ob==="I")&&!a.uc)return"blkiamf";if(b.itag==="774"&&!a.Sb)return"blkouh";var f,h;if(a.ib&&(b.ob==="1"||b.ob==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.ib)return"av1cap";if((d=c.B.get(b.ob))&&d.o2>0)return e.add(b.ob),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Fa&&!DM(c,EM.FRAMERATE))return"capHfr";if(a.rb&&b.video.j>=
4320)return"blk8khfr";if(mG(b)){if(a.Xd&&b.le&&b.video.j>=1440)return"disablevp9hfr";if(a.Te&&g.gs("appletv5")&&b.le)return"atv5sfr"}}if(a.sb&&b.sb>a.sb)return"ratecap";a=wEa(c,b);return a!==!0?a:!0};
AM=function(a,b){b=b===void 0?[]:b;g.lc(a,function(c,d){var e=d.sb-c.sb;if(!c.Of()||!d.Of())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.ob)+1,d=b.indexOf(d.ob)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})};
g.FM=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
HM=function(a){GM(a);return a.C};
IM=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"};
xEa=function(a){GM(a);return g.Hg(a.j,function(b){return b!==null})};
JM=function(a){GM(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]};
KM=function(a,b){b=b===void 0?!1:b;GM(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.qe();c=new g.yk(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.Ak(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.FM(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.Ak(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Ak(c,"www.youtube.com"),d=c.toString()):(c=zwa(d),xE(c)&&(d=c));c=new g.FM(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
GM=function(a){if(a.B){if(!xE(a.B)&&!a.B.startsWith("local"))throw new g.lt("Untrusted URL",a.B);var b=g.Hk(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=yEa(c);Object.assign(a.j,
zEa(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],GM(a),c=a.j[b]||null)&&(c=AEa[0](c),a.set(b,c))}};
BEa=function(a){GM(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(xEa(a)){var c=[];g.Eg(a.j,function(d,e){d!==null&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
yEa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&CEa(c,a[b],a[b+1]);return c};
zEa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");e>0?CEa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b};
CEa=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};
LM=function(a){var b=g.Q(a,DEa)||a.signatureCipher;a={IZ:!1,RE:"",mI:"",s:""};if(!b)return a;b=ur(b);a.IZ=!0;a.RE=b.url;a.mI=b.sp;a.s=b.s;return a};
MM=function(a,b,c,d,e,f,h,l,m){this.Oa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Vg=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Vg=m||null};
g.NM=function(){this.segments=[];this.j=null;this.B=!0;this.C=""};
EEa=function(a,b){if(b>a.qd())a.segments=[];else{var c=Wb(a.segments,function(d){return d.Oa>=b},a);
c>0&&a.segments.splice(0,c)}};
OM=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};
PM=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
QM=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
RM=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
SM=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
TM=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};
UM=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 gB(b)};
FEa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
GEa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
VM=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};
WM=function(a,b,c,d,e,f){this.startSecs=a;this.Xg=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
YM=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.vj=XM(this,"Sequence-Number");this.D=XM(this,"Segment-Count");this.G=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=XM(this,"Ingestion-Walltime-Us")/1E6;this.j=(XM(this,"First-Frame-Time-Us")+XM(this,"First-Frame-Uncertainty-Us"))/1E6;this.lk=XM(this,"Target-Duration-Us")/1E6;this.Ti=this.data["Stream-Finished"]==="T";this.C=this.data.Streamable==="T";this.cryptoPeriodIndex=XM(this,"Crypto-Period-Index");
this.B=XM(this,"Crypto-Period-Seconds")};
IEa=function(a){return a.data["Cuepoint-Type"]?new WM(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",HEa[a.data["Cuepoint-Event"]||""]||"unknown",(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
JEa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
XM=function(a,b){return Number(a.data[b])||0};
ZM=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.KEa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.LEa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
MEa=function(a,b){this.j=a;this.duration=b};
NEa=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)};
$M=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};
OEa=function(a,b){var c=g.aN(a,0,1952868452);a=g.aN(a,0,1953658222);if(c&&a){c.skip(1);var d=PM(c)<<16|QM(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=SM(c);c.data.setUint32(c.offset+d,b>1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=PM(a)<<16|QM(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=SM(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=SM(a),a.data.setUint32(a.offset+f,b>1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
cN=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.aN(a,0,1836476516))?g.bN(a):NaN};
PEa=function(a){var b=g.aN(a,0,1937011556);if(!b)return null;b=dN(a,b.dataOffset+8,1635148593)||dN(a,b.dataOffset+8,1635135537);if(!b)return null;var c=dN(a,b.dataOffset+78,1936995172),d=dN(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),PM(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=dN(a,d.dataOffset,1886547818)){var h=dN(a,d.dataOffset,1886546020),l=dN(a,d.dataOffset,2037673328);if(!l&&(l=dN(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=RM(h)/65536,f=RM(h)/65536,e=RM(h)/65536);a=FEa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new NEa(b,c,f,e,a)}return null};
dN=function(a,b,c){for(;eN(a,b);){var d=fN(a,b);if(d.type===c)return d;b+=d.size}return null};
g.aN=function(a,b,c){for(;eN(a,b);){var d=fN(a,b);if(d.type===c)return d;b=gN(d.type)?b+8:b+d.size}return null};
g.hN=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};
fN=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new OM(a,b,c,d)};
g.bN=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
QEa=function(a){a=new OM(a.data,a.offset,a.size,a.type,a.B);var b=PM(a);a.skip(7);var c=SM(a);if(b===0){b=SM(a);var d=SM(a)}else b=TM(a),d=TM(a);a.skip(2);for(var e=QM(a),f=[],h=[],l=0;l<e;l++){var m=SM(a);f.push(m);h.push(SM(a));a.skip(4)}return{ut:c,M8:b,p9:d,lea:f,LU:h}};
eN=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};
gN=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768};
REa=function(a){a.skip(4);return{Oea:UM(a,0),value:UM(a,0),ut:SM(a),nqa:SM(a),aoa:SM(a),id:SM(a),j0:UM(a),offset:a.offset}};
g.SEa=function(a){var b=dN(a,0,1701671783);if(!b)return null;var c=REa(b),d=c.Oea;c=$M(c.j0);if(a=dN(a,b.offset+b.size,1701671783))if(a=REa(a),a=$M(a.j0),c&&a){b=g.x(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new YM(c,d):null};
iN=function(a,b){for(var c=dN(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=dN(a,c.offset+c.size,b)}};
g.jN=function(a,b){for(var c=0,d=[];eN(a,c);){var e=fN(a,c);e.type===b&&d.push(e);c=gN(e.type)?c+8:c+e.size}return d};
TEa=function(a,b){var c=g.aN(a,0,1937011556),d=g.aN(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.aN(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 GEa(a.byteLength+b);VM(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;VM(d,a,c.offset+16,c.size-16);VM(d,e,e.byteOffset+f.dataOffset+8,b);VM(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.x([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.aN(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.aN(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
UEa=function(a){var b=g.aN(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=dN(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=dN(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=dN(a,b.offset+8,1935894633);if(!b)return null;b=dN(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};
kN=function(a,b){this.j=a;this.pos=0;this.start=b||0};
lN=function(a){return a.pos>=a.j.byteLength};
qN=function(a,b,c){var d=new kN(c);if(!mN(d,a))return!1;d=nN(d);if(!oN(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=pN(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?VEa(d-9,8):VEa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
WEa=function(a){var b=new kN(a);b.To();if(mN(b,[408125543,374648427,174,224]))b=nN(b);else return null;for(var c=a=null;!lN(b);){var d=pN(b,!1);if(d===21432)switch(rN(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else d===30320?c=nN(b):sN(b)}if(!c)return null;for(var e,f=d=b=null;!lN(c);)switch(pN(c,!1)){case 30321:if(rN(c)!==3)return null;break;case 30324:b=tN(c);break;case 30323:f=tN(c);break;case 30325:d=tN(c);break;case 30322:e=pN(c,!0);e=uN(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:sN(c)}return e?new NEa(a,b,f,d,e):null};
nN=function(a){var b=pN(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 kN(c,a.start+a.pos);a.pos+=b;return c};
rN=function(a){for(var b=pN(a,!0),c=vN(a),d=1;d<b;d++)c=c*256+vN(a);return c};
tN=function(a){var b=pN(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};
XEa=function(a){var b=pN(a,!0);return gB(uN(a,b))};
vN=function(a){return a.j.getUint8(a.pos++)};
pN=function(a,b){var c=vN(a);if(c===1){for(b=c=0;b<7;b++)c=c*256+vN(a);return c}for(var d=128,e=0;e<6&&d>c;e++)c=c*256+vN(a),d*=128;return b?c-d:c};
sN=function(a){var b=pN(a,!0);a.pos+=b};
YEa=function(a){if(!oN(a,440786851,!0))return null;var b=a.pos;pN(a,!1);var c=pN(a,!0)+a.pos-b;a.pos=b+c;if(!oN(a,408125543,!1))return null;pN(a,!0);if(!oN(a,357149030,!0))return null;var d=a.pos;pN(a,!1);var e=pN(a,!0)+a.pos-d;a.pos=d+e;if(!oN(a,374648427,!0))return null;var f=a.pos;pN(a,!1);var h=pN(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};
wN=function(a){var b=a.pos;a.pos=0;var c=1E6;mN(a,[408125543,357149030,2807729])&&(c=rN(a));a.pos=b;return c};
ZEa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!xN(a)||!oN(a,160))return a.pos=c,NaN;pN(a,!0);var d=a.pos;if(!oN(a,161))return a.pos=c,NaN;pN(a,!0);vN(a);var e=vN(a)<<8|vN(a);a.pos=d;if(!oN(a,155))return a.pos=c,NaN;d=rN(a);a.pos=c;return(e+d)*b/1E9};
xN=function(a){if(!$Ea(a)||!oN(a,524531317))return!1;pN(a,!0);return!0};
$Ea=function(a){if(a.To()){if(!oN(a,408125543))return!1;pN(a,!0)}return!0};
mN=function(a,b){for(var c=0;c<b.length;c++){if(!oN(a,b[c]))return!1;c!==b.length-1&&pN(a,!0)}return!0};
oN=function(a,b,c){c=c===void 0?!1:c;if(lN(a))return!1;for(var d=a.pos;pN(a,!1)!==b;)if(sN(a),d=a.pos,lN(a))return!1;c&&(a.pos=d);return!0};
VEa=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};
uN=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
yN=function(a){this.base=a;this.j={};this.url=""};
aFa=function(a,b){var c=b.indexOf("?");if(c>0){var d=zEa(b.substring(c+1));g.Eg(d,function(e,f){this.set(f,e)},a);
b=b.substring(0,c)}b=yEa(b);g.Eg(b,function(e,f){this.set(f,e)},a)};
bFa=function(a){var b=a.base.qe(),c=[];g.Eg(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=xEa(a.base)?"&":"?";return b+a+d};
zN=function(a,b){var c=new g.FM(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Eg(a.j,function(d,e){c.set(e,null)});
return c};
cFa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
AN=function(a){a.G=(0,g.Vt)();a.started=0;a.timedOut=0;a.j=0};
dFa=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)};
BN=function(a,b){a[b]||(a[b]=new cFa);return a[b]};
CN=function(a){this.Z=this.U=this.G=this.B=0;this.W=this.L=!1;this.j=a;this.C=a.clone()};
eFa=function(a,b,c){if(IM(a.j))return!1;var d=BN(c,HM(a.j));if(d.timedOut<1&&d.j<1)return!1;d=d.timedOut+d.j;a=DN(a,b);c=BN(c,HM(a));return c.timedOut+c.j+0<d};
EN=function(a,b,c){a=b?DN(a,c):a.j;return new yN(a)};
DN=function(a,b){b=b?b.Un:!1;a.D||(a.D=KM(a.C,b));return a.D};
FN=function(a,b,c){return HM(b?DN(a,c):a.j)};
GN=function(a,b,c,d){b.yk&&(d===void 0?0:d)>1?b=b.yk:(c=BN(c,FN(a,a.qk(b,c),b)),b=Math.max(a.G,c.timedOut)+b.nE*(a.B-a.G)+.25*a.U,b=b>3?1E3*Math.pow(1.6,b-3):0);return b===0?!0:a.Z+b<(0,g.Vt)()};
fFa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
gFa=function(a,b,c,d,e){++a.B;b&&++a.G;HM(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.lE&&delete e[HM(a.j)])};
HN=function(a){return(a.itag||"")+";"+(a.lmt||0)+";"+(a.xtags||"")};
IN=function(a,b,c,d){this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.L=0;this.D=this.B=null;this.info=b;this.resource=new CN(a)};
JN=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
KN=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new JN(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a};
LN=function(a,b){return new JN(a,a+b-1)};
hFa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
MN=function(a){if(!a)return new JN(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new JN(b,a),b.length>0))return b};
NN=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.jk=p;this.clipId=q===void 0?"":q;this.U=[];this.G="";this.Oa=-1;this.W=this.Z=0;this.G=d;this.Oa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.B=l||0;this.C=m>=0?m:this.range?this.range.length:NaN;this.D=this.range?this.B+this.C===this.range.length:n===void 0?!!this.C:n;this.range?(this.gf=this.startTime+this.duration*this.B/this.range.length,this.L=this.duration*this.C/this.range.length,
this.Vf=this.gf+this.L):iFa(this)};
iFa=function(a){a.gf=a.startTime;a.L=a.duration;a.Vf=a.gf+a.L};
jFa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Oa!==a.Oa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.B+b.C===a.B+a.C:d};
ON=function(a){return a.type===1||a.type===2};
PN=function(a){return a.type===3||a.type===6};
QN=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.B+a.C===b.range.start+b.B:a.Oa===b.Oa?a.B+a.C===b.B:a.Oa+1===b.Oa&&b.B===0&&a.D:!1};
lFa=function(a,b){return a.Oa!==b.Oa&&b.Oa!==a.Oa+1||a.type!==b.type?!1:QN(a,b)?!0:Math.abs(a.gf-b.gf)<=1E-6&&a.Oa===b.Oa?!1:kFa(a,b)};
kFa=function(a,b){return QN(a,b)||Math.abs(a.Vf-b.gf)<=1E-6||a.Oa+1===b.Oa&&b.B===0&&a.D?!0:!1};
RN=function(a){return a.Oa+(a.D?1:0)};
mFa=function(a){a.length===1||g.Nl(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new JN(a[0].range.start+a[0].B,b.range.start+b.B+b.C-1)};
nFa=function(a){for(var b=1;b<a.length;b++)if(!QN(a[b-1],a[b]))return!1;return!0};
oFa=function(a){var b=0;a=g.x(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
SN=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Oa);a.range&&(b.range=a.range.start+a.B+"-"+(a.range.start+a.B+a.C-1));b.time=a.gf.toFixed(1)+"-"+(a.gf+a.L).toFixed(1);b.off=String(a.B);b.len=String(a.C);a.D&&(b.end="1");a.Ti()&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
pFa=function(a){return new NN(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Oa,a.startTime,0,a.B,0)};
qFa=function(a){return new NN(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Oa,a.startTime+a.duration,0,a.B+a.C,0)};
rFa=function(a,b,c,d){return new NN(a.type,a.j,a.range,"reslice"+a.G,a.Oa,a.startTime,a.duration,b,c,d,a.jk,a.clipId)};
sFa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.B>=b.range.start+b.B&&a.range.start+a.B+a.C<=b.range.start+b.B+b.C:a.Oa===b.Oa&&a.B>=b.B&&(a.B+a.C<=b.B+b.C||b.D)};
tFa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.yg()?(a=a.j.xC(a),Qm(a,function(c){return tFa(c,b)})):a.Oa===b.Oa&&!!b.C&&b.B+b.C>a.B&&b.B+b.C<=a.B+a.C};
TN=function(a,b){var c=b.Oa;a.G="updateWithSegmentInfo";a.Oa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.Z,a.duration=b.duration,iFa(a)};
UN=function(a,b){var c=this;this.jb=a;this.D=this.j=null;this.G=this.wh=NaN;this.qk=this.requestId=null;this.Qc={epa:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.jb[0].range&&this.jb[0].C>0&&(nFa(a)?(this.range=mFa(a),this.C=this.range.length):(this.range=this.jb[this.jb.length-1].range,this.C=oFa(a)))};
VN=function(a){return!ON(a.jb[a.jb.length-1])};
WN=function(a){return a.jb[a.jb.length-1].type===4};
g.XN=function(a,b,c){c=a.qk===null?a.resource.qk(b,c,a.jb[0].type):a.qk;if(a.j){b=c?KM(a.j,b.Un):a.j;var d=new yN(b);d.get("alr")||d.set("alr","yes");a.B&&aFa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new yN(new g.FM(a.B)):(d=EN(a.resource,c,b),a.B&&aFa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.jb[0].j.Xx()&&a.jb.length===1&&a.jb[0].B&&d.set("range",a.jb[0].B+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.wh)||d.set("headm",a.wh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&
g.Eg(a.urlParams,function(e,f){d.set(f,e)});
return d};
uFa=function(a){if(a.range)return a.C;a=a.jb[0];return Math.round(a.L*a.j.info.sb)};
vFa=function(a,b){return Math.max(0,a.jb[0].gf-b)};
YN=function(a,b,c,d,e,f){f=f===void 0?0:f;IN.call(this,a,b,d,void 0);this.G=c;this.lk=f;this.index=e||new g.NM};
wFa=function(a,b,c,d,e){this.Oa=a;this.startSecs=b;this.Xg=c;this.j=d||NaN;this.B=e||NaN};
ZN=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""};
$N=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null};
xFa=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};
yFa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
aO=function(){this.j=[];this.B=null;this.L=0;this.C=[];this.G=!1;this.U="";this.D=-1};
zFa=function(a){var b=a.C;a.C=[];return b};
AFa=function(){this.D=[];this.j=null;this.B={};this.C={}};
EFa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.x(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=BFa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=CFa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=DFa(a,e));if(f==null)return;f.update(d);g.ec(c,zFa(f))}g.ec(a.D,c);yba(a.D,function(h){return h.startSecs*1E3+h.j})};
FFa=function(a){a.j&&(a.j.j=[]);g.Eg(a.B,function(b){b.j=[]});
g.Eg(a.C,function(b){b.j=[]})};
BFa=function(a){a.j||(a.j=new aO);return a.j};
CFa=function(a,b){a.B[b]||(a.B[b]=new aO);return a.B[b]};
DFa=function(a,b){a.C[b]||(a.C[b]=new aO);return a.C[b]};
cO=function(a){var b=a===void 0?{}:a;a=b.lk===void 0?0:b.lk;var c=b.qo===void 0?!1:b.qo;var d=b.Qr===void 0?0:b.Qr;var e=b.mf===void 0?0:b.mf;var f=b.Di===void 0?Infinity:b.Di;var h=b.IB===void 0?0:b.IB;var l=b.je===void 0?!1:b.je;b=b.HI===void 0?!1:b.HI;g.NM.call(this);this.qn=this.rq=-1;this.nk=a;this.Qr=d;this.qo=c;this.mf=e;this.Di=f;this.IB=h;((this.je=l)||isFinite(f)&&this.Di>0)&&c&&bO&&(this.B=!1,this.C="postLive");this.HI=b};
dO=function(a,b){return kc(a.segments,function(c){return b-c.Oa})};
eO=function(a,b,c){c=c===void 0?{}:c;YN.call(this,a,b,"",void 0,void 0,c.lk||0);this.index=new cO(c)};
fO=function(a,b,c){IN.call(this,a,b);this.G=c;a=this.index=new g.NM;a.B=!1;a.C="d"};
GFa=function(a,b,c){var d=a.index.FK(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.sb*f;return new UN([new NN(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
HFa=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 MM(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
gO=function(a,b){this.info=a;this.j=b;this.B=null;this.D=this.C=-1;this.timestampOffset=0;this.isLocked=this.L=!1;this.G=this.info.j.vB()&&!this.info.B};
IFa=function(a,b){a.j.getLength();b=Math.min(b,a.info.C);var c=a.j.split(b),d=c.xm;c=new gO(new NN(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Oa,a.info.startTime,a.info.duration,a.info.B,b,!1,a.info.jk,a.info.clipId),c.XK);c.D=a.D;c.C=a.C;b=new gO(new NN(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Oa,a.info.startTime,a.info.duration,a.info.B+b,a.info.C-b,a.info.D,a.info.jk,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
hO=function(a,b,c){var d;if(!(d=a.isLocked||b.isLocked||!QN(a.info,b.info)||a.info.D)){if(c=c===void 0?!1:c)c=a.j,d=b.j,c=!(d.cg.length?Zua(c,d.cg[0]):1);d=c}if(d)return null;c=new NN(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Oa,a.info.startTime,a.info.duration,a.info.B,a.info.C,a.info.D,a.info.jk,a.info.clipId);d=b.info;c.C+=d.C;c.range&&(c.L+=d.L);c.Vf=d.Vf;c.D=d.D;d=new ZA;$A(d,a.j);$A(d,b.j);c=new gO(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};
iO=function(a){g.rG(a.info.j.info)||a.info.j.info.Re();if(a.C!==-1)return a.C;if(a.B&&JEa(a.B))return a.C=JEa(a.B),a.C;if(g.rG(a.info.j.info)){var b=a.Pd();for(var c=a.info.j.j,d=NaN,e=NaN,f=0;eN(b,f);){var h=fN(b,f);h.type===1936286840?e=h.data.getUint32(h.dataOffset+8):h.type===1836476516?e=g.bN(h):h.type===1952867444&&isNaN(d)&&(d=g.hN(h));f=gN(h.type)?f+8:f+h.size}!e&&c&&(e=cN(c));b=d/e}else b=new kN(a.Pd()),c=a.G?b:new kN(new DataView(a.info.j.j.buffer)),d=wN(c),c=b.pos,b.pos=0,xN(b)?oN(b,231)?
(d=rN(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.gf;return a.C};
KFa=function(a,b){a.timestampOffset>0&&(b-=a.timestampOffset);var c=iO(a)+b;JFa(a,c);a.timestampOffset=b};
JFa=function(a,b){g.rG(a.info.j.info)||a.info.j.info.Re();a.C=b;if(g.rG(a.info.j.info)){var c=a.Pd();a=a.info.j.j;for(var d=NaN,e=NaN,f=0;eN(c,f);){var h=fN(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.bN(h)));if(h.type===1952867444){!d&&a&&(d=cN(a));var l=g.hN(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=gN(h.type)?f+8:f+h.size}return!0}c=new kN(a.Pd());a=a.G?c:new kN(new DataView(a.info.j.j.buffer));d=wN(a);a=c.pos;c.pos=0;if(xN(c)&&oN(c,231))if(e=pN(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};
kO=function(a,b){b=b===void 0?!1:b;var c=jO(a);a=b?0:a.info.L;return c||a};
jO=function(a){g.rG(a.info.j.info)||a.info.j.info.Re();if(a.B&&a.info.type===6)return a.B.lk;if(g.rG(a.info.j.info)){var b=a.Pd();var c=0;b=g.jN(b,1936286840);b=g.x(b);for(var d=b.next();!d.done;d=b.next())d=QEa(d.value),c+=d.LU[0]/d.ut;c=c||NaN;if(!(c>=0))a:{c=a.Pd();b=a.info.j.j;for(var e=d=0,f=0;eN(c,d);){var h=fN(c,d);if(h.type===1836476516)e=g.bN(h);else if(h.type===1836019558){!e&&b&&(e=cN(b));if(!e){c=NaN;break a}var l=dN(h.data,h.dataOffset,1953653094),m=l;l=e;var n=dN(m.data,m.dataOffset,
1952868452);m=dN(m.data,m.dataOffset,1953658222);var p=RM(n);RM(n);p&2&&RM(n);n=p&8?RM(n):0;var q=RM(m),r=q&1;p=q&4;var t=q&256,u=q&512,y=q&1024;q&=2048;var A=SM(m);r&&RM(m);p&&RM(m);for(var C=r=0;C<A;C++){var F=t?RM(m):n;u&&RM(m);p&&C===0||!y||RM(m);q&&RM(m);r+=F}f+=r/l}d=gN(h.type)?d+8:d+h.size}c=f||NaN}c||g.fx(new g.lt("Missing duration while parsing bmff",a.info.Cc()))}else c=new kN(a.Pd()),a=a.G?c:new kN(new DataView(a.info.j.j.buffer)),c=ZEa(c,wN(a));return c};
LFa=function(a){var b=a.Pd();var c=(c=g.aN(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.aN(b,0,1836476516))?g.bN(b):a?cN(a):NaN);return c};
MFa=function(a){return a.info.j.info.Re()&&a.j.getUint8(0)===160};
NFa=function(a){if(!a.B){g.rG(a.info.j.info)||a.info.j.info.Re();if(g.rG(a.info.j.info))var b=g.SEa(a.Pd());else{b=new kN(a.Pd());var c=b.pos;b.pos=0;var d=null,e=null;if(mN(b,[408125543,307544935]))for(var f=b.pos+pN(b,!0);b.pos<f;)if(pN(b,!1)!==29555)sN(b);else for(var h=b.pos+pN(b,!0);b.pos<h;)if(pN(b,!1)!==26568)sN(b);else for(var l=b.pos+pN(b,!0);b.pos<l;){var m=pN(b,!1);if(m===17543){if(m=XEa(b),m=$M(m))if(e)for(var n=g.x(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=XEa(b),d||(d=m)):sN(b)}b.pos=c;b=e?new YM(e,d):null}a.B=b}};
OFa=function(a){if(g.rG(a.info.j.info))iN(a.Pd(),1836019574),iN(a.Pd(),1718909296);else{var b=new kN(a.Pd());$Ea(b);oN(b,524531317,!0);a.j=a.j.split(b.start+b.pos).xm}a.G=!1};
lO=function(a){if(!a.L){if(g.rG(a.info.j.info)){var b=a.Pd();var c=dN(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=YEa(new kN(a.Pd()));b&&(a.info.j.j=b,a.L=!0)}};
g.mO=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.hh=new Float64Array(128)};
PFa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
nO=function(a){a.offsets.length<a.count+1&&a.resize(a.offsets.length*2)};
oO=function(a,b,c,d){IN.call(this,a,b,c,d);var e=this;this.G=null;this.Qc={TF:function(f,h,l,m){return e.TF(f,h,l,m)}};
this.index=new g.mO};
QFa=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};
SFa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return RFa[a];return null};
g.pO=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
TFa=function(a){return qO(function(b,c){return g.Vr(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.UFa=function(a){var b;a.responseType&&a.responseType!=="text"?a.responseType==="arraybuffer"&&(b=gB(new Uint8Array(a.response))):b=a.responseText;return!b||b.length>2048?"":b.indexOf("https://")===0?b:""};
qO=function(a,b,c){b.match(VFa);return a(b,c).then(function(d){var e=g.UFa(d.xhr);return e?qO(a,e,c):d.xhr})};
uO=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.Fx.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Za=this.duration=0;this.isPremiere=this.je=this.D=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Di=this.mf=0;this.isOtf=this.Yb=!1;this.Va=(0,g.Vt)();this.qa=Infinity;this.j={};this.C=new Map;this.state=this.Fg=0;this.timeline=null;this.isManifestless=!1;this.Ba=[];this.L=null;this.Ea=0;this.G="";this.Fa=NaN;this.La=this.Sb=this.timestampOffset=this.U=
0;this.yk=this.Bq=NaN;this.Ac=0;this.Ua=this.Z=!1;this.Ma=[];this.Pa={};this.ra=NaN;this.Qc={Bna:function(l){rO(d,l)}};
var e;this.eb=(e=b)==null?void 0:e.fb("html5_use_network_error_code_enums");WFa=!!b&&b.fb("html5_modern_vp9_mime_type");var f;sO=!((f=b)==null||!f.fb("html5_enable_flush_during_seek"))&&g.is();var h;tO=!((h=b)==null||!h.fb("html5_enable_reset_audio_decoder"))&&g.is()};
XFa=function(a){return g.Hg(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})};
sEa=function(a){return g.Hg(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
yM=function(a){return g.Hg(a.j,function(b){return!!b.info.le})};
YFa=function(a){return g.Hg(a.j,function(b){return wG(b.info.mimeType)})};
ZFa=function(a){return g.Hg(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})};
$Fa=function(a){return g.Hg(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
aGa=function(a){return g.Hg(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})};
bGa=function(a){return g.Hg(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})};
cGa=function(a){return vea(a.j,function(b){return b.info.video?b.qT():!0})};
vM=function(a){return g.Hg(a.j,function(b){return IM(b.resource.j)})};
rO=function(a,b){a.j[b.info.id]=b;a.C.set(HN(tG(b.info,a.Yb)),b)};
dGa=function(a,b){return HN({itag:b.itag,lmt:a.Yb?0:b.lmt||0,xtags:b.xtags})};
xO=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(vG(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=eGa[a.stereoLayout]);var r=SFa(a)||void 0;if(n==null?0:n.primaries)var t=nHa[n.primaries]||void 0;h=new hG(h,e,l,p,q,void 0,m,r,t);d=vO(d,h,kG[a.itag||""]);sO&&(d+="; enableflushduringseek=true");tO&&(d+="; enableresetaudiodecoder=true")}var u;if(uG(d)){var y=
a.audioSampleRate;q=a.audioTrack;y=new eG(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.pO(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 QFa(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.x(m);for(n=m.next();!n.done;n=m.next())(n=wO[n.value])&&(C[n]=b[n])}return new lG(f,d,{audio:y,video:h,qc:u,le:C,sb:q,Xw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
yO=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(vG(d)){var h=(a.size||"640x360").split("x");h=new hG(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=vO(d,h,kG[a.itag]);sO&&(d+="; enableflushduringseek=true");tO&&(d+="; enableresetaudiodecoder=true")}var l;if(uG(d)){var m=new eG(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.pO(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 QFa(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.x(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new lG(e,d,{audio:m,video:h,qc:l,le:r,sb:f,Xw:c,contentLength:p,lastModified:q,captionTrack:n,
streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
EIa=function(a){return Qm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
FIa=function(a){return Qm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
JIa=function(a,b){return a.timeline?fc(a.timeline.D,b):a.Ba.length?fc(a.Ba,b):[]};
zO=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.FM(a,!0);a.set("alr","yes");c&&(c=OCa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
mJa=function(a,b){var c=ZN(b,"id");c=c.replace(":",";");var d=ZN(b,"mimeType"),e=ZN(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(ZN(b,"bandwidth"))/8;var f=Number($N(b,"BaseURL").getAttribute(a.G+":contentLength")),h=a.duration&&f?f/a.duration:0;if(vG(d)){var l=Number(ZN(b,"width"));var m=Number(ZN(b,"height")),n=Number(ZN(b,"frameRate")),p=jJa(ZN(b,a.G+":projectionType"));a:switch(ZN(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 hG(l,m,n,p,q)}if(uG(d)){var r=Number(ZN(b,"audioSamplingRate"));var t=Number(ZN(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=kJa(ZN(b,a.G+":spatialAudioType"));r=new eG(r,t,m);a:{t=ZN(b,"lang")||"und";if(m=$N(b,"Role"))if(p=ZN(m,"value")||"",g.Lg(lJa,p)){m=t+"."+lJa[p];n=p==="main";a=ZN(b,a.G+":langName")||t+" - "+p;t=new g.pO(a,m,n);break a}t=void 0}}if(b=$N(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 lG(c,d,{audio:r,video:l,qc:t,le:u,sb:e,Xw:h,contentLength:f})};
jJa=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"}};
kJa=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"}};
oJa=function(a,b){b=b===void 0?"":b;a.state=1;a.Va=(0,g.Vt)();return TFa(b||a.sourceUrl).then(function(c){if(!a.Ja()){a.Fg=c.status;c=c.responseText;var d=new DOMParser;c=hg(d,gna(c),"text/xml").getElementsByTagName("MPD")[0];a.qa=xFa(ZN(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.x(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.qa<Infinity&&a.isLivePlayback;a.Za=
Number(ZN(c,a.G+":earliestMediaSequence"))||0;if(d=Date.parse(yFa(ZN(c,a.G+":mpdResponseTime"))))a.Ea=((0,g.Vt)()-d)/1E3;a.isLive&&c.getElementsByTagName("SegmentTimeline").length<=0||g.Nl(c.getElementsByTagName("Period"),a.Gda,a);a.state=2;a.publish("loaded");nJa(a)}return a}).wl(function(c){if(c instanceof Tr){var d=c.xhr;
a.Fg=d.status}a.state=3;a.publish("loaderror");return Ei(d)})};
pJa=function(a,b,c){return oJa(new uO(a,b,c),a)};
AO=function(a){return a.isLive&&(0,g.Vt)()-a.Va>=a.qa};
qJa=function(a){a.L&&a.L.stop()};
nJa=function(a){var b=a.qa;isFinite(b)&&(AO(a)?a.refresh():(b=Math.max(0,a.Va+b-(0,g.Vt)()),a.L||(a.L=new g.qp(a.refresh,b,a),g.P(a,a.L)),a.L.start(b)))};
rJa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.qd()+1}return 0};
BO=function(a){return a.Sb?a.Sb-(a.U||a.timestampOffset):0};
CO=function(a){return a.La?a.La-(a.U||a.timestampOffset):0};
DO=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()&&!wG(b[c].info.mimeType)){b=0;for(c=d.Io();c<=d.qd();c++)b+=d.getDuration(c);b/=d.UA();b=Math.round(b/.5)*.5;d.UA()>10&&(a.Fa=b);return b}if(a.isLive&&(d=b[c],d.lk))return d.lk}return NaN};
sJa=function(a,b){a=xea(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.wi(b);return a.getStartTime(c)===b?b:c<a.qd()?a.getStartTime(c+1):NaN};
tJa=function(a,b){if(!a.j["0"]){var c=new lG("0","fakesb",{video:new hG(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new YN(new g.FM("http://www.youtube.com/videoplayback"),c,"fake"):new oO(new g.FM("http://www.youtube.com/videoplayback"),c,new JN(0,0),new JN(0,0))}};
EO=function(a){if(a.isManifestless)for(var b in a.j)a.j[b].index.segments=[]};
FO=function(a,b,c){for(var d in a.j){var e=wG(a.j[d].info.mimeType)||a.j[d].info.Of();if(c===e&&(e=a.j[d].index)!=null){var f=dO(e,b);f>=0&&e.segments.splice(f,1)}}};
uJa=function(a){for(var b in a.j)wG(a.j[b].info.mimeType)||EEa(a.j[b].index,Infinity)};
GO=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.qo&&(f&&(e.rq=Math.max(e.rq,f)),h&&(e.qn=Math.max(e.qn||0,h)))}c&&(a.ra=c/1E3)};
vJa=function(a){a.La=0;a.Sb=0;a.Ac=0};
HO=function(a){return a.Ua&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
vO=function(a,b,c){IO===null&&(IO=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(WFa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return IO||c!=="9"&&c!=="("?IO||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!IO&&!JO||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(".")+'"'};
LO=function(a,b,c){a=""+a+(b>49?"p60":b>32?"p48":"");b=ZL()[a];if(b!=null&&b>0)return b;b=KO.get(a);if(b!=null&&b>0)return b;c=c==null?void 0:c.get(a);return c!=null&&c>0?c:8192};
wJa=function(a){this.Ca=a;this.Dd=this.pp=this.Va=this.G=this.D=this.ra=this.Pa=this.eb=this.Ba=!1;this.He=this.Ca.N("html5_disable_aac_preference");this.U=this.L=0;this.tb=!1;this.Ea=!0;this.rb=!1;this.Gj=0;this.Fa=!1;this.Jc=Infinity;this.qJ=!1;this.kd=!0;this.Za=this.Ua=!1;this.j={};this.Ib=this.B=this.Z=!1;this.La=0;this.Pc=this.disableAv1=this.Db=this.Kb=!1;this.Ac=this.Ca.Xb();this.Vb=this.Ca.experiments.fb("html5_enable_vp9_fairplay");this.Se=this.Ca.N("html5_force_av1_for_testing");this.ib=
g.KD(this.Ca.experiments,"html5_av1_ordinal_cap");this.Xd=this.Ca.N("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Fd=this.Ca.N("html5_account_onesie_format_selection_during_format_filter");this.sb=g.KD(this.Ca.experiments,"html5_max_byterate");this.W=this.Ca.N("html5_prefer_high_aac_by_default");this.Ma=this.Ca.N("html5_sunset_aac_high_codec_family");this.Sb=this.Ca.N("html5_sunset_aac_high_codec_family");this.uc=this.Ca.N("html5_enable_iamf_audio");this.Gd=this.Ca.experiments.fb("html5_allow_capability_merge");
this.Te=this.Ca.N("html5_prefer_vp9_sfr")};
tEa=function(a){if(a.eb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Fa&&(b.unshift("1"),b.unshift("1h"));a.pp&&b.unshift("h");a.qa&&(b=(xJa[a.qa]||[a.qa]).concat(b));return b};
nEa=function(a){var b=["o","a","A"];a.W&&!a.Ma&&b.unshift("ah");a.La===1&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)),a.uc&&(b=["i","I"].concat(b)));a.Ba&&(b=["so","sa"].concat(b));!a.Dd||a.Va||a.C||a.He||b.unshift("a");a.W||!a.Pa||a.Ma||b.unshift("ah");a.C&&(b=(xJa[a.C]||[a.C]).concat(b));return b};
MO=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(DM(a.G,EM.AV1_CODECS)&&DM(a.G,EM.HEIGHT)&&DM(a.G,EM.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=XCa();if(e)return b.localPref=e}catch(l){}d=1080;e=navigator.hardwareConcurrency;e<=2&&(d=480);b.coreCount=e;if(e=g.KD(a.experiments,"html5_default_av1_threshold"))d=b["default"]=e;!a.N("html5_disable_av1_arm_check")&&Qna()&&(b.isArm=1,d=240);if(a=a.G.ra)b.mcap=a,d=Math.max(d,a);if(c){var f,h;if(a=(f=c.videoInfos.find(function(l){return oG(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(LO("1",c.fps),LO("1",30));b.perfCap=f;d=Math.min(d,f);c.isHdr()&&!a&&(b.hdr=1,d*=.75)}else c=LO("1",30),b.perfCap30=c,d=Math.min(d,c),c=LO("1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
NO=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Za=this.keySystemAccess=null;this.Pw=this.Qw=-1;this.Im=null;this.C=!!d&&d.fb("edge_nonprefixed_eme");d&&d.fb("html5_enable_vp9_fairplay")};
PO=function(a){return a.C?!1:!a.keySystemAccess&&!!OO()&&a.keySystem==="com.microsoft.playready"};
QO=function(a){return a.keySystem==="com.microsoft.playready"};
RO=function(a){return!a.keySystemAccess&&!!OO()&&a.keySystem==="com.apple.fps.1_0"};
SO=function(a){return a.keySystem==="com.youtube.fairplay"};
TO=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"};
g.UO=function(a){return a.flavor==="fairplay"};
OO=function(){var a=window,b=a.MSMediaKeys;ls()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
WO=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.$F&&!g.is())return Rp("45");if(g.ou||g.Gp)return a.fb("edge_nonprefixed_eme");if(g.VO)return Rp("47");if(g.Nt){if(a.fb("html5_enable_safari_fairplay"))return!1;if(a=g.KD(a,"html5_safari_desktop_eme_min_version"))return Rp(a)}return!0};
yJa=function(a,b,c,d){var e=js(),f=(c=e||c&&ls())?["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.z(f),g.z(XO.playready)):[].concat(g.z(XO.playready),g.z(f))};
ZO=function(){this.B=this.xo=0;this.j=Array.from({length:YO.length}).fill(0)};
zJa=function(){};
AJa=function(){this.startTimeMs=(0,g.Vt)();this.j=!1};
BJa=function(){this.j=new zJa};
CJa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new ZO),a.j[b].Lg(c,d))};
DJa=function(a,b,c,d,e){var f=(0,g.Vt)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.xo)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;CJa(a,l,f-d,e)}return b};
$O=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return DJa(a,h,c,d,e)};
if(wL(b))return b.then(f);if(EJa(b))return BL(b,f)}return DJa(a,b,c,d,e)};
FJa=function(){};
aP=function(a,b,c,d,e){d=d===void 0?!1:d;g.O.call(this);this.Ca=b;this.useCobaltWidevine=d;this.oa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
HJa=function(a,b){a.callback=b;a.D=[];WO(a.Ca.experiments)?bP(a):GJa(a)};
bP=function(a){if(!a.Ja())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=IJa(a,c);if(cP&&cP.keySystem===b&&cP.Cea===JSON.stringify(d))a.oa("remksa",{re:!0}),JJa(a,c,cP.keySystemAccess);else{var e,f;a.oa("remksa",{re:!1,ok:(f=(e=cP)==null?void 0:e.keySystem)!=null?f:""});cP=void 0;(dP.isActive()?dP.Tq("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(GL(function(h){JJa(a,c,h,d)}),GL(function(){a.G=!a.G&&a.C[a.B[0]].flavor===
"widevine";
a.G||a.B.shift();bP(a)}))}}};
JJa=function(a,b,c,d){if(!a.Ja()){d&&(cP={keySystem:b.keySystem,keySystemAccess:c,Cea:JSON.stringify(d)});b.keySystemAccess=c;if(QO(b)){c=YF();d=g.x(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.x(c.audioCapabilities),e=d.next();!e.done;e=d.next())KJa(a,b,e.value);if(c.videoCapabilities)for(c=g.x(c.videoCapabilities),d=c.next();!d.done;d=c.next())KJa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.N("html5_enable_vp9_fairplay")&&TO(b)?(a.B.shift(),bP(a)):a.callback(a.D)}};
KJa=function(a,b,c){a.N("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
IJa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.N("html5_enable_vp9_fairplay")&&SO(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];QO(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.x(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.$F&&g.gs("windows nt")&&!a.N("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.N("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),eP(a.Ca)==="MWEB"&&(rs()||hs())&&(a.oa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
GJa=function(a){if(OO()&&(g.Nt||ns&&a.N("html5_drm_support_ios_mweb")))a.D.push(new NO("fairplay","com.apple.fps.1_0","",a.Ca.experiments));else{var b=LJa(),c=g.Xb(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)};
LJa=function(){var a=OO();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=YF();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
MJa=function(a){this.experiments=a;this.B=0;this.qa=(this.G=this.N("html5_streaming_resilience"))?.5:.25;this.Z=g.KD(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.U=(this.C=this.experiments.fb("html5_consider_end_stall"))&&fP;this.j=this.experiments.fb("html5_measure_max_progress_handling");this.L=this.N("html5_treat_requests_pre_elbow_as_metadata");this.D=this.N("html5_media_time_weight");this.W=g.KD(this.experiments,"html5_streaming_fallback_byterate")};
NJa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=sr(b||"","&");a={};b=g.x(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.KD=function(a,b){a=a.flags[b];JSON.stringify(a);return Number(a)||0};
gP=function(a,b){return(a=a.flags[b])?a.toString():""};
OJa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
PJa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.z(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};
RJa=function(a){return QJa.then(a)};
hP=function(a,b,c){this.experiments=a;this.Fa=b;this.Ma=c===void 0?!1:c;this.qa=!!g.Pa("cast.receiver.platform.canDisplayType");this.W={};this.U=!1;this.B=new Map;this.L=!0;this.C=this.D=!1;this.j=new Map;this.ra=0;this.Ba=this.experiments.fb("html5_disable_vp9_encrypted");a=g.Pa("cast.receiver.platform.getValue");this.Ea=g.KD(this.experiments,"html5_kaios_max_resolution");this.G=!this.qa&&a&&a("max-video-resolution-vpx")||null;SJa(this)};
wEa=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.Re()&&js()&&a.experiments.fb("html5_appletv_disable_vp9"))return"dwebm";if(oG(b)&&a.U)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(DM(a,EM.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.$F?Rp(53):g.VO&&Rp(64)))return"dopus";
var f;if(a.Ea&&iP&&((f=b.video)==null?void 0:f.j)>a.Ea)return"kaios";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[EM.WIDTH.name]=b.video.width),b.video.height&&(c[EM.HEIGHT.name]=b.video.height),b.video.fps&&(c[EM.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[EM.EOTF.name]=b.video.B),b.sb&&(c[EM.BITRATE.name]=b.sb*8*f),b.ob==="("&&(c[EM.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType==="EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType===
"MESH")&&(c[EM.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[EM.CHANNELS.name]=b.audio.numChannels);a.D&&mG(b)&&(c[EM.EXPERIMENTAL.name]="allowed");f=g.x(Object.keys(EM));for(var h=f.next();!h.done;h=f.next()){h=EM[h.value];var l;if(l=c[h.name])if(l=!(h===EM.EOTF&&b.mimeType.indexOf("vp09.02")>0)){l=h;var m=b;l=!(a.experiments.fb("html5_ignore_h264_framerate_cap")&&l===EM.FRAMERATE&&Kxa(m))}if(l)if(DM(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];
else if(nG(b)&&h===EM.EOTF)return"dvp92"}a.qa&&b.video&&b.video.j>1080&&b.le&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.fb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
jP=function(){var a=hs()&&!Rp(29),b=g.gs("google tv")&&g.gs("chrome")&&!Rp(30);return a||b?!1:Pxa()};
TJa=function(a,b,c){var d=480;b=g.x(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&wEa(a,e,c)===!0&&(d=f)}return d};
g.kP=function(a,b){b=b===void 0?!1:b;return jP()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(YF(),"application/x-mpegURL")?!0:!1};
VJa=function(a){UJa(function(){for(var b=g.x(Object.keys(EM)),c=b.next();!c.done;c=b.next())DM(a,EM[c.value])})};
DM=function(a,b){b.name in a.W||(a.W[b.name]=WJa(a,b));return a.W[b.name]};
WJa=function(a,b){if(a.G)return!!a.G[b.name];if(b===EM.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===EM.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Ro);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.Ro)};
XJa=function(a){a.D||(a.D=!0,lP(a))};
lP=function(a){a.C=!0;a.experiments.fb("html5_ssap_update_capabilities_on_change")&&YJa(a)};
ZJa=function(a,b){var c=0;a.B.has(b)&&(c=a.B.get(b).m9);a.B.set(b,{m9:c+1,o2:Math.pow(2,c+1)});lP(a)};
zM=function(a){for(var b=[],c=g.x(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(".")};
YJa=function(a){a.Z=[];for(var b=g.x(a.j.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.ob;a.experiments.fb("html5_ssap_force_mp4_aac")&&d!=="a"&&d!=="h"||a.B.has(d)||(!a.U||d!=="1"&&d!=="1h")&&a.Z.push(c)}};
oEa=function(a,b){for(var c=new Map,d=g.x(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};
qEa=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,ob:b,Kf: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;DM(a,EM.BITRATE)&&(h.maxBitrateBps=c.sb*8);h.lG=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,ob:b,Kf:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,lG:c.lG},DM(a,EM.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
rEa=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,ob:b,Kf: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,DM(a,EM.BITRATE)&&(b.maxBitrateBps=c.sb*
8),b.lG=f==null?void 0:f.isHdr()),a.j.set(d,b))};
SJa=function(a){var b;(b=navigator.mediaCapabilities)!=null&&b.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(c){c.smooth&&c.powerEfficient&&(a.ra=2160)})};
mP=function(){g.Fx.call(this);this.items={}};
nP=function(){g.UB.apply(this,arguments)};
oP=function(){g.VB.apply(this,arguments)};
$Ja=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)};
aKa=function(a){a.B||(a.B=new nP(a.j));return a.B};
pP=function(a){try{return wc(a)}catch(b){return null}};
bKa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?pP(b.clientKey):null;var c=b.encryptedClientKey?pP(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.Vt)():null;a&&c&&d&&(this.j=new $Ja(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=pP(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
rP=function(){this.data=new Uint8Array(2048);this.pos=0;qP||(qP=lB("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))};
sP=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
tP=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.Um=!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=cKa(this);this.D=c;this.L=d};
cKa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
uP=function(a,b,c){g.O.call(this);this.policy=a;this.Z=b;this.Ld=c;this.Ba=this.Va=0;this.ra=-1;this.Ea=this.D=0;this.qa=!1;this.interruptions=[];this.B=[{stamp:0,net:0,max:0}];this.La=this.G=(0,g.Vt)();this.U=new tP(4,1,.6,.4);this.Fa=new tP(4,1,.6,.4);this.L=new tP(20,1,.5,.4);this.C=a.j?new sP(a.B):new tP(a.B,20,.5,.4);this.Ma=new tP(5,1,.25);this.W=new tP(30,1,.5);a=g.$s("yt-player-bandwidth")||{};b=this.policy.C;if(a.byterate>0)b=a.byterate,this.qa=!0;else{var d;c=(((d=navigator.connection)==
null?void 0:d.downlink)||0)*64*1024;c>0&&(b=c,this.qa=!0)}this.C.Ej(this.policy.L,b);a.delay>0&&this.U.Ej(1,Math.min(a.delay,2));a.stall>0&&this.L.Ej(1,a.stall);a.init>0&&(this.La=Math.min(a.init,this.La));a.interruptions&&(this.B=this.B.concat(a.interruptions),this.B.length>16&&this.B.pop());this.ra=(0,g.Vt)();this.policy.U>0&&(this.Pa=new g.qp(this.Ua,this.policy.U,this),g.P(this,this.Pa),this.Pa.start())};
vP=function(a,b,c,d){a.C.Ej(d===void 0?b:d,c/b);a.G=(0,g.Vt)()};
dKa=function(a){a.D||(a.D=(0,g.Vt)());a.policy.Z&&(a.G=(0,g.Vt)())};
eKa=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.Ea+=c}a.D=b};
wP=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Ma.Ej(b,c/b);a.G=(0,g.Vt)();e||a.W.Ej(1,b-d);f||(a.D=0);a.ra>-1&&(0,g.Vt)()-a.ra>3E4&&fKa(a)};
xP=function(a,b,c){b=Math.max(b,2048);a.L.Ej(1,c/b)};
yP=function(a){a=a.U.rh()+a.Fa.rh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)};
zP=function(a,b,c){isNaN(c)||(a.Ba+=c);isNaN(b)||(a.Va+=b)};
AP=function(a){a=a.C.rh();return a>0?a:1};
BP=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=AP(a);d=1/((a.L.rh()||0)*a.policy.qa+1/d);var e=a.Ma.rh();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+yP(a);c=f*Math.min(1,c/(f*b));a.policy.D||(a=((a.W.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
gKa=function(a){var b={delay:yP(a),stall:a.L.rh()||0,byterate:AP(a),init:a.La},c=a.B[0];c.stamp=Math.round(a.G/36E5)*36E5;c.net=Math.ceil(a.Ea);c.max=a.interruptions[0]||0;b.interruptions=a.B;return b};
fKa=function(a){g.Zs("yt-player-bandwidth",gKa(a),2592E3);a.ra=(0,g.Vt)();a.qa=!0};
CP=function(a){return(0,g.Vt)()-a.G>=4E3};
hKa=function(a){this.experiments=a;this.B=17;this.C=13E4;this.L=.5;this.D=this.j=!1;this.G=g.KD(this.experiments,"html5_auxiliary_estimate_weight");this.qa=g.KD(this.experiments,"html5_stall_factor")||1;this.U=g.KD(this.experiments,"html5_check_for_idle_network_interval_ms");this.W=this.experiments.fb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.fb("html5_sabr_fetch_on_idle_network_preloaded_players")};
jKa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.O.call(this);var c=this;this.values=a;this.qs=b;this.B={};this.C=this.j=0;this.D=new g.qp(function(){iKa(c)},1E4);
g.P(this,this.D)};
DP=function(a,b){kKa(a,b);return a.values[b]&&a.qs[b]?a.values[b]/Math.pow(2,a.j/a.qs[b]):0};
kKa=function(a,b){a.values[b]||(b=TCa(),a.values=b.values||{},a.qs=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
iKa=function(a){var b=TCa();if(b.values){b=b.values;for(var c={},d=g.x(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]=DP(a,e);a.B=c}b=a.qs;c={};c.values=a.B;c.halfLives=b;g.Zs("yt-player-memory",c,2592E3)};
VP=function(a,b,c,d,e){g.O.call(this);this.webPlayerContextConfig=b;this.Dm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.dk=this.Ib=this.ib=this.Mj=this.userDisplayName=this.userDisplayImage=this.bj="";this.j={};this.Vb={};this.controlsType="0";this.Dd=NaN;this.tb=!1;this.Yf=(0,g.Vt)();this.Sb=0;this.Hm=this.Kp=!1;this.Xn=!0;this.preferGapless=this.Gl=this.Xf=this.C=this.Cm=this.zf=!1;this.Rg=[];this.Tn=!0;this.Zf=!1;a=a?g.Rg(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 NJa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:ys("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:ys("",a.csp_nonce);this.N("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(W){f=""}this.Te=f;this.ancestorOrigins=
(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=vs(!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=gP(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Vb.cchip=d.chipset),d.cobaltAppVersion&&(this.Vb.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Vb.cfrmver=
d.firmwareVersion),d.deviceYear&&(this.Vb.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||lKa(this)&&b.loaderUrl?b.loaderUrl||"":this.Te:this.D||lKa(this)&&a.loaderUrl?ys("",a.loaderUrl):this.Te;this.D&&g.Oa("yt.embedded_player.embed_url",this.loaderUrl);this.U=vE(this.loaderUrl,mKa);d=this.loaderUrl;var h=h===void 0?!1:h;this.Cq=uE(vE(d,nKa),d,h,"Trusted Ad Domain URL");this.Jc=vs(!1,a.privembed);this.protocol=this.Te.indexOf("http:")===
0?"http":"https";this.Ea=wE((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||wE(this.Te)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.U?d=ws(d,h,oKa):h&&(d="embedded");this.Ma=d;ara();h=null;d=b?b.playerStyle:a.ps;f=g.Zb(pKa,d);!d||f&&!this.U||(h=d);this.playerStyle=h;this.L=g.Zb(pKa,this.playerStyle);this.houseBrandUserStatus=b==null?void 0:b.houseBrandUserStatus;this.ra=this.L&&this.playerStyle!=="play"&&
this.playerStyle!=="jamboard";this.Bq=!this.ra;this.Pa=vs(!1,a.disableplaybackui);this.disablePaidContentOverlay=vs(!1,b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=vs(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(YF().defaultPlaybackRate?EP||g.qs||iP?g.VO&&Rp("20")||g.$F&&Rp("4")||g.FP&&Rp("11")||ms():!(g.FP&&!g.gs("chrome")||EP||g.gs("android")||g.gs("silk")):!1);this.Mp=vs(!1,a.enable_faster_speeds);this.B=vs(this.playerStyle===
"blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Ua=ps()||rs();this.qq=this.N("mweb_allow_background_playback")?!1:this.B&&!this.L;this.Va=cG();this.rr=g.GP;var l;this.Im=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.Np=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.Pp=this.N("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.Vn=g.HP(this)&&!this.Im||
vs(!IP(this)&&!JP(this)&&!this.L,n);this.Jm=b?!!b.mobileIphoneSupportsInlinePlayback:vs(!1,a.playsinline);l=this.B&&KP&&LP!=null&&LP>0&&LP<=2.3;m=b?b.useNativeControls:a.use_native_controls;this.W=g.HP(this)&&this.B;n=this.B&&!this.W;m=g.MP(this)||!l&&vs(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.yk=this.B;this.color=ws("red",b?b.progressBarColor:a.color,qKa);this.Oq=this.controlsType===
"3";this.Ac=!this.D;this.Wn=(m=!this.Ac&&!JP(this)&&!this.ra&&!this.L&&!IP(this))&&!this.Oq&&this.controlsType==="1";this.Gd=g.NP(this)&&m&&this.controlsType==="0"&&!this.Wn&&!(b==null?0:b.embedsEnableEmc3ds);this.Cr=this.Sq=l;this.kd=(this.controlsType==="3"||this.B||vs(!1,a.use_media_volume))&&!this.W;this.Yn=ns&&!g.tc(601)?!1:!0;this.bq=this.D||!1;this.Pc=JP(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=ys("",b?b.widgetReferrer:a.widget_referrer);var p;
b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.U||vs(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.vl=this.N("enable_cast_for_web_unplugged")&&g.OP(this)&&l||g.kz(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(JP(this)||g.NP(this)||g.PP(this));this.Br=!!window.document.pictureInPictureEnabled||bG();p=b?!!b.supportsAutoplayOverride:vs(!1,a.autoplayoverride);this.Oh=!(this.B&&!g.HP(this))&&!g.gs("nintendo wiiu")||p;this.Ph=(b?!!b.enableMutedAutoplay:vs(!1,a.mutedautoplay))&&!1;p=(JP(this)||
IP(this))&&this.playerStyle==="blazer";this.Bl=b?!!b.disableFullscreen:!vs(!0,a.fs);l=g.Cs(g.QP(this))&&g.HP(this);this.Db=!this.Bl&&(p||g.Js())&&!l;this.Fl=this.N("uniplayer_block_pip")&&(hs()&&Rp(58)&&!rs()||nu);p=g.HP(this)&&!this.Im;var q;b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Fd=p||vs(!this.L,q);this.Un=vs(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Z=rs()&&LP>0&&LP<=4.4?"_top":"_blank";this.lh=g.PP(this);this.xk=vs(this.playerStyle==="blazer",b?
b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.qa=q;this.Ba=ys("",b?b.authorizedUserIndex:a.authuser);this.uc=g.HP(this)&&
(this.Jc||!Ona()||this.Ua);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.He=((q=!this.uc)||!!this.Ba&&q)&&vs(!this.ra,this.U?r:void 0);this.Se=b?b.isMobileDevice||!!b.disableKeyboardControls:vs(!1,a.disablekb);this.loop=vs(!1,a.loop);this.pageId=ys("",b?b.initialDelegatedSessionId:a.pageid);this.yr=vs(!0,a.canplaylive);this.rb=vs(!1,a.livemonitor);this.disableSharing=vs(this.L,b?b.disableSharing:a.ss);(r=b&&this.N("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.Cg(r,q))):r=null;this.Zn=r;this.mute=b?!!b.startMuted:vs(!1,a.mute);this.storeUserVolume=!this.mute&&vs(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:ws(void 0,r,RP);this.captionsLanguagePreference=b?b.captionsLanguagePreference||
"":ys("",a.cc_lang_pref);r=ws(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,RP);this.controlsType==="3"&&r===2&&(r=3);this.Kb=r;this.Kj=b?b.hl||"en_US":ys("en_US",a.hl);this.region=b?b.contentRegion||"US":ys("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":ys("en",a.host_language);this.Lp=!this.Jc&&Math.random()<g.KD(this.experiments,"web_player_api_logging_fraction");this.eb=!this.Jc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(b==null||!b.deviceIsAudioOnly);this.Dd=xs(this.Dd,
a.ismb);this.Bq?(r=a.vss_host||"s.youtube.com",r==="s.youtube.com"&&(r=SP(this.Ea)||"www.youtube.com")):r="video.google.com";this.ao=r;TP(this,a,!0);this.La=new mP;g.P(this,this.La);q=b?b.innertubeApiKey:ys("",a.innertube_api_key);p=b?b.innertubeApiVersion:ys("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:ys("",a.innertube_context_client_version);q=g.mr("INNERTUBE_API_KEY")||q;p=g.mr("INNERTUBE_API_VERSION")||p;l=g.mr("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=eP(this);n=typeof this.j.c===
"number"?Number(this.j.c):Object.keys(rKa).indexOf(this.j.c);this.Dl={innertubeApiKey:q,innertubeApiVersion:p,fL:l,mR:m,h_:n,innertubeContextClientVersion:g.mr("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,oR:this.hostLanguage,nR:this.region,i_:g.mr("INNERTUBE_HOST_OVERRIDE")||"",k_:!!g.mr("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),j_:!!g.mr("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Km=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.G=new hP(this.experiments,this.N("html5_force_hfr_support")?
!0:XD(this)||ks()||Rna()||sKa(this),g.$F&&g.tc(56)||g.VO&&g.tc(54)||this.N("html5_force_vp9_subsample_encryption_support")||sKa(this));r=g.YD(this);q=this.Dd;p=this.experiments;l=new hKa(p);r&&(l.j=!0,l.L=.1);p.fb("html5_media_time_weight")&&(l.j=!1);q&&(l.C=q/8);l.D=XL()>=480;this.schedule=new uP(l,new MJa(this.experiments),e);g.P(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:vs(!1,a.enable_safety_mode);e=this.Pa?!1:JP(this)&&this.playerStyle!==
"blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav):u=a.allow_autonav;this.Xd=vs(e,!this.ra&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:vs(!1,a.send_visitor_id_header);var y;this.playerStyle==="docs"&&(b?y=b.disableNativeContextMenu:y=a.disable_native_context_menu);this.disableNativeContextMenu=vs(!1,y);this.Op=XD(this)&&this.N("enable_skip_intro_button");this.embedConfig=ys("",b?b.serializedEmbedConfig:a.embed_config);this.Fa=Bs(a,g.HP(this));this.C=this.Fa==="EMBEDDED_PLAYER_MODE_PFL";
this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks);this.Cl=vs(!1,a.full_window);var A;this.Za=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var C;this.livingRoomAppMode=ws("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(b==null?void 0:(C=b.device)==null?void 0:C.livingRoomAppMode),tKa);var F;u=xs(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:vs(!1,a.transparent_background);this.showMiniplayerButton=
b?!!b.showMiniplayerButton:vs(!1,a.show_miniplayer_button);var H;g.HP(this)&&!(b==null?0:(H=b.embedsHostFlags)==null?0:H.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:vs(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:vs(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var K;this.Xn=(K=a.show_loop_video_toggle)!=null?K:!0;this.Fq=Math.random()<1E-4;this.rk=a.onesie_hot_config||
(b==null?0:b.onesieHotConfig)?new bKa(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.yf=new jKa;g.P(this,this.yf);this.Cm=vs(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.mr("DATASYNC_ID");this.El=g.mr("LOGGED_IN",!1);this.Uj=(b==null?void 0:b.allowWoffleManagement)||!1;this.vk=Infinity;this.wk=NaN;this.livingRoomPoTokenId=b==null?void 0:
b.livingRoomPoTokenId;this.N("html5_high_res_logging_always")?this.Xf=!0:this.Xf=Math.random()*100<g.KD(this.experiments,"html5_high_res_logging_percent");var N;this.Gl=!!(b==null?0:(N=b.embedsHostFlags)==null?0:N.allowRcat);this.xl=!g.OP(this)&&!UP(this)};
g.QP=function(a){var b,c;if(!((b=a.webPlayerContextConfig)==null?0:(c=b.embedsHostFlags)==null?0:c.enableLiteUx)||a.Jc||a.L||a.C||a.Fa==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.KD(a.experiments,"embeds_web_lite_mode");return a===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":a>=0&&a<uKa.length?uKa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
TP=function(a,b,c){c=c===void 0?!1:c;a.Ib=ys(a.Ib,b.video_id);a.ib=ys(a.ib,b.eventid);a.ib&&(Qv=a.ib);for(var d=[],e=g.x(Object.keys(vKa)),f=e.next();!f.done;f=e.next()){f=vKa[f.value];var h=b[f];h!=null&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&d.length>0&&a.Fq&&(d.sort(),g.fx(new g.lt("Player client parameters changed after startup",d)));a.userAge=xs(a.userAge,b.user_age);a.bj=ys(a.bj,b.user_display_email);a.userDisplayImage=ys(a.userDisplayImage,b.user_display_image);g.yE(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=ys(a.userDisplayName,b.user_display_name);a.Mj=ys(a.Mj,b.user_gender);a.csiPageType=ys(a.csiPageType,b.csi_page_type);a.csiServiceName=ys(a.csiServiceName,b.csi_service_name);a.xk=vs(a.xk,b.enablecsi);a.pageId=ys(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.ag=b.living_room_session_po_token.toString())};
WP=function(a,b){return!a.L&&hs()&&Rp(55)&&a.controlsType==="3"&&!b};
g.XP=function(a){a=SP(a.Ea);return a==="www.youtube-nocookie.com"?"www.youtube.com":a};
YP=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
ZP=function(a){return JP(a)&&!g.OP(a)};
g.MP=function(a){return a.N("html5_local_playsinline")?ns&&!g.tc(602)&&!("playsInline"in YF()):ns&&!a.Jm||g.gs("nintendo wiiu")?!0:!1};
eP=function(a){return a.j.c};
g.YD=function(a){return/^TVHTML5/.test(eP(a))};
g.$P=function(a){return eP(a)==="TVHTML5"};
lKa=function(a){return eP(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
sKa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"};
g.aQ=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
XD=function(a){return/web/i.test(eP(a))};
g.bQ=function(a){return eP(a).toUpperCase()==="WEB"};
UP=function(a){return eP(a)==="WEB_KIDS"};
g.OP=function(a){return eP(a)==="WEB_UNPLUGGED"};
cQ=function(a){return eP(a)==="TVHTML5_UNPLUGGED"};
g.WD=function(a){return g.OP(a)||eP(a)==="TV_UNPLUGGED_CAST"||cQ(a)};
g.kz=function(a){return eP(a)==="WEB_REMIX"};
g.dQ=function(a){return eP(a)==="WEB_EMBEDDED_PLAYER"};
g.fQ=function(a){return(a.deviceIsAudioOnly||!g.$F||nu||a.controlsType==="3"?!1:g.qs?a.D&&g.tc(51):!0)||(a.deviceIsAudioOnly||!g.VO||nu||a.controlsType==="3"?!1:g.qs?a.D&&g.tc(48):g.tc(38))||(a.deviceIsAudioOnly||!g.FP||nu||a.controlsType==="3"?!1:g.qs?a.D&&g.tc(37):g.tc(27))||!a.deviceIsAudioOnly&&g.eQ&&!Tna()&&g.tc(11)||!a.deviceIsAudioOnly&&g.Nt&&g.tc("604.4")};
wKa=function(a){if(g.NP(a)&&KP)return!1;if(g.VO){if(!g.tc(47)||!g.tc(52)&&g.tc(51))return!1}else if(g.Nt)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
gQ=function(a){return!a.N("html5_disable_media_element_loop_on_tv")||!g.YD(a)};
yKa=function(a,b){return a.enabledEngageTypes.has(b.toString())||xKa.includes(b)};
JP=function(a){return a.Ma==="detailpage"};
g.NP=function(a){return a.Ma==="embedded"};
hQ=function(a){return a.Ma==="leanback"};
IP=function(a){return a.Ma==="adunit"||a.playerStyle==="gvn"};
g.PP=function(a){return a.Ma==="profilepage"};
g.HP=function(a){return a.D&&g.NP(a)&&!IP(a)&&!a.L};
iQ=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.fx(new g.lt("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.jQ=function(a){var b=g.XP(a);zKa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.kQ=function(a,b){b=b===void 0?"":b;if(a.N("enable_tectonic_player_oauth_callback")&&a.Dm){var c=new UG,d,e=a.Dm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.fx(new g.lt("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return d!==void 0?Yr(d):new Wr(c)}return Yr(b)};
SP=function(a){var b=g.Xi(a);return(a=Number(g.Wi(4,a))||null)?b+":"+a:b};
lQ=function(a,b){b=b===void 0?!1:b;var c=kG[a],d=AKa[c],e=BKa[a];if(!e||!d)return null;b=new hG(b?e.height:e.width,b?e.width:e.height,e.fps);d=vO(d,b,c);return new lG(a,d,{video:b,sb:e.bitrate/8})};
DKa=function(a){var b=AKa[kG[a]],c=CKa[a];return c&&b?new lG(a,b,{audio:new eG(c.audioSampleRate,c.numChannels)}):null};
mQ=function(a){this.j=a};
nQ=function(a,b,c,d){if(c)return Xr();c={};var e=YF();b=g.x(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().Re())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.x(iG);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?Yr(a):Xr()};
EKa=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.gD=a.gD;this.le=a.le||"";this.qc=a.qc;this.audioChannels=a.audioChannels;this.j=""};
FKa=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.x(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.pO(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new EKa({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,gD:n?l[n]:void 0,le:f.drm_families,qc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
GKa=function(a,b,c,d,e){this.C=a;this.B=b;this.G=c;this.cpn=d;this.L=e;this.D=0;this.j=""};
HKa=function(a,b){a.C.some(function(c){var d;return((d=c.qc)==null?void 0:d.getId())===b});
a.j=b};
oQ=function(a,b,c){a.cpn&&(b=g.cj(b,{cpn:a.cpn}));c&&(b=g.cj(b,{paired:c}));return b};
IKa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a};
JKa=function(a){for(var b=[],c=[],d=g.x(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)};
pQ=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
KKa=function(a,b){if(!(nu||ls()||js()))return null;a=FKa(b,a.N("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.x(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.x(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.qc&&(f=h.qc.getId(),c[f]||(h=new g.kM(f,h.qc),c[f]=h,b.push(h)))}}return b.length>0?b:null};
PKa=function(a,b,c,d,e,f,h){if(!(nu||ls()||js()))return Xr();var l={},m=LKa(c),n=FKa(c,a.N("html5_filter_fmp4_in_hls"),a.G.L,l);if(!n)return h({noplst:1}),Xr();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 EKa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,qc:new g.pO("English","en",!1)}):null;for(var A=g.x(Object.keys(n)),C=A.next();!C.done;C=A.next())if(C=C.value,!a.N("html5_disable_drm_hfr_1080")||
C!=="383"&&C!=="373"){C=g.x(n[C]);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.width){for(var H=g.x(F.B),K=H.next();!K.done;K=H.next())if(K=K.value,n[K]){F.j=K;break}F.j||(F.j=NKa(n,F));if(H=n[F.j])if(c.push(F),F.le==="fairplay"&&(q=p),K="",F.gD==="PQ"?K="smpte2084":F.gD==="HLG"&&(K="arib-std-b67"),K&&(y=K),t.push(OKa(H,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,K)),!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,
W){return W.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.N("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 nQ(a.G,t,WP(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.x(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 lG(e,"application/x-mpegURL",{audio:new eG(0,u),video:new hG(f,h,l,null,void 0,n,void 0,r),le:q,TL:y});a=new GKa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new pQ(e,a,m)};
LKa=function(a){a=g.x(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.x(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.le===b.le&&!e.audioChannels)return d}return""};
MKa=function(a){for(var b=new Set,c=g.x(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.x(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.x(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
qQ=function(a,b){this.j=a;this.B=b};
QKa=function(a,b,c,d){var e=[];c=g.x(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.FM(h.url,!0);if(h.s){var l=f,m=h.sp,n=OCa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.x(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=xG(h.type,h.quality,h.itag,h.width,h.height);e.push(new qQ(h,f))}}return nQ(a.G,e,WP(a,b),!1)};
rQ=function(a,b){this.j=a;this.B=b};
RKa=function(a,b,c){var d=[];c=g.x(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=xG(e.type,"medium","0");d.push(new rQ(f,e.url))}return nQ(a.G,d,WP(a,b),!1)};
SKa=function(a,b){var c=[],d=xG(b.type,"auto",b.itag);c.push(new rQ(d,b.url));return nQ(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.Fp=pP(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.eT=new VKa(b)};
g.sQ=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.uQ=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.tQ(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.vQ=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.vQ(a));return b};
g.tQ=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("")};
aLa=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($Ka);if(!a||a.length!==5)return null;if(a=b.match($Ka)){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};
wQ=function(a,b){for(var c={},d=g.x(Object.keys(bLa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.yE(f)&&(c[bLa[e]]=f)}return c};
xQ=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.x(Object.keys(cLa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=cLa[e];for(var f=g.x(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=dLa(h.url);g.yE(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=dLa(a.url),g.yE(a)&&(b["maxresdefault.jpg"]=a));return b};
dLa=function(a){return a.startsWith("//")?"https:"+a:a};
yQ=function(a){return a&&a.baseUrl||""};
zQ=function(a){a=g.wr(a);for(var b=g.x(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};
eLa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.Kr=b)};
hLa=function(a,b){b=g.x(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,fLa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.Q(h,gLa))return Object.assign({is_yto_interstitial:!0},ur(h))});
d=g.x(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,Dp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Dp: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,
Dp:f===0?5:7})}}};
iLa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
jLa=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)};
kLa=function(a,b){b!=null?(a.cq=b,a.Nf=!0):(a.cq="",a.Nf=!1)};
AQ=function(a,b){this.type=a||"";this.id=b||""};
g.BQ=function(a){return new AQ(a.substring(0,2),a.substring(2))};
g.CQ=function(a,b){this.Ca=a;this.author="";this.qF=null;this.playlistLength=0;this.j=this.sessionData=null;this.W={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=sr(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.W=wQ(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new AQ("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.BQ(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.DQ=function(a,b){this.Ca=a;this.Ot=this.author="";this.qF=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.qy=this.lengthText="";this.sessionData=null;this.W={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Ot=b.Ot||"";if(a=b.endscreen_autoplay_session_data)this.qF=sr(a,"&");this.rF=b.rF;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.qy=b.qy||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=sr(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.W=wQ(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
lLa=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.FQ=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,EQ);return g.Q(a==null?void 0:a.playerBar,mLa)};
nLa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
oLa=function(){if(GQ===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.bq(g.mt()+"::yt-player"))){GQ=new nz(a);break a}GQ=void 0}}return GQ};
g.HQ=function(){var a=oLa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.pLa=function(a){var b=oLa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.IQ=function(a){return g.HQ()[a]||0};
g.JQ=function(a,b){var c=g.HQ();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.pLa(c))};
g.KQ=function(a){return g.I(function(b){return b.return(g.ku(qLa(),a))})};
MQ=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.I(function(u){switch(u.j){case 1:return m=g.IQ(a),m===4?u.return(4):g.G(u,g.tu(),2);case 2:n=u.B;if(!n)throw g.Pt("wiac");if(!l||h===void 0){u.Ga(3);break}return g.G(u,rLa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.G(u,g.KQ(n),5);case 5:return q=u.B,g.wa(u,6),LQ++,g.G(u,g.Zt(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Qb:!0},function(y){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");A=g.$t(y.objectStore("media"),h,A)}else A=g.Rt.resolve(void 0);var C=sLa(a,b.Of()),F=sLa(a,!b.Of()),H={fmts:tLa(d),format:c||{}};C=g.$t(y.objectStore("index"),H,C);var K=d.downloadedEndTime===-1;H=K?y.objectStore("index").get(F):g.Rt.resolve(void 0);var N={fmts:"music",format:{}};y=K&&e&&!b.Of()?g.$t(y.objectStore("index"),N,F):g.Rt.resolve(void 0);return g.Rt.all([y,H,A,C]).then(function(W){W=g.x(W);W.next();W=W.next().value;LQ--;var V=g.IQ(a);if(V!==4&&K&&e||W!==void 0&&g.uLa(W.fmts))V=1,g.JQ(a,
V);return V})}),8);
case 8:return u.return(u.B);case 6:r=g.ya(u);LQ--;t=g.IQ(a);if(t===4)return u.return(t);g.JQ(a,4);throw r;}})};
g.vLa=function(a){var b,c;return g.I(function(d){if(d.j==1)return g.G(d,g.tu(),2);if(d.j!=3){b=d.B;if(!b)throw g.Pt("ri");return g.G(d,g.KQ(b),3)}c=d.B;return d.return(g.Zt(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:{}})})}))})};
xLa=function(a,b,c,d,e){var f,h,l;return g.I(function(m){if(m.j==1)return g.G(m,g.tu(),2);if(m.j!=3){f=m.B;if(!f)throw g.Pt("rc");return g.G(m,g.KQ(f),3)}h=m.B;l=g.Zt(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 wLa(e,n)}).catch(function(n){throw new g.lt("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.uLa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
sLa=function(a,b){return""+a+"|"+(b?"v":"a")};
tLa=function(a){var b={};return tr((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
zLa=function(a){var b={},c={};a=g.x(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.yLa)?(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.x(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};
NQ=function(a){g.Fx.call(this);this.j=null;this.C=new eq;this.j=null;this.L=new Set;this.crossOrigin=a||""};
ALa=function(a,b,c){for(c=OQ(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(PQ(d,b))&&(d=g.QQ(d,b)))return d;c--}return g.QQ(a.levels[0],b)};
CLa=function(a,b,c){c=OQ(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=PQ(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.L.has(h)||(d.L.add(h),d.C.enqueue(f,{K_:f,q0: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.K_].qe(b.q0);c.onload=function(){var d=b.K_,e=b.q0;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.uK()-1);e=[e,d];a.publish("l",e[0],e[1])};
return c};
g.RQ=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};
PQ=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.QQ=function(a,b){b>=a.pO()&&a.Vz();var c=PQ(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.qe(c),column:b,columns:h,row:e,rows:d,MG:a.width*h,By:a.height*d}};
SQ=function(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;NQ.call(this,c);this.isLive=d;this.U=!!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.kJ(c):-1};
OQ=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};
TQ=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.RQ.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
UQ=function(a,b,c,d){SQ.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a<this.levels.length;a++)this.levels[a].xW(c)};
FLa=function(a,b,c){b={cpn:b};a.indexOf("/ibw/")===-1&&(b.ibw=c?String(c):"1369843");return{url:g.cj(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.WQ=function(a,b){g.Fx.call(this);this.Ca=a;this.adModule=!1;this.adaptiveFormats="";this.oL=this.Cw=this.adQueryId=this.qw=null;this.WD={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.le=null;this.dE=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.jw=void 0;this.Dl=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Ua="";this.aE=this.Dw=!1;this.WW=null;this.lh=this.ek=this.Cr=this.oD=
!1;this.D=null;this.VL=this.Bl=!1;this.dk=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=0;this.y4=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Mp=0;this.xk=!1;this.lE=this.cycToken=null;this.author="";this.Oh=0;this.Vn=!1;this.wD=null;this.wE=[];this.Vp=this.rE=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Kb=this.Se="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Db=0;this.Im=this.Za=this.B=null;this.sG="";this.loading=!1;this.Dd=this.Tn=0;this.vL=this.pipable=this.wp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.rb=this.isPrivate=this.isListed=this.BH=this.ag=this.mutedAutoplay=this.qj=!1;this.qD="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.RI=this.Ma=this.je=!1;this.latencyClass="UNKNOWN";this.nV=this.SW=this.SG=this.LL=this.vE=this.enablePreroll=
this.zV=this.enableServerStitchedDai=this.Mf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.uc=0;this.reloadReason="";this.TI=this.VW=this.Ph=!1;this.keywords={};this.tb="";this.Lp=0;this.jD=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.vk=null;this.mw=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.oV=this.paygated=!1;this.An=[];this.Un=!1;this.Ea=[];this.Ki=null;this.T1=this.racyCheckOk=
!1;this.jX={};this.isProximaLatencyEligible=!1;this.RH=0;this.C=null;this.autonavState=1;this.KX=null;this.shortDescription="";this.Ba=this.g4=!1;this.Xd=this.Ib=this.startSeconds=0;this.kD=this.O2=this.lD=VQ;this.Ew=this.suggestions=null;this.nw=this.ow=void 0;this.isExternallyHostedPodcast=!1;this.Hm=null;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Kw=void 0;this.ib=[];this.vl=[];this.hlsFormats=this.Yf="";this.Zw=this.aD=this.xl=this.Fd=this.eb=this.Cq=this.Sw=null;
this.Sn="vvt";this.bj=!1;this.AE=null;this.z4="";this.Dt=NaN;this.Et=this.Kz=this.Br=this.Jz=this.Iz=this.Jm=this.yr=this.Mz=this.hw=this.Lz="";this.Km=null;this.x_=!1;this.U={};this.clipStart=0;this.clipEnd=Infinity;this.pV=!1;this.heartbeatToken="";this.rV=this.qV=NaN;this.kd=this.Kp=this.Kj=this.yV=this.wV=!1;this.Gl=!0;this.W={};this.captionTracks=[];this.gE=[];this.q3=0;this.iE=[];this.Hw=[];this.Gw=!1;this.kE={};this.Cl=new g.kM("und",new g.pO("Default","und",!0));this.pD=0;this.G=null;this.Pp=
[];this.AF=!1;this.Fz=this.Vb="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Pa=this.tD=this.tG=this.playerResponse=this.p4=this.jy=this.Xn=this.Oi=this.zE=this.YD=this.UD=null;this.Mw=!1;this.qa=null;this.isInlinePlaybackNoAd=this.El=this.tE=this.useCobaltWidevine=this.v2=this.sB=!1;this.t4=!0;this.zf=this.Mj=NaN;this.defraggedFromSubfragments=this.dG=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.tC="";this.v4=!1;this.gatewayExperimentGroup=
"";this.yD=this.yE=this.Zf=!1;this.interstitials=[];this.Nf=this.AI=!1;this.cq="";this.allowImaMonetization=!1;this.bX="";this.hE=!1;this.Rg="";this.bq=[];this.uD=[];this.Cd="";this.sE=this.Z=this.xV=!1;this.rr="";this.Op=this.vD=this.ao=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Oq=!1;this.Dm=this.He=!0;this.errorDetail=this.userGenderAge="";this.nE=this.pE=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=
this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Do=this.errorReason=this.errorCode=null;this.Jw=this.Iw="";this.Wn=!1;this.lw=[];this.Ac=this.La=this.Sb=this.Di=this.mf=0;this.fetchType=null;this.kX=!0;this.transitionEndpointAtEndOfStream=void 0;this.eE=this.OM=-1;this.Cm=this.Xf=!1;this.Te=null;this.Va="";this.Yn=!1;this.watchUrl=null;this.sx=[];this.visibleOnLoadKeys=[];this.nL=[];this.inlineMetricEnabled=this.wk=!1;this.embedsRctn=this.embedsRct="";this.zG=NaN;this.fX=(0,g.Vt)();
this.Gz=this.Sq=0;this.Fp=null;this.Gd=0;this.uE=this.SI=!1;this.Jc=this.Ca.experiments.fb("html5_use_triple_equals");this.YK=!1;this.D1=g.KD(this.Ca.experiments,"html5_gapless_loop_seek_offset_in_milli");this.fE=0;this.Np={};this.Xf=this.N("web_new_autonav_countdown");this.Cm=this.N("web_new_big_thumbnail_endscreen");GLa(this,b);this.Lw=new uM;g.P(this,this.Lw)};
g.$Q=function(a,b,c){b&&b.cpn&&g.fx(new g.lt("CPN provided in VideoData update",{Xpa:b.cpn,Wg:a.clientPlaybackNonce,spa:c}));c?(As(b),GLa(a,b),XQ(a)&&YQ(a)):(b=b||{},HLa(a,b),ZQ(a,b),ILa(a,b),a.publish("dataupdated"))};
ILa=function(a,b){a.fflags=ys(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Ua=zE(c));a.Dw=vs(a.Dw,b.iv_ads_only);a.aE=vs(a.aE,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.Q4=c;a.isPharma=vs(a.isPharma,b.is_pharma);a.author=ys(a.author,b.author);a.Se=JLa(b.ttsurl)||a.Se;a.Vn=vs(a.Vn,b.cc_asr);a.Kb=ys(a.Kb,b.channel_path);if(c=b.profile_picture)a.profilePicture=ys(a.profilePicture,c);a.videoCountText=ys(a.videoCountText,b.video_count_text);a.autonavState=ws(a.autonavState,b.autonav_state,
KLa);if(a.N("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!((d=a.playerResponse)==null||!d.cotn);d=g.KD(a.Ca.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.Fv("ssei","uhdc"),a.clientPlaybackNonce=ys(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=ys(a.clientPlaybackNonce,b.cpn);a.subscribed=vs(a.subscribed,b.subscribed);a.rawViewCount=xs(a.rawViewCount,
b.view_count);a.shortViewCount=ys(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=ys(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=ys(a.lengthText||"",b.lengthText);a.qy=ys(a.qy||"",b.qy);a.Ot=ys(a.Ot||"",b.Ot);a.title=ys(a.title,b.title);a.subtitle=ys(a.subtitle,b.subtitle);a.expandedTitle=ys(a.expandedTitle,b.expanded_title);a.expandedSubtitle=ys(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=ys(a.ariaLabel,b.aria_label);a.ypcPreview=ys(a.ypcPreview,b.ypc_preview);
a.KE=ys(a.KE,b.ypc_origin);a.bj=vs(a.bj,b.ypc_is_premiere_trailer);a.rr=ys(a.rr,b.ypc_clickwrap_message);a.paygated=vs(a.paygated,b.paygated);a.x_=vs(a.x_,b.requires_purchase);a.showShareButton=!vs(!a.showShareButton,b.ss);a.He=vs(a.He,b.showwatchlater);a.Dm=vs(a.Dm,b.shownotifybutton);a.Oq=vs(a.Oq,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=vr(d).map(function(e){return e.playlist||e.list||e.api?new g.CQ(a.Ca,e):new g.DQ(a.Ca,e)});
a.contentCheckOk=vs(a.contentCheckOk,b.cco);a.racyCheckOk=vs(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=vs(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=ys(a.oauthToken,b.oauth_token);a.tb=ys(a.tb,b.kpt);a.visitorData=ys(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=sr(d,"&");a.Ow=ys(a.Ow,b.endscreen_ad_tracking_data);a.w4=vs(a.w4,b.wait_for_vast_info_cards_xml);a.jE=vs(a.jE,b.suppress_creator_endscreen);a.UW=vs(a.UW,b.is_trueview_action);a.q4=ys(a.q4,b.tracking_list);
a.Iw=ys(a.Iw,b.clip);a.Jw=ys(a.Jw,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.Do=f);a.N("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.Sv(16));a.rb=vs(a.Ca.rb,b.livemonitor);HLa(a,b);var h=b.raw_player_response;if(h)a.tD=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}if(a.N("html5_enable_ssap_entity_id")){var m=
b.cached_load;m&&(a.Vp=vs(a.Vp,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.Fv("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.Sv(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.x(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.Dw=!0);t.allowInPlaceSwitch&&(a.aE=!0);var u=t.loadPolicy;u&&(a.annotationsLoadPolicy=OLa[u]);var y=t.invideoUrl;y&&(a.Ua=zE(y));a.oD=!0;break}}var A=
a.playerResponse.attestation;A&&eLa(a,A);var C=a.playerResponse.cotn;C&&(a.cotn=C);var F=a.playerResponse.heartbeatParams;if(F){PLa(a)&&(a.pV=!0);var H=F.heartbeatToken;H&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=H,a.qV=Number(F.intervalMilliseconds),a.rV=Number(F.maxRetries),a.wV=!!F.softFailOnError,a.yV=!!F.useInnertubeHeartbeatsForDrm,a.Cr=!0);a.heartbeatServerData=F.heartbeatServerData;var K;a.xk=!((K=F.heartbeatAttestationConfig)==null||!K.requiresAttestation)}var N=a.playerResponse.messages;
N&&iLa(a,N);var W=a.playerResponse.overlay;if(W){var V=W.playerControlsOverlayRenderer;if(V)if(kLa(a,V.controlBgHtml),V.mutedAutoplay){var da=g.Q(V.mutedAutoplay,QLa);if(da&&da.endScreen){var na=g.Q(da.endScreen,RLa);na&&na.text&&(a.bX=g.Qx(na.text))}}else a.mutedAutoplay=!1}var X=a.playerResponse.playabilityStatus;if(X){var R=X.backgroundability;R&&R.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Y,v;if((Y=X.offlineability)==null?0:(v=Y.offlineabilityRenderer)==null?0:v.offlineable)a.offlineable=
!0;var U=X.contextParams;U&&(a.contextParams=U);var $a=X.pictureInPicture;$a&&$a.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);X.playableInEmbed&&(a.allowEmbed=!0);var wb=X.ypcClickwrap;if(wb){var ob=wb.playerLegacyDesktopYpcClickwrapRenderer,Ea=wb.ypcRentalActivationRenderer;if(ob)a.rr=ob.durationMessage||"",a.lh=!0;else if(Ea){var db=Ea.durationMessage;a.rr=db?g.Qx(db):"";a.lh=!0}}var tb=X.errorScreen;if(tb){if(tb.playerLegacyDesktopYpcTrailerRenderer){var ab=tb.playerLegacyDesktopYpcTrailerRenderer;
a.Et=ab.trailerVideoId||"";var B=tb.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var D=B&&B.ypcTrailerRenderer}else if(tb.playerLegacyDesktopYpcOfferRenderer)ab=tb.playerLegacyDesktopYpcOfferRenderer;else if(tb.ypcTrailerRenderer){D=tb.ypcTrailerRenderer;var E=D.fullVideoMessage;a.yr=E?g.Qx(E):"";var J,M;a.Et=((J=g.Q(D,SLa))==null?void 0:(M=J.videoDetails)==null?void 0:M.videoId)||""}ab&&(a.Br=ab.itemTitle||"",ab.itemUrl&&(a.Kz=ab.itemUrl),ab.itemBuyUrl&&(a.Iz=ab.itemBuyUrl),a.Jz=ab.itemThumbnail||
"",a.Mz=ab.offerHeadline||"",a.hw=ab.offerDescription||"",a.Jm=ab.offerId||"",a.Lz=ab.offerButtonText||"",a.AE=ab.offerButtonFormattedText||null,a.Dt=ab.overlayDurationMsec||NaN,a.yr=ab.fullVideoMessage||"",a.ek=!0);if(D){var aa=g.Q(D,SLa);if(aa)a.Km={raw_player_response:aa};else{var ha=g.Q(D,TLa);a.Km=ha?ur(ha):null}a.ek=!0}}}var ea=a.playerResponse.playbackTracking;if(ea){var L=b,oa=yQ(ea.googleRemarketingUrl);oa&&(a.googleRemarketingUrl=oa);var ua=yQ(ea.youtubeRemarketingUrl);ua&&(a.youtubeRemarketingUrl=
ua);var ia={},La=yQ(ea.ptrackingUrl);if(La){var kb=zQ(La),Sb=kb.oid;Sb&&(a.dX=Sb);var rc=kb.pltype;rc&&(a.eX=rc);var Wa=kb.ptchn;Wa&&(a.cX=Wa);var Oc=kb.ptk;Oc&&(a.Mx=encodeURIComponent(Oc));var pe=kb.m;pe&&(a.Nw=pe)}var Se=yQ(ea.qoeUrl);if(Se){for(var Te=g.wr(Se),Ug=g.x(Object.keys(Te)),Ah=Ug.next();!Ah.done;Ah=Ug.next()){var Vc=Ah.value,$h=Te[Vc];Te[Vc]=Array.isArray($h)?$h.join(","):$h}a.t2=Te;var Vg=Te.cat;Vg&&(a.N("html5_enable_qoe_cat_list")?a.bq=a.bq.concat(Vg.split(",")):a.Rg=Vg);var ug=Te.live;
ug&&(a.qD=ug);var Oi=Te.drm_product;Oi&&(a.Dl=Oi)}var Oj=yQ(ea.videostatsPlaybackUrl);if(Oj){var td=zQ(Oj),Pi=td.adformat;if(Pi){L.adformat=Pi;var Vk=a.V(),Pj=aLa(Pi,a.Fz,Vk.D,Vk.U);Pj&&(a.adFormat=Pj)}var id=td.aqi;id&&(L.ad_query_id=id);var Bh=td.autoplay;Bh&&(a.qj=Bh=="1",a.wp=Bh=="1",aR(a,"vss"));var jc=td.autonav;jc&&(a.isAutonav=jc=="1");var No=td.delay;No&&(a.Db=ng(No));var cr=td.ei;cr&&(a.eventId=cr);if(td.adcontext||Pi)a.qj=!0,aR(a,"ad");var sc=td.feature;sc&&(a.qq=sc);var eH=td.list;eH&&
(a.playlistId=eH);var fH=td.of;fH&&(a.xD=fH);var gH=td.osid;gH&&(a.osid=gH);var Jz=td.referrer;Jz&&(a.referrer=Jz);var rm=td.sdetail;rm&&(a.qC=rm);var hH=td.sourceid;hH&&(a.Ika=hH);var Kz=td.ssrt;Kz&&(a.Fq=Kz=="1");var Lz=td.subscribed;Lz&&(a.subscribed=Lz=="1",a.U.subscribed=Lz);var iH=td.uga;iH&&(a.userGenderAge=iH);var jH=td.upt;jH&&(a.iD=jH);var kH=td.vm;kH&&(a.videoMetadata=kH);ia.playback=td}var lH=yQ(ea.videostatsWatchtimeUrl);if(lH){var mH=zQ(lH),nH=mH.ald;nH&&(a.pw=nH);ia.watchtime=mH}var Oo=
yQ(ea.atrUrl);if(Oo){var GS=zQ(Oo);ia.atr=GS}var oH=yQ(ea.engageUrl);if(oH){var HS=zQ(oH);ia.engage=HS}a.Np=ia;if(ea.promotedPlaybackTracking){var Wg=ea.promotedPlaybackTracking;Wg.startUrls&&(a.ly=Wg.startUrls);Wg.firstQuartileUrls&&(a.VD=Wg.firstQuartileUrls);Wg.secondQuartileUrls&&(a.XD=Wg.secondQuartileUrls);Wg.thirdQuartileUrls&&(a.ZD=Wg.thirdQuartileUrls);Wg.completeUrls&&(a.TD=Wg.completeUrls);Wg.engagedViewUrls&&(Wg.engagedViewUrls.length>1&&g.fx(new g.lt("There are more than one engaged_view_urls.")),
a.Qj=Wg.engagedViewUrls[0])}}var Ju=a.playerResponse.playerCueRanges;Ju&&Ju.length>0&&(a.cueRanges=Ju);var pH=a.playerResponse.playerCueRangeSet;pH&&g.bR(a,pH);a:{var qH=a.playerResponse.adPlacements;if(qH)for(var rH=g.x(qH),Mz=rH.next();!Mz.done;Mz=rH.next()){var sH=void 0,tH=void 0,uH=(sH=Mz.value.adPlacementRenderer)==null?void 0:(tH=sH.renderer)==null?void 0:tH.videoAdTrackingRenderer;if(uH){var vH=uH;break a}}vH=null}var Nz=vH;ea&&ea.promotedPlaybackTracking&&Nz&&g.fx(new g.lt("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
Nz&&(a.oV=!0);var wH=a.playerResponse.playerAds;if(wH)for(var IS=b,xH=g.x(wH),Oz=xH.next();!Oz.done;Oz=xH.next()){var yH=Oz.value;if(yH){var zH=yH.playerLegacyDesktopWatchAdsRenderer;if(zH){var Po=zH.playerAdParams;if(Po){Po.autoplay=="1"&&(a.qj=!0,a.wp=!0);a.Cw=Po.encodedAdSafetyReason||null;Po.showContentThumbnail!==void 0&&(a.Gl=!!Po.showContentThumbnail);IS.enabled_engage_types=Po.enabledEngageTypes;break}}}}var De=a.playerResponse.playerConfig;if(De){var Qo=De.manifestlessWindowedLiveConfig;
if(Qo){var Pz=Number(Qo.minDvrSequence),Ku=Number(Qo.maxDvrSequence),Lu=Number(Qo.minDvrMediaTimeMs),Mu=Number(Qo.maxDvrMediaTimeMs),AH=Number(Qo.startWalltimeMs);Pz&&(a.mf=Pz);Lu&&(a.La=Lu/1E3,a.N("html5_sabr_parse_live_metadata_playback_boundaries")&&cR(a)&&(a.Bq=Lu/1E3));Ku&&(a.Di=Ku);Mu&&(a.Sb=Mu/1E3,a.N("html5_sabr_parse_live_metadata_playback_boundaries")&&cR(a)&&(a.yk=Mu/1E3));AH&&(a.Ac=AH/1E3);(Pz||Lu)&&(Ku||Mu)&&(a.Ma=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.je=!1)}var sm=De.daiConfig;
if(sm){if(sm.enableDai){a.Mf=!0;var Nu=sm.enableServerStitchedDai;Nu&&(a.enableServerStitchedDai=Nu);var JS=sm.enablePreroll;JS&&(a.enablePreroll=JS)}var BH;if(sm.daiType==="DAI_TYPE_SS_DISABLED"||((BH=sm.debugInfo)==null?0:BH.isDisabledUnpluggedChannel))a.SG=!0;sm.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.zV=!0)}var Wk=De.audioConfig;if(Wk){var CH=Wk.loudnessDb;CH!=null&&(a.dk=CH);var Qz=Wk.trackAbsoluteLoudnessLkfs;Qz!=null&&(a.y4=Qz);var Rz=Wk.loudnessTargetLkfs;Rz!=null&&(a.loudnessTargetLkfs=
Rz);Wk.audioMuted&&(a.Bl=!0);Wk.muteOnStart&&(a.VL=!0);var tm=Wk.loudnessNormalizationConfig;if(tm){tm.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);tm.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var DH=tm.minimumLoudnessTargetLkfs;DH!=null&&(a.minimumLoudnessTargetLkfs=DH);var KS=tm.maxStatefulTimeThresholdSec;KS!=null&&(a.maxStatefulTimeThresholdSec=KS)}a.N("web_player_audio_playback_from_audio_config")&&Wk.playAudioOnly&&(a.Zf=!0)}var EH=De.playbackEndConfig;
if(EH){var dr=EH.endSeconds,fGa=EH.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(dr&&(a.endSeconds=dr),fGa&&(a.limitedPlaybackDurationInSeconds=fGa))}var LS=De.fairPlayConfig;if(LS){var gGa=LS.certificate;gGa&&(a.Za=pP(gGa));var hGa=Number(LS.keyRotationPeriodMs);hGa>0&&(a.Qw=hGa);var iGa=Number(LS.keyPrefetchMarginMs);iGa>0&&(a.Pw=iGa)}var Sz=De.playbackStartConfig;if(Sz){a.Op=Number(Sz.startSeconds);var jGa=Sz.liveUtcStartSeconds,kGa=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;jGa&&!kGa&&
(a.liveUtcStartSeconds=Number(jGa));var t$=Sz.startPosition;if(t$){var lGa=t$.utcTimeMillis;lGa&&!kGa&&(a.liveUtcStartSeconds=Number(lGa)*.001);var mGa=t$.streamTimeMillis;mGa&&(a.Xd=Number(mGa)*.001)}a.progressBarStartPosition=Sz.progressBarStartPosition;a.progressBarEndPosition=Sz.progressBarEndPosition}else{var u$=De.skippableSegmentsConfig;if(u$){var nGa=u$.introSkipDurationMs;nGa&&(a.ao=Number(nGa)/1E3);var oGa=u$.outroSkipDurationMs;oGa&&(a.vD=Number(oGa)/1E3)}}var v$=De.skippableIntroConfig;
if(v$){var pGa=Number(v$.startMs),qGa=Number(v$.endMs);isNaN(pGa)||isNaN(qGa)||(a.Mj=pGa,a.zf=qGa)}var rGa=De.streamSelectionConfig;rGa&&(a.Dd=Number(rGa.maxBitrate));var sGa=De.vrConfig;sGa&&(a.sB=sGa.partialSpherical=="1");var FH=De.webDrmConfig;if(FH){FH.skipWidevine&&(a.v2=!0);var tGa=FH.widevineServiceCert;tGa&&(a.Im=pP(tGa));FH.useCobaltWidevine&&(a.useCobaltWidevine=!0);FH.startWithNoQualityConstraint&&(a.El=!0)}var Ro=De.mediaCommonConfig;if(Ro){var MS=Ro.dynamicReadaheadConfig;if(MS){a.maxReadAheadMediaTimeMs=
MS.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=MS.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=MS.readAheadGrowthRateMs||NaN;var uGa,vGa=Ro==null?void 0:(uGa=Ro.mediaUstreamerRequestConfig)==null?void 0:uGa.videoPlaybackUstreamerConfig;vGa&&(a.Ki=pP(vGa));var w$=Ro==null?void 0:Ro.sabrContextUpdates;if(w$&&w$.length>0)for(var wGa=g.x(w$),x$=wGa.next();!x$.done;x$=wGa.next()){var Ou=x$.value;if(Ou.type&&Ou.value){var Lhb={type:Ou.type,scope:Ou.scope,value:pP(Ou.value)||void 0,sendByDefault:Ou.sendByDefault};
a.sabrContextUpdates.set(Ou.type,Lhb)}}}var xGa=Ro.serverPlaybackStartConfig;xGa&&(a.serverPlaybackStartConfig=xGa);Ro.useServerDrivenAbr&&(a.uE=!0);var yGa=Ro.requestPipeliningConfig;yGa&&(a.requestPipeliningConfig=yGa)}var zGa=De.inlinePlaybackConfig;zGa&&(a.t4=!!zGa.showAudioControls);var NS=De.embeddedPlayerConfig;if(NS){a.embeddedPlayerConfig=NS;var y$=NS.embeddedPlayerMode;if(y$){var AGa=a.V();AGa.Fa=y$;AGa.C=y$==="EMBEDDED_PLAYER_MODE_PFL"}var BGa=NS.permissions;BGa&&(a.allowImaMonetization=
!!BGa.allowImaMonetization)}var CGa=De.ssapConfig;CGa&&(a.v4=CGa.ssapPrerollEnabled||!1);var OS=De.webPlayerConfig;OS&&(OS.gatewayExperimentGroup&&(a.gatewayExperimentGroup=OS.gatewayExperimentGroup),OS.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var So=a.playerResponse.streamingData;if(So){var z$=So.formats;if(z$){for(var GH=[],DGa=g.x(z$),A$=DGa.next();!A$.done;A$=DGa.next()){var B$=A$.value;GH.push(B$.itag+"/"+B$.width+"x"+B$.height)}a.sG=GH.join(",");GH=[];for(var EGa=g.x(z$),C$=EGa.next();!C$.done;C$=
EGa.next()){var HH=C$.value,IH={itag:HH.itag,type:HH.mimeType,quality:HH.quality},FGa=HH.url;FGa&&(IH.url=FGa);var PS=LM(HH),Mhb=PS.RE,Nhb=PS.mI,Ohb=PS.s;PS.IZ&&(IH.url=Mhb,IH.sp=Nhb,IH.s=Ohb);GH.push(g.bj(IH))}a.Yf=GH.join(",")}var D$=So.hlsFormats;if(D$){var GGa=De||null,QS={};if(GGa){var E$=GGa.audioPairingConfig;if(E$&&E$.pairs)for(var HGa=g.x(E$.pairs),F$=HGa.next();!F$.done;F$=HGa.next()){var IGa=F$.value,G$=IGa.videoItag;QS[G$]||(QS[G$]=[]);QS[G$].push(IGa.audioItag)}}for(var JGa={},KGa=g.x(D$),
H$=KGa.next();!H$.done;H$=KGa.next()){var LGa=H$.value;JGa[LGa.itag]=LGa.bitrate}for(var MGa=[],NGa=g.x(D$),I$=NGa.next();!I$.done;I$=NGa.next()){var ai=I$.value,um={itag:ai.itag,type:ai.mimeType,url:ai.url,bitrate:ai.bitrate,width:ai.width,height:ai.height,fps:ai.fps},RS=ai.audioTrack;if(RS){var OGa=RS.displayName;OGa&&(um.name=OGa,um.audio_track_id=RS.id,RS.audioIsDefault&&(um.is_default="1"))}if(ai.drmFamilies){for(var PGa=[],QGa=g.x(ai.drmFamilies),J$=QGa.next();!J$.done;J$=QGa.next())PGa.push(wO[J$.value]);
um.drm_families=PGa.join(",")}var SS=QS[ai.itag];if(SS&&SS.length){um.audio_itag=SS.join(",");var RGa=JGa[SS[0]];RGa&&(um.bitrate+=RGa)}var SGa=SFa(ai);SGa&&(um.eotf=SGa);ai.audioChannels&&(um.audio_channels=ai.audioChannels);MGa.push(g.bj(um))}a.hlsFormats=MGa.join(",")}var K$=So.licenseInfos;if(K$&&K$.length>0){for(var TGa={},UGa=g.x(K$),L$=UGa.next();!L$.done;L$=UGa.next()){var VGa=L$.value,WGa=VGa.drmFamily,XGa=VGa.url;WGa&&XGa&&(TGa[wO[WGa]]=XGa)}a.le=TGa}var YGa=So.drmParams;YGa&&(a.drmParams=
YGa);var ZGa=So.dashManifestUrl;ZGa&&(a.Pc=g.cj(ZGa,{cpn:a.clientPlaybackNonce}));var $Ga=So.hlsManifestUrl;$Ga&&(a.hlsvp=$Ga);var aHa=So.probeUrl;aHa&&(a.probeUrl=zE(g.cj(aHa,{cpn:a.clientPlaybackNonce})));var bHa=So.serverAbrStreamingUrl;bHa&&(a.Fl=new g.FM(bHa,!0))}var cHa=a.playerResponse.trackingParams;cHa&&(a.Fa=cHa);var $c=a.playerResponse.videoDetails;if($c){var vm=b,M$=$c.videoId;M$&&(a.videoId=M$,vm.video_id||(vm.video_id=M$));var dHa=$c.channelId;dHa&&(a.U.uid=dHa.substring(2));var N$=
$c.title;N$&&(a.title=N$,vm.title||(vm.title=N$));var O$=$c.lengthSeconds;O$&&(a.lengthSeconds=Number(O$),vm.length_seconds||(vm.length_seconds=O$));var eHa=$c.keywords;eHa&&(a.keywords=MLa(eHa));var P$=$c.channelId;P$&&(a.Bm=P$,vm.ucid||(vm.ucid=P$));var fHa=$c.viewCount;fHa&&(a.rawViewCount=Number(fHa));var Q$=$c.author;Q$&&(a.author=Q$,vm.author||(vm.author=Q$));var gHa=$c.shortDescription;gHa&&(a.shortDescription=gHa);var hHa=$c.isCrawlable;hHa&&(a.isListed=hHa);var iHa=$c.musicVideoType;iHa&&
(a.musicVideoType=iHa);var R$=$c.isLive;R$!=null&&(a.isLivePlayback=R$);if(R$||$c.isUpcoming)a.isPremiere=!$c.isLiveContent;var jHa=$c.thumbnail;jHa&&(a.W=xQ(jHa));var kHa=$c.isExternallyHostedPodcast;kHa&&(a.isExternallyHostedPodcast=kHa);var S$=$c.viewerLivestreamJoinPosition;if(S$==null?0:S$.utcTimeMillis)a.Gz=ng(S$.utcTimeMillis);var lHa=De||null,T$=b;$c.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);$c.isUpcoming&&(a.isUpcoming=!0);if($c.isPostLiveDvr){a.je=!0;var mHa=$c.latencyClass;
mHa&&(a.latencyClass=ULa[mHa]||"UNKNOWN");$c.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var U$=!1;if(a.rb)a.allowLiveDvr=jP()?!0:os&&dR<5?!1:!0,a.isLivePlayback=!0;else if($c.isLive){T$.livestream="1";a.allowLiveDvr=$c.isLiveDvrEnabled?jP()?!0:os&&dR<5?!1:!0:!1;a.partnerId=27;$c.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var oHa=$c.latencyClass;oHa&&(a.latencyClass=ULa[oHa]||"UNKNOWN");var pHa=$c.liveChunkReadahead;pHa&&(a.liveChunkReadahead=pHa);var Tz=lHa&&lHa.livePlayerConfig;
if(Tz){Tz.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Tz.hasSubfragmentedWebm&&(a.dG=!0);Tz.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var qHa=Tz.liveExperimentalContentId;qHa&&(a.liveExperimentalContentId=Number(qHa));var rHa=Tz.isLiveHeadPlayable;a.N("html5_live_head_playable")&&rHa!=null&&(a.isLiveHeadPlayable=rHa)}U$=!0}else $c.isUpcoming&&(U$=!0);U$&&(a.isLivePlayback=!0,T$.adformat&&T$.adformat.split("_")[1]!=="8"||a.Ea.push("heartbeat"),a.Cr=!0)}var sHa=$c.isPrivate;
sHa!==void 0&&(a.isPrivate=vs(a.isPrivate,sHa))}if(X){var tHa=$c||null,uHa=!1,Uz=X.errorScreen;uHa=Uz&&(Uz.playerLegacyDesktopYpcOfferRenderer||Uz.playerLegacyDesktopYpcTrailerRenderer||Uz.ypcTrailerRenderer)?!0:tHa&&tHa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(X.status);if(!uHa){a.errorCode=UKa(X.errorCode)||"auth";var TS=Uz&&Uz.playerErrorMessageRenderer;if(TS){a.playerErrorMessageRenderer=TS;var vHa=TS.reason;vHa&&(a.errorReason=g.Qx(vHa));var V$=TS.subreason;V$&&(a.Do=
g.Qx(V$),a.Rw=V$)}else a.errorReason=X.reason||null;var W$=X.status;if(W$==="LOGIN_REQUIRED")a.errorDetail="1";else if(W$==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(W$==="AGE_CHECK_REQUIRED"){var wHa=X.errorScreen,xHa=wHa&&wHa.playerKavRenderer;a.errorDetail=xHa&&xHa.kavUrl?"4":"3"}else a.errorDetail=X.isBlockedInRestrictedMode?"5":"0"}}var yHa=a.playerResponse.interstitialPods;yHa&&hLa(a,yHa);a.Ua&&a.eventId&&(a.Ua=yr(a.Ua,{ei:a.eventId}));var X$=a.playerResponse.captions;if(X$&&X$.playerCaptionsTracklistRenderer)a:{var wm=
X$.playerCaptionsTracklistRenderer;a.captionTracks=[];if(wm.captionTracks)for(var zHa=g.x(wm.captionTracks),Y$=zHa.next();!Y$.done;Y$=zHa.next()){var xm=Y$.value,AHa=JLa(xm.baseUrl);if(!AHa)break a;var Z$={is_translateable:!!xm.isTranslatable,languageCode:xm.languageCode,languageName:xm.name&&g.Qx(xm.name),url:AHa,vss_id:xm.vssId,kind:xm.kind};Z$.name=xm.trackName;Z$.displayName=xm.name&&g.Qx(xm.name);a.captionTracks.push(new g.sQ(Z$))}a.gE=wm.audioTracks||[];a.q3=wm.defaultAudioTrackIndex||0;a.Hw=
[];if(wm.translationLanguages)for(var BHa=g.x(wm.translationLanguages),$$=BHa.next();!$$.done;$$=BHa.next()){var Vz=$$.value,Qu={};Qu.languageCode=Vz.languageCode;Qu.languageName=g.Qx(Vz.languageName);if(Vz.translationSourceTrackIndices){Qu.translationSourceTrackIndices=[];for(var CHa=g.x(Vz.translationSourceTrackIndices),aaa=CHa.next();!aaa.done;aaa=CHa.next())Qu.translationSourceTrackIndices.push(aaa.value)}if(Vz.excludeAudioTrackIndices){Qu.excludeAudioTrackIndices=[];for(var DHa=g.x(Vz.excludeAudioTrackIndices),
baa=DHa.next();!baa.done;baa=DHa.next())Qu.excludeAudioTrackIndices.push(baa.value)}a.Hw.push(Qu)}a.iE=[];if(wm.defaultTranslationSourceTrackIndices)for(var EHa=g.x(wm.defaultTranslationSourceTrackIndices),caa=EHa.next();!caa.done;caa=EHa.next())a.iE.push(caa.value);a.Gw=!!wm.contribute&&!!wm.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.Op=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&a.playerResponse.playerConfig&&
a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&jLa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var FHa;a.compositeLiveIngestionOffsetToken=(FHa=a.playerResponse.playbackTracking)==null?void 0:FHa.compositeLiveIngestionOffsetToken;var GHa;a.compositeLiveStatusToken=(GHa=a.playerResponse.playbackTracking)==null?void 0:GHa.compositeLiveStatusToken}ZQ(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var HHa=
b.hlsdvr;HHa!=null&&(a.allowLiveDvr=Number(HHa)===1?jP()?!0:os&&dR<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Cw||(a.Cw=b.encoded_ad_safety_reason||null);a.oL=b.agcid||null;a.UD=b.ad_id||null;a.YD=b.ad_sys||null;a.zE=b.encoded_ad_playback_context||null;a.Bl=vs(a.Bl,b.infringe||b.muted);a.S4=b.authkey;a.H4=b.authuser;a.mutedAutoplay=vs(a.mutedAutoplay,b&&b.playmuted);a.hE=vs(a.hE,b&&b.mutedautoplay);var US=b.length_seconds;US&&(a.lengthSeconds=typeof US==="string"?ng(US):US);if(a.isAd()||a.Un||
!g.Cs(g.QP(a.Ca)))a.endSeconds=xs(a.endSeconds,a.vD||b.end||b.endSeconds);else{var Phb=g.QP(a.Ca),VS=a.lengthSeconds;switch(Phb){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":VS>30?a.limitedPlaybackDurationInSeconds=30:VS<30&&VS>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=VS*.2}}a.Fa=ys(a.Fa,b.itct);a.BH=vs(a.BH,b.noiba);a.RI=vs(a.RI,b.is_live_destination);a.isLivePlayback=vs(a.isLivePlayback,
b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.Yb();b.isUpcoming&&(a.isUpcoming=vs(a.isUpcoming,b.isUpcoming));a.je=vs(a.je,b.post_live_playback);a.Ma&&(a.je=!1);a.isMdxPlayback=vs(a.isMdxPlayback,b.mdx);var WS=b.mdx_control_mode;WS&&(a.mdxControlMode=typeof WS==="number"?WS:ng(WS));a.isInlinePlaybackNoAd=vs(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.uc=xs(a.uc,b.reload_count);a.reloadReason=ys(a.reloadReason,b.reload_reason);a.Gl=vs(a.Gl,b.show_content_thumbnail);
a.TI=vs(a.TI,b.utpsa);a.cycToken=b.cyc||null;a.lE=b.tkn||null;var IHa=wQ(b);Object.keys(IHa).length>0&&(a.W=IHa);a.ra=ys(a.ra,b.vvt);a.mdxEnvironment=ys(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.a5=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=ys(a.playlistId,b.list);b.index&&(a.playlistIndex=a.playlistIndex===
void 0?xs(0,b.index):xs(a.playlistIndex,b.index));a.pX=b.pyv_view_beacon_url;a.vY=b.pyv_quartile25_beacon_url;a.BY=b.pyv_quartile50_beacon_url;a.KY=b.pyv_quartile75_beacon_url;a.bY=b.pyv_quartile100_beacon_url;var JHa=b.session_data;!a.wZ&&JHa&&(a.wZ=sr(JHa,"&").feature);a.isFling=xs(a.isFling?1:0,b.is_fling)===1;a.vnd=xs(a.vnd,b.vnd);a.forceAdsUrl=ys(a.forceAdsUrl,b.force_ads_url);a.uj=ys(a.uj,b.ctrl);a.gk=ys(a.gk,b.ytr);a.kx=b.ytrcc;a.SZ=b.ytrexp;a.bE=b.ytrext;a.Vb=ys(a.Vb,b.adformat);a.Fz=ys(a.Fz,
b.attrib);a.slotPosition=xs(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Fq=vs(a.Fq,b.ssrt);a.videoId=As(b)||a.videoId;a.L=ys(a.L,b.vss_credentials_token);a.Sn=ys(a.Sn,b.vss_credentials_token_type);a.Zf=vs(a.Zf,b.audio_only);a.yE=vs(a.yE,b.aac_high);a.yD=vs(a.yD,b.prefer_low_quality_audio);a.sE=vs(a.sE,b.uncap_inline_quality);a.N("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.bq=a.bq.concat(b.qoe_cat.split(","))):a.Rg=ys(a.Rg,b.qoe_cat);a.Wn=vs(a.Wn,b.download_media);var KHa=b.prefer_gapless;
var Qhb=KHa!=null?vs(a.Z,KHa):a.Z?a.Z:a.Ca.preferGapless&&a.Ca.supportsGaplessShorts();a.Z=Qhb;jCa(a.playerResponse)&&(a.adModule=!0,a.Ea.push("ad"),a.N("html5_ssap_pacf_qoe_ctmp")&&a.oa("ssap",{npa:0}));var LHa=b.adaptive_fmts;LHa&&(a.adaptiveFormats=LHa,a.oa("adpfmts",{},!0));var MHa=b.allow_embed;MHa&&(a.allowEmbed=Number(MHa)===1);var NHa=b.backgroundable;NHa&&(a.backgroundable=Number(NHa)===1);var OHa=b.autonav;OHa&&(a.isAutonav=Number(OHa)===1);var PHa=b.autoplay;PHa&&(a.wp=Number(PHa)===1,
a.qj=a.wp,aR(a,"c"));var QHa=b.iv_load_policy;QHa&&(a.annotationsLoadPolicy=ws(a.annotationsLoadPolicy,QHa,RP));var RHa=b.cc_lang_pref;RHa&&(a.captionsLanguagePreference=ys(RHa,a.captionsLanguagePreference));var SHa=b.cc_load_policy;SHa&&(a.wD=ws(a.wD,SHa,RP));var THa;a.deviceCaptionsOn=(THa=b.device_captions_on)!=null?THa:void 0;var UHa;a.M3=(UHa=b.device_captions_lang_pref)!=null?UHa:"";var VHa;a.wE=(VHa=b.viewer_selected_caption_langs)!=null?VHa:[];if(!a.N("html5_enable_ssap_entity_id")){var WHa=
b.cached_load;WHa&&(a.Vp=vs(a.Vp,WHa))}if(b.dash==="0"||b.dash===0||b.dash===!1)a.rE=!0;var XHa=b.dashmpd;XHa&&(a.Pc=g.cj(XHa,{cpn:a.clientPlaybackNonce}));var YHa=b.delay;YHa&&(a.Db=ng(YHa));var daa=a.vD||b.end;if(a.Jc?daa!=null:daa!=void 0)a.clipEnd=xs(a.clipEnd,daa);var ZHa=b.fmt_list;ZHa&&(a.sG=ZHa);b.heartbeat_preroll&&a.Ea.push("heartbeat");a.Tn=-Math.floor(Math.random()*10);a.mw=-Math.floor(Math.random()*40);var $Ha=b.is_listed;$Ha&&(a.isListed=vs(a.isListed,$Ha));var aIa=b.is_private;aIa&&
(a.isPrivate=vs(a.isPrivate,aIa));var bIa=b.is_dni;bIa&&(a.Nf=vs(a.Nf,bIa));var cIa=b.dni_color;cIa&&(a.cq=ys(a.cq,cIa));var dIa=b.pipable;dIa&&(a.pipable=vs(a.pipable,dIa));a.vL=a.pipable&&a.Ca.Br;a.g4=a.vL&&!a.Ca.showMiniplayerButton;var eIa=b.paid_content_overlay_duration_ms;eIa&&(a.paidContentOverlayDurationMs=ng(eIa));var fIa=b.paid_content_overlay_text;fIa&&(a.paidContentOverlayText=fIa);var gIa=b.url_encoded_fmt_stream_map;gIa&&(a.Yf=gIa);var hIa=b.hls_formats;hIa&&(a.hlsFormats=hIa);var iIa=
b.hlsvp;iIa&&(a.hlsvp=iIa);var XS=b.live_start_walltime;XS&&(a.rD=typeof XS==="number"?XS:ng(XS));var YS=b.live_manifest_duration;YS&&(a.vk=typeof YS==="number"?YS:ng(YS));var jIa=b.player_params;jIa&&(a.playerParams=jIa);var kIa=b.partnerid;kIa&&(a.partnerId=xs(a.partnerId,kIa));var lIa=b.probe_url;lIa&&(a.probeUrl=zE(g.cj(lIa,{cpn:a.clientPlaybackNonce})));var eaa=b.pyv_billable_url;eaa&&uwa(eaa)&&(a.Qj=eaa);var faa=b.pyv_conv_url;faa&&uwa(faa)&&(a.CX=faa);NLa(a,b);a.startSeconds>0?a.N("html5_log_start_seconds_inconsistency")&&
a.startSeconds!==(a.Op||a.ao||b.start||b.startSeconds)&&a.oa("lss",{css:a.startSeconds,pcss:a.Op,iss:a.ao,ps:b.start||void 0,pss:b.startSeconds||void 0}):(a.startSeconds=xs(a.startSeconds,a.Op||a.ao||b.start||b.startSeconds),a.Ib=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var mIa=b.live_utc_start;if(mIa!=null)a.liveUtcStartSeconds=Number(mIa);else{var gaa=a.startSeconds;gaa&&isFinite(gaa)&&gaa>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>
0)){var nIa=b.utc_start_millis;nIa&&(a.liveUtcStartSeconds=Number(nIa)*.001)}var oIa=b.stream_time_start_millis;oIa&&(a.Xd=Number(oIa)*.001);var haa=a.ao||b.start;(a.Jc?haa==null||Number(b.resume)===1:haa==void 0||b.resume=="1")||a.isLivePlayback||(a.clipStart=xs(a.clipStart,haa));var pIa=b.url_encoded_third_party_media;pIa&&(a.Hm=vr(pIa));var iaa=b.ypc_offer_button_formatted_text;if(iaa){var qIa=JSON.parse(iaa);a.AE=qIa!=null?qIa:null;a.z4=iaa}var rIa=b.ypc_offer_button_text;rIa&&(a.Lz=rIa);var sIa=
b.ypc_offer_description;sIa&&(a.hw=sIa);var tIa=b.ypc_offer_headline;tIa&&(a.Mz=tIa);var uIa=b.ypc_full_video_message;uIa&&(a.yr=uIa);var vIa=b.ypc_offer_id;vIa&&(a.Jm=vIa);var wIa=b.ypc_buy_url;wIa&&(a.Iz=wIa);var xIa=b.ypc_item_thumbnail;xIa&&(a.Jz=xIa);var yIa=b.ypc_item_title;yIa&&(a.Br=yIa);var zIa=b.ypc_item_url;zIa&&(a.Kz=zIa);var AIa=b.ypc_vid;AIa&&(a.Et=AIa);b.ypc_overlay_timeout&&(a.Dt=Number(b.ypc_overlay_timeout));var BIa=b.ypc_trailer_player_vars;BIa&&(a.Km=ur(BIa));var CIa=b.ypc_original_itct;
CIa&&(a.p7=CIa);a.Bm=ys(a.Bm,b.ucid);b.baseUrl&&(a.U.baseUrl=b.baseUrl);b.uid&&(a.U.uid=b.uid);b.oeid&&(a.U.oeid=b.oeid);b.ieid&&(a.U.ieid=b.ieid);b.ppe&&(a.U.ppe=b.ppe);b.engaged&&(a.U.engaged=b.engaged);b.subscribed&&(a.U.subscribed=b.subscribed);a.U.focEnabled=vs(a.U.focEnabled,b.focEnabled);a.U.rmktEnabled=vs(a.U.rmktEnabled,b.rmktEnabled);a.aD=b.storyboard_spec||null;a.Zw=b.live_storyboard_spec||null;a.WW=b.iv_endscreen_url||null;a.oD=vs(a.oD,b.iv3_module);a.Cr=vs(a.Cr,b.ypc_license_checker_module);
a.ek=vs(a.ek,b.ypc_module);a.lh=vs(a.lh,b.ypc_clickwrap_module);a.ek&&a.Ea.push("ypc");a.lh&&a.Ea.push("ypc_clickwrap");a.jX={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 DIa=b.cotn;DIa&&(a.cotn=DIa);if(VLa(a))eR(a)&&(a.isLivePlayback&&a.Pc&&(a.Kj=!0),a.Za&&(a.Kp=!0));else if(WLa(a))a.Kj=!0;else{var GIa,HIa,IIa=((GIa=a.playerResponse)==null?void 0:(HIa=GIa.streamingData)==null?void 0:HIa.adaptiveFormats)||[];if(IIa.length>0)var KH=XLa(a,IIa);else{var KIa=a.adaptiveFormats;if(KIa&&!eR(a)){fR(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(JO=!0);var Wz=gR(KIa),jaa=a.le,LIa=a.lengthSeconds,
Rhb=a.isLivePlayback,LH=a.je,Xz=a.Ca,Shb=EIa(Wz);if(Rhb||LH){var MIa=Xz==null?void 0:Xz.experiments,Qj=new uO("",MIa,!0);Qj.Yb=!0;Qj.isManifestless=!0;Qj.B=!LH;Qj.isLive=!LH;Qj.je=LH;for(var NIa=g.x(Wz),kaa=NIa.next();!kaa.done;kaa=NIa.next()){var Yz=kaa.value,OIa=yO(Yz,jaa),Ru=zO(Yz.url,Yz.sp,Yz.s),PIa=Ru.get("id");PIa&&PIa.includes("%7E")&&(Qj.Z=!0);var QIa=void 0,Thb=(QIa=MIa)==null?void 0:QIa.fb("html5_max_known_end_time_rebase"),Uhb=Number(Yz.target_duration_sec)||5,Vhb=Number(Yz.max_dvr_duration_sec)||
14400,RIa=Number(Ru.get("mindsq")||Ru.get("min_sq")||"0"),SIa=Number(Ru.get("maxdsq")||Ru.get("max_sq")||"0")||Infinity;Qj.mf=Qj.mf||RIa;Qj.Di=Qj.Di||SIa;var Whb=!wG(OIa.mimeType);Ru&&rO(Qj,new eO(Ru,OIa,{lk:Uhb,qo:Whb,Qr:Vhb,mf:RIa,Di:SIa,IB:300,je:LH,HI:Thb}))}var TIa=Qj}else{if(Shb==="FORMAT_STREAM_TYPE_OTF"){var $S=LIa;$S=$S===void 0?0:$S;var Zz=new uO("",Xz==null?void 0:Xz.experiments,!1);Zz.duration=$S||0;for(var UIa=g.x(Wz),laa=UIa.next();!laa.done;laa=UIa.next()){var $z=laa.value,maa=yO($z,
jaa,Zz.duration),naa=zO($z.url,$z.sp,$z.s);if(naa)if(maa.streamType==="FORMAT_STREAM_TYPE_OTF")rO(Zz,new fO(naa,maa,"sq/0"));else{var Xhb=KN($z.init),Yhb=KN($z.index);rO(Zz,new oO(naa,maa,Xhb,Yhb))}}Zz.isOtf=!0;var VIa=Zz}else{var aT=LIa;aT=aT===void 0?0:aT;var bT=new uO("",Xz==null?void 0:Xz.experiments,!1);bT.duration=aT||0;for(var WIa=g.x(Wz),oaa=WIa.next();!oaa.done;oaa=WIa.next()){var aA=oaa.value,Zhb=yO(aA,jaa,bT.duration),$hb=KN(aA.init),aib=KN(aA.index),XIa=zO(aA.url,aA.sp,aA.s);XIa&&rO(bT,
new oO(XIa,Zhb,$hb,aib))}VIa=bT}TIa=VIa}var YIa=TIa;if(Wz.length>0){var ZIa=Wz[0];if(a.V().playerStyle==="hangouts-meet"&&ZIa.url){var bib=g.wr(ZIa.url);a.Sq=a.Sq||Number(bib.expire)}}var cib=a.isLivePlayback&&!a.je&&!a.Ma&&!a.isPremiere;a.N("html5_live_head_playable")&&(!hR(a)&&cib&&a.oa("missingLiveHeadPlayable",{}),a.Ca.qa==="yt"&&(YIa.Ua=!0));KH=YIa}else KH=null;a.oa("pafmts",{isManifestFilled:!!KH})}if(KH){YLa(a,KH);var $Ia=!0}else $Ia=!1;$Ia?a.enableServerStitchedDai=a.enableServerStitchedDai&&
iR(a):a.Pc&&(a.Ca.qa==="yt"&&a.Yb()&&a.N("drm_manifestless_unplugged")&&a.N("html5_deprecate_manifestful_fallback")?a.oa("deprecateMflFallback",{}):a.Kj=!0)}var qaa=b.adpings;qaa&&(a.qw=qaa?ur(qaa):null);var aJa=b.feature;aJa&&(a.qq=aJa);var bJa=b.referrer;bJa&&(a.referrer=bJa);a.clientScreenNonce=ys(a.clientScreenNonce,b.csn);a.RH=xs(a.RH,b.root_ve_type);a.Lp=xs(a.Lp,b.kids_age_up_mode);a.Jc||b.kids_app_info==void 0||(a.kidsAppInfo=b.kids_app_info);a.Jc&&b.kids_app_info!=null&&(a.kidsAppInfo=b.kids_app_info);
a.jD=vs(a.jD,b.upg_content_filter_mode);a.unpluggedFilterModeType=xs(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var cJa=b.unplugged_location_info;cJa&&(a.qa=cJa);var dJa=b.unplugged_partner_opt_out;dJa&&(a.SD=ys("",dJa));a.Mw=vs(a.Mw,b.disable_watch_next);a.Zn=ys(a.Zn,b.internal_ip_override);a.AI=!!b.is_yto_interstitial;(a.interstitials.length||a.AI)&&a.Ea.push("yto");var eJa=b.An;eJa&&(a.An=eJa);b.rN&&(a.rN=b.rN);var fJa;a.Va=(fJa=b.csi_timer)!=null?fJa:"";a.Yn=!!b.force_gvi;b.watchUrl&&
(a.watchUrl=b.watchUrl);var Su=b.watch_endpoint;a.N("html5_attach_watch_endpoint_ustreamer_config")&&Su&&WKa(a,Su);if(Su==null?0:Su.ustreamerConfig)a.Fp=pP(Su.ustreamerConfig);var gJa,hJa,iJa=Su==null?void 0:(gJa=Su.loggingContext)==null?void 0:(hJa=gJa.qoeLoggingContext)==null?void 0:hJa.serializedContextData;iJa&&(a.h7=iJa);g.HP(a.Ca)&&a.Ca.Gl&&(a.embedsRct=ys(a.embedsRct,b.rct),a.embedsRctn=ys(a.embedsRctn,b.rctn));a.wk=a.wk||!!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.jR(a)&&!e&&a.Fv("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Vp||!e?"":(ZLa.has(e)?c="":(b=$La.push(e),ZLa.add(e),b>(c!=null?c:50)&&(c=$La.shift())&&ZLa.delete(c),c=e),e!==c&&a.Fv("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)};
ZQ=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.Pa=c;var e=a.Pa.playerCueRangeSet;e&&g.bR(a,e);var f=a.Pa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.Q(l,aMa),a.N("web_player_autonav_use_server_provided_state")&&bMa(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.Qx(p.title)),p.subtitle&&(b.subtitle=g.Qx(p.subtitle)))}g.NP(a.Ca)&&(a.He=!!h.addToMenu);cMa(a,h.shareButton);a.N("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.L4=g.Q(q,dMa));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,eMa);if(y){a.zG=Number(y==null?void 0:y.durationMs)||NaN;if(y==null?0:y.infoPanelOverviewViewModel)a.yf=y==null?void 0:y.infoPanelOverviewViewModel;if(y==null?0:y.infoPanelDetailsViewModel)a.rk=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,fMa);H&&(H.suppressShareButton&&(a.showShareButton=!1),H.suppressWatchLaterButton&&(a.He=!1))}n&&gMa(a,b,n);var K=xs(0,b.autoplay_count),N=a.getWatchNextResponse(),W,V=(W=N.contents)==null?void 0:W.twoColumnWatchNextResults,da,na,X,R=(da=N.playerOverlays)==null?void 0:(na=da.playerOverlayRenderer)==null?void 0:(X=na.autoplay)==null?void 0:X.playerOverlayAutoplayRenderer,Y=lLa(a),v,U=(v=N.contents)==null?void 0:v.singleColumnWatchNextResults;if(U){var $a;if((($a=
U.autoplay)==null?0:$a.autoplay)&&!U.playlist){var wb=U.autoplay.autoplay.sets,ob={},Ea=new g.DQ(a.V()),db=null,tb;if(wb){for(var ab=g.x(wb),B=ab.next();!B.done;B=ab.next()){var D=B.value.autoplayVideoRenderer;if(D&&D.compactVideoRenderer){db=D.compactVideoRenderer;break}}if(tb=wb[0].autoplayVideo){var E=tb.clickTrackingParams;E&&(ob.itct=E);ob.autonav="1";ob.playnext=String(K)}}else ob.feature="related-auto";var J=g.Q(tb,g.kR);if(db){Ea.videoId=db.videoId;var M=db.shortBylineText;M&&(Ea.author=g.Qx(M));
var aa=db.title;aa&&(Ea.title=g.Qx(aa))}else J!=null&&J.videoId&&(Ea.videoId=J.videoId);Ea.qF=ob;a.suggestions=[];a.Ew=Ea}}if(Y){for(var ha=[],ea=g.x(Y),L=ea.next();!L.done;L=ea.next()){var oa=L.value,ua=void 0,ia=null;if(oa.endScreenVideoRenderer){var La=oa.endScreenVideoRenderer,kb=La.title;ia=new g.DQ(a.V());ia.videoId=La.videoId;ia.lengthSeconds=La.lengthInSeconds||0;var Sb=La.publishedTimeText;Sb&&(ia.publishedTimeText=g.Qx(Sb));var rc=La.shortBylineText;rc&&(ia.author=g.Qx(rc));var Wa=La.shortViewCountText;
Wa&&(ia.shortViewCount=g.Qx(Wa));if(kb){ia.title=g.Qx(kb);var Oc=kb.accessibility;if(Oc){var pe=Oc.accessibilityData;pe&&pe.label&&(ia.ariaLabel=pe.label)}}var Se=La.navigationEndpoint;if(Se){ua=Se.clickTrackingParams;var Te=g.Q(Se,g.kR),Ug=g.Q(Se,g.jy);Te?ia.rF=Te:Ug!=null&&(ia.watchUrl=Ug.url)}var Ah=La.thumbnailOverlays;if(Ah)for(var Vc=g.x(Ah),$h=Vc.next();!$h.done;$h=Vc.next()){var Vg=$h.value.thumbnailOverlayTimeStatusRenderer;if(Vg)if(Vg.style==="LIVE"){ia.isLivePlayback=!0;break}else if(Vg.style===
"UPCOMING"){ia.isUpcoming=!0;break}}ia.W=xQ(La.thumbnail)}else if(oa.endScreenPlaylistRenderer){var ug=oa.endScreenPlaylistRenderer,Oi=ug.navigationEndpoint;if(!Oi)continue;var Oj=g.Q(Oi,g.kR);if(!Oj)continue;var td=Oj.videoId;ia=new g.CQ(a.V());ia.playlistId=ug.playlistId;ia.playlistLength=Number(ug.videoCount)||0;ia.j=td||null;ia.videoId=td;var Pi=ug.title;Pi&&(ia.title=g.Qx(Pi));var Vk=ug.shortBylineText;Vk&&(ia.author=g.Qx(Vk));ua=Oi.clickTrackingParams;ia.W=xQ(ug.thumbnail)}ia&&(ua&&(ia.sessionData=
{itct:ua}),ha.push(ia))}a.suggestions=ha}if(R){a.kX=!!R.preferImmediateRedirect;a.Xf=a.Xf||!!R.webShowNewAutonavCountdown;a.Cm=a.Cm||!!R.webShowBigThumbnailEndscreen;if(a.Xf||a.Cm){var Pj=V||null,id=new g.DQ(a.V());id.videoId=R.videoId;var Bh=R.videoTitle;if(Bh){id.title=g.Qx(Bh);var jc=Bh.accessibility;if(jc){var No=jc.accessibilityData;No&&No.label&&(id.ariaLabel=No.label)}}var cr=R.byline;cr&&(id.author=g.Qx(cr));var sc=R.publishedTimeText;sc&&(id.publishedTimeText=g.Qx(sc));var eH=R.shortViewCountText;
eH&&(id.shortViewCount=g.Qx(eH));var fH=R.thumbnailOverlays;if(fH)for(var gH=g.x(fH),Jz=gH.next();!Jz.done;Jz=gH.next()){var rm=Jz.value.thumbnailOverlayTimeStatusRenderer;if(rm)if(rm.style==="LIVE"){id.isLivePlayback=!0;break}else if(rm.style==="UPCOMING"){id.isUpcoming=!0;break}else if(rm.style==="DEFAULT"&&rm.text){id.lengthText=g.Qx(rm.text);var hH=rm.text.accessibility;if(hH){var Kz=hH.accessibilityData;Kz&&Kz.label&&(id.qy=Kz.label||"")}break}}id.W=xQ(R.background);var Lz=R.nextButton;if(Lz){var iH=
Lz.buttonRenderer;if(iH){var jH=iH.navigationEndpoint;if(jH){var kH=g.Q(jH,g.kR);kH&&(id.rF=kH)}}}if(R.topBadges){var lH=R.topBadges[0];if(lH){var mH=g.Q(lH,hMa);mH&&mH.style==="BADGE_STYLE_TYPE_PREMIUM"&&(id.rN=!0)}}var nH=R.alternativeTitle;nH&&(id.Ot=g.Qx(nH));var Oo={autonav:"1",playnext:String(K)};id.playlistId&&(Oo.autoplay="1");if(Pj){var GS,oH,HS,Wg,Ju=(GS=Pj.autoplay)==null?void 0:(oH=GS.autoplay)==null?void 0:(HS=oH.sets)==null?void 0:(Wg=HS[0])==null?void 0:Wg.autoplayVideo;if(Ju){var pH=
Ju.clickTrackingParams;pH&&(Oo.itct=pH);var qH=g.Q(Ju,g.kR);qH&&(id.KX=qH)}}else if(R){var rH,Mz,sH,tH=(rH=R.nextButton)==null?void 0:(Mz=rH.buttonRenderer)==null?void 0:(sH=Mz.navigationEndpoint)==null?void 0:sH.clickTrackingParams;tH&&(Oo.itct=tH)}Oo.itct||(Oo.feature="related-auto");id.qF=Oo;a.suggestions||(a.suggestions=[]);a.Ew=id}R.countDownSecs!=null&&(a.OM=R.countDownSecs*1E3);R.countDownSecsForFullscreen!=null&&(a.eE=R.countDownSecsForFullscreen>=0?R.countDownSecsForFullscreen*1E3:-1);if(a.N("web_player_autonav_next_button_renderer")){var uH;
a.Z4=(uH=R.nextButton)==null?void 0:uH.buttonRenderer}var vH;a.V4=(vH=R.cancelButton)==null?void 0:vH.buttonRenderer;a.N("web_autonav_color_transition")&&R.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.Q(R.watchToWatchTransitionRenderer,iMa))}var Nz=lLa(a);if(Nz){var wH,IS,xH,Oz=Nz==null?void 0:(wH=Nz[0])==null?void 0:(IS=wH.endScreenVideoRenderer)==null?void 0:(xH=IS.navigationEndpoint)==null?void 0:xH.clickTrackingParams,yH=g.lR(a);Oz&&yH&&(yH.sessionData={itct:Oz})}a.Pa.currentVideoThumbnail&&
(a.W=xQ(a.Pa.currentVideoThumbnail));var zH,Po,De,Qo,Pz,Ku=(zH=a.Pa)==null?void 0:(Po=zH.contents)==null?void 0:(De=Po.twoColumnWatchNextResults)==null?void 0:(Qo=De.results)==null?void 0:(Pz=Qo.results)==null?void 0:Pz.contents;if(Ku&&Ku[1]){var Lu,Mu,AH,sm,Nu=(Lu=Ku[1].videoSecondaryInfoRenderer)==null?void 0:(Mu=Lu.owner)==null?void 0:(AH=Mu.videoOwnerRenderer)==null?void 0:(sm=AH.thumbnail)==null?void 0:sm.thumbnails;Nu&&Nu.length&&(a.profilePicture=Nu[Nu.length-1].url)}var JS=As(b),BH,Wk=(BH=
a.getWatchNextResponse())==null?void 0:BH.onResponseReceivedEndpoints;if(Wk)for(var CH=g.x(Wk),Qz=CH.next();!Qz.done;Qz=CH.next()){var Rz=Qz.value;g.Q(Rz,mR)&&(a.aX=g.Q(Rz,mR));var tm=g.Q(Rz,jMa),DH=void 0;if((DH=tm)==null?0:DH.entityKeys)a.sx=tm.entityKeys||[],tm.visibleOnLoadKeys&&(a.visibleOnLoadKeys=tm.visibleOnLoadKeys)}if(a.N("web_key_moments_markers")){var KS=g.nR.getState().entities,EH=g.GB("visibility_override","markersVisibilityOverrideEntity");var dr=IB(KS,"markersVisibilityOverrideEntity",
EH);a.ib=(dr==null?void 0:dr.videoId)===(a.videoId||JS)&&(dr==null?0:dr.visibilityOverrideMarkersKey)?dr.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.z(a.ib))}}};
bMa=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0};
kMa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
g.qR=function(a){var b=a.Z;a.N("html5_gapless_unlimit_format_selection")&&oR(a)&&(b=!1);var c=!!a.j&&a.j.Yb,d=a.Ca,e=a.vR(),f=pR(a),h=a.yE,l=b,m=a.isOtf();b=a.qJ();var n=a.rb,p=a.getUserAudio51Preference(),q=lMa(a),r=new wJa(d);if(d.Xb()||d.N("html5_logging_format_selection"))r.B=!0;r.eb=f;r.Pa=h&&d.U;r.La=p;g.gs("windows nt 5.1")&&!g.VO&&(r.pp=!0);if(f=e)f=g.fQ(d)?wKa(d):!1;f&&(r.Ba=!0);l&&(r.pp=!0,r.Dd=!0);m&&!d.N("html5_otf_prefer_vp9")&&(r.pp=!0);d.playerStyle==="picasaweb"&&(m&&(r.pp=!1),r.Ea=
!1);n&&(r.pp=!0);DM(d.G,EM.CHANNELS)&&(d.N("html5_enable_aac51")&&(r.ra=!0),d.N("html5_enable_ac3")&&(r.D=!0),d.N("html5_enable_eac3")&&(r.G=!0),d.N("html5_enable_ac3_gapless")&&(r.Va=!0));d.N("html5_block_8k_hfr")&&(r.rb=!0);r.L=g.KD(d.experiments,"html5_max_selectable_quality_ordinal");r.U=g.KD(d.experiments,"html5_min_selectable_quality_ordinal");iP&&(r.Jc=480);if(c||e)r.Ea=!1;r.tb=!1;r.disableAv1=q;c=MO(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(KG()||d.N("html5_format_hybridization"))&&(r.j.supportsChangeType=
+KG(),r.Gj=c);c>=2160&&(r.Fa=!0);XCa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.kd=!1);r.qJ=b;r.Za=g.ou||ts()&&!b?!1:!0;r.Z=d.N("html5_format_hybridization");r.Ib=d.N("html5_disable_encrypted_vp9_live_non_2k_4k");cR(a)&&(r.Pc=a.N("html5_prefer_language_over_codec"));js()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(r.D=!0,r.G=!0);a.Z&&a.isAd()&&(a.ow&&(r.qa=a.ow),a.nw&&(r.C=
a.nw));r.Ua=a.isLivePlayback&&a.Si()&&a.Ca.N("html5_drm_live_audio_51");r.Db=a.tE;return a.Te=r};
lMa=function(a){return a.Ca.N("html5_disable_av1")||a.N("html5_gapless_shorts_disable_av1")&&oR(a)?!0:!1};
nMa=function(a){uA("drm_pb_s",void 0,a.Va);a.Za||a.j&&yM(a.j);var b={};a.j&&(b=iEa(a.Lw,g.qR(a),a.Ca.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
b=new aP(b,a.Ca,a.v2,a.useCobaltWidevine?js()?mMa(a):!1:!1,function(c,d){a.oa(c,d)});
g.P(a,b);a.Kp=!1;a.loading=!0;HJa(b,function(c){uA("drm_pb_f",void 0,a.Va);for(var d=g.x(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Za=a.Za;e.Qw=a.Qw;e.Pw=a.Pw;break;case "widevine":e.Im=a.Im}a.Pp=c;if(a.Pp.length>0&&(a.G=a.Pp[0],a.Ca.Xb())){c={};d=g.x(Object.entries(a.G.j));for(e=d.next();!e.done;e=d.next()){var f=g.x(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.oa("drmProbe",c)}YQ(a)})};
XLa=function(a,b){if(b.length===0||eR(a))return null;fR(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(JO=!0);var c=a.le;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.je,h=a.Ca,l=FIa(b);if(e||f){h=h.experiments;d=new uO("",h,!0);d.B=!f;d.Yb=!0;d.isManifestless=!0;d.isLive=!f;d.je=f;b=g.x(b);for(e=b.next();!e.done;e=b.next()){var m=e.value;e=xO(m,c);l=LM(m);l=zO(l.RE||m.url||"",l.mI,l.s);var n=l.get("id");n&&n.includes("%7E")&&(d.Z=!0);var p=void 0;n=(p=h)==null?void 0:p.fb("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.mf=d.mf||q;d.Di=d.Di||r;var t=!wG(e.mimeType);l&&rO(d,new eO(l,e,{lk:p,qo:t,Qr:m,mf:q,Di:r,IB:300,je:f,HI:n}))}c=d}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new uO("",h.experiments,!1);f.duration=d||0;h=g.x(b);for(d=h.next();!d.done;d=h.next())d=d.value,b=xO(d,c,f.duration),e=LM(d),(e=zO(e.RE||d.url||"",
e.mI,e.s))&&(b.streamType==="FORMAT_STREAM_TYPE_OTF"?rO(f,new fO(e,b,"sq/0")):rO(f,new oO(e,b,MN(d.initRange),MN(d.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new uO("",h.experiments,!1);f.duration=d||0;h=g.x(b);for(d=h.next();!d.done;d=h.next())l=d.value,d=xO(l,c,f.duration),b=MN(l.initRange),e=MN(l.indexRange),n=LM(l),(l=zO(n.RE||l.url||"",n.mI,n.s))&&rO(f,new oO(l,d,b,e));c=f}f=a.isLivePlayback&&!a.je&&!a.Ma&&!a.isPremiere;a.N("html5_live_head_playable")&&(!hR(a)&&f&&a.oa("missingLiveHeadPlayable",
{}),a.Ca.qa==="yt"&&(c.Ua=!0));return c};
eR=function(a){return js()?!mMa(a):ls()?!(!a.Za||!a.N("html5_enable_safari_fairplay")&&jP()):!1};
mMa=function(a){return a.N("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.bR=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.dE.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}};
iR=function(a){return!(!a.j||!a.j.isManifestless)};
rR=function(a){return a.Jc?a.isLowLatencyLiveStream&&a.j!=null&&DO(a.j)>=5:a.isLowLatencyLiveStream&&a.j!=void 0&&DO(a.j)>=5};
VLa=function(a){return js()&&mMa(a)?!1:eR(a)&&(g.WD(a.Ca)?!a.isLivePlayback:a.hlsvp)||!jP()||a.rE?!0:!1};
pMa=function(a){a.loading=!0;a.Kj=!1;if(WLa(a))g.vLa(a.videoId).then(function(d){oMa(a,d)}).then(function(){YQ(a)});
else{xE(a.Pc)||g.fx(new g.lt("DASH MPD Origin invalid: ",a.Pc));var b=a.Pc,c=g.KD(a.Ca.experiments,"dash_manifest_version")||4;b=g.cj(b,{mpd_version:c});a.isLowLatencyLiveStream&&a.latencyClass!=="NORMAL"||(b=g.cj(b,{pacing:0}));pJa(b,a.Ca.experiments,a.isLivePlayback).then(function(d){a.Ja()||(YLa(a,d,!0),uA("mrc",void 0,a.Va),YQ(a))},function(d){a.Ja()||(a.loading=!1,a.publish("dataloaderror",new VF("manifest.net.retryexhausted",{backend:"manifest",
rc:d.status},1)))});
uA("mrs",void 0,a.Va)}};
oMa=function(a,b){var c=b.map(function(m){return m.itag}),d;
if((d=a.playerResponse)!=null&&d.streamingData){d=[];if(a.N("html5_offline_always_use_local_formats"))for(b=g.x(b),c=b.next();!c.done;c=b.next())c=Object.assign({},c.value),c.signatureCipher="",d.push(c);else for(var e=g.x(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={ij:void 0},f=e.next())if(h.ij=f.value,a.N("html5_fix_multi_audio_offline_playback")){f=g.x(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.ij.itag&&l.xtags===h.ij.xtags&&(h.ij=Object.assign({},
h.ij),h.ij.url=b.find(function(m){return function(n){return n.itag===m.ij.itag}}(h)).url,h.ij.signatureCipher="",d.push(h.ij))}else c.includes(h.ij.itag)&&(h.ij=Object.assign({},h.ij),h.ij.url=b.find(function(m){return function(n){return n.itag===m.ij.itag}}(h)).url,h.ij.signatureCipher="",d.push(h.ij));
d=XLa(a,d);pR(a)&&tJa(d,!1);YLa(a,d);a.oa("dlr",{})}else a.oa("offsdm",{cotn:a.tD?a.tD.cotn:"0",cpn:a.clientPlaybackNonce})};
qMa=function(a){var b;return!((b=a.Ca.getWebPlayerContextConfig())==null||!b.enableProximaLowLatency)};
sR=function(a){if(!a.isProximaLatencyEligible)return 0;var b=YL();return qMa(a)?2:b===1?1:a.N("html5_enable_proxima")?2:0};
YQ=function(a){a.Ja()||(a.loading=!1,a.publish("dataloaded"))};
YLa=function(a,b,c){c=c===void 0?!1:c;a.Fw=void 0;a.j=b;g.P(a,b);b.mf=a.mf;b.Di=a.Di;b.La=a.La;b.Sb=a.Sb;b.Ac=a.Ac;a.Fl&&(b.W=new CN(a.Fl));(a.vR()||g.tR(a))&&a.Ea.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");if(a.Jc?d.indexOf("manifest_duration")!==-1:d.indexOf("manifest_duration")!=-1)a.vk=Number(d[d.indexOf("manifest_duration")+1]);if(b.B||b.isManifestless)b.subscribe("clienttemp",a.oa,a),c?b.subscribe("refresh",a.I0,a):b.subscribe("cuepointsadded",a.cY,a);yM(b)?
a.Kp=!0:cP=void 0;a.Ma&&(b.D=a.Ma,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
sMa=function(a,b){var c=b||VLa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.oa("skipDash",{dm:!!a.j,air:b,dd:a.rE,mss:jP(),"3pp":a.isExternallyHostedPodcast}),Xr();pR(a)&&tJa(a.j,a.isLivePlayback);fR(a,"html5_enable_cobalt_experimental_vp9_decoder")&&XJa(a.Ca.G);return Yr().then(function(){return kEa(a.Lw,g.qR(a),a.Ca.G,a.j,a.G,function(d){return a.publish("ctmp","fmtflt",d)},a.uD,cR(a)&&a.N("html5_enable_server_format_filter")).then(function(d){rMa(a,d);
a.Lw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Te&&a.oa("av1",a.Te.j)})})};
tMa=function(a,b){if(b&&a.hlsvp)return Xr();if(a.hlsFormats){b=gR(a.hlsFormats);var c;if(((c=a.Te)==null?0:c.B)&&b){c=[];for(var d=g.x(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.oa("hlsfmt",{itags:c.join(".")})}a.Sw=KKa(a.Ca,b);c=a.clientPlaybackNonce;var f,h,l,m;return PKa(a.Ca,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.Dd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.x(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.oa("hlschl",{mn:p});var A;((A=a.Te)==null?0:A.B)&&a.oa("hlsfmtaf",{itags:q.join(".")});var C;if(a.N("html5_enable_vp9_fairplay")&&((C=a.G)==null?0:TO(C)))for(a.oa("drm",{sbdlfbk:1}),p=g.x(a.Pp),q=p.next();!q.done;q=p.next())if(q=q.value,SO(q)){a.G=q;break}uR(a,n)})}return Xr()};
uMa=function(a){if(a.isExternallyHostedPodcast&&a.Yf){var b=gR(a.Yf);if(!b[0])return Xr();a.j7=b[0];return SKa(a.Ca,b[0]).then(function(c){uR(a,c)})}return a.Hm&&a.VW?RKa(a.Ca,a.isAd(),a.Hm).then(function(c){uR(a,c)}):Xr()};
wMa=function(a){if(a.isExternallyHostedPodcast)return Xr();var b=gR(a.Yf,a.sG);if(a.hlsvp){var c=FLa(a.hlsvp,a.clientPlaybackNonce,a.Dd);b.push(c)}return QKa(a.Ca,a.isAd(),b,vMa(a)).then(function(d){uR(a,d)})};
rMa=function(a,b){a.C=b;if(a.C){b=g.x(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.kE[d]=c.id)}}xMa(a);if(a.G&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=sG(a.C.videoInfos[0]),a.G.flavor==="fairplay"!==b))for(c=g.x(a.Pp),d=c.next();!d.done;d=c.next())if(d=d.value,b===(d.flavor==="fairplay")){a.G=d;break}};
uR=function(a,b){a.Fd=b;rMa(a,new tM(g.Ml(a.Fd,function(c){return c.getInfo()})))};
vMa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ca.j.c,cver:a.Ca.j.cver};a.Mx&&(b.ptk=a.Mx,b.oid=a.dX,b.ptchn=a.cX,b.pltype=a.eX,a.Nw&&(b.m=a.Nw));return b};
g.vR=function(a){return eR(a)&&a.Za?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.le||null};
zMa=function(a){var b=yMa(a);return b&&b.text?g.Qx(b.text):a.paidContentOverlayText};
AMa=function(a){var b=yMa(a);return b&&b.durationMs?ng(b.durationMs):a.paidContentOverlayDurationMs};
yMa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((b=a.Pa)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,BMa)||null};
wR=function(a){var b="";if(a.qD)return a.qD;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Ma?"window":"live");a.je&&(b="post");return b};
g.xR=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]};
CMa=function(a){return!!a.Qj||!!a.zD||!!a.ly||!!a.KB||a.oV||a.U.focEnabled||a.U.rmktEnabled};
g.yR=function(a){return!!(a.Pc||a.Yf||a.Hm||a.hlsvp||a.Kx())};
XQ=function(a){if(a.N("html5_onesie")&&a.errorCode)return!1;var b=g.Zb(a.Ea,"ypc");a.ypcPreview&&(b=!1);return a.Be()&&!a.loading&&(g.yR(a)||g.Zb(a.Ea,"heartbeat")||b)};
gR=function(a,b){a=vr(a);var c={};if(b){b=g.x(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.x(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};
xMa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Cl);for(var c=0;c<a.gE.length;c++)for(var d=a.gE[c],e=0;e<b.length;e++){var f=b[e],h=f.qc.id===d.audioTrackId;if(f.qc.isDefault&&c===a.q3||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"}}};
cMa=function(a,b){a.showShareButton=!!b;var c,d,e=((c=g.Q(b,g.YJ))==null?void 0:c.navigationEndpoint)||((d=g.Q(b,g.YJ))==null?void 0:d.command);e&&(a.Oq=!!g.Q(e,DMa))};
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;kLa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.W=
xQ(d);a.N("embeds_web_enable_search_button")&&c.searchButton&&(d=g.Q(c.searchButton,g.YJ))&&(a.g7=g.Q(d.navigationEndpoint,g.zR));(d=g.Q(c==null?void 0:c.videoDetails,EMa))&&gMa(a,b,d);d=g.Q(c==null?void 0:c.videoDetails,FMa);a.He=!!c.addToWatchLaterButton;cMa(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.kR))WKa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=ng(c.videoDurationSeconds));c.webPlayerActionsPorting&&jLa(a,c.webPlayerActionsPorting);if(e=g.Q(c==null?void 0:c.playlist,GMa)){a.Un=!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.Qx(c.shortBylineText):"";var n=c.title?g.Qx(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.Nf:!1,dni_color:l===h?a.cq:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.Qx(e.titleText));e.shortBylineText&&(b.author=g.Qx(e.shortBylineText));a.p4=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,eMa)){a.zG=Number(b==null?void 0:b.durationMs)||NaN;if(b==null?0:b.infoPanelOverviewViewModel)a.yf=b==null?void 0:b.infoPanelOverviewViewModel;if(b==null?0:b.infoPanelDetailsViewModel)a.rk=b==null?void 0:b.infoPanelDetailsViewModel}}if(a.Oi.previewPlayabilityStatus){if(a.jy=a.Oi.previewPlayabilityStatus,p=a.jy,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=UKa(p.errorCode);q=p.errorScreen;if(r=q==null?void 0:q.playerErrorMessageRenderer){a.xE=r;if(b=r.reason)a.errorReason=
g.Qx(b);if(r=r.subreason)a.Do=g.Qx(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.Xn=a.Oi.playabilityStatus,HMa(a)&&(a.errorDetail="0",a.Xn&&((t=a.Xn.embeddedPlayerErrorMessageRenderer)?
a.xE=g.Q(t,IMa):a.errorReason=a.Xn.reason||null)));(t=a.Oi.attestation)&&eLa(a,t);(t=a.Oi.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
gMa=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,JMa))==null?void 0:e.urlEndpoint,g.jy))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.Q(e,KMa)){if(d=e.title)b.title=g.Qx(d);if(e=e.subtitle)b.subtitle=g.Qx(e)}if(c=c.expandedRenderer)if(c=g.Q(c,LMa)){if(e=c.title)b.expanded_title=g.Qx(e);if(e=c.subtitle)b.expanded_subtitle=g.Qx(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.Q(c,g.AR),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Dm=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.pE=b.toggledServiceEndpoint||null,a.nE=b.defaultServiceEndpoint||
null):(a.pE=b.defaultServiceEndpoint||null,a.nE=b.toggledServiceEndpoint||null)))}};
g.BR=function(a){return hR(a)&&!a.allowLiveDvr};
CR=function(a){return hR(a)&&a.allowLiveDvr};
hR=function(a){return a.N("html5_live_head_playable")&&iR(a)&&a.Ca.qa==="yt"?a.isLiveHeadPlayable:a.isLivePlayback};
g.DR=function(a){return!!a.j&&ZFa(a.j)};
g.ER=function(a){return!!a.j&&$Fa(a.j)};
g.FR=function(a){return!!a.j&&aGa(a.j)};
g.tR=function(a){return!!a.j&&bGa(a.j)};
g.MMa=function(a){if(a.jE)return null;var b=a.WW;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.NMa=function(a){return a.jE?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.GR=function(a){return a.N("enable_wn_infocards")};
g.HR=function(a){var b,c,d,e;return(g.GR(a)?(b=a.Pa)==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.OMa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.x(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};
IR=function(a){return a.adFormat&&(a.Jc?a.adFormat!=="1_5":a.adFormat!="1_5")?"adunit":a.eventLabel||a.Ca.Ma};
g.JR=function(a){return IR(a)==="shortspage"};
oR=function(a){return a.Pj()&&a.V().supportsGaplessShorts()};
KR=function(a){if(a.isAd()&&(a.Jc?a.videoId!==a.Ca.Ib:a.videoId!=a.Ca.Ib))return a.Ca.Ib};
LR=function(a){return a.qj||IR(a)==="detailpage"||IR(a)==="shortspage"||a.mutedAutoplay};
PMa=function(a){var b=(b=a.N("enable_cleanup_masthead_autoplay_hack_fix"))&&IR(a)==="adunit"?a.wp:LR(a)?IR(a)==="detailpage"||IR(a)==="shortspage"?a.isAutonav||a.uc>0:b||a.adFormat!=="17_8"||a.isAutonav||g.dQ(a.Ca)||a.wp?a.ag?!1:a.Ca.Oh||a.Ca.Ph||!g.HP(a.Ca)?!b&&IR(a)==="adunit"&&a.Qj?!1:!0:!1:!1:(a.ag?0:a.Ph)&&g.HP(a.Ca)?!0:!1;a.N("html5_log_detailpage_autoplay")&&IR(a)==="detailpage"&&a.oa("autoplay_info",{autoplay:a.qj,autonav:a.isAutonav,result:b});return b};
g.MR=function(a){return a.oauthToken||a.Ca.dk};
RMa=function(a){if(a.N("html5_stateful_audio_normalization")){var b=1,c=g.KD(a.Ca.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.B)||a.y4){d=(0,g.Vt)();a.Mp=2;var e=d-a.Ca.wk<=a.maxStatefulTimeThresholdSec*1E3;a.applyStatefulNormalization&&e?a.Mp=4:e||(a.Ca.vk=Infinity,a.Ca.wk=NaN);e=(a.Mp===4?g.xg(a.Ca.vk,a.minimumLoudnessTargetLkfs,a.loudnessTargetLkfs):a.loudnessTargetLkfs)-c;if(a.Mp!==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.Ca.vk=c+e,a.Ca.wk=d);a=Math.min(1,Math.pow(10,e/20))||b}else a=QMa(a)}else a=QMa(a);return a};
QMa=function(a){var b=1,c=g.KD(a.Ca.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;if(c=((d=a.D)==null?void 0:d.audio.C)||a.dk)a.Mp=1;return Math.min(1,Math.pow(10,-c/20))||b};
pR=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=eP(a.Ca)==="TVHTML5_SIMPLY"&&a.Ca.j.ctheme==="MUSIC";a.Zf||!g.kz(a.Ca)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Zf=!0);if(b=g.is())b=/Starboard\/([0-9]+)/.exec(g.Fb()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Ca;c=(eP(c)==="TVHTML5_CAST"||eP(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Ca.j.ctheme==="MUSIC";var d;if(d=!a.Zf)c||(c=a.Ca,c=eP(c)===
"TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.N("cast_prefer_audio_only_for_atv_and_uploads")||a.N("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Zf=!0);return a.Ca.deviceIsAudioOnly||a.Zf&&a.Ca.U};
SMa=function(a){var b,c,d;return!!((b=a.playerResponse)==null?0:(c=b.playerConfig)==null?0:(d=c.mediaCommonConfig)==null?0:d.splitScreenEligible)};
TMa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
NR=function(a){return!(!a.Wn||!a.Ca.U)&&a.Kx()};
UMa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
VMa=function(a){return a.N("html5_enable_sabr_from_watch_server")&&a.uE&&!a.Fl};
WMa=function(a){return a.N("html5_enable_sabr_live_captions")&&a.Yb()&&!1};
cR=function(a){if(a.nV||a.cotn||!a.j||a.j.isOtf||a.zV&&!a.N("html5_enable_sabr_csdai"))return!1;if(a.N("html5_use_sabr_requests_for_debugging"))return!0;if(a.N("html5_enable_sabr_from_watch_server")){var b=a.uE&&!!a.Fl;if(!a.N("html5_combine_client_check_for_sabr"))return b;if(b)return!0;a.Fv("sabr","esfc")}var c=!a.j.Yb&&!a.Si();b=c&&fP&&a.N("html5_enable_sabr_vod_streaming_xhr");c=c&&!fP&&a.N("html5_enable_sabr_vod_non_streaming_xhr");var d=XMa(a),e=a.N("html5_enable_sabr_drm_vod_streaming_xhr")&&
fP&&a.Si()&&!a.j.Yb&&(a.Dl==="1"?!1:!0);(b=b||c||d||e)&&!a.Fl&&a.oa("sabr",{loc:"m"},!0);return b&&!!a.Fl};
XMa=function(a){var b;if(!(b=fP&&a.Yb()&&a.Si()&&(a.Dl==="1"?!1:!0)&&a.N("html5_sabr_live_drm_streaming_xhr"))){b=a.Yb()&&!a.Si()&&fP;var c=a.Yb()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.N("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.N("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&a.N("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.N("html5_enable_sabr_ssdai_streaming_xhr");
c=!a.enableServerStitchedDai&&c;d=a.Yb()&&!fP&&a.N("html5_enable_sabr_live_non_streaming_xhr");a=fP&&(a.gg()||SMa(a)&&a.N("html5_enable_sabr_for_lifa_eligible_streams"));return b||c||d||a};
g.jR=function(a){return a.v4&&cR(a)};
WLa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.IQ(b)===1;return b&&!a.Wn};
g.OR=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&IM(b[a.B.id].resource.j);b=!!b[a.D.id]&&IM(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b};
YMa=function(a){return a.jy?["OK","LIVE_STREAM_OFFLINE"].includes(a.jy.status):!0};
HMa=function(a){return(a=a.Xn)&&a.showError?a.showError:!1};
fR=function(a,b){return a.N(b)?!0:(a.fflags||"").includes(b+"=true")};
PLa=function(a){return a.N("html5_heartbeat_iff_heartbeat_params_filled")};
ZMa=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.KB=new nLa(b));if(b=b.video_masthead_ad_quartile_urls)a.zD=b.quartile_0_url,a.mX=b.quartile_25_url,a.nX=b.quartile_50_url,a.oX=b.quartile_75_url,a.lX=b.quartile_100_url,a.ly=b.quartile_0_urls,a.VD=b.quartile_25_urls,a.XD=b.quartile_50_urls,a.ZD=b.quartile_75_urls,a.TD=b.quartile_100_urls};
MLa=function(a){var b={};a=g.x(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(ywa(a))return a;a=zwa(a);if(ywa(a,!0))return a}return""};
g.$Ma=function(a){return a.captionsLanguagePreference||a.Ca.captionsLanguagePreference||g.xR(a,"yt:cc_default_lang")||a.Ca.Kj};
PR=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.lR=function(a){var b;return a.Ew||((b=a.suggestions)==null?void 0:b[0])||null};
g.QR=function(a){return a.Nf&&(a.N("embeds_enable_pfp_always_unbranded")||a.Ca.Np)};
aR=function(a,b){a.N("html5_log_autoplay_src")&&oR(a)&&a.oa("apsrc",{src:b})};
g.RR=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)};
g.SR=function(a){var b=a.V(),c=g.aNa(b),d=a.Fa;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=IR(a);f==="leanback"?e="WATCH":b.N("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.rb?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.Lp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:bNa[e]}});if(b=a.jD)d.unpluggedAppInfo=
{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:cNa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.kd&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=dNa[b];c.request=d;d=c.user||{};if(b=a.ra)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.tb)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.aNa=function(a){var b=g.xz(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.x(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.N("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.N("embeds_web_enable_iframe_api_send_full_embed_url")||a.N("embeds_web_enable_rcat_validation_in_havs")?(c&&(b.thirdParty=Object.assign({},b.thirdParty,{embedUrl:c})),YCa(b,a)):c&&(b.thirdParty={embedUrl:c});return b};
iNa=function(a,b,c){var d=a.videoId,e=g.SR(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Wv()),referer:document.location.toString(),signatureTimestamp:20041};g.ft();a.isAutonav&&(h.autonav=!0);g.gt(0,141)&&(h.autonavState=g.gt(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.gt(0,66);PMa(a)&&(h.autoplay=!0);f.U&&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.x(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.x(q);for(var r=q.next();!r.done;r=q.next()){var t=g.x(r.value.split("="));r=t.next().value;t=vaa(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=eNa[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.rD;if(m!=null){m={startWalltime:String(m)};if(n=a.vk)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.ag?0:a.Ph)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.kx)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.gk){n=a.bE;l=[];p=g.x(aEa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.YZ?"INACTIVE":"ACTIVE",clientFormFactor:fNa[r]||"UNKNOWN_FORM_FACTOR",clientName:cEa[q.W2]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:gNa[r]||"UNKNOWN_PLATFORM"};
r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.fx(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.HP(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.V();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.gt(g.ft(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=
a.deviceCaptionsOn:g.bQ(e)&&(d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.M3&&(d.captionParams.deviceCaptionsLangPref=a.M3);a.wE.length?d.captionParams.viewerSelectedCaptionLangs=a.wE:g.bQ(e)&&(h=g.aM(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.N("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.N("html5_non_onesie_attach_po_token");if(h||f)h=a.V(),h.ag&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.ag);
e.N("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});if(e.N("html5_enable_sabr_from_watch_server")||e.N("html5_report_supports_vp9_encoding"))d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=hNa(a);return d};
hNa=function(a){var b=!(a==null?0:a.qJ())&&(a==null?void 0:a.Yb())&&ts();if(a==null?0:a.N("html5_report_supports_vp9_encoding")){if(a==null)var c=void 0;else{c=g.qR(a);a=a.V().G;var d=lQ("243");c=d?xM(c,d,a,!0)===!0:!1}b=c&&!b}else b=void 0;return{supportsVp9Encoding:b,supportXhr:fP}};
kNa=function(a,b){var c,d,e;return g.I(function(f){if(f.j==1)return c={context:g.aNa(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.Az(jNa),g.G(f,g.CA(b,c,d),2);e=f.B;return f.return(e)})};
lNa=function(a,b,c){var d=g.KD(b.experiments,"bg_vm_reinit_threshold");(!TL||(0,g.Vt)()-TL>d)&&kNa(a,c).then(function(e){e&&(e=e.botguardData)&&g.WL(e,b)},function(e){a.Ja()||(e=XF(e),a.oa("attf",e.details))})};
TR=function(a,b){g.O.call(this);this.app=a;this.state=b};
VR=function(a,b,c){a.state.j.hasOwnProperty(b)||UR(a,b,c);a.state.U[b]=function(){return c.apply(a,g.Da.apply(0,arguments))};
a.state.L.add(b)};
WR=function(a,b,c){a.state.j.hasOwnProperty(b)||UR(a,b,c);a.app.V().U&&(a.state.W[b]=function(){return c.apply(a,g.Da.apply(0,arguments))},a.state.L.add(b))};
UR=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.Da.apply(0,arguments))}};
g.YR=function(a,b,c){return a.state.j[b].apply(a.state.j,g.z(c))};
ZR=function(){g.Sp.call(this);this.G=new Map};
mNa=function(){g.O.apply(this,arguments);this.element=null;this.L=new Set;this.U={};this.W={};this.j={};this.Z=new Set;this.C=new ZR;this.B=new ZR;this.D=new ZR;this.G=new ZR};
nNa=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 $R(a)};
$R=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.x(oNa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
pNa=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};
aS=function(){TR.apply(this,arguments)};
rNa=function(a){VR(a,"cueVideoById",a.v8);VR(a,"loadVideoById",a.naa);VR(a,"cueVideoByUrl",a.y8);VR(a,"loadVideoByUrl",a.qaa);VR(a,"playVideo",a.Qda);VR(a,"pauseVideo",a.pauseVideo);VR(a,"stopVideo",a.yfa);VR(a,"clearVideo",a.clearVideo);VR(a,"getVideoBytesLoaded",a.U9);VR(a,"getVideoBytesTotal",a.V9);VR(a,"getVideoLoadedFraction",a.uZ);VR(a,"getVideoStartBytes",a.Y9);VR(a,"cuePlaylist",a.cuePlaylist);VR(a,"loadPlaylist",a.jaa);VR(a,"nextVideo",a.Qaa);VR(a,"previousVideo",a.cea);VR(a,"playVideoAt",
a.Pda);VR(a,"setShuffle",a.setShuffle);VR(a,"setLoop",a.setLoop);VR(a,"getPlaylist",a.R9);VR(a,"getPlaylistIndex",a.getPlaylistIndex);VR(a,"getPlaylistId",a.getPlaylistId);VR(a,"loadModule",a.M_);VR(a,"unloadModule",a.Q3);VR(a,"setOption",a.jU);VR(a,"getOption",a.L9);VR(a,"getOptions",a.DQ);VR(a,"mute",a.Paa);VR(a,"unMute",a.Wfa);VR(a,"isMuted",a.isMuted);VR(a,"setVolume",a.jfa);VR(a,"getVolume",a.getVolume);VR(a,"seekTo",a.Sea);VR(a,"getPlayerMode",a.getPlayerMode);VR(a,"getPlayerState",a.P9);VR(a,
"getAvailablePlaybackRates",a.getAvailablePlaybackRates);VR(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
VR(a,"setPlaybackQuality",a.cfa);VR(a,"getAvailableQualityLevels",a.z9);VR(a,"getCurrentTime",a.D9);VR(a,"getDuration",a.H9);VR(a,"addEventListener",a.O7);VR(a,"removeEventListener",a.tea);VR(a,"getDebugText",a.F9);VR(a,"getVideoData",function(){return qNa(a)});
VR(a,"addCueRange",a.M7);VR(a,"removeCueRange",a.removeCueRange);VR(a,"setSize",a.setSize);VR(a,"getApiInterface",a.getApiInterface);VR(a,"destroy",a.destroy);VR(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.V();b.L||(VR(a,"getVideoEmbedCode",a.getVideoEmbedCode),VR(a,"getVideoUrl",a.a$));VR(a,"getMediaReferenceTime",a.K9);VR(a,"getSize",a.getSize);VR(a,"setFauxFullscreen",a.Zea);b.L||VR(a,"logImaAdEvent",a.logImaAdEvent);VR(a,"preloadVideoById",a.Yda);VR(a,"wakeUpControls",a.wakeUpControls)};
g.bS=function(a){return(a=sNa(a.app.Bb()))?a.Pi():null};
tNa=function(a){var b=g.QP(a.app.V()),c,d=(c=a.app.getVideoData())==null?void 0:c.Un;a=cS(a.app);return g.Cs(b)&&!d||a?!1:!0};
qNa=function(a,b){var c={};if(b=g.dS(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=YMa(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};
eS=function(){aS.apply(this,arguments)};
yNa=function(a,b){var c={};if(a.app.V().ra){a=g.x(uNa);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 vNa.includes(e)}).join(",")),c.qoe_cat=a;
wNa(c)}else for(a=g.x(xNa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
wNa=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}})}};
zNa=function(a,b,c){var d=a.app.kf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
BNa=function(a){var b=b===void 0?5:b;return a?ANa[a]||b:b};
g.fS=function(){eS.apply(this,arguments)};
CNa=function(a){UR(a,"getInternalApiInterface",a.getInternalApiInterface);UR(a,"addEventListener",a.N7);UR(a,"removeEventListener",a.sea);UR(a,"cueVideoByPlayerVars",a.w8);UR(a,"loadVideoByPlayerVars",a.oaa);UR(a,"preloadVideoByPlayerVars",a.Zda);UR(a,"getAdState",a.getAdState);UR(a,"sendAbandonmentPing",a.sendAbandonmentPing);UR(a,"setLoopRange",a.setLoopRange);UR(a,"getLoopRange",a.getLoopRange);UR(a,"setAutonavState",a.setAutonavState);UR(a,"seekTo",a.Rea);UR(a,"seekBy",a.Pea);UR(a,"seekToLiveHead",
a.seekToLiveHead);UR(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);UR(a,"seekToStreamTime",a.seekToStreamTime);UR(a,"startSeekCsiAction",a.startSeekCsiAction);UR(a,"getStreamTimeOffset",a.getStreamTimeOffset);UR(a,"getVideoData",a.W9);UR(a,"setInlinePreview",a.setInlinePreview);UR(a,"getAppState",a.getAppState);UR(a,"updateLastActiveTime",a.updateLastActiveTime);UR(a,"setBlackout",a.setBlackout);UR(a,"setUserEngagement",a.setUserEngagement);UR(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
UR(a,"getPresentingPlayerType",a.DK);UR(a,"canPlayType",a.canPlayType);UR(a,"updatePlaylist",a.updatePlaylist);UR(a,"updateVideoData",a.updateVideoData);UR(a,"updateEnvironmentData",a.updateEnvironmentData);UR(a,"sendVideoStatsEngageEvent",a.Wea);UR(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);UR(a,"setSafetyMode",a.setSafetyMode);UR(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
UR(a,"getVideoAspectRatio",a.getVideoAspectRatio);UR(a,"getPreferredQuality",a.getPreferredQuality);UR(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);UR(a,"setPlaybackQualityRange",a.dfa);UR(a,"onAdUxClicked",a.onAdUxClicked);UR(a,"getFeedbackProductData",a.getFeedbackProductData);UR(a,"getStoryboardFrame",a.getStoryboardFrame);UR(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);UR(a,"getStoryboardLevel",a.getStoryboardLevel);UR(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
UR(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);UR(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);UR(a,"addCueRange",a.addCueRange);UR(a,"addUtcCueRange",a.addUtcCueRange);UR(a,"showAirplayPicker",a.showAirplayPicker);UR(a,"dispatchReduxAction",a.dispatchReduxAction);UR(a,"getPlayerResponse",a.N9);UR(a,"getWatchNextResponse",a.b$);UR(a,"getHeartbeatResponse",a.I9);UR(a,"getCurrentTime",a.C9);UR(a,"getDuration",a.XY);UR(a,"getPlayerState",a.getPlayerState);UR(a,"getPlayerStateObject",
a.O9);UR(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);UR(a,"getProgressState",a.getProgressState);UR(a,"getVolume",a.getVolume);UR(a,"setVolume",a.mN);UR(a,"isMuted",a.isMuted);UR(a,"mute",a.SL);UR(a,"unMute",a.FN);UR(a,"loadModule",a.loadModule);UR(a,"unloadModule",a.unloadModule);UR(a,"getOption",a.kZ);UR(a,"getOptions",a.getOptions);UR(a,"setOption",a.setOption);UR(a,"loadVideoById",a.O_);UR(a,"loadVideoByUrl",a.P_);UR(a,"playVideo",a.sT);UR(a,"loadPlaylist",a.loadPlaylist);UR(a,"nextVideo",
a.nextVideo);UR(a,"previousVideo",a.previousVideo);UR(a,"playVideoAt",a.playVideoAt);UR(a,"getDebugText",a.getDebugText);UR(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);UR(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);UR(a,"getVideoContentRect",a.getVideoContentRect);UR(a,"setSqueezeback",a.setSqueezeback);UR(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);UR(a,"isSubtitlesOn",a.isSubtitlesOn);UR(a,"reportPlaybackIssue",a.reportPlaybackIssue);UR(a,"setAutonav",a.setAutonav);UR(a,
"isNotServable",a.isNotServable);UR(a,"channelSubscribed",a.channelSubscribed);UR(a,"channelUnsubscribed",a.channelUnsubscribed);UR(a,"togglePictureInPicture",a.togglePictureInPicture);UR(a,"supportsGaplessAudio",a.supportsGaplessAudio);UR(a,"supportsGaplessShorts",a.supportsGaplessShorts);UR(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
UR(a,"clearQueue",a.clearQueue);UR(a,"getAudioTrack",a.v9);UR(a,"setAudioTrack",a.Xea);UR(a,"getAvailableAudioTracks",a.y9);UR(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);UR(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);UR(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);UR(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);UR(a,"setMinimized",a.setMinimized);UR(a,"setOverlayVisibility",a.setOverlayVisibility);UR(a,"confirmYpcRental",a.confirmYpcRental);
UR(a,"queueNextVideo",a.queueNextVideo);UR(a,"handleExternalCall",a.handleExternalCall);UR(a,"logApiCall",a.logApiCall);UR(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);UR(a,"setScreenLayer",a.setScreenLayer);UR(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);UR(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);UR(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);UR(a,"syncVolume",a.syncVolume);UR(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);
UR(a,"openSettingsMenuItem",a.openSettingsMenuItem);UR(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);UR(a,"getVisibilityState",a.getVisibilityState);UR(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);a.N("embeds_enable_emc3ds_muted_autoplay")&&UR(a,"isMutedByEmbedsMutedAutoplay",a.isMutedByEmbedsMutedAutoplay);UR(a,"setGlobalCrop",a.setGlobalCrop);UR(a,"setInternalSize",a.setInternalSize);UR(a,"setFauxFullscreen",a.setFauxFullscreen);UR(a,"setAppFullscreen",a.setAppFullscreen)};
hS=function(a,b,c){a=g.gS(a.Ze(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.iS=function(a,b,c){return a.app.V().Se?b:g.OE("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
DNa=function(a){a.Ze().element.setAttribute("aria-live","polite")};
g.jS=function(a,b){g.fS.call(this,a,b);CNa(this);WR(this,"addEventListener",this.P7);WR(this,"removeEventListener",this.uea);WR(this,"cueVideoByPlayerVars",this.x8);WR(this,"loadVideoByPlayerVars",this.paa);WR(this,"preloadVideoByPlayerVars",this.aea);WR(this,"loadVideoById",this.O_);WR(this,"loadVideoByUrl",this.P_);WR(this,"playVideo",this.sT);WR(this,"loadPlaylist",this.loadPlaylist);WR(this,"nextVideo",this.nextVideo);WR(this,"previousVideo",this.previousVideo);WR(this,"playVideoAt",this.playVideoAt);
WR(this,"getVideoData",this.tZ);WR(this,"seekBy",this.Qea);WR(this,"seekTo",this.Tea);WR(this,"showControls",this.showControls);WR(this,"hideControls",this.hideControls);WR(this,"cancelPlayback",this.cancelPlayback);WR(this,"getProgressState",this.getProgressState);WR(this,"isInline",this.isInline);WR(this,"setInline",this.setInline);WR(this,"setLoopVideo",this.setLoopVideo);WR(this,"getLoopVideo",this.getLoopVideo);WR(this,"getVideoContentRect",this.getVideoContentRect);WR(this,"getVideoStats",this.Z9);
WR(this,"getCurrentTime",this.E9);WR(this,"getDuration",this.XY);WR(this,"getPlayerState",this.Q9);WR(this,"getVideoLoadedFraction",this.X9);WR(this,"mute",this.SL);WR(this,"unMute",this.FN);WR(this,"setVolume",this.mN);WR(this,"loadModule",this.loadModule);WR(this,"unloadModule",this.unloadModule);WR(this,"getOption",this.kZ);WR(this,"getOptions",this.getOptions);WR(this,"setOption",this.setOption);WR(this,"addCueRange",this.addCueRange);WR(this,"getDebugText",this.getDebugText);WR(this,"getStoryboardFormat",
this.getStoryboardFormat);WR(this,"toggleFullscreen",this.toggleFullscreen);WR(this,"isFullscreen",this.isFullscreen);WR(this,"getPlayerSize",this.getPlayerSize);WR(this,"toggleSubtitles",this.toggleSubtitles);WR(this,"setCenterCrop",this.setCenterCrop);WR(this,"setFauxFullscreen",this.setFauxFullscreen);WR(this,"setSizeStyle",this.setSizeStyle);WR(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);WR(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);rNa(this)};
g.kS=function(a){a=a.Bb();var b=a.Pe.get("endscreen");return b&&b.Nv()?!0:a.fI()};
g.lS=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.gb("onAutonavCancelled",b)};
g.nS=function(a){var b=mS(a.Bb());return a.app.Lj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.Xl()&&b.mq()||!!a.getPlaylist()};
g.ENa=function(a,b){g.YR(a,"addEmbedsConversionTrackingParams",[b])};
g.pS=function(a){return(a=g.oS(a.Bb()))?a.GK():{}};
g.FNa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"};
g.qS=function(a,b,c){a=a.qb().element;var d=kc(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
d<0&&(d=-(d+1));qh(a,b,d);b.setAttribute("data-layer",String(c))};
g.rS=function(a){var b=a.V();if(!b.Xd)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay"))&&!PR(c);d=c.isLivePlayback&&(!b.N("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Xl();var f=c.Pa&&c.Pa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Nf&&f;return!c.ypcPreview&&(!d||e)&&!g.Zb(c.Ea,"ypc")&&
!a&&(!g.HP(b)||f)};
GNa=function(a){a=g.dS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.xV)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.oa("iqss",{trigger:d},!0),!0):!1};
HNa=function(){dt.apply(this,arguments);this.requestHeaders={}};
sS=function(){INa||(INa=new HNa);return INa};
tS=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
g.uS=function(a,b,c,d){d=d===void 0?!1:d;g.Nx.call(this,b);var e=this;this.K=a;this.Ea=d;this.W=new g.dG(this);this.qa=new g.Cy(this,c,!0,void 0,void 0,function(){e.QY()});
g.P(this,this.W);g.P(this,this.qa)};
JNa=function(a){a.B&&(document.activeElement&&g.sh(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.Vs(a.W);a.Z=void 0};
vS=function(a,b,c){a.Rk()?a.Pb():a.md(b,c)};
KNa=function(a,b,c,d){d=new g.S({J:"div",Ka:["ytp-linked-account-popup-button"],ya:d,Y:{role:"button",tabindex:"0"}});b=new g.S({J:"div",S:"ytp-linked-account-popup",Y:{role:"dialog","aria-modal":"true",tabindex:"-1"},X:[{J:"div",S:"ytp-linked-account-popup-title",ya:b},{J:"div",S:"ytp-linked-account-popup-description",ya:c},{J:"div",S:"ytp-linked-account-popup-buttons",X:[d]}]});g.uS.call(this,a,{J:"div",S:"ytp-linked-account-popup-container",X:[b]},100);var e=this;this.dialog=b;g.P(this,this.dialog);
d.listen("click",function(){e.Pb()});
g.P(this,d);g.qS(this.K,this.element,4);this.hide()};
g.xS=function(a,b,c,d){g.Nx.call(this,a);this.priority=b;c&&g.wS(this,c);d&&this.Ed(d)};
g.yS=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={J:c?"a":"div",Ka:b,Y:a,X:[{J:"div",S:"ytp-menuitem-icon",ya:"{{icon}}"},{J:"div",S:"ytp-menuitem-label",ya:"{{label}}"},{J:"div",S:"ytp-menuitem-content",ya:"{{content}}"}]};d&&a.X.push({J:"div",S:"ytp-menuitem-secondary-icon",ya:"{{secondaryIcon}}"});return a};
g.wS=function(a,b){a.updateValue("label",b)};
zS=function(a){g.xS.call(this,g.yS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.K=a;this.B=this.j=!1;this.Fb=a.dn();a.createServerVe(this.element,this,!0);this.T(this.K,"settingsMenuVisibilityChanged",function(c){b.yc(c)});
this.T(this.K,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
AS=function(a){return a?g.Qx(a):""};
BS=function(a){g.O.call(this);this.api=a};
CS=function(a){BS.call(this,a);var b=this;UR(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
UR(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new zS(b.api);g.P(b,b.menuItem)})};
LNa=function(a){this.api=a;this.j={}};
DS=function(a,b,c,d){b in a.j||(c=new g.BE(c,d,{id:b,priority:2,namespace:"appad"}),a.api.hf([c],1),a.j[b]=c)};
MNa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(this);g.P(this,this.events);this.j=new LNa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;DS(d,"part2viewed",1,0x8000000000000);DS(d,"engagedview",Math.max(1,c.Db*1E3),0x8000000000000);if(!c.isLivePlayback){var e=c.lengthSeconds*1E3;oR(c)&&d.api.N("html5_shorts_gapless_ads_duration_fix")&&(e=d.api.getProgressState().seekableEnd*1E3-c.D1);DS(d,"videoplaytime25",e*.25,e);DS(d,"videoplaytime50",e*.5,e);DS(d,"videoplaytime75",e*.75,e);DS(d,"videoplaytime100",e,0x8000000000000);DS(d,"conversionview",e,0x8000000000000);
DS(d,"videoplaybackstart",1,e);DS(d,"videoplayback2s",2E3,e);DS(d,"videoplayback10s",1E4,e)}});
this.events.T(this.api,g.DE("appad"),this.B);this.events.T(this.api,g.EE("appad"),this.B)};
QNa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.x(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.Uo(c,d);d=void 0;d=d===void 0?!1:d;(d=uE(vE(c,NNa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=uE(vE(c,ONa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=uE(vE(c,PNa),c,d,"Nielsen OCR URL"));g.mv(c,void 0,d)}return!0};
ES=function(a,b){RNa(a,b).then(function(c){g.mv(b,void 0,void 0,c)})};
FS=function(a,b){b.forEach(function(c){ES(a,c)})};
RNa=function(a,b){return g.YD(a.api.V())&&Br(b)&&Ar(b)?g.kQ(a.api.V(),g.MR(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Yr()};
SNa=function(a){BS.call(this,a);this.events=new g.dG(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.Dt("adsClientStateChange",e)}})};
UNa=function(a){g.S.call(this,{J:"button",Ka:["ytp-button"],Y:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},X:[{J:"div",S:"ytp-autonav-toggle-button-container",X:[{J:"div",S:"ytp-autonav-toggle-button",Y:{"aria-checked":"true"}}]}]});this.K=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.OD);this.listen("click",this.onClick);this.K.V().N("web_player_autonav_toggle_always_listen")&&
TNa(this);hS(a,this.element,this);this.OD()};
TNa=function(a){a.B.push(a.T(a.K,"videodatachange",a.OD));a.B.push(a.T(a.K,"videoplayerreset",a.OD));a.B.push(a.T(a.K,"onPlaylistUpdate",a.OD));a.B.push(a.T(a.K,"autonavchange",a.yW))};
VNa=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.K.ri()};
WNa=function(a){return a.K.V().N("web_player_autonav_use_server_provided_state")&&bMa(a.wd())};
XNa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new UNa(a);g.P(b,c);a.eA(c)})};
ZS=function(a,b){g.xS.call(this,g.yS({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{J:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
cT=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
YNa=function(a){var b=!a.V().Bl&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b};
g.dT=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.Zy(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.pz(a,d,!0);return!1};
g.eT=function(a,b,c){if(ZP(b.V())&&b.getPresentingPlayerType()!==2){if(g.Zy(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.Zy(c);d&&b.pauseVideo();g.pz(a,void 0,!0);d&&(g.qz(a),c.preventDefault())}return!1};
$Na=function(){var a=ZNa.includes("en")?{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}:{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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};
aOa=function(){return{J:"div",S:"ytp-spinner-container",X:[{J:"div",S:"ytp-spinner-rotator",X:[{J:"div",S:"ytp-spinner-left",X:[{J:"div",S:"ytp-spinner-circle"}]},{J:"div",S:"ytp-spinner-right",X:[{J:"div",S:"ytp-spinner-circle"}]}]}]}};
bOa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
gT=function(a){var b=a.N("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";ZS.call(this,b,g.fT.N4);var c=this;this.K=a;this.j=!1;this.B=new g.qp(function(){g.Ap(c.element,"ytp-menuitem-highlighted")},0);
this.Fb=a.dn();this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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(cOa,this.D);g.P(this,this.B)};
eOa=function(a){BS.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){dOa(b)});
a.addEventListener("highlightSettingsMenu",function(c){dOa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.yp(d.element,"ytp-menuitem-highlighted"),g.yp(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
UR(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
dOa=function(a){a.menuItem||(a.menuItem=new gT(a.api),g.P(a,a.menuItem),a.menuItem.Ta(a.j))};
fOa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"applicationvideodatachange",function(c,d){b.oS(c,d)})};
hT=function(a,b,c,d){ZS.call(this,"Stable Volume",g.fT.v7);g.yp(this.element,"ytp-drc-menu-item");this.Fb=a.dn();this.D=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.B.bind(this));a.N("mta_drc_mutual_exclusion_removal")&&this.T(a,"onPlaybackAudioChange",this.B);a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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);cT(this,a);this.Fb.Vc(this)};
iT=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);a.N("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new hT(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.P(b,b.menuItem))});
UR(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
UR(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
UR(this.api,"hasDrcAudioTrack",function(){return b.B()});
var c;this.j=(c=g.$s("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()};
jT=function(a){BS.call(this,a);var b=this;this.j={};this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.DE("embargo"),function(c){b.api.qp(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.x(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.vg("auth",2,"This video isn't available in your current playback area",UF({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.gb("innertubeCommand",f)}})};
gOa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)};
hOa=function(a,b){b=g.x(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))}};
iOa=function(a){BS.call(this,a);var b=this;this.j=[];this.events=new g.dG(a);g.P(this,this.events);UR(a,"addEmbedsConversionTrackingParams",function(c){b.api.V().Pp&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=ib(c.visualElement.getAsJspb(),2),b.j.push(c))})};
jOa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){ML(LL(),16623);b.j=g.Xw();var d=a.V().Oh&&!c.ag;if(LR(c)&&d){ML(LL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&OL(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&OL(c)}}else ML(LL(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&OL(h)});
this.events.T(a,"loadvideo",function(){ML(LL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){ML(LL(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){ML(LL(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){ML(LL(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){ML(LL(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){ML(LL(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
kOa=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)};
mOa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){lOa(b)})};
lOa=function(a){a.j=new kOa(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.aQ();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})};
nOa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null};
kT=function(a){g.S.call(this,{J:"div",Ka:["ytp-player-content","ytp-iv-player-content"],X:[{J:"div",S:"ytp-free-preview-countdown-timer",X:[{J:"span",ya:"{{label}}"},{J:"span",S:"ytp-free-preview-countdown-timer-separator",ya:"\u2022"},{J:"span",ya:"{{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)};
pOa=function(a,b){a.j||(a.B=b,a.C=(0,g.Vt)(),a.j=new g.pp(function(){oOa(a)},null),oOa(a))};
oOa=function(a){var b=Math,c=b.round,d=Math.min((0,g.Vt)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",FL({seconds:b}));b<=0&&a.j?qOa(a):a.j&&a.j.start()};
qOa=function(a){a.j&&(a.j.dispose(),a.j=null)};
rOa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new kT(a);g.P(b,b.j);g.qS(a,b.j.element,4);b.j.hide()})};
lT=function(a){g.S.call(this,{J:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],X:[{J:"div",Ka:["ytp-fullerscreen-edu-text"],ya:"Scroll for details"},{J:"div",Ka:["ytp-fullerscreen-edu-chevron"],X:[{J:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Y:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Y:{"data-priority":"1"}});this.Qa=a;this.j=new g.Cy(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.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.listen("click",this.onClick);this.Ta()};
mT=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);UR(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
UR(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.V();a.N("external_fullscreen_with_edu")&&c.externalFullscreen&&ZP(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new lT(a);g.P(b,b.j);a.eA(b.j)})};
sOa=function(a){g.S.call(this,{J:"div",S:"ytp-gated-actions-overlay",X:[{J:"div",S:"ytp-gated-actions-overlay-background",X:[{J:"div",S:"ytp-gated-actions-overlay-background-overlay"}]},{J:"button",Ka:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Y:{"aria-label":"Close"},X:[g.Vx()]},{J:"div",S:"ytp-gated-actions-overlay-bar",X:[{J:"div",S:"ytp-gated-actions-overlay-text-container",X:[{J:"div",S:"ytp-gated-actions-overlay-title",ya:"{{title}}"},{J:"div",S:"ytp-gated-actions-overlay-subtitle",
ya:"{{subtitle}}"}]},{J:"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.gb("onCloseMiniplayer")});
this.hide()};
uOa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={xJ:void 0},c++){var e=a.j[c],f=void 0,h=(f=e)==null?void 0:f.element;h||(h=new g.S({J:"button",S:"ytp-gated-actions-overlay-button",Y:{tabindex:"0"},X:[{J:"div",S:"ytp-gated-actions-overlay-button-title",ya:"{{buttonText}}"}]}),g.P(a,h),h.Ha(a.B),e={element:h});d.xJ=g.Q(b[c],tOa);var l=f=void 0,m=void 0,n=((f=d.xJ)==null?void 0:f.title)||((l=d.xJ)==null?void 0:(m=l.titleFormatted)==null?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Nc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.Q((q=p.xJ)==null?void 0:q.onTap,hx);r&&a.api.gb("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
vOa=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.j=new sOa(this.api);g.P(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=(c=b.api.getVideoData())==null?void 0:c.L4;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.x(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;uOa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.qS(this.api,this.j.element,4)};
wOa=function(a){BS.call(this,a);var b=this;this.j=null;this.events=new g.dG(a);g.P(this,this.events);var c=a.V();c.xl=!1;c.Za=!1;c.Tn=!1;WR(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
WR(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
WR(a,"updateSubtitlesUserSettings",function(f){a.updateSubtitlesUserSettings(f)});
WR(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})});
WR(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()});
WR(a,"getPreferredQuality",function(){return a.getPreferredQuality()});
WR(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()});
WR(a,"setPlaybackQuality",function(f){a.setPlaybackQuality(f)});
var d=this.api.jj(),e=d.subscribe("visibilitystatechange",function(){a.Bd("onPictureInPictureChange",d.mj())});
this.addOnDisposeCallback(function(){d.Nh(e)});
WR(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()}})};
xOa=function(a){BS.call(this,a);a=a.V();a.Rg.push("flix");a.Za=!1;a.xl=!1};
BOa=function(a){BS.call(this,a);var b=this;this.j={};this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"applicationInitialized",function(){b.j=yOa(zOa)});
this.events.T(a,"onPlaybackStartExternal",function(){var c=Object.assign({},b.j,yOa(AOa));b.api.oa("hbp_csi",c,!0,1)})};
yOa=function(a){var b={},c=g.qr(pA)("_start",void 0);if(c){a=g.x(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=g.qr(pA)(d,void 0);e&&(b[d]=Math.round(e-c))}}return b};
nT=function(a){BS.call(this,a);var b=this;WR(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
WR(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.z(g.Da.apply(0,arguments)))});
VR(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()});
VR(this.api,"setSphericalProperties",function(){var c=g.Da.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.z(c))})};
COa=function(a){BS.call(this,a);UR(a,"createClientVe",this.createClientVe.bind(this));UR(a,"createServerVe",this.createServerVe.bind(this));UR(a,"destroyVe",this.destroyVe.bind(this));UR(a,"hasVe",this.hasVe.bind(this));UR(a,"logClick",this.logClick.bind(this));UR(a,"logVisibility",this.logVisibility.bind(this));UR(a,"setTrackingParams",this.setTrackingParams.bind(this))};
oT=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.Vt)()-f).toFixed(),shost:g.Xi(a),trigger:b};DOa(h,a);c&&c(h);d&&!l&&d(new VF("pathprobe.net",h))}
var f=(0,g.Vt)();g.Rr(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
DOa=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(),EOa&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
FOa=function(a,b){this.Oc=a;this.policy=b;this.playbackRate=1};
GOa=function(a,b){var c=Math.min(2.5,yP(a.Oc));a=pT(a);return b-c*a};
IOa=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.bq)return Math.ceil(a.policy.bq*b);a.policy.Dm&&(d=Math.abs(d));d/=a.playbackRate;var f=1/BP(a.Oc);c=Math.max(.9*(d-3),yP(a.Oc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.Wq>0&&e&&(c=Math.max(c,a.policy.Wq));return HOa(a,c,b)};
HOa=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.vk,a.policy.Kw*c),Math.min(Math.min(a.policy.Va,31*c),Math.ceil(b*c))))||a.policy.vk};
JOa=function(a,b,c){c=IOa(a,b.j.info.sb,c.j.info.sb,0);var d=yP(a.Oc)+c/BP(a.Oc);return Math.max(d,d+a.policy.rD-c/b.j.info.sb)};
pT=function(a){return BP(a.Oc,!a.policy.vl,a.policy.Jw)};
qT=function(a){return pT(a)/a.playbackRate};
KOa=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.x(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};
LOa=function(a,b,c,d){var e=this;this.U=a;this.manifest=b;this.policy=c;this.logger=d;this.eC=[];this.Yc=[];this.B=-1;this.Rb=null;this.L=this.timestampOffset=0;this.fd=null;this.j=10;this.G=new Set;this.Qc={zQ:function(f){return e.zQ(f)}};
this.D=b.Yb?0:1;c.jw>0&&(this.j=c.jw)};
POa=function(a,b,c,d,e){if(!e.info.D){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:hO(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:hO(h,e))||(c=e);if(a.policy.Pc&&c.info.B)return a.logger&&a.logger({incompleteSegment:c.info.Cc()}),d;h=a.zQ(c);d=h.formatId;e=h.Oa;c=h.clipId;f=h.L8;h=h.startTimeMs;if(!a.policy.ag&&a.policy.B&&a.fd){var l=rT(a.fd,c);h+=l}d={clipId:c,formatId:d,startTimeMs:h,durationMs:f,On:e,gj:e,dC:h,cC:f};e=MOa(b,d.startTimeMs);(c=e>=0?b[e]:
null)&&NOa(a,c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f<b.length;f++){h=a;l=b[f];var 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:OOa(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.cC=m.durationMs,m.gj=l.gj,h=!0):(l.startTimeMs=p,l.dC=p,l.On=m.gj+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
MOa=function(a,b){a=g.ic(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return a>=0?a:-a-2};
QOa=function(a,b){if(a.Rb){var c=a.Rb.Ke();if(c.length!==0){if(a.C&&b){var d=a.C,e=d.info.gf;!CG(c,e)&&d.info.L>0&&(0,g.Vt)()-a.L<5E3&&(a.logger&&a.logger({dend:d.info.Cc()}),c=Nxa(c,e,e+.01))}d=[];for(var f=e=0;e<c.length&&f<a.Yc.length;){var h=c.start(e),l=c.end(e),m=a.Yc[f].startTimeMs/1E3,n=(a.Yc[f].startTimeMs+a.Yc[f].durationMs)/1E3;if(m<=l&&n>=h){var p=0;if(a.fd){var q=sT(a.fd,m*1E3);q&&(p=q.lm/1E3)}q=Object.assign({},a.Yc[f]);var r=a.manifest.C.get(HN(a.Yc[f].formatId)),t=Math.max(m,h);h=
r.index.wi(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.On=t,q.startTimeMs=u):(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.On=h+a.D,q.startTimeMs=m*1E3);q.dC=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.wi(h-a.j/1E3-p);t=a.policy;(t.B||t.Ca.N("html5_sabr_include_tail_media_chunk"))&&r.index.Oo(m+1)&&r.index.sK(m+1)+
p<=h&&(m+=1);t=r.index.sK(m)+p;m-=+(Math.abs(t-h)>a.j/1E3);h=m+a.D;p=(r.index.sK(m)+p)*1E3;q.gj=h;q.durationMs=p-q.startTimeMs;q.cC=q.durationMs;q.On<=q.gj&&d.push(q)}n<l?f+=1:e+=1}a.Yc=d}}};
ROa=function(a){var b=[],c=[].concat(g.z(a.eC));a.Yc.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.B,e=g.x(a.U.mZ()),f=e.next();!f.done;f=e.next())d=POa(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=a.timestampOffset*1E3,h.dC&&(h.dC+=a.timestampOffset*1E3))});
return{Yc:b,eC:c}};
NOa=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(c.startTimeMs-d>a.j)return!1;if(OOa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.cC=b.durationMs,b.gj=Math.max(b.gj,c.gj),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.On,h=b.gj;b.formatId=c.formatId;b.durationMs=c.durationMs;b.On=c.On;b.cC=c.durationMs;b.gj=c.gj;c.formatId=a;c.startTimeMs=e;c.dC=e;c.durationMs=d-e;c.cC=c.durationMs;
c.On=f;c.gj=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.cC=b.durationMs,a.policy.aD&&b.clipId===c.clipId&&(b.gj=c.On-1));return!1};
OOa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.Yb||b.lmt===c.lmt};
SOa=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.mT)==null?0:h.hh){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.mT)==null?void 0:l.hh)+"_psd.")+((m=f.mT)==null?void 0:m.kF))}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.On)+("_en."+f.gj))}a.logger({p:""+c,br:d.join(";")})}};
TOa=function(a){a.Yc=[];a.eC=[];a.G.clear();a.B=-1;a.C=void 0};
tT=function(a,b,c,d,e){this.va=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.je};
UOa=function(a,b,c){if(!a.policy.L){a=b.j.index;var d=b.B.Oa;a.Oo(d)||c&&c.Oa===d?(b.G=!a.Oo(d),b.ra=!a.Oo(d)):(b.G=!0,b.ra=!0)}};
WOa=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);VOa(a.videoTrack);VOa(a.audioTrack);a.policy.L||uJa(a.manifest);a.manifest.isManifestless&&!a.policy.L&&(a.B=!0,a.C=0);var c=a.va;c.policy.Ma||(c.currentTime=b);a.G=!0;a.D=new UG;return a.D};
YOa=function(a,b,c,d,e){var f=a.policy.Pc?e:void 0;if(!b.j.yg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof uT))a:{if(b.C.length&&(f=b.C[0],f instanceof vT&&f.Lh&&f.Ki)){f=!0;break a}f=!1}f||a.policy.j||wT(b);return c}var h=xT(b,c);if(!isNaN(h))return h;if(a.va.zR(c*1E3))return c;if(!e.Ds)b.dj(),a.va.Jv(!1,"sta_"+ +b.j.info.Kf());else if(a.policy.Gw&&(e=yT(a.va,b),a=b.D,e=c+e,a.B.length!==0)){h=0;for(var l=g.x(a.B),m=l.next();!m.done;m=l.next()){m=m.value;if(m.info.gf<e)break;a.va.oa("cmat",{max:e,
s:m.info.Cc()});h+=1}a.B.splice(0,h)}return d&&(d=DG(d.Ke(),c),!isNaN(d))?(zT(b,d+XOa,f),c):zT(b,c,f)};
aPa=function(a,b,c,d){if(a.policy.L)!d||!a.B&&a.policy.Db||g.vi(function(){AT(a)});
else{if(a.isSeeking()&&a.j){var e=ZOa(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.vi(function(){a.va.oa("seekreason",{reason:"behindMinSq",tgt:e});$Oa(a,e)});
return}}c?a.videoTrack.ra=!1:a.audioTrack.ra=!1;var f=a.policy.jD||!a.B;xT(a.videoTrack,a.j)>=0&&xT(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.va.oa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.vi(function(){if(a.B||!a.policy.Db)AT(a);else{var h=b.startTime,l=b.duration;if(!a.policy.L){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.L!==-1&&a.audioTrack.L!==-1,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.ra&&!a.audioTrack.ra,r=a.policy.kD&&
xT(a.videoTrack,h)&&xT(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.va.oa("iterativeSeeking",{status:"done",target:h,originalTime:h+a.va.Mc(),count:a.seekCount}),a.seekCount=0)):a.seekCount<8?(a.seekCount++,a.va.oa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.va.oa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,BT(a.va,h+.1,{Qx:!0,bd:"chunkSelectorSynchronizeMedia",Tp:!0})))}}})}};
ZOa=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.wi(a.j);return(c.Oo(a.manifest.mf)||b.Oa===a.manifest.mf)&&d<a.manifest.mf?a.manifest.Zc():-1};
$Oa=function(a,b,c){a.B&&a.videoTrack.L!==-1&&a.audioTrack.L!==-1&&(a.B=!1,a.j=b,BT(a.va,b+.1,{Qx:!0,bd:"chunkSelectorSynchronize",Tp:!0,seekSource:c}))};
AT=function(a){var b=a.videoTrack.L!==-1,c=a.audioTrack.L!==-1;if(!b||!c)if(b=!b&&CT(a.videoTrack),c=!c&&CT(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.L=CT(c).info.Oa;if(a.policy.L){var d;b.L=((d=CT(b))==null?void 0:d.info.Oa)||b.L}if(b.L!==-1){var e=Math.max(b.j.index.getStartTime(b.L),c.j.index.getStartTime(c.L));CO(a.manifest)&&Math.abs(e-CO(a.manifest))>432E3&&vJa(a.manifest);a.C&&(e=a.C,a.C=0);g.vi(function(){a.policy.L||$Oa(a,e,102)});
a.va.oa("initManifestlessSync",{st:e,ost:e+a.va.Mc(),a:a.audioTrack.L,v:a.videoTrack.L});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.L&&$Oa(a,e,102)}}};
DT=function(a,b){var c=this;this.Ab=a;this.requestNumber=++bPa;this.j=this.now();this.Ea=this.Z=NaN;this.U=this.j;this.C=this.Ib=this.G=0;this.L=this.j;this.Pa=this.Fa=this.Va=this.uc=this.Vb=this.ra=this.B=this.D=0;this.W=this.isActive=!1;this.Kb=this.ib=0;this.Qc={Hpa:function(){return c.Zp}};
this.Oc=b.Oc;this.snapshot=gKa(this.Oc);this.policy=this.Oc.Z;this.Pr=!!b.Pr;this.Hv=b.Hv;this.Hq=b.Hq||0;b.bK&&(this.Ba=new rP);var d;this.Zp=(d=b.Zp)!=null?d:!1;dKa(this.Oc)};
cPa=function(a){a.Va=Math.max(a.Va,a.G-a.Vb);a.Fa=Math.max(a.Fa,a.U-a.uc);a.ra=0};
ET=function(a,b,c){eKa(a.Oc,b);a.Ba&&(a.Ba.add(Math.ceil(b)-Math.ceil(a.U)),a.Ba.add(Math.max(0,Math.ceil(c/1024)-Math.ceil(a.G/1024))));var d=b-a.U,e=c-a.G;a.Ib=e;a.Pa=Math.max(a.Pa,e/(d+.01)*1E3);a.U=b;a.G=c;a.ra&&c>a.ra&&cPa(a)};
dPa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
FT=function(a,b){DT.call(this,a,b);this.rb=this.Db=!1;this.Ma=this.qa=Infinity;this.La=NaN;this.tb=!1;this.Za=NaN;this.Sb=0;this.FA=b.FA||1;this.iT=b.iT||this.FA;this.jm=b.jm;this.Oa=b.Oa;this.wh=b.wh;ePa(this);this.JT(this.j);this.Ua=(this.Za-this.j)/1E3};
fPa=function(a,b,c){a.Pr||(b=Math.max(b,.01),vP(a.Oc,b,c,a.Hq?Math.max(b,c/a.Hq):b))};
gPa=function(a){return(a.L-a.j)/1E3};
ePa=function(a){a.La=a.j+a.snapshot.delay*1E3;a.tb=!1};
jPa=function(a,b){if(a.jm&&a.Oa!==void 0&&a.wh!==void 0){var c=Math,d=c.min,e=a.qa;var f=a.jm;var h=a.j;if(hPa(f,a.Oa))f=b;else{var l=0;f.zj&&(l=.2);f=h+(f.nk+l)*1E3}a.qa=d.call(c,e,f);c=Math;d=c.min;e=a.Ma;f=a.jm;h=a.j;l=iPa(f,a.Oa,a.wh);l!==2&&(b=l?b:h+f.nk*1E3,f.zj&&(b+=f.nk*1E3));a.Ma=d.call(c,e,b);a.qa<=a.j?ePa(a):(a.La=a.qa,a.tb=!0)}};
kPa=function(a,b){if(a.Lx(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.Lx(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),cB(a,c,4)?a=$ua(a).getUint32(c-a.Ck,!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]};
GT=function(a){this.Ab=a;this.j=new ZA};
HT=function(a,b){this.info=a;this.callback=b;this.state=1;this.fC=this.dR=!1;this.qg=null};
lPa=function(a){return g.Nl(a.info.jb,function(b){return b.type===3})};
mPa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Ab=c;this.status=0;this.j=new ZA;this.B=0;this.Ja=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.x(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.VB()};
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.Vt)();e.Ab.Os(f,e.B)},function(){},d.body||null)};
nPa=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
rLa=function(a,b){var c,d,e;return g.I(function(f){if(f.j==1){if(!b)return f.return(b);c=IT.SC();d=new g.UB(a.B);return g.G(f,d.encrypt(b,a.j),2)}e=f.B;IT.HA("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})};
wLa=function(a,b){var c,d,e;return g.I(function(f){if(f.j==1){if(!b)return f.return(b);c=IT.SC();d=new g.UB(a.B);return g.G(f,d.decrypt(b,a.j),2)}e=f.B;IT.HA("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})};
oPa=function(a,b){var c=this;this.j=a;this.Ab=b;this.loaded=this.status=0;this.error="";a=KN(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new ZA;this.run().then(function(){c.Ab.ip()},function(d){c.error=""+d||"unknown_err";
c.Ab.ip()})};
qPa=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Ab=c;this.U=d;this.status=0;this.response=void 0;this.B=0;this.G=this.L=!1;this.errorMessage="";this.Z=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.Ja()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Ab.Av(),pPa(e));
else e.onDone();else e.onError(Error("null_response"))};
this.W=function(f){var h=(0,g.Vt)();e.Ja()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),pPa(e),e.Ab.Os(h,e.B)))};
this.onError=function(f){e.errorMessage=String(f);e.L=!0;e.onDone()};
this.j=new ZA;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
pPa=function(a){a.C.read().then(a.W,a.onError).then(void 0,Ct)};
rPa=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Ab=b;this.B=this.status=0;this.Ja=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.x(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.VB(f)};
a=GL(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",GL(function(f){d.Jg(f)}),!1)};
JT=function(a,b,c,d,e){if(IM(a.base))return new oPa(a,c);a=a.qe();return d?RCa()?new mPa(a,b,c,e):new qPa(a,b,c,e):new rPa(a,c,e)};
g.KT=function(a){this.tag=a};
tPa=function(a,b){g.sPa.apply(null,[6,a,b].concat(g.z(g.Da.apply(2,arguments))))};
uPa=function(a,b){g.sPa.apply(null,[5,a,b].concat(g.z(g.Da.apply(2,arguments))))};
g.sPa=function(a,b,c){var d=g.Da.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.ex(new (Function.prototype.bind.apply(g.lt,[null,f].concat(g.z(d)))),e);d.unshift(f);g.vPa(b,a,d.join(", "))};
g.vPa=function(a,b,c,d){var e=wPa.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){}wPa.set(a,f);e=f}if(!(b<e))if(b=xPa,e=b.j.get(a),e||(e=new yPa,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=zPa.get(a))!=null?h:0)+1;zPa.set(a,c);c%100===1&&console.warn("plyr","plyr."+a+" is chatty, dropping logs.")}};
yPa=function(){this.j=10;this.B=Date.now()};
LT=function(a,b){g.O.call(this);var c=this;this.policy=a;this.jb=b;this.B=0;this.j=null;this.Cf=[];this.C=null;this.Qc={jq:function(){return c.jb}};
this.jb.length===1||g.Nl(this.jb,function(d){return!!d.range})};
MT=function(a,b,c){a.j&&($A(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.x(a.jb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.C<=a.B)d+=h.C;else{b.getLength();if(ON(h)&&!c&&a.B+b.getLength()-e<d+h.C){a.j=b.split(e).xm;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.C-n,t));m=rFa(m,m.B+n,t,m.range?m.B+n+t===m.range.length:r);p=aB(q,p,t);p=new gO(m,p);if(l.policy.useUmp&&l.Cf.length&&(q=hO(l.Cf[l.Cf.length-1],p))){l.Cf[l.Cf.length-1]=q;l=t;break a}l.Cf.push(p);
l=t}a.B+=l;e+=l;d+=h.C;if(e===b.getLength())break}b.getLength()};
NT=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.O.call(this);this.Ab=a;this.policy=b;this.Vd=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.Sy=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.qp(this.zea,this.policy.rk,this)};
APa=function(a){a.resource.Z=(0,g.Vt)();a=OT(a);a.B=(0,g.Vt)();a.started+=1};
DPa=function(a,b,c){a.timing.jS((0,g.Vt)(),b,c);b=a.resource;b.B=0;b.G=0;b.U=0;AN(OT(a));if((b=a.Sy)!=null&&(a=a.Vd.base,!((0,g.Vt)()<b.L+3E5||IM(a))&&(c=HM(a))&&BPa(c)&&b.B===PT(c))){var d;JM(a)&&(d=HM(KM(a)));g.Zs("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.L=(0,g.Vt)();CPa(b,{primary:c,secondary:d})}};
QT=function(a){if(a.lastError==="ump.spsrejectfailure")a.policy.yk||a.timing.W||gFa(a.resource,!1,a.Vd,a.policy,a.C);else{if(a.lastError==="net.timeout")a.timing.ZL((0,g.Vt)());else{var b=a.timing;ET(b,(0,g.Vt)(),b.G)}if(a.lastError==="net.nocontent")++a.resource.U;else{if((b=a.lastError==="net.timeout"||a.lastError==="net.connect"||a.lastError==="net.closed")&&!IM(a.Vd.base)){var c=OT(a);c.timedOut+=1}else c=OT(a),c.j+=1;a.timing.W||gFa(a.resource,b,a.Vd,a.policy,a.C)}}a.Ab.xd(5)};
RT=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)};
ST=function(a,b){if(a.policy.Gz)return!1;var c=b.getResponseHeader("content-type"),d=b.GF();a=!d||d<=a.policy.yr;return(!b.Tv()||!c||c.indexOf("text/plain")!==-1)&&a};
FPa=function(a,b){var c="";b=b.BM();b.getLength()<=a.policy.yr&&(c=EPa(a,b.Ok()));return c};
EPa=function(a,b){var c=gB(b);return xE(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
OT=function(a){return BN(a.C,HM(a.Vd.base))};
GPa=function(a){var b=a.timing.Ir();b.shost=HM(a.Vd.base);return b};
HPa=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)};
IPa=function(a,b){for(var c=g.x(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.lc(d,function(l,m){return m.maxFramerate-l.maxFramerate});
for(var e=[d[0]],f=0,h=1;h<d.length;h++)HPa(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
KPa=function(a,b){var c=[];b=g.x(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=JPa[d]||0;a.j&&e>a.j||c.push(d)}return c};
OPa=function(a,b,c){var d=LPa[a]||[];c.N("html5_shorts_onesie_mismatched_fix")&&(d=MPa[a]||[]);b.push.apply(b,g.z(d));c.N("html5_early_media_for_drm")&&b.push.apply(b,g.z(NPa[a]||[]))};
UPa=function(a,b){var c=g.qR(a),d=a.V(),e=d.G;d=d.N("html5_shorts_onesie_mismatched_fix");var f=a.Pj();if(d){if(!e.C){if(f&&TT)return TT;if(UT)return UT}}else if(UT&&!e.C)return UT;var h=[],l=[],m={},n=VT.concat(PPa);d&&(n=VT.concat(QPa));a.N("html5_early_media_for_drm")&&(n=n.concat(RPa),a.N("allow_vp9_1080p_mq_enc")&&n.push(SPa));var p=[].concat(g.z(TPa));if(c.W&&!c.Ma)for(var q=0;q<p.length;q++)p[q].length&&kG[p[q][0]]==="a"&&(p[q]=["141"]);if(c.Sb)for(q=0;q<p.length;q++)p[q].length&&kG[p[q][0]]===
"o"&&(p[q]=["774"]);n=g.x(n);for(var r=n.next();!r.done;r=n.next()){q=!1;r=g.x(r.value);for(var t=r.next();!t.done;t=r.next()){t=t.value;var u=lQ(t,f&&d);if(u&&u.video&&!(oG(u)&&!c.Fa&&u.video.j>c.Gj)){var y=g.KD(a.V().experiments,"html5_drm_byterate_soft_cap");y>0&&Lxa(u)&&u.sb>y||(q?(h.push(t),OPa(t,h,a)):(u=xM(c,u,e),u===!0?(q=!0,h.push(t),OPa(t,h,a)):m[t]=u))}}}p=g.x(p);for(n=p.next();!n.done;n=p.next())for(n=g.x(n.value),q=n.next();!q.done;q=n.next())if(q=q.value,(r=DKa(q))&&r.audio&&(a.N("html5_onesie_51_audio")||
!pG(r)&&!qG(r)))if(r=xM(c,r,e),r===!0){l.push(q);OPa(q,l,a);break}else m[q]=r;c.B&&b("orfmts",m);if(d)return e.C&&(e.C=!1,TT=UT=void 0),f?TT={video:h,audio:l}:UT={video:h,audio:l};UT={video:h,audio:l};e.C=!1;return UT};
g.XPa=function(a,b,c){var d=c.G,e=[],f=[],h=c.N("html5_shorts_onesie_mismatched_fix");a=a.Pj();var l=VT.concat(PPa);h&&(l=VT.concat(QPa));c.N("html5_early_media_for_drm")&&(l=l.concat(RPa),c.N("allow_vp9_1080p_mq_enc")&&l.push(SPa));var m=[].concat(g.z(TPa));b.W&&(m[0]=["141"]);l=g.x(l);for(var n=l.next();!n.done;n=l.next()){n=g.x(n.value);for(var p=n.next();!p.done;p=n.next()){p=p.value;var q=lQ(p,a&&h);if(q&&q.video){var r=g.KD(c.experiments,"html5_drm_byterate_soft_cap");if(!(r>0&&Lxa(q)&&q.sb>
r)&&xM(b,q,d)===!0){e.push({videoCodec:VPa[kG[p]],maxWidth:q.video.width,maxHeight:q.video.height,maxFramerate:q.video.fps});break}}}}h=g.x(m);for(a=h.next();!a.done;a=h.next())for(a=g.x(a.value),m=a.next();!m.done;m=a.next())if(m=m.value,(l=DKa(m))&&l.audio&&(c.N("html5_onesie_51_audio")||!pG(l)&&!qG(l))&&xM(b,l,d)===!0){f.push({audioCodec:WPa[kG[m]],numChannels:l.audio.numChannels});break}return{videoFormatCapabilities:e,audioFormatCapabilities:f}};
ZPa=function(a){var b={},c=a.ma,d=a.Ca,e=c.getVideoData(),f=XL(0),h=c.getPlayerSize(),l=c.getVisibilityState();f&&(b.eaa=f,b.lastManualDirection=SCa(),f=toa()||0,f>0&&(f=(d.N("html5_use_date_now_for_local_storage")?Date.now():(0,g.Vt)())-f,d.N("html5_use_date_now_for_local_storage")?f>0&&(b.timeSinceLastManualFormatSelectionMs=f):b.timeSinceLastManualFormatSelectionMs=f));b.wfa=XL();f=d.N("html5_use_streamer_bandwidth_for_low_latency_live")&&e.isLowLatencyLiveStream;if(d.schedule.qa&&!f){var m;f=
d.N("html5_disable_bandwidth_cofactors_for_sabr_live")?!((m=a.ue)==null||!m.vl):!1;b.U7=BP(d.schedule,!f)}m=g.aQ();var n=g.gG.medium,p=Math.floor(n*16/9);f=e.Pj()?n:p;n=e.Pj()?p:n;b.j8=Math.max(h.width*m,f);b.i8=Math.max(h.height*m,n);b.visibility=l;b.Lfa=Wv();b.N8=c.Dx()*1E3;var q;if((q=a.ue)==null?0:q.cE){h=a.ma.mK(!0);var r,t,u,y,A,C;b.jea={defaultPolicy:((r=h.C8)==null?void 0:r.j)||0,smooth:((t=h.pfa)==null?void 0:t.j)||0,visibility:((u=h.rga)==null?void 0:u.j)||0,X8:((y=h.Y8)==null?void 0:y.j)||
0,performance:((A=h.rT)==null?void 0:A.j)||0,speed:((C=h.tfa)==null?void 0:C.j)||0}}else{var F;if((F=a.ue)==null?0:F.Np){var H;b.sP=((H=a.ma.mK().rT)==null?void 0:H.j)||0}}d.N("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(b.sabrLicenseConstraint=a.sabrLicenseConstraint);if(d.N("html5_onesie_media_capabilities")||d.N("html5_enable_server_format_filter"))b.oF=3;d.N("html5_onesie_audio_only_playback")&&pR(e)&&(b.oF=1);WMa(e)&&(b.oF=b.oF===void 0?7:b.oF|4);r=e.Te?e.Te:g.qR(e);d.N("html5_onesie_media_capabilities")&&
(b.mediaCapabilities=g.XPa(e,r,d));var K;if((K=a.ue)==null?0:K.j&&K.He){t=d.G;e=[];K=[];u=new Map;d.N("html5_ssap_update_capabilities_on_change")?(t.Z||YJa(t),y=t.Z||[]):y=Array.from(t.j.values());y=g.x(y);for(A=y.next();!A.done;A=y.next())C=A.value,C.Kf?K.push({audioCodec:WPa[C.ob],numChannels:C.numChannels,spatialCapabilityBitmask:YPa[C.ob]}):(h=VPa[C.ob],A={videoCodec:h,maxWidth:C.maxWidth||0,maxHeight:C.maxHeight||0,maxFramerate:C.maxFramerate||0,is10BitSupported:C.lG||!1},C.maxBitrateBps&&(A.maxBitrateBps=
C.maxBitrateBps,l=lQ(C.itag),q=void 0,((q=l)==null?0:q.video)&&xM(r,l,t)===!0&&(l=l.sb*8,l>A.maxBitrateBps&&(A.maxBitrateBps=l))),C=h+"_"+C.lG,h=u.get(C)||[],h.push(A),u.set(C,h));e=IPa(e,u);t={};d.N("html5_ssff_denylist_opus_low")&&(t={itagDenylist:[249,350]});b.mediaCapabilities={videoFormatCapabilities:e,audioFormatCapabilities:K,hdrModeBitmask:3,perPlaybackAttributes:t}}var N;if((N=a.ue)==null?0:N.j){b.pp=r.pp;var W;b.Gj=(W=a.ue)==null?void 0:W.Gj}d.Zf&&(b.K8=d.Zf);b.wT=a.cF;b.mz=a.mz;if(d.N("html5_fix_time_since_last_seek_reporting")?
a.Dq!==void 0:a.Dq)b.Mfa=(0,g.Vt)()-a.Dq;a.isPrefetch&&d.N("html5_report_prefetch_requests")&&(b.isPrefetch=!0);fP||(b.Laa=!0);N=yP(d.schedule)*1E3;N>0&&(b.n8=N);var V;((V=a.ue)==null?0:V.Iw)&&a.Ey&&a.Ey<Infinity&&(b.Ey=a.Ey);c=c.getPlaybackRate();c!==1&&(b.playbackRate=c);var da;((da=a.ue)==null?0:da.Jc)&&a.Uq&&(b.bx=a.bx,b.yz=a.yz,b.Uq=a.Uq);d.N("allow_proxima_live_latency")&&(YL()===1&&(b.haa=1),d.N("html5_sabr_force_proxima")&&(b.faa=1),da=g.KD(d.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),
b.yaa=da>0?da:d.schedule.interruptions[0]||0);var na;if((na=a.ue)==null?0:na.Sb)b.gx=a.gx;return b};
WT=function(a,b,c,d,e,f){var h={};b&&(h.hC=b);if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.xH=e);h.bD=[];h.CC=[];if(g.jR(a)&&a.sabrContextUpdates.size>0)for(b=g.x(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())$Pa(h,c.value,d);cR(a)&&!g.jR(a)&&a.N("html5_enable_sabr_request_pipelining")&&f&&$Pa(h,f,d);a.tC&&(h.mfa=a.tC);d=a.V().j;h.clientInfo={clientName:aQa[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.Fp&&(h.Fp=a.Fp);return h};
$Pa=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.CC.push(b):a.bD.push(d)};
vT=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.sH===void 0?[]:h.sH;var m=h.pI===void 0?!1:h.pI;var n=h.ax===void 0?0:h.ax;var p=h.poToken===void 0?"":h.poToken;var q=h.Sy===void 0?void 0:h.Sy;var r=h.CH===void 0?"":h.CH;var t=h.Lh===void 0?0:h.Lh;var u=h.Ki===void 0?new Uint8Array(0):h.Ki;var y=h.tN===void 0?!1:h.tN;f=h.Iq===void 0?0:h.Iq;h=h.hC===void 0?void 0:h.hC;HT.call(this,b,e);var A=this;this.policy=a;this.logger=new g.KT("dash/request");this.qA=this.Fg=0;this.F2=!1;this.qn=this.rq=
null;this.PZ=!1;this.Ki=this.Lh=null;this.EN=this.N3=!1;this.AJ=null;this.Iq=this.eq=0;this.gy=!1;this.Qc={xd:function(F){A.xd(F)},
hpa:function(){return A.qg},
Hqa:function(F){A.qg=F},
Gqa:function(F){A.Fg=F},
Fqa:function(F){A.Tc.lastError=F},
PQ:function(){return A.xhr}};
this.timing=new FT(this,c);this.pI=m;this.Lh=t;this.Ki=u;this.Vd=g.XN(this.info,this.policy,d);this.Vd.set("rn",this.cn().toString());this.Vd.set("rbuf",(n*1E3).toFixed().toString());this.pI&&this.Vd.set("smb","1");this.policy.Hm&&p&&this.Vd.set("pot",p);r&&this.Vd.set("bbs",r);this.policy.useUmp&&!IM(this.Vd.base)&&(this.zm=new GT(this),this.Vd.set("ump","1"),this.Vd.set("srfvp","1"));if(a=this.policy.xr?this.policy.sE&&!isNaN(this.info.wh)&&this.info.wh>this.policy.SI?!1:!0:!1)b=null,this.policy.sG&&
this.policy.Jk?b=[1]:y&&(b=[]),b!=null&&(this.policy.jE&&b.push(2),this.Vd.set("defsel",b.join(",")));this.Tc=new NT(this,this.policy,this.Vd,this.info.resource,this.timing,this.logger,d,q);this.sH=l||null;this.fC=bQa(this);APa(this.Tc);d=void 0;if(this.policy.LL||this.zm||this.policy.La)d={method:"POST"},l=(0,g.XT)([120,0]),q={},this.policy.aE&&h&&(h=WT(void 0,h),q.VC=h),this.policy.Mw&&this.Ki&&(q.videoPlaybackUstreamerConfig=this.Ki),this.policy.La&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length>
0?d.body=g.EB(q,g.hM):d.body=l;if(this.Lh&&this.Ki){this.Vd.set("iwts","1");d={method:"POST"};h={mz:this.Lh*1E3};var C;l=(C=this.info.D)==null?void 0:C.Kn;C=g.EB({Nr:h,Kn:l||void 0,videoPlaybackUstreamerConfig:this.Ki},g.hM);d.body=C}try{this.xhr=JT(this.Vd,this.policy.U,this.timing,a,d),this.Tc.B.start(),f&&(this.hv=new g.qp(this.d0,f,this),this.hv.start(f+(this.timing.Oc.U.rh()||0)*1E3)),this.policy.Ew&&dPa(this.timing,this.qe()),this.logger.debug(function(){return"Sent, itag="+A.Vd.get("itag")+
" seg="+A.info.jb[0].Oa+" range="+A.Vd.get("range")+" time="+Math.round(A.info.jb[0].gf)+"-"+Math.round(g.Vb(A.info.jb).Vf)+" rtp="+(A.timing.EK()-Date.now()).toFixed(0)}),g.vi(function(){})}catch(F){cQa(this,F,!0)}};
bQa=function(a){if(!(WN(a.info)&&a.info.Zp()&&a.policy.yf&&a.sH)||a.info.resource.B>=2||XL()>0||!WCa())return!1;var b=a.Vd.get("aitags");if(!b)return!1;b=jg(b).split(",");for(var c=[],d=g.x(a.sH),e=d.next();!e.done;e=d.next())e=e.value,g.Zb(b,e)&&c.push(e);if(!c.length)return!1;a.Vd.set("altitags",g.ig(c.join(",")));return!0};
cQa=function(a,b,c){c=c===void 0?!1:c;g.ex(b);a.Tc.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.vi(function(){QT(a.Tc)}):QT(a.Tc)};
dQa=function(a,b){a.timing.W=!0;a.xhr.Tv()&&a.timing.Gv();if(a.policy.kd){var c;(c=a.hv)==null||c.stop()}MT(a.qg,b,!1)};
eQa=function(a,b){a.info=b;if(a.qg){var c=a.qg;b=b.jb;(b.length!==c.jb.length||b.length<c.Cf.length)&&uPa("dash/request",260511119,""+b.length,""+c.jb.length,""+c.Cf.length);c.jb=b;for(var d=b[0].range,e=new ZA,f=0;f<c.Cf.length;f++)$A(e,c.Cf[f].j);for(f=0;f<c.Cf.length;f++){c.Cf[f].info=b[f];var h=b[f].range;c.Cf[f].j=aB(e,h.start-d.start,h.length)}}a.fC=!1};
fQa=function(a){a.eq&&(a.xhr.status=a.eq,a.Fg=a.eq)};
ZT=function(a,b){DT.call(this,a,b);this.Ma=!0;this.qa=!1;this.Ua=this.La=0;this.Za=NaN};
$T=function(a){this.B={};this.logger=new g.KT(a)};
gQa=function(a){$T.call(this,"sabr");this.Ab=a};
aU=function(a){g.O.call(this);this.D=a;this.logger=new g.KT("onesie");this.hd=new Map;this.B=this.j=!1;this.ue=this.manifest=null;this.C=!1};
hQa=function(a,b,c){a.hd.get(b).Jg=c};
cU=function(a,b){a.hd.has(b)&&(bU?a.hd.get(b).Tj.clear():a.hd.get(b).Cf=new ZA,iQa(a,b),a.B=!0)};
jQa=function(a){for(var b=g.x(a.hd),c=b.next();!c.done;c=b.next()){var d=g.x(c.value);c=d.next().value;d=d.next().value;d.CE||cU(a,c)}};
kQa=function(a,b){b=a.hd.get(b);if(!b)return 0;a=0;if(b.jb.length>0){b=g.x(b.jb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.LG.length>0)for(c=g.x(b.LG),d=c.next();!d.done;d=c.next())a+=d.value.Vs||0;return a+b.e_};
lQa=function(a,b){if(bU){var c=0;a=a.hd.get(b);if(a==null||!a.Tj)return 0;a=g.x(a.Tj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.getLength();return c}return((c=a.hd.get(b))==null?void 0:c.Cf.getLength())||0};
dU=function(a,b){a=a.hd.get(b);if(bU){if(a==null||!a.CE)return!1;b=a.Tj.size>0;return a.Ay.length>0||b}return!(a==null||!a.CE)&&!(a==null||!a.Cf.getLength())};
mQa=function(a,b){var c=a.hd.get(b),d=kQa(a,b),e=!d&&!!c.bytesReceived;if(bU){var f;if((f=a.manifest)==null?0:f.Yb){a=g.x(c.Tj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Wx)return!1;return e}}else if(f=a.Tx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.kA+lQa(a,b)===c.bytesReceived};
nQa=function(a,b,c){a.hd.set(b,{Cf:new ZA,kA:0,bytesReceived:0,e_:0,AT:!1,dh:!1,Tx:!1,Kf:c,bU:[],jb:[],LG:[],CE:!1,Tj:new Map,lI:new Map,Ay:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
oQa=function(a,b,c,d){c.jb.push.apply(c.jb,g.z(d));if(bU){c.lI.has(b)||c.lI.set(b,[]);var e;(e=c.lI.get(b)).push.apply(e,g.z(d))}else if(c.qg)for(a=g.x(d),b=a.next();!b.done;b=a.next())c.qg.jb.push(b.value);else{c.qg=new LT(a.ue,[].concat(g.z(c.jb)));var f;((f=a.ue)==null?0:f.xk)&&g.P(a,c.qg)}};
pQa=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.C.get(b);if(!e)return[];if(c.To){var f;return((f=e.Ex(0,c.clipId))==null?void 0:f.jb)||[]}if(e.vn()){var h=c.startMs,l=c.durationMs,m=1E3,n;if(((n=a.ue)==null?0:n.j)&&c.timeRange){var p;h=(p=c.timeRange.hh)!=null?p:-1;var q;l=(q=c.timeRange.kF)!=null?q:-1;var r;m=(r=c.timeRange.ut)!=null?r:-1}if(c.EC<0||c.Xq<0||l<0||h<0||c.Vs<0||m<0)return cU(a,b),[];a=LN(c.EC,c.Vs);b=c.aM||0;return[new NN(3,e,a,"makeSliceInfosMediaBytes",c.Xq-1,h/m,l/m,b,
a.length-b,void 0,c.jk,c.clipId)]}if(c.Xq<0)return cU(a,b),[];var t;return((t=a.manifest)==null?0:t.Yb)?(b=e.lk,n=b*e.info.sb,p=((h=a.ue)==null?0:h.Pc)?c.aM:void 0,((m=a.ue)==null?0:m.sx)&&c.timeRange&&!p&&(l=c.timeRange.hh/c.timeRange.ut),[new NN(3,e,void 0,"makeSliceInfosMediaBytes",c.Xq,l,b,p,n,!0,c.jk,c.clipId)]):[]};
qQa=function(a,b,c){a.manifest=b;a.ue=c;b=g.x(a.hd);for(c=b.next();!c.done;c=b.next()){var d=g.x(c.value);c=d.next().value;d=d.next().value;for(var e=g.x(d.bU),f=e.next();!f.done;f=e.next()){f=f.value;var h=pQa(a,c,f);oQa(a,f.tq,d,h)}}};
eU=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.getLength()});
(a=a.hd.get(c))&&!a.dh&&(bU?(a.Tj.has(b)||a.Tj.set(b,{data:new ZA,zJ:0,Wx:!1}),$A(a.Tj.get(b).data,d)):$A(a.Cf,d),a.bytesReceived+=d.getLength(),a.AT=!0)};
iQa=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.hd.get(b);c&&!c.dh&&(c.dh=!0,c.Jg&&c.Jg(),rQa(a)&&a.D.z0())};
rQa=function(a){a=g.x(a.hd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.dh)return!1;return!0};
fU=function(a,b,c,d,e,f,h,l){g.O.call(this);this.policy=a;this.info=b;this.manifest=c;this.Ab=e;this.e0=l;this.logger=new g.KT("sabr");this.zm=new GT(this);this.A2=new gQa(this);this.Qf=new aU(this);this.state=1;this.z2=!1;this.LT=0;this.clipId="";this.Lv=this.vj=-1;this.e2=0;this.LP=-1;this.gy=this.EX=!1;this.L0=0;this.policy.eE?this.Ud=new ZT(this,f):this.Ud=new FT(this,f);this.Vd=this.policy.Sb?b.fN:sQa(b,this.policy,d);this.Vd.set("rn",""+this.cn());this.policy.Po&&this.Vd.set("alr","yes");qQa(this.Qf,
c,a);this.Tc=new NT(this,this.policy,this.Vd,b.resource,this.Ud,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);APa(this.Tc);var m;if((m=this.policy)==null?0:m.xk)g.P(this,this.Qf),g.P(this,this.Tc);a=b.B;b={method:"POST",body:a};a&&(this.e2=a.length);try{this.xhr=JT(this.Vd,this.policy.U,this.Ud,fP,b),this.policy.Ew&&dPa(this.Ud,this.qe()),this.Tc.B.start()}catch(n){g.fx(n)}};
tQa=function(a,b){var c=-1,d=-1,e=-1,f;if((f=a.KT)==null?0:f.items)for(a=g.x(a.KT.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.YR||f.YR<c||(c=f.YR,d=f.OL,e=f.minReadaheadMs);return{daa:c,OL:d,ZR:e}};
uQa=function(a){this.j=a;this.Z=this.La=this.U=this.Fa=this.D=this.G=this.L=this.Ea=this.W=this.Ma=this.ra=this.Ba=this.qa=0;this.ticks={}};
gU=function(a){a.qa||(a.qa=(0,g.Vt)(),cI("mb_s",a.qa,a.j))};
vQa=function(a){a.Ba||(a.Ba=(0,g.Vt)(),cI("ovfs_rp",a.Ba,a.j))};
wQa=function(a){a.ra||(a.ra=(0,g.Vt)(),cI("oafs_rp",a.ra,a.j))};
xQa=function(a){a.G||(a.G=(0,g.Vt)(),cI("vda",a.G,a.j),a.D&&vt(g.tt(),4))};
yQa=function(a){a.D||(a.D=(0,g.Vt)(),cI("ada",a.D,a.j),a.G&&vt(g.tt(),4))};
zQa=function(a){a.Fa||(a.Fa=(0,g.Vt)(),cI("vis_a",a.Fa,a.j))};
AQa=function(a){a.U||(a.U=(0,g.Vt)(),cI("ais_a",a.U,a.j))};
BQa=function(a){a.La||(a.La=(0,g.Vt)(),cI("vrb_f",a.La,a.j))};
CQa=function(a){a.Z||(a.Z=(0,g.Vt)(),cI("arb_f",a.Z,a.j))};
DQa=function(a,b,c){var d=b instanceof fU&&!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.qe(),vt(g.tt(),4)):c&&(a.B=b.qe()):b instanceof vT&&b.Yx()&&e&&vt(g.tt(),4)};
EQa=function(a){return!!a.B&&!!a.C};
FQa=function(a,b,c,d,e,f){g.Fx.call(this);var h=this;this.va=a;this.manifest=b;this.policy=c;this.videoTrack=d;this.audioTrack=e;this.qa=this.j=null;this.G=this.U=NaN;this.W=0;this.Z=NaN;this.L=null;this.Ea=this.Ba=NaN;this.Fa=new Map;this.ra=this.C=this.D=NaN;this.Qc={lpa:function(){return h.B}};
this.B=f?1:0};
HQa=function(a,b,c,d){d=d===void 0?!0:d;if(c&&!a.Fa.has(b.Oa)){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.Fa.set(b.Oa,f)}if(a.policy.Rg)if(e=a.qa&&b.Oa===a.qa.Oa+1,a.qa=b,f=a.j&&b.Oa===a.j.Oa+1,f=a.j&&e&&f&&a.j.Vg.event!=="stop"&&a.j.Vg.event!=="predictStart",h=b.Vg||null,l=a.videoTrack.j.index.qd(),a.policy.El&&(l=Math.max(a.videoTrack.j.index.qd(),a.audioTrack.j.index.qd())),l=b.Oa>=l,m=a.manifest.isManifestless&&a.policy.Dw,
h){var n;if(((n=a.j)==null?void 0:n.Vg.event)==="predictStart"&&a.j.Oa<b.Oa&&h.event==="stop"){var p;a.va.handleError("ssdai.missingstartcueevent",{lastpredict:((p=a.j)==null?void 0:p.Oa)||0,csq:b.Oa},0)}a.j={Vg:h,Oa:b.Oa,cG:!!c,Of:d};l?hU(a,h,b.Oa):m&&(e?f?hU(a,h,b.Oa):h.event==="continue"||h.event==="stop"?GQa(a,b):hU(a,h,b.Oa):hU(a,h,b.Oa))}else f&&GQa(a,b),a.B===4&&iU(a,5,"qend")};
hU=function(a,b,c){b.startSecs+=isNaN(a.W)?0:a.W;a=a.manifest;a.Ba.push(b);a.publish("cuepointsadded",c)};
JQa=function(a,b,c){if(a.B!==0&&c&&b.jb[0].Of()){var d=b.jb[0].Oa,e=b.jb[0].gf;b=b.isDecorated();IQa(a,d,e,b,c)}};
IQa=function(a,b,c,d,e){var f;b!==((f=a.j)==null?void 0:f.Oa)||a.B===1||d||a.j.Vg.event==="predictStart"||a.oa("sdai",{undecevt:1,sq:b,mt:c,evt:a.j.Vg.event});b>a.G&&(a.G=NaN,a.U=NaN);if(a.j&&a.j.Oa===b){d=a.j;f=d.Vg;var h=e.tv(f);f.event==="predictStart"&&(a.ra=b);a.oa("sdai",{onqevt:f.event,sq:b,mt:c,gab:h,cst:f.startSecs});if(h)f.event!=="predictStart"?(f.event==="start"&&a.ra===b-1&&a.oa("sdai",{gabonstart:b}),d.cG?iU(a,4,"cue"):(a.G=b,a.U=c,a.oa("sdai",{joinad:a.B,sg:a.G,st:a.U.toFixed(3)}),
a.Z=Date.now(),iU(a,2,"join"),e.NK(d.Vg))):(a.policy.G?(a.C=Math.floor(c-f.j/1E3),a.oa("sdai",{onpred:c,est:a.C})):(a.D=b+Math.max(Math.ceil(-f.j/5E3),1),a.oa("sdai",{onpred:b,est:a.D})),a.Z=Date.now(),iU(a,3,"predict"),e.NK(d.Vg));else if(a.B===1){var l;((l=a.L)==null?0:l.SP(c))?(KQa(a.va,c,c,b),iU(a,4,"sk2had")):iU(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.oa("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.oa("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B===1&&iU(a,5,"noad")};
NQa=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 LQa(a.videoTrack,c)||LQa(a.videoTrack,c+1);a=MQa(a.videoTrack);if(c>(a?a.Oa:-1))return!1}return!0};
jU=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.U)?a.U:b};
GQa=function(a,b){if(a.j){var c=a.j.Vg.Xg-(b.startTime+a.W-a.j.Vg.startSecs);c<=0||(c=new WM(a.j.Vg.startSecs-(isNaN(a.W)?0:a.W),c,a.j.Vg.context,a.j.Vg.identifier,"stop",a.j.Vg.j+b.duration*1E3),a.oa("cuepointdiscontinuity",{segNum:b.Oa}),hU(a,c,b.Oa))}};
iU=function(a,b,c){a.B!==b&&(a.oa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
kU=function(a,b,c,d){(d===void 0?0:d)?iU(a,1,"seek"):b>0&&Math.abs(b-c)>=5&&a.B===4&&iU(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
lU=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
mU=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
nU=function(a,b,c){g.O.call(this);this.policy=a;this.D=b;this.oa=c;this.C=new Map;this.G=0;this.L=!1;this.j="";this.B=!1};
oU=function(a,b,c){if(c===void 0?0:c)a.L=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.Vt)()+c;a.C.set(b.info.id,c)};
pU=function(a){for(var b=g.x(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.x(c.value);c=d.next().value;d=d.next().value;d<(0,g.Vt)()&&a.C.delete(c)}return a.C};
OQa=function(a){return a.L&&pU(a).size>0};
qU=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
PQa=function(a,b){var c;b&&(c=g.Xb(a.D.j,function(e){return e.id===b}));
if(!c&&(c=g.Xb(a.D.j,function(e){var f;return!((f=e.qc)==null||!f.isDefault)}),b)){var d;
a.oa("iaf",{id:b,sid:(d=c)==null?void 0:d.id})}return c};
QQa=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.va=a;this.Ba=b;this.policy=c;this.manifest=d;this.L=e;this.ib=f;this.logger=new g.KT("dash/abr");this.j=VQ;this.B=this.U=null;this.Z=-1;this.La=!1;this.nextVideo=this.C=null;this.D=[];this.Va=new Set;this.Ma={};this.eb=new sP(1);this.W=0;this.Ua=this.ra=this.qa=!1;this.Ea=0;this.Za=!1;this.Fa=new Set;this.Pa=!1;this.Qc={C2:function(){rU(h)}};
this.G=new nU(this.policy,e,function(l,m){h.va.oa(l,m)})};
VQa=function(a,b,c){sU(a,b);b=PQa(a.G,c);c||b||(b=RQa(a));b=b||a.L.j[0];a.C=a.manifest.j[b.id];rU(a);a.U=a.C;SQa(a);TQa(a);a.B=a.nextVideo;a.U=a.C;return UQa(a)};
YQa=function(a,b){if(WQa(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+sM(b)}),sU(a,b),a.W=a.D.length-1,rU(a),tU(a),a.ra=a.ra||a.B!==a.nextVideo,a.B=a.nextVideo,new lU(a.C,a.B,b.reason);
b.reason==="r"&&(a.Z=-1);sU(a,b);tU(a);if(b.reason==="r"&&a.nextVideo===a.B)return new lU(a.C,a.nextVideo,b.reason);XQa(a);return null};
ZQa=function(a,b,c){a.C=a.manifest.j[b];a.U=a.C;return new lU(a.U,a.B,c?"t":"m")};
$Qa=function(a,b){if(b.info.video){if(a.B!==b)return a.B=b,UQa(a)}else a.Ua=a.U!==b,a.U=b;return null};
aRa=function(a,b){if(b.j.info.video&&b.D){var c=(b.B+b.C)/b.duration,d=b.j.info.sb;c&&d&&(a.eb.Ej(1,c/d),a.policy.C&&c/d>1.5&&a.va.oa("overshoot",{sq:b.Oa,br:c,max:d}))}};
uU=function(a,b,c){oU(a.G,b,c===void 0?!1:c);a.Z=-1;sU(a,a.j)};
bRa=function(a,b){return new lU(a.U,a.B,b||a.j.reason)};
XQa=function(a){if(a.B&&a.nextVideo&&vU(a,a.B.info)<vU(a,a.nextVideo.info)){var b=a.j.reason;a.qa=a.qa||b==="r"||b==="u"||b==="v"}};
UQa=function(a){a.La?a.La=!1:a.Z=(0,g.Vt)();a.qa=!1;a.Pa=!1;return new lU(a.U,a.B,a.j.reason)};
cRa=function(a,b){var c={};b=g.x(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&&oG(f)&&f.video.j>a.policy.Gj,l=e<=a.policy.Gj?oG(d):mG(d);if(!f||h||l)c[e]=d}return c};
sU=function(a,b){a.j=b;var c=a.L.videoInfos;if(!a.j.isLocked()){var d=(0,g.Vt)();c=g.wn(c,function(l){if(l.sb>this.policy.sb)return!1;var m=this.manifest.j[l.id];return pU(this.G).get(l.id)>d?!1:m.resource.B>4||m.L>4?(this.logger.debug(function(){return"Remove "+yG(l)+"; 4 load failures"}),!1):this.Fa.has(+l.itag)?!1:!0},a);
OQa(a.G)&&(c=g.wn(c,function(l){return l.video.width<=854&&l.video.height<=480}))}c.length||(c=a.L.videoInfos);
var e=c;a.policy.qq&&(e=dRa(a,e,b));e=g.wn(e,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Xb(c,function(l){return l.id===a.G.j});
f?e=[f]:qU(a.G,"")}a.policy.qq||(e=dRa(a,e,b));e.length||(e=[c[0]]);e.sort(function(l,m){return vU(a,l)-vU(a,m)});
b={};for(c=1;c<e.length;b={XO:void 0,DO:void 0},c++)b.DO=e[c-1],b.XO=e[c],b.DO.video.width>b.XO.video.width?(g.$b(e,c),c--):vU(a,b.DO)*a.policy.W>vU(a,b.XO)&&(g.$b(e,c-1),c--);var h=e[e.length-1];a.Za=!!a.B&&!!a.B.info&&a.B.info.ob!==h.ob;a.logger.debug(function(){return"Constraint: "+sM(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+yG(h)});
a.D=e;a.Va.clear();b=!1;for(c=0;c<e.length;c++)b?a.Va.add(e[c].itag):e[c].video.j>=1080&&(b=!0);eRa(a.policy,h,a.manifest.Yb)};
dRa=function(a,b,c){var d=c.reason==="m"||c.reason==="s";a.policy.mE&&wU&&g.Nt&&(!d||c.j<1080)&&(b=b.filter(function(n){return n.video&&(!n.B||n.B.powerEfficient)}));
if(b.length>0)if(KG()){var e=cRa(a,b);b=b.filter(function(n){return!!n&&!!n.video&&n.ob===e[n.video.j].ob})}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=cRa(a,c)[l].ob;b=b.filter(function(n){return!!n&&!!n.video&&n.ob===m})}}return b};
fRa=function(a,b){for(var c=0;c+1<a.D.length&&a.D[c].video.quality==="tiny";)c++;var d=qT(a.Ba)/a.policy.W;return vU(a,b.info)+vU(a,a.D[c])>d};
rU=function(a){if(!a.C||!a.policy.D&&!a.C.info.qc){var b=a.L.j;a.C&&(b=b.filter(function(d){return d.audio.j===a.C.info.audio.j}),b.length||(b=a.L.j));
a.C=a.manifest.j[b[0].id];if(b.length>1){var c=!1;if(c=a.policy.Fd?!0:a.j.isLocked()?a.j.j<240:fRa(a,a.C))a.C=a.manifest.j[g.Vb(b).id]}}};
tU=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.Vb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+yG(a.nextVideo.info)});
else{for(var b=Math.min(a.W,a.D.length-1),c=qT(a.Ba),d=vU(a,a.C.info),e=c/a.policy.ra-d;b>0&&!(vU(a,a.D[b])<=e);b--);for(var f=c/a.policy.W-d;b<a.D.length-1&&!(vU(a,a.D[b+1])>=f);b++);a.nextVideo=a.manifest.j[a.D[b].id];a.W!==b&&a.logger.info(function(){return"Adapt to: "+yG(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+sM(a.j)});
a.W=b}};
SQa=function(a){var b=a.policy.ra,c=qT(a.Ba),d=c/b-vU(a,a.C.info);b=g.Yb(a.D,function(e){return vU(this,e)<d},a);
b<0&&(b=0);a.W=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+yG(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
TQa=function(a){if(a.ib.length){var b=a.ib,c=function(d,e){if(d.info.ob==="f"||b.includes(HN(tG(d.info,a.manifest.Yb))))return d;for(var f={},h=0;h<e.length;f={hQ:void 0,PU:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(HN(tG(l.info,a.manifest.Yb)))){var m=d.info.ob,n=l.info.ob;if(m===n||KG()){if(d.info.j!==l.info.j)return a.va.oa("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.hQ=d.info.itag;f.PU=l.info.itag;a.va.oa("ombifa",{f:f.hQ,t:f.PU});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.hQ+" to "+p.PU+" based on prefetched media."}}(f));
a.La=!0;return l}a.va.oa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.va.oa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.L.videoInfos);a.C=c(a.C,a.L.j)}};
vU=function(a,b){if(!a.Ma[b.id]){var c=a.manifest.j[b.id].index.fZ(a.Ea,15);c=b.Xw&&a.B&&a.B.index.isLoaded()?c||b.Xw:c||b.sb;a.Ma[b.id]=c}c=a.Ma[b.id];a.Va.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.eb.rh()||0)};
gRa=function(a,b){a=xea(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
hRa=function(a){var b=[];if(a.j.reason==="m"||a.j.reason==="s")return b;if(cGa(a.manifest)){for(var c=Math.max(0,a.W-2);c<a.W&&c<a.D.length;c++)b.push(a.D[c].itag);b.reverse()}return b};
WQa=function(a,b){var c;return nM(a.j,b)&&(!a.G.j||!a.j.isLocked()||((c=a.nextVideo)==null?void 0:c.info.id)===a.G.j)};
RQa=function(a){var b=g.Xb(a.L.j,function(d){return d.audio.j}),c=g.Xb(a.L.j,function(d){return!d.audio.j});
if(!b)return null;if(!a.policy.bE)return c;a.policy.yD&&b&&(a.va.oa("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};
iRa=function(a){var b=a===void 0?{}:a;a=b.zj===void 0?!1:b.zj;var c=b.Jk===void 0?!1:b.Jk;b=b.xr===void 0?!1:b.xr;return a?b?3:2:c?-1:1};
jRa=function(a){this.track=a;this.buffered=[];this.C=this.D=0;this.L={};this.G=0;this.j=new rP};
kRa=function(a,b,c){a.flush();a.B=c;xU(a,3,b)};
xU=function(a,b,c){var d=[],e=a.track.Rb;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.Dx()*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};
mRa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ea=c;this.D=this.B=0;this.Pf=null;this.qa=new Set;this.Z=[];this.indexRange=this.initRange=null;this.W=new UG;this.ra=this.Ba=!1;this.Qc={bpa:function(){return d.C},
woa:function(){return d.chunkSize},
qoa:function(){return d.U},
poa:function(){return d.L}};
(b=lRa(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.U=b.ck,this.L=b.civ):(this.chunkSize=a.wD,this.C=0,this.U=g.Sv(16),this.L=g.Sv(16));this.G=new Uint8Array(this.chunkSize);this.U&&this.L&&(this.crypto=new nPa(this.U,this.L))};
lRa=function(a){if(a.policy.Xf&&a.policy.UD)for(var b=g.x(a.policy.Xf),c=b.next(),d={};!c.done;d={rP:void 0,JP:void 0},c=b.next())if(c=g.wr(c.value),d.rP=+c.clen,d.JP=+c.csz,d.rP>0&&d.JP>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.rP,a.csz=d.JP,a.ck=c.ck,a.civ=c.civ,a};
yU=function(a){return!!a.Pf&&a.Pf.Ti()};
rRa=function(a,b){if(!yU(a)&&!a.Ja()){if(!(a.Ba||(a.Ba=!0,a.C>0))){var c=nRa(a);c=MQ(a.policy.D,a.j.info,zU(a),c,a.policy.ib);oRa(a,c)}if(b.info.type===1){if(a.Pf){AU(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=LN(0,b.j.getLength())}else if(b.info.type===2)a.Pf&&a.Pf.type===1||AU(a,Error("Woffle: Index before init")),a.indexRange=LN(a.initRange.end+1,b.j.getLength());else if(b.info.type===3){if(!a.Pf){AU(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(a.Pf.type===3&&!QN(a.Pf,b.info)&&(a.Z=[],b.info.Oa!==RN(a.Pf)||b.info.B!==0))return;if(b.info.D){c=g.x(a.Z);for(var d=c.next();!d.done;d=c.next())pRa(a,d.value);a.Z=[]}else{a.Z.push(b);a.Pf=b.info;return}}else{AU(a,Error("Woffle: Unexpected slice type"));return}a.Pf=b.info;pRa(a,b);qRa(a)}};
pRa=function(a,b){var c=0,d=b.j.Ok();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.B;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={PN:void 0})if(e.PN=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.PN),a.G.set(f,a.B),a.B+=e.PN,c+=e.PN,a.B===a.G.length){if(b.info===a.Pf&&yU(a)&&c===d.length)break;e=nRa(a);e=MQ(a.policy.D,a.j.info,zU(a),e,a.policy.ib,a.D,a.G,a.crypto);
a.qa.add(e);oRa(a,e);a.Ja()||(e=nRa(a),a.Ea(zU(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}};
qRa=function(a){if(yU(a))if(a.Pf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=sRa(a),d=a.policy.D;Promise.all(a.qa).then(function(){var e=MQ(d,a.Pf.j.info,zU(a,!0),c,a.policy.ib,a.D,b,a.crypto);oRa(a,e,!0)})}else AU(a,new BU("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else AU(a,new BU("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
nRa=function(a){return{downloadedEndTime:Math.round(a.Pf?a.Pf.Vf:0),maxKnownEndTime:Math.round(a.j.index.uu()),averageByteRate:Math.round(a.j.info.Xw)}};
sRa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.uu()),averageByteRate:Math.round(a.j.info.Xw)}};
zU=function(a,b){b===void 0||!b||a.indexRange&&a.initRange&&a.Pf||AU(a,new BU("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.U,b.civ=a.L);var c="local://localhost/videoplayback?"+tr(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:a.j.info.sb*8,lastModified:String(a.j.info.lastModified),initRange:(d=
a.initRange)==null?void 0:hFa(d),indexRange:(e=a.indexRange)==null?void 0:hFa(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};
oRa=function(a,b,c){c=c===void 0?!1:c;b.then(function(d){a.qa.delete(b);(c||d===4)&&a.W.resolve(d)},function(d){a.W.reject(d)})};
AU=function(a,b){g.IQ(a.policy.D)!==4&&(g.JQ(a.policy.D,4),g.fx(b),a.W.reject(new BU(b.message)))};
BU=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};
tRa=function(a){a=g.jN(a,1886614376);for(var b=g.x(a),c=b.next();!c.done;c=b.next());return g.Ml(a,function(d){return FEa(d)})};
uRa=function(a){var b=Ol(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.x(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
vRa=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};
CU=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Re=!1;this.B=null;if((b==null?void 0:b.toLowerCase())==="webm"||a.length===16)this.Re=!0};
xRa=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=wRa(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=ld(Nd(n,7)),b==null||a.Re||(a.cryptoPeriodIndex=b),b=ld(Nd(n,10)),b!=null&&b>0&&!a.Re&&(a.j=b),n=Xd(n,
2,Mca,void 0===Pca?2:Qca?4:5),n=g.x(n),b=n.next();!b.done;b=n.next())a.C.push(g.uc(Dc(b.value),4))};
yRa=function(a){return isNaN(a.cryptoPeriodIndex)?g.uc(a.initData):""+a.cryptoPeriodIndex};
DU=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.vH===void 0?void 0:d.vH;d=d.aL===void 0?!1:d.aL;this.videoId=a;this.status=b;this.videoDuration=c;this.vH=e;this.aL=d};
zRa=function(a,b,c,d,e){this.videoId=a;this.gQ=b;this.B=c;this.bytesDownloaded=d;this.j=e};
EU=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 EU(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=dB(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new ZA([b]);$A(d,a);return d};
FRa=function(a,b,c){var d=this;this.va=a;this.policy=b;this.L=c;this.logger=new g.KT("dash");this.B=[];this.j=null;this.Ba=-1;this.Z=0;this.Fa=NaN;this.qa=0;this.C=NaN;this.W=this.La=0;this.Ua=-1;this.Ma=this.G=this.D=this.Ea=null;this.eb=this.Va=NaN;this.U=this.ra=this.Za=this.ib=null;this.rb=!1;this.Pa=this.timestampOffset=0;this.Qc={mZ:function(){return d.B}};
if(this.policy.D){var e=this.L,f=this.policy.D;this.policy.ib&&a.oa("atv",{ap:this.policy.ib});this.U=new mRa(this.policy,e,function(h,l,m){FU(a,new DU(d.policy.D,2,{vH:new zRa(f,h,e.info,l,m)}))});
this.U.W.promise.then(function(h){d.U=null;h===1?FU(a,new DU(d.policy.D,h)):d.va.oa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof BU&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.va.oa("offlinenwerr",{em:l}),ERa(d),FU(a,new DU(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.va.oa("dldbwerr",{em:l}),ERa(d),FU(a,new DU(d.policy.D,4,{aL:!0})))})}};
GRa=function(a){return a.B.length?a.B[0]:null};
HRa=function(a,b){return a.B.some(function(c){return c.info.Oa===b})};
ORa=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.B+a.G.C;if(c.info.B>0)if(c.info.Oa===a.G.Oa&&c.info.B<e){if(c.info.B+c.info.C<=e)return;c=IFa(c,e-c.info.B)[1]}else if(c.info.Oa>=0&&a.G.Oa>=0&&!QN(a.G,c.info))throw new g.lt("improper_continuation",a.G.Cc(),c.info.Cc());lFa(a.G,c.info)||IRa(a,"d")}else if(c.info.B>0)throw new g.lt("continuation_of_null",c.info.Cc());a.G=c.info;a.L=c.info.j;if(c.info.B===0){if(a.j)if(!a.va.isOffline()||a.policy.Dl)a.va.oa("slice_not_fully_processed",{buffered:a.j.info.Cc(),
push:c.info.Cc()});else throw new g.lt("slice_not_fully_processed",a.j.info.Cc(),c.info.Cc());GU(a);a.La=d}else{if(a.La&&d&&a.La!==d)throw a=new g.lt("lmt_mismatch",c.info.Oa,a.La,d),a.level="WARNING",a;!c.info.j.vn()&&a.D&&(d=c.info,e=a.D.vj,d.G="updateWithEmsg",d.Oa=e)}if(a.j){d=hO(a.j,c);if(!d)throw new g.lt("failed_to_merge",a.j.info.Cc(),c.info.Cc());a.j=d}else a.j=c;a:{c=g.rG(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.D)break a;a.j.info.type===6?JRa(a,b,a.j):KRa(a,a.j);a.j=null}for(;a.j;){d=
a.j.j.getLength();if(a.Ba<=0&&a.Z===0){var f=a.j.j,h=-1;e=-1;if(c){for(var l=0;l+8<f.getLength();){var m=ava(f,l),n=ava(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 EU(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.Ba=h;a.Z=e-h}if(a.Ba>d)break;a.Ba?(d=LRa(a,a.Ba),d.G&&MRa(a,d),JRa(a,b,d),NRa(a,d),a.Ba=0):a.Z&&(d=LRa(a,a.Z<0?Infinity:a.Z),a.Z-=d.j.getLength(),NRa(a,d))}}a.j&&a.j.info.D&&(NRa(a,a.j),a.j=null)};
KRa=function(a,b){!b.info.j.vn()&&b.info.B===0&&(g.rG(b.info.j.info)||b.info.j.info.Re())&&NFa(b);if(b.info.type===1)try{MRa(a,b),PRa(a,b)}catch(e){g.ex(e);var c=SN(b.info);c.hms="1";a.va.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.UQ(b);a.U&&rRa(a.U,b);if(c.yg()&&a.policy.j)a:{a=a.va.manifest;b=b.info.clipId;c=tG(c.info,a.Yb);if(b){var d=dGa(a,c);if(a.Pa[d])break a;a.Pa[d]=b}a.Ma.push(c)}};
ERa=function(a){var b;(b=a.U)==null||b.dispose();a.U=null};
QRa=function(a){var b=a.B.reduce(function(c,d){return c+d.j.getLength()},0);
a.j&&(b+=a.j.j.getLength());return b};
RRa=function(a){if(a.ra&&!a.policy.hw){var b=a.va;b.manifest.isManifestless&&FO(b.manifest,a.ra.Oa,!!a.L.info.video)}a.ra=null;a.D=null;a.G=a.ib;a.C=a.G?a.C-a.qa:NaN;GU(a)};
LRa=function(a,b){var c=a.j;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.j=null,c;c=IFa(c,b);a.j=c[1];return c[0]};
MRa=function(a,b){b.j.getLength();var c=b.Pd();if(nG(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new kN(c);mN(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;mG(d)&&!nG(d)&&(d=b.Pd(),(new kN(d)).To(),qN([408125543,374648427,174,224],21936,d));b.info.j.info.Of()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.rG(d.info)?d.B=PEa(c):d.info.Re()&&(d.B=WEa(c))));
b.info.j.info.Re()&&b.info.Of()&&(c=b.Pd(),(new kN(c)).To(),qN([408125543,374648427,174,224],30320,c)&&qN([408125543,374648427,174,224],21432,c));if(a.policy.uE&&b.info.j.info.Re()){c=b.Pd();var e=new kN(c);if(mN(e,[408125543,374648427,174,29637])){d=pN(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.Kf()&&g.rG(b.info.j.info)){d=b.Pd();c=g.aN(d,0,1701606260);f=g.aN(d,0,1836476516);if(c&&f){c.skip(2);var h=QM(c),l=SM(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<
l;++h)d.push(TM(c)),e.push(TM(c)),m.push(QM(c)),n.push(QM(c));else for(h=0;h<l;++h)d.push(RM(c)),e.push(RM(c)),m.push(QM(c)),n.push(QM(c));c=g.bN(f);c=new MEa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.rG(b.info.j.info))for(d=b.Pd(),e=g.aN(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.aN(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.vn()||b.info.j.j||b.info.j.indexRange||lO(b)};
JRa=function(a,b,c){if(c.info.j.vn()){if(a.rb&&SRa(c)&&(b=c.Pd(),b=g.aN(b,0,1953658222))){b.skip(1);var d=PM(b)<<16|QM(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=SM(b);m<2||(e&&b.skip(4),f&&b.skip(4),e=SM(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.Ea&&!!a.Ea.L.D)if(b=c.info.Of())b=LFa(c),h=a.Ea,HU?(l=1/b,b=IU(a,b)>=IU(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&SRa(c)&&(b=a.Ea,HU?(l=LFa(c),h=1/l,l=IU(a,l),b=IU(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,OEa(c.Pd(),b))}else{h=!1;a.D||(NFa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.vj,f.G="updateWithEmsg",f.Oa=d,f=c.B,f.Ti&&(d=a.L.index,d.B=!f.Ti,d.C="emsg"),f=c.info.j.info,d=c.Pd(),g.rG(f)?iN(d,1701671783):f.Re()&&qN([408125543],307544935,d)));a:if((f=kO(c,a.policy.Vb))&&MFa(c))l=TRa(a,c),a.W+=l,f-=l,a.qa+=f,a.C=a.policy.wk?a.C+f:NaN;else{if(a.policy.Ow){if(d=m=a.va.Tp(iO(c),1),a.C>=0&&c.info.type!==6){if(a.policy.wk&&isNaN(a.Va)){g.fx(new g.lt("Missing duration while processing previous chunk",
c.info.Cc()));a.va.isOffline()&&!a.policy.Dl||URa(a,c,d);IRa(a,"m");break a}var n=m-a.C,p=n-a.W,q=c.info.Oa,r=a.Ma?a.Ma.Oa:-1,t=a.eb,u=a.Va,y=a.policy.Sq&&n>a.policy.Sq,A=Math.abs(p)>10,C=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Pa+=1;var F=(e=a.D)==null?void 0:ZM(e);e={audio:""+ +a.Kf(),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.va.handleError("qoe.avsync",
e);a.Ua=q}y||A||C||(d=a.C);e=TRa(a,c,m);f-=e;a.W=n+e;a.policy.C&&(p&&!C||e)&&(n=(l=a.D)==null?void 0:ZM(l),a.va.oa("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Oa,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;URa(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.Oq&&a.Pa>=a.policy.Oq&&(a.Pa=0,a.va.vp({resetForRewrites:"count"})))}a.Ma=
c.info;a.Va=jO(c);c.C>=0&&(a.eb=c.C);if(h&&a.D){h=VRa(a,!0);TN(c.info,h);a.j&&TN(a.j.info,h);b=g.x(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.L&&l.Oa!==((e=a.D)==null?void 0:e.vj)||TN(l,h);(c.info.D||a.j&&a.j.info.D)&&c.info.type!==6||(a.ra=h,a.policy.eb?(b=WRa(a.D),a.va.jM(a.L,h,b)):(b=a.va,b.manifest.isManifestless&&XRa(b,h,null,!!a.L.info.video)),a.policy.Rg||YRa(a))}}PRa(a,c);a.timestampOffset&&KFa(c,a.timestampOffset)};
NRa=function(a,b){if(b.info.D){a.ib=b.info;if(a.D){var c=a.D,d=VRa(a,!1);c=WRa(c);a.va.jM(a.L,d,c);a.ra||a.policy.Rg||YRa(a);a.ra=null}GU(a)}a.U&&rRa(a.U,b);if(d=a.mp())if(d=hO(d,b,a.policy.Jm)){a.B.pop();a.B.push(d);return}a.B.push(b)};
WRa=function(a){if(a.cG()){var b=a.data["Stitched-Video-Id"]?a.data["Stitched-Video-Id"].split(",").slice(0,-1):[],c=ZM(a),d=[];if(a.data["Stitched-Video-Duration-Us"])for(var e=g.x(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.x(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.x(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 vRa(b,c,d,e,g.KEa(a),g.LEa(a))}else a=null;return a};
GU=function(a){a.j=null;a.Ba=-1;a.Z=0;a.D=null;a.Fa=NaN;a.qa=0;a.ra=null};
IRa=function(a,b){b={rst4disc:b,cd:a.W.toFixed(3),sq:a.Ma?a.Ma.Oa:-1};a.C=NaN;a.W=0;a.Ua=-1;a.Ma=null;a.eb=NaN;a.Va=NaN;a.Za=null;a.va.oa("mdstm",b)};
PRa=function(a,b){if(a.L.info.le){if(b.info.j.info.Re()){var c=new kN(b.Pd());if(mN(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=pN(c,!0);c=d!==16?null:uN(c,d)}else c=null;d="webm"}else b.info.U=tRa(b.Pd()),c=uRa(b.info.U),d="cenc";c&&c.length&&(c=new CU(c,d),a.policy.TD&&g.rG(b.info.j.info)&&(d=UEa(b.Pd()))&&(c.B=d),c.Re=b.info.j.info.Re(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.va.Py(c))}};
YRa=function(a){var b=a.D,c=IEa(b);c&&(c.startSecs+=a.Fa,a.va.MS(a.L,c,b.vj,b.cG()))};
VRa=function(a,b){var c,d=a.D;if(c=IEa(d))c.startSecs+=a.Fa;return new MM(d.vj,a.Fa,b?d.lk:a.qa,d.ingestionTime,"sq/"+d.vj,void 0,void 0,b,c)};
URa=function(a,b,c){if(!JFa(b,c))return b=SN(b.info),b.smst="1",a.va.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Fa)&&(a.Fa=c);return!0};
TRa=function(a,b,c){var d=0;if(b.info.j.info.Re()&&!MFa(b))return 0;if(a.Ea&&!a.Kf()){var e=0;c&&g.rG(b.info.j.info)?e=c-a.C:b.info.j.info.Re()&&(e=a.W);var f=b.info.Oa;c=kO(b,a.policy.Vb);var h=a.Ea;var l=h.Ua;h=h.W;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Ua)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.rG(b.info.j.info))OEa(b.Pd(),d);else if(b.info.j.info.Re()&&(f=e-h,!g.rG(b.info.j.info)&&(b.info.j.info.Re(),d=new kN(b.Pd()),l=b.G?d:new kN(new DataView(b.info.j.j.buffer)),kO(b,!0)))){var n=
f*1E3,p=wN(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||xN(d))if(oN(d,160))if(pN(d,!0),oN(d,155)){if(f=d.pos,m=pN(d,!0),d.pos=f,n=n*1E9/p,p=rN(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=kO(b,a.policy.Vb);d=c-d}d&&b.info.j.info.Re()&&a.va.oa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
SRa=function(a){return a.info.j.vn()&&a.info.Oa===a.info.j.index.qd()};
IU=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.L.D&&b&&(b+=a.L.D.j);return b+a.getDuration()};
ZRa=function(a,b){b<0||(a.B.forEach(function(c){KFa(c,b)}),a.timestampOffset=b)};
uT=function(a,b,c,d,e){HT.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Qf=d;this.lastError=null;this.Jg=function(){f.Ja()||(f.Qf.hd.has(f.formatId)?(f.isComplete()||f.j.start(),dU(f.Qf,f.formatId)&&f.RB(2),f.Qf.dh(f.formatId)&&(mQa(f.Qf,f.formatId)?f.xd(4):(f.lastError="net.closed",f.xd(5)))):(f.lastError="player.exception",f.xd(5)))};
this.j=new g.qp(function(){f.isComplete()||(f.lastError="net.timeout",f.xd(5))},this.policy.xD);
this.j.start();hQa(this.Qf,this.formatId,this.Jg);g.vi(this.Jg)};
JU=function(a,b,c,d){g.O.call(this);var e=this;this.va=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.KT("dash");this.C=[];this.Ba=[];this.B=this.Rb=null;this.La=!1;this.Pa=this.Va=0;this.L=-1;this.ra=!1;this.Fa=-1;this.Ea=this.Ma=null;this.qa=NaN;this.Qc={AQ:function(){return e.D},
Zoa:function(){return e.C},
uoa:function(){return e.W}};
this.D=new FRa(a,b,c);this.policy.j&&(this.W=new LOa(this.D,this.va.getManifest(),this.policy,function(f){e.policy.Cq&&e.oa("buftl",f)}));
this.policy.rb&&(this.Z=new jRa(this));this.sb=c.info.sb;this.U=this.policy.Z?!1:c.qB();this.isManifestless=c.qB();this.G=this.U;g.P(this,this.Ma)};
KU=function(a,b,c){c=c===void 0?!1:c;b&&HU&&ZRa(a.D,b.NQ());if(!c){var d;(d=a.W)==null||TOa(d)}a.Rb=b;(b=a.W)!=null&&(b.Rb=a.Rb)};
LU=function(a){var b=a.Rb&&a.Rb.MF();if(a.policy.Mx){if((a=a.W)==null)a=void 0;else{var c;a=(c=a.C)==null?void 0:c.info}return a||null}return b};
$Ra=function(a){for(var b={},c=0;c<a.Ba.length;c++)b["r"+c]=a.Ba[c];return b};
aSa=function(a,b){isNaN(a.qa)||a.oa("aswr",{sq:b.info.jb[0].Oa,id:b.info.jb[0].j.info.itag,xtag:b.info.jb[0].j.info.j,ep:Date.now()-a.qa});a.C.push(b);a.B=g.Vb(b.info.jb);a.Ba.push(b.Cc());a.Ba.length>4&&a.Ba.shift()};
bSa=function(a,b){if(b.Fn()){var c=b.qm();c=g.x(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.C&&b instanceof uT&&a.oa("omblss",{s:d.info.Cc()}),MU(a,b.info.jb,d,b.KQ())}};
MU=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.qa)||(a.oa("aswm",{sq:b[0].Oa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.qa}),a.qa=NaN);switch(c.info.type){case 1:case 2:cSa(a,c);break;case 4:var e=c.info.j,f=e.wW(c),h;((h=a.B)==null?0:h.type===4)&&sFa(c.info,a.B)&&(a.B=e.xC(a.B).pop());c=g.x(f);for(e=c.next();!e.done;e=c.next())MU(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ea||(e.Ea=(0,g.Vt)(),cI("fvb_r",e.Ea,e.j))):(e=a.timing,e.L||(e.L=(0,g.Vt)(),cI("fab_r",e.L,e.j)));
ORa(a.D,b,c,d);a.policy.j&&dSa(a);break;case 6:ORa(a.D,b,c,d),a.B=c.info}};
cSa=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.Ma||(c.Ma=(0,g.Vt)(),cI("vis_r",c.Ma,c.j))}else c=a.timing,c.W||(c.W=(0,g.Vt)(),cI("ais_r",c.W,c.j));KRa(a.D,b);a=a.va;a.videoTrack.j.yg()&&a.audioTrack.j.yg()&&a.policy.j&&!a.manifest.Yb&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.oa("trBug",{af:""+tG(a.audioTrack.j.info,!1),vf:""+tG(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
CT=function(a){return GRa(a.D)};
dSa=function(a){a.C.length?a.B=g.Vb(g.Vb(a.C).info.jb):a.D.B.length?a.B=a.D.mp().info:a.B=LU(a)};
NU=function(a,b){var c={Yc:[],kp:[]},d;if((a=a.W)==null)a=void 0;else{SOa(a,a.Yc,"og");QOa(a,b);SOa(a,a.Yc,"trim");var e=ROa(a);b=e.Yc;e=e.eC;for(var f=[],h=0;h<e.length;h++){var l=e[h],m=a.policy.Ua&&l.C!==-1?l.C:l.info.startTime,n={hh:(m+a.timestampOffset)*1E3,kF:(a.policy.Ua&&l.D!==-1?l.D:l.info.duration)*1E3,ut:1E3},p=void 0,q=(p=a.Rb)==null?void 0:p.Ke();p=void 0;if(a.policy.Hw&&q&&q.length>0){var r=BG(q,m);r>=0&&(p=(q.end(r)-m+.1)*1E3)}f.push({formatId:tG(l.info.j.info,a.manifest.Yb),jk:l.info.jk,
sequenceNumber:l.info.Oa+a.D,lK:n,J_:l.info.C,GY:p})}a={Yc:b,kp:f}}return(d=a)!=null?d:c};
xT=function(a,b,c){c=c===void 0?!1:c;if(a.Rb){var d=a.Rb.Ke(),e=DG(d,b),f=NaN,h=LU(a);h&&(f=DG(d,h.j.index.getStartTime(h.Oa)));if(e===f&&a.B&&a.B.C&&eSa(fSa(a),0))return b}a=gSa(a,b,c);return a>=0?a:NaN};
zT=function(a,b,c){a.j.yg();var d=gSa(a,b);if(d>=0)return d;if((d=a.W)!=null){var e=b;d.policy.Pc&&c!=null&&c.Ds||(d.eC=[]);QOa(d,!0);d.B=MOa(d.Yc,e*1E3)}c=Math;d=c.min;e=a.D;if(e.U)if(e=e.U,e.Pf&&e.Pf.type===3)e=e.Pf.startTime;else if(e.C>0){var f=e.j.index;f=g.ic(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.va.If())==null?void 0:(l=sT(h,b))==null?void 0:l.clipId;a.B=a.j.Zr(b,
void 0,c).jb[0]}else a.B=a.policy.Z?null:a.j.Zr(b).jb[0];OU(a)&&a.Rb&&a.Rb.abort();a.Pa=0;return a.B?a.B.startTime:b};
VOa=function(a){a.U=!0;a.G=!0;a.L=-1;zT(a,Infinity)};
PU=function(a){for(var b=0,c=g.x(a.C),d=c.next();!d.done;d=c.next())b+=uFa(d.value.info);return b+=QRa(a.D)};
RU=function(a,b){b=b===void 0?!1:b;var c=a.va.getCurrentTime(),d=a.D.mp(),e=(d==null?void 0:d.info.Vf)||0;a.policy.xl&&(d==null?0:d.info.j.qB())&&!d.info.D&&(e=d.info.gf);if(a.policy.B&&d&&d.info.clipId){var f,h=(((f=a.va.If())==null?void 0:rT(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Rb)return a.policy.j&&b&&!isNaN(c)&&d?e-c:0;if((f=LU(a))&&QU(a,f))return f.Vf;f=a.Rb.Ke(!0);return b&&d?(b=0,a.policy.j&&(b=FG(f,e+.02)),b+e-c):FG(f,c)};
hSa=function(a,b){if(a.C.length){if(a.C[0].info.jb[0].startTime<=b)return;wT(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();dSa(a);a.B&&b<a.B.startTime&&(a.Pa=0,a.j.yg()?a.B=a.j.Zr(b,!0).jb[0]:a.B=null)};
iSa=function(a,b,c,d){wT(a);for(var e=a.D,f=null,h=e.B.length-1;h>=0;h--){var l=e.B[h];l.info.Oa>=b&&(e.B.pop(),e.C-=kO(l,e.policy.Vb),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.Za,e.B.length!==0||e.G||IRa(e,"r"));e.va.oa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Oa:-1,sq:b,lastslc:e.G?e.G.Oa:-1,lastfraget:e.C.toFixed(3)});a.policy.j?a.B=null:d>c?zT(a,d):a.B=a.j.Jt(b-1,!1).jb[0]};
TU=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)SU(a,b);else{for(;c<a.C.length;)SU(a,a.C.pop());var d=MQa(a);d&&d.j.Xx()&&Qm(b.info.jb,function(e){return tFa(e,d)})?(a.B=d,a.policy.C&&a.oa("cer",{lsr:"lsp",
lsp:d.Cc()})):(PN(b.info.jb[0])?(a.B=b.qg&&b.qg.C?qFa(b.qg.C):pFa(b.info.jb[0]),a.policy.C&&a.oa("cer",{lsr:a.B.Cc(),lsp:d==null?void 0:d.Cc()})):(a.B=null,a.policy.C&&a.oa("cer",{lsr:"null",lsp:d==null?void 0:d.Cc()})),a.va.isOffline()&&!a.policy.Dl||SU(a,b,!0))}};
QU=function(a,b){if(!b)return!1;if(a.policy.B){var c;if((a=(c=a.va.If())==null?void 0:UU(c))&&b.clipId!==a)return!1}return b.Ti()};
OU=function(a){var b;!(b=a.j.info.ob==="f")&&(b=a.policy.D)&&(b=a.D,b=!!b.U&&yU(b.U));if(b)return!0;b=LU(a);if(!b)return!1;var c=QU(a,b)&&b.D;return a.isManifestless&&a.Fa>0?c||b.Oa>=a.Fa:c};
VU=function(a){var b;return OU(a)||QU(a,(b=a.D.mp())==null?void 0:b.info)};
fSa=function(a){var b=[],c=LU(a);c&&b.push(c);b=g.cc(b,a.D.jq());c=g.x(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.x(d.info.jb),f=e.next(),h={};!f.done;h={NH:void 0},f=e.next())h.NH=f.value,d.dR&&(b=g.wn(b,function(l){return function(m){return!sFa(m,l.NH)}}(h))),(PN(h.NH)||h.NH.type===4)&&b.push(h.NH)}a.B&&!jFa(a.B,g.Vb(b),a.B.j.vn())&&b.push(a.B);
return b};
eSa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!kFa(a[b-1],a[b]))return!1;return!0};
gSa=function(a,b,c){c=c===void 0?!1:c;if(!a.B||!a.B.C)return NaN;a=fSa(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.gf<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return b<0?NaN:eSa(a,c?b:0)?a[b].startTime:NaN};
WU=function(a){return!(!a.B||a.B.j===a.j)};
jSa=function(a){return WU(a)&&a.j.yg()&&a.B.j.info.sb<a.j.info.sb};
kSa=function(a,b,c){if(a.policy.xl)return RU(a,!0)<c;var d=MQa(a);return d&&!QU(a,d)?d.Vf>b&&d.Vf<b+c:!1};
MQa=function(a){var b=a.D.mp();return b?b.info:LU(a)};
LQa=function(a,b){var c;return!((c=a.W)==null||!c.G.has(b))||HRa(a.D,b)};
wT=function(a){for(var b=g.x(a.C),c=b.next();!c.done;c=b.next())SU(a,c.value);a.C=[];a.B=null};
XU=function(a){var b;(b=a.W)==null||TOa(b)};
lSa=function(a,b,c){b.dR&&((c===void 0?0:c)||!b.info.jb[0].j.Xx())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.jb[0].Oa}),RRa(a.D))};
SU=function(a,b,c){lSa(a,b,c===void 0?!1:c);b.dispose()};
mSa=function(a){return!!a.B&&a.B.Oa!==-1&&a.B.Oa<a.j.index.Io()};
nSa=function(a){var b=a.B;b&&b.Oa===-1&&(a=a.D.mp())&&PN(a.info)&&(a=a.info.Oa,b.G="updateLastSliceRequested",b.Oa=a)};
oSa=function(a){return Qm(a.C,function(b){return b.fC})};
pSa=function(a,b){a.B&&(a.B.j=b)};
qSa=function(a,b){return a.Rb?CG(a.Rb.Ke(),b):!0};
YU=function(a){var b=CT(a);a=a.va.If();return b&&a&&b.info.clipId&&!rSa(a,b.info.clipId)?!0:!1};
sSa=function(a){var b;return!((b=CT(a))==null||!b.isLocked)};
tSa=function(a,b){var c=CT(a);return c&&c.info.type!==6?!NQa(b,a,c.info.Oa):!1};
uSa=function(a){var b=LU(a),c,d=(c=a.Rb)==null?void 0:c.Ke();c=NaN;b&&d&&OU(a)&&(c=DG(d,(b.gf+b.Vf)/2));return!isNaN(c)};
vSa=function(a){if((a=a.W)==null)a=void 0;else if(a.Yc.length===0)a=null;else{var b=a.Yc[a.B]?a.Yc[a.B].formatId:null;a=b?(a=a.manifest.C.get(HN(b)))?a.info:null:null}return a||null};
wSa=function(){this.zj=!1};
xSa=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.dG===void 0?!1:b.dG;var c=new wSa;c.zj=a||b;return c};
g.ySa=function(a){this.Ca=a;this.U=new wSa;this.ow=this.nw=!1;this.rr=2;this.Pa=20971520;this.tb=8388608;this.Ea=120;this.Cr=g.KD(this.Ca.experiments,"html5_min_readbehind_secs");this.pD=g.KD(this.Ca.experiments,"html5_min_readbehind_cap_secs");this.Dl=this.Ca.N("html5_offline_reset_media_stream_on_unresumable_slices");this.sb=NaN;this.Kw=this.Im=this.ly=2;this.vk=ZU(this,"html5_request_size_min_kb",64)*1024;this.Va=2097152;this.iD=ZU(this,"html5_bypass_contention_secs");this.Jw=1048576;this.Vn=!1;
this.rk=ZU(this,"html5_repredict_interval_ms",1800);this.RI=ZU(this,"html5_head_miss_secs",5);this.rD=ZU(this,"html5_min_upgrade_health_secs",10);this.Ib=15;this.Mj=1;this.W=1.15;this.ra=1.05;this.Km=1;this.qD=ZU(this,"html5_min_seconds_between_format_selections",8);this.AI=ZU(this,"html5_max_buffer_health_for_downgrade_secs",15);this.xr=fP;this.vl=this.Gd=!1;this.Bl=6;this.C=!1;this.Cl=g.KD(this.Ca.experiments,"html5_min_startup_buffered_media_duration_secs");this.pw=g.KD(this.Ca.experiments,"html5_post_interrupt_readahead");
this.qC=this.Ca.N("html5_allow_onesie_for_ssap");this.Gz=this.Ca.N("html5_disable_classic_alr");this.Cw=g.KD(this.Ca.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Zw=100;this.dk=10;this.uD=6;this.Qw=ZU(this,"html5_ssdai_failure_retry_limit",3);this.Un=this.Ca.experiments.fb("html5_clone_original_for_fallback_location");this.Uj=!1;this.Dd=g.KD(this.Ca.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Gl=g.KD(this.Ca.experiments,"html5_subsegment_readahead_timeout_secs");
this.MK=g.KD(this.Ca.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Fl=g.KD(this.Ca.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.YK=g.KD(this.Ca.experiments,"html5_subsegment_readahead_min_load_speed");this.Sw=g.KD(this.Ca.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.nL=g.KD(this.Ca.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Wq=ZU(this,"html5_hopeless_secs",15);this.Fq=1;this.yf=!1;this.sE=
this.Ca.N("html5_restrict_streaming_xhr_on_sqless_requests");this.SI=g.KD(this.Ca.experiments,"html5_max_headm_for_streaming_xhr");this.VD=this.Ca.N("html5_pipeline_manifestless_allow_nonstreaming");this.dE=this.Ca.N("html5_prefer_server_bwe3");this.zE=this.Ca.N("html5_last_slice_transition");this.KE=this.Ca.N("html5_store_xhr_headers_readable");this.Ow=this.Oh=this.Jk=!1;this.Sq=g.KD(this.Ca.experiments,"html5_max_drift_per_track_secs");this.hw=this.Ca.N("html5_no_placeholder_rollbacks");this.VJ=
this.Ca.N("html5_subsegment_readahead_enable_mffa");this.Zf=this.Ca.N("html5_allow_video_keyframe_without_audio");this.TD=this.Ca.N("html5_enable_vp9_fairplay");this.Db=!0;this.Yf=this.Za=this.Fd=!1;this.Lp=!0;this.Lw=!1;this.D="";this.wD=1048576;this.Xf=[];this.UD=this.Ca.N("html5_woffle_resume");this.Dm=this.Ca.N("html5_abs_buffer_health");this.vE=this.Ca.N("html5_interruption_resets_seeked_time");this.TI=g.KD(this.Ca.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.rb=!1;this.Bq=
this.Ca.N("html5_log_additional_source_buffer_updates");this.SG=this.Ca.N("html5_report_captions_ctmp_qoe");this.Pp=this.Ca.N("html5_explicitly_dispose_xhr");this.Dw=!1;this.Jm=!this.Ca.N("html5_encourage_array_coalescing");this.Tn=!1;this.pE=this.Ca.N("html5_restart_on_unexpected_detach");this.Gj=0;this.Xd="";this.mE=this.Ca.N("html5_filter_non_efficient_formats_for_safari");this.Ca.N("html5_format_hybridization");this.KB=this.Ca.N("html5_abort_before_separate_init");this.uE=ms();this.yE=this.Ca.N("html5_serialize_server_stitched_ad_request");
this.jD=this.Ca.N("html5_skip_buffer_check_seek_to_head");this.Rg=!1;this.Hm=this.Ca.N("html5_attach_po_token_to_bandaid");this.yr=g.KD(this.Ca.experiments,"html5_max_redirect_response_length")||8192;this.wk=this.Ca.N("html5_rewrite_timestamps_for_webm");this.Vb=this.Ca.N("html5_only_media_duration_for_discontinuities");this.nE=g.KD(this.Ca.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ca.N("html5_onesie_live");this.oL=this.Ca.N("html5_onesie_premieres");this.SD=this.Ca.N("html5_drop_onesie_for_live_mode_mismatch");
this.vD=g.KD(this.Ca.experiments,"html5_onesie_live_ttl_secs")||8;this.Et=g.KD(this.Ca.experiments,"html5_attach_num_random_bytes_to_bandaid");this.xD=g.KD(this.Ca.experiments,"html5_onesie_request_timeout_ms")||3E3;this.B=!1;this.vL=this.Ca.N("html5_update_container_type_on_codec_family_change")||this.Ca.N("html5_use_update_container_type_codec_family");this.Mz=this.Ca.N("html5_dont_call_change_type_on_updating");this.ag=this.Ca.N("html5_apply_ssap_slice_info_adjustment");this.Sb=this.Ca.N("html5_enable_sabr_host_fallback");
this.aD=this.Ca.N("html5_apply_internal_buffered_ranges_merge_fix");this.Ba=!1;this.Kp=this.Ca.N("html5_ssap_enable_legacy_browser_logic");this.iE=this.Ca.N("html5_ssap_enable_delay_init");this.oE=this.Ca.N("html5_gapless_fallback_on_append_error");this.AE=this.Ca.N("html5_shorts_stop_request_when_buffer_to_end");this.OM=this.Ca.N("html5_vod_stop_request_when_buffer_to_end");this.Mx=!1;this.La=this.Ca.N("html5_ssdai_use_post_for_media")&&this.Ca.N("gab_return_sabr_ssdai_config");this.LL=this.Ca.N("html5_use_post_for_media");
this.kd=this.Ca.N("html5_use_live_ump_heartbeat");this.useUmp=this.Ca.N("html5_use_ump");this.ib=this.Fa=!1;this.bE=this.Ca.Zf;this.lE=this.Ca.N("html5_reset_primary_stats_on_redirector_failure");this.fE=this.Ca.N("html5_remap_to_original_host_when_redirected");this.Xn=this.Qj=this.Mp=this.j=this.Op=!1;this.Np=this.Ca.N("html5_sabr_support_quality_constraints");this.cE=this.Ca.N("html5_sabr_fill_quality_constraints");this.hE=this.Ca.N("html5_sabr_remove_all_quality_constraints");this.kD=this.Ca.N("html5_iterative_seeking_buffered_time");
this.Cm=this.Ca.N("html5_use_network_error_code_enums");this.Jz=this.Ca.N("html5_disable_overlapping_requests");this.L=!1;this.enableServerDrivenRequestCancellation=this.Ca.N("html5_enable_server_driven_request_cancellation");this.eE=this.Ca.N("html5_enable_sabr_request_timing");this.He=this.Ca.N("html5_enable_server_format_filter");this.yD=this.Ca.N("html5_drc_edit_sync_workaround");this.WD=this.Ca.N("html5_enable_lawnmower");this.YD=this.Ca.N("html5_enable_lawnmower_messaging");this.wE=this.Ca.N("html5_sabr_catch_pushslice_error");
this.Kj=this.Ca.Xb()?g.KD(this.Ca.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.xE=g.KD(this.Ca.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Dt=g.KD(this.Ca.experiments,"html5_normal_latency_mffa_ms")||NaN;this.tD=g.KD(this.Ca.experiments,"html5_mffa_ms_proxima_override")||this.Dt;this.tG=this.Ca.N("html5_live_defrag_only_h264_playbacks");this.sG=this.Ca.N("html5_live_defrag_only_h264_formats");this.Ew=this.Ca.N("html5_record_now");this.lh=!1;this.Zn=g.KD(this.Ca.experiments,
"html5_drm_byterate_soft_cap");this.ao=g.KD(this.Ca.experiments,"html5_drm_live_byterate_soft_cap");this.Cq=this.Iw=!1;this.qa=this.Ca.N("html5_sabr_log_request_creation");this.Jc=this.Ca.N("html5_sabr_report_request_cancellation_info");this.Ph=this.mw=this.Rw=!1;this.Pw=this.Ca.N("html5_spoof_4k");this.Br=ZU(this,"html5_min_media_duration_for_cabr_slice");this.oD=this.Jm?0:ZU(this,"html5_min_media_duration_for_append_prop");this.jE=this.Ca.N("html5_remove_defrag_without_frame_level_streaming");this.Te=
!0;this.lD=this.Ca.N("html5_consume_all_buffered_bytes_one_poll");this.Lz=this.Ca.N("html5_disable_urgent_adaptation");this.tC=this.Ca.N("html5_apply_constraints_in_client_for_sabr");this.Mw=this.Ca.N("html5_send_video_playback_ustreamer_config");this.Oq=ZU(this,"html5_max_discontinuity_rewrite_count");this.bq=ZU(this,"html5_fixed_media_duration_for_request");this.Ua=!1;this.zf=ZU(this,"html5_sabr_request_limit_per_period");this.lw=this.G=!1;this.Pc=this.Ca.N("html5_sabr_live_partial_segment");this.xk=
this.Ca.N("html5_sabr_dispose_media_objects");this.Yn=!1;this.ek=this.Ca.N("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.qw=this.xl=!1;this.aE=this.Ca.N("html5_enable_d6de4");this.VL=this.Ca.N("html5_ssap_keep_only_ssap_eos_check");this.Ca.N("html5_high_res_seek_logging");this.Kb=this.Ca.N("html5_update_buffer_timeline_until_update_end");this.bj=this.Ma=!1;this.Wn=this.Ca.N("html5_disable_chunk_synchronization_sabr_seek");this.kE=this.Ca.N("html5_enable_ssap_multi_audio_format_filtering");
this.jy=this.Nw=this.Z=this.El=this.eb=!1;this.jw=g.KD(this.Ca.experiments,"html5_override_micro_discontinuities_threshold_ms");this.Se=this.Ac=this.sx=this.Fw=this.Hw=!1;this.Fz=this.Ca.N("defer_slice_processing_on_healthy_buffer_sabr");this.qq=this.Ca.N("html5_byterate_constraints");this.rE=this.Ca.N("html5_refactor_sabr_audio_format_selection_logging");this.gE=this.Ca.N("enable_sabr_snackbar_message");this.Po=this.Ca.N("html5_sabr_request_alr");this.zG=this.Ca.N("html5_log_additional_meminfo");
this.Gw=!1;this.Ca.N("html5_reinit_source_buffer_by_new_element");this.tE=this.Ca.N("html5_refactor_sabr_video_format_selection_logging");this.BH=this.Ca.N("html5_log_slice_info_in_sbu");this.uc=ZU(this,"html5_paced_poll_ms");this.zD=ZU(this,"html5_paced_poll_min_health_ms");this.AF=this.Ca.N("html5_limit_media_time_adjustment_for_buffer_underrun");this.Kz=this.Ca.N("html5_disable_sabr_fallback");this.yk=g.KD(this.Ca.experiments,"html5_enable_sps_retry_backoff_ms");this.Iz=this.Ca.N("html5_disable_index_rollback_on_audio_switch_for_vod")};
eRa=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.nw&&(a.Pa=36700160,a.tb=5242880,a.Va=Math.max(4194304,a.Va),a.nw=!0);b.video.j>2160&&!a.ow&&(a.Pa=104857600,a.sb=13107200,a.ow=!0);g.KD(a.Ca.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.is()&&g.gs("samsung")&&(g.gs("kant")||g.gs("muse"))&&(a.sb=g.KD(a.Ca.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.is()&&g.gs("kant")&&(a.sb=1310720);a.Zn!==0&&b.isEncrypted()&&(a.sb=a.Zn);a.ao!==0&&b.isEncrypted()&&
c&&(a.sb=a.ao);b.sb&&(a.Jw=Math.max(a.vk,Math.min(a.Va,5*b.sb)))};
$U=function(a){return a.j&&a.Qj&&a.playbackStartPolicy};
aV=function(a){return a.B||a.j&&a.He};
zSa=function(a,b,c,d){a.Qj&&(a.playbackStartPolicy=b,a.ZD=c,a.XD=d)};
ZU=function(a,b,c){c=c===void 0?0:c;return g.KD(a.Ca.experiments,b)||c};
ASa=function(a){var b=a===void 0?{}:a;a=b.Jk;var c=b.zj;var d=b.nk;var e=b.qd;b=b.Ax;this.Jk=a;this.zj=c;this.nk=d;this.qd=e;this.Ax=b};
hPa=function(a,b){if(b<0)return!0;var c=a.qd();return b<c||b===c&&!a.Jk||b===c&&(a=a.Ax())&&b===a.Oa?!0:!1};
iPa=function(a,b,c){if(!hPa(a,b))return 0;if(!a.zj||!isNaN(c)&&c>0)return 2;if(b<0)return 1;c=a.qd();return b<c||b===c&&(a=a.Ax())&&b===a.Oa&&!a.pending?2:1};
bV=function(a,b,c){g.O.call(this);this.va=a;this.policy=b;this.Oc=c;this.B=0;this.j=!1;this.delay=new g.qp(this.C,this.policy.Kj,this);g.P(this,this.delay)};
BSa=function(a,b){IM(b.j)||(a.resource=b,a.B=0,g.rp(a.delay))};
CSa=function(a,b,c,d,e){var f=this;this.va=a;this.policy=b;this.Oc=c;this.resource=d;this.qk=e;this.done=!1;this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*BP(this.Oc)));this.timing=new FT(this,{Oc:this.Oc,FA:this.size,Pr:!0,Hv:function(){},
bK:this.policy.C});a=EN(this.resource,this.qk,this.policy).base.clone();GM(a);a.path!=="/videogoodput"&&(a.path="/videogoodput",a.url="");this.location=new yN(a);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=JT(this.location,this.policy.U,this.timing,this.policy.xr,{});setTimeout(this.onTimeout,1E4)};
DSa=function(a,b,c){var d=a.Yr();if(a.isComplete()||!d||a.info.resource.qk(b,c)||d<2)return 0;a=BN(c,FN(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
ESa=function(a,b,c){if(!(b.Cw&&a.isComplete()&&a.canRetry()&&a.info.resource.qk(b,c))||a.info.resource.W)return 0;a=BN(c,FN(a.info.resource,!1,b));return a.B+b.Cw*dFa(a,!0)>(0,g.Vt)()?0:1};
cV=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.va=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.qa=q;this.tN=r;this.Ki=t;this.ra=!1;this.CH="";this.jm=null;this.wh=NaN;this.Ba=!1;this.B=null;this.Lh=this.Z=NaN;this.Iq=this.L=0;this.logger=new g.KT("dash");this.Qc={BR:function(y,A){return u.BR(y,A)}};
this.policy.Et>0&&(this.CH=g.Sv(this.policy.Et));this.policy.Kj&&(this.W=new bV(this.va,this.policy,this.schedule),g.P(this,this.W))};
HSa=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.fE)||(f=HM(d.j)===HM(d.C));f?d=!1:(e=BN(e,HM(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.Vt)()<e.B+f?d=!1:(e.B=(0,g.Vt)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.va.oa("hostch",{},!0);if(FSa(a,b,c)){c=a.U(b,c);if(a.B){var h=c.jb[0].j.info.id;d=a.j;e=c.jb[0].Oa;d=e<0&&!isNaN(d.G)?d.G:e;e=jU(a.j,c.jb[0].gf,d);var l=b===a.audioTrack?1:2,m=c.jb[0].j.info.ob;f=h.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Vg.event;if(n.j.Oa===d){n=p===
"predictStart"?void 0:n.j.Vg.event;break a}if(n.j.Oa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n=void 0}if(a.policy.La&&a.j.B!==0){var q=a.B.KK(e,d,h,l,m,n);d<0&&l===2&&kU(a.j,0,0,!0);if(q){var r;h=((r=q.Kn)==null?void 0:r.Xt)||"";var t;r=((t=q.Kn)==null?void 0:t.DU)||-1;a.va.oa("sdai",{ssdaiinfo:"1",ds:h,skipsq:r,itag:f,f:m,sg:d,st:e.toFixed(3)});c.D=q}}else if(t=a.B.JA(e,d,h,l,m,n),d<0&&l===2&&kU(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.yE&&b.isRequestPending(d-
1)){a.va.oa("sdai",{wt_daistate_on_sg:d-1});return}a.va.oa("sdai",r);t&&(c.j=new g.FM(t));a.policy.C&&(t=c.resource.BK("id")||"",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.va.oa("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.va.oa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Tn&&c.jb[0].Oa!==-1&&c.jb[0].Oa<a.manifest.mf&&(c=b.j.Jt(a.manifest.mf,!1));aSa(b,GSa(a,c));gU(a.timing);var u;(u=a.W)==null||BSa(u,c.resource)}};
FSa=function(a,b,c){if(a.policy.lh)return!1;var d;var e=a.j,f=((d=b.B)==null?void 0:d.Oa)||-1;e.B===3&&f+1>=e.D?(e.oa("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!GN(b.B?b.B.j.resource:b.j.resource,a.policy,a.D,a.va.Hx())||a.va.isSuspended&&(!CP(a.schedule)||a.va.XJ))return!1;if(a.policy.D&&LQ>=5)return g.rp(a.va.HG),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Oa===-1||b.C.length>=a.policy.Fq||!a.policy.VD&&b.C.length>0&&!a.policy.U.zj)return!1;if(b.U)return!a.manifest.isLive||
!isNaN(a.wh)}if(oSa(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.yg())return!1;zT(b,a.va.getCurrentTime())}if(CT(b)&&(b.mp()!==CT(b)||a.va.isSuspended))return!1;e=(d=a.policy.iD)&&!b.C.length&&RU(b,!0)<Math.min(d,RU(c));d=b.C.length+c.C.length;f=!a.policy.Jz&&((b.C.length?b.C[0].Yx():!1)||(c.C.length?c.C[0].Yx():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.rr)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.yg()&&(b.B=g.Vb(d.j.xC(d)),d=b.B);
if(!d.Ti()&&!d.j.It(d))return!1;f=a.manifest.je||a.manifest.D;if(a.manifest.isManifestless&&f){f=b.j.index.qd();var h=c.j.index.qd();f=Math.min(f,h);if(b.j.index.vK()>0&&f>0&&d.Oa>=f)return b.Fa=f,c.Fa=f,!1}if(d.j.info.audio&&d.type===4||d.Ti())return!1;f=!b.G&&!c.G;if(e=!e)e=d.Vf,e=!!(c.B&&!QU(c,c.B)&&c.B.Vf<e);h=b===a.videoTrack&&a.policy.Fa;return e&&(!a.manifest.isManifestless||c.B&&c.B.Vf&&d.Vf)&&f&&!h||a.policy.Db&&!b.G&&c.G?!1:PN(d)&&d.Vf>ISa(a,b)?(ISa(a,b),!1):(a=b.Rb)&&a.isLocked()?!1:!0};
ISa=function(a,b){var c=a.j;c=c.j?c.j.Vg:null;if(a.policy.Fa&&c)return c.startSecs+c.Xg+15;b=yT(a.va,b);a.policy.Ib>0&&(c=((0,g.Vt)()-a.va.Dq)/1E3,b=Math.min(b,a.policy.Ib+a.policy.Mj*c));c=a.va.getCurrentTime()+b;return a.policy.pw&&(b=JSa(a.va)+a.policy.pw,b<c)?(a.va.oa("mrl",{ori:c,mod:b},!0),a.policy.vE&&(a=a.va,c=(0,g.Vt)(),a.Dq=c),b):c};
KSa=function(a,b,c){if(c!==0){a:if(b=b.info,c=c===2,b.j)b=null;else{var d=b.jb[0];if(b.range)var e=LN(b.range.start,Math.min(4096,b.C));else{if(b.B&&b.B.indexOf("/range/")>=0||b.resource.BK("defrag")==="1"||b.resource.BK("otf")==="1"){b=null;break a}e=LN(0,4096)}e=new UN([new NN(5,d.j,e,"createProbeRequestInfo"+d.G,d.Oa)],b.B);e.qk=c;e.j=b.j;b=e}b&&GSa(a,b)}};
GSa=function(a,b){a.va.zZ(b);var c=uFa(b),d=a.va.CK();c={Oc:a.schedule,FA:c,iT:GOa(a.G,c),Zp:ON(b.jb[0]),Pr:IM(b.resource.j),bK:a.policy.C,Hv:function(h,l){a.va.FH(h,l)}};
if(a.schedule.Z.D){var e,f;c.Hq=(((e=a.videoTrack.j)==null?void 0:e.info.sb)||0)+(((f=a.audioTrack.j)==null?void 0:f.info.sb)||0)}a.jm&&(c.Oa=b.jb[0].Oa,c.wh=b.wh,c.jm=a.jm);d={ax:vFa(b,a.va.getCurrentTime()),sH:a.policy.yf&&WN(b)&&b.jb[0].j.info.video?hRa(a.C):void 0,pI:a.policy.Fa,poToken:a.va.vu(),Sy:a.va.VA(),CH:a.CH,Lh:isNaN(a.Lh)?null:a.Lh,Ki:a.Ki,tN:a.tN,Iq:a.Iq,hC:d};return new vT(a.policy,b,c,a.D,function(h,l){try{a:{var m=h.info.jb[0].j,n=m.info.video?a.videoTrack:a.audioTrack;if(!(h.state>=
2)||h.isComplete()||h.Yr()||!(!a.va.Ra||a.va.isSuspended||RU(n)>3)){var p=DSa(h,a.policy,a.D);p===1&&(a.Ba=!0);KSa(a,h,p);if(h.isComplete()||h.Ja()&&l<3){if(a.policy.C){var q=h.timing.Ir();q.rst=h.state;q.strm=h.xhr.Tv();q.cncl=h.xhr&&h.Tc.D?1:0;a.va.oa("rqs",q)}h.F2&&a.va.oa("sbwe3",{},!0)}if(!a.Ja()&&h.state>=2){DQa(a.timing,h,m);var r=a.va;a.Lh&&h.AJ&&r&&(a.Lh=NaN,a.va.mU(h.AJ),a.va.SE(),a.va.oa("cabrUtcSeek",{mediaTimeSeconds:h.AJ}));h.DC&&(h.eq>0&&a.va.oa("sError",{errorHttpResponseCode:h.eq.toString()}),
a.Lh&&h.DC&&!h.DC.action&&(a.va.Xu(a.Lh),a.Lh=NaN,a.va.oa("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.Lh})));h.ir&&a.va.zv(h.ir);a.policy.kd&&(a.Iq=h.Iq);if(h.state===3){TU(n,h);WN(h.info)&&dV(a,n,m,!0);if(a.B){var t=h.info.JA();t&&a.B.Pk(h.info.jb[0].Oa,m.info.id,t)}a.va.xe()}else if(h.isComplete()&&h.info.jb[0].type===5){if(h.state!==4)h.fm()&&a.va.handleError(h.Th(),h.hq());else{var u=(h.info.jb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;u&&u instanceof vT&&u.Yr()&&u.Yv(!0)}h.dispose()}else{h.fm()||
LSa(a,h);var y;((y=h.AB)==null?0:y.itagDenylist)&&a.va.gM(h.AB.itagDenylist);if(h.state===4)MSa(a,h),a.j&&JQa(a.j,h.info,a.B);else if(a.policy.xr&&h.Fn()&&!h.isComplete()&&!MSa(a,h)&&!h.fm())break a;h.fm()&&(NSa(a,h),isNaN(a.Lh)||(a.va.Xu(a.Lh),a.Lh=NaN));a.policy.uc&&!h.isComplete()?OSa(a.va):a.va.xe();var A=ESa(h,a.policy,a.D);KSa(a,h,A)}}}}}catch(C){l=a.ra?1:0,a.ra=!0,h=WF(l),l=XF(C,l),a.va.handleError(l.errorCode,l.details,l.severity),h||a.va.dj()}},d)};
LSa=function(a,b){if(b.fC&&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=gRa(a.C,c),e=b.info.C;e&&(e-=d.BQ(),d.C=!0,b.info.jb[0].j.C=!1,eQa(b,d.Ex(e)),eV(a.va,a.videoTrack,d),pSa(a.videoTrack,d),a.va.dT(d.info.video.quality),(e=b.KQ())&&d.info.lastModified&&d.info.lastModified!==+e&&TU(a.videoTrack,b))}else b.fC=!1}};
NSa=function(a,b){var c=b.info.jb[0].j,d=b.Th();if(IM(c.resource.j)){var e=g.vc(b.dg(),3);a.va.oa("dldbrerr",{em:e||"none"})}e=b.info.jb[0].Oa;var f=jU(a.j,b.info.jb[0].gf,e);d==="net.badstatus"&&(a.L+=1);if(b.canRetry()&&PSa(a.va)){if(!(b.info.resource.B>=a.policy.Qw&&a.B&&b.info.isDecorated()&&d==="net.badstatus"&&a.B.BA(f,e))){e=(c.info.video&&c.resource.B>1||b.Fg===410||b.Fg===500||b.Fg===503)&&!(pU(a.C.G).size>0)&&!IM(c.resource.j);f=b.hq();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun=
"1");a.va.handleError(d,f);a.Ja()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),uU(a.C,c)),TU(h,b),a.va.xe())}}else h=1,a.B&&b.info.isDecorated()&&d==="net.badstatus"&&a.B.BA(f,e)&&(h=0),a.manifest.isLive&&b.Th()==="net.badstatus"&&a.L<=a.policy.dk*2?(uJa(a.manifest),a.manifest.je||a.manifest.isPremiere?BT(a.va,0,{bd:"badStatusWorkaround"}):a.manifest.D?BT(a.va,a.manifest.La,{bd:"badStatusWorkaround",
Tp:!0}):fV(a.va)):a.va.handleError(d,b.hq(),h)};
MSa=function(a,b){if(a.policy.useUmp&&b.Ja())return!1;try{var c=b.info.jb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.L=0;d.U&&(b.Ja(),b.isComplete()||b.Fn(),d.U=!1);b.mQ()&&a.va.TE.Ej(1,b.mQ());var e=b.vK(),f=b.cZ();GO(a.manifest,e,f)}if(b.info.Zp()&&!VN(b.info))for(var h=g.x(b.qm()),l=h.next();!l.done;l=h.next())cSa(d,l.value);for(a.va.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();bSa(d,m);d.Va=m.VY()}d.C.length&&bSa(d,d.C[0]);var n=!!CT(d);
n&&b instanceof uT&&(c.info.Kf()?wQa(a.timing):vQa(a.timing));return n}catch(p){b=b.hq();b.origin="hrhs";a:{a=a.va;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.lt&&c.args)for(d=g.x(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.x(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.fx(c);if(c.level==="WARNING"){a.ma.vp(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
QSa=function(a){var b=a.videoTrack.j.index;a.jm=new ASa({Jk:a.policy.Jk,zj:a.policy.U.zj,nk:b.nk,qd:function(){return b.qd()},
Ax:function(){return b.Ax()}})};
dV=function(a,b,c,d){if(!(c.yg()||c.vB()||c.C||!GN(c.resource,a.policy,a.D)||c.info.ob==="f"||a.policy.j)){if(d){d=a.G;var e=c.info;d=HOa(d,e.video?d.policy.ly:d.policy.Im,e.sb)}else d=0;d=c.Ex(d);a=GSa(a,d);VN(d)&&aSa(b,a);c.C=!0}};
gV=function(a,b,c,d,e,f,h,l){g.O.call(this);var m=this;this.va=a;this.ue=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.W=f;this.isAudioOnly=h;this.Ba=l;this.B=VQ;this.ra=!1;this.logger=new g.KT("sabr");this.U=this.qa=this.Z=!1;this.videoInfos=this.G=this.W.videoInfos;this.C=this.Ea=this.W.j;this.j=new nU(b,f,function(n,p){m.va.oa(n,p)});
RSa(this);this.isAudioOnly&&SSa(this,this.manifest.j["0"])};
TSa=function(a,b){var c=[];b=g.x(b);for(var d=b.next();!d.done;d=b.next())c.push(tG(d.value,a.manifest.Yb));return c};
SSa=function(a,b,c){b!==a.D&&(a.D&&(a.ra=!0),a.D=b,a.fM(b,a.videoTrack,c))};
XSa=function(a,b){a.logger.debug("setConstraint: "+sM(b));aV(a.ue)&&(a.qa=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&USa(a,b.j):VSa(a,b)?WSa(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
VSa=function(a,b){return a.ue.Np&&b.reason==="b"||a.ue.hE?!1:a.ue.tC?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"};
YSa=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:nM(b,a.B)};
ZSa=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.ra?!0:a.D?b!==d?!0:!a.j.B||a.ue.ek&&a.j.j===a.D.info.itag?!1:!0:!1};
USa=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Xb(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.va.oa("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),WSa(a,b,b),qU(a.j,""))}else WSa(a,b,b)};
WSa=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.wn(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
RSa=function(a){var b=PQa(a.j,a.Ba);b&&(a.C=[b])};
$Sa=function(a,b){return a.map(function(c){return HN(tG(c,b))})};
aTa=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=pU(a.j);b=g.wn(a.videoInfos,function(d){return d.sb>a.ue.sb?!1:!c.has(d.id)});
OQa(a.j)&&(b=g.wn(b,function(d){return d.video.width<=854&&d.video.height<=480}));
return b};
dTa=function(a,b,c,d){var e=a.manifest,f=a.ma.getVideoData(),h=g.jR(f),l=ZPa({Ca:f.V(),ma:a.ma,cF:a.cF,ue:a.ue,Dq:a.Dq,Ey:a.Ey,bx:a.bx,yz:a.yz,Uq:a.Uq,isPrefetch:a.isPrefetch,sP:a.sP,sabrLicenseConstraint:f.sabrLicenseConstraint,mz:a.mz,gx:a.gx}),m=WT(f,a.hC,a.nextRequestPolicy,a.Yl,a.xH,a.Aea);d&&c&&(d=m.CC?m.CC.map(function(y){return y.type}):[],c("ssap",{stmctxt:d.join("_"),
unsntctxt:m.bD?m.bD.join("_"):""}));d=a.VH;var n=a.XH,p=a.WH;if(n===void 0&&d===void 0){var q;n=bTa(e.Yb,(q=a.W7)==null?void 0:q.video);var r;d=bTa(e.Yb,(r=a.W7)==null?void 0:r.audio)}if(f.Ki)var t=f.Ki;f={Nr:l,kp:a.kp,VH:d,XH:n,WH:p,videoPlaybackUstreamerConfig:t,VC:m};a.Kn&&(f.Kn=a.Kn);if(h&&b){h=new Map;var u=g.x(e.Ma);for(l=u.next();!l.done;l=u.next())l=l.value,(m=e.Pa[dGa(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;u=g.x(a.Yc);for(l=u.next();!l.done;l=u.next())l=l.value,m=l.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:sT(q,m),q=r.clipId,r=r.lm,q?(e.has(q)||(t=h.get(q)||[],e.set(q,{clipId:q,Yc:[],Sx:t})),r!==0&&(l.startTimeMs=m-r),e.get(q).Yc.push(l)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=l.formatId)==null?void 0:q.itag)||"",st:m.toFixed(3),d:(l.durationMs||0).toFixed(3),timeline:hV(b)}));f.nI=[];e=g.x(e.entries());for(h=e.next();!h.done;h=e.next())h=g.x(h.value),h.next(),h=h.next().value,
f.nI.push(h);if(a.Yc.length&&!f.nI.length){c&&c("ssap",{nobfrange:"1",br:cTa(a.Yc),timeline:hV(b)});return}a.uL&&(f.uL=a.uL);a.rL&&(f.rL=a.rL)}else f.Yc=a.Yc,f.Sx=e.Ma,h&&((u=a.Yc)==null?void 0:u.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return f};
bTa=function(a,b){return b?[tG(b.info,a)]:[]};
cTa=function(a){var b="";a=g.x(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};
iV=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Ab=c;this.B=null;this.Qc={Fpa:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch},
xH:function(){var e;return(e=d.data)==null?void 0:e.xH}}};
eTa=function(a,b,c,d,e){e=e===void 0?{}:e;if(d==null?0:d.Sb)a.fN=sQa(a,d,e),b.gx=a.resource.gx();if(a.Lu())return!0;a.data=b;a.j=dTa(b,c,function(f,h){var l;(l=a.Ab)==null||l.Rj(f,h)},d==null?void 0:d.C);
if(!a.j)return!1;a.B=g.EB(a.j,yDa);return!0};
sQa=function(a,b,c){b=EN(a.resource,fTa(a,b,c),b);a.Lu()&&b.set("probe","1");return b};
fTa=function(a,b,c){a.qk===void 0&&(a.qk=a.resource.qk(b,c));return a.qk};
gTa=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.Nr)==null?void 0:c.wT)||0};
hTa=function(a){var b,c;return!!((b=a.j)==null?0:(c=b.Nr)==null?0:c.mz)};
iTa=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.Yc.length;e++){var f=a.data.Yc[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.On)+("_en."+f.gj))}for(e=0;e<a.data.kp.length;e++){f=a.data.kp[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.jk||NaN)+"_lb."+f.J_+"_tr.s_"+((l=f.lK)==null?void 0:l.hh)+"_d_"+
((m=f.lK)==null?void 0:m.kF)+"_t_"+((n=f.lK)==null?void 0:n.ut)+"_ed_"+f.GY)}b.ptime=gTa(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
jV=function(a,b){this.Wd=a;this.cipher=this.Wd.exports.AES128CTRCipher_create(b.byteOffset)};
jTa=function(a){return function(b){return{profile:a,xo:Math.ceil(b.byteLength/16)}}};
kV=function(a,b){this.key=a;this.subtleCrypto=b;this.j=!1};
kTa=function(a){var b=globalThis.crypto.subtle;b=b===void 0?window.crypto.subtle:b;return BL(zL(function(){return b.importKey("raw",a,"AES-CTR",!1,["encrypt"]).catch(function(c){return Promise.reject(c.name+": "+c.message)})}),function(c){return new kV(c,b)})};
lV=function(a){this.j=!1;this.B=new PB(a)};
mV=function(a,b){this.Wd=a;var c=a.ZE(b);this.j=new jV(a,c!=null?c:b);c&&a.free(c.byteOffset)};
nV=function(a){g.fx("wasm encryptor failed: "+a);throw a;};
lTa=function(a,b){this.key=a;this.j=b};
rTa=function(a,b,c){var d=yL("");b.length<=131072&&mTa(a)&&(d=CL(d,function(){return nTa(a,b,c)}));
b.length<=32768&&(d=CL(d,function(){return oTa(a,b,c)}));
return CL(CL(d,function(){return pTa(a,b,c)}),function(){return qTa(a,b,c)})};
qTa=function(a,b,c){var d=yL("");mTa(a)&&(d=CL(d,function(){return nTa(a,b,c)}));
return CL(d,function(){return oTa(a,b,c)})};
mTa=function(a){if(!a.j)return!1;a=a.j.state();return a.state!=="done"?!1:!a.result.yq||!1};
nTa=function(a,b,c){if(!a.j)return yL("wasm unavailable");a.D||(a.D=CL(BL(a.j,function(d){return new mV(d,a.key)}),function(d){return nV(""+d)}));
return BL(a.D,function(d){return CL(d.encrypt(b,c),nV)})};
oTa=function(a,b,c){a.B||(a.B=new lV(a.key));return CL(a.B.encrypt(b,c),nV)};
pTa=function(a,b,c){if(!a.C){if(!("crypto"in globalThis&&"subtle"in globalThis.crypto))return yL("native encryptor unavailable");a.C=kTa(a.key)}return CL(BL(a.C,function(d){return d.encrypt(b,c)}),nV)};
sTa=function(a,b){this.j=a;this.Wd=b;this.iv=(0,g.XT)(Rv(16))};
tTa=function(a,b){var c;return g.I(function(d){(0,g.Vt)();c=aKa(a.j);return d.return(c.encrypt(b,a.iv))})};
uTa=function(a,b){var c;return g.I(function(d){(0,g.Vt)();var e=a.j;e.D||(e.D=new rva(e.C));c=e.D;return d.return(uva(c,b,a.iv))})};
vTa=function(a,b,c){var d;return g.I(function(e){(0,g.Vt)();d=aKa(a.j);return e.return(d.decrypt(b,c))})};
oV=function(a){g.O.call(this);var b=this;this.ea=a;this.j=new Map;this.D=[];this.B=this.ea.experiments.fb("html5_onesie_trusted_hosts_for_all")||!TB();this.Z=g.KD(this.ea.experiments,"html5_onesie_prewarm_interval_ms");this.W=new g.qp(this.U,this.Z,this);this.L=-1;this.Qc={Noa:function(){return b.j},
Toa:function(){return b.G},
Ooa:function(){return wTa}};
g.P(this,this.W);CPa(this,g.$s("yt-player-bandaid-host"));this.G=this.load();this.Z&&this.G.then(function(){b.U()})};
CPa=function(a,b){var c=b==null?void 0:b.primary;a.C(0,c);c=c?xTa(c):void 0;a.C(2,c);a.C(1,b==null?void 0:b.secondary)};
pV=function(a,b){return new g.FM("https://"+b+a.ea.rk.baseUrl)};
yTa=function(a,b){a="https://"+HM(b.location)+"/initplayback?c="+eP(a.ea)+"&owc=1";oT(a,"pw",function(c){c.ht=b.j})};
qV=function(a,b,c,d){oT("https://"+b+"/videoplayback?probe=1",c,function(e){!d.N("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.N("html5_onesie_probe_ec_hosts")||d.jL||d.YQ();a.D.push(e)},function(e){a.D.push(e.details)})};
xTa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(b===1?2:b-1)+"---"})};
zTa=function(a,b){var c,d,e,f,h,l,m,n;return g.I(function(p){if(p.j==1){c=pV(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,Ur(c.qe(),d),2)}e=p.B;if(e.xhr.status!==200||!e.xhr.responseText)return p.return(Promise.reject(new g.lt("b204258371_no_host",c.qe(),e.xhr.status)));f=new g.FM(e.xhr.responseText);
h=HM(f);l=f.get("ms");m=pV(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&BPa(h)?b!==2||PT(h)?p.return(m):p.return(Promise.reject(new g.lt("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.lt("b204258371_invalid",h,l)))})};
ATa=function(a){var b=a.D;a.D=[];return b};
BPa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
PT=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
BTa=function(a,b){this.location=a;this.j=b};
CTa=function(a){this.Cn=a;this.B=!1;this.j=[]};
sV=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.tq,e=b.formatId,f=b.buffer;b=b.t9;if(f)b=void 0,(b=rV(a.Cn.Dc,c))==null||eU(b,d,e,f);else if(b)a.Cn.Dc.Lq(c,d,e);else if(d=a.Cn,d.j[e].JZ=!0,c=rV(d.Dc,c),c==null?0:c.hd.has(e))c==null||iQa(c,e)}};
g.FTa=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(tV.length===0){tV.length=288;tV.fill(8);for(a=144;a<280;a++)tV[a]=a<=255?9:7;DTa.length=32;DTa.fill(5);uV.length=286;uV.fill(0);for(a=261;a<285;a++)uV[a]=Math.floor((a-261)/4);vV[257]=3;for(a=258;a<285;a++){var b=vV[a-1];b+=1<<uV[a-1];vV[a]=b}vV[285]=258;for(a=0;a<30;a++)ETa[a]=a<=3?0:Math.floor((a-2)/2);for(a=wV[0]=1;a<30;a++)b=wV[a-1],b+=1<<ETa[a-1],wV[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.LTa=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!xV(b,1);switch(xV(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=xV(b,5)+257;var f=xV(b,5)+1;for(var h=xV(b,4)+4,l=0;l<h;l++)d[GTa[l]]=xV(b,3);d=HTa(d);for(h=e+f;c.length<h;){l=ITa(b,d);switch(l){case 16:l=c[c.length-1];var m=xV(b,2)+3;break;case 17:l=0;m=xV(b,3)+3;break;case 18:l=0;m=xV(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,JTa(b,c,f));break;case 1:JTa(b,tV,DTa);break;case 0:KTa(b,
b.j&7);c=xV(b,16);e=xV(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};
JTa=function(a,b,c){b=HTa(b);c=HTa(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=vV[n];h+=xV(a,uV[n]);m=ITa(a,c);l=wV[m];l+=xV(a,ETa[m]);if(MTa&&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};
ITa=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 KTa(a,c&15),c>>4;for(KTa(a,7);c<0;)c=b[xV(a,1)-c];return c>>4};
xV=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};
KTa=function(a,b){a.j-=b;a.register>>=b};
HTa=function(a){for(var b=[],c=g.x(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};
NTa=function(a){var b,c,d,e,f,h,l;return g.I(function(m){switch(m.j){case 1:if(!("DecompressionStream"in window))return m.return(g.LTa(new g.FTa(a)));b=new DecompressionStream("gzip");c=b.writable.getWriter();c.write(a);c.close();d=b.readable.getReader();e=new ZA([]);case 2:return g.G(m,d.read(),5);case 5:f=m.B;h=f.value;if(l=f.done){m.Ga(4);break}e.append(h);m.Ga(2);break;case 4:return m.return(e.Ok())}})};
yV=function(a,b){this.j=a;this.Wd=b};
OTa=function(a){return CL(CL(zL(function(){return BL(a.Wd,function(b){return a.d_(a.j,b)})}),function(){return a.c_(a.j)}),function(){return a.b_(a.j)})};
PTa=function(a,b){return OTa(new yV(a,b))};
STa=function(a){$T.call(this,"onesie");this.Dc=a;this.j={};this.C=!0;this.D=null;this.queue=new CTa(this);this.G={};this.L=uCa(function(b,c){var d=this;return function f(){var h,l,m,n,p,q,r,t,u,y,A,C,F,H,K,N,W,V,da,na;return Caa(f,function(X){switch(X.j){case 1:X.L=0;X.D=2;d.Dc.kM();h=function(R){return function(Y){throw{name:R,message:Y};}};
l=b.Ok();g.wa(X,4,5);if(!c){X.Ga(7);break}return yaa(X,CL(QTa(d.Dc,l,d.iv),h("DecryptError")).wait(),8);case 8:m=X.B;case 7:if(!d.Dc.enableCompression){X.Ga(9);break}return yaa(X,CL(PTa((q=m)!=null?q:l,d.Dc.V().Qj),h("DecompressError")).wait(),10);case 10:n=X.B;case 9:p=wB((t=(r=n)!=null?r:m)!=null?t:l,sDa);case 5:g.za(X,0,2);if(y=(u=d.Dc.V())==null?void 0:u.Wd)((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(X,6);break;case 4:throw H=F=g.ya(X),new VF("onesie.response.parse",{name:(V=H.name)!=null?V:"unknown",message:(da=H.message)!=null?da:"unknown",wasm:((K=d.Dc.V())==null?0:K.Wd)?((N=d.Dc.V())==null?0:(W=N.Wd)==null?0:W.yq)?"1js":"1":"0",enc:d.C,gz:d.Dc.enableCompression,webcrypto:!!TB()});case 6:return RTa(p),na=g.iB(p.body),X.return(na);case 2:g.za(X),g.Aa(X,0)}})}()})};
TTa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.x(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.JZ){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||sV(e)}}};
VTa=function(a,b){var c=b.getLength(),d=!1;switch(a.D){case 0:a.Dc.N("html5_future_onesie_ump_handler_on_player_response")?CL(BL(a.L(b,a.C),function(e){UTa(a.Dc,e)}),function(e){a.Dc.hj(e)}):a.kM(b,a.C).then(function(e){UTa(a.Dc,e)},function(e){a.Dc.hj(e)});
break;case 2:a.Nd("ormk");b=b.Ok();a.queue.decrypt(b);break;default:d=!0}a.Dc.pn&&a.Dc.oa("ombup","id.11;pt."+a.D+";len."+c+(d?";ignored.1":""));a.D=null};
RTa=function(a){if(a.q1!==1)throw new VF("onesie.response.badproxystatus",{st:a.q1,webcrypto:!!TB(),textencoder:!!g.Na.TextEncoder});if(a.VZ!==200)throw new VF("onesie.response.badstatus",{st:a.VZ});};
WTa=function(a){return new Promise(function(b){setTimeout(b,a)})};
XTa=function(a,b){var c=a.V();c=a.kd&&c.N("html5_onesie_preload_use_content_owner");var d=a.eT,e=gP(b.ea.experiments,"debug_bandaid_hostname");if(e)b=pV(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=HM(new g.FM(d.url));b=pV(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=pP(a.videoId);a=[];if(f)for(f=g.x(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}};
YTa=function(a,b,c){c=c===void 0?0:c;var d,e;return g.I(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(WTa(c)),g.G(f,Promise.race(d),2);e=XTa(a,b);return f.return(e)})};
ZTa=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.V();a.set("por","1");TB()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.N("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.N("html5_gapless_onesie_no_media_bytes")&&oR(b)&&b.kd,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.N("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),fP||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad",
"0"),a.set("oavd","0")))};
$Ta=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.Dl,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";b.experiments.fb("web_onesie_omit_api_key")||f.j_&&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.Fb()});g.mr("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.mr("EOM_VISITOR_DATA")}):(c=c.visitorData||g.mr("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",
value:c});(c=g.mr("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&f.push({name:"X-YouTube-Lava-Device-Context",value:c});(b=gP(b.experiments,"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=lB(JSON.stringify(a));return{url:h,iR:f,postBody:a,hea:e,QC:e}};
bUa=function(a,b,c,d,e,f){var h=g.EB(a,rDa,a.QC?void 0:c.Wd),l={encryptedClientKey:b.j.encryptedClientKey,E2:!0,CY:!0,UP:aUa(c,!!a.QC),d4:c.experiments.fb("html5_use_jsonformatter_to_parse_player_response")};if(a.QC)l.Zfa=h;else{a=b.encrypt(h);var m;a=((m=c.Wd)==null?void 0:m.eS(a))||a;m=l.DY=a;(0,g.Vt)();m=qva(new pva(b.j.C),m,b.iv);l.TZ=m;l.iv=b.iv}b=d.getVideoData();c=ZPa({Ca:c,ma:d,cF:b.startSeconds*1E3});e={pR:l,Nr:c,onesieUstreamerConfig:e,Fp:f,VC:WT(b)};b.reloadPlaybackParams&&(e.reloadPlaybackParams=
b.reloadPlaybackParams);return e};
cUa=function(a,b,c){var d,e,f;return g.I(function(h){if(h.j==1)return d=g.EB(b,rDa),g.G(h,tTa(c,d),2);if(h.j!=3)return e=h.B,g.G(h,uTa(c,e),3);f=h.B;return h.return({DY:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,TZ:f,E2:!0,CY:!0,UP:aUa(a,!!b.QC),d4:a.experiments.fb("html5_use_jsonformatter_to_parse_player_response")})})};
dUa=function(a,b,c,d,e,f){var h,l,m,n;return g.I(function(p){if(p.j==1)return g.G(p,cUa(c,a,b),2);h=p.B;l=d.getVideoData();m=ZPa({Ca:c,ma:d,cF:l.startSeconds*1E3});n={pR:h,Nr:m,onesieUstreamerConfig:e,Fp:f,VC:WT(l)};l.reloadPlaybackParams&&(n.reloadPlaybackParams=l.reloadPlaybackParams);return p.return(n)})};
aUa=function(a,b){a=BP(a.schedule,!0);b=b||!!TB()&&a>1572864;return"DecompressionStream"in window||!b};
AV=function(a,b){g.O.call(this);var c=this;this.ma=a;this.playerRequest=b;this.ea=this.ma.V();this.videoData=this.ma.getVideoData();this.logger=new g.KT("onesie");this.pn=this.ea.Xb();this.KP=this.ea.rk;this.lH=new sTa(this.KP.j,this.ea.Qj);this.xhr=null;this.state=1;this.lr=new UG;this.OZ=!1;this.playerResponse="";this.zm=new GT(this);this.Cn=new STa(this);this.GI=this.ea.N("html5_onesie_check_timeout");this.kP=new g.qp(this.c8,500,this);this.mH=new g.qp(this.YQ,1E4,this);this.rM=new g.qp(function(){if(!c.isComplete()){var d=
zV(c);c.hj(new VF("net.timeout",d))}},g.KD(this.ea.experiments,"html5_onesie_request_timeout_ms"));
this.o1=new g.qp(this.Daa,2E3,this);this.Bv="";this.jL=this.o_=!1;this.cB=this.ma.VA();this.fT="";this.PH=this.N("html5_onesie_wait_for_media_availability");this.enableCompression=this.TR=this.oB=!1;this.rI=[];this.Lv=this.vj=-1;g.P(this.videoData,this);g.P(this,this.kP);g.P(this,this.mH);g.P(this,this.o1);a=jP();fP&&a&&!this.ea.N("html5_disable_onesie_media_bytes")&&(this.hg=new Map);this.SY=new Map;this.t0=new Map;this.f2=new Map;this.fQ=new Map};
rV=function(a,b){var c;return(c=a.hg)==null?void 0:c.get(b)};
fUa=function(a,b,c){var d;return g.I(function(e){if(e.j==1)return a.Nd("oprd_s"),eUa(a)?g.G(e,vTa(a.lH,b,c),3):(d=a.lH.decrypt(b,c),e.Ga(2));e.j!=2&&(d=e.B);a.Nd("oprd_c");return e.return(d)})};
QTa=function(a,b,c){a.Nd("oprd_s");var d=a.lH;d.B||(d.B=new lTa(d.j.j,d.Wd));b=rTa(d.B,b,c);a.Nd("oprd_c");return b};
gUa=function(a){return a.N("html5_onesie_host_probing")||a.pn?fP:!1};
UTa=function(a,b){a.Nd("oprr");a.playerResponse=b;a.TR||(a.PH=!1);BV(a)};
BV=function(a){if(!a.playerResponse)return!1;if(a.oB)return!0;var b=a.videoData.N("html5_onesie_audio_only_playback")&&pR(a.videoData);if(a.hg&&a.PH){if(!a.hg.has(a.Bv))return!1;var c=a.hg.get(a.Bv),d;if(d=c){d=!1;for(var e=g.x(c.hd.keys()),f=e.next();!f.done;f=e.next())if(f=c.hd.get(f.value))for(var h=g.x(f.LG),l=h.next();!l.done;l=h.next())l.value.Vs>0&&(f.Kf?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Nd("ofr");a.lr.resolve(a.playerResponse);if(!a.GI){var m;(m=a.rM)==null||m.start();a.mH.start()}return a.oB=
!0};
iUa=function(a){if(a.hg&&!a.N("html5_onesie_media_capabilities")){a.Nd("ogsf_s");var b=UPa(a.ma.getVideoData(),function(d,e){a.oa(d,e)}),c=hUa(a.ma);
b.video=KPa(c,b.video);a.Nd("ogsf_c");if(b.video.length)return b;a.oa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
eUa=function(a,b){return a.N("html5_onesie_sync_request_encryption")||(b==null?0:b.QC)||g.dQ(a.ea)&&a.N("html5_embed_onesie_use_sync_encryption")?!1:!!TB()};
zV=function(a){if(!a.Ud)return{};var b=a.Ud.Ir(),c;b.d=(c=a.Ud.Ba)==null?void 0:c.Hi();b.shost=a.fN;b.ty="o";return b};
jUa=function(a,b){var c,d;(d=(a=(c=a.hg)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d};
kUa=function(a,b,c,d,e,f,h,l,m,n,p){g.O.call(this);var q=this;this.ma=a;this.va=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Oc=h;this.La=l;this.C=m;this.timing=n;this.W=p;this.j=[];this.L={};this.Fa=this.Ma=!1;this.Yl=new Set;this.G=this.Ea=this.Z=this.Uq=0;this.D=null;this.Qc={gpa:function(){return q.j},
Boa:function(){return q.L},
Nna:function(){q.j.length=0},
Qoa:function(){return q.Yl},
Moa:function(){return q.Z},
Dqa:function(r){q.Z=r},
Iqa:function(r){q.G=r}};
this.videoData=this.ma.getVideoData();this.policy.Kj&&(this.Ba=new bV(this.va,this.policy,this.Oc),g.P(this,this.Ba))};
nUa=function(a,b){b=b===void 0?!1:b;if(lUa(a,b)){a.policy.qa&&a.va.oa("sabrcrq",{create:1});var c=new iV(0,a.manifest.W,a);a.policy.zf>0&&a.G++;b=mUa(a,c,b);a.j.push(b);var d;(d=a.Ba)==null||BSa(d,a.manifest.W)}};
qUa=function(a,b){var c=NU(a.audioTrack,a.va.isSeeking()),d=NU(a.videoTrack,a.va.isSeeking()),e=[].concat(g.z(c.Yc),g.z(d.Yc)),f=[].concat(g.z(c.kp),g.z(d.kp)),h=a.va.CK(),l,m,n=a.ma,p=a.manifest,q;var r=a.policy.L&&((q=a.va)==null?void 0:q.qG());q=a.va.getCurrentTime()||0;q=oUa(a,q);var t=a.va.Mc()||0;q+=t;t=CR(a.videoData)||g.BR(a.videoData);var u=0;r?(t&&(u=Number.MAX_SAFE_INTEGER),a.videoData.Ma&&(u=Math.ceil(a.videoData.La*1E3))):u=Math.ceil(q*1E3);r=Math.min(Number.MAX_SAFE_INTEGER,u);q=a.B;
t=a.Yl;u=a.policy;var y=a.va.Dq,A=JSa(a.va)*1E3,C=(l=a.ra)==null?void 0:l.bx;l=(m=a.ra)==null?void 0:m.yz;var F;m=Number((F=a.C.D)==null?void 0:F.info.itag)||0;var H;F=Number((H=a.C.L)==null?void 0:H.info.itag)||0;b={ma:n,manifest:p,Yc:e,kp:f,cF:r,nextRequestPolicy:q,Yl:t,ue:u,Dq:y,Ey:A,bx:C,yz:l,Uq:a.Uq,isPrefetch:b||a.va.isSuspended,uL:m,rL:F,hC:h};e=a.va.vu();f=pP(e);e&&(b.xH=f);if(e=a.ma.Fx())b.mz=e*1E3;var K;e=a.C;f=e.Z;if((e.ue.B&&e.ue.kE||((K=e.ue)==null?0:K.j&&K.He))&&!f)for(K=g.x(e.C),h=
K.next();!h.done;h=K.next())if(h.value.qc){f=!0;break}K=aV(e.ue)&&!f?[]:TSa(e,e.C);b.VH=K;K=a.C;aV(K.ue)&&!K.qa?K=[]:(e=aTa(K),e.length===0&&(e=K.G),K=TSa(K,e));b.XH=K;WMa(a.videoData)&&(b.WH=[null]);if(a.policy.G){c=pUa(a,c.Yc,d.Yc);var N;if(d=(N=a.D)==null?void 0:N.LQ(c))b.Kn=d}a.policy.Ba&&a.j.length>0&&a.j[0].dP()&&(b.Aea=a.j[0].IQ());return b};
oUa=function(a,b){if(a.va.isSeeking())return b;var c=a.ma.Le();if(!c)return b;c=c.Rh();if(c.length===0||CG(c,b))return b;if(a.policy.Z&&!qSa(a.videoTrack,b)&&!qSa(a.audioTrack,b))return a.va.oa("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.va.oa("sundrn",{bre:d,lt:b});return a.policy.AF&&e>=20?(a.va.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),b):d};
pUa=function(a,b,c){var d=a.va.getCurrentTime()||0;b=rUa(a,b,d);a=rUa(a,c,d);return Math.min(b,a)};
rUa=function(a,b,c){a=a.va.Mc()||0;b=g.x(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};
lUa=function(a,b){if(a.policy.zf>0){var c=Math.floor((0,g.Vt)()/1E4);if(c===a.Ea){if(a.G>=a.policy.zf){if(a.G===a.policy.zf){var d={reason:"toomanyrequests"};d.limit=a.G;a.va.handleError("player.exception",d);a.G+=1}return!1}}else a.Ea=c,a.G=0}b=!b&&!CP(a.Oc);if(a.va.isSuspended&&(a.va.XJ||b)||a.qa&&(0,g.Vt)()<a.qa||a.j.length>0&&(!a.policy.Ba||a.j.length!==1||!a.j[0].dP())||(d=a.manifest.W)==null||!GN(d,a.policy,a.L,a.va.Hx()))return!1;d=a.policy.VL&&a.policy.B&&a.va.If();if(VU(a.audioTrack)&&VU(a.videoTrack)&&
!d)return!1;if(a.policy.B&&a.U&&!a.va.If())return a.Rj("ssap",{pauseontlm:1}),!1;if(CV(a,a.audioTrack)&&CV(a,a.videoTrack))return a.policy.C&&a.va.oa("sabrHeap",{a:""+PU(a.audioTrack),v:""+PU(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.W.B===2?d=!0:a.W.B===3&&(b=pUa(a,NU(a.audioTrack,a.va.isSeeking()).Yc,NU(a.videoTrack,a.va.isSeeking()).Yc),c=a.W,b>=c.C?(c.oa("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.qa&&a.va.oa("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.qa&&a.va.oa("sabrcrq",
{nopolicy:1}),!0;if(a.ma.Fx())return a.policy.qa&&a.va.oa("sabrcrq",{utc:1}),!0;if(a.C.U)return a.policy.qa&&a.va.oa("sabrcrq",{audio:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.qa&&a.va.oa("sabrcrq",{noreadahead:1}),!0;if(a.policy.L&&a.va.qG())return a.policy.qa&&a.va.oa("sabrcrq",{seekToHead:1}),!0;d=Math.min(yT(a.va,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(yT(a.va,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=RU(a.audioTrack,
!0)*1E3;var f=RU(a.videoTrack,!0)*1E3;var h=c<e&&!CV(a,a.audioTrack);e=f<e&&!CV(a,a.videoTrack);if((h||e)&&a.policy.C&&a.policy.Ph){var l=a.va.wc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.va.oa("sabrrnm",l)}!(d=!h&&!e)&&(d=a.policy.B)&&(d=a.va,!d.wb||HO(d.manifest)?d=!1:(b=DV(d.wb),d=sUa(d,b)));return d||a.policy.AE&&tUa(a.va)&&a.videoData.Pj()||a.policy.OM&&tUa(a.va)?!1:!0};
mUa=function(a,b,c){var d={Oc:a.Oc,Hv:function(m,n){a.ma.FH(m,n)},
Zp:a.policy.Yn,bK:a.policy.C};if(a.Oc.Z.D){var e,f;d.Hq=(((e=a.videoTrack.j)==null?void 0:e.info.sb)||0)+(((f=a.audioTrack.j)==null?void 0:f.info.sb)||0)}e=fTa(b,a.policy,a.L)?2:1;e!==a.Z&&(a.Z=e,uUa(a));c=qUa(a,c);if((a.policy.B||a.policy.Ba)&&a.policy.C&&c.Yl){f=e="";for(var h=g.x(c.Yl),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.va.oa("sabrbldrqs",{ctxts:e,misctxts:f})}eTa(b,c,a.va.If(),a.policy,a.L)||!a.policy.B&&!a.policy.Ba||a.va.handleError("player.exception",
{reason:"buildsabrrequestdatafailed"},1);d=new fU(a.policy,b,a.manifest,a.L,a,d,a.va.VA(),a.policy.ag?a.va.If():void 0);gU(a.timing);a.policy.qa&&a.va.oa("sabrcrq",{rn:d.cn(),probe:b.Lu()});return d};
FV=function(a,b){if(b.Ja()||a.Ja())a.policy.Wn||(a.policy.L?EV(a.va):a.va.xe());else{if(a.policy.C&&b.isComplete()&&b instanceof fU){var c=a.va,d=c.oa,e,f,h=Object.assign(b.Ud.Ir(),{rst:b.state,strm:b.xhr.Tv(),d:(e=b.Ud.Ba)==null?void 0:e.Hi(),cncl:b.xhr&&b.Tc.D?1:0,rqb:b.e2,cwt:b.L0,swt:(f=b.Lea)==null?void 0:f.mV});e=Object.assign(iTa(b.info),h);d.call(c,"rqs",e)}if(b.isComplete()&&b.Lu()&&b instanceof fU)a.policy.Ac?b.v_()?(b.dispose(),a.j.length===0?a.va.xe():(a=a.j[0],a instanceof fU&&a.Yr()&&
a.Yv(!1))):b.fm()&&a.va.handleError(b.Th(),b.hq()):(b.dispose(),a.va.xe());else{if(b.u_())b instanceof fU&&DQa(a.timing,b),uUa(a),vUa(a);else if(b.fm())c=a.ma.Fx(),b instanceof fU&&hTa(b.info)&&c&&a.va.Xu(c),b instanceof AV?a.j.pop():(c=1,b.canRetry()&&PSa(a.va)&&(wUa(a,b),c=0),a.va.handleError(b.Th(),b.hq(),c));else{if(a.va.isSuspended&&!b.isComplete())return;vUa(a)}b.Ja()||b instanceof AV||(b.isComplete()?c=ESa(b,a.policy,a.L):(c=DSa(b,a.policy,a.L),c===1&&(a.Ma=!0)),c!==0&&(d=new iV(1,b.info.resource),
d.qk=c===2,mUa(a,d)));a.policy.uc&&!b.isComplete()?OSa(a.va):a.va.xe()}}};
vUa=function(a){for(;a.j.length&&a.j[0].bR(a.eg());){var b=a.j.shift();xUa(a,b);if(a.policy.G){var c=a;if(!c.policy.eb&&b.bR(c.eg())){var d=b.cn();if(c.Pa!==d){var e=b.rZ();b=e.vj;var f=e.Lv;e=e.isDecorated;!c.D||f<0||(c.Pa=d,d=jU(c.W,f/1E3,b),f=c.va.Mc()||0,IQa(c.W,b,d-f,e,c.D))}}}}a.j.length&&xUa(a,a.j[0])};
xUa=function(a,b){var c=new Set(b.mu(a.eg()));c=g.x(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof AV))){var f=a.C,h=f.manifest.Yb;d=$Sa(f.C,h);f=$Sa(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d){d=b.jq(e,a.eg());if(WMa(a.videoData)&&wG(d[0].j.info.mimeType))break;if((!(a.policy.Fz&&d.length>0&&(d[0].j.info.Kf()?RU(a.audioTrack):RU(a.videoTrack))>3)||b.isComplete())&&b.Fn(e,a.eg())){e=b.qm(e,a.eg());if(a.policy.B&&(f=d[0].j.info,(h=a.va.If())&&f)){var l=b.TY();
h.api.N("html5_ssap_set_format_info_on_video_data")&&l===UU(h)&&(f.Kf()?h.ma.getVideoData().D=f:h.ma.getVideoData().B=f);if(h=GV(h.timeline,l))if(h=h[0].getVideoData())f.Kf()?h.D=f:h.B=f}e=g.x(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.C&&b instanceof AV&&a.va.oa("omblss",{s:f.info.Cc()});h=f.info.j.info.Kf();var m=f.info.j;if(h){l=void 0;var n=a.C,p=(l=b.GQ(a.eg()))==null?void 0:l.token;n.U=!1;m!==n.L&&(n.L=m,n.fM(m,n.audioTrack,p))}else l=void 0,SSa(a.C,m,(l=b.GQ(a.eg()))==null?void 0:
l.token);l=h?a.audioTrack:a.videoTrack;b instanceof AV&&(l.U=!1,b instanceof AV&&(h?wQa(a.timing):vQa(a.timing)));if(a.policy.wE)try{MU(l,d,f)}catch(q){f=XF(q),a.va.handleError(f.errorCode,f.details,f.severity),l.dj(),a.Jv(!1,"pushSlice"),EV(a.va)}else MU(l,d,f)}}}}};
wUa=function(a,b){a.policy.Ba?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())};
yUa=function(a,b,c){for(var d=[],e=0;e<a.j.length;e++)b&&a.j[e]instanceof AV?d.push(a.j[e]):(a.policy.qa&&a.va.oa("sabrcrq",{d:a.j[e].cn(),src:c}),a.j[e].dispose());a.j=d};
zUa=function(a,b){b&&b.type&&(a.videoData.sabrContextUpdates.set(b.type,b),b.sendByDefault&&a.Yl.add(b.type))};
AUa=function(a,b,c){b.NO(c.Rt,c.version)?a.videoData.tC=c.version||"":a.va.oa("ssap",{v:c.version,tlnu:1})};
uUa=function(a){a.Yl.clear();if(a.videoData.sabrContextUpdates.size>0)for(var b=g.x(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.Yl.add(c)}if(a.policy.Ba&&a.j.length)for(b=g.x(a.j),c=b.next();!c.done;c=b.next())(c=c.value.IQ())&&c.type&&c.sendByDefault&&a.Yl.add(c.type)};
BUa=function(a){a.policy.Jc&&(a.ra=void 0,a.Uq=0)};
CUa=function(a,b){if(b.fm()||b.Ja()){var c=a.va,d=c.oa,e=b.state;a=a.eg();var f,h;if((b=(f=b.hg)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.mu();for(var l=0;l<a.length;l++){var m=void 0;f+=((m=b.hd.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.rI.push(a),gU(a.timing),a.policy.bj&&b.s1&&a.Nq(b.s1)};
CV=function(a,b){return a.policy.mw?!a.va.Sp&&CT(b)&&(b.mp()!==CT(b)||a.va.isSuspended):!1};
DUa=function(a){var b="";a=g.x(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.Ct){var d=c.Ct;b+=".vid."+d.x4+(".pst."+d.H1)+(".ps."+d.I1)+(".lst."+d.raa)+(".ld."+d.Q_)+(".ls."+d.R_)}c.iS&&(b+=".nonv."+c.iS.CL)}return b};
EUa=function(a,b,c,d,e){this.va=a;this.policy=b;this.schedule=c;this.qA=d;this.Z=e;this.qa=NaN;this.B=this.U=this.D=null;this.j=this.G=this.L=this.startTimeSecs=NaN;this.C=!1;this.W=NaN};
FUa=function(a,b,c,d,e,f){return b.Uj&&b.Zf&&c===3?new EUa(a,b,d,e,f):null};
GUa=function(a,b){if(a.policy.VJ){var c=b.info.sb,d=BP(a.schedule);b=b.index.nk;c=Math.max(1,d/c);a.W=Math.round(Math.max(((c-1)*b+a.policy.Dd)/c,b-a.policy.Gl)*1E3)}};
JUa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.L,f=e>=a.policy.Sw,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.YK&&(h=!0);a.L=c}c=d>=a.policy.Gl&&!a.C;if(!f&&!c&&HUa(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.Vt)()/1E3-(a.qA.rh()||0)-a.U.j-a.policy.Dd;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){HV(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Fl;d<c&&(c=d)}else a.C&&(d=c+a.policy.Dd-a.qa+a.policy.nL,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Fl))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&HUa(a,b))return IUa(a,b),NaN;if(a.j<=a.B.startTime)return HV(a,NaN,"y",b),a.clear(),NaN;if(!a.Z(a.j,!1))return!IUa(a,b)&&h&&(HV(a,NaN,"t",b),a.clear()),NaN;h=a.j;HV(a,h,"s",b);a.clear();return h};
IUa=function(a,b){return a.Z(a.j,!0)?!1:(HV(a,NaN,"ns",b),a.clear(),!0)};
HUa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.Fl:a.policy.MK)};
HV=function(a,b,c,d){var e=a.D.hq();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.Vt)().toFixed(0);e.ssr_f=(a.U.j*1E3).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(a.qA.rh()*1E3||0).toFixed(0);e.ssr_v=(d*1E3).toFixed(0);b=a.B.j.index;b.Oo(a.B.Oa,!0)&&(e.ssr_ist=(b.getStartTime(a.B.Oa)*1E3).toFixed(0),e.ssr_id=(b.getDuration(a.B.Oa)*1E3).toFixed(0));a.va.oa("ssr",e)};
KUa=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.JV=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.ma=a;this.schedule=b;this.policy=c;this.manifest=d;this.ra=m;this.Pc=n;this.timing=new uQa(this.Pc);this.Z=new FOa(this.schedule,this.policy);this.Ra=null;this.Db=new g.qp(this.xe,0,this);this.Kb=new g.qp(this.xe,this.policy.uc,this);this.HG=new g.qp(this.xe,1E3,this);this.Jc=new g.qp(this.xe,void 0,this);this.ib=new g.qp(this.xe,1E4,this);this.uc=new g.qp(this.Vda,250,this);this.G=this.currentTime=NaN;this.Ma=this.La=
this.Fa=this.Sp=0;this.As=this.XJ=this.isSuspended=!1;this.Ua="";this.TE=new sP(5);this.Dd={};this.timestampOffset=NaN;this.Ib=!1;this.rb=0;this.U=null;this.Ba=NaN;this.tb=this.Pa=!1;this.logger=new g.KT("dash");this.Dq=0;this.Za=!1;this.eb=0;this.Ac=Infinity;this.Ea=0;this.Sb=null;this.Dx=function(){return p.ma.Dx()};
this.Qc={getAudioTrack:function(){return p.audioTrack},
ppa:function(){return p.videoTrack},
getManifest:function(){return p.manifest},
kpa:function(){return p.W},
xe:function(){p.xe()},
kC:function(){p.Sp=0;p.kC()},
mqa:function(q){return IV(p,p.videoTrack,p.Ra.B,q)}};
a=m&&m.mu();m&&(qQa(m,this.manifest,this.policy),this.Ba=Date.now());this.j=new QQa(this,this.Z,c,this.manifest,e,a);c=VQa(this.j,f,h&&h.id);this.audioTrack=new JU(this,this.policy,c.audio,this.timing);this.videoTrack=new JU(this,this.policy,c.video,this.timing);this.videoTrack.D.Ea=this.audioTrack.AQ();this.Va={updateend:this.q6,error:this.cba};g.P(this,this.Db);g.P(this,this.Kb);g.P(this,this.HG);g.P(this,this.Jc);g.P(this,this.ib);c=this.policy.tG&&this.policy.Jk?!Kxa(this.videoTrack.j.info):!1;
this.Vb=iRa({zj:this.policy.U.zj||c,Jk:this.policy.Jk&&!c,xr:this.policy.xr});this.L=FUa(this,this.policy,this.Vb,this.schedule,this.TE,function(q,r){return LUa(p,q,r)});
this.C=new FQa(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.Ug=new tT(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.Mw?this.ma.getVideoData().Ki:null;this.D=new cV(this,this.policy,this.videoTrack,this.audioTrack,this.Dd,this.C,this.timing,this.Z,this.schedule,this.manifest,this.j,this.L,c,l);g.P(this,this.D);this.B=new gV(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,pR(this.ma.getVideoData()),h==null?void 0:h.id);g.P(this,
this.B);XSa(this.B,f);this.W=new kUa(this.ma,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.B,this.timing,this.C);g.P(this,this.W);this.qa=this.ma.Ld.Zu.tx;this.policy.L||MUa(this);this.logger.debug("Created")};
MUa=function(a){var b,c;if((b=a.qa)==null?0:(c=b.AB)==null?0:c.itagDenylist){var d;a.gM((d=a.qa)==null?void 0:d.AB.itagDenylist)}var e;if((e=a.qa)==null?0:e.playbackStartPolicy){var f,h;zSa(a.policy,(f=a.qa)==null?void 0:f.playbackStartPolicy,3,(h=a.qa)==null?void 0:h.cn())}if(a.policy.Ph){b=a.eg();var l;(c=b?(l=a.qa)==null?void 0:l.t0.get(b):void 0)&&a.W.Mq(c)}if(!a.manifest.Z){var m;l=(m=a.qa)==null?void 0:m.L_;(l==null?0:l.VK)&&(l==null?0:l.WK)&&a.manifest.Yb&&GO(a.manifest,l.VK,l.WK)}var n;((n=
a.qa)==null?0:n.fQ)&&(m=a.qa.fQ.get(a.eg()||""))&&a.manifest&&m.formatId&&(a=a.manifest.C.get(HN(m.formatId)))&&(a.info.debugInfo=m.debugInfo)};
NUa=function(a,b){if(a.policy.B&&!a.policy.qC)return!1;var c=HN(tG(b.j.info,a.manifest.Yb)),d,e=((d=a.ra)==null?void 0:d.jq(c))||[];if(e.length===0)return a.oa("ombmsi",{}),!1;e=new UN(e);if(d=!a.policy.Z||isFinite(a.getCurrentTime())||a.ma.Fx()){a:{d=a.getCurrentTime();e=g.x(e.jb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.type===3&&d>=f.gf&&d<=f.Vf){d=!0;break a}d=!1}d=!d}if(d)return a.oa("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Kf()}),!1;(a=a.ra)!=null&&(a.hd.get(c).CE=!0);return!0};
OUa=function(a){if(!a.manifest.Yb)return!0;var b=a.ma.getVideoData();if(b.N("html5_skip_live_preroll_onesie")&&KV(a.ma)||b.N("html5_skip_live_preroll_onesie_post_live")&&KV(a.ma)&&(b.je||b.isPremiere))return a.oa("ombpa",{}),!1;var c,d;if(a.policy.SD&&!!((c=a.qa)==null?0:(d=c.L_)==null?0:d.Wda)!==a.manifest.je)return a.oa("ombplmm",{}),!1;c=b.Ib||b.liveUtcStartSeconds||b.Xd;if(a.manifest.je&&c)return a.oa("ombplst",{}),!1;if(a.manifest.Z)return a.oa("ombab",{}),!1;c=Date.now();if(HO(a.manifest)&&
!isNaN(a.Ba)&&c-a.Ba>a.policy.vD*1E3)return a.oa("ombttl",{}),!1;if(!(a=a.manifest.mf&&a.manifest.D||!a.policy.oL&&a.manifest.isPremiere||sR(b)!==0&&(!a.policy.j||!b.N("html5_enable_onesie_media_for_sabr_proxima_optin")))&&(a=b.N("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.N("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0};
PUa=function(a,b){var c=b.j,d=a.manifest.Yb;if(OUa(a))if(a.ra&&a.ra.hd.has(HN(tG(c.info,d)))){if(d=HN(tG(c.info,d)),NUa(a,b)){var e=new UN(a.ra.jq(d)),f=function(h){try{if(h.fm())a.handleError(h.Th(),h.hq()),TU(b,h),WN(h.info)&&dV(a.D,b,c,!0),a.xe();else if(MSa(a.D,h)){var l;(l=a.C)==null||JQa(l,h.info,a.U);a.xe()}}catch(m){h=XF(m),a.handleError(h.errorCode,h.details,h.severity),a.dj()}};
c.C=!0;VN(e)&&(aSa(b,new uT(a.policy,d,e,a.ra,f)),gU(a.timing))}}else a.oa("ombfmt",{})};
LV=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=eV,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.wi(b)||0;e.Ea!==b&&(e.Ma={},e.Ea=b,sU(e,e.j));b=!e.j.isLocked()&&e.Z>-1&&(0,g.Vt)()-e.Z<e.policy.qD*1E3;var f=e.nextVideo&&vU(e,e.nextVideo.info)*3<qT(e.Ba);if(!b||f)rU(e),tU(e),e.ra=e.ra||e.nextVideo!==e.B;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ea=-1);c(a,d,e.nextVideo);eV(a,a.audioTrack,a.j.C)};
MV=function(a,b){a.XJ=b;a.policy.Fa||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Rw&&(a.HG.stop(),a.Kb.stop(),a.Db.stop()))};
KQa=function(a,b,c,d){a.policy.G&&a.Jv(!1,"rollback");iSa(a.videoTrack,d,c,b);iSa(a.audioTrack,d,c,b);a.policy.Se||(FO(a.manifest,d,!0),FO(a.manifest,d,!1));a.oa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)});a.policy.G&&EV(a)};
QUa=function(a){a.logger.debug("Rebuffering.");a.As=!0;if(a.policy.rb&&a.Ra){var b,c,d,e;a.oa("lr_rb",{c:a.getCurrentTime(),s:a.isSeeking(),ab:AG(a.Ra.j.Ke()),ala:(b=LU(a.audioTrack))==null?void 0:b.Cc(),alr:(c=a.audioTrack.B)==null?void 0:c.Cc(),vb:AG(a.Ra.B.Ke()),vla:(d=LU(a.videoTrack))==null?void 0:d.Cc(),vlr:(e=a.videoTrack.B)==null?void 0:e.Cc()})}a.ma.Hx()!==0&&a.oa("sps_rebuffer",{c:a.getCurrentTime()})};
RUa=function(a){a.policy.Za=!1;try{a.kC()}catch(b){g.ex(b)}};
SUa=function(a){return a.policy.j&&a.policy.B&&(!KG()&&a.policy.Kp||a.policy.iE)};
VUa=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.La&&a.oa("loader",{setsmb:0}),a.dj(),a.policy.Fa=!1);a.logger.debug("attaching media source");TUa(a,d);if(SUa(a))a.oa("ssap",{delaysb:1}),a.Ra=b;else{if(!RG(b)){var e=CT(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=CT(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.B&&a.oa("ssap",{initsb:1,v:e.info.id,vf:e.info.ob,a:f.info.id,af:f.info.ob});Sxa(b,e.info,
f.info,a.policy.Xd)}UUa(a,b,c,d);try{a.xe()}catch(h){g.ex(h)}}};
UUa=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;KU(a.videoTrack,b.B||null,d);KU(a.audioTrack,b.j||null,d);a.Ra=b;a.Ra.D=!0;c||a.resume();g.Gx(b.j,a.Va,a);g.Gx(b.B,a.Va,a)};
TUa=function(a,b){b=b===void 0?!1:b;a.Ra&&a.Ra.j&&a.Ra.B&&(Hx(a.Ra.j,a.Va,a),Hx(a.Ra.B,a.Va,a));KU(a.audioTrack,null,b);KU(a.videoTrack,null,b);a.Ra&&(a.Ra.D=!1);a.Ra=null};
WUa=function(a){a.Ra&&a.Ra.dh()&&(a.AA(),a.policy.pE&&a.handleError("fmt.unplayable",{unexpected:1},1))};
YUa=function(a,b){if(!a.Ja())if(a.policy.j){if(!YSa(a.B,b)){var c=a.B.B;XSa(a.B,b);var d=!1;d=b.isLocked()&&b.reason==="m"&&ZSa(a.B,b.j);var e=a.policy.Oh&&b.reason==="l";c=c.j>b.j&&b.reason==="b";d||e||c?(a.ma.vp({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.ek||(a.B.j.B=!1)):(a.policy.ek&&(a.B.j.B=!1),EV(a))}}else if(!WQa(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;XUa(a,YQa(a.j,b));LV(a);d=b.isLocked()&&b.reason==="m"&&a.j.ra;e=a.policy.Oh&&b.reason==="l"&&WU(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.Za&&!KG();d||e||c||f?a.ma.vp({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):EV(a)}};
ZUa=function(a,b,c){if((!a.Ra||NG(a.Ra)&&!a.policy.Vn)&&!a.Ug.isSeeking()&&(a.policy.j||WU(b)&&b.j.yg()&&a.j.qa)){var d=a.getCurrentTime()+JOa(a.Z,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
hSa(b,d)}};
XUa=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+yG(b.video.info)}),$Ua(a.ma,new mU(b.video,b.reason)));
if(a.j.Ua){var c=bRa(a.j,"a");a.ma.Oy(new mU(c.audio,c.reason))}};
EV=function(a){g.rp(a.Db)};
OSa=function(a){a.policy.uc&&a.policy.xr&&Math.min(RU(a.videoTrack),RU(a.audioTrack))*1E3>a.policy.zD?g.rp(a.Kb):a.xe()};
aVa=function(a,b){var c=(0,g.Vt)()-b,d=RU(a.audioTrack,!0)*1E3,e=RU(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.C&&(a.oa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),$U(a.policy))){var f=qT(a.Z);a.oa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:KOa(a.Z,a.As,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.As,ps:(a.policy.ZD||"").toString(),rn:(a.policy.XD||"").toString()})}};
bVa=function(a){if(a.policy.B&&YU(a.videoTrack)&&YU(a.audioTrack))return"ssap";if(oSa(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.Kb&&sSa(a.videoTrack)&&sSa(a.audioTrack))return"updateEnd";if(VU(a.audioTrack)||VU(a.videoTrack)&&a.videoTrack.j.info.ob!=="f")return"";if(a.Ug.isSeeking()){var b=a.Z;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.j){var e=b.policy.Cl;$U(b.policy)&&(e=KOa(b,!1,qT(b)));b=e;c=RU(d,!0)>=b&&RU(c,!0)>=b}else c.C.length||
d.C.length?(e=c.j.info.sb+d.j.info.sb,e=10*(1-qT(b)/e),b=Math.max(e,b.policy.Cl),c=RU(d,!0)>=b&&RU(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&GRa(c.D).info.L<c.Va)return"seek"}if(a.policy.G&&tSa(a.videoTrack,a.C)&&tSa(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=$U(a.policy)&&a.policy.Xn;if(!a.As||!d&&c)return"";c=a.policy.Bl;$U(a.policy)&&(c=KOa(a.Z,a.As,qT(a.Z)));c=kSa(a.videoTrack,
a.getCurrentTime(),c)||kSa(a.audioTrack,a.getCurrentTime(),c);return $U(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||FSa(a.D,a.videoTrack,a.audioTrack)||FSa(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""};
cVa=function(a){if(a.L){var b=a.L.xe(a.audioTrack,EG(a.Ra.B.Ke()));b&&a.ma.seekTo(b,{Qx:!0,bd:"pollSubsegmentReadahead",Tp:!0})}};
iVa=function(a,b,c){if(a.policy.Kb&&sSa(b))return!1;if(c.tR())return!0;if(!c.EJ())return!1;var d=CT(b);if(!d||d.info.type===6)return!1;var e=a.policy.oD;if(e&&!d.info.D){var f=d.info.gf-a.getCurrentTime();if(d.info.L<f*e)return!1}var h;if(a.policy.Fw||((h=a.C)==null?0:NQa(h,b,d.info.Oa)))a.Ma=0;else return a.Ug.isSeeking()&&EV(a),a.Ma=a.Ma||(0,g.Vt)(),!1;if(!IV(a,b,c,d.info))return!1;if(a.manifest.B&&d.info.B===0){if(e=dVa(b,c,d))f=LU(b),a.oa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,
ty:d.info.type,seg:d.info.Oa});f=g.rG(d.info.j.info);a.policy.Gd&&f&&!e&&OFa(d)}e=a.L&&!!a.L.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&d.info.B!==0||f&&!e)&&eVa(a,b,c,d))return!0;if(e)return!1;e=yT(a,b);e=a.getCurrentTime()+e;if(d.info.gf>e)return a.policy.j&&fVa(a,b),!1;gVa(a,b);var l;a.policy.Te&&c===((l=a.Ra)==null?void 0:l.j)&&a.Za&&(c.LK()===0?(a.Za=!1,a.policy.Te=!1):a.eb=c.LK());if(!hVa(a,c,d,b))return!1;a.policy.Kb&&d.info.Ti()?(a.ma.V().Xb()&&a.oa("eosl",{ls:d.info.Cc()}),
d.isLocked=!0):(b.jt(d),aRa(a.j,d.info),a.logger.debug(function(){return"Appended "+d.info.Cc()+", buffered: "+AG(c.Ke())}));
return!0};
fVa=function(a,b){b===a.videoTrack?a.La=a.La||(0,g.Vt)():a.Fa=a.Fa||(0,g.Vt)()};
gVa=function(a,b){b===a.videoTrack?a.La=0:a.Fa=0};
hVa=function(a,b,c,d){var e=a.policy.rb?(0,g.Vt)():0,f=c.G&&c.info.j.j||void 0,h=c.j;c.G&&(h=jVa(a,c,h)||h);var l=h.Ok();h=a.policy.rb?(0,g.Vt)():0;b=kVa(a,b,l,c.info,f);(d=d.Z)!=null&&(f=c.info,e=h-e,h=(0,g.Vt)()-h,!d.B||lFa(d.B,f)&&d.B.Oa===f.Oa||d.flush(),d.D+=e,d.C+=h,e=1,!d.B&&f.B&&(e=2),xU(d,e,b),h=Math.ceil(f.B/1024),e===2&&d.j.add(h),d.j.add(Math.ceil((f.B+f.C)/1024)-h),d.B=f);a.Ea=0;if(b===0)return a.Pa&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Pa=!1,a.tb=!1),a.rb=
0,!0;if(b===2||b===5)return lVa(a,"checked",b,c.info),!1;if(b===1){if(!a.Pa)return a.logger.debug("QuotaExceeded, retrying."),a.Pa=!0,!1;if(!a.tb)return a.tb=!0,a.ma.seekTo(a.getCurrentTime(),{bd:"quotaExceeded",Tp:!0}),!1;c.info.Of()?(e=a.policy,e.Pa=Math.floor(e.Pa*.8),e.Ea=Math.floor(e.Ea*.8)):(e=a.policy,e.tb=Math.floor(e.tb*.8),e.Ea=Math.floor(e.Ea*.8));a.policy.j?oU(a.B.j,c.info.j,!1):uU(a.j,c.info.j)}a.ma.vp({reattachOnAppend:b});return!1};
jVa=function(a,b,c){var d;if(d=a.policy.Pw&&a.Ra&&!a.Ra.W&&!a.ma.cK())b=b.info.j.info,d=b.Re()&&mG(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Ra.W=!0,aG('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=DRa(c),a.policy.C&&a.oa("sp4k",{s:!!c}),c};
lVa=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||pU(a.B.j).size>0||oU(a.B.j,d.j,!1):!d.j.info.video||pU(a.j.G).size>0||uU(a.j,d.j)):c===2&&(a.rb<15?(a.rb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=SN(d);var h;d.mrs=(h=a.Ra)==null?void 0:SG(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
XRa=function(a,b,c,d,e){var f=a.manifest;var h=a.policy.j,l=!1,m=-1,n;for(n in f.j){var p=wG(f.j[n].info.mimeType)||f.j[n].info.Of();if(d===p)if(p=f.j[n].index,p.Oo(b.Oa)){l=p;var q=b,r=l.Fo(q.Oa);r&&r.startTime!==q.startTime?(l.segments=[],l.jJ(q),l=!0):l=!1;l?m=b.Oa:!b.pending&&h&&(q=p.getDuration(b.Oa),q!==b.duration&&(f.publish("clienttemp","mfldurUpdate",{itag:f.j[n].info.itag,seg:b.Oa,od:q,nd:b.duration},!1),p.jJ(b),l=!0))}else p.jJ(b),l=!0}m>=0&&(h={},f.publish("clienttemp","resetMflIndex",
(h[d?"v":"a"]=m,h),!1));f=l;aPa(a.Ug,b,d,f);a.C.jM(b,c,d,e);b.Oa===a.manifest.mf&&f&&CO(a.manifest)&&b.startTime>CO(a.manifest)&&(a.manifest.La=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.Ug.isSeeking()&&a.Ug.j<a.manifest.Zc()&&a.Ug.seek(a.manifest.Zc(),{}))};
IV=function(a,b,c,d){var e=LU(b);!e||e.D||QN(e,d)||(c.abort(),(b=b.Z)!=null&&(xU(b,4),b.flush()));if(!c.OA()||KG())try{if(a.policy.vL){if(c.OH(d.j.info.containerType,d.j.info.ob)){if(a.policy.Mz&&c.Tk())return!1;a.oa("ssap",{chgtp:d.j.info.containerType,cf:d.j.info.ob,oldtp:c.OA(),oldcf:c.nQ()});c.cV(d.j.info.containerType,d.j.info.ob,d.j.info.mimeType)}}else c.bV(d.j.info.containerType,d.j.info.mimeType)}catch(f){return c=f,g.fx(c),a.oa("ctexp",{name:c.name,msg:c.message}),!1}else d.j.info.containerType!==
c.OA()&&a.oa("ctu",{ct:KG(),prev_c:c.OA(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Lp&&b&&(d=0+b.duration,b=-b.j,0===c.BF()&&d===c.nK()||c.eU(0,d),b!==c.Mc()&&(c.Mn(b),HU&&ZRa(a.audioTrack.AQ(),c.NQ())));return!0};
eVa=function(a,b,c,d){d.info.j.yg();var e=d.info.j.j;if(!e||!c.EJ()||c.zx()===e)return!1;var f=e,h=c.wK();if(a.policy.Lw&&h&&c.isView()&&g.rG(d.info.j.info)){var l=new DataView(e.buffer,e.byteOffset,e.byteLength);(h=TEa(l,h))?f=new Uint8Array(h.buffer,h.byteOffset,h.byteLength):a.oa("fenc",{})}a.policy.Pw&&(h=jVa(a,d,new ZA([f])))&&(f=h.Ok());var m;(h=d.info.j.Ex(0,d.info.clipId))&&(m=h.jb[0]);if(d===a.Sb){if(a.Ea+=1,a.ma.getVideoData().N("html5_shorts_gapless_restart_on_init_seg_retries")&&a.Ea>
5)return a.Ea=0,a.ma.vp({initSegStuck:1,as:d.info.Cc()}),!0}else a.Ea=0,a.Sb=d;a.policy.KB&&(c.abort(),(h=b.Z)!=null&&(xU(h,4),h.flush()));e=kVa(a,c,f,m,e);var n;(n=b.Z)==null||kRa(n,e,m);if(e!==0)return mVa(a,e,d),!0;d.info.Of()?zQa(a.timing):AQa(a.timing);a.logger.debug(function(){return"Appended init for "+d.info.j.info.id});
return c.Tk()};
dVa=function(a,b,c){if(b.zx()==null){a=LU(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.U,c=c.info.U,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.mc(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.zx();c.info.j.vB()&&lO(c);c=c.info.j.j;return a!==c&&!g.mc(a,c)};
kVa=function(a,b,c,d,e){var f=0;if(a.policy.B&&d&&d.clipId&&a.wb){var h;f=(((h=a.wb)==null?void 0:rT(h,d.clipId))||0)/1E3}try{a.policy.B&&b.Mc()!==f&&b.Mn(f);var l,m=b===((l=a.Ra)==null?void 0:l.j)?a.audioTrack:a.videoTrack;if(a.policy.Kb&&(d==null?0:d.Ti())){if((d==null?void 0:d.W)>1)return 6;m.Ma=new g.qp(function(){var p=CT(m);a.Ja()||p==null||!p.isLocked?a.ma.V().Xb()&&a.oa("eosl",{delayA:p==null?void 0:p.info.Cc()}):nVa(m)?(a.ma.V().Xb()&&a.oa("eosl",{dunlock:p==null?void 0:p.info.Cc()}),oVa(a,
m===a.audioTrack)):(a.oa("nue",{ls:p.info.Cc()}),p.info.W+=1,a.Ra&&a.kC())},1E4,a);
a.ma.V().Xb()&&a.oa("eosl",{delayS:d.Cc()});m.Ma.start()}if(a.policy.Bq&&(d==null?0:d.Ti())){var n;if((n=m.Ea)==null?0:n.isActive())g.sp(m.Ea),a.oa("sbac",{as:d.Cc()});m.Ea=new g.qp(function(){a.oa("sbum5s",{as:d.Cc()})},5E3,a);
m.Ea.start()}a.policy.jy&&(d==null?void 0:d.j)instanceof YN&&d.Ti()&&a.oa("poseos",{itag:d.j.info.itag,seg:d.Oa,lseg:d.j.index.qd(),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:AG(b.Ke()).replace(/,/g,"_"),vheap:PU(a.videoTrack),aheap:PU(a.audioTrack),message:g.vc(p.message,3),track:a.Ra?b===a.Ra.B?"v":
"a":"u"},KUa(a.policy.zG)),a.handleError("player.exception",b),1;g.ex(p)}return 4}return a.Ra.dh()?3:0};
BT=function(a,b,c){a.ma.seekTo(b,c)};
FU=function(a,b){a.ma.iM(b)};
yT=function(a,b){if(a.Pa&&!a.As)return 3;if(a.isSuspended)return 1;var c;if((c=a.Ra)==null?0:c.Ra&&c.Ra.streaming===!1)return 4;c=(b.j.info.audio?a.policy.tb:a.policy.Pa)/(b.sb*a.policy.Km);if(a.policy.Cr>0&&a.Ra&&NG(a.Ra)&&(b=b.j.info.video?a.Ra.B:a.Ra.j)&&!b.Tk()){b=b.Ke();var d=BG(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Cr,a.policy.pD)))}a.policy.Ea>0&&(c=Math.min(c,a.policy.Ea));return c};
qVa=function(a){a.Ua&&!a.isSuspended&&CP(a.schedule)&&(pVa(a,a.Ua),a.Ua="")};
pVa=function(a,b){oT(b,"cms",function(c){a.policy.C&&a.oa("pathprobe",c)},function(c){a.ma.handleError(c)})};
rVa=function(a,b){if(a.Ra&&a.Ra.D&&!a.Ra.dh()&&(b.ax=RU(a.videoTrack),b.B=RU(a.audioTrack),a.policy.C)){var c=PU(a.videoTrack),d=PU(a.audioTrack),e=AG(a.Ra.B.Ke(),"_",5),f=AG(a.Ra.j.Ke(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=pT(a.Z);var h;(h=a.audioTrack.Z)==null||h.flush();var l;(l=a.videoTrack.Z)==null||l.flush();a.logger.debug(function(){return UF(b.j)})};
sVa=function(a,b){a.U=b;a.C&&(a.C.L=b);a.U.oU(a.videoTrack.j.info.Re());a.D.B=a.U;a.policy.G&&(a.W.D=a.U)};
tVa=function(a,b){if(a.Ra&&a.Ra.B){if(a.policy.rE){var c=vSa(a.audioTrack);if(c&&c.Kf()){var d=a.ma;d.GE&&(d.GE.j=c,d.Wb(d.GE.videoId).SB(d.GE))}}a.policy.tE&&(c=vSa(a.videoTrack))&&c.Of()&&(d=a.ma,d.KI&&(d.KI.j=c,d.Wb(d.KI.videoId).aC(d.KI)));b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();a.Ug.isSeeking()&&a.Ra&&!a.Ra.dh()&&(c=a.getCurrentTime()<=b&&b<a.getCurrentTime()+10,d=CG(a.Ra.B.Ke(),a.getCurrentTime()+NV),c&&d&&(a.Ug.G=!1));a.Ug.isSeeking()||a.policy.Ma||
(a.currentTime=b);g.rp(a.HG)}};
uVa=function(a,b){var c=fSa(a.videoTrack).find(function(d){return d.startTime>=b&&LUa(a,d.startTime,!1)});
return c&&c.startTime<b+c.duration*1.5?c.startTime+.1:0};
LUa=function(a,b,c){if(!(a.videoTrack.j.yg()&&a.audioTrack.j.yg()&&a.Ra&&a.Ra.B&&a.Ra.j))return!1;if(c&&a.manifest.isManifestless&&(a.videoTrack.L===-1||a.audioTrack.L===-1))return!0;var d=xT(a.videoTrack,b,c);if(isNaN(d))return!1;a=xT(a.audioTrack,a.policy.Zf?b:d,c);return isNaN(a)?!1:!0};
fV=function(a){a.dj();a.Ug.isSeeking()&&a.logger.debug("seeking cancelled by seek-to-head");a.L&&GUa(a.L,a.videoTrack.j);EV(a);return WOa(a.Ug)};
eV=function(a,b,c,d){(d===void 0?0:d)&&!b.La&&(KG()||(d=b.Rb,SUa(a)||!d||d.iy(c.info)||(a.oa("ssap",{rstonsrvfmt:c.info.mimeType}),OV(a.ma))),b.La=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
nVa=function(a){var b,c=(b=CT(a))==null?void 0:b.info;return!c||qSa(a,Math.min(c.gf+NV,c.Vf))};
vVa=function(a,b){var c;if((c=CT(b))!=null&&c.isLocked&&nVa(b)){if(a.ma.V().Xb()){var d;a.oa("eosl",{munlock:(d=CT(b))==null?void 0:d.info.Cc()})}oVa(a,b===a.audioTrack)}};
oVa=function(a,b){if(a.policy.Kb&&a.Ra){var c,d,e=b?(c=a.Ra)==null?void 0:c.j:(d=a.Ra)==null?void 0:d.B;c=b?a.audioTrack:a.videoTrack;b=CT(c);if(b==null?0:b.isLocked){a.ma.V().Xb()&&a.oa("eosl",{unlock:b.info.Cc()});var f;(f=c.Ma)==null||f.stop();b.isLocked=!1;c.jt(b);aRa(a.j,b.info);e=e==null?void 0:e.MF();(e==null?void 0:e.Cc())!==b.info.Cc()&&a.oa("oue",{bls:e==null?void 0:e.Cc(),tls:b.info.Cc()})}}};
wVa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.policy.Se&&EO(a.manifest),a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.C.W=a.timestampOffset,a.ma.cT(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Mn(a.timestampOffset),a.audioTrack.Mn(a.timestampOffset))};
xVa=function(a,b){b!==a.policy.lh&&((a.policy.lh=b)||a.xe())};
JSa=function(a){var b=a.Nj().filter(function(d){return d.namespace==="ad"});
b=g.x(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};
yVa=function(a){var b=LU(a.videoTrack),c=LU(a.audioTrack);return b&&!uSa(a.videoTrack)?b.startTime:c&&!uSa(a.audioTrack)?c.startTime:NaN};
tUa=function(a){if(a.ma.getVideoData().isLivePlayback)return!1;var b=a.ma.Le();if(!b)return!1;b=b.getDuration();return sUa(a,b)};
sUa=function(a,b){if(!a.Ra||!a.Ra.j||!a.Ra.B)return!1;var c=a.getCurrentTime(),d=a.Ra.j.Ke();a=a.Ra.B.Ke();d=d?DG(d,c):c;c=a?DG(a,c):c;c=Math.min(d,c);return isNaN(c)?!1:c>=b-.01};
mVa=function(a,b,c){a.policy.oE&&oR(a.ma.getVideoData())?(a.ma.pG()||lVa(a,"sepInit",b,c.info),zVa(a.ma,"sie")):lVa(a,"sepInit",b,c.info)};
PSa=function(a){return a.ma.Hx()<a.Ac};
g.PV=function(a){this.fd=a};
QV=function(){g.Fx.apply(this,arguments)};
RV=function(a,b,c,d){QV.call(this);var e=this;this.C=-1;this.j={};this.D=new g.qp(this.G,0,this);g.P(this,this.D);this.B=new g.qp(function(){e.Ja()||(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.L,this)};
AVa=function(a){if(!(a.length<=28))for(var b=(0,g.XT)([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=gB(b);a=wc(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++}};
SV=function(a,b,c){QV.call(this);var d=this;this.C=a;this.j=[];this.Qc={Eoa:function(){return d.j.length}};
this.D=c.fb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.qp(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();BVa(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.Vt)(),d.B.start(Math.max(0,e)))}},0);
g.P(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
BVa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.x(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)};
CVa=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a};
DVa=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
EVa=function(a){var b=eB(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=$M(b.slice(d+2));if(b==null)return null;a=new DVa(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.Hxa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new CVa({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.x(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};
FVa=function(a,b,c){c=c===void 0?"":c;g.O.call(this);this.message=a;this.requestNumber=b;this.ye=c;this.onError=this.onSuccess=null;this.j=new g.wh(5E3,2E4,.2)};
GVa=function(a,b,c){a.onSuccess=b;a.onError=c};
IVa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ja())if(e.status!==0&&e.response)if(uA("drm_net_r",void 0,a.ye),e=new Uint8Array(e.response),e=EVa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else HVa(a,e)},
onError:function(e){HVa(a,e)}};
c&&(b=gga(b,"access_token",c));g.Rr(b,d)};
HVa=function(a,b){if(!a.Ja())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
KVa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ja()){uA("drm_net_r",void 0,a.ye);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=wc(f.license)}catch(u){g.ex(u)}if(h!==0||l){l=new DVa(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.x(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=JVa[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=wc(q.keyId)}catch(u){g.ex(u)}t&&(n[g.uc(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=wc(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.Ja())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.HX="Bearer "+d);g.Av(c,"player/get_drm_license",b,e)};
LVa=function(a,b,c,d){g.Fx.call(this);this.videoData=a;this.ea=b;this.Z=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.U=this.ra=!1;this.C=null;this.Ea=[];this.D=[];this.W=!1;this.j={};this.Ba=NaN;this.status="";this.L=NaN;this.B=a.G;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.ea.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.ra&&(a.vvt=this.videoData.ra,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.ea.Ba&&(a.authuser=this.ea.Ba);this.ea.pageId&&(a.pageid=this.ea.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Fb()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(gP(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.qa=!1);b="";g.UO(this.B)?TO(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
hba(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=ej(this.baseUrl,"ek")||"";if(b=ej(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Fa=this.videoData.N("html5_use_drm_retry");this.Ea=c.Re?[g.uc(c.initData,4)]:c.C;TV(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
PVa=function(a,b){TV(a,{createkeysession:1});a.status="gr";uA("drm_gk_s",void 0,a.videoData.Va);a.url=MVa(a);try{a.C=b.createSession(a.Z,function(c){TV(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&&(NVa(a.C,function(c,d){OVa(a,c,d)},function(c,d,e){if(!a.Ja()){d=void 0;
var f=1;g.UO(a.B)&&g.OP(a.ea)&&a.ea.N("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.ea.N("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Ja()||(TV(a,{onkyadd:1}),a.U||(a.publish("sessionready"),a.U=!0))},function(c){a.Kq(c)}),g.P(a,a.C))};
MVa=function(a){var b=a.baseUrl;wwa(b)||a.error("drm.net",2,"t.x");if(!ej(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.ea.experiments.experiments[e]});
c.length>0&&(a.G.fexp=c.join())}c=g.x(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=gga(b,d,a.G[d]);return b};
OVa=function(a,b,c){if(!a.Ja())if(b){TV(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":QVa(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(uA("drm_gk_f",void 0,a.videoData.Va),a.ra=!0,a.publish("newsession",a));if(QO(a.B)&&(b=RVa(b),!b))return;g.UO(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=bva(g.uc(b)));b=new FVa(b,++a.requestNumber,a.videoData.Va);GVa(b,function(d){SVa(a,
d)},function(d,e,f){if(!a.Ja()){var h=0,l;
(l=d.j.B>=3)||(l=a.Fa&&(0,g.Vt)()-a.Ba>36E4);l&&(h=1,e="drm.net.retryexhausted");TV(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(WF(h),d)&&TVa(a,d)}});
g.P(a,b);UVa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
QVa=function(a,b){TV(a,{sdpvrq:1});a.L=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.ea.j);c=g.cj("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:eB(b)}),responseType:"arraybuffer"};
g.Vr(c,b,3,500).then(GL(function(d){d=d.xhr;if(!a.Ja()){d=new Uint8Array(d.response);var e=eB(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.L)/1E3,a.L=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))}}),GL(function(d){a.Ja()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
UV=function(a){var b;if(b=a.qa&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
UVa=function(a,b){a.status="km";uA("drm_net_s",void 0,a.videoData.Va);if(a.videoData.useInnertubeDrmService()){var c=new g.zv(a.ea.Dl),d={context:g.Gu(c.config_||g.Fu())};d.drmSystem=VVa[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.uc(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.ea.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.ra&&(d.context.user.credentialTransferTokens=[{token:a.videoData.ra,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.tb&&(d.context.user.kidsParent={oauthToken:a.videoData.tb});g.UO(a.B)&&(d.fairplayKeyId=g.uc(iba(a.fairplayKeyId)));g.kQ(a.ea,g.MR(a.videoData)).then(function(l){KVa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.kQ(a.ea,g.MR(a.videoData)).then(function(l){IVa(b,a.url,l);
a.status="rs"})};
SVa=function(a,b){if(!a.Ja())if(TV(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{uA("drm_kr_s",void 0,a.videoData.Va);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.N("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.AF&&a.publish("newlicense",new CVa({})),a.videoData.AF=!0,a.W=Qm(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.ea.N("html5_enable_vp9_fairplay")&&TO(a.B)?(c=g.uc(iba(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Gg(b.j,function(d){return{type:d,status:"unknown"}}));
RO(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=wc(eB(b.message)):SO(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=bva(g.uc(b.message)));a.C&&(TV(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){uA("drm_kr_f",void 0,a.videoData.Va);UV(a)||(TV(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.vc(d.message,3);
a.error("drm.keyerror",1,d)}));
a.U&&(a.Ba=(0,g.Vt)());g.UO(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.ea.N("html5_enable_vp9_fairplay")&&TO(a.B)&&a.publish("qualitychange",WVa(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
TVa=function(a,b){var c=b.j.getValue();c=new g.qp(function(){UVa(a,b)},c);
g.P(a,c);c.start();g.xh(b.j);TV(a,{rtyrq:1})};
XVa=function(a,b){for(var c=[],d=g.x(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)};
YVa=function(a){var b={};b[a.status]=UV(a)?XVa(a,"."):a.D.join(".");return b};
ZVa=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};
$Va=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1};
aWa=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
TV=function(a,b){var c=c===void 0?!1:c;UF(b);(c||a.ea.Xb())&&a.publish("ctmp","drmlog",b)};
bWa=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};
WVa=function(a){return g.Zb(a,"UHD2")||g.Zb(a,"UHD2HDR")?"highres":g.Zb(a,"UHD1")||g.Zb(a,"UHD1HDR")?"hd2160":g.Zb(a,"HD")||g.Zb(a,"HDHDR")?"hd1080":g.Zb(a,"HD720")||g.Zb(a,"HD720HDR")?"hd720":"large"};
RVa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=hg(new DOMParser,Xf(b),"text/xml");return a?(a=a.querySelector("Challenge"))&&a.childNodes&&a.childNodes.length!==0?new Uint8Array((0,g.XT)(Kba(a.childNodes[0].nodeValue)).buffer):null:null};
VV=function(a,b,c,d,e,f){f=f===void 0?!1:f;g.O.call(this);this.element=a;this.W=b;this.initData=c;this.j=d;this.B=e;this.Z=f;this.sessionId="";this.U=this.L=this.C=this.G=null;this.D=new g.dG(this);g.P(this,this.D);cWa(this)};
cWa=function(a){a.j?(a.D.T(a.j,"message",a.r6),a.D.T(a.j,"keystatuseschange",a.Kq),a.j.closed&&a.j.closed.then(GL(function(){a.onClosed()}),null)):a.B&&(Us(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.T0),Us(a.D,a.B,["mskeyerror","webkitkeyerror"],a.S0),Us(a.D,a.B,["mskeyadded","webkitkeyadded"],a.R0))};
NVa=function(a,b,c,d,e){a.G=b;a.C=c;a.L=d;a.U=e};
dWa=function(a,b,c){g.ex(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
WV=function(a,b,c,d){d=d===void 0?!1:d;g.O.call(this);this.element=a;this.j=b;this.oa=c;this.U=d;this.L={};this.D=null;this.G=new g.dG(this);this.C=this.B=null;g.P(this,this.G)};
fWa=function(a,b){b=eWa(b,a.j.Za);b=a.C.createSession("video/mp4",b);return new VV(null,null,null,null,b,a.U)};
gWa=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 VV(null,null,null,null,a)};
hWa=function(a,b){var c=a.L[b.sessionId];!c&&a.D&&(c=a.D,a.D=null,c.sessionId=b.sessionId,a.L[b.sessionId]=c);return c};
eWa=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.substring(e,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};
XV=function(){this.keys=[];this.values=[]};
kWa=function(a,b,c){g.Fx.call(this);this.element=a;this.videoData=b;this.ea=c;this.C=[];this.La=2;this.Pa=this.Fa=!1;this.heartbeatParams=null;this.Ea=this.Z=!1;this.G=null;this.Ma=!1;this.j=this.videoData.G;this.drmSessionId=this.videoData.drmSessionId||g.$qa();this.B=new Map;this.L=new XV;this.U=new XV;this.ra=new g.dG(this);this.Ba=this.ea.N("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||OO()||WO(c.experiments);this.ea.N("html5_enable_vp9_fairplay")&&TO(this.j)?
c=iWa:(c=this.videoData.El,c=this.j.flavor==="fairplay"||c?VQ:iWa);this.W=c;this.D=new WV(this.element,this.j,this.dM.bind(this),this.Ba);g.P(this,this.D);PO(this.j)&&(this.qa=new WV(this.element,this.j,this.dM.bind(this),this.Ba),g.P(this,this.qa));g.P(this,this.ra);c=this.element;this.j.keySystemAccess?this.ra.T(c,"encrypted",this.Eba):Us(this.ra,c,PO(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.dca);jWa(this);a:switch(c=this.j,a=this.ea.experiments,b=this.B,c.flavor){case "fairplay":if(b=
/\sCobalt\/(\S+)\s/.exec(g.Fb())){a=[];b=g.x(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.Qw,c=c.Pw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new RV(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new SV(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.AX,this),this.G.subscribe("log_qoe",this.Cj,this);WO(this.ea.experiments);this.Cj({cks:this.j.getInfo()})};
jWa=function(a){var b=a.D.SO();b?b.then(GL(function(){lWa(a)}),GL(function(c){if(!a.Ja()){g.ex(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.Cj({mdkrdy:1}),a.Z=!0);
a.qa&&(b=a.qa.SO())};
nWa=function(a,b,c){a.Pa=!0;c=new CU(b,c);a.ea.N("html5_eme_loader_sync")&&(a.L.get(b)||a.L.set(b,c));mWa(a,c)};
mWa=function(a,b){if(!a.Ja()){a.Cj({onInitData:1});if(a.ea.N("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.U.get(b.initData);b=a.L.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.L.remove(c);a.U.remove(c)}a.Cj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Fa&&!a.videoData.isLivePlayback)YV(a);else{if(!(a.ea.N("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Re)){a.Fa=!0;c=b.cryptoPeriodIndex;var d=b.j;xRa(b);b.Re||(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.AX(b)}};
lWa=function(a){if(!a.Ja())if(a.ea.N("html5_drm_set_server_cert")||TO(a.j)){var b=a.D.setServerCertificate();b?b.then(GL(function(c){a.ea.Xb()&&a.publish("ctmp","ssc",{success:c})}),GL(function(c){a.publish("ctmp","ssce",{n:c.name,
m:c.message})})).then(GL(function(){oWa(a)})):oWa(a)}else oWa(a)};
oWa=function(a){a.Ja()||(a.Z=!0,a.Cj({onmdkrdy:1}),YV(a))};
pWa=function(a){return a.j.flavor==="widevine"&&a.videoData.N("html5_drm_cpi_license_key")};
YV=function(a){if((a.Pa||a.ea.N("html5_widevine_use_fake_pssh"))&&a.Z&&!a.Ea){for(;a.C.length;){var b=a.C[0],c=pWa(a)?yRa(b):g.uc(b.initData);if(TO(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||TO(a.j)){a.C.shift();continue}else a.B.delete(c);xRa(b);break}}a.C.length&&a.createSession(a.C[0])}};
qWa=function(a){var b;if(b=g.is()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.iB(b),a.publish("ctmp","drm",{metrics:b}))};
rWa=function(){var a=hoa();return!(!a||a==="visible")};
tWa=function(a){var b=sWa();b&&document.addEventListener(b,a,!1)};
uWa=function(a){var b=sWa();b&&document.removeEventListener(b,a,!1)};
sWa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Gs+"VisibilityState"])return"";a=Gs+"visibilitychange"}return a};
vWa=function(a){g.O.call(this);var b=this;this.ma=a;this.yG=0;this.L=this.B=this.G=!1;this.D=0;this.Ca=this.ma.V();this.videoData=this.ma.getVideoData();this.C=g.KD(this.Ca.experiments,"html5_delayed_retry_count");this.j=new g.qp(function(){OV(b.ma)},g.KD(this.Ca.experiments,"html5_delayed_retry_delay_ms"));
g.P(this,this.j)};
AWa=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;oR(a.ma.getVideoData())&&a.Ca.N("html5_gapless_fallback_on_qoe_restart")&&zVa(a.ma,"pe");if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ma.al.G&&d&&d.itag==="22")return a.ma.al.G=!0,a.Hd("qoe.restart",{reason:"fmt.unplayable.22"}),ZV(a.ma),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.j7)c.mimeType=f.type,a.oa("3pp",{url:f.url});c.ns="3pp";a.ma.vg(b,1,"VIDEO_UNAVAILABLE",UF((new VF(b,
c,1)).details));return!0}var h=a.yG+3E4<(0,g.Vt)()||a.j.isActive();if(a.Ca.N("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Hd("auth",c),!0;h||$V(a.ma.jj())||(c.nonfg="paused",h=!0,a.ma.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:pG(e)||qG(e))&&(ZJa(a.Ca.G,e.ob),c.acfallexp=e.ob,f=h=!0);!h&&a.C>0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ma.va;!h&&((d==null?0:oG(d))||(d==null?0:mG(d)))&&(ZJa(a.Ca.G,d.ob),
f=h=!0,c.cfallexp=d.ob);if(a.Ca.N("html5_ssap_ignore_decode_error_for_next_video")&&g.jR(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&$V(a.ma.jj())){if(c.cid!==c.ccid)return c.ignerr="1",a.Hd("ssap.transitionfailure",c),!0;a.Hd("ssap.transitionfailure",c);if(wWa(a.ma,b))return!0}if(!h)return xWa(a,c);if(a.Ca.N("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.jR(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&$V(a.ma.jj())&&(a.Hd("ssap.transitionfailure",c),wWa(a.ma,
b)))return!0;h=!1;a.G?a.yG=(0,g.Vt)():h=a.G=!0;var l=a.videoData;if(l.eb){l=l.eb.YY();var m=Date.now()/1E3+1800;l=l<m}else l=!1;c.e=b;c.bkg=rWa();l&&(c.staleprog="1");a.Hd("qoe.restart",c);if(l&&yWa(a))return zWa(a),!0;if(!(!g.gs("philips")||b==="fmt.unplayable"&&e&&e.Ba||a.Ca.j.cplatform==="GAME_CONSOLE"))try{window.close()}catch(n){}d&&oG(d)&&!a.Ca.N("html5_allow_av1_retry_in_session")?(f=a.Ca.G,f.U=!0,lP(f),f=!0):e?h||(b=(b=LU(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.L+=1,e.policy.j?
oU(e.B.j,b,!0):uU(e.j,b,!0)):a.videoData.eb&&a.videoData.eb.dU();a.j.isActive()||OV(a.ma,f);return!0};
xWa=function(a,b){if(a.videoData.Ba)return!1;a.Ca.Sb+=1;if(a.Ca.Sb<=10)return!1;b.exiled=""+a.Ca.Sb;a.Hd("qoe.start15s",b);a.ma.publish("playbackstalledatstart");return!0};
yWa=function(a){return a.B?!0:a.Ca.qa==="yt"?a.videoData.Ba?a.videoData.uc<25:!a.videoData.uc:!1};
zWa=function(a){if(!a.B){a.B=!0;var b=a.ma.getPlayerState();b=b.isPaused()||b.isSuspended();a.ma.tp();b&&!NR(a.videoData)||a.ma.publish("signatureexpired")}};
BWa=function(a,b){if((a=a.ma.Le())&&(b.errorCode==="fmt.unplayable"||b.errorCode==="html5.invalidstate")){var c=a.Th();b.details.merr=c?c.toString():"0";b.details.mmsg=a.dg()}};
CWa=function(a){return a.errorCode==="net.badstatus"&&(a.severity===1||!!a.details.fmt_unav)};
DWa=function(a,b){return a.Ca.N("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};
FWa=function(a,b){if(!DWa(a,b)&&!a.B)return!1;b.details.sts="20041";if(yWa(a))return WF(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new VF("qoe.restart",b)),a.Hd(b.errorCode,b.details),zWa(a),!0;(0,g.Vt)()-a.Ca.Yf>6048E5&&EWa(a,"signature");return!1};
EWa=function(a,b){try{window.location.reload(),a.Hd("qoe.restart",{detail:"pr."+b})}catch(c){}};
GWa=function(a,b){b=b===void 0?"fmt.noneavailable":b;var c=a.Ca.G;c.L=!1;lP(c);a.Hd("qoe.restart",{e:b,detail:"hdr"});OV(a.ma,!0)};
HWa=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};
IWa=function(a,b,c){this.ea=a;this.iI=b;this.ma=c;this.W=this.L=this.j=this.D=this.U=this.B=0;this.G=!1;this.Z=g.KD(this.ea.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
KWa=function(a,b,c){!a.ea.N("html5_tv_ignore_capable_constraint")&&g.YD(a.ea)&&(c=c.compose(JWa(a,b)));return c};
MWa=function(a,b){var c,d=LWa(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ma.getPlaybackRate();return c>1&&d?(a=TJa(a.ea.G,b.j.videoInfos,c),new lM(0,a,!0,"o")):new lM(0,0,!1,"o")};
LWa=function(a,b){return b&&g.YD(a.ea)?b.some(function(c){return c.video.fps>32}):!1};
NWa=function(a,b){var c=a.ma.tK();a.N("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.jV>0&&pM(b.videoData.lD)&&(a=c.jV,b.videoData.lD=new lM(0,a,!1,"u"));return b.videoData.lD};
JWa=function(a,b){if(g.YD(a.ea)&&DM(a.ea.G,EM.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.MP(a.ea)&&(e=window.screen&&window.screen.width?new g.Cg(window.screen.width,window.screen.height):null);e||(e=a.ea.Zn?a.ea.Zn.clone():a.iI.zi());(ns||wU||d)&&e.scale(g.aQ());d=e;pR(b.videoData)||NR(b.videoData);b=b.j.videoInfos;if(b.length){e=g.KD(a.ea.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&
f.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||KP||(e=.45);a=g.KD(a.ea.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 lM(0,c.itag==="93"?g.gG[fG(d.width,d.height)]:d.j,!1,"r")}else c=VQ;c=c.j}c&&(c=Math.max(c,360));return new lM(0,c,!1,"r")};
OWa=function(a,b){var c;a:if((c=b.j)&&c.videoInfos.length){for(var d=g.x(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;Qna()&&!g.YD(a.ea)&&mG(b.j.videoInfos[0])&&(c=Math.min(c,g.gG.large));d=g.KD(a.ea.experiments,"html5_chipset_soft_cap");d>0&&(c=Math.min(c,d));if(d=g.KD(a.ea.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 lM(0,c,!1,"o")};
QWa=function(a,b){var c=4320;!a.ea.B||g.NP(a.ea)||a.ea.N("hls_for_vod")||a.ea.N("mweb_remove_360p_cap")||(c=g.gG.medium);var d=g.KD(a.ea.experiments,"html5_default_quality_cap");d&&b.j.j&&(a.ea.N("html5_always_apply_default_quality_cap")||!b.videoData.uj&&!b.videoData.le)&&(c=Math.min(c,d));d=g.KD(a.ea.experiments,"html5_random_playback_cap");var e=/[a-h]$/;d&&e.test(b.videoData.clientPlaybackNonce)&&(c=Math.min(c,d));if(e=d=g.KD(a.ea.experiments,"html5_hfr_quality_cap"))a:{e=b.j;if(e.j){e=g.x(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.KD(a.ea.experiments,"html5_live_quality_cap"))&&b.videoData.isLivePlayback&&(c=Math.min(c,d));c=PWa(a,b,c);a=g.KD(a.ea.experiments,"html5_byterate_soft_cap");return new lM(0,c===4320?0:c,!1,"d",a)};
RWa=function(a){var b,c,d,e;return g.I(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.x(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ga(0);break}e=d.value;return g.G(f,Mxa(e),4);case 4:d=c.next(),f.Ga(3)}})};
TWa=function(a,b){if(!b.videoData.B||a.N("html5_disable_performance_downgrade"))return!1;Date.now()-a.U>6E4&&(a.B=0);a.B++;a.U=Date.now();if(a.B!==4)return!1;SWa(a,b.videoData.B);return!0};
VWa=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.KD(a.ea.experiments,"html5_df_downgrade_thresh"),f=a.N("html5_log_media_perf_info"),h=g.KD(a.ea.experiments,"html5_df_check_interval_ms")||5E3;if(!((0,g.Vt)()-a.D<h?0:f||e>0))return!1;h=((0,g.Vt)()-a.D)/1E3;a.D=(0,g.Vt)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.L,m=c.totalVideoFrames-a.W;a.L=c.droppedVideoFrames;a.W=c.totalVideoFrames;var n=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||
-1;f&&a.ea.Xb()&&a.ma.oa("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.Z||!e||g.YD(a.ea))return!1;if(a.N("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;SWa(a,b.videoData.B);a.ma.oa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},UWa()));return!0};
SWa=function(a,b){var c=b.ob,d=b.video.fps,e=b.video.j-1,f=a.C;b=""+c+(d>49?"p60":d>32?"p48":"");c=LO(c,d,f);e>0&&(c=Math.min(c,e));if(!aW.has(b)&&$L().includes(b)){var h=c;c=ZL();+c[b]>0&&(h=Math.min(+c[b],h));c[b]!==h&&(c[b]=h,g.Zs("yt-player-performance-cap",c,2592E3))}else if(aW.has(b)||f==null){a:{h=h===void 0?!0:h;d=$L().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.Zs("yt-player-performance-cap-active-set",d,2592E3)}KO.set(b,c)}else aW.add(b),
f==null||f.set(b,c);a.ma.Bp()};
bW=function(a,b){if(!b.j.j)return a.G?new lM(0,360,!1,"b"):VQ;for(var c=!1,d=!1,e=g.x(b.j.videoInfos),f=e.next();!f.done;f=e.next())oG(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.KD(a.ea.experiments,"html5_performance_cap_floor");e=a.ea.B?240:e;b=g.x(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!oG(h))if(f=LO(h.ob,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new lM(0,d,!1,"b")};
WWa=function(a,b){var c=a.ma.jj();return c.isInline()&&!b.sE?new lM(0,480,!1,"v"):c.isBackground()&&Wv()/1E3>60&&!g.YD(a.ea)?new lM(0,360,!1,"v"):VQ};
XWa=function(a,b,c){if(a.ea.experiments.fb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.YD(a.ea)&&(XL(-1)>=1080||b.osid))return VQ;var d=g.KD(a.ea.experiments,"html5_autonav_quality_cap"),e=g.KD(a.ea.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&Wv()/1E3>e?(c&&(d=PWa(a,c,d)),new lM(0,d,!1,"e")):VQ};
PWa=function(a,b,c){if(a.N("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};
YWa=function(a,b){a.N("html5_log_media_perf_info")&&(a.ma.oa("perfdb",UWa()),a.ma.oa("sessionperfdb",Object.fromEntries(KO.entries())),a.ma.oa("playbackperfdb",Object.fromEntries(a.C.entries())),a.ma.oa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.ma.oa("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("-")}))};
UWa=function(){return Gg(ZL(),function(a){return""+a})};
cW=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.$G;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.qp(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.Qc={UB:function(){b.UB()}};
this.UB=function(){b.jsErrorCount++};
g.P(this,this.delay);window.addEventListener("error",this.UB);window.addEventListener("unhandledrejection",this.UB)};
ZWa=function(a){a.j>=0||(a.provider.ma.getVisibilityState()===3?a.G=!0:(a.j=g.KK(a.provider),a.delay.start()))};
$Wa=function(a){if(!(a.B<0)){var b=g.KK(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.T(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
aXa=function(a){var b;switch((b=a.ea.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"}};
bXa=function(a){return window.PressureObserver&&new window.PressureObserver(a)};
cXa=function(a){a=a===void 0?bXa: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})};
dXa=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};
eXa=function(a){var b;g.I(function(c){if(c.j==1)return g.G(c,a.C,2);(b=a.B)==null||b.disconnect();g.va(c)})};
gXa=function(a,b){b?fXa.test(a):(a=g.wr(a),Object.keys(a).includes("cpn"))};
iXa=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(zr(a)&&Ar()){if(h){var n;((n=hXa.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=hXa.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.mr("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.mr("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.mr("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ba)&&!cQ(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.N("enable_datasync_id_header_in_web_vss_pings")&&b.El&&b.datasyncId&&(m["X-YouTube-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.N("html5_send_cpn_with_options")&&fXa.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};
jXa=function(a,b,c,d,e,f,h,l){Ar()&&c.token&&(a=xr(a,{ctt:c.token,cttype:c.RU,mdx_environment:c.mdxEnvironment}));d.N("net_pings_low_priority")&&(b||(b={}),b.priority="low");f||l&&d.N("nwl_skip_retry")?(b==null?b={}:gXa(a,d.N("html5_assert_cpn_with_regex")),h?xv().sendAndWrite(a,b):xv().sendThenWrite(a,b,l)):b?(gXa(a,d.N("html5_assert_cpn_with_regex")),d.N("net_pings_use_fetch")?Fna(a,b):g.Rr(a,b)):g.mv(a,e)};
kXa=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(Math.random()*9*1E8)+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};
dW=function(a,b){var c,d;return!!((c=window.h5vcc)==null?0:(d=c.settings)==null?0:d.set(a,b))};
mXa=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.x(lXa);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))}};
nXa=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.z(new Uint8Array(c))));a.close()}return b};
g.gW=function(a,b){g.O.call(this);var c=this;this.provider=a;this.logger=new g.KT("qoe");this.j={};this.sequenceNumber=1;this.L=NaN;this.Ne="N";this.Z=this.nC=this.mC=this.Db=this.G=0;this.Vb=this.U=this.Va="";this.Ac=this.Pa=NaN;this.uc=0;this.Pc=-1;this.Jc=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.rb=this.isEmbargoed=this.Fa=this.isOffline=this.isBuffering=!1;this.kd=[];this.ra=null;this.ib=this.C=this.eb=this.W=!1;this.B=-1;this.Ua=!1;this.Dd=new g.qp(this.r$,750,this);this.qa=this.adCpn=
this.Ba=this.contentCpn="";this.adFormat=void 0;this.He=0;this.Fd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Gd=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.tb=!1;this.Sb=NaN;this.Ma=0;this.Kb=!1;this.Ea=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Ib=!1;this.Qc={SM:function(e){c.SM(e)},
Soa:function(){return c.D},
Tl:function(){return c.contentCpn},
zoa:function(){return c.Ba},
reportStats:function(){c.reportStats()},
voa:function(){return c.j.cat},
BK:function(e){return c.j[e]},
rpa:function(){return c.Ea}};
var d=g.KD(this.provider.ea.experiments,"html5_qoe_proto_mock_length");d&&!eW.length&&(eW=kXa(d));g.P(this,this.Dd);try{navigator.getBattery().then(function(e){c.ra=e})}catch(e){}g.fW(this,0,"vps",["N"]);
a.ea.Xb()&&(this.Ma=(0,g.Vt)(),this.Sb=g.Ir(function(){var e=(0,g.Vt)(),f=e-c.Ma;f>500&&c.oa("vmlock",{diff:f.toFixed()});c.Ma=e},250));
a.ma.If()&&b&&(this.Ea=b-Math.round(g.KK(a)*1E3));this.provider.videoData.uj&&(this.remoteControlMode=oXa[this.provider.videoData.uj]||0);this.provider.videoData.gk&&(b=dEa(this.provider.videoData.gk),b==null?0:b.length)&&(this.remoteConnectedDevices=b);a.N("html5_log_cpu_info")&&(this.Za=new cXa,g.P(this,this.Za))};
g.fW=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
pXa=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.fW(a,b,"cmt",[d.toFixed(3)]);d=a.provider.xg(c);if(a.D&&d*1E3>a.D.v0+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.v0;a.La=b*1E3-e.Iea-d-e.qea;e=(0,g.Vt)()-d;b=a.La;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.L&&(h.cttAuthInfo={token:d.L,videoId:d.videoId});h.startTime=e-b;wA(f,h);g.vA({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);uA("pbs",e,f)}else e=a.provider.ma.Sh(),e.L!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.Pj()||g.fx(new g.lt("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.oa("gllat",{l:a.La.toFixed(),prev_ad:+c});delete a.D}};
hW=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.KK(a.provider);var c=a.provider.ma.UF(),d=c.zt-(a.Pa||0);d>0&&g.fW(a,b,"bwm",[d,(c.Wv-(a.Ac||0)).toFixed(3)]);isNaN(a.Pa)&&c.zt&&a.isOffline&&a.SM(!1);a.Pa=c.zt;a.Ac=c.Wv;isNaN(c.bandwidthEstimate)||g.fW(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.ea.Xb()&&Object.keys(c.j).length!==0&&a.oa("bwinfo",c.j);if(a.provider.ea.Xb()||a.provider.ea.N("html5_log_meminfo"))d=KUa(a.provider.ea.N("html5_log_additional_meminfo")),Object.values(d).some(function(f){return f!==
void 0})&&a.oa("meminfo",d);
if(a.provider.ea.N("html5_log_cpu_info")){var e;(d=(e=a.Za)==null?void 0:dXa(e))&&Object.values(d).some(function(f){return f!=null})&&a.oa("cpuinfo",d)}a.ra&&g.fW(a,b,"bat",[a.ra.level,
a.ra.charging?"1":"0"]);e=a.provider.ma.getVisibilityState();a.Pc!==e&&(g.fW(a,b,"vis",[e]),a.Pc=e);pXa(a,b);(e=qXa(a.provider))&&e!==a.uc&&(g.fW(a,b,"conn",[e]),a.uc=e);rXa(a,b,c)};
rXa=function(a,b,c){if(!isNaN(c.ax)){var d=c.ax;c.B<d&&(d=c.B);g.fW(a,b,"bh",[d.toFixed(3)])}};
sXa=function(a,b,c){g.kQ(a.provider.ea,g.MR(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.ea.N("kevlar_woffle")||a.provider.ea.N("qoe_nwl_downloads"))e=!0}else a.provider.ea.N("qoe_with_networkless")&&(e=!0);var f=a.provider.ea.N("qoe_send_and_write"),h=a.provider.ea;d=iXa(b,h,a.provider.ea.pageId,a.provider.ea.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.N("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=
c,jXa(b,d,{token:a.provider.videoData.L,RU:a.provider.videoData.Sn,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Fa)):e?(e=a.provider.ea.N("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Fa?xv().sendAndWrite(b,h):e?g.Rr(b,{method:"POST",postBody:c}):xv().sendThenWrite(b,h)):(f=c,f=f===void 0?"":f,Fqa(b,f)||g.mv(b,void 0,void 0,void 0,f))})};
tXa=function(a){for(var b=0,c=g.x(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Ol(a.j[d],function(e,f){return e+f.length},0));
b>96E3&&(new g.qp(a.reportStats,0,a)).start()};
uXa=function(a){a.provider.videoData.kd&&iW(a,"prefetch");a.provider.videoData.uc&&a.oa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.uc});a.provider.videoData.rb&&iW(a,"monitor");a.provider.videoData.isLivePlayback&&iW(a,"live");fP&&iW(a,"streaming");a.provider.videoData.uj&&a.oa("ctrl",{mode:a.provider.videoData.uj},!0);if(a.provider.videoData.gk){var b=a.provider.videoData.gk.replace(/,/g,"_");a.oa("ytp",{type:b},!0)}a.provider.videoData.SZ&&(b=a.provider.videoData.SZ.replace(/,/g,
"."),a.oa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.ea.N("enable_white_noise")||a.provider.ea.N("enable_webgl_noop");c=g.tR(c)||g.DR(c)||g.ER(c)||g.FR(c);(b||c)&&(b=(0,g.jW)())&&(a.j.gpu=[b]);NR(a.provider.videoData)&&g.fW(a,g.KK(a.provider),"dt",["1"]);a.provider.ea.Xb()&&(b=(0,g.Vt)()-a.provider.ea.Yf,a.oa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.L=g.Ir(function(){a.reportStats()},1E4)};
wXa=function(a,b,c){var d=g.KK(a.provider);vXa(a,d,b,0,c);hW(a,d);tXa(a)};
vXa=function(a,b,c,d,e){var f=a.provider.ea.j.cbrver;a.provider.ea.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&xXa(a,3);a.provider.ea.N("html5_use_ump")&&/b248180278/.test(e)&&xXa(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."+RA());e&&c.push(yXa(e));g.fW(a,b,"error",c);a.C=!0};
zXa=function(a){a.B>=0||(a.provider.ea.zf||a.provider.ma.getVisibilityState()!==3?a.B=g.KK(a.provider):a.Ua=!0)};
AXa=function(a,b,c,d){if(c!==a.Ne){b<a.G||(a.Ne==="PL"?a.playTimeSecs+=b-a.G:a.Ne==="B"&&a.isBuffering&&(a.isBuffering=!1,a.rebufferTimeSecs+=b-a.Db,!a.rb&&a.rebufferTimeSecs>=10&&a.playTimeSecs<=180&&(a.j.qoealert=["1"],a.rb=!0)),c!=="B"||a.Ne!=="PL"&&a.Ne!=="PB"||(a.isBuffering=!0),a.G=b);a.Ne==="PL"&&(c==="B"||c==="S")||a.provider.ea.Xb()?hW(a,b):(a.tb||c!=="PL"||(a.tb=!0,rXa(a,b,a.provider.ma.UF())),pXa(a,b));c==="PL"&&g.rp(a.Dd);var e=[c];c==="S"&&d&&e.push("ss."+d);g.fW(a,b,"vps",e);a.Ne=c;
a.Db=b;a.G=b;a.C=!0}};
iW=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
kW=function(a,b,c,d,e,f){var h=g.KK(a.provider);c!==1&&c!==3&&c!==5||g.fW(a,h,"vps",[a.Ne]);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};
xXa=function(a,b){if(!a.ib){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.ib=!0}};
yXa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
BXa=function(a){this.provider=a;this.U=!1;this.j=0;this.D=-1;this.Eq=NaN;this.C=0;this.segments=[];this.L=this.G=0;this.previouslyEnded=!1;this.Z=this.provider.ma.getVolume();this.W=this.provider.ma.isMuted()?1:0;this.B=lW(this.provider)};
mW=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Vb(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=lW(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
DXa=function(a){CXa(a);a.L=g.Ir(function(){a.update()},100);
a.Eq=g.KK(a.provider);a.B=lW(a.provider)};
CXa=function(a){g.Kr(a.L);a.L=NaN};
EXa=function(a,b,c){c-=a.Eq;return b===a.j&&c>.5};
FXa=function(a,b,c,d){this.ea=b;this.uc=c;this.segments=[];this.experimentIds=[];this.Ua=this.Sb=this.isFinal=this.delayThresholdMet=this.Kb=this.Dd=this.autoplay=this.autonav=!1;this.Ac="yt";this.U=[];this.L=this.Z=null;this.sendVisitorIdHeader=this.Za=!1;this.W=this.pageId="";this.G=c==="watchtime";this.C=c==="playback";this.Ba=c==="atr";this.zf=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Ba?"/api/stats/"+c:"//"+b.ao+"/api/stats/"+c;d&&(this.Sb=d.fs,d.rtn&&(this.L=d.rtn),this.G?(this.playerState=
d.state,d.rti>0&&(this.Z=d.rti)):(this.Rg=d.mos,this.ag=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Pc=d.inview),d.size&&(this.Jc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.He=g.Rg(b.j);this.W=gP(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.W==="all"||this.W==="once")this.Ib=g.Rg(b.Vb);this.yf=b.Pc;this.experimentIds=PJa(b.experiments);this.Va=b.Kj;this.Ac=b.qa;this.region=
b.region;this.userAge=b.userAge;this.ib=b.Mj;this.Fd=Wv();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ea=b.N("vss_pings_using_networkless")||b.N("kevlar_woffle");this.Xf=b.N("vss_final_ping_send_and_write");this.Fa=b.N("vss_use_send_and_write");this.pageId=b.pageId;this.Yf=b.N("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Te=b.D&&b.N("embeds_append_synth_ch_headers");g.HP(b)&&(this.La=b.Fa);g.Cs(g.QP(b))&&this.U.push(1);this.accessToken=
g.MR(a);a.Np[this.uc]?this.D=a.Np[this.uc]:a.Np.playback&&(this.D=a.Np.playback);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=PMa(a);this.C&&(this.Dd=(a.N("html5_enable_log_server_autoplay")||a.N("enable_cleanup_masthead_autoplay_hack_fix"))&&a.wp&&IR(a)==="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=KR(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Kb=a.Nf;a.L&&(this.qa=a.L,this.tb=a.Sn);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);
this.j=a.Oh;this.Db=a.Db;a.B&&(this.Gd=a.B.itag,a.D&&a.D.itag!==this.Gd&&(this.rb=a.D.itag));a.j&&vM(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=IR(a);this.Ua=a.ag?!1:a.Ph;this.Xd=a.Tn;if(b=wR(a))this.Zf=b;this.Se=a.mw;this.partnerId=a.partnerId;this.eventId=a.eventId;this.playlistId=a.q4||a.playlistId;this.qC=a.qC;this.uj=a.uj;this.gk=a.gk;this.Fq=a.Fq;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;
this.xD=a.xD;this.referrer=a.referrer;this.qq=a.wZ||a.qq;this.eb=a.SD;this.iD=a.iD;this.userGenderAge=a.userGenderAge;this.pw=a.pw;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.HP(this.ea)&&a.mutedAutoplay&&this.U.push(2);a.jd(new g.Cg(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.U.push(3);g.RR(a)&&this.U.push(4);this.Pa=a.MK;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)};
GXa=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.kQ(a.ea,a.accessToken).then(function(d){return iXa(a.uri,a.ea,a.pageId,c,d,b,a.Te)})};
JXa=function(a,b){return function(){a.ea.N("html5_simplify_pings")?(a.j=a.Ma,a.kd=b(),a.Fd=0,a.send()):GXa(a).then(function(c){var d=HXa(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.cj(a.uri,d);a.ea.N("vss_through_gel_double")&&IXa(d);a.Ea?(c==null&&(c={}),a.Fa?xv().sendAndWrite(d,c):xv().sendThenWrite(d,c)):c?g.Rr(d,c):g.mv(d)})}};
HXa=function(a){var b={ns:a.Ac,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Gd,fs:a.Sb?"1":"0",rt:a.B(a.kd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.yf,lact:a.Fd,live:a.Zf,cl:(696361612).toString(),mos:a.Rg,state:a.playerState,volume:a.ag};a.subscribed&&(b.subscribed="1");Object.assign(b,a.He);a.W==="all"?Object.assign(b,a.Ib):a.W==="once"&&a.C&&Object.assign(b,a.Ib);a.autoplay&&(b.autoplay="1");a.Dd&&(b.sautoplay="1");a.Kb&&(b.dni="1");!a.G&&a.La&&(b.epm=KXa[a.La]);
a.isFinal&&(b["final"]="1");a.Ua&&(b.splay="1");a.Db&&(b.delay=a.Db);a.Va&&(b.hl=a.Va);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.Ma!==void 0&&(b.len=a.B(a.Ma));!a.G&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.L!==null&&(b.rtn=a.B(a.L));a.qq&&(b.feature=a.qq);a.uj&&(b.ctrl=a.uj);a.gk&&(b.ytr=a.gk);a.rb&&(b.afmt=a.rb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Vb&&(b.lio=a.B(a.Vb));
a.G?(b.idpj=a.Xd,b.ldpj=a.Se,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.pw&&(b.ald=a.pw),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Jc&&(a.C||a.G)&&(b.size=a.Jc);a.C&&a.U.length&&(b.pbstyle=a.U.join(","));a.Pc!=null&&(a.C||a.G)&&(b.inview=a.B(a.Pc));a.G&&(b.volume=nW(a,g.Ml(a.segments,function(d){return d.volume})),b.st=nW(a,g.Ml(a.segments,function(d){return d.startTime})),b.et=nW(a,g.Ml(a.segments,function(d){return d.endTime})),
Qm(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=nW(a,g.Ml(a.segments,function(d){return d.playbackRate}))),Qm(a.segments,function(d){return d.j!=="-"})&&(b.als=g.Ml(a.segments,function(d){return d.j}).join(",")),Qm(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.Ml(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=nW(a,g.Ml(a.segments,function(d){return d.muted?1:0}));
Qm(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=nW(a,g.Ml(a.segments,function(d){return d.visibilityState})));
Qm(a.segments,function(d){return d.connectionType!==0})&&(b.conn=nW(a,g.Ml(a.segments,function(d){return d.connectionType})));
Qm(a.segments,function(d){return d.B!==0})&&(b.blo=nW(a,g.Ml(a.segments,function(d){return d.B})));
Qm(a.segments,function(d){return!!d.C})&&(b.blo=g.Ml(a.segments,function(d){return d.C}).join(","));
Qm(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Ml(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
Qm(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.Ml(a.segments,function(d){return d.G}).join(","));
Qm(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.Ml(a.segments,function(d){return d.clipId}).join(","));
if(Qm(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.Ml(a.segments,function(d){return d.D}).join(",")}Ar()&&a.qa&&(b.ctt=a.qa,b.cttype=a.tb,b.mdx_environment=a.mdxEnvironment);
a.zf&&(b.etype=a.ra!==void 0?a.ra:0);a.eb&&(b.uoo=a.eb);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=LXa[a.livingRoomAppMode]||a.livingRoomAppMode);a.D?MXa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.xD,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.Fq&&(b.ssrt="1"),a.iD&&(b.upt=a.iD));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Pa&&(b.host_cpn=a.Pa);return b};
MXa=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.x(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])}};
nW=function(a,b){return g.Ml(b,a.B).join(",")};
IXa=function(a){a.indexOf("watchtime")!==-1&&g.Dt("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
NXa=function(a,b){a.attestationResponse&&GXa(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ea?a.Fa?xv().sendAndWrite(b,c):xv().sendThenWrite(b,c):g.Rr(b,c)})};
oW=function(a){g.O.call(this);this.provider=a;this.L="paused";this.G=NaN;this.U=[10,10,10,40];this.Z=this.W=0;this.ra=this.Ea=this.Ba=this.qa=this.C=!1;this.B=this.D=NaN;this.j=new BXa(a)};
RXa=function(a){if(!a.C){a.provider.videoData.RH===16623&&g.fx(Error("Playback for EmbedPage"));var b=pW(a,"playback");a:{if(a.provider.ea.N("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.Tn,h=a.provider.videoData.mw,l=-f;e=g.x(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.U=c;break a}}a.U=[10+a.provider.videoData.Tn,10,10,40+a.provider.videoData.mw-a.provider.videoData.Tn,40]}DXa(a.j);b.L=qW(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.Mx&&(b=a.provider.ea,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.Mx,oid:d.dX,ptchn:d.cX,pltype:d.eX,content_v:KR(d)},d.Nw&&Object.assign(c,{m:d.Nw}),b=g.cj(b.Ea+"ptracking",c),OXa(a,b));a.provider.videoData.Db||
(PXa(a),QXa(a),a.Bt());a.C=!0;b=a.j;b.j=b.provider.ma.xg();b.Eq=g.KK(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.U=!0;a.provider.ea.N("html5_log_vss_details")&&a.provider.ma.oa("vssinit",{})}};
qW=function(a,b){b=b===void 0?NaN:b;var c=g.KK(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.U[a.W];a.W+1<a.U.length&&a.W++;var e=b+d;a.G=g.Hr(function(){if(!a.Ja()){a.G=NaN;var f=SXa(a),h=TXa(a,f);h.Z=e;var l=a.Z>1E3;!(f.length>1)&&f[0].isEmpty()||l||(h.L=qW(a,e));h.send();a.Z++}},(e-c)*1E3);
return a.D=e};
rW=function(a){g.Jr(a.G);a.G=NaN};
SXa=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||mW(a);var b=a.segments;a.segments=[];return b};
pW=function(a,b){var c=UXa(a.provider);Object.assign(c,{state:a.L});b=new FXa(a.provider.videoData,a.provider.ea,b,c);b.j=a.provider.ma.xg();c=a.provider.videoData.clientPlaybackNonce;b.j=a.provider.ma.pK(c);a.provider.videoData.isLivePlayback||(b.Ma=a.provider.ma.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.kf(b.j))&&(b.Vb=c-b.j);b.kd=g.KK(a.provider);b.segments=[lW(a.provider)];return b};
TXa=function(a,b){var c=pW(a,"watchtime");VXa(a)&&(c.delayThresholdMet=!0,a.Ba=!0);if(a.B>0){for(var d=g.x(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.yQ();c.segments=b;return c};
sW=function(a,b){var c=WXa(a,!isNaN(a.D));b&&(a.D=NaN);return c};
WXa=function(a,b){var c=TXa(a,SXa(a));!isNaN(a.D)&&b&&(c.Z=a.D);return c};
VXa=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Db&&a.C&&!a.Ba)b=a.j,b=b.G+b.provider.ma.xg()-b.C>=a.provider.videoData.Db;return!!b};
PXa=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Ea&&(OXa(a,a.provider.videoData.youtubeRemarketingUrl),a.Ea=!0)};
QXa=function(a){a.provider.videoData.googleRemarketingUrl&&!a.ra&&(OXa(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0)};
XXa=function(a){a.provider.ea.N("html5_log_vss_details")&&a.provider.ma.oa("vssfi",{});if(!a.Ja()&&a.C){a.L="paused";var b=sW(a);b.isFinal=!0;b.send();a.dispose()}};
YXa=function(a,b){if(!a.Ja())if(g.T(b.state,2)||g.T(b.state,512)){if(a.L="paused",g.Py(b,2)||g.Py(b,512))g.Py(b,2)&&(a.j.previouslyEnded=!0),a.C&&(rW(a),sW(a).send(),a.D=NaN)}else if(g.T(b.state,8)){a.L="playing";var c=a.C&&isNaN(a.G)?qW(a):NaN;!isNaN(c)&&(Oy(b,64)<0||Oy(b,512)<0)&&(a=WXa(a,!1),a.L=c,a.send())}else a.L="paused"};
ZXa=function(a,b,c){if(!a.qa){c||(c=pW(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.qa=!0}};
OXa=function(a,b){var c=a.provider.ea;g.kQ(a.provider.ea,g.MR(a.provider.videoData)).then(function(d){var e=a.provider.ea.pageId,f=a.provider.ea.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.ea.N("vss_pings_using_networkless")||a.provider.ea.N("kevlar_woffle"),l=a.provider.ea.N("allow_skip_networkless");d=iXa(b,c,e,f,d);jXa(b,d,{token:a.provider.videoData.L,RU:a.provider.videoData.Sn,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
$Xa=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};
tW=function(a,b,c){this.videoData=a;this.ea=b;this.ma=c;this.j=void 0};
g.KK=function(a){return aYa(a)()};
aYa=function(a){if(!a.j){var b=g.Ya(function(d){var e=(0,g.Vt)();d&&e<=631152E6&&(a.ma.oa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.ea.N("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.ma.SS()}return a.j};
UXa=function(a){var b=a.ma.gs()||{};b.fs=a.ma.xq();b.volume=a.ma.getVolume();b.muted=a.ma.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ma.IA();var c;b.playerheight=((c=a.ma.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ma.getPlayerSize())==null?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&(a.Jc?a.D.itag!==a.B.itag: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.ag?0:a.Ph)&&(c.splay=1);(d=wR(a))&&(c.live=d);a.wp&&(c.sautoplay=1);a.qj&&(c.autoplay=1);a.qC&&(c.sdetail=a.qC);a.partnerId&&(c.partnerid=a.partnerId);a.osid&&(c.osid=a.osid);a.oE&&(c.cc=g.XKa(a.oE));return Object.assign(b,c)};
qXa=function(a){var b,c;if(b=((c=navigator.connection)==null?void 0:c.type)||"")return bYa[b]||bYa.other;if(g.YD(a.ea)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
lW=function(a){var b=new $Xa,c;b.G=((c=UXa(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ma.getPlaybackRate();c=a.ma.getVisibilityState();c!==0&&(b.visibilityState=c);a.ea.tb&&(b.B=1);b.C=a.videoData.jw;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ma.getAudioTrack();c.qc&&c.qc.id&&c.qc.id!=="und"&&(b.D=c.qc.id);b.connectionType=qXa(a);b.volume=a.ma.getVolume();b.muted=a.ma.isMuted();b.clipId=a.ma.IA()||"-";b.j=a.videoData.VJ||"-";return b};
g.uW=function(a,b){g.O.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ne=new g.$G;this.Qc={cpa:function(){return c.qoe},
qpa:function(){return c.j},
Loa:function(){return c.B}};
this.provider.videoData.Be()&&!this.provider.videoData.Hm&&(this.j=new oW(this.provider),this.j.B=this.provider.videoData.Gd/1E3,g.P(this,this.j),this.qoe=new g.gW(this.provider,b),g.P(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Wg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Wg,this.j));if(a.ea.playerCanaryState==="canary"||a.ea.playerCanaryState==="holdback")this.B=new cW(this.provider),g.P(this,this.B)};
cYa=function(a){return!!a.j&&!!a.qoe};
vW=function(a){a.B&&ZWa(a.B);a.qoe&&zXa(a.qoe)};
dYa=function(a){if(a.qoe){a=a.qoe;for(var b=a.provider.videoData,c=a.provider.ea,d=g.x(c.Rg),e=d.next();!e.done;e=d.next())iW(a,e.value);if(a.provider.N("html5_enable_qoe_cat_list"))for(d=g.x(b.bq),e=d.next();!e.done;e=d.next())iW(a,e.value);else b.Rg&&iW(a,a.provider.videoData.Rg);b.Yb()&&(d=b.j,iR(b)&&iW(a,"manifestless"),d&&DO(d)&&iW(a,"live-segment-"+DO(d).toFixed(1)));cR(b)?iW(a,"sabr"):a.ez(sR(b));if(SMa(b)||b.gg())b.gg()&&iW(a,"ssa"),iW(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"),iW(a,d));c.qa!=="yt"&&(a.j.len=[b.lengthSeconds.toFixed(2)]);b.cotn&&!NR(b)&&a.SM(!0);c.Xb()&&(b=nXa())&&a.oa("cblt",{m:b})}};
eYa=function(a){if(a.provider.ma.If()){if(a.D)return;a.D=!0}a.j&&RXa(a.j);if(a.B){a=a.B;var b=g.KK(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
fYa=function(a,b){a.j&&(a=a.j,b===58?a.j.update():a.C&&(rW(a),sW(a).send(),a.D=NaN))};
gYa=function(a,b){if(g.Py(b,1024)||g.Py(b,512)||g.Py(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.W||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Wg){var d;(d=a.C.get(a.Wg))==null||YXa(d,b)}else a.j&&YXa(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.KK(d.provider),f=d.getPlayerState(c);AXa(d,e,f,c.seekSource||void 0);f=c.Yg;g.T(c,128)&&f&&(f.PM=f.PM||"",vXa(d,e,f.errorCode,f.EA,f.PM));(g.T(c,2)||g.T(c,128))&&d.reportStats(e);c.isPlaying()&&!d.W&&(d.B>=0&&
(d.j.user_intent=[d.B.toString()]),d.W=!0);tXa(d)}a.B&&(d=a.B,$Wa(d),d.playerState=b.state,d.B>=0&&g.Py(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ma.If()&&(a.Ne=b.state)};
hYa=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Wg){var b;(b=a.C.get(a.Wg))!=null&&mW(b.j)}else a.j&&mW(a.j.j)};
iYa=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Ne==="PL"&&(b.Ne="N");var c=g.KK(b.provider);g.fW(b,c,"vps",[b.Ne]);b.W||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.W=!0);b.provider.ea.Xb()&&b.oa("finalized",{});b.Fa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.x(a.C.values()),c=b.next();!c.done;c=b.next())XXa(c.value);else a.j&&XXa(a.j);a.dispose()};
jYa=function(a,b){a.j&&ZXa(a.j,b)};
kYa=function(a){if(!a.j)return null;var b=pW(a.j,"atr");return function(c){a.j&&ZXa(a.j,c,b)}};
lYa=function(a,b,c,d){c.adFormat=c.Vb;var e=b.ma;b=new oW(new tW(c,b.ea,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
xg:function(){return e.xg()},
pK:function(){return e.pK()},
If:function(){return e.If()},
UF:function(){return e.UF()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
YF:function(){return e.YF()},
getVisibilityState:function(){return e.getVisibilityState()},
Sh:function(){return e.Sh()},
gs:function(){return e.gs()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
xq:function(){return e.xq()},
IA:function(){return e.IA()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
SS:function(){e.SS()},
oa:function(f,h){e.oa(f,h)}}));
b.B=d;g.P(a,b);return b};
mYa=function(){this.ax=0;this.C=this.Wv=this.zt=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
wW=function(a,b,c){g.O.call(this);var d=this;this.ea=a;this.ma=b;this.B=c;this.j=new Map;this.Wg="";this.Qc={Ko:function(){return Array.from(d.j.keys())}}};
nYa=function(a,b){a.j.has(b)&&(iYa(a.j.get(b)),a.j.delete(b))};
oYa=function(){this.j=g.CE;this.array=[]};
qYa=function(a,b,c){var d=[];for(b=pYa(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};
rYa=function(a,b){var c=[];a=g.x(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};
sYa=function(a){return a.array.slice(pYa(a,0x7ffffffffffff),a.array.length)};
pYa=function(a,b){a=kc(a.array,function(c){return b-c.start||1});
return a<0?-(a+1):a};
tYa=function(a,b){var c=NaN;a=g.x(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};
uYa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
xW=function(a,b,c,d,e){g.O.call(this);this.Z=a;this.Ba=b;this.L=c;this.qa=d;this.D=e;this.C=NaN;this.U=this.W=this.started=!1;this.B=[];this.ra=new g.qp(this.sync,250,this);g.P(this,this.ra);this.G=new g.qp(this.sync,0,this);g.P(this,this.G);this.j=new oYa};
vYa=function(a){a.started=!0;a.sync()};
wYa=function(a,b){a.started&&(a.sync(),g.T(b.Gy,16)&&(b=tYa(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&b<0x7ffffffffffff&&a.G.start()))};
xYa=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];c[0]===1?a.qa(g.DE(d.namespace),d):a.qa(g.EE(d.namespace),d)}};
yYa=function(a){this.ea=a;this.timeStamp=this.B=this.mediaTime=NaN;this.C=this.j=!1;this.D=.001;g.YD(a)&&(this.D=.01)};
yW=function(a,b){return b>a.mediaTime+a.D&&b<a.mediaTime+5};
aya=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.ea.N("html5_buffer_underrun_transition_fix")){e=g.KD(a.ea.experiments,"html5_min_playback_advance_for_steady_state_secs");var f=g.KD(a.ea.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};
zYa=function(a,b){this.videoData=a;this.j=b};
AYa=function(a,b,c){return b.wJ(c).then(function(){return Yr(new zYa(b,b.C))},function(d){d instanceof Error&&g.fx(d);
var e=ZF('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=aG('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.kP(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Kx(),d:!!b.Pc,drm:b.Si(),f18:b.Yf.indexOf("itag=18")>=0,c18:e};b.j&&(b.Si()?(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=aG('video/mp4; codecs="avc1.42001E"'),
e.cVP9=aG('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 VF(d,e,h)})};
zW=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
BYa=function(a){return a.data[a.j]||0};
CYa=function(a){this.G=a;this.C=this.B=0;this.D=new zW(50)};
BW=function(a,b,c){g.Fx.call(this);this.videoData=a;this.experiments=b;this.L=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.U=0;c=new DYa;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.rb?c.B=3:g.BR(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.KD(b,"html5_liveness_drift_proxima_override");if(sR(a)!==0&&d){c.j=d;var e;((e=a.j)==null?0:XFa(e))&&c.j--}cR(a)&&b.fb("html5_sabr_parse_live_metadata_playback_boundaries")&&(c.U=!0);if(g.gs("trident/")||g.gs("edge/"))e=g.KD(b,"html5_platform_minimum_readahead_seconds")||
3,c.C=Math.max(c.C,e);g.KD(b,"html5_minimum_readahead_seconds")&&(c.C=g.KD(b,"html5_minimum_readahead_seconds"));g.KD(b,"html5_maximum_readahead_seconds")&&(c.L=g.KD(b,"html5_maximum_readahead_seconds"));b.fb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.KD(b,"html5_liveness_drift_chunk_override"))c.j=b;rR(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.W=this.policy.B!==1;this.j=AW(this,EYa(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
FYa=function(a,b){if(b)return b=a.videoData,b=EYa(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),AW(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return AW(a,a.j-1);if(a.policy.D)return AW(a,a.j+1)}return a.j};
GYa=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=FYa(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
CW=function(a,b){return b>=a.Jo()-HYa(a)};
IYa=function(a,b,c){b=CW(a,b);c||b?b&&(a.C=!0):a.C=!1;a.W=a.policy.B===2||a.policy.B===3&&a.C};
JYa=function(a,b){b=CW(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
HYa=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*DW(a)};
EYa=function(a,b,c){c.rb&&b--;rR(c)&&(b=1);if(sR(c)!==0&&(a=g.KD(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:XFa(d))&&b++}return b};
DW=function(a){return a.videoData.j?DO(a.videoData.j)||5:5};
AW=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/DW(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.L/DW(a))),b)};
DYa=function(){this.C=0;this.L=Infinity;this.D=!0;this.j=2;this.B=1;this.U=this.G=!1};
GW=function(a){g.O.call(this);this.ma=a;this.j=0;this.B=null;this.L=this.D=0;this.C={};this.ea=this.ma.V();this.G=new g.qp(this.xe,1E3,this);this.rb=new EW({delayMs:g.KD(this.ea.experiments,"html5_seek_timeout_delay_ms")});this.Fa=new EW({delayMs:g.KD(this.ea.experiments,"html5_long_rebuffer_threshold_ms")});this.tb=FW(this,"html5_seek_set_cmt");this.Va=FW(this,"html5_seek_jiggle_cmt");this.Za=FW(this,"html5_seek_new_elem");this.Vb=FW(this,"html5_unreported_seek_reseek");this.Ba=FW(this,"html5_long_rebuffer_jiggle_cmt");
this.Ma=FW(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ea=new EW({delayMs:2E4});this.Ua=FW(this,"html5_seek_new_elem_shorts");this.ib=FW(this,"html5_seek_new_media_source_shorts_reuse");this.eb=FW(this,"html5_seek_new_media_element_shorts_reuse");this.Pa=FW(this,"html5_reseek_after_time_jump");this.W=FW(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=FW(this,"html5_gapless_slow_seek");this.Z=FW(this,"html5_gapless_slice_append_stuck");this.ra=FW(this,"html5_gapless_slow_start");
this.U=FW(this,"html5_ads_preroll_lock_timeout");this.Sb=FW(this,"html5_ssap_ad_longrebuffer_new_element");this.Kb=new EW({delayMs:g.KD(this.ea.experiments,"html5_skip_slow_ad_delay_ms")||5E3,wA:!this.ea.N("html5_report_slow_ads_as_error")});this.Db=new EW({delayMs:g.KD(this.ea.experiments,"html5_skip_slow_ad_delay_ms")||5E3,wA:!this.ea.N("html5_skip_slow_buffering_ad")});this.Ib=new EW({delayMs:g.KD(this.ea.experiments,"html5_slow_start_timeout_delay_ms")});this.La=FW(this,"html5_slow_start_no_media_source");
g.P(this,this.G)};
FW=function(a,b){var c=g.KD(a.ea.experiments,b+"_delay_ms");a=a.ea.N(b+"_cfl");return new EW({delayMs:c,wA:a})};
KYa=function(a,b){a.j=b};
HW=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Hd(e,b,h),b.wA||f()):(b.YM&&b.B&&!b.D?(c=(0,g.Vt)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.YM,c=b.j&&c-b.j>b.HT||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.wc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.ma.oa("workaroundReport",l),d&&(b.reset(),a.C[e]=!1)))};
EW=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.HT===void 0?1E3:b.HT;var d=b.YM===void 0?3E4:b.YM;b=b.wA===void 0?!1:b.wA;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.HT=c;this.YM=d;this.wA=b};
OYa=function(a){g.O.call(this);var b=this;this.ma=a;this.L=this.j=this.va=this.mediaElement=this.playbackData=null;this.D=0;this.G=this.qa=this.C=null;this.ra=!1;this.Kb=0;this.W=!1;this.timestampOffset=0;this.U=!0;this.Va=0;this.Za=this.Ib=!1;this.Z=0;this.ib=!1;this.Ba=0;this.ea=this.ma.V();this.videoData=this.ma.getVideoData();this.policy=new LYa;this.Ea=new GW(this.ma);this.rb=this.Pa=this.La=this.B=NaN;this.Ma=new g.qp(function(){MYa(b,!1)},2E3);
this.Db=new g.qp(function(){IW(b)});
this.Ua=new g.qp(function(){b.ra=!0;NYa(b,{})});
this.tb=NaN;this.Fa=new g.qp(function(){var c=b.ea.yf;c.j+=1E4/36E5;c.j-c.C>1/6&&(iKa(c),c.C=c.j);b.Fa.start()},1E4);
g.P(this,this.Ea);g.P(this,this.Ma);g.P(this,this.Ua);g.P(this,this.Db);g.P(this,this.Fa)};
RYa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.L=new CYa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(iR(a.videoData)&&a.va){var c=a.va.TE.rh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ea;break a}}c=0}return c}),a.j=new BW(a.videoData,a.ea.experiments,function(){return a.ge(!0)}));
JW(a.ma)?(b=PYa(a),b.KN?(cR(a.videoData)&&a.N("html5_sabr_enable_utc_seek_requests")&&a.vC(b.KN,b.startSeconds),a.D=b.startSeconds):b.startSeconds>0&&a.seekTo(b.startSeconds,{bd:"seektimeline_startPlayback",seekSource:15}),a.U=!1):QYa(a)||(a.D=a.D||(g.jR(a.videoData)?0:a.videoData.startSeconds)||0)};
TYa=function(a,b){(a.va=b)?SYa(a,!0):KW(a)};
UYa=function(a,b){g.rp(a.Ea.G);a.N("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.rp(a.Fa):a.Fa.stop());if(a.mediaElement)if(b.Gy.state===8&&NH(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Rh();var d=a.N("manifestless_post_live_ufph")||a.N("manifestless_post_live")?BG(c,Math.max(b-3.5,0)):BG(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.tb-d)<.2||(a.ma.oa("seekover",{b:AG(c,"_"),cmt:b}),
a.tb=d,a.seekTo(d,{Qx:!0,bd:"seektimeline_postLiveDisc"})))}else((c=b.state)==null?0:c.state===8)&&!a.Za&&(a.videoData.limitedPlaybackDurationInSeconds>0?(LW(a.ma,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Za=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(LW(a.ma,a.getCurrentTime()+a.videoData.endSeconds),a.Za=!0))};
WYa=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.L&&d){var e=a.L;if(e.j&&!(c>=e.B&&c<e.C)){var f=e.j.wi(c);f!==-1&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.Vt)()/1E3-e.j.kf(f),f-=e.G(),e.D.add(f))}}a.j&&(d&&(e=a.j,f=VYa(a),e.D++,e.D<3||Date.now()-e.U<3E3||(e.U=Date.now(),e.B.push(f),e.B.length>50&&e.B.shift())),e=a.j,IYa(e,c,b===void 0?!0:b),JYa(e,c),b&&MYa(a,!0));d!==a.Ib&&(b=a.getCurrentTime()-a.rb<=500,c=a.Kb>=1E3,b||c||(b=a.ma.Wb(),b.qoe&&(b=b.qoe,c=g.KK(b.provider),
g.fW(b,c,"lh",[d?"1":"0"])),a.Ib=d,a.Kb++,a.rb=a.getCurrentTime()))};
MYa=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!CW(c,d)&&c.Aq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Zc()?Math.min(c.videoData.Zc()+10,c.Jo()):NaN;if(!isNaN(c)){if(a.va&&b&&(b=a.Ma.isActive(),d=a.j.Jo(),(d=uVa(a.va,d-a.Mc()))&&!b)){a.Ma.start();a.ma.oa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Mc()});a.seekTo(d+a.Mc(),{bd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{bd:"seektimeline_pegToLive"})}}};
SYa=function(a,b){if(a.j&&a.va){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||a.videoData.latencyClass==="LOW"||a.videoData.latencyClass==="ULTRALOW"?c=GYa(a.j):a.ib&&(a.ib=!1,c=GYa(a.j,!0));c&&(b=a.ma.Wb(),c=a.j,c=DW(c)*c.j,b.qoe&&(b=b.qoe,g.fW(b,g.KK(b.provider),"lra",[c]),b.oa("live-readahead-seconds",{v:c})));b=a.va;var d=a.j.j;a=a.j;a=(a.j-1+a.policy.j)*DW(a);c=NaN;var e=b.Vb;e===2||e===-1?rR(b.ma.getVideoData())&&(c=b.policy.xE):(--d,e=b.ma.getVideoData(),e.Yb()&&e.latencyClass!=="ULTRALOW"&&
!e.isLowLatencyLiveStream&&(c=sR(e)!==0?b.policy.tD:b.policy.Dt));d=Math.max(d,0);e=b.D;e.wh=d;e.Z=c;b.L&&(b.L.qa=a)}};
XYa=function(a,b){a.D=b};
NYa=function(a,b){YYa(a,b).then(void 0,function(){KW(a)});
ZYa(a).then(function(c){$Ya(a,c)},function(){KW(a)});
a.ma.WS(b);a.ea.Xb()&&(b=a.wc(),b["native"]=""+ +a.W,b.tgt=""+a.B,b.otgt=""+(a.B+a.timestampOffset),a.j&&a.N("html5_high_res_seek_logging")&&(b.tht=""+a.j.L(),b.ht=""+a.j.Jo(),b.adft=""+HYa(a.j)),a.N("html5_sabr_parse_live_metadata_playback_boundaries")&&a.videoData.j&&cR(a.videoData)&&(b.minst=""+a.videoData.j.Bq,b.cminst=""+(a.videoData.j.Zc()+a.timestampOffset),b.maxst=""+a.videoData.j.yk,b.hts=""+a.videoData.j.ra,b.cmaxst=""+(a.videoData.j.ge()+a.timestampOffset)),a.ma.oa("startSeek",b))};
YYa=function(a,b){a.qa||(a.va?isFinite(a.B)?a.qa=a.va.seek(a.B-a.timestampOffset,b):(hR(a.videoData),a.qa=fV(a.va),XMa(a.videoData)||(a.B=a.va.getCurrentTime()+a.timestampOffset)):a.qa=Di(a.B-a.timestampOffset));return a.qa};
ZYa=function(a){var b=a.C;b||(a.C=new UG,b=a.C,IW(a));return b};
MW=function(a,b,c){return isNaN(b)?NaN:g.xg(b,a.Zc(),a.ge(c))};
IW=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&a.mediaElement.Jl()>0&&WG(a.mediaElement)>0&&(a.B=MW(a,a.B,!1)),!a.mediaElement||!aZa(a))a.Db.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Pa-(a.B-a.timestampOffset);if(!(b===0||a.N("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Va||a.N("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
else{if(a.videoData.vE)a.videoData.vE=!1;else if(!hR(a.videoData)&&a.B>=a.ge()-.1){a.B=a.ge();a.C.resolve(a.ge());NW(a.ma);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Ea.j=c;a.Pa=c;a.D=a.B;a.N("html5_enable_new_seek_timeline_logic")&&(a.W=!1)}catch(d){}}}};
aZa=function(a){if(!a.mediaElement||a.mediaElement.Jl()===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.Si())return b;if(a.B>=0){var c=a.mediaElement.WA();if(c.length||!b)return CG(c,a.B-a.timestampOffset)}return b};
$Ya=function(a,b){a.G&&(a.G.resolve(b),a.ma.VS(),a.ea.Xb()&&(b=a.wc(),b["native"]=""+ +a.W,b.otgt=""+(a.B+a.timestampOffset),a.ma.oa("seekEnd",b)));KW(a)};
KW=function(a){a.B=NaN;a.Pa=NaN;a.C=null;a.qa=null;a.G=null;a.ra=!1;a.W=!1;a.Va=0;a.Ma.stop();a.Ua.stop()};
dZa=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.W&&f!==a.B){var h=!!a.C;a.C=new UG;a.N("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){$Ya(a,m)},function(){KW(a)});
if(a.videoData.isAd()){var l;wta({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.MK)!=null?l:""},b.j)}a.Pa=f;KYa(a.Ea,d.getCurrentTime());a.seekTo(f,{seekSource:104,bd:"seektimeline_mediaElementEvent"});c&&bZa(c,f*1E3,!!h);a.W=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":JW(a.ma)||cZa(a);IW(a);break;case "progress":IW(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&
a.getCurrentTime()-a.Z>10&&(a.N("html5_enable_new_media_element_puase_jump")?(a.ma.Hd(new VF("qoe.restart",{reason:"pauseJump"})),OV(a.ma)):a.seekTo(a.Z,{bd:"pauseJump"})),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Z=0))};
eZa=function(a){return(CR(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||QYa(a))&&!!a.videoData.j};
QYa=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9};
PYa=function(a){var b=0,c=NaN,d="";if(!a.U)return{startSeconds:b,KN:c,source:d};a.videoData.Ma?b=a.videoData.La:hR(a.videoData)&&(b=Infinity);if(g.BR(a.videoData))return{startSeconds:b,KN:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.Xd&&(d="stss",b=a.videoData.Xd);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);if(isFinite(b)&&(b>a.ge()||b<a.Zc())){var e={};e.minSeekableTime=a.Zc();e.maxSeekableTime=a.ge();e.cmt=a.getCurrentTime();e.ss=
b;e.utc=c;e.src=d;a.ma.oa("startSecondsOutOfBounds",e);a.videoData.Yb()&&(b=MW(a,b,!1))}return{startSeconds:b,KN:c,source:d}};
cZa=function(a){if(a.U)if(g.BR(a.videoData))a.U=!1;else{var b="ss",c=0,d;((d=a.videoData.j)==null?0:d.isManifestless)&&a.videoData.Ib&&!QYa(a)&&(b="mss",c=a.videoData.Ib);(a.videoData.Ma?a.N("html5_prioritize_windowed_st_start_seconds"):a.N("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.Xd&&(b="stss",c=a.videoData.Xd);!c&&eZa(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Ib,b="utc",c=a.ge()-a.kf(a.ge())+c);c||a.N("html5_prefer_initial_ss_over_stream_time_ss_for_vod")&&!a.videoData.Yb()||
!a.videoData.Xd||(b="stss",c=a.videoData.Xd);d={};if(c){if(c>a.ge()||c<a.Zc())d.minSeekableTime=a.Zc(),d.maxSeekableTime=a.ge(),d.cmt=a.getCurrentTime(),d.it=a.kf(a.getCurrentTime()),d.ss=c,d.utc=eZa(a)?a.videoData.liveUtcStartSeconds||a.videoData.Ib:0,a.ma.oa("startSecondsOutOfBounds",d),a.videoData.Yb()&&(c=MW(a,c,!1));a.seekTo(c,{bd:"seektimeline_startSeconds"});d[b]=c;a.ma.oa("startSeconds",d);a.U=!1}else a.videoData.Ib&&(d[b]=a.videoData.Ib+a.Mc(),a.ma.oa("startSeconds",d))}};
fZa=function(a,b){a.ma.oa("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.B=b;a.D=b;ZYa(a).then(function(c){$Ya(a,c)},function(){KW(a)})};
VYa=function(a){return a.mediaElement?XG(a.mediaElement):0};
LYa=function(){};
OW=function(a){g.O.call(this);this.C=a;this.j=new Map;this.B=new g.qp(this.sample,250,this);g.P(this,this.B);this.start()};
PW=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||[]};
QW=function(a,b){var c;return((c=a.j.get(b))==null?void 0:BYa(c.buffer))||0};
gZa=function(a){this.j=a;this.xB=NaN;this.buffer=new zW(100)};
RW=function(){this.finished=this.started=!1};
mZa=function(a){function b(e){return c.Cm&&(!d.Wn||!d.Ca.U)||c.qa!=="yt"&&(d.partnerId===38&&c.playerStyle==="books"||d.partnerId===30&&c.playerStyle==="docs"||d.partnerId===33&&c.playerStyle==="google-live")?hZa(a,d,e):iZa(a,d).then(function(){SW(a,d)},function(f){SW(a,d,!0);
throw f;})}
var c=a.V(),d=a.getVideoData();d.Ja();d.loading=!0;return jZa(a)?kZa(a,d).then(function(){SW(a,d)},function(e){e=XF(e);
if(WF(e.severity))return SW(a,d,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(lZa=!0);a.handleError(e);return b("onesie")}):b("gvi")};
jZa=function(a){var b=a.V();if(b.N("html5_disable_onesie")||!b.N("html5_onesie")||!b.N("html5_onesie_inline")&&a.getVisibilityState()===5||b.qa!=="yt")return!1;var c=b.rk;if(!c||!c.j)return a.handleError(new VF("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.Vt)()&&(a.oa("okexp","1"),(c=a.VA())&&b.N("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=(d=c.j.get(0))==null?void 0:HM(d.location))&&!PT(b)&&c.j.delete(0)}if(lZa)return a.oa("ost3","1"),!1;d={};return Object.keys(d).length>
0?(d.onesie="0",a.handleError(new VF("html5.missingapi",d)),!1):!0};
nZa=function(a){var b=sS();tS(b,a);return g.NA(b,ECa())};
kZa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,K,N,W,V,da,na,X,R;return g.I(function(Y){if(Y.j==1)return b.fetchType="onesie",c=iNa(b,a.getPlayerSize(),a.getVisibilityState()),d=new AV(a,c),g.G(Y,d.fetch(),2);e=Y.B;f={player_response:e};b.loading=!1;h=a.Ld.Zu;if(d.hg){l=g.x(d.hg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.x(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(y=u.mu(),b.uD=y);h.tx=d}A=g.x(d.SY.entries());for(C=A.next();!C.done;C=
A.next())F=C.value,H=g.x(F),K=H.next().value,N=H.next().value,W=K,V=N,h.B.set(W,V,180);g.$Q(b,f,!0);if(b.loading||XQ(b))return Y.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.uD=[];da={};na="onesie.response";X=0;b.errorCode?(na="auth",da.ec=b.errorCode,da.ed=b.errorDetail,da.es=b.Do||"",X=2):(da.successButUnplayable="1",da.disposed=""+ +b.Ja(),da.afmts=""+ +/adaptiveFormats/.test(e),da.cpn=b.clientPlaybackNonce);R=new VF(na,da,X);return Y.return(Promise.reject(R))})};
iZa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.I(function(t){switch(t.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){t.Ga(4);break}if(!(f>0)){t.Ga(5);break}return g.G(t,Li(5E3),6);case 6:h=new g.lt("Retrying OnePlatform request",{attempt:f}),g.fx(h);case 5:return g.wa(t,7),g.G(t,oZa(a,b),9);case 9:return t.return();case 7:l=g.ya(t);m=XF(l);n=m.errorCode;p=a.V();q=p.N("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(f===e-1)return r=pZa(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(WF(m.severity)){t.Ga(4);break}case 3:f++;t.Ga(2);break;case 4:return t.return(Promise.reject(pZa(c,{backend:"op"})))}})};
oZa=function(a,b){function c(na){na.readyState===2&&a.Nd("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,K,N,W,V,da;return g.I(function(na){switch(na.j){case 1:b.fetchType="gp";d=a.V();e=g.kQ(d,g.MR(b));if(!e.j){f=e.getValue();na.Ga(2);break}return g.G(na,e.j,3);case 3:f=na.B;case 2:return h=f,l=nZa(h),m=iNa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.Az(qZa),p=g.MR(b),q=(0,g.Vt)(),r=!1,t="empty",u=0,a.Nd("psns"),y={VB:c},g.G(na,g.CA(l,m,n,void 0,y),4);case 4:A=na.B;a.Nd("psnr");if(b.Ja())return na.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.Vt)()-q).toFixed(),H={},H=d.N("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.tb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.mr("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.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.uj||"",token_eq:p===g.MR(b)?"1":"0"}:{backend:"op",
rc:""+u,rt:F,reason:t,has_kpt:b.tb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.mr("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.ra?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.uj||"",token_eq:p===g.MR(b)?"1":"0"},K="manifest.net.connect",u===429?(K="auth",C=2):u>200&&(K="manifest.net.badstatus",u===400&&(C=2)),na.return(Promise.reject(new VF(K,H,C)));b.loading=!1;g.$Q(b,{raw_player_response:A},!0);
N=A;g.NP(b.V())&&N&&N.trackingParams&&OL(N.trackingParams);if(b.errorCode)return W={ec:b.errorCode,ed:b.errorDetail,es:b.Do||""},na.return(Promise.reject(new VF("auth",W,2)));if(!b.loading&&!XQ(b))return V=b.isAd()?"auth":"manifest.net.retryexhausted",da=b.isAd()?2:1,na.return(Promise.reject(new VF(V,{successButUnplayable:"1",hasMedia:g.yR(b)?"1":"0"},da)));g.va(na)}})};
hZa=function(a,b,c){function d(u){u=XF(u);if(WF(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.I(function(u){switch(u.j){case 1:var y=a.V(),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.cj("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.a5});else if(b.partnerId===30&&y.playerStyle==="docs")F=g.cj("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.H4,authkey:b.S4,eurl:y.Pc});
else if(b.partnerId===33&&y.playerStyle==="google-live")F=g.cj("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{y.qa!=="yt"&&g.ex(Error("getVideoInfoUrl for invalid namespace: "+y.qa));var H={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:y.Pc,ps:y.playerStyle,el:IR(b),hl:y.Kj,list:b.playlistId,agcid:b.oL,aqi:b.adQueryId,sts:20041,lact:Wv()};Object.assign(H,y.j);y.forcedExperiments&&(H.forced_experiments=y.forcedExperiments);b.ra?(H.vvt=b.ra,b.mdxEnvironment&&(H.mdx_environment=
b.mdxEnvironment)):g.MR(b)&&(H.access_token=g.MR(b));b.adFormat&&(H.adformat=b.adFormat);b.slotPosition>=0&&(H.slot_pos=b.slotPosition);b.breakType&&(H.break_type=b.breakType);b.UD!==null&&(H.ad_id=b.UD);b.YD!==null&&(H.ad_sys=b.YD);b.zE!==null&&(H.encoded_ad_playback_context=b.zE);y.captionsLanguagePreference&&(H.cc_lang_pref=y.captionsLanguagePreference);y.Kb&&y.Kb!==2&&(H.cc_load_policy=y.Kb);var K=g.gt(g.ft(),65);g.bQ(y)&&K!=null&&!K&&(H.device_captions_on="1");y.mute&&(H.mute=y.mute);b.annotationsLoadPolicy&&
y.annotationsLoadPolicy!==2&&(H.iv_load_policy=b.annotationsLoadPolicy);b.Ow&&(H.endscreen_ad_tracking=b.Ow);(K=y.La.get(b.videoId))&&K.AN&&(H.ic_track=K.AN);b.Fa&&(H.itct=b.Fa);PMa(b)&&(H.autoplay="1");b.mutedAutoplay&&(H.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(H.autonav="1");b.BH&&(H.noiba="1");b.isMdxPlayback&&(H.mdx="1",H.ytr=b.gk);b.mdxControlMode&&(H.mdx_control_mode=b.mdxControlMode);b.kx&&(H.ytrcc=b.kx);b.TI&&(H.utpsa="1");b.isFling&&(H.is_fling="1");b.isInlinePlaybackNoAd&&(H.mute="1");
b.vnd&&(H.vnd=b.vnd);b.forceAdsUrl&&(K=b.forceAdsUrl.split("|").length===3,H.force_ad_params=K?b.forceAdsUrl:"||"+b.forceAdsUrl);b.kd&&(H.preload=b.kd);A.width&&(H.width=A.width);A.height&&(H.height=A.height);(b.ag?0:b.Ph)&&(H.splay="1");b.ypcPreview&&(H.ypc_preview="1");KR(b)&&(H.content_v=KR(b));b.rb&&(H.livemonitor=1);y.Ba&&(H.authuser=y.Ba);y.pageId&&(H.pageid=y.pageId);y.ib&&(H.ei=y.ib);y.D&&(H.iframe="1");b.contentCheckOk&&(H.cco="1");b.racyCheckOk&&(H.rco="1");y.U&&b.rD&&(H.live_start_walltime=
b.rD);y.U&&b.vk&&(H.live_manifest_duration=b.vk);y.U&&b.playerParams&&(H.player_params=b.playerParams);y.U&&b.cycToken&&(H.cyc=b.cycToken);y.U&&b.lE&&(H.tkn=b.lE);C!==0&&(H.vis=C);y.enableSafetyMode&&(H.enable_safety_mode="1");b.tb&&(H.kpt=b.tb);b.Lp&&(H.kids_age_up_mode=b.Lp);b.kidsAppInfo&&(H.kids_app_info=b.kidsAppInfo);b.jD&&(H.upg_content_filter_mode="1");y.widgetReferrer&&(H.widget_referrer=y.widgetReferrer.substring(0,128));b.qa?(A=b.qa.latitudeE7!=null&&b.qa.longitudeE7!=null?b.qa.latitudeE7+
","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(H.uloc=A);b.Zn&&(H.internalipoverride=b.Zn);y.embedConfig&&(H.embed_config=y.embedConfig);y.Un&&(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.Iw&&b.Jw&&(H.clip=b.Iw,H.clipt=b.Jw);b.Mw&&(H.disable_watch_next="1");b.Yn&&(H.forced_by_var="1");for(var N in H)!rZa.has(N)&&H[N]&&String(H[N]).length>512&&(g.fx(Error("GVI param too long: "+N)),H[N]="");N=y.Ea;g.OP(y)&&(N=wE(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||y.Ea);y=g.cj(N+"get_video_info",H);F&&(y=Cna(y,F));F=y}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){u.Ga(4);break}n=f;if(!(m>0)){u.Ga(5);break}return g.G(u,
Li(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=yr(f,p);case 5:return g.G(u,sZa(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ga(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.fx(new g.lt("b/152131571",btoa(f)))}catch(W){}return u.return(Promise.reject(new VF(r,{backend:"gvi"},t)))}})};
sZa=function(a,b){function c(A){return d(A.xhr)}
function d(A){if(!a.Ja()){A=A?A.status:-1;var C=0,F=((0,g.Vt)()-p).toFixed();F=e.N("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 VF(H,F,C))}}
var e,f,h,l,m,n,p,q,r,t,u,y;return g.I(function(A){if(A.j==1){a.fetchType="gvi";e=a.V();var C={};a.bE&&(C.ytrext=a.bE);(l=g.Og(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=yr(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=gP(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length>
0&&(f.headers=m);p=(0,g.Vt)();return g.G(A,qO(Ur,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=ur(q.responseText);g.$Q(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Do||""},A.return(Promise.reject(new VF("auth",t,2)));if(!a.loading&&!XQ(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,A.return(Promise.reject(new VF(u,{successButUnplayable:"1"},y)));g.va(A)})};
pZa=function(a,b){return new VF(a?"auth":"manifest.net.retryexhausted",b,a?2:1)};
SW=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.I(function(l){if(l.j==1){d=a.V();if(c&&(!g.dQ(d)||IR(b)!=="embedded")||b.Mw||IR(b)!=="adunit"&&(g.YD(d)||UP(d)||g.kz(d)||g.OP(d)||eP(d)==="WEB_CREATOR"))return l.return();e=g.kQ(d,g.MR(b));return e.j?g.G(l,e.j,3):(f=e.getValue(),l.Ga(2))}l.j!=2&&(f=l.B);h=f;return l.return(tZa(a,b,h))})};
tZa=function(a,b,c){var d,e,f,h,l;return g.I(function(m){if(m.j==1){g.wa(m,2);d=nZa(c);var n=b.V();g.ft();var p={context:g.SR(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};IR(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Un&&(p.showContentOwnerOnly=!0);b.T1&&(p.showShortsOnly=!0);g.gt(0,141)&&(p.autonavState=g.gt(0,140)?"STATE_OFF":"STATE_ON");if(g.bQ(n)){var q=g.gt(0,65);q=q!=null?
!q:!1;var r=!!g.$s("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;if(n=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags)p.playbackContext={encryptedHostFlags:n};e=p;f=g.Az(uZa);a.Nd("wn_s");return g.G(m,g.CA(d,e,f),4)}if(m.j!=2)return h=m.B,a.Nd("wn_r"),!h||"error"in h&&h.error||(l=h,g.NP(b.V())&&l.trackingParams&&OL(l.trackingParams),g.$Q(b,{raw_watch_next_response:h},!1)),g.xa(m,0);g.ya(m);g.va(m)})};
vZa=function(a){a.Nd("vir");a.Nd("ps_s");zA("vir",void 0,"video_to_ad");var b=mZa(a);b.then(function(){a.Nd("virc");zA("virc",void 0,"video_to_ad");a.Nd("ps_r");zA("ps_r",void 0,"video_to_ad")},function(){a.Nd("virc");
zA("virc",void 0,"video_to_ad")});
return b};
g.VW=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.WQ(a):m;n=n===void 0?!0:n;g.Fx.call(this);var p=this;this.ea=a;this.playerType=b;this.Lb=c;this.iI=d;this.getVisibilityState=f;this.visibility=h;this.Ld=l;this.videoData=m;this.Y7=n;this.logger=new g.KT("VideoPlayer");this.NE=new yYa(this.ea);this.Je=null;this.gC=new XV;this.Rr=null;this.al=new IWa(this.ea,this.iI,this);this.HZ=!0;this.Ra=this.va=null;this.Pq=[];this.Qq=new RW;this.Tf=this.oH=null;this.Rs=new RW;this.CM=null;this.QZ=this.Ju=!1;
this.DM=NaN;this.E1=!1;this.playerState=new g.$G;this.GM=[];this.fD=new g.dG;this.Ql=new vWa(this);this.mediaElement=null;this.vy=new g.qp(this.Rba,15E3,this);this.aU=this.XL=!1;this.Yy=NaN;this.tJ=!1;this.TO=0;this.kG=!1;this.qL=NaN;this.JU=new OW(new Map([["bufferhealth",function(){return VYa(p.Sc)}],
["bandwidth",function(){return p.kQ()}],
["networkactivity",function(){return p.ea.schedule.Ba}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?wZa(p):NaN}],
["rawlivelatency",function(){return wZa(p)}]]));
this.yG=0;this.loop=!1;this.playbackRate=1;this.C_=0;this.Sc=new OYa(this);this.LX=!1;this.FM=[];this.JR=this.F1=0;this.TT=this.V3=!1;this.Wv=this.zt=0;this.RJ=-1;this.FX="";this.GO=new g.qp(this.f$,0,this);this.d3=!1;this.wb=this.fd=null;this.Taa=[this.fD,this.GO,this.vy,this.JU];this.KI=this.GE=null;this.Sf=function(){var q=p.Wb();q.provider.ea.zf||q.provider.ma.getVisibilityState()===3||(q.provider.ea.zf=!0);hYa(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ma.getVisibilityState()!==3&&ZWa(r)}q.qoe&&
(q=q.qoe,q.Ua&&q.B<0&&q.provider.ea.zf&&zXa(q),q.C&&hW(q));p.va&&TW(p);p.ea.qq&&!p.videoData.backgroundable&&p.mediaElement&&!p.Bi()&&(p.isBackground()&&p.mediaElement.gJ()?(p.oa("bgmobile",{suspend:1}),p.tp(!0,!0)):p.isBackground()||UW(p)&&p.oa("bgmobile",{resume:1}))};
this.Qc={Kq:function(q){p.Kq(q)},
Cqa:function(q){p.Je=q},
Uoa:function(){return p.EB},
TA:function(){return p.FB},
roa:function(){return p.UO},
soa:function(){return p.VO},
Zpa:function(){},
V:function(){return p.ea},
Le:function(){return p.mediaElement},
cqa:function(q){p.pM(q)}};
this.logger.debug(function(){return"creating, type "+b});
this.ph=new xW(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.DE("endcr")||g.T(p.playerState,32)||NW(p);
e(q,r,p.playerType)},function(q,r){g.jR(p.videoData)&&p.oa(q,r)});
g.P(this,this.ph);g.P(this,this.Sc);xZa(this,m);this.videoData.subscribe("dataupdated",this.zda,this);this.videoData.subscribe("dataloaded",this.lP,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oa,this);this.videoData.subscribe("ctmpstr",this.Fv,this);this.NJ();tWa(this.Sf);this.visibility.subscribe("visibilitystatechange",this.Sf);this.UO=new g.qp(this.gN,g.KD(this.ea.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.VO=
new g.qp(this.gN,g.KD(this.ea.experiments,"html5_player_att_retry_delay_ms")||4500,this)};
QG=function(a){return a.N("html5_not_reset_media_source")&&!a.Si()&&!a.videoData.isLivePlayback&&g.JR(a.videoData)&&!a.ea.supportsGaplessShorts()};
xZa=function(a,b){if(a.playerType===2||a.ea.Cq)b.VW=!0;var c=aLa(b.Vb,b.Fz,a.ea.D,a.ea.U);c&&(b.adFormat=c);a.playerType===2&&(b.qj=!0);if(a.isFullscreen()||a.ea.D)c=g.$s("yt-player-autonavstate"),b.autonavState=c||(a.ea.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&LW(a,b.endSeconds)};
yZa=function(a){if(a.videoData.Z){var b=a.Ld.Rc();a.videoData.nw=a.videoData.nw||(b==null?void 0:b.pQ());a.videoData.ow=a.videoData.ow||(b==null?void 0:b.sQ())}if(HMa(a.videoData)||!YMa(a.videoData))b=a.videoData.errorDetail,a.vg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Do||void 0);a.N("html5_enable_d6de4")&&a.DI();if(a.N("html5_ssap_cleanup_player_switch_ad_player")||a.N("html5_ssap_cleanup_ad_player_on_new_data"))if(b=a.Ld.wd())a.FX=b.clientPlaybackNonce};
zZa=function(a){iYa(a.EB);g.jb(a.EB);for(var b=a.FB,c=g.x(b.j.values()),d=c.next();!d.done;d=c.next())iYa(d.value);b.j.clear();g.jb(a.FB)};
AZa=function(a){return a.mediaElement&&a.mediaElement.Aw()?a.mediaElement.Jb():null};
WW=function(a){if(a.N("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;a.V().L&&a.V().houseBrandUserStatus&&a.oa("hbut",{status:a.V().houseBrandUserStatus});if(a.videoData.Be())return!0;a.vg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.XW=function(a,b){(b=b===void 0?!1:b)||g.jR(a.videoData)||vW(a.Wb());a.Ju=b;!WW(a)||a.Qq.Mu()?g.YD(a.ea)&&a.videoData.isLivePlayback&&a.Qq.Mu()&&!a.Qq.finished&&!a.Ju&&a.lP():(a.Qq.start(),b=a.Wb(),g.KK(b.provider),b.qoe&&uXa(b.qoe),a.lP())};
BZa=function(a){var b=a.videoData;vZa(a).then(void 0,function(c){a.videoData!==b||b.Ja()||(c=XF(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.vg(c.errorCode,2,unescape(a.videoData.errorReason),UF(c.details),a.videoData.errorDetail,a.videoData.Do||void 0):a.handleError(c))})};
CZa=function(a,b){a.fd=b;a.va&&sVa(a.va,new g.PV(b))};
FZa=function(a){if(!g.T(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Pq=g.dc(a.videoData.Ea),g.yR(a.videoData)){a.Lb.tick("bpd_s");YW(a).then(function(){a.Lb.tick("bpd_c");if(!a.Ja()){a.Ju&&(a.Fc(cH(cH(a.playerState,512),1)),UW(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&LW(a,c.endSeconds);a.Qq.finished=!0;ZW(a,"dataloaded");a.Rs.Mu()&&DZa(a);YWa(a.al,a.Tf)}});
a.N("html5_log_media_perf_info")&&a.oa("loudness",{v:a.videoData.dk.toFixed(3)},!0);var b=ZMa(a.videoData);b&&a.oa("playerResponseExperiment",{id:b},!0);EZa(a)}else ZW(a,"dataloaded")};
YW=function(a){$W(a);a.Tf=null;var b=AYa(a.ea,a.videoData,a.Bi());a.oH=b;a.oH.then(function(c){GZa(a,c)},function(c){a.Ja()||(c=XF(c),a.visibility.isBackground()?(aX(a,"vp_none_avail"),a.oH=null,a.Qq.reset()):(a.Qq.finished=!0,a.vg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",UF(c.details))))});
return b};
ZV=function(a){a.logger.debug("Updating for format change");YW(a).then(function(){return UW(a)});
a.playerState.isOrWillBePlaying()&&a.playVideo()};
GZa=function(a,b){if(!a.Ja()&&!b.videoData.Ja()){a.logger.debug("finished building playback data");a.Tf=b;RYa(a.Sc,a.Tf);if(a.videoData.isLivePlayback){var c=HZa(a.Ld.Zu,a.videoData.videoId)||a.va&&!isNaN(a.va.Ba);c=a.N("html5_onesie_live")&&c;JW(a)||a.videoData.Ib>0&&!iR(a.videoData)||c||a.seekTo(a.ge(),{bd:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.N("html5_sabr_report_missing_url_as_error")&&VMa(a.videoData)){a.handleError(new VF("fmt.missing",{missabrurl:"1"},2));return}a.va?
g.fx(Error("Duplicated Loader")):(c=g.KD(a.ea.experiments,"html5_onesie_defer_content_loader_ms"))&&KV(a)&&HZa(a.Ld.Zu,a.videoData.b5)?g.Hr(function(){a.Ja()||a.va||IZa(a)},c):IZa(a)}else!a.videoData.C.j&&NR(a.videoData)&&a.iM(new DU(a.videoData.videoId||"",4));
bX(a);RWa(b).then(function(){var d={};a.Bp(d);a.ea.Xb()&&a.N("html5_log_media_perf_info")&&a.oa("av1Info",d);TW(a)})}};
JZa=function(a){a.logger.debug("start readying playback");a.N("html5_enable_ssap_autoplay_debug_logging")&&a.oa("ssap",{strdypb:1});a.mediaElement&&a.mediaElement.activate();g.XW(a);WW(a)&&!g.T(a.playerState,128)&&(a.Rs.Mu()||(a.Rs.start(),a.videoData.wk?a.Fc(cH(a.playerState,4)):a.Fc(cH(cH(a.playerState,8),1))),DZa(a))};
DZa=function(a){a.Ja();a.logger.debug("try finish readying playback");if(a.Rs.finished)a.logger.debug("already finished readying");else if(a.Qq.finished)if(g.T(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Pq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Pq});
else if(a.ph.started||vYa(a.ph),a.No())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.va&&(a.QZ=EQa(a.va.timing));a.Rs.finished||(a.Rs.finished=!0);var b=a.N("html5_onesie_live")&&a.va&&!isNaN(a.va.Ba);!a.videoData.isLivePlayback||a.videoData.Ib>0&&!iR(a.videoData)||b||JW(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{bd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.aU=!0));dYa(a.Wb());a.logger.debug("finished readying playback");
a.publish("playbackready",a);xA("pl_c",a.Lb.timerName)||(a.Lb.tick("pl_c"),zA("pl_c",void 0,"video_to_ad"));xA("pbr",a.Lb.timerName)||(a.Lb.tick("pbr"),zA("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
NW=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Fc(b?new g.$G(14):new g.$G)};
LW=function(a,b){a.Rr&&KZa(a);a.Rr=new g.BE(b*1E3,0x7ffffffffffff);a.Rr.namespace="endcr";a.addCueRange(a.Rr)};
KZa=function(a){a.removeCueRange(a.Rr);a.Rr=null};
LZa=function(a,b,c,d,e){var f=a.Wb(e),h=g.jR(a.videoData)?f.getVideoData():a.videoData;h.B=c;var l=g.cX(a);c=new HWa(h,c,b,l?l.itag:"",d);a.ea.experiments.fb("html5_refactor_sabr_video_format_selection_logging")?(c.videoId=e,a.KI=c):f.aC(c);e=a.al;e.B=0;e.j=0;a.publish("internalvideoformatchange",h,b==="m")};
g.cX=function(a){var b=dX(a);return pM(b)||!a.Tf?null:g.Xb(a.Tf.j.videoInfos,function(c){return b.D(c)})};
dX=function(a){if(a.Tf){var b=a.al;var c=a.Tf;a=a.Bx();if(b.ma.jj().isInline())var d=VQ;else b.N("html5_exponential_memory_for_sticky")?d=DP(b.ea.yf,"sticky-lifetime")<.5?"auto":qM[XL()]:d=qM[XL()],d=g.oM("auto",d,!1,"s");if(pM(d)){if(d=JWa(b,c).compose(OWa(b,c)).compose(QWa(b,c)).compose(WWa(b,c.videoData)).compose(XWa(b,c.videoData,c)).compose(bW(b,c)).compose(MWa(b,c)),pM(a)||b.N("html5_apply_pbr_cap_for_drm"))d=d.compose(NWa(b,c))}else b.N("html5_perf_cap_override_sticky")&&(d=d.compose(bW(b,
c))),b.N("html5_ustreamer_cap_override_sticky")&&(d=d.compose(NWa(b,c)));d=d.compose(MWa(b,c));b=c.videoData.kD.compose(d).compose(c.videoData.O2).compose(a)}else b=VQ;return b};
hUa=function(a){var b=a.al;a=a.videoData;var c=WWa(b,a);b.N("html5_disable_client_autonav_cap_for_onesie")||c.compose(XWa(b,a));return c};
g.MZa=function(a,b,c,d){var e=b.j,f=b.reason;if(a.N("html5_enable_qoe_video_format_intent")){var h;if((h=a.Wb().qoe)!=null&&!(e<=0)){var l=g.KK(h.provider);g.fW(h,l,"vfi",[e+"p",f])}}a.videoData.kD=b;if(a.Tf&&c&&(c=a.al,e=a.Tf,e.j.j&&(f=XL(),h=e.j.videoInfos[0].video.j,!(f>h&&h!==0&&b.j===h)))){var m;f=LWa(c,(m=e.j)==null?void 0:m.videoInfos);m=c.ma.getPlaybackRate();m>1&&f&&(m=TJa(c.ea.G,e.j.videoInfos,m),b.j!==0&&m<b.j&&c.ma.setPlaybackRate(1));var n,p;b=g.gG[rM(b)];m=((n=e.videoData.B)==null?void 0:
(p=n.video)==null?void 0:p.j)||0;g.Zs("yt-player-quality",{quality:b,previousQuality:m},31104E3);c.ea.schedule.policy.D=XL()>=480;if(c.N("html5_exponential_memory_for_sticky")){n=c.ea.yf;p=1;var q=q===void 0?!1:q;kKa(n,"sticky-lifetime");n.values["sticky-lifetime"]&&n.qs["sticky-lifetime"]||(n.values["sticky-lifetime"]=0,n.qs["sticky-lifetime"]=0);q&&DP(n,"sticky-lifetime")>.0625&&(p=n.qs["sticky-lifetime"]*2);n.values["sticky-lifetime"]+=1*Math.pow(2,n.j/p);n.qs["sticky-lifetime"]=p;n.D.start()}if(c.N("html5_perf_cap_override_sticky")){q=
c.C;n=c.N("html5_perserve_av1_perf_cap");n=n===void 0?!1:n;if(n===void 0?0:n){p=ZL();b=g.x(Object.keys(p));for(c=b.next();!c.done;c=b.next())c=c.value,c.indexOf("1")!==0&&delete p[c];g.Zs("yt-player-performance-cap",p,2592E3)}else g.at("yt-player-performance-cap");UCa(n);if(n){n=g.x(KO.keys());for(p=n.next();!p.done;p=n.next())p=p.value,p.startsWith("1")||KO.delete(p);n=g.x(aW.values());for(p=n.next();!p.done;p=n.next())p=p.value,p.startsWith("1")||aW.delete(p);n=g.x(q.keys());for(p=n.next();!p.done;p=
n.next())p=p.value,p.startsWith("1")||q.delete(p)}else KO.clear(),aW.clear(),q.clear()}}a.va&&(q=a.va,d=d||"",q.policy.j?qU(q.B.j,d):qU(q.j.G,d));bX(a)};
bX=function(a){if(!a.Ja()&&!g.T(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)TW(a);else{var b=dX(a),c=a.videoData;a:{var d=a.videoData.Fd;if(b.j){for(var e=g.x(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.gG[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.eb=d;LZa(a,b.reason,NZa(a,a.videoData.eb))}if(a.N("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Sc.U=!1,a.playVideo()}};
TW=function(a){if(a.videoData.C&&a.videoData.C.j){var b=dX(a);a.va&&YUa(a.va,b)}};
OZa=function(a){var b;return!!(a.N("html5_native_audio_track_switching")&&g.Nt&&((b=a.videoData.B)==null?0:sG(b)))};
PZa=function(a){if(!OZa(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)};
RZa=function(a){var b=QZa(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.qc.getName()===b})};
QZa=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}};
SZa=function(a){var b,c=a.videoData.getAvailableAudioTracks(),d=a.videoData.u4;d&&(b=c.find(function(f){return f.getLanguageInfo().id===d}));
if(a.ea.experiments.fb("enable_audio_description_setting")&&g.gt(g.ft(),198)){c=g.x(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.qc.isDefault?void 0:a);return b};
IZa=function(a){for(var b=a.videoData.j,c=g.x(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.ea.j.c,cver:a.ea.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.x(d.value);d=e.next().value;e=e.next().value;for(var f=g.x(Object.values(b.j)),h=f.next();!h.done;h=f.next())fFa(h.value.resource,d,e);f=void 0;(f=b.W)==null||fFa(f,d,e)}c=a.ea;d=a.videoData;b=new g.ySa(c);e=xSa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,dG:d.dG});b.U=e;b.Ea=d.maxReadAheadMediaTimeMs/1E3||b.Ea;e=c.schedule;e.C.rh()===
e.policy.C?b.Ib=10:b.Ib=d.minReadAheadMediaTimeMs/1E3||b.Ib;b.Mj=d.readAheadGrowthRateMs/1E3||b.Mj;b.Vn=!TG();g.YD(c)||!TG()?(e=c.experiments,b.Pa=8388608,b.tb=524288,b.Im=5,b.Va=1048576,b.Kw=1.5,b.sb=4587520,ks()&&(b.sb=786432),b.W*=1.1,b.ra*=1.1,b.Gd=!0,b.Yf=e.fb("persist_disable_player_preload_on_tv")||e.fb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.W*=1.3,b.ra*=1.3);g.$F&&g.gs("crkey")&&(e=c.j.cmodel==="CHROMECAST/ANCHOVY",b.Pa=20971520,b.tb=1572864,e&&(b.sb=812500,b.rk=
1E3,b.ly=5,b.Va=2097152));g.VO&&(b.Gd=!0);c.supportsGaplessAudio()||(b.Lp=!1);iP&&(b.Fd=!0);b.yf=c.N("html5_peak_shave");d.fetchType==="onesie"&&c.N("html5_disable_peak_shave_for_onesie")&&(b.yf=!1);var l;e=(l=d.j)==null?void 0:yM(l);if(iR(d)){b.Rg=!0;b.vl=!0;b.Vb=!0;b.wk=!0;b.Ow=!0;if(d.latencyClass==="ULTRALOW"||d.latencyClass==="LOW"&&!c.N("html5_disable_low_pipeline"))b.Fq=2,b.rr=4;b.Jk=d.defraggedFromSubfragments;if(d.Mf||c.N("html5_publish_all_cuepoints"))b.Dw=!0;g.BR(d)&&(b.Db=!1);b.Tn=g.WD(c)}d.isAd()&&
(b.Bl=0,b.Wq=0);b.Uj=c.N("html5_enable_subsegment_readahead_v3")||c.N("html5_ultra_low_latency_subsegment_readahead")&&d.latencyClass==="ULTRALOW";b.C=/^rq/.test(d.clientPlaybackNonce)||c.Xb();ts()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.N("html5_disable_move_pssh_to_moov")&&e&&(b.Gd=!1);f=0;c.N("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.B,d.isLivePlayback&&(f=g.KD(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.Z.B=iR(d)?.5:0;if(!l.policy.j&&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.Um=!0;l.G=cKa(l)}d.isLivePlayback&&(b.Cl=g.KD(c.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||.25,b.Kb=!1);rR(d)&&(b.Uj=
!0,d.latencyClass==="LOW"?b.Dd=g.KD(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):d.latencyClass==="ULTRALOW"&&(b.Dd=g.KD(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.hw=!0);d.Yb()&&(b.Km=1.3);b.Fd=b.Fd||d.yD;b.B=g.jR(d);b.Za=d.Z||b.B&&!c.N("html5_enable_ssap_seteos");c.Xb()&&(b.rb=!0);d.Z&&!e&&(b.Lw=!0);d.Z&&d.isAd()&&(b.W*=1.6,b.ra*=1.6);NR(d)&&(b.D=d.videoId,b.Dm=!0,b.Zw=100,d.lw&&d.lw.length>0&&(b.Xf=d.lw));b.Oh=d.El;b.Gj=MO(c,{},d.C||void 0,lMa(d));b.ib=pR(d)&&
g.kz(c);cR(d)&&(c.N("html5_sabr_report_partial_segment_estimated_duration")&&(b.Hw=!0),b.j=!0,b.Gw=c.N("html5_remove_stuck_max_buffer_slices"),b.Op=c.N("html5_sabr_enable_utc_seek_requests"),b.Mp=c.N("html5_sabr_enable_live_clock_offset"),b.Xn=c.N("html5_disable_client_resume_policy_for_sabr"),b.Rw=c.N("html5_trigger_loader_when_idle_network"),b.lw=c.N("html5_sabr_parse_live_metadata_playback_boundaries"),b.mw=c.N("html5_enable_platform_backpressure_with_sabr"),b.Ph=c.N("html5_consume_onesie_next_request_policy_for_sabr"),
b.Iw=c.N("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.N("html5_enable_sabr_ssdai"),b.Cq=c.N("html5_log_high_res_buffer_timeline"),b.Mx=c.N("html5_gapless_sabr_btl_last_slice")&&oR(d),iR(d)?(b.Yn=c.N("html5_disable_variability_tracker_for_live"),b.Ua=c.N("html5_sabr_use_accurate_slice_info_params")):b.Ac=c.N("html5_probe_request_on_sabr_request_progress"),b.qw=c.N("html5_serve_start_seconds_seek_for_post_live_sabr"),b.Se=c.N("html5_flush_index_on_updated_timestamp_offset"),
b.Ba=c.N("html5_enable_sabr_request_pipelining")&&!g.jR(d),b.xl=c.N("html5_ignore_partial_segment_from_live_readahead"),b.jy=c.N("html5_use_non_active_broadcast_for_post_live"),b.Ma=c.N("html5_use_centralized_player_time"),b.bj=c.N("html5_consume_onesie_sabr_seek"),b.Z=c.N("html5_enable_sabr_seek_loader_refactor"),b.sx=c.N("html5_update_segment_start_time_from_media_header"),b.G&&(b.Nw=c.N("html5_reset_server_stitch_state_for_non_sabr_seek"),b.Fw=c.N("html5_remove_ssdai_append_pause"),b.eb=c.N("html5_consume_ssdai_info_with_streaming"),
b.El=c.N("html5_process_all_cuepoints")));b.L=b.j&&c.N("html5_sabr_live");DM(c.G,EM.BITRATE)&&(b.sb=NaN);if(l=g.KD(c.experiments,"html5_request_size_max_kb"))b.Va=l*1024;c.G.D?b.Xd="; "+EM.EXPERIMENTAL.name+"=allowed":c.N("html5_enable_cobalt_tunnel_mode")&&(b.Xd="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.Qj=!0,zSa(b,l.playbackStartPolicy,2));l=SZa(a);a.gC.removeAll();a:{c=a.Ld.Zu;if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);
c=e;break a}c=void 0}a.va=new g.JV(a,a.ea.schedule,b,a.videoData.j,a.videoData.C,dX(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Va);b=a.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&a.videoData.isDaiEnabled()&&KV(a)?!0:a.Ju&&g.YD(a.ea)&&a.videoData.isLivePlayback;a.va.initialize(a.getCurrentTime(),dX(a),b);a.videoData.probeUrl&&(a.va.Ua=a.videoData.probeUrl);if(a.Pq.length||a.Ju)a.videoData.cotn||eX(a,!1);TYa(a.Sc,a.va);a.fd&&sVa(a.va,new g.PV(a.fd));a.wb&&(a.va.cI(a.wb),
a.Sc.U=!1);g.OR(a.videoData)&&(a=a.va,a.policy.dk=a.policy.uD)};
$W=function(a){a.va&&(a.va.dispose(),a.va=null,TYa(a.Sc,null));QG(a)?TZa(a):fX(a)};
TZa=function(a){if(a.Ra)if(a.logger.debug("release media source"),a.AA(),a.Ra.G)try{a.ea.Xb()&&a.oa("rms",{l:"vprms",sr:QG(a),rs:SG(a.Ra)});a.Ra.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Ra);a.Ra=null}catch(c){b=new g.lt("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=XF(b),a.handleError(b),fX(a)}else fX(a)};
fX=function(a,b){b=b===void 0?!1:b;a.Ra&&(a.logger.debug("remove media source"),Vxa(a.Ra),a.AA(b),a.Ra.dispose(),a.Ra=null)};
VZa=function(a,b){b=b===void 0?!1:b;if(a.Ra)return a.Ra.C;a.logger.debug("update media source");a:{b=b===void 0?!1:b;try{g.is()&&a.videoData.vR()&&Xxa(a.mediaElement);var c=a.mediaElement.Xr(a.yx(),a.qQ())}catch(e){if(AWa(a.Ql,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",e);a.vg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}UZa(a,c,!1,!1,b)}var d;return((d=a.Xr())==null?void 0:d.C)||null};
UZa=function(a,b,c,d,e){function f(h){try{WZa(a,h,c,d)}catch(l){g.fx(l),a.handleError(new VF("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;XZa(a,e===void 0?!1:e);a.Ra=b;QG(a)&&SG(a.Ra)==="open"?f(a.Ra):Qxa(a.Ra,f)};
XZa=function(a,b){b=b===void 0?!1:b;if(a.va){var c=a.getCurrentTime()-a.Mc();a.va.seek(c,{Ds:b}).wl(function(){})}else IZa(a)};
WZa=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Ra&&(!b||a.Ra===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&iR(a.videoData)&&(e=25200);if(a.Ra.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
f>a.Ra.getDuration()&&YZa(a,f)}else YZa(a,e);VUa(a.va,a.Ra,c,d);a.publish("mediasourceattached")}};
YZa=function(a,b){if(a.Ra){a.Ra.Zq(b);var c;(c=a.va)!=null&&c.policy.Ma&&(c.G=b)}};
$Ua=function(a,b){LZa(a,b.reason,b.j.info,b.token,b.videoId)};
OV=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.I(function(l){if(l.j==1){a.va&&a.va.Jx();a.va&&a.va.Ja()&&$W(a);if(a.N("html5_enable_vp9_fairplay")&&a.Si()&&(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.Fc(cH(a.playerState,2048));a.N("html5_ssap_keep_media_on_finish_segment")&&g.jR(a.videoData)?a.publish("newelementrequired",d):a.publish("newelementrequired");return b?g.G(l,YW(a),2):l.Ga(2)}a.videoData.Yb()&&
((f=a.va)==null?0:f.Ba)&&!JW(a)&&((h=a.isAtLiveHead())&&hR(a.videoData)?a.seekTo(Infinity,{bd:"videoPlayer_getNewElement"}):a.videoData.je&&a.va&&(m=a.va,m.manifest.Yb&&(m.manifest.je||m.manifest.D||m.manifest.isPremiere?(m.seek(0,{bd:"loader_resetSqless"}),m.videoTrack.U=!0,m.audioTrack.U=!0,m.videoTrack.G=!0,m.audioTrack.G=!0):HO(m.manifest)&&fV(m))));c&&a.seekTo(0,{seekSource:105});g.T(a.playerState,8)&&(a.N("html5_ssap_keep_media_on_finish_segment")&&g.jR(a.videoData)?a.playVideo(!1,d):a.playVideo());
g.va(l)})};
gX=function(a,b){a.oa("hgte",{ne:+b});a.videoData.Z=!1;b&&OV(a);a.va&&RUa(a.va)};
ZZa=function(a,b){a.oa("newelem",{r:b});OV(a)};
$Za=function(a,b){a.Lb.D.qS();g.T(a.playerState,32)||(a.Fc(cH(a.playerState,32,b==null?void 0:b.seekSource)),g.T(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Uc()};
a_a=function(a,b){b=b==null?void 0:b.seekSource;g.T(a.playerState,32)?(a.Fc(JH(a.playerState,16,32,b)),a.publish("endseeking",a)):g.T(a.playerState,2)||a.Fc(cH(a.playerState,16,b));a.Lb.D.wS(a.videoData,a.playerState.isPaused())};
b_a=function(a,b){a.ea.experiments.fb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.lS(),b&&a.vg("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
c_a=function(a){var b=0,c="";if(a.fd){if(a.fd.Bo)return"D,";b=a.fd.oQ();c=a.fd.Ul().substring(0,4)}else a.wb&&(b=a.wb.oQ(),c=a.wb.Ul().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
ZW=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)};
d_a=function(a){for(var b=g.x("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.fD.T(a.mediaElement,c.value,a.pM,a);a.ea.Km&&a.mediaElement.Aw()&&(a.fD.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.Yaa,a),a.fD.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.Zaa,a))};
f_a=function(a){g.Kr(a.DM);e_a(a)||(a.DM=g.Ir(function(){return e_a(a)},100))};
e_a=function(a){var b=a.mediaElement;b&&a.XL&&!a.videoData.Ba&&!xA("vfp",a.Lb.timerName)&&b.Jl()>=2&&!b.isEnded()&&EG(b.Rh())>0&&a.Lb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ba&&b.getDuration()>0&&(b.isPaused()&&b.Jl()>=2&&EG(b.Rh())>0&&(xA("pbp",a.Lb.timerName)||a.Lb.tick("pbp"),!a.videoData.wk||a.E1||b.isSeeking()||(a.E1=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),yW(a.NE,b))?(g_a(a),!0):!1};
g_a=function(a){g.Kr(a.DM);a.vy.stop();a.videoData.Ba=!0;a.ea.Kp=!0;a.ea.Sb=0;var b=a.Ql;if(b.videoData.B){var c=b.Ca.G,d=b.videoData.B.ob;c.B.has(d)&&(c.B.delete(d),lP(c))}b.j.stop();h_a(a);g.T(a.playerState,8)&&a.Fc(dH(a.playerState,65));a.Ju=!1;eYa(a.Wb());g.rp(a.UO);a.publish("playbackstarted");(a=g.Pa("yt.scheduler.instance.clearPriorityThreshold"))?a():vt(0,0)};
h_a=function(a){var b=a.Ld.wd(),c={},d={};!xA("pbs",a.Lb.timerName)&&jA.measure&&jA.getEntriesByName&&(jA.getEntriesByName("mark_nr")[0]?tua("mark_nr"):tua());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.N("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.kd&&(d.preloadType=String(a.QZ?2:1));c.liveStreamMode=i_a[wR(b)];c.playerInfo=d;a.Lb.infoGel(c);if(a.va){b=a.va.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.Lb.tick(e,b[e])}};
j_a=function(a,b,c,d){b=(b+(a.RJ===3?.3:0))/c;c=Math.floor(b*4);c>a.RJ&&(a.oa("vpq",{q:c,cpn:d||a.videoData.clientPlaybackNonce,ratio:b.toFixed(3)}),a.RJ=c)};
k_a=function(a){a.Wb().Jg();if(hR(a.videoData)&&Date.now()>a.C_+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&AO(a.videoData.j))){var b=a.Wb();if(b.qoe){b=b.qoe;var c=b.provider.ma.UF(),d=g.KK(b.provider);rXa(b,d,c);c=c.C;isNaN(c)||g.fW(b,d,"e2el",[c.toFixed(3)])}}a.N("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.WD(b.V())?!0:g.$P(b.V())?b.Dl==="6":!1):b=g.WD(a.ea);b&&a.oa("rawlat",{l:QW(a.JU,"rawlivelatency").toFixed(3)});a.C_=Date.now()}a.videoData.B&&sG(a.videoData.B)&&(b=AZa(a))&&b.videoHeight!==
a.JR&&(a.JR=b.videoHeight,LZa(a,"a",NZa(a,a.videoData.eb)))};
NZa=function(a,b){if(b.j.video.quality==="auto"&&sG(b.getInfo())&&a.videoData.Fd)for(var c=g.x(a.videoData.Fd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.JR&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()};
wZa=function(a){if(!hR(a.videoData))return NaN;var b=0;a.va&&a.videoData.j&&(b=iR(a.videoData)?a.va.TE.rh()||0:a.videoData.j.Ea);return(0,g.Vt)()/1E3-a.kf()-b};
m_a=function(a){a.mediaElement&&a.mediaElement.Bi()&&(a.qL=(0,g.Vt)());a.ea.rr?g.Hr(function(){l_a(a)},0):l_a(a)};
l_a=function(a){var b;if((b=a.Ra)==null||!b.un()){if(a.mediaElement)try{a.CM=a.mediaElement.playVideo()}catch(d){aX(a,"err."+d)}if(a.CM){var c=a.CM;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.T(a.playerState,4)&&!g.T(a.playerState,256)&&a.CM===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);aX(a,e);a.LX=!0;a.videoData.ag=!0}})}}};
aX=function(a,b){g.T(a.playerState,128)||(a.Fc(JH(a.playerState,1028,9)),a.oa("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
UW=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=VZa(a,c);var f;(f=a.va)==null||f.resume()}else $W(a),a.videoData.eb&&(d=a.videoData.eb.ND());e=a.mediaElement.gJ();c=!1;e&&d!==null&&d.resource===e.resource||(n_a(a,d),c=!0);g.T(a.playerState,2)||(d=a.Sc,b=b===void 0?!1:b,d.G||!(d.D>0)||d.mediaElement&&d.mediaElement.getCurrentTime()>0||(b={bd:"seektimeline_resumeTime",Ds:b},d.videoData.Ba||
(b.seekSource=15),d.seekTo(d.D,b)));a:{b=c;if(cR(a.videoData)){if(!a.videoData.Si())break a}else if(!g.vR(a.videoData))break a;if(a.mediaElement)if((d=a.videoData.G)&&a.mediaElement.Aw()){e=a.mediaElement.Jb();if(a.Je)if(e!==a.Je.element)hX(a);else if(b&&d.flavor==="fairplay"&&!js())hX(a);else break a;if(a.N("html5_report_error_for_unsupported_tvos_widevine")&&js()&&d.flavor==="widevine")a.vg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Je=new kWa(e,a.videoData,
a.ea);a.Je.subscribe("licenseerror",a.hM,a);a.Je.subscribe("qualitychange",a.Pba,a);a.Je.subscribe("heartbeatparams",a.YG,a);a.Je.subscribe("keystatuseschange",a.Kq,a);a.Je.subscribe("ctmp",a.oa,a);a.N("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Je.Py(new CU(o_a,"cenc",!1));b=g.x(a.gC.keys);for(d=b.next();!d.done;d=b.next())d=a.gC.get(d.value),a.Je.Py(d);a.N("html5_eme_loader_sync")||a.gC.removeAll()}}else a.vg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1")}return c};
n_a=function(a,b){a.Lb.tick("vta");zA("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&XYa(a.Sc,a.getCurrentTime());a.mediaElement.activate(b);a.Ra&&vt(0,4);!a.videoData.Ba&&a.playerState.isOrWillBePlaying()&&a.vy.start();if(OZa(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
hX=function(a){a.Je&&(a.Je.dispose(),a.Je=null)};
iX=function(a,b){b=b===void 0?!1:b;hR(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.Aq()||g.BR(a.videoData))?a=a.getCurrentTime():g.jR(a.videoData)&&a.wb?(b=a.wb,a=a.getCurrentTime(),a=(a=p_a(b,a*1E3))?(a.Qi()-a.sf())/1E3:0):a=a.ge(b);return a};
q_a=function(a){var b=b===void 0?!1:b;a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Ra?(hX(a),fX(a),VZa(a,b)):(a.videoData.eb&&a.videoData.eb.dU(),a.mediaElement.stopVideo()),a.playVideo())};
r_a=function(a,b){a.ea.N("html5_log_rebuffer_reason")&&(b={r:b,lact:Wv()},a.mediaElement&&(b.bh=XG(a.mediaElement)),a.oa("bufreason",b))};
jX=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.Wb();if(n.qoe){var t=n.qoe,u=b.cpn,y=c.cpn,A=p.videoData.Vb,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.qa=C?q:"",t.adFormat=C?A:void 0,kW(t,2,h?4:f?2:0,y,r,e),t.reportStats(),t.adCpn=H?y:"",t.qa=H?r:"",t.adFormat=H?A:void 0,
kW(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),sW(f,!0).send(),rW(f),d!==n.provider.videoData.clientPlaybackNonce){XXa(f);var K;(K=n.j)==null||SXa(K);n.C.delete(d)}}else n.Wg=n.provider.videoData.clientPlaybackNonce,n.Wg&&n.j&&(n.C.set(n.Wg,n.j),sW(n.j).send(),rW(n.j));K=c.cpn;p=p.videoData;e-=a.yu();if(n.C.has(K)){e=n.C.get(K);var N=e.C&&isNaN(e.G)?qW(e):NaN;e=WXa(e,!1);isNaN(N)||(e.L=N);e.send()}else e=lYa(n,n.provider,p,e),n.C.set(K,e),YXa(e,new g.Ny(cH(new g.$G,
8),new g.$G)),RXa(e),(N=n.j)==null||rW(N);n.Wg=K;a.N("html5_unify_csi_server_stitched_transition_logging")?s_a(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.L&&(n.cttAuthInfo={token:a.L,videoId:a.videoId}),l&&(n.startTime=l),wA(b,n),g.vA({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),uA("pbs",m!=null?m:(0,g.Vt)(),b))}}};
t_a=function(a,b){if(a.ea.Xb()&&a.mediaElement){var c=a.mediaElement.wc();c.omt=(a.mediaElement.getCurrentTime()+a.Mc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.KK(a.Wb().provider)*1E3).toFixed();c.e=b;a.FM[a.F1++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})};
u_a=function(a){if(a.ea.Xb()){a.FM.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.x(a.FM),c=b.next();!c.done;c=b.next())c=c.value,a.oa("vpe",Object.assign({t:c.rt},c));a.FM=[];a.F1=0}};
v_a=function(a){if(g.gs("cobalt")&&g.gs("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.oa("nxdock",{d:b})}};
w_a=function(a,b,c,d,e){a.oa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
eX=function(a,b){var c;(c=a.va)==null||MV(c,b)};
KV=function(a){return g.Zb(a.Pq,"ad")};
wWa=function(a,b){return g.jR(a.videoData)&&a.wb?a.wb.handleError(b,void 0):!1};
EZa=function(a){fR(a.videoData,"html5_set_debugging_opt_in")&&(a=g.ft(),g.gt(0,183)||(it(183,!0),a.save()))};
x_a=function(a){return g.jR(a.videoData)&&a.wb?DV(a.wb):a.videoData.ge()};
zVa=function(a,b){a.Ld.xn()||(a.oa("sgap",{f:b}),a.Ld.clearQueue(!1,b==="pe"))};
JW=function(a){return cR(a.videoData)&&a.N("html5_disable_video_player_initiated_seeks")};
y_a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);UR(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.Rc()?this.api.getPlaybackRate():1};
z_a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);UR(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
UR(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
UR(this.api,"renderChapterSeekingAnimation",function(c,d,e){b.api.renderChapterSeekingAnimation(c,d,e)});
UR(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)});
UR(this.api,"changeMarkerVisibility",function(c,d,e){b.changeMarkerVisibility(c,d,e)});
UR(this.api,"isSameMarkerTypeVisible",function(c){return b.isSameMarkerTypeVisible(c)})};
A_a=function(a,b,c){var d=a.api.getCurrentTime()*1E3<b?1:-1;a.api.renderChapterSeekingAnimation(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
B_a=function(a,b){var c,d;return(c=IB(a,"macroMarkersListEntity",b))==null?void 0:(d=c.markersList)==null?void 0:d.markerType};
C_a=function(a,b){var c=g.nR.getState().entities;a=B_a(c,a);b=g.x(b.ib);for(var d=b.next();!d.done;d=b.next())if(a===B_a(c,d.value))return!0;return!1};
F_a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(){D_a(b)});
this.events.T(a,"presentingplayerstatechange",function(){E_a(b)})};
kX=function(a,b){try{navigator.mediaSession.setActionHandler(a,b)}catch(c){}};
D_a=function(a){var b=a.api.getVideoData();if(b!=null&&b.Be()){var c=a.api.V(),d=[],e="";if(!c.ra){var f=G_a(a);g.kz(c)&&f?(d=H_a(f.thumbnailDetails),f.album&&(e=xCa(f.album))):d=[{src:b.uh("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.nS(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
kX("nexttrack",b);kX("previoustrack",c)}};
I_a=function(a){kX("play",function(){a.api.playVideo()});
kX("pause",function(){a.api.pauseVideo()});
kX("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
kX("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())});
kX("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.x(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.yE(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};
lX=function(a){BS.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.dG(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.x(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.GN({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.df("compositeembargo",1);var e=d==null?void 0:d.dE.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.Ep())});
this.events.T(a,g.DE("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.x(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.jw!==f&&(d.jw=f,b.api.Ep());M_a(b,c)}}});
this.events.T(a,g.EE("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.jw=void 0;b.api.Ep();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.Ep()});
UR(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.ql([a.j],1)),a.j=b)};
K_a=function(a,b){b=g.x(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){BS.call(this,a);UR(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));UR(this.api,"updateDownloadState",this.updateDownloadState.bind(this));UR(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));UR(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));UR(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));UR(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));UR(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
mX=function(a){BS.call(this,a);var b=this;UR(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
UR(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
O_a=function(a,b,c){var d=[],e=b?156595:151874;a=g.x(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.x(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.x(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};
nX=function(a){BS.call(this,a);var b=this;this.C=1;this.Lb=null;this.Qc={apa:function(){return b.C}};
this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"d6de4videobindingchange",function(c){b.DI(c)});
this.events.T(a,"csiinitialized",function(){R_a(b)})};
R_a=function(a){if(S_a()){a.Lb=a.api.Sh();a.j=new UG;a.C=2;var b=g.KD(a.api.V().experiments,"html5_d6de4_defer_timeout_ms");a.Lb.Bg("pt_pish");b?g.Hr(function(){T_a(a)},b):a.api.N("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.Lb=a.api.Sh();var b=g.KD(a.api.V().experiments,"html5_d6de4_cloud_project_number");a.Lb.Bg("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:b}).then(function(d){a.B=d;var e;(e=a.j)==null||e.resolve();a.Lb.Bg("pt_pif")}).catch(function(d){oX(d,"player_start");
a.Lb.Bg("pt_pie");var e;(e=a.j)==null||e.reject(d)})}catch(d){oX(d,"player_start_catch");
a.api.oa("pfes",{});var c;(c=a.j)==null||c.reject(d)}}};
U_a=function(a,b){if(a.B&&!a.N("html5_disable_d6de4_mint_debug")){var c=b.videoId;a.C=3;a.Lb.Bg("pt_ms");try{a.B.requestToken(c).then(function(d){a.Lb.Bg("pt_mf");if(d=pP(d))b.mE={Oda:d}}).catch(function(d){a.Lb.Bg("pt_me");
oX(d,"player_generate");a.handleError(d,b)})}catch(d){oX(d,"player_generate_catch"),a.handleError(d,b)}}};
V_a=function(a,b){a.api.N("html5_enable_d6de4_cold_start_and_error")&&(b.mE={coldStartInfo:{clientState:a.C}})};
oX=function(a,b){a.message&&g.fx(Error(b+"_"+a.message))};
S_a=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider};
pX=function(a){g.S.call(this,{J:"button",Ka:["ytp-pip-button","ytp-button"],Y:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},X:[Ysa()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.jj(),d=c.subscribe("visibilitystatechange",function(){b.Ta(c.mj())});
this.addOnDisposeCallback(function(){c.Nh(d)});
hS(a,this.element,this);this.Ta(c.mj())};
qX=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()});
g.bQ(this.api.V())&&(this.N("web_enable_auto_pip")||this.N("web_enable_pip_on_miniplayer")||this.N("web_shorts_pip"))&&UR(this.api,"setDocumentPictureInPicture",function(c){b.setDocumentPictureInPicture(c)})};
W_a=function(a){var b=a.api.getVideoData();g.Mx(a.button,b.g4)};
X_a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);UR(this.api,"musicDisableUi",function(){g.yp(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
UR(this.api,"musicEnableUi",function(){g.Ap(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
tX=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?!1:c;g.S.call(this,{J:"div",S:"ytp-suggested-action"});var d=this;this.K=a;this.Db=this.ra=this.Ba=this.G=this.D=this.Z=this.expanded=this.enabled=this.Ua=!1;this.ib=new g.qp(function(){d.badge.element.style.width=""},200,this);
this.Pa=new g.qp(function(){rX(d);sX(d)},200,this);
this.dismissButton=new g.S({J:"button",Ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.P(this,this.dismissButton);this.C=new g.S({J:"div",S:"ytp-suggested-action-badge-expanded-content-container",X:[{J:"label",S:"ytp-suggested-action-badge-title",ya:"{{badgeLabel}}"},this.dismissButton]});g.P(this,this.C);this.Ma=new g.S({J:"div",S:"ytp-suggested-action-badge-icon-container",X:[b?{J:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.P(this,this.Ma);this.badge=new g.S({J:c?"div":
"button",Ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],X:[this.Ma,this.C]});g.P(this,this.badge);this.badge.Ha(this.element);this.qa=new g.Cy(this.badge,250,!1,100);g.P(this,this.qa);this.eb=new g.Cy(this.C,250,!1,100);g.P(this,this.eb);this.rb=new g.pp(this.ufa,null,this);g.P(this,this.rb);this.Za=new g.pp(this.W8,null,this);g.P(this,this.Za);g.P(this,this.ib);g.P(this,this.Pa);this.K.createServerVe(this.badge.element,this.badge,!0);this.K.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.T(this.K,"onHideControls",function(){d.eM(!1)});
this.T(this.K,"onShowControls",function(){d.eM(!0)});
this.T(this.badge.element,"click",this.TG);this.T(this.dismissButton.element,"click",this.qv);this.T(this.K,"pageTransition",this.zW);this.T(this.K,"appresize",this.Am);this.T(this.K,"fullscreentoggled",this.Hba);this.T(this.K,"cardstatechange",this.nba);this.T(this.K,"annotationvisibility",this.dga,this);this.T(this.K,"offlineslatestatechange",this.ega,this)};
rX=function(a){g.Cp(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Ba||!a.Z)};
sX=function(a,b){var c=a.oN();a.expanded!==c&&(a.expanded=c,b===void 0||b?(a.rb.stop(),a.Za.stop(),a.ib.stop(),a.rb.start()):(g.Mx(a.C,a.expanded),g.Cp(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),a.FL())};
Y_a=function(a){var b=a.text||"",c=g.gh("ytp-suggested-action-badge-title",a.element);c&&g.th(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Va?a.Va:"")};
uX=function(a,b,c,d,e,f){var h={J:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={J:"div",S:"ytp-panel-header",X:[{J:"div",Ka:["ytp-panel-back-button-container"],X:[{Y:{"aria-label":"Back to previous menu"},J:"button",Ka:["ytp-button",l]}]},{J:"span",Ka:[m],X:[c]}]};if(e){var p="ytp-panel-options";n.X.push({J:"button",Ka:["ytp-button",p],X:[d]})}h.X=[n]}d=!1;f&&(f={J:"div",S:"ytp-panel-footer",X:[f]},d=!0,h.X?h.X.push(f):h.X=[f]);g.Nx.call(this,h);this.content=
b;d&&h.X?b.Ha(this.element,h.X.length-1):b.Ha(this.element);this.NZ=!1;this.MZ=d;c&&(c=this.Da(m),this.T(this.Da(l),"click",this.B0),this.T(c,"click",this.B0),this.NZ=!0,e&&this.T(this.Da(p),"click",e));b.subscribe("size-change",this.G0,this);this.T(a,"fullscreentoggled",this.G0);this.K=a};
g.vX=function(a,b,c,d,e,f){b=b===void 0?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.Nx({J:"div",S:"ytp-panel-menu",Y:h});uX.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.P(this,this.menuItems)};
g.wX=function(a){for(var b=g.x(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.NS,a);a.items=[];g.ph(a.menuItems.element);a.menuItems.publish("size-change")};
Z_a=function(a,b){return b.priority-a.priority};
g.xX=function(a,b){g.uS.call(this,a,{J:"div",Ka:["ytp-popup",b||""]},100,!0);this.j=[];this.L=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Cg(0,0);this.listen("keydown",this.v6)};
$_a=function(a){var b=a.j[a.j.length-1];if(b){g.Lm(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Bm(b.element,"width","");g.Bm(b.element,"height","");g.Bm(b.element,"maxWidth","100%");g.Bm(b.element,"maxHeight","100%");g.Bm(b.content.element,"height","");var c=g.Mm(b.element);c.width+=1;c.height+=1;g.Bm(b.element,"width",c.width+"px");g.Bm(b.element,"height",c.height+"px");g.Bm(b.element,"maxWidth","");g.Bm(b.element,"maxHeight","");var d=0;b.NZ&&(d=g.Mm(b.Da("ytp-panel-header")).height);var e=
0;b.MZ&&(e=b.Da("ytp-panel-footer"),g.Bm(e,"width",c.width+"px"),e=g.Mm(e).height);g.Bm(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.Bm(b.element,"width",c.width+"px")));a.size=c}};
g.yX=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),a0a(a,c,b))};
g.zX=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];a0a(a,b,c,!0)}};
a0a=function(a,b,c,d){b0a(a);b&&(b.unsubscribe("size-change",a.dD,a),b.unsubscribe("back",a.rj,a));c.subscribe("size-change",a.dD,a);c.subscribe("back",a.rj,a);if(a.Eb){g.yp(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);g.Lm(a.element,e);a.G=new g.qp(function(){c0a(a,b,c,d)},20,a);
a.G.start()}else c.Ha(a.element),b&&b.detach()};
c0a=function(a,b,c,d){a.G.dispose();a.G=null;g.yp(a.element,"ytp-popup-animating");d?(g.yp(b.element,"ytp-panel-animate-forward"),g.Ap(c.element,"ytp-panel-animate-back")):(g.yp(b.element,"ytp-panel-animate-back"),g.Ap(c.element,"ytp-panel-animate-forward"));g.Lm(a.element,a.size);a.L=new g.qp(function(){g.Ap(a.element,"ytp-popup-animating");b.detach();g.Bp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.L.dispose();a.L=null},250,a);
a.L.start()};
b0a=function(a){a.G&&g.sp(a.G);a.L&&g.sp(a.L)};
AX=function(a){g.xX.call(this,a,"ytp-shopping-product-menu");this.We=new g.vX(this.K);g.P(this,this.We);this.hide();g.yX(this,this.We);g.qS(this.K,this.element,4)};
e0a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=d0a(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.K.gb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
f0a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&d0a(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.K.publish("featuredproductdismissed"):b.serviceEndpoint&&a.K.gb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
d0a=function(a,b,c,d,e){b=new g.xS(g.yS({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",g0a(e));b.setIcon(g0a(d));g.P(a,b);a.We.Vc(b,!0);return b};
g0a=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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{J:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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 Rsa();case "HIDE":return{J:"svg",Y:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"g",X:[{J:"path",Y:{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 Zx()}};
BX=function(a){tX.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Z=!0;this.overflowButton=new g.S({J:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.S({J:"img",S:"ytp-suggested-action-badge-img",Y:{src:"{{url}}"}});
this.thumbnailImage.hide();g.P(this,this.thumbnailImage);this.thumbnailIcon=new g.S({J:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.P(this,this.thumbnailIcon);this.banner=new g.S({J:"a",S:"ytp-suggested-action-container",X:[this.thumbnailImage,this.thumbnailIcon,{J:"div",S:"ytp-suggested-action-details",X:[{J:"text",S:"ytp-suggested-action-title",ya:"{{title}}"},{J:"text",S:"ytp-suggested-action-subtitle",ya:"{{subtitle}}"},{J:"text",S:"ytp-suggested-action-metadata-text",
ya:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ha(this.C.element);this.T(this.K,"videodatachange",this.onVideoDataChange);this.T(this.K,g.DE("suggested_action_view_model"),this.Fba);this.T(this.K,g.EE("suggested_action_view_model"),this.Gba);this.T(this.overflowButton.element,"click",this.w6);this.T(a,"featuredproductdismissed",this.qv);this.K.createServerVe(this.banner.element,this.banner,!0)};
h0a=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.ra=a.isVisible,sX(a),a.Am(),g.Mx(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.Mx(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.Mx(a.overflowButton,a.isVisible))};
CX=function(){BX.apply(this,arguments)};
i0a=function(a){BS.call(this,a);this.j=new CX(this.api);g.P(this,this.j);g.qS(this.api,this.j.element,4)};
o0a=function(a){BS.call(this,a);var b=this;this.B="";this.j=this.api.N("html5_enable_audio_track_stickiness_phase_two");var c=new g.dG(a);g.P(this,c);c.T(a,"internalaudioformatchange",function(d,e){e&&(e="",j0a(b,d)&&(e=d,b.j||(b.B=d)),b.j&&e&&k0a(b)!==e&&(l0a([{settingItemId:DX(b),settingOptionValue:{stringValue:d}}]),Cva(DX(b),{stringValue:e})))});
c.T(a,"videoplayerreset",function(){var d;(b.B||b.j&&((d=bM())==null?0:d.size))&&m0a(b)});
c.T(a,"videodatachange",function(d,e){b.onVideoDataChange(d,e)});
this.j&&c.T(a,"applicationInitialized",function(){n0a(b)})};
m0a=function(a){if(a.j){var b;if(b=k0a(a))if(a=a.api.Rc())a.getVideoData().u4=b}else if(b=a.api.Rc())b.getVideoData().u4=a.B};
n0a=function(a){Ava([DX(a)]).then(function(b){if(b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.key;d=d.value;c&&d&&l0a([{settingItemId:c,settingOptionValue:d}])}}})};
j0a=function(a,b){a=a.api.getAvailableAudioTracks();a=g.x(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.getLanguageInfo().getId()===b)return c;return null};
k0a=function(a){a=DX(a);var b=bM();a=b?b.get(a):void 0;return a&&a.stringValue?a.stringValue:""};
DX=function(a){var b=(484).toString();a.api.V().El&&(b=(483).toString());return b};
l0a=function(a){var b=bM();b||(b=new Map);a=g.x(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.set(c.settingItemId,c.settingOptionValue);b=JSON.stringify(Object.fromEntries(b));g.Zs("yt-player-user-settings",b,2592E3)};
g.EX=function(a,b,c,d,e,f,h){g.xS.call(this,g.yS({"aria-haspopup":"true"}),b,a);this.Fb=d;this.W=!1;this.C=null;this.options={};this.B=new g.vX(c,void 0,a,e,f,h);g.P(this,this.B);this.listen("keydown",this.x6);this.listen("click",this.open)};
p0a=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}};
q0a=function(a,b){g.EX.call(this,"Sleep timer",g.fT.SLEEP_TIMER,a,b);this.K=a;this.Z={};this.G=this.NA("Off");this.L=this.j="";a.N("web_settings_menu_icons")&&this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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({J:"div",Ka:["ytp-menuitem-label-wrapper"],X:[{J:"div",ya:"End of video"},{J:"div",Ka:["ytp-menuitem-sublabel"],ya:"{{content}}"}]});g.P(this,this.D);this.listen("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"settingsMenuVisibilityChanged",this.dda);a.createClientVe(this.element,this,218889);this.Ta();this.K.gb("onSleepTimerFeatureAvailable")};
r0a=function(a){var b="Off 10 15 20 30 45 60".split(" "),c;((c=a.K.getVideoData())==null?0:c.isLivePlayback)||b.push("End of video");c=a.K.getPlaylist();var d;c&&((d=c.listId)==null?void 0:d.type)!=="RD"&&b.push("End of playlist");a.Ll(g.Ml(b,a.NA));a.Z=g.pc(b,a.NA,a);b=a.NA("End of video");a.options[b]&&g.wS(a.options[b],a.D)};
s0a=function(a,b){var c=a.Z[b],d=c==="End of video"||c==="End of playlist";c==="Off"&&(a.j="");a.K.getPlayerState()!==0&&a.K.getPlayerState()!==5||!d?(a.G=b,g.EX.prototype.kh.call(a,b),a.Li(b),a.K.gb("onSleepTimerSettingsChanged",c)):a.K.gb("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})};
FX=function(a){BS.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new q0a(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.md()}b.menuItem.open()}});
UR(a,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()});
UR(a,"setSleepTimerTimeLeft",function(c){b.setSleepTimerTimeLeft(c)});
UR(a,"setVideoTimeLeft",function(c){b.setVideoTimeLeft(c)})};
t0a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"onSnackbarMessage",function(c){switch(c){case 1:c=b.api.getPlayerStateObject(),c.isBuffering()&&g.T(c,8)&&g.T(c,16)&&b.api.gb("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.HX=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.Fx.call(this);this.Z=e;this.U=!1;this.D=new Ts(this);this.G=this.L=null;this.C=this.B=!1;g.P(this,this.D);this.target=a;this.j=b;this.W=c||a;this.U=d;b&&(g.ih&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));GX(this)};
IX=function(a){g.Vs(a.D,!a.j)};
GX=function(a){a.G=null;a.L=null;a.T(JX("over"),a.Cy);a.T("touchstart",a.sO);a.j&&a.T(JX("down"),a.Naa)};
u0a=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.L)return d}return null};
JX=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substring(1):"mouse"+a};
KX=function(a){return a&&v0a?ah(a)||document:document};
w0a=function(a,b){g.S.call(this,{J:"div",Ka:["ytp-overlay","ytp-speedmaster-overlay"],X:[{J:"div",S:"ytp-speedmaster-user-edu",X:[{J:"div",S:"ytp-speedmaster-label",ya:b},{J:"div",S:"ytp-speedmaster-icon",ya:"{{icon}}"}]}]});this.K=a;this.j=this.Da("ytp-speedmaster-user-edu");this.updateValue("icon",Qsa());g.yp(this.j,"ytp-speedmaster-has-icon");this.K.createClientVe(this.j,this,173040,!0);this.Ai()};
MX=function(a){BS.call(this,a);var b=this;this.D=this.C=!1;this.Pa=g.KD(this.api.V().experiments,"speedmaster_touch_activation_ms")||500;this.Ba=g.KD(this.api.V().experiments,"speedmaster_cancellation_movement_dp")||10;this.La=g.KD(this.api.V().experiments,"speedmaster_playback_rate")||2;this.B=new g.dG(a);g.P(this,this.B);this.Z="2x";this.speedmasterUserEdu=new w0a(a,this.Z);g.P(this,this.speedmasterUserEdu);g.qS(this.api,this.speedmasterUserEdu.element,4);this.j=new g.HX(this.api.qb().uA,!0,null,
!1,!0);g.P(this,this.j);this.delay=new g.qp(this.Fa,this.Pa,this);g.P(this,this.delay);this.B.T(a,"videodatachange",function(){LX(b)},this);
this.B.T(a,"presentingplayerstatechange",function(){LX(b)},this);
this.B.T(a,"autonavvisibility",function(){LX(b)},this);
this.api.jj().subscribe("visibilitystatechange",function(){LX(b)});
this.B.T(a,"rootnodemousedown",function(c){b.U=c});
this.N("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(c,d){b.qa=d;x0a(b,c,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(c){x0a(b,c,!1)},this))};
NX=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.L,a);a.j.unsubscribe("dragend",a.G,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Ai(),a.api.setPlaybackRate(a.Ea),a.api.showControls(),a.Ma&&a.api.pauseVideo())};
x0a=function(a,b,c){c?b.keyCode!==32||b.repeat||a.C||!a.D||g.rp(a.delay):NX(a)};
LX=function(a){var b,c;var d=!!a.Z&&!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.Lf()&&a.api.getPresentingPlayerType()!==2&&!g.T(a.api.getPlayerStateObject(),2)&&!((c=g.bS(a.api))==null?0:c.eh())&&!a.api.jd()&&$V(a.api.jj());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.ra,a):(a.j.unsubscribe("dragstart",a.ra,a),a.j.unsubscribe("dragmove",a.L,a),a.j.unsubscribe("dragend",a.G,a),NX(a)))};
y0a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);UR(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
UR(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.x(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=ur(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
OX=function(a,b,c){g.Wh.call(this,b,a);this.j=c};
g.PX=function(a){VG.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new OX(b,c.type,c))}};
A0a=function(a){var b=a.Rc(),c=a.getVideoData(),d=a.Le(),e=d.Jb(),f=a.V(),h=b.YF(),l=b.JU,m=QW(l,"bandwidth")*8/1024,n=QW(l,"networkactivity")/1024,p=QW(l,"bufferhealth");if(b.Je){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Je.j.getInfo()+"/"+rM(b.Bx());q+="/"+b.Je.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),u=d.getCurrentTime().toFixed(2),y=AG(d.Rh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.SG?"DS":"SS");q=c.gg()?q+"LIFA, ":q+"DAI, ";
var A=c_a(b);A&&(q+=A)}SMa(c)&&!c.gg()&&(q+="LIFAE, ");var C;((C=a.getVideoData(1))==null?0:g.jR(C))?(q+="SSAP, ",(C=c_a(b))&&(q+=C)):cR(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.Wd&&(q=f.Wd.yq?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.LF())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=
c.WD;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.qr(pA)("_start",void 0);f=[];t=g.x(["pl_i","vir","or_p","orfb","pbs"]);for(u=t.next();!u.done;u=t.next())u=u.value,(y=g.qr(pA)(u,void 0))&&q&&(y-=q,f.push(u+":"+Math.round(y)));q=f.join(" ");f=g.aQ();t=g.pS(a).M$;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="",K=0;K<
6;K++)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=RMa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.dk.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.cX(b))&&a.video&&(m.resolution+=" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=z0a(e),!c.D||e.audio&&e.video?e.TL&&(m.codecs+=" / "+e.TL+"A"):m.codecs+=" / "+z0a(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.x(e.debugInfo),
N=e.next();!N.done;N=e.next())N=N.value,m.fmt_debug_info+=N.label+":"+N.text+" ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;N=c.je;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(iR(c)?" Manifestless":"");else if(e){N=QW(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=iR(c)?"Manifestless, ":"";c.Ma&&(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()||oR(c)&&b.xn()||(m.playback_categories+="Gapless ");m.playback_categories_style=
m.playback_categories?"":"display:none";m.bandwidth_samples=PW(l,"bandwidth");m.network_activity_samples=PW(l,"networkactivity");m.live_latency_samples=PW(l,"livelatency");m.buffer_health_samples=PW(l,"bufferhealth");b=g.OR(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";fR(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20241113_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};
z0a=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
QX=function(a,b,c,d,e){g.S.call(this,{J:"div",S:"ytp-horizonchart"});this.L=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.L+"em"};
RX=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.mh("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.mh("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.x(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="")};
SX=function(a){var b=null;b={J:"button",Ka:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Y:{title:"close"},ya:"[X]"};g.S.call(this,{J:"div",Ka:["html5-video-info-panel","ytp-sfn"],X:[b,{J:"div",Ka:["html5-video-info-panel-content","ytp-sfn-content"],X:[{J:"div",X:[{J:"div",ya:"Video ID / sCPN"},{J:"span",ya:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{J:"div",X:[{J:"div",ya:"Viewport / Frames"},{J:"span",ya:"{{dims_and_frames}}"}]},{J:"div",X:[{J:"div",ya:"Current / Optimal Res"},{J:"span",
ya:"{{resolution}}"}]},{J:"div",X:[{J:"div",ya:"Volume / Normalized"},{J:"span",ya:"{{volume}}"}]},{J:"div",X:[{J:"div",ya:"Codecs"},{J:"span",ya:"{{codecs}}"}]},{J:"div",Y:{style:"{{shader_info_style}}"},X:[{J:"div",ya:"Shader Info"},{J:"span",ya:"{{shader_info}}"}]},{J:"div",Y:{style:"{{color_style}}"},X:[{J:"div",ya:"Color"},{J:"span",ya:"{{color}}"}]},{J:"div",Y:{style:"{{drm_style}}"},X:[{J:"div",ya:"Protected"},{J:"span",ya:"{{drm}}"}]},{J:"div",Y:{style:"{{bandwidth_style}}"},X:[{J:"div",ya:"Connection Speed"},
{J:"span",X:[{J:"span",ya:"{{bandwidth_chart}}"},{J:"span",ya:"{{bandwidth_kbps}}"}]}]},{J:"div",Y:{style:"{{network_activity_style}}"},X:[{J:"div",ya:"Network Activity"},{J:"span",X:[{J:"span",ya:"{{network_activity_chart}}"},{J:"span",ya:"{{network_activity_bytes}}"}]}]},{J:"div",X:[{J:"div",ya:"Buffer Health"},{J:"span",X:[{J:"span",ya:"{{buffer_health_chart}}"},{J:"span",ya:"{{buffer_health_seconds}}"}]}]},{J:"div",Y:{style:"{{live_latency_style}}"},X:[{J:"div",ya:"Live Latency"},{J:"span",X:[{J:"span",
ya:"{{live_latency_chart}}"},{J:"span",ya:"{{live_latency_secs}}"}]}]},{J:"div",Y:{style:"{{live_mode_style}}"},X:[{J:"div",ya:"Live Mode"},{J:"span",ya:"{{live_mode}}"}]},{J:"div",Y:{style:"{{playback_categories_style}}"},X:[{J:"div",ya:"Playback Categories"},{J:"span",ya:"{{playback_categories}}"}]},{J:"div",Y:{style:"{{fmt_debug_info_style}}"},X:[{J:"div",ya:"Format Debug Info"},{J:"span",ya:"{{fmt_debug_info}}"}]},{J:"div",X:[{J:"div",ya:"Mystery Text"},{J:"span",ya:"{{debug_info}}"}]},{J:"div",
Y:{style:"{{extra_debug_info_style}}"},X:[{J:"div",ya:""},{J:"span",X:[{J:"span",ya:"{{extra_debug_info}}"}]}]},{J:"div",X:[{J:"div",ya:"Date"},{J:"span",ya:"{{date}}"}]},{J:"div",Y:{style:"{{cotn_and_local_media_style}}"},X:[{J:"div",ya:"COTN / Local Media"},{J:"span",ya:"{{cotn_and_local_media}}"}]},{J:"div",Y:{style:"{{release_style}}"},X:[{J:"div",ya:"Player Release"},{J:"span",ya:"{{release_name}}"}]}]}]});this.Qa=a;this.position=0;this.G=!0;b?this.T(this.Da("ytp-sfn-close"),"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.Z={};this.j=new QX(300,1,150,a,b);g.P(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new QX(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 QX(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.L=new QX(300,1,150,c,b);g.P(this,this.L);this.updateValue("network_activity_chart",
this.L);this.delay=new g.qp(this.Ta,500,this);g.P(this,this.delay);this.D=new g.qp(this.W,2E4,this);g.P(this,this.D)};
D0a=function(a){BS.call(this,a);var b=this;UR(a,"getStatsForNerds",function(){return A0a(b.api)});
VR(a,"showVideoInfo",function(){B0a(b,!0)});
VR(a,"hideVideoInfo",function(){B0a(b,!1)});
VR(a,"isVideoInfoVisible",function(){return C0a(b)})};
B0a=function(a,b){var c=C0a(a);a.j||(a.j=new SX(a.api),g.P(a,a.j),g.qS(a.api,a.j.element,4));g.Mx(a.j,b);var d=mS(a.api.Bb());d&&d.loaded&&c!==b&&d.QU();b&&a.api.oa("sfn",{},!0)};
C0a=function(a){var b;return!((b=a.j)==null||!b.Eb)};
TX=function(){g.O.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.pp(this.j,null,this);g.P(this,this.delay)};
E0a=function(a,b){if(b.J==="path")return b.Y.d;if(b.X)for(var c=0;c<b.X.length;c++){var d=b.X[c];if(d&&typeof d!=="string"&&(d=E0a(a,d)))return d}};
I0a=function(a,b,c){c=E0a(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Ix();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=F0a(e),m=F0a(c);G0a(a,function(n){d.setAttribute("d",H0a(l,m,n))},200)};
G0a=function(a,b,c){a.B=b;a.startTime=(0,g.Vt)();a.duration=c;a.j()};
F0a=function(a){var b=[];a=a.match(J0a);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};
H0a=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};
UX=function(a){g.S.call(this,{J:"button",Ka:["ytp-size-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.api=a;this.Sk=null;this.transition=new TX;g.P(this,this.transition);this.T(a,"sizestylechange",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);a.createClientVe(this.element,this,139116);this.Ta();this.listen("click",this.onClick);hS(a,this.element,
this)};
K0a=function(a){BS.call(this,a);var b=this;this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new UX(a);g.P(b,b.button);a.eA(b.button)})};
N0a=function(a){BS.call(this,a);var b=this,c={};this.L=(c.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},c.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(d){return L0a(b,d)},c.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(d){return L0a(b,d)},c);
this.D={};this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"videodatachange",function(d,e){if(d!=="dataupdated"||e.videoId!==b.videoId||!Jv(b.timelyActions,M0a(e)))b.onVideoDataChange(e)});
this.events.T(a,"presentingplayerstatechange",function(d){b.Ei(d)});
this.events.T(a,g.DE("timelyAction"),function(d){b.onCueRangeEnter(d)});
this.events.T(a,g.EE("timelyAction"),function(d){b.onCueRangeExit(d)});
this.C=new g.S({J:"div",Ka:["ytp-player-content","ytp-timely-actions-content"]});this.C.hide();UR(a,"insertTimelyActionUi",function(d){b.C.element.children.length>0&&g.ph(b.C.element);d.classList.add("ytp-timely-actions-overlay");b.C.element.appendChild(d)});
g.P(this,this.C);g.qS(this.api,this.C.element,4)};
O0a=function(a){a.timelyActions&&(a.D=a.timelyActions.reduce(function(b,c){if(c.cueRangeId===void 0)return b;b[c.cueRangeId]=0;return b},{}))};
VX=function(a,b){if(a.timelyActions){a=g.x(a.timelyActions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.cueRangeId===b)return c}};
P0a=function(a,b){if((a=VX(a,b))&&a.onCueRangeExit)return jx(a.onCueRangeExit)};
Q0a=function(a){if(a.j!==void 0){var b=(b=VX(a,a.j))&&b.onCueRangeEnter?jx(b.onCueRangeEnter):void 0;var c=VX(a,a.j);if(c&&c.additionalTrigger){var d=!1;for(var e=g.x(c.additionalTrigger),f=e.next();!f.done;f=e.next())f=f.value,f.type&&f.args&&a.L[f.type]!==void 0&&(d=d||a.L[f.type](f.args))}else d=!0;b&&d&&(a.api.gb("innertubeCommand",b),a.setTimeout(c),a.D[a.j]!==void 0&&a.D[a.j]++)}};
L0a=function(a,b){return a.B===void 0?!1:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(b.seekLengthMilliseconds)===5E3?a.B===72:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(b.seekLengthMilliseconds)===1E4?a.B===74:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(b.seekLengthMilliseconds)===5E3?a.B===71:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(b.seekLengthMilliseconds)===1E4?a.B===73:!1};
M0a=function(a){if(a=a.getWatchNextResponse()){var b,c;a=(b=a.playerOverlays)==null?void 0:(c=b.playerOverlayRenderer)==null?void 0:c.timelyActionsOverlayViewModel;b=g.Q(a,R0a);if(b!=null&&b.timelyActions)return b==null?void 0:b.timelyActions.map(function(d){return g.Q(d,S0a)}).filter(function(d){return!!d})}};
T0a=function(a){BS.call(this,a);var b=this;VR(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
VR(this.api,"setPlaybackRate",function(c){typeof c==="number"&&b.api.setPlaybackRate(c)})};
U0a=function(a){a=a.qe();if(!a)return!1;a=g.wr(a).exp||"";return a.includes("xpv")||a.includes("xpe")};
V0a=function(a){a=g.x(g.WX(a,!0));for(var b=a.next();!b.done;b=a.next())if(U0a(b.value))return!0;return!1};
W0a=function(a,b){a=g.x(g.WX(a,!0));for(var c=a.next();!c.done;c=a.next())if(c=c.value,U0a(c)){var d={potc:"1",pot:b};c.url&&(c.url=xr(c.url,d))}};
X0a=function(a){var b=!1;a.FP(150);a.wpc.f().finally(function(){b=!0});
return{isReady:function(){return b},
fv:function(c){return a.fv({Jj:c.Jj,aS:!0,bS:!0,ji:c.ji?{ex:c.ji.ex,hA:c.ji.hA,UC:c.ji.UC}:void 0})},
ready:function(){return g.I(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(){}}};
YX=function(a){BS.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.G=new g.Cj;this.Lb=null;this.L=!1;this.B=null;this.C=!1;var c=a.V().getWebPlayerContextConfig();this.events=new g.dG(a);g.P(this,this.events);this.events.T(a,"spsumpreject",function(d,e){b.C=e;d&&b.L&&!b.B&&Y0a(b);b.B||b.api.oa("stp",{s:+b.L,b:+b.C})});
this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Lb=a.Sh();var d=(b.N("html5_generate_session_po_token")||b.N("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{if(b.N("html5_use_shared_owl_instance"))Z0a(b);else if(d){b.Lb.Bg("pot_isc");$0a(b);var e=g.KD(b.api.V().experiments,"html5_webpo_kaios_defer_timeout_ms");e?g.Hr(function(){XX(b)},e):b.N("html5_webpo_idle_priority_job")?g.qt(g.tt(),function(){XX(b)}):XX(b)}}catch(f){f instanceof
Error&&g.fx(f)}});
a.addEventListener("trackListLoaded",this.W.bind(this));a.kU(this)};
a1a=function(a){var b=gP(a.experiments,"html5_web_po_request_key");return b?b:g.YD(a)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
ZX=function(a,b){if(a.N("html5_webpo_bge_ctmp")){var c,d={hwpo:!!a.j,hwpor:!((c=a.j)==null||!c.isReady())};a.api.oa(b,d)}};
Z0a=function(a){var b,c;g.I(function(d){if(d.j==1)return ZX(a,"swpo_i"),a.U=Xga(),$X(a),g.G(d,Mo(),2);if(d.j!=3)return b=d.B,ZX(a,"swpo_co"),g.G(d,Cla(b),3);c=d.B;a.j=X0a(c);ZX(a,"swpo_cc");a.j.ready().then(function(){a.G.resolve();ZX(a,"swpo_re")});
g.Hr(function(){XX(a);ZX(a,"swpo_si")},0);
g.va(d)})};
$0a=function(a){function b(n){g.fx(n)}
function c(n){(n=b1a[n])&&a.Lb.Bg(n)}
var d=a.api.V(),e=a1a(d);try{var f=Kha(e),h=OJa(d.experiments),l=d.experiments.fb("html5_web_po_disable_remote_logging"),m=new kl({uC:e,onEvent:c,onError:b,tx:f,Ur:h,FS:function(){a.api.oa("itr",{})},
rea:l});a.j=m;a.j.ready().then(function(){a.G.resolve()});
g.P(a,m)}catch(n){n instanceof Error&&g.fx(n)}};
XX=function(a){var b=a.api.V();a.Lb.Bg("pot_ist");var c;(c=a.j)==null||c.start();a.N("html5_bandaid_attach_content_po_token")||($X(a),Y0a(a),b=g.KD(b.experiments,"html5_session_po_token_interval_time_ms")||0,b>0&&(a.D=g.Ir(function(){$X(a)},b)),a.L=!0)};
$X=function(a){var b,c,d,e;g.I(function(f){if(!a.N("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.V();c=g.mr("EOM_VISITOR_DATA")||g.mr("VISITOR_DATA");d=b.El?b.datasyncId:c;e=gP(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.ag=c1a(a,e);g.va(f)})};
c1a=function(a,b){if(!a.j)return a.U?a.U(b):"";try{var c=a.j.isReady();a.Lb.Bg(c?"pot_cms":"pot_csms");var d="";d=a.N("html5_web_po_token_disable_caching")?a.j.fv({Jj:b}):a.j.fv({Jj:b,ji:{ex:b,xaa:150,hA:!0,UC:!0}});a.Lb.Bg(c?"pot_cmf":"pot_csmf");if(c){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.dS(a.api.app))==null?void 0:f.va;h&&xVa(h,!1)}}return d}catch(l){return g.fx(l),""}};
Y0a=function(a){a.j&&(a.B=new UG,a.j.ready().then(function(){a.Lb.Bg("pot_if");$X(a)}))};
d1a=function(a){BS.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.dG(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}});
UR(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
UR(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
aY=function(a){g.O.call(this);this.features=[];var b=this.j,c=new COa(a),d=new CS(a),e=new mX(a),f=new YX(a);var h=g.WD(a.V())?void 0:new jT(a);var l=new lX(a),m=new D0a(a),n=new T0a(a),p=new nT(a);var q=g.WD(a.V())?new d1a(a):void 0;var r=a.N("html5_enable_ssap")?new y0a(a):void 0;var t=a.N("web_cinematic_watch_settings")&&(t=a.V().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new eOa(a):void 0;var u=new mT(a);var y=a.N("enable_courses_player_overlay_purchase")?new vOa(a):void 0;
var A=g.bQ(a.V())?new rOa(a):void 0;var C=new iOa(a);var F=a.V().D?new jOa(a):void 0;var H=a.N("web_player_move_autonav_toggle")&&a.V().Xd?new XNa(a):void 0;var K=g.bQ(a.V())?new z_a(a):void 0;var N=a.N("web_enable_speedmaster")&&g.bQ(a.V())?new MX(a):void 0;var W=a.V().Cl?void 0:new K0a(a);var V=a.N("report_pml_debug_signal")?new SNa(a):void 0;var da=new N_a(a),na=new qX(a);var X=a.N("enable_web_player_player_in_bar_feature")&&g.kz(a.V())?new X_a(a):void 0;var R=a.V().playerStyle==="flix"?new xOa(a):
void 0;var Y=navigator.mediaSession&&window.MediaMetadata&&a.V().xl?new F_a(a):void 0;var v=a.N("html5_enable_drc")&&!a.V().L?new iT(a):void 0;var U=new MNa(a),$a;a:{var wb=a.V();if(wb.L&&(wb=($a=wb.getWebPlayerContextConfig())==null?void 0:$a.houseBrandEnvironment,wb==="apps-elements"||wb==="apps-elements-flix")){$a=new wOa(a);break a}$a=void 0}wb=g.bQ(a.V())?new i0a(a):void 0;var ob=a.N("html5_enable_d6de4")?new nX(a):void 0;var Ea=g.bQ(a.V())&&a.N("web_sleep_timer")?new FX(a):void 0;var db=g.HP(a.V())?
new mOa(a):void 0;var tb=new o0a(a),ab=new fOa(a),B=new y_a(a);var D=a.V().L?new BOa(a):void 0;var E=a.N("enable_sabr_snackbar_message")?new t0a(a):void 0;a=a.N("web_enable_timely_actions")?new N0a(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,y,A,C,F,H,K,N,W,V,da,na,X,R,Y,v,U,$a,wb,ob,Ea,db,void 0,tb,ab,B,D,E,a)};
bY=function(){this.B=this.j=NaN};
e1a=function(a,b){this.ea=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new bY;this.j=b||null;this.C=!1};
f1a=function(a,b,c){var d=g.NP(b.Ca)&&!b.Ca.L;if(b.Ca.xk&&(JP(b.Ca)||b.Ca.Ma==="shortspage"||hQ(b.Ca)||d)&&!a.C){a.C=!0;a.L=b.clientPlaybackNonce;g.mr("TIMING_ACTION")||lr("TIMING_ACTION",a.ea.csiPageType);a.ea.csiServiceName&&lr("CSI_SERVICE_NAME",a.ea.csiServiceName);if(a.j){d=a.j.Sh();for(var e=g.x(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,uA(f,d[f],a.timerName);d=g.qr(hua)(a.j.PJ);g.vA(d,a.timerName);d=a.j;d.B={};d.PJ={}}g.vA({playerInfo:{visibilityState:g.qr(gua)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(xA("_start",a.timerName)?c=g.qr(pA)("_start",a.timerName)+a.B:g.fx(new g.lt("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!xA("pbs",a.timerName)&&a.tick("pbs",c)}};
s_a=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.Ba){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.QJ;var l={};if(d==null?0:d.L)l.cttAuthInfo={token:d.L,videoId:d.videoId};e&&(l.startTime=e);wA(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.vA(d,a);uA("pbs",h!=null?h:(0,g.Vt)(),a)}};
cY=function(a){rua();qua();a.timerName=""};
g1a=function(a){if(a.j){var b=a.j;b.B={};b.PJ={}}a.C=!1;a.G=void 0;a.B=NaN};
h1a=function(a,b){g.Fx.call(this);this.Ca=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.W={};this.B=0;if(a=b.session_data)this.sessionData=sr(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 AQ("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.BQ(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.x(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.W=wQ(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
i1a=function(a){return!!(a.playlist||a.list||a.api)};
j1a=function(a){var b=a.index+1;return b>=a.length?0:b};
k1a=function(a){var b=a.index-1;return b<0?a.length-1:b};
g.dY=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.WQ(a.Ca,b),g.P(a,e),e.Un=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
l1a=function(a,b){a.index=g.xg(b,0,a.length-1);a.startSeconds=0};
m1a=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.dY(a);a.items=[];for(var d=g.x(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()}};
p1a=function(a,b){var c,d,e,f,h,l,m;return g.I(function(n){if(n.j==1){c=g.NA();var p=a.V(),q={context:g.SR(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.kR))==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 K;A==="user_uploads"?K={username:y}:K={playlistId:y};n1a(p,u,b,K);q.playlistRequest=K}else b.playlist?(K={templistVideoIds:b.playlist.toString().split(",")},
n1a(p,u,b,K),q.playlistRequest=K):u&&(K={videoId:u},p&&(K.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=K);d=q;e=g.Az(o1a);g.wa(n,2);return g.G(n,g.CA(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.V(),b.raw_embedded_player_response=f,h.Fa=Bs(b,g.HP(h)),h.C=h.Fa==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&OL(l.trackingParams)),n.return(new g.WQ(h,b));m=g.ya(n);m instanceof Error||(m=Error("b259802748"));g.ex(m);return n.return(a)})};
n1a=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.fY=function(a,b){eY.get(a);eY.set(a,b)};
g.gY=function(a){g.Fx.call(this);this.loaded=!1;this.player=a};
q1a=function(){this.B=[];this.j=[]};
g.WX=function(a,b){return b?a.j.concat(a.B):a.j};
g.hY=function(a,b){switch(b.kind){case "asr":r1a(b,a.B);break;default:r1a(b,a.j)}};
r1a=function(a,b){g.Xb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.iY=function(a){g.O.call(this);this.Qa=a;this.j=new q1a;this.D=null;this.G=[];this.W=[]};
s1a=function(a,b,c){if(a.Qa.V().N("html5_dispatch_tracklist_loaded_event")){a.D&&(a.D.reject(),a.D=null);var d=[];a.Qa.publish("trackListLoaded",a.j,d,c);d.length?(c=new g.Cj,c.promise.then(b,function(){}),a.D=c,Promise.all(d).then(c.resolve,c.reject).finally(function(){a.D=null})):b()}else b()};
g.jY=function(a,b,c){g.iY.call(this,a);this.videoData=b;this.audioTrack=c;this.B=null;this.C=!1;this.G=b.Hw;this.W=b.iE;this.C=g.JR(b)};
g.t1a=function(a,b){return wG(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.u1a=function(a,b){if(a.j!=null&&g.WD(b.V())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.Yb())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.t1a(c,"386")});
a=!!a.j&&!a.j.isManifestless&&YFa(a.j);return b||a};
g.kY=function(a,b,c,d,e,f){g.iY.call(this,a);this.videoId=c;this.ZZ=e;this.eventId=f;this.L={};this.B=null;a=d||g.wr(b).hl||"";a=a.split("_").join("-");this.C=xr(b,{hl:a})};
v1a=function(a,b){this.B=a;this.j=b;this.onFailure=void 0};
w1a=function(a,b){return{gA:a.gA&&b.gA,Wd:a.Wd&&b.Wd,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
mY=function(a,b){var c=x1a,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={gA:!!this.C,Wd:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new v1a([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming},
xx:function(){return WebAssembly.compileStreaming(fetch(d.path))},
onFailure:function(){return d.capabilities.streaming=!1}},
{name:"sync",condition:function(e){return e.sync},
xx:function(){return BL(y1a(d),lY.QI("wmcs",function(e){return new WebAssembly.Module(e)}))},
onFailure:function(){return d.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
xx:function(){return BL(y1a(d),lY.QI("wmca",function(e){return WebAssembly.compile(e)}))},
onFailure:function(){return d.capabilities.Wd=!1}}]);
this.L=new v1a([{name:"instantiateStreaming",condition:function(e){return e.Wd&&e.streaming&&!d.B&&!d.j},
xx:function(e,f){return lY.Tq("wmix",function(){return WebAssembly.instantiateStreaming(fetch(d.path),f)}).then(function(h){d.j=xL(h.module);
return{instance:h.instance,yq:!1}})},
onFailure:function(){return d.capabilities.streaming=!1}},
{name:"sync",condition:function(e){return e.Wd&&e.sync},
xx:function(e,f){return BL(z1a(d,e),lY.QI("wmis",function(h){return{instance:new WebAssembly.Instance(h,f),yq:!1}}))},
onFailure:function(){return d.capabilities.sync=!1}},
{name:"async",condition:function(e){return e.Wd},
xx:function(e,f){return BL(BL(z1a(d,e),lY.QI("wmia",function(h){return WebAssembly.instantiate(h,f)})),function(h){return{instance:h,
yq:!1}})},
onFailure:function(){return d.capabilities.Wd=!1}},
{name:"asmjs",condition:function(e){return e.gA},
xx:function(e,f){return xL(lY.Tq("wmij",function(){return d.C(f)}).then(function(h){return{instance:{exports:h},
yq:!0}}))},
onFailure:function(){return d.capabilities.gA=!1}}],function(e,f,h){return d.D(h,e.instance.exports)})};
C1a=function(a){var b=A1a;return b.instantiate(a?w1a(b.capabilities,a):b.capabilities,new B1a)};
y1a=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=xL(c);
return c}).then(void 0,function(c){g.fx(Error("wasm module fetch failure: "+c.message,{cause:c}));
a.B=void 0;throw c;});
a.B=xL(b);return a.B};
z1a=function(a,b){if(!b.Wd)return yL(Error("wasm unavailable"));if(a.j)return a.j;a.j=CL(BL(a.compile(b),function(c){a.j=xL(c);return c}),function(c){g.fx(Error("wasm module compile failure: "+c.message,{cause:c}));
a.j=void 0;throw c;});
return a.j};
D1a=function(){};
E1a=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.iB(f);c.push(f)}return c.reduce(function(h,l){return h+l.length},0)}};
B1a=function(){this.env=new D1a;this.wasi_snapshot_preview1=new E1a};
x1a=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)}};
F1a=function(a,b){this.instance=a;this.yq=b;this.exports=this.j=this.instance.exports};
H1a=function(a,b,c){c=c===void 0?!1:c;var d=d===void 0?!0:d;var e=lY.SC();return BL(G1a(a,b,{gA:c,Wd:!0,sync:!0,streaming:!0},d),function(f){lY.HA(f.yq?"winitjs":"winit",e);return f})};
G1a=function(a,b,c,d){d=d===void 0?!0:d;A1a||(A1a=new mY(a,b));return BL(C1a(c),function(e){return new F1a(e.instance,e.yq,d)})};
I1a=function(a,b){g.O.call(this);var c=this;this.K=a;this.j=b;this.PJ={};this.B={};this.C=null;this.D=new Set;this.G=new g.dG(this);this.Qc={jpa:function(){return c.j},
sU:function(){return c.sU()}};
this.L=this.K.N("web_player_defer_modules");this.Pe=new Map;g.P(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.nY=function(a){return a.Pe.get("captions")};
O1a=function(a,b){switch(b){case "ad":return J1a(a);case "annotations_module":return a.K.jd()?a=!1:(b=a.K,a=b.V(),b=b.getVideoData(),a=a.C||b.UW||a.controlsType==="3"?!1:a.La.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Ua||!!g.HR(b)||!!g.OMa(b):!0),a;case "asmjs":return a.K.V().N("html5_allow_asmjs");case "creatorendscreen":return K1a(a);case "embed":return g.HP(a.K.V());case "endscreen":return g.L1a(a);case "heartbeat":return a.rU();case "inline_preview":return a.K.V().showInlinePreviewUi;
case "kids":return UP(a.K.V());case "remote":return a.K.V().vl;case "miniplayer":return a.K.V().showMiniplayerUiWhenMinimized;case "offline":return a.K.V().Uj;case "captions":return M1a(a);case "unplugged":return g.OP(a.K.V());case "ux":return a.K.V().Za;case "webgl":return N1a(a);case "ypc":return a.fI();case "ypc_clickwrap":return a=a.K.getVideoData(),a.lh&&!a.AI;case "yto":return!!a.K.getVideoData().Ea.includes("yto");default:return g.ex(Error("Module descriptor "+b+" does not match")),!1}};
oY=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Pe.get(b);if(!h||d)if(e||(e=function(){oY(a,b,c,d)}),f||(f=function(){a.K.Mg(b)}),h=h||P1a(a,b,O1a(a,b),e,f))a.Pe.set(b,h),h.create(),a.K.publish("modulecreated",b),c&&a.K.xf("onApiChange")};
R1a=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.I(function(l){if(l.j==1)return(c=a.Pe.get("asmjs"))&&!b?l.return(c):(d=eY.get("asmjs"))!=null?(e=d,l.Ga(2)):g.G(l,new Promise(function(m,n){Q1a(a,"asmjs",function(){var p=eY.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.K);a.Pe.set("asmjs",h);h.create();return l.return(h)})};
U1a=function(a){S1a(a)&&a.EP();T1a(a)&&(oY(a,"captions",!0),oY(a,"endscreen"),a.MJ(),oY(a,"creatorendscreen",!0))};
T1a=function(a){var b=a.K.getVideoData(),c=a.L&&!b.isInlinePlaybackNoAd;a.K.N("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
S1a=function(a){a=a.K.getVideoData();var b;if(b=a.N("web_player_defer_ad")){if(g.Zb(a.Ea,"ad")||CMa(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.x(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};
M1a=function(a){var b=a.K.getVideoData();return!!b.Se||!!b.captionTracks.length||g.u1a(b,a.K)};
g.L1a=function(a){var b=a.K.V();if(b.C||hQ(b)||b.L||!b.Fd&&!b.lh)return!1;var c=a.K.getPresentingPlayerType();if(c===2)return!1;if(c===3)return b.N("desktop_enable_autoplay");a=a.K.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.N("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.N("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.N("allow_live_autoplay_on_mweb");return!c||b};
g.oS=function(a){return a.Pe.get("webgl")};
N1a=function(a){var b=a.K.getVideoData();a=a.K.V();var c=g.Sna(),d=a.N("enable_spherical_kabuki"),e;if(((e=a.getWebPlayerContextConfig())==null?0:e.embedsEnableEmc3ds)&&!a.N("embeds_enable_emc3ds_webgl"))return!1;e=g.fQ(a);if(g.FR(b))return c||d||e;if(g.DR(b))return e||c||d;if(g.ER(b))return e||c||!1;if(g.tR(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.vR(b)&&!c&&a.N("enable_webgl_noop")};
J1a=function(a){if(a.K.V().C)return!1;a=a.K.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.jR(a)?!0:!1};
K1a=function(a){if(a.K.jd())return!1;a=a.K;var b=a.V();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.MMa(c)||!!g.NMa(c))};
P1a=function(a,b,c,d,e){try{if(c){var f=eY.get(b);if(f)return new f(a.K);Q1a(a,b,d,e)}else a.K.Mg(b)}catch(h){a.K.Mg(b),g.ex(h)}return null};
pY=function(a,b,c){if(a.K.V().N("html5_dispose_modules_in_order"))for(var d=g.x(V1a),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Pe.get(e);f&&(c||f.Nn(b))&&(g.jb(f),a.Pe.delete(e))}else for(d=g.x(a.Pe),e=d.next();!e.done;e=d.next())f=g.x(e.value),e=f.next().value,(f=f.next().value)&&(c||f.Nn(b))&&(g.jb(f),a.Pe.delete(e))};
qY=function(a){return a.Pe.get("ad")};
W1a=function(a){if(UP(a.K.V()))return a.Pe.get("kids")};
mS=function(a){if(a.K.V().vl)return a.Pe.get("remote")};
g.rY=function(a){if(g.OP(a.K.V()))return a.Pe.get("unplugged")};
sNa=function(a){if(a.K.V().Za)return a.Pe.get("ux")};
X1a=function(a){if(a.K.V().showMiniplayerUiWhenMinimized)return a.Pe.get("miniplayer")};
sY=function(a){if(a.K.V().Uj)return a.Pe.get("offline")};
g.tY=function(a){return a.Pe.get("annotations_module")};
Y1a=function(a){return a.Pe.get("creatorendscreen")};
$1a=function(a,b){var c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return H1a(c,function(d){var e=a.Pe.get("asmjs");return e?Promise.resolve(e.l_(d)):Z1a(a).then(function(f){return f.l_(d)})},b)};
Z1a=function(a){var b,c;return g.I(function(d){if(d.j==1)return g.G(d,R1a(a),2);c=b=d.B;return d.return(c)})};
Q1a=function(a,b,c,d){if(a.j){var e=a2a[b];b2a(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
b2a=function(a,b,c,d){function e(){a.Ja()||d.call(a)}
function f(){a.Ja()||c.call(a)}
for(var h=g.dh("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.mh("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(y){qi(f);q&&q.apply(window,[y])};
var r=m.onerror;m.onerror=function(y){if(Math.random()<.01){var A=new g.lt("Unable to load player module",b,document.location&&document.location.origin);g.ex(A)}qi(e);r&&r(y)};
var t=m,u=t.onreadystatechange;t.onreadystatechange=function(y){switch(t.readyState){case "loaded":case "complete":qi(f)}u&&u(y)};
l&&((h=a.K.V().cspNonce)&&m.setAttribute("nonce",h),g.dg(m,g.Qq(b)),h=g.dh("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
c2a=function(a,b,c,d,e){g.Fx.call(this);var f=this;this.target=a;this.FJ=b;this.B=0;this.L=!1;this.D=new g.Ag(NaN,NaN);this.j=new g.dG(this);this.Ba=this.C=this.U=null;g.P(this,this.j);b=d||e?4E3:3E3;this.Z=new g.qp(function(){uY(f,1,!1)},b,this);
g.P(this,this.Z);this.qa=new g.qp(function(){uY(f,2,!1)},b,this);
g.P(this,this.qa);this.ra=new g.qp(function(){uY(f,512,!1)},b,this);
g.P(this,this.ra);this.Ea=3E3;d||(this.C=this.j.T(a,"mouseover",this.Cy),this.j.T(a,"mousemove",this.z6),this.j.T(a,"mouseleave",this.Oaa));Cm?this.j.T(a,"keypress",this.caa):this.j.T(a,"focusin",this.q9);this.G=this.j.T(a,"mousedown",this.EW);this.W=this.j.T(a,"touchstart",this.FW,void 0,!0);uY(this,640,!0)};
d2a=function(a){uY(a,4,!1);a.U&&(a.j.Nc(a.U),a.U=null,a.C=a.j.T(a.target,"mouseover",a.Cy));a.C&&(a.j.Nc(a.C),a.C=a.j.T(a.target,"mouseover",a.Cy))};
uY=function(a,b,c){a.Ja();var d=!a.B;c?(a.B|=b,b&1&&a.Z.start(),b&2&&a.qa.start()):(a.B&=~b,b&1&&a.Z.stop(),b&2&&a.qa.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.rp(a.ra,a.Ea);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
g.wY=function(a){g.S.call(this,{J:"button",Ka:["ytp-large-play-button","ytp-button"],Y:{"aria-label":"Play",title:"Play"},X:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Ta);this.T(a,"basechromeinitialized",this.cga);a=this.api.V();a.W&&vY&&(this.listen("click",this.g$,this),this.listen("touchstart",this.bea,this));g.NP(a)&&g.yp(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Ta()};
g.xY=function(a){var b=a.V(),c=["ytp-cued-thumbnail-overlay"];b.L&&c.push("ytp-exp-contain-thumbnail");b.N("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.S.call(this,{J:"div",Ka:c,X:[{J:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");c=new g.wY(a);g.P(this,c);c.Ha(b);this.D=new g.dG(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.Cy(this,250);g.P(this,this.B);this.j=new g.qp(this.Ta,
0,this);g.P(this,this.j);this.Ta();this.T(a,"appresize",this.lc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.Fda);JP(a.V())&&this.T(a,"videoplayerreset",this.onReset)};
e2a=function(a){if(!a.api.N("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.getPlayerStateObject();a=g.T(a,64)&&g.T(a,1);return b===0&&a};
g.yY=function(a){g.S.call(this,{J:"div",Ka:["ytp-error"],Y:{role:"alert"},X:[{J:"div",S:"ytp-error-content",X:[{J:"div",S:"ytp-error-icon-container",X:[{J:"svg",Y:{fill:"#fff",viewBox:"0 0 48 48"},X:[{J:"path",Y:{d:"M0 0h48v48H0V0z",fill:"none"}},{J:"path",Y:{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"}}]}]},{J:"div",S:"ytp-error-content-wrap",
X:[{J:"div",S:"ytp-error-content-wrap-reason",ya:"{{content}}"},{J:"div",S:"ytp-error-content-wrap-subreason",ya:"{{subreason}}"}]}]}]});this.api=a;this.keys=[];this.C=!1;a.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Eb)};
g.zY=function(a){a=a.split(f2a);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({J:"br"}),b.push(d[e]);c<a.length&&b.push({J:"a",Y:{href:a[c],target:a[c+1]},ya:a[c+2]})}return{J:"span",X:b}};
BY=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.V().D);var l=a.api.getVideoData();b=g.OE(g.AY[b]||"",d?{CPN:l.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({J:"h2",ya:f});d.push(b[0]);h&&d.push({J:"br"});d.push({J:"a",Y:{href:c,target:e?"_blank":null},S:"ytp-error-link",ya:b[2]});a.C=!0;d.push(b[4]);return{J:"span",X:d}};
g2a=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)}};
h2a=function(a){for(var b=0;b<a.keys.length;b++)a.Nc(a.keys[b]);a.keys=[]};
i2a=function(a){g.S.call(this,{J:"div",S:"ytp-paid-content-overlay",Y:{"aria-live":"assertive","aria-atomic":"true"}});this.K=a;this.videoId=null;this.C=!1;this.innertubeCommand=this.Ne=this.j=null;var b=a.V();a.N("enable_new_paid_product_placement")&&!g.dQ(b)?(this.B=new g.S({J:"a",S:"ytp-paid-content-overlay-link",Y:{href:"{{href}}",target:"_blank"},X:[{J:"div",S:"ytp-paid-content-overlay-icon",ya:"{{icon}}"},{J:"div",S:"ytp-paid-content-overlay-text",ya:"{{text}}"},{J:"div",S:"ytp-paid-content-overlay-chevron",
ya:"{{chevron}}"}]}),this.T(this.B.element,"click",this.onClick)):this.B=new g.S({J:"div",Ka:["ytp-button","ytp-paid-content-overlay-text"],ya:"{{text}}"});this.D=new g.Cy(this.B,250,!1,100);g.P(this,this.B);this.B.Ha(this.element);g.P(this,this.D);this.K.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.C6)};
k2a=function(a,b){var c=zMa(b),d=AMa(b);b.lh&&a.K.No()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.tp(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&j2a(a,d,c,b)):c&&d&&j2a(a,d,c,b))};
j2a=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.qp(a.Pb,b,a);g.P(a,a.j);d=yMa(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.jy))==null?void 0:f.url;a.K.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"?{J:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
X:[{J:"path",Y:{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.Ux():null})};
l2a=function(a,b){a.j&&(g.T(b,8)&&a.C?(a.C=!1,a.md(),a.j.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))};
CY=function(a){g.S.call(this,{J:"div",S:"ytp-spinner",X:[aOa(),{J:"div",S:"ytp-spinner-message",ya:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.qp(this.show,500,this);g.P(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.xd(a.getPlayerStateObject())};
DY=function(a){var b=[{J:"div",Ka:["ytp-unmute-icon"],X:[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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"}}]}]},
{J:"div",Ka:["ytp-unmute-text"],ya:"Tap to unmute"}];b.push({J:"div",Ka:["ytp-unmute-box"],X:[]});g.uS.call(this,a,{J:"button",Ka:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],X:[{J:"div",S:"ytp-unmute-inner",X: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.Ei);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.HP(this.api.V());g.Mx(this,a);a&&m2a(this);this.C=a};
m2a=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.EY=function(a){g.dG.call(this);var b=this;this.api=a;this.UR=!1;this.So=null;this.CP=!1;this.Dg=null;this.DP=this.zN=!1;this.VU=this.WU=null;this.E_=NaN;this.UU=this.jF=!1;this.QG=0;this.FO=[];this.kT=!1;this.eL={height:0,width:0};this.V2=480;this.xga=["ytp-player-content","html5-endscreen","ytp-overlay"];this.QL={iB:!1};var c=a.V(),d=a.qb();this.eL=a.getPlayerSize();this.JX=new g.qp(this.pS,0,this);g.P(this,this.JX);c.disableOrganicUi||(this.Ao=new g.xY(a),g.P(this,this.Ao),g.qS(a,this.Ao.element,
4));if(n2a(this)){var e=new CY(a);g.P(this,e);e=e.element;g.qS(a,e,4)}var f=a.getVideoData();this.Sg=new c2a(d,function(l){return b.FJ(l)},f,c.yk,!1);
g.P(this,this.Sg);this.Sg.subscribe("autohideupdate",this.TB,this);if(!c.disablePaidContentOverlay){var h=new i2a(a);g.P(this,h);g.qS(a,h.element,4)}this.ZU=new DY(a);g.P(this,this.ZU);g.qS(this.api,this.ZU.element,2);this.fR=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.wN=new g.qp(this.xt,200,this);g.P(this,this.wN);this.xG=f.videoId;this.l2=new g.qp(function(){b.QG=0},350);
g.P(this,this.l2);this.YJ=new g.qp(function(){b.UU||o2a(b)},350,this);
g.P(this,this.YJ);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.yp(f,"ytp-color-white")}this.T(a,"appresize",this.lc);this.T(a,"presentingplayerstatechange",this.Ei);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.nca);this.T(a,"autonavvisibility",function(){b.wr()});
this.T(a,"sizestylechange",function(){b.wr()});
this.T(d,"click",this.Mca,this);this.T(d,"dblclick",this.Nca,this);this.T(d,"mousedown",this.Qca,this);c.Db&&(this.T(d,"gesturechange",this.Oca,this),this.T(d,"gestureend",this.Pca,this));this.OG=[d.uA];this.Ao&&this.OG.push(this.Ao.element);e&&this.OG.push(e)};
p2a=function(a,b){if(!b)return!1;var c=a.api.Le();if(c.Aw()&&(c=c.Jb())&&g.sh(c,b))return c.controls;for(c=0;c<a.OG.length;c++)if(g.sh(a.OG[c],b))return!1;c=g.x(a.xga);for(var d=c.next();!d.done;d=c.next())if(g.xp(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
q2a=function(a){var b=a.api.getPresentingPlayerType()===2&&(a.api.qb().ZK||a.api.V().disableOrganicUi||!1)&&a.api.V().B&&vY&&dR>=11;a=a.api.V().W&&vY;return!(!b&&!a)};
FY=function(a,b){return!a.api.isInline()&&!p2a(a,Rs(b))&&g.Zy(b)};
o2a=function(a){a.Sg.Xv();if(a.zN&&a.DP)a.DP=!1;else if(!a.api.V().Pa&&!a.Sr()){var b=a.api.getPlayerStateObject();g.T(b,2)&&g.kS(a.api)||a.gI(b);!a.api.V().Db||b.isCued()||g.T(b,1024)?a.xt():a.wN.isActive()?(a.gR(),a.wN.stop()):a.wN.start()}};
r2a=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.Zy(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.T(b,4)||g.T(b,8)||g.T(b,2)||a.xt(),!0):!1};
s2a=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
n2a=function(a){var b=hs()&&fs()>=67&&!a.api.V().W;a=a.api.V().disableOrganicUi;return!g.gs("tizen")&&!iP&&!b&&!a};
GY=function(a,b){b=b===void 0?2:b;g.Fx.call(this);this.api=a;this.j=null;this.Md=new Ts(this);g.P(this,this.Md);this.B=Bta;this.Md.T(this.api,"presentingplayerstatechange",this.D6);this.j=this.Md.T(this.api,"progresssync",this.Uc);this.Dp=b;this.Dp===1&&this.Uc()};
g.HY=function(a){g.S.call(this,{J:"div",X:[{J:"div",S:"ytp-bezel-text-wrapper",X:[{J:"div",S:"ytp-bezel-text",ya:"{{title}}"}]},{J:"div",S:"ytp-bezel",Y:{role:"status","aria-label":"{{label}}"},X:[{J:"div",S:"ytp-bezel-icon",ya:"{{icon}}"}]}]});this.K=a;this.B=new g.qp(this.show,10,this);this.j=new g.qp(this.hide,500,this);g.P(this,this.B);g.P(this,this.j);this.hide()};
JY=function(a,b,c){if(b<=0){c=dy();b="muted";var d=0}else c=c?{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}:{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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";IY(a,c,b,d+"%")};
t2a=function(a,b){b=b?{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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"}}]}:Qsa();var c=a.K.getPlaybackRate(),d=g.OE("Speed is $RATE",{RATE:String(c)});IY(a,b,d,c+"x")};
u2a=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";IY(a,$Na(),b)};
IY=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.tp(a.j);a.B.start();a.updateValue("title",d);g.Cp(a.element,"ytp-bezel-text-hide",!d)};
v2a=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-button","ytp-cards-button"],Y:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.HP(a.V()))},X:[{J:"span",S:"ytp-cards-button-icon-default",X:[{J:"div",S:"ytp-cards-button-icon",X:[a.V().N("player_new_info_card_format")?Tsa():{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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"}}]}]},
{J:"div",S:"ytp-cards-button-title",ya:"Info"}]},{J:"span",S:"ytp-cards-button-icon-shopping",X:[{J:"div",S:"ytp-cards-button-icon",X:[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",S:"ytp-svg-shadow",Y:{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"}},{J:"path",S:"ytp-svg-fill",Y:{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"}},{J:"path",S:"ytp-svg-shadow-fill",Y:{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"}}]}]},{J:"div",
S:"ytp-cards-button-title",ya:"Shopping"}]}]});this.K=a;this.C=b;this.j=null;this.B=new g.Cy(this,250,!0,100);g.P(this,this.B);g.Cp(this.C,"ytp-show-cards-title",g.HP(a.V()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.Mba);this.dI(!0)};
w2a=function(a,b){g.S.call(this,{J:"div",S:"ytp-cards-teaser",X:[{J:"div",S:"ytp-cards-teaser-box"},{J:"div",S:"ytp-cards-teaser-text",X:a.V().N("player_new_info_card_format")?[{J:"button",S:"ytp-cards-teaser-info-icon",Y:{"aria-label":"Show cards","aria-haspopup":"true"},X:[Tsa()]},{J:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"},{J:"button",S:"ytp-cards-teaser-close-button",Y:{"aria-label":"Close"},X:[g.Vx()]}]:[{J:"span",S:"ytp-cards-teaser-label",ya:"{{text}}"}]}]});var c=this;this.K=a;this.oh=
b;this.D=new g.Cy(this,250,!1,250);this.j=null;this.W=new g.qp(this.aca,300,this);this.L=new g.qp(this.Zba,2E3,this);this.G=[];this.B=null;this.Z=new g.qp(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.P(this,this.D);g.P(this,this.W);g.P(this,this.L);g.P(this,this.Z);a.V().N("player_new_info_card_format")?(g.yp(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Da("ytp-cards-teaser-close-button"),"click",this.E6),this.T(this.Da("ytp-cards-teaser-info-icon"),"click",this.MU),this.T(this.Da("ytp-cards-teaser-label"),"click",this.MU)):this.listen("click",this.MU);this.T(b.element,"mouseover",this.HW);this.T(b.element,"mouseout",this.GW);this.T(a,"cardsteasershow",
this.oda);this.T(a,"cardsteaserhide",this.Pb);this.T(a,"cardstatechange",this.S3);this.T(a,"presentingplayerstatechange",this.S3);this.T(a,"appresize",this.tO);this.T(a,"onShowControls",this.tO);this.T(a,"onHideControls",this.h8);this.listen("mouseenter",this.F6)};
x2a=function(a){g.S.call(this,{J:"button",Ka:[KY.BUTTON,KY.TITLE_NOTIFICATIONS],Y:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},X:[{J:"div",S:KY.TITLE_NOTIFICATIONS_ON,Y:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},X:[g.Yx()]},{J:"div",S:KY.TITLE_NOTIFICATIONS_OFF,Y:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},X:[{J:"svg",Y:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},X:[{J:"path",Y:{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")};
y2a=function(a,b){a.j=b;a.element.classList.toggle(KY.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.pE:c.nE)?(a=a.api.Xm())?BA(a,b):g.ex(Error("No innertube service available when updating notification preferences.")):g.ex(Error("No update preferences command available.")):g.ex(Error("No video data when updating notification preferences."))};
A2a=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=z2a(a,b);if(a=g.Zf(window,a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Qqa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
z2a=function(a,b){var c=document.location.protocol;return cga(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.LY=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.V(),t=r.userDisplayName&&g.NP(r);g.S.call(this,{J:"div",Ka:["ytp-button","ytp-sb"],X:[{J:"div",S:"ytp-sb-subscribe",Y:t?{title:g.OE("Subscribe as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":iQ(r),"data-tooltip-opaque":String(g.HP(r)),tabindex:"0",role:"button"}:
{"aria-label":"Subscribe to channel"},X:[{J:"div",S:"ytp-sb-text",X:[{J:"div",S:"ytp-sb-icon"},a]},b?{J:"div",S:"ytp-sb-count",ya:b}:""]},{J:"div",S:"ytp-sb-unsubscribe",Y:t?{title:g.OE("Subscribed as $USER_NAME",{USER_NAME:r.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":iQ(r),"data-tooltip-opaque":String(g.HP(r)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},X:[{J:"div",S:"ytp-sb-text",X:[{J:"div",S:"ytp-sb-icon"},c]},d?{J:"div",S:"ytp-sb-count",
ya:d}:""]}],Y:{"aria-live":"polite"}});var u=this;this.channelId=h;this.K=p;this.C=q;var y=this.Da("ytp-sb-subscribe"),A=this.Da("ytp-sb-unsubscribe");f&&g.yp(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var C=function(){if(r.Ba){var H=u.channelId;if(m||n){var K={c:H};var N;g.SL.isInitialized()&&(N=NCa(K));K=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var W=p.Xm();W?(BA(W,N,{botguardResponse:K,feature:m}),p.gb("SUBSCRIBE",H)):g.ex(Error("No innertube service available when updating subscriptions."))}else g.ex(Error("No subscribe command in videoData."));
else g.ex(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");y.setAttribute("aria-hidden","true")}else A2a(g.XP(u.K.V()),"sb_button",u.D)},F=function(){var H=u.channelId;
if(m||n){var K=p.getVideoData();BA(p.Xm(),K.unsubscribeCommand,{feature:m});p.gb("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&&(DNa(p),hS(p,y,this),hS(p,A,this))}else g.yp(y,"ytp-sb-disabled"),g.yp(A,"ytp-sb-disabled")};
D2a=function(a){g.S.call(this,{J:"div",S:"ytp-title-channel",X:[{J:"div",S:"ytp-title-beacon"},{J:"a",S:"ytp-title-channel-logo",Y:{href:"{{channelLink}}",target:a.V().Z,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{J:"div",S:"ytp-title-expanded-overlay",Y:{"aria-hidden":"{{flyoutUnfocusable}}"},X:[{J:"div",S:"ytp-title-expanded-heading",X:[{J:"div",S:"ytp-title-expanded-title",X:[{J:"a",ya:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.V().Z,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{J:"div",S:"ytp-title-expanded-subtitle",ya:"{{expandedSubtitle}}",Y:{"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.HP(this.api.V())&&B2a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Zf(window,C2a(b));c.preventDefault()});
this.T(this.B,"click",this.qba);this.Ta()};
E2a=function(a){if(!a.api.V().uc){var b=a.api.getVideoData(),c=new g.LY("Subscribe",null,"Subscribed",null,!0,!1,b.Bm,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 x2a(a.api);a.j=e;g.P(a,e);e.Ha(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Dm&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Dm&&(e.hide(),a.api.logVisibility(e.element,!1),y2a(e,!1))})}};
B2a=function(a){var b=a.api.V();E2a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Ua||(a.T(a.channel,"mouseenter",a.aQ),a.T(a.channel,"mouseleave",a.tP),a.T(a.channel,"focusin",a.aQ),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.tP()}));
a.C=new g.qp(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,F2a,function(){G2a(a)});
a.T(a.api,"onHideControls",a.PT);a.T(a.api,"appresize",a.PT);a.T(a.api,"fullscreentoggled",a.PT)};
G2a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
H2a=function(a){var b=a.api.getPlayerSize();return g.HP(a.api.V())&&b.width>=524};
C2a=function(a){var b=a.api.V(),c=a.api.getVideoData(),d=g.jQ(b)+c.Kb;g.RR(c)&&(d="https://music.youtube.com"+c.Kb);if(!g.HP(b))return d;b={};g.YR(a.api,"addEmbedsConversionTrackingParams",[b]);return g.cj(d,b)};
MY=function(a){var b=g.yS({"aria-haspopup":"true"});g.xS.call(this,b,a);this.listen("keydown",this.j)};
NY=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
I2a=function(a,b){g.S.call(this,{J:"div",S:"ytp-user-info-panel",Y:{"aria-label":"User info"},X:a.V().Ba&&!a.N("embeds_web_always_enable_signed_out_state")?[{J:"div",S:"ytp-user-info-panel-icon",ya:"{{icon}}"},{J:"div",S:"ytp-user-info-panel-content",X:[{J:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable}}",role:"text"},ya:"{{watchingAsUsername}}"},{J:"div",S:"ytp-user-info-panel-info",Y:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ya:"{{watchingAsEmail}}"}]}]:[{J:"div",S:"ytp-user-info-panel-icon",
ya:"{{icon}}"},{J:"div",S:"ytp-user-info-panel-content",X:[{J:"div",X:[{J:"text",Y:{tabIndex:"{{userInfoFocusable}}"},ya:"Signed out"}]},{J:"div",S:"ytp-user-info-panel-login",X:[{J:"a",Y:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ya:a.V().uc?"":"Sign in on YouTube"}]}]}]});this.Qa=a;this.j=b;a.V().Ba||a.V().uc||this.T(this.Da("ytp-user-info-panel-login"),"click",this.H6);this.closeButton=new g.S({J:"button",Ka:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.cy()]});this.closeButton.Ha(this.element);
g.P(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.G6);this.Ta()};
K2a=function(a,b,c){g.vX.call(this,a);this.Fb=b;this.ze=c;this.getVideoUrl=new MY(6);this.Lo=new MY(5);this.Go=new MY(4);this.wc=new MY(3);this.LH=new g.xS(g.yS({href:"{{href}}",target:this.K.V().Z},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.xS(g.yS(),1,"Stats for nerds");this.vA=new g.Nx({J:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],Y:{draggable:"false",tabindex:"1"},ya:"{{text}}"});this.kY=new uX(this.K,this.vA);this.II=this.Fu=null;g.HP(this.K.V())&&(this.closeButton=
new g.S({J:"button",Ka:["ytp-collapse","ytp-button"],Y:{title:"Close"},X:[g.cy()]}),g.P(this,this.closeButton),this.closeButton.Ha(this.element),this.closeButton.listen("click",this.k8,this));g.HP(this.K.V())&&(this.wm=new g.xS(g.yS(),8,"Account"),g.P(this,this.wm),this.Vc(this.wm,!0),this.wm.listen("click",this.eda,this),a.createClientVe(this.wm.element,this.wm,137682));this.K.V().Xn&&(this.im=new ZS("Loop",7),g.P(this,this.im),this.Vc(this.im,!0),this.im.listen("click",this.Tba,this),a.createClientVe(this.im.element,
this.im,28661));g.P(this,this.getVideoUrl);this.Vc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Kba,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.P(this,this.Lo);this.Vc(this.Lo,!0);this.Lo.listen("click",this.Lba,this);a.createClientVe(this.Lo.element,this.Lo,28660);g.P(this,this.Go);this.Vc(this.Go,!0);this.Go.listen("click",this.Jba,this);a.createClientVe(this.Go.element,this.Go,28658);g.P(this,this.wc);this.Vc(this.wc,!0);this.wc.listen("click",this.Iba,
this);g.P(this,this.LH);this.Vc(this.LH,!0);this.LH.listen("click",this.Ica,this);g.P(this,this.showVideoInfo);this.Vc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.fda,this);g.P(this,this.vA);this.vA.listen("click",this.wba,this);g.P(this,this.kY);b=document.queryCommandSupported&&document.queryCommandSupported("copy");pba("Chromium")>=43&&(b=!0);pba("Firefox")<=40&&(b=!1);b&&(this.Fu=new g.S({J:"textarea",S:"ytp-html5-clipboard",Y:{readonly:"",tabindex:"-1"}}),g.P(this,this.Fu),
this.Fu.Ha(this.element));var d;(d=this.wm)==null||d.setIcon(Xsa());var e;(e=this.im)==null||e.setIcon({J:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.wc.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{"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.LH.setIcon(Rsa());this.showVideoInfo.setIcon(Ssa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);J2a(this);this.lN(this.K.getVideoData())};
OY=function(a,b){var c=!1;if(a.Fu){var d=a.Fu.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Fb.Pb():(a.vA.Ed(b,"text"),g.yX(a.Fb,a.kY),bOa(a.vA.element),a.Fu&&(a.Fu=null,J2a(a)));return c};
J2a=function(a){var b=!!a.Fu;g.wS(a.wc,b?"Copy debug info":"Get debug info");NY(a.wc,!b);g.wS(a.Go,b?"Copy embed code":"Get embed code");NY(a.Go,!b);g.wS(a.getVideoUrl,b?"Copy video URL":"Get video URL");NY(a.getVideoUrl,!b);g.wS(a.Lo,b?"Copy video URL at current time":"Get video URL at current time");NY(a.Lo,!b);a.Go.setIcon(b?Osa():null);a.getVideoUrl.setIcon(b?Wx():null);a.Lo.setIcon(b?Wx():null)};
L2a=function(a){return g.HP(a.K.V())?a.wm:a.im};
N2a=function(a,b){g.xX.call(this,a);this.ze=b;this.D=new g.dG(this);this.ra=new g.qp(this.tda,1E3,this);this.Ba=this.C=null;g.P(this,this.D);g.P(this,this.ra);a.createClientVe(this.element,this,28656);g.yp(this.element,"ytp-contextmenu");M2a(this);this.hide()};
M2a=function(a){g.Vs(a.D);var b=a.K.V();b.playerStyle==="gvn"||b.B||b.Ua||(b=a.K.qb(),a.D.T(b,"contextmenu",a.uba),a.D.T(b,"touchstart",a.J6,null,!0),a.D.T(b,"touchmove",a.l1,null,!0),a.D.T(b,"touchend",a.l1,null,!0))};
O2a=function(a){a.K.isFullscreen()?g.qS(a.K,a.element,10):a.Ha(document.body)};
PY=function(a,b,c){c=c===void 0?240:c;g.S.call(this,{J:"button",Ka:["ytp-button","ytp-copylink-button"],Y:{title:"{{title-attr}}","data-tooltip-opaque":String(g.HP(a.V()))},X:[{J:"div",S:"ytp-copylink-icon",ya:"{{icon}}"},{J:"div",S:"ytp-copylink-title",ya:"Copy link",Y:{"aria-hidden":"true"}}]});this.api=a;this.Ve=b;this.j=c;this.visible=!1;this.tooltip=this.Ve.Ze();b=a.V();this.tooltip.element.setAttribute("aria-live","polite");g.Cp(this.element,"ytp-show-copylink-title",g.HP(b));a.createClientVe(this.element,
this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.Ta();this.addOnDisposeCallback(g.gS(this.tooltip,this.element))};
P2a=function(a){var b=a.api.V(),c=a.api.getVideoData(),d=a.api.qb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.Oq&&!g.QR(c)&&!a.api.jd()&&!b};
Q2a=function(a){a.updateValue("icon",Sx());if(a.api.V().B)a.tooltip.hI(a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");a.tooltip.ri();a.tooltip.hI(a.element);var b=a.listen("mouseleave",function(){a.Nc(b);a.Ta();a.tooltip.Qm()})}};
R2a=function(a,b){return g.I(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.mh("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(nu){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)})};
QY=function(a){g.S.call(this,{J:"div",S:"ytp-doubletap-ui-legacy",X:[{J:"div",S:"ytp-doubletap-fast-forward-ve"},{J:"div",S:"ytp-doubletap-rewind-ve"},{J:"div",S:"ytp-doubletap-static-circle",X:[{J:"div",S:"ytp-doubletap-ripple"}]},{J:"div",S:"ytp-doubletap-overlay-a11y"},{J:"div",S:"ytp-doubletap-seek-info-container",X:[{J:"div",S:"ytp-doubletap-arrows-container",X:[{J:"span",S:"ytp-doubletap-base-arrow"},{J:"span",S:"ytp-doubletap-base-arrow"},{J:"span",S:"ytp-doubletap-base-arrow"}]},{J:"div",
S:"ytp-doubletap-tooltip",X:[{J:"div",S:"ytp-seek-icon-text-container",X:[{J:"div",S:"ytp-seek-icon",ya:"{{seekIcon}}"},{J:"div",S:"ytp-chapter-seek-text-legacy",ya:"{{seekText}}"}]},{J:"div",S:"ytp-doubletap-tooltip-label",ya:"{{seekTime}}"}]}]}]});this.K=a;this.D=new g.qp(this.show,10,this);this.B=new g.qp(this.hide,700,this);this.L=this.C=0;this.qa=this.G=!1;this.j=this.Da("ytp-doubletap-static-circle");g.P(this,this.D);g.P(this,this.B);this.hide();this.W=this.Da("ytp-doubletap-fast-forward-ve");
this.Z=this.Da("ytp-doubletap-rewind-ve");this.K.createClientVe(this.W,this,28240);this.K.createClientVe(this.Z,this,28239);this.K.logVisibility(this.W,!0);this.K.logVisibility(this.Z,!0);this.G=a.N("web_show_cumulative_seek_time");this.qa=a.N("web_center_static_circles")};
RY=function(a,b,c,d){if(d=d===void 0?null:d){var e=b===-1?a.Z.visualElement:a.W.visualElement;d={seekData:d};var f=g.Xw();f&&g.qr(wx)(void 0,f,e,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",d,void 0)}a.C=b===a.L?a.C+c:c;a.L=b;e=a.K.qb().getPlayerSize();a.G?a.B.stop():g.tp(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.yp(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";d=e.width*.1-15;b===1?a.qa?(a.j.style.right=d+"px",a.j.style.left=""):
(a.j.style.right="",a.j.style.left=e.width*.8-30+"px"):b===-1&&(a.qa?(a.j.style.right="",a.j.style.left=d+"px"):(a.j.style.right="",a.j.style.left=e.width*.1-15+"px"));a.j.style.top=e.height*.5+15+"px";S2a(a,a.G?a.C:c)};
T2a=function(a,b,c,d){d=d===void 0?null:d;g.tp(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.yp(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","");c=a.Da("ytp-seek-icon");if(d){a:if(d){switch(d){case "PREMIUM_STANDALONE":d={J:"svg",Y:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},X:[{J:"path",Y:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",
fill:"#c00"}},{J:"path",Y:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]};
break a;case "PREMIUM_STANDALONE_CAIRO":d={J:"svg",Y:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"rect",Y:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{J:"rect",Y:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{J:"path",Y:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z",
fill:"white"}},{J:"defs",X:[{J:"linearGradient",Y:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},X:[{J:"stop",Y:{offset:"0.3","stop-color":"#E1002D"}},{J:"stop",Y:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}d=void 0}else d=null;a.updateValue("seekIcon",d);c.style.display="inline-block"}else c.style.display="none"};
S2a=function(a,b){b=g.OE("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
U2a=function(a){tX.call(this,a,!1,!0);this.Ea=[];this.Sb=[];this.Z=!0;this.badge.element.classList.add("ytp-featured-product");this.Fa=new g.S({J:"div",S:"ytp-featured-product-open-in-new"});g.P(this,this.Fa);this.countdownTimer=new g.S({J:"text",S:"ytp-featured-product-countdown",ya:"{{content}}"});this.countdownTimer.hide();g.P(this,this.countdownTimer);this.B=new g.S({J:"div",S:"ytp-featured-product-trending",X:[{J:"div",S:"ytp-featured-product-trending-icon"},{J:"text",S:"ytp-featured-product-trending-text",
ya:"{{trendingOffer}}"}]});this.B.hide();g.P(this,this.B);this.overflowButton=new g.S({J:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],Y:{"aria-haspopup":"true"}});this.overflowButton.hide();g.P(this,this.overflowButton);this.infoButton=new g.S({J:"button",Ka:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.P(this,this.infoButton);this.W=new g.S({J:"text",S:"ytp-featured-product-exclusive-countdown",ya:"{{content}}",Y:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.W.hide();g.P(this,this.W);this.L=new g.S({J:"div",S:"ytp-featured-product-exclusive-container",Y:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},X:[{J:"div",S:"ytp-featured-product-exclusive-badge-container",X:[{J:"div",S:"ytp-featured-product-exclusive-badge",X:[{J:"text",S:"ytp-featured-product-exclusive-badge-text",ya:"{{exclusive}}",Y:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.W]});this.L.hide();g.P(this,this.L);this.banner=new g.S({J:"a",S:"ytp-featured-product-container",
X:[{J:"div",S:"ytp-featured-product-thumbnail",X:[{J:"img",Y:{src:"{{thumbnail}}"}},this.Fa]},{J:"div",S:"ytp-featured-product-details",X:[{J:"text",S:"ytp-featured-product-title",ya:"{{title}}"},this.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",S:"ytp-featured-product-price-container",Y:{"aria-label":"{{priceA11yText}}"},X:[{J:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",ya:"{{price}}",Y:{"aria-hidden":"true"}},{J:"text",S:"ytp-featured-product-promotion-text",
ya:"{{promotionText}}",Y:{"aria-hidden":"true"}}]}:{J:"div",Y:{"aria-label":"{{priceA11yText}}"},X:[{J:"text",S:"ytp-featured-product-price",ya:"{{price}}",Y:{"aria-hidden":"true"}},{J:"text",S:"ytp-featured-product-sales-original-price",ya:"{{salesOriginalPrice}}",Y:{"aria-hidden":"true"}},{J:"text",S:"ytp-featured-product-price-drop-reference-price",ya:"{{priceDropReferencePrice}}",Y:{"aria-hidden":"true"}}]},this.K.N("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{J:"div",
S:"ytp-featured-product-when-promotion-text-enabled",X:[{J:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",ya:"{{affiliateDisclaimer}}"},this.B,{J:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",ya:"{{vendor}}"}]}:{J:"div",X:[{J:"text",S:"ytp-featured-product-affiliate-disclaimer",ya:"{{affiliateDisclaimer}}"},this.K.N("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.L:null,this.B,{J:"text",S:"ytp-featured-product-vendor",
ya:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.P(this,this.banner);this.banner.Ha(this.C.element);this.T(this.K,g.DE("featured_product"),this.afa);this.T(this.K,g.EE("featured_product"),this.JH);this.T(this.K,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.Nba);this.T(this.overflowButton.element,"click",this.K6);this.T(a,"featuredproductdismissed",this.qv)};
V2a=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};
X2a=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.x(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(FL({seconds:b}))),a.W.Ed(b)):a.W.Ed(m.text);a.W.show();break}}var p,q,r,t;a.L.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.L.show();SY(a);var u;(u=a.Vb)==null||u.start()}else W2a(a)};
W2a=function(a){var b;(b=a.Vb)==null||b.stop();a.W.hide();a.L.hide();TY(a)};
Y2a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.K.N("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};
Z2a=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.K.N("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};
$2a=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.K.N("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};
a3a=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.K.N("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};
b3a=function(a){if(a.K.N("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.L.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};
d3a=function(a,b){UY(a);if(b){var c=g.nR.getState().entities;c=IB(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.x(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.Ea.push(d);var f=void 0;e=g.x((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=c3a(h.startTimeSec);f!==void 0&&(h=c3a(h.endTimeSec),b.push(new g.BE(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier,
namespace:"featured_product"})))}}}a.K.hf(b)}}};
TY=function(a){if(a.trendingOfferEntityKey){var b=g.nR.getState().entities;if(b=IB(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)?SY(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:b3a(a)}))}else SY(a)}else SY(a)};
SY=function(a){a.B.hide();a.banner.update({vendor:b3a(a)})};
UY=function(a){a.Ea=[];a.JH();a.K.df("featured_product")};
e3a=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Ed(FL({seconds:b}));if(b>0){var h;(h=a.Ib)==null||h.start()}};
f3a=function(a){var b;(b=a.Ib)==null||b.stop();a.countdownTimer.hide()};
c3a=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a};
k3a=function(a,b,c){g.S.call(this,{J:"div",Ka:["ytp-info-panel-action-item"],X:[{J:"div",S:"ytp-info-panel-action-item-disclaimer",ya:"{{disclaimer}}"},{J:"a",Ka:["ytp-info-panel-action-item-button","ytp-button"],Y:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},X:[{J:"div",S:"ytp-info-panel-action-item-icon",ya:"{{icon}}"},{J:"div",S:"ytp-info-panel-action-item-label",ya:"{{label}}"}]}]});this.K=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.Be=!1;this.K.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.Q(b==null?void 0:b.onTap,hx);var d=g.Q(c,g.jy);this.Be=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.Be=!0,g.Uf(this.button,g.Sf(a))):(d=g.Q(c,g3a))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.Be=!0,g.Uf(this.button,g.Sf(a,[h3a]))):(c=g.Q(c,i3a))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.Be=!0,g.Uf(this.button,g.Sf(a,[j3a])));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:Zx(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:Zx()})}this.K.setTrackingParams(this.element,b.trackingParams||null);this.Be&&(this.B={externalLinkData:{url:a}})};
l3a=function(a,b){var c=Ix();g.uS.call(this,a,{J:"div",S:"ytp-info-panel-detail-skrim",X:[{J:"div",S:"ytp-info-panel-detail",Y:{role:"dialog",id:c},X:[{J:"div",S:"ytp-info-panel-detail-header",X:[{J:"div",S:"ytp-info-panel-detail-title",ya:"{{title}}"},{J:"button",Ka:["ytp-info-panel-detail-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.Vx()]}]},{J:"div",S:"ytp-info-panel-detail-body",ya:"{{body}}"},{J:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Da("ytp-info-panel-detail-items");
this.C=new g.dG(this);this.itemData=[];this.D=c;this.T(this.Da("ytp-info-panel-detail-close"),"click",this.Pb);this.T(this.Da("ytp-info-panel-detail-skrim"),"click",this.Pb);this.T(this.Da("ytp-info-panel-detail"),"click",function(d){d.stopPropagation()});
g.P(this,this.C);this.K.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
m3a=function(a,b){a=g.x(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.K.logVisibility(c.element,b)};
p3a=function(a,b){g.S.call(this,{J:"div",S:"ytp-info-panel-preview",Y:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.HP(a.V()))},X:[{J:"div",S:"ytp-info-panel-preview-text",ya:"{{text}}"},{J:"div",S:"ytp-info-panel-preview-chevron",ya:"{{chevron}}"}]});var c=this;this.K=a;this.Ne=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Sr();vS(b)});
this.C=new g.Cy(this,250,!1,100);g.P(this,this.C);this.K.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.N6);this.T(this.K,"paidcontentoverlayvisibilitychange",this.H0);this.T(this.K,"infopaneldetailvisibilitychange",this.H0);var d=a.getVideoData()||{};n3a(d)&&o3a(this,d);this.T(a,"onShowControls",this.M6);this.T(a,"onHideControls",this.L6)};
o3a=function(a,b){if(!b.lh||!a.K.No()){var c=b.zG||1E4,d=n3a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.tp(a.j),a.videoId=b.videoId,d?(q3a(a,c,b),a.md()):(a.Pb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),q3a(a,c,b),a.md())}};
n3a=function(a){var b,c,d,e;return!!((b=a.yf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.yf)==null?0:(e=d.bodyText)==null?0:e.content)};
q3a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.qp(a.ffa,b,a);g.P(a,a.j);var d;b=((d=c.yf)==null?void 0:d.trackingParams)||null;a.K.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.yf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.yf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.yf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.yf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.Ux()})};
r3a=function(a,b){a.j&&(g.T(b,8)?(a.B=!0,a.md(),a.j.start()):(g.T(b,2)||g.T(b,64))&&a.videoId&&(a.videoId=null))};
VY=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
WY=function(a,b){var c=0;a=g.x(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1};
s3a=function(a,b){for(var c=0,d=g.x(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};
t3a=function(a,b){b=WY(a,b)+1;return b<a.length?b:-1};
u3a=function(a,b){return WY(a,b)-1};
v3a=function(a,b){return new g.BE(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
x3a=function(a,b,c,d,e,f,h,l){g.dG.call(this);var m=this;this.api=a;this.contextMenu=c;this.Sg=d;this.ze=e;this.j=f;this.L=h;this.progressBar=l;this.G=new g.qp(function(){w3a(m,!1)},1E3);
this.B="";this.C={cL:!1};this.D=!1;g.P(this,this.G);this.T(b,"mousedown",function(){XY(m,!1)});
this.T(c.element,"mousedown",function(){XY(m,!1)});
this.T(b,"keydown",this.DZ);this.T(c.element,"keydown",this.DZ);this.T(b,"keyup",this.EZ);this.T(c.element,"keyup",this.EZ)};
y3a=function(a,b){return b<0?0:Math.floor(Math.min(b,a.api.getDuration())*1E3)};
YY=function(a,b,c){var d=a.api.getCurrentTime(),e=y3a(a,d);a=y3a(a,d+b);return{startMediaTimeMs:e,endMediaTimeMs:a,seekSource:c}};
z3a=function(a){var b,c=(b=a.api.getVideoData())==null?void 0:b.gg();return a.api.getPresentingPlayerType(c)!==2};
XY=function(a,b){a.D=b;g.Cp(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Cp(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
$Y=function(a,b,c,d){var e=g.nY(a.api.Bb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.ZY.length;h++){var l=g.ZY[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);w3a(a,!0);a.G.start()}};
w3a=function(a,b){g.nY(a.api.Bb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.aZ=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-button","ytp-overflow-button"],Y:{title:"More","aria-haspopup":"true","aria-owns":b.element.id},X:[{J:"div",S:"ytp-overflow-icon",X:[{J:"svg",Y:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},X:[{J:"path",Y:{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.K=a;this.Fi=b;this.j=this.visible=!1;a.createClientVe(this.element,
this,16499);this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"fullscreentoggled",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();hS(a,this.element,this);this.listen("click",function(){a.logClick(c.element);vS(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
A3a=function(a){g.uS.call(this,a,{J:"div",S:"ytp-overflow-panel",Y:{id:Ix(),role:"dialog"},X:[{J:"div",S:"ytp-overflow-panel-content",X:[{J:"div",S:"ytp-overflow-panel-action-buttons",ya:"{{buttons}}"}]},{J:"button",Ka:["ytp-overflow-panel-close","ytp-button"],Y:{title:"Close"},X:[g.Vx()]}]},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.Pb);hS(a,this.closeButton,this);this.listen("click",
this.O6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
B3a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
C3a=function(a,b){a=g.x(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.yc(b)};
D3a=function(a,b,c){var d=g.dY(b,c),e=d.uh("default.jpg");g.S.call(this,{J:"a",Ka:["ytp-video-menu-item","ytp-button"],Y:{role:"menuitemradio","aria-label":d.title,href:a.V().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},X:[{J:"div",S:"ytp-video-menu-item-index",ya:String(c+1)},{J:"div",S:"ytp-video-menu-item-now-playing",ya:"\u25b6"},{J:"div",S:"ytp-video-menu-item-thumbnail",Y:{style:e?"background-image: url("+e+");":void 0}},{J:"div",S:"ytp-video-menu-item-title",ya:d.title},{J:"div",
S:"ytp-video-menu-item-author",ya:d.author}]});this.api=a;this.index=c;this.listen("click",this.onClick)};
E3a=function(a){g.uS.call(this,a,{J:"div",S:"ytp-playlist-menu",Y:{role:"dialog",id:Ix()},X:[{J:"div",S:"ytp-playlist-menu-header",X:[{J:"div",S:"ytp-playlist-menu-title",X:[a.V().C?{J:"span",S:"ytp-playlist-menu-title-name",ya:"{{title}}"}:{J:"a",S:"ytp-playlist-menu-title-name",Y:{href:"{{playlisturl}}"},ya:"{{title}}"},{J:"button",Ka:["ytp-playlist-menu-close","ytp-button"],Y:{"aria-label":"Close"},X:[g.Vx()]}]},{J:"div",S:"ytp-playlist-menu-subtitle",ya:"{{subtitle}}"}]},{J:"div",S:"ytp-playlist-menu-items",
Y:{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.dG(this);this.playlistData=[];this.T(this.Da("ytp-playlist-menu-close"),"click",this.Pb);var b=this.Da("ytp-playlist-menu-title-name");a.V().C||(this.C=this.T(b,"click",this.sda));g.P(this,this.j);this.hide()};
bZ=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-playlist-menu-button","ytp-button"],Y:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"Playlist"},X:[{J:"div",S:"ytp-playlist-menu-button-icon",X:[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}]},{J:"div",S:"ytp-playlist-menu-button-text",ya:"{{text}}"}]});var c=this;this.api=a;this.playlist=null;this.visible=!1;a.createClientVe(this.element,this,70344);this.T(a,"videodatachange",this.j);this.T(a,"videoplayerreset",this.j);this.T(a,"onPlaylistUpdate",this.j);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);this.hide();this.j();hS(a,this.element,this);this.listen("click",function(){a.logClick(c.element);vS(b,c.element,!1)})};
F3a=function(a,b){g.S.call(this,{J:"div",S:"ytp-promotooltip-wrapper",X:[{J:"div",S:"ytp-promotooltip-container",X:[{J:"div",S:"ytp-promotooltip-content",X:[{J:"div",S:"ytp-promotooltip-title",ya:"{{title}}"},{J:"div",S:"ytp-promotooltip-details",ya:"{{details}}"}]},{J:"div",S:"ytp-promotooltip-buttons",X:[{J:"div",S:"ytp-promotooltip-dismiss-button",ya:"{{dismissButtonText}}",Y:{tabindex:"0"}},{J:"div",S:"ytp-promotooltip-accept-button",ya:"{{acceptButtonText}}",Y:{tabindex:"0","aria-haspopup":"true"}}]}]},
{J:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.K=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.Z=this.G=this.W=this.L=!1;this.Qc={YH:function(d){c.YH(d)}};
g.Mx(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.j=!!a)this.K.createServerVe(this.element,this,!0),this.K.setTrackingParams(this.element,a);this.T(b,"onShowControls",this.Q6);this.T(b,"onHideControls",this.P6);this.T(b,"resize",this.lc);this.T(this.acceptButton,"click",this.Uaa);this.T(this.dismissButton,"click",this.Aba);this.T(document,"click",this.R6)};
G3a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=b.length>0?b[0]:null;var c=g.gh("ytp-chrome-bottom"),d=g.gh("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.L=!(d==null||!d.contains(b));a.W=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b};
J3a=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.Nm(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.Jx({J:"span",S:"ytp-promotooltip-details-icon",
X:[H3a[a.tooltipRenderer.targetId]]});g.P(a,h);for(var l=[],m=g.x(d),n=m.next();!n.done;n=m.next())n=new g.Jx({J:"span",S:"ytp-promotooltip-details-component",ya: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.ph(a.details),e=g.x(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Nm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.Q(e,g.YJ))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.Q(e,g.YJ).text.runs[0].text&&(a.update({acceptButtonText:g.Q(e,g.YJ).text.runs[0].text.toString()}),f=!0);g.Nm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,y;((t=g.Q(p,g.YJ))==null?0:(u=t.text)==null?0:(y=u.runs)==null?0:y.length)&&g.Q(p,g.YJ).text.runs[0].text&&(a.update({dismissButtonText:g.Q(p,g.YJ).text.runs[0].text.toString()}),
q=!0);g.Nm(a.dismissButton,q)}c&&(a.B=c);a.targetElement=G3a(a);a.G=!1;a.K.V().N("web_player_hide_nitrate_promo_tooltip")||g.Mx(a,!0);I3a(a);a.Eb&&!a.Z&&(a.Z=!0,a.Qc.YH(0));a.j&&a.K.logVisibility(a.element,a.Eb)}};
cZ=function(a){g.Mx(a,!1);a.j&&a.K.logVisibility(a.element,a.Eb)};
K3a=function(a){var b,c,d,e=((b=g.Q(a.acceptButton,g.YJ))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.Q(a.acceptButton,g.YJ).text.runs[0].text,f,h,l;b=((f=g.Q(a.dismissButton,g.YJ))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.Q(a.dismissButton,g.YJ).text.runs[0].text;return e||b};
I3a=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.K.isMinimized())g.Mx(a,!1);else if(b=g.Mm(a.targetElement),b.width&&b.height){a.K.Vy(a.element,a.targetElement);var d=a.K.qb().getPlayerSize().height;c=g.Mm(a.Da("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.W||(d=a.K.hn().height-c-b.height-12,a.element.style.top=d+"px");
d=a.Da("ytp-promotooltip-pointer");var e=g.Km(a.targetElement,a.K.getRootNode()),f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.K.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.Mx(a,!1)};
dZ=function(a){g.S.call(this,{J:"button",Ka:["ytp-replay-button","ytp-button"],Y:{title:"Replay"},X:[g.ay()]});this.K=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.xd(a.getPlayerStateObject());hS(this.K,this.element,this)};
eZ=function(a,b){b=b===void 0?240:b;g.S.call(this,{J:"button",Ka:["ytp-button","ytp-search-button"],Y:{title:"Search","data-tooltip-opaque":String(g.HP(a.V()))},X:[{J:"div",S:"ytp-search-icon",ya:"{{icon}}"},{J:"div",S:"ytp-search-title",ya:"Search"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",S:"ytp-svg-fill",Y:{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);hS(a,this.element,this)};
g.fZ=function(a,b,c,d){d=d===void 0?240:d;g.S.call(this,{J:"button",Ka:["ytp-button","ytp-share-button"],Y:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.HP(a.V()))},X:[{J:"div",S:"ytp-share-icon",ya:"{{icon}}"},{J:"div",S:"ytp-share-title",ya:"Share"}]});this.api=a;this.Ve=b;this.B=c;this.C=d;this.j=this.visible=!1;this.tooltip=this.Ve.Ze();a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ta);
this.T(a,"videoplayerreset",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.Ta();this.addOnDisposeCallback(g.gS(this.tooltip,this.element))};
L3a=function(a){var b=a.api.V(),c=a.api.getVideoData(),d=g.HP(b)&&g.nS(a.api)&&g.T(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.Oq||d||g.QR(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
M3a=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Ve.Sr(),vS(a.B,a.element,!1)):g.ex(b))};
O3a=function(a,b){var c=Ix(),d=a.V();c={J:"div",S:"ytp-share-panel",Y:{id:Ix(),role:"dialog","aria-labelledby":c},X:[{J:"div",S:"ytp-share-panel-inner-content",X:[{J:"div",S:"ytp-share-panel-title",Y:{id:c},ya:"Share"},{J:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],Y:{href:"{{link}}",target:d.Z,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ya:"{{linkText}}"},{J:"label",S:"ytp-share-panel-include-playlist",X:[{J:"input",S:"ytp-share-panel-include-playlist-checkbox",Y:{type:"checkbox",
checked:"true"}},"Include playlist"]},{J:"div",S:"ytp-share-panel-loading-spinner",X:[aOa()]},{J:"div",S:"ytp-share-panel-service-buttons",ya:"{{buttons}}"},{J:"div",S:"ytp-share-panel-error",ya:"An error occurred while retrieving sharing information. Please try again later."}]},{J:"button",Ka:["ytp-share-panel-close","ytp-button"],Y:{title:"Close"},X:[g.Vx()]}]};g.uS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Ze();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.Pb);this.addOnDisposeCallback(g.gS(this.tooltip,this.closeButton));this.D=this.Da("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Ta);this.j=this.Da("ytp-share-panel-link");this.addOnDisposeCallback(g.gS(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=N3a(e,h);
g.eT(h,e.api,f)&&e.api.gb("SHARE_CLICKED")});
this.listen("click",this.S6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.vaa);this.hide()};
Q3a=function(a,b){P3a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&d<2;e={sy:void 0,Ln:void 0},f++){e.sy=c[f];a:switch(e.sy.img||e.sy.iconId){case "facebook":var h={J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{J:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",Y:{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={J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{J:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",Y:{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.sy.sname||e.sy.serviceName;e.Ln=new g.S({J:"a",Ka:["ytp-share-panel-service-button","ytp-button"],Y:{href:e.sy.url,target:"_blank",title:l},X:[h]});e.Ln.listen("click",function(p){return function(q){var r=p.sy.url;if(g.Zy(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 Mf?r:g.Sf(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(",");Tb()&&t.navigator&&t.navigator.standalone&&r&&r!="_self"?(H=g.mh("A"),g.Uf(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.Zf(t,"",r,H),u=g.Of(y),t&&(t.opener=null,u===""&&(u="javascript:''"),u=Xf('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+
kg(u)+'">'),(y=t.document)&&y.write&&(y.write(g.Yf(u)),y.close()))):((t=g.Zf(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.Ln.addOnDisposeCallback(g.gS(a.tooltip,e.Ln.element));l==="Facebook"?a.api.createClientVe(e.Ln.element,e.Ln,164504):l==="Twitter"&&a.api.createClientVe(e.Ln.element,e.Ln,164505);a.T(e.Ln.element,"click",function(p){return function(){a.api.logClick(p.Ln.element)}}(e));
a.api.logVisibility(e.Ln.element,!0);a.C.push(e.Ln);d++}}var m=b.more||b.moreLink,n=new g.S({J:"a",Ka:["ytp-share-panel-service-button","ytp-button"],X:[{J:"span",S:"ytp-share-panel-service-button-more",X:[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},X:[{J:"rect",Y:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",Y:{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"}}]}]}],Y:{href:m,target:"_blank",title:"More"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=N3a(a,q);g.eT(q,a.api,p)&&a.api.gb("SHARE_CLICKED")});
n.addOnDisposeCallback(g.gS(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)};
N3a=function(a,b){var c={};g.HP(a.api.V())&&(g.YR(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.cj(b,c));return b};
P3a=function(a){for(var b=g.x(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.jb(c);a.C=[]};
gZ=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0};
R3a=function(a,b){a.startSec+=b;a.endSec+=b};
T3a=function(a){tX.call(this,a);this.B=this.j=this.isContentForward=this.W=!1;S3a(this);this.T(this.K,"changeProductsInVideoVisibility",this.pca);this.T(this.K,"videodatachange",this.onVideoDataChange)};
U3a=function(a){a.L&&a.Ma.element.removeChild(a.L.element);a.L=void 0};
W3a=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.Q(c,V3a))==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({J:"img",
S:"ytp-suggested-action-product-thumbnail",Y:{alt:"",src:c}});g.P(a,c);return c})};
X3a=function(a,b){a.isContentForward=b;g.Cp(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
hZ=function(a){var b=a.isContentForward&&!a.oN();g.Cp(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Cp(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)};
iZ=function(a,b,c){return new g.BE(a*1E3,b*1E3,{priority:9,namespace:c})};
Y3a=function(a){a.K.df("shopping_overlay_visible");a.K.df("shopping_overlay_preview_collapsed");a.K.df("shopping_overlay_preview_expanded");a.K.df("shopping_overlay_expanded")};
S3a=function(a){a.T(a.K,g.DE("shopping_overlay_visible"),function(){a.Sf(!0)});
a.T(a.K,g.EE("shopping_overlay_visible"),function(){a.Sf(!1)});
a.T(a.K,g.DE("shopping_overlay_expanded"),function(){a.ra=!0;sX(a)});
a.T(a.K,g.EE("shopping_overlay_expanded"),function(){a.ra=!1;sX(a)});
a.T(a.K,g.DE("shopping_overlay_preview_collapsed"),function(){a.j=!0;hZ(a)});
a.T(a.K,g.EE("shopping_overlay_preview_collapsed"),function(){a.j=!1;hZ(a)});
a.T(a.K,g.DE("shopping_overlay_preview_expanded"),function(){a.B=!0;hZ(a)});
a.T(a.K,g.EE("shopping_overlay_preview_expanded"),function(){a.B=!1;hZ(a)})};
a4a=function(a){g.S.call(this,{J:"div",S:"ytp-shorts-title-channel",X:[{J:"a",S:"ytp-shorts-title-channel-logo",Y:{href:"{{channelLink}}",target:a.V().Z,"aria-label":"{{channelLogoLabel}}"}},{J:"div",S:"ytp-shorts-title-expanded-heading",X:[{J:"div",S:"ytp-shorts-title-expanded-title",X:[{J:"a",ya:"{{expandedTitle}}",Y:{href:"{{channelTitleLink}}",target:a.V().Z,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.Zf(window,Z3a(b));c.preventDefault()});
a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Zf(window,Z3a(b));c.preventDefault()});
$3a(this);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
$3a=function(a){if(!a.api.V().uc){var b=a.api.getVideoData(),c=new g.LY("Subscribe",null,"Subscribed",null,!0,!1,b.Bm,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)}};
Z3a=function(a){var b=a.api.V(),c=a.api.getVideoData();c=g.jQ(b)+c.Kb;if(!g.HP(b))return c;b={};g.YR(a.api,"addEmbedsConversionTrackingParams",[b]);return g.cj(c,b)};
jZ=function(a){g.uS.call(this,a,{J:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],X:[{J:"div",S:"ytp-skip-intro-button-text",ya:"Skip Intro"}]},100);var b=this;this.C=!1;this.j=new g.qp(function(){b.hide()},5E3);
this.zf=this.Mj=NaN;g.P(this,this.j);this.L=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.K.getCurrentTime();c>b.Mj/1E3&&c<b.zf/1E3&&b.show()};
this.T(this.K,"videodatachange",function(c,d){b.Bu(c,d)});
this.T(this.element,"click",function(){b.K.seekTo(b.zf/1E3)});
this.hide()};
kZ=function(a){g.S.call(this,{J:"button",Ka:["ytp-airplay-button","ytp-button"],Y:{title:"AirPlay","data-priority":"9"},ya:"{{icon}}"});this.K=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Ta);this.T(a,"airplayavailabilitychange",this.Ta);this.Ta();hS(a,this.element,this)};
c4a=function(a){g.S.call(this,{J:"div",S:"ytp-gradient-bottom"});this.canvas=g.mh("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;b4a(this,a.qb().getPlayerSize().height)};
b4a=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){}}}};
lZ=function(a,b,c,d){g.S.call(this,{J:"div",S:"ytp-chapter-container",X:[{J:"button",Ka:["ytp-chapter-title","ytp-button"],X:[{J:"span",Y:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",ya:"\u2022"},{J:"div",S:"ytp-chapter-title-content",ya:"{{title}}",Y:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:d}},{J:"div",S:"ytp-chapter-title-chevron",X:[{J:"svg",Y:{height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Y:{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.K=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Z=this.Da("ytp-chapter-container");this.j=this.Da("ytp-chapter-title");this.qa=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.K.getVideoData());this.T(a,"videodatachange",this.updateVideoData);this.T(this.Z,"click",this.onClick);this.T(a,g.DE(c),this.Uc);this.T(a,"onLoopRangeChange",this.Uc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.K.N("web_disable_channels_chapter_entrypoint")&&
g.PP(this.K.V()))&&g.Cp(this.j,"ytp-profile-page",!0);this.K.N("web_player_updated_entrypoint")&&g.Cp(this.element,"ytp-xs-mono-button-style",!0);g.HP(this.K.V())||a||hS(this.K,this.qa,this)};
mZ=function(a,b){lZ.call(this,a,b,"chapterCueRange","View chapter")};
d4a=function(a,b,c,d,e){var f=b.By/b.rows,h=Math.min(c/(b.MG/b.columns),d/f),l=b.MG*h,m=b.By*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"};
e4a=function(a){return a.N("web_big_boards")?a.isMinimized()?a.N("web_big_boards_enable_in_miniplayer"):a.isInline()?a.N("web_big_boards_enable_in_inline"):!0:!1};
nZ=function(a,b){g.S.call(this,{J:"div",S:"ytp-storyboard-framepreview",X:[{J:"div",S:"ytp-storyboard-framepreview-timestamp",ya:"{{timestamp}}"},{J:"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.dG(this);this.j=new g.Cy(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.vx()});
e4a(this.api)&&g.yp(this.element,"ytp-storyboard-framepreview-big-boards")};
f4a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){f4a(a,a.api.Nk())}),a.events.T(a.api,"progresssync",a.Jg),a.events.T(a.api,"appresize",a.L)),a.C=NaN,g4a(a),a.j.show(200)):(c&&g.Vs(a.events),a.j.hide(),a.j.stop())};
g4a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.qb().getPlayerSize(),e=OQ(b,d.width);e=ELa(b,e,c);a.update({timestamp:g.Yy(c)});e!==a.C&&(a.C=e,CLa(b,e,d.width),b=ALa(b,e,d.width),d4a(a.D,b,d.width,d.height))};
h4a=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-fullscreen-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.K=a;this.Ve=b;this.message=null;this.j=g.gS(this.Ve.Ze(),this.element);this.B=new g.qp(this.b8,2E3,this);g.P(this,this.B);this.T(a,"fullscreentoggled",this.pm);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"resize",this.Ta);this.listen("click",this.onClick);g.Js()&&
(b=this.K.qb(),this.T(b,joa(),this.DS),this.T(b,ioa(document),this.Ny));a.V().Db||a.V().W||this.disable();a.createClientVe(this.element,this,139117);this.Ta();this.pm(a.isFullscreen())};
oZ=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-button","ytp-jump-button"],Y:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[b>0?{J:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],Y:{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"}},
{J:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"7.05",y:"15.05"}}]}:{J:"svg",Y:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],Y:{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"}},
{J:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],Y:{x:"6.5",y:"15"}}]}]});var c=this;this.K=a;this.j=b;this.B=new g.qp(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.K.createClientVe(this.element,this,36843):this.K.createClientVe(this.element,this,36844);var d=g.OE(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);hS(a,this.element,
this)};
i4a=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.K.logVisibility(a.element,b);a.K.ri()};
pZ=function(a,b){lZ.call(this,a,b,"timedMarkerCueRange","View key moments");this.T(a,g.EE("timedMarkerCueRange"),this.Uc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
j4a=function(a){var b,c=(b=a.K.getVideoData())==null?void 0:b.ib;if(c)for(a=a.D.Pa,c=g.x(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}};
qZ=function(a){g.S.call(this,{J:"button",Ka:["ytp-miniplayer-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},X:[Ysa()]});this.K=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ta);this.updateValue("title",g.iS(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});hS(a,this.element,this);a.createClientVe(this.element,
this,62946);this.Ta()};
k4a=function(a,b,c){c=c===void 0?!1:c;g.S.call(this,{J:"button",Ka:["ytp-mute-button","ytp-button"],Y:a.V().Va?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ya:"{{icon}}"});this.K=a;this.Fa=c;this.j=null;this.D=this.Z=this.G=this.ra=NaN;this.Ba=this.L=null;this.C=[];this.B=[];this.visible=!1;this.W=null;c=this.K.V();this.updateValue("icon",dy());this.tooltip=b.Ze();this.j=new g.Jx({J:"svg",Y:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"defs",X:[{J:"clipPath",Y:{id:"ytp-svg-volume-animation-mask"},X:[{J:"path",Y:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{J:"path",Y:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{J:"path",S:"ytp-svg-volume-animation-mover",Y:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{J:"clipPath",Y:{id:"ytp-svg-volume-animation-slash-mask"},X:[{J:"path",S:"ytp-svg-volume-animation-mover",Y:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{J:"path",Gc:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Y:{"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"}},{J:"path",Gc:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Y:{"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.L=this.j.Da("ytp-svg-volume-animation-speaker");
this.Ba=this.L.getAttribute("d");this.C=g.eh("ytp-svg-volume-animation-mover",this.j.element);this.B=g.eh("ytp-svg-volume-animation-hider",this.j.element);this.Ea=new TX;g.P(this,this.Ea);this.qa=new TX;g.P(this,this.qa);this.listen("click",this.bca);this.T(a,"appresize",this.IW);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.gS(b.Ze(),this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),
d=new g.uS(a,{J:"span",Ka:["ytp-popup","ytp-generic-popup"],Y:{tabindex:"0"},X:[b[0],{J:"a",Y:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Z},ya:b[2]},b[4]]},100,!0),g.P(this,d),d.hide(),d.subscribe("show",function(e){a.nF(d,e)}),g.qS(a,d.element,4));
this.message=d;a.createClientVe(this.element,this,28662);this.IW(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
n4a=function(a,b){a.ra=b;var c=a.Ba;b&&(c+=H0a(l4a,m4a,b));a.L.setAttribute("d",c)};
o4a=function(a,b){a.Z=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=dy():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.W&&(a.updateValue("icon",e),a.W=e)};
g.rZ=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-play-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ya:"{{icon}}"});this.K=a;this.j=null;this.transition=new TX;this.tooltip=b.Ze();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.xd(a.getPlayerStateObject());this.listen("click",this.xt,this);this.addOnDisposeCallback(g.gS(b.Ze(),this.element))};
p4a=function(a){switch(a){case 1:return $x();case 2:return Wsa();case 3:return g.ay();case 4:return $sa();default:return null}};
g.sZ=function(a,b,c){g.S.call(this,{J:"a",Ka:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],Y:{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}}"},X:[c?Xx():Zsa()]});var d=this;this.K=a;this.j=c;this.playlist=this.videoData=null;this.L=
!1;this.D=this.G=this.B=null;this.C=!1;this.tooltip=b.Ze();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.vO);this.T(a,"mdxpreviousnextchange",function(){q4a(d);d.vO()});
this.onVideoDataChange()};
r4a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
s4a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&a.K.getCurrentTime()>=3&&a.K.getPresentingPlayerType()!==2};
t4a=function(a){var b=mS(a.K.Bb());return b?a.j?b.Xl():b.mq():!1};
q4a=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.Xl();c=g.nS(a.K)&&(!a.j||c);var d=a.j&&g.rS(a.K),e=t4a(a),f=a.j&&a.K.getPresentingPlayerType()===5,h=g.iS(a.K,"Next","SHIFT+n"),l=g.iS(a.K,"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.dY(a.playlist,a.j?j1a(a.playlist):k1a(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.K.V().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.Yy(m.lengthSeconds):null;b.preview=m.uh("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.lR(m))b.url=l.Wl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.Yy(l.lengthSeconds):
null,b.preview=l.uh("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.L=!!b.url;d||c||a.C||e||f?a.B||(a.B=g.gS(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Nc(a.G),a.G=null);a.tooltip.ri()};
v4a=function(a,b){g.S.call(this,{J:"div",S:"ytp-fine-scrubbing",X:[{J:"div",S:"ytp-fine-scrubbing-draggable",X:[{J:"div",S:"ytp-fine-scrubbing-thumbnails",Y:{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}}"}}]},{J:"div",Y:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{J:"div",S:"ytp-fine-scrubbing-seek-time",Y:{"aria-hidden":"true"},
ya:"{{seekTime}}"},{J:"div",S:"ytp-fine-scrubbing-play",X:[$x()],Y:{title:"Play from this position",role:"button"}},{J:"div",S:"ytp-fine-scrubbing-dismiss",X:[g.Vx()],Y:{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.Ba=this.Da("ytp-fine-scrubbing-draggable");this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.La=this.j=0;this.Ma=void 0;
this.qa=NaN;this.Pa=this.Z=this.C=this.W=0;this.D=[];this.interval=this.frameCount=0;this.L=160;this.scale=1;this.Va=0;this.isEnabled=this.Fa=!1;u4a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.gS(b,this.dismissButton));this.addOnDisposeCallback(g.gS(b,this.playButton));this.Ea=new g.HX(this.Ba,!0);this.Ea.subscribe("dragstart",this.xO,this);this.Ea.subscribe("dragmove",this.wO,this);this.Ea.subscribe("dragend",this.U6,this);this.T(a,"SEEK_COMPLETE",this.XB);a.N("web_fix_fine_scrubbing_false_play")&&
this.T(a,"rootnodemousedown",function(d){c.ra=d});
this.G.addEventListener("keydown",function(){});
g.P(this,this.Ea);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)};
u4a=function(a,b){var c=g.Yy(b),d=g.OE("Seek to $PROGRESS",{PROGRESS:g.Yy(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
w4a=function(a){a.qa=NaN;a.Z=0;a.W=a.C};
z4a=function(a){var b=a.api.Nk();if(b){var c=90*a.scale,d=OQ(b,160*a.scale);if(b=b.levels[d]){a.L=b.width;if(!a.D.length){d=[];for(var e=PQ(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.qe(l),column:0,columns:p,row:n,rows:m,MG:b.width*p,By:b.height*m};d.push(q);h-=p;if(h<=1)break}a.D=d;a.frameCount=b.uK();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 x4a,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.L*a.scale,l=f.By/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.By/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";tZ(a,a.api.getCurrentTime());for(c=a.api.getVideoData().vl;a.B.length>c.length;)d=void 0,(d=a.B.pop())==null||d.dispose();
for(;a.B.length<c.length;)d=new y4a,a.B.push(new y4a),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.Bm(a.B[d].element,"transform","translateX("+e%b.rows*a.L*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ha(a.thumbnails[f].element);a.Fa=!0}}};
tZ=function(a,b){a.ra&&(a.ra.iB=!0);a.update({seekTime:g.Yy(b)});var c=a.L*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.xg(b,A4a(a),a.j/2);a.W=b;a.C=a.W;g.Bm(a.Ba,"transform","translateX("+(a.W-a.j/2)+"px)");g.Bm(a.Ba,"padding","0px "+a.j/2+"px");g.Bm(a.G,"position","relative")};
B4a=function(a,b){var c=a.L*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
A4a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.L*a.scale)-a.j/2)};
x4a=function(){g.S.call(this,{J:"div",S:"ytp-fine-scrubbing-thumbnail"})};
y4a=function(){g.S.call(this,{J:"div",S:"ytp-fine-scrubbing-chapter-title",X:[{J:"div",S:"ytp-fine-scrubbing-chapter-title-content",ya:"{{chapterTitle}}"}]})};
C4a=function(a){g.S.call(this,{J:"div",S:"ytp-heat-map-chapter",X:[{J:"svg",S:"ytp-heat-map-svg",Y:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},X:[{J:"defs",X:[{J:"clipPath",Y:{id:"{{id}}"},X:[{J:"path",S:"ytp-heat-map-path",Y:{d:"",fill:"white"}}]}]},{J:"rect",S:"ytp-heat-map-graph",Y:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",S:"ytp-heat-map-hover",Y:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{J:"rect",S:"ytp-heat-map-play",Y:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.L=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.Be=!1;this.j=60;a=""+g.Va(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.N("web_heat_map_v2")&&g.yp(this.api.getRootNode(),"ytp-heat-map-v2")};
D4a=function(a,b){b>0&&(a.j=b,a.L.style.height=a.j+"px")};
uZ=function(){g.S.call(this,{J:"div",S:"ytp-chapter-hover-container",X:[{J:"div",S:"ytp-progress-bar-padding"},{J:"div",S:"ytp-progress-list",X:[{J:"div",Ka:["ytp-play-progress","ytp-swatch-background-color"]},{J:"div",S:"ytp-progress-linear-live-buffer"},{J:"div",S:"ytp-load-progress"},{J:"div",S:"ytp-hover-progress"},{J:"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.L=this.Da("ytp-play-progress");this.B=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
vZ=function(a,b){g.Bm(a.j,"width",b)};
E4a=function(a,b){g.Bm(a.j,"margin-right",b+"px")};
F4a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
G4a=function(){g.S.call(this,{J:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.xZ=function(a,b){g.Nx.call(this,{J:"div",S:"ytp-progress-bar-container",Y:{"aria-disabled":"true"},X:[{J:"div",Ka:["ytp-heat-map-container"],X:[{J:"div",S:"ytp-heat-map-edu"}]},{J:"div",Ka:["ytp-progress-bar"],Y:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},X:[{J:"div",S:"ytp-chapters-container"},{J:"div",S:"ytp-timed-markers-container"},{J:"div",S:"ytp-clip-start-exclude"},
{J:"div",S:"ytp-clip-end-exclude"},{J:"div",S:"ytp-scrubber-container",X:[{J:"div",Ka:["ytp-scrubber-button","ytp-swatch-background-color"],X:[{J:"div",S:"ytp-scrubber-pull-indicator"},{J:"img",Ka:["ytp-decorated-scrubber-button"]}]}]}]},{J:"div",Ka:["ytp-fine-scrubbing-container"],X:[{J:"div",S:"ytp-fine-scrubbing-edu"}]},{J:"div",S:"ytp-bound-time-left",ya:"{{boundTimeLeft}}"},{J:"div",S:"ytp-bound-time-right",ya:"{{boundTimeRight}}"},{J:"div",S:"ytp-clip-start",Y:{title:"{{clipstarttitle}}"},ya:"{{clipstarticon}}"},
{J:"div",S:"ytp-clip-end",Y:{title:"{{clipendtitle}}"},ya:"{{clipendicon}}"}]});this.api=a;this.Rg=!1;this.He=this.Oh=this.Ua=this.W=this.lh=0;this.Xd=null;this.La={};this.Sb={};this.clipEnd=Infinity;this.Db=this.Da("ytp-clip-end");this.Ac=new g.HX(this.Db,!0);this.uc=this.Da("ytp-clip-end-exclude");this.Jc=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Ib=this.Da("ytp-clip-start");this.Pc=new g.HX(this.Ib,!0);this.qa=this.ib=0;this.progressBar=this.Da("ytp-progress-bar");this.tb={};this.Pa=
{};this.Vb=this.Da("ytp-chapters-container");this.ag=this.Da("ytp-timed-markers-container");this.j=[];this.L=[];this.yf={};this.Xf=null;this.Ba=-1;this.rb=this.Ea=0;this.Z=null;this.Se=this.Da("ytp-scrubber-button");this.Dd=this.Da("ytp-decorated-scrubber-button");this.Ph=this.Da("ytp-scrubber-container");this.eb=new g.Ag;this.Yf=new F4a;this.C=new gz(0,0);this.Hb=null;this.D=this.zf=!1;this.Zf=null;this.ra=this.Da("ytp-heat-map-container");this.Fd=this.Da("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=
[];this.Za=this.Da("ytp-fine-scrubbing-container");this.kd=this.Da("ytp-fine-scrubbing-edu");this.B=void 0;this.Fa=this.Gd=this.Ma=!1;this.tooltip=b.Ze();this.addOnDisposeCallback(g.gS(this.tooltip,this.Db));g.P(this,this.Ac);this.Ac.subscribe("hoverstart",this.E0,this);this.Ac.subscribe("hoverend",this.D0,this);this.T(this.Db,"click",this.VM);this.addOnDisposeCallback(g.gS(this.tooltip,this.Ib));g.P(this,this.Pc);this.Pc.subscribe("hoverstart",this.E0,this);this.Pc.subscribe("hoverend",this.D0,this);
this.T(this.Ib,"click",this.VM);H4a(this);this.T(a,"resize",this.lc);this.T(a,"presentingplayerstatechange",this.p$);this.T(a,"videodatachange",this.Bu);this.T(a,"videoplayerreset",this.o$);this.T(a,"cuerangesadded",this.gga);this.T(a,"cuerangesremoved",this.vea);this.T(a,"onLoopRangeChange",this.JW);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.DE("timedMarkerCueRange"),this.rda);this.T(a,"updatemarkervisibility",this.U3);var c;((c=a.getVideoData())==null?0:c.gg())&&this.T(a,"serverstitchedvideochange",
this.hga);this.updateVideoData(a.getVideoData(),!0);this.JW(a.getLoopRange());wZ(this)&&!this.B&&(this.B=new v4a(this.api,this.tooltip),a=g.Jm(this.element).x||0,this.B.lc(a,this.W),this.B.Ha(this.Za),g.P(this,this.B),this.T(this.B.dismissButton,"click",this.vx),this.T(this.B.playButton,"click",this.dQ),this.T(this.B.element,"dblclick",this.dQ));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Fd,this,140127,!0);this.api.createClientVe(this.kd,this,151179,!0);this.api.createClientVe(this.progressBar,
this,38856,!0)};
H4a=function(a){if(a.j.length===0){var b=new uZ;a.j.push(b);g.P(a,b);b.Ha(a.Vb,0)}for(;a.j.length>1;)a.j.pop().dispose();vZ(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
I4a=function(a){var b=b===void 0?NaN:b;var c=new C4a(a.api);a.G.push(c);g.P(a,c);c.Ha(a.ra);b>=0&&(c.element.style.width=b+"px")};
J4a=function(a){for(;a.L.length;)a.L.pop().dispose()};
L4a=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,EQ))==null?void 0:e.playerBar,K4a))==null?void 0:f.chapters};
M4a=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.BE(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.df("chapterCueRange");a.api.hf(c)};
U4a=function(a,b){var c,d=(c=a.tb[b])==null?void 0:c.chapters;d&&(N4a(a,d),a.api.getVideoData().vl=a.j,M4a(a));var e;if((c=(e=a.tb[b])==null?void 0:e.markers)&&b!=="HEATSEEKER"){J4a(a);e=g.x(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new G4a,d=g.Q(d,g.O4a)){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;P4a(a,c)}Q4a(a,
a.L);e=a.L;c=a.yf;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=v3a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.hf(d)}var l;if(b=g.Q((l=a.tb[b])==null?void 0:l.heatmap,R4a)){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&&
I4a(a);f=[];c&&f.push(c);for(var q=g.x(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,S4a))==null?void 0:t.timeRangeStartMillis)!=null?u:-1;y>=h&&y<=p&&f.push(r)}m>0&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;y=d===0;y=y===void 0?!1:y;D4a(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,K=((H=g.Q(q[F],S4a))==null?void 0:H.heatMarkerIntensityScoreNormalized)||0;H=(F+.5)*A;K=100-g.xg(K*100,r/
t*100,u/t*100);F!==0||y||C.push({x:0,y:K});C.push({x:H,y:K});F===q.length-1&&C.push({x:1E3,y:K})}C.push({x:1E3,y:100});q=C;p=p.length===0?"":wva(q);h.C.setAttribute("d",p);h.Be=p!=="";g.Cp(h.api.getRootNode(),"ytp-heat-map",h.Be);g.Cp(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.N("web_player_heat_map_played_bar")&&p!=="");f.length>0&&(c=f[f.length-1])}g.yZ(a);l=[];b=g.x(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.Q(e.value,T4a))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.Qx(m):""});a.heatMarkersDecorations=l}};
P4a=function(a,b){a.L.push(b);g.P(a,b);b.Ha(a.ag,a.ag.children.length)};
Q4a=function(a,b){b=g.x(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=zZ(a,c.timeRangeStartMillis/(a.C.j*1E3),AZ(a));g.Bm(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
N4a=function(a,b){var c=0,d=!1;b=g.x(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.Q(e,V4a)){e=g.Q(e,V4a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.Qx(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 uZ,a.j.push(f),g.P(a,f),f.Ha(a.Vb,a.Vb.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.yZ(a);BZ(a)};
g.yZ=function(a){a.Ea=a.j.length-1;a.rb=0;W4a(a,!0)&&W4a(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){E4a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;vZ(a.j[d],e+"px");break}a.j[c].width=0;vZ(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,vZ(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,vZ(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)};
W4a=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.W>0){for(var h=a.W-(a.D?3:2)*a.Ea,l=a.rb===0?3:h*a.rb,m=g.x(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,E4a(a.j[c],a.D?3:2));g.Cp(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);E4a(p.j[q],0);b&&(a.Ea--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
BZ=function(a){if(a.W){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:PR(d))&&b.airingStart&&b.airingEnd)var e=CZ(a,b.airingStart,b.airingEnd);else if(a.api.getPresentingPlayerType()===2&&a.api.V().N("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)?CZ(a,b.seekableStart,c/1E3):CZ(a,b.seekableStart,b.seekableEnd)}else e=CZ(a,b.seekableStart,b.seekableEnd);f=hz(e,b.loaded,0);b=hz(e,b.current,0);h=a.C.B!==e.B||a.C.j!==e.j;a.C=e;DZ(a,b,f);h&&X4a(a);Y4a(a)}}};
CZ=function(a,b,c){return Z4a(a)?new gz(Math.max(b,a.Hb.startTimeMs/1E3),Math.min(c,a.Hb.endTimeMs/1E3)):new gz(b,c)};
$4a=function(a,b){var c;if(((c=a.Hb)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[WY(a.j,b.startTimeMs)],g.Cp(b.j,"ytp-repeating-chapter",!1)),a.Hb&&(b=a.j[WY(a.j,a.Hb.startTimeMs)],g.Cp(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Cp(d.j,"ytp-exp-chapter-hover-container",!a.Hb)})};
FZ=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(a.j.length>1){c=EZ(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};
GZ=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.Xw())&&g.qr(wx)(void 0,b,a,e,d,void 0)};
a5a=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.W-(a.D?3:2)*a.Ea)<4};
X4a=function(a){a.Se.style.removeProperty("height");for(var b=g.x(Object.keys(a.La)),c=b.next();!c.done;c=b.next())b5a(a,c.value);HZ(a);DZ(a,a.qa,a.ib)};
AZ=function(a){var b=a.eb.x;b=g.xg(b,0,a.W);a.Yf.update(b,a.W);return a.Yf};
JZ=function(a){return(a.D?135:90)-IZ(a)};
IZ=function(a){var b=48,c=a.api.V();a.D?b=54:g.HP(c)&&!c.B&&(b=40);return b};
DZ=function(a,b,c){a.qa=b;a.ib=c;var d=AZ(a),e=a.C.j;var f=a.C;f=f.B+a.qa*f.getLength();var h=g.OE("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Yy(f,!0),DURATION:g.Yy(e,!0)}),l=WY(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.Hb&&a.api.getPresentingPlayerType()!==2&&(e=a.Hb.startTimeMs/1E3,f=a.Hb.endTimeMs/1E3);e=hz(a.C,e,0);l=hz(a.C,f,1);h=a.api.getVideoData();f=g.xg(b,e,l);c=(h==null?
0:g.OR(h))?1:g.xg(c,e,l);b=zZ(a,b,d);g.Bm(a.Ph,"transform","translateX("+b+"px)");KZ(a,d,e,f,"PLAY_PROGRESS");(h==null?0:PR(h))?(b=a.api.getProgressState().seekableEnd)&&KZ(a,d,f,hz(a.C,b),"LIVE_BUFFER"):KZ(a,d,e,c,"LOAD_PROGRESS");if(a.api.N("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}};
KZ=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ea*(a.D?3:2),l=c*h;c=EZ(a,l);var m=d*h;h=EZ(a,m);e==="HOVER_PROGRESS"&&(h=EZ(a,b.j*d,!0),m=b.j*d-c5a(a,b.j*d)*(a.D?3:2));d=Math.max(l-d5a(a,c),0);for(l=c;l<f;l++)a.j[l].Jb(e).style.left=c===l?d+"px":"0";b=zZ(a,a.qa,b);for(f=c;f<h;f++){l=a.j[f].Jb(e);var n=a.j[f].width,p=f===c?n-d:n;LZ(a,l,p,n);e5a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.xg(m-d5a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Jb(e);LZ(a,d,m,f);e5a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)f5a(a,h,e);
for(h=0;h<c;h++)f5a(a,h,e)};
d5a=function(a,b){if(b>=a.j.length)return a.W;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
f5a=function(a,b,c){c=a.j[b].Jb(c);LZ(a,c,0,a.j[b].width)};
e5a=function(a,b,c,d,e,f,h){a.api.N("enable_cairo_refresh_signature_moments_web")&&h==="PLAY_PROGRESS"&&(c=!d||a.api.V().B?1:c/d,a.Jc.clientWidth>0||a.uc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Jc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Bm(b,"background-size",f+"px"),g.Bm(b,"background-position-x",a+"px"))};
LZ=function(a,b,c,d,e){e||a.api.V().B?b.style.width=c+"px":g.Bm(b,"transform","scalex("+(d?c/d:0)+")")};
EZ=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=c5a(a,b)*(a.D?3:2));c=g.x(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};
zZ=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.x(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.Ea)+(a.D?3:2)*(e<0?0:e)+c.D};
c5a=function(a,b){for(var c=a.j.length,d=0,e=g.x(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.g5a=function(a,b,c,d){var e=a.W!==c,f=a.D!==d;a.lh=b;a.W=c;a.D=d;wZ(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);X4a(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.yZ(a);a.B&&f&&wZ(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-IZ(a),a.Za.style.height=c+"px",g.Bm(a.ra,"transform","translateY("+-d+"px)"),g.Bm(a.progressBar,"transform","translateY("+-d+"px)")),z4a(a.B))};
HZ=function(a){var b=!!a.Hb&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Hb?(c=a.Hb.startTimeMs/1E3,d=a.Hb.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&d<a.C.j);var h,l;if(((h=a.Hb)==null?0:h.postId)||((l=a.Hb)==null?void 0:l.type)==="repeatChapter")f=e=!1;g.Cp(a.element,"ytp-loop-range-enabled",b);g.Cp(a.element,"ytp-clip-start-enabled",e);g.Cp(a.element,"ytp-clip-end-enabled",f);b=e?hz(a.C,c,0):0;d=f?hz(a.C,d,1):1;a.Ib.style.left=Math.round(b*1E3)/10+"%";a.Db.style.left=
Math.round(d*1E3)/10+"%";a.Jc.style.width=Math.round(b*1E3)/10+"%";a.uc.style.left=Math.round(d*1E3)/10+"%";a.uc.style.width=Math.round((1-d)*1E3)/10+"%"};
Y4a=function(a){var b;if((b=a.api.getVideoData())==null||!PR(b)){b=AZ(a);KZ(a,b,a.qa,Math.max(b.B,a.qa),"HOVER_PROGRESS");for(var c=EZ(a,b.j*a.qa,!0),d=EZ(a,b.C,!0),e=c;e<=d;e++)g.Cp(a.j[e].B,"ytp-hover-progress-light",b.B>a.qa);g.Cp(a.Se,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.N("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}};
b5a=function(a,b){var c=a.La[b];b=a.Sb[b];var d=AZ(a),e=hz(a.C,c.start/1E3,0),f=Cwa(c,a.D)/d.width;var h=hz(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.xg(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";LZ(a,b,g.xg((h-c)*d.j+d.D,0,d.width),d.width,!0)};
h5a=function(a,b){var c=b.getId();a.La[c]===b&&(g.rh(a.Sb[c]),delete a.La[c],delete a.Sb[c])};
wZ=function(a){var b=g.bQ(a.api.V())&&(a.api.N("web_enable_pip_on_miniplayer")||a.api.N("web_enable_auto_pip")),c;return!((c=a.api.getVideoData())==null?0:c.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()&&(!a.api.mj()||!b)};
MZ=function(a){a.B&&(a.B.disable(),a.Ua=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Za.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
i5a=function(a,b){var c=b/JZ(a)*IZ(a);g.Bm(a.progressBar,"transform","translateY("+-b+"px)");g.Bm(a.ra,"transform","translateY("+-b+"px)");g.Bm(a.Za,"transform","translateY("+c+"px)");a.Za.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=IZ(a)-c+"px")};
j5a=function(a,b){b?a.Z||(a.element.removeAttribute("aria-disabled"),a.Z=new g.HX(a.progressBar,!0),a.Z.subscribe("hovermove",a.sca,a),a.Z.subscribe("hoverend",a.rca,a),a.Z.subscribe("dragstart",a.qca,a),a.Z.subscribe("dragmove",a.uca,a),a.Z.subscribe("dragend",a.tca,a),a.Zf=a.listen("keydown",a.W6)):a.Z&&(a.element.setAttribute("aria-disabled","true"),a.Nc(a.Zf),a.Z.cancel(),a.Z.dispose(),a.Z=null)};
Z4a=function(a){var b;return!((b=a.Hb)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2};
NZ=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-remote-button","ytp-button"],Y:{title:"Play on TV","aria-haspopup":"true","data-priority":"8"},ya:"{{icon}}"});this.K=a;this.Fb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ta);this.T(a,"presentingplayerstatechange",this.Ta);this.T(a,"appresize",this.Ta);a.createClientVe(this.element,this,139118);this.Ta();this.listen("click",this.B,this);hS(a,this.element,this)};
OZ=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-button","ytp-settings-button"],Y:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":Ix(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},X:[g.by()]});this.K=a;this.Fb=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);hS(a,this.element,this);this.K.createClientVe(this.element,
this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())};
k5a=function(a,b){a.B=!!b;a.j(a.K.qb().getPlayerSize())};
PZ=function(a,b){ZS.call(this,"Annotations",g.fT.B4);this.K=a;this.Fb=b;this.j=!1;a.N("web_settings_menu_icons")&&this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.subscribe("select",this.onSelect,this);this.Ta()};
QZ=function(a,b){g.EX.call(this,"Audio track",g.fT.AUDIO,a,b);this.K=a;this.tracks={};g.yp(this.element,"ytp-audio-menu-item");this.countLabel=new g.S({J:"div",X:[{J:"span",ya:"Audio track"},{J:"span",S:"ytp-menuitem-label-count",ya:"{{content}}"}]});a.N("web_settings_menu_icons")&&this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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);g.wS(this,this.countLabel);this.T(a,"videodatachange",this.Ta);this.T(a,"onPlaybackAudioChange",this.Ta);this.Ta()};
RZ=function(a,b){ZS.call(this,"Autoplay",g.fT.G4);this.K=a;this.Fb=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()};
l5a=function(a,b){g.xS.call(this,g.yS({"aria-haspopup":"false"}),0,"More options");this.K=a;this.Fb=b;this.T(this.element,"click",this.onClick);this.Fb.Vc(this)};
m5a=function(a,b){var c;g.bQ(a.V())&&(c={J:"div",S:"ytp-panel-footer-content",X:[{J:"span",ya:"Adjust download quality from your "},{J:"a",S:"ytp-panel-footer-content-link",ya:"Settings",Y:{href:"/account_downloads"}}]});g.EX.call(this,"Quality",g.fT.r7,a,b,void 0,void 0,c);this.K=a;this.Ba={};this.Z={};this.D={};this.Ea=new Set;this.j=this.G=!1;this.L="unknown";this.qa="";this.ra=new g.uv;g.P(this,this.ra);this.G=this.K.N("web_player_use_new_api_for_quality_pullback");this.j=this.K.N("web_player_enable_premium_hbr_playback_cap");
a.N("web_settings_menu_icons")&&this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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.yp(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.PD);this.T(a,"videoplayerreset",this.PD);this.T(a,"onPlaybackQualityChange",this.KW);this.PD();a.createClientVe(this.element,this,137721)};
o5a=function(a,b,c){var d=a.Ba[b],e=g.gG[b];return n5a(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
p5a=function(a,b,c,d,e){var f=(b=a.j?a.D[b]:a.Z[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=n5a(a,h,f||"",e);d&&a.X.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.X.push({J:"div",S:"ytp-premium-label",ya:d});return a};
n5a=function(a,b,c,d){b={J:"span",Ka:d,X:[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.X.push(" "),b.X.push({J:"sup",S:d,ya:e}));return b};
SZ=function(a,b,c,d){g.S.call(this,{J:"div",S:"ytp-input-slider-section",X:[{J:"input",S:"ytp-input-slider",Y:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.L=b;this.W=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)};
q5a=function(a,b){a.j.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.L-a.D)*100+"%")};
TZ=function(a){SZ.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.K=a;this.C=g.mh("P");this.qa=xfa(this.Z,this);g.yp(this.j,"ytp-speedslider");g.yp(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.ra)};
UZ=function(a,b,c,d,e,f,h){g.S.call(this,{J:"div",S:"ytp-slider-section",Y:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{J:"div",S:"ytp-slider",X:[{J:"div",S:"ytp-slider-handle"}]}]});this.W=a;this.Z=b;this.B=c;this.C=d;this.qa=e;this.Fa=f;this.range=this.C-this.B;this.Ma=this.Da("ytp-slider-section");this.D=this.Da("ytp-slider");this.ra=this.Da("ytp-slider-handle");this.L=new g.HX(this.D,
!0);this.j=h?h:c;g.P(this,this.L);this.L.subscribe("dragmove",this.Y6,this);this.T(this.element,"keydown",this.Z6);this.T(this.element,"wheel",this.X6);this.init()};
VZ=function(a){UZ.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.K=a;this.G=g.mh("P");this.Ea=xfa(this.Ba,this);g.yp(this.D,"ytp-speedslider");g.yp(this.G,"ytp-speedslider-text");a=this.G;var b=this.D;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);r5a(this);this.T(this.K,"onPlaybackRateChange",this.updateValues)};
r5a=function(a){a.G.textContent=s5a(a,a.j)+"x"};
s5a=function(a,b){a=Number(g.xg(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))};
t5a=function(a){g.Nx.call(this,{J:"div",S:"ytp-speedslider-component"});a.N("web_settings_use_input_slider")?this.j=new TZ(a):this.j=new VZ(a);g.P(this,this.j);this.element.appendChild(this.j.element)};
u5a=function(a){var b=new t5a(a);uX.call(this,a,b,"Custom");g.P(this,b)};
v5a=function(a,b){var c=new u5a(a);g.EX.call(this,"Playback speed",g.fT.u7,a,b,WZ(a)?void 0:"Custom",WZ(a)?void 0:function(){g.yX(b,c)});
var d=this;this.G=!1;g.P(this,c);this.L=new TZ(a);g.P(this,this.L);a.N("web_settings_menu_icons")&&this.setIcon({J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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.K=a;this.G=!1;this.qa=null;WZ(a)?(this.j=g.OE("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.K.getPlaybackRate().toString()}),this.D=this.K.getPlaybackRate()):this.D=this.j=null;this.Z=this.K.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ta);var e;((e=this.K.getVideoData())==null?0:e.gg())&&this.T(a,"serverstitchedvideochange",this.Ta);this.T(this.L.j,"change",function(){d.G=!0;d.Ta()});
this.Ta()};
x5a=function(a,b){var c=w5a(b);a.j&&(a.G||b===a.D)?(a.Li(a.j),a.Ed(b.toString())):a.Li(c)};
z5a=function(a){a.Ll(a.Z.map(w5a));a.j=null;a.D=null;var b=a.K.getPlaybackRate();if(!a.Z.includes(b)||WZ(a.K))y5a(a,b),a.Li(a.j)};
y5a=function(a,b){a.D=b;a.j=g.OE("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.Z.map(w5a);b.unshift(a.j);a.Ll(b)};
w5a=function(a){return a.toString()};
WZ=function(a){return a.N("web_settings_menu_surface_custom_playback")};
A5a=function(a){return a.N("web_settings_menu_surface_custom_playback")&&a.N("web_settings_use_input_slider")};
C5a=function(a,b,c,d){var e=new g.vX(b,void 0,"Video Override");g.EX.call(this,d.text||"",a,b,c,"Video Override",function(){g.yX(c,e)});
var f=this;g.yp(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();a=d.options;this.settings=g.pc(a,this.LW,this);this.G=e;g.P(this,this.G);b=new g.xS({J:"div",S:"ytp-menuitemtitle",ya:"Allow for a different caption style if specified by the video."},0);g.P(this,b);this.G.Vc(b,!0);this.D=new g.xS({J:"div",S:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{J:"div",S:"ytp-menuitem-label",ya:"On"}]},-1);g.P(this,this.D);this.G.Vc(this.D,!0);this.T(this.D.element,
"click",function(){B5a(f,!0)});
this.j=new g.xS({J:"div",S:"ytp-menuitem",Y:{role:"menuitemradio",tabindex:"0"},X:[{J:"div",S:"ytp-menuitem-label",ya:"Off"}]},-2);g.P(this,this.j);this.G.Vc(this.j,!0);this.T(this.j.element,"click",function(){B5a(f,!1)});
this.Ll(g.Ml(a,this.LW))};
B5a=function(a,b){a.publish("settingChange",a.setting+"Override",!b);a.Fb.rj()};
XZ=function(a,b){g.vX.call(this,a,void 0,"Options");var c=this;this.bv={};for(var d=0;d<g.ZY.length;d++){var e=g.ZY[d],f=new C5a(-d,a,b,e);g.P(this,f);f.subscribe("settingChange",this.Yk,this);this.bv[e.option.toString()]=f;this.Vc(f,!0)}a=new g.xS(g.yS(),-g.ZY.length,"Reset");g.P(this,a);a.listen("click",function(){c.Yk("reset",!0)});
this.Vc(a,!0)};
YZ=function(a,b){g.EX.call(this,"Auto-translate",0,a,b);this.K=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
D5a=function(a,b){a.languages=g.pc(b,a.j,a);a.Ll(g.Ml(b,a.j))};
F5a=function(a,b){var c=new XZ(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.bQ(a.V())&&(e={J:"div",S:"ytp-panel-footer-content",X:[{J:"span",ya:d[0]},{J:"a",S:"ytp-panel-footer-content-link",ya:"Settings",Y:{href:"/account_playback"}},{J:"span",ya:d[1]}]});g.EX.call(this,"Subtitles/CC",g.fT.SUBTITLES,a,b,"Options",function(){g.yX(b,c)},e);
var f=this;this.K=a;this.Fb=b;this.tracks={};this.L=new g.qp(function(){E5a(f,!1)},3E3);
g.P(this,this.L);this.countLabel=new g.S({J:"div",X:[{J:"span",ya:"Subtitles/CC"},{J:"span",S:"ytp-menuitem-label-count",ya:"{{content}}"}]});g.P(this,this.countLabel);g.wS(this,this.countLabel);a.N("web_settings_menu_icons")&&this.setIcon(ZNa.includes("en")?{J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{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"}}]}:{J:"svg",Y:{height:"24",viewBox:"0 0 24 24",width:"24"},X:[{J:"path",Y:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new YZ(a,b);g.P(this,this.j);this.j.subscribe("select",this.a7,this);this.G=c;g.P(this,this.G);this.G.subscribe("settingChange",this.Yk,this);b.subscribe("show",this.cda,this);this.T(a,"videodatachange",this.Ta);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",
this.Ta);this.T(a,"captionschanged",this.Ta);a.createClientVe(this.element,this,127300);this.Ta()};
G5a=function(a){return Object.values(a.tracks).find(function(b){return b.languageCode==="en"&&b.kind==="asr"})};
ZZ=function(a,b){a.K.setOption("captions","track",b)};
E5a=function(a,b){a.K.setOption("captions","sampleSubtitles",b)};
H5a=function(a){g.xX.call(this,a,"ytp-settings-menu");var b=this;this.We=new g.vX(this.K);this.CT=this.settingsButton=null;this.isInitialized=this.wM=!1;g.P(this,this.We);this.hide();g.yX(this,this.We);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Sf(c)});
this.T(a,"highlightSettingsMenu",function(){b.wM=!0;b.md()});
this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.wM=!0,b.md(),c==="menu_item_video_quality_advanced")){var d;(d=b.CT)==null||d.open()}})};
I5a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
$Z=function(a,b){g.S.call(this,{J:"button",Ka:["ytp-subtitles-button","ytp-button"],Y:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},X:[$Na()]});this.K=a;this.tooltip=b.Ze();this.T(a,"videodatachange",this.Ta);this.T(a,"appresize",this.Ta);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ta);this.T(a,"onCaptionsTrackListChanged",this.Ta);this.T(a,"captionschanged",this.Ta);
this.K.createClientVe(this.element,this,127299);this.Ta();this.listen("click",this.onClick);this.addOnDisposeCallback(g.gS(b.Ze(),this.element))};
J5a=function(a){return g.nY(a.K.Bb())!=null?g.nY(a.K.Bb()).uU()?!!a.K.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.a_=function(a,b,c){c=c===void 0?350:c;g.S.call(this,{J:"div",Ka:["ytp-time-display","notranslate"],X:[{J:"span",S:"ytp-time-wrapper",X:[{J:"span",S:"ytp-time-clip-icon",ya:"{{clipicon}}"},{J:"span",S:"ytp-time-current",ya:"{{currenttime}}"},{J:"span",S:"ytp-time-separator",ya:" / "},{J:"span",S:"ytp-time-duration",ya:"{{duration}}"}]},{J:"span",S:"ytp-clip-watch-full-video-button-separator",ya:"\u2022"},{J:"span",S:"ytp-clip-watch-full-video-button",ya:"{{watchfullvideo}}"}]});var d=this;this.api=
a;this.W=c;this.liveBadge=new g.S({J:"button",Ka:["ytp-live-badge","ytp-button"],Y:{disabled:"true"},ya:"{{content}}"});this.j=null;this.mG=this.B=!1;this.L=this.G=null;this.isPremiere=!1;this.Hb=this.D=this.C=null;this.Z=this.Da("ytp-clip-watch-full-video-button");this.api.N("web_player_updated_entrypoint")&&g.Cp(this.element,"ytp-xs-mono-button-style",!0);this.liveBadge.Ed("Live");g.P(this,this.liveBadge);this.api.N("web_player_updated_entrypoint")?this.liveBadge.Ha(this.element.querySelector(".ytp-time-wrapper")):
this.liveBadge.Ha(this.element);this.tooltip=b.Ze();this.liveBadge.listen("click",this.onClick.bind(this));this.T(this.Z,"click",this.Bda);this.T(this.api,"serverstitchedvideochange",function(){K5a(d,d.api.getProgressState().isAtLiveHead)});
this.T(a,"presentingplayerstatechange",this.Uc);this.T(a,"appresize",this.Uc);this.T(a,"onLoopRangeChange",this.onLoopRangeChange);this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Uc();L5a(this,a.getLoopRange())};
K5a=function(a,b){var c=a.liveBadge.element,d=a.api.isLifaAdPlaying();c.disabled=d||b;!b_(a)||a.L===b&&a.G===a.isPremiere||(a.L=b,a.G=a.isPremiere,a.Uc(),c.style.setProperty("--live-badge-background-color",b?"#f00":"#757575"),a.liveBadge.Ed(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.gS(a.tooltip,a.liveBadge.element)))};
L5a=function(a,b){var c=a.Hb!==b;a.Hb=b;c&&M5a(a)};
M5a=function(a){a.updateValue("clipicon",{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},X:[{J:"path",Y:{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.mG&&!a.B?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Cp(a.element,"ytp-clip",c_(a));g.Cp(a.element,"ytp-live",b_(a))};
b_=function(a){var b=a.api.V().N("enable_linear_program_progress"),c=!a.api.N("clean_player_style_fix_on_web")||a.api.getPresentingPlayerType()!==2;return a.mG&&!c_(a)&&(!b||!a.B)&&c};
c_=function(a){return!!a.Hb&&!!a.Hb.postId&&a.api.getPresentingPlayerType()!==2&&(!a.Hb.type||a.Hb.type==="clips")};
O5a=function(a,b){g.S.call(this,{J:"div",S:"ytp-volume-panel",Y:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},X:[{J:"div",S:"ytp-volume-slider",X:[{J:"div",S:"ytp-volume-slider-handle"}]}]});var c=this;this.api=a;this.L=b;this.yn=!1;this.Z=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.L=b;this.C=a.Vh();this.W=this.Da("ytp-volume-slider");this.qa=this.Da("ytp-volume-slider-handle");
this.D=new g.HX(this.W,!0);g.P(this,this.D);this.D.subscribe("dragstart",this.ida,this);this.D.subscribe("dragmove",this.c7,this);this.D.subscribe("dragend",this.hda,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.MW);this.T(a,"fullscreentoggled",this.Ny);this.T(a,"onShowControls",this.dY);this.T(a,"onHideControls",this.dY);this.T(this.element,"keydown",this.d7);this.T(this.element,"focus",function(){d_(c,c.j,c.isDragging,!0,c.api.yn())});
this.T(this.element,"blur",function(){d_(c,c.j,c.isDragging,!1,c.api.yn())});
this.MW(a.qb().getPlayerSize());N5a(this,a.getVolume(),a.isMuted());hS(a,this.element,this)};
N5a=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.qa.style.left=(a.C?60:40)*c+"px";a.volume=b};
P5a=function(a,b){g.Cp(a.element,"ytp-volume-control-hover",b);d_(a,b,a.isDragging,a.B,a.api.yn())};
d_=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.yn;a.j=b;a.isDragging=c;a.B=d;a.yn=e;b=a.j||a.isDragging||a.B||a.yn;f!==b&&(b?a.G=a.T(a.element,"wheel",a.b7):(a.Nc(a.G),a.G=null),g.Cp(a.L,"ytp-volume-slider-active",b))};
e_=function(a,b){var c=a.V(),d=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&d.push("no-link");var e={title:"{{title}}",target:c.Z,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(e.href="{{url}}");g.S.call(this,{J:"a",Ka:d,Y:e,ya:"{{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.lc);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.gS(b.Ze(),this.element));this.lc()};
Q5a=function(a,b,c){g.dG.call(this);var d=this;this.K=a;this.Ve=b;this.Sg=c;this.ib=NaN;this.Ba=this.Ua=this.playButton=this.D=this.L=this.Va=this.La=this.ra=this.qa=this.G=this.Za=this.eb=null;this.B=new H5a(this.K);this.progressBar=new g.xZ(this.K,this.Ve);this.Ea=new g.a_(this.K,this.Ve);this.W=new h4a(this.K,this.Ve);this.Z=new g.pp(this.e7,null,this);c=a.V();this.Sg.subscribe("autohideupdate",this.TB,this);var e=!a.getPlayerStateObject().isCued(),f;a.V().N("html5_player_dynamic_bottom_gradient")?
this.Za=f=new c4a(a):f=new g.S({J:"div",S:"ytp-gradient-bottom"});g.P(this,f);g.qS(a,f.element,9);this.Ma=new g.Cy(f,250,e,100);g.P(this,this.Ma);this.C=new g.S({J:"div",S:"ytp-chrome-bottom",X:[{J:"div",S:"ytp-chrome-controls"}]});g.P(this,this.C);g.qS(a,this.C.element,9);this.Fa=new g.Cy(this.C,250,e,100);g.P(this,this.Fa);this.Pa=this.C.element.children[0];g.P(this,this.B);g.qS(a,this.B.element,6);this.B.subscribe("show",function(l){d.K.dI(!l);a.iU(d.B,l)});
g.P(this,this.progressBar);this.progressBar.Ha(this.C.element,0);e=new nZ(a,b);g.P(this,e);g.qS(a,e.element,4);e=new g.Jx({J:"div",S:"ytp-left-controls"});g.P(this,e);e.Ha(this.Pa);f=new g.sZ(a,b,!1);g.P(this,f);f.Ha(e.element);a.N("web_render_jump_buttons")&&(this.qa=new oZ(a,g.KD(a.V().experiments,"web_jump_button_backward_amount")||-10),g.P(this,this.qa),this.qa.Ha(e.element));c.Pa||(this.playButton=new g.rZ(a,b),g.P(this,this.playButton),this.playButton.Ha(e.element));a.N("web_render_jump_buttons")&&
(this.ra=new oZ(a,g.KD(a.V().experiments,"web_jump_button_forward_amount")||10),g.P(this,this.ra),this.ra.Ha(e.element));f=new g.sZ(a,b,!0);g.P(this,f);f.Ha(e.element);f=new g.S({J:"span",S:"ytp-volume-area"});g.P(this,f);f.Ha(e.element);if(!c.kd&&(this.G=new k4a(a,b),g.P(this,this.G),this.G.Ha(f.element),c.Va&&!c.W)){var h=new O5a(a,this.C.element);this.Ua=h;g.P(this,h);h.Ha(f.element);f=new g.HX(f.element);g.P(this,f);f.subscribe("hoverstart",function(){var l;(l=d.Ua)==null||P5a(l,!0)});
f=new g.HX(e.element);g.P(this,f);f.subscribe("hoverend",function(){var l;(l=d.Ua)==null||P5a(l,!1)})}g.P(this,this.Ea);
this.Ea.Ha(e.element);this.j=new g.Jx({J:"div",S:"ytp-right-controls"});g.P(this,this.j);this.La=new mZ(a,this.progressBar);g.P(this,this.La);this.La.Ha(e.element);c.N("web_key_moments_markers")&&(this.Va=new pZ(a,this.progressBar),g.P(this,this.Va),this.Va.Ha(e.element));this.j.Ha(this.Pa);e=new $Z(a,b);g.P(this,e);e.Ha(this.j.element);e=new OZ(a,this.B);g.P(this,e);I5a(this.B,e);e.Ha(this.j.element);e=a.getVideoData();if(c.Wn||e.Nf&&c.controlsType==="1")this.L=new e_(a,b),g.P(this,this.L),this.L.Ha(this.j.element);
c.showMiniplayerButton&&(this.D=new qZ(a),g.P(this,this.D),this.D.Ha(this.j.element));c.vl&&(b=new NZ(a,this.B),g.P(this,b),b.Ha(this.j.element));c.Km&&(b=new kZ(a),g.P(this,b),b.Ha(this.j.element));g.P(this,this.W);this.W.Ha(this.j.element);g.P(this,this.Z);this.T(a,"appresize",this.lc);this.T(a,"fullscreentoggled",this.lc);this.T(a,"presentingplayerstatechange",this.gV);this.T(a,"videodatachange",this.onVideoDataChange);this.lc()};
R5a=function(a,b){a.K.getPlayerStateObject().isCued()||b?b&&(a.Fa.hide(),a.Ma.hide(),a.G&&a.G.yc(!1),a.L&&a.L.yc(!1),a.D&&a.D.yc(!1),a.K.N("embeds_use_parent_visibility_in_ve_logging")&&a.W&&a.W.yc(!1),a.K.Qm(a.Jb())):b||(a.Fa.show(),a.Ma.show(),a.G&&a.G.yc(!0),a.L&&a.L.yc(!0),a.D&&a.D.yc(!0),a.K.N("embeds_use_parent_visibility_in_ve_logging")&&a.W&&a.W.yc(!0),a.TB())};
T5a=function(a){var b=a.K.qb().getPlayerSize().width;return Math.max(b-S5a(a)*2,100)};
S5a=function(a){var b=a.K.Vh(),c=a.K.getVideoData().Nf,d=0;a.K.Vh()&&a.K.jd()&&(d=(a.K.qb().getPlayerSize().width-a.K.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
U5a=function(a){var b=a.K.Vh()?72:50;a=a.K.V();g.bQ(a)&&(b=62,g.NP(a)&&(b=54));return b};
V5a=function(a){tX.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.K,"videodatachange",this.onVideoDataChange);this.T(this.K,g.DE("suggested_action_button_visible"),function(c){c=c.id;b.text=c;Y_a(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Sf()});
this.T(this.K,g.EE("suggested_action_button_visible"),function(c){b.enabled=!1;b.Sf();b.K.removeCueRange(c.id)})};
W5a=function(a){a.suggestedActions={};a.K.df("suggested_action_button_visible")};
g_=function(a){g.S.call(this,{J:"div",S:f_.TITLE,X:[{J:"div",S:f_.TEXT,X:[{J:"a",Ka:[f_.LINK,f_.SESSIONLINK],Y:{target:a.V().Z,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ya:"{{title}}"},{J:"div",S:f_.SUBTEXT,X:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Da(f_.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Ta);this.T(a,"videoplayerreset",this.Ta);this.Ta()};
X5a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.NP(a.api.V())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.h_=function(a,b){g.S.call(this,{J:"div",X:[{J:"div",S:"ytp-tooltip-text-wrapper",Y:{"aria-hidden":"{{ariaHidden}}"},X:[{J:"div",S:"ytp-tooltip-edu",X:[{J:"svg",Y:{height:"100%",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Y:{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"}}]},{J:"span",ya:"{{eduText}}"}]},{J:"div",S:"ytp-tooltip-image"},{J:"div",S:"ytp-tooltip-title",X:[{J:"span",ya:"{{title}}"}]},{J:"span",S:"ytp-tooltip-text",ya:"{{text}}"}]},
{J:"div",S:"ytp-tooltip-bg",X:[{J:"div",S:"ytp-tooltip-duration",ya:"{{duration}}"}]}]});var c=this;this.api=a;this.Va=b;this.ra=function(d){(d=d.relatedTarget)&&g.sh(c.j,d)||c.Ai()};
this.G=function(d){c.type===3&&c.Ai();(d=d.currentTarget)&&d.nodeType===1&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.ra),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.ra),Y5a(c,d,2))};
this.Ea=function(){c.Ai()};
this.type=this.j=null;this.qa=!1;this.B=null;this.C="";this.Z=!0;this.scale=1;this.W=160;this.Ba=90;this.env=this.api.V();this.La=this.env.B;this.bg=this.Da("ytp-tooltip-bg");this.Pa=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.L=new g.Cy(this,100);this.D=NaN;this.NW=this.api.qb().getPlayerSize().width;this.Fa=new g.qp(this.iaa,250,this);this.Ma=new g.qp(this.Ai,5E3,this);g.P(this,this.L);g.P(this,
this.Fa);g.P(this,this.Ma);EP&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));e4a(this.api)&&(this.W=243,this.Ba=141,g.yp(this.api.getRootNode(),"ytp-bigboards"))};
g.gS=function(a,b){if(a.La)return function(){};
b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Ai();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
Y5a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.lt("showElementTooltip called with non-element.",b.toString()),g.ex(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.qa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.wp(a.element,"ytp-tooltip");g.yp(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.Cp(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Cp(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ea);a.Z&&(Z5a(a),a.L.show(0))}};
Z5a=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.OE("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.qa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.W*a.scale;var f=
a.Ba*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.zp(a.element,["ytp-text-detail","ytp-preview"]);g.Cp(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Bp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);$5a(a,!!b)}};
$5a=function(a,b,c,d){var e=Math.min(a.NW,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Va.Vy(a.element,a.j,c,a.type===1,d);a.element.style.top?g.yp(a.element,"ytp-bottom"):a.element.style.bottom&&g.yp(a.element,"ytp-top");a.type===3&&a.Ma.start()};
a6a=function(a,b){g.Cp(a.element,"ytp-preview",b>=0);if(!(b<0||b===a.D)){a.D=b;b=a.W*a.scale;var c=a.Ba*a.scale,d=ALa(a.B,a.D,b);d4a(a.bg,d,b,c,!0);a.Fa.start()}};
b6a=function(a){var b=a.j;a.type===3&&a.Ma.stop();a.api.removeEventListener("appresize",a.Ea);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null};
d6a=function(a){g.S.call(this,{J:"button",Ka:["ytp-watch-later-button","ytp-button"],Y:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.HP(a.V()))},X:[{J:"div",S:"ytp-watch-later-icon",ya:"{{icon}}"},{J:"div",S:"ytp-watch-later-title",ya:"Watch later"}]});this.K=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;DNa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize",
this.RD);this.T(a,"videodatachange",this.RD);this.T(a,"presentingplayerstatechange",this.RD);this.RD();a=this.K.V();var b=g.$s("yt-player-watch-later-pending");a.D&&b?(VCa(),c6a(this)):this.Ta(2);g.Cp(this.element,"ytp-show-watch-later-title",g.HP(a));hS(this.K,this.element,this)};
e6a=function(a){var b=a.K.getPlayerSize(),c=a.K.V(),d=a.K.getVideoData(),e=g.HP(c)&&g.nS(a.K)&&g.T(a.K.getPlayerStateObject(),128),f=c.C;return c.He&&b.width>=240&&!d.isAd()&&d.He&&!e&&!g.QR(d)&&!a.K.jd()&&!f};
f6a=function(a,b){A2a(g.XP(a.K.V()),"wl_button",function(){VCa({videoId:b});window.location.reload()})};
c6a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ta(3);var b=a.K.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.K.Xm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Ta(2);a.K.V().U&&a.K.gb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ta(1);a.K.V().B&&a.K.hI(a.element);a.K.V().U&&a.K.gb("WATCH_LATER_VIDEO_ADDED")};
BA(c,b).then(d,function(){a.isRequestPending=!1;a.Ta(4,"An error occurred. Please try again later.");a.K.V().U&&a.K.gb("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}};
g6a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=aOa();break;case 1:c=Sx();break;case 2:c={J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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={J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",
Gc:!0,Y:{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.i_=function(){g.EY.apply(this,arguments);this.iL=(this.zs=g.HP(this.api.V()))&&(this.api.V().B||rs()||ps());this.mP=48;this.nP=69;this.aF=this.Oi=null;this.ov=[];this.xN=this.Ji=this.yN=this.ox=this.ze=null;this.yI=[];this.contextMenu=this.Ng=this.overflowButton=this.Fi=this.oh=this.searchButton=this.copyLinkButton=this.shareButton=this.Gp=this.ih=this.title=this.channelAvatar=this.jC=this.tooltip=null;this.WO=!1;this.wH=this.oy=this.yF=this.zF=null;this.jT=this.UR=this.CP=!1};
h6a=function(a){var b=a.api.V(),c=g.T(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()};
i6a=function(a){if(a.eh()&&!a.api.jd()&&a.Fi){var b=a.api.N("web_player_hide_overflow_button_if_empty_menu");!a.Gp||b&&!e6a(a.Gp)||B3a(a.Fi,a.Gp);!a.shareButton||b&&!L3a(a.shareButton)||B3a(a.Fi,a.shareButton);!a.copyLinkButton||b&&!P2a(a.copyLinkButton)||B3a(a.Fi,a.copyLinkButton)}else{if(a.Fi){b=a.Fi;for(var c=g.x(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.sh(a.ih.element,a.searchButton.element)&&a.searchButton.Ha(a.ih.element);a.Gp&&!g.sh(a.ih.element,
a.Gp.element)&&a.Gp.Ha(a.ih.element);a.shareButton&&!g.sh(a.ih.element,a.shareButton.element)&&a.shareButton.Ha(a.ih.element);a.copyLinkButton&&!g.sh(a.ih.element,a.copyLinkButton.element)&&a.copyLinkButton.Ha(a.ih.element)}};
j6a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(Em(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=j6a(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};
k6a=function(a,b,c){if(a.api.N("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.wH){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.wH=new F3a(d,a.api),
g.P(a,a.wH),g.qS(a.api,a.wH.element,9));var m;(m=a.wH)==null||J3a(m,d,c)}}};
g.j_=function(a){g.gY.call(this,a);this.chrome=null;this.load()};
l6a=function(){for(var a=k_.length;a<4;a++){var b=g.mh("VIDEO");b.load();k_.push(new g.PX(b))}};
m6a=function(a,b,c,d){var e=c.getVideoData(),f=b.getVideoData();if(c.getPlayerState().isError())return{msg:"player-error"};var h=f.C;if(b.xg()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Le())&&d.isView()&&(d=d.mediaElement);if(d&&d.Gx().length>12&&g.vR(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.U&&oR(f)&&(d=b.yx(),l=
c.yx());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(oG(d)||oG(l)))return{msg:"av1"};b=a.j&&f.Pj()&&KG();if(l.containerType!==d.containerType)if(b)f.oa("sgap",{ierr:"container"});else return{msg:"container"};if(a.B&&!b&&(l.ob!==d.ob||l.ob===""||d.ob===""))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.vR(f)&&g.vR(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.$F)if(b)f.oa("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.Pj()&&d.video.fps!==l.video.fps?{msg:"fps"}:null};
n6a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.V().supportsGaplessShorts())return{nq:"env"};if(c.L){if(d.qj&&!d.isAd()||e.qj&&!e.isAd())return{nq:"autoplay"}}else if(d.qj||e.qj)return{nq:"autoplay"};if(!d.Z)return{nq:"client"};if(!a.xn())return{nq:"no-empty"};a=m6a(c,a,b,Infinity);return a!=null?{nq:a.msg}:null};
l_=function(a){g.O.call(this);this.app=a;this.D=this.C=this.yb=this.j=null;this.B=1;this.events=new g.dG(this);this.events.T(this.app.Qa,g.EE("gaplessshortslooprange"),this.U);g.P(this,this.events)};
o6a=function(){this.D=this.L=this.C=this.U=this.G=this.B=this.j=!1};
p6a=function(a){var b=new o6a;b.j=a.N("h5_gapless_support_types_diff");b.G=a.N("h5_gapless_error_on_fps_diff");b.U=a.N("html5_gapless_use_format_info_fix");b.C=a.N("html5_gapless_disable_on_av1")&&!a.N("html5_gapless_enable_on_av1");b.B=a.N("html5_gapless_check_codec_diff_strictly");b.L=a.N("html5_gapless_on_ad_autoplay");b.D=a.N("html5_gapless_disable_diff_aspect_radio");return b};
g.m_=function(a,b,c,d){d=d===void 0?!1:d;VG.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
q6a=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.Ld=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.L=-1;this.U=!1;this.lr=new UG;this.Qn=d-b.Mc()*1E3;this.lr.then(void 0,function(){});
this.timeout=new g.qp(function(){h.gh("timeout")},1E4);
g.P(this,this.timeout);this.W=isFinite(d);this.status={status:0,error:null}};
t6a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.I(function(q){if(q.j==1){if(a.Ja())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.n_.SC();return g.G(q,a.lr,2)}g.n_.HA("gtfta",b);c=a.j.Le();if(c.isEnded())return a.gh("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!NG(a.D))return a.gh("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Xr()!==a.D)return a.gh("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=r6a(a);e=d.u0;f=d.rY;h=d.s0;a.j.hk(!1,!0);l=s6a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);(m=a.j.RF())&&a.B.bI(m.mC,m.nC);a.W&&(a.B.seekTo(a.B.getCurrentTime()+.001,{Qx:!0,SU:3,bd:"gapless_pseudo"}),l.play(),Yr());n=c.wc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.oa("gapless",n);a.j.oa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();w_a(a.j,f,!1,p,a.B.getVideoData().clientPlaybackNonce);w_a(a.B,
a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.d3=!0;g.vi(function(){!a.B.getVideoData().Ba&&a.B.getPlayerState().isOrWillBePlaying()&&g_a(a.B)});
o_(a,6);a.dispose();return q.return(Promise.resolve())})};
x6a=function(a){if(a.B.getVideoData().C){var b=a.Ld.V().N("html5_gapless_suspend_next_loader")&&a.G===1;UZa(a.B,a.D,b,u6a(a));o_(a,3);v6a(a);var c=w6a(a);b=c.qU;c=c.P2;b.subscribe("updateend",a.Xz,a);c.subscribe("updateend",a.Xz,a);a.Xz(b);a.Xz(c)}};
v6a=function(a){a.j.unsubscribe("internalvideodatachange",a.uo,a);a.B.unsubscribe("internalvideodatachange",a.uo,a);a.Ld.V().N("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.uo,a),a.B.unsubscribe("internalvideoformatchange",a.uo,a));a.j.unsubscribe("mediasourceattached",a.uo,a);a.B.unsubscribe("statechange",a.OW,a)};
s6a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.m_(a,b,c,d)};
o_=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.lr.resolve())};
u6a=function(a){return a.Ld.V().N("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&cR(a.j.getVideoData())};
r6a=function(a){var b=a.j.Le();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:iX(a.j,!0);c=Math.min(a.Qn/1E3,c)+b;var d=a.W?100:0;a=c-a.B.xg()+d;return{z8:b,u0:a,rY:c,s0:Infinity}};
w6a=function(a){return{qU:a.C.j.Jd,P2:a.C.B.Jd}};
z6a=function(a){g.O.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.W=!1;this.C=this.D=null;this.U=p6a(this.app.V());this.L=function(){g.vi(function(){y6a(b)})}};
A6a=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.xn()||p_(a);a.D=new UG;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Rc(),m=l.getVideoData().isLivePlayback?Infinity:iX(l,!0)*1E3;f>m&&(f=m-200,a.W=!0);h&&l.getCurrentTime()>=f/1E3?a.L():(a.B=l,h&&(h=f,f=a.B,a.app.Qa.addEventListener(g.DE("vqueued"),a.L),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.BE(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,iX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,iX(b)+m)),h=sJa(f,l)||d,h!==d&&a.j.oa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().kd=!0;d.getVideoData().Z=!0;g.XW(d,!0);f={};a.B&&(f=a.B.Dx(),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.oa("queued",f);b!==0&&d.seekTo(b+.01,{Qx:!0,SU:3,bd:"videoqueuer_queued"});a.C=new q6a(a.U,a.app.Rc(),a.j,c,a.app,e);c=a.C;c.status.status!==Infinity&&(o_(c,
1),c.j.subscribe("internalvideodatachange",c.uo,c),c.B.subscribe("internalvideodatachange",c.uo,c),c.Ld.V().N("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.uo,c),c.B.subscribe("internalvideoformatchange",c.uo,c)),c.j.subscribe("mediasourceattached",c.uo,c),c.B.subscribe("statechange",c.OW,c),c.j.subscribe("newelementrequired",c.M0,c),c.uo());return a.D};
y6a=function(a){var b,c,d,e,f,h,l,m,n;g.I(function(p){switch(p.j){case 1:if(a.Ja()||!a.D||!a.j)return p.return();a.W&&NW(a.app.Rc(),!0,!1);c=a.app.V().N("html5_force_csdai_gapful_transition")&&((b=a.app.Rc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ga(2);break}g.wa(p,3);return g.G(p,t6a(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.n_.Tq("vqsp",function(){q_(a.app,a.j)});
if(!a.j)return p.return();f=a.j.Le();a.app.V().N("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.n_.Tq("vqpv",function(){a.app.playVideo()});
if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.oa("gapfulfbk",{r:h}),ZZa(a.j,h)):(m=a.B)==null||m.oa("gapsp",{});n=a.D;p_(a);n&&n.resolve();return p.return(Promise.resolve())}})};
p_=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Qa.removeEventListener(g.DE("vqueued"),a.L);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.gh("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.dS(a.app,1)&&a.j!==a.app.Rc()&&a.j.dispose();a.j&&b&&fX(a.j);a.j=null;a.W=!1};
B6a=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1};
C6a=function(a,b,c){if(a.xn())return"qie";if(a.j==null||a.j.Ja()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.eg())return"vinm";if(B6a(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(m6a(c.policy,c.j,c.B,c.Qn)!=null)a="pge";else{b=w6a(c);a=b.qU;var d=b.P2;b=g.KD(c.Ld.V().experiments,"html5_shorts_gapless_next_buffer_in_seconds");c=c.L+b;d=CG(d.Ke(),c);a=CG(a.Ke(),c);a=!(b>0)||d&&a?null:"neb"}return a!=null?a:null};
D6a=function(){g.Fx.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.Sf()};
tWa(this.G);this.L=this.getVisibilityState(this.Bi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.mj(),this.pB(),this.wB(),this.Sk())};
$V=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.mj()||a.pB()||a.wB()||a.Sk())};
I6a=function(a){var b=a.experiments,c=b.fb.bind(b);E6a=c("html5_use_async_stopVideo");F6a=c("html5_pause_for_async_stopVideo");G6a=c("html5_not_reset_media_source");OG=c("html5_not_reset_media_source");H6a=c("html5_not_reset_media_source");IG=c("html5_retain_source_buffer_appends_for_debugging");v0a=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(HU=!0);var d=g.KD(b,"html5_cobalt_override_quic");d&&dW("QUIC",+(d>0));(d=g.KD(b,"html5_cobalt_audio_write_ahead_ms"))&&
dW("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&dW("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&dW("MediaElement.EnableUsingMediaSourceBufferedRange",+d);c("html5_log_cpu_info")&&mXa();Error.stackTraceLimit=50;var e=g.KD(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}});
VJa(a.G);bU=c("html5_use_ump_request_slicer");EOa=c("html5_record_now");c("html5_disable_streaming_xhr")&&(fP=!1);c("html5_byterate_constraints")&&(mM=!0);c("html5_use_non_active_broadcast_for_post_live")&&(bO=!0);c("html5_sunset_aac_high_codec_family")&&(kG["141"]="a")};
J6a=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")};
K6a=function(a){var b={},c;for(c in a.experiments.flags)if(c.startsWith("cobalt_h5vcc")){var d=J6a(c),e=g.KD(a.experiments,c);d&&e&&(b[d]=dW(d,e))}return b};
r_=function(a,b,c,d,e){e=e===void 0?[]:e;g.O.call(this);this.ea=a;this.hc=b;this.D=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
L6a=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.x(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.x(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.x(f.segments),l=h.next();!l.done;l=h.next())(l=s_(l.value))&&d.push(l);f.removeAll()}}}(c=s_(b))&&d.push(c);d=g.x(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
t_=function(a,b,c,d){if(!a.j||b>c)return!1;b=new r_(a.ea,b,c,a.j,d);d=g.x(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=s_(c);e&&e!==s_(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.sf())?a.j.get(b.sf()).push(b):a.j.set(b.sf(),[b]);return!0};
GV=function(a,b){return a.B.get(b)};
M6a=function(a,b,c){a.B.set(b,c)};
u_=function(a,b,c,d,e,f){return new N6a(c,c+(d||0),!d,b,a,e,f)};
N6a=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.CL=h;this.j=new Map;xMa(f)};
s_=function(a){return a.videoData.clientPlaybackNonce};
O6a=function(a){if(a.j.size)for(var b=g.x(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.x(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
P6a=function(a){this.end=this.start=a};
g.v_=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.ea=b;this.ma=c;this.Fa=new Map;this.Za=new Map;this.Ma=new Map;this.B=new Map;this.D=[];this.G=[];this.C=new Map;this.uc=new Map;this.qa=new Map;this.Vb=NaN;this.Kb=this.eb=this.Sb=null;this.Ib=new g.qp(function(){Q6a(d,d.Vb,d.Sb||void 0)});
this.events=new g.dG(this);this.Db=15E3;this.Z=new g.qp(function(){d.Ba=!0;var e=d.ma,f=d.Db;e.oa("sdai",{aftimeout:f});e.Hd(new VF("ad.fetchtimeout",{timeout:f}));R6a(d);d.ZF(!1)},this.Db);
this.Ba=!1;this.L=new Map;this.tb=[];this.W=null;this.Xd=new Set;this.Ea=[];this.Ac=[];this.Fd=[];this.Dd=[];this.j=void 0;this.Ua=0;this.Pa=!0;this.ra=!1;this.La=[];this.kd=new Set;this.He=new Set;this.Gd=new Set;this.Pl=0;this.ib=new Set;this.Pc=0;this.Bo=this.Jc=!1;this.Mb=this.U="";this.rb=null;this.Qc={noa:function(){return d.B},
yoa:function(){return d.D},
ooa:function(){return d.C},
Z8:function(e){d.onCueRangeEnter(d.B.get(e))},
goa:function(e){d.onCueRangeExit(d.B.get(e))},
xqa:function(e,f){d.B.set(e,f)},
zqa:function(e){d.Mb=e},
HF:function(){return d.HF()}};
this.ma.getPlayerType();CZa(this.ma,this);this.Va=this.ea.Xb();g.P(this,this.Ib);g.P(this,this.events);g.P(this,this.Z);this.events.T(this.api,g.DE("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.EE("serverstitchedcuerange"),this.onCueRangeExit)};
V6a=function(a,b,c,d,e,f,h,l){var m=S6a(a,f,f+e);a.Ba&&a.ma.oa("sdai",{adaftto:1});a.ea.N("html5_log_empty_ssdai_ads_config")&&!c&&a.ma.oa("sdai",{missadcon:1,enter:f,len:e,aid:l});a.Bo&&a.ma.oa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ma;h=h===void 0?f+e:h;f===h&&!e&&a.ea.N("html5_allow_zero_duration_ads_on_timeline")&&a.ma.oa("sdai",{attl0d:1});f>h&&w_(a,{reason:"enterTime_greater_than_return",hc:f,Sd:h});var p=n.Zc()*1E3;f<p&&w_(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},
a.ea.N("html5_report_ssdai_timeline_error_as_fatal"));n=n.getDuration()*1E3;h>n&&w_(a,{reason:"parent_return_greater_than_content_duration",Sd:h,gqa:n});n=null;p=g.ic(a.G,{Sd:f},function(q,r){return q.Sd-r.Sd});
p>=0&&(n=a.G[p],n.Sd>f&&T6a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ea.length;p++){if(a.Ea[p].identifier===m.identifier){a.Ea.splice(p,1);break}}else if(m)return a.ma.oa("sdai",{rejectAttl:1}),l&&!Qm(a.Dd,function(q){return q===l})&&(a.ma.oa("sdai",{rejectAdBreakAttl:1}),a.Dd.push(l)),x_(a),"";
m="ss_childplayback_"+U6a++;a.ea.N("html5_enable_ssap_entity_id")?(b=new g.WQ(a.ea,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.Sv(16)),p=b.cpn,b=new g.WQ(a.ea,b));b.Cd=m;c={Cd:m,playerType:d,durationMs:e,hc:f,Sd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.nc(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.uc.set(m,c);a.ma.oa("sdai",{attlDone:h-f,acpn:p});l?c.Mm=l:n?c.Mm=n.Mm:c.Mm=c.cpn;if(f=c.Mm)(d=a.qa.get(f))?(d.push(c),g.lc(d,function(q,r){return q.hc-r.hc})):a.qa.set(f,[c]);
a.Z.isActive()&&(a.Ba=!1,a.Z.stop(),R6a(a),a.ZF(!0));return m};
y_=function(a,b,c){return{ssvc:b,cpn:(c==null?void 0:c.cpn)||"",vid:(c==null?void 0:c.videoData.videoId)||"",ct:(a.ma.getCurrentTime()||0).toFixed(3),cmt:(a.ma.xg()||0).toFixed(3)}};
W6a=function(a,b){a.api.lA();a.api.publish("serverstitchedvideochange",b.Cd,b.Uw)};
z_=function(a,b,c){var d=a.ra,e=a.HF(),f=a.U;a.U="";var h=b.Mh-c.Mh;Math.abs(h)>.5&&a.ma.oa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.N("html5_ssdai_enable_media_end_cue_range")&&a.api.Bz();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.ma.oa("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):X6a(a,m,l,c.Mh,b.Mh,d,e)}else if(!b.isAd&&c.isAd){a.Mb=e.cpn;a.api.publish("serverstitchedvideochange");
l=y_(a,"a2c");a.ma.oa("sdai",l);a.Pl=0;if(l=c.oe)a.Ua=l.end;var n;c.adCpn&&(n=a.C.get(c.adCpn));n&&jX(a.ma,n,e,c.Mh,b.Mh,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.C.get(b.adCpn));p&&(a.Ua=0,a.Mb=p.cpn,W6a(a,p),n=y_(a,"c2a",p),a.ma.oa("sdai",n),a.Pl=1,jX(a.ma,e,p,c.Mh,b.Mh,d,!!f))}};
Y6a=function(a,b,c){c=c===void 0?0:c;var d=(b+c)*1E3,e=g.ic(a.G,{hc:d},function(l,m){return l.hc-m.hc});
e=e<0?(e+2)*-1:e;if(e>=0)if(cR(a.ma.getVideoData())&&a.ea.N("html5_ssdai_overdecorate")){d=b*1E3;for(var f=e;f<=e+1&&f<a.G.length;f++){var h=a.G[f];if(d>=h.hc-c*1E3&&d<=h.Sd+c*1E3)return{Sm:h,Ks:b}}}else if(a=a.G[e],a.Sd>=d)return{Sm:a,Ks:b};return{Sm:void 0,Ks:b}};
$6a=function(a,b){var c="";(b=Z6a(a,b))&&(c=b.getId());return c?a.C.get(c):void 0};
Z6a=function(a,b){if(a.Mb){var c=a.B.get(a.Mb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.x(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
Q6a=function(a,b,c){var d=a.Kb||a.api.Rc().getPlayerState();A_(a,!0);a.ma.seekTo(b,c);a=a.api.Rc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
A_=function(a,b){a.Vb=NaN;a.Sb=null;a.Ib.stop();a.eb&&b&&a_a(a.eb);a.Kb=null;a.eb=null};
a7a=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.x(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.hc<b||f.Sd>c)&&d.push(f);a.G=d;d=g.x(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ma.removeCueRange(e),a.B.delete(e.getId()),a.ma.oa("sdai",{rmAdCR:1}));d=Y6a(a,b/1E3);b=d.Sm;d=d.Ks;if(b&&(d=d*1E3-b.hc,e=b.hc+d,b.durationMs=d,b.Sd=e,d=a.B.get(b.cpn))){e=g.x(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=Y6a(a,c/1E3).Sm){var h;d="playback_timelinePlaybackId_"+b.Cd+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.hc+"_parentReturnTimeMs_"+b.Sd;a.Sj("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
b7a=function(a){a.Fa.clear();a.Za.clear();a.Ma.clear();a.B.clear();a.D=[];a.G=[];a.C.clear();a.uc.clear();a.qa.clear();a.L.clear();a.tb=[];a.W=null;a.Xd.clear();a.Ea=[];a.Ac=[];a.Fd=[];a.Dd=[];a.La=[];a.kd.clear();a.He.clear();a.Gd.clear();a.ib.clear();a.Ba=!1;a.j=void 0;a.Ua=0;a.Pa=!0;a.ra=!1;a.Pl=0;a.Pc=0;a.Jc=!1;a.Bo=!1;a.U="";a.Z.isActive()&&x_(a)};
d7a=function(a,b,c,d,e,f){if(!a.Bo)if(g.c7a(a,c))a.Va&&a.ma.oa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=B_(a,b,c,d,f),!(a.ma.getVideoData().gg()&&(b==null?0:b.uB)))return b};
B_=function(a,b,c,d,e){var f=a.L.get(c);if(!f){if(f=e7a(a,b))return f;b=C_(a,c-1,d!=null?d:2);if(e)return a.ma.oa("sdai",{misscue:e,sq:c,type:d,prevsstate:b==null?void 0:b.bA,prevrecord:a.L.has(c-1)}),a.L.get(c-1);if((b==null?void 0:b.bA)===2)return a.ma.oa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.L.has(c-1)}),a.L.get(c-1)}return f};
e7a=function(a,b){b+=a.yu();if(a.ea.N("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.x(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.Uw?e.Uw*1E3:e.hc;if(d>=e.hc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Sm:e,Ks:b};break a}}b={Sm:void 0,Ks:b}}else b=Y6a(a,b,1);return b.Sm};
f7a=function(a,b){b=b===void 0?"":b;var c=pP(b)||void 0;!a.ea.N("html5_log_empty_ssdai_ads_config")||b&&c||a.ma.oa("sdai",{adcfg:b.length,dcfg:c==null?void 0:c.length});return c};
g7a=function(a){if(a.La.length)for(var b=g.x(a.La),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.x(a.B.values());for(c=b.next();!c.done;c=b.next())a.ma.removeCueRange(c.value);b=g.x(a.D);for(c=b.next();!c.done;c=b.next())a.ma.removeCueRange(c.value);a.B.clear();a.D=[];a.Fa.clear();a.Za.clear();a.Ma.clear();a.j||(a.Pa=!0)};
X6a=function(a,b,c,d,e,f,h){if(b&&c){a.Mb=c.cpn;W6a(a,c);var l=y_(a,"a2a",c);a.ma.oa("sdai",l);a.Pl++;jX(a.ma,b,c,d||0,e||0,!!f,!!h)}else a.ma.oa("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})};
C_=function(a,b,c){if(c===1){if(a.Fa.has(b))return a.Fa.get(b)}else{if(c===2&&a.Za.has(b))return a.Za.get(b);if(c===3&&a.Ma.has(b))return a.Ma.get(b)}};
i7a=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;h7a(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.ma.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.D.splice(d,1);continue}d++}else h7a(a,b,c)};
h7a=function(a,b,c){b=a.OJ(b,c);c=!0;g.nc(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.ma.removeCueRange(e):c=!1;a.D.splice(d,1);continue}}d++}if(c)for(a.ma.addCueRange(b),b=a.ma.tF("serverstitchedcuerange",36E5),b=g.x(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
D_=function(a,b,c){if(c===void 0||!c){c=g.x(a.tb);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.tb.push(new P6a(b))}};
g.c7a=function(a,b){a=g.x(a.tb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
T6a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Ypa:b,hc:c,Sd:d,eoa:e.Cd,foa:((f=e.videoData)==null?void 0:f.videoId)||"",boa:e.durationMs,coa:e.hc,doa:e.Sd};w_(a,b)};
w_=function(a,b,c){a=a.ma;a.oa("timelineerror",b);b=new VF("dai.timelineerror",b);c?a.vg("dai.timelineerror",1,"RETRYABLE_ERROR",UF(b.details)):a.Hd(b)};
j7a=function(a,b){var c=[];a=a.qa.get(b);if(!a)return[];a=g.x(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
k7a=function(a,b,c){var d=0;a=a.qa.get(c);if(!a)return-1;a=g.x(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
l7a=function(a,b){var c=[];a=a.qa.get(b);if(!a)return[];a=g.x(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};
m7a=function(a,b){var c=0;a=a.qa.get(b);if(!a)return 0;a=g.x(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Sd!==b.hc&&c++;return c};
n7a=function(a,b,c){var d=!1;if(c&&(c=a.qa.get(c))){c=g.x(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Sd!==e.hc&&(e=e.cpn,b===e&&(d=!0),d&&!a.He.has(e)&&(a.ma.oa("sdai",{decoratedAd:e}),a.He.add(e)))}};
R6a=function(a){a.Va&&a.ma.oa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Pc)+"_isTimeout_"+a.Ba})};
S6a=function(a,b,c){if(a.Ea.length)for(var d=g.x(a.Ea),e=d.next(),f={};!e.done;f={yA:void 0},e=d.next()){f.yA=e.value;e=f.yA.startSecs*1E3;var h=f.yA.Xg*1E3+e;if(b>e&&b<h||c>e&&c<h)return Qm(a.Fd,function(l){return function(m){return m.identifier===l.yA.identifier}}(f))||(a.ma.oa("sdai",{adskip:b}),a.Fd.push(f.yA)),f.yA}};
x_=function(a){a.Ba=!1;a.Z.isActive()&&R6a(a);a.Z.stop();a.ZF(!1)};
r7a=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.timeline=b;this.ma=c;this.zo=new Map;this.Gk=new Map;this.YC=new Map;this.events=new g.dG(this);this.Pl=0;this.tL=this.Mb="";this.qH=[];this.Xk=new Set;this.WL=new g.qp(function(){d.api.playVideo(1,d.api.N("html5_ssap_keep_media_on_finish_segment"));d.api.oa("ssap",{nve:""+d.Mb});o7a(d,4)},3E4);
this.vz="";this.jI=new Set;this.S2=!0;this.BN=new Map;this.EM=new Set;this.yR=this.OC=!1;this.B_="";this.NN=null;this.Qc={Aoa:function(){return d.Gk},
Z8:function(e){if(e=d.Gk.get(e))d.onCueRangeEnter(e)},
onCueRangeEnter:function(e){d.onCueRangeEnter(e)},
mpa:function(){return d.OC}};
this.ma.getPlayerType();p7a(this);b.C=void 0;this.events.T(this.api,g.DE("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.ZG);this.api.N("html5_ssap_timeline_handle_error_and_abandon")&&this.events.T(this.api,"presentingplayerstatechange",this.Ei);g.P(this,this.WL);this.Uea=g.KD(a.V().experiments,"html5_ssap_segment_end_media_threshold_ms")||200;this.H8=a.N("html5_disable_ssap_append_pause");this.OC=q7a(this)};
s7a=function(a,b,c,d){for(var e=a.ma.TA(),f=g.x(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.B||((h=s_(l),l=l.getVideoData(),h&&l&&e.NJ(h,l,2),l)?h||(l=void 0,a.api.oa("ssap",{macac:h,maccc:(l=a.timeline.j)==null?void 0:s_(l)})):(l=void 0,a.api.oa("ssap",{mvac:h,mvcc:(l=a.timeline.j)==null?void 0:s_(l)})))}return t_(a.timeline,b,c,d)};
u7a=function(a,b){if(!a.Xk.has(a.Mb)){var c=0,d=0,e=GV(a.timeline,a.Mb);if(e==null?0:e.length)for(e=g.x(e),e=e.next();!e.done;e=e.next()){d=e.value;c=d.sf();d=d.Qi();break}if(!(d>0&&d>b*1E3+a.Uea)&&(d=t7a(a,c))){b=!1;c=void 0;d=g.x(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}s_(e)===a.Mb&&(b=!0)}d=void 0;if(c)d=s_(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:s_(f)}if(d)a.finishSegmentByCpn(a.Mb,d,2,void 0);else{var h;a.api.oa("ssap",{mfnc:1,mfncc:(h=a.timeline.j)==
null?void 0:s_(h)})}}}};
q7a=function(a){return a.api.N("html5_force_ssap_gapful_switch")||a.api.N("html5_ssap_enable_legacy_browser_logic")&&!KG()};
x7a=function(a,b,c,d){a.YC.set(b,d);v7a(a,b,c);w7a(a,c)};
rT=function(a,b){a=GV(a.timeline,b);return(a==null?0:a.length)?a[0].sf():0};
sT=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",lm:0};var e=p_a(a,b,c);if(e)return{clipId:s_(e)||"",lm:e.sf()};a.api.oa("mci",{cs:s_(d),mt:b,tl:hV(a),invt:!!c});return{clipId:"",lm:0}};
DV=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Qi()-b.sf())/1E3;b=b.j.values();b=g.x(b);for(var c=b.next();!c.done;c=b.next()){c=g.x(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Qi()-d.sf())/1E3}return a};
z7a=function(a,b){return(a=y7a(a,b*1E3))?a.sf():0};
A7a=function(a,b){var c=GV(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.x(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Qi()-c.sf())/1E3;else return DV(a);return b};
y7a=function(a,b){if(a=GV(a.timeline,a.Mb)){a=g.x(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.sf()<=b&&c.Qi()>=b)return c}};
B7a=function(a){var b=a.ma.getVideoData();a.Mb&&(a=a.zo.get(a.Mb))&&(b=a);return b};
t7a=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.lc(e);b=g.ic(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.x(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.sf()!==b.Qi())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}};
p_a=function(a,b,c){c=c===void 0?!1:c;var d=t7a(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.x(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.sf()<=b&&f.Qi()>b)return f;if(c&&d.sf()===d.Qi())return a[0]}}else a.api.oa("ssap",{ctnf:1})};
o7a=function(a,b){var c;if(a.vz)for(c=a.qH.shift();c&&c!==a.vz;)c=a.qH.shift();else c=a.qH.shift();if(c){if(a.Xk.has(c))C7a(a,c);else if(b===3||b===4)a.WL.stop(),a.api.playVideo(1,a.api.N("html5_ssap_keep_media_on_finish_segment"));a.YC.set(a.Mb,b);a.api.oa("ssap",{onvftn:1});w7a(a,c);return!1}a.api.oa("ssap",{onvftv:1});a.WL.stop();return!0};
C7a=function(a,b){b=GV(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.WL.start(b[0].CL)};
w7a=function(a,b){var c=a.ma.getVideoData(),d=c.clientPlaybackNonce;a.NN&&(a.events.Nc(a.NN),a.NN=null,a.ma.RJ=-1);var e=a.Mb,f=!1;if(e==="")e=d,f=!0;else if(e===void 0){var h=a.ma.TA().Wg;h&&a.timeline.B.has(h)&&(e=h);a.api.oa("ssap",{mcc:e+";"+b});a.ma.Hd(new VF("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&D7a(a,c,f);else{h=a.YC.get(e);if(!f&&(!h||h!==3&&h!==5&&h!==6&&h!==7)){var l=a.api.Bz(a.Mb);a.api.oa("ssap",{nmec:l,cpc:a.Mb,ec:b})}h&&h!==2||E_(a);a.Mb=b;E_(a);
b=GV(a.timeline,a.Mb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.tL=e,c=a.zo.get(e));h?a.YC.delete(e):h=f?1:2;a.api.N("html5_ssap_pacf_qoe_ctmp")&&l===2&&!b.B&&(a.NN=a.events.T(a.api,"onVideoProgress",a.Ada));a.api.oa("ssapt",{ostro:h,pcpn:e,ccpn:a.Mb});a:{var m=a.Mb;if(!a.Gk.has(m))for(var n=g.x(a.Gk),p=n.next();!p.done;p=n.next()){var q=g.x(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.V().N("html5_ssap_insert_su_before_nonvideo")&&p!==
a.Mb;q=a.ma.TA();if(q.Wg!==p){var r=q.Wb(q.Wg);m=q.Wb(p);q.Wg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.ea.Xb()&&p.oa("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.KK(p.provider),AXa(p,n,"SU")),isNaN(p.L)||g.Kr(p.L)),m.resume())}m=Math.max(0,F_(a,e));n=a.ma.getCurrentTime();n=Math.max(0,n-rT(a,a.Mb)/1E3);p=b.getVideoData();var t=h===3||h===5||h===6||h===7;a.api.N("html5_ssap_skip_illegal_seeking")&&(q=a.ma.getPlayerState(),q=!g.T(q,8)&&g.T(q,16),t=t||q,q&&a.api.oa("ssap",{iis:1}));q=a.ma.TA();
r=e;var u=a.Mb,y=a.ma.getPlayerState();if(r!==u){var A=q.Wb(r),C=q.Wb(u),F,H=r===((F=A.getVideoData())==null?void 0:F.clientPlaybackNonce),K;F=u===((K=C.getVideoData())==null?void 0:K.clientPlaybackNonce);var N;K=H?((N=A.getVideoData())==null?void 0:N.videoId)||"":"nvd";var W;N=F?((W=C.getVideoData())==null?void 0:W.videoId)||"":"nvd";H&&(W=A.qoe)!=null&&(kW(W,4,t?4:0,u,N,m),W.reportStats());F&&(vW(C),(W=C.qoe)!=null&&(kW(W,4,t?5:1,r,K,n),W.reportStats()),gYa(C,new g.Ny(y,C.Ne)),eYa(C));nYa(q,r)}a.api.oa("ssapt",
{ostri:h,pcpn:e,ccpn:a.Mb});var V;s_a(e,a.Mb,d,p,(V=a.BN.get(e))!=null?V:(0,g.Vt)(),c);a.BN.delete(e);f?c=void 0:c||a.api.oa("ssap",{pvdm:e+";"+a.Mb,pvdmc:a.Mb===d?"1":"0"});a.api.oa("ssap",{tpac:e+";"+a.Mb,tpcc:d,tpv:(p==null?0:p.Be())?"1":"0"},!1,1);a.api.V().N("html5_ssap_cleanup_player_switch_ad_player")&&a.api.lA();a.api.publish("videodatachange","newdata",p,l,c,h);b.B||a.ma.getVideoData().publish("dataupdated");a.Xk.delete(e);a.vz="";p&&l===1?D7a(a,p):a.ma.oa("ssap",{nis:a.Mb});l===2?a.Pl++:
a.Pl=0}}};
D7a=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.S2){var d=b.startSeconds;b=GV(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].sf()/1E3,a.api.N("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.yQ()||(a.ma.seekTo(d,{zU:!0}),a.S2=!1,a.ma.oa("ssap",{is:a.Mb,co:c?"1":"0",tse:d.toFixed()}))}};
v7a=function(a,b,c){b=GV(a.timeline,b);if(b!=null&&b.length&&(b=t7a(a,b[0].sf()))){b=g.x(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(s_(d)===c)break;if(d=s_(d)){var e=a.Gk.get(d);e&&a.ma.removeCueRange(e);a.Gk.delete(d)}}}};
UU=function(a){return a.ma.getVideoData().clientPlaybackNonce};
rSa=function(a,b){if(a.OC&&a.Mb!==b)return!1;if(a.H8)return!0;if(b=a.Gk.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.Xk.has(b[c]))return b[c]===a.Mb&&!a.Xk.has(d)}return!0};
bZa=function(a,b,c){p_a(a,b)||a.ma.oa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:hV(a)})};
E_=function(a){var b=a.Mb,c=a.zo.get(b)||a.ma.getVideoData();c&&(a=a.ma.getCurrentTime()-rT(a,b)/1E3,c.Oh=a>0?a:0)};
F_=function(a,b){b=b||a.Mb;var c=a.zo.get(b);return c?c.Oh:b!==UU(a)?0:a.ma.getVideoData().Oh};
hV=function(a){var b=a.Mb;b||(b=a.ma.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.x(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.x(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.sf()+";";f+="et."+h.Qi()+";";var l=s_(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.Ul()};
p7a=function(a){a.ma.IH(Array.from(a.Gk.values()));a.Gk.clear()};
F7a=function(a,b,c){g.O.call(this);var d=this;this.api=a;this.ea=b;this.j=c;this.L=new Map;this.B=[];this.C=this.U=null;this.qa=NaN;this.G=this.D=this.Z=null;this.W=new g.qp(function(){E7a(d,d.qa,d.Z||void 0)});
this.ra=[];this.Ba=new g.qp(function(){var e=d.ra.pop();if(e){var f=e.Cd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.rp(d.Ba,4500))}});
this.events=new g.dG(this);c.getPlayerType();g.P(this,this.W);g.P(this,this.Ba);g.P(this,this.events);this.events.T(this.api,g.DE("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Ei)};
J7a=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 G_(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.Zc()*1E3;if(e<n)return G_(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.Mc(),G_(a,m,h,l),"";n=null;for(var p=g.x(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.hc&&e<q.Sd)return G_(a,"overlappingEnter",h,l),"";if(f<=q.Sd&&f>q.hc)return G_(a,"overlappingReturn",h,l),"";if(f===q.hc)return G_(a,"outOfOrder",h,l),"";e===q.Sd&&(n=q)}h="cs_childplayback_"+G7a++;l={oe:H_(d,!0),Qn:Infinity,target:null};var r={Cd:h,playerVars:b,playerType:c,durationMs:d,hc:e,Sd:f,au:l};a.B=a.B.concat(r).sort(function(y,A){return y.hc-A.hc});
n?H7a(a,n,{oe:H_(n.durationMs,!0),Qn:n.au.Qn,target:r}):(b={oe:H_(e,!1),Qn:e,target:r},a.L.set(b.oe,b),m.addCueRange(b.oe));b=!0;if(a.j===a.api.Rc()&&(m=m.getCurrentTime()*1E3,m>=r.hc&&m<r.Sd)){var t=a.api.Rc().getPlayerState(),u=m-r.hc;qi(function(){I7a(a,r,u/1E3,{},t)});
b=!1}b&&(a.ra.unshift(r),g.rp(a.Ba,0));return h};
H_=function(a,b){return new g.BE(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
K7a=function(a,b,c,d){a.C=d;a.api.eK(a.j,c,b)};
L7a=function(a,b,c,d){a.C=d;d=b.Cd;var e=b.playerVars,f=b.playerType;a.U=b;e&&(a.ea.N("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
H7a=function(a,b,c){var d=b.au;b.au=c;I_(a,b)&&(c=a.api.Rc(),d.oe===a.C&&J_(a),c.removeCueRange(d.oe),c.addCueRange(b.au.oe))};
J_=function(a){a.U=null;a.C=null;a.api.xn()||a.api.clearQueue()};
M7a=function(a,b){I_(a,b)||G_(a,"childPlaybackIsNotPresenting");return b.Sd===b.hc+b.durationMs?(a=a.api.Rc(),b.hc+a.getCurrentTime()*1E3):b.Sd};
N7a=function(a,b){var c=0;a=g.x(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{Sm:d,Ks:b-e};c=f-d.Sd/1E3}return{Sm:null,Ks:b-c}};
E7a=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Rc().getPlayerState();K_(a,!0);b=isFinite(b)?b:a.j.Jo();var e=N7a(a,b);b=e.Sm;e=e.Ks;var f=b&&!I_(a,b)||!b&&a.j!==a.api.Rc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||J_(a);b?I7a(a,b,e,c,d):O7a(a,e,c,d)};
O7a=function(a,b,c,d){var e=a.j,f=a.api.Rc();e!==f&&a.api.iz();e.seekTo(b,Object.assign({},{bd:"application_timelinemanager"},c));P7a(a,d)};
I7a=function(a,b,c,d,e){var f=I_(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.ea.N("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.WQ(a.ea,b.playerVars);h.Cd=b.Cd;a.api.Uu(h,b.playerType)}h=a.api.Rc();f||h.addCueRange(b.au.oe);h.seekTo(c,Object.assign({},{bd:"application_timelinemanager"},d));P7a(a,e)};
P7a=function(a,b){a=a.api.Rc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
K_=function(a,b){a.qa=NaN;a.Z=null;a.W.stop();a.D&&b&&a_a(a.D);a.G=null;a.D=null};
I_=function(a,b){a=a.api.Rc();return!!a&&a.getVideoData().Cd===b.Cd};
Q7a=function(a){var b=a.B.find(function(e){return I_(a,e)});
if(b){var c=a.api.Rc();J_(a);var d=new g.$G(8);b=M7a(a,b)/1E3;O7a(a,b,{},d);c.oa("forceParentTransition",{childPlayback:1});a.j.oa("forceParentTransition",{parentPlayback:1})}};
S7a=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.x(a.L),h=f.next();!h.done;h=f.next()){var l=g.x(h.value);h=l.next().value;l=l.next().value;l.Qn>=d&&l.target&&l.target.Sd<=e&&(a.j.removeCueRange(h),a.L.delete(h))}d=b;e=c;f=[];h=g.x(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.hc>=d&&l.Sd<=e){var m=a;m.U===l&&J_(m);I_(m,l)&&m.api.iz()}else f.push(l);a.B=f;d=N7a(a,b/1E3);b=d.Sm;d=d.Ks;b&&(d*=1E3,R7a(a,b,d,b.Sd===b.hc+b.durationMs?b.hc+d:b.Sd));(b=N7a(a,c/1E3).Sm)&&
G_(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Cd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.hc+" parentReturnTimeMs="+b.Sd+"}.Child playbacks can only have duration updated not their start."))};
R7a=function(a,b,c,d){b.durationMs=c;b.Sd=d;d={oe:H_(c,!0),Qn:c,target:null};H7a(a,b,d);I_(a,b)&&a.api.Rc().getCurrentTime()*1E3>c&&(b=M7a(a,b)/1E3,c=a.api.Rc().getPlayerState(),O7a(a,b,{},c))};
G_=function(a,b,c,d){a.j.oa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
U7a=function(a){a&&a!=="web"&&T7a.includes(a)};
N_=function(a,b){g.O.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.qp(function(){L_(c);M_(c)});
g.P(this,this.j)};
V7a=function(a){L_(a);return a.data.map(function(b){return b.value})};
L_=function(a){var b=(0,g.Vt)();a.data.forEach(function(c){c.expire<b&&O_(a,c,!0)});
a.data=g.wn(a.data,function(c){return!(c.expire<b)})};
O_=function(a,b,c){c&&a.B&&a.B(b.value)};
M_=function(a){a.j.stop();var b=Infinity;for(var c=g.x(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))};
P_=function(){g.O.call(this);this.j=new N_(5,null);g.P(this,this.j);this.B=new N_(15,null);g.P(this,this.B)};
HZa=function(a,b){return b?!!a.j.get(b):!1};
W7a=function(a,b){a.dataset.version=b};
Z7a=function(a){g.S.call(this,{J:"div",Ka:["html5-video-player"],Y:{tabindex:a.V().disableOrganicUi?"":"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},X:[{J:"div",S:g.Q_.VIDEO_CONTAINER,Y:{"data-layer":"0"}}]});var b=this;this.app=a;this.uA=this.Da(g.Q_.VIDEO_CONTAINER);this.lC=new g.ym(0,0,0,0);this.zc=null;this.KM=new g.ym(0,0,0,0);this.QQ=this.XR=this.WR=NaN;this.ZK=this.HM=this.xT=this.aY=!1;this.AP=NaN;this.FR=!1;this.JG=null;this.BS=function(){b.element.focus({preventScroll:!0})};
this.oM=function(){b.app.Qa.publish("playerUnderlayVisibilityChange","visible");b.zc.classList.remove(g.Q_.VIDEO_CONTAINER_TRANSITIONING);b.zc.removeEventListener(cOa,b.oM);b.zc.removeEventListener("transitioncancel",b.oM)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.V();e.transparentBackground&&this.Nt("ytp-transparent");e.controlsType==="0"&&this.Nt("ytp-hide-controls");g.yp(this.element,"ytp-exp-bottom-control-flexbox");g.yp(this.element,"ytp-modern-caption");e.N("enable_new_paid_product_placement")&&!g.dQ(e)&&g.yp(this.element,"ytp-exp-ppp-update");e.N("html5_enable_ssap")&&g.yp(this.element,"ytp-ssap");e.N("enable_cairo_refresh_web")&&g.yp(this.element,"ytp-cairo-refresh");e.N("enable_cairo_refresh_signature_moments_web")&&g.yp(this.element,"ytp-cairo-refresh-signature-moments");
e.N("web_always_show_scrubber")&&g.yp(this.element,"ytp-persistent-scrubber");W7a(this.element,X7a(a));this.R2=!1;this.xF=new g.Cg(NaN,NaN);Y7a(this);this.T(a.Qa,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
Y7a=function(a){function b(){a.zc&&R_(a);S_(a)!==a.FR&&a.resize()}
function c(h,l){a.Bu(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.KM=new g.ym(0,0,0,0);a.lC=new g.ym(0,0,0,0)}
var f=a.app.Qa;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)})};
a8a=function(a){var b=g.dS(a.app),c=b=b?b.getVideoData():null;if(b==null?0:g.jR(b))c=a.app.Qa.getVideoData();if(c){if(g.DR(c)||g.ER(c)||g.FR(c))return 16/9;if(kMa(c)&&c.C.j)return a=c.C.videoInfos[0].video,$7a(a.width,a.height)}return(a=a.zc)?$7a(a.videoWidth,a.videoHeight):16/9};
b8a=function(a,b,c,d){var e=c,f=$7a(b.width,b.height);a.aY?e=c<f?Infinity:0:isNaN(a.QQ)?isNaN(a.XR)||(e=a.XR):e=a.QQ;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};
$7a=function(a,b){return Math.abs(c8a*b-a)<1||Math.abs(c8a/a-b)<1?c8a:a/b};
S_=function(a){if(a.app.getAppState()===1)return!1;if(a.app.getAppState()===6)return!0;var b=g.dS(a.app);if(!b||b.No())return!1;a=a.app.Qa.getPlayerStateObject();b=!g.T(a,2)||b&&b.getVideoData().Z;var c=g.T(a,1024);return a&&b&&!c&&!a.isCued()};
R_=function(a){var b=a.app.V().controlsType==="3"&&!a.ZK&&S_(a)&&!a.app.PB||!1;a.zc.controls=b;a.zc.tabIndex=b?0:-1;b?a.zc.removeEventListener("focus",a.BS):a.zc.addEventListener("focus",a.BS)};
d8a=function(a){var b=a.zi(),c=1,d=!1,e=b8a(a,b,a.getVideoAspectRatio()),f=a.app.V(),h=f.N("enable_desktop_player_underlay"),l=Tna(),m=g.KD(f.experiments,"player_underlay_min_player_width");m=h&&a.xT&&a.getPlayerSize().width>m;if(S_(a)){var n=a8a(a);var p=isNaN(n)||g.ou||wU&&g.Nt||m;nu&&!g.tc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.N("place_shrunken_video_on_left_of_player")?16:a.getPlayerSize().width-b.width-16,n=Math.max((a.getPlayerSize().height-b.height)/2,0),p=new g.ym(p,n,b.width,
b.height),a.zc.style.setProperty("border-radius","12px")):p=new g.ym(0,0,b.width,b.height):(c=e.aspectRatio/n,p=new g.ym((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.Nt&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.Cp(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.R2)a.zc.style.display="";a.FR=!0}else{p=-b.height;nu?p*=window.devicePixelRatio:g.eQ&&(p-=window.screen.height);p=new g.ym(0,p,b.width,b.height);if(l||a.R2)a.zc.style.display=
"none";a.FR=!1}zm(a.KM,p)||(a.KM=p,g.OP(f)?(a.zc.style.setProperty("width",p.width+"px","important"),a.zc.style.setProperty("height",p.height+"px","important")):g.Lm(a.zc,p.getSize()),d=new g.Ag(p.left,p.top),g.Hm(a.zc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.ym((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);zm(a.lC,b)||(a.lC=b,d=!0);g.Bm(a.zc,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.HM&&(m&&(a.zc.addEventListener(cOa,a.oM),a.zc.addEventListener("transitioncancel",a.oM),a.zc.classList.add(g.Q_.VIDEO_CONTAINER_TRANSITIONING)),
a.HM=m,a.app.Qa.publish("playerUnderlayVisibilityChange",a.HM?"transitioning":"hidden"));return d};
e8a=function(){this.csn=g.Xw();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
f8a=function(a){if(a.csn!==g.Xw())if(a.csn==="UNDEFINED_CSN")a.csn=g.Xw();else{var b=g.Xw(),c=g.Ww();if(b&&c){a.csn=b;for(var d=g.x(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.Mr("combine_ve_grafts")?NL(LL(),e,c):g.qr(g.rx)(void 0,b,c,e))}if(b)for(a=g.x(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.zx(b,c)}};
g.T_=function(a,b,c,d){g.O.call(this);var e=this;this.logger=new g.KT("App");this.PB=this.Lj=!1;this.Ar={};this.MM={};this.BC=[];this.g_=!1;this.qR=null;this.m_=!1;this.Zx=!0;this.tU=!1;this.G_=this.LR=null;this.S_=!0;this.mediaElement=this.Hb=null;this.fS=NaN;this.nH=!1;this.Ge=this.hD=this.wb=this.Ee=this.screenLayer=this.yb=this.playlist=null;this.Qc={If:function(){return e.wb},
cI:function(m){e.wb=m},
NO:function(m,n){e.wb&&e.wb.NO(m,n)}};
this.logger.debug("constructor begin");this.config=soa(b||{});this.webPlayerContextConfig=c;Foa();b=this.config.args||{};this.ea=new VP(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.P(this,this.ea);I6a(this.ea);d=K6a(this.ea);this.ea.experiments.fb("jspb_serialize_with_worker")&&nra();this.ea.experiments.fb("gzip_gel_with_worker")&&eqa();this.ea.B&&!g8a&&(window.addEventListener(EP?"touchstart":"click",l6a,{capture:!0,passive:!0}),g8a=!0);this.N("html5_onesie")&&(this.Sy=new oV(this.ea),
g.P(this,this.Sy));this.U2=vs(JP(this.ea)&&!0,b.enablesizebutton);this.ER=vs(!1,b.player_wide);this.visibility=new D6a;g.P(this,this.visibility);this.N("web_log_theater_mode_visibility")&&this.MC(vs(!1,b.player_wide));this.Lj=vs(!1,b.external_list);this.events=new g.dG(this);g.P(this,this.events);this.N("start_client_gcf")&&(Zv(cw(),{yH:Du,iV:Bpa()}),this.m8=cw().resolve(Du),Epa(this.m8));this.fea=new ZR;g.P(this,this.fea);this.ys=new e8a;b=new mNa;this.Qa=new g.jS(this,b);g.P(this,this.Qa);this.template=
new Z7a(this);g.P(this,this.template);this.appState=1;this.Yi=h8a(this);g.P(this,b);b={};this.RO=(b.internalvideodatachange=this.oS,b.playbackready=this.dba,b.playbackstarted=this.eba,b.statechange=this.fba,b);this.n9=new aY(this.Qa);this.Rd=i8a(this);b=this.N("html5_load_wasm");var f=this.N("html5_allow_asmjs");if(b&&j8a||f)this.ea.Qj=$1a(this.Rd,f),CL(BL(this.ea.Qj,function(m){e.ea.Wd=m;var n;(n=g.dS(e))==null||n.oa("wasm",{a:m.yq})}),function(m){g.fx(m);
m="message"in m&&m.message||m.toString()||"";var n;(n=g.dS(e))==null||n.oa("wasm",{e:m})});
else if(b&&!j8a){var h;(h=g.dS(this))==null||h.oa("wasm",{e:"wasm unavailable"})}this.Lb=new e1a(this.ea,this.Rd);this.Qa.publish("csiinitialized");this.ub=k8a(this);this.ub.setPlaybackRate(this.ea.D?1:l8a(this,Number(g.$s("yt-player-playback-rate"))||1));g.Gx(this.ub,this.RO,this);yZa(this.ub);h={};this.M1=(h.airplayactivechange=this.onAirPlayActiveChange,h.airplayavailabilitychange=this.onAirPlayAvailabilityChange,h.beginseeking=this.qS,h.sabrCaptionsDataLoaded=this.Tca,h.endseeking=this.wS,h.internalAbandon=
this.ZG,h.internalaudioformatchange=this.SB,h.internalvideodatachange=this.onVideoDataChange,h.internalvideoformatchange=this.aC,h.liveviewshift=this.Qba,h.playbackstalledatstart=this.lda,h.progresssync=this.wca,h.onAbnormalityDetected=this.lS,h.onSnackbarMessage=this.onSnackbarMessage,h.onLoadProgress=this.onLoadProgress,h.SEEK_COMPLETE=this.XB,h.SEEK_TO=this.Yca,h.onVideoProgress=this.onVideoProgress,h.onLoadedMetadata=this.onLoadedMetadata,h.onAutoplayBlocked=this.onAutoplayBlocked,h.onPlaybackPauseAtStart=
this.lca,h.playbackready=this.mca,h.statechange=this.n1,h.newelementrequired=this.N0,h.heartbeatparams=this.YG,h.videoelementevent=this.pM,h.drmoutputrestricted=this.onDrmOutputRestricted,h.signatureexpired=this.gda,h.nonfatalerror=this.eca,h.reloadplayer=this.Eca,h);this.Yu=new g.dG(this);g.P(this,this.Yu);h=10;g.YD(this.ea)&&(h=3);cQ(this.ea)&&(h=g.KD(this.ea.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Zu=new P_;g.P(this,this.Zu);this.Wy=new N_(h,function(m){m!==g.dS(e,m.getPlayerType())&&
m.dispose()});
g.P(this,this.Wy);this.bQ=this.kK=-1;this.cN=new g.qp(this.template.resize,16,this.template);g.P(this,this.cN);this.fd=new F7a(this.Qa,this.ea,this.ub);this.En=new r_(this.ea);this.zl=new z6a(this);g.P(this,this.zl);this.ON=new l_(this);g.P(this,this.ON);U7a(this.ea.j.c);this.events.T(this.Qa,g.DE("appapi"),this.aba);this.events.T(this.Qa,g.EE("appapi"),this.bba);this.events.T(this.Qa,g.DE("appprogressboundary"),this.vca);this.events.T(this.Qa,g.EE("applooprange"),this.eN);this.events.T(this.Qa,"presentingplayerstatechange",
this.Ei);this.events.T(this.Qa,"resize",this.Jca);this.template.Ha(ch(document,a));this.events.T(this.Qa,"offlineslatestatechange",this.gca);this.Rd.K.V().Uj&&oY(this.Rd,"offline");this.ea.Za&&g.fY("ux",g.j_);a=g.KD(this.ea.experiments,"html5_defer_fetch_att_ms");this.GX=new g.qp(this.mea,a,this);g.P(this,this.GX);this.wd().Be()&&(g.bt()&&this.wd().Ea.push("remote"),m8a(this));this.Lb.tick("fs");n8a(this);if(this.ea.Xb()&&this.ea.N("html5_record_h5vcc_flags")){var l;(l=g.dS(this))==null||l.oa("h5vcc",
d)}this.ea.Za&&oY(this.Rd,"ux",!0);g.HP(this.Rd.K.V())&&oY(this.Rd,"embed");this.N("web_player_sentinel_is_uniplayer")||g.fx(new g.lt("Player experiment flags missing","web_player_sentinel_is_uniplayer"));l=this.N("web_player_sentinel_yt_experiments_sync");a=g.Mr("web_player_sentinel_yt_experiments_sync");l!==a&&g.fx(new g.lt("b/195699950",{yt:l,player:a}));c||g.fx(new g.lt("b/179532961"));this.O3=o8a(this);if(c=g.KD(this.ea.experiments,"html5_block_pip_safari_delay"))this.iQ=new g.qp(this.WX,c,this),
g.P(this,this.iQ);Zr=this.ea.Jc;c=g.KD(this.ea.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.B1=new g.Ji(c),g.P(this,this.B1),this.events.T(this.B1,"tick",function(){e.C1&&p8a.HA("apit",e.C1);e.C1=p8a.SC()}));
this.Qa.publish("applicationInitialized");this.logger.debug("constructor end")};
o8a=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.yb||a.ub).Wb().Hd("player.exception",UF(c)))}
gx.subscribe("handleError",b);or.push(b);return function(){gx.unsubscribe("handleError",b);var c=or.indexOf(b);c!==-1&&or.splice(c,1)}};
k8a=function(a){var b=new g.WQ(a.ea,a.config.args);a.Qa.publish("initialvideodatacreated",b);return a.xA(1,b)};
q8a=function(a,b){if(a.ub!==b){b.getVideoData().autonavState=a.ub.getVideoData().autonavState;Hx(a.ub,a.RO,a);var c=a.ub.getPlaybackRate();a.ub.dispose();a.ub=b;a.ub.setPlaybackRate(c);g.Gx(b,a.RO,a);m8a(a)}};
i8a=function(a){var b="",c=X7a(a);c.indexOf("//")===0&&(c=a.ea.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.fx(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new I1a(a.Qa,b);r8a(a,b);return b};
r8a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
h8a=function(a){if(a.ea.storeUserVolume){a=g.$s("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.xg(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.ea.mute};return a};
U_=function(a){a.mediaElement=a.ea.deviceIsAudioOnly?new g.PX(g.mh("AUDIO")):k_.pop()||new g.PX(g.mh("VIDEO"));g.P(a,a.mediaElement);a.yb&&a.yb.setMediaElement(a.mediaElement);try{a.ea.kd?(a.hD&&a.events.Nc(a.hD),a.hD=a.events.T(a.mediaElement,"volumechange",a.Yba)):(a.mediaElement.HC(a.Yi.muted),a.mediaElement.setVolume(a.Yi.volume/100))}catch(e){a.gh("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.Vs(a.Yu);s8a(a);var b=a.template,c=a.mediaElement.Jb();b.zc=c;b.ZK=!1;b.zc.parentNode||qh(b.uA,b.zc,0);b.KM=new g.ym(0,0,0,0);d8a(b);R_(b);c=b.zc;g.yp(c,"video-stream");g.yp(c,g.Q_.MAIN_VIDEO);var d=b.app.V();d.Bl&&c.setAttribute("data-no-fullscreen","true");d.N("html5_local_playsinline")?"playsInline"in YF()&&(c.playsInline=!0):d.Jm&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Sq&&b.zc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.gh("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}};
q_=function(a,b,c){if(a.yb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.yb){d=a.yb.getPlayerState();a.logger.debug("set presenting player, destroy modules");pY(a.Rd,3);V_(a,"cuerangesremoved",a.yb.Nj());a.zl&&!b.isGapless()&&a.yb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=QG(b)&&QG(a.yb);a.Lb.Vv("iv_s");t8a(a,e)}b.getPlayerType()===1&&q8a(a,b);u8a(a,b);a.yb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.Gx(b,a.M1,a);if(b.mL())v8a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.MH(d,b.getPlayerState())&&
a.n1(new g.Ny(b.getPlayerState(),d));c=c&&a.N("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.Qq.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Qa.xf("onPlaybackQualityChange",c.quality);V_(a,"cuerangesadded",a.yb.Nj());c=b.getPlayerState();g.T(c,2)?w8a(a):g.T(c,8)?b.playVideo():b.oG()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().MK=(f=g.dS(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!==
2||a.Mf()||(f=b.getVideoData(),a.ub.cz(f.clientPlaybackNonce,f.Vb||"",f.breakType||0,f.dk,f.videoId||""));a.logger.debug("finish set presenting player")}}};
w8a=function(a){if(!x8a(a)){var b=a.ub.Le();b&&(b=b.sF(),b instanceof Promise&&b.catch(function(){}));
W_(a,OH(a.getPlayerStateObject()))}};
s8a=function(a){var b=a.mediaElement;bG()?a.Yu.T(b,"webkitpresentationmodechanged",a.Vca):window.document.pictureInPictureEnabled&&(a.Yu.T(b,"enterpictureinpicture",function(){a.nz(!0)}),a.Yu.T(b,"leavepictureinpicture",function(){a.nz(!1)}));
ns&&(a.Yu.T(b,"webkitbeginfullscreen",function(){a.pm(3)}),a.Yu.T(b,"webkitendfullscreen",function(){a.pm(0)}))};
u8a=function(a,b){var c=b.getPlayerType();if(b!==a.ub&&b!==a.Ar[c]){var d;(d=a.Ar[c])==null||d.dispose();a.Ar[c]=b}};
t8a=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.Ge){c=a.Ge;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.hk(),U_(a));a.yb&&(a.yb.hk(!b),Hx(a.yb,a.M1,a),a.yb.getPlayerType()!==1&&a.yb.dispose());a.yb=null;a.logger.debug("finish clear presenting player")};
g.dS=function(a,b){if(b)if(b===1)a=a.ub;else if(a.getVideoData().enableServerStitchedDai&&b===2)a=a.getVideoData().enablePreroll?a.Ar[2]||a.yb:a.yb;else if(g.jR(a.getVideoData())&&b===2){if(b=a.N("html5_ssap_return_content_player_during_preroll"))if(b=a.wb)b=a.wb,b=b.Mb===""?!0:b.Qk();a=b?a.yb:a.Ar[2]||a.yb}else a=a.Ar[b]||null;else a=a.yb;return a};
y8a=function(a,b,c,d){a=a.xA(b,c,d);yZa(a);return a};
X_=function(a,b){return a.Mf(b)?a.ub:b};
Y_=function(a,b){var c=a.yb;return c&&b===a.ub&&a.Mf(b)&&a.Mf(c)?c:b};
B8a=function(a){a.logger.debug("start application playback");if(a.ub.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=Z_(a);a.wd().isLoaded();b&&a.Yq(6);z8a(a);S1a(a.Rd)||A8a(a)}};
A8a=function(a){if(!Z_(a)){var b=qY(a.Rd);b&&!b.created&&J1a(a.Rd)&&(a.logger.debug("reload ad module"),b.create())}};
z8a=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Rd;S1a(c)||c.EP();!j8a&&c.K.N("html5_allow_asmjs")&&Z1a(c);oY(c,"embed");oY(c,"inline_preview");oY(c,"kids");oY(c,"remote");oY(c,"miniplayer");oY(c,"offline");oY(c,"unplugged");oY(c,"ypc",!1,!0);oY(c,"ypc_clickwrap",!1,!0);oY(c,"yto",!1,!0);oY(c,"webgl",!1,!0);T1a(c)||(oY(c,"captions",!0),oY(c,"endscreen"),c.sU()||c.MJ(),oY(c,"creatorendscreen",!0));c.mY();a.Qa.publish("videoready",b)};
$_=function(a){a=a.wd();a.Be();return LR(a)};
n8a=function(a){a.logger.debug("start prepare initial playback");if(a.N("html5_enable_ssap_autoplay_debug_logging")){var b;(b=a.ub)==null||b.oa("ssap",{preppb:1})}a.NP();var c=a.config.args;U_(a);b=a.wd();a.Qa.xf("onVolumeChange",a.Yi);if(c&&i1a(c)){var d=ZP(a.ea);d&&!a.Lj&&(c.fetch=0);var e=g.HP(a.ea);e&&!a.Lj&&(c.fetch=0);a0(a,c);g.HP(a.ea)&&a.Lb.tick("ep_pr_s");if(!d||a.Lj)if(e&&!a.Lj)C8a(a);else if(!b.Be())a.playlist.onReady(function(){b0(a)})}q_(a,a.ub);
g.T(a.ub.getPlayerState(),128)||(c=Jxa(!a.ea.deviceIsAudioOnly),c==="fmt.noneavailable"?a.gh("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):c==="html5.missingapi"?a.gh(c,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):b&&b.Be()&&$_(a)&&(a.ea.Oh||a.ea.Ph)?c0(a):b.hE?a.Qa.mutedAutoplay():g.$s("yt-player-playback-on-reload")?(g.Dt("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.ea.Ba}),g.Zs("yt-player-playback-on-reload",!1),c0(a)):hQ(a.ea)||D8a(a),g.bQ(a.ea)||eP(a.ea)===
"MWEB"?(g.qt(g.tt(),function(){d0(a)}),g.qt(g.tt(),function(){Oua()})):(d0(a),Oua()),a.logger.debug("finish prepare initial playback"))};
d0=function(a){if(!a.N("use_rta_only_for_player"))if(a.N("fetch_att_independently"))g.rp(a.GX);else{var b=a.getVideoData().botguardData;b&&g.WL(b,a.ea,a.getVideoData().Kr||"")}};
D8a=function(a){a.logger.debug("start initialize to CUED mode");a.Qa.publish("initializingmode");a.Yq(2);a.N("embeds_web_enable_defer_loading_remote_js")&&g.dQ(a.ea)?g.qt(g.tt(),function(){oY(a.Rd,"remote")}):oY(a.Rd,"remote");
oY(a.Rd,"miniplayer");a.logger.debug("initialized to CUED mode")};
c0=function(a){a.logger.debug("start initialize application playback");if(g.T(a.ub.getPlayerState(),128))return!1;var b=a.ub.getVideoData();$_(a)&&a.ea.Ph&&(k_.length&&a.PB?(e0(a,{muted:!1,volume:a.Yi.volume},!1),f0(a,!1)):k_.length||a.Yi.muted||(e0(a,{muted:!0,volume:a.Yi.volume},!1),f0(a,!0)));$_(a)&&g.HP(a.ea)&&b.mutedAutoplay&&(e0(a,{muted:!0,volume:a.Yi.volume},!1),f0(a,!0));b.VL&&e0(a,{muted:!0,volume:a.Yi.volume},!1);E8a(a,1,b,!1);a.Qa.publish("initializingmode");q_(a,a.ub);a.Yq(3);var c;if(!(c=
!a.ea.Yn)){if(c=a.Ge){c=a.Ge;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.g_}c&&(a.hk(),U_(a),a.ub.setMediaElement(a.mediaElement));JZa(a.ub);if(g.T(a.ub.getPlayerState(),128))return!1;b.wk||W_(a,3);return a.g_=!0};
Z_=function(a){a=mS(a.Rd);return!!a&&a.loaded};
F8a=function(a,b){if(!a.Hb)return!1;var c=a.Hb.startTimeMs*.001-1,d=a.Hb.endTimeMs*.001;a.Hb.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d};
I8a=function(a){var b,c=(b=g.dS(a))==null?void 0:b.va;a.yb&&oR(a.getVideoData())&&c&&c.policy.Za&&(b=G8a(a)*1E3-a.getVideoData().D1,a.N("html5_gapless_new_slr")?(a=a.ON,H8a(a.app,"gaplessshortslooprange"),b=new g.BE(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Rc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
J8a=function(a){if(!(g.T(a.ub.getPlayerState(),64)&&a.wd().isLivePlayback&&a.Hb.startTimeMs<5E3)){if(a.Hb.type==="repeatChapter"){var b,c=(b=sNa(a.Bb()))==null?void 0:b.Pi(),d;b=(d=a.getVideoData())==null?void 0:d.vl;c instanceof g.EY&&b&&(d=b[WY(b,a.Hb.startTimeMs)],c.renderChapterSeekingAnimation(0,d.title));isNaN(Number(a.Hb.loopCount))?a.Hb.loopCount=0:a.Hb.loopCount++;a.Hb.loopCount===1&&a.Qa.gb("innertubeCommand",a.getVideoData().d5)}c={bd:"application_loopRangeStart"};if(a.Hb.type==="clips"||
a.Hb.type==="shortsLoop")c.seekSource=58;a.ub.seekTo(a.Hb.startTimeMs*.001,c)}};
l8a=function(a,b){var c=a.Qa.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};
G8a=function(a,b){b=g.dS(a,b);if(!b)return 0;b=X_(a,b);return g0(a,iX(b),b)};
g0=function(a,b,c){if(a.Mf(c)){c=c.getVideoData();if(h0(a))c=b;else{a=a.fd;for(var d=g.x(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.Cd===e.Cd){b+=e.hc/1E3;break}d=b;a=g.x(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Cd===e.Cd)break;var f=e.hc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Sd/1E3;else break}c=d}return c}return b};
K8a=function(a,b){if(a.getPresentingPlayerType()===3)return OH(mS(a.Rd).Ne);if((a.getVideoData().enableServerStitchedDai||g.jR(a.getVideoData()))&&b===2){i0(a,"geps");var c,d;return((c=a.Ee)==null?0:c.Qk(a.getCurrentTime()))||((d=a.wb)==null?0:d.Qk())?a.kK:-1}return b!==2||a.Mf()?a.kK:a.bQ};
m8a=function(a){a.logger.debug("reset for new application playback");j0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Qa.publish("legacyadtrackingpingreset");a.MM={};a.BC=[];g1a(a.Lb);if(a.Ee){var b=a.Ee,c=a.ub;c.getPlayerType();A_(b,!1);a7a(b);b7a(b);b.ma=c}b=a.fd;a=a.ub;a.getPlayerType()!==1&&G_(b,"invalidParentVideoPlayerType");K_(b,!1);S7a(b);b.j=a};
C8a=function(a,b){var c=(b?b:a.wd()).p4;a.Lb.tick("ep_pr_r");if(c!=null&&(m1a(a.playlist,c),a.tU))a.playlist.onReady(function(){b0(a,b)})};
a0=function(a,b){a.playlist&&(g.jb(a.playlist),a.playlist=null);b&&(a.Lj&&(b.fetch=0),a.playlist=new h1a(a.ea,b))};
L8a=function(a){var b,c=Number((b=a.getVideoData().progressBarEndPosition)==null?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.kf())&&(b-=a.getCurrentTime(),c=(c-b)*1E3,b=a.MM.progressEndBoundary,(b==null?void 0:b.start)!==c&&(b&&a.IH([b]),c=new g.BE(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.ub.addCueRange(c),a.MM.progressEndBoundary=c))};
W_=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.yb){var c=a.yb.getPlayerType();if(c===2&&!a.Mf()){a.bQ!==b&&(a.bQ=b,a.Qa.xf("onAdStateChange",b));return}if(c===2&&a.Mf()||c===5||c===6||c===7)if(b===-1||b===0||b===5)return}if(b===0){if(a.Hb)return;var d;if(((d=a.yb)==null?0:d.pu())&&!gQ(a.ea)){a.playVideo();return}}a.kK!==b&&(a.kK=b,a.Qa.xf("onStateChange",b))};
M8a=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.yb.getPlayerType();var f=E8a(a,c,b,!0);f||(f=y8a(a,c,b));if(c===2&&a.ub){var h=f.getVideoData();a.ub.cz(h.clientPlaybackNonce,h.Vb||"",h.breakType||0,h.dk,h.videoId||"")}a.eK(f,d,0,e)};
N8a=function(a,b,c,d,e){var f="";f=a.ea.N("html5_autonav_autoplay_in_preload_key")?k0(a,c,b):l0(a,c,b.videoId,b.Cd);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.yb&&(h=a.ea.N("html5_autonav_autoplay_in_preload_key")?k0(a,a.yb.getPlayerType(),a.yb.getVideoData()):l0(a,a.yb.getPlayerType(),a.yb.getVideoData().videoId,a.yb.getVideoData().Cd),f===h))return g.XW(a.yb,!0),b.dispose(),null;b.kd=!0;b=y8a(a,c,b);c===1&&cQ(a.ea)||g.XW(b,!0);a.Wy.set(f,b,d||3600);return b};
O8a=function(a,b,c,d){var e=As(c);return l0(a,b,e,d,c.autonav==="1"||c.autonav===!0,c.autoplay==="1"||c.autoplay===!0||c.autoplay===1)};
k0=function(a,b,c){return l0(a,b,c.videoId,c.Cd,c.isAutonav,c.wp)};
l0=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;b=b+"_"+c+"_"+d;a.ea.N("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
E8a=function(a,b,c,d){var e=a.ea.N("html5_autonav_autoplay_in_preload_key")?k0(a,b,c):l0(a,b,c.videoId,c.Cd);var f=a.Wy.get(e);if(!f||f.Ja())return null;a.Wy.remove(e);if(g.T(f.getPlayerState(),128))return f.dispose(),null;if(f===g.dS(a,b))return a.Lb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;b===1&&j0(a);d||q_(a,f,!0);a.Lb.infoGel({isCacheHit:!0});return f};
m0=function(a,b,c){c=g.dS(a,c);b&&c===a.ub&&(c.getVideoData().Ph=!0)};
n0=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.Be()){var d=a.xA(c,b);a.cancelPlayback(4,c);q_(a,d);yZa(d);if(c===1){a.Yq(1);if(g.HP(a.ea)&&!YMa(b)){b.dispose();g.jb(g.dS(a,c));return}D8a(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.jb(g.dS(a,c)),UMa(a.wd())&&c===2&&a.lA()};
P8a=function(a,b,c,d,e){b=pNa(b,c,d,e);(c=g.HP(a.ea)&&!a.ea.ra)&&!a.Lj&&(b.fetch=0);a0(a,b);g.HP(a.ea)&&a.Lb.tick("ep_a_pr_s");if(c&&!a.Lj)c=a.wd(),p1a(c,b).then(function(f){a.tU=!0;C8a(a,f)});
else a.playlist.onReady(function(){b0(a)});
g.HP(a.ea)&&a.Lb.tick("ep_a_pr_r")};
b0=function(a,b){var c=g.HP(a.ea)&&!a.ea.ra,d=c&&b?b:g.dY(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.qj&&(a.ea.Oh||a.ea.Ph)||!a.Zx?(b=b.Ph,d=a.Uu(d,1),b&&m0(a,d)):n0(a,d,1));g.HP(a.ea)&&a.Lb.tick("ep_p_l");a.tU=!1;a.Qa.Bd("onPlaylistUpdate")};
x8a=function(a){if(a.playlist&&g.NP(a.ea)&&a.EF()){var b=a.ea.N("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
Q8a=function(a,b,c,d,e,f,h){b={id:b,namespace:h!=null?h:"appapi"};f==="chapter"?(b.style=AE.CHAPTER_MARKER,b.visible=!0):isNaN(e)||(f==="ad"?b.style=AE.AD_MARKER:(b.style=AE.TIME_MARKER,b.color=e),b.visible=!0);a.cA([new g.BE(c*1E3,d*1E3,b)],1);return!0};
R8a=function(a,b,c,d,e,f){f=f===void 0?!0:f;var h=a.kf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.BC.push({id:b,oga:c,nga:d}),!1;f=h-a.getCurrentTime();return Q8a(a,b,c-f,d-f,void 0,void 0,e)};
S8a=function(a,b){a.BC=g.wn(a.BC,function(f){return f.id!==b});
for(var c=a.ub.Nj(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.ub.removeCueRange(e),V_(a,"cuerangesremoved",[e]),!0}return!1};
H8a=function(a,b,c){var d=g.dS(a,c);d&&(b=d.ph.df(b),c&&a.getPresentingPlayerType()!==c||V_(a,"cuerangesremoved",b))};
T8a=function(a){var b=(0,g.Vt)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
e0=function(a,b,c){a.ea.Va&&(a.Yi=b,b.muted||f0(a,!1),c&&a.ea.storeUserVolume&&!a.ea.kd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Zs("yt-player-volume",c),g.Zs("yt-player-volume",c,2592E3))),U8a(a),c=g.$F&&a.mediaElement&&!a.mediaElement.xi(),a.ea.kd&&!c||a.Qa.xf("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.ea.storeUserVolume}))};
U8a=function(a){var b=a.getVideoData();if(!b.Bl){b=a.ea.kd?1:RMa(b);var c=a.mediaElement;c.HC(a.Yi.muted);try{c.setVolume(a.Yi.volume*b/100)}catch(d){g.fx(new g.lt("b183742307","multiplier: "+b+", volume: "+a.Yi.volume))}}};
f0=function(a,b){b!==a.PB&&(a.PB=b,a.Qa.Bd("onMutedAutoplayChange",b))};
cS=function(a){return a.PB&&a.getVideoData().mutedAutoplay};
V8a=function(a){var b=Ks(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Jb())?b:null};
X8a=function(a,b){var c=window.screen&&window.screen.orientation;if((a.ea.N("lock_fullscreen2")||a.ea.W)&&c&&c.lock&&(!g.$F||!W8a))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.nH||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){});
a.nH=!0}}else a.nH&&(a.nH=!1,c.unlock())};
V_=function(a,b,c){a.Qa.publish(b,c);var d=g.YD(a.ea)||g.OP(a.ea)||g.kz(a.ea);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Qa.gb(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}}))}};
o0=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.dS(a,e);h&&(h.getPlayerType()===2&&!a.Mf(h)||g.BR(h.getVideoData()))||(a.getPresentingPlayerType()===3?mS(a.Rd).XG("control_seek",b,c):(h===a.ub&&a.Hb&&!F8a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
v8a=function(a,b,c,d){c&&(a.hk(),U_(a));c=g.dS(a);c.Hd(new VF("staleconfig",{reason:b}));var e=a.getVideoData(),f={};f.video_id=e.videoId;f.adformat=e.adFormat;e.isLivePlayback?iR(e)&&g.WD(a.ea)&&(f.live_utc_start=c.kf(),f.resume="1"):(f.start=c.getCurrentTime(),f.resume="1");e.ra&&(f.vvt=e.ra);e.L&&(f.vss_credentials_token=e.L,f.vss_credentials_token_type=e.Sn);e.oauthToken&&(f.oauth_token=e.oauthToken);e.Yn&&(f.force_gvi=e.Yn);f.autoplay=1;f.reload_count=e.uc+1;f.reload_reason=b;e.SD&&(f.unplugged_partner_opt_out=
e.SD);e.bj&&(f.ypc_is_premiere_trailer=e.bj);e.playerParams&&(f.player_params=e.playerParams);a.loadVideoByPlayerVars(f,void 0,!0,void 0,void 0,d);b==="signature"&&a.Ee&&A8a(a)};
Y8a=function(a,b){a.wd().autonavState=b;g.Zs("yt-player-autonavstate",b);a.Qa.publish("autonavchange",b)};
Z8a=function(a){var b=a.getVideoData().Bl,c=a.ea.tb,d=a.isInline()&&!a.getVideoData().t4,e=a.mediaElement;b||c||d?e.PP():(e.TP(),e0(a,a.Yi))};
j0=function(a){var b=qY(a.Bb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
h0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Ee};
$8a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.x(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Em(a,d);b.hidden=!!a.hidden};
X7a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Pq(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
i0=function(a,b){if(a.N("html5_ssap_enable_api_timing_logging")&&g.jR(a.wd())&&!a.En.C){var c;(c=g.dS(a))==null||c.oa("ssap",{ptnu:b})}};
a9a=function(a){return a.name==="TypeError"&&a.stack.includes("/s/player/")&&fs()<=105};
b9a=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
c9a=function(){var a=null;coa().then(function(b){return a=b},function(b){return a=b9a(b)});
return a};
d9a=function(){var a=Li(1E3,"NO_BID");return Hi(Cfa([coa(),a]).wl(b9a),function(){a.cancel()})};
p0=function(a){return a.Xd?g.gt(g.ft(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
q0=function(a){this.player=a;this.C=this.j=1};
g9a=function(a,b,c,d,e){b.client||(b.client={});a.player.V().N("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=c);var f=zr(c),h=g.Xi(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Xi(c)?!1:!0;if(f||h||d!==""){var l={};c=tr(Er(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=[];e9a.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
f9a(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.N("embeds_web_enable_iframe_api_send_full_embed_url")&&
YCa(b,e)};
j9a=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 h9a&&(f.clientName=h9a[d[0]]),d[1]in i9a&&(f.platform=i9a[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};
l9a=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in k9a))return!1;a=a.split(RegExp("[:&]"));var b=k9a.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};
f9a=function(a,b){a=a.player.V();if(g.$P(a)||cQ(a)&&a.N("add_ifa_to_tvh5_requests")){a=g.mr("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)}};
t9a=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=m9a.exec(b);h=h!=null&&h.length>=2?h[1]:"";var l=n9a.test(b),m=o9a.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=p9a.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=q9a.exec(b);p=p!=null&&p.length>=2?p[1]:"0";var q=SP(a.player.V().Ea),r=a.player.getVideoData(1);r=g.xz(r.Fa,!0);var t="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";g9a(a,r,b,t.toString(),a.player.V());
var u={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:20041,autonavState:p0(a.player.V())};d&&(d={},j9a(d,c.YT_REMOTE)&&(u.mdxContext=d));if(d=r9a.includes(q)?void 0:g.bs("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=l9a(d)}b=s9a.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:tr(Er(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};
u9a=function(){q0.apply(this,arguments)};
v9a=function(a,b,c,d,e){var f=c.mx;c=c.oe;var h=a.player.V().ek,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Xg:0,AUTONAV_STATE:p0(a.player.V()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Wr()*1E3,LACT:Wv(),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.qb().zi().height,P_W:a.player.qb().zi().width,YT_REMOTE:h?h.join(","):
""},m=Dr(Cr);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())});
d!==""&&(l.BISCOTTI_ID=d);d={};Br(b)&&(d.sts="20041",(a=a.player.V().forcedExperiments)&&(d.forced_experiments=a));return yr(g.Uo(b,l),d)};
w9a=function(a,b){var c=a.player.V(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.kQ(c,e).then(function(f){if(f&&Ar()){var h=sS();tS(h,f)}return g.CA(a.player.Xm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
x9a=function(a){this.Na=a};
y9a=function(a){this.K=a};
z9a=function(a){this.Na=a};
B9a=function(a){g.O.call(this);this.qh=a;this.f7=A9a(this)};
A9a=function(a){var b=new Hva(a.qh.ud);g.P(a,b);a=g.x([new x9a(a.qh.Na),new y9a(a.qh.K),new z9a(a.qh.Na),new cC(a.qh.hm,a.qh.fp),new eC,new hC(a.qh.Uf,a.qh.Rl,a.qh.Na),new dC,new bC]);for(var c=a.next();!c.done;c=a.next())Iva(b,c.value);a=g.x(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())fC(b,c.value,function(){});
return b};
r0=function(a){var b=a.Sa,c=a.Aa;a=a.Ue;var d=new WBa,e={ej:new Fxa(b.get(),c),Aa:c};return{Tb:new qL(c,a,b,e),context:e,Xh:d}};
s0=function(a,b,c,d,e){g.O.call(this);this.B=b;this.Ia=c;this.Sa=d;this.Ie=e;this.listeners=[];var f=new Ts(this);g.P(this,f);f.T(a,"internalAbandon",this.ZG);this.addOnDisposeCallback(function(){g.Vs(f)})};
t0=function(a){this.K=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"};
C9a=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};
D9a=function(a,b){a=g.x(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){uA("ad_i");g.vA({isMonetized:!0});break}};
E9a=function(a){var b;(b=a.K.getVideoData(1))!=null&&b.Ba&&(a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),wA("video_to_ad",b))};
uI=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});wA("ad_to_video",b);F9a(a)};
F9a=function(a){if(a.C)if(a.D==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")rA("video_to_ad");else{var b={adBreakType:YH(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.vA(b,a.actionType)}};
u0=function(a){g.O.call(this);this.K=a;this.j=new Map;this.B=new Ts(this);g.P(this,this.B);this.B.T(this.K,g.DE("ad"),this.onCueRangeEnter,this);this.B.T(this.K,g.EE("ad"),this.onCueRangeExit,this)};
G9a=function(a,b,c,d,e){g.BE.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
v0=function(a){this.K=a};
w0=function(a){this.K=a;g.KD(this.K.V().experiments,"tv_pacf_logging_sample_rate")};
SF=function(a,b){b=b===void 0?!1:b;return a.K.V().N("html5_ssap_force_ads_ctmp")?!0:(b||a.K.V().Xb())&&a.K.V().N("html5_ssap_pacf_qoe_ctmp")};
x0=function(a){var b,c;return(c=(b=a.K.getVideoData(1))==null?void 0:g.jR(b))!=null?c:!1};
sE=function(a,b){return a.K.V().N(b)};
H9a=function(a){return a.K.V().N("substitute_ad_cpn_macro_in_ssdai")};
JK=function(a){var b,c,d;return((b=a.K.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1};
NBa=function(a){return a.K.V().N("html5_enable_vod_slar_with_notify_pacf")};
I9a=function(a){return a.K.V().N("html5_recognize_predict_start_cue_point")};
oK=function(a){return a.K.V().experiments.fb("enable_desktop_player_underlay")};
J9a=function(a){return a.K.V().experiments.fb("html5_load_empty_player_in_media_break_sub_lra")};
jI=function(a){return a.K.V().experiments.fb("html5_load_ads_instead_of_cue")};
kI=function(a){return a.K.V().experiments.fb("html5_preload_ads")};
kL=function(a){return a.K.V().experiments.fb("enable_ads_control_flow_deterministic_id_generation")};
K9a=function(a){return a.K.V().experiments.fb("enable_desktop_discovery_video_abandon_pings")||g.$P(a.K.V())&&a.K.V().experiments.fb("enable_lr_discovery_video_abandon_pings")};
L9a=function(a){return a.K.V().experiments.fb("enable_progres_commands_lr_feeds")};
M9a=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}};
N9a=function(){g.Fx.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.x(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
y0=function(){if(O9a===null){O9a=new N9a;Pl(Ko).B="b";var a=Pl(Ko),b=Do(a)=="h"||Do(a)=="b",c=!(Ul(),!1);b&&c&&(a.G=!0,a.L=new hka)}return O9a};
P9a=function(a,b,c){a.j[b]=c};
Q9a=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}};
z0=function(a,b,c){this.Ia=a;this.K=b;this.Aa=c;this.B=new Set;this.j=new Map;y0().subscribe("adactiveviewmeasurable",this.Ky,this);y0().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Jy,this);y0().subscribe("adviewableimpression",this.Ly,this);y0().subscribe("adaudioaudible",this.Hy,this);y0().subscribe("adaudiomeasurable",this.Iy,this)};
B0=function(a,b,c){var d=c.Mt,e=c.LI,f=c.listener,h=c.F7;c=c.Uo===void 0?!1:c.Uo;if(a.j.has(b))My("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);tl(Ul().Lc,"fmd",1);sla(Pl(Ko),d);var l=c?b:void 0;P9a(y0(),b,{uQ:function(){if(!e)return{};var m=a.K.getPresentingPlayerType(!0),n;return(n=a.K.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ia.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:A0(a.Ia.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:a.Ia.get().isMuted()?0:a.Ia.get().getVolume()/100}:{}}})}};
C0=function(a,b){a.j.has(b)?(a.j.delete(b),delete y0().j[b]):My("Unexpected unregistration of layout in LidarApi")};
R9a=function(a,b){if(a.K.isLifaAdPlaying()){var c=a.K.hn(!0,!0);a.cw(b,c.width*.5*1.1,c.height*.25*1.1,c.width*.5*.9,c.height*.5*.9)}};
U9a=function(a,b,c){var d={};S9a(a,d,b,c);T9a(d);d.LACT=D0(function(){return Wv().toString()});
d.VIS=D0(function(){return a.getVisibilityState().toString()});
d.SDKV="h.3.0";d.VOL=D0(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
d.VED="";return d};
V9a=function(a,b){var c={};if(b)return c;if(!a.kind)return g.ex(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.ex(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=D0(wi(Math.round(ng(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=D0(wi("0"));return c};
D0=function(a){return{toString:function(){return a()}}};
W9a=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.Og(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};
S9a=function(a,b,c,d){b.CPN=D0(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.fx(Error("Video data is null.")),e=null);return e});
b.AD_MT=D0(function(){if(d!=null)var e=d;else{var f=c;a.V().N("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.V().N("enable_h5_shorts_ad_fill_ad_mt_macro")||a.V().N("enable_desktop_discovery_pings_ad_mt_macro")||g.$P(a.V())&&a.V().N("enable_lr_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?X9a(a,h,f):0}else e=X9a(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()});
b.MT=D0(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()});
b.P_H=D0(function(){return a.qb().zi().height.toString()});
b.P_W=D0(function(){return a.qb().zi().width.toString()});
b.PV_H=D0(function(){return a.qb().getVideoContentRect().height.toString()});
b.PV_W=D0(function(){return a.qb().getVideoContentRect().width.toString()})};
T9a=function(a){a.CONN=D0(wi("0"));a.WT=D0(function(){return Date.now().toString()})};
X9a=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)};
Y9a=function(){};
Z9a=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,y,A,C;g.I(function(F){switch(F.j){case 1:f=!!b.scrubReferrer;h=g.Uo(b.baseUrl,W9a(c,f,d));l={};if(!b.headers){F.Ga(2);break}m=a.D();if(!m.j){n=m.getValue();F.Ga(3);break}return g.G(F,m.j,4);case 4:n=F.B;case 3:p=n;q=g.x(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.mr("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.mr("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.mr("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.mr("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.fb("enable_datasync_id_header_in_web_vss_pings"))C=a.B(),zr(h)&&g.mr("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.mv(h,void 0,f,Object.keys(l).length!==
0?l:void 0,"",!0,e),g.va(F)}})};
$9a=function(a,b,c,d,e){this.D=a;this.G=b;this.j=c;this.B=d;this.C=e};
a$a=function(a,b){this.j=a;this.Aa=b};
E0=function(a,b,c,d,e,f,h){var l=l===void 0?new $9a(function(){var m=a.V(),n=a.getVideoData(1);return g.kQ(m,n?g.MR(n):"")},function(){return a.V().pageId},function(){return a.V().Ba},function(){var m;
return(m=a.V().datasyncId)!=null?m:""},function(){return a.V().experiments}):l;
this.K=a;this.B=b;this.Cb=c;this.Sa=d;this.Tb=e;this.Aa=f;this.Xh=h;this.D=l;this.uI=null;this.j=new Map;this.C=new a$a(l,this.Aa)};
c$a=function(a,b,c,d,e){var f=SK(a.B.get(),c);f?(c=$E(a,b$a(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):My("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
Mwa=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=SK(a.B.get(),b);if(h){var l=a.Cb.get().Zh(b,c),m=$E(a,b$a(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Tb.Es("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new tza(n,p),void 0,void 0,h.adLayoutLoggingData))})}else My("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
trackingType:c})};
TE=function(a,b){a.K.sendVideoStatsEngageEvent(b,void 0,2)};
CI=function(a,b){g.Dt("adsClientStateChange",b)};
d$a=function(a,b){a.j.has(b.QA())?My("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.QA(),b)};
e$a=function(a,b){a.j.delete(b.QA())||My("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
FI=function(a,b,c){typeof c==="string"?a.K.getVideoData(1).Fv(b,c):a.K.getVideoData(1).oa(b,c)};
b$a=function(a){var b=DD(a.clientMetadata,"metadata_type_ad_placement_config");a=DD(a.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,f0:a}};
$E=function(a,b,c,d,e,f){var h=c?f$a(a):{},l=c?g$a(a,c.layoutId):{},m=h$a(a),n,p=e!=null?e:(n=UH(a.Sa.get(),2))==null?void 0:n.clientPlaybackNonce;a.K.V().N("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=UH(a.Sa.get(),1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Xh.j.get(c.layoutId))==null?0:q.Uo)e=c.layoutId}q={};a=Object.assign({},U9a(a.K,e,d),V9a(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=D0(function(){return"1"}),q.AD_CPN=D0(function(){return p||
""}),q));
(c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=D0(function(){return(b.f0||0).toString()}));
c={};f=Object.assign({},a,f);a=g.x(Object.values(i$a));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};
f$a=function(a){var b={},c,d=(c=a.uI)==null?void 0:c.xj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=D0(function(){return Math.round(d*1E3).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=D0(function(){return Math.round(Date.now()/1E3).toString()});
return b};
g$a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.jQ();if(!a)return{};b={};return b.YT_ERROR_CODE=a.QN.toString(),b.ERRORCODE=a.JI.toString(),b.ERROR_MSG=a.errorMessage,b};
h$a=function(a){var b={},c=a.K.getVideoData(1);b.ASR=D0(function(){var d;return(d=c==null?void 0:c.Cw)!=null?d:null});
b.EI=D0(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null});
return b};
F0=function(a,b,c){g.O.call(this);this.K=a;this.qt=b;this.Aa=c;this.listeners=[];this.OR=null;this.MO=new Map;b=new g.dG(this);g.P(this,b);b.T(a,"videodatachange",this.yda);b.T(a,"serverstitchedvideochange",this.Zca);this.nx=UH(this)};
UH=function(a,b){var c=a.K.getVideoData(b);return c?a.wJ(c,b||a.K.getPresentingPlayerType(!0)):null};
j$a=function(a,b,c){var d=a.wJ(b,c);a.nx=d;a.listeners.forEach(function(e){e.lM(d)})};
k$a=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}};
G0=function(a,b,c){g.O.call(this);this.K=a;this.Sa=b;this.Aa=c;this.listeners=[];this.YE=[];this.j=function(){My("Called 'doUnlockPreroll' before it's initialized.")};
b=new Ts(this);c=new g.dG(this);g.P(this,c);g.P(this,b);b.T(a,"progresssync",this.xca);b.T(a,"presentingplayerstatechange",this.oca);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.Dh);b.T(a,"overlayvisibilitychange",this.Yj);b.T(a,"shortsadswipe",this.bk);b.T(a,"resize",this.lc);c.T(a,g.DE("appad"),this.Vj)};
H0=function(a){x0(a.Aa.get())||a.j()};
l$a=function(a,b){a.YE=a.YE.filter(function(c){return c!==b})};
I0=function(a,b,c){return a.getCurrentTimeSec(b,c)};
m$a=function(a,b){var c;b=(c=a.Sa.get().MO.get(b))!=null?c:null;if(b===null)return My("Expected ad video start time on playback timeline"),0;a=a.K.getCurrentTime(2,!0);return a<b?0:a-b};
A0=function(a,b){return a.K.getPlayerStateObject(b)};
n$a=function(a){var b=a.K.qb().zi();a=a.K.hn(!0,!0);return b.height-(a.height+a.top)};
o$a=function(a){a.K.cueVideoByPlayerVars({videoId:"empty_video"},2)};
jya=function(a,b){var c=a.K.V();g.MP(c)||c.controlsType!=="3"||a.K.qb().iN(b)};
J0=function(a,b){g.yp(a.K.getRootNode(),b)};
K0=function(a,b){g.Ap(a.K.getRootNode(),b)};
p$a=function(a,b,c,d,e){g.O.call(this);var f=this,h=lE(function(){return new jL(f.Aa)});
g.P(this,h);var l=lE(function(){return new lL(h,f.Aa)});
g.P(this,l);var m=lE(function(){return new QK});
g.P(this,m);d=lE(function(){return new OK(a)});
g.P(this,d);var n=lE(function(){return new mL(h,l,f.Aa)});
g.P(this,n);var p=lE(function(){return new rL});
g.P(this,p);this.Nb=lE(function(){return new nE(e)});
g.P(this,this.Nb);this.Kc=lE(function(){return new t0(b)});
g.P(this,this.Kc);this.Wc=lE(function(){return new u0(b)});
g.P(this,this.Wc);this.ud=lE(function(){return new v0(b)});
g.P(this,this.ud);this.Aa=lE(function(){return new w0(b)});
g.P(this,this.Aa);var q=lE(function(){return new LD(f.Aa)});
g.P(this,q);var r=lE(function(){return new FK(h,n,l,f.Aa,q,null,null,null,null)});
g.P(this,r);this.Sa=lE(function(){return new F0(b,p,f.Aa)});
g.P(this,this.Sa);var t=r0({Sa:this.Sa,Aa:this.Aa,Ue:q}),u=t.context,y=t.Xh;this.Tb=t.Tb;this.Ia=lE(function(){return new G0(b,f.Sa,f.Aa)});
g.P(this,this.Ia);this.Cb=lE(function(){return new z0(f.Ia,b,f.Aa)});
g.P(this,this.Cb);this.Na=lE(function(){return new E0(b,m,f.Cb,f.Sa,f.Tb,f.Aa,y)});
g.P(this,this.Na);this.Td=new NK(d,r,c,this.Aa,a,this.Sa,this.Ia,this.Kc);g.P(this,this.Td);var A=new s0(b,this.Td,this.Ia,this.Sa);this.Cg=lE(function(){return A});
this.My=A;this.Og=new PK(d,n,this.Wc,this.Cg,u);g.P(this,this.Og);this.Yd=new $J(this.Aa,d,n,r,this.Sa,this.Og,c);g.P(this,this.Yd);this.Jh={bC:new Map,fu:new Map,Rn:new Map,Qv:new Map,Qu:new Map};this.listeners=[];this.BB={Yd:this.Yd,Rl:this.Aa.get(),Ya:this.Nb.get(),iC:this.Ia.get(),Td:this.Td,Px:h.get(),AG:null,fp:{VQ:function(){}},
hm:m.get(),Uf:this.Sa.get()}};
L0=function(a,b){g.O.call(this);this.Yo=b;this.Yo.get().addListener(this)};
M0=function(a){this.j=a};
q$a=function(a,b){if(!a)return{Tw:[],adSlots:[],WC:!0,ssdaiAdsConfig:void 0};a.trackingParams&&OL(a.trackingParams);if(a.adThrottled)return{Tw:[],adSlots:[],WC:!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{Tw:[],adSlots:d,WC:!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{Tw:[],adSlots:d,WC:!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,aK)}).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{Tw:e,
adSlots:d,WC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
N0=function(a){g.O.call(this);this.K=a;this.listeners=[];this.j=new Ts(this);g.P(this,this.j);this.j.T(this.K,"aduxclicked",this.onAdUxClicked);this.j.T(this.K,"aduxmouseover",this.nS);this.j.T(this.K,"aduxmouseout",this.mS);this.j.T(this.K,"muteadaccepted",this.Xaa)};
r$a=function(a,b,c){b=g.Ml(b,function(d){return new gta(d,c,d.id)});
a.K.gb("onAdUxUpdate",b)};
O0=function(a,b){a=g.x(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
P0=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}};
s$a=function(a,b){var c=a.startSecs+a.Xg;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{t8:new Pp(b,c),R$:new WM(b,c-b,a.context,a.identifier,a.event,a.j)}};
t$a=function(){this.j=[]};
Lya=function(a,b,c){var d=g.ic(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
Q0=function(a,b,c){g.O.call(this);this.K=a;this.Aa=b;this.Na=c;this.listeners=[];this.D=!1;this.ZC=[];this.B=null;this.G=new P0(this,I9a(b.get()));this.C=new t$a;this.j=null};
u$a=function(a,b){a.ZC.push(b);for(var c=!1,d=g.x(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.PS(b)||c;a.D=c};
w$a=function(a,b){CI(a.Na.get(),{cuepointTrigger:{event:v$a(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Xg*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.K.getVideoData(1).clientPlaybackNonce}})};
v$a=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 ed(a,"Unexpected cuepoint event")}};
R0=function(a){this.K=a};
x$a=function(a,b){a.K.cueVideoByPlayerVars(b,2)};
S0=function(a){this.K=a};
T0=function(a){this.K=a};
y$a=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:ed(a,"unknown transitionReason")}};
z$a=function(a){this.K=a};
A$a=function(a,b,c,d,e){g.O.call(this);var f=this,h=lE(function(){return new jL(f.Aa)});
g.P(this,h);var l=lE(function(){return new lL(h,f.Aa)});
g.P(this,l);var m=lE(function(){return new QK});
g.P(this,m);var n=lE(function(){return new OK(a)});
g.P(this,n);var p=lE(function(){return new mL(h,l,f.Aa)});
g.P(this,p);var q=lE(function(){return new rL});
g.P(this,q);this.Bc=lE(function(){return new N0(b)});
g.P(this,this.Bc);this.Nb=lE(function(){return new nE(e)});
g.P(this,this.Nb);this.Kc=lE(function(){return new t0(b)});
g.P(this,this.Kc);this.Wc=lE(function(){return new u0(b)});
g.P(this,this.Wc);this.Ad=lE(function(){return new R0(b)});
g.P(this,this.Ad);this.ud=lE(function(){return new v0(b)});
g.P(this,this.ud);this.Aa=lE(function(){return new w0(b)});
g.P(this,this.Aa);var r=lE(function(){return new M0(d)});
g.P(this,r);var t=lE(function(){return new LD(f.Aa)});
g.P(this,t);this.Gg=lE(function(){return new S0(b)});
g.P(this,this.Gg);this.Yo=lE(function(){return new qE});
g.P(this,this.Yo);this.Sa=lE(function(){return new F0(b,q,f.Aa)});
g.P(this,this.Sa);var u=r0({Sa:this.Sa,Aa:this.Aa,Ue:t}),y=u.context,A=u.Xh;this.Tb=u.Tb;this.Ie=lE(function(){return new Q0(b,f.Aa,f.Na)});
g.P(this,this.Ie);this.Ec=lE(function(){return new T0(b)});
g.P(this,this.Ec);this.Ia=lE(function(){return new G0(b,f.Sa,f.Aa)});
g.P(this,this.Ia);u=lE(function(){return new FK(h,p,l,f.Aa,t,"SLOT_TYPE_ABOVE_FEED",f.Ia,f.Ik,f.Bf)});
g.P(this,u);this.Df=lE(function(){return new rE(f.Aa)});
this.Cb=lE(function(){return new z0(f.Ia,b,f.Aa)});
g.P(this,this.Cb);this.Na=lE(function(){return new E0(b,m,f.Cb,f.Sa,f.Tb,f.Aa,A)});
g.P(this,this.Na);this.fl=new MK(LK,U0,function(F,H,K,N){return nK(l.get(),F,H,K,N)},n,p,l,t,this.Aa,this.Sa);
g.P(this,this.fl);this.Td=new NK(n,u,c,this.Aa,a,this.Sa,this.Ia,this.Kc);g.P(this,this.Td);var C=new s0(b,this.Td,this.Ia,this.Sa,this.Ie);this.Cg=lE(function(){return C});
this.My=C;this.Ik=new IK(n,p,this.Cg,this.Ie,this.Ia,this.Aa,this.Na,this.Ec);g.P(this,this.Ik);this.Og=new PK(n,p,this.Wc,this.Cg,y);g.P(this,this.Og);this.Yd=new $J(this.Aa,n,p,u,this.Sa,this.Og,c);g.P(this,this.Yd);this.Bk=lE(function(){return new KE(r,l,t,f.Aa,f.Na,f.Ia,f.Ec)});
g.P(this,this.Bk);this.jf=lE(function(){return new LE});
g.P(this,this.jf);this.nh=new XK(a,this.Bc,this.Aa);g.P(this,this.nh);this.dc=new YK(a);g.P(this,this.dc);this.jx=new ZK(a);g.P(this,this.jx);this.Qh=new aL(a,this.Cg,y);g.P(this,this.Qh);this.Ff=new bL(a,this.Wc,this.Ia,this.Sa,y);g.P(this,this.Ff);this.uy=new cL(a,this.Sa);g.P(this,this.uy);this.Bf=new fL(a,this.Ie,this.Ia,this.Na,this.Cg);g.P(this,this.Bf);this.nf=new dL(a);g.P(this,this.nf);this.ke=new iL(a);g.P(this,this.ke);this.Zk=new eL(a);g.P(this,this.Zk);this.zz=new hL(a);g.P(this,this.zz);
this.ke=new iL(a);g.P(this,this.ke);this.Ye=lE(function(){return new TK});
g.P(this,this.Ye);this.il=lE(function(){return new UK(f.Ia)});
g.P(this,this.il);this.tX=lE(function(){return new fxa(f.Bc,f.Na,a,m,f.Cb)});
g.P(this,this.tX);this.Ak=lE(function(){return new vF(f.Yd,n,h)});
g.P(this,this.Ak);this.Lk=lE(function(){return new yF(f.Aa,f.Na,f.nf,f.Cb)});
g.P(this,this.Lk);this.bl=lE(function(){return new MI(a,f.ke,f.nf,f.Sa,f.Ec,f.Ia,f.Na,q,f.Ie,f.Cb,f.Df,f.Ad,f.Wc,f.Kc,f.ud,f.Nb,f.Gg,f.Aa,m,y,A)});
g.P(this,this.bl);this.tT=lE(function(){return new vxa(f.Ia,f.Na,f.Nb,f.Aa,f.Cb)});
g.P(this,this.tT);this.Gu=lE(function(){return new iza(f.Bc,f.Ia,f.Na,m,f.Cb,f.jx,f.zz,f.Nb,f.Aa,c)});
g.P(this,this.Gu);this.P3=lE(function(){return new gxa(f.Bc,f.Na,m)});
g.P(this,this.P3);this.HO=new L0(a,this.Yo,h);g.P(this,this.HO);this.Jh={bC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ik],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Og]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bk],["SLOT_TYPE_ABOVE_FEED",this.jf],["SLOT_TYPE_FORECASTING",this.jf],
["SLOT_TYPE_IN_PLAYER",this.jf],["SLOT_TYPE_PLAYER_BYTES",this.jf],["SLOT_TYPE_PLAYER_UNDERLAY",this.jf],["SLOT_TYPE_PLAYBACK_TRACKING",this.jf],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.jf]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nh],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.nh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dc],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dc],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.dc],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dc],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.dc],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dc],["TRIGGER_TYPE_CLOSE_REQUESTED",this.jx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Qh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Ff],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Ff],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Ff],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ff],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ff],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Ff],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ff],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Zk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.zz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ke],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Bf],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Bf],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Bf],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Bf]]),Qv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ye],
["SLOT_TYPE_AD_BREAK_REQUEST",this.Ye],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.il],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ye],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ye],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ye]]),Qu:new Map([["SLOT_TYPE_ABOVE_FEED",this.tX],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ak],["SLOT_TYPE_FORECASTING",this.Lk],["SLOT_TYPE_PLAYER_BYTES",this.bl],["SLOT_TYPE_PLAYBACK_TRACKING",this.tT],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",
this.tT],["SLOT_TYPE_IN_PLAYER",this.Gu],["SLOT_TYPE_PLAYER_UNDERLAY",this.P3]])};this.listeners=[m.get()];this.BB={Yd:this.Yd,Rl:this.Aa.get(),Ya:this.Nb.get(),iC:this.Ia.get(),Td:this.Td,Px:h.get(),AG:this.Yo.get(),fp:this.nh,hm:m.get(),Uf:this.Sa.get()}};
B$a=function(a,b,c,d,e){g.O.call(this);var f=this,h=lE(function(){return new jL(f.Aa)});
g.P(this,h);var l=lE(function(){return new lL(h,f.Aa)});
g.P(this,l);var m=lE(function(){return new QK});
g.P(this,m);var n=lE(function(){return new OK(a)});
g.P(this,n);var p=lE(function(){return new mL(h,l,f.Aa)});
g.P(this,p);var q=lE(function(){return new rL});
g.P(this,q);this.Bc=lE(function(){return new N0(b)});
g.P(this,this.Bc);this.Nb=lE(function(){return new nE(e)});
g.P(this,this.Nb);this.Kc=lE(function(){return new t0(b)});
g.P(this,this.Kc);this.Wc=lE(function(){return new u0(b)});
g.P(this,this.Wc);this.Ad=lE(function(){return new R0(b)});
g.P(this,this.Ad);this.ud=lE(function(){return new v0(b)});
g.P(this,this.ud);this.Aa=lE(function(){return new w0(b)});
g.P(this,this.Aa);var r=lE(function(){return new M0(d)});
g.P(this,r);var t=lE(function(){return new LD(f.Aa)});
g.P(this,t);var u=lE(function(){return new FK(h,p,l,f.Aa,t,null,null,f.Ik,f.Bf)});
g.P(this,u);this.Gg=lE(function(){return new S0(b)});
g.P(this,this.Gg);this.Yo=lE(function(){return new qE});
g.P(this,this.Yo);this.Sa=lE(function(){return new F0(b,q,f.Aa)});
g.P(this,this.Sa);var y=r0({Sa:this.Sa,Aa:this.Aa,Ue:t}),A=y.context,C=y.Xh;this.Tb=y.Tb;this.Ie=lE(function(){return new Q0(b,f.Aa,f.Na)});
this.Ia=lE(function(){return new G0(b,f.Sa,f.Aa)});
g.P(this,this.Ia);this.Cb=lE(function(){return new z0(f.Ia,b,f.Aa)});
g.P(this,this.Cb);this.Na=lE(function(){return new E0(b,m,f.Cb,f.Sa,f.Tb,f.Aa,C)});
g.P(this,this.Na);this.Df=lE(function(){return new rE(f.Aa)});
g.P(this,this.Df);this.fl=new MK(LK,U0,function(H,K,N,W){return nK(l.get(),H,K,N,W)},n,p,l,t,this.Aa,this.Sa);
g.P(this,this.fl);this.Td=new NK(n,u,c,this.Aa,a,this.Sa,this.Ia,this.Kc);g.P(this,this.Td);var F=new s0(b,this.Td,this.Ia,this.Sa,this.Ie);this.Cg=lE(function(){return F});
this.My=F;this.Ik=new IK(n,p,this.Cg,this.Ie,this.Ia,this.Aa,this.Na);g.P(this,this.Ik);this.Og=new PK(n,p,this.Wc,this.Cg,A);g.P(this,this.Og);this.Yd=new $J(this.Aa,n,p,u,this.Sa,this.Og,c);g.P(this,this.Yd);this.Bk=lE(function(){return new KE(r,l,t,f.Aa,f.Na,f.Ia)});
g.P(this,this.Bk);this.jf=lE(function(){return new LE});
g.P(this,this.jf);this.nh=new XK(a,this.Bc,this.Aa);g.P(this,this.nh);this.dc=new YK(a);g.P(this,this.dc);this.jx=new ZK(a);g.P(this,this.jx);this.Qh=new aL(a,this.Cg,A);g.P(this,this.Qh);this.Ff=new bL(a,this.Wc,this.Ia,this.Sa,A);g.P(this,this.Ff);this.nf=new dL(a);g.P(this,this.nf);this.Zk=new eL(a);g.P(this,this.Zk);this.zz=new hL(a);g.P(this,this.zz);this.Ec=lE(function(){return new T0(b)});
g.P(this,this.Ec);this.ke=new iL(a);g.P(this,this.ke);this.Bf=new fL(a,this.Ie,this.Ia,this.Na,this.Cg);g.P(this,this.Bf);this.Ye=lE(function(){return new TK});
g.P(this,this.Ye);this.il=lE(function(){return new UK(f.Ia)});
g.P(this,this.il);this.Ak=lE(function(){return new vF(f.Yd,n,h)});
g.P(this,this.Ak);this.Lk=lE(function(){return new yF(f.Aa,f.Na,f.nf,f.Cb)});
g.P(this,this.Lk);this.Gu=lE(function(){return new jza(f.Bc,f.Ia,f.Na,m,f.Cb,f.jx,f.zz,f.Nb,f.Aa,c)});
g.P(this,this.Gu);this.bl=lE(function(){return new NI(a,f.ke,f.nf,f.Na,f.Cb,f.Df,f.Ad,f.Sa,f.Ia,f.Wc,f.Kc,f.ud,f.Nb,f.Gg,f.Aa,f.Ec,A,C)});
g.P(this,this.bl);this.HO=new L0(a,this.Yo,h);g.P(this,this.HO);this.Jh={bC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ik],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Og]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bk],["SLOT_TYPE_FORECASTING",this.jf],["SLOT_TYPE_IN_PLAYER",this.jf],
["SLOT_TYPE_PLAYER_BYTES",this.jf]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dc],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dc],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dc],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dc],["TRIGGER_TYPE_CLOSE_REQUESTED",this.jx],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ff],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ff],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ff],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Zk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.zz],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ke],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Bf],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Bf],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Bf],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Bf]]),Qv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ye],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.il]]),
Qu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ak],["SLOT_TYPE_FORECASTING",this.Lk],["SLOT_TYPE_IN_PLAYER",this.Gu],["SLOT_TYPE_PLAYER_BYTES",this.bl]])};this.listeners=[m.get()];this.BB={Yd:this.Yd,Rl:this.Aa.get(),Ya:this.Nb.get(),iC:this.Ia.get(),Td:this.Td,Px:h.get(),AG:this.Yo.get(),fp:this.nh,hm:m.get(),Uf:this.Sa.get()}};
C$a=function(a,b,c,d,e){g.O.call(this);var f=this,h=lE(function(){return new jL(f.Aa)});
g.P(this,h);var l=lE(function(){return new lL(h,f.Aa)});
g.P(this,l);var m=lE(function(){return new QK});
g.P(this,m);var n=lE(function(){return new OK(a)});
g.P(this,n);var p=lE(function(){return new mL(h,l,f.Aa)});
g.P(this,p);var q=lE(function(){return new rL});
g.P(this,q);this.Bc=lE(function(){return new N0(b)});
g.P(this,this.Bc);this.Nb=lE(function(){return new nE(e)});
g.P(this,this.Nb);this.Kc=lE(function(){return new t0(b)});
g.P(this,this.Kc);this.Wc=lE(function(){return new u0(b)});
g.P(this,this.Wc);this.Ad=lE(function(){return new R0(b)});
g.P(this,this.Ad);this.ud=lE(function(){return new v0(b)});
g.P(this,this.ud);this.Aa=lE(function(){return new w0(b)});
g.P(this,this.Aa);var r=lE(function(){return new M0(d)});
g.P(this,r);var t=lE(function(){return new LD(f.Aa)});
g.P(this,t);var u=lE(function(){return new FK(h,p,l,f.Aa,t,null,null,null,null)});
g.P(this,u);this.Gg=lE(function(){return new S0(b)});
g.P(this,this.Gg);this.Sa=lE(function(){return new F0(b,q,f.Aa)});
g.P(this,this.Sa);var y=r0({Sa:this.Sa,Aa:this.Aa,Ue:t}),A=y.context,C=y.Xh;this.Tb=y.Tb;this.Ia=lE(function(){return new G0(b,f.Sa,f.Aa)});
g.P(this,this.Ia);this.Cb=lE(function(){return new z0(f.Ia,b,f.Aa)});
g.P(this,this.Cb);this.Na=lE(function(){return new E0(b,m,f.Cb,f.Sa,f.Tb,f.Aa,C)});
g.P(this,this.Na);this.Df=lE(function(){return new rE(f.Aa)});
g.P(this,this.Df);this.fl=new MK(LK,U0,function(H,K,N,W){return nK(l.get(),H,K,N,W)},n,p,l,t,this.Aa,this.Sa);
g.P(this,this.fl);this.Td=new NK(n,u,c,this.Aa,a,this.Sa,this.Ia,this.Kc);g.P(this,this.Td);var F=new s0(b,this.Td,this.Ia,this.Sa);this.Cg=lE(function(){return F});
this.My=F;this.Og=new PK(n,p,this.Wc,this.Cg,A);g.P(this,this.Og);this.Yd=new $J(this.Aa,n,p,u,this.Sa,this.Og,c);g.P(this,this.Yd);this.Bk=lE(function(){return new KE(r,l,t,f.Aa,f.Na,f.Ia)});
g.P(this,this.Bk);this.jf=lE(function(){return new LE});
g.P(this,this.jf);this.nh=new XK(a,this.Bc,this.Aa);g.P(this,this.nh);this.dc=new YK(a);g.P(this,this.dc);this.Qh=new aL(a,this.Cg,A);g.P(this,this.Qh);this.Ff=new bL(a,this.Wc,this.Ia,this.Sa,A);g.P(this,this.Ff);this.nf=new dL(a);g.P(this,this.nf);this.Zk=new eL(a);g.P(this,this.Zk);this.Ec=lE(function(){return new T0(b)});
g.P(this,this.Ec);this.ke=new iL(a);g.P(this,this.ke);this.Ye=lE(function(){return new TK});
g.P(this,this.Ye);this.il=lE(function(){return new UK(f.Ia)});
g.P(this,this.il);this.Ak=lE(function(){return new vF(f.Yd,n,h)});
g.P(this,this.Ak);this.Lk=lE(function(){return new yF(f.Aa,f.Na,f.nf,f.Cb)});
g.P(this,this.Lk);this.w1=lE(function(){return new txa(f.Bc,f.Ia,f.Na,m,c,f.Aa)});
g.P(this,this.w1);this.bl=lE(function(){return new NI(a,f.ke,f.nf,f.Na,f.Cb,f.Df,f.Ad,f.Sa,f.Ia,f.Wc,f.Kc,f.ud,f.Nb,f.Gg,f.Aa,f.Ec,A,C)});
g.P(this,this.bl);this.Jh={bC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Og]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bk],["SLOT_TYPE_FORECASTING",this.jf],["SLOT_TYPE_IN_PLAYER",this.jf],["SLOT_TYPE_PLAYER_BYTES",this.jf]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.dc],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dc],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dc],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dc],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ff],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Ff],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Zk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ke]]),Qv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ye],["SLOT_TYPE_ABOVE_FEED",this.Ye],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.il]]),Qu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ak],["SLOT_TYPE_FORECASTING",this.Lk],["SLOT_TYPE_IN_PLAYER",
this.w1],["SLOT_TYPE_PLAYER_BYTES",this.bl]])};this.listeners=[m.get()];this.BB={Yd:this.Yd,Rl:this.Aa.get(),Ya:this.Nb.get(),iC:this.Ia.get(),Td:this.Td,Px:h.get(),AG:null,fp:this.nh,hm:m.get(),Uf:this.Sa.get()}};
D$a=function(a,b,c,d,e){g.O.call(this);var f=this,h=lE(function(){return new jL(f.Aa)});
g.P(this,h);var l=lE(function(){return new lL(h,f.Aa)});
g.P(this,l);var m=lE(function(){return new QK});
g.P(this,m);var n=lE(function(){return new OK(a)});
g.P(this,n);var p=lE(function(){return new mL(h,l,f.Aa)});
g.P(this,p);var q=lE(function(){return new rL});
g.P(this,q);this.jo=lE(function(){return new z$a(b)});
g.P(this,this.jo);this.Bc=lE(function(){return new N0(b)});
g.P(this,this.Bc);this.Nb=lE(function(){return new nE(e)});
g.P(this,this.Nb);this.Kc=lE(function(){return new t0(b)});
g.P(this,this.Kc);this.Wc=lE(function(){return new u0(b)});
g.P(this,this.Wc);this.Ad=lE(function(){return new R0(b)});
g.P(this,this.Ad);this.ud=lE(function(){return new v0(b)});
g.P(this,this.ud);this.Aa=lE(function(){return new w0(b)});
g.P(this,this.Aa);var r=lE(function(){return new M0(d)});
g.P(this,r);var t=lE(function(){return new LD(f.Aa)});
g.P(this,t);var u=lE(function(){return new FK(h,p,l,f.Aa,t,null,null,null,null)});
g.P(this,u);this.Gg=lE(function(){return new S0(b)});
g.P(this,this.Gg);this.Sa=lE(function(){return new F0(b,q,f.Aa)});
g.P(this,this.Sa);var y=r0({Sa:this.Sa,Aa:this.Aa,Ue:t}),A=y.context,C=y.Xh;this.Tb=y.Tb;this.Ia=lE(function(){return new G0(b,f.Sa,f.Aa)});
g.P(this,this.Ia);this.Cb=lE(function(){return new z0(f.Ia,b,f.Aa)});
g.P(this,this.Cb);this.Na=lE(function(){return new E0(b,m,f.Cb,f.Sa,f.Tb,f.Aa,C)});
g.P(this,this.Na);this.Df=lE(function(){return new rE(f.Aa)});
g.P(this,this.Df);this.fl=new MK(TBa,U0,function(H,K,N,W){return mCa(l.get(),H,K,N,W)},n,p,l,t,this.Aa,this.Sa);
g.P(this,this.fl);this.Td=new NK(n,u,c,this.Aa,a,this.Sa,this.Ia,this.Kc);g.P(this,this.Td);var F=new s0(b,this.Td,this.Ia,this.Sa);this.Cg=lE(function(){return F});
this.My=F;this.Og=new PK(n,p,this.Wc,this.Cg,A);g.P(this,this.Og);this.Yd=new $J(this.Aa,n,p,u,this.Sa,this.Og,c);g.P(this,this.Yd);this.Bk=lE(function(){return new KE(r,l,t,f.Aa,f.Na,f.Ia)});
g.P(this,this.Bk);this.jf=lE(function(){return new LE});
g.P(this,this.jf);this.nh=new XK(a,this.Bc,this.Aa);g.P(this,this.nh);this.dc=new YK(a);g.P(this,this.dc);this.Qh=new aL(a,this.Cg,A);g.P(this,this.Qh);this.Ff=new bL(a,this.Wc,this.Ia,this.Sa,A);g.P(this,this.Ff);this.nf=new dL(a);g.P(this,this.nf);this.Zk=new eL(a);g.P(this,this.Zk);this.Ec=lE(function(){return new T0(b)});
g.P(this,this.Ec);this.ke=new iL(a);g.P(this,this.ke);this.Ye=lE(function(){return new TK});
g.P(this,this.Ye);this.il=lE(function(){return new UK(f.Ia)});
g.P(this,this.il);this.Ak=lE(function(){return new vF(f.Yd,n,h)});
g.P(this,this.Ak);this.Lk=lE(function(){return new yF(f.Aa,f.Na,f.nf,f.Cb)});
g.P(this,this.Lk);this.bl=lE(function(){return new NI(a,f.ke,f.nf,f.Na,f.Cb,f.Df,f.Ad,f.Sa,f.Ia,f.Wc,f.Kc,f.ud,f.Nb,f.Gg,f.Aa,f.Ec,A,C)});
g.P(this,this.bl);this.o4=lE(function(){return new lza(f.Bc,f.Ia,f.Na,m,f.jo,c,f.Sa)});
g.P(this,this.o4);this.Jh={bC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Og]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bk],["SLOT_TYPE_FORECASTING",this.jf],["SLOT_TYPE_IN_PLAYER",this.jf],["SLOT_TYPE_PLAYER_BYTES",this.jf]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.nh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.dc],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dc],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dc],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dc],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ff],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Ff],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Zk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ke]]),Qv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ye],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.il]]),Qu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ak],["SLOT_TYPE_FORECASTING",this.Lk],["SLOT_TYPE_IN_PLAYER",this.o4],["SLOT_TYPE_PLAYER_BYTES",
this.bl]])};this.listeners=[m.get()];this.BB={Yd:this.Yd,Rl:this.Aa.get(),Ya:this.Nb.get(),iC:this.Ia.get(),Td:this.Td,Px:h.get(),AG:null,fp:this.nh,hm:m.get(),Uf:this.Sa.get()}};
E$a=function(a,b,c,d,e){g.O.call(this);var f=this,h=lE(function(){return new jL(f.Aa)});
g.P(this,h);var l=lE(function(){return new lL(h,f.Aa)});
g.P(this,l);var m=lE(function(){return new QK});
g.P(this,m);var n=lE(function(){return new OK(a)});
g.P(this,n);var p=lE(function(){return new mL(h,l,f.Aa)});
g.P(this,p);var q=lE(function(){return new rL});
g.P(this,q);this.jo=lE(function(){return new z$a(b)});
g.P(this,this.jo);this.Bc=lE(function(){return new N0(b)});
g.P(this,this.Bc);this.Nb=lE(function(){return new nE(e)});
g.P(this,this.Nb);this.Kc=lE(function(){return new t0(b)});
g.P(this,this.Kc);this.Wc=lE(function(){return new u0(b)});
g.P(this,this.Wc);this.Ad=lE(function(){return new R0(b)});
g.P(this,this.Ad);this.ud=lE(function(){return new v0(b)});
g.P(this,this.ud);this.Aa=lE(function(){return new w0(b)});
g.P(this,this.Aa);var r=lE(function(){return new M0(d)});
g.P(this,r);var t=lE(function(){return new LD(f.Aa)});
g.P(this,t);this.Gg=lE(function(){return new S0(b)});
g.P(this,this.Gg);this.Sa=lE(function(){return new F0(b,q,f.Aa)});
g.P(this,this.Sa);var u=r0({Sa:this.Sa,Aa:this.Aa,Ue:t}),y=u.context,A=u.Xh;this.Tb=u.Tb;this.Ie=lE(function(){return new Q0(b,f.Aa,f.Na)});
g.P(this,this.Ie);this.Ec=lE(function(){return new T0(b)});
g.P(this,this.Ec);this.Ia=lE(function(){return new G0(b,f.Sa,f.Aa)});
g.P(this,this.Ia);u=lE(function(){return new FK(h,p,l,f.Aa,t,null,f.Ia,f.Ik,f.Bf,3)});
g.P(this,u);this.Df=lE(function(){return new rE(f.Aa)});
this.Cb=lE(function(){return new z0(f.Ia,b,f.Aa)});
g.P(this,this.Cb);this.Na=lE(function(){return new E0(b,m,f.Cb,f.Sa,f.Tb,f.Aa,A)});
g.P(this,this.Na);this.Td=new NK(n,u,c,this.Aa,a,this.Sa,this.Ia,this.Kc);g.P(this,this.Td);var C=new s0(b,this.Td,this.Ia,this.Sa,this.Ie);this.Cg=lE(function(){return C});
this.My=C;this.fl=new MK(UBa,U0,function(F,H,K,N){return mCa(l.get(),F,H,K,N)},n,p,l,t,this.Aa,this.Sa);
g.P(this,this.fl);this.Ik=new IK(n,p,this.Cg,this.Ie,this.Ia,this.Aa,this.Na,this.Ec);g.P(this,this.Ik);this.Og=new PK(n,p,this.Wc,this.Cg,y);g.P(this,this.Og);this.Yd=new $J(this.Aa,n,p,u,this.Sa,this.Og,c);g.P(this,this.Yd);this.Bk=lE(function(){return new KE(r,l,t,f.Aa,f.Na,f.Ia,f.Ec)});
g.P(this,this.Bk);this.jf=lE(function(){return new LE});
g.P(this,this.jf);this.nh=new XK(a,this.Bc,this.Aa);g.P(this,this.nh);this.dc=new YK(a);g.P(this,this.dc);this.Qh=new aL(a,this.Cg,y);g.P(this,this.Qh);this.Ff=new bL(a,this.Wc,this.Ia,this.Sa,y);g.P(this,this.Ff);this.uy=new cL(a,this.Sa);g.P(this,this.uy);this.Bf=new fL(a,this.Ie,this.Ia,this.Na,this.Cg);g.P(this,this.Bf);this.nf=new dL(a);g.P(this,this.nf);this.Zk=new eL(a);g.P(this,this.Zk);this.ke=new iL(a);g.P(this,this.ke);this.Ye=lE(function(){return new TK});
g.P(this,this.Ye);this.il=lE(function(){return new UK(f.Ia)});
g.P(this,this.il);this.Ak=lE(function(){return new vF(f.Yd,n,h)});
g.P(this,this.Ak);this.Lk=lE(function(){return new yF(f.Aa,f.Na,f.nf,f.Cb)});
g.P(this,this.Lk);this.bl=lE(function(){return new MI(a,f.ke,f.nf,f.Sa,f.Ec,f.Ia,f.Na,q,f.Ie,f.Cb,f.Df,f.Ad,f.Wc,f.Kc,f.ud,f.Nb,f.Gg,f.Aa,m,y,A)});
g.P(this,this.bl);this.Gu=lE(function(){return new mza(f.Bc,f.Ia,f.Na,m,f.jo,c,f.Aa,f.Sa)});
g.P(this,this.Gu);this.Jh={bC:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Ik],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.fl],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Td],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Og]]),fu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Bk],["SLOT_TYPE_FORECASTING",this.jf],["SLOT_TYPE_IN_PLAYER",this.jf],["SLOT_TYPE_PLAYER_BYTES",this.jf]]),Rn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.nh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dc],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dc],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dc],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dc],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dc],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Ff],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ff],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.uy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.uy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.nf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Zk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ke],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Bf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",
this.Bf],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Bf],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Bf],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Bf]]),Qv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ye],["SLOT_TYPE_FORECASTING",this.Ye],["SLOT_TYPE_IN_PLAYER",this.Ye],["SLOT_TYPE_PLAYER_BYTES",this.il]]),Qu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ak],["SLOT_TYPE_FORECASTING",this.Lk],["SLOT_TYPE_PLAYER_BYTES",this.bl],["SLOT_TYPE_IN_PLAYER",this.Gu]])};this.listeners=[m.get()];
this.BB={Yd:this.Yd,Rl:this.Aa.get(),Ya:this.Nb.get(),iC:this.Ia.get(),Td:this.Td,Px:h.get(),AG:null,fp:this.nh,hm:m.get(),Uf:this.Sa.get()}};
G$a=function(a,b,c,d){function e(){return f.B}
g.O.call(this);var f=this;a.V().experiments.fb("html5_dispose_of_manager_before_dependency")?(this.j=F$a(e,a,b,c,d),this.B=(new mE(this.j)).C(),g.P(this,this.B),g.P(this,this.j)):(this.j=F$a(e,a,b,c,d),g.P(this,this.j),this.B=(new mE(this.j)).C(),g.P(this,this.B))};
V0=function(a){return a.j.BB};
F$a=function(a,b,c,d,e){try{var f=b.V();if(g.bQ(f))var h=new A$a(a,b,c,d,e);else if(g.dQ(f))h=new B$a(a,b,c,d,e);else if(UP(f))h=new C$a(a,b,c,d,e);else if(g.kz(f))h=new D$a(a,b,c,d,e);else if(g.OP(f))h=new E$a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.V(),My("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Bpa:h.j.cver,Apa:h.j.ctheme,zpa:h.j.cplayer,kqa:h.playerStyle}),new p$a(a,b,c,d,e)}};
H$a=function(a){qy.call(this,a)};
I$a=function(a,b,c,d,e){zy.call(this,a,{J:"div",S:"ytp-ad-timed-pie-countdown-container",X:[{J:"svg",S:"ytp-ad-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{J:"circle",S:"ytp-ad-timed-pie-countdown-background",Y:{r:"10",cx:"10",cy:"10"}},{J:"circle",S:"ytp-ad-timed-pie-countdown-inner",Y:{r:"5",cx:"10",cy:"10"}},{J:"circle",S:"ytp-ad-timed-pie-countdown-outer",Y:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.D=this.Da("ytp-ad-timed-pie-countdown-container");this.C=this.Da("ytp-ad-timed-pie-countdown-inner");
this.G=this.Da("ytp-ad-timed-pie-countdown-outer");this.B=Math.ceil(2*Math.PI*5);this.hide()};
J$a=function(a,b,c,d,e,f){Ox.call(this,a,{J:"div",S:"ytp-ad-action-interstitial",Y:{tabindex:"0"},X:[{J:"div",S:"ytp-ad-action-interstitial-background-container"},{J:"div",S:"ytp-ad-action-interstitial-slot",X:[{J:"div",S:"ytp-ad-action-interstitial-instream-info"},{J:"div",S:"ytp-ad-action-interstitial-card",X:[{J:"div",S:"ytp-ad-action-interstitial-image-container"},{J:"div",S:"ytp-ad-action-interstitial-headline-container"},{J:"div",S:"ytp-ad-action-interstitial-description-container"},{J:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.vU=e;this.nN=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Pa=this.Da("ytp-ad-action-interstitial-instream-info");this.La=this.Da("ytp-ad-action-interstitial-image-container");this.Z=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-action-interstitial-image");g.P(this,this.Z);this.Z.Ha(this.La);this.Fa=this.Da("ytp-ad-action-interstitial-headline-container");
this.G=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-action-interstitial-headline");g.P(this,this.G);this.G.Ha(this.Fa);this.ra=this.Da("ytp-ad-action-interstitial-description-container");this.C=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-action-interstitial-description");g.P(this,this.C);this.C.Ha(this.ra);this.ib=this.Da("ytp-ad-action-interstitial-background-container");this.Ua=new my(this.api,this.layoutId,this.interactionLoggingClientData,
this.Ya,"ytp-ad-action-interstitial-background",!0);g.P(this,this.Ua);this.Ua.Ha(this.ib);this.eb=this.Da("ytp-ad-action-interstitial-action-button-container");this.slot=this.Da("ytp-ad-action-interstitial-slot");this.Ef=this.Da("ytp-ad-action-interstitial-card");this.D=new Ts;g.P(this,this.D);this.hide()};
K$a=function(a){var b=g.gh("html5-video-player");b&&g.Cp(b,"ytp-ad-display-override",a)};
O$a=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-overlay-slot",X:[{J:"div",S:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.Z=[];this.ib=this.Fa=this.D=this.eb=this.Pa=null;this.Ua=!1;this.G=null;this.ra=0;a=this.Da("ytp-ad-overlay-container");this.La=new Iy(a,45E3,6E3,.3,.4);g.P(this,this.La);this.C=L$a(this);g.P(this,this.C);this.C.Ha(a);this.B=M$a(this);g.P(this,this.B);this.B.Ha(a);this.j=N$a(this);g.P(this,this.j);this.j.Ha(a);this.hide()};
L$a=function(a){var b=new g.Nx({J:"div",S:"ytp-ad-text-overlay",X:[{J:"div",S:"ytp-ad-overlay-ad-info-button-container"},{J:"div",S:"ytp-ad-overlay-close-container",X:[{J:"button",S:"ytp-ad-overlay-close-button",X:[ey(P$a)]}]},{J:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{J:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{J:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ya:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){W0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){W0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.yO);b.hide();return b};
M$a=function(a){var b=new g.Nx({J:"div",Ka:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],X:[{J:"div",S:"ytp-ad-overlay-ad-info-button-container"},{J:"div",S:"ytp-ad-overlay-close-container",X:[{J:"button",S:"ytp-ad-overlay-close-button",X:[ey(P$a)]}]},{J:"div",S:"ytp-ad-overlay-text-image",X:[{J:"img",Y:{src:"{{imageUrl}}"}}]},{J:"div",S:"ytp-ad-overlay-title",ya:"{{title}}"},{J:"div",S:"ytp-ad-overlay-desc",ya:"{{description}}"},{J:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ya:"{{displayUrl}}"}]});a.T(b.Da("ytp-ad-overlay-title"),"click",function(c){W0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-link"),"click",function(c){W0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.yO);a.T(b.Da("ytp-ad-overlay-text-image"),"click",a.pda);b.hide();return b};
N$a=function(a){var b=new g.Nx({J:"div",S:"ytp-ad-image-overlay",X:[{J:"div",S:"ytp-ad-overlay-ad-info-button-container"},{J:"div",S:"ytp-ad-overlay-close-container",X:[{J:"button",S:"ytp-ad-overlay-close-button",X:[ey(P$a)]}]},{J:"div",S:"ytp-ad-overlay-image",X:[{J:"img",Y:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Da("ytp-ad-overlay-image"),"click",function(c){W0(a,b.element,c)});
a.T(b.Da("ytp-ad-overlay-close-container"),"click",a.yO);b.hide();return b};
Q$a=function(a,b){if(b){var c=g.Q(b,WJ)||null;c==null?g.ex(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(b=g.gh("video-ads ytp-ad-module")||null,b==null?g.ex(Error("Could not locate the root ads container element to attach the ad info dialog.")):(a.Fa=new g.Nx({J:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.P(a,a.Fa),a.Fa.Ha(b),b=new vy(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,a.Fa.element,!1),g.P(a,b),b.init(Dx("ad-info-hover-text-button"),c,a.macros),
a.G?(b.Ha(a.G,0),b.subscribe("f",a.Vaa,a),b.subscribe("e",a.OS,a),a.T(a.G,"click",a.Waa),a.T(g.gh("ytp-ad-button",b.element),"click",function(){var d;if(g.Q((d=g.Q(c.button,g.YJ))==null?void 0:d.serviceEndpoint,qta))a.Ua=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)}),a.ib=b):g.ex(Error("Ad info button container within overlay ad was not present."))))}else g.fx(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
S$a=function(a,b){if(R$a(a,X0)||a.api.isMinimized())return!1;var c=Px(b.title),d=Px(b.description);if(g.zb(c)||g.zb(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",Px(b.title));a.C.updateValue("description",Px(b.description));a.C.updateValue("displayUrl",Px(b.displayUrl));b.navigationEndpoint&&g.ec(a.Z,b.navigationEndpoint);a.C.show();a.La.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++});
return!0};
T$a=function(a,b){if(R$a(a,X0)||a.api.isMinimized())return!1;var c=Px(b.title),d=Px(b.description);if(g.zb(c)||g.zb(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",Px(b.title));a.B.updateValue("description",Px(b.description));a.B.updateValue("displayUrl",Px(b.displayUrl));a.B.updateValue("imageUrl",Isa(b.image));b.navigationEndpoint&&g.ec(a.Z,b.navigationEndpoint);a.eb=b.imageNavigationEndpoint||null;a.B.show();a.La.start();a.logVisibility(a.B.element,!0);
a.T(a.B.element,"mouseover",function(){a.ra++});
return!0};
U$a=function(a,b){if(a.api.isMinimized())return!1;var c=Jsa(b.image),d=c;c.width<X0.width&&(d=X0);if(c.width===0||c.height===0||R$a(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",Isa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.ec(a.Z,b.navigationEndpoint);g.Bm(a.j.Da("ytp-ad-image-overlay"),"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.ra++;
a.api.nS("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.mS("invideo-overlay",a.layoutId)});
return!0};
R$a=function(a,b){var c=a.api.qb().zi(),d=a.api.hn(!0,!1);return(b=RI(c,c.height-(d.height+d.top),b))?(a.Pa&&b&&(c=g.Rg(a.macros),c.ERRORCODE=b.JI.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?pE(a.Ya,a.Pa,a.layoutId,c):g.ex(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
W0=function(a,b,c){var d=g.Rg(a.macros),e=g.Mm(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Km(c,b).floor();d.I_X={toString:function(){return f.x.toString()}};
d.NX={toString:function(){return f.x.toString()}};
d.I_Y={toString:function(){return f.y.toString()}};
d.NY={toString:function(){return f.y.toString()}};
d.NM={toString:function(){return a.ra.toString()}};
b=g.x(a.Z);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?pE(a.Ya,c,a.layoutId,d):g.ex(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
V$a=function(a,b){a=a.api.getRootNode();g.Cp(a,"ytp-ad-overlay-open",b);g.Cp(a,"ytp-ad-overlay-closed",!b)};
W$a=function(a,b,c,d,e){zy.call(this,a,{J:"div",S:"ytp-ad-message-overlay",X:[{J:"div",S:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.G=-1;this.C=0;this.ra=!1;this.Fa=this.Da("ytp-ad-message-slot");this.B=new g.Nx({J:"span",S:"ytp-ad-message-container"});this.B.Ha(this.Fa);g.P(this,this.B);this.messageText=new wy(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.Cy(this.B,
400,!1,100,function(){f.hide()});
g.P(this,this.D);this.hide()};
X$a=function(a,b){a=a.api.getRootNode();g.Cp(a,"ytp-ad-overlay-open",b);g.Cp(a,"ytp-ad-overlay-closed",!b)};
Y$a=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-underlay-companion",X:[{J:"div",S:"ytp-ad-underlay-side-container",X:[{J:"div",S:"ytp-ad-underlay-image-container"},{J:"div",S:"ytp-ad-underlay-description-container"},{J:"div",S:"ytp-ad-underlay-headline-container"},{J:"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 my(this.api,this.layoutId,this.interactionLoggingClientData,
this.Ya,"ytp-ad-underlay-image");g.P(this,this.C);this.C.Ha(this.Fa);this.ra=this.Da("ytp-ad-underlay-headline-container");this.B=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-underlay-headline");g.P(this,this.B);this.B.Ha(this.ra);this.Z=this.Da("ytp-ad-underlay-description-container");this.D=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-underlay-description");g.P(this,this.D);this.D.Ha(this.Z);this.G=this.Da("ytp-ad-underlay-action-button-container");
this.j=this.Da("ytp-ad-underlay-side-container");this.hide()};
Z$a=function(a){var b=g.gh("html5-video-player");b&&g.Cp(b,"ytp-ad-display-override",a)};
Y0=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
Ox.call(this,a,{J:"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()};
$$a=function(a,b,c,d){Ox.call(this,a,{J:"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()};
Z0=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");fy.call(this,a,b,c,d,e,"survey-submit")};
$0=function(a,b,c,d,e){Ox.call(this,a,{J:"div",S:"ytp-ad-survey-player-overlay",X:[{J:"div",S:"ytp-ad-survey-player-overlay-instream-info"},{J:"div",S:"ytp-ad-survey-player-overlay-skip-preview-submit",X:[{J:"div",S:"ytp-ad-survey-player-overlay-skip-or-preview"},{J:"div",S:"ytp-ad-survey-player-overlay-submit"}]},{J:"div",S:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.D=e;this.B=this.j=null;this.C=this.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()};
a1=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
Ox.call(this,a,{J:"div",S:"ytp-ad-survey-question",X:[{J:"div",Ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{J:"div",Ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{J:"div",Ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{J:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Fa=f;this.D=null;this.B=[];this.j=null;this.Z=this.api.V().experiments.fb("a11y_h5_associate_survey_question");this.question=this.Da("ytp-ad-survey-question");
this.La=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=Date.now()};
aab=function(a,b){b=g.Qx(b);g.th(a.questionText,b);a.Z&&a.questionText.setAttribute("id",Dx("survey-question-text"))};
bab=function(a,b,c,d){d=new Y0(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,d,a.Fa);d.Ha(a.answers);d.init(Dx("survey-answer"),b,c);a.Z&&(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)};
dab=function(a,b){if(b){var c=b.background;c&&g.Q(c,cab)&&(c=(c=g.Q(c,cab).image)&&ly(c)||"",g.zb(c)?g.fx(Error("Found ThumbnailDetails without valid image URL")):g.Bm(a.La,"backgroundImage","url("+c+")"));if(b.durationMilliseconds==null||b.durationMilliseconds===void 0||b.durationMilliseconds===0)g.ex(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.Za();a.j=new Wy(a.api,b.durationMilliseconds);g.P(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.Q(b.instreamAdPlayerOverlay,
VJ))try{var d=new $0(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,a.j);d.Ha(a.playerOverlay);d.init(Dx("survey-player-overlay"),g.Q(b.instreamAdPlayerOverlay,VJ),a.macros);a.D=d;g.P(a,d);a.Z1()}catch(e){g.ex(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.ex(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&b.durationMilliseconds>0?(b=new iz(a.api,a.j),b.Ha(a.playerOverlay),
g.P(a,b)):g.ex(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.ex(Error("addCommonComponents() needs to be called before starting countdown."))};
eab=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)+-1*c.getTimezoneOffset()*60).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(Date.now()-a.C).toString()})};
fab=function(a,b,c,d,e){a1.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
gab=function(a,b,c){a.noneOfTheAbove=new $$a(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya);a.noneOfTheAbove.Ha(a.answers);a.noneOfTheAbove.init(Dx("survey-none-of-the-above"),b,c)};
iab=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
hab(a,!0)};
hab=function(a,b){var c=a.D;a=jab(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof Sy&&!c.j.D&&Ata(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
jab=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
b1=function(a,b,c,d,e){a1.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.V().N("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
c1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-survey",X:[{J:"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.V().N("fix_survey_color_contrast_on_destop")&&this.Da("ytp-ad-survey").classList.add("color-contrast-fix");this.api.V().N("web_enable_speedmaster")&&this.Da("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
mab=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.Q(c,UJ)?kab(a,g.Q(c,UJ),a.macros):g.Q(c,TJ)&&lab(a,g.Q(c,TJ),a.macros);a.j=b};
kab=function(a,b,c){var d=new b1(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,a.D.bind(a));d.Ha(a.G);d.init(Dx("survey-question-single-select"),b,c);a.api.V().N("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)};
lab=function(a,b,c){var d=new fab(a.api,a.layoutId,a.interactionLoggingClientData,a.Ya,a.D.bind(a));d.Ha(a.G);d.init(Dx("survey-question-multi-select"),b,c);a.api.V().N("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.P(a,d)};
d1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-survey-interstitial",X:[{J:"div",S:"ytp-ad-survey-interstitial-contents",X:[{J:"div",S:"ytp-ad-survey-interstitial-logo",X:[{J:"div",S:"ytp-ad-survey-interstitial-logo-image"}]},{J:"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.Cy(this,500,!1,300);g.P(this,this.transition)};
oab=function(a,b){b=b&&ly(b)||"";if(g.zb(b))g.fx(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText,d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;b=[nma(d.style),Iea(nab,b)].map(cea).join("");a.style.cssText=b}};
pab=function(a){var b=g.gh("html5-video-player");b&&g.Cp(b,"ytp-ad-display-override",a)};
e1=function(a,b,c,d,e,f){f=f===void 0?0:f;zy.call(this,a,{J:"div",S:"ytp-preview-ad",X:[{J:"div",S:"ytp-preview-ad__text"}]},"preview-ad",b,c,d,e);var h=this;this.ra=f;this.B=0;this.D=-1;this.C=this.Da("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Cy(this,400,!1,100,function(){h.hide()});
g.P(this,this.transition);this.hide()};
f1=function(a,b,c,d){Ox.call(this,a,{J:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
qab=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}};
g1=function(a,b,c,d){Ox.call(this,a,{J:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
rab=function(a,b,c,d,e){zy.call(this,a,{J:"div",Ka:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],X:[{J:"div",S:"ytp-ad-avatar-lockup-card__avatar_and_text_container",X:[{J:"div",S:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,c,d,e);this.startMilliseconds=0;this.adAvatar=new f1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.adAvatar);qh(this.element,this.adAvatar.element,0);this.headline=new cz(this.api,this.layoutId,
this.interactionLoggingClientData,this.Ya);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 cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);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 g1(this.api,
this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.adButton);this.adButton.Ha(this.element);this.hide()};
h1=function(a,b,c,d){Ox.call(this,a,{J:"button",S:"ytp-skip-ad-button",X:[{J:"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.Cy(this,500,!1,100,function(){e.hide()});
g.P(this,this.transition);this.j=new Iy(this.element,15E3,5E3,.5,.5,!0);g.P(this,this.j);this.hide()};
sab=function(a,b,c,d,e){zy.call(this,a,{J:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.D=this.isSkippable=!1;var f;if((f=this.api.getVideoData())==null?0:f.isDaiEnabled())this.D=this.api.V().N("clean_player_style_fix_on_web");if(this.D||!this.api.V().experiments.fb("disable_ad_preview_for_instream_ads"))this.B=new e1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.j),g.P(this,this.B),this.B.Ha(this.element);this.C=new h1(this.api,this.layoutId,
this.interactionLoggingClientData,this.Ya);g.P(this,this.C);this.C.Ha(this.element);this.hide()};
i1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide();this.api.N("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player")};
j1=function(a,b,c,d,e){Ox.call(this,a,{J:"div",S:"ytp-ad-player-overlay-layout",X:[{J:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{J:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{J:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{J:"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.Z=this.Da("ytp-ad-player-overlay-layout__skip-or-preview-container");this.ra=this.Da("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
tab=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-grid-card-text",X:[{J:"div",S:"ytp-ad-grid-card-text__metadata",X:[{J:"div",S:"ytp-ad-grid-card-text__metadata__headline"},{J:"div",S:"ytp-ad-grid-card-text__metadata__description",X:[{J:"div",S:"ytp-ad-grid-card-text__metadata__description__line"},{J:"div",S:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{J:"div",S:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",b,c,d);this.headline=new cz(this.api,this.layoutId,this.interactionLoggingClientData,
this.Ya);g.P(this,this.headline);this.headline.Ha(this.Da("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new g1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.moreInfoButton);this.moreInfoButton.Ha(this.Da("ytp-ad-grid-card-text__button"))};
k1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",b,c,d);this.j=[]};
l1=function(a,b,c,d,e,f,h){zy.call(this,a,f,h,b,c,d,e);this.playerProgressOffsetMs=0;this.B=!1};
uab=function(a){var b=g.gh("html5-video-player");b&&g.Cp(b,"ytp-ad-display-override",a)};
vab=function(a,b,c,d,e){l1.call(this,a,b,c,d,e,{J:"div",S:"ytp-display-underlay-text-grid-cards",X:[{J:"div",S:"ytp-display-underlay-text-grid-cards__content_container",X:[{J:"div",S:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"},{J:"div",S:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new k1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.adGridCardCollection);
this.adGridCardCollection.Ha(this.Da("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new g1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.adButton);this.adButton.Ha(this.Da("ytp-display-underlay-text-grid-cards__content_container__ad_button"));this.C=this.Da("ytp-display-underlay-text-grid-cards__content_container")};
m1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-ad-details-line"},"ad-details-line",b,c,d);this.j=[];this.hide()};
n1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-image-background",X:[{J:"img",S:"ytp-image-background-image"}]},"image-background",b,c,d);this.hide()};
wab=function(a,b,c,d,e){zy.call(this,a,{J:"svg",S:"ytp-timed-pie-countdown",Y:{viewBox:"0 0 20 20"},X:[{J:"circle",S:"ytp-timed-pie-countdown__background",Y:{r:"10",cx:"10",cy:"10"}},{J:"circle",S:"ytp-timed-pie-countdown__inner",Y:{r:"5",cx:"10",cy:"10"}},{J:"circle",S:"ytp-timed-pie-countdown__outer",Y:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",b,c,d,e);this.C=this.Da("ytp-timed-pie-countdown__inner");this.B=Math.ceil(2*Math.PI*5);this.hide()};
o1=function(a,b,c,d){Ox.call(this,a,{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout",Y:{tabindex:"0"},X:[{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content-container",X:[{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup-container",X:[{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"},
{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{J:"div",S:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",b,c,d);this.B=null;this.D=this.Da("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.C=new Ts;g.P(this,this.C);this.hide()};
xab=function(a){var b=g.gh("html5-video-player");b&&g.Cp(b,"ytp-ad-display-override",a)};
zab=function(a){if(!a.adAvatar||!g.Q(a.adAvatar,yab))return g.ex(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!a.headline)return g.ex(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!a.adBadge||!g.Q(a.adBadge,p1))return g.ex(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!a.adButton||!g.Q(a.adButton,q1))return g.ex(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;
if(!a.adInfoRenderer||!g.Q(a.adInfoRenderer,WJ))return g.ex(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;a=a.durationMilliseconds||0;return typeof a!=="number"||a<=0?(g.ex(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+a)),!1):!0};
r1=function(a,b,c){qy.call(this,a);this.api=a;this.Ya=b;this.B={};a=new g.S({J:"div",Ka:["video-ads","ytp-ad-module"]});g.P(this,a);iP&&g.yp(a.element,"ytp-ads-tiny-mode");this.G=new Pv(a.element);g.P(this,this.G);g.qS(this.api,a.element,4);oK(c)&&(c=new g.S({J:"div",Ka:["ytp-ad-underlay"]}),g.P(this,c),this.C=new Pv(c.element),g.P(this,this.C),g.qS(this.api,c.element,0));g.P(this,bta())};
Aab=function(a,b){a=g.Pg(a.B,b.id,null);a==null&&g.fx(Error("Component not found for element id: "+b.id));return a||null};
Bab=function(a){g.gY.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.V().N("h5_use_refactored_get_ad_break")?new u9a(this.player):new q0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new B9a({fp:V0(b.j).fp,Uf:V0(b.j).Uf,K:b.player,Rl:V0(b.j).Rl,Na:b.j.j.Na,hm:V0(b.j).hm,ud:b.j.j.ud});b.B=d.f7;return b.B};
this.j=new G$a(this.player,this,this.C,this.D);g.P(this,this.j);var c=a.V();!XD(c)||g.OP(c)||UP(c)||(g.P(this,new r1(a,V0(this.j).Ya,V0(this.j).Rl)),g.P(this,new H$a(a)))};
Cab=function(a){a.created!==a.loaded&&My("Created and loaded are out of sync")};
Fab=function(a){g.gY.prototype.load.call(a);var b=V0(a.j).Rl;try{a.player.getRootNode().classList.add("ad-created")}catch(m){My(m instanceof Error?m:String(m))}var c=a.player.getVideoData(1),d=c&&c.videoId||"",e=c&&c.getPlayerResponse()||{},f=(!a.player.V().experiments.fb("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,aK)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.Yb();f=Dab(f,h,b,V0(a.j).Px);h=c&&c.clientPlaybackNonce||"";c=c&&c.Vp||!1;if(SF(b,!0)&&c){var l;b={};(l=a.player.getVideoData())==null||l.oa("p_cpb",(b.cc=h,b))}l=1E3*a.player.getDuration(1);Eab(a);a.j.j.My.Xj(h,l,c,f.xM,f.zX,f.xM,e,d)};
Eab=function(a){var b,c;if(c=(b=a.player.getVideoData(1))==null||!b.Vp)b=a.player.V(),c=XD(b)&&!g.WD(b)&&b.playerStyle==="desktop-polymer";c&&(a=a.player.getInternalApi(),a.addEventListener("updateKevlarOrC3Companion",Gta),a.addEventListener("updateEngagementPanelAction",Hta),a.addEventListener("changeEngagementPanelVisibility",Ita),window.addEventListener("yt-navigate-start",Kta))};
s1=function(a,b){b===a.Lt&&(a.Lt=void 0)};
Gab=function(a){var b=V0(a.j).Td,c=b.D().JQ("SLOT_TYPE_PLAYER_BYTES",1);b=UH(b.Sa.get(),1).clientPlaybackNonce;var d=!1;c=g.x(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 aJ?e.slotEntryTrigger.Zv:void 0;f&&f===b&&(d&&My("More than 1 preroll playerBytes slot detected",e),d=!0)}d||H0(V0(a.j).iC)};
Hab=function(a){if(x0(V0(a.j).Rl))return!0;var b="";a=g.x(V0(a.j).hm.wj.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&&My("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
Iab=function(a){a=g.x(V0(a.j).hm.wj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
Tza=function(a,b,c,d,e,f){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var h=V0(a.j).Rl,l=a.player.getVideoData(1);l&&l.getPlayerResponse();l&&l.Yb();c=Dab(b,c,h,V0(a.j).Px);Xza(V0(a.j).Yd,d,c.xM,c.zX,b,e,f)};
Dab=function(a,b,c,d){b={xM:[],zX:b};a=g.x(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){var f=e.renderer;if(!c.K.V().N("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,EK)?(h=g.Q((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,EK),h=iCa(h,p),g.kx(f.sandwichedLinearAdRenderer.adVideoStart,EK,h)):g.Q((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,EK)&&
(m=g.Q((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,EK),h=iCa(m,p),g.kx(f.linearAdSequenceRenderer.adStart,EK,h))}b.xM.push(e)}return b};
g.t1=function(a){if(typeof DOMParser!="undefined")return hg(new DOMParser,gna(a),"application/xml");throw Error("Your browser does not support loading xml documents");};
g.u1=function(a){g.O.call(this);this.callback=a;this.j=new Np(0,0,.4,0,.2,1,1,1);this.delay=new g.pp(this.next,window,this);g.P(this,this.delay)};
g.Jab=function(a){var b=a.V();return b.Fd&&!b.C&&g.HP(b)?a.jd()?(a=a.hn(),Math.min(a.width,a.height)>=315):!a.eh():!1};
g.v1=function(a){g.S.call(this,{J:"div",S:"ytp-more-videos-view",Y:{tabIndex:"-1"}});var b=this;this.api=a;this.j=!0;this.C=new g.dG(this);this.B=[];this.suggestionData=[];this.columns=this.containerWidth=this.W=this.D=this.scrollPosition=0;this.title=new g.S({J:"h2",S:"ytp-related-title",ya:"{{title}}"});this.previous=new g.S({J:"button",Ka:["ytp-button","ytp-previous"],Y:{"aria-label":"Show previous suggested videos"},X:[g.Tx()]});this.L=new g.u1(function(c){b.suggestions.element.scrollLeft=-c});
this.next=new g.S({J:"button",Ka:["ytp-button","ytp-next"],Y:{"aria-label":"Show more suggested videos"},X:[g.Ux()]});g.P(this,this.C);this.G=a.V().D;g.P(this,this.title);this.title.Ha(this.element);this.suggestions=new g.S({J:"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.f5,this);g.P(this,this.L);Kab(this);g.P(this,this.next);this.next.Ha(this.element);this.next.listen("click",
this.e5,this);this.C.T(this.api,"appresize",this.lc);this.C.T(this.api,"fullscreentoggled",this.Ny);this.C.T(this.api,"videodatachange",this.onVideoDataChange);this.lc(this.api.qb().getPlayerSize());this.onVideoDataChange()};
Kab=function(a){for(var b={eB:0};b.eB<16;b={eB:b.eB},++b.eB){var c=new g.S({J:"a",S:"ytp-suggestion-link",Y:{href:"{{link}}",target:a.api.V().Z,"aria-label":"{{aria_label}}"},X:[{J:"div",S:"ytp-suggestion-image"},{J:"div",S:"ytp-suggestion-overlay",Y:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},X:[{J:"div",S:"ytp-suggestion-title",ya:"{{title}}"},{J:"div",S:"ytp-suggestion-author",ya:"{{author_and_views}}"},{J:"div",Y:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
ya:"{{duration}}"}]}]});g.P(a,c);var d=c.Da("ytp-suggestion-link");g.Bm(d,"transitionDelay",b.eB/20+"s");a.C.T(d,"click",function(e){return function(f){var h=e.eB;if(a.j){var l=a.suggestionData[h],m=l.sessionData;a.G&&a.api.N("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.B[h].element),h=l.Wl(),l={},g.ENa(a.api,l),h=g.cj(h,l),g.eT(h,a.api,f)):g.dT(f,a.api,a.G,m||void 0)&&a.api.Hp(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ha(a.suggestions.element);a.B.push(c);a.api.createServerVe(c.element,c)}};
Lab=function(a){if(a.api.V().N("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.scrollPosition/(a.D+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.logVisibility(a.B[b].element,!0)};
g.w1=function(a){var b=a.api.Vh()?32:16;b=a.W/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.scrollPosition;var c=a.containerWidth-a.suggestionData.length*(a.D+8);g.Cp(a.element,"ytp-scroll-min",b>=0);g.Cp(a.element,"ytp-scroll-max",b<=c)};
Nab=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.V(),l=d.suggestionData[c],m=d.B[c];f=d.api.jd()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";g.Bm(m.Da("ytp-suggestion-link"),"display","inline-block");Mab.test(l.title)&&(m.Da("ytp-suggestion-title").dir="rtl");Mab.test(f)&&(m.Da("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?g.Yy(l.lengthSeconds):
"";var n=l.Wl(d.api.jd());if(g.HP(h)&&!h.N("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.YR(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.cj(n,p)}h.N("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.$F||g.FP?"will-change: opacity":
void 0});e=m.Da("ytp-suggestion-image");d=d.api.jd()?l.uh("hq2.jpg"):l.uh();e.style.backgroundImage=d?"url("+d+")":""}if(b<16)for(;b<16;++b)g.Bm(a.B[b].Da("ytp-suggestion-link"),"display","none");g.w1(a)};
paa=[];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=saa(this);la("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});
la("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 taa(raa(this))}})}return a});
var uaa=typeof Object.create=="function"?Object.create:function(a){function b(){}
b.prototype=a;return new b},Oab=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=uaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Pab;
if(typeof Object.setPrototypeOf=="function")Pab=Object.setPrototypeOf;else{var Qab;a:{var Rab={a:!0},Sab={};try{Sab.__proto__=Rab;Qab=Sab.a;break a}catch(a){}Qab=!1}Pab=Qab?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=Pab,Uab=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)qa(d,e)&&(a[e]=d[e])}return a};
la("Object.assign",function(a){return a||Uab});
ra.prototype.W=function(a){this.B=a};
ra.prototype.return=function(a){this.C={return:a};this.j=this.D};
ra.prototype.Ga=function(a){this.j=a};
la("Reflect",function(a){return a?a:{}});
la("Reflect.construct",function(){return Oab});
la("Reflect.setPrototypeOf",function(a){return a?a:ma?function(b,c){try{return ma(b,c),!0}catch(d){return!1}}:null});
la("Promise",function(a){function b(h){this.j=0;this.C=void 0;this.B=[];this.U=!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.Ba),reject:h(this.G)}};
b.prototype.Ba=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.ra(h):this.L(h)}};
b.prototype.ra=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}typeof l=="function"?this.Ma(l,h):this.L(h)};
b.prototype.G=function(h){this.W(2,h)};
b.prototype.L=function(h){this.W(1,h)};
b.prototype.W=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.Ea();this.Z()};
b.prototype.Ea=function(){var h=this;e(function(){if(h.qa()){var l=g.fa.console;typeof l!=="undefined"&&l.error(h.C)}},1)};
b.prototype.qa=function(){if(this.U)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.Z=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.DJ(l.resolve,l.reject)};
b.prototype.Ma=function(h,l){var m=this.D();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,t){return typeof r=="function"?function(u){try{n(r(u))}catch(y){p(y)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.DJ(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.DJ=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.U=!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.x(h),p=n.next();!p.done;p=n.next())d(p.value).DJ(l,m)})};
b.all=function(h){var l=g.x(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).DJ(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
la("Object.setPrototypeOf",function(a){return a||ma});
la("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});
la("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.w(b,Error);b.prototype.name="SuppressedError";return b});
la("Array.prototype.find",function(a){return a?a:function(b,c){return Eaa(this,b,c).LN}});
la("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.x(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(!qa(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(!qa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&qa(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&qa(m,h)&&qa(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&qa(m,h)&&qa(m[h],this.j)?delete m[h][this.j]:!1};
return b});
la("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l[1];return taa(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&&qa(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.x(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.x([[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});
la("Set",function(a){function b(c){this.j=new Map;if(c){c=g.x(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.x([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});
la("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
la("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push(b[d]);return c}});
la("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
la("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}});
la("String.prototype.includes",function(a){return a?a:function(b,c){return Fa(this,b,"includes").indexOf(b,c||0)!==-1}});
la("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}});
la("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)qa(b,d)&&c.push([d,b[d]]);return c}});
la("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
la("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
la("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
la("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
la("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
la("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}});
la("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}});
la("Array.prototype.entries",function(a){return a?a:function(){return Ga(this,function(b,c){return[b,c]})}});
la("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}});
la("globalThis",function(a){return a||g.fa});
la("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}});
la("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
la("Array.prototype.keys",function(a){return a?a:function(){return Ga(this,function(b){return b})}});
la("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}});
la("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}});
la("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
la("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}});
la("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)}});
la("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}});
la("Int8Array.prototype.fill",Ha);la("Uint8Array.prototype.fill",Ha);la("Uint8ClampedArray.prototype.fill",Ha);la("Int16Array.prototype.fill",Ha);la("Uint16Array.prototype.fill",Ha);la("Int32Array.prototype.fill",Ha);la("Uint32Array.prototype.fill",Ha);la("Float32Array.prototype.fill",Ha);la("Float64Array.prototype.fill",Ha);
la("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}});
la("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;
})})}});
la("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}});
la("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Eaa(this,b,c).i}});
la("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
la("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.x(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});
la("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}});
la("Int8Array.prototype.copyWithin",Ia);la("Uint8Array.prototype.copyWithin",Ia);la("Uint8ClampedArray.prototype.copyWithin",Ia);la("Int16Array.prototype.copyWithin",Ia);la("Uint16Array.prototype.copyWithin",Ia);la("Int32Array.prototype.copyWithin",Ia);la("Uint32Array.prototype.copyWithin",Ia);la("Float32Array.prototype.copyWithin",Ia);la("Float64Array.prototype.copyWithin",Ia);la("Array.prototype.at",function(a){return a?a:Ja});
la("Int8Array.prototype.at",Ka);la("Uint8Array.prototype.at",Ka);la("Uint8ClampedArray.prototype.at",Ka);la("Int16Array.prototype.at",Ka);la("Uint16Array.prototype.at",Ka);la("Int32Array.prototype.at",Ka);la("Uint32Array.prototype.at",Ka);la("Float32Array.prototype.at",Ka);la("Float64Array.prototype.at",Ka);la("String.prototype.at",function(a){return a?a:Ja});
la("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return Faa(this,b,c).i}});
la("Int8Array.prototype.findLastIndex",Ma);la("Uint8Array.prototype.findLastIndex",Ma);la("Uint8ClampedArray.prototype.findLastIndex",Ma);la("Int16Array.prototype.findLastIndex",Ma);la("Uint16Array.prototype.findLastIndex",Ma);la("Int32Array.prototype.findLastIndex",Ma);la("Uint32Array.prototype.findLastIndex",Ma);la("Float32Array.prototype.findLastIndex",Ma);la("Float64Array.prototype.findLastIndex",Ma);la("Number.parseInt",function(a){return a||parseInt});
la("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 ij,Ua,Gaa;ij=ij||{};g.Na=this||self;Ua="closure_uid_"+(Math.random()*1E9>>>0);Gaa=0;g.O.prototype.Wq=!1;g.O.prototype.Ja=function(){return this.Wq};
g.O.prototype.dispose=function(){this.Wq||(this.Wq=!0,this.xa())};
g.O.prototype[Symbol.dispose]=function(){this.dispose()};
g.O.prototype.addOnDisposeCallback=function(a,b){this.Wq?b!==void 0?a.call(b):a():(this.Po||(this.Po=[]),b&&(a=a.bind(b)),this.Po.push(a))};
g.O.prototype.xa=function(){if(this.Po)for(;this.Po.length;)this.Po.shift()()};var Maa;g.w(pb,g.O);pb.prototype.share=function(){if(this.Ja())throw Error("E:AD");this.G++;return this};
pb.prototype.dispose=function(){--this.G||g.O.prototype.dispose.call(this)};
Maa=Symbol.dispose;Paa.prototype.Lg=function(a,b){this.j.Lg("/client_streamz/bg/fil",a,b)};
Raa.prototype.Lg=function(a,b,c){this.j.Lg("/client_streamz/bg/fcd",a,b,c)};
Taa.prototype.Lg=function(a,b){this.j.Lg("/client_streamz/bg/fsl",a,b)};
Uaa.prototype.Lg=function(a,b){this.j.Lg("/client_streamz/bg/frs",a,b)};
Vaa.prototype.Lg=function(a,b,c,d,e,f){this.j.Lg("/client_streamz/bg/wrl",a,b,c,d,e,f)};
Xaa.prototype.Lg=function(a,b,c,d){this.j.Lg("/client_streamz/bg/el",a,b,c,d)};g.bb(sb,Error);sb.prototype.name="CustomError";var Jea;var Ne=void 0,Me,bda=typeof TextDecoder!=="undefined",fba,eba=typeof String.prototype.isWellFormed==="function",dba=typeof TextEncoder!=="undefined";var Cb=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},hea=/&/g,iea=/</g,jea=/>/g,kea=/"/g,lea=/'/g,mea=/\x00/g,gea=/[\x00&<>"']/;var Vab=Qa(1,!0),Gb=Qa(610401301,!1);Qa(899588437,!1);Qa(188588736,!0);var Wab=Qa(691955189,!1);Qa(651175828,!1);var Qca=Qa(653718497,Vab);Qa(660014094,Vab);Qa(2147483644,!1);Qa(2147483645,!1);Qa(2147483646,Vab);Qa(2147483647,!0);var Hb=!!g.Pa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Ib,Xab=g.Na.navigator;Ib=Xab?Xab.userAgentData||null:null;var tba,Ol,Qm;tba=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.Yab=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.oc=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.wn=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.Ml=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};
Ol=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.oc)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Qm=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.Nl=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};qc[" "]=function(){};var Cm,wU,W8a,Zab,$ab,abb,EP,iP,bbb;g.FP=Mb();g.Gp=kba();g.ou=Kb("Edge");g.eQ=g.ou||g.Gp;Cm=Kb("Gecko")&&!(Bb(g.Fb(),"WebKit")&&!Kb("Edge"))&&!(Kb("Trident")||Kb("MSIE"))&&!Kb("Edge");g.ih=Bb(g.Fb(),"WebKit")&&!Kb("Edge");wU=Ub();W8a=rba();g.qs=qba();Zab=Rb();$ab=Kb("iPad");abb=Kb("iPod");EP=Tb();iP=Bb(g.Fb(),"KaiOS");
a:{var cbb="",dbb=function(){var a=g.Fb();if(Cm)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.ou)return/Edge\/([\d\.]+)/.exec(a);if(g.Gp)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.ih)return/WebKit\/(\S+)/.exec(a);if(g.FP)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
dbb&&(cbb=dbb?dbb[1]:"");if(g.Gp){var x1,ebb=g.Na.document;x1=ebb?ebb.documentMode:void 0;if(x1!=null&&x1>parseFloat(cbb)){bbb=String(x1);break a}}bbb=cbb}var Fba=bbb,Dba={};var ns,os;g.VO=Nb();ns=Rb()||Kb("iPod");os=Kb("iPad");g.GP=mba();g.$F=Ob();g.Nt=Pb()&&!Tb();var Hba={},xc=null,Iba=Cm||g.ih||typeof g.Na.btoa=="function";var Rba=typeof Uint8Array!=="undefined",Lba=!g.Gp&&typeof btoa==="function",Pba=/[-_.]/g,Nba={"-":"+",_:"/",".":"="},Ac={};zc.prototype.isEmpty=function(){return this.j==null};
zc.prototype.sizeBytes=function(){var a=Cc(this);return a?a.length:0};
var Tba;var Kca;var he=typeof Symbol==="function"&&typeof Symbol()==="symbol",y1=Hc(),Od=Hc("2ex"),ie=Hc("1oa");Math.max.apply(Math,g.z(Object.values({Sja:1,Qja:2,Pja:4,Kka:8,Jka:16,Cka:32,Uha:64,oma:128,eja:256,dja:512,Rja:1024,Oia:2048,dma:4096,Qia:8192,fia:16384})));var Gd=he?function(a,b){a[y1]|=b}:function(a,b){a.Qo!==void 0?a.Qo|=b:Object.defineProperties(a,{Qo:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},Rca=he?function(a,b){a[y1]&=~b}:function(a,b){a.Qo!==void 0&&(a.Qo&=~b)},Mc=he?function(a){return a[y1]|0}:function(a){return a.Qo|0},Jd=he?function(a){return a[y1]}:function(a){return a.Qo},Ic=he?function(a,b){a[y1]=b}:function(a,b){a.Qo!==void 0?a.Qo=b:Object.defineProperties(a,{Qo:{value:b,
configurable:!0,writable:!0,enumerable:!1}})};var vd={},Xba={},Yd,fbb=[];Ic(fbb,55);Yd=Object.freeze(fbb);var Rc,Pca=Object.freeze({});var aca=Sc(function(a){return typeof a==="number"}),$ba=Sc(function(a){return typeof a==="string"}),bca=Sc(function(a){return typeof a==="boolean"}),wL=Sc(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),vL=Sc(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var Tc=typeof g.Na.BigInt==="function"&&typeof g.Na.BigInt(0)==="bigint";var qd=Sc(function(a){return Tc?a>=gbb&&a<=hbb:a[0]==="-"?cca(a,ibb):cca(a,jbb)}),ibb=Number.MIN_SAFE_INTEGER.toString(),gbb=Tc?BigInt(Number.MIN_SAFE_INTEGER):void 0,jbb=Number.MAX_SAFE_INTEGER.toString(),hbb=Tc?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Yca=typeof Uint8Array.prototype.slice==="function",Wc=0,Xc=0,Hda;var ica=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var zd=void 0,Ad=void 0,wd=void 0,xd=void 0,Bd=void 0;var Cd,Ed,Bca;g.k=Wca.prototype;g.k.init=function(a,b,c,d){d=d===void 0?{}:d;this.pJ=d.pJ===void 0?!1:d.pJ;a&&(a=ze(a),this.B=a.buffer,this.G=a.Ux,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.pJ=!1};
g.k.reset=function(){this.j=this.D};
g.k.Pd=function(){var a=this.L;a||(a=this.B,a=this.L=new DataView(a.buffer,a.byteOffset,a.byteLength));return a};
var Ie=[];Je.prototype.free=function(){this.j.clear();this.B=this.D=-1;z1.length<100&&z1.push(this)};
Je.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
var z1=[];var Ue,Re;g.k=Qe.prototype;g.k.toJSON=function(){return Ve(this)};
g.k.Hi=function(a){try{return Re=!0,a&&(Ue=a===Pe||a!==dda&&a!==hda&&a!==kda?Pe:a),JSON.stringify(Ve(this),Eca)}finally{a&&(Ue=void 0),Re=!1}};
g.k.clone=function(){var a=this.xb;return Dd(this.constructor,Kd(a,Jd(a),!1))};
g.k.Ux=function(){return!!(Mc(this.xb)&2)};
g.k.KL=vd;g.k.toString=function(){try{return Re=!0,Ve(this).toString()}finally{Re=!1}};var nda,pda;Ye.prototype.length=function(){return this.j.length};
Ye.prototype.end=function(){var a=this.j;this.j=[];return a};var ff=ef(),kbb=ef(),lbb=ef(),mbb=ef(),nbb=ef(),obb=ef(),pbb=ef(),qbb=ef();var yda=hf(function(a,b,c,d,e){if(a.B!==2)return!1;Le(a,je(b,d,c),e);return!0},xda),zda=hf(function(a,b,c,d,e){if(a.B!==2)return!1;
Le(a,je(b,d,c,!0),e);return!0},xda),rf=Symbol(),nf=Symbol(),Bda=Symbol(),Eda=Symbol(),jf,kf;var rbb=uf(function(a,b,c){if(a.B!==1)return!1;wf(b,c,Ge(a.j));return!0},xf,pbb),sbb=uf(function(a,b,c){if(a.B!==1)return!1;
a=Ge(a.j);wf(b,c,a===0?void 0:a);return!0},xf,pbb),tbb=uf(function(a,b,c,d){if(a.B!==1)return!1;
fe(b,c,d,Ge(a.j));return!0},xf,pbb),ubb=uf(function(a,b,c){if(a.B!==0)return!1;
wf(b,c,Be(a.j));return!0},yf,nbb),vbb=uf(function(a,b,c){if(a.B!==0)return!1;
a=Be(a.j);wf(b,c,a===0?void 0:a);return!0},yf,nbb),wbb=uf(function(a,b,c,d){if(a.B!==0)return!1;
fe(b,c,d,Be(a.j));return!0},yf,nbb),xbb=uf(function(a,b,c){if(a.B!==0)return!1;
wf(b,c,Ce(a.j));return!0},zf,mbb),ybb=uf(function(a,b,c){if(a.B!==0)return!1;
a=Ce(a.j);wf(b,c,a===0?void 0:a);return!0},zf,mbb),zbb=uf(function(a,b,c,d){if(a.B!==0)return!1;
fe(b,c,d,Ce(a.j));return!0},zf,mbb),Abb=uf(function(a,b,c){if(a.B!==1)return!1;
wf(b,c,Fe(a.j));return!0},function(a,b,c){vda(a,c,rca(b))},obb),Bbb=vf(function(a,b,c){if(a.B!==1&&a.B!==2)return!1;
b=ae(b,Jd(b),c,!1,!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=tf(rca,b,!1);
if(b!=null)for(var d=0;d<b.length;d++)vda(a,c,b[d])},obb),Cbb=uf(function(a,b,c){if(a.B!==0)return!1;
wf(b,c,He(a.j));return!0},Ida,kbb),Dbb=uf(function(a,b,c,d){if(a.B!==0)return!1;
fe(b,c,d,He(a.j));return!0},Ida,kbb),A1=uf(function(a,b,c){if(a.B!==2)return!1;
wf(b,c,Oe(a));return!0},Jda,lbb),Ebb=vf(function(a,b,c){if(a.B!==2)return!1;
a=Oe(a);ae(b,Jd(b),c,!1).push(a);return!0},function(a,b,c){b=tf(sd,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,gba(h))}},lbb),Fbb=uf(function(a,b,c,d){if(a.B!==2)return!1;
fe(b,c,d,Oe(a));return!0},Jda,lbb),B1,C1=void 0;
C1=C1===void 0?ff:C1;B1=new gf(function(a,b,c,d,e){if(a.B!==2)return!1;d=Hd(void 0,d,!0);ae(b,Jd(b),c,!0).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++)Kda(a,b[f],c,d,e)},C1);
var D1=hf(function(a,b,c,d,e,f){if(a.B!==2)return!1;de(b,Mc(b),f,c);b=je(b,d,c);Le(a,b,e);return!0},Kda),Gbb=uf(function(a,b,c){if(a.B!==2)return!1;
wf(b,c,cda(a));return!0},function(a,b,c){b=sca(b);
b!=null&&df(a,c,ze(b).buffer)},qbb),Hbb=vf(function(a,b,c){if(a.B!==2)return!1;
a=cda(a);ae(b,Jd(b),c,!1).push(a);return!0},function(a,b,c){b=tf(sca,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)}},qbb),E1=uf(function(a,b,c){if(a.B!==0)return!1;
wf(b,c,Ce(a.j)>>>0);return!0},function(a,b,c){b=ld(b);
b!=null&&b!=null&&(cf(a,c,0),$e(a.j,b))},ef()),Ibb=uf(function(a,b,c){if(a.B!==0)return!1;
wf(b,c,Ce(a.j));return!0},function(a,b,c){b=kd(b);
b!=null&&(b=parseInt(b,10),cf(a,c,0),rda(a.j,b))},ef());g.w(Mda,Qe);g.w(Bf,Qe);var Gf=[1,2,3];var Jbb=[0,Gf,Fbb,zbb,Dbb];var Kbb=[0,B1,[0,rbb,ubb]];g.w(Cf,Qe);var Ff=[1,2,3];var Lbb=[0,Ff,wbb,tbb,D1,Kbb];g.w(Df,Qe);var Mbb=[0,B1,Jbb,Lbb];var Nbb=[0,[1,2,3],D1,[0,A1,-1,Cbb],D1,[0,A1,-1,xbb,Cbb],D1,[0,A1]];g.w(Ef,Qe);Ef.prototype.Vr=function(){var a=Xd(this,3,sd,3,void 0,!0);Qc(a);return a[void 0]};Ef.prototype.j=Lda([0,A1,Nbb,Ebb,B1,Mbb,Abb,Bbb]);g.w(Oda,Qe);var rea={};var Xda=globalThis.trustedTypes,Hf;g.Jf.prototype.toString=function(){return this.j+""};Mf.prototype.toString=function(){return this.j};
g.Rf=new Mf("about:invalid#zClosurez");var j3a=Qf("tel"),h3a=Qf("sms"),Zda=[Qf("data"),Qf("http"),Qf("https"),Qf("mailto"),Qf("ftp"),new Pf(function(a){return/^[^:]*([/?#]|$)/.test(a)})],$da=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Vf.prototype.toString=function(){return this.j};g.Wf.prototype.toString=function(){return this.j+""};g.ag.prototype.toString=function(){return this.j+""};var fg={};g.Obb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};g.k=og.prototype;g.k.isEnabled=function(){if(!g.Na.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{KG: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.Nea;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.KG}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=Cb(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,"",{KG:0,path:b,domain:c});return d};
g.k.Ko=function(){return pg(this).keys};
g.k.fn=function(){return pg(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=pg(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
var $r=new og(typeof document=="undefined"?null:document);rg.prototype.compress=function(a){var b,c,d,e;return g.I(function(f){switch(f.j){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),g.G(f,d.write((new TextEncoder).encode(a)),2);case 2:return g.G(f,d.close(),3);case 3:return e=Uint8Array,g.G(f,c,4);case 4:return f.return(new e(f.B))}})};
rg.prototype.isSupported=function(a){return a<1024?!1:typeof CompressionStream!=="undefined"};g.w(sg,Qe);tg.prototype.setInterval=function(a){this.intervalMs=a;this.ye&&this.enabled?(this.stop(),this.start()):this.ye&&this.stop()};
tg.prototype.start=function(){var a=this;this.enabled=!0;this.ye||(this.ye=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
tg.prototype.stop=function(){this.enabled=!1;this.ye&&(clearTimeout(this.ye),this.ye=void 0)};
tg.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<this.intervalMs*.8?this.ye=setTimeout(function(){a.tick()},this.intervalMs-b):(this.ye&&(clearTimeout(this.ye),this.ye=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.ye=void 0};g.w(vg,Qe);g.w(wg,Qe);g.k=g.Ag.prototype;g.k.clone=function(){return new g.Ag(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.Cg.prototype;g.k.clone=function(){return new g.Cg(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 zea="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Yg.prototype.toString=function(){return this.j};
var Xg={};new Yg(Xg,"");var Bea=/^[a-z][a-z\d-]*$/i,Cea="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),Eea="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),Gea=["action","formaction","href"];var Kea={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=$g.prototype;g.k.Jb=function(a){return ch(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Da=function(a){return g.gh(a,this.j)};
g.k.setProperties=hh;g.k.createElement=function(a){return kh(this.j,a)};
g.k.appendChild=g.oh;g.k.append=function(a,b){Oea(ah(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.rh;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.sh;var lfa=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 F2a=Rea("AnimationEnd"),cOa=Rea("TransitionEnd");g.wh.prototype.B=0;g.wh.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.wh.prototype.getValue=function(){return this.C};g.w(yh,Qe);yh.prototype.IK=function(){return te(this,1)};g.w(zh,Qe);g.w(Ch,Qe);g.w(Dh,Qe);var Tea=["platform","platformVersion","architecture","model","uaFullVersion"],Fh=new Ch,Eh=null;g.w(Gh,Qe);g.w(Vea,Qe);g.w(Hh,Qe);g.w(Ih,Qe);Ih.prototype.N=function(){return Rd(this,Vea,7)};
Ih.prototype.KA=function(){return ke(this,sg,16)};g.w(Jh,Qe);Jh.prototype.aI=function(a){return xe(this,2,a)};g.w(Wea,Qe);var Pbb=Af(Wea);g.w(Xea,Qe);var F1=new function(){this.j=Xea;this.isRepeated=0;this.B=ke;this.defaultValue=void 0};g.w(Mh,g.O);g.k=Mh.prototype;g.k.xa=function(){this.cQ();this.j.stop();this.qa.stop();g.O.prototype.xa.call(this)};
g.k.dispatch=function(a){if(a instanceof Ih)this.log(a);else try{var b=new Ih,c=a.Hi();var d=ve(b,8,c);this.log(d)}catch(e){}};
g.k.log=function(a){if(this.ra){a=a.clone();var b=this.Fa++;a=ue(a,21,b);this.componentId&&ve(a,26,this.componentId);if(Sca(a)==null){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Qd(b,1,pd(c))}pca(Nd(a,15))!=null||ue(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=a,c=this.experimentIds.clone(),le(b,sg,16,c));b=this.C.length-1E3+1;b>0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.gF||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.Ea>d&&this.Z<d)b&&b("throttled");else{this.network&&(typeof this.network.IK==="function"?$ea(this.B,this.network.IK()):$ea(this.B,0));var e=this.B.build(this.C,this.G,this.W,this.pC,0,0);d={};var f=this.CF();f&&(d.Authorization=f);this.U||(this.U=Lh());try{var h=(new URL(this.U)).toString()}catch(t){h=(new URL(this.U,jh().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.Ba===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.Hi(),m;this.L&&this.L.isSupported(l.length)&&(m=this.L.compress(l));var n={url:h.toString(),body:l,V7:1,requestHeaders:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(t){c.D.reset();
c.j.setInterval(c.D.getValue());if(t){var u=null;try{var y=JSON.stringify(JSON.parse(t.replace(")]}'\n","")));u=Pbb(y)}catch(A){}u&&(t=Number,y="-1",y=y===void 0?"0":y,y=oe(Sca(u),y),t=t(y),t>0&&(c.Z=Date.now(),c.Ea=c.Z+t),u=F1.j?F1.B(u,F1.j,175237375,!0):F1.B(u,175237375,null,!0),u=u===null?void 0:u)&&(u=ib(u,1,-1),u!==-1&&(c.D=new g.wh(u<1?1:u,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.W=0},q=function(t,u){var y=fb(e,Ih,3);
var A=pca(Nd(e,14));A=A==null?void 0:A;g.xh(c.D);c.j.setInterval(c.D.getValue());t===401&&f&&(c.Ba=f);A&&(c.G+=A);u===void 0&&(u=c.isRetryable(t));u&&(c.C=y.concat(c.C),c.gF||c.j.enabled||c.j.start());b&&b("net-send-failed",t);++c.W},r=function(){c.network&&c.network.send(n,p,q)};
m?m.then(function(t){n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=t;n.V7=2;r()},function(){r()}):r()}}}};
g.k.cQ=function(){afa(this.B,!0);this.flush();afa(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
Kh.prototype.aI=function(a){this.j.aI(a);return this};
Kh.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(Oh(this),Dh,11)){var h=Ph(this);Qd(h,3,jd(c))}Rd(Oh(this),Dh,11)&&(c=Ph(this),Qd(c,4,jd(e)));Rd(Oh(this),Dh,11)&&(e=Ph(this),Qd(e,5,jd(f)));f=this.j.clone();e=Date.now().toString();f=Qd(f,4,pd(e));a=me(f,Ih,3,a.slice());d&&(f=new vg,d=Qd(f,13,jd(d)),f=new wg,d=le(f,vg,2,d),f=new Hh,d=le(f,wg,1,d),d=xe(d,2,9),le(a,Hh,18,d));b&&ue(a,14,b);return a};Qh.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.I(function(u){switch(u.j){case 1:return f=(e=d.D7?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.Ga(3);break}if((n=b)==null){u.Ga(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.Ga(3)}})};
Qh.prototype.IK=function(){return 4};g.w(Rh,g.O);Rh.prototype.wY=function(){this.G=!0;return this};
Rh.prototype.build=function(){this.network||(this.network=new Qh);var a=new Mh({logSource:this.logSource,CF:this.CF?this.CF:uea,sessionIndex:this.sessionIndex,jga:this.C,ey:this.D,gF:!1,wY:this.G,OX:this.OX,network:this.network});g.P(this,a);if(this.B){var b=this.B,c=Nh(a.B);ve(c,7,b)}Math.random()<.01&&(a.L=new rg);this.componentId&&(a.componentId=this.componentId);this.pC&&(a.pC=this.pC);this.pageId&&(a.pageId=this.pageId);this.j&&((c=this.j)?(a.experimentIds||(a.experimentIds=new sg),b=a.experimentIds,
c=c.Hi(),ve(b,4,c)):a.experimentIds&&Qd(a.experimentIds,4));bfa(a.B);this.network.aI&&this.network.aI(this.logSource);this.network.gfa&&this.network.gfa(a);return a};g.w(Sh,g.O);Sh.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Oda,c=[],d=0;d<a.length;d++){var e=a[d],f=g.Rda(e);c.push(f);e.clear()}me(b,Ef,1,c);this.j.dispatch(b);this.j.flush()}};g.k=Th.prototype;g.k.L7=function(a){var b=g.Da.apply(1,arguments),c=this.lQ(b);c?c.push(new ffa(a)):this.H2(a,b)};
g.k.H2=function(a){this.j.set(this.kW(g.Da.apply(1,arguments)),[new ffa(a)])};
g.k.lQ=function(){var a=this.kW(g.Da.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.A9=function(){var a=this.lQ(g.Da.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.kW=function(){var a=g.Da.apply(0,arguments);return a?a.join(","):"key"};g.w(Uh,Th);Uh.prototype.C=function(a){var b=g.Da.apply(1,arguments),c=0,d=this.A9(b);d&&(c=d.j);this.H2(c+a,b)};g.w(Vh,Th);Vh.prototype.Lg=function(a){this.L7(a,g.Da.apply(1,arguments))};g.Wh.prototype.stopPropagation=function(){this.B=!0};
g.Wh.prototype.preventDefault=function(){this.defaultPrevented=!0};g.bb(Xh,g.Wh);
Xh.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&&Xh.Wf.preventDefault.call(this)};
Xh.prototype.stopPropagation=function(){Xh.Wf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Xh.prototype.preventDefault=function(){Xh.Wf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var gfa="closure_listenable_"+(Math.random()*1E6|0);var hfa=0;g.k=bi.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=di(a,b,d,e);h>-1?(b=a[h],c||(b.CJ=!1)):(b=new ifa(b,this.src,f,!!d,e),b.CJ=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=di(e,b,c,d);return b>-1?(Zh(e[b]),g.$b(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,Zh(d[e]);delete this.listeners[c];this.j--}return b};
g.k.NF=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=di(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.Hg(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 ii="closure_lm_"+(Math.random()*1E6|0),ki={},nfa=0,li="__closure_events_fn_"+(Math.random()*1E9>>>0);g.bb(g.mi,g.O);g.mi.prototype[gfa]=!0;g.k=g.mi.prototype;g.k.addEventListener=function(a,b,c,d){g.fi(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){pfa(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.lT;if(b){var c=[];for(var d=1;b;b=b.lT)c.push(b),++d}b=this.G7;d=a.type||a;if(typeof a==="string")a=new g.Wh(a,b);else if(a instanceof g.Wh)a.target=a.target||b;else{var e=a;a=new g.Wh(d,b);g.Tg(a,e)}e=!0;var f;if(c)for(f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=ni(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=ni(h,d,!0,a)&&e,a.B||(e=ni(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=ni(h,d,!1,a)&&e;return e};
g.k.xa=function(){g.mi.Wf.xa.call(this);this.Vm&&this.Vm.removeAll(void 0);this.lT=null};
g.k.listen=function(a,b,c,d){return this.Vm.add(String(a),b,!1,c,d)};
g.k.CG=function(a,b,c,d){return this.Vm.add(String(a),b,!0,c,d)};
g.k.Nc=function(a,b,c,d){this.Vm.remove(String(a),b,c,d)};
g.k.NF=function(a,b,c,d){return this.Vm.NF(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Vm.hasListener(a!==void 0?String(a):void 0,b)};var Fi=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};oi.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 pi;ri.prototype.add=function(a,b){var c=vfa.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
ri.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 vfa=new oi(function(){return new si},function(a){return a.reset()});
si.prototype.set=function(a,b){this.wx=a;this.scope=b;this.next=null};
si.prototype.reset=function(){this.next=this.scope=this.wx=null};var ti,ui=!1,tfa=new ri;yfa.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var zfa=new oi(function(){return new yfa},function(a){a.reset()});
g.Bi.prototype.then=function(a,b,c){return Jfa(this,Fi(typeof a==="function"?a:null),Fi(typeof b==="function"?b:null),c)};
g.Bi.prototype.$goog_Thenable=!0;g.k=g.Bi.prototype;g.k.wl=function(a,b){return Jfa(this,null,Fi(a),b)};
g.k.catch=g.Bi.prototype.wl;g.k.cancel=function(a){if(this.j==0){var b=new Ii(a);g.vi(function(){Ffa(this,b)},this)}};
g.k.Xfa=function(a){this.j=0;Ai(this,2,a)};
g.k.Yfa=function(a){this.j=0;Ai(this,3,a)};
g.k.i9=function(){for(var a;a=Gfa(this);)Hfa(this,a,this.j,this.U);this.L=!1};
var Nfa=vb;g.bb(Ii,sb);Ii.prototype.name="cancel";g.bb(g.Ji,g.mi);g.k=g.Ji.prototype;g.k.enabled=!1;g.k.rd=null;g.k.setInterval=function(a){this.lj=a;this.rd&&this.enabled?(this.stop(),this.start()):this.rd&&this.stop()};
g.k.Kfa=function(){if(this.enabled){var a=g.Za()-this.H_;a>0&&a<this.lj*.8?this.rd=this.xI.setTimeout(this.SX,this.lj-a):(this.rd&&(this.xI.clearTimeout(this.rd),this.rd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.rd||(this.rd=this.xI.setTimeout(this.SX,this.lj),this.H_=g.Za())};
g.k.stop=function(){this.enabled=!1;this.rd&&(this.xI.clearTimeout(this.rd),this.rd=null)};
g.k.xa=function(){g.Ji.Wf.xa.call(this);this.stop();delete this.xI};g.w(g.Mi,g.O);g.k=g.Mi.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
g.k.ID=function(){var a=this.B.values();a=[].concat(g.z(a)).filter(function(b){return b.j.size});
a.length&&this.U.flush(a,this.G);Qfa(a);this.D=0;this.j.enabled&&this.j.stop()};
g.k.Dj=function(a){var b=g.Da.apply(1,arguments);this.B.has(a)||this.B.set(a,new Uh(a,b))};
g.k.dA=function(a){var b=g.Da.apply(1,arguments);this.B.has(a)||this.B.set(a,new Vh(a,b))};
g.k.Il=function(a){this.kO(a,1,g.Da.apply(1,arguments))};
g.k.kO=function(a,b){var c=g.Da.apply(2,arguments),d=Pfa(this,a);d&&d instanceof Uh&&(d.C(b,c),Ofa(this))};
g.k.Lg=function(a,b){var c=g.Da.apply(2,arguments),d=Pfa(this,a);d&&d instanceof Vh&&(d.Lg(b,c),Ofa(this))};g.w(Ni,Error);Ni.prototype.toString=function(){var a="RpcError("+(Sfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};Tfa.prototype.Hi=function(a){var b=[];Ri(this,a,b);return b.join("")};
var Wfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Vfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var Qbb;g.bb(Si,Yfa);Si.prototype.j=function(){return new XMLHttpRequest};
Qbb=new Si;var Vi=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),ega=/#|$/,fga=/[?&]($|#)/;g.bb(g.gj,g.mi);var mga=/^https?$/i,Rbb=["POST","PUT"],hga=[];g.k=g.gj.prototype;g.k.g8=function(){this.dispose();g.ac(hga,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.W+"; newUri="+a);b=b?b.toUpperCase():"GET";this.W=a;this.D="";this.B=0;this.ra=!1;this.C=!0;this.j=this.Fa?this.Fa.j():Qbb.j();this.j.onreadystatechange=Fi((0,g.Xa)(this.V0,this));try{this.getStatus(),this.Ba=!0,this.j.open(b,String(a),!0),this.Ba=!1}catch(h){this.getStatus();kga(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.x(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.Zb(Rbb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.x(c);for(d=b.next();!d.done;d=b.next())c=g.x(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ea&&(this.j.responseType=this.Ea);"withCredentials"in this.j&&this.j.withCredentials!==this.U&&(this.j.withCredentials=this.U);try{this.L&&(clearTimeout(this.L),this.L=null),this.qa>0&&(this.getStatus(),this.L=setTimeout(this.i6.bind(this),
this.qa)),this.getStatus(),this.Z=!0,this.j.send(a),this.Z=!1}catch(h){this.getStatus(),kga(this,h)}};
g.k.i6=function(){typeof ij!="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"),hj(this))};
g.k.xa=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),hj(this,!0));g.gj.Wf.xa.call(this)};
g.k.V0=function(){this.Ja()||(this.Ba||this.Z||this.G?lga(this):this.zca())};
g.k.zca=function(){lga(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return g.jj(this)==4};
g.k.getStatus=function(){try{return g.jj(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)};oj.prototype.send=function(a,b,c){b=b===void 0?function(){}:b;
c=c===void 0?function(){}:c;
iga(a.url,function(d){d=d.target;kj(d)?b(g.lj(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
oj.prototype.IK=function(){return 1};qj.prototype.done=function(){this.logger.wy(this.event,pj()-this.startTime)};
g.w(rj,pb);g.w(tj,rj);g.k=tj.prototype;g.k.FG=function(){};
g.k.Vu=function(){};
g.k.wy=function(){};
g.k.Sj=function(){};
g.k.Tz=function(){};
g.k.GG=function(a,b,c){return c};
g.k.AL=function(){};
g.k.xL=function(){};
g.k.zL=function(){};
g.k.HN=function(){};
g.w(uj,rj);g.k=uj.prototype;g.k.update=function(a){this.logger.dispose();this.logger=a};
g.k.Vu=function(a){this.logger.Vu(a)};
g.k.wy=function(a,b){this.logger.wy(a,b)};
g.k.Sj=function(a){this.logger.Sj(a)};
g.k.Tz=function(){this.logger.Tz()};
g.k.GG=function(a,b,c){return this.logger.GG(a,b,c)};
g.k.AL=function(a){this.logger.AL(a)};
g.k.xL=function(a){this.logger.xL(a)};
g.k.zL=function(a){this.logger.zL(a)};
g.k.HN=function(a){this.logger.HN(a)};
g.k.FG=function(a){this.logger.FG(a)};
g.w(vj,g.O);g.w(wj,rj);g.k=wj.prototype;g.k.FG=function(a){this.metrics.sfa.Lg(a,this.Af)};
g.k.Vu=function(a){a==="t"?this.metrics.N$.j.Il("/client_streamz/bg/fic",this.Af):a==="n"?this.metrics.qfa.j.Il("/client_streamz/bg/fsc",this.Af):a==="h"||a==="u"||a==="k"?(a=this.j.get(a))&&this.metrics.d8.j.Il("/client_streamz/bg/fcc",a,this.Af):this.metrics.eventCount.j.Il("/client_streamz/bg/ec",a,this.Af)};
g.k.wy=function(a,b){a==="t"?this.metrics.P$.Lg(b,this.Af):a==="n"?this.metrics.rfa.Lg(b,this.Af):a==="h"||a==="u"||a==="k"?(a=this.j.get(a))&&this.metrics.e8.Lg(b,a,this.Af):this.metrics.h9.Lg(b,a,this.Al,this.Af)};
g.k.Sj=function(a){var b=this.B.get(a);b?this.metrics.O$.j.Il("/client_streamz/bg/fiec",this.Af,b):this.metrics.errorCount.j.Il("/client_streamz/bg/cec",a,this.Al,this.Af)};
g.k.GG=function(a,b,c){function d(h){if(!e.Ja()){var l=pj()-f;e.metrics.tga.Lg(l,a,b,h,e.Al,e.Af)}}
var e=this,f=pj();c.then(function(){d(0)},function(h){h instanceof Ni?d(h.code):d(-1)});
return c};
g.k.AL=function(a){this.metrics.wga.j.Il("/client_streamz/bg/po/csc",a,this.Al,this.Af)};
g.k.xL=function(a){this.metrics.X7.j.Il("/client_streamz/bg/po/ctav",a,this.Al,this.Af)};
g.k.zL=function(a){this.metrics.vga.j.Il("/client_streamz/bg/po/cwsc",a,this.Al,this.Af)};
g.w(xj,wj);xj.prototype.HN=function(a){var b=this;this.C.dispose();this.service.dispose();this.service=pga(this.options.Ur.concat(a));this.C=new vj(function(){return void b.service.ID()},this.options.EG);
this.metrics=oga(this.service);this.D=a};
xj.prototype.Tz=function(){qga(this.C)};g.w(gb,Qe);g.w(yj,Qe);var sga=Af(yj);g.w(zj,Qe);g.w(Aj,Qe);g.w(Bj,Qe);var Sbb=Af(Bj),rga=function(a){return Sc(function(b){return b instanceof a&&!(Mc(b.xb)&2)})}(Bj);
Bj.messageId="bfkj";g.w(Dj,g.O);Dj.prototype.snapshot=function(a){if(this.Ja())throw Error("Already disposed");this.logger.Vu("n");var b=this.logger.share();return this.C.then(function(c){var d=c.S7;return new Promise(function(e){var f=new qj(b,"n");d(function(h){f.done();b.FG(h.length);b.Tz();b.dispose();e(h)},[a.Jj,
a.xU,a.n4,a.AU])})})};
Dj.prototype.EU=function(a){var b=this;if(this.Ja())throw Error("Already disposed");this.logger.Vu("n");var c=sj(this.logger,function(){return b.D([a.Jj,a.xU,a.n4,a.AU])},"n");
this.logger.FG(c.length);this.logger.Tz();return c};
Dj.prototype.yM=function(a){this.C.then(function(b){var c;(c=b.Kda)==null||c(a)})};
Dj.prototype.pU=function(){return this.logger.share()};
g.w(Ej,Error);g.w(Ij,Qe);g.w(Jj,Qe);g.w(Kj,Qe);Lj.prototype.uF=function(a,b){var c=this,d,e,f,h,l;return g.I(function(m){if(m.j==1){var n=new Ij;d=we(n,1,c.uC);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=Dc(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=Sbb(p);return n.call(m,p)}l=ke(f,Bj,1);if(!l)throw Error("Missing field");return m.return(l)})};
Lj.prototype.ping=function(a,b){var c=this,d,e;return g.I(function(f){d=c.j();e=b||new Kj;var h=ve(e,1,c.uC);ve(h,2,a);return g.G(f,c.client.ping(e,d),0)})};g.w(Nj,g.O);Nj.prototype.snapshot=function(a){var b=this;return g.I(function(c){switch(c.j){case 1:if(b.Ja())throw Error("Already disposed");if(b.j||b.U){c.Ga(2);break}return g.G(c,b.C.promise,2);case 2:if(!b.j){c.Ga(4);break}return g.G(c,b.j.snapshot(a),5);case 5:return c.return(c.B);case 4:throw b.U;}})};
Nj.prototype.yM=function(a){var b,c;(b=this.j)==null||(c=b.yM)==null||c.call(b,a)};
Nj.prototype.handleError=function(a){if(!this.Ja()){this.U=a;this.C.resolve();var b,c;(c=(b=this.options).bqa)==null||c.call(b,a)}};
Nj.prototype.pU=function(){return this.logger.share()};
var Bga={nea:432E5,s3:3E5,y3:10,o8:1E4,o9:3E4,maa:3E4,kfa:6E4,e9:1E3,d9:6E4,f9:6E5,g9:.25,c9:2,maxAttempts:10};var Tbb,Iga=(Tbb=Math.imul)!=null?Tbb:function(a,b){return a*b|0},Uj=[196,
200,224,18];Vj.prototype.Hi=function(){return String(this.j)+","+this.B.join()};
Vj.prototype.Uh=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=Hga("iU5q-!O9@$",this.Hi());c&&a&&b(c);return a};var Tga={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 Vga;g.w(Xj,g.O);Xj.prototype.fv=function(a,b){var c=this.ev(a);b==null||b(c);return sj(this.logger,function(){return g.uc(c,2)},this.j)};
Vga=Symbol.dispose;g.w(ak,Xj);ak.prototype.ev=function(a,b){var c=this;++this.G>=this.L&&this.C.resolve();var d=a();a=sj(this.logger,function(){return c.D(d)},"C");
if(a===void 0)throw new Ej(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new Ej(18,"ODM:Invalid");b==null||b(a);return a};
g.w(bk,Xj);bk.prototype.ev=function(){return this.D};
g.w(ck,Xj);ck.prototype.ev=function(){var a=this;return sj(this.logger,function(){return wc(a.D)},"d")};
ck.prototype.fv=function(){return this.D};
g.w(dk,Xj);dk.prototype.ev=function(){if(this.D)return this.D;this.D=Wga(this,function(a){return"_"+Uga(a)});
return Wga(this,function(a){return a})};
g.w(fk,Xj);fk.prototype.ev=function(a){var b=a();if(b.length>118)throw new Ej(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.AL(this.clientState);return a};g.w(gk,g.O);gk.prototype.FP=function(a){if(!(a>150))try{this.cache=new Pga(a,this.logger)}catch(b){this.reportError(new Ej(22,"GBJ:init",b))}};
gk.prototype.reportError=function(a){this.logger.Sj(a.code);this.onError(a);return a};
(function(a){return Sc(function(b){if(!vL(b))return!1;for(var c=g.x(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=g.x(d.value);d=e.next().value;e=e.next().value;if(!(d in b)){if(e.Epa===!0)continue;return!1}if(!e(b[d]))return!1}return!0})})({Qg:function(a){return Sc(function(b){return b instanceof a})}(Nj)},"");g.w(ik,Qe);var Ubb=Af(ik);dha.prototype.getMetadata=function(){return this.metadata};jk.prototype.getMetadata=function(){return this.metadata};
jk.prototype.getStatus=function(){return this.status};kk.prototype.U=function(a,b){b=b===void 0?{}:b;return new dha(a,this,b)};
kk.prototype.getName=function(){return this.name};var Vbb=new kk("/google.internal.waa.v1.Waa/Create",Ij,ik,function(a){return a.Hi()},Ubb);g.w(lk,Qe);var yga=new kk("/google.internal.waa.v1.Waa/GenerateIT",Jj,lk,function(a){return a.Hi()},Af(lk));g.w(mk,Qe);var Wbb=new kk("/google.internal.waa.v1.Waa/Ping",Kj,mk,function(a){return a.Hi()},Af(mk));var Eha=new Set(["SAPISIDHASH","APISIDHASH"]);var zha=Promise;g.w(nk,Qe);nk.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.w(ok,Qe);ok.prototype.getMessage=function(){return se(this,2)};
var iha=Af(ok);pk.prototype.on=function(a,b){a=="data"?this.C.push(b):a=="metadata"?this.G.push(b):a=="status"?this.L.push(b):a=="end"?this.D.push(b):a=="error"&&this.B.push(b);return this};
pk.prototype.removeListener=function(a,b){a=="data"?tk(this.C,b):a=="metadata"?tk(this.G,b):a=="status"?tk(this.L,b):a=="end"?tk(this.D,b):a=="error"&&tk(this.B,b);return this};
pk.prototype.cancel=function(){this.j.abort()};
pk.prototype.cancel=pk.prototype.cancel;pk.prototype.removeListener=pk.prototype.removeListener;pk.prototype.on=pk.prototype.on;g.bb(g.uk,Yfa);g.uk.prototype.j=function(){var a=new vk(this.D,this.C);this.B&&a.setCredentialsMode(this.B);return a};
g.uk.prototype.setCredentialsMode=function(a){this.B=a};
g.bb(vk,g.mi);g.k=vk.prototype;g.k.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.Z=b;this.readyState=1;wk(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.W,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Na).fetch(new Request(this.Z,b)).then(this.u$.bind(this),this.SK.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.W=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,xk(this));this.readyState=0};
g.k.u$=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,wk(this)),this.j&&(this.readyState=3,wk(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.s$.bind(this),this.SK.bind(this));else if(typeof g.Na.ReadableStream!=="undefined"&&"body"in a){this.C=a.body.getReader();if(this.L){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.U=new TextDecoder;jha(this)}else a.text().then(this.t$.bind(this),this.SK.bind(this))};
g.k.j$=function(a){if(this.j){if(this.L&&a.value)this.response.push(a.value);else if(!this.L){var b=a.value?a.value:new Uint8Array(0);if(b=this.U.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?xk(this):wk(this);this.readyState==3&&jha(this)}};
g.k.t$=function(a){this.j&&(this.response=this.responseText=a,xk(this))};
g.k.s$=function(a){this.j&&(this.response=a,xk(this))};
g.k.SK=function(){this.j&&xk(this)};
g.k.setRequestHeader=function(a,b){this.W.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(vk.prototype,"withCredentials",{get:function(){return this.G==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.yk.prototype.toString=function(){var a=[],b=this.G;b&&a.push(Fk(b,Xbb,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.W)&&a.push(Fk(b,Xbb,!0),"@"),a.push(g.ig(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(Fk(c,c.charAt(0)=="/"?Ybb:Zbb,!0));(c=this.D.toString())&&a.push("?",c);(c=this.L)&&a.push("#",Fk(c,$bb));return a.join("")};
g.yk.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.zk(b,a.G):c=!!a.W;c?b.W=a.W:c=!!a.j;c?g.Ak(b,a.j):c=a.C!=null;var d=a.B;if(c)g.Bk(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.Ab(e,"./")||g.Ab(e,"/.")){d=yb(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?Ck(b,a.D.clone()):c=!!a.L;c&&(b.L=a.L);return b};
g.yk.prototype.clone=function(){return new g.yk(this)};
var Xbb=/[#\/\?@]/g,Zbb=/[#\?:]/g,Ybb=/[#\?]/g,lha=/[#\?@]/g,$bb=/#/g;g.k=Ek.prototype;g.k.add=function(a,b){Ik(this);this.C=null;a=Jk(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){Ik(this);a=Jk(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(){Ik(this);return this.B==0};
g.k.forEach=function(a,b){Ik(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Ko=function(){Ik(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){Ik(this);var b=[];if(typeof a==="string")nha(this,a)&&(b=b.concat(this.j.get(Jk(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){Ik(this);this.C=null;a=Jk(this,a);nha(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.ig(d);d=this.fn(d);for(var f=0;f<d.length;f++){var h=e;d[f]!==""&&(h+="="+g.ig(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new Ek;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.bb(g.Lk,g.O);var acb=[];g.k=g.Lk.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(acb[0]=b.toString()),b=acb);for(var e=0;e<b.length;e++){var f=g.fi(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.CG=function(a,b,c,d){return qha(this,a,b,c,d)};
g.k.Nc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Nc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ta(d)?!!d.capture:!!d,e=e||this.B||this,c=gi(c),d=!!d,b=Yh(a)?a.NF(b,c,d,e):a?(a=hi(a))?a.NF(b,c,d,e):null:null,b&&(ji(b),delete this.j[b.key])};
g.k.removeAll=function(){g.Eg(this.j,function(a,b){this.j.hasOwnProperty(b)&&ji(a)},this);
this.j={}};
g.k.xa=function(){g.Lk.Wf.xa.call(this);this.removeAll()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};rha.prototype.isInputValid=function(){return this.C};Mk.prototype.isInputValid=function(){return this.j!=3};
Mk.prototype.dg=function(){return this.L};
Mk.prototype.lJ=function(){return!0};
Mk.prototype.parse=function(a){function b(m){m&128&&Nk(f,h,l,"invalid tag");(m&7)!=2&&Nk(f,h,l,"invalid wire type");f.C=m>>>3;f.C!=1&&f.C!=2&&f.C!=15&&Nk(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;f.D==5&&m&240&&Nk(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.W=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.W++]=m;f.W==f.B&&e()}
function e(){if(f.C<15){var m={};m[f.C]=f.G;f.U.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:Nk(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.Z++;l++}a=f.U;f.U=[];return a.length>0?a:null};Ok.prototype.isInputValid=function(){return this.j===null};
Ok.prototype.dg=function(){return this.j};
Ok.prototype.lJ=function(){return!1};
Ok.prototype.parse=function(a){this.j!==null&&tha(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||sha(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=Kba(c.j.slice(0,d*4))}catch(h){sha(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){tha(this,a,h.message)}this.B+=a.length;return b};var bcb={INIT:0,qE:1,BO:2,Yz:3,nD:4,mD:5,STRING:6,zO:7,TW:8,gX:9,hX:10,iX:11,sV:12,tV:13,uV:14,vV:15,XW:16,YW:17,ZW:18,q7:19,AO:20};g.k=Qk.prototype;g.k.isInputValid=function(){return this.G!=3};
g.k.dg=function(){return this.Z};
g.k.done=function(){return this.G===2};
g.k.lJ=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Pk(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.BO:u==="["?f.j=m.nD:Pk(u)||Rk(f,a,r);continue;case m.zO:case m.BO:if(Pk(u))continue;if(f.j===m.zO)h.push(m.TW);else if(u==="}"){e("{}");f.j=d();continue}else h.push(m.Yz);u==='"'?f.j=m.STRING:Rk(f,a,r);continue;case m.TW:case m.Yz:if(Pk(u))continue;u===":"?(f.j===m.Yz&&(h.push(m.Yz),f.B++),f.j=m.qE):u==="}"?(f.B--,e(),f.j=d()):u===","?(f.j===m.Yz&&h.push(m.Yz),f.j=m.zO):Rk(f,a,r);continue;case m.nD:case m.qE:if(Pk(u))continue;
if(f.j===m.nD)if(f.B++,f.j=m.qE,u==="]"){f.B--;if(f.B===0){f.j=m.mD;return}e("[]");f.j=d();continue}else h.push(m.mD);u==='"'?f.j=m.STRING:u==="{"?f.j=m.BO:u==="["?f.j=m.nD:u==="t"?f.j=m.gX:u==="f"?f.j=m.sV:u==="n"?f.j=m.XW:u!=="-"&&("0123456789".indexOf(u)!==-1?f.j=m.AO:Rk(f,a,r));continue;case m.mD:if(u===",")h.push(m.mD),f.j=m.qE,f.B===1&&(q=r);else if(u==="]"){f.B--;if(f.B===0)return;e();f.j=d()}else if(Pk(u))continue;else Rk(f,a,r);continue;case m.STRING:var y=r;a:for(;;){for(;f.W>0;)if(u=a[r++],
f.W===4?f.W=0:f.W++,!u)break a;if(u==='"'&&!f.U){f.j=d();break}if(u==="\\"&&!f.U&&(f.U=!0,u=a[r++],!u))break;if(f.U)if(f.U=!1,u==="u"&&(f.W=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.gX:if(!u)continue;u==="r"?f.j=m.hX:Rk(f,a,r);continue;case m.hX:if(!u)continue;u==="u"?f.j=m.iX:Rk(f,a,r);continue;case m.iX:if(!u)continue;u==="e"?f.j=d():Rk(f,a,r);continue;case m.sV:if(!u)continue;u==="a"?f.j=m.tV:
Rk(f,a,r);continue;case m.tV:if(!u)continue;u==="l"?f.j=m.uV:Rk(f,a,r);continue;case m.uV:if(!u)continue;u==="s"?f.j=m.vV:Rk(f,a,r);continue;case m.vV:if(!u)continue;u==="e"?f.j=d():Rk(f,a,r);continue;case m.XW:if(!u)continue;u==="u"?f.j=m.YW:Rk(f,a,r);continue;case m.YW:if(!u)continue;u==="l"?f.j=m.ZW:Rk(f,a,r);continue;case m.ZW:if(!u)continue;u==="l"?f.j=d():Rk(f,a,r);continue;case m.q7:u==="."?f.j=m.AO:Rk(f,a,r);continue;case m.AO:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j=
d();continue;default:Rk(f,a,r)}}}
function d(){var u=h.pop();return u!=null?u:m.qE}
function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.L.push(u):f.L.push(JSON.parse(u)),q=r)}
for(var f=this,h=f.ra,l=f.Ba,m=bcb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Rk(f,a,r),null;case 2:return b()&&Rk(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if(t==="["){f.G=1;p=r;f.j=m.nD;continue}else Rk(f,a,r)}return null;case 1:return c(),f.B===0&&f.j==m.mD?(f.G=2,f.D=a.substring(r)):f.D=q===-1?f.D+a.substring(p):a.substring(q),f.L.length>0?(t=f.L,f.L=[],t):null}return null};Sk.prototype.isInputValid=function(){return this.G===null};
Sk.prototype.dg=function(){return this.G};
Sk.prototype.lJ=function(){return!1};
Sk.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 Qk({Gna:!0,D8:!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.L||m.length>1)&&b("extra status: "+m);f.L=!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(!Pk(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};Tk.prototype.PQ=function(){return this.j};
Tk.prototype.getStatus=function(){return this.G};
Tk.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.jj(this.j),c=this.j.B,d=this.j.getStatus(),e=g.lj(this.j);a=[];if(g.mj(this.j)instanceof Array){var f=g.mj(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Z=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?Uk(this,7):c==7?Uk(this,8):d||Uk(this,3)),this.B||(this.B=uha(this.j),this.B==null&&Uk(this,5)),this.G>2)Xk(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.lJ())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.L){if(typeof TextDecoder==="undefined")throw Error("TextDecoder is not supported by this browser.");this.L=new TextDecoder}for(l=0;l<h;l++)m+=this.L.decode(a[l],{stream:b==4&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){Uk(this,5);Xk(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.D&&this.D(n)}catch(p){Uk(this,5);Xk(this);break a}}b==4?(e.length!=
0||this.Z?Uk(this,2):Uk(this,4),Xk(this)):Uk(this,1)}}}catch(p){Uk(this,6),Xk(this)}};g.k=vha.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.ac(c,b);(a=this.j[a])&&g.ac(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.xba=function(a){var b=this.B.data;b&&wha(a,b);(b=this.j.data)&&wha(a,b);this.j.data=[]};
g.k.mda=function(){switch(this.C.getStatus()){case 1:Yk(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Yk(this,"error");break;case 8:Yk(this,"close");break;case 2:Yk(this,"end")}};xha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substring(0,a.length-d.name.length);return yha(function(h){var l=h.l0,m=h.getMetadata(),n=Bha(e,!1);m=Cha(e,m,n,f+l.getName());var p=Dha(n,l.B,!0);h=l.j(h.j2);n.send(m,"POST",h);return p},this.D).call(this,d.U(b,c))};Zk.prototype.create=function(a,b){return Mj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Vbb)};
Zk.prototype.ping=function(a,b){return Mj(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Wbb)};var ccb=1,gl=new WeakMap;g.w($k,g.O);$k.prototype.signal=function(){var a=new bl(!1);this.signals.add(a);g.P(this,a);return a};
$k.prototype.xB=function(a){return al(this,a).xB()};
g.w(bl,g.O);g.k=bl.prototype;g.k.SO=function(){var a=this,b=ccb++;cl(function(){Fha(a,b)});
return b};
g.k.detach=function(a){var b=this;cl(function(){var c=b.slots.get(a);c&&c.uY()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.xB=function(){return this.F_};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=Efa();cl(function(){if(c.Ja())d.reject(new Ii("Signal initially disposed"));else if(b&&b.Ja())d.reject(new Ii("Owner initially disposed"));else if(a&&c.TX&&c.LZ)d.resolve(c.F_);else if(c.zC.add(d),Hi(d.promise,function(){c.zC.delete(d)}),b){var e=function(){d.reject(new Ii("Owner asynchronously disposed"))};
Hi(d.promise,function(){var f=gl.get(b);f&&g.ac(f,e)});
Iha(b,e)}});
return d.promise};
g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);cl(function(){for(var b=g.x(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.uY,c();a.slots.clear();b=g.x(a.zC);for(c=b.next();!c.done;c=b.next())c.value.reject(new Ii("Signal asynchronously disposed"));a.zC.clear()})};
var el=[],fl=!1;g.w(hl,g.O);hl.prototype.start=function(){var a=this;if(this.Ja())throw new jl("Cannot start a disposed timer.");if(!this.L){this.D=0;if(this.U){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&&dl(al(d,a.C),a)}a.Ab.aT(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&&dl(al(d,a.C),a)}a.Ab.aT(a)},this.milliseconds);
this.state=1}};
hl.prototype.cancel=function(){if(this.L){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new il);var b;(b=this.Ab.C0)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&dl(al(c,this.G))}}};
hl.prototype.xa=function(){this.clear();var a;(a=this.B)==null||a.reject(new jl);this.state=4;g.O.prototype.xa.call(this)};
hl.prototype.clear=function(){this.U?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.fa.Object.defineProperties(hl.prototype,{L:{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}},
W:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.Cj),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new il("Timer has been cancelled."));case 4:return Promise.reject(new jl("Timer has been disposed."));default:ed(this.state)}}},
aT:{configurable:!0,enumerable:!0,get:function(){if(this.Ja())throw new jl("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new $k(this)),this.C=this.j.signal());return this.C}},
C0:{configurable:!0,enumerable:!0,get:function(){if(this.Ja())throw new jl("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new $k(this)),this.G=this.j.signal());return this.G}}});
g.w(il,sb);g.w(jl,sb);g.w(kl,gk);g.k=kl.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.I(function(b){return g.G(b,a.C.promise,0)})};
g.k.uF=function(a){return Mha(this,this.logger.GG("c",a===void 0?1:a,this.tx.uF(Gj().j,null)),new Ej(10,"JVZ:Timeout"))};
g.k.prefetch=function(){this.state===1&&(this.fG=this.uF())};
g.k.start=function(){if(this.state===1){this.state=2;var a=new qj(this.logger,"r");this.ready().finally(function(){return void a.done()});
Oha(this)}};
g.k.ev=function(a){Pha(this,a);return cha(this,Lha(a),!1)};
g.k.fv=function(a){Pha(this,a);return cha(this,Lha(a),!0)};var Tha={NONE:0,tia:1},zia={R4:0,Ala:1,zla:2,Bla:3},Vl={C4:"a",oia:"d",VIDEO:"v"};ml.prototype.isVisible=function(){return this.Vx?this.Ae>=.3:this.Ae>=.5};var wl={Wha:0,Kia:1},xia={NONE:0,xja:1,Ria:2};nl.prototype.getValue=function(){return this.B};
g.w(ol,nl);ol.prototype.C=function(a){this.B===null&&g.Mg(this.D,a)&&(this.B=a)};
g.w(pl,nl);pl.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)};
g.w(ql,nl);ql.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};rl.prototype.disable=function(){this.B=!1};
rl.prototype.enable=function(){this.B=!0};
rl.prototype.isEnabled=function(){return this.B};
rl.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Sm=document,Al=window;var Cja=!g.Gp&&!Pb();xl.prototype.now=function(){return 0};
xl.prototype.B=function(){return 0};
xl.prototype.C=function(){return 0};
xl.prototype.j=function(){return 0};g.w(zl,xl);zl.prototype.now=function(){return yl()&&Al.performance.now?Al.performance.now():xl.prototype.now.call(this)};
zl.prototype.B=function(){return yl()&&Al.performance.memory?Al.performance.memory.totalJSHeapSize||0:xl.prototype.B.call(this)};
zl.prototype.C=function(){return yl()&&Al.performance.memory?Al.performance.memory.usedJSHeapSize||0:xl.prototype.C.call(this)};
zl.prototype.j=function(){return yl()&&Al.performance.memory?Al.performance.memory.jsHeapSizeLimit||0:xl.prototype.j.call(this)};var Wha=yi(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Na.addEventListener("test",null,b)}catch(c){}return a});Xha.prototype.isVisible=function(){return Dl(Sm)===1};var Zha={Kga:"allow-forms",Lga:"allow-modals",Mga:"allow-orientation-lock",Nga:"allow-pointer-lock",Oga:"allow-popups",Pga:"allow-popups-to-escape-sandbox",Qga:"allow-presentation",Rga:"allow-same-origin",Sga:"allow-scripts",Tga:"allow-top-navigation",Uga:"allow-top-navigation-by-user-activation"},cia=yi(function(){return $ha()});var gia=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Il.prototype.qe=function(a,b,c){a=a+"//"+b+c;var d=kia(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=jia(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};Ql.prototype.setInterval=function(a,b){return Al.setInterval(a,b)};
Ql.prototype.clearInterval=function(a){Al.clearInterval(a)};
Ql.prototype.setTimeout=function(a,b){return Al.setTimeout(a,b)};
Ql.prototype.clearTimeout=function(a){Al.clearTimeout(a)};g.w(Sl,Qe);Sl.prototype.j=Lda([0,sbb,vbb,-2,ybb]);var yia={gla:1,C7:2,vka:3};Aia.prototype.zT=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Lc;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 G1=null;var Yl=g.Na.performance,dcb=!!(Yl&&Yl.mark&&Yl.measure&&Yl.clearMarks),Wl=yi(function(){var a;if(a=dcb){var b;if(G1===null){G1="";try{a="";try{a=g.Na.top.location.hash}catch(c){a=g.Na.location.hash}a&&(G1=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=G1;a=!!b.indexOf&&b.indexOf("1337")>=0}return a});
Xl.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(Wl()&&g.oc(this.events,Gia),this.events.length=0)};
Xl.prototype.start=function(a,b){if(!this.j)return null;var c=Eia()||Dia();a=new Fia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";Yl&&Wl()&&Yl.mark(b);return a};
Xl.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=Eia()||Dia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";Yl&&Wl()&&Yl.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};Hia.prototype.RR=function(a,b,c,d,e){e=e||this.FY;try{var f=new Il;f.j.push(1);f.B[1]=Jl("context",a);b.error&&b.meta&&b.id||(b=new bm(cm(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Jl("msg",h)}var l=b.meta||{};if(this.OO)try{this.OO(l)}catch(t){}if(d)try{d(l)}catch(t){}d=[l];f.j.push(3);f.B[3]=d;var m=iia();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Jl("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(Vi);var r=Ti(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5);
f.B[5]=n;Bia(this.j,e,f,c)}catch(t){try{Bia(this.j,e,{context:"ecmserr",rctx:a,msg:cm(t),url:m&&m.j.url},c)}catch(u){}}return this.yU};
g.w(bm,Cia);var $l,am,Zl=new Xl;$l=new function(){var a="https:";Al&&Al.location&&Al.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01};
am=new Hia;Al&&Al.document&&(Al.document.readyState=="complete"?Jia():Zl.j&&Cl(Al,"load",function(){Jia()}));var Mia=Date.now(),jm=-1,hm=-1,dka,km=-1,im=!1;g.k=lm.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new lm(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof lm?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};pm.prototype.Jb=function(){return this.U};var ecb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Nn={w7:"start",W4:"firstquartile",m7:"midpoint",x7:"thirdquartile",COMPLETE:"complete",ERROR:"error",l7:"metric",PAUSE:"pause",s7:"resume",t7:"skip",B7:"viewable_impression",o7:"mute",z7:"unmute",X4:"fullscreen",U4:"exitfullscreen",K4:"bufferstart",J4:"bufferfinish",Y4:"fully_viewable_audible_half_duration_impression",k7:"measurable_impression",A4:"abandon",T4:"engagedview",c5:"impression",O4:"creativeview",i7:"loaded",
kla:"progress",CLOSE:"close",Sha:"collapse",Qka:"overlay_resize",Rka:"overlay_unmeasurable_impression",Ska:"overlay_unviewable_impression",Uka:"overlay_viewable_immediate_impression",Tka:"overlay_viewable_end_of_session_impression",P4:"custom_metric_viewable",D4:"audio_audible",F4:"audio_measurable",E4:"audio_impression"},pla="start firstquartile midpoint thirdquartile resume loaded".split(" "),qla=["start","firstquartile","midpoint","thirdquartile"],fka=["abandon"],ho={UNKNOWN:-1,w7:0,W4:1,m7:2,
x7:3,COMPLETE:4,l7:5,PAUSE:6,s7:7,t7:8,B7:9,o7:10,z7:11,X4:12,U4:13,Y4:14,k7:15,A4:16,T4:17,c5:18,O4:19,i7:20,P4:21,K4:22,J4:23,E4:27,F4:28,D4:29};var Pia={Bga:"addEventListener",Tia:"getMaxSize",Uia:"getScreenSize",Via:"getState",Wia:"getVersion",ula:"removeEventListener",Tja:"isViewable"};g.k=g.ym.prototype;g.k.clone=function(){return new g.ym(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Ag?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.Cg(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 Tia={};bja.prototype.update=function(a){a&&a.document&&(this.U=qm(!1,a,this.isMobileDevice),this.j=qm(!0,a,this.isMobileDevice),dja(this,a),cja(this,a))};Um.prototype.cancel=function(){Rl().clearTimeout(this.j);this.j=null};
Um.prototype.schedule=function(){var a=this,b=Rl(),c=Ul().j.j;this.j=b.setTimeout(Tl(c,em(143,function(){a.B++;a.C.sample()})),Nia())};g.k=Vm.prototype;g.k.JD=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.LA=function(){return this.j.Fa};
g.k.bG=function(){return this.j.qa};
g.k.hj=function(a,b){if(!this.qa||(b===void 0?0:b))this.qa=!0,this.Fa=a,this.W=0,this.j!=this||Xm(this)};
g.k.getName=function(){return this.j.Pa};
g.k.ou=function(){return this.j.dZ()};
g.k.dZ=function(){return{}};
g.k.hs=function(){return this.j.W};
g.k.lW=function(){var a=Rm();a.j=qm(!0,this.C,a.isMobileDevice)};
g.k.mW=function(){cja(Rm(),this.C)};
g.k.sZ=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.L};
g.k.YA=function(a){var b=this.j;this.j=a.hs()>=this.W?a:this;b!==this.j?(this.L=this.j.L,Xm(this)):this.L!==this.j.L&&(this.L=this.j.L,Xm(this))};
g.k.Cu=function(a){if(a.B===this.j){var b=this.D,c=this.Z;b=!(a&&(c===void 0||!c||b.volume==a.volume)&&b.C==a.C&&nm(b.j,a.j));this.D=a;b&&gja(this)}};
g.k.Vq=function(){return this.Z};
g.k.dispose=function(){this.Ea=!0};
g.k.Ja=function(){return this.Ea};g.k=Ym.prototype;g.k.observe=function(){return!0};
g.k.unobserve=function(){};
g.k.cw=function(a){this.G=a};
g.k.dispose=function(){if(!this.Ja()){var a=this.B;g.ac(a.G,this);a.Z&&this.Vq()&&fja(a);this.unobserve();this.Ba=!0}};
g.k.Ja=function(){return this.Ba};
g.k.ou=function(){return this.B.ou()};
g.k.hs=function(){return this.B.hs()};
g.k.LA=function(){return this.B.LA()};
g.k.bG=function(){return this.B.bG()};
g.k.YA=function(){};
g.k.Cu=function(){this.Qt()};
g.k.Vq=function(){return this.Ea};g.k=Zm.prototype;g.k.hs=function(){return this.j.hs()};
g.k.LA=function(){return this.j.LA()};
g.k.bG=function(){return this.j.bG()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.eJ(a,b,c),Wm(this.j,d));return d};
g.k.nW=function(){return this.KD()};
g.k.KD=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Wm(this.j,this),this.D=a,!0):!1};
g.k.YA=function(a){a.hs()==0&&this.D(a.LA(),this)};
g.k.Cu=function(){};
g.k.Vq=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.Ja=function(){return this.G};
g.k.ou=function(){return{}};$m.prototype.add=function(a,b,c){++this.C;a=new ija(a,b,c);this.j.push(new ija(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};nja.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=bn(this.j);b.length>0&&(a+="?"+b);return a};cn.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 sja=[1,.75,.5,.3,0];dn.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)}};kn.prototype.update=function(a,b,c,d){this.U=this.U!=-1?Math.min(this.U,b.Ae):b.Ae;this.ra=Math.max(this.ra,b.Ae);this.Ba=this.Ba!=-1?Math.min(this.Ba,b.rl):b.rl;this.Fa=Math.max(this.Fa,b.rl);this.rb.update(b.rl,c.rl,b.j,a,d);this.La+=a;b.Ae===0&&(this.Pa+=a);this.B.update(b.Ae,c.Ae,b.j,a,d);c=d||c.Vx!=b.Vx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ua.update(c,a,b)};
kn.prototype.Cs=function(){return this.Ua.C>=this.ib};if(Sm&&Sm.URL){var fcb=Sm.URL,gcb;if(gcb=!!fcb){var hcb;a:{if(fcb){var icb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var H1=icb.exec(decodeURIComponent(fcb));if(H1){hcb=H1[1]&&H1[1].length>1?H1[1].substring(1):"true";break a}}catch(a){}}hcb=""}gcb=hcb.length>0}am.yU=!gcb};var jcb=new lm(0,0,0,0);var Aja=new lm(0,0,0,0);g.w(pn,g.O);g.k=pn.prototype;
g.k.xa=function(){if(this.Hk.j){if(this.lx.dS){var a=this.Hk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.lx.dS,Bl());this.lx.dS=null}this.lx.cS&&(a=this.Hk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.lx.cS,Bl()),this.lx.cS=null)}this.oI&&this.oI.dispose();this.Ce&&this.Ce.dispose();delete this.GL;delete this.SR;delete this.R3;delete this.Hk.Wu;delete this.Hk.j;delete this.lx;delete this.oI;delete this.Ce;delete this.Lc;g.O.prototype.xa.call(this)};
g.k.wu=function(){return this.Ce?this.Ce.j:this.position};
g.k.zT=function(a){Ul().zT(a)};
g.k.Vq=function(){return!1};
g.k.AK=function(){return new kn};
g.k.Oj=function(){return this.GL};
g.k.hZ=function(a){return Eja(this,a,1E4)};
g.k.Ta=function(a,b,c,d,e,f,h){this.Hu||(this.lF&&(a=this.aP(a,c,e,h),d=d&&this.Ci.Ae>=(this.Vx()?.3:.5),this.eV(f,a,d),this.Eq=b,a.Ae>0&&-1===this.t3&&(this.t3=b),this.z3==-1&&this.Cs()&&(this.z3=b),this.PR==-2&&(this.PR=nn(this.wu())?a.Ae:-1),this.Ci=a),this.SR(this))};
g.k.eV=function(a,b,c){this.Oj().update(a,b,this.Ci,c)};
g.k.CQ=function(){return new ml};
g.k.aP=function(a,b,c,d){c=this.CQ();c.j=b;b=Rl().B;b=Dl(Sm)===0?-1:b.isVisible()?0:1;c.B=b;c.Ae=this.wP(a);c.Vx=this.Vx();c.rl=d;return c};
g.k.wP=function(a){return this.opacity===0&&ul(this.Lc,"opac")===1?0:a};
g.k.Vx=function(){return!1};
g.k.pN=function(){return this.V$||this.Y$};
g.k.Cy=function(){gm()};
g.k.OB=function(){gm()};
g.k.kq=function(){return 0};
g.k.Cs=function(){return this.GL.Cs()};
g.k.vZ=function(){var a=this.lF;a=(this.hasCompleted||this.Ja())&&!a;var b=Ul().B!==2||this.Rfa;return this.Hu||b&&a?2:this.Cs()?4:3};
g.k.oK=function(){return 0};g.rn.prototype.next=function(){return g.I1};
g.I1={done:!0,value:void 0};g.rn.prototype.Lm=function(){return this};g.w(Kja,ml);var J1=Mja([void 0,1,2,3,4,8,16]),K1=Mja([void 0,4,8,16]),kcb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:vn("p0",K1),p1:vn("p1",K1),p2:vn("p2",K1),p3:vn("p3",K1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:un("mtos1",[0,2,4],!1,K1),mtos2:un("mtos2",[0,2,4],!1,K1),mtos3:un("mtos3",[0,2,4],!1,K1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:vn("a0",K1),a1:vn("a1",K1),a2:vn("a2",K1),a3:vn("a3",K1),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:vn("c0",K1),c1:vn("c1",K1),c2:vn("c2",K1),c3:vn("c3",K1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:vn("qmtos",J1),qnc:vn("qnc",J1),qmv:vn("qmv",J1),qnv:vn("qnv",J1),
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:vn("ss0",K1),ss1:vn("ss1",K1),ss2:vn("ss2",K1),ss3:vn("ss3",K1),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"},lcb=Object.assign({},kcb,{avid:wi("audio"),avas:"avas",vs:"vs"}),mcb={atos:"atos",avt:un("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"};zn.prototype.getValue=function(){return this.B};
zn.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.w(An,kn);
An.prototype.update=function(a,b,c,d){if(!b.paused){kn.prototype.update.call(this,a,b,c,d);var e=tn(b)&&tn(c),f=(d?Math.min(b.Ae,c.Ae):c.Ae)>=.5;Pm(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.L=Math.max(this.L,b.volume));f&&(this.Ea+=a,this.Z+=e?a:0);this.j.update(b.Ae,c.Ae,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.tb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ma.update(a,b.isVisible());this.eb.update(a,b.Ae>=1);this.Za.update(a,
tn(b))}};Sja.prototype.B=function(a){this.C||(this.j(a)?(a=dla(this.Z,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.w(Cn,Sja);Cn.prototype.j=function(){return!0};
Cn.prototype.L=function(){return!1};
Cn.prototype.getId=function(){var a=this,b=Ng(Nn,function(c){return c==a.D});
return ho[b].toString()};
Cn.prototype.toString=function(){var a="";this.L()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.w(Dn,Cn);Dn.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.U.push(b);Cn.prototype.B.call(this,a)};g.w(En,Tja);En.prototype.B=function(){return null};
En.prototype.C=function(){return[]};g.w(Fn,Ym);g.k=Fn.prototype;g.k.cP=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=Zia(a.getBoundingClientRect())}catch(n){c=new lm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Wia(a,b),h=f.x,l=f.y;var m=new lm(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=jcb.clone()}this.C=m;this.j=hja(this,this.C)}};
g.k.UX=function(){this.L=this.B.D.j};
g.k.q_=function(a){var b=ul(this.Lc,"od")==1;return zja(a,this.L,this.element,b)};
g.k.VX=function(){this.timestamp=gm()};
g.k.Qt=function(){this.VX();this.cP();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Cg(a.videoWidth,a.videoHeight);a=this.j;var c=mm(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.UX();
a=this.j;c=this.L;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new lm(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 lm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new lm(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.q_(c))c=new lm(0,0,0,0);else{d=Rm().D;b=new lm(0,d.height,d.width,0);var f;d=on(c,(f=this.G)!=null?f:this.j);e=on(c,Rm().j);b=on(c,b)}f=c.top>=c.bottom||
c.left>=c.right?new lm(0,0,0,0):om(c,-this.j.left,-this.j.top);Tm()||(e=d=0);this.Z=new pm(a,this.element,this.j,f,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var ncb=new lm(0,0,0,0);g.w(Gn,Fn);g.k=Gn.prototype;g.k.observe=function(){this.D();return!0};
g.k.Cu=function(){Fn.prototype.Qt.call(this)};
g.k.VX=function(){};
g.k.cP=function(){};
g.k.Qt=function(){this.D();Fn.prototype.Qt.call(this)};
g.k.YA=function(a){a=a.isActive();a!==this.W&&(a?this.D():(Rm().j=new lm(0,0,0,0),this.j=new lm(0,0,0,0),this.L=new lm(0,0,0,0),this.timestamp=-1));this.W=a};var L1={},cka=(L1.firstquartile=0,L1.midpoint=1,L1.thirdquartile=2,L1.complete=3,L1);g.w(In,pn);g.k=In.prototype;g.k.Vq=function(){return!0};
g.k.Vo=function(){return this.Vk==2};
g.k.hZ=function(a){return Eja(this,a,Math.max(1E4,this.C/3))};
g.k.Ta=function(a,b,c,d,e,f,h){var l=this,m=this.U(this)||{};g.Tg(m,e);this.C=m.duration||this.C;this.Z=m.isVpaid||this.Z;this.Pa=m.isYouTube||this.Pa;Rl();this.rb=!1;e=Vja(this,b);Uja(this)===1&&(f=e);pn.prototype.Ta.call(this,a,b,c,d,m,f,h);this.Fs&&this.Fs.C&&g.oc(this.L,function(n){n.B(l)})};
g.k.eV=function(a,b,c){pn.prototype.eV.call(this,a,b,c);Ln(this).update(a,b,this.Ci,c);this.ib=tn(this.Ci)&&tn(b);this.Fa==-1&&this.eb&&(this.Fa=this.Oj().C.j);this.Tg.C=0;a=this.Cs();b.isVisible()&&yn(this.Tg,"vs");a&&yn(this.Tg,"vw");Pm(b.volume)&&yn(this.Tg,"am");tn(b)?yn(this.Tg,"a"):yn(this.Tg,"mut");this.jB&&yn(this.Tg,"f");b.B!=-1&&(yn(this.Tg,"bm"),b.B==1&&(yn(this.Tg,"b"),tn(b)&&yn(this.Tg,"umutb")));tn(b)&&b.isVisible()&&yn(this.Tg,"avs");this.ib&&a&&yn(this.Tg,"avw");b.Ae>0&&yn(this.Tg,
"pv");Mn(this,this.Oj().C.j,!0)&&yn(this.Tg,"gdr");hn(this.Oj().B,1)>=2E3&&yn(this.Tg,"pmx");this.rb&&yn(this.Tg,"tvoff")};
g.k.AK=function(){return new An};
g.k.Oj=function(){return this.GL};
g.k.CQ=function(){return new Kja};
g.k.aP=function(a,b,c,d){a=pn.prototype.aP.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.jB;a.paused=this.Vo();a.volume=c.volume;Pm(a.volume)||(this.Kb++,b=this.Ci,Pm(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 Rm(),this.jB?1:pn.prototype.wP.call(this,a)};
g.k.kq=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.vZ=function(){return this.Hu?2:Xja(this)?5:this.Cs()?4:3};
g.k.oK=function(){return this.tb?this.Oj().G.C>=2E3?4:3:2};
g.k.cw=function(a){this.Ce&&this.Ce.cw(a)};var ocb=g.Za();nka.prototype.reset=function(){this.j=[];this.B=[]};
var Sn=Pl(nka);g.w(Vn,Zm);g.k=Vn.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.ou=function(){return(this.B?this.B:this.j).ou()};
g.k.hs=function(){return(this.B?this.B:this.j).hs()};
g.k.init=function(a){var b=!1;(0,g.oc)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,Wm(this.j,this));return b};
g.k.dispose=function(){(0,g.oc)(this.C,function(a){a.dispose()});
Zm.prototype.dispose.call(this)};
g.k.nW=function(){return Qm(this.C,function(a){return a.JD()})};
g.k.KD=function(){return Qm(this.C,function(a){return a.JD()})};
g.k.eJ=function(a,b,c){return new Fn(a,this.j,b,c)};
g.k.Cu=function(a){this.B=a.B};var wka={threshold:[0,.3,.5,.75,1]};g.w(Wn,Fn);g.k=Wn.prototype;g.k.observe=function(){var a=this;this.ra||(this.ra=gm());if(Lia(298,function(){return xka(a)}))return!0;
this.B.hj("msf");return!1};
g.k.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.W?(this.W.unobserve(this.element),this.W=null):this.U&&(this.U.disconnect(),this.U=null)}catch(a){}};
g.k.Qt=function(){var a=Xn(this);a.length>0&&Yn(this,a);Fn.prototype.Qt.call(this)};
g.k.cP=function(){};
g.k.q_=function(){return!1};
g.k.UX=function(){};
g.k.ou=function(){var a={};return Object.assign(this.B.ou(),(a.niot_obs=this.ra,a.niot_cbk=this.qa,a))};
g.k.getName=function(){return"nio"};g.w(Zn,Zm);Zn.prototype.getName=function(){return"nio"};
Zn.prototype.KD=function(){return!Rm().B&&this.j.j.C.IntersectionObserver!=null};
Zn.prototype.eJ=function(a,b,c){return new Wn(a,this.j,b,c)};g.w($n,Vm);$n.prototype.sZ=function(){return Rm().j};
$n.prototype.JD=function(){var a=zka();this.W!==a&&(this.j!=this&&a>this.j.W&&(this.j=this,Xm(this)),this.W=a);return a==2};ao.prototype.sample=function(){eo(this,Tn(),!1)};
ao.prototype.D=function(){var a=Tm(),b=gm();a?(im||(jm=b,g.oc(Sn.j,function(c){var d=c.Oj();d.Va=Bn(d,b,c.Vk!=1)})),im=!0):(this.U=Eka(this,b),im=!1,dka=b,g.oc(Sn.j,function(c){c.lF&&(c.Oj().W=b)}));
eo(this,Tn(),!a)};
var bo=Pl(ao);var Gka=null,Bo="",Ao=!1;var Jka=Ika().Yp,go=Ika().aq;var Mka={Lia:"visible",qha:"audible",gma:"time",hma:"timetype"},Nka={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)}};
Lka.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.w(ko,Cn);ko.prototype.getId=function(){return this.U};
ko.prototype.L=function(){return!0};
ko.prototype.j=function(a){var b=a.Oj(),c=a.getDuration();return Qm(this.W,function(d){if(d.j!=void 0)var e=Pka(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.w(lo,Oja);lo.prototype.j=function(a){var b=new Nja;b.j=xn(a,kcb);b.B=xn(a,mcb);return b};g.w(mo,Cn);mo.prototype.j=function(a){return Xja(a)};g.w(no,Tja);g.w(oo,Cn);oo.prototype.j=function(a){return a.Oj().Cs()};g.w(po,Dn);po.prototype.j=function(a){var b=g.Zb(this.U,ul(Ul().Lc,"ovms"));return!a.Hu&&(a.Vk!=0||b)};g.w(qo,no);qo.prototype.B=function(){return new po(this.j)};
qo.prototype.C=function(){return[new oo("viewable_impression",this.j),new mo(this.j)]};g.w(ro,Gn);ro.prototype.D=function(){var a=g.Pa("ima.admob.getViewability"),b=ul(this.Lc,"queryid");typeof a==="function"&&b&&a(b)};
ro.prototype.getName=function(){return"gsv"};g.w(so,Zm);so.prototype.getName=function(){return"gsv"};
so.prototype.KD=function(){var a=Rm();Ul();return a.B&&!1};
so.prototype.eJ=function(a,b,c){return new ro(this.j,b,c)};g.w(to,Gn);to.prototype.D=function(){var a=this,b=g.Pa("ima.bridge.getNativeViewability"),c=ul(this.Lc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.Og(d)&&a.U++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=$ia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?ncb.clone():$ia(e);a.timestamp=d.opt_nativeTime||-1;Rm().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})};
to.prototype.getName=function(){return"nis"};g.w(uo,Zm);uo.prototype.getName=function(){return"nis"};
uo.prototype.KD=function(){var a=Rm();Ul();return a.B&&!1};
uo.prototype.eJ=function(a,b,c){return new to(this.j,b,c)};g.w(vo,Vm);g.k=vo.prototype;g.k.JD=function(){return this.B.Zo!=null};
g.k.dZ=function(){var a={};this.Ma&&(a.mraid=this.Ma);this.Ba&&(a.mlc=1);a.mtop=this.B.ofa;this.U&&(a.mse=this.U);this.La&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.Kv=function(a){var b=g.Da.apply(1,arguments);try{return this.B.Zo[a].apply(this.B.Zo,b)}catch(c){fm(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.bG();this.isInitialized=!0;if(this.B.compatibility===2)return this.U="ng",this.hj("w"),!1;if(this.B.compatibility===1)return this.U="mm",this.hj("w"),!1;Rm().W=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?Tka(this):mn(this.C,"load",function(){Rl().setTimeout(em(292,function(){return Tka(a)}),100)},292);
return!0};
g.k.lW=function(){var a=Rm(),b=Yka(this,"getMaxSize");a.j=new lm(0,b.width,b.height,0)};
g.k.mW=function(){Rm().D=Yka(this,"getScreenSize")};
g.k.dispose=function(){Vka(this);Vm.prototype.dispose.call(this)};var via=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=xo.prototype;g.k.UJ=function(a){qn(a,!1);rka(a)};
g.k.JK=function(){};
g.k.GH=function(a,b,c,d){var e=this;a=new In(Al,a,c?b:-1,7,this.HP(),this.nY());a.sj=d;Rha(a.Lc);tl(a.Lc,"queryid",a.sj);a.zT("");Hja(a,function(){return e.CZ.apply(e,g.z(g.Da.apply(0,arguments)))},function(){return e.w$.apply(e,g.z(g.Da.apply(0,arguments)))});
(d=Pl(Un).j)&&Dja(a,d);this.C&&(a.cw(this.C),this.C=null);a.Hk.Wu&&Pl(Aka);return a};
g.k.YA=function(a){switch(a.hs()){case 0:if(a=Pl(Un).j)a=a.j,g.ac(a.G,this),a.Z&&this.Vq()&&fja(a);zo();break;case 2:co()}};
g.k.Cu=function(){};
g.k.Vq=function(){return!1};
g.k.w$=function(a,b){a.Hu=!0;switch(a.kq()){case 1:ela(a,b);break;case 2:this.IT(a)}};
g.k.F$=function(a){var b=a.U(a);b&&(b=b.volume,a.tb=Pm(b)&&b>0);$ja(a,0);return On(a,"start",Tm())};
g.k.cD=function(a,b,c){eo(bo,[a],!Tm());return this.lq(a,b,c)};
g.k.lq=function(a,b,c){return On(a,c,Tm())};
g.k.A$=function(a){return Fo(a,"firstquartile",1)};
g.k.C$=function(a){a.eb=!0;return Fo(a,"midpoint",2)};
g.k.G$=function(a){return Fo(a,"thirdquartile",3)};
g.k.x$=function(a){var b=Fo(a,"complete",4);Jn(a);return b};
g.k.y$=function(a){a.Vk=3;return On(a,"error",Tm())};
g.k.n2=function(a,b,c){b=Tm();if(a.Vo()&&!b){var d=a.Oj(),e=gm();d.W=e}eo(bo,[a],!b);a.Vo()&&(a.Vk=1);return On(a,c,b)};
g.k.E$=function(a,b){b=this.cD(a,b||{},"skip");Jn(a);return b};
g.k.B$=function(a,b){qn(a,!0);return this.cD(a,b||{},"fullscreen")};
g.k.z$=function(a,b){qn(a,!1);return this.cD(a,b||{},"exitfullscreen")};
g.k.oT=function(a,b,c){b=a.Oj();var d=gm();b.Va=Bn(b,d,a.Vk!=1);eo(bo,[a],!Tm());a.Vk==1&&(a.Vk=2);return On(a,c,Tm())};
g.k.D$=function(a){eo(bo,[a],!Tm());return a.B()};
g.k.ZQ=function(a){eo(bo,[a],!Tm());this.b2(a);Jn(a);return a.B()};
g.k.CZ=function(){};
g.k.IT=function(){};
g.k.b2=function(){};
g.k.oW=function(){};
g.k.IP=function(){};
g.k.nY=function(){this.j||(this.j=this.IP());return this.j==null?new En:new qo(this.j)};
g.k.HP=function(){return new lo};g.w(Go,Cn);Go.prototype.j=function(a){return a.oK()==4};g.w(Ho,Dn);Ho.prototype.j=function(a){a=a.oK();return a==3||a==4};g.w(Io,no);Io.prototype.B=function(){return new Ho(this.j)};
Io.prototype.C=function(){return[new Go(this.j)]};g.w(Jo,Oja);Jo.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 Nja;b.j=xn(a,lcb);b.B=xn(a,mcb);return b};ila.prototype.B=function(){return g.Pa(this.j)};g.w(Ko,xo);g.k=Ko.prototype;g.k.JK=function(a,b){var c=this,d=Pl(Un);if(d.j!=null)switch(d.j.getName()){case "nis":var e=mla(this,a,b);break;case "gsv":e=lla(this,a,b);break;case "exc":e=nla(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=gla(this,a,b.opt_adElement,b.opt_osdId)));e&&e.kq()==1&&(e.U==g.xi&&(e.U=function(f){return c.oW(f)}),kla(this,e,b));
return e};
g.k.oW=function(a){a.B=0;a.Ea=0;if(a.D=="h"||a.D=="n"){Ul();a.Za&&(Ul(),Do(this)!="h"&&Do(this));var b=g.Pa("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.sj)}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.sj)}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.sj)}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.Og(c)?a.B|=32:c.errorCode!=null&&(a.Ea=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.W=0;for(var d in ecb)b[d]==null&&(a.W|=ecb[d]);hla(b,"currentTime");hla(b,"duration");Pm(c.volume)&&Pm()&&(c.volume*=NaN);return c};
g.k.IP=function(){Ul();Do(this)!="h"&&Do(this);var a=ola(this);return a!=null?new ila(a):null};
g.k.IT=function(a){!a.j&&a.Hu&&Eo(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.b2=function(a){a.T2&&(a.Cs()?Eo(this,a,"overlay_viewable_end_of_session_impression"):Eo(this,a,"overlay_unviewable_impression"),a.T2=!1)};
g.k.CZ=function(){};
g.k.GH=function(a,b,c,d){if(wia()){var e=ul(Ul().Lc,"mm"),f={};(e=(f[Vl.C4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[Vl.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&sla(this,e);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&fm(1044,Error())}a=xo.prototype.GH.call(this,a,b,c,d);this.G&&(b=this.L,a.G==null&&(a.G=new Ija),b.j[a.sj]=a.G,a.G.G=ocb);return a};
g.k.UJ=function(a){a&&a.kq()==1&&this.G&&delete this.L.j[a.sj];return xo.prototype.UJ.call(this,a)};
g.k.nY=function(){this.j||(this.j=this.IP());return this.j==null?new En:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Io(this.j):new qo(this.j)};
g.k.HP=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Jo:new lo};
g.k.cw=function(a,b,c,d,e){b=new lm(c,b+d,c+e,b);(a=Rn(Sn,a))?a.cw(b):this.C=b};
var pcb=dm(193,ula,void 0,fla);g.Oa("Goog_AdSense_Lidar_sendVastEvent",pcb);var qcb=em(194,function(a,b){b=b===void 0?{}:b;a=rla(Pl(Ko),a,b);return tla(a)});
g.Oa("Goog_AdSense_Lidar_getViewability",qcb);var rcb=dm(195,function(){return qia()});
g.Oa("Goog_AdSense_Lidar_getUrlSignalsArray",rcb);var scb=em(196,function(){return JSON.stringify(qia())});
g.Oa("Goog_AdSense_Lidar_getUrlSignalsList",scb);var wla=pa(["//tpc.googlesyndication.com/sodar/",""]);g.w(To,g.O);To.prototype.FP=function(a){this.wpc.c(a)};
To.prototype.ev=function(a){return this.wpc.m(Ala(a))};
To.prototype.fv=function(a){return this.wpc.mws(Ala(a))};
g.w(Lo,g.O);Lo.prototype.snapshot=function(a){return this.Qg.s(Object.assign({},a.Jj&&{c:a.Jj},a.xU&&{s:a.xU},a.AU!==void 0&&{p:a.AU}))};
Lo.prototype.yM=function(a){this.Qg.e(a)};
Lo.prototype.pU=function(){return this.Qg.l()};var vna=(new Date).getTime();var Dla="://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(" "),Ela=/\bocr\b/;var Gla=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Tla=0,Sla=0,Ula=0;var bp;g.Vo=null;g.Xo=!1;g.cp=1;bp=Symbol("SIGNAL");g.dp={version:0,z_:0,Um:!1,pg:void 0,Xy:void 0,Gn:void 0,UL:0,nj:void 0,Su:void 0,WE:!1,yP:!1,Q1:function(){return!1},
R1:function(){},
zP:function(){},
Sna:function(){}};var tcb=Symbol("UNSET"),ucb=Symbol("COMPUTING"),vcb=Symbol("ERRORED");Object.assign({},g.dp,{value:tcb,Um:!0,error:null,XP:Hla,Q1:function(a){return a.value===tcb||a.value===ucb},
R1:function(a){if(a.value===ucb)throw Error("Detected cycle in computations.");var b=a.value;a.value=ucb;var c=g.Kla(a);try{var d=a.Qna()}catch(e){d=vcb,a.error=e}finally{g.Lla(a,c)}b!==tcb&&b!==vcb&&d!==vcb&&a.XP(b,d)?a.value=b:(a.value=d,a.version++)}});var Ola;g.Qla=null;Ola=Object.assign({},g.dp,{XP:Hla,value:void 0});Object.assign({},g.dp,{yP:!0,WE:!1,zP:function(a){a.schedule!==null&&a.schedule(a.TM)},
cR:!1,Mna:function(){}});g.ep(!0);g.M1=g.ep(!1);g.wcb={P8:!0,Q8:!0,T8:!1,baa:!1,R7:!1,lY:!1,Wna:Wab};g.fp=Object.assign({},{attributes:{},handleError:function(a){throw a;}},g.wcb);var Vla=Symbol("updater");g.w(ip,g.mi);ip.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Wo.Dk(this.G);delete ip.instance};
ip.prototype.Ah=function(){return this.j};
ip.prototype.xe=function(){var a=this;this.G=this.Wo.aj(function(){var b;return g.I(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ga(3):g.G(c,hp(a),3):g.G(c,hp(a),3);a.xe();g.va(c)})},3E4)};kp.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)};
kp.prototype.get=function(a){return!!this.data[a]};var mp;g.bb(g.pp,g.O);g.k=g.pp.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Zla(this),b=$la(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.fi(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(wfa(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=Zla(this),b=$la(this);a&&!b&&this.B.mozRequestAnimationFrame?ji(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.j6=function(){this.D&&this.j&&ji(this.j);this.j=null;this.L.call(this.G,g.Za())};
g.k.xa=function(){this.stop();g.pp.Wf.xa.call(this)};g.bb(g.qp,g.O);g.k=g.qp.prototype;g.k.LD=0;g.k.xa=function(){g.qp.Wf.xa.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.LD=g.Ki(this.C,a!==void 0?a:this.lj)};
g.k.stop=function(){this.isActive()&&g.Na.clearTimeout(this.LD);this.LD=0};
g.k.isActive=function(){return this.LD!=0};
g.k.pW=function(){this.LD=0;this.j&&this.j.call(this.B)};g.up.prototype[Symbol.iterator]=function(){return this};
g.up.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.Dp,g.mi);g.k=g.Dp.prototype;g.k.isPlaying=function(){return this.j==1};
g.k.isPaused=function(){return this.j==-1};
g.k.cM=function(){this.Co("begin")};
g.k.Ls=function(){this.Co("end")};
g.k.onFinish=function(){this.Co("finish")};
g.k.onStop=function(){this.Co("stop")};
g.k.Co=function(a){this.dispatchEvent(a)};var xcb=yi(function(){var a=g.mh("DIV"),b=g.ih?"-webkit":Cm?"-moz":null,c="transition:opacity 1s linear;";b&&(c+=b+"-transition:opacity 1s linear;");b=Fea({style:c});if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("");a.innerHTML=g.Yf(b);return g.Dm(a.firstChild,"transition")!=""});g.bb(Ep,g.Dp);g.k=Ep.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.cM();this.Co("play");this.startTime=g.Za();this.j=1;if(xcb())return g.Bm(this.B,this.L),this.C=g.Ki(this.Rda,void 0,this),!0;this.lO(!1);return!1};
g.k.Rda=function(){g.Mm(this.B);cma(this.B,this.U);g.Bm(this.B,this.D);this.C=g.Ki((0,g.Xa)(this.lO,this,!1),this.G*1E3)};
g.k.stop=function(){this.isPlaying()&&this.lO(!0)};
g.k.lO=function(a){g.Bm(this.B,"transition","");g.Na.clearTimeout(this.C);g.Bm(this.B,this.D);this.endTime=g.Za();this.j=0;if(a)this.onStop();else this.onFinish();this.Ls()};
g.k.xa=function(){this.stop();Ep.Wf.xa.call(this)};
g.k.pause=function(){};var ema={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};Fp("Element","attributes")||Fp("Node","attributes");Fp("Element","innerHTML")||Fp("HTMLElement","innerHTML");Fp("Node","nodeName");Fp("Node","nodeType");Fp("Node","parentNode");Fp("Node","childNodes");Fp("HTMLElement","style")||Fp("Element","style");Fp("HTMLStyleElement","sheet");var lma=gma("getPropertyValue"),mma=gma("setProperty");Fp("Element","namespaceURI")||Fp("Node","namespaceURI");var ima=pa([""]),kma={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var qma,Mab,pma,oma,rma;qma=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]");Mab=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.ycb=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.Hp=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]");pma=/^http:\/\/.*/;g.zcb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");oma=/\s+/;rma=/[\d\u06f0-\u06f9]/;Jp.prototype.Lm=function(){return new Kp(this.B())};
Jp.prototype[Symbol.iterator]=function(){return new Lp(this.B())};
Jp.prototype.j=function(){return new Lp(this.B())};
g.w(Kp,g.rn);Kp.prototype.next=function(){return this.B.next()};
Kp.prototype[Symbol.iterator]=function(){return new Lp(this.B)};
Kp.prototype.j=function(){return new Lp(this.B)};
g.w(Lp,Jp);Lp.prototype.next=function(){return this.C.next()};Np.prototype.clone=function(){return new Np(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Pp.prototype.clone=function(){return new Pp(this.start,this.end)};
Pp.prototype.getLength=function(){return this.end-this.start};(function(){if(W8a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Fb()))?a[1]:"0"}return wU?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.Fb()))?a[0].replace(/_/g,"."):"10"):g.qs?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Fb()))?a[1]:""):Zab||$ab||abb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Fb()))?a[1].replace(/_/g,"."):""):""})();var tma=function(){if(g.VO)return Qp(/Firefox\/([0-9.]+)/);if(g.Gp||g.ou||g.FP)return Fba;if(g.$F){if(Tb()||Ub()){var a=Qp(/CriOS\/([0-9.]+)/);if(a)return a}return Qp(/Chrome\/([0-9.]+)/)}if(g.Nt&&!Tb())return Qp(/Version\/([0-9.]+)/);if(ns||os){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Fb()))return a[1]+"."+a[2]}else if(g.GP)return(a=Qp(/Android\s+([0-9.]+)/))?a:Qp(/Version\/([0-9.]+)/);return""}();g.bb(g.Sp,g.O);g.k=g.Sp.prototype;g.k.subscribe=function(a,b,c){var d=this.B[a];d||(d=this.B[a]=[]);var e=this.L;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.L=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.B[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Nh(a)}return!1};
g.k.Nh=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.ac(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){var d=Array(arguments.length-1),e=arguments.length,f;for(f=1;f<e;f++)d[f-1]=arguments[f];if(this.U)for(f=0;f<c.length;f++)e=c[f],uma(this.j[e+1],this.j[e+2],d);else{this.D++;try{for(f=0,e=c.length;f<e&&!this.Ja();f++){var h=c[f];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.Nh(c)}}return f!=0}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Nh,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.xa=function(){g.Sp.Wf.xa.call(this);this.clear();this.C.length=0};g.Tp.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.Qi(b))};
g.Tp.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.Tp.prototype.remove=function(a){this.j.remove(a)};g.bb(Up,g.Tp);Up.prototype.set=function(a,b){Up.Wf.set.call(this,a,wma(b))};
Up.prototype.B=function(a){a=Up.Wf.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Up.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(Vp,Up);Vp.prototype.set=function(a,b,c){if(b=wma(b)){if(c){if(c<g.Za()){Vp.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Za()}Vp.Wf.set.call(this,a,b)};
Vp.prototype.B=function(a,b){var c=Vp.Wf.B.call(this,a);if(c)if(!b&&g.xma(c))Vp.prototype.remove.call(this,a);else return c};g.bb(g.Wp,Vp);g.bb(Xp,yma);Xp.prototype[Symbol.iterator]=function(){return g.Mp(this.Lm(!0)).j()};
Xp.prototype.clear=function(){var a=Array.from(this);a=g.x(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.bb(Yp,Xp);g.k=Yp.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){Zp(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){Zp(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){Zp(this);this.j.removeItem(a)};
g.k.Lm=function(a){Zp(this);var b=0,c=this.j,d=new g.rn;d.next=function(){if(b>=c.length)return g.I1;var e=c.key(b++);if(a)return g.sn(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.sn(e)};
return d};
g.k.clear=function(){Zp(this);this.j.clear()};
g.k.key=function(a){Zp(this);return this.j.key(a)};g.bb($p,Yp);g.bb(zma,Yp);g.bb(aq,Xp);aq.prototype.set=function(a,b){this.B.set(this.j+a,b)};
aq.prototype.get=function(a){return this.B.get(this.j+a)};
aq.prototype.remove=function(a){this.B.remove(this.j+a)};
aq.prototype.Lm=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.rn;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.sn(a?e.slice(c.j.length):c.B.get(e))};
return d};cq.prototype.getValue=function(){return this.B};
cq.prototype.clone=function(){return new cq(this.j,this.B)};g.k=dq.prototype;g.k.Uh=function(a,b){var c=this.j;c.push(new cq(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.Ko=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 dq(this)};
g.k.isEmpty=function(){return this.j.length===0};
g.k.clear=function(){this.j.length=0};g.w(eq,dq);eq.prototype.enqueue=function(a,b){this.Uh(a,b)};fq.yh=void 0;fq.getInstance=function(){return fq.yh?fq.yh:fq.yh=new fq};
fq.prototype.j=0;var gq={},Acb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";gq.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};
gq.wU=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Bcb={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]},
OY: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}},Ccb={fA:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
OY:function(a){return[].concat.apply([],a)}};
gq.ifa=function(){Acb?(gq.Hz=Uint8Array,gq.Dr=Uint16Array,gq.M4=Int32Array,gq.assign(gq,Bcb)):(gq.Hz=Array,gq.Dr=Array,gq.M4=Array,gq.assign(gq,Ccb))};
gq.ifa();var Dcb=!0;try{new Uint8Array(1)}catch(a){Dcb=!1};var Fq={};Fq=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 Gq={},N1,Ecb=[],O1=0;O1<256;O1++){N1=O1;for(var Fcb=0;Fcb<8;Fcb++)N1=N1&1?3988292384^N1>>>1:N1>>>1;Ecb[O1]=N1}Gq=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Ecb[(a^b[d])&255];return a^-1};var wq={};wq={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 pq=[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],sq=[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],Wma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Lma=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Aq=Array(576);hq(Aq);var Bq=Array(60);hq(Bq);var rq=Array(512);hq(rq);var oq=Array(256);hq(oq);var qq=Array(29);hq(qq);var tq=Array(30);hq(tq);var Tma,Uma,Vma,Sma=!1;var Lq;Lq=[new Kq(0,0,0,0,function(a,b){var c=65535;for(c>a.Dn-5&&(c=a.Dn-5);;){if(a.jc<=1){Hq(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Gb+=a.jc;a.jc=0;var d=a.Ol+c;if(a.Gb===0||a.Gb>=d)if(a.jc=a.Gb-d,a.Gb=d,Cq(a,!1),a.Fe.Qe===0)return 1;if(a.Gb-a.Ol>=a.Aj-262&&(Cq(a,!1),a.Fe.Qe===0))return 1}a.Uh=0;if(b===4)return Cq(a,!0),a.Fe.Qe===0?3:4;a.Gb>a.Ol&&Cq(a,!1);return 1}),
new Kq(4,4,8,4,Iq),new Kq(4,5,16,8,Iq),new Kq(4,6,32,32,Iq),new Kq(4,4,16,16,Jq),new Kq(8,16,32,32,Jq),new Kq(8,16,128,128,Jq),new Kq(8,32,128,256,Jq),new Kq(32,128,258,1024,Jq),new Kq(32,258,258,4096,Jq)];var Rma={};Rma=function(){this.input=null;this.Az=this.Hj=this.Fy=0;this.output=null;this.TU=this.Qe=this.QB=0;this.msg="";this.state=null;this.MP=2;this.Zd=0};var Xma=Object.prototype.toString;
Mq.prototype.push=function(a,b){var c=this.Fe,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Ama(a):Xma.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Fy=0;c.Hj=c.input.length;do{c.Qe===0&&(c.output=new gq.Hz(d),c.QB=0,c.Qe=d);a=Qma(c,e);if(a!==1&&a!==0)return this.Ls(a),this.ended=!0,!1;if(c.Qe===0||c.Hj===0&&(e===4||e===2))if(this.options.to==="string"){var f=gq.wU(c.output,c.QB);b=f;f=f.length;if(f<65537&&(b.subarray&&
Dcb||!b.subarray))b=String.fromCharCode.apply(null,gq.wU(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=gq.wU(c.output,c.QB),this.chunks.push(b)}while((c.Hj>0||c.Qe===0)&&a!==1);if(e===4)return(c=this.Fe)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=xq(c,-2):(c.state=null,a=d===113?xq(c,-3):0)):a=-2,this.Ls(a),this.ended=!0,a===0;e===2&&(this.Ls(0),c.Qe=0);return!0};
Mq.prototype.Ls=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):gq.OY(this.chunks));this.chunks=[];this.err=a;this.msg=this.Fe.msg};var Oq="@@redux/INIT"+Nq(),cna="@@redux/REPLACE"+Nq();var dna=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Gcb=[0,Gbb,-3,E1];g.w(Rq,Qe);Rq.prototype.getType=function(){return te(this,11)};var wRa=function(){var a=[0,Ibb,Hbb,A1,Gbb,A1,-1,E1,Gbb,E1,-1,Ibb,E1,Hbb,B1,Gcb,A1,-1,E1];return function(b,c){if(z1.length){var d=z1.pop();$ca(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Je(b,c);try{var e=new Rq,f=e.xb;pf(a)(f,b);var h=e}finally{b.free()}return h}}();var qta=new g.Sq("adInfoDialogEndpoint");var Kva=new g.Sq("adPingingEndpoint");var eya=new g.Sq("crossDeviceProgressCommand");var zJ=new g.Sq("actionCompanionAdRenderer");var GF=new g.Sq("adActionInterstitialRenderer");var Hcb=new g.Sq("adDurationRemainingRenderer");var WJ=new g.Sq("adHoverTextButtonRenderer");var ota=new g.Sq("adInfoDialogRenderer");var EK=new g.Sq("adMessageRenderer");var XJ=new g.Sq("adPreviewRenderer");var BJ=new g.Sq("adsEngagementPanelRenderer");var Fza=new g.Sq("dismissablePanelTextPortraitImageRenderer");var Dza=new g.Sq("adsEngagementPanelSectionListViewModel");var Icb=new g.Sq("flyoutCtaRenderer");var AJ=new g.Sq("imageCompanionAdRenderer");var EF=new g.Sq("instreamAdPlayerOverlayRenderer");var cab=new g.Sq("instreamSurveyAdBackgroundImageRenderer");var VJ=new g.Sq("instreamSurveyAdPlayerOverlayRenderer");var MJ=new g.Sq("instreamSurveyAdRenderer"),UJ=new g.Sq("instreamSurveyAdSingleSelectQuestionRenderer"),TJ=new g.Sq("instreamSurveyAdMultiSelectQuestionRenderer"),P1=new g.Sq("instreamSurveyAdAnswerRenderer"),Jcb=new g.Sq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var KJ=new g.Sq("instreamVideoAdRenderer");var Kcb=new g.Sq("textOverlayAdContentRenderer"),Lcb=new g.Sq("enhancedTextOverlayAdContentRenderer"),Mcb=new g.Sq("imageOverlayAdContentRenderer");var FF=new g.Sq("playerOverlayLayoutRenderer");var sxa=new g.Sq("videoInterstitialButtonedCenteredLayoutRenderer");var Jza=new g.Sq("aboveFeedAdLayoutRenderer");var Kza=new g.Sq("belowPlayerAdLayoutRenderer");var Iza=new g.Sq("inPlayerAdLayoutRenderer");var PJ=new g.Sq("playerBytesAdLayoutRenderer");var SJ=new g.Sq("playerUnderlayAdLayoutRenderer");var LJ=new g.Sq("adIntroRenderer");var IJ=new g.Sq("playerBytesSequentialLayoutRenderer");var oAa=new g.Sq("slidingTextPlayerOverlayRenderer");var NJ=new g.Sq("surveyTextInterstitialRenderer");var Ncb=new g.Sq("simpleAdBadgeRenderer");var JI=new g.Sq("skipAdRenderer"),Ocb=new g.Sq("skipButtonRenderer");var aK=new g.Sq("adSlotRenderer");var QJ=new g.Sq("squeezebackPlayerSidePanelRenderer");var Pcb=new g.Sq("timedPieCountdownRenderer");var yab=new g.Sq("adAvatarViewModel");var p1=new g.Sq("adBadgeViewModel");var q1=new g.Sq("adButtonViewModel");var Qcb=new g.Sq("adDetailsLineViewModel");var Rcb=new g.Sq("adDisclosureBannerViewModel");var Scb=new g.Sq("adPodIndexViewModel");var Tcb=new g.Sq("imageBackgroundViewModel");var Ucb=new g.Sq("adGridCardCollectionViewModel");var Vcb=new g.Sq("adGridCardTextViewModel");var Wcb=new g.Sq("adPreviewViewModel");var Xcb=new g.Sq("playerAdAvatarLockupCardButtonedViewModel");var Ycb=new g.Sq("skipAdButtonViewModel");var Zcb=new g.Sq("skipAdViewModel");var $cb=new g.Sq("timedPieCountdownViewModel");var adb=new g.Sq("visitAdvertiserLinkViewModel");var CJ=new g.Sq("bannerImageLayoutViewModel");var DJ=new g.Sq("topBannerImageTextIconButtonedLayoutViewModel");var EJ=new g.Sq("adsEngagementPanelLayoutViewModel");var RJ=new g.Sq("displayUnderlayTextGridCardsLayoutViewModel");g.zR=new g.Sq("browseEndpoint");var bdb=new g.Sq("confirmDialogEndpoint");var Lra=new g.Sq("rawColdConfigGroup");var Kra=new g.Sq("rawHotConfigGroup");g.Ry=new g.Sq("commandExecutorCommand");g.w(ina,Qe);var rKa={Fma:0,Rma:1,cna:32,hna:61,nna:67,jna:86,bna:42,dna:60,Tma:62,gna:73,fna:76,kna:88,lna:90,ona:99,Zma:98,mna:100,pna:41,qna:69,rna:70,sna:71,Dka:2,Eka:27,ANDROID:3,Xga:54,Yga:14,hha:91,Zga:55,aha:24,bha:20,cha:18,eha:21,jha:30,nha:29,oha:28,Mma:101,pha:34,iha:36,dha:38,IOS:5,zja:15,Jja:92,Aja:40,Cja:25,Dja:17,Eja:19,Fja:64,Gja:66,Hja:26,Lja:22,Mja:33,Nja:68,Oja:35,Ija:53,Kja:37,Bja:39,rma:7,tma:57,uma:43,wma:59,vma:93,mha:74,xma:75,yma:85,zma:65,Bma:80,Cma:8,pma:10,Ema:58,Dma:63,Ama:72,lha:23,
vna:11,wna:13,Pha:12,qma:16,ana:56,ina:31,Aka:77,Xia:84,ena:87,Zia:89,Yia:94,nka:95};g.w(Tq,Qe);Tq.prototype.B9=function(){return se(this,3)};
Tq.prototype.J9=function(){return se(this,5)};
Tq.prototype.Ws=function(a){return ve(this,5,a)};g.w(Uq,Qe);g.w(jna,Qe);g.w(Vq,Qe);g.k=Vq.prototype;g.k.getDeviceId=function(){return se(this,6)};
g.k.KA=function(a){var b=Xd(this,9,kd,3,void 0,!0);Qc(b,a);return b[a]};
g.k.getPlayerType=function(){return te(this,36)};
g.k.setHomeGroupInfo=function(a){return le(this,jna,81,a)};
g.k.clearLocationPlayabilityToken=function(){return Qd(this,89)};g.w(Wq,Qe);Wq.prototype.getValue=function(){return se(this,ge(this,Ira)===2?2:-1)};
var Ira=[2,3,4,5,6];g.w(Xq,Qe);Xq.prototype.setTrackingParams=function(a){return Qd(this,1,Yba(a,!1))};g.w(Yq,Qe);g.w(Zq,Qe);Zq.prototype.KA=function(a){var b=Xd(this,5,ld,3,void 0,!0);Qc(b,a);return b[a]};g.w($q,Qe);$q.prototype.getToken=function(){return qe(this,2)};
$q.prototype.setToken=function(a){return ve(this,2,a)};g.w(ar,Qe);ar.prototype.setSafetyMode=function(a){return xe(this,5,a)};g.w(br,Qe);br.prototype.ZH=function(a){return le(this,Vq,1,a)};var ZJ=new g.Sq("thumbnailLandscapePortraitRenderer");g.cdb=new g.Sq("changeEngagementPanelVisibilityAction");var Pta=new g.Sq("continuationCommand");g.ddb=new g.Sq("openPopupAction");g.Q1=new g.Sq("webCommandMetadata");var hMa=new g.Sq("metadataBadgeRenderer");var Ota=new g.Sq("signalServiceEndpoint");var hx=new g.Sq("innertubeCommand");var Cta=new g.Sq("loggingDirectives");var Wna={yia:"EMBEDDED_PLAYER_MODE_UNKNOWN",via:"EMBEDDED_PLAYER_MODE_DEFAULT",xia:"EMBEDDED_PLAYER_MODE_PFP",wia:"EMBEDDED_PLAYER_MODE_PFL"};var JMa=new g.Sq("channelThumbnailEndpoint");var IMa=new g.Sq("embeddedPlayerErrorMessageRenderer");var EMa=new g.Sq("embeddedPlayerOverlayVideoDetailsRenderer"),KMa=new g.Sq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),LMa=new g.Sq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var eMa=new g.Sq("embedsInfoPanelRenderer");var edb=new g.Sq("feedbackEndpoint");var fdb=new g.Sq("callToActionButtonViewModel");var gdb=new g.Sq("interactionLoggingCommandMetadata");var Spa={Yma:"WEB_DISPLAY_MODE_UNKNOWN",Uma:"WEB_DISPLAY_MODE_BROWSER",Wma:"WEB_DISPLAY_MODE_MINIMAL_UI",Xma:"WEB_DISPLAY_MODE_STANDALONE",Vma:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(er,Qe);er.prototype.getPlayerType=function(){return te(this,7)};
er.prototype.eg=function(){return se(this,19)};
er.prototype.setVideoId=function(a){return ve(this,19,a)};g.w(fr,Qe);g.w(gr,Qe);g.w(hr,Qe);
var hdb=[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,506,507];g.w(ir,Qe);g.w(jr,Qe);jr.prototype.eg=function(){return qe(this,ge(this,Iw)===1?1:-1)};
jr.prototype.setVideoId=function(a){return ee(this,1,Iw,rd(a))};
jr.prototype.getPlaylistId=function(){return qe(this,ge(this,Iw)===2?2:-1)};
var Iw=[1,2];g.w(kna,Qe);var mR=new g.Sq("changeKeyedMarkersVisibilityCommand");var idb=new g.Sq("changeMarkersVisibilityCommand");var jMa=new g.Sq("loadMarkersCommand");var jdb=new g.Sq("suggestedActionDataViewModel");var S0a=new g.Sq("timelyActionViewModel");var R0a=new g.Sq("timelyActionsOverlayViewModel");var V3a=new g.Sq("productListItemRenderer");var kdb=new g.Sq("shoppingOverlayRenderer");var FMa=new g.Sq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var ldb=new g.Sq("adFeedbackEndpoint");var mdb=new g.Sq("menuEndpoint");var i3a=new g.Sq("phoneDialerEndpoint");var g3a=new g.Sq("sendSmsEndpoint");var DMa=new g.Sq("copyTextEndpoint");var ndb=new g.Sq("shareEndpoint"),odb=new g.Sq("shareEntityEndpoint"),pdb=new g.Sq("shareEntityServiceEndpoint"),qdb=new g.Sq("webPlayerShareEntityServiceEndpoint");g.jy=new g.Sq("urlEndpoint");g.kR=new g.Sq("watchEndpoint");var rdb=new g.Sq("watchPlaylistEndpoint");g.sdb=new g.Sq("offlineOrchestrationActionCommand");var J_a=new g.Sq("compositeVideoOverlayRenderer");var tdb=new g.Sq("miniplayerRenderer");var BMa=new g.Sq("paidContentOverlayRenderer");var QLa=new g.Sq("playerMutedAutoplayOverlayRenderer"),RLa=new g.Sq("playerMutedAutoplayEndScreenRenderer");var fLa=new g.Sq("unserializedPlayerResponse"),SLa=new g.Sq("unserializedPlayerResponse");var udb=new g.Sq("playlistEditEndpoint");var R1;g.YJ=new g.Sq("buttonRenderer");R1=new g.Sq("toggleButtonRenderer");var Cza=new g.Sq("counterfactualRenderer");var vdb=new g.Sq("resolveUrlCommandMetadata");var wdb=new g.Sq("modifyChannelNotificationPreferenceEndpoint");var Jva=new g.Sq("pingingEndpoint");var xdb=new g.Sq("unsubscribeEndpoint");g.AR=new g.Sq("subscribeButtonRenderer");var ydb=new g.Sq("subscribeEndpoint");var tOa=new g.Sq("buttonViewModel");var Eza=new g.Sq("qrCodeRenderer");var tKa={gka:"LIVING_ROOM_APP_MODE_UNSPECIFIED",cka:"LIVING_ROOM_APP_MODE_MAIN",bka:"LIVING_ROOM_APP_MODE_KIDS",dka:"LIVING_ROOM_APP_MODE_MUSIC",fka:"LIVING_ROOM_APP_MODE_UNPLUGGED",aka:"LIVING_ROOM_APP_MODE_GAMING"};var aMa=new g.Sq("autoplaySwitchButtonRenderer");var EQ,K4a,mLa,V4a;EQ=new g.Sq("decoratedPlayerBarRenderer");K4a=new g.Sq("chapteredPlayerBarRenderer");mLa=new g.Sq("multiMarkersPlayerBarRenderer");V4a=new g.Sq("chapterRenderer");g.O4a=new g.Sq("markerRenderer");var zdb=new g.Sq("decoratedPlayheadRenderer");var fMa=new g.Sq("desktopOverlayConfigRenderer");var dMa=new g.Sq("gatedActionsOverlayViewModel");var S4a=new g.Sq("heatMarkerRenderer");var R4a=new g.Sq("heatmapRenderer");var iMa=new g.Sq("watchToWatchTransitionRenderer");var GMa=new g.Sq("playlistPanelRenderer");var Adb=new g.Sq("productUpsellSuggestedActionViewModel");var Bdb=new g.Sq("suggestedActionTimeRangeTrigger"),Cdb=new g.Sq("suggestedActionsRenderer"),Ddb=new g.Sq("suggestedActionRenderer");var T4a=new g.Sq("timedMarkerDecorationRenderer");var DEa=new g.Sq("cipher");var gLa=new g.Sq("playerVars");var TLa=new g.Sq("playerVars");var S1=g.Na.window,Edb,Fdb,kr=(S1==null?void 0:(Edb=S1.yt)==null?void 0:Edb.config_)||(S1==null?void 0:(Fdb=S1.ytcfg)==null?void 0:Fdb.data_)||{};g.Oa("yt.config_",kr);var or=[];var una=/^[\w.]*$/,qna={q:!0,search_query:!0},pna=String(sr);var Cr=new function(){var a=window.document;this.j=window;this.B=a};
g.Oa("yt.ads_.signals_.getAdSignalsString",function(a){return tr(Er(a))});g.Za();var wna="XMLHttpRequest"in g.Na?function(){return new XMLHttpRequest}:null;var Gdb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.z(Gdb);var Ana={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"},Bna="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.z(Gdb)),Jna=!1,yna=Cna,Gna=Qr;g.w(Tr,sb);Wr.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:Yr(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:Xr(a):this};
Wr.prototype.getValue=function(){return this.B};
Wr.prototype.$goog_Thenable=!0;var Zr=!1;var nu=ns||os;var Una=/^([0-9\.]+):([0-9\.]+)$/;g.w(Es,sb);Es.prototype.name="BiscottiError";g.w(Ds,sb);Ds.prototype.name="BiscottiMissingError";var Yna={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fs=null;var bea=pa(["data-"]),goa={};var Hdb=0,Gs=g.ih?"webkit":Cm?"moz":g.Gp?"ms":g.FP?"o":"",Idb=g.Pa("ytDomDomGetNextId")||function(){return++Hdb};
g.Oa("ytDomDomGetNextId",Idb);var koa={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};Ms.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Ms.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Ms.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Ns=g.Na.ytEventsEventsListeners||{};g.Oa("ytEventsEventsListeners",Ns);var noa=g.Na.ytEventsEventsCounter||{count:0};g.Oa("ytEventsEventsCounter",noa);var roa=yi(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),ooa=yi(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var T1;T1=window;g.Vt=T1.ytcsi&&T1.ytcsi.now?T1.ytcsi.now:T1.performance&&T1.performance.timing&&T1.performance.now&&T1.performance.timing.navigationStart?function(){return T1.performance.timing.navigationStart+T1.performance.now()}:function(){return(new Date).getTime()};g.bb(Ss,g.O);Ss.prototype.Z=function(a){a.j===void 0&&loa(a);var b=a.j;a.B===void 0&&loa(a);this.j=new g.Ag(b,a.B)};
Ss.prototype.wu=function(){return this.j||new g.Ag};
Ss.prototype.qa=function(){if(this.j){var a=(0,g.Vt)();if(this.D!=0){var b=this.L,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.U();this.G=d}this.D=a;this.L=this.j;this.C=(this.C+1)%4}};
Ss.prototype.xa=function(){g.Kr(this.W);g.Ps(this.ra)};g.w(Ts,g.O);Ts.prototype.T=function(a,b,c,d,e){c=g.qr((0,g.Xa)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&roa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.U.push(c);return c};
Ts.prototype.Nc=function(a){for(var b=0;b<this.U.length;b++)if(this.U[b]==a){this.U.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
Ts.prototype.xa=function(){g.Vs(this);g.O.prototype.xa.call(this)};Ws.prototype.clone=function(){var a=new Ws,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]=Ra(c)=="object"?g.Rg(c):c}return a};var jNa=["att/get"],o1a=["embedded_player"],yva=["account/get_setting_values"],Jdb=["share/get_share_panel"],Kdb=["share/get_web_player_share_panel"],Ldb=["feedback"],Mdb=["notification/modify_channel_preference"],qZa=["player"],Ndb=["browse/edit_playlist"],Bva=["account/set_setting"],Odb=["subscription/subscribe"],Pdb=["subscription/unsubscribe"],uZa=["next","unplugged/watch_next"];var Ys;g.Xs=yi(function(){try{var a=new $p;var b=a.isAvailable()?a:null}catch(c){return null}return b?new g.Wp(b):null});
Ys=yi(function(){var a=new zma;return a.isAvailable()?new g.Wp(a):null});g.Qdb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Oa("yt.msgs_",g.Qdb);dt.prototype.DF=function(a,b){a={};var c=[];"USER_SESSION_ID"in kr&&c.push({key:"u",value:g.mr("USER_SESSION_ID")});if(c=uea(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(g.mr("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.Mr("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in kr||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in kr&&(a["X-Goog-PageId"]=g.mr("DELEGATED_SESSION_ID"));return a};var Hu={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var ht=g.Pa("ytglobal.prefsUserPrefsPrefs_")||{};g.Oa("ytglobal.prefsUserPrefsPrefs_",ht);var et;g.k=xoa.prototype;g.k.get=function(a,b){kt(a);jt(a);a=ht[a]!==void 0?ht[a].toString():null;return a!=null?a:b?b:""};
g.k.set=function(a,b){kt(a);jt(a);if(b==null)throw Error("ExpectedNotNull");ht[a]=b.toString()};
g.k.remove=function(a){kt(a);jt(a);delete ht[a]};
g.k.save=function(){var a=!0;g.Mr("web_secure_pref_cookie_killswitch")&&(a=!1);g.as(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.yea(ht)};
g.k.dump=function(){var a=[],b;for(b in ht)ht.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(ht[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])&&(ht[d]=c.toString())}};var Aoa={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"},Tpa={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},Upa={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},Coa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.w(g.lt,Error);ot.prototype.aj=function(a,b){return pt(a,1,b)};
ot.prototype.Z7=function(a){(a=this.j.get(a))&&a()};g.Pa("yt.scheduler.instance.timerIdMap_");g.w(rt,ot);rt.prototype.Dk=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=g.Pa("yt.scheduler.instance.cancelJob");b?b(a):g.Jr(a)}};
rt.prototype.start=function(){var a=g.Pa("yt.scheduler.instance.start");a&&a()};
rt.prototype.pause=function(){var a=g.Pa("yt.scheduler.instance.pause");a&&a()};
g.jp=g.tt();wt.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.Qi(b))}catch(f){return}else e=escape(b);g.as(a,e,c,this.B)};
wt.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.bs(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
wt.prototype.remove=function(a){this.j&&this.j.remove(a);g.cs(a,"/",this.B)};
wt.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,typeof a==="number")?a:null};var xt=function(){var a;return function(){a||(a=new wt("ytidb"));return a}}();var Et=[],At,Ft=!1;var U1={},Goa=(U1.AUTH_INVALID="No user identifier specified.",U1.EXPLICIT_ABORT="Transaction was explicitly aborted.",U1.IDB_NOT_SUPPORTED="IndexedDB is not supported.",U1.MISSING_INDEX="Index not created.",U1.MISSING_OBJECT_STORES="Object stores not created.",U1.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",U1.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",U1.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",U1.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",U1.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",U1.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",U1.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",U1),V1={},Hoa=(V1.AUTH_INVALID="ERROR",V1.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",V1.EXPLICIT_ABORT="IGNORED",
V1.IDB_NOT_SUPPORTED="ERROR",V1.MISSING_INDEX="WARNING",V1.MISSING_OBJECT_STORES="ERROR",V1.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",V1.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",V1.QUOTA_EXCEEDED="WARNING",V1.QUOTA_MAYBE_EXCEEDED="WARNING",V1.UNKNOWN_ABORT="WARNING",V1.INCOMPATIBLE_DB_VERSION="WARNING",V1),W1={},Ioa=(W1.AUTH_INVALID=!1,W1.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,W1.EXPLICIT_ABORT=!1,W1.IDB_NOT_SUPPORTED=!1,W1.MISSING_INDEX=!1,W1.MISSING_OBJECT_STORES=!1,W1.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,W1.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,W1.QUOTA_EXCEEDED=!1,W1.QUOTA_MAYBE_EXCEEDED=!0,W1.UNKNOWN_ABORT=!0,W1.INCOMPATIBLE_DB_VERSION=!1,W1);g.w(g.Kt,g.lt);g.w(Lt,g.Kt);g.w(Mt,Error);var Joa=["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.Rt.all=function(a){return new g.Rt(new Qt(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={dB:0};f.dB<a.length;f={dB:f.dB},++f.dB)g.Rt.resolve(a[f.dB]).then(function(h){return function(l){d[h.dB]=l;e--;e===0&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.Rt.resolve=function(a){return new g.Rt(new Qt(function(b,c){a instanceof g.Rt?a.then(b,c):b(a)}))};
g.Rt.reject=function(a){return new g.Rt(new Qt(function(b,c){c(a)}))};
g.Rt.prototype.then=function(a,b){var c=this,d=a!=null?a:Loa,e=b!=null?b:Koa;return new g.Rt(new Qt(function(f,h){c.state.status==="PENDING"?(c.j.push(function(){Moa(c,c,d,f,h)}),c.B.push(function(){Noa(c,c,e,f,h)})):c.state.status==="FULFILLED"?Moa(c,c,d,f,h):c.state.status==="REJECTED"&&Noa(c,c,e,f,h)}))};
g.Rt.prototype.catch=function(a){return this.then(void 0,a)};g.k=Toa.prototype;g.k.add=function(a,b,c){return g.Zt(this,[a],{mode:"readwrite",Qb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.Zt(this,[a],{mode:"readwrite",Qb:!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.Zt(this,[a],{mode:"readonly",Qb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.Zt(this,[a],{mode:"readwrite",Qb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.Zt(this,[a],{mode:"readonly",Qb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.Zt(this,[a],{mode:"readonly",Qb:!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=Wt.prototype;g.k.add=function(a,b){return Tt(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return Tt(this.j.clear()).then(function(){})};
g.k.count=function(a){return Tt(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Xoa(this,a):Tt(this.j.delete(a))};
g.k.get=function(a){return Tt(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?Tt(this.j.getAll(a,b)):Yoa(this,a,b)};
g.k.index=function(a){try{return new bpa(this.j.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new Mt(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
bu.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.Kt("EXPLICIT_ABORT");};
bu.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new Wt(a),this.C.set(a,b));return b};
g.k=bpa.prototype;g.k.count=function(a){return Tt(this.j.count(a))};
g.k.delete=function(a){return g.gu(this,{query:a},function(b){return b.delete().then(function(){return g.eu(b)})})};
g.k.get=function(a){return Tt(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?Tt(this.j.getAll(a,b)):cpa(this,a,b)};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
hu.prototype.delete=function(){return Tt(this.cursor.delete()).then(function(){})};
hu.prototype.getValue=function(){return this.cursor.value};
hu.prototype.update=function(a){return Tt(this.cursor.update(a))};ju.prototype.B=function(a,b,c){c=c===void 0?{}:c;return epa(a,b,c)};
ju.prototype.delete=function(a){a=a===void 0?{}:a;return iu(this.name,a)};
ju.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,u;return g.I(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.x(Object.keys(C.Js)),K=H.next();!K.done;K=H.next()){K=K.value;var N=C.Js[K],W=N.xea===void 0?Number.MAX_VALUE:N.xea;!(A.j.version>=N.po)||A.j.version>=W||A.j.objectStoreNames.contains(K)||F.push(K)}m=F;if(m.length===0){y.Ga(5);break}n=Object.keys(c.options.Js);
p=l.objectStoreNames();if(c.G<g.Nr("ytidb_reopen_db_retries",0))return c.G++,l.close(),Gt(new g.Kt("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());if(!(c.D<g.Nr("ytidb_remake_db_retries",1))){y.Ga(6);break}c.D++;return g.G(y,c.delete(),7);case 7:return Gt(new g.Kt("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),y.return(a());case 6:throw new Lt(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.Ga(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,fpa(c,t);return y.return(r);case 8:throw b(),
q instanceof Error&&!g.Mr("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Ot(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 fpa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,Hfa:b,upgrade:this.options.upgrade};return this.j=d=a()};var lu=new ju("YtIdbMeta",{Js:{databases:{po:1}},upgrade:function(a,b){b(1)&&g.Xt(a,"databases",{keyPath:"actualName"})}});var qu,pu=new function(){}(new function(){});new g.Cj;g.w(uu,ju);uu.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?opa:npa)(a,b,Object.assign({},c))};
uu.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?spa:ppa)(this.name,a)};var Rdb={},upa=g.vu("ytGcfConfig",{Js:(Rdb.coldConfigStore={po:1},Rdb.hotConfigStore={po:1},Rdb),shared:!1,upgrade:function(a,b){b(1)&&(g.cu(g.Xt(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.cu(g.Xt(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.w(xu,g.O);xu.prototype.xa=function(){for(var a=g.x(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)};Du.prototype.Ws=function(a){this.hotHashData=a;g.Oa("yt.gcf.config.hotHashData",this.hotHashData||null)};var Sdb=typeof TextEncoder!=="undefined"?new TextEncoder:null,jqa=Sdb?function(a){return Sdb.encode(a)}:function(a){a=g.xb(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var uua={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},wua={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};Iu.prototype.Hi=function(){return{version:this.version,args:this.args}};Pu.prototype.toString=function(){return this.topic};var Tdb=g.Pa("ytPubsub2Pubsub2Instance")||new g.Sp;g.Sp.prototype.subscribe=g.Sp.prototype.subscribe;g.Sp.prototype.unsubscribeByKey=g.Sp.prototype.Nh;g.Sp.prototype.publish=g.Sp.prototype.publish;g.Sp.prototype.clear=g.Sp.prototype.clear;g.Oa("ytPubsub2Pubsub2Instance",Tdb);var Vu=g.Pa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Oa("ytPubsub2Pubsub2SubscribedKeys",Vu);var Wu=g.Pa("ytPubsub2Pubsub2TopicToKeys")||{};g.Oa("ytPubsub2Pubsub2TopicToKeys",Wu);var Xpa=g.Pa("ytPubsub2Pubsub2IsAsync")||{};
g.Oa("ytPubsub2Pubsub2IsAsync",Xpa);g.Oa("ytPubsub2Pubsub2SkipSubKey",null);var Zu=void 0,Yu=void 0;var gqa=g.Nr("max_body_size_to_compress",5E5),hqa=g.Nr("min_body_size_to_compress",500),cv=!0,gv=0,fv=0,kqa=g.Nr("compression_performance_threshold_lr",250),lqa=g.Nr("slow_compressions_before_abandon_count",4),av=!1,bv=new Map,dv=1,iqa=!0;g.k=iv.prototype;g.k.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(hv(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Wh.set(d,this.Gf).then(function(e){d.id=e;c.Ch.Ah()&&c.eG(d)}).catch(function(e){c.eG(d);
jv(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(hv(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.fb&&this.fb("nwl_skip_retry")&&(e.skipRetry=c);if(this.Ch.Ah()||this.fb&&this.fb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.I(function(m){if(m.j==1)return g.G(m,d.Wh.set(e,d.Gf).catch(function(n){jv(d,n)}),2);
f(h,l);g.va(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Wh.set(e,this.Gf).catch(function(h){d.sendFn(a,b,e.skipRetry);
jv(d,h)})}else c=this.fb&&this.fb("nwl_skip_retry")&&c,this.sendFn(a,b,c)};
g.k.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(hv(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.Wh.zA(d.id,c.Gf):e=!0;c.Ch.Dy&&c.fb&&c.fb("vss_network_hint")&&c.Ch.Dy(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.Wh.set(d,this.Gf).then(function(h){d.id=h;e&&c.Wh.zA(d.id,c.Gf)}).catch(function(h){jv(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.XC=function(){var a=this;if(!hv(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Wo.aj(function(){var b;return g.I(function(c){if(c.j==1)return g.G(c,a.Wh.iZ("NEW",a.Gf),2);if(c.j!=3)return b=c.B,b?g.G(c,a.eG(b),3):(a.gP(),c.return());a.B&&(a.B=0,a.XC());g.va(c)})},this.r3))};
g.k.gP=function(){this.Wo.Dk(this.B);this.B=0};
g.k.eG=function(a){var b=this,c;return g.I(function(d){switch(d.j){case 1:if(!hv(b))throw Error("IndexedDB is not supported: immediateSend");if(a.id===void 0){d.Ga(2);break}return g.G(d,b.Wh.waa(a.id,b.Gf),3);case 3:(c=d.B)||b.ZA(Error("The request cannot be found in the database."));case 2:if(b.aN(a,b.d2)){d.Ga(4);break}b.ZA(Error("Networkless Logging: Stored logs request expired age limit"));if(a.id===void 0){d.Ga(5);break}return g.G(d,b.Wh.zA(a.id,b.Gf),5);case 5:return d.return();case 4:a.skipRetry||
(a=rqa(b,a));if(!a){d.Ga(0);break}if(!a.skipRetry||a.id===void 0){d.Ga(8);break}return g.G(d,b.Wh.zA(a.id,b.Gf),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.va(d)}})};
g.k.aN=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.dN=function(){var a=this;if(!hv(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Wh.iZ("QUEUED",this.Gf).then(function(b){b&&!a.aN(b,a.V1)?a.Wo.aj(function(){return g.I(function(c){if(c.j==1)return b.id===void 0?c.Ga(2):g.G(c,a.Wh.QT(b.id,a.Gf),2);a.dN();g.va(c)})}):a.Ch.Ah()&&a.XC()})};var kv;var Ora={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,miniAppAdEvent:506,dataPlanUpsellEvent:507};var Udb={},Bqa=g.vu("ServiceWorkerLogsDatabase",{Js:(Udb.SWHealthLog={po:1},Udb),shared:!0,upgrade:function(a,b){b(1)&&g.cu(g.Xt(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var nv={},Hqa=0;var ov;qv.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
qv.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null};
qv.prototype.removeParams=function(a){return a.split("?")[0]};
qv.prototype.removeParams=qv.prototype.removeParams;qv.prototype.isEndpointCFR=qv.prototype.isEndpointCFR;qv.prototype.requestComplete=qv.prototype.requestComplete;qv.getInstance=rv;g.w(tv,g.mi);g.k=tv.prototype;g.k.Ah=function(){return this.j.Ah()};
g.k.Dy=function(a){this.j.j=a};
g.k.c$=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
g.k.S8=function(){this.B=!0};
g.k.listen=function(a,b){return this.j.listen(a,b)};
g.k.hN=function(a){a=hp(this.j,a);a.then(function(b){g.Mr("use_cfr_monitor")&&rv().requestComplete("generate_204",b)});
return a};
tv.prototype.sendNetworkCheckRequest=tv.prototype.hN;tv.prototype.listen=tv.prototype.listen;tv.prototype.enableErrorFlushing=tv.prototype.S8;tv.prototype.getWindowStatus=tv.prototype.c$;tv.prototype.networkStatusHint=tv.prototype.Dy;tv.prototype.isNetworkAvailable=tv.prototype.Ah;tv.getInstance=Kqa;g.w(g.uv,g.mi);g.uv.prototype.Ah=function(){var a=g.Pa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.uv.prototype.Dy=function(a){var b=g.Pa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.uv.prototype.hN=function(a){var b=this,c;return g.I(function(d){c=g.Pa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.Mr("skip_network_check_if_cfr")&&rv().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Dy(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Ah())})):c?d.return(c(a)):d.return(!0)})};var vv;g.w(wv,iv);wv.prototype.writeThenSend=function(a,b){b||(b={});b=yv(a,b);g.nt()||(this.j=!1);iv.prototype.writeThenSend.call(this,a,b)};
wv.prototype.sendThenWrite=function(a,b,c){b||(b={});b=yv(a,b);g.nt()||(this.j=!1);iv.prototype.sendThenWrite.call(this,a,b,c)};
wv.prototype.sendAndWrite=function(a,b){b||(b={});b=yv(a,b);g.nt()||(this.j=!1);iv.prototype.sendAndWrite.call(this,a,b)};
wv.prototype.awaitInitialization=function(){return this.C.promise};var Pqa=g.Na.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Oa("ytNetworklessLoggingInitializationOptions",Pqa);g.zv.prototype.isReady=function(){!this.config_&&Lpa()&&(this.config_=g.Fu());return!!this.config_};var Vdb,Cv,Ev;Vdb=g.Na.ytPubsubPubsubInstance||new g.Sp;Cv=g.Na.ytPubsubPubsubSubscribedKeys||{};Ev=g.Na.ytPubsubPubsubTopicToKeys||{};g.Dv=g.Na.ytPubsubPubsubIsSynchronous||{};g.Sp.prototype.subscribe=g.Sp.prototype.subscribe;g.Sp.prototype.unsubscribeByKey=g.Sp.prototype.Nh;g.Sp.prototype.publish=g.Sp.prototype.publish;g.Sp.prototype.clear=g.Sp.prototype.clear;g.Oa("ytPubsubPubsubInstance",Vdb);g.Oa("ytPubsubPubsubTopicToKeys",Ev);g.Oa("ytPubsubPubsubIsSynchronous",g.Dv);
g.Oa("ytPubsubPubsubSubscribedKeys",Cv);var Vqa={};g.w(Ov,g.O);Ov.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Jb();this.Jb().appendChild(a)};
g.w(Pv,Ov);Pv.prototype.Jb=function(){return this.j};g.w(Yqa,g.O);var Qv=Date.now().toString();var Vv={};var $v=Symbol("injectionDeps");Xv.prototype.toString=function(){return"InjectionToken("+this.name+")"};
bra.prototype.resolve=function(a){return a instanceof Yv?aw(this,a.key,[],!0):aw(this,a,[])};var bw;var dw=window;var hw=g.Mr("web_enable_lifecycle_monitoring")&&ew()!==0,ira=g.Mr("web_enable_lifecycle_monitoring");fra.prototype.cancel=function(){for(var a=g.x(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.LM||this.scheduler.Dk(b.jobId),b.LM=!0;this.B.resolve()};g.k=iw.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Da.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;hw&&dra(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&&(gra(this.B),this.B=void 0);jra(this,a,b);this.state=a;hw&&fw(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(hra(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.Hea=function(a){var b=g.Da.apply(1,arguments);g.tt();for(var c=g.x(a),d=c.next(),e={};!d.done;e={BG:void 0},d=c.next())e.BG=d.value,Eoa(function(f){return function(){kw(f.BG.name);mw(function(){return f.BG.callback.apply(f.BG,g.z(b))});
lw(f.BG.name)}}(e))};
g.k.Gea=function(a){var b=g.Da.apply(1,arguments),c,d,e,f;return g.I(function(h){h.j==1&&(g.tt(),c=g.x(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ga(0);e.Ru=d.value;e.sJ=void 0;f=function(l){return function(){kw(l.Ru.name);var m=mw(function(){return l.Ru.callback.apply(l.Ru,g.z(b))});
wL(m)?l.sJ=g.Mr("web_lifecycle_error_handling_killswitch")?m.then(function(){lw(l.Ru.name)}):m.then(function(){lw(l.Ru.name)},function(n){era(n);
lw(l.Ru.name)}):lw(l.Ru.name)}}(e);
Eoa(f);return e.sJ?g.G(h,e.sJ,3):h.Ga(3)}e={Ru:void 0,sJ:void 0};d=c.next();return h.Ga(2)})};
g.k.L2=function(a){var b=g.Da.apply(1,arguments),c=this,d=a.map(function(e){return{GR:function(){kw(e.name);mw(function(){return e.callback.apply(e,g.z(b))});
lw(e.name)},
priority:jw(c,e)}});
d.length&&(this.B=new fra(d))};
g.fa.Object.defineProperties(iw.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ow;g.w(nw,iw);nw.prototype.G=function(a,b){var c=this;this.j=g.qt(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
a(b==null?void 0:b.event)};
nw.prototype.L=function(a,b){this.j&&(g.jp.Dk(this.j),this.j=null);a(b==null?void 0:b.event)};var Qw=[];g.Oa("yt.logging.transport.getScrapedGelPayloads",function(){return Qw});pw.prototype.storePayload=function(a,b){a=qw(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;g.Mr("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a};
pw.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=tw(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.z(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.z(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.z(this.smartExtractMatchingEntries(a))));
return c};
pw.prototype.extractMatchingEntries=function(a){a=tw(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.z(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
pw.prototype.getSequenceCount=function(a){a=tw(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};
pw.prototype.getSequenceCount=pw.prototype.getSequenceCount;pw.prototype.extractMatchingEntries=pw.prototype.extractMatchingEntries;pw.prototype.smartExtractMatchingEntries=pw.prototype.smartExtractMatchingEntries;pw.prototype.storePayload=pw.prototype.storePayload;var Bra=g.Nr("initial_gel_batch_timeout",2E3),Ara=g.Nr("gel_queue_timeout_max_ms",6E4),Cra=g.Nr("gel_min_batch_size",5),Cw=void 0,Nra=new uw,Mra=new uw,zra=new uw,yra=new uw,Ew,Mw=!0,Pw=1,ww=new Map,Kw=g.Na.ytLoggingTransportTokensToCttTargetIds_||{};g.Oa("ytLoggingTransportTokensToCttTargetIds_",Kw);var Jw=g.Na.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Oa("ytLoggingTransportTokensToJspbCttTargetIds_",Jw);var zw={},lra=!1;var Rw=g.Na.ytLoggingGelSequenceIdObj_||{};g.Oa("ytLoggingGelSequenceIdObj_",Rw);var tsa=[];var asa,X1=g.Na.ytLoggingDocDocumentNonce_;X1||(X1=g.Sv(16),g.Oa("ytLoggingDocDocumentNonce_",X1));asa=X1;var Yra={R4:0,Iha:1,Xha:2,n7:3,iia:4,Pma:5,Bka:6,SHARE:7,ola:8,Dla:9,Hma:10,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",10:"UNPLUGGED_BROWSE"};var Rra=1;g.k=Tw.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 Xq;this.j.trackingParams!==void 0?a.setTrackingParams(this.j.trackingParams):(this.j.veType!==void 0&&Qd(a,2,jd(this.j.veType)),this.j.veCounter!==void 0&&Qd(a,6,jd(this.j.veCounter)),this.j.elementIndex!==void 0&&Qd(a,3,jd(this.j.elementIndex)),this.j.isCounterfactual&&Qd(a,5,gd(!0)));if(this.j.dataElement!==void 0){var b=this.j.dataElement.getAsJspb();le(a,Xq,7,b)}this.j.youtubeData!==void 0&&le(a,ina,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",Vra);g.Oa("yt_logging_screen.getCurrentCsn",g.Xw);g.Oa("yt_logging_screen.getCttAuthInfo",Yw);g.Oa("yt_logging_screen.setCurrentScreen",bsa);var esa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var nsa=[{VR:function(a){return"Cannot read property '"+a.key+"'"},
zM:{Error:[{fk:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{fk:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{fk:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{fk:/\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"]},{fk:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{fk:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{fk:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{VR:function(a){return"Cannot call '"+a.key+"'"},
zM:{TypeError:[{fk:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{fk:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{fk:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{fk:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{fk:/\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"]},
{fk:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{VR:function(a){return a.key+" is not defined"},
zM:{ReferenceError:[{fk:/(.*) is not defined/,groups:["key"]},{fk:/Can't find variable: (.*)/,groups:["key"]}]}}];var isa={Hs:[],Mr:[{callback:fsa,weight:500}]};var $w;var gx=new g.Sp;var osa=new Set,lsa=0,rsa=0,qsa=0,msa=[],ssa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var vsa=new g.Sq("parallelCommand");var ysa=new g.Sq("performOnceCommand");var xsa=new g.Sq("serialCommand");var ix=void 0;var Wdb=g.x(Wla({},"Z39Sdf"));Wdb.next();Wdb.next();var Xdb=g.x(Wla(null,"qqrkLd"));Xdb.next();Xdb.next();g.w(lx,Iu);var Wpa=new Pu("screen-created",lx),xx=[],Asa=Fsa,yx=0,nx=new Map,ox=new Map,px=new Map;g.bb(g.Fx,g.O);g.Fx.prototype.subscribe=function(a,b,c){return this.Ja()?0:this.Uj.subscribe(a,b,c)};
g.Fx.prototype.unsubscribe=function(a,b,c){return this.Ja()?!1:this.Uj.unsubscribe(a,b,c)};
g.Fx.prototype.Nh=function(a){return this.Ja()?!1:this.Uj.Nh(a)};
g.Fx.prototype.publish=function(a,b){return this.Ja()?!1:this.Uj.publish.apply(this.Uj,arguments)};var c8a=16/9,Ydb=[.25,.5,.75,1,1.25,1.5,1.75,2],Zdb=Ydb.concat([3,4,5,6,7,8,9,10,15]);var Gsa=1;g.w(g.Jx,g.O);g.k=g.Jx.prototype;
g.k.createElement=function(a,b){b=b||a.J==="svg";var c=a.S,d=a.Ka;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.J);g.eQ&&(a.Y||(a.Y={}),a.Y.focusable="false")}else e=g.mh(a.J);if(c){if(c=Kx(this,e,"class",c))Lx(this,e,"class",c),this.Kb[c]=e}else if(d){c=g.x(d);for(var f=c.next();!f.done;f=c.next())this.Kb[f.value]=e;Lx(this,e,"class",d.join(" "))}d=a.ya;c=a.X;if(d)b=Kx(this,e,"child",d),b!==void 0&&e.appendChild(g.nh(b));else if(c)for(d=0,c=g.x(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if(typeof f==="string")f=Kx(this,e,"child",f),f!=null&&e.appendChild(g.nh(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Gc&&(h=Ix(),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),qh(e,f,d++))}if(a=a.Y)for(b=e,d=g.x(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],Lx(this,b,c,typeof f==="string"?
Kx(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"?qh(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.rh(this.element)};
g.k.update=function(a){for(var b=g.x(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.Te["{{"+a+"}}"])&&Lx(this,a[0],a[1],b)};
g.k.xa=function(){this.Kb={};this.Te={};this.detach();g.O.prototype.xa.call(this)};g.w(g.S,g.Jx);g.k=g.S.prototype;g.k.Ed=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Eb||(g.Bm(this.element,"display",""),this.Eb=!0)};
g.k.hide=function(){this.Eb&&(g.Bm(this.element,"display","none"),this.Eb=!1)};
g.k.yc=function(a){this.U=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.Nc=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.Jx.prototype.xa.call(this)};g.w(g.Nx,g.S);g.Nx.prototype.subscribe=function(a,b,c){return this.Va.subscribe(a,b,c)};
g.Nx.prototype.unsubscribe=function(a,b,c){return this.Va.unsubscribe(a,b,c)};
g.Nx.prototype.Nh=function(a){return this.Va.Nh(a)};
g.Nx.prototype.publish=function(a){return this.Va.publish.apply(this.Va,[a].concat(g.z(g.Da.apply(1,arguments))))};var $db=new WeakSet;g.w(Ox,g.Nx);g.k=Ox.prototype;g.k.bind=function(a){this.Za||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Za=a;this.element.setAttribute("id",this.Za);this.tb&&g.yp(this.element,this.tb);this.qa=b&&b.adRendererCommands;this.Ma=b.interaction;var d;((d=this.Ma)==null?0:d.onTap)&&g.yp(this.element,"ytp-ad-component--clickable");this.macros=c;this.W=b.trackingParams||null;this.L=b.loggingDirectives;this.W!=null?this.createServerVe(this.element,this.W):this.L&&(a=this.element,b=this.L,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.Nx.prototype.hide.call(this);(this.W!=null||this.L)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.Nx.prototype.show.call(this);if(!this.Db){this.Db=!0;var a=this.qa&&this.qa.impressionCommand,b,c=(b=this.Ma)==null?void 0:b.onFirstVisible;a?this.SH(a):c&&(a=jx(c))&&this.SH(a)}(this.W!=null||this.L)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.W||this.L)&&!$db.has(a)){var b=this.element;this.api.hasVe(b)&&this.Eb&&this.api.logClick(b,this.interactionLoggingClientData);$db.add(a)}var c=this.qa&&this.qa.clickCommand,d;b=(d=this.Ma)==null?void 0:d.onTap;if(c)b=this.S1(c),this.SH(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.x(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=jx(b))&&this.SH(b)}};
g.k.S1=function(a){return a};
g.k.m6=function(a){var b=this.Ba;b.U=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.L=Zqa(b,a)||a.length!=1;var c=a.item(0);b.L||!c?(b.W=Infinity,b.Z=Infinity):(b.W=c.clientX,b.Z=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.l6=function(a){var b=this.Ba;a=a.changedTouches.item(0);var c;if(c=Tb()){c=g.Fb();var d="";if(rba())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Tb())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Ub())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(Bb(g.Fb(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(qba())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Qb()?Ib.platform===
"Chrome OS":Kb("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(g.Eb(d||"",8)>=0)}if(c||a&&Math.pow(a.clientX-b.W,2)+Math.pow(a.clientY-b.Z,2)>25)b.D=!0};
g.k.k6=function(a){if(this.Ba){var b=this.Ba,c=a.changedTouches;c&&b.U&&b.B==1&&!b.D&&!b.G&&!b.L&&Zqa(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.U=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.SH=function(a){this.layoutId?this.Ya.executeCommand(a,this.layoutId):g.ex(new g.lt("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.Nc(this.rb);for(var a=g.x(this.Ea),b=a.next();!b.done;b=a.next())this.Nc(b.value);g.Nx.prototype.xa.call(this)};g.w(fy,Ox);
fy.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.fx(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.yp(this.element,a);b.text!=null&&(a=g.Qx(b.text),g.zb(a)||(this.element.setAttribute("aria-label",a),this.C=new g.Nx({J:"span",S:"ytp-ad-button-text",ya:a}),g.P(this,this.C),this.C.Ha(this.element)));b.accessibilityData&&b.accessibilityData.accessibilityData&&
b.accessibilityData.accessibilityData.label&&!g.zb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=ey(b.icon,this.D),b!=null&&(this.B=new g.Nx({J:"span",S:"ytp-ad-button-icon",X:[b]}),g.P(this,this.B)),this.G?qh(this.element,this.B.element,0):this.B.Ha(this.element))}};
fy.prototype.clear=function(){this.hide()};
fy.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);a=g.x(ata(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.Ya.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(gy,g.O);gy.prototype.xa=function(){this.B&&g.Ps(this.B);this.j.clear();hy=null;g.O.prototype.xa.call(this)};
gy.prototype.register=function(a,b){b&&this.j.set(a,b)};
var hy=null;g.w(ky,Ox);
ky.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.Q(b.button,g.YJ)||null;b==null?g.ex(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,void 0,void 0,void 0,void 0,this.C),g.P(this,this.button),this.button.init(Dx("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.Qx(a)),this.button.Ha(this.element),this.Z&&!g.xp(this.button.element,
"ytp-ad-clickable")&&g.yp(this.button.element,"ytp-ad-clickable"),this.C&&(g.yp(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.N("clean_player_style_fix_on_web")&&g.yp(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),a&&(this.B=new g.Nx({J:"div",S:"ytp-ad-hover-text-container"}),this.G&&(b=new g.Nx({J:"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=iy(a),qh(this.B.element,b,0)),
this.show())};
ky.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();Ox.prototype.hide.call(this)};
ky.prototype.show=function(){this.button&&this.button.show();Ox.prototype.show.call(this)};g.w(my,Ox);
my.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&ly(a)||"";g.zb(c)?Math.random()<.01&&g.fx(Error("Found AdImage without valid image URL")):(this.j?g.Bm(this.element,"backgroundImage","url("+c+")"):hh(this.element,{src:c}),hh(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())};
my.prototype.clear=function(){this.hide()};g.w(ny,Ox);g.k=ny.prototype;g.k.hide=function(){Ox.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;Ox.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.ex(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.ex(Error("ConfirmDialogRenderer.cancelLabel was not set.")):eta(this,b):g.ex(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Vs(this.j);this.hide()};
g.k.rS=function(){this.hide()};
g.k.mO=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.Ya.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.sS=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.Ya.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(oy,Ox);g.k=oy.prototype;
g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.ex(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.ex(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.yp(this.D,a)}a={};b.defaultText?
(c=g.Qx(b.defaultText),g.zb(c)||(a.buttonText=c,this.api.V().experiments.fb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.V().experiments.fb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Nm(this.Fa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=ey(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra=
!0,c=ey(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Nm(this.Z,!0),g.Nm(this.G,!1)),g.Nm(this.j,!1)):g.Nm(this.B,!1);g.Og(a)||this.update(a);b.isToggled&&(g.yp(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));py(this);this.T(this.element,"change",this.qW);this.show()}};
g.k.onClick=function(a){this.Ea.length>0&&(this.toggleButton(!this.isToggled()),this.qW());Ox.prototype.onClick.call(this,a)};
g.k.qW=function(){g.Cp(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.x(fta(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.Ya.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);py(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Cp(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;py(this)};
g.k.isToggled=function(){return this.j.checked};g.w(qy,Ts);qy.prototype.L=function(a){if(Array.isArray(a)){a=g.x(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof gta&&this.D(b)}};g.w(ry,Ox);g.k=ry.prototype;g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.ex(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.fx(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.fx(Error("AdFeedbackRenderer.title was not set.")),kta(this,b)):g.ex(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Qs(this.G);Qs(this.Z);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();Ox.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;Ox.prototype.show.call(this);this.G.focus()};
g.k.F0=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.k.wda=function(){this.hide()};
sy.prototype.Jb=function(){return this.j.element};
sy.prototype.getCommand=function(){return this.B};
sy.prototype.isChecked=function(){return this.C.checked};g.w(ty,ny);ty.prototype.rS=function(a){ny.prototype.rS.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
ty.prototype.mO=function(a){ny.prototype.mO.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
ty.prototype.sS=function(a){ny.prototype.sS.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.w(uy,Ox);g.k=uy.prototype;
g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.ex(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.fx(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.Q(b.closeOverlayRenderer,g.YJ)||null)this.j=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.P(this,this.j),this.j.init(Dx("button"),a,this.macros),this.j.Ha(this.element);b.title&&(a=g.Qx(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=iy(a[c]);if(!g.zb(d.textContent)){var e=lh("LI");e.appendChild(d);this.La.appendChild(e)}}else g.Nm(this.La,!1);b.dialogMessage&&(a=iy(b.dialogMessage,!0),this.Ua.appendChild(a));b.confirmLabel&&(a=g.Qx(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.Q(b.muteAdRenderer,g.YJ)||null)&&
(a=b.navigationEndpoint&&g.Q(b.navigationEndpoint,ldb)||null,c=b.navigationEndpoint&&g.Q(b.navigationEndpoint,bdb)||null,a==null&&c==null?g.fx(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?lta(this,a):c&&mta(this,c),this.C=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,["ytp-ad-info-dialog-mute-button"],"button",!0),g.P(this,this.C),this.C.init(Dx("button"),b,this.macros),this.C.listen("click",
this.cca,this),this.C.Ha(this.eb)));nta(this)}};
g.k.clear=function(){Qs(this.Z);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();Ox.prototype.hide.call(this);this.ra&&this.ra.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Pa){for(var a=g.x(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.Ya.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for ad info dialog."));this.Pa=!0}this.ra=document.activeElement;Ox.prototype.show.call(this);this.Z.focus()};
g.k.rW=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.Ya.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.k.cca=function(){var a=this.B?this.B:this.D;a&&!a.Eb&&(this.hide(),a.show())};g.w(vy,ky);vy.prototype.init=function(a,b,c){ky.prototype.init.call(this,a,b,c);a=b.button&&g.Q(b.button,g.YJ)||null;a!=null&&(sta(this,a,c),this.api.N("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-ad-info-hover-text-button--clean-player"),this.show())};
vy.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();ky.prototype.hide.call(this)};
vy.prototype.show=function(){this.button&&this.button.show();ky.prototype.show.call(this)};
vy.prototype.clear=function(){this.hide()};g.w(wy,Ox);
wy.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.th(this.element,Px(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?ly(a):"",c=(c=this.api.getVideoData(1))&&c.Gl,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.lg(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()};
wy.prototype.isTemplated=function(){return this.j.isTemplated||!1};
wy.prototype.clear=function(){this.hide()};var Bta={seekableStart:0,seekableEnd:1,current:0};g.w(zy,Ox);zy.prototype.clear=function(){this.dispose()};g.w(g.Cy,g.O);g.k=g.Cy.prototype;g.k.show=function(a){this.state!==1&&this.state!==2&&(this.state===4&&this.fJ(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Eb||(Dy(this,!0),this.state=1,a?this.delay.start(a):this.fJ()))};
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&&(Dy(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.fJ=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:Dy(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();Dy(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.fJ()};
g.k.xa=function(){this.element.Ja()||this.element.element.removeAttribute("aria-hidden");g.O.prototype.xa.call(this)};g.w(Ey,zy);g.k=Ey.prototype;
g.k.init=function(a,b,c){zy.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;typeof a==="number"&&a<0&&g.ex(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ib&&(this.D?g.yp(this.B.element,"modern-countdown-next-to-thumbnail"):g.yp(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.La=a==null||a===0?this.j.qK():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(Dx("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Gl&&b.thumbnail?this.G.init(Dx("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.ib&&g.yp(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();By(this);zy.prototype.hide.call(this)};
g.k.show=function(){Ay(this);this.B.show();this.C.show();this.G.show();zy.prototype.show.call(this)};
g.k.Hn=function(){this.hide()};
g.k.nm=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.Ua&&a>=this.La?(this.Fa.hide(),this.Ua=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.La-a)/1E3)),a!=this.eb&&(yy(this.C,{TIME_REMAINING:String(a)}),this.eb=a)))}};g.w(Gy,zy);g.k=Gy.prototype;
g.k.init=function(a,b,c){zy.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.YJ))&&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.zb(g.lg(e[0].url))&&(e[0].url=d.profilePicture)}else g.fx(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(Dx("ad-image"),b.image,c);this.G.init(Dx("ad-text"),
b.headline,c);this.D.init(Dx("ad-text"),b.description,c);this.B.init(Dx("button"),a,c);c=op(this.B.element);np(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.tB()||this.show();this.api.V().N("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.sW.bind(this));this.Fa=b.startMs||0;Ay(this)}else g.ex(Error("FlyoutCtaRenderer has no valid action button."));else g.ex(Error("FlyoutCtaRenderer has no description AdText."));else g.ex(Error("FlyoutCtaRenderer has no headline AdText."));else g.fx(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){zy.prototype.onClick.call(this,a);this.api.pauseVideo();!g.sh(this.B.element,a.target)&&this.ra&&(this.layoutId?this.Ya.executeCommand(this.ra,this.layoutId):g.ex(Error("Missing layoutId for flyout cta.")))};
g.k.nm=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.La)&&1E3*a.current>=this.Fa&&(By(this),g.Ap(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Hn=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.sW.bind(this))};
g.k.show=function(){this.B&&this.B.show();zy.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();zy.prototype.hide.call(this)};
g.k.sW=function(a){a=="hidden"?this.show():this.hide()};g.w(Hy,Ox);g.k=Hy.prototype;
g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.Q(this.j.likeButton,R1),b=this.j.dislikeButton&&g.Q(this.j.dislikeButton,R1),this.C.init(Dx("toggle-button"),a,c),this.B.init(Dx("toggle-button"),b,c),this.T(this.element,"change",this.tW),this.D.show(100),this.show(),c=g.x(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.Ya.executeCommand(a,this.layoutId):g.ex(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();Ox.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();Ox.prototype.show.call(this)};
g.k.tW=function(){bma(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.gb("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){this.Ea.length>0&&this.tW();Ox.prototype.onClick.call(this,a)};g.w(Iy,g.O);g.k=Iy.prototype;g.k.xa=function(){this.reset();g.O.prototype.xa.call(this)};
g.k.reset=function(){g.Vs(this.D);this.L=!1;this.j&&this.j.stop();this.G.stop();this.C&&(this.C=!1,this.U.play())};
g.k.start=function(){this.reset();this.D.T(this.B,"mouseover",this.vW,this);this.D.T(this.B,"mouseout",this.uW,this);this.qa&&(this.D.T(this.B,"focusin",this.vW,this),this.D.T(this.B,"focusout",this.uW,this));this.j?this.j.start():(this.L=this.C=!0,g.Bm(this.B,{opacity:this.Z}))};
g.k.vW=function(){this.C&&(this.C=!1,this.U.play());this.G.stop();this.j&&this.j.stop()};
g.k.uW=function(){this.L?this.G.start():this.j&&this.j.start()};
g.k.IX=function(){this.C||(this.C=!0,this.W.play(),this.L=!0)};var xta="b.f_ j.s_ r.s_ e.h_ i.s_ s.t_ p.h_ s.i_ f.i_ a.b_ g.o_ p.i_ i.k_ n.k_ n.h_".split(" ");g.w(Qy,zy);g.k=Qy.prototype;
g.k.init=function(a,b,c){zy.prototype.init.call(this,a,b,c);this.ra=b;(this.Fa=zta(this))&&g.fx(Error("hasAdControlInClickCommands_ is true."));if(!b||g.Og(b))g.ex(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.Og(b.message))g.ex(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=ey(a);b==null?g.ex(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.D=new g.Nx({J:"button",Ka:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],X:[{J:"span",S:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",X:[b]}]}),g.P(this,this.D),this.D.Ha(this.C.element),this.B=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(Dx("ad-text"),this.ra.message,c),g.P(this,this.B),qh(this.D.element,this.B.element,
0));var d=d===void 0?null:d;c=this.api.V();!(this.Ea.length>0)&&c.B&&(iP?0:"ontouchstart"in document.documentElement&&(Yha()||El()))&&(this.Nc(this.rb),d&&this.Nc(d),this.Ea=[this.T(this.element,"touchstart",this.m6,this),this.T(this.element,"touchmove",this.l6,this),this.T(this.element,"touchend",this.k6,this)])}};
g.k.clear=function(){this.La.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();By(this);zy.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(vta(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0)this.api.gb("onAbnormalityDetected");else if(zy.prototype.onClick.call(this,a),this.publish("j"),this.api.V().N("embeds_web_enable_ad_skipped_event_publishing")&&this.api.gb("onAdSkip"),this.Ua||!this.Fa)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.S1=function(a){if(!this.Ua)return this.Fa&&My("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.Q(a,g.Ry))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&yta(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.La.start();this.C.show();this.B&&this.B.show();Ay(this);zy.prototype.show.call(this);this.eb&&this.api.V().N("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.k.Hn=function(){this.publish("k")};
g.k.nm=function(){};g.w(Sy,zy);g.k=Sy.prototype;
g.k.init=function(a,b,c){zy.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.Q(b.preskipRenderer,XJ)||{};(a=g.Og(a)?null:a)?(this.G=a.durationMilliseconds!=null&&a.durationMilliseconds!==void 0?a.durationMilliseconds:5E3,this.B=new Ey(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.j,gP(this.api.V().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&XD(this.api.V())),this.B.init(Dx("preskip-component"),a,c),Fy(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,Ocb)||{};a=g.Og(a)?null:a;a==null?g.ex(Error("SkipButtonRenderer was not set in player response.")):(this.C=new Qy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.j,this.ra),this.C.init(Dx("skip-button"),a,c),g.P(this,this.C),this.C.Ha(this.element),this.api.V().experiments.fb("enable_skip_to_next_messaging")&&(b=g.lg(b.targetId))&&(c=this.C,c.D!=null&&(c.eb=!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();Ay(this);zy.prototype.show.call(this)};
g.k.Hn=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();By(this);zy.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();By(this);zy.prototype.hide.call(this)};
g.k.nm=function(){1E3*this.j.getProgressState().current>=this.G&&Ata(this,!0)};g.w(Ty,fy);Ty.prototype.init=function(a,b,c){fy.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.Qx(b.text),a=!g.zb(a));a?b.navigationEndpoint==null?g.fx(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.fx(Error("Button style was not a link-style type in renderer,")):this.show():g.fx(Error("No visit advertiser text was present in the renderer."))};g.w(Uy,Ox);
Uy.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);a=b.text;g.zb(Px(a))?g.fx(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.C&&!this.B&&(b=this.api.V(),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 wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),a.init(Dx("simple-ad-badge"),b,c),a.Ha(this.element),g.P(this,a)),this.show())};
Uy.prototype.clear=function(){this.hide()};g.w(Vy,Ex);g.w(Wy,g.Fx);g.k=Wy.prototype;g.k.qK=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Md.Nc(this.j)};
g.k.Uc=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.n6=function(a){g.Py(a,2)&&this.publish("g")};g.w(Xy,g.Fx);g.k=Xy.prototype;g.k.qK=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.ye.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.ye.stop())};
g.k.Uc=function(){this.xj+=100;var a=!1;this.xj>this.durationMs&&(this.xj=this.durationMs,this.ye.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.xj/1E3};this.publish("h");a&&this.publish("g")};
g.k.getProgressState=function(){return this.B};g.w($y,zy);g.k=$y.prototype;g.k.init=function(a,b,c){zy.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.fx(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new wy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);this.B.init(Dx("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(){By(this);zy.prototype.hide.call(this)};
g.k.Hn=function(){this.hide()};
g.k.nm=function(){if(this.j!=null){var a=this.j.getProgressState();if(a!=null&&a.current!=null&&this.B){var b=this.j instanceof Wy?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof Xy?a.seekableEnd:this.api.getDuration(2,!1);a=a.current;b=this.api.V().experiments.fb("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(b-a,0):b-a;yy(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.Yy(b)),
TIME_REMAINING:String(Math.ceil(b))})}}};
g.k.show=function(){Ay(this);zy.prototype.show.call(this)};g.w(az,wy);az.prototype.onClick=function(a){wy.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(cz,Ox);cz.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(a=b.content){g.th(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.ex(Error("AdSimpleAttributedString does not have text content"))};
cz.prototype.clear=function(){this.hide()};
cz.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a)};g.w(dz,Ox);
dz.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.zb(a.content)?(this.adBadgeText.init(Dx("ad-simple-attributed-string"),new bz(a)),(b=b.adPodIndex)&&b.content&&!g.zb(b.content)&&(this.j=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),this.j.Ha(this.element),g.P(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Dx("ad-simple-attributed-string"),new bz(b))),this.element.classList.add(this.B?"ytp-ad-badge--stark-clean-player":
"ytp-ad-badge--stark"),this.show()):g.ex(Error("No label is returned in AdBadgeViewModel."))};
dz.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();Ox.prototype.show.call(this)};
dz.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();Ox.prototype.hide.call(this)};g.w(ez,Ox);
ez.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});(a=b.adPodIndex)&&a.content&&!g.zb(a.content)&&(this.j=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),this.j.Ha(this.element),g.P(this,this.j),this.j.init(Dx("ad-simple-attributed-string"),new bz(a)),(this.api.V().N("clean_player_style_fix_on_web")?b.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!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.api.N("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()};
ez.prototype.show=function(){var a;(a=this.j)==null||a.show();Ox.prototype.show.call(this)};
ez.prototype.hide=function(){var a;(a=this.j)==null||a.hide();Ox.prototype.hide.call(this)};g.w(fz,Ox);
fz.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.zb(b.text.content)){this.j=new g.Nx({J:"div",S:"ytp-ad-disclosure-banner__text",ya: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.Nx({J:"div",S:"ytp-ad-disclosure-banner__chevron",X:[g.Ux()]}),
g.P(this,this.B),this.B.Ha(this.element);this.show()}}else g.ex(Error("No banner text found in AdDisclosureBanner."))};
fz.prototype.clear=function(){this.hide()};gz.prototype.getLength=function(){return this.j-this.B};g.w(iz,g.Nx);iz.prototype.Uc=function(){var a=this.B.getProgressState(),b=a.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.V().N("show_preskip_progress_bar_for_skippable_ads")&&(b=this.C?this.C/1E3:a.seekableEnd);a=hz(new gz(a.seekableStart,b),a.current,0);this.progressBar.style.width=a*100+"%"};
iz.prototype.onStateChange=function(){g.OP(this.api.V())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Uc,this),this.Uc()):this.j!==-1&&(this.hide(),this.B.Nh(this.j),this.j=-1))};g.w(jz,Ox);
jz.prototype.init=function(a,b,c,d){Ox.prototype.init.call(this,a,b,c);c=!0;if(b.skipOrPreviewRenderer){var e=b.skipOrPreviewRenderer;a=g.Q(e,JI);e=g.Q(e,XJ);a?(e=new Sy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B,this.ra),e.Ha(this.Z),e.init(Dx("skip-button"),a,this.macros),g.P(this,e)):e&&!this.api.V().experiments.fb("disable_ad_preview_for_instream_ads")&&(a=new Ey(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B,!1),a.Ha(this.Z),a.init(Dx("ad-preview"),e,
this.macros),Fy(a),g.P(this,a));if(a=g.Q(b.skipOrPreviewRenderer,JI)){c=!1;var f=a.skipOffsetMilliseconds}}b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,e=new Hy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),e.Ha(this.La),e.init(Dx("instream-user-sentiment"),a,this.macros),g.P(this,e));if(a=g.Q(b,Icb))if(a=g.Q(a,Icb))e=new Gy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B,!!b.showWithoutLinkedMediaLayout),g.P(this,e),
e.Ha(this.G),e.init(Dx("flyout-cta"),a,this.macros);a=(this.api.V().N("disable_ad_duration_remaining_for_instream_video_ads")||b.adPodIndex!==void 0)&&!1;d=d&&d.videoAdDurationSeconds;if(b.adBadgeRenderer){var h=b.adBadgeRenderer;e=g.Q(h,p1);e!=null?(h=new dz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,a),g.P(this,h),h.Ha(this.j),h.init(Dx("ad-badge"),e,this.macros),this.C=h.element):(e=h.simpleAdBadgeRenderer,e==null&&(e={text:{text:"Ad",isTemplated:!1}}),h=new Uy(this.api,this.layoutId,
this.interactionLoggingClientData,this.Ya,!0),g.P(this,h),h.Ha(this.j),h.init(Dx("simple-ad-badge"),e,this.macros))}b.adPodIndex&&(e=g.Q(b.adPodIndex,Scb),e!=null&&(c=new ez(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,c),g.P(this,c),c.Ha(this.j),c.init(Dx("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 $y(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B,d,a),g.P(this,d),d.Ha(this.j),d.init(Dx("ad-duration-remaining"),c,this.macros),a&&d.element.classList.add("ytp-ad-duration-remaining-autohide"));b.adInfoRenderer&&(d=g.Q(b.adInfoRenderer,WJ))&&(c=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.element,void 0,a),g.P(this,c),this.api.V().N("enable_ad_pod_index_autohide")&&this.C!==null?this.j.insertBefore(c.element,this.C.nextSibling):c.Ha(this.j),
c.init(Dx("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(c=g.Q(b.visitAdvertiserRenderer,g.YJ))&&(e=Dta(this)&&this.D?this.D:this.j)&&(d=new Ty(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,d),d.Ha(e),d.init(Dx("visit-advertiser"),c,this.macros),lp(d.element),c=op(d.element),np(d.element,c+" This link opens in new tab"));!(d=this.api.V())||g.MP(d)||d.controlsType!="3"&&!d.disableOrganicUi||(f=new iz(this.api,this.B,f,a),f.Ha(this.Pa),g.P(this,
f));b.adDisclosureBannerRenderer&&(b=g.Q(b.adDisclosureBannerRenderer,Rcb))&&(f=new fz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),f.Ha(this.Fa),f.init(Dx("ad-disclosure-banner"),b),g.P(this,f));this.api.V().N("enable_updated_html5_player_focus_style")&&g.yp(this.element,"ytp-ad-player-overlay-updated-focus-style");a&&this.api.V().B&&this.j.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()};
jz.prototype.clear=function(){this.hide()};nz.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)};
nz.prototype.get=function(a){return this.j.get(a)};
nz.prototype.remove=function(a){this.j.remove(a)};var rz=null,sz=null,tz=null,Jta=null;g.Oa("yt.www.ads.eventcache.getLastCompanionData",function(){return rz});
g.Oa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Oa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return sz});
g.Oa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return tz});
g.Oa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Jta});var Lta=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);uz.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.wq.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)};
uz.prototype.replace=function(a,b){a=g.x(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Nta(this,b)};var aeb=window.location.hostname.split(".").slice(-2).join("."),Y1;wz.getInstance=function(){Y1=g.Pa("yt.clientLocationService.instance");Y1||(Y1=new wz,g.Oa("yt.clientLocationService.instance",Y1));return Y1};
g.k=wz.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.mr("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=vz(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.as("YT_CL",JSON.stringify({loctok:a}),15552E3,aeb,!0))};
g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=vz(this))&&this.localStorage.remove("yt-location-playability-token"):g.cs("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.mr("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=Sta.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.Ko=function(){return Object.keys(this.j)};
g.k.remove=function(a){delete this.j[a]};yz.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
yz.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=ed(b)}}return a};
yz.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
new yz;var Z1={},Tta=(Z1.WEB_UNPLUGGED="^unplugged/",Z1.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Z1.WEB_UNPLUGGED_OPS="^unplugged/",Z1.WEB_UNPLUGGED_PUBLIC="^unplugged/",Z1.WEB_CREATOR="^creator/",Z1.WEB_KIDS="^kids/",Z1.WEB_EXPERIMENTS="^experiments/",Z1.WEB_MUSIC="^music/",Z1.WEB_REMIX="^music/",Z1.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Z1.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Z1);Bz.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?Hu:c;var d={context:g.xz(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.Az(this.C());(e=(f=g.Q(a.commandMetadata,g.Q1))==null?void 0:f.apiUrl)&&(b=e);f=Pna(ds(b));a=Object.assign({},{command:a},void 0);d={input:f,Iv:es(f),wq:d,config:a};d.config.Ww?d.config.Ww.identity=c:d.config.Ww={identity:c};return d}g.ex(new g.lt("Error: Failed to create Request from Command.",a))};
g.fa.Object.defineProperties(Bz.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.w(Cz,Bz);g.w(Dz,Cz);Dz.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",Iv:es("/getDatasyncIdsEndpoint","GET"),wq:{}}};
Dz.prototype.C=function(){return[]};
Dz.prototype.B=function(){};
Dz.prototype.j=function(){};var beb={},zua=(beb.GET_DATASYNC_IDS=zz(Dz),beb);var $1={},ceb=($1["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",$1["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",$1["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",$1["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",$1["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",$1["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",$1["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",
$1["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",$1["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",$1["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",$1["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",$1["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",$1["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",$1["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",$1["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",
$1["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",$1["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",$1["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",$1["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",$1["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",$1["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",$1["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",
$1["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",$1.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",$1["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",$1["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",$1["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",$1["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",$1["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",$1["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",
$1["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",$1["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",$1["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",$1["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",$1["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",$1["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",$1["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",$1["dialog.copyright_strikes"]=
"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",$1["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",$1["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",$1.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",$1["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",$1["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",$1["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",$1["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",$1["owner.asset_groups"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",$1["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",$1["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",$1["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",$1["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",$1["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",$1["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",$1["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",$1["owner.delivery"]=
"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",$1["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",$1["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",$1["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",$1["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",$1["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",$1["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",$1["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",$1["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
$1["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",$1["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",$1["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",$1["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",$1["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",$1["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",$1["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",$1["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",$1["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
$1["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",$1["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",$1["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",$1["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",$1["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",$1["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",$1["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",$1["video.translations"]=
"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",$1),a2={},$ta=(a2.auto_search="LATENCY_ACTION_AUTO_SEARCH",a2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",a2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",a2.app_startup="LATENCY_ACTION_APP_STARTUP",a2.browse="LATENCY_ACTION_BROWSE",a2.cast_splash="LATENCY_ACTION_CAST_SPLASH",a2.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",a2.channels="LATENCY_ACTION_CHANNELS",a2.chips="LATENCY_ACTION_CHIPS",a2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",a2.direct_playback=
"LATENCY_ACTION_DIRECT_PLAYBACK",a2.editor="LATENCY_ACTION_EDITOR",a2.embed="LATENCY_ACTION_EMBED",a2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",a2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",a2.explore="LATENCY_ACTION_EXPLORE",a2.favorites="LATENCY_ACTION_FAVORITES",a2.home="LATENCY_ACTION_HOME",a2.inboarding="LATENCY_ACTION_INBOARDING",a2.library="LATENCY_ACTION_LIBRARY",a2.live="LATENCY_ACTION_LIVE",a2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",
a2.management="LATENCY_ACTION_MANAGEMENT",a2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",a2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",a2.onboarding="LATENCY_ACTION_ONBOARDING",a2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",a2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",a2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",a2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",a2.prebuffer="LATENCY_ACTION_PREBUFFER",a2.prefetch=
"LATENCY_ACTION_PREFETCH",a2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",a2.profile_switcher="LATENCY_ACTION_LOGIN",a2.projects="LATENCY_ACTION_PROJECTS",a2.reel_watch="LATENCY_ACTION_REEL_WATCH",a2.results="LATENCY_ACTION_RESULTS",a2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",a2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",a2.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",a2.review="LATENCY_ACTION_REVIEW",a2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",a2.search_ui=
"LATENCY_ACTION_SEARCH_UI",a2.search_suggest="LATENCY_ACTION_SUGGEST",a2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",a2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",a2.seek="LATENCY_ACTION_PLAYER_SEEK",a2.settings="LATENCY_ACTION_SETTINGS",a2.store="LATENCY_ACTION_STORE",a2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",a2.tenx="LATENCY_ACTION_TENX",a2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",a2.watch="LATENCY_ACTION_WATCH",a2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",
a2["watch,watch7"]="LATENCY_ACTION_WATCH",a2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",a2["watch,watch7ad"]="LATENCY_ACTION_WATCH",a2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",a2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",a2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",a2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",a2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",a2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",a2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",
a2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",a2);Object.assign($ta,ceb);g.w(eA,Iu);var nua=new Pu("aft-recorded",eA);var deb=g.Na.ytLoggingGelSequenceIdObj_||{};g.Oa("ytLoggingGelSequenceIdObj_",deb);var hA=g.Na.ytLoggingLatencyUsageStats_||{};g.Oa("ytLoggingLatencyUsageStats_",hA);fA.prototype.tick=function(a,b,c,d){iA(this,"tick_"+a+"_"+b)||g.Dt("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
fA.prototype.info=function(a,b,c){var d=Object.keys(a).join("");iA(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.Dt("latencyActionInfo",a,{cttAuthInfo:c}))};
fA.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(!iA(this,"info_"+d+"_"+b)){ve(a,2,b);c={cttAuthInfo:c};b=g.Mr("jspb_sparse_encoded_pivot")?new hr([{}]):new hr;a!=null?ud(a,er):a=void 0;ee(b,7,hdb,a);c=c===void 0?{}:c;a=!1;g.mr("ytLoggingEventsDefaultDisabled",!1)&&(a=!0);a=a?null:g.zv;c=c===void 0?{}:c;d=Math.round(c.timestamp||(0,g.Vt)());ue(b,1,d<Number.MAX_SAFE_INTEGER?d:0);d=new gr;c.lact?ue(d,1,isFinite(c.lact)?
c.lact:-1):c.timestamp?ue(d,1,-1):(e=Wv(),ue(d,1,isFinite(e)?e:-1));if(c.sequenceGroup&&!g.Mr("web_gel_sequence_info_killswitch")){e=c.sequenceGroup;var f=Pra(e),h=new fr;ue(h,2,f);ve(h,1,e);le(d,fr,3,h);c.endOfSequence&&delete deb[c.sequenceGroup]}le(b,gr,33,d);(c.sendIsolatedPayload?ura:vra)("latencyActionInfo",{endpoint:"log_event",payload:b,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},a)}};
fA.prototype.span=function(a,b,c){var d=Object.keys(a).join("");iA(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.Dt("latencyActionSpan",a,{cttAuthInfo:c}))};var b2=window,jA=b2.performance||b2.mozPerformance||b2.msPerformance||b2.webkitPerformance||new aua;var mua=!1,dua=!1,sA={'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"},pua=(0,g.Xa)(jA.clearResourceTimings||jA.webkitClearResourceTimings||jA.mozClearResourceTimings||jA.msClearResourceTimings||jA.oClearResourceTimings||g.xi,jA);var eeb=window;eeb.ytcsi&&(eeb.ytcsi.infoGel=g.vA,eeb.ytcsi.tick=uA);var Fua="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),Hua=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var Kua=new Xv("INNERTUBE_TRANSPORT_TOKEN");g.w(DA,Cz);DA.prototype.C=function(){return Odb};
DA.prototype.B=function(a){return g.Q(a,ydb)||void 0};
DA.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(DA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(EA,Cz);EA.prototype.C=function(){return Pdb};
EA.prototype.B=function(a){return g.Q(a,xdb)||void 0};
EA.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(EA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});var feb=new Xv("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.w(FA,Cz);FA.prototype.C=function(){return Jdb};
FA.prototype.B=function(a){return g.Q(a,odb)||g.Q(a,pdb)||g.Q(a,ndb)};
FA.prototype.j=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.L)==null?0:c.j(b.clientParamIdentifier))a.clientParams=this.L.B(b.clientParamIdentifier)}};
FA[$v]=[feb];g.w(GA,Cz);GA.prototype.C=function(){return Ldb};
GA.prototype.B=function(a){return g.Q(a,edb)||void 0};
GA.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(GA.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(HA,Cz);HA.prototype.C=function(){return Mdb};
HA.prototype.B=function(a){return g.Q(a,wdb)||void 0};
HA.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(IA,Cz);IA.prototype.C=function(){return Ndb};
IA.prototype.B=function(a){return g.Q(a,udb)||void 0};
IA.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(JA,Cz);JA.prototype.C=function(){return Kdb};
JA.prototype.B=function(a){return g.Q(a,qdb)};
JA.prototype.j=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var geb=new Xv("FETCH_FN_TOKEN"),heb=new Xv("PARSE_FN_TOKEN");g.w(g.KA,g.lt);var ieb=new Xv("NETWORK_SLI_TOKEN");LA.prototype.fetch=function(a,b,c){var d=this,e,f,h;return g.I(function(l){e=Iua(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.fx(m);
if((c==null?0:c.Tr)&&m instanceof g.KA&&m.errorType===1)return Promise.reject(m)}))})};
LA.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.aaa)&&a.ok)return mda(b.aaa,e);e=e.replace(")]}'","");if((b==null?0:b.Tr)&&e)try{var f=d(e)}catch(l){throw new g.KA(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.ioa(),c=c.then(function(e){g.fx(new g.lt("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})}));
return c};
LA[$v]=[new Yv(ieb),new Yv(geb),new Yv(heb)];var Jua=new Xv("NETWORK_MANAGER_TOKEN");var MA;PA.prototype.bindInnertubeChallengeFetcher=function(a){this.j.bicf(a)};
PA.prototype.registerChallengeFetchedCallback=function(a){this.j.bcr(a)};
PA.prototype.getLatestChallengeResponse=function(){return this.j.blc()};var Nua=[],QA=!1;VA.prototype.D=function(){var a=this;return g.I(function(b){return b.j==1?g.G(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
VA.prototype.C=function(a,b,c){var d=this,e,f,h;return g.I(function(l){d.j===null&&Pua(d,UA(d));e=!1;f={};h=function(){var m,n,p;return g.I(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.Qg){"c1a"in m.Rm&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ga(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.wa(q,4);e=!0;if(g.Mr("attbs")&&!g.Mr("attmusi")){p=m.Qg.EU({Jj:n});q.Ga(6);break}return g.G(q,m.Qg.snapshot({Jj: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.Rm,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^RA()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.mr("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
return l.return(Promise.race([h(),Tua(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var Wua=["APP_STATE","PI"];var yCa=[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,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,171388,236208,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,238596,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,238351,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,213427,182423,162776,228908,134840,63667,63668,63669,130686,147036,239094,189810,239095,78314,147799,237146,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,237706,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,235770,154430,235861,209757,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];XA.prototype.getState=function(){return this.store.getState()};
XA.prototype.dispatch=function(a){return this.store.dispatch(a)};
XA.prototype.subscribe=function(a){return this.store.subscribe(a)};
XA.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
XA.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.k=ZA.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(Zua(this,a)){var b=this.cg[this.cg.length-1];this.cg[this.cg.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);bB(this)}else this.cg.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new ZA,c=new ZA,d=g.x(this.cg),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{XK:b,xm:c}};
g.k.isFocused=function(a){return a>=this.Ck&&a<this.Ck+this.cg[this.Fj].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.Ck&&bB(this);this.Ck+this.cg[this.Fj].length<=a&&this.Fj<this.cg.length;)this.Ck+=this.cg[this.Fj].length,this.Fj+=1;this.wF=void 0}};
g.k.Lx=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(!cB(this,a,b)){var c=this.Fj,d=this.Ck;this.focus(a+b-1);d=new Uint8Array(this.Ck+this.cg[this.Fj].length-d);for(var e=0,f=c;f<=this.Fj;f++)d.set(this.cg[f],e),e+=this.cg[f].length;this.cg.splice(c,this.Fj-c+1,d);bB(this);this.focus(a)}c=this.cg[this.Fj];return new DataView(c.buffer,c.byteOffset+a-this.Ck,b)};
g.k.Ok=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.cg[this.Fj][a-this.Ck]};var hB,fB,jB;g.XT=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}();
hB=Array(1024);fB=window.TextDecoder?new TextDecoder:void 0;jB=window.TextEncoder?new TextEncoder:void 0;for(var hva={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,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},gva=
{},jeb=g.x(Object.entries(hva)),keb=jeb.next();!keb.done;keb=jeb.next()){var leb=g.x(keb.value),meb=leb.next().value,neb=leb.next().value,oeb=meb,peb=neb;peb&&(gva[peb]=oeb)};var kva=!1,KB,LB,MB,NB,OB;g.w(PB,g.O);
PB.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;)lva(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(lva(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};var RB=!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 SB;g.UB.prototype.encrypt=function(a,b){var c=this,d,e;return g.I(function(f){if(f.j==1){d=TB();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.fx(e);RB=!0;return f.return(c.j(a,b))})};
g.UB.prototype.B=function(a,b,c){var d=this,e,f;return g.I(function(h){switch(h.j){case 1:if(d.G){h.Ga(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.UB.prototype.j=function(a,b){this.C||(this.C=new PB(this.D));QB(this.C,b);return this.C.encrypt(a)};
g.UB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.VB.prototype.encrypt=function(a,b){this.j||(this.j=new PB(this.B));QB(this.j,b);return this.j.encrypt(a)};
g.VB.prototype.decrypt=function(a,b){return this.encrypt(a,b)};WB.prototype.reset=function(){nva(this);this.update(this.C)};
WB.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&this.B+c>=64&&(this.L.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,mva(this,this.L,0));for(;b+64<=c;b+=64)mva(this,a,b);b<c&&(a=a.subarray(b),this.L.set(a,this.B),this.B+=a.length)};
var XB=[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 qeb;qeb={};g.reb=g.vu("yt-idb-pref-storage",{Js:(qeb.prefs={po:1},qeb),shared:!1,upgrade:function(a,b){b(1)&&g.cu(g.Xt(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});var c2;c2={};g.seb=(c2.INVALID_ENCODER_VERSION="Invalid encoder version",c2.KEY_CREATION_FAILED="Failed to create encoder key",c2.UNKNOWN_DECODE_ERROR="Failed to decode PES data",c2.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",c2.WRONG_DATA_TYPE="Encoder cannot process the data type",c2);g.GB("","downloadsPageViewConfigurationEntity");g.GB("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");g.d2=g.GB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");g.GB("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");g.GB("SMART_DOWNLOADS_ENABLED","settingEntity");g.GB("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");g.k=ZB.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript)d=ena(a.interpreterSafeScript);else{var f;d=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(e=Pq(a.interpreterSafeUrl).toString());Eva(this,d,e,a.program,b,c)}else g.fx(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.kV()};
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.kV()?this.m4({Jj:a}):null};
g.k.dispose=function(){this.nU(null);this.xd(8)};
g.k.kV=function(){return!!this.Qg};
g.k.m4=function(a){return this.Qg.EU(a)};
g.k.nU=function(a){g.jb(this.Qg);this.Qg=a};
g.k.xd=function(a){this.state=a};g.w(aC,ZB);aC.prototype.nU=function(a){var b;(b=$B())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.EU.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))};
aC.prototype.kV=function(){return!!$B()};
aC.prototype.m4=function(a){return $B().bgvmc(a)};bC.prototype.Vr=function(){return"crossDeviceProgressCommand"};
bC.prototype.Au=function(a){if(a.crossDevicePings){var b=[];a=g.x(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.Dt("crossDeviceNotificationTransfer",{crossDevicePings:b})}};cC.prototype.Vr=function(){return"muteAdEndpoint"};
cC.prototype.Au=function(a,b){switch(a.type){case "SKIP":Fva(this.hm,this.fp,b)}};dC.prototype.Vr=function(){return"openPopupAction"};
dC.prototype.Au=function(){};eC.prototype.Vr=function(){return"pingingEndpoint"};
eC.prototype.Au=function(){};var Mva={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(Hva,g.O);var i$a={zga:"FINAL",Dga:"AD_BREAK_LENGTH",Ega:"AD_CPN",Fga:"AH",Gga:"AD_MT",Hga:"ASR",Jga:"AW",Mha:"NM",Nha:"NX",Oha:"NY",Tha:"CONN",Yha:"CPN",ria:"DV_VIEWABILITY",Cia:"ERRORCODE",Gia:"ERROR_MSG",Iia:"EI",aja:"GOOGLE_VIEWABILITY",pja:"IAS_VIEWABILITY",Wja:"LACT",Zja:"LIVE_TARGETING_CONTEXT",kka:"I_X",lka:"I_Y",oka:"MT",qka:"MIDROLL_POS",rka:"MIDROLL_POS_MS",ska:"MOAT_INIT",tka:"MOAT_VIEWABILITY",Xka:"P_H",Yka:"PV_H",Zka:"PV_W",dla:"P_W",fla:"TRIGGER_TYPE",Hla:"SDKV",Wla:"SLOT_POS",fma:"SURVEY_LOCAL_TIME_EPOCH_S",
ema:"SURVEY_ELAPSED_MS",C7:"VIS",Lma:"VIEWABILITY",Nma:"VED",Oma:"VOL",Qma:"WT",xna:"YT_ERROR_CODE"};hC.prototype.Vr=function(){return"urlEndpoint"};
hC.prototype.Au=function(a,b,c){var d=this.Na.get(),e=SK(d.B.get(),b);e?b=$E(d,b$a(e),e,void 0,void 0,c):(My("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);sE(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=UH(this.Uf,2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.Uo(a.url,b);g.qz(b,void 0,void 0,void 0,a.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};iC.prototype.get=function(){return this.value};
g.w(jC,iC);jC.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(kC,iC);kC.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.w(lC,iC);lC.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(mC,iC);mC.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.w(nC,iC);nC.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(oC,iC);oC.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(pC,iC);pC.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(qC,iC);qC.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(rC,iC);rC.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.w(sC,iC);sC.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(tC,iC);tC.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(uC,iC);uC.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(vC,iC);vC.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(wC,iC);wC.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(xC,iC);xC.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.w(yC,iC);yC.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.w(zC,iC);zC.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.w(AC,iC);AC.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(BC,iC);BC.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(CC,iC);CC.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(DC,iC);DC.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.w(EC,iC);EC.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(FC,iC);FC.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.w(GC,iC);GC.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.w(HC,iC);HC.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(IC,iC);IC.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(JC,iC);JC.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(KC,iC);KC.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(LC,iC);LC.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(MC,iC);MC.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(NC,iC);NC.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(OC,iC);OC.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(PC,iC);PC.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.w(QC,iC);QC.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(RC,iC);RC.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(SC,iC);SC.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(TC,iC);TC.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(UC,iC);UC.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(VC,iC);VC.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(WC,iC);WC.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(XC,iC);XC.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(YC,iC);YC.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.w(ZC,iC);ZC.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w($C,iC);$C.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(aD,iC);aD.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(bD,iC);bD.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(cD,iC);cD.prototype.getType=function(){return"metadata_type_dai"};
g.w(dD,iC);dD.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(eD,iC);eD.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(fD,iC);fD.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(gD,iC);gD.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(hD,iC);hD.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(iD,iC);iD.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(jD,iC);jD.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(kD,iC);kD.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(lD,iC);lD.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(mD,iC);mD.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(nD,iC);nD.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.w(oD,iC);oD.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w(pD,iC);pD.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(qD,iC);qD.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(rD,iC);rD.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.w(sD,iC);sD.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.w(tD,iC);tD.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.w(uD,iC);uD.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.w(vD,iC);vD.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.w(wD,iC);wD.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.w(xD,iC);xD.prototype.getType=function(){return"metadata_type_prefetch_metadata"};var Zva=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 hwa=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.w(BD,sb);g.w(Z,sb);new Promise(function(){});var Qva=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"]]),Ova=new Map([["normal",{lz:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{lz:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{lz:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{lz:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{lz:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{lz:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{lz:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",xz:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.w(MD,g.O);g.k=MD.prototype;g.k.JQ=function(a,b){return this.j.JQ(a,b)};
g.k.Hg=function(a,b){this.Tb.iJ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.x(this.B),d=c.next();!d.done;d=c.next())d.value.Hg(a,b)};
g.k.tf=function(a){if(RD(this.j,a)){this.Tb.zk("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.tf(a);for(var b=g.x(this.B),c=b.next();!c.done;c=b.next())c.value.tf(a);Uva(this,a)}};
g.k.uf=function(a){if(RD(this.j,a)){this.Tb.zk("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.uf(a);for(var b=g.x(this.B),c=b.next();!c.done;c=b.next())c.value.uf(a);RD(this.j,a)&&SD(this.j,a).G&&PD(this,a,!1)}};
g.k.nM=function(a){this.Tb.zk("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);RD(this.j,a)&&(this.j.nM(a),PD(this,a,!1))};
g.k.kc=function(a,b){if(RD(this.j,a)){this.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.x(this.B),d=c.next();!d.done;d=c.next())d.value.kc(a,b)}};
g.k.Hc=function(a,b,c){if(RD(this.j,a)){this.Tb.gi(Pva(c),a,b);this.j.Hc(a,b);for(var d=g.x(this.B),e=d.next();!e.done;e=d.next())e.value.Hc(a,b,c);(c=eE(this.j,a))&&b.layoutId===c.layoutId&&ewa(this,a,!1)}};
g.k.Rf=function(a,b,c,d){c.Ml&&d?(My(c,a,b,void 0,c.Vw),this.Tb.Gm(d,c.Ml,a,b)):My("adsClientErrorMessage is missing.",a,b);PD(this,a,!0)};
g.k.xa=function(){var a=gwa(this.j);a=g.x(a);for(var b=a.next();!b.done;b=a.next())PD(this,b.value,!1);g.O.prototype.xa.call(this)};
g.k.jg=function(a,b){this.Tb.gi("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Tb.gi("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.x(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.jg(a,b)};fwa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(hE,g.O);g.k=hE.prototype;g.k.JQ=function(a,b){b=dE(this,a+"_"+b);a=[];b=g.x(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Kg=function(a){a=SD(this,a);a.j!=="not_scheduled"&&fE(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.vF=function(a){a=SD(this,a);a.D="fill_requested";a.U.vF()};
g.k.tf=function(a){a=SD(this,a);a.j!=="enter_requested"&&fE(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.nM=function(a){SD(this,a).D="fill_canceled"};
g.k.uf=function(a){a=SD(this,a);a.j!=="exit_requested"&&fE(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Hc=function(a,b){a=SD(this,a);a.layout!=null&&a.layout.layoutId===b.layoutId&&(a.j!=="rendering_stop_requested"&&fE(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(kE,g.O);kE.prototype.get=function(){Math.random()<.001&&this.Ja()&&My("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.w(mE,g.O);mE.prototype.C=function(){return this.j};nE.prototype.executeCommand=function(a,b){gC(this.j(),a,b)};qE.prototype.addListener=function(a){this.listeners.add(a)};
qE.prototype.removeListener=function(a){this.listeners.delete(a)};var e2={},AE=(e2.AD_MARKER="ytp-ad-progress",e2.CHAPTER_MARKER="ytp-chapter-marker",e2.TIME_MARKER="ytp-time-marker",e2);var NNa=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/)"),qwa=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]+)?/)"),
ONa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),xwa=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)|$))"),
vwa=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)|$))"),swa=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/)"),
PNa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),twa=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)"),rwa=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/.*$)"),
nKa=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)"),
mKa=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)"),
teb=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.BE.prototype.getId=function(){return this.id};
g.BE.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Bwa(this.start)+", "+Bwa(this.end)+"]"};
g.BE.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 Awa=1;g.BE.prototype.getId=g.BE.prototype.getId;FE.prototype.vF=function(){var a=this,b=0;owa(this.j,function(){var c=DD(a.slot.clientMetadata,"metadata_type_ad_break_request_data");b=Date.now();FI(a.Na.get(),"abrs","ct."+b+";cmt."+a.Ia.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({a4:c.getAdBreakUrl,qY:new g.BE(c.Dv,c.Cv),mx:DD(a.slot.clientMetadata,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){Dwa(a)},function(c){var d=Date.now()-b;
FI(a.Na.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ia.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Tw;d.length>=2&&c.ssdaiAdsConfig&&My("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)})||Dwa(a)})};
FE.prototype.fP=function(){pwa(this.j)};GE.prototype.vF=function(){var a=this;owa(this.j,function(){var b=DD(a.slot.clientMetadata,"metadata_type_ad_break_request_data");return a.B.get().fetch({a4:b.getAdBreakUrl,qY:new g.BE(b.Dv,b.Cv)})})};
GE.prototype.fP=function(){pwa(this.j)};HE.prototype.vF=function(){var a=this.slot.clientMetadata,b,c=(b=this.slot.fulfilledLayout)!=null?b:DD(a,"metadata_type_fulfilled_layout");Vva(this.callback,this.slot,c)};
HE.prototype.fP=function(){QD(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")};JE.prototype.build=function(a,b){return b.fulfilledLayout||IE(b,{Od:["metadata_type_fulfilled_layout"]})?new HE(a,b):this.C(a,b)};g.w(KE,JE);
KE.prototype.C=function(a,b){if(IE(b,{Od:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new FE(a,b,this.j,this.B,this.Ue,this.Aa,this.Na,this.Ia,this.Ec);if(IE(b,{Od:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new GE(a,b,this.j,this.B,this.Ue,this.Aa);throw new Z("Unsupported slot with type: "+b.slotType+" and client metadata: "+ED(b.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(LE,JE);LE.prototype.C=function(a,b){throw new Z("Unsupported slot with type: "+b.slotType+" and client metadata: "+ED(b.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.k=Ewa.prototype;g.k.Zb=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.Rf(this.slot,a,new BD("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=DD(a.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.kc(this.slot,a),Vza(this.C,
this.slot,b)):My("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Rf(this.slot,a,new BD("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.Hc(this.slot,a,b),Gwa(this),Hwa(this))};g.w(QE,g.Fx);g.k=QE.prototype;g.k.Zb=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.VQ=function(){};
g.k.TQ=function(){};
g.k.SQ=function(){};
g.k.PK=function(){};
g.k.startRendering=function(a){var b=this;PE(this.B,a,function(){return void b.qN()})};
g.k.qN=function(){this.C.get().qN(this.j)};
g.k.Kd=function(a,b){var c=this;PE(this.B,a,function(){var d=c.C.get();r$a(d,c.j,3);c.j=[];c.callback.Hc(c.slot,a,b)})};
g.k.xa=function(){this.C.Ja()||this.C.get().removeListener(this);g.Fx.prototype.xa.call(this)};
g.fa.Object.defineProperties(QE.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});YE.prototype.Zh=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&Kwa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.z(d))}aF(this,a,c);this.j.add(a);b&&this.j.add(b)};
YE.prototype.ac=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&Kwa(a);c&&(b=!this.j.has(c));this.Zh(a,b)}};g.w(Nwa,Ex);g.w(fF,QE);g.k=fF.prototype;g.k.fg=function(a,b){UE("ads-engagement-panel-layout",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),g.Q(this.Wa().renderingContent,EJ),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new Nwa(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};g.w(Pwa,Ex);g.w(gF,QE);g.k=gF.prototype;g.k.fg=function(a,b){UE("banner-image",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),g.Q(this.Wa().renderingContent,CJ),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new Pwa(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};g.w(hF,Ex);g.w(iF,QE);g.k=iF.prototype;g.k.fg=function(a,b){UE("action-companion",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),g.Q(this.Wa().renderingContent,zJ),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new hF(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.ac("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};g.w(Swa,Ex);g.w(jF,QE);g.k=jF.prototype;g.k.fg=function(a,b){UE("image-companion",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),g.Q(this.Wa().renderingContent,AJ),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new Swa(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.ac("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};g.w(Uwa,Ex);g.w(kF,QE);g.k=kF.prototype;g.k.fg=function(a,b){UE("shopping-companion",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new Uwa(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.ac("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};g.w(mF,QE);g.k=mF.prototype;g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new hF(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(){};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};
g.k.fg=function(){};g.k=$wa.prototype;g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().YE.push(this);var a=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=DD(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");VE(this.layout.zb)&&B0(this.Cb.get(),this.layout.layoutId,{Mt:b,LI:a,listener:this})};
g.k.release=function(){this.Ia.get().removeListener(this);l$a(this.Ia.get(),this);VE(this.layout.zb)&&C0(this.Cb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.kc(this.slot,a)};
g.k.Kd=function(a,b){K9a(this.Aa.get())&&!this.j&&(this.bb.ac("abandon"),this.j=!0);this.callback.Hc(this.slot,a,b)};
g.k.Vj=function(a){switch(a.id){case "part2viewed":this.bb.ac("start");this.bb.ac("impression");break;case "videoplaytime25":this.bb.ac("first_quartile");break;case "videoplaytime50":this.bb.ac("midpoint");break;case "videoplaytime75":this.bb.ac("third_quartile");break;case "videoplaytime100":K9a(this.Aa.get())?this.j||(this.bb.ac("complete"),this.j=!0):this.bb.ac("complete");eF(this.bb)&&cF(this.bb,Infinity,!0);L9a(this.Aa.get())&&lF(this.B,Infinity,!0);break;case "engagedview":eF(this.bb)||this.bb.ac("progress");
break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:My("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.pj=function(){};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ig=function(){};
g.k.Ui=function(){};
g.k.tS=function(a){L9a(this.Aa.get())&&lF(this.B,a*1E3,!1);eF(this.bb)&&cF(this.bb,a*1E3,!1)};
g.k.bk=function(){};
g.k.Ky=function(){this.bb.ac("active_view_measurable")};
g.k.Ly=function(){this.bb.ac("active_view_viewable")};
g.k.Jy=function(){this.bb.ac("active_view_fully_viewable_audible_half_duration")};
g.k.Iy=function(){this.bb.ac("audio_measurable")};
g.k.Hy=function(){this.bb.ac("audio_audible")};g.w(nF,QE);g.k=nF.prototype;g.k.init=function(){QE.prototype.init.call(this);var a=DD(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ub};this.j.push(new Vy(a,this.layout.layoutId,DD(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.Jq=function(){this.D||this.Ia.get().resumeVideo(1)};
g.k.startRendering=function(a){QE.prototype.startRendering.call(this,a);J0(this.Ia.get(),"ad-showing");this.callback.kc(this.slot,a);this.G.Lt=this};
g.k.Kd=function(a,b){QE.prototype.Kd.call(this,a,b);K0(this.Ia.get(),"ad-showing");s1(this.G,this)};
g.k.fg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ia.get().Vo(1))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo()}};
g.k.xa=function(){QE.prototype.xa.call(this)};g.w(oF,Ex);g.w(pF,QE);g.k=pF.prototype;g.k.startRendering=function(a){SE(this.bb,this.Zb(),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 oF(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(){};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};
g.k.fg=function(){};g.w(qF,Ex);g.w(rF,QE);rF.prototype.init=function(){QE.prototype.init.call(this);this.j.push(new qF(g.Q(this.layout.renderingContent,RJ),this.layout.layoutId,{adsClientData:this.layout.Ub}))};
rF.prototype.fg=function(){RK(this.D.get(),this.G)&&TE(this.Na.get(),3)};
rF.prototype.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a)};
rF.prototype.xa=function(){QE.prototype.xa.call(this)};g.w(sF,Ex);g.w(tF,QE);tF.prototype.init=function(){QE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,GF)||DD(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),b=RE(this.bb);this.j.push(new sF(a,b,this.layout.layoutId,{adsClientData:this.layout.Ub},!0,!0))};
tF.prototype.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a)};
tF.prototype.fg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=DD(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.jH(this.Zb(),this.layout)}};
tF.prototype.xa=function(){QE.prototype.xa.call(this)};vF.prototype.build=function(a,b,c,d){if(uF(d,{Od:["metadata_type_ad_break_response_data"],Oe:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Ewa(a,c,d,this.B,this.C,this.j);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.w(cxa,Ex);g.w(wF,QE);g.k=wF.prototype;g.k.fg=function(a,b){UE("ads-engagement-panel",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),g.Q(this.Wa().renderingContent,BJ),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new cxa(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){b.layoutId===this.layout.layoutId?this.bb.ac("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};g.w(xF,QE);g.k=xF.prototype;g.k.fg=function(a,b){UE("top-banner-image-text-icon-buttoned",a,this.L.get().wj,this.Na.get(),this.D,this.G,this.Zb(),this.Wa(),b)};
g.k.startRendering=function(a){SE(this.bb,this.Zb(),this.Wa(),g.Q(this.Wa().renderingContent,DJ),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new oF(b,c,d,e,f)},this.j);
QE.prototype.startRendering.call(this,a)};
g.k.kc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Na.get().Ri():My("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.xa=function(){OD(this.vc(),this);QE.prototype.xa.call(this)};fxa.prototype.build=function(a,b,c,d){if(uF(d,dxa())||g.Q(d.renderingContent,BJ)!==void 0)return new wF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,Rwa())||g.Q(d.renderingContent,zJ)!==void 0)return new iF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,Twa())||g.Q(d.renderingContent,AJ)!==void 0)return new jF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,Vwa()))return new kF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,Zwa()))return new mF(a,c,d,this.Bc,this.Na,this.vc,
this.Cb,this.j);if(uF(d,Qwa())||g.Q(d.renderingContent,CJ)!==void 0)return new gF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,exa())||g.Q(d.renderingContent,DJ)!==void 0)return new xF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,axa()))return new pF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);if(uF(d,Owa())||g.Q(d.renderingContent,EJ)!==void 0)return new fF(a,c,d,this.Bc,this.Na,this.vc,this.Cb,this.j);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+
ED(d.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};gxa.prototype.build=function(a,b,c,d){if(uF(d,{Od:["metadata_type_linked_player_bytes_layout_id"],Oe:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new rF(a,c,d,this.Bc,this.Na,this.j);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=hxa.prototype;g.k.Zb=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.Rf(this.slot,a,new BD("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.kc(this.slot,a),this.bb.ac("impression"),vI(this.Vi,a,"normal"))};
g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Rf(this.slot,a,new BD("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.Hc(this.slot,a,b)};g.k=jxa.prototype;g.k.Zb=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.Rf(this.slot,a,new BD("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.kc(this.slot,a),this.bb.ac("impression"),vI(this.Vi,a,"normal"))};
g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.Rf(this.slot,a,new BD("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.Hc(this.slot,a,b)};yF.prototype.build=function(a,b,c,d){if(!this.Aa.get().K.V().N("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(uF(d,ixa()))return new hxa(a,c,d,this.Na,this.Vi)}else if(uF(d,{Od:[],Oe:["LAYOUT_TYPE_FORECASTING"]}))return new jxa(a,c,d,this.Na,this.Vi);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(mxa,Ex);g.w(zF,QE);g.k=zF.prototype;g.k.init=function(){QE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,FF)||DD(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.Ub};this.j.push(new mxa(a,DD(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.Jq=function(){this.D||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a);this.G.Lt=this};
g.k.Kd=function(a,b){QE.prototype.Kd.call(this,a,b);s1(this.G,this)};
g.k.fg=function(a){if(RK(this.L.get(),this.U))switch(a){case "visit-advertiser-link":TE(this.Na.get(),3)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Vo(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser-link":this.Ia.get().pauseVideo();nxa(this).XM();break;case "skip-button":if(a=nxa(this),
!this.layout.renderingContent&&a.kL)My("Requesting to skip by LegacyPlayerBytes when components enabled"),a.Qy(this.Zb(),this.layout);else{var b;(a=(b=DD(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.jH(this.Zb(),this.layout)}}};
g.k.xa=function(){QE.prototype.xa.call(this)};g.w(AF,QE);g.k=AF.prototype;g.k.init=function(){QE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,EF)||DD(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ub},c;(c=!!this.layout.renderingContent)||(c=!BF(this).kL);this.j.push(new Vy(a,this.layout.layoutId,DD(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Jq=function(){this.D||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a);this.G.Lt=this};
g.k.Kd=function(a,b){QE.prototype.Kd.call(this,a,b);s1(this.G,this)};
g.k.fg=function(a){if(RK(this.L.get(),this.U))switch(a){case "visit-advertiser":TE(this.Na.get(),3)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Vo(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo();BF(this).XM();break;case "skip-button":if(a=BF(this),!this.layout.renderingContent&&
a.kL)My("Requesting to skip by LegacyPlayerBytes"),a.Qy(this.Zb(),this.layout);else{var b;(a=(b=DD(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.jH(this.Zb(),this.layout)}}};
g.k.xa=function(){QE.prototype.xa.call(this)};g.w(pxa,Ex);g.w(CF,QE);g.k=CF.prototype;g.k.startRendering=function(a){var b=this;PE(this.B,a,function(){b.j.push(new pxa(DD(b.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Ub));b.qN();b.callback.kc(b.slot,a);g.T(A0(b.Ia.get(),1),512)&&b.callback.Rf(b.Zb(),b.Wa(),new BD("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Ui=function(){};
g.k.Ig=function(a){if(a.state.isError()){var b;this.callback.Rf(this.Zb(),this.Wa(),new BD("A player error happened during adNotify",{playerErrorCode:(b=a.state.Yg)==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.Dh=function(){};
g.k.Yj=function(){};
g.k.pj=function(){};
g.k.onVolumeChange=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};
g.k.fg=function(){};g.w(rxa,Ex);g.w(DF,QE);DF.prototype.init=function(){QE.prototype.init.call(this);var a=g.Q(this.layout.renderingContent,sxa),b=RE(this.bb);this.j.push(new rxa(a,b,this.layout.layoutId,{adsClientData:this.layout.Ub}))};
DF.prototype.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a)};
DF.prototype.fg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=DD(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.jH(this.Zb(),this.layout)}};
DF.prototype.xa=function(){QE.prototype.xa.call(this)};txa.prototype.build=function(a,b,c,d){if(a=HF(a,c,d,this.Bc,this.Ia,this.Na,this.B,this.j,this.Aa))return a;throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=uxa.prototype;g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().YE.push(this);var a=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=DD(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),c=DD(this.layout.clientMetadata,"metadata_type_active_view_identifier");VE(this.layout.zb)&&B0(this.Cb.get(),this.layout.layoutId,{Mt:b,LI:a,listener:this,F7:c})};
g.k.release=function(){this.Ia.get().removeListener(this);l$a(this.Ia.get(),this);VE(this.layout.zb)&&C0(this.Cb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.kc(this.slot,a)};
g.k.Kd=function(a,b){KF(this,"abandon");this.callback.Hc(this.slot,a,b)};
g.k.Vj=function(a){switch(a.id){case "part2viewed":this.bb.ac("start");this.bb.ac("impression");break;case "videoplaytime25":this.bb.ac("first_quartile");break;case "videoplaytime50":this.bb.ac("midpoint");break;case "videoplaytime75":this.bb.ac("third_quartile");break;case "videoplaytime100":KF(this,"complete");eF(this.bb)&&cF(this.bb,Infinity,!0);break;case "engagedview":eF(this.bb)||this.bb.ac("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:My("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.pj=function(){};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ig=function(a){this.j||(g.Py(a,4)&&!g.Py(a,2)?bF(this.bb,"pause"):Oy(a,4)<0&&!(Oy(a,2)<0)&&bF(this.bb,"resume"))};
g.k.Ui=function(){};
g.k.tS=function(a){eF(this.bb)&&cF(this.bb,a*1E3,!1)};
g.k.bk=function(){KF(this,"swipe")};
g.k.Ky=function(){this.bb.ac("active_view_measurable")};
g.k.Ly=function(){this.bb.ac("active_view_viewable")};
g.k.Jy=function(){this.bb.ac("active_view_fully_viewable_audible_half_duration")};
g.k.Iy=function(){this.bb.ac("audio_measurable")};
g.k.Hy=function(){this.bb.ac("audio_audible")};vxa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.x(ZE()),f=e.next();!f.done;f=e.next())b.push(f.value);if(uF(d,{Od:b,Oe:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new uxa(a,c,d,this.Ia,this.Na,this.Aa,this.Cb):new $wa(a,c,d,this.Ia,this.Na,this.Nb,this.Aa,this.Cb);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var OF={contentCpn:"",Rt:new Map};Fxa.prototype.Rj=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Uf.Tl(),c));this.Uf.K.oa(a,b)};var ueb,f2,Gxa;
ueb={Vga:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",rha:"AUTHENTICATION_MALFORMED",sha:"AUTHENTICATION_MISSING",uha:"BAD_REQUEST",Bha:"CAST_SESSION_DEVICE_MISMATCHED",Cha:"CAST_SESSION_VIDEO_MISMATCHED",Dha:"CAST_TOKEN_EXPIRED",Eha:"CAST_TOKEN_FAILED",Fha:"CAST_TOKEN_MALFORMED",Gha:"CGI_PARAMS_MALFORMED",Hha:"CGI_PARAMS_MISSING",hia:"DEVICE_FALLBACK",Dia:"GENERIC_WITH_LINK_AND_CPN",Eia:"ERROR_HDCP",Fia:"LICENSE",Hia:"VIDEO_UNAVAILABLE",Nia:"FORMAT_UNAVAILABLE",Sia:"GEO_FAILURE",
jja:"HTML5_AUDIO_RENDERER_ERROR",kja:"GENERIC_WITHOUT_LINK",lja:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mja:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",nja:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",oja:"HTML5_SPS_UMP_STATUS_REJECTED",yja:"INVALID_DRM_MESSAGE",mla:"PURCHASE_NOT_FOUND",nla:"PURCHASE_REFUNDED",wla:"RENTAL_EXPIRED",Cla:"RETRYABLE_ERROR",Kla:"SERVER_ERROR",Sla:"SIGNATURE_EXPIRED",Zla:"STOPPED_BY_ANOTHER_PLAYBACK",ama:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",bma:"STREAMING_NOT_ALLOWED",
cma:"STREAM_LICENSE_NOT_FOUND",kma:"TOO_MANY_REQUESTS",lma:"TOO_MANY_REQUESTS_WITH_LINK",mma:"TOO_MANY_STREAMS_PER_ENTITLEMENT",nma:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Jma:"VIDEO_FORBIDDEN",Kma:"VIDEO_NOT_FOUND",xha:"BROWSER_OR_EXTENSION_ERROR"};f2={};
g.AY=(f2.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.",f2.DEVICE_FALLBACK="Sorry, this video is not available on this device.",f2.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",f2.LICENSE="Sorry, there was an error licensing this video.",f2.VIDEO_UNAVAILABLE=
"Video unavailable",f2.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",f2.GEO_FAILURE="This video isn't available in your country.",f2.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",f2.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",f2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",f2.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",
f2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",f2.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",f2.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",f2.PURCHASE_NOT_FOUND="This video requires payment.",f2.PURCHASE_REFUNDED="This video's purchase has been refunded.",f2.RENTAL_EXPIRED="This video's rental has expired.",f2.CAST_SESSION_DEVICE_MISMATCHED=
"The device in the cast session doesn't match the requested one.",f2.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",f2.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",f2.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",f2.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",f2.SERVER_ERROR="There was an internal server error. Please try again later.",f2.STOPPED_BY_ANOTHER_PLAYBACK=
"Your account is playing this video in another location. Please reload this page to resume watching.",f2.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",f2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",f2.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",f2.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",f2.TOO_MANY_REQUESTS="Please log in to watch this video.",
f2.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",f2.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",f2.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",f2.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",f2.VIDEO_FORBIDDEN="Access to this video is forbidden.",f2.VIDEO_NOT_FOUND="This video can not be found.",f2.BROWSER_OR_EXTENSION_ERROR=
"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",f2);
Gxa={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 veb;var web=g.Fb(),xeb=web.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!xeb||xeb.length<2)veb=void 0;else{var yeb=web.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);veb=yeb&&yeb.length===6?Number(yeb[5].replace("_",".")):0}var dR=veb,vY=dR>=0;g.w(g.dG,Ts);g.dG.prototype.T=function(a,b,c,d,e){return Ts.prototype.T.call(this,a,b,c,d,e)};var g2={},wO=(g2.FAIRPLAY="fairplay",g2.PLAYREADY="playready",g2.WIDEVINE="widevine",g2.CLEARKEY=null,g2.FLASHACCESS=null,g2.UNKNOWN=null,g2.WIDEVINE_CLASSIC=null,g2);eG.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var h2={},EM=(h2.WIDTH={name:"width",video:!0,valid:640,Ro:99999},h2.HEIGHT={name:"height",video:!0,valid:360,Ro:99999},h2.FRAMERATE={name:"framerate",video:!0,valid:30,Ro:9999},h2.BITRATE={name:"bitrate",video:!0,valid:3E5,Ro:2E9},h2.EOTF={name:"eotf",video:!0,valid:"bt709",Ro:"catavision"},h2.CHANNELS={name:"channels",video:!1,valid:2,Ro:99},h2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Ro:"invalidformat"},h2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Ro:"nope"},h2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Ro:"av99.0.05M.08"},h2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Ro:"invalid"},h2);var zeb=["h","H"],Aeb=["9","("],Beb=["9h","(h"],Ceb=["8","*"],Deb=["a","A"],Eeb=["o","O"],Feb=["m","M"],Geb=["mac3","MAC3"],Heb=["meac3","MEAC3"],i2={},xJa=(i2.h=zeb,i2.H=zeb,i2["9"]=Aeb,i2["("]=Aeb,i2["9h"]=Beb,i2["(h"]=Beb,i2["8"]=Ceb,i2["*"]=Ceb,i2.a=Deb,i2.A=Deb,i2.o=Eeb,i2.O=Eeb,i2.m=Feb,i2.M=Feb,i2.mac3=Geb,i2.MAC3=Geb,i2.meac3=Heb,i2.MEAC3=Heb,i2),Ieb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),pEa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var j2={},kG=(j2["0"]="f",j2["160"]="h",j2["133"]="h",j2["134"]="h",j2["135"]="h",j2["136"]="h",j2["137"]="h",j2["264"]="h",j2["266"]="h",j2["138"]="h",j2["298"]="h",j2["299"]="h",j2["304"]="h",j2["305"]="h",j2["214"]="h",j2["216"]="h",j2["374"]="h",j2["375"]="h",j2["140"]="a",j2["141"]="ah",j2["327"]="sa",j2["258"]="m",j2["380"]="mac3",j2["328"]="meac3",j2["161"]="H",j2["142"]="H",j2["143"]="H",j2["144"]="H",j2["222"]="H",j2["223"]="H",j2["145"]="H",j2["224"]="H",j2["225"]="H",j2["146"]="H",j2["226"]=
"H",j2["227"]="H",j2["147"]="H",j2["384"]="H",j2["376"]="H",j2["385"]="H",j2["377"]="H",j2["149"]="A",j2["261"]="M",j2["381"]="MAC3",j2["329"]="MEAC3",j2["598"]="9",j2["278"]="9",j2["242"]="9",j2["243"]="9",j2["244"]="9",j2["775"]="9",j2["776"]="9",j2["777"]="9",j2["778"]="9",j2["779"]="9",j2["780"]="9",j2["781"]="9",j2["782"]="9",j2["783"]="9",j2["247"]="9",j2["248"]="9",j2["353"]="9",j2["355"]="9",j2["356"]="9",j2["271"]="9",j2["577"]="9",j2["313"]="9",j2["579"]="9",j2["272"]="9",j2["302"]="9",
j2["303"]="9",j2["407"]="9",j2["408"]="9",j2["308"]="9",j2["315"]="9",j2["330"]="9h",j2["331"]="9h",j2["332"]="9h",j2["333"]="9h",j2["334"]="9h",j2["335"]="9h",j2["336"]="9h",j2["337"]="9h",j2["338"]="so",j2["600"]="o",j2["250"]="o",j2["251"]="o",j2["774"]="o",j2["194"]="*",j2["195"]="*",j2["220"]="*",j2["221"]="*",j2["196"]="*",j2["197"]="*",j2["279"]="(",j2["280"]="(",j2["317"]="(",j2["318"]="(",j2["273"]="(",j2["274"]="(",j2["357"]="(",j2["358"]="(",j2["275"]="(",j2["359"]="(",j2["360"]="(",j2["276"]=
"(",j2["583"]="(",j2["584"]="(",j2["314"]="(",j2["585"]="(",j2["561"]="(",j2["277"]="(",j2["361"]="(h",j2["362"]="(h",j2["363"]="(h",j2["364"]="(h",j2["365"]="(h",j2["366"]="(h",j2["591"]="(h",j2["592"]="(h",j2["367"]="(h",j2["586"]="(h",j2["587"]="(h",j2["368"]="(h",j2["588"]="(h",j2["562"]="(h",j2["409"]="(",j2["410"]="(",j2["411"]="(",j2["412"]="(",j2["557"]="(",j2["558"]="(",j2["394"]="1",j2["395"]="1",j2["396"]="1",j2["397"]="1",j2["398"]="1",j2["399"]="1",j2["720"]="1",j2["721"]="1",j2["400"]=
"1",j2["401"]="1",j2["571"]="1",j2["402"]="1",j2["694"]="1h",j2["695"]="1h",j2["696"]="1h",j2["697"]="1h",j2["698"]="1h",j2["699"]="1h",j2["700"]="1h",j2["701"]="1h",j2["702"]="1h",j2["703"]="1h",j2["386"]="3",j2["387"]="w",j2["406"]="6",j2["787"]="1",j2["788"]="1",j2["645"]="(",j2["646"]="(",j2["647"]="(",j2["648"]="(",j2["649"]="(",j2["650"]="(",j2["651"]="(",j2["652"]="(",j2["653"]="(",j2["654"]="(",j2["655"]="(",j2["656"]="(",j2["657"]="(",j2["658"]="(",j2["659"]="(",j2["660"]="(",j2["661"]="(",
j2["662"]="(",j2["663"]="(",j2["664"]="(",j2["665"]="(",j2["666"]="(",j2["667"]="(",j2["668"]="(",j2["669"]="(",j2["670"]="(",j2["671"]="(",j2["672"]="(",j2["673"]="(",j2["674"]="(h",j2["675"]="(h",j2["676"]="(h",j2["677"]="(h",j2["678"]="(h",j2["679"]="(h",j2["680"]="(h",j2["681"]="(h",j2["682"]="(h",j2["683"]="(h",j2["684"]="(h",j2["685"]="(h",j2["686"]="(h",j2["687"]="(h",j2["688"]="A",j2["689"]="A",j2["690"]="A",j2["691"]="MEAC3",j2["773"]="i",j2["806"]="I",j2["805"]="I",j2);var k2={},eGa=(k2.STEREO_LAYOUT_UNKNOWN=0,k2.STEREO_LAYOUT_LEFT_RIGHT=1,k2.STEREO_LAYOUT_TOP_BOTTOM=2,k2);var l2,qM;l2={};g.gG=(l2.auto=0,l2.tiny=144,l2.light=144,l2.small=240,l2.medium=360,l2.large=480,l2.hd720=720,l2.hd1080=1080,l2.hd1440=1440,l2.hd2160=2160,l2.hd2880=2880,l2.highres=4320,l2);qM={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var iG="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");hG.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};lG.prototype.Re=function(){return this.containerType===2};
lG.prototype.isEncrypted=function(){return!!this.le};
lG.prototype.Kf=function(){return!!this.audio};
lG.prototype.Of=function(){return!!this.video};g.w(HG,g.Fx);g.k=HG.prototype;g.k.appendBuffer=function(a,b,c){if(this.Jd.BF()!==this.appendWindowStart+this.start||this.Jd.nK()!==this.appendWindowEnd+this.start||this.Jd.Mc()!==this.timestampOffset+this.start)this.Jd.supports(1),this.Jd.eU(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Jd.Mn(this.timestampOffset+this.start);this.Jd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Jd.abort()};
g.k.remove=function(a,b){this.Jd.remove(a+this.start,b+this.start)};
g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Jd.clear()};
g.k.eU=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.NQ=function(){return this.timestampOffset+this.start};
g.k.BF=function(){return this.appendWindowStart};
g.k.nK=function(){return this.appendWindowEnd};
g.k.Mn=function(a){this.timestampOffset=a};
g.k.Mc=function(){return this.timestampOffset};
g.k.Ke=function(a){a=this.Jd.Ke(a===void 0?!1:a);return GG(a,this.start,this.end)};
g.k.Tk=function(){return this.Jd.Tk()};
g.k.LK=function(){return this.Jd.LK()};
g.k.un=function(){return this.Jd.un()};
g.k.tR=function(){return this.Jd.tR()};
g.k.nA=function(){this.Jd.nA()};
g.k.iy=function(a){return this.Jd.iy(a)};
g.k.zx=function(){return this.Jd.zx()};
g.k.wK=function(){return this.Jd.wK()};
g.k.nQ=function(){return this.Jd.nQ()};
g.k.bV=function(a,b,c){this.Jd.bV(a,b,c)};
g.k.cV=function(a,b,c){this.Jd.cV(a,b,c)};
g.k.OH=function(a,b){return this.Jd.OH(a,b)};
g.k.supports=function(a){return this.Jd.supports(a)};
g.k.MF=function(){return this.Jd.MF()};
g.k.isView=function(){return!0};
g.k.EJ=function(){return this.Jd.EJ()?this.isActive:!1};
g.k.isLocked=function(){return this.OI&&!this.isActive};
g.k.wc=function(a){a=this.Jd.wc(a);a.vw=this.start+"-"+this.end;return a};
g.k.xK=function(){return this.Jd.xK()};
g.k.OA=function(){return this.Jd.OA()};
g.k.HQ=function(){return this.Jd.HQ()};
g.k.xa=function(){Hx(this.Jd,this.GZ);g.Fx.prototype.xa.call(this)};var HU=!1;g.w(JG,g.Fx);g.k=JG.prototype;g.k.appendBuffer=function(a,b,c){this.QE=!1;c&&(this.wG=c);if(a.length){var d;((d=this.Rb)==null?0:d.appendBuffer)?this.Rb.appendBuffer(a):this.Rb?this.Rb.append(a):this.Ih&&this.Ih.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.KR=this.wG),b.type===3&&(this.Pf=b),this.vG.push(b.Cc()),this.vG.length>4&&this.vG.shift());this.AC&&(this.AC.length>=2||a.length>1048576?delete this.AC:this.AC.push(a))};
g.k.abort=function(){try{this.Rb?this.Rb.abort():this.Ih&&this.Ih.webkitSourceAbort(this.id)}catch(a){H6a&&g.ex(new g.lt("Error while abort the source buffer: "+a.name+", "+a.message))}this.wG=this.Pf=null};
g.k.remove=function(a,b,c){this.QE=!1;var d;if((d=this.Rb)==null?0:d.remove)c&&c({b:AG(this.Ke()),s:a,e:b}),this.Rb.remove(a,b)};
g.k.removeAll=function(){this.remove(this.BF(),this.nK())};
g.k.clear=function(){this.un()||(this.abort(),this.removeAll(),this.KR=this.wG=this.Pf=null,this.appendWindowStart=this.timestampOffset=0,this.bP=zG([],[]),this.QE=!1,this.AC=IG?[]:void 0,this.IJ=!0)};
g.k.BF=function(){if(HU&&this.Of)return this.appendWindowStart;var a;return((a=this.Rb)==null?void 0:a.appendWindowStart)||0};
g.k.nK=function(){var a;return((a=this.Rb)==null?void 0:a.appendWindowEnd)||0};
g.k.eU=function(a,b){this.Rb&&(HU&&this.Of?(this.appendWindowStart=a,this.Rb.appendWindowEnd=b):a>this.BF()?(this.Rb.appendWindowEnd=b,this.Rb.appendWindowStart=a):(this.Rb.appendWindowStart=a,this.Rb.appendWindowEnd=b))};
g.k.NQ=function(){return this.timestampOffset};
g.k.Mn=function(a){HU?this.timestampOffset=a:this.supports(1)&&(this.Rb.timestampOffset=a)};
g.k.Mc=function(){return HU?this.timestampOffset:this.supports(1)?this.Rb.timestampOffset:0};
g.k.Ke=function(a){if(a===void 0?0:a)return this.QE||this.Tk()||(this.bP=this.Ke(!1),this.QE=!0),this.bP;try{return this.Rb?this.Rb.buffered:this.Ih?this.Ih.webkitSourceBuffered(this.id):zG([0],[Infinity])}catch(b){return zG([],[])}};
g.k.Tk=function(){var a;return((a=this.Rb)==null?void 0:a.updating)||!1};
g.k.un=function(){return this.IJ};
g.k.tR=function(){return!this.IJ&&this.Tk()};
g.k.nA=function(){this.IJ=!1};
g.k.iy=function(a){var b=a==null?void 0:a.ob;a=a==null?void 0:a.containerType;return!b&&!a||b===this.ob&&a===this.containerType};
g.k.zx=function(){return this.wG};
g.k.wK=function(){return this.KR};
g.k.OH=function(a,b){return this.containerType!==a||this.ob!==b};
g.k.bV=function(a,b,c){if(this.containerType!==a||c&&this.OH(a,c))this.supports(4),KG()&&this.Rb.changeType(b),c&&(this.ob=c);this.containerType=a};
g.k.cV=function(a,b,c){this.containerType&&this.OH(a,b)&&KG()&&this.Rb.changeType(c);this.containerType=a;this.ob=b};
g.k.MF=function(){return this.Pf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Rb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Rb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Rb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Rb)==null?0:e.addEventListener)&&((f=this.Rb)==null?0:f.removeEventListener));case 4:return!(!this.Rb||!this.Rb.changeType);default:return!1}};
g.k.EJ=function(){return!this.Tk()};
g.k.isLocked=function(){return!1};
g.k.wc=function(a){a.to=this.Mc();a.up=this.Tk();var b,c=((b=this.Rb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Rb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);return a};
g.k.LK=function(){var a;return((a=this.Rb)==null?void 0:a.writeHead)||0};
g.k.xK=function(){for(var a={},b=0;b<this.vG.length;b++)a["s"+b]=this.vG[b];return a};
g.k.xa=function(){this.supports(3)&&(this.Rb.removeEventListener("updateend",this.Md),this.Rb.removeEventListener("error",this.Md));g.Fx.prototype.xa.call(this)};
g.k.OA=function(){return this.containerType};
g.k.nQ=function(){return this.ob};
g.k.HQ=function(){return this.AC};
var IG=!1,H6a=!1;LG.prototype.dispose=function(){if(!this.Ja){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
LG.prototype.Ja=function(){return this.B};
LG.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.w(MG,g.O);g.k=MG.prototype;g.k.getDuration=function(){var a;return((a=this.Ra)==null?void 0:a.duration)||this.Z};
g.k.Zq=function(a){try{this.Ra?this.Ra.duration=a:(this.Z=a,this.Ih.webkitSourceSetDuration(a))}catch(b){}};
g.k.dh=function(){try{return SG(this)==="closed"}catch(a){return!0}};
g.k.Tk=function(){return!!(this.j&&this.j.Tk()||this.B&&this.B.Tk())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):TG()};
g.k.kda=function(){!this.Ja()&&NG(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.jda=function(){this.dispose()};
g.k.o6=function(a){if(OG&&!this.D&&a.un()&&a.Ke().length===0){var b;PG(this.mediaElement,{l:"mswoue",sr:(b=this.mediaElement.ma)==null?void 0:QG(b)},!1);a.nA();this.un()||(this.mediaElement.bL=!0,this.mediaElement.setCurrentTime(0))}};
g.k.eP=function(){return!!this.j.supports(2)};
g.k.clear=function(){Qxa(this,function(){});
var a;(a=this.j)==null||a.clear();var b;(b=this.B)==null||b.clear()};
g.k.un=function(){var a,b;return((a=this.B)==null?void 0:a.un())||((b=this.j)==null?void 0:b.un())};
g.k.iy=function(a,b){return!!this.j&&!!this.B&&this.j.iy(b)&&this.B.iy(a)};
var OG=!1;UG.prototype.then=function(a,b){return this.promise.then(a,b)};
UG.prototype.resolve=function(a){this.yC(a)};
UG.prototype.reject=function(a){this.FT(a)};g.w(VG,g.O);g.k=VG.prototype;g.k.gJ=function(){return this.resource};
g.k.activate=function(a){var b="";a&&(Zxa(this,a),b=a.resource);if(!this.xi()||b)b&&this.xi()!==b&&(this.kN(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.gU(!(a==null||!a.j))),a&&a.j||this.load(),this.U||(this.addEventListener("volumechange",this.eY),this.U=!0)};
g.k.Xr=function(a,b){if(this.B)if(G6a&&RG(this.B)&&!this.B.iy(a,b)){var c;PG(this,{l:"megms",sr:(c=this.ma)==null?void 0:QG(c)});Xxa(this);this.stopVideo()}else return this.Ra=this.B,this.B=void 0,this.Ra;a=window.MediaSource?new MG(this,new window.MediaSource,!1):window.ManagedMediaSource?new MG(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new MG(this,new window.WebKitMediaSource,!1):new MG(this,void 0,!1);this.activate(a.C);this.Ra=a;this.bL=!1;return a};
g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.xi()&&this.resource&&(g.ex(Error("playVideo without src")),this.kN(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;((c=this.ma)==null?0:c.N("html5_remove_ios_7_hack_force_play"))||!b&&vY&&(dR||0)>=7&&Ixa(this,function(){g.Hr(function(){Yxa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){this.Jl()>0&&(vY&&dR<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.tp=function(){if(!this.B&&this.Ra)if(this.Ra.G)try{var a;PG(this,{l:"mer",sr:(a=this.ma)==null?void 0:QG(a),rs:SG(this.Ra)});this.Ra.clear();this.B=this.Ra;this.Ra=void 0}catch(b){a=new g.lt("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.ex(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Ra)==null||Vxa(b);if(E6a){if(!this.C){var c=new UG;c.then(void 0,function(){});
this.C=c;F6a&&this.pause();g.Hr(function(){a.C===c&&(YG(a),c.resolve())},200)}}else YG(this)}};
g.k.RA=function(){var a=this.Rh();return EG(a)>0&&this.getDuration()?DG(a,this.getCurrentTime()):0};
g.k.Cx=function(){var a=this.getDuration();return a===Infinity?1:a?this.RA()/a:0};
g.k.wc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:AG(this.Gx(),",",3),vbu:AG(this.Rh()),vbs:AG(this.WA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Jl(),vns:""+this.zK(),vec:""+this.Th(),vemsg:this.dg(),vvol:""+this.getVolume(),vdom:""+ +this.uR(),vsrc:""+ +!!this.xi(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return this.Th()>0};
g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.WP(a)};
g.k.removeEventListener=function(a,b){this.D.Nc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(G6a){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.Ra;if((c==null?0:c.un())||b<=((c==null?void 0:c.L)||0)){var d;PG(this,{l:"mede",sr:(d=this.ma)==null?void 0:QG(d),et:a.type});return!1}if(this.bL)return PG(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.L=performance.now(),this.bL=!1),!1}return this.D.dispatchEvent(a)};
g.k.TP=function(){this.L=!1};
g.k.PP=function(){this.L=!0;this.HC(!0)};
g.k.eY=function(){this.L&&!this.yK()&&this.HC(!0)};
g.k.xa=function(){this.U&&this.removeEventListener("volumechange",this.eY);E6a&&YG(this);g.O.prototype.xa.call(this)};
var E6a=!1,F6a=!1,G6a=!1;g.k=g.$G.prototype;g.k.isPaused=function(){return g.T(this,4)};
g.k.isPlaying=function(){return g.T(this,8)&&!g.T(this,512)&&!g.T(this,64)&&!g.T(this,2)};
g.k.isOrWillBePlaying=function(){return g.T(this,8)&&!g.T(this,2)&&!g.T(this,1024)};
g.k.isCued=function(){return g.T(this,64)&&!g.T(this,8)&&!g.T(this,4)};
g.k.isBuffering=function(){return g.T(this,1)&&!g.T(this,2)};
g.k.isError=function(){return g.T(this,128)};
g.k.isSuspended=function(){return g.T(this,512)};
g.k.oG=function(){return g.T(this,64)&&g.T(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var m2={},n2=(m2.BUFFERING="buffering-mode",m2.CUED="cued-mode",m2.ENDED="ended-mode",m2.PAUSED="paused-mode",m2.PLAYING="playing-mode",m2.SEEKING="seeking-mode",m2.UNSTARTED="unstarted-mode",m2);g.w(QH,g.O);g.k=QH.prototype;g.k.Ho=function(){return this.C};
g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){var a=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=DD(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");VE(this.layout.zb)&&B0(this.Cb.get(),this.layout.layoutId,{Mt:b,LI:a,listener:this,Uo:this.qf()});d$a(this.Na.get(),this);a=this.Xh;b=this.layout.layoutId;var c={Uo:this.qf()};a.j.set(b,c);this.dL()};
g.k.lB=function(){};
g.k.release=function(){VE(this.layout.zb)&&C0(this.Cb.get(),this.layout.layoutId);e$a(this.Na.get(),this);this.Xh.j.delete(this.layout.layoutId);this.fz()};
g.k.Qs=function(){};
g.k.Ts=function(){};
g.k.startRendering=function(a){RF(RH(this));if(SH(this,a)){var b=this.j;SF(b.params.ej.Aa.get(),!0)&&Exa(b,"p_sr",{});TH(this);this.wz(a);this.qf()||this.vJ(!1)}};
g.k.kc=function(a,b){if(b.layoutId===this.layout.layoutId){this.pc="rendering";this.B=this.Ia.get().isMuted()||this.Ia.get().getVolume()===0;this.ac("impression");this.ac("start");if(this.Ia.get().isMuted()){ZH(this,"mute");var c;a=((c=PH(this))==null?void 0:c.muteCommands)||[];oE(this.Nb.get(),a,this.layout.layoutId)}if(this.Ia.get().isFullscreen()){this.Zh("fullscreen");var d;c=((d=PH(this))==null?void 0:d.fullscreenCommands)||[];oE(this.Nb.get(),c,this.layout.layoutId)}this.qf()||(d=this.Kc.get(),
d.C&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(zA("pbs",void 0,d.actionType),g.Mr("finalize_all_timelines")&&sua(d.actionType))));this.In(1);this.HS(b);var e;b=((e=PH(this))==null?void 0:e.impressionCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.YL=function(a,b,c){this.U={QN:3,JI:a==="load_timeout"?402:400,errorMessage:b.message};this.ac("error");var d;a=((d=PH(this))==null?void 0:d.errorCommands)||[];oE(this.Nb.get(),a,this.layout.layoutId);this.qf()||this.zp.Rf(this.slot,this.layout,b,c)};
g.k.G3=function(){if(this.pc==="rendering"){ZH(this,"pause");var a,b=((a=PH(this))==null?void 0:a.pauseCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId);this.In(2)}};
g.k.H3=function(){if(this.pc==="rendering"){ZH(this,"resume");var a,b=((a=PH(this))==null?void 0:a.resumeCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.Cz=function(a,b){b=b===void 0?!1:b;if(this.pc==="rendering"){var c={currentTimeSec:a,flush:b};TF(this.j,"p_ip",c);cF(this.bb,a*1E3,b);this.B||cF(this.bb,a*1E3,b===void 0?!1:b);var d=this.PA();if(d){d/=1E3;if(a>=d*.25||b)this.ac("first_quartile"),TF(this.j,"p_fq",c);if(a>=d*.5||b)this.ac("midpoint"),TF(this.j,"p_sq",c);if(a>=d*.75||b)this.ac("third_quartile"),TF(this.j,"p_tq",c);this.Aa.get().K.V().experiments.fb("enable_progress_command_flush_on_kabuki")?lF(this.D,a*1E3,b):lF(this.D,a*1E3,fya(this)?
b:!1)}}};
g.k.Tl=function(){var a;return((a=UH(this.Sa.get(),1))==null?void 0:a.clientPlaybackNonce)||""};
g.k.Dz=function(a,b){a.layoutId!==this.layout.layoutId?this.zp.Rf(this.slot,a,new BD("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.Hc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.pc="not_rendering",this.layoutExitReason=void 0,this.qf()||(a=c!=="normal"||this.position+1===this.L)&&this.vJ(a),this.F3(c),this.In(0),c){case "abandoned":if(dF(this.bb,"impression")){var d,e=((d=PH(this))==null?void 0:d.abandonCommands)||[];oE(this.Nb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=PH(this))==null?void 0:e.completeCommands)||[];oE(this.Nb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f=
PH(this))==null?void 0:f.skipCommands)||[];oE(this.Nb.get(),d,this.layout.layoutId)}};
g.k.QA=function(){return this.layout.layoutId};
g.k.jQ=function(){return this.U};
g.k.Ky=function(){if(this.pc==="rendering"){this.bb.ac("active_view_measurable");var a,b=((a=PH(this))==null?void 0:a.activeViewMeasurableCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.Jy=function(){if(this.pc==="rendering"){this.bb.ac("active_view_fully_viewable_audible_half_duration");var a,b=((a=PH(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.Ly=function(){if(this.pc==="rendering"){this.bb.ac("active_view_viewable");var a,b=((a=PH(this))==null?void 0:a.activeViewViewableCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.Hy=function(){if(this.pc==="rendering"){this.bb.ac("audio_audible");var a,b=((a=PH(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.Iy=function(){if(this.pc==="rendering"){this.bb.ac("audio_measurable");var a,b=((a=PH(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}};
g.k.vJ=function(a){this.Kc.get().vJ(DD(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,a,this.position,this.L,!1)};
g.k.onFullscreenToggled=function(a){if(this.pc==="rendering")if(a){this.Zh("fullscreen");var b,c=((b=PH(this))==null?void 0:b.fullscreenCommands)||[];oE(this.Nb.get(),c,this.layout.layoutId)}else this.Zh("end_fullscreen"),b=((c=PH(this))==null?void 0:c.endFullscreenCommands)||[],oE(this.Nb.get(),b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if(this.pc==="rendering")if(this.Ia.get().isMuted()){ZH(this,"mute");var a,b=((a=PH(this))==null?void 0:a.muteCommands)||[];oE(this.Nb.get(),b,this.layout.layoutId)}else ZH(this,"unmute"),a=((b=PH(this))==null?void 0:b.unmuteCommands)||[],oE(this.Nb.get(),a,this.layout.layoutId)};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.pj=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};
g.k.Zh=function(a){this.bb.Zh(a,!this.B)};
g.k.ac=function(a){this.bb.ac(a,!this.B)};
g.k.qf=function(){var a=DD(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(My("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Aa.get().qf(a)};g.w(dI,QH);g.k=dI.prototype;g.k.dL=function(){};
g.k.fz=function(){var a=this.Na.get();a.uI===this&&(a.uI=null);this.ye.stop()};
g.k.Qs=function(){this.ye.stop();QH.prototype.G3.call(this)};
g.k.Ts=function(){fI(this);QH.prototype.H3.call(this)};
g.k.PA=function(){return DD(this.Wa().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Kd=function(a,b){var c=this;this.Dz(a,function(){c.pc!=="rendering_stop_requested"&&(c.pc="rendering_stop_requested",c.layoutExitReason=b,VH(c,b),c.ye.stop())})};
g.k.Uc=function(){var a=Date.now(),b=a-this.NR;this.NR=a;this.xj+=b;this.xj>=this.PA()?this.yZ():(this.Cz(this.xj/1E3),eI(this,this.xj))};
g.k.F3=function(){};
g.k.Ui=function(){};
g.w(gI,dI);g.k=gI.prototype;g.k.Ig=function(a){if(this.pc!=="not_rendering"){a=WH(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.pc==="rendering_start_requested"?b&&IF(a)&&this.LJ():b?g.Py(a,2)?My("Receive player ended event during MediaBreak",this.Zb(),this.Wa()):XH(this,a):this.XA()}};
g.k.wz=function(){dya(this);o$a(this.Ia.get());this.Na.get().uI=this;xA("pbp")||xA("pbs")||zA("pbp");xA("pbp","watch")||xA("pbs","watch")||zA("pbp",void 0,"watch");this.LJ()};
g.k.HS=function(a){this.Kc.get();var b=DD(a.clientMetadata,"metadata_type_ad_placement_config").kind,c=this.position===0;a=DD(a.clientMetadata,"metadata_type_linked_in_player_layout_type");a={adBreakType:YH(b),adType:qya(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";uA("ad_mbs",void 0,d);g.vA(a,d);fI(this)};
g.k.XA=function(){this.VE()};
g.k.yZ=function(){hya(this);this.VE()};
g.w(hI,dI);g.k=hI.prototype;g.k.Ig=function(a){this.pc!=="not_rendering"&&(a=WH(this,a),XH(this,a))};
g.k.wz=function(){My("Not used in SSAP")};
g.k.HS=function(){fI(this)};
g.k.XA=function(){My("Not used in SSAP")};
g.k.yZ=function(){hya(this);this.zp.wC(this.Zb(),this.Wa(),"normal")};
g.w(iI,hI);iI.prototype.Kd=function(a,b){var c=this;this.Dz(a,function(){MF(c.C,b)&&(c.pc="rendering_stop_requested",c.layoutExitReason=b,VH(c,b),c.ye.stop())})};
iI.prototype.startRendering=function(a){RF(RH(this));SH(this,a)&&(TH(this),this.Na.get().uI=this)};g.w(lI,QH);g.k=lI.prototype;g.k.XA=function(){this.VE()};
g.k.Ig=function(a){if(this.pc!=="not_rendering"){a=WH(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.pc==="rendering_start_requested"?b&&IF(a)&&this.LJ():!b||g.Py(a,2)?this.VE():XH(this,a)}};
g.k.dL=function(){DD(this.Wa().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=DD(this.Wa().clientMetadata,"metadata_type_shrunken_player_bytes_config")};
g.k.fz=function(){DD(this.Wa().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Or){var a=this.context.ej,b=this.Or,c=this.Wa().layoutId;if(SF(a.Aa.get(),!0)){var d={};a.Rj("mccru",(d.cid=b,d.p_ac=c,d))}this.Wc.get().removeCueRange(this.Or)}this.Or=void 0;var e;(e=this.IL)==null||e.dispose();this.LB&&this.LB.dispose()};
g.k.wz=function(a){var b=jI(this.Aa.get()),c=kI(this.Aa.get());if(b&&c&&!this.qf()){c=DD(a.clientMetadata,"metadata_type_preload_player_vars");var d=g.KD(this.Aa.get().K.V().experiments,"html5_preload_wait_time_secs");c&&this.LB&&this.LB.start(d*1E3)}kya(this,a);dya(this);b?(c=this.Ad.get(),a=DD(a.clientMetadata,"metadata_type_player_vars"),c.K.loadVideoByPlayerVars(a,!1,2)):x$a(this.Ad.get(),DD(a.clientMetadata,"metadata_type_player_vars"));var e;(e=this.IL)==null||e.start();b||this.Ad.get().K.playVideo(2)};
g.k.HS=function(){var a;(a=this.IL)==null||a.stop();this.Or="adcompletioncuerange:"+this.Wa().layoutId;this.Wc.get().addCueRange(this.Or,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.ej;var b=this.Or,c=this.Wa().layoutId;if(SF(a.Aa.get(),!0)){var d={};a.Rj("mccr",(d.cid=b,d.p_ac=c,d))}(this.adCpn=cya(this))||My("Media layout confirmed started, but ad CPN not set.");this.ud.get().Ss("onAdStart",this.adCpn);this.yX=Date.now()};
g.k.PA=function(){var a;return(a=UH(this.Sa.get(),2))==null?void 0:a.Sda};
g.k.XM=function(){this.bb.Zh("clickthrough")};
g.k.Kd=function(a,b){var c=this;this.Dz(a,function(){if(c.pc!=="rendering_stop_requested"){c.pc="rendering_stop_requested";c.layoutExitReason=b;VH(c,b);var d;(d=c.IL)==null||d.stop();c.LB&&c.LB.stop();lya(c)}})};
g.k.onCueRangeEnter=function(a){if(a!==this.Or)My("Received CueRangeEnter signal for unknown layout.",this.Zb(),this.Wa(),{cueRangeId:a});else{var b=this.context.ej,c=this.Wa().layoutId;if(SF(b.Aa.get(),!0)){var d={};b.Rj("mccre",(d.cid=a,d.p_ac=c,d))}this.Wc.get().removeCueRange(this.Or);this.Or=void 0;sE(this.context.Aa.get(),"html5_ssap_flush_at_stop_rendering")&&this.qf()||(a=DD(this.Wa().clientMetadata,"metadata_type_video_length_seconds"),this.Cz(a,!0),this.ac("complete"))}};
g.k.F3=function(a){a!=="abandoned"&&this.ud.get().Ss("onAdComplete");this.ud.get().Ss("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Ui=function(a){this.pc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ia.get().er(!0),this.Cz(a))};
g.k.Cz=function(a,b){QH.prototype.Cz.call(this,a,b===void 0?!1:b);b=Date.now()-this.yX;var c=a*1E3,d={contentCpn:this.Tl(),adCpn:cya(this)};if(a>=5&&!this.KZ){var e=b<1E3?0:1;Jy(e,"i.k_",{metadata:d,wX:b,xX:Math.floor(c/1E3)});lr("IKDSTAT",e);e===0&&mya(this)&&this.ud.get().Ss("onAbnormalityDetected");this.KZ=!0}this.Aa.get().K.V().experiments.fb("enable_ik_opt")&&a-this.A_>=5&&(e=b<c*.4?0:1,Jy(e,"n.k_",{metadata:d,wX:b,xX:Math.floor(c/1E3)}),lr("NKDSTAT",e),this.Aa.get().K.V().experiments.fb("enable_ik_opt_enf")&&
e===0&&mya(this)&&this.ud.get().Ss("onAbnormalityDetected"),this.A_=a)};g.w(mI,lI);mI.prototype.Ig=function(a){this.pc!=="not_rendering"&&(a=WH(this,a),XH(this,a))};
mI.prototype.wz=function(){My("Not used in SSAP")};
g.w(nI,mI);nI.prototype.Kd=function(a,b){var c=this;this.Dz(a,function(){if(MF(c.C,b)){c.pc="rendering_stop_requested";c.layoutExitReason=b;VH(c,b);if(sE(c.context.Aa.get(),"html5_ssap_flush_at_stop_rendering")&&b==="normal"){var d=DD(c.Wa().clientMetadata,"metadata_type_video_length_seconds");c.Cz(d,!0)}lya(c)}})};
nI.prototype.startRendering=function(a){RF(RH(this));SH(this,a)&&(TH(this),kya(this,a))};g.w(pI,g.O);g.k=pI.prototype;g.k.init=function(){var a=DD(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Sa.get().addListener(this);this.yd.init();wxa([this.layout],this.Sa.get());this.PO()};
g.k.PO=function(){var a=DD(this.yd.Wa().clientMetadata,"metadata_type_player_vars");a?this.Ad.get().addPlayerResponseForAssociation({playerVars:a}):(a=rya(this.yd.Wa()),this.Ad.get().addPlayerResponseForAssociation({QJ:a}))};
g.k.lM=function(){};
g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.Qs=function(){this.yd.Qs()};
g.k.Ts=function(){this.yd.Ts()};
g.k.Qy=function(){My("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.k.kc=function(a,b){this.yd.kc(a,b)};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.Ui=function(a){this.yd.Ui(a)};
g.k.onFullscreenToggled=function(a){this.yd.onFullscreenToggled(a)};
g.k.Dh=function(a){this.yd.Dh(a)};
g.k.pj=function(a){this.yd.pj(a)};
g.k.onVolumeChange=function(){this.yd.onVolumeChange()};
g.k.Vj=function(){};
g.k.bk=function(){};
g.k.Yj=function(){};
g.k.hL=function(){return this.Ia.get().getPresentingPlayerType()===2};
g.k.VG=function(a){Bxa({cpn:a,Uf:this.Sa.get(),Bs:!0});this.layout.layoutId===a&&(hCa(this.ke,this.slot.slotId),this.vt.kc(this.slot,this.layout))};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void My("wrong layout");this.Ia.get().addListener(this);ND(this.vc(),this);this.yd.startRendering(this.layout)};
g.k.Ig=function(a){this.yd.Ig(a)};
g.k.Hc=function(a,b,c){this.yd.Hc(a,b,c)};
g.k.release=function(){this.Sa.get().removeListener(this);this.yd.release();xxa();OD(this.vc(),this)};
g.k.Mv=function(){return sE(this.params.context.Aa.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.k.Kd=function(a,b){a.layoutId!==this.layout.layoutId?My("wrong layout"):this.Mv()&&this.yd.Ho().currentState>=2||(this.yd.Kd(this.layout,b),a=sE(this.params.context.Aa.get(),"html5_ssap_pass_transition_reason")&&b==="abandoned",this.hL()&&!a&&(sE(this.params.context.Aa.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(b)||My("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:b})),this.Ec.get().finishSegmentByCpn(this.layout.layoutId,
UH(this.Sa.get(),1).clientPlaybackNonce,aI(b,this.params.context.Aa))),this.Ia.get().removeListener(this),this.Mv()&&NF(this.yd.Ho())&&this.vt.Hc(this.slot,this.layout,this.yd.Ho().j))};
g.k.WG=function(a,b,c){Cxa({cpn:a,Uf:this.Sa.get(),Bs:!0});this.Wa().layoutId!==a||sE(this.params.context.Aa.get(),"html5_ssap_pass_transition_reason")&&c===5||(this.yd.Ho().currentState<2&&(a=bI(c,this.params.context.Aa),a==="error"?this.vt.Rf(this.slot,this.layout,new BD("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"):vI(this.nf,
this.layout,a)),sE(this.params.context.Aa.get(),"html5_ssap_exit_without_waiting_for_transition")||this.vt.Hc(this.slot,this.layout,this.yd.Ho().j))};g.w(qI,g.O);g.k=qI.prototype;g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.lM=function(){};
g.k.Hf=function(){return this.Yh[this.DE]};
g.k.Sl=function(){return this.DE};
g.k.Qs=function(a,b){var c=this.Hf();b.layoutId!==sI(c,a,b)?My("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Qs()};
g.k.Ts=function(a,b){var c=this.Hf();b.layoutId!==sI(c,a,b)?My("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Ts()};
g.k.Qy=function(a,b){var c=this.Hf();vya(this,a,b);wya(c,a,b)&&this.jK(c.Zb(),c.Wa(),"skipped")};
g.k.jH=function(a,b){var c=this.Hf();xya(this);yya(c,a,b)&&(a=zya(this,c,a,b),a!==void 0&&(this.qf()?My("Should not happen. Should delete"):Bya(this,c.Zb(),c.Wa(),a)))};
g.k.e1=function(a,b){var c=Object.assign({},rI(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Bs;if(c.Uo){var f={};QF(c.Uf,"wrse",(f.ec=d,f.is=e,f.ctp=PF(d),f))}ZD(this.xp,a,b)};
g.k.kc=function(a,b){var c;(c=this.Hf())==null||c.kc(a,b)};
g.k.Hc=function(a,b,c){b.layoutId===this.Wa().layoutId&&(this.Rx=!1,OD(this.vc(),this));var d;(d=this.Hf())==null||d.Hc(a,b,c)};
g.k.Ui=function(a){var b;(b=this.Hf())==null||b.Ui(a)};
g.k.QK=function(a,b,c){this.Sl()===-1&&(this.callback.kc(this.slot,this.layout),this.DE++);var d=this.Hf();d?(d.YL(a,b,c),this.qf()&&this.callback.Rf(this.slot,this.layout,b,c)):My("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Sl()),layoutId:this.Wa().layoutId})};
g.k.onFullscreenToggled=function(a){var b;(b=this.Hf())==null||b.onFullscreenToggled(a)};
g.k.Dh=function(a){var b;(b=this.Hf())==null||b.Dh(a)};
g.k.pj=function(a){var b;(b=this.Hf())==null||b.pj(a)};
g.k.onVolumeChange=function(){var a;(a=this.Hf())==null||a.onVolumeChange()};
g.k.xP=function(a,b,c){$D(this.xp,a,b,c)};
g.k.HU=function(a){a.startRendering(a.Wa())};
g.k.init=function(){var a=DD(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Yh.length<1)throw new Z("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Yh.length)});if(a=DD(this.Wa().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.x(this.Yh);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),Wva(this.xp,this.slot,b.Wa()),Xva(this.xp,this.slot,b.Wa());
if(this.qf())for(this.Sa.get().addListener(this),wxa(uya(this),this.Sa.get()),a=uya(this),a=g.x(a),b=a.next();!b.done;b=a.next())this.PO(b.value)};
g.k.PO=function(a){var b=DD(a.clientMetadata,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&My("Non-video ad contains playerVars",this.slot,a),this.Ad.get().addPlayerResponseForAssociation({playerVars:b})):(a=rya(a),this.Ad.get().addPlayerResponseForAssociation({QJ:a}))};
g.k.release=function(){var a=DD(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=DD(this.Wa().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.x(this.Yh);for(var b=a.next();!b.done;b=a.next())b=b.value,Yva(this.xp,this.slot,b.Wa()),b.release();this.qf()&&(this.Sa.get().removeListener(this),xxa())};
g.k.Dz=function(a){return a.layoutId!==this.Wa().layoutId?(this.callback.Rf(this.Zb(),a,new BD("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.oJ=function(){this.Ia.get().addListener(this);ND(this.vc(),this)};
g.k.Ig=function(a){if(a.state.isError()){var b,c;this.QK((b=a.state.Yg)==null?void 0:b.errorCode,new BD("There was a player error during this media layout.",{playerErrorCode:(c=a.state.Yg)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Hf())&&b.Ig(a)};
g.k.qf=function(){var a=DD(this.Zb().clientMetadata,"metadata_type_eligible_for_ssap");return a===void 0?(My("Expected SSAP eligibility in PlayerBytes slots",this.Zb(),this.Wa()),!1):this.Aa.get().qf(a)};
g.k.Yj=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};
g.w(wI,qI);g.k=wI.prototype;g.k.j1=function(a,b,c){this.jK(a,b,c)};
g.k.f1=function(a,b){this.jK(a,b,"error")};
g.k.jK=function(a,b,c){var d=this;Aya(this,a,b,c,function(){tI(d,d.Sl()+1)})};
g.k.startRendering=function(a){this.Dz(a)&&(this.oJ(),E9a(this.Kc.get()),J9a(this.Aa.get())||o$a(this.Ia.get()),this.Sl()===-1&&tI(this,this.Sl()+1))};
g.k.Kd=function(a,b){var c=this;this.Rx=!0;this.Sl()===this.Yh.length?this.callback.Hc(this.slot,this.layout,b):(a=this.Hf(),a.Kd(a.Wa(),b),this.XZ=function(){c.callback.Hc(c.slot,c.layout,b)});
this.Ia.get().K.iz();x$a(this.Ad.get(),{});a=A0(this.Ia.get(),1);a.isPaused()&&!g.T(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.Rx&&Cya(this)};
g.k.WG=function(){};
g.k.VG=function(){};
g.k.wC=function(){};
g.w(xI,qI);g.k=xI.prototype;g.k.j1=function(a,b,c){a=Object.assign({},rI(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};QF(a.Uf,"prse",(d.xc=b,d.ler=c,d.ctp=PF(b),d))};
g.k.f1=function(){My("onSubLayoutError in SSAP")};
g.k.jK=function(){My("exitSubLayoutAndPlayNext in SSAP")};
g.k.Hf=function(){return this.rf};
g.k.Sl=function(){var a=this;return this.Yh.findIndex(function(b){var c;return b.Wa().layoutId===((c=a.rf)==null?void 0:c.Wa().layoutId)})};
g.k.HU=function(a){Ly(this.rf===void 0,"replacing another adapter");this.rf=a;a.startRendering(a.Wa())};
g.k.xP=function(a,b,c){$D(this.xp,a,b,c);var d;Ly(b.layoutId===((d=this.rf)==null?void 0:d.Wa().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot:  "+a.slotType:"",subLayout:Ky(b)})&&(this.rf=void 0)};
g.k.release=function(){qI.prototype.release.call(this);Ly(this.rf===void 0,"currentAdapter is still active during release");this.rf=void 0};
g.k.hL=function(){return this.Ia.get().getPresentingPlayerType()===2};
g.k.Kd=function(a,b){function c(){yI(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(b)||My("Composite stopRendering: Unexpected layout exit reason",this.slot,a,{layoutExitReason:b}))}
function d(){this.rf&&zI(this,this.rf,b);if(this.hL()&&(!yI(this)||b!=="abandoned")){c.call(this);var f;var h=((f=this.Sa.get().K.getVideoData())==null?void 0:f.clientPlaybackNonce)||"";f=UH(this.Sa.get(),1).clientPlaybackNonce;this.Ec.get().finishSegmentByCpn(h,f,aI(b,this.Aa))}Dya(this,b)}
function e(){if(this.rf){var f=this.rf;f.Ho().currentState<2&&f.Kd(f.Wa(),b);f=yI(this)&&b==="abandoned";this.hL()&&!f&&(c.call(this),this.Ec.get().finishSegmentByCpn(this.rf.Wa().layoutId,UH(this.Sa.get(),1).clientPlaybackNonce,aI(b,this.Aa)))}}
Ly(a.layoutId===this.Wa().layoutId,"StopRendering for wrong layout")&&MF(this.Tt.B,b)&&(this.Mv()?d.call(this):e.call(this))};
g.k.Hc=function(a,b,c){qI.prototype.Hc.call(this,a,b,c);b.layoutId===this.Wa().layoutId&&this.Ia.get().removeListener(this)};
g.k.Tl=function(){return UH(this.Sa.get(),1).clientPlaybackNonce};
g.k.WG=function(a,b,c){Cxa(Object.assign({},rI(this),{cpn:a}));if(!yI(this)||c!==5)if(this.Mv()){if(this.rf&&this.rf.Wa().layoutId!==b){var d=this.rf.Wa().layoutId;d!==a&&My("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:d,exitingCpn:a,enteringCpn:b});a=bI(c,this.Aa);zI(this,this.rf,a)}else this.rf&&My("onClipExited: active layout is entering again");b===this.Tl()&&Fya(this,c)}else{if(this.rf&&this.rf.Wa().layoutId===a)Eya(this,this.rf,c);else{var e;My("Exiting cpn does not match active cpn",
this.slot,(d=this.rf)==null?void 0:d.Wa(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.rf)==null?void 0:e.Wa().layoutId})}b===this.Tl()&&(this.rf!==void 0&&(My("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Ky(this.rf.Wa())}),Eya(this,this.rf,c)),Fya(this,c),Dya(this,this.Tt.B.j))}};
g.k.Mv=function(){return sE(this.Aa.get(),"html5_ssap_exit_without_waiting_for_transition")};
g.k.startRendering=function(a){this.Dz(a)&&(a=this.Tt,Ly(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.oJ())};
g.k.VG=function(a){Bxa(Object.assign({},rI(this),{cpn:a}));var b=this.Yh.find(function(c){return c.Wa().layoutId===a});
b?(this.Tt.j!==2&&(hCa(this.ke,this.slot.slotId),Ly(this.Tt.j===2,"Expect started"),this.callback.kc(this.slot,this.layout)),this.HU(b),ZD(this.xp,this.slot,b.Wa())):Gya(this,a)};
g.k.Qy=function(a,b){vya(this,a,b);var c=this.Hf();c?wya(c,a,b)&&Hya(this,"skipped"):Iya(this,"onSkipRequested")};
g.k.jH=function(a,b){var c;a:{if(c=this.Hf()){if(xya(this),yya(c,a,b)&&(a=zya(this,c,a,b),a!==void 0)){c={E7:c,Ffa:this.Yh[a]};break a}}else Iya(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.E7,b=a.Ffa,a=c.Wa().layoutId,this.Mv()?zI(this,c,"skipped"):c.Kd(c.Wa(),"skipped"),c=b.Wa().layoutId,this.Ec.get().finishSegmentByCpn(a,c,aI("skipped",this.Aa))};
g.k.e1=function(){My("Not used in html5_ssap_fix_layout_exit")};
g.k.Ig=function(a){var b;(b=this.Hf())==null||b.Ig(a)};
g.k.QK=function(){My("Not used in html5_ssap_fix_layout_exit")};
g.k.wC=function(a,b,c){var d;if(((d=this.Hf())==null?void 0:d.Wa().layoutId)!==b.layoutId)return void My("requestToExitSubLayout: wrong layout");Hya(this,c)};g.w(AI,g.O);g.k=AI.prototype;g.k.Zb=function(){return this.yd.Zb()};
g.k.Wa=function(){return this.yd.Wa()};
g.k.init=function(){var a=DD(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.dL()};
g.k.dL=function(){this.yd.init()};
g.k.release=function(){var a=DD(this.Wa().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.fz()};
g.k.fz=function(){this.yd.release()};
g.k.Qs=function(){this.yd.Qs()};
g.k.Ts=function(){this.yd.Ts()};
g.k.Qy=function(a,b){My("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Zb(),this.Wa(),{requestingSlot:a,requestingLayout:b})};
g.k.startRendering=function(a){a.layoutId!==this.Wa().layoutId?this.callback.Rf(this.Zb(),a,new BD("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.Ia.get().addListener(this),ND(this.vc(),this),E9a(this.Kc.get()),J9a(this.Aa.get())||o$a(this.Ia.get()),this.yd.startRendering(a))};
g.k.Kd=function(a,b){this.Rx=!0;this.yd.Kd(a,b);this.Ia.get().K.iz();x$a(this.Ad.get(),{});a=A0(this.Ia.get(),1);a.isPaused()&&!g.T(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.Rx&&this.yd.XA()};
g.k.kc=function(a,b){this.yd.kc(a,b)};
g.k.Hc=function(a,b,c){b.layoutId===this.Wa().layoutId&&(this.Rx=!1,OD(this.vc(),this));this.yd.Hc(a,b,c);b.layoutId===this.Wa().layoutId&&uI(this.Kc.get())};
g.k.Ui=function(a){this.yd.Ui(a)};
g.k.Ig=function(a){if(a.state.isError()){var b,c;this.QK((b=a.state.Yg)==null?void 0:b.errorCode,new BD("There was a player error during this media layout.",{playerErrorCode:(c=a.state.Yg)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.yd.Ig(a)};
g.k.QK=function(a,b,c){this.yd.YL(a,b,c)};
g.k.onFullscreenToggled=function(a){this.yd.onFullscreenToggled(a)};
g.k.Dh=function(a){this.yd.Dh(a)};
g.k.pj=function(a){this.yd.pj(a)};
g.k.onVolumeChange=function(){this.yd.onVolumeChange()};
g.k.Yj=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};g.k=BI.prototype;g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.init=function(){this.Ie.get().addListener(this);this.Ia.get().addListener(this);var a=DD(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var b=DD(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.D){var c=this.Ie.get().ZC.slice(-1)[0];c!==void 0&&(a=c.startSecs*1E3,b=(c.startSecs+c.Xg)*1E3)}this.lB(a,b);var d;c=(d=this.Sa.get().nx)==null?void 0:d.clientPlaybackNonce;d=this.layout.Ub.adClientDataEntry;CI(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:c,
adClientData:d}});var e=this.Ie.get();e=Lya(e.C,a,b);e!==null&&(CI(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:c,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:d}}),this.Ec.get().mA(e,b))};
g.k.release=function(){this.fz();this.Ie.get().removeListener(this);this.Ia.get().removeListener(this)};
g.k.startRendering=function(){this.wz();this.callback.kc(this.slot,this.layout)};
g.k.Kd=function(a,b){this.f3(b);this.driftRecoveryMs!==null&&(DI(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Mya(this)-DD(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ia.get().K.Wr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Hc(this.slot,this.layout,b)};
g.k.PS=function(){return!1};
g.k.uS=function(a){var b=DD(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=DD(this.layout.clientMetadata,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;CI(this.Na.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:(d=this.Sa.get().nx)==null?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ub.adClientDataEntry}});this.Ec.get().mA(a,c)}};
g.k.Ui=function(a){this.y0(a);a=I0(this.Ia.get(),2,!0);if(RK(this.G.get(),this.layout.layoutId)){var b=DD(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(c===null||a*1E3<b+c)){this.driftRecoveryMs=null;var d=Mya(this),e=this.Ia.get().K.Wr(),f=Math.min(a+e,d/1E3);f<=a?DI(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(e*1E3).toString()}):(DI(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.Ia.get().K.seekTo(f,void 0,void 0,1))}}};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.pj=function(){};
g.k.onVolumeChange=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};g.w(EI,BI);g.k=EI.prototype;g.k.lB=function(a,b){this.Sa.get().addListener(this);if(this.D){var c=a,d=0,e=[];a=this.C.slice();a.sort(function(f,h){return DD(f.Wa().clientMetadata,"metadata_type_media_sub_layout_index")-DD(h.Wa().clientMetadata,"metadata_type_media_sub_layout_index")});
a.forEach(function(f){var h=c,l=DD(f.Wa().clientMetadata,"metadata_type_video_length_seconds"),m=Math.min(h+l*1E3,b);c=m;d++;e.push(l);f.lB(h,m)})}else this.C.forEach(function(f){f.init()});
this.B!=null&&FI(this.Na.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.fz=function(){this.Sa.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.wz=function(){if(this.j)My("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=(a=this.Sa.get().nx)==null?void 0:a.layoutId;Oya(this,b)}};
g.k.f3=function(a){var b,c,d,e;(d=this.j)==null||(e=d.Nm)==null||e.Kd((b=this.j)==null?void 0:(c=b.Nm)==null?void 0:c.Wa(),a);this.j=null};
g.k.lM=function(a){var b=a.videoId;a=a.layoutId;if(b==="nPpU29QrbiU"){var c,d;FI(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.Nm)==null?void 0:d.Wa().layoutId))}if(this.j){var e;if(((e=this.j.Nm)==null?void 0:e.Wa().layoutId)===a)My("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:a});else{var f,h;(h=this.j.Nm)==null||h.Kd((f=this.j.Nm)==null?void 0:f.Wa(),"normal");
Oya(this,a)}}};
g.k.WG=function(){};
g.k.VG=function(){};
g.k.y0=function(){};
g.k.Ig=function(){};
g.k.onFullscreenToggled=function(){};g.k=Zya.prototype;g.k.Zb=function(){return this.slot};
g.k.Wa=function(){return this.layout};
g.k.Ho=function(){My("Should not get exitStateMachine for DAI");return new LF};
g.k.lB=function(a,b){var c=this;DD(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.Cd=Pya(this.slot,this.layout,DD(this.layout.clientMetadata,"metadata_type_player_vars"),a,b,DD(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Ec.get(),this.qt.get(),function(){var d=Object,e=d.assign,f=KI(c.layout);var h=DD(c.slot.clientMetadata,"metadata_type_fulfilled_layout")||c.slot.fulfilledLayout;var l=DD(h.clientMetadata,"metadata_type_sub_layouts")||
h.jr;h=Object.assign({},KI(h),{adPlacementConfig:DD(h.clientMetadata,"metadata_type_ad_placement_config"),subLayouts:(l||[]).map(KI)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:yD(c.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:DD(c.layout.clientMetadata,"metadata_type_survey_overlay")})},this.Na.get());
this.Ia.get().addListener(this);a=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds");b=DD(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");VE(this.layout.zb)&&B0(this.Cb.get(),this.layout.layoutId,{Mt:b,LI:a,listener:this});Wva(this.callback,this.slot,this.layout);Xva(this.callback,this.slot,this.layout)};
g.k.init=function(){var a=DD(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),b=DD(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.lB(a,b)};
g.k.release=function(){this.Ia.get().removeListener(this);VE(this.layout.zb)&&C0(this.Cb.get(),this.layout.layoutId);this.Aa.get();Yva(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;yD(this.layout.clientMetadata,"metadata_type_survey_overlay")&&FI(this.Na.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.pc)My("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:yD(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:DD(this.layout.clientMetadata,"metadata_type_survey_overlay")});else{this.pc={Xo:null,UH:!1};this.j=!1;if(H9a(this.Aa.get())){var b;this.adCpn=
(b=UH(this.Sa.get(),2))==null?void 0:b.clientPlaybackNonce}this.Aa.get().K.V().experiments.fb("html5_disable_sodar_for_tvhtml5")||Qya(this.slot,this.layout,this.Df.get());VE(this.layout.zb)&&this.Aa.get().K.V().experiments.fb("enable_active_view_lifa_web_video")&&R9a(this.Cb.get(),this.layout.layoutId);this.bb.ac("start");if(JK(this.Aa.get())){b=A0(this.Ia.get());var c=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=I0(this.Ia.get(),2,!1);Rya(this.bb,this.pc.Xo,b,c,d,function(){return void aza(a,
"teois")})}ZD(this.callback,this.slot,this.layout);
yD(this.layout.clientMetadata,"metadata_type_survey_overlay")&&FI(this.Na.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Kd=function(a,b){var c=this;if(this.pc){if(JK(this.Aa.get()))if(this.Cd===null)My("Unexpected media sub layout exited without a timeline playback ID");else{a=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds");var d=m$a(this.Ia.get(),this.Cd);H9a(this.Aa.get())&&this.adCpn===void 0&&My("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:DD(this.layout.clientMetadata,"metadata_type_content_cpn")});Lwa(this.bb,d,this.adCpn);HI(this.bb,null,this.pc.Xo,a,d,function(e){return void $ya(c,
e,"fue")},H9a(this.Aa.get()))}this.pc=null;
$D(this.callback,this.slot,this.layout,this.j&&this.Aa.get().K.V().N("dai_layout_log_skip_exit_reason")?"skipped":b)}else My("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.YL=function(){};
g.k.XA=function(){};
g.k.Ui=function(a){var b=this;if(this.pc){if(dF(this.bb,"impression")){var c=A0(this.Ia.get()),d=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds");II(this.bb,c,a,this.pc.Xo,d,function(e){return void $ya(b,e,"tpaqe")})}this.pc.Xo=a}};
g.k.Ig=function(a){var b=this;if(this.pc){JK(this.Aa.get())||this.pc.UH||(this.pc.UH=!0,a=new g.Ny(a.state,new g.$G));var c=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=I0(this.Ia.get(),2,!1);GI(this.bb,this.pc.Xo,a,c,d,!JK(this.Aa.get()),function(){return void aza(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){Sya(this.bb,a)};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.pj=function(){};
g.k.Qy=function(a,b){var c;a=this.Na.get();var d="ti."+dF(this.bb,"impression")+";ts."+dF(this.bb,"skip")+";hp.",e;var f=!((e=this.bb.C.get("skip"))==null||!e.length);FI(a,"ads_dsr",d+f+";cpn."+DD(this.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((c=UH(this.Sa.get(),2))==null?void 0:c.clientPlaybackNonce)+";sl."+(DD(b.clientMetadata,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));dF(this.bb,"impression")&&this.bb.ac("skip");b=UH(this.Sa.get(),1).gg&&this.Aa.get().K.V().experiments.fb("html5_lifa_skip_to_content");
this.j=!0;this.Ec.get().kt(b)||(this.j=!1,My("Unexpected failure to skip a server stitched ad",this.slot,this.layout))};
g.k.onVolumeChange=function(){};
g.k.kc=function(){};
g.k.Hc=function(){};
g.k.Qs=function(){};
g.k.Ts=function(){};
g.k.XM=function(){Tya(this.bb)};
g.k.Ky=function(){Uya(this.bb)};
g.k.Jy=function(){Vya(this.bb)};
g.k.Ly=function(){Wya(this.bb)};
g.k.Hy=function(){Xya(this.bb)};
g.k.Iy=function(){Yya(this.bb)};
g.k.Vj=function(){};
g.k.bk=function(){};g.w(LI,BI);g.k=LI.prototype;
g.k.lB=function(){var a=this;DD(this.layout.clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;var b=DD(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),c=DD(this.layout.clientMetadata,"metadata_type_layout_exit_ms");this.Cd=Pya(this.slot,this.layout,DD(this.layout.clientMetadata,"metadata_type_player_vars"),b,c,DD(this.layout.clientMetadata,"metadata_type_video_length_seconds")*1E3,this.Ec.get(),this.qt.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,
exitMs:c,adPlacementConfig:DD(a.layout.clientMetadata,"metadata_type_ad_placement_config")}},this.Na.get());
var d=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),e=DD(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");VE(this.layout.zb)&&B0(this.Cb.get(),this.layout.layoutId,{Mt:e,LI:d,listener:this})};
g.k.fz=function(){VE(this.layout.zb)&&C0(this.Cb.get(),this.layout.layoutId)};
g.k.wz=function(){var a=this;if(this.pc)My("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.pc={Xo:null,UH:!1},Qya(this.slot,this.layout,this.Df.get()),this.bb.ac("start"),JK(this.Aa.get())){var b=A0(this.Ia.get()),c=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=I0(this.Ia.get(),2,!1);Rya(this.bb,this.pc.Xo,b,c,d,function(){return void bza(a,"teois")})}};
g.k.f3=function(){var a=this;if(this.pc){if(JK(this.Aa.get()))if(this.Cd===null)My("Unexpected single media layout exited without a timeline playback ID");else{var b=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),c=m$a(this.Ia.get(),this.Cd);Lwa(this.bb,c);HI(this.bb,null,this.pc.Xo,b,c,function(d){return void cza(a,d,"fue")})}this.pc=null}else My("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.y0=function(a){var b=this;if(this.pc){if(dF(this.bb,"impression")){var c=A0(this.Ia.get()),d=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds");II(this.bb,c,a,this.pc.Xo,d,function(e){return void cza(b,e,"tpaqe")})}this.pc.Xo=a}};
g.k.Ig=function(a){var b=this;if(this.pc){JK(this.Aa.get())||this.pc.UH||(this.pc.UH=!0,a=new g.Ny(a.state,new g.$G));var c=DD(this.layout.clientMetadata,"metadata_type_video_length_seconds"),d=I0(this.Ia.get(),2,!1);GI(this.bb,this.pc.Xo,a,c,d,!JK(this.Aa.get()),function(){return void bza(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){Sya(this.bb,a)};
g.k.XM=function(){Tya(this.bb)};
g.k.Ky=function(){Uya(this.bb)};
g.k.Jy=function(){Vya(this.bb)};
g.k.Ly=function(){Wya(this.bb)};
g.k.Hy=function(){Xya(this.bb)};
g.k.Iy=function(){Yya(this.bb)};MI.prototype.build=function(a,b,c,d){if(yD(c.clientMetadata,"metadata_type_dai")){var e=DD(d.clientMetadata,"metadata_type_ad_placement_config");uF(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(" "),Oe:["LAYOUT_TYPE_MEDIA"]})&&e!==void 0?(e=new YE(d.zb,this.Na,e,d.layoutId,null),e=new LI(a,c,d,this.Sa,this.Ec,this.qt,this.Ie,this.Ia,e,this.Na,this.Df,
this.j,this.Cb,this.Aa)):e=null;if(e)return e;a:{var f,h=(f=d.jr)!=null?f:DD(d.clientMetadata,"metadata_type_sub_layouts");e=DD(d.clientMetadata,"metadata_type_ad_placement_config");if(uF(d,{Od:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Oe:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&h!==void 0&&e!==void 0){f=[];h=g.x(h);for(var l=h.next();!l.done;l=h.next()){l=l.value;var m=DD(l.clientMetadata,"metadata_type_media_sub_layout_index");if(!uF(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(" "),
Oe:["LAYOUT_TYPE_MEDIA"]})||m===void 0){a=null;break a}m=new YE(l.zb,this.Na,e,l.layoutId,m);f.push(new Zya(b,c,l,this.Ec,m,this.Ia,this.qt,this.Cb,this.Df,this.Aa,this.Na,this.Sa))}b=new YE(d.zb,this.Na,e,d.layoutId);a=new EI(a,c,d,this.Sa,this.Ec,this.Ie,this.Ia,b,this.Na,this.j,f)}else a=null}if(a)return a}else if(a=Kya(a,b,c,d,this.vc,this.ke,this.Vi,this.Na,this.Cb,this.Df,this.Ad,this.Sa,this.Ia,this.Wc,this.Kc,this.ud,this.Nb,this.Gg,this.Aa,this.Ec,this.context,this.Xh))return a;throw new BD("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in PlayerBytesLayoutRenderingAdapterFactory.");};NI.prototype.build=function(a,b,c,d){if(a=Kya(a,b,c,d,this.vc,this.ke,this.Vi,this.Na,this.Cb,this.Df,this.Ad,this.Sa,this.Ia,this.Wc,this.Kc,this.ud,this.Nb,this.Gg,this.Aa,this.Ec,this.context,this.Xh))return a;throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(dza,Ex);g.w(OI,QE);OI.prototype.startRendering=function(a){var b=RE(this.bb),c={adsClientData:this.layout.Ub};this.j.push(new dza(DD(this.layout.clientMetadata,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Wa().layoutId,c));QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a)};
OI.prototype.fg=function(a,b){b!==this.layout.layoutId||a!=="survey-interstitial"&&a!=="button"||((a=DD(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.Qy(this.slot,this.layout):My("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
OI.prototype.xa=function(){QE.prototype.xa.call(this)};var QI=new g.Cg(320,63);g.w(TI,Ex);g.w(UI,QE);g.k=UI.prototype;g.k.Ui=function(){};
g.k.Ig=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Dh=function(a){a&&$K(this.D,this.layout)};
g.k.Yj=function(){};
g.k.pj=function(a){var b=SI(this.layout);if(this.U=RI(a,n$a(this.Ia.get())))b.onErrorCommand&&this.Nb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),$K(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.QA=function(){return this.Wa().layoutId};
g.k.jQ=function(){return this.U};
g.k.fg=function(a){this.G.fg(a);a==="in_video_overlay_close_button"&&$K(this.D,this.layout)};
g.k.PK=function(a){a==="invideo-overlay"&&$K(this.D,this.layout)};
g.k.Jq=function(){this.G.Jq()};
g.k.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a);this.L.Lt=this};
g.k.Kd=function(a,b){QE.prototype.Kd.call(this,a,b);s1(this.L,this)};
g.k.init=function(){QE.prototype.init.call(this);d$a(this.Na.get(),this);this.Ia.get().addListener(this);this.j.push(new TI(SI(this.layout),RE(this.bb),this.layout.layoutId,{adsClientData:this.layout.Ub}))};
g.k.release=function(){QE.prototype.release.call(this);this.Ia.get().removeListener(this);e$a(this.Na.get(),this)};
g.k.Vj=function(){};
g.k.bk=function(){};g.w(VI,QE);g.k=VI.prototype;g.k.init=function(){QE.prototype.init.call(this);d$a(this.Na.get(),this);this.Ia.get().addListener(this);this.j.push(new TI(SI(this.layout),RE(this.bb),this.layout.layoutId,{adsClientData:this.layout.Ub}))};
g.k.Jq=function(){this.G.Jq()};
g.k.startRendering=function(a){QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a);this.L.Lt=this};
g.k.Kd=function(a,b){QE.prototype.Kd.call(this,a,b);s1(this.L,this)};
g.k.fg=function(a){this.G.fg(a);a==="in_video_overlay_close_button"&&$K(this.D,this.layout)};
g.k.TQ=function(a){if(a==="invideo-overlay"){a=gCa(this.W,this.layout);a=g.x(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.PK=function(a){a==="invideo-overlay"&&$K(this.D,this.layout)};
g.k.SQ=function(a){if(a==="invideo-overlay"){a=gCa(this.W,this.layout);a=g.x(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ui=function(){};
g.k.Ig=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Dh=function(a){a&&$K(this.D,this.layout)};
g.k.Yj=function(){};
g.k.pj=function(a){var b=SI(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=n$a(this.Ia.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.Cg(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Cg(0,0)}if(this.U=RI(a,d,c))b.onErrorCommand&&this.Nb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),$K(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.QA=function(){return this.Wa().layoutId};
g.k.jQ=function(){return this.U};
g.k.release=function(){QE.prototype.release.call(this);this.Ia.get().removeListener(this);e$a(this.Na.get(),this)};
g.k.Vj=function(){};
g.k.bk=function(){};WI.prototype.fg=function(a){a==="ad-info-hover-text-button"&&((this.j=this.Ia.get().Vo(1))||this.Ia.get().pauseVideo())};
WI.prototype.Jq=function(){this.j||this.Ia.get().resumeVideo(1)};g.w(hza,Ex);g.w(XI,QE);g.k=XI.prototype;g.k.init=function(){QE.prototype.init.call(this);this.Ia.get().addListener(this)};
g.k.startRendering=function(a){var b=DD(this.layout.clientMetadata,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new hza(b,this.layout.layoutId,{adsClientData:this.layout.Ub}));QE.prototype.startRendering.call(this,a);this.callback.kc(this.slot,a)};
g.k.kc=function(){};
g.k.fg=function(a,b){b!==this.layout.layoutId||a!=="ad-info-icon-button"&&a!=="ad-info-dialog-close-button"||((b=DD(this.layout.clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a==="ad-info-icon-button"?b.Qs(this.slot,this.layout):a==="ad-info-dialog-close-button"&&b.Ts(this.slot,this.layout):My("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.pj=function(a){a.width<450&&$K(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ui=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.Ig=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};
g.k.xa=function(){QE.prototype.xa.call(this)};
g.k.release=function(){QE.prototype.release.call(this);this.Ia.get().removeListener(this)};iza.prototype.build=function(a,b,c,d){if(b=HF(a,c,d,this.Bc,this.Ia,this.Na,this.D,this.j,this.Aa))return b;if(uF(d,gza()))return new VI(c,d,this.Na,this.Cb,this.Bc,a,this.B,this.C,this.Ia,this.Nb,this.Aa,this.j,new WI(this.Ia));if(uF(d,fza()))return new UI(c,d,this.Na,this.Cb,this.Bc,a,this.B,this.Ia,this.Nb,this.Aa,this.j,new WI(this.Ia));if(uF(d,{Od:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Oe:["LAYOUT_TYPE_SURVEY"]}))return new XI(c,d,a,this.Bc,this.B,this.Ia,this.Aa);if(uF(d,
{Od:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Oe:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new OI(c,d,a,this.Bc,this.Na);if(uF(d,qxa()))return new CF(c,d,a,this.Bc,this.Ia,this.Aa);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};jza.prototype.build=function(a,b,c,d){if(b=HF(a,c,d,this.Bc,this.Ia,this.Na,this.D,this.j,this.Aa))return b;if(uF(d,gza()))return new VI(c,d,this.Na,this.Cb,this.Bc,a,this.B,this.C,this.Ia,this.Nb,this.Aa,this.j,new WI(this.Ia));if(uF(d,fza()))return new UI(c,d,this.Na,this.Cb,this.Bc,a,this.B,this.Ia,this.Nb,this.Aa,this.j,new WI(this.Ia));throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");
};g.w(YI,AF);YI.prototype.startRendering=function(a){AF.prototype.startRendering.call(this,a);if(a.renderingContent?lxa(a,UH(this.Sa.get(),2)||void 0):DD(this.layout.clientMetadata,"metadata_ad_video_is_listed"))a=a.renderingContent?kxa(a,UH(this.Sa.get(),2)||void 0):DD(this.layout.clientMetadata,"metadata_type_ad_info_ad_metadata"),this.jo.get().K.gb("onAdMetadataAvailable",a)};lza.prototype.build=function(a,b,c,d){if(uF(d,kza())||d.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.Q(d.renderingContent,EF)!==void 0)return new YI(a,c,d,this.Bc,this.Ia,this.Na,this.B,this.jo,this.j,this.Sa);throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};mza.prototype.build=function(a,b,c,d){if(uF(d,kza()))return new YI(a,c,d,this.Bc,this.Ia,this.Na,this.B,this.jo,this.j,this.Sa);if(a=HF(a,c,d,this.Bc,this.Ia,this.Na,this.B,this.j,this.Aa))return a;throw new BD("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ED(d.clientMetadata)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};pJ.prototype.clone=function(a){var b=this;return new pJ(function(){return b.triggerId},a)};qJ.prototype.clone=function(a){var b=this;return new qJ(function(){return b.triggerId},a)};rJ.prototype.clone=function(a){var b=this;return new rJ(function(){return b.triggerId},a)};sJ.prototype.clone=function(a){var b=this;return new sJ(function(){return b.triggerId},a)};tJ.prototype.clone=function(a){var b=this;return new tJ(function(){return b.triggerId},a)};uJ.prototype.clone=function(a){var b=this;return new uJ(function(){return b.triggerId},a)};g.w($J,g.O);var AAa={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 tK={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Xc:[],layoutExitUserInputSubmittedTriggers:[]};var RP={hka:1,ika:2,jka:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.w(IK,g.O);g.k=IK.prototype;g.k.zS=function(a){if(this.j)My("Unexpected multiple fetch instructions for the current content");else{this.j=a;a=g.x(this.Ie.get().ZC);for(var b=a.next();!b.done;b=a.next())RBa(this,this.j,b.value)}};
g.k.PS=function(a){if(!this.j){var b;(b=this.Ec)==null||b.get().yv(a.identifier);return!1}RBa(this,this.j,a);return!0};
g.k.uS=function(){};
g.k.Xj=function(a){this.j&&this.j.contentCpn!==a&&(My("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Bn=function(a){this.j&&this.j.contentCpn!==a&&My("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 U0=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Jeb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.w(MK,g.O);g.k=MK.prototype;g.k.kc=function(a,b){var c=this;if(b.layoutType==="LAYOUT_TYPE_MEDIA"&&(zD(b,this.L)||zD(b,Jeb))){var d=UH(this.Sa.get(),2),e=this.D(b,d||void 0);e?ME(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[KAa(c.j.get(),e.contentCpn,e.qr,function(h){return c.G(h.slotId,"core",e,JD(c.Ue.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&oK(c.Aa.get())&&f.push(VBa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):My("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.tf=function(){};
g.k.Eh=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.Hc=function(){};g.w(NK,g.O);NK.prototype.Xj=function(a,b,c,d,e,f,h){var l=this,m=UH(this.Sa.get(),1);!sE(this.Aa.get(),"html5_ssap_play_cached_preroll")&&m.Vp?H0(this.Ia.get()):(D9a(this.Kc.get(),d),ME(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return Wza(l.j.get(),d,e,f,a,b,h,m,"")}),Gab(this.C))};
NK.prototype.Bn=function(){};g.w(OK,g.O);g.w(PK,g.O);PK.prototype.onCueRangeEnter=function(){};
PK.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Wc.get().removeCueRange(a),ME(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=NE(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?oCa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:pCa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:pCa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
PK.prototype.Xj=function(){for(var a=g.x(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Wc.get().removeCueRange(b);this.j.clear()};
PK.prototype.Bn=function(){};g.w(QK,g.O);g.k=QK.prototype;g.k.Kg=function(){};
g.k.Hh=function(a){var b=this;g.qt(g.tt(),function(){var c=b.j.get(a);c&&My("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.z(c)).map(function(d){return d.layoutType})})},0)};
g.k.tf=function(){};
g.k.Eh=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.jg=function(a,b){this.wj.has(a)&&this.wj.get(a)===b&&My("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)):My("Trying to unscheduled a Layout that was not scheduled.",a,b)}else My("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.kc=function(a,b){this.wj.set(a,b)};
g.k.Hc=function(a){this.wj.delete(a)};
g.k.Hg=function(){};g.k=XBa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fK=function(){this.callback.tf(this.slot)};
g.k.hK=function(){this.callback.uf(this.slot)};
g.k.release=function(){};TK.prototype.build=function(a,b){return new XBa(a,b)};g.k=YBa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fK=function(){J0(this.Ia.get(),"ad-showing");this.callback.tf(this.slot)};
g.k.hK=function(){this.callback.uf(this.slot);K0(this.Ia.get(),"ad-showing")};
g.k.release=function(){};g.k=ZBa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fK=function(){J0(this.Ia.get(),"ad-showing");J0(this.Ia.get(),"ad-interrupting");this.B=this.Ia.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.tf(this.slot)};
g.k.hK=function(){K0(this.Ia.get(),"ad-showing");K0(this.Ia.get(),"ad-interrupting");var a=this.B?Infinity:I0(this.Ia.get(),1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ia.get().K.seekTo(a,void 0,void 0,1);this.callback.uf(this.slot)};
g.k.release=function(){};g.k=$Ba.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fK=function(){J0(this.Ia.get(),"ad-showing");J0(this.Ia.get(),"ad-interrupting");this.callback.tf(this.slot)};
g.k.hK=function(){H0(this.Ia.get());K0(this.Ia.get(),"ad-showing");K0(this.Ia.get(),"ad-interrupting");this.callback.uf(this.slot)};
g.k.release=function(){H0(this.Ia.get())};UK.prototype.build=function(a,b){if(FD(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new YBa(a,b,this.Ia);if(b.slotEntryTrigger instanceof jJ&&FD(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new ZBa(a,b,this.Ia);if(FD(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new $Ba(a,b,this.Ia);throw new Z("Unsupported slot with type "+b.slotType+" and client metadata: "+(ED(b.clientMetadata)+" in PlayerBytesSlotAdapterFactory."));};g.w(VK,g.O);VK.prototype.j=function(a){for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof oJ&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&e.triggeringLayoutId===a&&b.push(d)}b.length?aE(this.nO(),b):My("Mute requested but no registered triggers can be activated.")};g.w(XK,VK);g.k=XK.prototype;g.k.fg=function(a,b){if(b)if(a==="skip-button"){a=[];for(var c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof oJ&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&e.triggeringLayoutId===b&&a.push(d)}a.length&&aE(this.nO(),a)}else sE(this.Aa.get(),"supports_multi_step_on_desktop")?a==="ad-action-submit-survey"&&WK(this,b):a==="survey-submit"?WK(this,b):a==="survey-single-select-answer-button"&&WK(this,b)};
g.k.VQ=function(a){VK.prototype.j.call(this,a)};
g.k.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof vJ||b instanceof oJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ob.set(b.triggerId,new xJ(a,b,c,d))};
g.k.yl=function(a){this.Ob.delete(a.triggerId)};
g.k.TQ=function(){};
g.k.SQ=function(){};
g.k.PK=function(){};g.w(YK,g.O);g.k=YK.prototype;
g.k.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof pJ||b instanceof qJ||b instanceof rJ||b instanceof sJ||b instanceof tJ||b instanceof uJ||b instanceof lJ||b instanceof eJ||b instanceof gJ||b instanceof fJ||b instanceof kJ||b instanceof dJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new xJ(a,b,c,d);this.Ob.set(b.triggerId,a);b instanceof
tJ&&this.G.has(b.triggeringSlotId)&&aE(this.j(),[a]);b instanceof pJ&&this.C.has(b.triggeringSlotId)&&aE(this.j(),[a]);b instanceof eJ&&this.B.has(b.triggeringLayoutId)&&aE(this.j(),[a])};
g.k.yl=function(a){this.Ob.delete(a.triggerId)};
g.k.Kg=function(a){this.G.add(a.slotId);for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof tJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&aE(this.j(),b)};
g.k.Hh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof uJ&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&aE(this.j(),b)};
g.k.Eh=function(a){for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof lJ&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&aE(this.j(),b)};
g.k.tf=function(a){this.C.add(a.slotId);for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof pJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&aE(this.j(),b)};
g.k.uf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof qJ)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof dJ){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&aE(this.j(),b)};
g.k.Fh=function(a){for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof rJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&aE(this.j(),b)};
g.k.Gh=function(a){for(var b=[],c=g.x(this.Ob.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof sJ&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&aE(this.j(),b)};
g.k.fh=function(a,b){this.L.add(b.layoutId)};
g.k.jg=function(a,b){this.L.delete(b.layoutId)};
g.k.kc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.x(this.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof eJ)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof kJ){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof dJ&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&aE(this.j(),c)};
g.k.Hc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.x(this.Ob.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof gJ&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof fJ){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&aE(this.j(),a)};
g.k.Hg=function(){};
g.k.Xj=function(){this.D.clear()};
g.k.Bn=function(){};g.w(ZK,g.O);ZK.prototype.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof bJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Ob.set(b.triggerId,new xJ(a,b,c,d))};
ZK.prototype.yl=function(a){this.Ob.delete(a.triggerId)};g.w(aL,g.O);aL.prototype.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof aJ||b instanceof nJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ob.set(b.triggerId,new xJ(a,b,c,d))};
aL.prototype.yl=function(a){this.Ob.delete(a.triggerId)};
aL.prototype.Xj=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.x(this.Ob.values()),h=f.next();!h.done;h=f.next())h=h.value,h.trigger instanceof aJ&&h.trigger.Zv===a&&e.push(h);d.call(c,b,g.z(e));c=b.push;d=c.apply;e=[];f=g.x(this.Ob.values());for(h=f.next();!h.done;h=f.next())h=h.value,h.trigger instanceof nJ&&h.trigger.j!==a&&e.push(h);d.call(c,b,g.z(e));b.length&&aE(this.j(),b)};
aL.prototype.Bn=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.x(this.Ob.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof nJ&&l.j===a&&e.push(h)}d.call(c,b,g.z(e));b.length&&aE(this.j(),b)};g.w(bL,g.O);g.k=bL.prototype;g.k.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof jJ)aCa(this,a,b,c,d,e,b.j.start,b.j.end,b.Zv,b.visible);else if(b instanceof cJ)aCa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Zv,b.visible);else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
g.k.yl=function(a){var b=this.Ob.get(a.triggerId);b&&this.Wc.get().removeCueRange(b.cueRangeId);this.Ob.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){var b=bCa(this,a);if(b&&(b=this.Ob.get(b)))if(g.T(A0(this.Ia.get()),32))this.j.add(b.cueRangeId);else{var c=b==null?void 0:b.OE.trigger;if(c instanceof jJ||c instanceof cJ){if(SF(this.context.Aa.get())){var d=b.OE.slot,e=b.OE.layout,f={};this.context.ej.Rj("cre",(f.ca=b.OE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}aE(this.B(),[b.OE])}}};
g.k.onCueRangeExit=function(a){(a=bCa(this,a))&&(a=this.Ob.get(a))&&this.j.delete(a.cueRangeId)};
g.k.Ig=function(a){if(Oy(a,16)<0){a=g.x(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.kc=function(){};
g.k.Hc=function(){};
g.k.Hg=function(){};
g.k.Ui=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Dh=function(){};
g.k.Yj=function(){};
g.k.pj=function(){};
g.k.onVolumeChange=function(){};
g.k.Vj=function(){};
g.k.bk=function(){};g.w(cL,g.O);g.k=cL.prototype;
g.k.ll=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 xJ(a,b,c,d);if(a.trigger instanceof iJ)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof hJ)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&&aE(this.D(),[a])};
g.k.yl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.lM=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.z(cCa(this.C,this.j)));a!=null&&b.push.apply(b,g.z(cCa(this.B,a)));this.j=a;b.length&&aE(this.D(),b)}};
g.k.WG=function(){};
g.k.VG=function(){};g.w(dL,g.O);g.k=dL.prototype;g.k.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof mJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ob.set(b.triggerId,new xJ(a,b,c,d))};
g.k.yl=function(a){this.Ob.delete(a.triggerId)};
g.k.kc=function(){};
g.k.Hc=function(){};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};g.w(eL,g.O);g.k=eL.prototype;g.k.Hg=function(a,b){for(var c=[],d=g.x(this.Ob.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&&aE(this.j(),c)};
g.k.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof nwa))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Ob.set(b.triggerId,new xJ(a,b,c,d))};
g.k.yl=function(a){this.Ob.delete(a.triggerId)};
g.k.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.kc=function(){};
g.k.Hc=function(){};g.w(fL,g.O);g.k=fL.prototype;g.k.ll=function(a,b,c,d){a=new xJ(a,b,c,d);if(b instanceof vza||b instanceof nza){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");this.Ob.set(b.triggerId,a);c=c.slotId;a=this.C.has(c)?this.C.get(c):new Set;a.add(b);this.C.set(c,a)}else throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in PrefetchTriggerAdapter");};
g.k.yl=function(a){this.Ob.delete(a.triggerId)};
g.k.Kg=function(a){var b=a.slotId;if(this.C.has(b)){a=new Set;b=g.x(this.C.get(b));for(var c=b.next();!c.done;c=b.next())a.add(c.value.triggerId);a=[];b=g.x(this.Ob.values());for(c=b.next();!c.done;c=b.next())c=c.value,c.trigger.triggerType==="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION"&&a.push(c);a.length>0&&aE(this.G(),a)}};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.kc=function(){};
g.k.Hc=function(){};
g.k.Hg=function(){};
g.k.PS=function(){if(this.j){this.B&&this.B.stop();this.D&&g.rp(this.D);for(var a=g.x(this.Ob.values()),b=a.next();!b.done;b=a.next());}return!1};
g.k.uS=function(){};
g.k.Xj=function(a){this.j&&this.j.contentCpn!==a&&(My("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),gL(this))};
g.k.Bn=function(a){this.j&&this.j.contentCpn!==a&&My("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn},!0);gL(this)};
g.k.zS=function(a){var b=this;if(this.j)My("Unexpected multiple fetch instructions for the current content");else{this.j=a;a=fCa(a);this.B=new g.qp(function(){b.j&&(b.B&&(b.B.stop(),b.B.start()),dCa(b,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))},a?a:6E5);
this.B.start();this.D=new g.qp(function(){b.j&&(b.B&&(b.B.stop(),b.B.start()),dCa(b,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},eCa(this.j));
a=this.Ia.get().getCurrentTimeSec(1,!1);for(var c=g.x(this.Ie.get().ZC),d=c.next();!d.done;d=c.next())d=d.value,FI(this.Na.get(),"nocache","ct."+Date.now()+";cmt."+a+";d."+d.Xg.toFixed(3)+";tw."+(d.startSecs-a)+";cid."+d.identifier+";")}};
g.k.xa=function(){g.O.prototype.xa.call(this);gL(this)};g.w(hL,g.O);g.k=hL.prototype;g.k.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof wJ))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ob.set(b.triggerId,new xJ(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.yl=function(a){this.Ob.delete(a.triggerId);if(!(a instanceof wJ))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.Kg=function(){};
g.k.Hh=function(){};
g.k.Eh=function(){};
g.k.tf=function(){};
g.k.uf=function(){};
g.k.Fh=function(){};
g.k.Gh=function(){};
g.k.fh=function(){};
g.k.jg=function(){};
g.k.Hg=function(){};
g.k.kc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.x(a);var d=a.next();for(b={};!d.done;b={CN:void 0},d=a.next())b.CN=d.value,d=new g.qp(function(e){return function(){var f=c.Ob.get(e.CN.triggerId);aE(c.C(),[f])}}(b),b.CN.durationMs),d.start(),this.B.set(b.CN.triggerId,d)}};
g.k.Hc=function(){};g.w(iL,g.O);iL.prototype.ll=function(a,b,c,d){if(this.Ob.has(b.triggerId))throw new Z("Tried to register duplicate trigger for slot.");if(!(b instanceof ZI))throw new Z("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Ob.set(b.triggerId,new xJ(a,b,c,d))};
iL.prototype.yl=function(a){this.Ob.delete(a.triggerId)};mL.prototype.Ku=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.w(pL,g.O);g.k=pL.prototype;g.k.logEvent=function(a){this.Es(a)};
g.k.zk=function(a,b,c){this.Es(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
g.k.gi=function(a,b,c,d){this.Es(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.oO=function(a,b,c,d){sE(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);ID(this.j.get())&&this.Es(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
g.k.iJ=function(a,b,c,d,e){this.Es(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
g.k.Gm=function(a,b,c,d){this.Es("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.Es=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;sE(this.Aa.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Rqa:d,Wqa:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Aa.get().K.V().N("html5_disable_client_tmp_logs")&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||My("Empty PACF event type",e,f);var u=ID(r.j.get()),y={eventType:a,eventOrder:++r.eventCount},A={};
e&&(A.slotData=HD(u,e));f&&(A.layoutData=Rva(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=GD(l.trigger,l.category));b&&(A.opportunityData=Sva(u,b,c,d));u={organicPlaybackContext:{contentCpn:UH(r.Sa.get(),1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=UH(r.Sa.get(),1).Yb;var C;u.organicPlaybackContext.isMdxPlayback=(C=UH(r.Sa.get(),1))==null?void 0:
C.isMdxPlayback;var F;if((F=UH(r.Sa.get(),1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var H;if(C=(H=UH(r.Sa.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.Dt("adsClientStateChange",{adsClientEvent:y})}};
q&&q>0?g.qt(g.tt(),function(){return t()},q):t()}catch(u){sE(this.Aa.get(),"html5_log_pacf_logging_errors")&&g.qt(g.tt(),function(){My(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}};var Keb=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.w(qL,pL);g.k=qL.prototype;
g.k.zk=function(a,b,c){pL.prototype.zk.call(this,a,b,c);SF(this.Aa.get())&&(c={},this.context.ej.Rj("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
g.k.gi=function(a,b,c,d){var e=Keb.has(a);pL.prototype.gi.call(this,a,b,c,d);SF(this.Aa.get(),e)&&(d={},this.context.ej.Rj("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.iJ=function(a,b,c,d,e){pL.prototype.iJ.call(this,a,b,c,d,e);SF(this.Aa.get())&&(c={},this.context.ej.Rj("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))};
g.k.oO=function(a,b,c,d){pL.prototype.oO.call(this,a,b,c,d);if(SF(this.Aa.get())){var e={};this.context.ej.Rj("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.Gm=function(a,b,c,d){pL.prototype.Gm.call(this,a,b,c,d);if(SF(this.Aa.get(),!0)){var e={};this.context.ej.Rj("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.Es=function(a,b,c,d,e,f,h,l,m,n,p){if(g.YD(this.Aa.get().K.V())){var q=this.Aa.get();q=g.KD(q.K.V().experiments,"H5_async_logging_delay_ms")}else q=void 0;pL.prototype.Es.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};rL.prototype.clear=function(){this.j.clear()};uL.prototype.resolve=function(a){sL(this,a)};
uL.prototype.reject=function(a){tL(this,a)};
uL.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}};
uL.prototype.wait=function(){var a=this;return function c(){return Caa(c,function(d){if(d.j==1)return d.L=0,d.D=2,g.G(d,{u9:a},4);if(d.j!=2)return d.return(d.B);g.za(d);return g.Aa(d,0)})}()};
var EJa=Sc(function(a){return vL(a)?a instanceof uL:!1});var EL=window.yna||"en";HL.prototype.ZH=function(a){this.client=a};
HL.prototype.j=function(){this.clear();this.csn=g.Xw()};
HL.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};JL.prototype.ZH=function(a){g.qr(IL().ZH).bind(IL())(a)};
JL.prototype.clear=function(){g.qr(IL().clear).bind(IL())()};g.k=KL.prototype;g.k.ZH=function(a){this.client=a};
g.k.oY=function(a,b){var c=this;b=b===void 0?{}:b;g.qr(function(){var d,e,f,h=((d=g.Q(a==null?void 0:a.commandMetadata,g.Q1))==null?void 0:d.rootVe)||((e=g.Q(a==null?void 0:a.commandMetadata,gdb))==null?void 0:(f=e.screenVisualElement)==null?void 0:f.uiType);if(h){d=g.Q(a==null?void 0:a.commandMetadata,vdb);if(d==null?0:d.parentTrackingParams){var l=g.Uw(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.Uw(a.clickTrackingParams));
a:{d=g.Q(a,g.kR);e=g.Q(a,rdb);if(d){if(e=wCa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=wCa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.Mr("expectation_logging")){var n;b.loggingExpectations=((n=g.Q(a==null?void 0:a.commandMetadata,gdb))==null?void 0:n.loggingExpectations)||void 0}ML(c,h,l,b)}else g.fx(new g.lt("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.Xw(c===void 0?0:c))?(Esa(this.client,c,g.Uw(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.Uw(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.W.push([a,b]):CCa(this,a,b,c)};QL.prototype.fetch=function(a,b,c){var d=this,e=FCa(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)})};
QL.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.fx(new g.lt("JSON parsing failed after XHR fetch",a,b,c));if((d==null?0:d.Tr)&&c)throw new g.KA(1,"JSON parsing failed after XHR fetch");e={}}b!==200&&(g.fx(new g.lt("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};RL.getInstance=function(){var a=g.Pa("ytglobal.storage_");a||(a=new RL,g.Oa("ytglobal.storage_",a));return a};
RL.prototype.estimate=function(){var a,b,c;return g.I(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(GCa()):d.return()})};
g.Oa("ytglobal.storageClass_",RL);Bt.prototype.Sj=function(a){this.handleError(a)};
Bt.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.Mr("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.Mr("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":ICa(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 o2={},qLa=g.vu("yt-player-local-media",{Js:(o2.index={po:2},o2.media={po:2},o2.captions={po:5},o2),shared:!1,upgrade:function(a,b){b(2)&&(g.Xt(a,"index"),g.Xt(a,"media"));b(5)&&g.Xt(a,"captions");b(6)&&(Yt(a,"metadata"),Yt(a,"playerdata"))},
version:5});var Leb={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},p2;a:{var q2=g.Fb();q2=q2.toLowerCase();if(g.Ab(q2,"android")){var Meb=q2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Meb){var Neb=parseFloat(Meb[1]);if(Neb<100){p2=Neb;break a}}var Oeb=q2.match("("+Object.keys(Leb).join("|")+")");p2=Oeb?Leb[Oeb[0]]:0}else p2=void 0}var LP=p2,KP=LP>=0;var hXa=window;var JCa=yi(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var TL;g.SL=new aC;TL=0;var UL={oP:function(a,b){a.splice(0,b)},
Wj:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
kI:function(a){a.reverse()}};var rZa=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var fP=RCa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.ou?!0:!1;var oKa={Iga:"adunit",gia:"detailpage",sia:"editpage",uia:"embedded",Xja:"leanback",hla:"previewpage",jla:"profilepage",A7:"unplugged",ela:"playlistoverview",Yla:"sponsorshipsoffer",Ola:"shortspage",bja:"handlesclaiming",qja:"immersivelivepage",aia:"creatormusic",rja:"immersivelivepreviewpage",Cga:"admintoolyurt"};var bEa={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},cEa={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"},oXa={"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.kM.prototype.getLanguageInfo=function(){return this.qc};
g.kM.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags};
g.kM.prototype.toString=function(){return this.qc.name};
g.kM.prototype.getLanguageInfo=g.kM.prototype.getLanguageInfo;lM.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
lM.prototype.compose=function(a){if(a.C&&pM(a))return VQ;if(a.C||pM(this))return a;if(this.C||pM(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;mM&&(d=this.sb!==0&&a.sb!==0?Math.min(this.sb,a.sb):this.sb===0?a.sb:this.sb);return mM&&b===this.B&&c===this.j&&d===this.sb||!mM&&b===this.B&&c===this.j?this:mM?new lM(b,c,!1,c===this.j&&d===this.sb?this.reason:a.reason,d):new lM(b,c,!1,c===this.j?this.reason:a.reason)};
lM.prototype.D=function(a){return!a.video||mM&&this.sb!==0&&this.sb<a.sb?!1:eEa(this,a.video.quality)};
var Peb=g.oM("auto","hd1080",!1,"l"),iWa=g.oM("auto","large",!1,"l"),VQ=g.oM("auto","auto",!1,"p"),mM=!1;tM.prototype.nu=function(a){a=a||VQ;for(var b=g.wn(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};
tM.prototype.FF=function(a){a=a||VQ;return g.wn(this.videoInfos,function(b){return a.D(b)})};
tM.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var vEa=new Set(["356"]);g.w(uM,g.O);uM.prototype.xa=function(){g.O.prototype.xa.call(this)};g.FM.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.FM.prototype.get=function(a){GM(this);return this.j[a]||null};
g.FM.prototype.qe=function(){this.url||(this.url=BEa(this));return this.url};
g.FM.prototype.clone=function(){var a=new g.FM(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.Rg(this.j);a.url=this.url;return a};
var AEa=[hna];g.k=g.NM.prototype;g.k.jJ=function(a){this.segments.push(a)};
g.k.Oo=function(a){return!!this.Fo(a)};
g.k.getDuration=function(a){return(a=this.Fo(a))?a.duration:0};
g.k.WY=function(a){return this.getDuration(a)};
g.k.Io=function(){return this.segments.length?this.segments[0].Oa:-1};
g.k.kf=function(a){return(a=this.Fo(a))?a.ingestionTime:NaN};
g.k.qd=function(){return this.segments.length?this.segments[this.segments.length-1].Oa:-1};
g.k.rG=function(a){return this.qd()===a&&!this.B&&a>=0};
g.k.uu=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Zc=function(){return this.segments[0].startTime};
g.k.UA=function(){return this.segments.length};
g.k.Zm=function(){return 0};
g.k.wi=function(a){return(a=this.GA(a))?a.Oa:-1};
g.k.FK=function(a){return(a=this.Fo(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Fo(a))?a.startTime:0};
g.k.sK=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.HK=ba(1);g.k.isLoaded=function(){return this.segments.length>0};
g.k.Fo=function(a){if(this.j&&this.j.Oa===a)return this.j;a=g.ic(this.segments,new MM(a,0,0,0,""),function(b,c){return b.Oa-c.Oa});
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.ic(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.dc(a),this.segments.length){var b=this.segments.length?g.Vb(this.segments).endTime:0,c=a[0].Oa-this.qd();c>1&&uba(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.fZ=function(){return 0};OM.prototype.skip=function(a){this.j+=a};GEa.prototype.Ok=function(){return new Uint8Array(this.data.buffer)};var r2={},Qeb=(r2.predictStart="predictStart",r2.start="start",r2["continue"]="continue",r2.stop="stop",r2),HEa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};YM.prototype.cG=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"])};
YM.prototype.toString=function(){for(var a="",b=g.x(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};kN.prototype.To=function(){var a=this.pos;this.pos=0;var b=!1;try{oN(this,440786851)&&(this.pos=0,oN(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.fx(c);else throw c;}this.pos=a;return b};yN.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
yN.prototype.get=function(a){return this.j[a]||this.base.get(a)};
yN.prototype.qe=function(){this.url||(this.url=bFa(this));return this.url};CN.prototype.qk=function(a,b){return a.Sb?this.W?this.L=!0:this.L=eFa(this,a,b):eFa(this,a,b)};
CN.prototype.BK=function(a){return this.C.get(a)};
CN.prototype.Pk=function(a,b){a.base===this.j&&(this.j=zN(a,b));a.base===this.D&&(this.D=zN(a,b))};
CN.prototype.gx=function(){return this.j!==this.D&&!this.L};IN.prototype.yg=function(){return!!this.j&&this.index.isLoaded()};
IN.prototype.vB=function(){return!1};
IN.prototype.wW=function(a){return[a]};
IN.prototype.xC=function(a){return[a]};JN.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};NN.prototype.Ti=function(){return this.D&&this.j.index.rG(this.Oa)};
NN.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
NN.prototype.Of=function(){return!!this.j.info.video};
NN.prototype.Cc=function(){var a=SN(this),b="";g.Eg(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};UN.prototype.JA=function(){return this.j?this.j.qe():""};
UN.prototype.isDecorated=function(){return!!(this.j||this.D&&this.D.Kn)};
UN.prototype.Zp=function(){return ON(this.jb[0])};
UN.prototype.Pk=function(a,b){this.resource.Pk(a,b);if(this.j){this.j=zN(a,b);b=g.x(["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.w(YN,IN);g.k=YN.prototype;g.k.vn=function(){return!1};
g.k.Xx=function(){return!0};
g.k.qB=function(){return!1};
g.k.vB=function(){return!this.G};
g.k.Ex=function(){return new UN([new NN(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.Uz=function(){return null};
g.k.MD=function(a){this.It(a);return this.Xx()&&a.C&&!a.D?new UN([new NN(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Oa,a.startTime,a.duration,a.B+a.C,NaN,!0)],this.index.FK(a.Oa)):this.Jt(RN(a),!1)};
g.k.Zr=function(a,b){b=b===void 0?!1:b;a=this.index.wi(a);b&&(a=Math.min(this.index.qd(),a+1));return this.Jt(a,!0)};
g.k.UQ=function(a){lO(a)};
g.k.It=function(a){return a.C===0?!0:this.index.qd()>a.Oa&&this.index.Io()<=a.Oa+1};
g.k.update=function(a,b,c){this.index.append(a);EEa(this.index,c);a=this.index;a.B=b;a.C="update"};
g.k.yg=function(){return this.vB()?!0:IN.prototype.yg.call(this)};
g.k.Jt=function(a,b){var c=this.index.FK(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.sb>0?this.info.sb*e:1E3;return new UN([new NN(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.BQ=function(){return this.vB()?0:this.initRange.length};
g.k.qT=function(){return!1};aO.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new aO,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+ZN(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+ZN(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Xg:0,m=Date.parse(yFa(ZN(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.U=ZN(a,"media"));a=b?h-b.Oa:1;c.L=a>0?0:-a+1;a=g.x(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.Oa)h++;else{var t=new wFa(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 WM(A,y,C,F,Qeb[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.Vb(c.j))}this.L=c.L;this.B=c.B||this.B;g.ec(this.j,c.j);g.ec(this.C,c.C);this.G=c.G;this.U=c.U;this.D===-1&&(this.D=c.getStreamTimeOffset())};
aO.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.w(cO,g.NM);g.k=cO.prototype;g.k.Oo=function(a,b){a=dO(this,a);return a>=0&&(b||!this.segments[a].pending)};
g.k.Io=function(){return this.qo?this.segments.length?this.GA(this.Zc()).Oa:-1:g.NM.prototype.Io.call(this)};
g.k.Zc=function(){if(this.je)return 0;if(!this.qo)return g.NM.prototype.Zc.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Vb(this.segments).endTime-this.Qr,0);return this.mf>0&&this.GA(a).Oa<this.mf?this.Fo(this.mf).startTime:a};
g.k.uu=function(){if(this.HI&&this.qn&&this.qn>0)return this.qn/1E3;if(!this.segments.length)return g.NM.prototype.uu.call(this);var a=this.qd();if(!this.qo||a<=this.segments[this.segments.length-1].Oa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new MM(a,Math.max(0,b.startTime-(b.Oa-a)*this.nk),this.nk,0,"sq/"+a,void 0,void 0,!0)}return this.je?Math.min(this.Qr,a.endTime):a.endTime};
g.k.UA=function(){return this.qo?this.segments.length?this.qd()-this.Io()+1:0:g.NM.prototype.UA.call(this)};
g.k.qd=function(){var a=Math.min(this.Di,Math.max(g.NM.prototype.qd.call(this),this.rq)),b=this.Qr*1E3;b=this.qn>0&&this.qn<b;this.je&&this.Qr>0&&this.rq>0&&!b&&(b=this.GA(this.Qr))&&(a=Math.min(b.Oa-1,a));return a};
g.k.Ax=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.jJ=function(a){var b=dO(this,a.Oa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.IB&&a.Oa%(300/this.nk)===0){var c=this.segments[0].Oa,d=Math.floor(this.IB/this.nk);a=a.Oa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.vK=function(){return this.rq};
g.k.rG=function(a){return bO?!this.B&&a>=0&&this.qd()<=a:g.NM.prototype.rG.call(this,a)};
g.k.GA=function(a){if(!this.qo)return g.NM.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].Oa-Math.ceil((this.segments[0].startTime-a)/this.nk));else if(a>=b.endTime)b=b.Oa+Math.floor((a-b.endTime)/this.nk+1);else{b=kc(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.Oa-b.Oa-1))+1)+b.Oa}return this.Fo(b)};
g.k.Fo=function(a){if(!this.qo)return g.NM.prototype.Fo.call(this,a);if(!this.segments.length)return null;var b=dO(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.nk;if(c===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Oa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Oa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Oa-d.Oa-1),d=d.endTime+(a-d.Oa-1)*b);return new MM(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};
var bO=!1;g.w(eO,YN);g.k=eO.prototype;g.k.qB=function(){return!0};
g.k.yg=function(){return!0};
g.k.It=function(a){return this.Xx()&&a.C&&!a.D||!a.j.index.rG(a.Oa)};
g.k.Ex=function(){};
g.k.Zr=function(a,b){return typeof a!=="number"||isFinite(a)?YN.prototype.Zr.call(this,a,b===void 0?!1:b):new UN([new NN(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.lk,void 0,this.lk*this.info.sb)],"")};
g.k.Jt=function(a,b){var c=c===void 0?!1:c;if(this.index.Oo(a))return YN.prototype.Jt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.lk*this.info.sb),f=this.lk;b&&(f=e=0);return new UN([new NN(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.w(fO,IN);g.k=fO.prototype;g.k.vn=function(){return!1};
g.k.Xx=function(){return!1};
g.k.qB=function(){return!1};
g.k.Ex=function(){return new UN([new NN(1,this,void 0,"otfInit")],this.G)};
g.k.Uz=function(){return null};
g.k.MD=function(a){this.It(a);return GFa(this,RN(a),!1)};
g.k.Zr=function(a,b){b=b===void 0?!1:b;a=this.index.wi(a);b&&(a=Math.min(this.index.qd(),a+1));return GFa(this,a,!0)};
g.k.UQ=function(a){a.info.type===1&&(this.j||(this.j=dB(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&HFa(this,a.B))};
g.k.It=function(a){return a.C===0?!0:this.index.qd()>a.Oa&&this.index.Io()<=a.Oa+1};
g.k.BQ=function(){return 0};
g.k.qT=function(){return!1};gO.prototype.Pd=function(){return this.j.Pd()};g.k=g.mO.prototype;g.k.Oo=function(a){return a<=this.qd()};
g.k.Zm=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.hh[a]/this.j};
g.k.sK=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.HK=ba(0);g.k.kf=function(){return NaN};
g.k.getDuration=function(a){a=this.WY(a);return a>=0?a/this.j:-1};
g.k.WY=function(a){return a+1<this.count||this.B?this.hh[a+1]-this.hh[a]:-1};
g.k.Io=function(){return 0};
g.k.qd=function(){return this.count-1};
g.k.rG=function(a){return this.qd()===a&&a>=0};
g.k.uu=function(){return this.B?this.hh[this.count]/this.j:NaN};
g.k.Zc=function(){return 0};
g.k.UA=function(){return this.count};
g.k.FK=function(){return""};
g.k.wi=function(a){a=g.ic(this.hh.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return this.qd()>=0};
g.k.fZ=function(a,b){if(a>=this.qd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.qd()&&b>this.getStartTime(a);a++)c=Math.max(c,PFa(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.hh;this.hh=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.hh[a]=c[a]};
g.k.cap=function(a,b){nO(this);this.B=!0;this.hh[this.count]=b;this.offsets[this.count]=a};g.w(oO,IN);g.k=oO.prototype;g.k.Ex=function(a,b){var c=new NN(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new NN(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 NN(4,this,LN(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new UN(d)};
g.k.UQ=function(a){if(a.info.type===1){if(this.j)return;this.j=dB(a.j)}else if(a.info.type===2){if(this.G||this.index.qd()>=0)return;if(g.rG(this.info)){var b=this.index,c=a.Pd();a=a.info.range.start;var d=g.aN(c,0,1936286840);c=QEa(d);b.j=c.ut;var e=c.M8;b.offsets[0]=c.p9+a+d.size;b.hh[0]=e;b.B=!0;a=c.LU.length;for(d=0;d<a;d++){e=b;var f=c.lea[d],h=c.LU[d];e.count++;nO(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.hh[e.count]=e.hh[e.count-1]+h}}else this.G=a.Pd()}if(this.info.Re()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new kN(c);c=e;e=c.pos;f={u3:1E6,v3:1E9,duration:0,B2:0,cU:0};if(oN(c,408125543))if(f.B2=pN(c,!0),f.cU=c.start+c.pos,oN(c,357149030)){for(h=nN(c);!lN(h);){var l=pN(h,!1);l===2807729?f.u3=rN(h):l===2807730?f.v3=rN(h):l===17545?f.duration=tN(h):sN(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(c!==null){b.j=c.v3/c.u3;e=new kN(d);d=e;h=c.cU;e=d.pos;f=[];if(oN(d,475249515)){for(l=nN(d);oN(l,187);){var m=nN(l);if(oN(m,
179)){var n=rN(m);if(oN(m,183)){m=nN(m);for(var p=h;oN(m,241);)p=rN(m)+h;f.push({KJ:p,u8:n})}}}if(f.length>0&&a===f[0].KJ)for(a=0;a<f.length;a++)f[a].KJ+=1;d.pos=e;a=f}else d.pos=e,a=null;if(a!==null){a=g.x(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.KJ,f=f.u8,nO(d),d.offsets[d.count]=e,d.hh[d.count]=f,d.count++;b.cap(c.B2+c.cU,c.duration)}}this.G=null}};
g.k.TF=function(a,b,c,d){for(var e=[],f=a;f<=this.index.qd();f++){var h=LN(this.index.Zm(f),PFa(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 NN(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.ex(new g.lt("b189619593",""+a,""+b,""+c));return new UN(e)};
g.k.wW=function(a){for(var b=this.xC(a.info),c=a.info.range.start+a.info.B,d=[],e=0;e<b.length;e++){var f=aB(a.j,b[e].range.start+b[e].B-c,b[e].C);d.push(new gO(b[e],f))}return d};
g.k.xC=function(a){for(var b=a.range.start+a.B,c=0;c<this.index.qd()&&b>=this.index.Zm(c+1);)c++;return this.TF(c,b,a.C).jb};
g.k.It=function(a){a.Ti();return this.yg()?!0:a.range.end+1<this.info.contentLength};
g.k.Uz=function(a,b){this.It(a);if(!this.yg())return b=LN(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new JN(b.start,this.info.contentLength-1)),new UN([new NN(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.xC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.B+a.C;a.type===3&&(a.Ti(),c=a.Oa,d===a.range.end+1&&(c+=1));return this.TF(c,d,b)};
g.k.MD=function(){return null};
g.k.Zr=function(a,b,c){b=b===void 0?!1:b;a=this.index.wi(a);b&&(a=Math.min(this.index.qd(),a+1));return this.TF(a,this.index.Zm(a),0,c)};
g.k.vn=function(){return!0};
g.k.Xx=function(){return!0};
g.k.qB=function(){return!1};
g.k.BQ=function(){return this.indexRange.length+this.initRange.length};
g.k.qT=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var s2={},nHa=(s2.COLOR_PRIMARIES_BT709="bt709",s2.COLOR_PRIMARIES_BT2020="bt2020",s2.COLOR_PRIMARIES_UNKNOWN=null,s2.COLOR_PRIMARIES_UNSPECIFIED=null,s2),t2={},RFa=(t2.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",t2.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",t2.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",t2.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",t2.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,t2.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,t2);g.pO.prototype.getName=function(){return this.name};
g.pO.prototype.getId=function(){return this.id};
g.pO.prototype.getIsDefault=function(){return this.isDefault};
g.pO.prototype.toString=function(){return this.name};
g.pO.prototype.getName=g.pO.prototype.getName;g.pO.prototype.getId=g.pO.prototype.getId;g.pO.prototype.getIsDefault=g.pO.prototype.getIsDefault;var VFa=/action_display_post/;var WFa,sO,tO;g.w(uO,g.Fx);g.k=uO.prototype;g.k.isLoading=function(){return this.state===1};
g.k.fm=function(){return this.state===3};
g.k.Gda=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.Yb=this.B=!0;this.timeline||(this.timeline=new AFa);EFa(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=mJa(this,b[a]);if(!this.j[c.id]){var d=zO($N(b[a],"BaseURL").textContent),e=$N(b[a],"Initialization"),f=ZN(e,"sourceURL");e=KN(ZN(e,"range"));this.j[c.id]=new YN(d,c,f,e)}c=this.j[c.id];d=ZN(b[a],"id",
"AdaptationSet");d=d!==""?d:ZN(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.U&&f.getStreamTimeOffset()&&(this.U=f.getStreamTimeOffset());if(f.G){e=[];d=g.x(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=c.info.sb*8,n=h.Oa;var p=h.startSecs;var q=f.U.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 MM(h.Oa,h.startSecs,h.Xg,h.j,q.join("$"),null,h.B))}d=e}else{f=fc($N(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.L);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=KN(r):q=q+"?range="+r}m.call(l,new MM(n.Oa,n.startSecs,n.Xg,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Za)}FFa(this.timeline);return!0}this.duration=xFa(ZN(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=mJa(this,f);d=zO($N(f,"BaseURL").textContent);e=$N(f,"SegmentBase");f=KN(e.attributes.getNamedItem("indexRange").value);e=KN(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new oO(d,c,e,f);if(!c){b=!1;break a}rO(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.Ja()){var a=g.cj(this.sourceUrl,{start_seq:rJa(this).toString()});oJa(this,a).wl(function(){})}};
g.k.resume=function(){nJa(this)};
g.k.ge=function(){if(this.isManifestless&&this.D&&BO(this))return BO(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()&&!wG(f.info.mimeType)&&(f.D&&(b=!0),h=h.uu(),f.info.Kf()&&(isNaN(c)||h<c)?c=h:f.info.Of()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Zc=function(){if(this.isManifestless){if(CO(this))return CO(this);if(this.Ac){var a=this.kf(this.ge());if(a&&(a-=this.Ac,a>0))return this.ge()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!wG(a[b].info.mimeType))return c.Zc()}return 0};
g.k.getStreamTimeOffset=function(){return this.U};
g.k.kf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.wi(a),e=c.kf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var IO=null,Reb,JO=!((Reb=navigator.mediaCapabilities)==null||!Reb.decodingInfo),lJa={commentary:1,alternate:2,dub:3,main:4};var aW=new Set,KO=new Map;NO.prototype.clone=function(a){return new NO(this.flavor,a,this.B,this.experiments)};
NO.prototype.wc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
NO.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 Seb={},XO=(Seb.playready=["com.youtube.playready","com.microsoft.playready"],Seb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Seb),u2={},VVa=(u2.widevine="DRM_SYSTEM_WIDEVINE",u2.fairplay="DRM_SYSTEM_FAIRPLAY",u2.playready="DRM_SYSTEM_PLAYREADY",u2),v2={},Teb=(v2.widevine=1,v2.fairplay=2,v2.playready=3,v2);ZO.prototype.Lg=function(a,b){b=b===void 0?1:b;this.xo+=b;this.B+=a;a/=b;for(var c=0;c<YO.length&&!(a<YO[c]);++c)this.j[c]+=b};
ZO.prototype.toString=function(){return""};
var YO=[20,100,500,2E3];g.k=BJa.prototype;g.k.isActive=function(){return!0};
g.k.gL=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={t1:void 0,Y1:void 0},b.hasOwnProperty(e)&&(d.t1=a.prototype[e],d.Y1=b[e],a.prototype[e]=function(f){return function(){var h=g.Da.apply(0,arguments),l=(0,g.Vt)();h=f.t1.apply(this,h);return $O(c,h,f.Y1,l)}}(d))}};
g.k.mB=function(a,b){if(b){var c=this,d={},e;for(e in b)d={iY:void 0,k0:void 0},b.hasOwnProperty(e)&&(d.k0=a.prototype[e],d.iY=b[e],a.prototype[e]=function(f){return function(){var h=g.Da.apply(0,arguments),l=this,m=(0,g.Vt)(),n=f.k0.apply(l,h);return $O(c,n,null,m,function(p){return f.iY.apply(l,[p].concat(h))})}}(d))}};
g.k.QI=function(a,b){var c=this;return function(){var d=g.Da.apply(0,arguments),e=(0,g.Vt)();d=b.apply(null,d);return $O(c,d,a,e)}};
g.k.SC=function(){return new AJa};
g.k.HA=function(a,b,c){c=c===void 0?1:c;b instanceof AJa&&(CJa(this,a,(0,g.Vt)()-b.startTimeMs,c),b.j=!0)};
g.k.Tq=function(a,b){var c=(0,g.Vt)();b=b();return $O(this,b,a,c)};
g.k.PY=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(c.xo===0)c=null;else{for(var d=Math.ceil(c.xo).toFixed(0)+"."+c.B.toFixed(0),e=0;e<YO.length;++e)if(c.j[e]>0)d+="."+YO[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new zJa;return a};
g.k.toString=function(){return""};g.k=FJa.prototype;g.k.isActive=function(){return!1};
g.k.gL=function(){};
g.k.mB=function(){};
g.k.QI=function(a,b){return b};
g.k.SC=function(){};
g.k.HA=function(){};
g.k.Tq=function(a,b){return b()};
g.k.PY=function(){return{}};
g.k.toString=function(){return""};var w2,Ueb,Veb,Web,Xeb,Yeb,x2,lY,IT,p8a,dP;w2=new FJa;Ueb=!!+nr("html5_enable_profiler");Veb=!!+nr("html5_onesie_enable_profiler");Web=!!+nr("html5_offline_encryption_enable_profiler");Xeb=!!+nr("html5_performance_impact_profiling_timer_ms");Yeb=!!+nr("html5_drm_enable_profiler");x2=Ueb||Veb||Web||Xeb||Yeb?new BJa:w2;g.n_=Ueb?x2:w2;lY=Veb?x2:w2;IT=Web?x2:w2;p8a=Xeb?x2:w2;dP=Yeb?x2:w2;var cP;g.w(aP,g.O);
aP.prototype.initialize=function(a,b){for(var c=this,d=g.x(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.x(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.le)for(var h=g.x(Object.keys(f.le)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=XO[m];!m&&this.N("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.x(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new NO(l,n,f.le[l],this.Ca.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}js()&&(this.C["com.youtube.fairplay"]=new NO("fairplay","com.youtube.fairplay","",this.Ca.experiments),this.N("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=yJa(b,this.useCobaltWidevine,this.N("html5_enable_safari_fairplay"),this.N("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
aP.prototype.N=function(a){return this.Ca.experiments.fb(a)};var i_a={"":"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"};MJa.prototype.N=function(a){return this.experiments.fb(a)};var qKa={RED:"red",tna:"white"};NJa.prototype.fb=function(a){a=this.flags[a];JSON.stringify(a);return a==="true"};var QJa=Promise.resolve(),UJa=window.queueMicrotask?window.queueMicrotask.bind(window):RJa;hP.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;nu?a=a||Zeb[b]:LP===2.2?a=a||$eb[b]:hs()&&(a=a||afb[b]);return!!a};
hP.prototype.isTypeSupported=function(a){return this.qa?window.cast.receiver.platform.canDisplayType(a):aG(a)};
var $eb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},afb={"application/x-mpegURL":"maybe"},Zeb={"application/x-mpegURL":"maybe"};g.w(mP,g.Fx);mP.prototype.add=function(a,b){if(!this.items[a]&&(b.GJ||b.iP||b.AN)){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)}};
mP.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
mP.prototype.get=function(a){return this.items[a]||null};
mP.prototype.isEmpty=function(){return g.Og(this.items)};g.w(nP,g.UB);nP.prototype.j=function(a,b){return g.UB.prototype.j.call(this,a,b)};
nP.prototype.B=function(a,b,c){var d=this;return g.I(function(e){return e.j==1?g.G(e,g.UB.prototype.B.call(d,a,b,c),2):e.return(e.B)})};
g.w(oP,g.VB);oP.prototype.encrypt=function(a,b){return g.VB.prototype.encrypt.call(this,a,b)};var qP;rP.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++]=qP[(a&31)+32],a>>=5;this.data[this.pos++]=qP[a|0]};
rP.prototype.Hi=function(){return g.iB(this.data.subarray(0,this.pos))};
rP.prototype.reset=function(){this.pos=0};sP.prototype.Ej=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
sP.prototype.rh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};tP.prototype.Ej=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.Um=!0};
tP.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.Um&&(g.lc(this.G,function(c,d){return b.values[c]-b.values[d]}),this.Um=!1);
return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0};
tP.prototype.rh=function(){return this.L?(this.percentile(this.D-this.L)+this.percentile(this.D)+this.percentile(this.D+this.L))/3:this.percentile(this.D)};g.w(uP,g.O);uP.prototype.Ua=function(){var a;(a=this.Pa)==null||a.start();if(CP(this)&&this.policy.W){var b;(b=this.Ld)==null||b.PG()}};hKa.prototype.N=function(a){return this.experiments.fb(a)};g.w(jKa,g.O);var pKa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),vKa={fha:"caoe",gha:"capsv",vha:"cbrand",wha:"cbr",yha:"cbrver",Jha:"cchip",Qha:"ccappver",Rha:"ccrv",Mia:"cfrmver",tja:"c",wja:"cver",vja:"ctheme",uja:"cplayer",uka:"cmodel",Gka:"cnetwork",Oka:"cos",Pka:"cosver",Wka:"cplatform",yla:"crqyear"};g.w(VP,g.O);g.k=VP.prototype;g.k.N=function(a){return this.experiments.fb(a)};
g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.XP(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.OP(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),nu&&(a=lna())&&(b.ebc=a));return g.cj(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.XP(this)+"/embed/"+b;d&&(b=g.cj(b,{list:d}));d=c.width;c=c.height;b=kg(b);a=kg(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.$F&&!nu&&fs()>=74||g.VO&&g.tc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.N("html5_enable_short_gapless")||this.Ua||g.Nt?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Xb=function(){return this.Xf};
g.k.wv=function(){this.N("html5_enable_lawnmower_messaging")};
var zKa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],uKa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],xKa=[19];var y2={},CKa=(y2["140"]={numChannels:2},y2["141"]={numChannels:2},y2["251"]={audioSampleRate:48E3,numChannels:2},y2["774"]={audioSampleRate:48E3,numChannels:2},y2["380"]={numChannels:6},y2["328"]={numChannels:6},y2),z2={},AKa=(z2["1"]='video/mp4; codecs="av01.0.08M.08"',z2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',z2["9"]='video/webm; codecs="vp9"',z2["("]='video/webm; codecs="vp9"',z2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',z2.h='video/mp4; codecs="avc1.64001e"',
z2.H='video/mp4; codecs="avc1.64001e"',z2.o='audio/webm; codecs="opus"',z2.a='audio/mp4; codecs="mp4a.40.2"',z2.ah='audio/mp4; codecs="mp4a.40.2"',z2.mac3='audio/mp4; codecs="ac-3"; channels=6',z2.meac3='audio/mp4; codecs="ec-3"; channels=6',z2),A2={},BKa=(A2["337"]={width:3840,height:2160,bitrate:3E7,fps:30},A2["336"]={width:2560,height:1440,bitrate:15E6,fps:30},A2["335"]={width:1920,height:1080,bitrate:75E5,fps:30},A2["702"]={width:7680,height:4320,bitrate:4E7,fps:60},A2["701"]={width:3840,height:2160,
bitrate:2E7,fps:60},A2["700"]={width:2560,height:1440,bitrate:1E7,fps:60},A2["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},A2["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},A2["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},A2["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},A2["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},
A2["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},A2["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},A2["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},A2["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},A2["315"]={width:3840,height:2160,bitrate:2E7,fps:60},A2["308"]={width:2560,height:1440,bitrate:1E7,fps:60},A2["303"]={width:1920,height:1080,bitrate:5E6,fps:60},
A2["302"]={width:1280,height:720,bitrate:25E5,fps:60},A2["299"]={width:1920,height:1080,bitrate:75E5,fps:60},A2["298"]={width:1280,height:720,bitrate:35E5,fps:60},A2["571"]={width:7680,height:4320,bitrate:3E7,fps:60},A2["401"]={width:3840,height:2160,bitrate:15E6,fps:60},A2["400"]={width:2560,height:1440,bitrate:75E5,fps:60},A2["399"]={width:1920,height:1080,bitrate:2E6,fps:60},A2["398"]={width:1280,height:720,bitrate:1E6,fps:60},A2["397"]={width:854,height:480,bitrate:4E5,fps:30},A2["396"]={width:640,
height:360,bitrate:25E4,fps:30},A2["787"]={width:1080,height:608,bitrate:2E5,fps:30},A2["788"]={width:1080,height:608,bitrate:4E5,fps:30},A2["313"]={width:3840,height:2160,bitrate:8E6,fps:30},A2["271"]={width:2560,height:1440,bitrate:4E6,fps:30},A2["248"]={width:1920,height:1080,bitrate:2E6,fps:30},A2["247"]={width:1280,height:720,bitrate:15E5,fps:30},A2["244"]={width:854,height:480,bitrate:52E4,fps:30},A2["243"]={width:640,height:360,bitrate:28E4,fps:30},A2["137"]={width:1920,height:1080,bitrate:4E6,
fps:30},A2["136"]={width:1280,height:720,bitrate:3E6,fps:30},A2["135"]={width:854,height:480,bitrate:1E6,fps:30},A2["385"]={width:1920,height:1080,bitrate:6503313,fps:60},A2["376"]={width:1280,height:720,bitrate:5706960,fps:60},A2["384"]={width:1280,height:720,bitrate:3660979,fps:60},A2["225"]={width:1280,height:720,bitrate:5805E3,fps:30},A2["224"]={width:1280,height:720,bitrate:453E4,fps:30},A2["145"]={width:1280,height:720,bitrate:2682052,fps:30},A2);g.k=mQ.prototype;g.k.getInfo=function(){return this.j};
g.k.ND=function(){return null};
g.k.YY=function(){var a=this.ND();return a?(a=g.wr(a.resource),Number(a.expire)):NaN};
g.k.dU=function(){};
g.k.getHeight=function(){return this.j.video.height};GKa.prototype.build=function(){JKa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.x(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.qc){if(e.qc.getIsDefault()){c=e.qc.getId();break a}c||(c=e.qc.getId())}}d=g.x(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.L||!e.qc||e.qc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.x(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.x(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.qc){p=f.qc;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=oQ(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(IKa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.x(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=bfb,d=(h=d.qc)?'#EXT-X-MEDIA:URI="'+oQ(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?bfb:void 0;d=g.x(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="')+(IKa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+=
",FRAME-RATE="+h.fps),h.gD&&(l+=",VIDEO-RANGE="+h.gD),a.push(l),a.push(oQ(this,e.url,"")));return a.join("\n")};
var bfb="text";g.w(pQ,mQ);pQ.prototype.YY=function(){return this.expiration};
pQ.prototype.ND=function(){if(!this.resource||this.resource.Ja()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new LG(a)}return this.resource};g.w(qQ,mQ);qQ.prototype.ND=function(){return new LG(this.B.qe())};
qQ.prototype.dU=function(){this.B=KM(this.B)};g.w(rQ,mQ);rQ.prototype.ND=function(){return new LG(this.B)};var B2={},TKa=(B2.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",B2.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",B2.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",B2);g.k=g.sQ.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.qe=function(){return this.url};
g.k.getXtags=function(){return this.xtags};
g.k.toString=function(){return this.languageCode+": "+g.tQ(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.Be=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},$Ka=/^(\d*)_((\d*)_?(\d*))$/;var bLa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},cLa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var C2={},OLa=(C2.ALWAYS=1,C2.BY_REQUEST=3,C2.UNKNOWN=void 0,C2),D2={},ULa=(D2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",D2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",D2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",D2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",D2);var Yua;
Yua=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{ana(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 jva(a,b)}});
g.nR=new XA;AQ.prototype.toString=function(){return this.type+this.id};g.CQ.prototype.uh=function(a){a=a||"hqdefault.jpg";var b=this.W[a];if(b)return b;if(a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.j)return YP(this.Ca,this.j,a)};
g.CQ.prototype.Wl=function(){return this.Ca.getVideoUrl(this.videoId,this.playlistId)};g.DQ.prototype.uh=function(a){a||(a="hqdefault.jpg");var b=this.W[a];return b?b:a==="pop1.jpg"||a==="pop2.jpg"||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg"?b:YP(this.Ca,this.videoId,a)};
g.DQ.prototype.Wl=function(a){return this.watchUrl||this.Ca.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var GQ=void 0;Xua("LMS",function(){return g.I(function(a){return a.return(g.HQ())})});var LQ;LQ=0;g.yLa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Xua("LMDB",function(){var a,b;return g.I(function(c){if(c.j==1)return g.G(c,g.tu(),2);if(c.j!=3){a=c.B;if(!a)throw g.Pt("edd");return g.G(c,g.KQ(a),3)}b=c.B;return c.return(g.Zt(b,["index","media","captions"],{mode:"readonly",Qb:!0},function(d){var e={};d=[g.du(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.eu(f)}),
$oa(d.objectStore("media")),$oa(d.objectStore("captions"))];return g.Rt.all(d).then(function(f){var h=g.x(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:zLa(f||[]),captions:h}})}))})});g.w(NQ,g.Fx);NQ.prototype.xa=function(){this.j&&(this.j=this.j.onload=null);g.Fx.prototype.xa.call(this)};g.k=g.RQ.prototype;g.k.getHeight=function(){return this.height};
g.k.eZ=ba(2);g.k.uK=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.qe=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.cj(b,{sigh:this.signature}));return zE(b)};
g.k.kJ=function(a){var b=this.uK()-1;return g.xg(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.pO=function(){return this.frameCount?0:-1};
g.k.xW=function(){};g.w(SQ,NQ);SQ.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.U||f.getHeight()<180)&&c.push(f)}return c};
SQ.prototype.G=function(a,b,c,d){return new g.RQ(a,b,c,d)};g.w(TQ,g.RQ);g.k=TQ.prototype;g.k.uK=function(){return this.B.UA()};
g.k.kJ=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.qd();a=c.wi(a);return a>d-b?-1:a};
g.k.Vz=function(){return this.B.qd()};
g.k.pO=function(){return this.B.Io()};
g.k.xW=function(a){this.B=a};g.w(UQ,SQ);UQ.prototype.B=function(a,b){return SQ.prototype.B.call(this,"$N|"+a,b)};
UQ.prototype.G=function(a,b,c){return new TQ(a,b,c,this.isLive)};var $La=[],ZLa=new Set;g.w(g.WQ,g.Fx);g.k=g.WQ.prototype;g.k.V=function(){return this.Ca};
g.k.N=function(a){return this.Ca.N(a)};
g.k.Bh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.Te)==null||!a.Kb)};
g.k.getUserAudio51Preference=function(){var a=1;cQ(this.Ca)&&this.N("html5_ytv_surround_toggle_default_off")?a=0:g.$P(this.Ca)&&this.isLivePlayback&&this.Si()&&(a=0);var b;return(b=g.$s("yt-player-audio51"))!=null?b:a};
g.k.I0=function(){this.Ja()||(this.j.B||this.j.unsubscribe("refresh",this.I0,this),this.cY(-1))};
g.k.cY=function(a){if(!this.isLivePlayback||!this.G||this.G.flavor!=="fairplay"){var b=JIa(this.j,this.pD);if(b.length>0){for(var c=g.x(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Zc());this.publish("cuepointupdated",b,a);this.pD+=b.length;if(iR(this)&&this.Ca.Xb())for(b=g.x(b),c=b.next();!c.done;c=b.next())c=c.value,this.oa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.WD.start=this.Oh,
this.WD.end=c+3)}}};
g.k.Si=function(){return this.Fw!==void 0?this.Fw:this.Fw=!!this.le||!!this.j&&yM(this.j)};
g.k.wJ=function(a){var b=this;if(this.Ja())return Xr();this.Fd=this.eb=this.C=null;fR(this,"html5_high_res_logging_always")&&(this.Ca.Xf=!0);return sMa(this,a).then(void 0,function(){return tMa(b,a)}).then(void 0,function(){return uMa(b)}).then(void 0,function(){return wMa(b)})};
g.k.Nk=function(){if(this.cotn)return null;var a=g.WD(this.Ca)||this.N("web_l3_storyboard");if(!this.xl)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.xl=new SQ(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=wea(this.j.j).index)&&(this.xl=new UQ(b.spec,this.j.isLive,c,a))}else this.aD?this.xl=new SQ(this.aD,this.lengthSeconds,void 0,!1,a):this.Zw&&this.j&&
(b=wea(this.j.j).index)&&(this.xl=new UQ(this.Zw,this.j.isLive,b,a));return this.xl};
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.aD||this.Zw};
g.k.ge=function(){return this.j&&!isNaN(this.j.ge())?this.j.ge():iR(this)?0:this.lengthSeconds};
g.k.Zc=function(){return this.j&&!isNaN(this.j.Zc())?this.j.Zc():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.wi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null};
g.k.Be=function(){return!this.Ja()&&!(!this.videoId&&!this.Hm)};
g.k.Kx=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 XQ(this)&&!this.Kj&&!this.Kp};
g.k.uh=function(a){a||(a="hqdefault.jpg");var b=this.W[a];return b||this.Ca.ra||a==="pop1.jpg"||a==="pop2.jpg"||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg"?b:YP(this.Ca,this.videoId,a)};
g.k.Yb=function(){return this.isLivePlayback||this.je||this.Ma||!(!this.liveUtcStartSeconds||!this.vk)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.je&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.Sw||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!sG(this.D))return g.Xb(this.getAvailableAudioTracks(),function(d){return d.id===a.D.id})||this.Cl;
if(this.Sw){if(!this.Cq)for(var b=g.x(this.Sw),c=b.next();!c.done;c=b.next())if(c=c.value,c.qc.getIsDefault()){this.Cq=c;break}return this.Cq||this.Cl}return this.Cl};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Pa};
g.k.getHeartbeatResponse=function(){return this.tG};
g.k.Wl=function(){return this.watchUrl?this.watchUrl:this.Ca.getVideoUrl(this.videoId)};
g.k.vR=function(){return!!this.j&&(ZFa(this.j)||$Fa(this.j)||aGa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.Oi};
g.k.Pj=function(){return(this.eventLabel||this.Ca.Ma)==="shortspage"};
g.k.isAd=function(){return this.SI||!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.gg=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.rU=function(){return PLa(this)?this.pV:this.Cr||this.bj};
g.k.fI=function(){return this.ek||this.bj};
g.k.qJ=function(){return fR(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.oa=function(a,b,c){this.publish("ctmp",a,b,c)};
g.k.Fv=function(a,b,c){this.publish("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.getGetAdBreakContext=function(a,b){a=a===void 0?NaN:a;b=b===void 0?NaN:b;var c={isSabr:cR(this)},d,e=(d=this.getHeartbeatResponse())==null?void 0:d.adBreakHeartbeatParams;e&&(c.adBreakHeartbeatParams=e);if(this.N("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.j&&!isNaN(a)&&!isNaN(b)){b=a-b;for(var f in this.j.j)if(d=this.j.j[f],d.info.Of()||d.info.Kf())if(d=d.index,d.isLoaded()){f=d.wi(b);d=d.kf(f)+b-d.getStartTime(f);this.oa("gabc",{t:a.toFixed(3),mt:b.toFixed(3),sg:f,igt:d.toFixed(3)});
c.livePlaybackPosition={utcTimeMillis:""+(d*1E3).toFixed(0)};break}}return c};
g.k.jd=function(a,b){if(!g.HP(this.Ca))return!1;var c;if(((c=this.Ca.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||(this.Ca.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.Fx.prototype.xa.call(this);this.qw=null;delete this.Q4;delete this.accountLinkingConfig;delete this.j;this.C=this.tG=this.playerResponse=this.Pa=null;this.Yf=this.adaptiveFormats="";delete this.botguardData;this.ib=this.suggestions=this.Ew=null};var fNa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},gNa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},eNa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},bNa={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"},dNa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},cNa={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.w(TR,g.O);g.k=TR.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.U[a],e=this.state.W[a],f=d;if(e)if(c&&vE(c,teb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.x(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.fx(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.V();d.Lp&&!this.state.Z.has(a)&&(this.state.Z.add(a),g.Dt("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.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.z(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.B.publish.apply(this.state.B,[a].concat(g.z(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.z(b)))};
g.k.gb=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.z(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.z(b)))};
g.k.Bd=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.z(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.z(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.z(b)))};
g.k.xf=function(a){var b=g.Da.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.z(b)));this.state.B.publish.apply(this.state.B,[a].concat(g.z(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.z(b)));this.state.G.publish.apply(this.state.G,[a].concat(g.z(b)))};
g.k.N=function(a){return this.app.V().N(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.w(ZR,g.Sp);ZR.prototype.publish=function(a){var b=g.Da.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.Sp.prototype.publish.call.apply(g.Sp.prototype.publish,[this,a].concat(g.z(b.shift())))}finally{this.G.delete(a)}return c};g.w(mNa,g.O);mNa.prototype.xa=function(){this.G.dispose();this.D.dispose();this.B.dispose();this.C.dispose();this.Z=this.j=this.W=this.U=this.L=void 0};var oNa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.w(aS,TR);g.k=aS.prototype;g.k.getApiInterface=function(){return Array.from(this.state.L)};
g.k.O7=function(a,b){this.state.G.subscribe(a,b)};
g.k.tea=function(a,b){this.state.G.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return K8a(this.app,a)};
g.k.P9=function(){return K8a(this.app)};
g.k.Sea=function(a,b,c){tNa(this)&&(m0(this.app,!0,1),o0(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.N("web_player_max_seekable_on_ended")&&d===0?G8a(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)};
g.k.D9=function(){return this.app.getCurrentTime(1)};
g.k.K9=function(){var a=this.app.kf(1);return isNaN(a)?this.getCurrentTime(1):a};
g.k.H9=function(){return this.app.getDuration(1)};
g.k.mN=function(a,b){a=g.xg(Math.floor(a),0,100);isFinite(a)&&e0(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.jfa=function(a){this.mN(a,!1)};
g.k.SL=function(a){e0(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.Paa=function(){this.SL(!1)};
g.k.FN=function(a){cS(this.app)&&!this.N("embeds_enable_emc3ds_muted_autoplay")||e0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.Wfa=function(){cS(this.app)&&this.N("embeds_enable_emc3ds_muted_autoplay")||this.FN(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Nf&&(a.pfp={enableIma:g.QR(this.app.getVideoData())&&this.app.wd().allowImaMonetization,autoplay:LR(this.app.wd()),mutedAutoplay:this.app.wd().mutedAutoplay});return a};
g.k.sT=function(){var a=this.app.getPresentingPlayerType();if(this.N("html5_enable_ssap_autoplay_debug_logging")){var b;(b=g.dS(this.app))==null||b.oa("ssap",{pbintl:a})}if(a===2&&!this.app.Mf()&&(b=qY(this.app.Bb()),!Hab(b)||Iab(b)))return;a===3?mS(this.app.Bb()).XG("control_play"):this.app.V().N("html5_ssap_ignore_play_for_ad")&&g.jR(this.app.wd())&&a===2||this.app.playVideo(a)};
g.k.Qda=function(){m0(this.app,!0,1);this.sT()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.Mf()||Hab(qY(this.app.Bb())))b===3?mS(this.app.Bb()).XG("control_pause"):this.app.pauseVideo(b,a)};
g.k.yfa=function(){var a=this.app,b=!1;a.ea.Ac&&(a.Qa.publish("pageTransition"),b=!0);a.stopVideo(b)};
g.k.clearVideo=function(){};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();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.Mp?Zdb:Ydb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.dS(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.cfa=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.dS(this.app,a))?(a=g.Ml(a.nu(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.z9=function(){return this.getAvailableQualityLevels(1)};
g.k.U9=function(){return this.uZ()};
g.k.V9=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.uZ=function(){return this.getVideoLoadedFraction()};
g.k.Y9=function(){return 0};
g.k.getSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.qb().resize()};
g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=$R(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.naa=function(a,b,c){a=this.loadVideoById(a,b,c,1);m0(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=$R(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.v8=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c,d){a=nNa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.qaa=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);m0(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=nNa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.y8=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.a$=function(){var a=this.app.V();if(a.ra)return"";var b=this.app.wd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.F9=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();if(a.ra)return"";var b=this.app.wd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.wd().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.M7=function(a,b,c){return Q8a(this.app,a,b,c)};
g.k.removeCueRange=function(a){return S8a(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.jaa=function(a,b,c,d){this.loadPlaylist(a,b,c,d);m0(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.Qaa=function(){this.nextVideo();m0(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.cea=function(){this.previousVideo();m0(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.Pda=function(a){this.playVideoAt(a);m0(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.R9=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=g.dY(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.M_=function(a){a==="captions"&&(a=g.nY(this.app.Bb()))&&!a.loaded&&a.load()};
g.k.Q3=function(a){a==="captions"&&(a=g.nY(this.app.Bb()))&&a.loaded&&a.aga()};
g.k.jU=function(a,b,c){if(!b)return null;var d=this.app.Bb();return a==="captions"?(a=g.nY(d))&&a.oi(b,c):null};
g.k.L9=function(a,b,c){var d=g.dS(this.app,1);return d&&d.getVideoData().isPrivate&&this.app.V().D?{}:this.jU(a,b,c)};
g.k.DQ=function(a){var b=this.app.Bb();if(a==="captions"){var c;return((c=g.nY(b))==null?void 0:c.getOptions())||null}return a?null:(a=[],g.nY(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Yi.volume};
g.k.isMuted=function(){return this.app.Yi.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.V();g.QR(this.app.getVideoData())&&this.app.wd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Zfa(this.app.V().loaderUrl),eventType:a,youtubeHost:g.Xi(this.app.V().Ea)||""},a.embeddedPlayerMode=c.Fa,g.Dt("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.V(),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){var e,f;((e=this.app.V().getWebPlayerContextConfig())==null?0:(f=e.embedsHostFlags)==null?0:f.allowPreloadVideoById)&&a&&(a=$R(a,b,c),this.app.preloadVideoByPlayerVars(a,d))};
g.k.Yda=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.Js();this.app.pm(a?2:0)};
g.k.Zea=function(a){var b,c;((b=this.app.V().getWebPlayerContextConfig())==null?0:(c=b.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};
g.k.wakeUpControls=function(){var a=g.bS(this);a&&a.Xv()};var vNa="driveweb flix flix_from_driveweb hovercard projector texmex wshbp".split(" ");g.w(eS,aS);g.k=eS.prototype;g.k.P7=function(a,b){this.state.D.subscribe(a,b)};
g.k.uea=function(a,b){this.state.D.unsubscribe(a,b)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
g.k.x8=function(a,b){b=b===void 0?1:b;this.cueVideoByPlayerVars(yNa(this,a),b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
g.k.paa=function(a,b,c,d){c=c===void 0?1:c;this.loadVideoByPlayerVars(yNa(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.aea=function(a,b,c,d){b=b===void 0?1:b;this.preloadVideoByPlayerVars(yNa(this,a),b,c,d)};
g.k.O_=function(a,b,c){this.loadVideoById(a,b,c,1)};
g.k.P_=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
g.k.Q9=function(a){return this.getPlayerState(a)};
g.k.tZ=function(a){a=a===void 0?1:a;var b=qNa(this,a);if(a=g.dS(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.Ma;b.isManifestless=iR(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;a.liveUtcStartSeconds!=null&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Si()&&(b.isEncrypted=!0);if(a.C)for(var c=g.x(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){tNa(this)&&o0(this.app,this.app.getCurrentTime()+a,b,c,e,d)};
g.k.Qea=function(a,b,c){this.seekBy(a,b,c,void 0,1)};
g.k.seekTo=function(a,b,c,d,e){tNa(this)&&o0(this.app,a,b,c,d,e)};
g.k.Tea=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.E9=function(a,b){return this.getCurrentTime(a===void 0?1:a,b)};
g.k.DK=function(){var a=this.app.getPresentingPlayerType(!0);a===2&&this.app.Mf()&&(a=1);return a};
g.k.getDuration=function(a,b){if(this.DK()===3){var c;return((c=mS(this.app.Bb()).getProgressState())==null?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(a)};
g.k.XY=function(a,b){return this.getDuration(a===void 0?1:a,b)};
g.k.X9=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if(a==="annotations_module"){var b=g.tY(this.app.Bb());b&&!b.loaded&&b.load()}this.M_(a)};
g.k.unloadModule=function(a){if(a==="annotations_module"){var b=g.tY(this.app.Bb());b&&b.loaded&&b.unload()}this.Q3(a)};
g.k.getOption=function(a,b,c,d){return(d=g.dS(this.app,d))&&d.getVideoData().isPrivate&&this.app.V().D?{}:this.setOption(a,b,c)};
g.k.kZ=function(a,b,c){return this.getOption(a,b,c,1)};
g.k.getOptions=function(a){var b=this.app.Bb();switch(a){case "ad":var c,d;return((c=qY(b))==null?void 0:(d=c.getOptions)==null?void 0:d.call(c))||null;case "remote":var e,f;return((e=mS(b))==null?void 0:(f=e.getOptions)==null?void 0:f.call(e))||null;case "annotations_module":var h,l;return((h=g.tY(b))==null?void 0:(l=h.getOptions)==null?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return((m=Y1a(b))==null?void 0:(n=m.getOptions)==null?void 0:n.call(m))||null;case "unplugged":var p,q;return((p=
g.rY(b))==null?void 0:(q=p.getOptions)==null?void 0:q.call(p))||null;case "kids":var r,t;return((r=W1a(b))==null?void 0:(t=r.getOptions)==null?void 0:t.call(r))||null}if(!a){a=this.DQ();if(!a)return a;qY(b)&&a.push("ad");mS(b)&&a.push("remote");g.tY(b)&&a.push("annotations_module");Y1a(b)&&a.push("creatorendscreen");g.rY(b)&&a.push("unplugged");W1a(b)&&a.push("kids");return a}return this.DQ(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Bb();switch(a){case "ad":return(a=qY(d))&&a.oi&&a.oi(b,c);case "kids":return(a=W1a(d))&&a.oi(b,c);case "remote":return(a=mS(d))&&a.oi(b,c);case "unplugged":return(a=g.rY(d))&&a.oi(b,c);case "annotations_module":return(a=g.tY(d))&&a.oi(b,c);case "creatorendscreen":return(a=Y1a(d))&&a.oi(b,c)}return this.jU(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return Q8a(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.bS(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.bS(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.bS(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.bS(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.qb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){function a(c){g.fx(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.dQ(b))return this.isFullscreen()?Ls(window.document.documentElement):Is(window.document.documentElement).catch(a)}else if(g.Js()||b.W)return this.isFullscreen()?Ls(Ks()):b.controlsType!=="3"&&g.Js()?Is(this.app.qb().element).catch(a):(b=this.app.Le().Jb())?Is(b).catch(a):Promise.reject(Error("Media element missing"));this.xf("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.xq=function(){return this.app.xq()};
g.k.cancelPlayback=function(){var a=qY(this.app.Bb());a&&a.created&&a.destroy();(a=g.dS(this.app))&&a.stopVideo();(a=this.app.Bb().Pe.get("endscreen"))&&a.T$()&&g.lS(this.app.Qa,!0)};
g.k.getProgressState=function(a){if(this.DK()===3)return mS(this.app.Bb()).getProgressState();var b=this.app.getVideoData(),c=g.dS(this.app,a)||g.dS(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=zNa(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=zNa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.kf(d),m=this.app.isAtLiveHead(d),n=this.app.RA();var p=this.app;var q=g.dS(p,d);q?(q=X_(p,q),p=g0(p,g.jR(q.videoData)?q.videoData.Zc():q.Zc(),q)):p=0;q=G8a(this.app,d);c=c.Mc();var r=this.app.getVideoData().Gz;!r||isNaN(r)?d=0:(d=zNa(this,r,d),r=g.KD(this.app.V().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Bh(),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.Z9=function(){return g.dS(this.app,1).wc(!0)};
g.k.toggleSubtitles=function(){var a=g.nY(this.app.Bb());a&&a.Nfa()};
g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setCenterCrop=function(a){this.app.qb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var uNa="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(" "),
xNa="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 E2={},ANa=(E2["api.invalidparam"]=2,E2.auth=150,E2["drm.auth"]=150,E2["heartbeat.net"]=150,E2["heartbeat.servererror"]=150,E2["heartbeat.stop"]=150,E2["html5.unsupportedads"]=5,E2["fmt.noneavailable"]=5,E2["fmt.decode"]=5,E2["fmt.unplayable"]=5,E2["html5.missingapi"]=5,E2["html5.unsupportedlive"]=5,E2["drm.unavailable"]=5,E2["mrm.blocked"]=151,E2["embedder.identity.denied"]=152,E2);g.w(g.fS,eS);g.k=g.fS.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.U[a]?!0:!!(this.state.W[a]&&b&&vE(b,teb))};
g.k.getBandwidthEstimate=function(){return BP(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.dS(this.app);b&&(a={gpu:(0,g.jW)(),d:a},b.handleError(new VF("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.j)};
g.k.getInternalApiInterface=function(){return g.Kg(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.O9=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.T(a,1),isCued:a.isCued(),isDomPaused:g.T(a,1024),isEnded:g.T(a,2),isError:g.T(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.T(a,16),isUiSeeking:g.T(a,32),isUnstarted:g.T(a,64)}};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Sh().D.j=(0,g.Vt)()};
g.k.C9=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.dS(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Mc()&&(h=f.getStreamTimeOffset());o0(e,a-h,b,c,1,d)};
g.k.getStreamTimeOffset=function(){var a=g.dS(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.dS(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&o0(this.app,Infinity,a,b,1)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.dS(this.app,1);c&&c.vC(a,b)};
g.k.Rea=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)};
g.k.Pea=function(a,b,c,d){this.seekBy(a,b,c,d,1)};
g.k.setVolume=function(a,b){this.mN(a,b===void 0?!0:b)};
g.k.mute=function(a){this.SL(a===void 0?!0:a)};
g.k.unMute=function(a){this.FN(a===void 0?!0:a)};
g.k.syncVolume=function(){var a=h8a(this.app);e0(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.dS(this.app,1);return a?g.Ml(a.nu(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.gb("SUBSCRIBE",this.app.wd().Bm)};
g.k.channelUnsubscribed=function(){this.gb("UNSUBSCRIBE",this.app.wd().Bm)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.dS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.dS(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.dS(this.app,1);a&&a.Mg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().ek=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=ws("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,tKa)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=a===void 0?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return R8a(this.app,a,b,c,d,e)};
g.k.W9=function(a){a=a===void 0?1:a;var b=this.tZ(a);if(a=g.dS(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)?ng(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)?
ng(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.p7;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=zMa(a);b.paidContentOverlayDurationMs=AMa(a);a.j&&vM(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.dS(this.app,1))?a.getPlayerState():null)?a.Yg:null;return!!(a&&b&&g.T(a,128)&&BNa(b.errorCode)===5)};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.V().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.Pi=function(){return g.bS(this)};
g.k.sendAbandonmentPing=function(){var a=g.dS(this.app);a&&a.sendAbandonmentPing()};
g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.N("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.wd(),b==null?0:bMa(b))){if(this.N("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.cE=b.autonavState);else if(b.cE!==void 0)a=b.cE,b.cE=void 0;else return}Y8a(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.dS(this.app,1))==null||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.dS(this.app,1);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.dS(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.dS(this.app,1);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.dS(this.app,1);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.dS(this.app,1);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){Tv()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.V().Hm!==a&&(this.app.V().Hm=a,(a=g.dS(this.app,1))&&bX(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.nY(this.app.Bb()).X3(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.nY(this.app.Bb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.nY(this.app.Bb());a&&a.A3()};
g.k.isSubtitlesOn=function(){var a=g.nY(this.app.Bb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(a){return(a=g.dS(this.app,a))?a.getVideoData().getPlayerResponse():null};
g.k.N9=function(){return this.getPlayerResponse(1)};
g.k.getEmbeddedPlayerResponse=function(){var a=g.dS(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(a){return(a=g.dS(this.app,a))?a.getVideoData().getWatchNextResponse():null};
g.k.b$=function(){return this.getWatchNextResponse(1)};
g.k.getHeartbeatResponse=function(a){return(a=g.dS(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
g.k.I9=function(){return this.getHeartbeatResponse(1)};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Nk();if(!c)return null;b=c.levels[b];return b?(a=g.QQ(b,a))?{column:a.column,columns:a.columns,height:a.By,row:a.row,rows:a.rows,url:a.url,width:a.MG}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Nk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Mc();return b.kJ(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Nk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.Vz(),minFrameIndex:b.pO()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Nk();return a?a.levels.length:0};
g.k.v9=function(){return this.getAudioTrack(1)};
g.k.getAudioTrack=function(a){return(a=g.dS(this.app,a))?a.getAudioTrack():this.app.getVideoData().Cl};
g.k.setAudioTrack=function(a,b,c){this.DK()===3&&mS(this.app.Bb()).XG("control_set_audio_track",a);if(c=g.dS(this.app,c))if(c.Ja()||g.T(c.playerState,128))a=!1;else{var d,e=!((d=c.videoData.C)==null||!d.j);d=e&&b?c.getCurrentTime()-c.Mc():NaN;if(c.ea.experiments.fb("html5_record_audio_format_intent")){var f=c.Wb();if(f.qoe){f=f.qoe;var h=[a.qc.id,isNaN(d)?"m":"t"];g.fW(f,g.KK(f.provider),"afi",h)}}if(e)b&&(e=VYa(c.Sc),c.oa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})),c.va.setAudioTrack(a,d,b);
else if(PZa(c)){b:{b=c.mediaElement.audioTracks();for(e=0;e<b.length;++e)if(d=b[e],d.label===a.qc.getName()){if(d.enabled){b=!1;break b}b=d.enabled=!0;break b}b=void 0}b&&c.oa("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!sG(b.D)||a===b.Cq||!b.Fd||b.Fd.length<=0)b=!1;else{e=g.x(b.Fd);for(d=e.next();!d.done;d=e.next()){d=d.value;if(!(d instanceof pQ)){b=!1;break b}f=a.qc.getId();d.B&&(HKa(d.B,f),d.resource=null)}b.Cq=a;b=!0}b&&UW(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.oa("hlsaudio",
{id:a.id}))}a=!0}else a=!1;return a};
g.k.Xea=function(a,b){return this.setAudioTrack(a,b,1)};
g.k.y9=function(){return this.getAvailableAudioTracks(1)};
g.k.getAvailableAudioTracks=function(a){return g.dS(this.app,a).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.dS(this.app,1);return a&&a.getVideoData().B?rM(a.Tf?KWa(a.al,a.Tf,a.Bx()):VQ):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.dS(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.nY(this.app.Bb());return a?a.T9():null};
g.k.resetSubtitlesUserSettings=function(){g.nY(this.app.Bb()).Dea()};
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.qb().setGlobalCrop(a)};
g.k.setAppFullscreen=function(a){this.app.pm(a?4:0)};
g.k.jj=function(){return this.app.jj()};
g.k.getVisibilityState=function(){return this.jj().getVisibilityState(this.Bi(),this.xq()||g.MP(this.app.V()),this.isMinimized(),this.isInline(),this.app.mj(),this.app.pB(),this.app.wB(),this.app.Sk())};
g.k.isMutedByMutedAutoplay=function(){return this.app.PB};
g.k.isMutedByEmbedsMutedAutoplay=function(){return cS(this.app)};
g.k.setInternalSize=function(a,b){this.app.qb().setInternalSize(new g.Cg(a,b))};
g.k.Mc=function(){var a=g.dS(this.app);return a?a.Mc():0};
g.k.isMinimized=function(){return this.app.isMinimized()};
g.k.mj=function(){return this.app.mj()};
g.k.Bi=function(){var a=g.dS(this.app);return!!a&&a.Bi()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);a.external_list!==void 0&&(this.app.Lj=vs(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.dY(b).videoId||(a.index=b.index)):a0(this.app,{list:a.list,index:a.index,playlist_length:d.length});m1a(this.app.getPlaylist(),a);this.Bd("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.dS(this.app,1);c&&g.$Q(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){TP(this.app.V(),a,!1)};
g.k.Wea=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.qb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.dS(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.dS(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.dS(this.app,d))&&g.MZa(d,g.oM(a,b||a,!0,"m"),!0,c)};
g.k.dfa=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.nR.dispatch(a)};
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.sea=function(a,b){this.state.B.unsubscribe(a,b)};
g.k.w8=function(a,b){this.cueVideoByPlayerVars(a,b===void 0?1:b)};
g.k.oaa=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,c===void 0?1:c,d)};
g.k.Zda=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.Vh=function(){return g.bS(this).Vh()};
g.k.eh=function(){return g.bS(this).eh()};
g.k.yn=function(){return g.bS(this).yn()};
g.k.Ze=function(){return this.Pi().Ze()};
g.k.Qm=function(){var a=g.Da.apply(0,arguments),b;(b=this.Ze()).Qm.apply(b,g.z(a))};
g.k.ri=function(){this.Ze().ri()};
g.k.hR=function(){this.Ze().hR()};
g.k.Ai=function(){this.Ze().hide()};
g.k.sN=function(a,b,c,d,e,f,h,l){this.Ze().sN(a,b,c,d,e,f,h,l)};
g.k.hI=function(a,b){this.Ze().hI(a,b)};
g.k.Vy=function(a,b,c,d,e){this.Pi().Vy(a,b,c,d,e)};
g.k.dI=function(a){this.Ze().setEnabled(a)};
g.k.eA=function(a){this.Pi().eA(a)};
g.k.nF=function(a,b){this.Pi().nF(a,b)};
g.k.DA=function(a,b){this.Pi().DA(a,b)};
g.k.Sr=function(){this.Pi().Sr()};
g.k.iU=function(a,b){this.Pi().iU(a,b)};
g.k.IC=ba(4);g.k.JC=ba(6);g.k.Zs=ba(9);g.k.Ys=ba(12);g.k.renderChapterSeekingAnimation=function(a,b,c){this.Pi().renderChapterSeekingAnimation(a,b,c)};
g.k.vx=function(){this.Pi().vx()};
g.k.getWebPlayerContextConfig=function(){return this.app.V().getWebPlayerContextConfig()};
g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.k.vu=function(){var a=g.dS(this.app);return a?a.vu():""};g.w(g.jS,g.fS);g.k=g.jS.prototype;g.k.Hp=function(a,b,c,d,e,f,h){return this.app.Hp(a,b,c,d,e,f,h)};
g.k.EF=function(){return this.app.EF()};
g.k.ju=ba(14);g.k.Bb=function(){return this.app.Bb()};
g.k.Lf=function(){var a=this.Bb().Pe.get("endscreen");return!!a&&a.Lf()};
g.k.getRootNode=function(){return this.qb().element};
g.k.V=function(){return this.app.V()};
g.k.SA=ba(16);g.k.Xm=function(a){return this.app.Xm(a)};
g.k.dn=function(){var a;return((a=g.bS(this))==null?void 0:a.dn())||null};
g.k.getPlayerStateObject=function(a){return this.app.getPlayerStateObject(a)};
g.k.qb=function(){return this.app.qb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.dS(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&a===2||g.jR(b)&&a!==1)a:{var d=this.app;i0(d,"gssvd");b=d.getVideoData();if(d.Ee){a=d.Ee;d=d.getCurrentTime();if(a.Bo)var e=void 0;else{var f=void 0;a.Mb&&(f=a.C.get(a.Mb));if(!f){f=$6a(a,d*1E3);var h=(e=f)==null?void 0:e.cpn;a.Mb?h&&a.Mb!==h&&a.ma.oa("sdai",{cpcnm:h+"_"+a.Mb,cmt:d.toFixed(3)}):a.ma.oa("sdai",{cpcna:h,cmt:d.toFixed(3)})}e=(c=f)==null?void 0:c.videoData}b=e||
b}else if(d.wb&&d.yb){c=d.wb.getVideoData(a);break a}c=b}else c=b;return c};
g.k.Nk=function(a){return this.app.Nk(a)};
g.k.Sk=function(){return this.app.Sk()};
g.k.isHdr=function(){var a=g.dS(this.app);return a?a.isHdr():!1};
g.k.CR=function(){return this.app.CR()};
g.k.jd=function(){var a=g.bS(this),b=this.getVideoData();a=a?a.eL:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.jd(new g.Cg(a.width,a.height),c))};
g.k.KC=function(a){this.app.KC(a)};
g.k.vg=function(a,b,c,d,e){this.app.gh(a,b,c,d,e)};
g.k.gt=function(a,b){this.app.gt(a,b)};
g.k.playVideo=function(a,b){try{if(this.getPresentingPlayerType()===3){mS(this.app.Bb()).XG("control_play");return}if(!a&&this.getPresentingPlayerType()===2){var c=qY(this.app.Bb());if(c&&Iab(c))return}}catch(d){g.ex(d)}this.app.playVideo(a,b)};
g.k.stopVideo=function(a){g.dS(this.app,a).stopVideo()};
g.k.tp=function(a){g.dS(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.zH=function(a){this.app.zH(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.nu=function(){var a={},b=g.dS(this.app).nu();b=g.x(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.FF=function(){return g.dS(this.app).FF()};
g.k.OF=ba(20);g.k.ZM=function(a){this.app.ZM(a);a&&Y8a(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.PF=ba(22);g.k.gp=ba(26);g.k.qp=function(a){var b=g.dS(this.app);b&&b.qp(a)};
g.k.tj=ba(30);g.k.jl=ba(34);g.k.DB=function(a,b){this.Bb().DB(a,b)};
g.k.Nl=function(){var a=g.tY(this.Bb());return!!a&&a.Nl()};
g.k.Up=function(){var a=g.tY(this.Bb());return!!a&&a.Up()};
g.k.GC=function(a,b,c){var d=g.tY(this.Bb());d&&d.GC(a,b,c)};
g.k.FC=ba(35);g.k.Ep=function(){var a=g.dS(this.app);a&&a.Ep()};
g.k.iN=function(a){this.Bd("onVideoAreaChange");this.Bd(a?"onShowControls":"onHideControls")};
g.k.hn=function(a,b){var c=g.bS(this);if(c)return c.hn(a,b);a=this.app.qb().zi();return new g.ym(0,0,a.width,a.height)};
g.k.nG=function(){var a=this.Bb().Pe.get("heartbeat");return!!a&&a.nG()};
g.k.Bh=function(){var a=this.V();if(a.Pa||a.disableSeek)return!1;var b=g.dS(this.app);if(!b)return!1;var c=b.getVideoData();if(!c.Be()||g.BR(c)||this.getPresentingPlayerType()===2&&!this.app.Mf()||c.gg()&&this.getPresentingPlayerType(!0)===2||b.No()&&this.getPresentingPlayerType()!==3)return!1;a=g.QP(a);return g.Cs(a)&&!c.Un||cS(this.app)?!1:!0};
g.k.kG=function(){var a;return((a=g.dS(this.app))==null?void 0:a.kG)||!1};
g.k.isLifaAdPlaying=function(){var a,b=(a=this.getVideoData())==null?void 0:a.gg();return this.getPresentingPlayerType(b)===2};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Ov=function(){var a=g.dS(this.app);a&&a.Ov()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.hf=function(a,b,c){this.app.cA(a,b,c)};
g.k.ql=function(a,b){this.app.IH(a,b)};
g.k.df=function(a,b){H8a(this.app,a,b)};
g.k.TK=function(a){var b=g.dS(this.app);return b?b.ph.TK(a):!1};
g.k.Bz=function(a){return this.app.Bz(a)};
g.k.Mg=function(a,b){(b=g.dS(this.app,b))&&b.Mg(a)};
g.k.No=function(){var a=g.dS(this.app);return a?a.No():!0};
g.k.Kx=function(){var a=this.getVideoData();return!!a&&(a.Kx()||!!a.hlsFormats||!!a.Pc)};
g.k.getPlaybackRate=function(){return g.dS(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.Le=function(){return this.app.Le()};
g.k.Sh=function(){return this.app.Sh()};
g.k.Ri=function(a){return this.app.Ri(a)};
g.k.createClientVe=function(a,b,c,d){this.V().eb&&this.app.ys.createClientVe(a,b,c,d===void 0?!1:d)};
g.k.createServerVe=function(a,b,c){this.V().eb&&this.app.ys.createServerVe(a,b,c===void 0?!1:c)};
g.k.setTrackingParams=function(a,b){this.V().eb&&this.app.ys.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.V().eb&&(this.app.ys.click(a,b),this.publish("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.V().eb){var d=this.app.ys;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.Xw(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.Ax(e,[f]):g.Bx(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.zx(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.V().eb?this.app.ys.hasVe(a):!1};
g.k.destroyVe=function(a){this.V().eb&&this.app.ys.destroyVe(a)};
g.k.Rc=function(){return g.dS(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.iz=function(){this.app.iz()};
g.k.xA=function(a,b){return this.app.xA(a,b)};
g.k.Yq=function(a){this.app.Yq(a)};
g.k.GB=function(){this.app.GB()};
g.k.EQ=function(){return this.app.EQ()};
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.EE=function(a,b,c,d,e,f,h){return this.app.EE(a,b,c,d,e,f,h)};
g.k.gG=function(a,b,c,d,e,f,h){return this.app.gG(a,b,c,d,e,f,h)};
g.k.rB=function(){return this.app.rB()};
g.k.yv=function(a){this.app.yv(a)};
g.k.mA=function(a,b){b=b===void 0?Infinity:b;this.app.mA(a===void 0?-1:a,b)};
g.k.GN=function(a){var b;(b=g.nY(this.Bb()))==null||b.GN(a)};
g.k.FI=function(a,b,c){this.app.FI(a,b,c)};
g.k.Wr=function(){return this.app.Wr()};
g.k.eK=function(a,b,c){this.app.eK(a,b,c===void 0?0:c)};
g.k.xn=function(){return this.app.xn()};
g.k.Mf=function(){return this.app.Mf()};
g.k.Uu=function(a,b,c){return this.app.Uu(a,b,c)};
g.k.oa=function(a,b,c,d){c=c===void 0?!1:c;var e;(e=g.dS(this.app,d))==null||e.oa(a,b,c)};
g.k.nS=function(a,b){this.publish("aduxmouseover",a,b)};
g.k.mS=function(a,b){this.publish("aduxmouseout",a,b)};
g.k.OS=function(a,b){this.publish("muteadaccepted",a,b)};
g.k.tB=function(){return this.app.qb().tB()};
g.k.er=function(a){this.app.qb().er(a)};
g.k.kt=function(a){return a?this.app.BU():(a=g.dS(this.app))?a.kt():!1};
g.k.kU=function(a){this.app.kU(a)};
g.k.Bt=function(){g.dS(this.app,1).Bt()};
g.k.lA=function(){this.app.lA()};
g.k.getGetAdBreakContext=function(){var a=g.dS(this.app,1);return(a==null?void 0:a.getVideoData().getGetAdBreakContext(a.getCurrentTime(),a.Mc()))||void 0};var INa;g.w(HNa,dt);HNa.prototype.DF=function(a,b){a=dt.prototype.DF.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.w(g.uS,g.Nx);g.k=g.uS.prototype;g.k.show=function(){var a=this.Rk();g.Nx.prototype.show.call(this);this.Ea&&(this.W.T(window,"blur",this.Pb),this.W.T(document,"click",this.p6));a||this.publish("show",!0)};
g.k.hide=function(){var a=this.Rk();g.Nx.prototype.hide.call(this);JNa(this);a&&this.publish("show",!1)};
g.k.md=function(a,b){this.B=a;this.qa.show();b?(this.Z||(this.Z=this.W.T(this.K,"appresize",this.DX)),this.DX()):this.Z&&(this.W.Nc(this.Z),this.Z=void 0)};
g.k.QY=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.DX=function(){var a=g.bS(this.K);this.B&&a.Vy(this.element,this.B)};
g.k.Pb=function(){var a=this.Rk();JNa(this);this.qa.hide();a&&this.publish("show",!1)};
g.k.p6=function(a){var b=Rs(a);b&&(g.sh(this.element,b)||this.B&&g.sh(this.B,b)||!g.Zy(a))||this.Pb()};
g.k.Rk=function(){return this.Eb&&this.qa.state!==4};g.w(KNa,g.uS);KNa.prototype.md=function(){g.uS.prototype.md.call(this);this.dialog.focus()};g.w(g.xS,g.Nx);g.xS.prototype.setIcon=function(a){this.updateValue("icon",a)};
g.xS.prototype.updateValue=function(a,b){g.Nx.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.fT={v7:15,tla:14,Ula:13,n7:12,y7:11,G4:10,N4:9,B4:8,AUDIO:7,SUBTITLES:6,u7:5,SLEEP_TIMER:4,r7:3,Yja:2,REMOTE:1,Vha: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.w(zS,g.xS);zS.prototype.yc=function(a){this.B&&this.K.logVisibility(this.element,this.j&&a)};
zS.prototype.D=function(){var a,b,c=(a=this.K.getVideoData())==null?void 0:(b=a.accountLinkingConfig)==null?void 0:b.linked;if(c&&!this.j){var d;a=(d=this.K.getVideoData())==null?void 0:d.accountLinkingConfig;this.setIcon(Wx());var e;g.wS(this,AS(a==null?void 0:(e=a.menuData)==null?void 0:e.connectedMenuLabel));var f,h,l;this.C=new KNa(this.K,AS(a==null?void 0:(f=a.menuData)==null?void 0:f.connectedDialogTitle),AS(a==null?void 0:(h=a.menuData)==null?void 0:h.connectedDialogMessage),AS(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.K.setTrackingParams(this.element,d);this.Fb.Vc(this);this.j=!0}else!c&&this.j&&(this.Fb.Kh(this),this.j=!1)};
zS.prototype.onClick=function(){this.B&&this.K.logClick(this.element);this.Fb.Pb();this.C&&this.C.md()};g.w(BS,g.O);BS.prototype.N=function(a){return this.api.N(a)};g.w(CS,BS);CS.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.VJ=b};
CS.prototype.setAccountLinkState=function(a){this.api.getVideoData().VJ=a;this.api.Ep()};
CS.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.w(MNa,BS);
MNa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.N("enable_player_logging_lr_home_infeed_ads")||d){if(b==="part2viewed"){if(c.pX&&g.mv(c.pX),c.zD&&ES(this,c.zD),c.ly)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.x(c.ly),h=f.next();!h.done;h=f.next())ES(this,g.Uo(h.value,e))}else b==="conversionview"?this.api.Bt():b==="engagedview"&&c.Qj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.mv(g.Uo(c.Qj,
e)));c.CX&&(e=c.CX,f=a.getId(),e=xr(e,{label:f}),g.mv(e));switch(b){case "videoplaytime25":c.mX&&ES(this,c.mX);c.VD&&FS(this,c.VD);c.vY&&g.mv(c.vY);break;case "videoplaytime50":c.nX&&ES(this,c.nX);c.XD&&FS(this,c.XD);c.BY&&g.mv(c.BY);break;case "videoplaytime75":c.oX&&ES(this,c.oX);c.ZD&&FS(this,c.ZD);c.KY&&g.mv(c.KY);break;case "videoplaytime100":c.lX&&ES(this,c.lX),c.TD&&FS(this,c.TD),c.bY&&g.mv(c.bY)}(e=this.api.getVideoData().qw)&&QNa(this,e,a.getId())&&QNa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
!d)switch(b){case "videoplaybackstart":var l,m=(l=c.KB)==null?void 0:l.j;m&&ES(this,m);break;case "videoplayback2s":(l=(m=c.KB)==null?void 0:m.C)&&ES(this,l);break;case "videoplayback10s":var n;(l=(n=c.KB)==null?void 0:n.B)&&ES(this,l)}this.api.ql([a],1)};g.w(SNa,BS);g.w(UNa,g.S);g.k=UNa.prototype;
g.k.OD=function(){var a;if(a=this.K.getPresentingPlayerType()!==3&&g.rS(this.K)&&this.K.qb().getPlayerSize().width>=400)if(a=this.wd(),this.K.V().N("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.Mx(this,this.j),this.K.V().N("web_player_autonav_toggle_always_listen")||TNa(this),
b=this.wd(),this.yW(b.autonavState),this.K.logVisibility(this.element,this.j));else if(this.j=!1,g.Mx(this,this.j),!this.K.V().N("web_player_autonav_toggle_always_listen"))for(this.K.V().N("web_player_autonav_toggle_always_listen"),b=g.x(this.B),c=b.next();!c.done;c=b.next())this.Nc(c.value)};
g.k.yW=function(a){WNa(this)?this.isChecked=a!==1:((a=a!==1)||(g.ft(),a=g.Mr("web_autonav_allow_off_by_default")&&!g.gt(0,141)&&g.mr("AUTONAV_OFF_BY_DEFAULT")?!1:!g.gt(0,140)),this.isChecked=a);VNa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.K.ZM(this.isChecked?2:1);VNa(this);if(WNa(this)){var a=this.wd().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.K.gb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.K.gb("innertubeCommand",a.onDisabledCommand)}this.K.logClick(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.wd=function(){return this.K.getVideoData(1)};g.w(XNa,BS);g.w(ZS,g.xS);ZS.prototype.onClick=function(){this.enabled&&(cT(this,!this.checked),this.publish("select",this.checked))};
ZS.prototype.getValue=function(){return this.checked};
ZS.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var ZNa=["en-CA","en","es-MX","fr-CA"];g.w(gT,ZS);gT.prototype.Ta=function(a){a?this.j||(this.Fb.Vc(this),this.j=!0):this.j&&(this.Fb.Kh(this),this.j=!1);this.j&&cT(this,KCa())};
gT.prototype.D=function(){g.Ap(this.element,"ytp-menuitem-highlight-transition-enabled")};
gT.prototype.C=function(a){var b=KCa();a!==b&&(b=g.ft(),it(190,a),it(192,!0),b.save(),this.K.gb("cinematicSettingsToggleChange",a))};
gT.prototype.xa=function(){this.j&&this.Fb.Kh(this);ZS.prototype.xa.call(this)};g.w(eOa,BS);eOa.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ta(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.w(fOa,BS);fOa.prototype.oS=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.w(hT,ZS);hT.prototype.C=function(a){this.D(a?1:0)};
hT.prototype.B=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;cT(this,b);this.setEnabled(a)};
hT.prototype.xa=function(){this.Fb.Kh(this);ZS.prototype.xa.call(this)};g.w(iT,BS);iT.prototype.getDrcUserPreference=function(){return this.j};
iT.prototype.setDrcUserPreference=function(a){g.Zs("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Rc())&&this.B()&&ZV(a))};
iT.prototype.updateEnvironmentData=function(){this.api.V().Zf=this.j===1};
iT.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.N("mta_drc_mutual_exclusion_removal")){var d=this.api.getAudioTrack().qc.id;return Qm(c,function(e){var f;return e.audio.j&&((f=e.qc)==null?void 0:f.id)===d})}return Qm(c,function(e){var f;
return((f=e.audio)==null?void 0:f.j)===!0})};g.w(jT,BS);jT.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.df("embargo",1);var c=b==null?void 0:b.dE.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?hOa(this,c.filter(function(d){return gOa(a,d)})):(b==null?0:b.cueRanges)&&hOa(this,b.cueRanges.filter(function(d){return gOa(a,d)}))};
jT.prototype.B=function(a){return a.embargo!==void 0};
jT.prototype.xa=function(){BS.prototype.xa.call(this);this.j={}};g.w(iOa,BS);
iOa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.V(),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);h&&h.embedsFeature&&(a.feature=h.embedsFeature);e.length>0&&(b.N("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.Cs(g.QP(b))&&e.unshift(159628),b=e.join(","),
b=g.is()?b:g.vc(b,4),a.source_ve_path=b);this.j.length=0};g.w(jOa,BS);g.w(kOa,g.O);kOa.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.B&&this.B.disconnect()};g.w(mOa,BS);g.w(kT,g.S);kT.prototype.show=function(){g.S.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
kT.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=nOa(d),g.T(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,qOa(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",xCa(b.label)),pOa(this,a))))};
kT.prototype.xa=function(){qOa(this);g.S.prototype.xa.call(this)};g.w(rOa,BS);g.w(lT,g.S);lT.prototype.onClick=function(){this.Qa.logClick(this.element);this.Qa.gb("onFullerscreenEduClicked")};
lT.prototype.Ta=function(){this.Qa.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Qa.logVisibility(this.element,this.Qa.isFullscreen()&&!this.B)};g.w(mT,BS);mT.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.Cp(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),hS(b.Qa,b.element,b),b.C=!0))};
mT.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ta())};g.w(sOa,g.S);g.w(vOa,BS);g.w(wOa,BS);g.w(xOa,BS);g.w(BOa,BS);var zOa="fs pe srt fpt nreqs nress nrese rsf_pj rse_pj rsf_pej rse_pej rsf_pc rse_pc".split(" "),AOa="bpd_c bpd_s gv mb_s pl_c pl_i plev".split(" ");g.w(nT,BS);nT.prototype.getSphericalProperties=function(){var a=g.oS(this.api.Bb());return a?a.getSphericalProperties():{}};
nT.prototype.setSphericalProperties=function(a){if(a){var b=g.oS(this.api.Bb());b&&b.setSphericalProperties(a,!0)}};g.w(COa,BS);g.k=COa.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 EOa=!1;FOa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
FOa.prototype.getPlaybackRate=function(){return this.playbackRate};LOa.prototype.zQ=function(a){var b=tG(a.info.j.info,this.manifest.Yb),c=a.info.Oa+this.D,d=a.info.startTime*1E3;if(this.policy.Ua)try{d=this.policy.Ua?iO(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=dB(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Cc(),encodedDataView:g.uc(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Ua){if(a.info.j.vn())var f=a.info.duration;else a.D===-1&&(a.D=jO(a)),f=a.D||a.info.duration;f*=1E3}else f=a.info.duration*
1E3;this.policy.Ua&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Cc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Oa:c,startTimeMs:d,clipId:e,L8:f}};
LOa.prototype.Mn=function(a){this.timestampOffset=a};tT.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.B,d=this.audioTrack.B,e=this.audioTrack.Rb,f=YOa(this,this.videoTrack,a,this.videoTrack.Rb,b);b=YOa(this,this.audioTrack,this.policy.Zf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(UOa(this,this.videoTrack,c),UOa(this,this.audioTrack,d));return a};
tT.prototype.isSeeking=function(){return this.G};
tT.prototype.mU=function(a){this.C=a};
var XOa=2/24;var bPa=0;g.k=DT.prototype;g.k.Av=function(){this.Z=this.now();eKa(this.Oc,this.Z);this.Ab.Av()};
g.k.Os=function(a,b){var c=this.policy.j?(0,g.Vt)():0;ET(this,a,b);a-this.L<10&&this.B>0||this.Bw(a,b);this.Ab.Os(a,b);this.policy.j&&(a=(0,g.Vt)()-c,this.Kb+=a,this.ib=Math.max(a,this.ib))};
g.k.Bw=function(a,b){var c=(a-this.L)/1E3,d=b-this.C;this.Pr||(zP(this.Oc,c,d),this.Hv(c,d));this.L=a;this.C=b};
g.k.ip=function(){this.ra&&cPa(this);this.Ab.ip()};
g.k.Ms=function(a){this.ra||(this.ra=this.G-this.Ib+a,this.Vb=this.G,this.uc=this.U)};
g.k.Gv=function(a,b){a=a===void 0?this.U:a;b=b===void 0?this.G:b;this.B>0||(this.Ea=a,this.B=b,this.W=this.isActive=!0)};
g.k.X1=function(){};
g.k.Ir=function(){var a,b={rn:this.requestNumber,rt:(this.U-this.j).toFixed(),lb:this.G,stall:(1E3*this.D).toFixed(),ht:(this.Z-this.j).toFixed(),elt:(this.Ea-this.j).toFixed(),elb:this.B,d:(a=this.Ba)==null?void 0:a.Hi()};this.url&&DOa(b,this.url);this.policy.j&&(b.mph=this.ib.toFixed(),b.tph=this.Kb.toFixed());b.ulb=this.Va;b.ult=this.Fa;b.abw=this.Pa;return b};
g.k.now=function(){return(0,g.Vt)()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};g.w(FT,DT);g.k=FT.prototype;g.k.Ir=function(){var a=DT.prototype.Ir.call(this);a.pb=this.FA;a.pt=(1E3*this.Ua).toFixed();a.se=this.Sb;return a};
g.k.gq=function(){var a=this.Ab;this.eb||(this.eb=a.gq?a.gq():1);return this.eb};
g.k.DR=function(){return this.jm?this.gq()!==1:!1};
g.k.jS=function(a,b,c){if(!this.Db){this.Db=!0;if(!this.Pr){ET(this,a,b);this.Bw(a,b);var d=this.gq();this.Sb=c;d===2?this.Pr||(this.Fa?vP(this.Oc,this.Fa/1E3,this.Va,this.policy.qa):vP(this.Oc,b/Math.max(this.policy.W,c||this.Pa),b,.01),xP(this.Oc,b,this.D)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.B)&&this.policy.B||this.rb||this.policy.U||!(this.B>0)||fPa(this,c,b),this.B>0&&xP(this.Oc,b,this.D));a=(a-this.j)/1E3||.01;this.policy.L&&!(this.B>0)||wP(this.Oc,a,this.C,this.Ua,this.Zp)}this.deactivate()}};
g.k.Bw=function(a,b){var c=(a-this.L)/1E3,d=b-this.C,e=this.gq();this.isActive?e===1&&((d>0||this.policy.C)&&(c>.2||d<1024)?(this.D+=c,d>0&&c>.2&&fPa(this,this.Hq?c:.05,d),this.rb=!0):d>0&&(fPa(this,c,d),this.rb=!0)):b&&b>=2048&&this.Gv(a,b);DT.prototype.Bw.call(this,a,b)};
g.k.ZL=function(a){if(!this.Pr){ET(this,a,this.G);var b=(a-this.j)/1E3;this.gq()!==2&&this.B>0&&(this.D+=(a-this.L)/1E3,xP(this.Oc,this.C,this.D));wP(this.Oc,b,this.C,this.Ua,this.Zp,!0);a=(a-this.L)/1E3;zP(this.Oc,a,0);this.Hv(a,0)}};
g.k.Gv=function(a,b){a=a===void 0?this.U:a;b=b===void 0?this.G:b;if(!(this.B>0||(DT.prototype.Gv.call(this,a,b),this.gq()!==1||(b=(this.Z-this.j)/1E3,a=(a-this.Z)/1E3,this.jm&&jPa(this,this.now()),this.tb||this.Pr)))){var c=this.Oc;c.U.Ej(1,b);c.Fa.Ej(1,a)}};
g.k.nZ=function(){this.jm&&jPa(this,this.now());return this.La};
g.k.Yx=function(){var a;if(a=this.C>this.iT)a=(a=this.C)?a>=2048:!1;return a};
g.k.EK=function(){return this.Za};
g.k.JT=function(a){a=a===void 0?this.now():a;if(this.jm){jPa(this,a);if(this.eb?this.DR():this.qa!==this.Ma){var b=this.Ma;if(a<b){this.Za=this.Ma;return}}else b=this.qa;b=Math.max(b,this.La)}else b=this.La;var c=this.FA-this.C;c<0&&(c=0);c=(c*this.snapshot.stall+c/this.snapshot.byterate)*1E3;this.Za=c=this.B>0?c+a:c+Math.max(a,b)};
g.k.rK=function(){return this.now()-this.Ea};
g.k.FQ=function(){return(this.C-this.B)*1E3/this.rK()||0};
g.k.oZ=function(){return this.Ea};GT.prototype.feed=function(a){$A(this.j,a);this.xe()};
GT.prototype.xe=function(){if(this.D){if(!this.j.getLength())return;var a=this.j.split(this.C-this.B),b=a.XK;a=a.xm;if(!this.Ab.Ms(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.x(kPa(this.j,c));b=a.next().value;c=a.next().value;c=g.x(kPa(this.j,c));a=c.next().value;c=c.next().value;if(b<0||a<0)break;if(!this.j.Lx(c,a)){if(!this.Ab.Ms||!this.j.Lx(c,1))break;c=this.j.split(c).xm;this.Ab.Ms(b,c,0,a)&&(this.D=b,this.B=
c.getLength(),this.C=a,this.j=new ZA([]));break}a=this.j.split(c).xm.split(a);c=a.xm;this.Ab.ZB(b,a.XK);this.j=c}};
GT.prototype.dispose=function(){this.j=new ZA};g.k=HT.prototype;g.k.mQ=function(){return 0};
g.k.vK=function(){return null};
g.k.cZ=function(){return null};
g.k.Mu=function(){return this.state>=1};
g.k.isComplete=function(){return this.state>=3};
g.k.fm=function(){return this.state===5};
g.k.onStateChange=function(){};
g.k.xd=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.RB=function(a){a&&this.state<a?this.xd(a):this.callback&&this.callback(this,this.state)};
g.k.Ja=function(){return this.state===-1};
g.k.Cc=function(){var a="";this.info.jb.forEach(function(b){a+=b.Cc()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.Ja()||(this.info.jb[0].j.C=!1,this.xd(-1))};
g.k.KQ=function(){return 0};g.k=mPa.prototype;g.k.VB=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Ab.Av()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.Ja||(this.D=!0,this.Ab.ip())};
g.k.Du=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.GF=function(){return+this.getResponseHeader("content-length")};
g.k.Ym=function(){return this.B};
g.k.Zy=function(){return this.status>=200&&this.status<300&&!!this.B};
g.k.Zl=function(){return this.j.getLength()>0};
g.k.qz=function(){var a=this.j;this.j=new ZA;return a};
g.k.BM=function(){return this.j};
g.k.abort=function(){this.Ja=!0;this.xhr.abort()};
g.k.Tv=function(){return!0};
g.k.QM=function(){return this.C};
g.k.dg=function(){return""};g.k=oPa.prototype;
g.k.run=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,y;return g.I(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=jg(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 nPa(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,xLa(b,c,d,n,f),5):A.Ga(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.Ab.Os((0,g.Vt)(),a.loaded);n++;return A.Ga(2)})};
g.k.getResponseHeader=function(a){return a==="content-type"?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Du=function(){return!0};
g.k.GF=function(){return this.range.length};
g.k.Ym=function(){return this.loaded};
g.k.Zy=function(){return!!this.loaded};
g.k.Zl=function(){return!!this.B.getLength()};
g.k.qz=function(){var a=this.B;this.B=new ZA;return a};
g.k.BM=function(){return this.B};
g.k.Tv=function(){return!0};
g.k.QM=function(){return!!this.error};
g.k.dg=function(){return this.error};g.k=qPa.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.U);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.Z,this.onError).then(void 0,Ct)};
g.k.onDone=function(){this.Ja()||this.Ab.ip()};
g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
g.k.Du=function(){return!!this.responseHeaders};
g.k.Ym=function(){return this.B};
g.k.GF=function(){return+this.getResponseHeader("content-length")};
g.k.Zy=function(){return this.status>=200&&this.status<300&&!!this.B};
g.k.Zl=function(){return!!this.j.getLength()};
g.k.qz=function(){this.Zl();var a=this.j;this.j=new ZA;return a};
g.k.BM=function(){this.Zl();return this.j};
g.k.Ja=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.Tv=function(){return!0};
g.k.QM=function(){return this.L};
g.k.dg=function(){return this.errorMessage};g.k=rPa.prototype;g.k.onDone=function(){if(!this.Ja){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Ab.ip()}};
g.k.VB=function(){this.xhr.readyState===2&&this.Ab.Av()};
g.k.Jg=function(a){this.Ja||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Ab.Os((0,g.Vt)(),a.loaded))};
g.k.Du=function(){return this.xhr.readyState>=2};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.fx(Error("Could not read XHR header "+a)),""}};
g.k.GF=function(){return+this.getResponseHeader("content-length")};
g.k.Ym=function(){return this.B};
g.k.Zy=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B};
g.k.Zl=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.qz=function(){this.Zl();var a=this.response;this.response=void 0;return new ZA([new Uint8Array(a)])};
g.k.BM=function(){this.Zl();return new ZA([new Uint8Array(this.response)])};
g.k.abort=function(){this.Ja=!0;this.xhr.abort()};
g.k.Tv=function(){return!1};
g.k.QM=function(){return!1};
g.k.dg=function(){return""};g.KT.prototype.info=function(){};
g.KT.prototype.debug=function(){};
g.KT.prototype.j=ba(36);var wPa=new Map,zPa=new Map,xPa=new function(){var a=this;this.j=new Map;this.Qc={toa:function(){return a.j}}};g.w(LT,g.O);LT.prototype.qm=function(){if(!this.Cf.length)return[];var a=this.Cf;this.Cf=[];this.C=g.Vb(a).info;return a};
LT.prototype.pH=function(){return this.Cf};
LT.prototype.xa=function(){g.O.prototype.xa.call(this);this.j=null;this.Cf.length=0;this.jb.length=0;this.C=null};g.w(NT,g.O);g.k=NT.prototype;g.k.zea=function(){if(!this.Ja()){var a=(0,g.Vt)(),b=!1;if(this.timing.B>0){if(this.G){this.policy.Ac&&(this.j=0);return}var c=this.timing.EK();this.timing.JT();var d=this.timing.EK();d-c>=this.policy.rk*.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.nZ();
e>0&&(this.j+=1);a=dFa(OT(this),!1)*this.policy.RI;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Ab.WQ();
b?this.Yv(!1):this.B.start()}};
g.k.Yv=function(a){this.D=!0;a&&(a=OT(this),a.C+=1);this.Ab.aA();this.lastError="net.timeout";QT(this)};
g.k.canRetry=function(a){var b=OT(this);a=a?this.policy.Qw:this.policy.dk;return b.timedOut<this.policy.Zw&&b.j<a};
g.k.Th=function(){return this.lastError};
g.k.Yr=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.O.prototype.dispose.call(this)};var F2={},VPa=(F2["1h"]=8,F2["9h"]=4,F2["1"]=8,F2["9"]=4,F2["("]=4,F2.h=2,F2.H=2,F2),G2={},WPa=(G2.o=3,G2.O=3,G2.so=3,G2.a=1,G2.ah=1,G2.A=1,G2.m=1,G2.M=1,G2.sa=1,G2.mac3=7,G2.MAC3=7,G2.meac3=5,G2.MEAC3=5,G2),H2={},YPa=(H2.o=0,H2.O=0,H2.a=0,H2.ah=0,H2.A=0,H2.m=1,H2.M=1,H2.mac3=1,H2.MAC3=1,H2.meac3=1,H2.MEAC3=1,H2.so=4,H2.sa=4,H2);var aQa={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 UT,TT,VT=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["787","788"]],PPa=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],QPa=["571 401 400 399 398 787 788 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],RPa=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],SPa=["412","359"],TPa=[["140"],["251"],["380"],["328"]],I2={},LPa=(I2["398"]="397 396 395 394 788 787".split(" "),
I2["247"]=["780","779","244","243","242"],I2["136"]=["135","134","133","160"],I2["141"]=["140"],I2["251"]=["250"],I2["774"]=["251","250"],I2),J2={},MPa=(J2["135"]=["134","133","160"],J2["243"]=["242"],J2["781"]=["780","779"],J2["777"]=["776","775"],J2["396"]=["395","394"],J2["141"]=["140"],J2["251"]=["250"],J2),K2={},NPa=(K2["274"]=["317","273","318","280","279"],K2["145"]=["144","222","223","143","142"],K2["141"]=["149"],K2["140"]=["149"],K2["380"]=["381"],K2["328"]=["329"],K2),L2={},JPa=(L2["133"]=
240,L2["134"]=360,L2["135"]=480,L2["136"]=720,L2["137"]=1080,L2["242"]=240,L2["243"]=360,L2["244"]=480,L2["247"]=720,L2["248"]=1080,L2["298"]=720,L2["299"]=1080,L2["302"]=720,L2["303"]=1080,L2["395"]=240,L2["396"]=360,L2["397"]=480,L2["398"]=720,L2["399"]=1080,L2);g.w(vT,HT);g.k=vT.prototype;g.k.cn=function(){return this.timing.requestNumber};
g.k.qe=function(){return this.Vd.qe()};
g.k.hq=function(){var a=GPa(this.Tc);if(this.zm){var b=this.zm,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.Fg&&(a.rc=this.policy.Cm?this.Fg:this.Fg.toString());this.policy.kd&&this.x3&&(a.tr=this.x3);a.itag=this.info.jb[0].j.info.itag;a.ml=""+ +this.info.jb[0].j.yg();a.sq=""+this.info.jb[0].Oa;this.Vd&&(a.ifi=""+ +JM(this.info.resource.C));this.Fg!==410&&this.Fg!==500&&this.Fg!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==
null?void 0:d.dg()))&&(a.msg=c);this.pI&&(a.smb="1");this.info.isDecorated()&&(a.sdai="1");return a};
g.k.VY=function(){return gPa(this.timing)};
g.k.dg=function(){return this.xhr.dg()||""};
g.k.Yx=function(){return this.isComplete()||this.timing.Yx()};
g.k.Os=function(){!this.Ja()&&this.xhr&&(this.Fg=this.xhr.status,this.policy.Br&&this.qg&&this.jn(!1),this.Fn()?this.RB(2):!this.PZ&&this.Yx()&&(this.RB(),this.PZ=!0))};
g.k.Av=function(){if(!this.Ja()&&this.xhr){if(!this.qA&&this.xhr.Du()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.qA=((0,g.Vt)()-a)/1E3}this.xhr.Du()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.KE&&!WCa()&&g.Zs("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.hv)==null||c.stop();this.rq=a||this.rq;
this.qn=b||this.qn}};
g.k.ip=function(){var a=this.xhr;if(!this.Ja()&&a){this.Fg=a.status;a=this.aR(a);if(this.policy.kd){var b;(b=this.hv)==null||b.stop()}a===5?QT(this.Tc):this.xd(a);this.Tc.B.stop()}};
g.k.aR=function(a){var b=this;fQa(this);if(RT(this.Tc,this.xhr.status,this.eq?this.timing.W||this.EN:this.xhr.Zy(),!1,this.gy))return 5;var c="";ST(this.Tc,this.xhr)&&(c=FPa(this.Tc,this.xhr));if(c)return AN(OT(this.Tc)),this.info.Pk(this.Vd,c),3;c=a.Ym();if(this.zm){this.jn(!0);fQa(this);if(RT(this.Tc,this.xhr.status,this.timing.W||this.EN,!1,this.gy))return 5;if(!this.N3){if(this.EN)return AN(OT(this.Tc)),3;this.Tc.lastError="net.closed";return 5}}else{if(RT(this.Tc,this.xhr.status,this.xhr.Zy(),
!1,this.gy))return 5;var d=this.info.C;if(d&&d!==c||a.QM())return this.Tc.lastError="net.closed",5;this.jn(!0)}d=lPa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=lPa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.F2=!0,this.policy.dE&&(d=a);DPa(this.Tc,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Ua*1E3+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.Ja();var a=this.info.isDecorated();return this.Tc.canRetry(a)};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Pp?this.aA():this.timing.deactivate())};
g.k.Yv=function(a){this.Tc.Yv(a)};
g.k.WQ=function(){this.callback&&this.callback(this,this.state)};
g.k.Yr=function(){return this.Tc.Yr()};
g.k.dispose=function(){HT.prototype.dispose.call(this);this.Tc.dispose();var a;(a=this.hv)==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.qm=function(){if(!this.pH().length)return[];this.dR=!0;return this.qg.qm()};
g.k.Fn=function(){if(this.state<1)return!1;if(this.qg&&this.qg.Cf.length)return!0;var a;return((a=this.xhr)==null?0:a.Zl())?!0:!1};
g.k.pH=function(){this.jn(!1);return this.qg?this.qg.pH():[]};
g.k.jn=function(a){try{if(a||this.xhr.Du()&&this.xhr.Zl()&&!ST(this.Tc,this.xhr)&&!this.fC)this.qg||(this.qg=new LT(this.policy,this.info.jb)),this.xhr.Zl()&&(this.zm?this.zm.feed(this.xhr.qz()):MT(this.qg,this.xhr.qz(),a&&!this.xhr.Zl()))}catch(b){this.zm?cQa(this,b):g.fx(b)}};
g.k.ZB=function(a,b){switch(a){case 21:a=b.split(1).xm;dQa(this,a);break;case 22:this.N3=!0;MT(this.qg,new ZA([]),!0);break;case 43:if(a=sB(new mB(b),1))this.info.Pk(this.Vd,a),this.EN=!0;break;case 45:b=jM(new mB(b));a=b.XT;b=b.ZT;a&&b&&(this.AJ=a/b);break;case 44:this.DC=VDa(new mB(b));var c,d,e;!this.timing.W&&((c=this.DC)==null?void 0:c.action)===4&&((d=this.DC)==null?0:(e=d.w2)==null?0:e.eq)&&(this.eq=this.DC.w2.eq);break;case 53:this.policy.kd&&(a=SDa(new mB(b)).Iq)&&(this.hv||(this.Iq=a,this.hv=
new g.qp(this.d0,a,this)),this.hv.start());break;case 60:this.AB=iM(new mB(b));break;case 64:this.policy.YD&&(a=FDa(new mB(b)),this.policy.wv(a));break;case 58:if(a=uDa(new mB(b)))this.ir=a,a.ir===3&&(this.gy=!0)}};
g.k.Ms=function(a,b,c,d){c||this.timing.Ms(d);if(a!==21)return!1;if(a=this.policy.Br)if(d=b.getLength()+c===d,a*=this.info.jb[0].j.info.sb,!d&&b.getLength()<a)return!1;if(!c){if(b.getLength()===1)return!0;b=b.split(1).xm}dQa(this,b);return!0};
g.k.Ym=function(){return this.xhr.Ym()};
g.k.mQ=function(){return this.qA};
g.k.gq=function(){return this.DR()?2:1};
g.k.DR=function(){if(!this.policy.U.zj||!isNaN(this.info.wh)&&this.info.wh>0)return!1;if(!this.xhr.Du())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.zm)var a=!this.info.C;else this.xhr.GF()?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.wh)){a=this.xhr.getResponseHeader("x-head-seqnum");var b=this.timing.policy.G?1:0;if(!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");
else if(Number(a)>this.info.jb[0].Oa+b)return!1}return!0};
g.k.KQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.vK=function(){this.xhr&&(this.rq=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.rq};
g.k.cZ=function(){this.xhr&&(this.qn=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.qn};
g.k.Th=function(){return this.Tc.Th()};
g.k.d0=function(){if(!this.Ja()&&this.xhr){this.x3="heartbeat";var a=this.Tc;a.j+=2;this.WQ()}};g.w(ZT,DT);g.k=ZT.prototype;g.k.Bw=function(a,b){var c=(a-this.L)/1E3,d=b-this.C;this.B>0?d>0&&(this.qa&&(c>.2||d<1024?(this.D+=c,c>.2&&vP(this.Oc,.05,d,this.Hq?Math.max(.05,d/this.Hq):.05)):vP(this.Oc,c,d,this.Hq?Math.max(c,d/this.Hq):c)),this.Ma&&(this.La+=d,this.Ua+=c)):b>2048&&this.Gv(a,b);DT.prototype.Bw.call(this,a,b)};
g.k.jS=function(a,b){ET(this,a,b);this.Bw(a,b);this.qa&&(b=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.B>0&&xP(this.Oc,this.La,this.D),a=(a-this.j)/1E3||.01,this.policy.L&&!(this.B>0)||wP(this.Oc,a,this.C,b,!1))};
g.k.ZL=function(a){ET(this,a,this.G);var b=(a-this.L)/1E3;zP(this.Oc,b,0);this.Hv(b,0);!this.qa&&this.B>0||(b=this.C*this.snapshot.stall+this.C/this.snapshot.byterate,this.B>0&&(this.D+=(a-this.L)/1E3,xP(this.Oc,this.La,this.D)),wP(this.Oc,((a-this.j)/1E3||.01)*this.policy.Z,this.C,b,!1,!0))};
g.k.kH=function(a){a=a.YO||2147483647;(a&2)!==2&&(this.Ma=!1);(a&1)===1&&(this.qa=!0)};
g.k.aH=function(a){a=a.YO||2147483647;(a&2)===2&&(this.Ma=!1);(a&1)===1&&(this.qa=!1)};
g.k.oZ=function(){return this.Ea};
g.k.rK=function(){var a=this.Ma?this.now()-this.L:0;return Math.max(this.Ua*1E3+a,1)};
g.k.FQ=function(){return this.La*1E3/this.rK()};
g.k.Gv=function(a,b){a=a===void 0?this.U:a;b=b===void 0?this.G:b;this.B>0||(DT.prototype.Gv.call(this,a,b),b=this.Oc,a=(a-this.Z)/1E3,b.U.Ej(1,(this.Z-this.j)/1E3),b.Fa.Ej(1,a))};
g.k.X1=function(a){this.Za=a};
g.k.Ir=function(){var a=DT.prototype.Ir.call(this);a.rbw=this.FQ();a.rbe=+this.Ma;a.gbe=+this.qa;a.ackt=(this.Za-this.j).toFixed();return a};
g.k.JT=function(){};
g.k.EK=function(){return NaN};
g.k.nZ=function(){return this.j+this.snapshot.delay*1E3};$T.prototype.ZB=function(a,b){b.getLength();switch(a){case 20:a=new mB(b);a={tq:pB(a,1),videoId:sB(a,2),itag:pB(a,3),lmt:pB(a,4),xtags:sB(a,5),EC:pB(a,6),To:qB(a,8),Xq:pB(a,9),Una:pB(a,10),startMs:pB(a,11),durationMs:pB(a,12),Vs:pB(a,14),timeRange:tB(a,15,eDa),jk:pB(a,16),aM:pB(a,17),clipId:sB(a,1E3)};this.LS(a);break;case 21:this.JS(b,!1);break;case 22:this.Lq(b);break;case 31:a=wB(b,KDa);this.xv(a);break;case 52:a=wB(b,TDa);this.WB(a);break;default:this.yS(a,b)}};
$T.prototype.LS=function(){};
$T.prototype.yS=function(){};g.w(gQa,$T);g.k=gQa.prototype;
g.k.yS=function(a,b){b.getLength();switch(a){case 35:this.Mq(b);break;case 44:this.gH(b);break;case 43:this.US(b);break;case 53:this.RS(b);break;case 55:a=new mB(b);(a={timeline:tB(a,1,XDa),Jea:tB(a,2,$Da)},a.timeline)&&a.timeline.w3&&this.Ab.bT(a.timeline.w3,a.timeline.nfa,a.Jea);break;case 56:this.dH();break;case 57:this.fH(b);break;case 42:this.CS(b);break;case 45:this.Nq(b);break;case 59:this.eH(b);break;case 51:this.iH(b);break;case 49:this.kH(b);break;case 50:this.aH(b);break;case 47:this.hH(b);
break;case 58:this.zv(b);break;case 61:this.Ab.Ud.X1((0,g.Vt)());break;case 66:this.Ns(b);break;case 46:this.bH(b);break;case 67:this.onSnackbarMessage(b)}};
g.k.iH=function(a){a=new mB(a);a={vqa:vB(a,1,gM),uqa:vB(a,2,gM)};this.Ab.iH(a)};
g.k.eH=function(a){var b=new mB(a);a=uB(b,1);var c=uB(b,2);b=uB(b,3);this.Ab.eH(a,c,b)};
g.k.Nq=function(a){a=jM(new mB(a));this.Ab.Nq(a)};
g.k.hH=function(a){a=wB(a,NDa);this.Ab.hH(a)};
g.k.CS=function(a){a=new mB(a);a={videoId:sB(a,1),formatId:tB(a,2,gM),endTimeMs:pB(a,3),Zna:pB(a,4),mimeType:sB(a,5),f_:tB(a,6,CDa),indexRange:tB(a,7,CDa),gQ:tB(a,8,DDa)};this.Ab.CS(a)};
g.k.fH=function(a){a=$Da(new mB(a));this.Ab.fH(a)};
g.k.dH=function(){this.Ab.dH()};
g.k.Mq=function(a){a=LDa(new mB(a));this.Ab.Mq(a)};
g.k.RS=function(a){a=SDa(new mB(a));this.Ab.RS(a)};
g.k.gH=function(a){a=VDa(new mB(a));this.Ab.gH(a)};
g.k.US=function(a){a={redirectUrl:sB(new mB(a),1)};this.Ab.US(a)};
g.k.JS=function(a){var b=a.getUint8(0);if(a.getLength()!==1){a=a.split(1).xm;var c=this.B[b]||null;c&&eU(this.Ab.Qf,b,c,a)}};
g.k.Lq=function(a){a=a.getUint8(0);var b=this.B[a]||null;b&&this.Ab.Lq(a,b)};
g.k.WB=function(a){this.Ab.WB(a)};
g.k.LS=function(a){var b=a.tq,c=a.To,d=a.EC,e=a.aM,f=a.jk,h=a.Xq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Vs,q=a.clipId,r=HN(a);a=Ieb.has(kG[""+a.itag]);this.B[b]=r;this.Ab.YB(r,a,{tq:b,To:!!c,EC:d!=null?d:-1,Xq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Vs:p,aM:e,jk:f,clipId:q,timeRange:n})};
g.k.kH=function(a){a={YO:pB(new mB(a),1)};this.Ab.kH(a)};
g.k.aH=function(a){a={YO:pB(new mB(a),1)};this.Ab.aH(a)};
g.k.xv=function(a){this.Ab.xv(a)};
g.k.zv=function(a){a=uDa(new mB(a));this.Ab.zv(a)};
g.k.Ns=function(a){a={jG:tB(new mB(a),1,QDa)};this.Ab.Ns(a)};
g.k.onSnackbarMessage=function(a){a=pB(new mB(a),1);this.Ab.onSnackbarMessage(a)};
g.k.bH=function(a){a={reloadPlaybackParams:tB(new mB(a),1,tDa)};this.Ab.bH(a)};g.w(aU,g.O);g.k=aU.prototype;g.k.mu=function(){return Array.from(this.hd.keys())};
g.k.jt=function(a){a=this.hd.get(a);var b=a.Cf;a.kA+=b.getLength();a.Cf=new ZA;return b};
g.k.dh=function(a){return this.hd.get(a).dh};
g.k.Tx=function(a){return this.hd.get(a).Tx};
g.k.YB=function(a,b,c,d){this.hd.get(a)||nQa(this,a,b);b=this.hd.get(a);if(this.manifest){a=pQa(this,a,c);if(d)for(var e=g.x(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.Z=h;f.startTime+=h;f.gf+=h;f.Vf+=h}oQa(this,c.tq,b,a)}else c.To?b.e_=c.Vs:b.LG.push(c),b.bU.push(c)};
g.k.jq=function(a){var b;return((b=this.hd.get(a))==null?void 0:b.jb)||[]};
g.k.RB=function(){for(var a=g.x(this.hd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.AT&&(b.Jg&&b.Jg(),b.AT=!1)};
g.k.Lq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.hd.get(b);if(bU){if(c&&!c.dh){if(c.Tj.get(a))c.Tj.get(a).Wx=!0;else{var d;((d=this.ue)==null?0:d.Pc)&&c.Tj.set(a,{data:new ZA,zJ:0,Wx:!0})}c.Tx=!0}}else c&&!c.Tx&&(c.Tx=!0)};
g.k.qm=function(a){if(bU){var b=this.hd.get(a);if(b)for(var c=g.x(b.Tj),d=c.next();!d.done;d=c.next()){var e=g.x(d.value);d=e.next().value;e=e.next().value;var f=b.lI.get(d);if(ON(f[0])){if(!e.Wx)continue;var h=f,l=e.data;l.getLength();f=0;var m=[];h=g.x(h);for(var n=h.next();!n.done;n=h.next()){n=n.value;var p=n.C,q=aB(l,f,p);f+=p;m.push(new gO(n,q))}b.Ay.push.apply(b.Ay,g.z(m))}else if(e.data.getLength()>0||!f[0].range&&e.Wx)l=void 0,f=f[0],m=e.zJ,h=e.data,f.range||(l=e.Wx),n=h.getLength(),l=new gO(rFa(f,
f.B+m,n,l),h),e.zJ+=l.info.C,b.Ay.push(l);b.Tj.get(d).data=new ZA;e.Wx&&b.Tj.delete(d)}a=this.hd.get(a);if(!a)return[];b=a.Ay;a.Ay=[];c=g.x(b);for(d=c.next();!d.done;d=c.next())a.kA+=d.value.info.C;return b||[]}c=(b=this.hd.get(a))==null?void 0:b.qg;if(!c)return[];this.jn(a,c);return c.qm()};
g.k.Fn=function(a){if(bU)return dU(this,a);var b,c,d;return!!((c=(b=this.hd.get(a))==null?void 0:b.qg)==null?0:(d=c.pH())==null?0:d.length)||dU(this,a)};
g.k.jn=function(a,b){for(;dU(this,a);){var c=this.jt(a);var d=a;d=this.hd.get(d).dh&&!lQa(this,d);MT(b,c,d&&mQa(this,a))}};
g.k.xa=function(){g.O.prototype.xa.call(this);for(var a=g.x(this.hd.keys()),b=a.next();!b.done;b=a.next())iQa(this,b.value);var c;if((c=this.ue)==null?0:c.xk)for(a=g.x(this.hd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Tj.clear(),b.lI.clear(),b.Ay.length=0,b.jb.length=0,b.bU.length=0,b.LG.length=0;this.hd.clear()};
var bU=!1;g.w(fU,g.O);g.k=fU.prototype;g.k.Os=function(){!this.Ja()&&this.xhr&&(this.jn(!1),FV(this.Ab,this))};
g.k.Av=function(){};
g.k.ip=function(){if(!this.Ja()&&this.xhr){var a=this.aR();a===5?QT(this.Tc):this.xd(a);this.Tc.B.stop();var b;(b=this.MH)==null||b.stop()}};
g.k.aR=function(){if(this.policy.Po){var a="";ST(this.Tc,this.xhr)&&(a=FPa(this.Tc,this.xhr));if(a)return this.info.resource.Pk(this.Vd,a),3}this.jn(!0);if(RT(this.Tc,this.xhr.status,this.xhr.Zy(),this.info.Lu(),this.gy))return 5;if(this.z2)return 3;DPa(this.Tc,this.xhr.Ym(),0);this.policy.Jc&&BUa(this.Ab);return 4};
g.k.jn=function(a){var b=this.xhr;if((!this.policy.Po||a||!ST(this.Tc,this.xhr))&&b.Zl()){a=b.qz();var c=a.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.zm.feed(a)}};
g.k.ZB=function(a,b){this.xhr.Tv()&&a===21&&this.Ud.Gv();this.A2.ZB(a,b)};
g.k.Ms=function(a,b,c,d){c||this.Ud.Ms(d);if(a!==21)return!1;this.Ud.W=!0;a=b.getLength();c||(this.LP=b.getUint8(0),b=b.split(1).xm);var e=this.A2.B[this.LP],f=this.manifest.C.get(e);if(f&&(f=f.info.sb*.01,a+c!==d&&a<f))return!1;eU(this.Qf,this.LP,e,b);return!0};
g.k.Mq=function(a){this.Ab.Mq(a)};
g.k.RS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.MH)==null||b.dispose();this.KT=a;a.K1&&(this.MH=new g.qp(this.b0,a.K1,this));this.b0()}};
g.k.b0=function(){var a;if((a=this.KT)!=null&&a.items){var b;(b=this.MH)==null||b.start();if(this.Ud.B>0){a=this.Ud.rK();b=this.Ud.FQ();var c=tQa(this,a);if(!(b>c.OL||c.ZR>0&&this.info.rQ()>c.ZR)){this.LT=(0,g.Vt)();var d;(d=this.MH)==null||d.stop();this.policy.Jc&&(d=this.Ab,a={bx:Math.round(b*a/1E3),yz:a},d.policy.Jc&&(d.ra=a,d.Uq++));this.Yv(!1)}}}};
g.k.Yv=function(a){this.Tc.Yv(a)};
g.k.gH=function(a){this.Ab.gH(a,this.cn())};
g.k.US=function(a){this.z2=!0;this.info.resource.Pk(this.Vd,a.redirectUrl)};
g.k.kH=function(a){this.Ud instanceof ZT&&this.Ud.kH(a)};
g.k.aH=function(a){this.Ud instanceof ZT&&this.Ud.aH(a)};
g.k.bT=function(a,b,c){this.Ab.bT(a,b,c,this.cn())};
g.k.CS=function(a){var b=a.formatId,c=HN({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new JN(((d=a.f_)==null?void 0:d.first)||0,((e=a.f_)==null?void 0:e.y_)||0),h,l;d=new JN(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.y_)||0);if(!this.manifest.C.get(c)){c=a.gQ||{};if(this.policy.Kp){var m,n;a=(m=a.mimeType)!=null?m:"";m=(n=b.itag)!=null?n:0;n=kG[""+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=zO("");m=xO(c,null);rO(b,new oO(n,m,f,d))}};
g.k.Nq=function(a){this.Ab.Nq(a)};
g.k.onSnackbarMessage=function(a){if(this.policy.gE)this.Ab.onSnackbarMessage(a)};
g.k.xv=function(a){this.Lea=a;this.L0=(0,g.Vt)();this.Ab.xv(a)};
g.k.eH=function(a,b,c){this.Ab.eH(a,b,c)};
g.k.fH=function(a){a.scope===2&&(this.Kea=a);this.Ab.fH(a)};
g.k.dH=function(){this.EX=!0;this.Ab.dH()};
g.k.iH=function(a){this.policy.He&&this.Ab.iH(a)};
g.k.hH=function(a){this.Ab.hH(a,this.cn())};
g.k.zv=function(a){a.ir===3&&(this.gy=!0);this.Ab.zv(a)};
g.k.Ns=function(a){this.Ab.Ns(a)};
g.k.bH=function(a){this.Ab.bH(a)};
g.k.canRetry=function(){this.Ja();return this.Tc.canRetry(!1)};
g.k.dispose=function(){if(!this.Ja()){g.O.prototype.dispose.call(this);this.Tc.dispose();var a;(a=this.MH)==null||a.dispose();this.xd(-1);this.aA()}};
g.k.xd=function(a){this.state=a;FV(this.Ab,this)};
g.k.Lu=function(){return this.info.Lu()};
g.k.dP=function(){return this.EX};
g.k.IQ=function(){return this.Kea};
g.k.YB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.vj=c.Xq,this.Lv=c.startMs);var d=0;this.policy.ag&&this.e0&&this.clipId&&(d=rT(this.e0,this.clipId)/1E3);this.Qf.YB(a,b,c,d);this.Qf.hd.get(a).CE=!0};
g.k.Lq=function(a,b){this.Qf.Lq(a,b)};
g.k.WB=function(a){this.requestIdentifier=a};
g.k.qm=function(a){return this.Qf.qm(a)};
g.k.jq=function(a){return this.Qf.jq(a)};
g.k.Fn=function(a){return this.Qf.Fn(a)};
g.k.mu=function(){return this.Qf.mu()};
g.k.gq=function(){return 1};
g.k.cn=function(){return this.Ud.requestNumber};
g.k.GQ=function(){return this.requestIdentifier};
g.k.TY=function(){return this.clipId};
g.k.qe=function(){return this.Vd.qe()};
g.k.z0=function(){this.aA()};
g.k.aA=function(){this.Ud.deactivate();var a;(a=this.xhr)==null||a.abort()};
g.k.isComplete=function(){return this.state>=3};
g.k.u_=function(){return this.state===3};
g.k.fm=function(){return this.state===5};
g.k.v_=function(){return this.state===4};
g.k.bR=function(){return this.isComplete()};
g.k.Mu=function(){return this.state>=1};
g.k.Yr=function(){return this.policy.Ac?this.Tc.Yr():0};
g.k.WQ=function(){this.policy.Ac&&FV(this.Ab,this)};
g.k.pZ=function(){return gTa(this.info)};
g.k.Th=function(){return this.Tc.Th()};
g.k.hq=function(){var a=GPa(this.Tc);Object.assign(a,iTa(this.info));a.req="sabr";a.rn=this.cn();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.Cm?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.dg())&&(a.msg=b);this.LT&&(c=tQa(this,this.LT-this.Ud.oZ()),a.letm=c.daa,a.mrbps=c.OL,a.mram=c.ZR);return a};
g.k.rZ=function(){return{vj:this.vj,Lv:this.Lv,isDecorated:this.info.isDecorated()}};uQa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.Vt)()};g.w(FQa,g.Fx);g.k=FQa.prototype;
g.k.jM=function(a,b,c,d){var e=!1;this.policy.eb&&(e=c?this.Ea===a.Oa:this.Ba===a.Oa);if(this.L&&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.eb&&(c?this.Ea=a.Oa:this.Ba=a.Oa);this.L.XS(a.Oa,a.startTime,this.B,d,e,f,c,l,h)}if(this.policy.eb){if(c||this.policy.El){this.B===1&&iU(this,5,"noad");var m;a.Oa!==((m=this.j)==null?void 0:m.Oa)&&(HQa(this,a,b,c),isNaN(a.startTime)||IQa(this,a.Oa,jU(this,a.startTime,a.Oa),!!b,this.L))}}else c&&HQa(this,a,b)};
g.k.MS=function(a,b,c){var d=this.videoTrack.j.index.qd()<=b;this.j={Vg:a,Oa:b,cG:c};d&&hU(this,a,b)};
g.k.Jx=function(){this.L&&this.L.Jx()};
g.k.oa=function(a,b){this.va.oa(a,b)};
g.k.kt=function(a,b){var c=this.videoTrack.j.index.wi(a);if(c>=0){var d;var e=((d=C_(b.fd,c,2))==null?void 0:d.Xt)||"";if(this.policy.G||e)return b.Pv(a,c),KQa(this.va,a,a,c),this.oa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0}this.oa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.w(nU,g.O);nU.prototype.Bp=function(a,b,c){c=c===void 0?{}:c;this.policy.Gj=MO(a,c,this.D,b===void 0?!1:b)};QQa.prototype.gM=function(a){var b=this;if(this.policy.WD){var c=new Set(a);c.size===this.Fa.size&&[].concat(g.z(c)).every(function(d){return b.Fa.has(d)})||(this.va.oa("lwnmow",{itagDenylist:[].concat(g.z(a)).join(",")}),this.va.kz(!!c.size),this.Z=-1,this.Fa=c,sU(this,this.j),this.Pa=!0)}};
QQa.prototype.Bp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.Gj;this.G.Bp(a,b===void 0?!1:b,c);if(d!==this.policy.Gj){sU(this,this.j);tU(this);var e,f;d>this.policy.Gj&&((e=this.B)==null?0:oG(e.info))&&((f=this.nextVideo)==null||!oG(f.info))&&(this.qa=!0)}};jRa.prototype.Mn=function(a){this.timestampOffset=a;this.flush()};
jRa.prototype.flush=function(){if(this.j.pos>0){var a={a:this.track.Kf(),u:this.j.Hi(),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.Oa;a.st=b.startTime;a.sd=b.duration;this.track.policy.BH&&(a.si=b.Cc());b.D&&(a.esl=b.B+b.C);b.Ti()&&(a.eos=1)}isNaN(this.timestampOffset)||(a.to=this.timestampOffset);var d;if(b=(d=this.track.Rb)==null?void 0:d.wc({})){for(var e in b)this.L[e]!==b[e]&&(a["sb_"+e]=b[e]);this.L=b}this.track.oa("sbu",
a);this.j.reset();this.buffered=[];this.G=this.C=this.D=0;this.timestampOffset=this.B=void 0}};mRa.prototype.dispose=function(){this.ra=!0};
mRa.prototype.Ja=function(){return this.ra};
g.w(BU,Error);var o_a=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]);EU.prototype.skip=function(a){this.offset+=a};
EU.prototype.Zm=function(){return this.offset};g.k=FRa.prototype;g.k.mZ=function(){return this.B};
g.k.mp=function(){return this.B.length?this.B[this.B.length-1]:null};
g.k.dj=function(){this.B=[];GU(this);ERa(this)};
g.k.jt=function(){this.Za=this.B.shift().info};
g.k.jq=function(){return g.Ml(this.B,function(a){return a.info})};
g.k.Kf=function(){return!!this.L.info.audio};
g.k.getDuration=function(){return this.L.index.uu()};g.w(uT,HT);g.k=uT.prototype;g.k.onStateChange=function(){this.Ja()&&(cU(this.Qf,this.formatId),this.j.dispose())};
g.k.hq=function(){var a=kQa(this.Qf,this.formatId),b;var c=((b=this.Qf.hd.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.Qf.hd.get(this.formatId))==null?void 0:d.kA)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:lQa(this.Qf,this.formatId),isAnyMediaEndReceived:this.Qf.Tx(this.formatId)}};
g.k.VY=function(){return 0};
g.k.Yx=function(){return!0};
g.k.qm=function(){return this.Qf.qm(this.formatId)};
g.k.pH=function(){return[]};
g.k.Fn=function(){return this.Qf.Fn(this.formatId)};
g.k.Th=function(){return this.lastError};
g.k.Yr=function(){return 0};g.w(JU,g.O);g.k=JU.prototype;g.k.Kf=function(){return!!this.j.info.audio};
g.k.mp=function(){return this.D.mp()};
g.k.jt=function(a){this.D.jt(a);var b;(b=this.W)!=null&&(b.G.add(a.info.Oa),b.B=POa(b,b.Yc,b.eC,b.B,a),b.C=a,b.L=(0,g.Vt)());this.sb=Math.max(this.sb,a.info.j.info.sb||0)};
g.k.getDuration=function(){if(this.policy.B){var a=this.va.If();if(a)return DV(a)}return this.j.index.uu()};
g.k.dj=function(){wT(this);this.D.dj()};
g.k.AQ=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.jb[0].Oa:!1};
g.k.Mn=function(a){var b;(b=this.W)==null||b.Mn(a);var c;(c=this.Z)==null||c.Mn(a)};
g.k.oa=function(a,b){this.va.oa(a,b)};
g.k.Dx=function(){return this.va.Dx()};
g.k.dispose=function(){var a;(a=this.Z)==null||a.flush();g.O.prototype.dispose.call(this)};g.ySa.prototype.wv=function(a){this.Ca.wv(a)};g.w(bV,g.O);bV.prototype.C=function(){this.B++>15||(this.j=!this.j,new CSa(this.va,this.policy,this.Oc,this.resource,this.j),this.delay.start())};
g.k=CSa.prototype;g.k.Av=function(){};
g.k.Os=function(){};
g.k.ip=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Ym()===this.size)this.va.oa("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.Du()&&(a="net.closed");this.onError(a)}};
g.k.onError=function(a){var b=this;this.va.handleError(a,this.getInfo());oT("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.va.oa("pathprobe",c)},function(c){b.va.handleError(c.errorCode,c.details)})};
g.k.getInfo=function(){var a=this.timing.Ir();a.shost=HM(this.location.base);a.pb=this.size;return a};g.w(cV,g.O);
cV.prototype.U=function(a,b){if(a.U){this.manifest.isLive?(a=this.manifest.mf&&this.manifest.D?a.j.Jt(this.manifest.mf,!1):a.j.Zr(Infinity),a.wh=this.wh):a=a.j.Jt(0,!1);if(this.qa){var c=this.qa;a.wh===0&&(a.G=c.W)}else a.G=this.Z;return a}c=a.B;if(!c.j.yg())return c.j.vn()?(a=IOa(this.G,a.j.info.sb,b.j.info.sb,0),a=c.j.Uz(c,a)):a=c.j.MD(c),a;var d=c.Vf-this.va.getCurrentTime(),e=!c.range||c.C===0&&c.B===0?0:c.range.length-(c.B+c.C),f=c.j;this.BR(a,d)&&e===0&&(this.manifest.isManifestless?f=a.j:(f=
c.startTime+NV,c.C&&(f+=c.duration),zT(a,f),c=a.B,f=c.j));f.vn()?(e=this.C,b=IOa(this.G,f.info.sb,b.j.info.sb,d,e.D.length>0&&e.W===0&&this.va.As),d=WU(a),a=c.j.Uz(c,b),(b=a.C)&&a.jb.length>1&&(d||a.resource.B||a.jb[0].j!==c.j?a=c.j.Uz(c,a.jb[0].C):(d=a.jb[a.jb.length-1],f=d.C/b,!d.D&&f<.4&&(a=c.j.Uz(c,b-d.C))))):(c.Oa<0&&(b=SN(c),b.pr=""+a.C.length,this.va.isSeeking()&&(b.sk="1"),b.snss=c.G,this.va.oa("nosq",b)),a=f.MD(c));if(this.policy.Fa)for(c=g.x(a.jb),b=c.next();!b.done;b=c.next())b.value.type=
6;return a};
cV.prototype.BR=function(a,b){if(!WU(a)||!a.j.yg())return!1;var c=this.C.Pa||jSa(a)||b<=this.policy.AI||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+jSa(a)+", health: "+b});
return c};
cV.prototype.xa=function(){g.O.prototype.xa.call(this)};
var NV=2/24;g.w(gV,g.O);gV.prototype.fM=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&VSa(this,this.B)?this.B.reason:"a";this.va.fM(new mU(a,e,c));eV(this.va,b,a,!0)};
gV.prototype.C2=function(a,b){for(var c=g.x(this.Ea),d=c.next();!d.done;d=c.next())if(d=d.value,d.id===a)return this.C=[d],this.L=this.manifest.j[a],aV(this.ue)&&(this.Z=!0),new mU(this.L,b?"t":"m");this.C=[];return null};
gV.prototype.Bp=function(a,b,c){c=c===void 0?{}:c;this.j.Bp(a,b===void 0?!1:b,c)};iV.prototype.Lu=function(){return this.requestType===1};
iV.prototype.rQ=function(){var a;return((a=this.Ab)==null?void 0:a.rQ())||0};
iV.prototype.isDecorated=function(){var a;return!((a=this.data)==null||!a.Kn)};jV.prototype.encrypt=function(a){this.Wd.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
jV.prototype.Ja=function(){return this.cipher===0};
jV.prototype.dispose=function(){this.Wd.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};kV.prototype.encrypt=function(a,b){return xL(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)}))};
kV.prototype.Ja=function(){return this.j};
kV.prototype.dispose=function(){this.j=!0};
lY.mB(kV,{encrypt:jTa("oan2")});lV.prototype.encrypt=function(a,b){QB(this.B,b);return xL(this.B.encrypt(a))};
lV.prototype.Ja=function(){return this.j};
lV.prototype.dispose=function(){this.j=!0};
lY.mB(lV,{encrypt:jTa("oap")});mV.prototype.encrypt=function(a,b){var c=this.Wd.ZE(b),d=this.j;d.Wd.exports.AES128CTRCipher_setCounter(d.cipher,(c!=null?c:b).byteOffset);b=this.Wd.ZE(a);this.j.encrypt(b!=null?b:a);c&&this.Wd.free(c.byteOffset);return b?xL(this.Wd.eS(b)):xL(a)};
mV.prototype.Ja=function(){return this.j.Ja()};
mV.prototype.dispose=function(){this.j.dispose()};
lY.mB(mV,{encrypt:jTa("oalw")});sTa.prototype.encrypt=function(a){(0,g.Vt)();return(new oP(this.j.j)).encrypt(a,this.iv)};
sTa.prototype.decrypt=function(a,b){(0,g.Vt)();return(new oP(this.j.j)).decrypt(a,b)};g.w(oV,g.O);oV.prototype.C=function(a,b){if(b){b=b instanceof g.FM?b:pV(this,b);var c;((c=this.j.get(a))==null?void 0:HM(c.location))!==HM(b)&&this.j.set(a,new BTa(b,a))}else this.j.delete(a)};
oV.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.I(function(q){switch(q.j){case 1:b=a.j.get(0);g.wa(q,2);var r;if(r=b&&!a.B)r=HM(b.location),r=a.B===PT(r);if(r){q.Ga(4);break}return g.G(q,zTa(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),JM(c)&&a.C(1,KM(c));case 4:g.xa(q,3);break;case 2:d=g.ya(q);g.fx(d);if(!a.B){q.Ga(3);break}a.B=!1;return g.G(q,a.load(),7);case 7:return q.return();case 3:if(!a.ea.experiments.fb("html5_onesie_probe_ec_hosts")){q.Ga(0);break}g.wa(q,9);e=a;f=e.C;h=3;return g.G(q,
zTa(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.G(q,zTa(a,2),12);case 12:m.call(l,n,q.B);g.xa(q,0);break;case 9:p=g.ya(q),g.fx(p),g.va(q)}})};
oV.prototype.U=function(){var a=this,b,c;return g.I(function(d){g.rp(a.W);b=g.KD(a.ea.experiments,"html5_onesie_prewarm_max_lact_ms");if(Wv()>=b)return d.return();(c=a.j.get(0))&&yTa(a,c);g.va(d)})};
var wTa={ila:0,Ila:1,rla:2,Jla:3,dia:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};CTa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.I(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.B=!0;b.Cn.Nd("omd_s");c=new Uint8Array(16);TB()?d=new nP(a):e=new oP(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ga(4);break}f=b.j.shift();if(!d){h=e.decrypt(f.buffer.Ok(),c);m.Ga(5);break}return g.G(m,d.decrypt(f.buffer.Ok(),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.tq,r=f.formatId,t=new ZA([l]),u;(u=rV(n.Dc,p))==null||eU(u,q,r,t);m.Ga(2);break;case 4:b.Cn.Nd("omd_c"),sV(b),b.B=!1,b.Cn.KS(),g.va(m)}})};
CTa.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,tq:b,formatId:c,buffer:d,isEncrypted:e});this.B||sV(this)};var MTa=!!Uint8Array.prototype.copyWithin,tV=[],DTa=[],GTa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],vV=[],uV=[],wV=[],ETa=[];yV.prototype.b_=function(a){return g.LTa(new g.FTa(a))};
yV.prototype.c_=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 yL("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 ZA([]);return CL(BL(BL(xL(e.read()),b),function(){return f.Ok()}),function(h){return yL(h.message)})};
yV.prototype.d_=function(a,b){var c=void 0,d=b.ZE(a);d&&(c=d.byteOffset,a=d);d=b.exports.getInflatedSize(a.byteOffset,a.length);if(d===0)return yL("bad compressed input");var e=b.malloc(d);if(b.exports.inflateGzip(a.byteOffset,a.length,e))return b.free(e),yL("inflateGzip failed");c&&b.free(c);return xL(new Uint8Array(b.exports.memory.buffer,e,d))};
lY.mB(yV,{b_:function(a){return{profile:"gzjb",xo:Math.ceil(a.byteLength/16)}},
c_:function(a){return{profile:"gznb",xo:Math.ceil(a.byteLength/16)}},
d_:function(a){return{profile:"gzwb",xo:Math.ceil(a.byteLength/16)}}});g.w(STa,$T);g.k=STa.prototype;g.k.KS=function(){this.Dc.KS()};
g.k.yS=function(a,b){switch(a){case 10:var c=wB(b,IDa);a=c.Jda;var d=!1;switch(a){case 0:this.C=!c.G1.U$;this.iv=c.G1.iv;break;case 2:break;case 23:var e=this.Dc;c=c.Gaa;e.Nd("omp_r");c.videoId&&(e.Bv=c.videoId);e.Bv!==e.videoData.videoId&&(e.videoData.b5=e.Bv,e.oa("ompp","vid."+e.Bv));e.TR=!0;break;case 24:c=this.Dc;c.Nd("omp_c");c.TR=!1;c.PH=!1;var f=(e=c.hg)==null?void 0:e.get(c.Bv);c.notifySubscribers(c.Bv);f!=null&&(f.j=!0);BV(c);break;default:d=!0}this.Dc.pn&&this.Dc.oa("ombup","id.10;pt."+
a+";len."+b.getLength()+(d?";ignored.1":""));this.D=a;break;case 11:VTa(this,b);break;case 12:this.JS(b,!0);break;case 37:b=wB(b,JDa);(b.T7||b.jV)&&b.videoId&&this.Dc.SY.set(b.videoId,b);break;case 60:this.GS(b);break;case 64:this.wv(b);break;case 47:this.N("html5_server_playback_start_policy")&&(b=wB(b,NDa),this.Dc.playbackStartPolicy=b);break;case 35:this.Mq(b);break;case 45:this.Nq(b);break;case 66:this.Ns(b);break;default:this.Dc.pn&&this.Dc.oa("ombup","id."+a+";len."+b.getLength()+";ignored.1")}};
g.k.xv=function(a){this.Dc.xv(a)};
g.k.GS=function(a){a=wB(a,iM);this.Dc.GS(a)};
g.k.wv=function(a){this.N("html5_enable_lawnmower_messaging")&&(a=wB(a,FDa),this.Dc.wv(a))};
g.k.Nq=function(a){a=wB(a,jM);this.Dc.Nq(a)};
g.k.LS=function(a){var b=a.tq,c=a.To,d=a.EC,e=a.jk,f=a.Xq,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Vs,p=HN(a),q=Ieb.has(kG[""+a.itag]);c&&this.Nd(q?"oais_r":"ovis_r");var r=this.j[p]!==void 0;this.Dc.pn&&this.Dc.oa("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,JZ:!1,Kf:q,headers:[]});this.j[p].headers.push(a);this.Dc.YB(t,p,q,{tq:b,To:!!c,EC:d!=null?d:-1,Xq:f!=null?f:-1,startMs:h!=null?h:-1,durationMs:l!=null?l:-1,Vs:n!=null?n:0,jk:e,timeRange:m})};
g.k.JS=function(a,b){var c=a.getUint8(0);this.Dc.pn&&this.Dc.oa("ombup","id."+(b?12:21)+";len."+a.getLength()+";hid."+c);if(a.getLength()!==1){a=a.split(1).xm;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.Bg(this.j[d].Kf?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
g.k.Lq=function(a){var b=a.getUint8(0);this.Dc.pn&&this.Dc.oa("ombup","id.22;len."+a.getLength()+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.N("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,tq:b,formatId:a,isEncrypted:!1,t9:!0});d.B||sV(d)}else this.Dc.Lq(c,b,a)};
g.k.WB=function(a){this.Dc.WB(a)};
g.k.kM=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r;return g.I(function(t){switch(t.j){case 1:c.Dc.kM();d=a.Ok();if(!b){f=d;t.Ga(2);break}return g.G(t,fUa(c.Dc,d,c.iv),3);case 3:f=t.B;case 2:e=f;if(!c.Dc.enableCompression){t.Ga(4);break}l=(h=performance)==null?void 0:h.now();return g.G(t,NTa(e),5);case 5:e=t.B,c.Dc.oa("decompression",{ds:"DecompressionStream"in window,rt:((m=performance)==null?NaN:m.now())-l});case 4:try{n=wB(e,sDa)}catch(u){return p=u instanceof Error?{name:u.name,message:u.message}:
{},p.webcrypto=""+ +!!TB(),p.enc=""+ +c.C,q=new VF("onesie.response.parse",p),t.return(Promise.reject(q))}RTa(n);r=g.iB(n.body);return t.return(r)}})};
g.k.Mq=function(a){this.N("html5_consume_onesie_next_request_policy_for_sabr")&&(a=wB(a,LDa),this.Dc.Mq(a))};
g.k.Ns=function(a){a={jG:tB(new mB(a),1,QDa)};this.Dc.Ns(a)};
g.k.Nd=function(a){this.Dc.Nd(a)};
g.k.Bg=function(a){return this.Dc.Bg(a)};
g.k.N=function(a){return this.Dc.N(a)};g.w(AV,g.O);g.k=AV.prototype;g.k.TY=function(){return""};
g.k.mu=function(a){var b,c;return((c=(b=this.hg)==null?void 0:b.get(a))==null?void 0:c.mu())||[]};
g.k.Fn=function(a,b){var c;return!((c=rV(this,b))==null||!c.Fn(a))};
g.k.qm=function(a,b){var c;return((c=rV(this,b))==null?void 0:c.qm(a))||[]};
g.k.jq=function(a,b){var c;return((c=rV(this,b))==null?void 0:c.jq(a))||[]};
g.k.xd=function(a){this.state=a;this.notifySubscribers()};
g.k.Lu=function(){return!1};
g.k.dP=function(){return!1};
g.k.IQ=function(){};
g.k.Nd=function(a){this.ma.Nd(a)};
g.k.Bg=function(a){return this.ma.Bg(a)};
g.k.Ms=function(a,b,c,d){c||this.Ud.Ms(d);return!1};
g.k.ZB=function(a,b){this.Cn.ZB(a,b)};
g.k.AS=function(){this.Nd("orfb");this.jL=!0;if(gUa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Ym(),rt:(1E3*gPa(this.Ud)).toFixed(),shost:g.Xi(this.fT),trigger:"o1"};this.oa("pathprobe",UF(a))}};
g.k.kM=function(){this.Nd("opr_r");this.OZ=!0};
g.k.YB=function(a,b,c,d){if(this.hg){if(!this.hg.has(a)){var e=new aU(this);this.hg.set(a,e);g.P(this,e)}var f;(f=this.hg.get(a))==null||f.YB(b,c,d);BV(this);this.N("html5_enable_sabr_ssdai")&&!c&&(this.vj=d.Xq,this.Lv=d.startMs)}else BV(this)};
g.k.xv=function(a){this.L_=a;a.wL!=null&&this.ma.ez(a.wL)};
g.k.GS=function(a){this.AB=a};
g.k.wv=function(a){this.ea.wv(a)};
g.k.Mq=function(a){a.videoId&&this.t0.set(a.videoId,a)};
g.k.KS=function(){if(this.hg)for(var a=g.x(this.hg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;(c=this.hg.get(b.value))==null||c.RB()}};
g.k.Nq=function(a){this.s1=a};
g.k.Ns=function(a){if(a==null?0:a.jG)if(a=a.jG.RY){a=g.x(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.videoId&&this.fQ.set(b.videoId,b)}};
g.k.oa=function(a,b,c){this.ma.oa(a,b,c===void 0?!1:c)};
g.k.Lq=function(a,b,c){var d;(d=rV(this,a))==null||d.Lq(b,c)};
g.k.WB=function(a){this.f2.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,K,N;return g.I(function(W){switch(W.j){case 1:a.logger.debug("Onesie fetch started.");a.GI?a.kP.start():a.mH.start();a.Nd("or_i");b=a.ea.experiments.fb("html5_onesie_verbose_timing");c={};d=(0,g.Vt)();e=function(V){b&&(c[V]=(0,g.Vt)()-d)};
e("loc_s");if(f=XTa(a.videoData,a.cB)){W.Ga(2);break}e("loc_async");h=g.KD(a.ea.experiments,"html5_onesie_redirector_timeout_ms");return g.G(W,YTa(a.videoData,a.cB,h),3);case 3:f=W.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new VF("onesie.unavailable.hotconfig",l),a.hj(m),W.return(a.lr);a.fN=HM(f);e("loc_e");n=g.kQ(a.ea,g.MR(a.videoData));p=!!n.j;if(!p){q=n.getValue();W.Ga(4);break}return g.G(W,n.j,5);case 5:q=W.B;case 4:r=q;a.N("html5_log_onesie_empty_oauth")&&
!r&&a.oa("no_token",{async:p});e("oauth");t=$Ta(a.playerRequest,a.ea,a.videoData,r,PT(a.fN));g.wa(W,6);if(!eUa(a,t)){e("or_s_sync");a.sM=bUa(t,a.lH,a.ea,a.ma,a.KP.onesieUstreamerConfig,(u=a.videoData.eT)==null?void 0:u.Fp);W.Ga(8);break}e("or_s_async");return g.G(W,dUa(t,a.lH,a.ea,a.ma,a.KP.onesieUstreamerConfig,(y=a.videoData.eT)==null?void 0:y.Fp),9);case 9:a.sM=W.B;case 8:g.xa(W,7);break;case 6:return A=g.ya(W),a.logger.info("Failed to create OnesieRequestProto."),a.hj(A),W.return(a.lr);case 7:return e("or_e"),
b&&a.oa("oreqvt",c),a.enableCompression=a.sM.pR.UP,a.Nd("osor"),C=xSa(),F=g.EB(a.sM,aDa),H={method:"POST",body:F,headers:{"Content-Type":"text/plain",Referer:location.origin}},K=a.N("html5_onesie_media_capabilities"),ZTa(f,a.videoData,iUa(a),K),a.logger.debug("Starting Onesie network request."),a.pn&&a.oa("ombrs","1"),N=a.ma.V().schedule,a.Ud=new FT(a,{Oc:N,bK:a.pn,Hv:function(V,da){a.ma.FH(V,da)},
Zp:!0}),f.set("rn",""+a.Ud.requestNumber),a.fT=f.qe(),dPa(a.Ud,a.fT),a.Nd("or_p"),a.xhr=JT(new yN(f),C,a.Ud,fP,H),a.o1.start(),W.return(a.lr)}})};
g.k.gq=function(){return 2};
g.k.Av=function(){this.Nd("orh_r")};
g.k.Os=function(){!this.jL&&this.xhr.Ym()&&this.AS();if(this.oB&&!this.GI){var a;(a=this.rM)==null||a.start()}this.jn()};
g.k.ip=function(a){a=a===void 0?!1:a;this.logger.debug("onXhrDone");this.jn();if(!(this.Ja()||this.state>=4)){var b=zV(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.dg()){var d="onesie.net";b.msg=c.dg()}else c.status>=400?d="onesie.net.badstatus":c.Zy()?this.OZ||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.hj(new VF(d,b)):(this.Nd("or_fs"),this.Ud.jS((0,g.Vt)(),c.Ym(),0),this.xd(4),this.pn&&this.oa("rqs",b));this.pn&&this.oa("ombre",
"ok."+ +!d);this.PH=!1;BV(this);TTa(this.Cn);if(!this.GI){this.mH.stop();var e;(e=this.rM)==null||e.stop()}var f;if(a=(f=this.cB)==null?void 0:ATa(f))for(f=0;f<a.length;f++)this.oa("pathprobe",a[f])}};
g.k.z0=function(){if(this.playerResponse&&this.xhr&&this.hg)for(var a=g.x(this.hg.entries()),b=a.next();!b.done;b=a.next())if(b=g.x(b.value),b.next(),b.next().value.B){this.xhr.abort();this.ip(!0);break}};
g.k.V=function(){return this.ea};
g.k.N=function(a){return this.ea.N(a)};
g.k.Daa=function(){if(gUa(this)&&this.cB&&(!this.jL||this.N("html5_onesie_probe_ec_hosts"))){var a=this.cB;if(a.ea.experiments.fb("html5_onesie_probe_ec_hosts")){var b,c=(b=a.j.get(3))==null?void 0:HM(b.location);c&&qV(a,c,"osc",this);var d;(c=(d=a.j.get(4))==null?void 0:HM(d.location))&&qV(a,c,"ocy",this)}else{var e;(d=(e=a.j.get(1))==null?void 0:HM(e.location))&&qV(a,d,"o2",this);(d=(c=a.j.get(2))==null?void 0:HM(c.location))&&qV(a,d,"o3",this)}}};
g.k.c8=function(){if(!this.Ja()&&!this.isComplete()){if(this.oB){if((0,g.Vt)()-this.Ud.U>1E3){var a;(a=this.Ud)==null||a.ZL((0,g.Vt)());a=zV(this);if(this.ea.Xb()&&this.xhr instanceof mPa){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.getLength();a.xdc=b.D}this.hj(new VF("net.timeout",a))}}else(0,g.Vt)()-this.Ud.j>1E4&&((b=this.Ud)==null||b.ZL((0,g.Vt)()),this.YQ());this.isComplete()||this.kP.start()}};
g.k.YQ=function(){this.logger.info("Onesie request timed out");this.PH=!1;if(!BV(this)){var a=zV(this);a.timeout="1";this.hj(new VF("onesie.request",a))}};
g.k.hj=function(a){var b=this;a=XF(a);this.oB?this.ma.Hd(a):(this.lr.reject(a),this.oB=!0);TTa(this.Cn);this.GI||this.mH.stop();this.Nd("or_fe");var c,d;(c=this.cB)==null||(d=ATa(c))==null||d.forEach(function(e){b.oa("pathprobe",e)});
this.xd(5);this.dispose()};
g.k.isComplete=function(){return this.state>=3};
g.k.v_=function(){return this.state===4};
g.k.bR=function(a){var b,c;return this.isComplete()||!!((b=this.hg)==null?0:(c=b.get(a))==null?0:c.j)};
g.k.u_=function(){return!1};
g.k.fm=function(){return this.state===5};
g.k.notifySubscribers=function(a){for(var b=0;b<this.rI.length;b++)a&&this.rI[b].eg()!==a||FV(this.rI[b],this)};
g.k.pZ=function(){var a,b;return((a=this.sM)==null?void 0:(b=a.Nr)==null?void 0:b.wT)||0};
g.k.xa=function(){this.playerResponse="";var a;(a=this.xhr)==null||a.abort();TTa(this.Cn);this.zm.dispose();var b;(b=this.rM)==null||b.dispose();this.xd(-1);this.rI=[];g.O.prototype.xa.call(this)};
g.k.jn=function(){try{var a=this.xhr;a.Ym()>102400&&!this.o_&&(this.Nd("or100k"),this.o_=!0);if(a.Zl()){var b=a.qz(),c=b.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.pn&&this.oa("ombrss","len."+c);this.zm.feed(b)}if(this.hg)for(var d=g.x(this.hg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.hg.get(f))==null||a.RB();this.notifySubscribers(f)}}catch(h){this.hj(h)}};
g.k.cn=function(){return this.Ud.requestNumber};
g.k.GQ=function(a){return this.f2.get(a)};
g.k.rZ=function(){return{vj:this.vj,Lv:this.Lv,isDecorated:!1}};g.w(kUa,g.O);g.k=kUa.prototype;g.k.Jv=function(a,b){this.qa=void 0;BUa(this);yUa(this,a,b)};
g.k.zR=function(a){if(this.j.length===0)return!1;var b=this.j[0];return b instanceof AV?a===this.va.getCurrentTime()*1E3:!(b instanceof fU&&hTa(b.info))&&Math.abs(b.pZ()-a)<50};
g.k.Mq=function(a){this.B=a;this.qa=(0,g.Vt)()+(a.backoffTimeMs||0)};
g.k.gH=function(a,b){if(a.action===void 0){var c=this.ma.Fx();c!==void 0&&this.va.Xu(c)}else if(a.action!==0||!this.Fa)switch(a.action===0&&this.policy.Kz&&(a.action=2),c={},c.reason=a.iea,c.action=a.action,c.requestNum=b,a.action){case 1:this.policy.G&&this.D&&this.D.BA(void 0,void 0,c);break;case 0:this.Fa=!0;this.videoData.gg()&&this.policy.G&&this.D&&this.D.BA(void 0,void 0,c);this.va.QP(c);break;case 2:this.va.handleError("sabr.config",c,1);break;case 5:b_a(this.ma,!0);break;case 6:b_a(this.ma,
!1);break;case 3:this.policy.Sb&&((a=this.manifest.W)!=null&&(a.W=!0),this.va.handleError("sabr.hostfallback",c))}};
g.k.bT=function(a,b,c,d){if(this.policy.B){this.va.oa("ssap",{rn:d,v:b,tl:DUa(a)});var e=this.va.If();a={Rt:a,context:c,version:b};zUa(this,c);e?AUa(this,e,a):(this.va.oa("ssap",{cacheclips:1,rn:d,v:b}),this.U=a)}};
g.k.fH=function(a){var b=this.policy.Ba||this.policy.B;this.va.oa("ssap",{onsbrctxt:a.type,dflt:a.sendByDefault,enable:b?1:0});b&&zUa(this,a)};
g.k.dH=function(){};
g.k.Nq=function(a){if(a.XT!==void 0&&a.ZT){var b=a.XT/a.ZT;this.audioTrack.U=!1;this.videoTrack.U=!1;if(this.policy.Z||this.policy.bj||this.policy.Wn)this.va.Ug.B=!1;this.va.Tp(b,1);if(this.ma.getCurrentTime()!==b){var c={bd:"sabr_seek",Ds:!0,zU:!0};a.seekSource&&(c.seekSource=a.seekSource);BT(this.va,b,c)}}};
g.k.onSnackbarMessage=function(a){this.ma.publish("onSnackbarMessage",a)};
g.k.xv=function(a){a.VK&&a.WK&&GO(this.manifest,a.VK,a.WK);this.policy.lw&&(a.n0&&a.o0&&(this.manifest.Bq=a.n0/a.o0),a.X_&&a.Y_&&(this.manifest.yk=a.X_/a.Y_));a.wL!=null&&this.ma.ez(a.wL);this.policy.Mp&&a.mV&&(a=((0,g.Vt)()-a.mV)/1E3,this.va.TE.Ej(1,a))};
g.k.zv=function(a){this.va.zv(a)};
g.k.eH=function(a,b,c){this.policy.C&&this.va.oa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.x(a);for(var d=a.next();!d.done;d=a.next())this.Yl.add(d.value)}if(b)for(b=g.x(b),a=b.next();!a.done;a=b.next())a=a.value,this.Yl.has(a)&&this.Yl.delete(a);if(c)for(c=g.x(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.tC=""))};
g.k.iH=function(){};
g.k.hH=function(a,b){zSa(this.policy,a,4,b)};
g.k.Ns=function(a){if(a==null?0:a.jG)if(a=a.jG.RY){a=g.x(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.C.get(HN(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}};
g.k.bH=function(a){(a=a==null?void 0:a.reloadPlaybackParams)&&this.ma.publish("reloadplayer",a)};
g.k.eg=function(){return this.ma.eg()||""};
g.k.rQ=function(){var a=RU(this.audioTrack,!0)*1E3,b=RU(this.videoTrack,!0)*1E3;return Math.min(a,b)};
g.k.Rj=function(a,b){this.va.oa(a,b)};
g.k.zZ=function(a){XUa(this.va,$Qa(this.La,a))};
g.k.xa=function(){g.O.prototype.xa.call(this);this.B=void 0;yUa(this,!0,"i");this.j=[]};EUa.prototype.xe=function(a,b){if(this.D)return JUa(this,b);if(b=CT(a)){var c=b.B;c&&c.C&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.fm()&&a.info.wh===0&&(this.D=a,this.U=c,this.B=b.info,this.L=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
EUa.prototype.clear=function(){this.B=this.U=this.D=null;this.j=this.G=this.L=this.startTimeSecs=NaN;this.C=!1};g.w(g.JV,g.O);g.k=g.JV.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;this.policy.j||(b=bRa(this.j),$Ua(this.ma,new mU(b.video,b.reason)),this.ma.Oy(new mU(b.audio,b.reason)));this.manifest.isManifestless&&QSa(this.D);this.L&&GUa(this.L,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.qw&&(d=d||this.manifest.je);this.policy.Ma||(this.currentTime=d?a:b);this.policy.Z&&this.seek(this.getCurrentTime(),{}).wl(function(){});
if(this.policy.j){var e;((e=this.qa)==null?0:jUa(e,this.eg()||""))&&OUa(this)&&NUa(this,this.videoTrack)&&NUa(this,this.audioTrack)&&(CUa(this.W,this.qa),this.policy.L&&MUa(this))}else this.ra&&(PUa(this,this.videoTrack),PUa(this,this.audioTrack),jQa(this.ra),delete this.ra);c?(this.policy.Yf?(this.Ib=c,MV(this,c)):MV(this,!1),g.rp(this.HG)):(c=this.getCurrentTime()===0,dV(this.D,this.videoTrack,this.videoTrack.j,c),dV(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.j&&nUa(this.W,!0),this.policy.Z||
this.seek(this.getCurrentTime(),{}).wl(function(){}),this.timing.tick("gv"));
(this.manifest.mf||this.manifest.Di||this.manifest.La||this.manifest.Sb||this.manifest.Ac)&&this.ma.EH(this.manifest)};
g.k.resume=function(){if(this.isSuspended||this.As){this.logger.debug("Resumed.");this.XJ=this.As=this.isSuspended=!1;try{this.xe()}catch(a){g.ex(a)}}};
g.k.AA=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("detaching media source");TUa(this);QG(this.ma)&&(this.G=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.La&&this.oa("loader",{setsmb:1}),this.policy.Fa=!0,this.dj()):(this.policy.Yf?MV(this,this.Ib):MV(this,!1),b||this.dj())};
g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.Ja()){var d=!isNaN(b);c&&d&&(this.audioTrack.qa=Date.now(),this.policy.Te&&(this.Za=!0));if(this.policy.j){var e=this.B.C2(a.id,d);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.ma.Oy(e)}else{var f=ZQa(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.ma.Oy(new mU(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.wi(b),this.oa("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){this.policy.j&&(this.B.U=!0,this.Jv(!0,"mosaic"));iSa(this.audioTrack,c,NaN,NaN);this.policy.Se||this.policy.Iz&&!this.manifest.isLive||FO(this.manifest,c,!1);return}this.ma.vp()}};
g.k.setPlaybackRate=function(a){a!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(a)};
g.k.fM=function(a){var b=a.j.info.Kf();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+yG(a.j.info)});
b?this.ma.Oy(a):$Ua(this.ma,a)};
g.k.zZ=function(a){PN(a.jb[a.jb.length-1])&&XUa(this,$Qa(this.j,a.jb[0].j))};
g.k.vu=function(){return this.ma.vu()};
g.k.CK=function(){return this.ma.CK()};
g.k.zv=function(a){this.ma.V().Xb()&&this.oa("sps",{status:a.ir||""});if(a.ir===1)this.ma.videoData.fE=0;else if(a.ir===2||a.ir===3){var b=!1;if(a.ir===3){b=this.ma.Hx();var c;this.Ac=(c=a.pea)!=null?c:Infinity;this.ma.videoData.fE=b+1;(b=PSa(this))&&xVa(this,!0)}this.ma.YS(!0,b)}};
g.k.VA=function(){return this.ma.VA()};
g.k.Nj=function(){return this.ma.Nj()};
g.k.dT=function(a){this.ma.dT(a)};
g.k.Vda=function(){var a,b=(a=this.ma.Le())==null?void 0:a.getCurrentTime();b?this.ma.oa("rms",{cta:b}):g.rp(this.uc)};
g.k.xe=function(){WUa(this);if(this.Ra&&NG(this.Ra)&&!this.Ra.Tk()&&(!this.policy.Ma||isFinite(this.getCurrentTime()))){var a=LU(this.videoTrack);a=this.policy.zE&&a&&a.Ti();this.manifest.isManifestless&&this.manifest.D&&BO(this.manifest)?(this.G=BO(this.manifest),this.Ra.Zq(this.G)):HO(this.manifest)&&!a?isNaN(this.G)?(this.G=this.getCurrentTime()+3600,this.Ra.Zq(this.G)):this.G<=this.getCurrentTime()+1800&&(this.G=Math.max(this.G+1800,this.getCurrentTime()+3600),this.Ra.Zq(this.G)):this.Ra.isView||
(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.G)||this.G!==a)&&a>0&&(this.Ra.Zq(a),this.G=a))}if(!this.Ja())if(AO(this.manifest)&&this.manifest.fm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.eb?{rc:b.Fg}:{rc:b.Fg.toString()},1)}else if(this.policy.j)a:{try{vUa(this.W);this.manifest.isManifestless&&this.policy.L&&AT(this.Ug);if(SUa(this)&&this.Ra&&!RG(this.Ra)&&this.videoTrack.La&&this.audioTrack.La){this.oa("ssap",{delaysb:1,v:this.videoTrack.j.info.id,
vf:this.videoTrack.j.info.ob,a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.ob});var c=this.Ra,d=this.videoTrack.j,e=this.audioTrack.j;!RG(c)&&e&&d&&(Sxa(c,d.info,e.info,this.policy.Xd),UUa(this,c))}var f;((f=this.Ra)==null?0:RG(f))&&this.kC();this.policy.j||LV(this);nUa(this.W)}catch(l){g.fx(l);b=l;if(b.message.includes("changeType")){this.oa("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)}qVa(this);g.rp(this.ib)}else if(!this.manifest.B||
!mSa(this.videoTrack)&&!mSa(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Db?c=!1:(this.dj(),this.ma.seekTo(Infinity,{bd:"checkLoaderTracksSync",Tp:!0}),c=!0),!c){WUa(this);this.manifest.isManifestless&&(nSa(this.videoTrack),nSa(this.audioTrack),AT(this.Ug),(c=CT(this.videoTrack))&&c.B&&(c=c.B.C&&!this.policy.Jk,this.oa(c===this.policy.U.zj?"strm":"strmbug",{strm:c,sfmp4:this.policy.U.zj,dfs:this.policy.Jk},!0)));if(this.Ra)this.kC();else if(this.policy.D){var h;c=!1;if(this.policy.lD)for(d=
g.x([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=CT(f);e&&f.mp()!==LU(f);e=CT(f))f.jt(e);c=c||!!e}else(b=CT(this.videoTrack))&&this.videoTrack.jt(b),(h=CT(this.audioTrack))&&this.audioTrack.jt(h);OU(this.videoTrack)&&OU(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&EV(this)}LV(this);dV(this.D,this.videoTrack,this.videoTrack.j,!1);dV(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.Lz||ZUa(this,this.videoTrack,
this.audioTrack);HSa(this.D,this.videoTrack,this.audioTrack);HSa(this.D,this.audioTrack,this.videoTrack);qVa(this);this.L&&(b=this.L,b.D?(h=b.L+b.policy.Sw,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Gl)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.rp(this.Jc,b));g.rp(this.ib)}};
g.k.QP=function(a){this.ma.QP(a)};
g.k.kC=function(){var a=this;if(this.Ra){var b=this.Ra.j,c=this.Ra.B;vVa(this,this.audioTrack);vVa(this,this.videoTrack);var d=bVa(this);if(d){if(this.policy.xr){if(!b.zx()){var e=CT(this.audioTrack);if(e){if(!IV(this,this.audioTrack,b,e.info))return;eVa(this,this.audioTrack,b,e)}}if(!c.zx()&&(e=CT(this.videoTrack))){if(!IV(this,this.videoTrack,c,e.info))return;eVa(this,this.videoTrack,c,e)}}this.Sp||(this.Sp=(0,g.Vt)(),this.logger.debug(function(){return"Appends pause start "+a.Sp+" reason "+d}),
this.policy.C&&this.oa("apdps",{r:d}))}else if(this.Sp&&(aVa(this,this.Sp),this.Sp=0),cVa(this),e=!1,this.policy.B&&YU(this.videoTrack)||!iVa(this,this.videoTrack,c)||(e=!0,xQa(this.timing),BQa(this.timing)),this.Ra&&!this.Ra.dh()&&(this.policy.B&&YU(this.audioTrack)||!iVa(this,this.audioTrack,b)||(e=!0,yQa(this.timing),CQa(this.timing)),!this.Ja()&&this.Ra)){if(!this.policy.Za&&OU(this.videoTrack)&&OU(this.audioTrack)&&NG(this.Ra)&&!this.Ra.Tk()){c=!1;
c=LU(this.audioTrack);if(this.policy.B){var f;b=(f=this.wb)==null?void 0:sT(f,c.gf*1E3);c=!(!b||b.clipId!==c.clipId);this.oa("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),Txa(this.Ra),fKa(this.schedule))}e&&!this.Ra.isAsync()&&EV(this)}}};
g.k.q6=function(a){var b,c=a===((b=this.Ra)==null?void 0:b.j)?this.audioTrack:this.videoTrack,d;(d=c.Ea)==null||d.stop();var e;if((e=CT(c))==null?0:e.isLocked){if(this.ma.V().Xb()){var f;this.oa("eosl",{ounlock:(f=CT(c))==null?void 0:f.info.Cc()})}var h;oVa(this,a===((h=this.Ra)==null?void 0:h.j))}var l;if(this.policy.Te&&a===((l=this.Ra)==null?void 0:l.j)&&this.eb){b=this.eb-this.getCurrentTime();var m;this.ma.oa("asl",{l:b,xtag:(m=LU(this.audioTrack))==null?void 0:m.j.info.j});this.Za=!1;this.eb=
0}a.un()&&a.Ke().length===0&&(a.nA(),this.Ra&&!this.Ra.un()&&(this.ma.V().Xb()&&this.ma.oa("rms",{ld:"seek"}),this.Ra.L=performance.now(),this.ma.eQ(),this.ma.V().Xb()&&g.rp(this.uc)));var n;(n=c.Z)!=null&&xU(n,0);this.policy.rb&&this.policy.Bq&&this.Ra&&(c=a.MF())&&c.Ti()&&!CG(a.Ke(),Math.min(c.gf+NV,c.Vf))&&this.oa("sbunb",{st:c.gf,et:c.Vf});this.policy.uc?OSa(this):this.xe()};
g.k.cba=function(a){if(this.Ra){var b=LU(a===this.Ra.j?this.audioTrack:this.videoTrack);if(a=a.HQ())for(var c=0;c<a.length;c++)this.oa("appendedbuffer",{i:c,b:g.uc(a[c].subarray(0,4096),3)});a=void 0;b&&(a=SN(b),this.policy.B&&this.wb&&this.wb.Ul()&&(a.ccid=this.wb.Ul()));this.handleError("fmt.unplayable",a,1)}};
g.k.Py=function(a){this.ma.Py(a)};
g.k.jM=function(a,b,c){this.manifest.isManifestless&&XRa(this,b,c,!!a.info.video,!0)};
g.k.MS=function(a,b,c,d){a.info.video&&this.C.MS(b,c,d)};
g.k.gM=function(a){this.j.gM(a)};
g.k.WF=ba(18);g.k.cI=function(a){this.wb=a;var b;(b=this.audioTrack.W)!=null&&(b.fd=a);(b=this.videoTrack.W)!=null&&(b.fd=a);b=this.W;b.U&&(b.va.oa("ssap",{addcacheclips:1,v:b.U.version,tl:DUa(b.U.Rt)}),AUa(b,a,b.U),b.U=void 0)};
g.k.If=function(){return this.wb};
g.k.qG=function(){return this.videoTrack.U||this.audioTrack.U};
g.k.seek=function(a,b){if(this.Ja())return Ei();if(this.qG())return Ei("seeking to head");if(this.policy.Z&&!isFinite(a))return WOa(this.Ug),Di(Infinity);WUa(this);this.Dq=(0,g.Vt)();this.policy.j||LV(this,a);this.Ra&&this.Ra.j&&this.Ra.B&&!this.ma.getVideoData().LL&&(this.Ra.j.isLocked()||this.Ra.B.isLocked())&&this.ma.vp({reattachOnLockedBuffer:1,vsb:""+this.Ra.B.isLocked(),asb:""+this.Ra.j.isLocked()});var c=this.getCurrentTime(),d=this.Ug.seek(a,b);this.policy.Ma||(this.currentTime=d);kU(this.C,
a,c,this.policy.Nw&&!b.Ds);EV(this);return Di(d)};
g.k.zR=function(a){return this.policy.j&&this.W.zR(a)};
g.k.Jv=function(a,b){this.W.Jv(a,b)};
g.k.getCurrentTime=function(){if(this.policy.Ma){var a=this.Mc()||0;return this.ma.getCurrentTime()-a}return this.currentTime};
g.k.qQ=function(){return this.audioTrack.j.info};
g.k.yx=function(){return this.videoTrack.j.info};
g.k.pQ=function(){return this.audioTrack.j.info.ob};
g.k.sQ=function(){return this.videoTrack.j.info.ob};
g.k.xa=function(){try{this.AA(),wT(this.audioTrack),wT(this.videoTrack),XU(this.audioTrack),XU(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.O.prototype.xa.call(this)}catch(a){g.ex(a)}};
g.k.handleError=function(a,b,c){c=c===void 0?0:c;var d=WF(c);a==="fmt.unplayable"&&this.manifest.isLive&&(this.policy.xr=!1,EO(this.manifest));b=new VF(a,b,c);g.Va(this);UF(b.details);this.ma.handleError(b);a!=="html5.invalidstate"&&b.errorCode!=="fmt.unplayable"&&a!=="fmt.unparseable"&&d&&this.dispose()};
g.k.wc=function(){var a=LU(this.audioTrack),b=LU(this.videoTrack);a={lct:this.getCurrentTime().toFixed(3),lsk:this.Ug.isSeeking(),lmf:this.j.j.isLocked(),lbw:AP(this.schedule).toFixed(3),lhd:yP(this.schedule).toFixed(3),lst:((this.schedule.L.rh()||0)*1E9).toFixed(3),laa:a?a.Cc():"",lva:b?b.Cc():"",lar:this.audioTrack.B?this.audioTrack.B.Cc():"",lvr:this.videoTrack.B?this.videoTrack.B.Cc():"",laq:""+PU(this.audioTrack),lvq:""+PU(this.videoTrack)};this.Ra&&!this.Ra.dh()&&this.Ra.j&&this.Ra.B&&(a.lab=
AG(this.Ra.j.Ke()),a.lvb=AG(this.Ra.B.Ke()));this.Sp&&(a.lapt=((0,g.Vt)()-this.Sp).toFixed(0),a.lapr=bVa(this));this.Fa&&(a.lapmabht=((0,g.Vt)()-this.Fa).toFixed(0),a.lapmabh=yT(this,this.audioTrack).toFixed(0));this.La&&(a.lapmvbht=((0,g.Vt)()-this.La).toFixed(0),a.lapmvbh=yT(this,this.videoTrack).toFixed(0));this.Ma&&(a.lapsdai=((0,g.Vt)()-this.Ma).toFixed(0));return a};
g.k.dj=function(){try{this.policy.j&&this.W.Jv(!1,"pending"),this.audioTrack.dj(),this.videoTrack.dj()}catch(a){g.ex(a)}this.policy.D=""};
g.k.kQ=function(){return pT(this.Z)};
g.k.oa=function(a,b,c){this.ma.oa(a,b,c===void 0?!1:c)};
g.k.eg=function(){return this.ma.eg()};
g.k.Tp=function(a,b){a/=b;isNaN(this.timestampOffset)&&wVa(this,a-Math.min(a,this.policy.TI));return(a-this.timestampOffset)*b};
g.k.Mc=function(){return this.timestampOffset};
g.k.isSeeking=function(){return this.Ug.isSeeking()};
g.k.Jx=function(){this.C.Jx()};
g.k.Bp=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?{}:c;this.policy.j?this.B.Bp(a,b,c):this.j.Bp(a,b,c)};
g.k.TH=function(a,b){if(!this.U)return!1;var c=this.videoTrack.j.index.wi(a);return this.U.TH(a,b,c)};
g.k.kt=function(a,b){if(this.U&&this.C.kt(a,this.U))return wVa(this,this.timestampOffset-b),EV(this),this.policy.G&&(EO(this.manifest),XU(this.audioTrack),XU(this.videoTrack),this.dj()),!0;b=this.videoTrack.j.index.wi(a);this.handleError("ad.skipfailed",{dec:!!this.U,t:a.toFixed(3),sq:b});return!1};
g.k.getManifest=function(){return this.manifest};
g.k.isOffline=function(){return!!this.ma.getVideoData().cotn};
g.k.FH=function(a,b){this.ma.FH(a,b)};
g.k.vC=function(a){if(this.policy.Op)this.policy.j&&this.W.Jv(!0,"utc"),this.xe();else{var b=this.ma.getVideoData().Ki;if(b){var c=this.D;c.Lh=a;c.Ki=b;fV(this)}}};
g.k.Xu=function(a){this.videoTrack.U=!1;this.audioTrack.U=!1;this.Ug.B=!1;this.ma.Xu(a)};
g.k.mU=function(a){this.Ug.mU(a-this.Mc())};
g.k.SE=function(){this.ma.SE()};
g.k.GT=function(a,b){var c=this.audioTrack.Rb,d=this.videoTrack.Rb;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.vp=function(a){this.ma.vp(a)};
g.k.kz=function(a){this.ma.kz(a)};
g.k.Hx=function(){return this.ma.Hx()};g.k=g.PV.prototype;g.k.JA=function(a,b,c,d,e,f){return this.fd.JA(a,b,c,d,e,f)};
g.k.KK=function(a,b,c,d,e,f){return this.fd.KK(a,b,c,d,e,f)};
g.k.LQ=function(a){return this.fd.LQ(a)};
g.k.NK=function(a){this.fd.NK(a)};
g.k.BA=function(a,b,c){return this.fd.BA(a,b,c)};
g.k.Jx=function(){this.fd.Jx()};
g.k.TH=function(a,b,c){return this.fd.TH(a,b,c)};
g.k.Pv=function(a,b){this.fd.Pv(a,b)};
g.k.RT=function(){this.fd.RT()};
g.k.IF=ba(38);g.k.Pk=function(a,b,c){this.fd.Pk(a,b,c)};
g.k.CI=ba(40);g.k.XS=function(a,b,c,d,e,f,h,l,m){this.fd.XS(a,b,c,d,e,f,h,l,m)};
g.k.oU=function(a){this.fd.oU(a)};
g.k.tv=function(a){return this.fd.tv(a)};
g.k.SP=function(a){return this.fd.SP(a)};g.w(QV,g.Fx);g.w(RV,QV);RV.prototype.L=function(a,b){if(a&&b){var c=Number(ej(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.Og(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.rp(this.B))}};
RV.prototype.G=function(){for(var a=g.x(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(Vi),f=[],h=g.x(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.ig(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 CU(d,"fairplay",!0))}this.j={}};
RV.prototype.xa=function(){this.j={};QV.prototype.xa.call(this)};g.w(SV,QV);
SV.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&this.j.length>0)for(var c=g.x(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.Vt)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.x(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?BVa(this,a):this.D||(this.j.push({time:b+c,info:a}),g.rp(this.B,c))}};
SV.prototype.xa=function(){this.j=[];QV.prototype.xa.call(this)};var M2={},JVa=(M2.DRM_TRACK_TYPE_AUDIO="AUDIO",M2.DRM_TRACK_TYPE_SD="SD",M2.DRM_TRACK_TYPE_HD="HD",M2.DRM_TRACK_TYPE_UHD1="UHD1",M2);g.w(FVa,g.O);g.w(LVa,g.Fx);g.k=LVa.prototype;g.k.Kq=function(a){var b=this;this.Ja()||a.size<=0||(a.forEach(function(c,d){var e=QO(b.B)?d:c;d=new Uint8Array(QO(b.B)?c:d);QO(b.B)&&bWa(d);c=g.uc(d,4);bWa(d);d=g.uc(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),XVa(this,","),TV(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.Ja()||(this.publish("licenseerror",a,b,c,d),a==="drm.provision"&&(a=(Date.now()-this.L)/1E3,this.L=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));WF(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Fa&&this.U?!1:!a&&this.requestNumber===b.requestNumber};
g.k.xa=function(){this.j={};g.Fx.prototype.xa.call(this)};
g.k.wc=function(){var a={ctype:this.Z.contentType||"",length:this.Z.initData.length,requestedKeyIds:this.Ea,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.getInfo=function(){var a=this.D.join();if(UV(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.qe=function(){return this.url};g.w(VV,g.O);g.k=VV.prototype;g.k.r6=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.Kq=function(){this.U&&this.U(this.j.keyStatuses)};
g.k.onClosed=function(){this.Ja()||g.gs("xboxone")&&this.C&&this.C("closed")};
g.k.T0=function(a){this.G&&this.G(a.message,"license-request")};
g.k.S0=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.R0=function(){this.L&&this.L()};
g.k.update=function(a){var b=this;if(this.j)return(dP.isActive()?dP.Tq("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,GL(function(c){dWa(b,"t.update",c)}));
this.B?this.B.update(a):this.element.addKey?this.element.addKey(this.W.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.W.keySystem,a,this.initData,this.sessionId);return Yr()};
g.k.xa=function(){this.j&&(this.Z?this.j.close().catch(g.fx):this.j.close());this.element=null;g.O.prototype.xa.call(this)};g.w(WV,g.O);g.k=WV.prototype;g.k.SO=function(){var a=this;if(this.j.keySystemAccess)return(dP.isActive()?dP.Tq("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ja())if(a.B=c,dP.isActive())dP.Tq("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;(d=a.element)==null||d.setMediaKeys(c)}});
if(PO(this.j))this.C=new (OO())(this.j.keySystem);else if(RO(this.j)){this.C=new (OO())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else dP.isActive()&&this.oa("emev",{v:"01b"}),Us(this.G,this.element,["keymessage","webkitkeymessage"],this.u6),Us(this.G,this.element,["keyerror","webkitkeyerror"],this.t6),Us(this.G,this.element,["keyadded","webkitkeyadded"],this.s6);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.Im?this.B.setServerCertificate(this.j.Im):TO(this.j)&&this.j.Za?this.B.setServerCertificate(this.j.Za):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();SO(this.j)?c=eWa(c,this.j.Za):TO(this.j)&&(c=AVa(c)||new Uint8Array(0));b&&b("genreq");var e=dP.isActive()?dP.Tq("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new VV(null,null,null,d,null,this.U);e.then(function(){b&&b("genreqsuccess")},GL(function(l){dWa(f,"t.generateRequest",l)}));
return f}if(PO(this.j))return gWa(this,c);if(RO(this.j))return fWa(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 VV(this.element,this.j,c,null,null,this.U)};
g.k.u6=function(a){var b=hWa(this,a);b&&b.T0(a)};
g.k.t6=function(a){var b=hWa(this,a);b&&b.S0(a)};
g.k.s6=function(a){var b=hWa(this,a);b&&b.R0(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.x(Object.values(this.L));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.L={};g.O.prototype.xa.call(this);delete this.element};g.k=XV.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.Yb(this.keys,function(b){return g.mc(a,b)})};g.w(kWa,g.Fx);g.k=kWa.prototype;g.k.Eba=function(a){this.Cj({onecpt:1});a.initData&&nWa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.dca=function(a){this.Cj({onndky:1});nWa(this,a.initData,a.contentType)};
g.k.Py=function(a){this.Cj({onneedkeyinfo:1});this.ea.N("html5_eme_loader_sync")&&(this.U.get(a.initData)||this.U.set(a.initData,a));mWa(this,a)};
g.k.AX=function(a){this.C.push(a);YV(this)};
g.k.createSession=function(a){var b=pWa(this)?yRa(a):g.uc(a.initData);this.B.get(b);this.Ea=!0;a=new LVa(this.videoData,this.ea,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.dM,this);a.subscribe("keystatuseschange",this.Kq,this);a.subscribe("licenseerror",this.hM,this);a.subscribe("newlicense",this.O0,this);a.subscribe("newsession",this.P0,this);a.subscribe("sessionready",this.b1,this);a.subscribe("fairplay_next_need_key_info",this.J0,this);this.ea.N("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.hV,this);this.ea.N("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Uca,this);PVa(a,this.D)};
g.k.O0=function(a){this.Ja()||(this.Cj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
g.k.P0=function(){this.Ja()||(this.Cj({newlcssn:1}),this.C.shift(),this.Ea=!1,YV(this))};
g.k.b1=function(){if(PO(this.j)&&(this.Cj({onsnrdy:1}),this.La--,this.La===0)){var a=this.qa,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}};
g.k.Kq=function(a){if(!this.Ja()){!this.Ma&&this.videoData.N("html5_log_drm_metrics_on_key_statuses")&&(qWa(this),this.Ma=!0);this.Cj({onksch:1});var b=this.hV;if(!UV(a)&&g.ou&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(UV(a))for(var e=g.x(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(!UV(a)||d)c=a.D;c=WVa(c)}b.call(this,c);this.publish("keystatuseschange",
a)}};
g.k.dM=function(a,b){this.Ja()||this.publish("ctmp",a,b)};
g.k.J0=function(a,b){this.Ja()||this.publish("fairplay_next_need_key_info",a,b)};
g.k.hM=function(a,b,c,d){this.Ja()||(this.videoData.N("html5_log_drm_metrics_on_error")&&qWa(this),this.publish("licenseerror",a,b,c,d))};
g.k.Bx=function(){return this.W};
g.k.hV=function(a){var b=g.oM("auto",a,!1,"l");if(this.videoData.El){if(nM(this.W,b))return}else if(eEa(this.W,a))return;this.W=b;this.publish("qualitychange");this.Cj({updtlq:a})};
g.k.Uca=function(a){this.videoData.sabrLicenseConstraint=a};
g.k.xa=function(){this.j.keySystemAccess&&this.element&&(this.Ba?this.element.setMediaKeys(null).catch(g.fx):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.x(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.dM,this),b.unsubscribe("keystatuseschange",this.Kq,this),b.unsubscribe("licenseerror",this.hM,this),b.unsubscribe("newlicense",this.O0,this),b.unsubscribe("newsession",this.P0,this),b.unsubscribe("sessionready",this.b1,this),b.unsubscribe("fairplay_next_need_key_info",
this.J0,this),this.ea.N("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.hV,this),b.dispose();this.B.clear();this.L.removeAll();this.U.removeAll();this.heartbeatParams=null;g.Fx.prototype.xa.call(this)};
g.k.wc=function(){for(var a={systemInfo:this.j.wc(),sessions:[]},b=g.x(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.wc());return a};
g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
g.k.Cj=function(a,b){b=b===void 0?!1:b;this.Ja()||(UF(a),(this.ea.Xb()||b)&&this.publish("ctmp","drmlog",a))};g.w(vWa,g.O);g.k=vWa.prototype;g.k.cK=function(){return!!this.yG};
g.k.mL=function(){return this.B};
g.k.handleError=function(a){var b=this;BWa(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!AWa(this,a.errorCode,a.details))&&!FWa(this,a)){if(this.Ca.qa!=="yt"&&DWa(this,a)&&this.videoData.Sq&&(0,g.Vt)()/1E3>this.videoData.Sq&&this.Ca.qa==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.Sq;c.init=this.videoData.fX/1E3;c.now=(0,g.Vt)()/1E3;c.systelapsed=((0,g.Vt)()-this.videoData.fX)/1E3;
a=new VF(a.errorCode,c,2);this.ma.vg(a.errorCode,2,"SIGNATURE_EXPIRED",UF(a.details))}if(WF(a.severity)){var d;c=(d=this.ma.va)==null?void 0:d.j.j;if(this.Ca.N("html5_use_network_error_code_enums"))if(CWa(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else if(this.Ca.L||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 CWa(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ca.L||a.errorCode!=="auth"||
a.details.rc!=="429"?a.errorCode==="ump.spsrejectfailure"&&(e="HTML5_SPS_UMP_STATUS_REJECTED"):(e="TOO_MANY_REQUESTS",f="6");this.ma.vg(a.errorCode,a.severity,e,UF(a.details),f)}else this.ma.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Hd(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Vt)(),oT(a,"manifest",function(h){b.L=!0;b.oa("pathprobe",h)},function(h){b.Hd(h.errorCode,
h.details)}))}};
g.k.oa=function(a,b){this.ma.Wb().oa(a,b)};
g.k.Hd=function(a,b){b=UF(b);this.ma.Wb().Hd(a,b)};IWa.prototype.mK=function(a,b){return(b===void 0?0:b)?{rT:a?bW(this,a):VQ,C8:a?QWa(this,a):VQ,pfa:a?OWa(this,a):VQ,rga:a?WWa(this,a.videoData):VQ,Y8:a?XWa(this,a.videoData,a):VQ,tfa:a?MWa(this,a):VQ}:{rT:a?bW(this,a):VQ}};
IWa.prototype.N=function(a){return this.ea.N(a)};g.w(cW,g.O);cW.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.N("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(cfb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
cW.prototype.send=function(){if(!(this.C||this.j<0)){$Wa(this);var a=g.KK(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Yg;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.T(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.T(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.T(this.playerState,16)||g.T(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.T(this.playerState,1)&&g.T(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.T(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.T(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.T(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=i_a[wR(this.provider.videoData)];a:switch(this.provider.ea.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=aXa(this.provider),
f=this.B<0?a:this.B-this.j;a=this.provider.ea.Yf+36E5<(0,g.Vt)();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.vR(this.provider.videoData),isGapless:this.provider.videoData.Z,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:cR(this.provider.videoData)};a||g.Dt("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
cW.prototype.xa=function(){this.C||this.send();window.removeEventListener("error",this.UB);window.removeEventListener("unhandledrejection",this.UB);g.O.prototype.xa.call(this)};
var cfb=/\bnet\b/;g.w(cXa,g.O);cXa.prototype.xa=function(){g.O.prototype.xa.call(this);eXa(this)};var fXa=/[?&]cpn=/;var lXa=[2,5,30];g.jW=yi(function(){var a="";try{var b=g.mh("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(g.gW,g.O);g.k=g.gW.prototype;g.k.r$=function(){var a=g.KK(this.provider);pXa(this,a)};
g.k.LF=function(){return this.La};
g.k.RF=function(){return{mC:this.mC,nC:this.nC}};
g.k.bI=function(a,b){this.mC=a;this.nC=b};
g.k.ez=function(a){if(!this.Ib){this.Ib=!0;var b="";switch(a){case 1:b="proximaui";break;case 2:b=qMa(this.provider.videoData)?"proximawpcc":this.provider.videoData.N("html5_enable_proxima")||this.provider.videoData.N("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:b="proximaauto"}b!==""&&iW(this,b)}};
g.k.EH=function(a){this.j.lwc=[[a.mf?a.mf.toFixed():"",a.Di?a.Di.toFixed():"",a.La?(a.La*1E3).toFixed():"",a.Sb?(a.Sb*1E3).toFixed():"",a.Ac?(a.Ac*1E3).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.Ja()&&(a=a>=0?a:g.KK(this.provider),["PL","B","S"].indexOf(this.Ne)>-1&&(!g.Og(this.j)||a>=this.G+30)&&(g.fW(this,a,"vps",[this.Ne]),this.G=a),!g.Og(this.j))){this.sequenceNumber===7E3&&g.fx(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){hW(this,a);var b=a,c=this.provider.ma.YF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.mC,h=e&&!this.nC;d>c.totalVideoFrames||f>5E3?wXa(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(f>0||h)&&g.fW(this,b,"df",[f]);this.mC=d;this.nC=e;this.Z>0&&(g.fW(this,a,"glf",[this.Z]),this.Z=0);x2.isActive()&&(a=x2.PY(),Object.keys(a).length>0&&this.oa("profile",a));this.Kb&&iW(this,"lwnmow");this.provider.ea.Xb()&&this.provider.N("html5_record_now")&&this.oa("now",{wt:(0,g.Vt)()});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.qa&&(a.addocid=this.qa);this.contentCpn&&(a.ccpn=this.contentCpn);this.Ba&&(a.cdocid=this.Ba);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=IR(this.provider.videoData);a.content_v=KR(this.provider.videoData);a.ns=this.provider.ea.qa;a.fexp=PJa(this.provider.ea.experiments).toString();a.cl=(696361612).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=wR(this.provider.videoData))&&(a.live=b);this.provider.videoData.Si()&&
(a.drm=1,this.provider.videoData.G&&(a.drm_system=Teb[this.provider.videoData.G.flavor]||0),this.provider.videoData.Dl&&(a.drm_product=this.provider.videoData.Dl));Ar()&&this.provider.videoData.L&&(a.ctt=this.provider.videoData.L,a.cttype=this.provider.videoData.Sn,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.SW&&(a.dai_fallback=
"1")):this.provider.videoData.Cd?a.dai="cs":this.provider.videoData.SG&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.t2){if(b=this.provider.videoData.t2,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Gd.has(b.ns)&&iW(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.x(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Fd.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");Object.assign(a,this.provider.ea.j);if(b=a.seq)b={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+b,serializedWatchEndpointLoggingContext:this.provider.videoData.h7},this.serializedHouseBrandPlayerServiceLoggingContext&&(b.serializedHouseBrandPlayerServiceLoggingContext=wc(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn),eW.length&&
(b.decoderInfo=eW),this.provider.ma.If()&&(b.transitionStitchType=4,this.Ea&&(b.timestampOffsetMsecs=this.Ea)),this.remoteControlMode&&(b.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices),b=g.EB(b,BDa),b=g.uc(b,4),this.j.qclc=[b];a=g.cj("//"+this.provider.ea.ao+"/api/stats/qoe",a);c=b="";d=g.x(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.fx(new g.lt("Stats report key has invalid value",
e)):(e="&"+e+"="+this.j[e].join(","),e.length>100?c+=e:b+=e);sXa(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.kz=function(a){this.Kb=a};
g.k.J2=function(){if(this.provider.videoData.G){var a=this.provider.videoData.G;iW(this,"eme-"+(a.keySystemAccess?"final":PO(a)?"ms":SO(a)?"ytfp":RO(a)?"safarifp":"nonfinal"))}};
g.k.aC=function(a){var b=g.KK(this.provider);if(!this.provider.ea.experiments.fb("html5_refactor_sabr_video_format_selection_logging")||a.j.id!==this.Va){var c=[a.j.id,a.B,this.Va,a.reason];a.token&&c.push(a.token);g.fW(this,b,"vfs",c);this.Va=a.j.id;c=this.provider.ma.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.aQ();d>1&&c.push(d);g.fW(this,b,"view",c)}this.eb||(this.provider.ea.Xb()&&iW(this,"rqs2"),this.provider.videoData.j&&vM(this.provider.videoData.j)&&
(this.j.preload=["1"]));this.C=this.eb=!0}a.reason==="m"&&++this.He===100&&xXa(this,2);g.fW(this,b,"vps",[this.Ne]);this.reportStats(b)};
g.k.SB=function(a){var b=g.KK(this.provider);if(this.provider.ea.experiments.fb("html5_refactor_sabr_audio_format_selection_logging")){b=a.j;var c=[b.audio&&b.video?b.TL?b.TL:"":b.id];b.qc&&b.qc.id&&c.push(b.qc.id);b=c.join(";");b!==this.U&&(c=[b,this.U,a.reason],a.token&&c.push(a.token),g.fW(this,g.KK(this.provider),"afs",c),this.U=b)}else a.j.id!==this.U&&(c=[a.j.id,this.U,a.reason],a.token&&c.push(a.token),g.fW(this,b,"afs",c),this.U=a.j.id)};
g.k.uv=ba(43);g.k.qp=function(a){this.isEmbargoed=a};
g.k.tj=ba(29);g.k.jl=ba(33);g.k.onPlaybackRateChange=function(a){var b=g.KK(this.provider);a&&a!==this.Jc&&(g.fW(this,b,"rate",[a]),this.Jc=a);this.reportStats(b)};
g.k.gp=ba(25);g.k.getPlayerState=function(a){if(g.T(a,128))return"ER";if(g.T(a,2048))return"B";if(g.T(a,512))return"SU";if(g.T(a,16)||g.T(a,32))return"S";if(a.isOrWillBePlaying()&&g.T(a,64))return"B";var b=dfb[OH(a)];g.YD(this.provider.ea)&&b==="B"&&this.provider.ma.getVisibilityState()===3&&(b="SU");b==="B"&&g.T(a,4)&&(b="PB");return b};
g.k.xa=function(){g.O.prototype.xa.call(this);g.Kr(this.L);g.Kr(this.Sb)};
g.k.SM=function(a){this.isOffline=a;g.fW(this,g.KK(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.oa=function(a,b,c){var d=this.j.ctmp||[],e=this.kd.indexOf(a)!==-1;e||this.kd.push(a);if(!c||!e){var f=typeof b!=="string"?UF(b):b;f=yXa(f);if(!c&&!/^t[.]/.test(f)){var h=g.KK(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;tXa(this);return h}};
g.k.DH=function(a,b,c){this.D={Iea:Number(this.oa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),v0:a,qea:b,isAd:c}};
g.k.cz=function(a,b,c){g.fW(this,g.KK(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.ea.Xb()&&this.oa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.L)?uXa(this):this.L=g.Ir(function(){a.reportStats()},1E4)};
var N2={},dfb=(N2[5]="N",N2[-1]="N",N2[3]="B",N2[0]="EN",N2[2]="PA",N2[1]="PL",N2[-1E3]="ER",N2[1E3]="N",N2),eW=[];BXa.prototype.yQ=function(){return this.j};
BXa.prototype.update=function(){if(this.U){var a=this.provider.ma.pK(this.provider.videoData.clientPlaybackNonce)||0,b=g.KK(this.provider);a>=this.provider.ma.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||EXa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Eq+2||EXa(this,a,b))){c=this.provider.ma.getVolume();var d=c!==this.Z,e=this.provider.ma.isMuted()?1:0;e!==this.W?(this.W=e,c=!0):(!d||this.D>=0||(this.Z=c,this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(mW(this),this.C=
a);this.Eq=b;this.j=a}}};FXa.prototype.send=function(a){var b=this;if(!this.Za){var c=HXa(this),d=g.cj(this.uri,c);this.ea.N("vss_through_gel_double")&&IXa(d);this.Ba&&!this.ea.N("html5_simplify_pings")?NXa(this,d):GXa(this,a).then(function(e){b.Ba&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});jXa(d,e,{token:b.qa,RU:b.tb,mdxEnvironment:b.mdxEnvironment},b.ea,a,b.Ea,b.isFinal&&b.Xf||b.Fa||b.C&&b.Yf)});
this.Za=!0}};
FXa.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()};
var O2={},LXa=(O2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,O2.LIVING_ROOM_APP_MODE_MAIN=1,O2.LIVING_ROOM_APP_MODE_KIDS=2,O2.LIVING_ROOM_APP_MODE_MUSIC=3,O2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,O2.LIVING_ROOM_APP_MODE_GAMING=5,O2),P2={},KXa=(P2.EMBEDDED_PLAYER_MODE_UNKNOWN=0,P2.EMBEDDED_PLAYER_MODE_DEFAULT=1,P2.EMBEDDED_PLAYER_MODE_PFP=2,P2.EMBEDDED_PLAYER_MODE_PFL=3,P2);g.w(oW,g.O);g.k=oW.prototype;g.k.Jg=function(){this.j.update();VXa(this)&&(PXa(this),QXa(this),this.Bt())};
g.k.xa=function(){g.O.prototype.xa.call(this);rW(this);CXa(this.j)};
g.k.wc=function(){return HXa(pW(this,"playback"))};
g.k.Bt=function(){this.provider.videoData.U.eventLabel=IR(this.provider.videoData);this.provider.videoData.U.playerStyle=this.provider.ea.playerStyle;this.provider.videoData.Qj&&(this.provider.videoData.U.feature="pyv");this.provider.videoData.U.vid=this.provider.videoData.videoId;var a=this.provider.videoData.U;var b=this.provider.videoData;b=b.isAd()||!!b.Qj;a.isAd=b};
g.k.Ri=function(a){var b=pW(this,"engage");b.ra=a;return JXa(b,aYa(this.provider))};$Xa.prototype.isEmpty=function(){return this.endTime===this.startTime};tW.prototype.N=function(a){return this.ea.N(a)};
tW.prototype.getCurrentTime=function(a){if(this.N("html5_ssap_current_time_for_logging_refactor")){var b=this.ma.If();if(b&&(a=a||b.Ul()))return F_(b,a)}else if(g.jR(this.videoData)){var c=this.ma.If();if(c)return a=this.ma.getCurrentTime(),c=(((b=sT(c,a*1E3))==null?void 0:b.lm)||0)/1E3,a-c}return this.ma.getCurrentTime()};
tW.prototype.xg=function(a){if(this.N("html5_ssap_current_time_for_logging_refactor")){var b=this.ma.If();if(b&&(a=a||b.Ul()))return F_(b,a)}else if(g.jR(this.videoData)){var c=this.ma.If();if(c)return a=this.ma.xg(),c=(((b=sT(c,a*1E3))==null?void 0:b.lm)||0)/1E3,a-c}return this.ma.xg()};
var bYa={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.w(g.uW,g.O);g.k=g.uW.prototype;g.k.Jg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Wg){var a;(a=this.C.get(this.Wg))==null||a.Jg()}else this.j&&this.j.Jg()};
g.k.qp=function(a){this.qoe&&this.qoe.qp(a)};
g.k.tj=ba(28);g.k.jl=ba(32);g.k.Hd=function(a,b){this.qoe&&wXa(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.aC=function(a){this.qoe&&this.qoe.aC(a)};
g.k.SB=function(a){this.qoe&&this.qoe.SB(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&mW(this.j.j)};
g.k.uv=ba(42);g.k.oa=function(a,b,c){this.qoe&&this.qoe.oa(a,b,c)};
g.k.DH=function(a,b,c){this.qoe&&this.qoe.DH(a,b,c)};
g.k.ez=function(a){var b;(b=this.qoe)==null||b.ez(a)};
g.k.EH=function(a){var b;(b=this.qoe)==null||b.EH(a)};
g.k.kz=function(a){this.qoe&&this.qoe.kz(a)};
g.k.cz=function(a,b,c){this.qoe&&this.qoe.cz(a,b,c)};
g.k.gp=ba(24);g.k.LF=function(){if(this.qoe)return this.qoe.LF()};
g.k.wc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Wg){var a,b;return(b=(a=this.C.get(this.Wg))==null?void 0:a.wc())!=null?b:{}}return this.j?this.j.wc():{}};
g.k.RF=function(){var a;return(a=this.qoe)==null?void 0:a.RF()};
g.k.bI=function(a,b){var c;(c=this.qoe)==null||c.bI(a,b)};
g.k.Ri=function(a){return this.j?this.j.Ri(a):function(){}};
g.k.Bt=function(){this.j&&this.j.Bt()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.w(wW,g.O);
wW.prototype.NJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!cYa(d))this.B.oa("ssap",{rlc:a}),nYa(this,a);else return}if(!this.j.has(a)){d=new tW(b,this.ea,this.ma);var e=Math.round(g.KK(this.B.provider)*1E3);d=new g.uW(d,e);cYa(d)||this.B.oa("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.Ba=h}dYa(d);c===2&&(this.ea.N("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.Vb||"",
e=b.breakType||0,b=b.videoId||"",f=this.ea.qa||"yt",g.fW(c,g.KK(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.cz(a,b.Vb||"",b.breakType||0))}};
wW.prototype.Wb=function(a){a=a||this.Wg;return this.j.get(a)||this.B};g.w(xW,g.O);g.k=xW.prototype;
g.k.hf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.tF("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.x(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.nc(b.array,d,b.j);a=g.x(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.ql=function(a){a.length>1E4&&g.fx(new g.lt("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ja()){for(var b=g.x(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)});
uYa(this.j,d);this.sync()}};
g.k.tF=function(a,b){var c=(isNaN(this.C)?g.T(this.L(),2)?0x8000000000000:this.Z()*1E3:this.C)-b;b=this.Nj().filter(function(d){return d.namespace===a&&d.end<c});
this.ql(b);return b};
g.k.Nj=function(){return this.Ja()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.G.stop();this.j.array=[];this.B=[];this.sync()};
g.k.df=function(a){var b=this.Nj().filter(function(c){return c.namespace===a});
this.ql(b);return b};
g.k.TK=function(a){return this.Nj().some(function(b){return b.namespace===a})};
g.k.Bz=function(a,b){var c=[],d=rYa(this.j,0x7ffffffffffff),e=[];this.D("ssap",{mecrs:d.length,cpn:b});d=g.x(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.gK(e));xYa(this,c);c=[];b=[];d=g.x(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.iK(b));xYa(this,c);return e.length};
g.k.gK=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.iK=function(a){var b=[];if(!a.length)return b;a.sort(g.CE);a=g.x(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.U=!0;if(!this.W){for(var a=3;this.U&&a;)this.U=!1,this.W=!0,this.n_(),this.W=!1,a--;this.L().isPlaying()&&(a=tYa(this.j,this.C),!isNaN(a)&&a<0x7ffffffffffff&&(a=(a-this.C)/this.Ba(),this.G.start(a)))}};
g.k.n_=function(){if(this.started&&!this.Ja()){this.G.stop();var a=this.L();g.T(a,32)&&this.ra.start();for(var b=g.T(this.L(),2)?0x8000000000000:this.Z()*1E3,c=g.T(a,2),d=[],e=[],f=g.x(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.iK(e));f=e=null;c?(a=rYa(this.j,0x7ffffffffffff),e=a.filter(function(l){return l.end<0x8000000000000}),f=sYa(this.j)):a=this.C<=b&&NH(a)?qYa(this.j,this.C,b):rYa(this.j,b);
d=d.concat(this.gK(a));e&&(d=d.concat(this.iK(e)));f&&(d=d.concat(this.gK(f)));this.C=b;xYa(this,d)}};
g.k.xa=function(){this.B=[];this.j.array=[];g.O.prototype.xa.call(this)};
g.n_.gL(xW,{hf:"crmacr",gK:"crmncr",iK:"crmxcr",n_:"crmis",ql:"crmrcr"});zW.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
zW.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)};
zW.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.w(BW,g.Fx);BW.prototype.Aq=function(){return this.W};
BW.prototype.Jo=function(){return this.policy.U&&this.videoData.j?this.videoData.j.yk:Math.max(this.L()-DW(this)*this.j,this.videoData.Zc())};g.w(GW,g.O);GW.prototype.xe=function(){var a=this,b=this.ma.Le(),c=this.ma.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=c.state===8&&d>this.j,f=g.T(c,8)&&g.T(c,16),h=this.ma.jj().isBackground()||c.isSuspended();HW(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&$xa(b,this.j);var m=!d||Math.abs(d-this.j)>10,n=this.ea.N("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),p=d===0&&this.B&&[11,10].includes(this.B);HW(this,this.tb,l&&m&&!h&&(!n||!p),e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&CG(b.Rh(),this.j);var q=this.ma.va;l=!q||!q.policy.Za;var r=function(){b.seekTo(a.j+.001)};
HW(this,this.Va,m&&l&&!h,e,"qoe.slowseek",r,"jiggle_cmt");l=function(){return OV(a.ma)};
HW(this,this.Za,m&&!h,e,"qoe.slowseek",l,"new_elem");m=NH(c);n=c.isBuffering();var t=b.Rh(),u=BG(t,d),y=u>=0&&t.end(u)>d+5,A=m&&n&&y;p=this.ma.getVideoData();HW(this,this.Ua,d<.002&&this.j<.002&&f&&g.YD(this.ea)&&g.JR(p)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");HW(this,this.qa,p.Pj()&&f&&!h&&!p.Ba,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");HW(this,this.Ba,A&&!h,m&&!n,"qoe.longrebuffer",r,"jiggle_cmt");HW(this,this.Ea,A&&!h,m&&!n,"qoe.longrebuffer",l,"new_elem_nnr");if(q){var C=q.getCurrentTime();
f=b.Gx();f=Oxa(f,C);f=!q.isSeeking()&&d===f;HW(this,this.Vb,m&&n&&f&&!h,m&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(C)},"seek_to_loader")}f={};
r=BG(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.ma.If()){A=r.Ul();F=A!==sT(r,d*1E3).clipId;var H=g.KD(this.ea.experiments,"html5_ssap_skip_seeking_offset_ms"),K=(rT(r,A)+H)/1E3;HW(this,this.Ma,F&&m&&n&&!h,m&&!n,"qoe.longrebuffer",function(){b.seekTo(K)},"ssap_clip_not_match")}HW(this,this.Fa,m&&n&&!h,m&&!n,"qoe.longrebuffer",
function(){},"timeout",f);
f=c.isSuspended();f=KV(this.ma)&&!f;HW(this,this.U,f,!f,"qoe.start15s",function(){a.ma.Mg("ad")},"ads_preroll_timeout");
r=d-this.D<.5;var N;f=!((N=this.ma.If())==null||!N.Qk());F=(A=p.isAd()||f&&this.ea.experiments.fb("html5_ssap_skip_slow_ad"))&&m&&!n&&r;N=function(){var W=a.ma,V=g.jR(W.videoData)&&W.wb,da=W.Ld.Rc();(da&&W.videoData.isAd()&&da.getVideoData().Cd===W.getVideoData().Cd||!W.videoData.Mf)&&!V?W.vg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+W.videoData.videoId):fR(W.videoData,"html5_ssap_skip_slow_ad")&&V&&W.wb.Qk()&&(W.Hd(new VF("ssap.transitionfailure",{cpn:sT(W.wb,W.xg()).clipId,pcpn:W.wb.Ul(),
cmt:W.xg()})),W=W.wb,V=W.ma.xg(),(V=y7a(W,V))&&u7a(W,V.Qi()/1E3))};
HW(this,this.Kb,F,!F,"ad.rebuftimeout",N,"skip_slow_ad");r=A&&n&&CG(b.Rh(),d+5)&&r;HW(this,this.Db,r&&!h,!r,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.T(c,64)&&!h;HW(this,this.Ib,N,e,"qoe.start15s",function(){},"timeout");
N=!!q&&!q.Ra&&c.isOrWillBePlaying();HW(this,this.La,N,e,"qoe.start15s",l,"newElemMse");N=FG(t,0);r=g.T(c,16)||g.T(c,32);r=!h&&c.isOrWillBePlaying()&&n&&!r&&(g.T(c,64)||d===0)&&N>5;HW(this,this.ib,g.JR(p)&&r,m&&!n,"qoe.longrebuffer",function(){a.ma.vp()},"reset_media_source");
HW(this,this.eb,g.JR(p)&&r,m&&!n,"qoe.longrebuffer",l,"reset_media_element");this.D===0&&(this.L=d);r=n&&this.j===0&&d>1&&d===this.L;HW(this,this.Pa,g.JR(p)&&r,m&&!n,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
h=c.isOrWillBePlaying()&&!h;y=iX(this.ma)-d<6&&!y&&this.ma.Iu();HW(this,this.W,p.Pj()&&h&&n&&y,m&&!n,"qoe.longrebuffer",function(){OV(a.ma,!1,!0)},"handoff_end_long_buffer_reload");
q=(q==null?void 0:yVa(q))||NaN;q=t.length>1||!isNaN(q)&&q-.1<=d;HW(this,this.Z,oR(p)&&h&&n&&q,m&&!n,"qoe.longrebuffer",l,"gapless_slice_append_stuck");q=u>=0&&t.end(u)>=2;h=oR(p)&&this.ma.d3&&q&&!p.Ba&&h&&(n||g.T(c,8)&&g.T(c,16));HW(this,this.ra,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);HW(this,this.Sb,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.D=d;this.G.start()}};
GW.prototype.Hd=function(a,b,c){b=this.wc(b);b.wn=c;b.wdup=this.C[a]?"1":"0";this.ma.Hd(new VF(a,b));this.C[a]=!0};
GW.prototype.wc=function(a){a=Object.assign(this.ma.wc(!0),a.wc());this.j&&(a.stt=this.j.toFixed(3));this.ma.getVideoData().isLivePlayback&&(a.ct=this.ma.getCurrentTime().toFixed(3),a.to=this.ma.Mc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
EW.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
EW.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.Vt)();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};
EW.prototype.wc=function(){var a={},b=(0,g.Vt)();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.w(OYa,g.O);g.k=OYa.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.OT()||this.seekTo(.01,{bd:"seektimeline_setupMediaElement"})),IW(this)):KW(this)};
g.k.getCurrentTime=function(){if(JW(this.ma)){if(!isNaN(this.B))return this.B}else if(!isNaN(this.B)&&isFinite(this.B))return this.B;return this.mediaElement&&aZa(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.Fx=function(){return this.eb};
g.k.xg=function(){return this.getCurrentTime()-this.Mc()};
g.k.Jo=function(){return this.j?this.j.Jo():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return CW(this.j,a)};
g.k.Aq=function(){return!!this.j&&this.j.Aq()};
g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.BI===void 0?!1:c.BI;var d=c.YU===void 0?0:c.YU;var e=c.Qx===void 0?!1:c.Qx;var f=c.SU===void 0?0:c.SU;var h=c.bd===void 0?"":c.bd;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.Tp===void 0?!1:c.Tp;var n=c.Ds===void 0?!1:c.Ds;c=c.zU===void 0?!1:c.zU;m&&(a+=this.Mc());cR(this.videoData)&&this.N("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.eb=void 0);m=a<this.La&&!!this.va;var p=cR(this.videoData)&&n;if(m&&!p&&(this.ma.oa("sdai",{sk2bk:a.toFixed(3),
mt:(a-this.timestampOffset).toFixed(3),lstadj:this.La.toFixed(3)}),this.La=NaN,this.timestampOffset-=1E3,(p=this.va)!=null)){wVa(p,p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(y in q.j){var t=q.j[y].index,u=t.Ax();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.U&&p.U.RT();kU(p.C,0,0,!0)}var y=a;(p=cR(this.videoData))&&n?y=!0:(q=this.N("html5_always_allow_sqless_sync")&&this.videoData.Yb(),
(p||q)&&h==="chunkSelectorSynchronize"?y=!0:(p=!isFinite(y)||(this.j?CW(this.j,y):y>=this.ge())||!g.BR(this.videoData),p||(y={st:y,mst:this.ge()},this.j&&this.N("html5_high_res_seek_logging")&&(y.ht=this.j.Jo(),y.adft=HYa(this.j)),this.ma.oa("seeknotallowed",y)),y=p));if(!y)return this.C&&(this.C=null,ZYa(this)),Di(this.getCurrentTime());y=.005;n&&this.N("html5_sabr_seek_no_shift_tolerance")&&(y=0);if(Math.abs(a-this.B)<=y&&this.ra)return this.G;h&&(y=a,(this.ea.Xb()||this.N("html5_log_seek_reasons"))&&
this.ma.oa("seekreason",{reason:h,tgt:y}));l&&(this.Ea.B=l);this.ra&&KW(this);this.G||(this.G=new UG);a&&!isFinite(a)&&SYa(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.Jl()>0&&WG(this.mediaElement)>0)||iR(this.videoData)&&this.Zc()===this.ge(!1)?0:isFinite(h)||!iR(this.videoData)));h||(a=MW(this,a,e));a&&!isFinite(a)&&SYa(this,!1);this.D=a;this.Va=f;this.B=a;this.Z=0;this.j&&(e=this.j,f=a,IYa(e,f,!1),JYa(e,
f));e=this.ma;f=a;h={BI:b,seekSource:l};e.Sc.D=f;c=e.NE;c.mediaTime=f;c.j=!0;h.BI&&$Za(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Rr&&h&&isFinite(f)&&KZa(e);f<e.ge()-.01&&(h=dH(e.playerState,2),g.T(h,8)&&(h=dH(h,4)),e.Fc(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Ua.start(d):(b={Ds:n,seekSource:l},this.ra=!0,NYa(this,b)));(b=this.ma.Rr)&&a>b.start&&KZa(this.ma);return this.G};
g.k.ge=function(a){if(!this.videoData.isLivePlayback)return x_a(this.ma);var b;return PR(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),TMa(this.kf(a)*1E3)+a):this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&cR(this.videoData)&&this.videoData.j?a?this.videoData.j.ra||0:this.videoData.j.yk||0:iR(this.videoData)&&this.videoData.Ma&&this.videoData.j?this.videoData.j.ge()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&
this.j?this.j.Jo():x_a(this.ma)+this.timestampOffset:this.mediaElement?js()?TMa(this.mediaElement.hJ().getTime()):WG(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.Zc=function(){if(g.jR(this.videoData)){var a=this.ma;g.jR(a.videoData);var b,c;return(c=(b=a.wb)==null?void 0:b.Zc())!=null?c:a.videoData.Zc()}if(this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&cR(this.videoData)){var d;return((d=this.videoData.j)==null?void 0:d.Bq)||0}b=this.videoData?this.videoData.Zc()+this.timestampOffset:this.timestampOffset;return PR(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a=
this.getCurrentTime(),a=this.kf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.eQ=function(){this.G||this.seekTo(this.D,{bd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.qG=function(){return this.ra&&!isFinite(this.B)};
g.k.xa=function(){TYa(this,null);this.Ea.dispose();g.O.prototype.xa.call(this)};
g.k.wc=function(){var a={};this.va&&Object.assign(a,this.va.wc());this.mediaElement&&Object.assign(a,this.mediaElement.wc());return a};
g.k.cT=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return iR(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Mc=function(){return this.timestampOffset};
g.k.kf=function(a){return this.videoData&&this.videoData.j?this.videoData.j.kf(a-this.timestampOffset):NaN};
g.k.Cx=function(){if(!this.mediaElement)return 0;if(CR(this.videoData)){var a=this.mediaElement,b=a.Rh();a=(EG(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Zc();b=this.ge()-this.Zc();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Cx()};
g.k.Oy=function(a){this.L&&(this.L.j=a)};
g.k.vC=function(a,b){this.ma.oa("requestUtcSeek",{time:a});cR(this.videoData)&&this.N("html5_sabr_enable_utc_seek_requests")&&(this.eb=a);var c;(c=this.va)==null||c.vC(a);b&&(this.Ba=b)};
g.k.Xu=function(a){cR(this.videoData)&&this.N("html5_sabr_enable_utc_seek_requests")&&(this.eb=void 0);if(this.Ba)this.ma.oa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Ba}),this.ma.seekTo(this.Ba,{bd:"utcSeekingFallback_streamTime"}),this.Ba=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.kf(b)-a,b-=a,this.ma.oa("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ma.seekTo(b,{bd:"utcSeekingFallback_estimate"}))}};
g.k.SE=function(){this.Ba=0};
g.k.N=function(a){return this.ea&&this.ea.N(a)};g.w(OW,g.O);OW.prototype.start=function(){this.B.start()};
OW.prototype.stop=function(){this.B.stop()};
OW.prototype.clear=function(){for(var a=g.x(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
OW.prototype.sample=function(){for(var a=g.x(this.C),b=a.next();!b.done;b=a.next()){var c=g.x(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new gZa(efb.has(b)));this.j.get(b).update(c())}this.B.start()};
var efb=new Set(["networkactivity"]);gZa.prototype.update=function(a){this.j?(this.buffer.add(a-this.xB||0),this.xB=a):this.buffer.add(a)};
gZa.prototype.clear=function(){this.buffer.clear();this.xB=0};RW.prototype.Mu=function(){return this.started};
RW.prototype.start=function(){this.started=!0};
RW.prototype.reset=function(){this.finished=this.started=!1};var lZa=!1;g.w(g.VW,g.Fx);g.k=g.VW.prototype;g.k.xa=function(){this.logger.debug("dispose");g.Kr(this.DM);uWa(this.Sf);this.visibility.unsubscribe("visibilitystatechange",this.Sf);zZa(this);$W(this);g.jp.Dk(this.Yy);this.hk();this.Tf=null;g.jb(this.videoData);g.jb(this.Ql);g.jb(this.UO);g.jb(this.VO);g.lb(this.Taa);this.Rr=null;g.Fx.prototype.xa.call(this)};
g.k.cz=function(a,b,c,d,e){if(this.ea.N("html5_log_ad_playback_docid")){var f=this.Wb();if(f.qoe){f=f.qoe;var h=this.ea.qa||"yt";g.fW(f,g.KK(f.provider),"ad_playback",[a,b,c,e,h])}}else this.Wb().cz(a,b,c);this.N("html5_log_media_perf_info")&&this.oa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.pQ=function(){var a;return(a=this.va)==null?void 0:a.pQ()};
g.k.sQ=function(){var a;return(a=this.va)==null?void 0:a.sQ()};
g.k.yx=function(){var a;return(a=this.va)==null?void 0:a.yx()};
g.k.qQ=function(){var a;return(a=this.va)==null?void 0:a.qQ()};
g.k.Si=function(){return this.videoData.Si()};
g.k.TA=function(){return this.FB};
g.k.NJ=function(){!this.EB||this.EB.Ja();this.EB=new g.uW(new tW(this.videoData,this.ea,this));this.FB=new wW(this.ea,this,this.EB)};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.ea};
g.k.mK=function(a){return this.al.mK(this.Tf,a===void 0?!1:a)};
g.k.Wb=function(a){if(a)a:{for(var b=this.FB,c=g.x(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.FB.Wb();return a};
g.k.jj=function(){return this.visibility};
g.k.Le=function(){return this.mediaElement};
g.k.lP=function(){if(this.videoData.isLoaded()){var a=this.Ql;g.KD(a.Ca.experiments,"html5_player_min_build_cl")>0&&g.KD(a.Ca.experiments,"html5_player_min_build_cl")>696361612&&EWa(a,"oldplayer");FZa(this)}else this.videoData.Kj||this.videoData.Kp?this.Ju&&g.YD(this.ea)&&this.videoData.isLivePlayback||(this.videoData.Kj?pMa(this.videoData):(a=this.Wb(),a.qoe&&(a=a.qoe,iW(a,"protected"),a.provider.videoData.G?a.J2():a.provider.videoData.subscribe("dataloaded",a.J2,a)),nMa(this.videoData))):!this.videoData.loading&&
this.Y7&&BZa(this)};
g.k.cI=function(a){this.wb=a;this.va&&this.va.cI(a)};
g.k.SA=ba(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.T(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.gN(!0),zZa(this),g.jp.Dk(this.Yy))};
g.k.Ep=function(){hYa(this.Wb())};
g.k.vg=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.Mg(ueb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+RA());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.AY[h]||"",YP:h,Do:f||"",PM:d,EA:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;ZW(this,"dataloaderror");this.Fc(bH(this.playerState,128,b));g.jp.Dk(this.Yy);$W(this);this.tp()};
g.k.Mg=function(a){this.Pq=this.Pq.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
g.jR(this.videoData)&&!this.No()&&this.Lb.Bg("pl_pr");this.Rs.Mu()&&DZa(this)};
g.k.No=function(){var a;(a=!!this.Pq.length)||(a=this.ph.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a};
g.k.Aq=function(){return this.Sc.Aq()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.oG=function(){return this.playerState.oG()&&this.videoData.wk};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Tf){var a=this.Tf;a=a.videoData.kD.compose(a.videoData.O2);a=rM(a)}else a="auto";return a};
g.k.OF=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.Jb()===this.mediaElement.Jb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.Vs(this.fD),this.mediaElement=a,this.mediaElement.ma=this,d_a(this),this.Sc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.hk();if(!this.playerState.isError()){var b=dH(this.playerState,512);g.T(b,8)&&!g.T(b,2)&&(b=cH(b,1));a.isView()&&(b=dH(b,64));this.Fc(b)}this.mediaElement=
a;this.mediaElement.ma=this;gQ(this.ea)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);d_a(this);this.Sc.setMediaElement(this.mediaElement);this.N("html5_prewarm_media_source")&&!this.Ql.cK()&&Wxa(this.mediaElement)}};
g.k.hk=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.Sc.D=d);this.Sc.setMediaElement(null);!a&&QG(this)?TZa(this):fX(this,c);this.va&&(EV(this.va),eX(this,b));this.vy.stop();if(this.mediaElement&&(!this.Rs.Mu()||this.playerState.isError()||g.T(this.playerState,2)||this.Fc(cH(this.playerState,512)),this.mediaElement)){g.Vs(this.fD);if(a||!this.mediaElement.isView())this.Lb.Vv("mesv_s"),
this.mediaElement.stopVideo(),hX(this);this.mediaElement=this.mediaElement.ma=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.I(function(n){if(n.j==1){c.logger.debug("start play video");c.N("html5_enable_ssap_autoplay_debug_logging")&&c.oa("ssap",{playv:a});var p=window.google_image_requests;p&&p.length>10&&(window.google_image_requests=p.slice(-10));if(g.T(c.playerState,128))return n.return();if(c.Ql.mL())return c.publish("signatureexpired"),n.return();c.mediaElement&&vW(c.Wb());JZa(c);(g.T(c.playerState,64)||a)&&c.Fc(cH(c.playerState,
8));return c.Rs.finished&&c.mediaElement?c.Tf||!c.oH?n.Ga(2):g.G(n,c.oH,3):n.return()}if(n.j!=2&&g.T(c.playerState,128))return n.return();if(!c.videoData.C)return c.videoData.isLivePlayback&&!g.kP(c.ea.G,!0)?(d="html5.unsupportedlive",e=2):(d=c.videoData.Si()?"fmt.unplayable":"fmt.noneavailable",e=1),g.fx(Error("selectableFormats")),c.vg(d,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),n.return();if(c.Bi()&&c.videoData.C.j)return c.logger.debug("rebuild playbackData for airplay"),
n.return(YW(c));if(JW(c))p=c.Sc,hR(p.videoData)?!p.isAtLiveHead(p.getCurrentTime())&&p.Aq()&&p.ma.seekTo(Infinity,{bd:"seektimeline_peggedToLive",seekSource:34}):g.jR(p.videoData)&&p.getCurrentTime()<p.Zc()&&p.ma.seekTo(p.Zc(),{bd:"seektimeline_outOfWindow"});else if(hR(c.videoData)){if(f=c.getCurrentTime()<c.Zc()-15,h=g.BR(c.videoData)&&c.playerState.isPaused(),l=g.T(c.playerState,1024),p=c.Sc,p.videoData.Yb()&&XMa(p.videoData)||l||!f&&!h||(h?(c.logger.debug("seek to head for live because of live-only"),
c.seekTo(Infinity,{bd:"videoplayer_unpauseLiveOnly",seekSource:102})):(c.logger.debug("seek to min seekable for live because of out of window"),c.seekTo(c.Zc(),{bd:"videoplayer_outOfWindow",seekSource:102}))),!c.isAtLiveHead(void 0,!0)&&c.Aq()&&(c.logger.debug("seek to head for live because pegged to live"),m={bd:"videoplayer_peggedToLive",seekSource:34},c.seekTo(Infinity,m)),g.T(c.playerState,256)&&c.videoData.Ba&&c.Sc.qG())return c.Fc(JH(c.playerState,8,4)),n.return()}else g.jR(c.videoData)&&c.getCurrentTime()<
c.Zc()-0&&c.seekTo(c.Zc(),{bd:"videoplayer_outOfWindow"});g.T(c.playerState,4)&&g.T(c.playerState,16)&&c.Fc(JH(c.playerState,9,4));if(UW(c,b))return m_a(c),n.return();l_a(c);g.va(n)})};
g.k.vp=function(a){this.logger.debug("reset media source");a&&this.Hd(new VF("qoe.restart",a));this.Fc(cH(this.playerState,2048));fX(this);a=this.videoData.j&&yM(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.va&&RUa(this.va),OV(this)):(UW(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.k.nu=function(){if(!this.Tf)return[];var a=KWa(this.al,this.Tf,this.Bx());return this.Tf.j.nu(a)};
g.k.FF=function(){if(!this.Tf)return[];var a=KWa(this.al,this.Tf,this.Bx());return this.Tf.j.FF(a)};
g.k.Bx=function(){var a=this.Je?this.Je.Bx():kMa(this.videoData)&&this.videoData.j&&yM(this.videoData.j)?this.videoData.El?VQ:iWa:VQ;this.TT&&(a=a.compose(Peb));return a};
g.k.tK=function(){var a=this.eg(),b=this.Ld.wd().videoId;return this.Ld.Zu.tK(a)||this.Ld.Zu.tK(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?rM(this.videoData.kD):qM[XL()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.getUserAudio51Preference()!==a&&(this.oa("toggle51",{pref:a}),g.Zs("yt-player-audio51",a,b?31536E3:2592E3),ZV(this))};
g.k.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.oa("proxima",{pref:a});g.Zs("yt-player-proxima-pref",a,31536E3);b!==a&&(a=this.Sc,a.ib=!0,a.ma.seekTo(Infinity,{bd:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return(a=YL())!=null?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.DI=function(){this.videoData.videoId?this.Ld.DI(this.videoData):this.oa("piavid",{})};
g.k.getAvailableAudioTracks=function(){return g.jR(this.videoData)&&this.wb?B7a(this.wb).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(PZa(this)){var a=RZa(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.PG=function(){if(cR(this.videoData)&&!this.videoData.Yb()&&this.videoData.N("html5_trigger_loader_when_idle_network")){var a;(a=this.va)!=null&&a.xe()}};
g.k.AA=function(a){a=a===void 0?!1:a;if(this.va){var b=this.va,c=b.AA;var d=this.videoData;d=d.N("html5_ssdai_use_post_for_media")&&d.enableServerStitchedDai?!1:iR(d)&&d.Mf&&!d.isAd();c.call(b,d,a)}};
g.k.Xr=function(){return this.Ra};
g.k.Py=function(a){this.logger.debug("onNeedKeyInfo");this.gC.set(a.initData,a);this.Je&&(this.Je.Py(a),this.N("html5_eme_loader_sync")||this.gC.remove(a.initData))};
g.k.dT=function(a){this.videoData.lD=g.oM("auto",a,!1,"u");TW(this)};
g.k.Oy=function(a){var b=a.reason,c=a.j.info,d=a.token,e=a.videoId,f=this.Wb(e),h=g.jR(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.ea.experiments.fb("html5_refactor_sabr_audio_format_selection_logging")?this.GE=new HWa(h,c,b,"",d,e):f.SB(new HWa(h,c,b,"",d));this.publish("internalaudioformatchange",h,!l&&m)}this.Sc.Oy(a.j.index)};
g.k.iM=function(a){this.publish("localmediachange",a)};
g.k.Bp=function(a){a=a===void 0?{}:a;var b;(b=this.va)==null||b.Bp(this.ea,lMa(this.videoData),a)};
g.k.mL=function(){return this.Ql.mL()};
g.k.handleError=function(a){this.Ql.handleError(a)};
g.k.cK=function(){return this.Ql.cK()};
g.k.Xu=function(a){this.Sc.Xu(a)};
g.k.pauseVideo=function(a){a=a===void 0?!1:a;if((g.T(this.playerState,64)||g.T(this.playerState,2))&&!a)if(g.T(this.playerState,8))this.Fc(JH(this.playerState,4,8));else if(this.oG())UW(this);else return;g.T(this.playerState,128)||(a?this.Fc(cH(this.playerState,256)):this.Fc(JH(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.BR(this.videoData)&&this.va&&eX(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.va&&(eX(this,!1),this.va.dj())};
g.k.tp=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;if(QG(this)&&b){var c;(c=this.mediaElement)==null||c.tp()}else{var d;(d=this.mediaElement)==null||d.stopVideo()}hX(this);$W(this);g.T(this.playerState,128)||(a?this.Fc(dH(dH(cH(this.playerState,4),8),16)):this.Fc(bH(this.playerState)));this.videoData.videoId&&this.ea.La.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=b===void 0?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
g.T(this.playerState,2)&&UW(this);b.Opa&&this.Fc(cH(this.playerState,2048));b.seekSource!==58&&b.seekSource!==60||!this.N("html5_update_vss_during_gapless_seeking")||fYa(this.Wb(),b.seekSource);this.Sc.seekTo(a,b);this.ph.sync()};
g.k.WS=function(a){a_a(this,a)};
g.k.VS=function(){this.publish("SEEK_COMPLETE")};
g.k.lS=function(){this.publish("onAbnormalityDetected")};
g.k.getCurrentTime=function(){return this.Sc.getCurrentTime()};
g.k.Fx=function(){return this.Sc.Fx()};
g.k.xg=function(){return this.Sc.xg()};
g.k.pK=function(a){return this.wb&&(a=a||this.wb.Ul())?F_(this.wb,a):this.xg()};
g.k.Jo=function(){return this.Sc.Jo()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Mc())};
g.k.RA=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.RA());return a>=0?a:this.getCurrentTime()};
g.k.kf=function(){var a;return((a=this.videoData.j)==null?0:a.kf)?this.videoData.j.kf(this.getCurrentTime()-this.Mc()):this.mediaElement&&(a=this.mediaElement.hJ())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(a){return g.jR(this.videoData)&&this.wb?a?A7a(this.wb,a):DV(this.wb):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Mc():this.ge()?this.ge():0};
g.k.UF=function(){var a=new mYa;if(this.va){var b=this.ea.schedule,c=this.ea.Xb();c=c===void 0?!1:c;a.zt=b.Ba;a.Wv=b.Va;a.bandwidthEstimate=BP(b);if(c){c=(b.U.rh()*1E3).toFixed();var d=(b.Fa.rh()*1E3).toFixed(),e=yP(b).toFixed(2),f=((b.L.rh()||0)*1E9).toFixed(2),h=b.C.rh().toFixed(0),l=b.Ma.rh().toFixed(0),m=b.W.percentile(.5).toFixed(2),n=b.W.percentile(.92).toFixed(2),p=b.W.percentile(.96).toFixed(2),q=b.W.percentile(.98).toFixed(2);b.j?b.j.reset():b.j=new rP;b.j.add(b.Ea);b.j.add(b.interruptions.length);
for(var r=0,t=b.interruptions.length-1;t>=0;t--){var u=b.interruptions[t];b.j.add(u-r);r=u}r=0;for(t=b.B.length-1;t>=0;t--){u=b.B[t];var y=u.stamp/36E5;b.j.add(y-r);r=y;b.j.add(u.net/1E3);b.j.add(u.max)}b=b.j.Hi();a.j={ttr:c,ttm:d,d:e,st:f,bw:h,abw:l,v50:m,v92:n,v96:p,v98:q,"int":b}}rVa(this.va,a)}else this.mediaElement&&(a.ax=XG(this.mediaElement));a.zt=this.zt;a.Wv=this.Wv;a.C=this.isAtLiveHead()&&this.isPlaying()?wZa(this):NaN;return a};
g.k.FH=function(a,b){this.Wv+=a;this.zt+=b};
g.k.Cx=function(){return this.mediaElement?g.BR(this.videoData)?1:CR(this.videoData)?this.isAtLiveHead()||this.Aq()?1:this.Sc.Cx():this.mediaElement.Cx():0};
g.k.wc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.Wb().wc());this.mediaElement&&(Object.assign(b,this.mediaElement.wc()),Object.assign(b,this.YF()));this.va&&Object.assign(b,this.va.wc());this.Je&&(b.drm=JSON.stringify(this.Je.wc()));b.state=this.playerState.state.toString(16);g.T(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Yg));this.No()&&(b.prerolls=this.Pq.join(","));this.videoData.Dd&&(b.ismb=this.videoData.Dd);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.Ld.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
DO(this.videoData.j)&&(b.segduration=DO(this.videoData.j)),a=this.Sc,b.lat=a.L?BYa(a.L.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.dk.toFixed(3);if(a=g.cX(this))b.optimal_format=a.video.qualityLabel;b.user_qual=XL();b.release_version="youtube.player.web_20241113_01_RC00";g.jR(this.videoData)&&this.wb&&(b.ssap=hV(this.wb))}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.cA([a])};
g.k.removeCueRange=function(a){this.ph.ql([a])};
g.k.tF=function(a,b){return this.ph.tF(a,b)};
g.k.cA=function(a,b){this.ph.hf(a,b)};
g.k.IH=function(a){this.ph.ql(a)};
g.k.Nj=function(){return this.ph.Nj()||[]};
g.k.Bi=function(){return this.visibility.Bi()};
g.k.Ov=function(){this.mediaElement&&this.mediaElement.Ov()};
g.k.zda=function(){ZW(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.pM=function(a){var b=a.target.xi();if(this.mediaElement&&this.mediaElement.xi()&&this.mediaElement.xi()===b){t_a(this,a.type);switch(a.type){case "error":var c=ZG(this.mediaElement)||"",d=this.mediaElement.dg();if(c==="capability.changed"){this.N("html5_restart_on_capability_change")?(this.oa("capchg",{msg:d}),OV(this,!0)):YW(this);return}if(this.mediaElement.hasError()&&(AWa(this.Ql,c,{msg:d})||g.jR(this.videoData)&&this.wb&&(d=this.playerState.Yg,this.wb.handleError(c,d==null?void 0:d.EA))))return;
if(this.isBackground()&&this.mediaElement.Th()===4){this.tp();aX(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Ra||c>0)&&c!==1&&this.Zq(c);break;case "ratechange":this.va&&this.va.setPlaybackRate(this.mediaElement.getPlaybackRate());vYa(this.ph);this.Wb().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":v_a(this);this.publish("onLoadedMetadata");f_a(this);c=this.kf();this.videoData.Gz&&(this.videoData.Gz=c);break;
case "loadstart":f_a(this);break;case "progress":case "suspend":this.Uc();this.publish("onLoadProgress",this,this.Cx());break;case "playing":this.Lb.Vv("plev");this.aU&&!JW(this)&&(this.aU=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{bd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.Jl()===0;if(c&&(!this.XL||d))return;this.XL=this.XL||!!this.mediaElement.getCurrentTime();
e_a(this);this.Uc();if(!this.mediaElement||this.mediaElement.xi()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.Gx().length>0&&this.mediaElement.Rh().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.va)return;this.N("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.Jl()>2||!this.mediaElement.isSeeking()&&CG(this.mediaElement.Rh(),this.mediaElement.getCurrentTime()))&&
(c=this.mediaElement.wc(),c.bh=XG(this.mediaElement).toFixed(3),this.oa("uwe",c));g.jR(this.videoData)&&this.wb&&u7a(this.wb,this.mediaElement.getCurrentTime());break;case "resize":v_a(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.LX&&g.T(this.playerState,8)&&!g.T(this.playerState,1024)&&this.getCurrentTime()===0&&g.Nt){aX(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.xi()===
b){dZa(this.Sc,a,this.wb||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.NE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.jR(this.videoData)&&this.wb?DV(this.wb):void 0;if(!g.T(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.T(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.T(b,
4)&&!yW(d,l);if(m||f&&l)e.zK()>0&&e.xi()&&(h=14);else switch(a.type){case "error":ZG(e)&&(h|=128);break;case "pause":g.T(b,256)?(h^=256)||(h=64):g.T(b,32)||g.T(b,2)||g.T(b,4)||(h=4,g.T(b,1)&&g.T(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,aH(d,e,!0)):yW(d,e.getCurrentTime())&&(h&=-2);g.T(b,1)&&aH(d,e)&&(h|=1);break;case "seeking":h|=16;g.T(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;aH(d,e,!0);break;case "waiting":g.T(b,2)||(h|=1);aH(d,e);break;case "timeupdate":l=g.T(b,16),f=
g.T(b,4),(g.T(b,8)||l)&&!f&&yW(d,e.getCurrentTime())&&(h=8),aH(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=ZG(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.wc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.dg())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.AY[f]||"",YP:f,PM:UF(m),EA:l,cpn:b.Yg?b.Yg.cpn:""}):h=null,h&&(h.cpn=c));b=bH(b,d,h)}!g.T(this.playerState,1)&&g.T(b,1)&&r_a(this,"evt"+a.type);this.Fc(b)}}};
g.k.Yaa=function(a){a=a.j.availability==="available";a!==this.kG&&(this.kG=a,this.publish("airplayavailabilitychange"))};
g.k.Zaa=function(){var a=(0,g.Vt)(),b=this.mediaElement.Bi();this.oa("airplay",{ia:b});!b&&!isNaN(this.qL)&&a-this.qL<2E3||(this.qL=a,b!==this.Bi()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Sf()),this.oa("airplay",{rbld:b}),ZV(this)),this.publish("airplayactivechange"))};
g.k.ZF=function(a){if(this.va){var b=this.va,c=b.C,d=b.getCurrentTime(),e=Date.now()-c.Z;c.Z=NaN;c.oa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.U)&&c.B!==3&&KQa(c.va,d,c.U,c.G);c.policy.G?c.C=NaN:c.D=NaN;iU(c,4,c.B===3?"adfps":"adf");EV(b)}};
g.k.Uc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){WYa(this.Sc,this.isPlaying());var c=this.getCurrentTime();!this.va||g.T(this.playerState,4)&&g.BR(this.videoData)||cR(this.videoData)&&g.T(this.playerState,32)||tVa(this.va,c);this.N("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&j_a(this,c,this.videoData.lengthSeconds);c>5&&(this.Sc.D=c);var d=g.ut();d?g.jp.Dk(this.Yy):g.Jr(this.Yy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||PR(this.videoData))&&
!g.T(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.T(b.playerState,128)){b.ea.Xb()&&t_a(b,"pfx");var h=b.getCurrentTime();b.N("html5_buffer_underrun_transition_fix")&&(h-=b.Mc());var l=XG(b.mediaElement),m=g.T(b.playerState,8),n=yW(b.NE,h),p=aya(b.NE,h,(0,g.Vt)(),l);m&&n?b.Fc(dH(b.playerState,1)):m&&p?(m=b.getDuration(),n=hR(b.videoData),m&&Math.abs(m-h)<1.1?(b.oa("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.pu()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{bd:"videoplayer_loop",
seekSource:37})):NW(b)):(b.playerState.isBuffering()||r_a(b,"progress_fix"),b.Fc(cH(b.playerState,1)))):(m&&!n&&!p&&h>0&&(m=(Date.now()-b.yG)/1E3,n=b.getDuration(),h>n-1&&b.oa("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&XG(b.mediaElement)>5&&b.Fc(dH(b.playerState,1)));b.Uc()}};
this.mediaElement.Gx().length===0?this.Yy=d?g.jp.aj(f,100):g.Hr(f,100):this.Yy=d?g.jp.aj(f,500):g.Hr(f,500)}this.videoData.Oh=c;this.wb&&E_(this.wb);!a&&this.isPlaying()&&k_a(this);VWa(this.al,this.Tf,this.Le(),this.isBackground())&&TW(this);this.publish("progresssync",this,a);e&&PR(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.k.f$=function(){this.vg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.LF=function(){return this.Wb().LF()};
g.k.kQ=function(){return this.va?this.va.kQ():BP(this.ea.schedule,!0)};
g.k.Fc=function(a){if(!g.MH(this.playerState,a)){this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.Ny(a,this.playerState);this.playerState=a;u_a(this);var c=!this.GM.length;this.GM.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.Gy.state===8&&!d;g.Py(b,1)&&d&&g.T(this.playerState,8)&&!g.T(this.playerState,64)&&this.va&&(QUa(this.va),this.mediaElement&&XG(this.mediaElement)>=5&&TWa(this.al,this.Tf)&&TW(this));(d=g.KD(this.ea.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.T(a,1)&&(g.T(a,8)||g.T(a,16))?this.GO.start(d):this.GO.stop();(Oy(b,8)<0||g.Py(b,
1024))&&this.vy.stop();!g.Py(b,8)||this.videoData.Ba||g.T(b.state,1024)||this.vy.start();g.T(b.state,8)&&Oy(b,16)<0&&!g.T(b.state,32)&&!g.T(b.state,2)&&this.playVideo();g.T(b.state,2)&&CR(this.videoData)&&(this.Zq(this.getCurrentTime()),this.Uc(!0));g.Py(b,2)&&(this.gN(!0),this.ea.Xb()&&this.N("html5_sabr_parse_live_metadata_playback_boundaries")&&cR(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.Bq,cminst:""+(this.videoData.j.Zc()+this.Mc()),maxst:""+this.videoData.j.yk,hts:""+
this.videoData.j.ra,cmaxst:""+(this.videoData.j.ge()+this.Mc())},this.oa("sabrSeekableBoundaries",d)));g.Py(b,128)&&this.tp();this.videoData.j&&this.videoData.isLivePlayback&&!this.V3&&(Oy(b,8)<0?qJa(this.videoData.j):g.Py(b,8)&&this.videoData.j.resume());UYa(this.Sc,b);gYa(this.Wb(),b);if(c&&!this.Ja())try{for(var e=g.x(this.GM),f=e.next();!f.done;f=e.next()){var h=f.value;wYa(this.ph,h);this.publish("statechange",h)}}finally{this.GM.length=0}}};
g.k.SS=function(){this.Lb.tick("qoes")};
g.k.eQ=function(){this.Sc.eQ()};
g.k.hM=function(a,b,c,d){a:{var e=this.Ql;d=d===void 0?"LICENSE":d;c=c.substring(0,256);var f=WF(b);a==="drm.keyerror"&&this.Je&&this.Je.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())GWa(e,a);else{if(e.ma.vg(a,b,d,c),xWa(e,{detail:c}))break a}else e.Hd(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.oa("retrydrm",{sessionLimitExhausted:1}),e.D++,q_a(e.ma))}};
g.k.Pba=function(){var a=this,b=g.KD(this.ea.experiments,"html5_license_constraint_delay"),c=ts();b&&c?(b=new g.qp(function(){bX(a);ZW(a)},b),g.P(this,b),b.start()):(bX(this),ZW(this))};
g.k.YG=function(a){this.publish("heartbeatparams",a)};
g.k.Kq=function(a){this.oa("keystatuses",YVa(a));var b="auto",c=!1;this.videoData.B&&(b=this.videoData.B.video.quality,c=this.videoData.B.video.isHdr());if(this.N("html5_drm_check_all_key_error_states")){var d=ZVa(b,c);d=UV(a)?$Va(a,d):a.D.includes(d)}else{a:{b=ZVa(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.N("html5_enable_vp9_fairplay")){if(c)if(a.W){var f;if((f=this.Je)==null?0:TO(f.j))if((c=this.Je)==
null)c=0;else{b=f=void 0;e=g.x(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=aWa(h,"SD")),b||(b=aWa(h,"AUDIO"));c.Cj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.oa("drm",{dshdr:1});GWa(this.Ql);return}}else{this.videoData.tE||(this.videoData.tE=!0,this.oa("drm",{dphdr:1}),OV(this,!0));return}var l;if((l=this.Je)==null?0:TO(l.j))return}else if(l=a.W&&d,c&&!l){GWa(this.Ql);return}d||$Va(a,"AUDIO")&&$Va(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=YVa(a),this.TT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.N("html5_report_fatal_drm_restricted_error_killswitch")||this.vg("drm.keyerror",2,void 0,"info."+a)):(this.TT=!0,this.Hd(new VF("qoe.restart",Object.assign({},{retrydrm:1},a))),TW(this),q_a(this)))};
g.k.Rba=function(){if(!this.videoData.Ba&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.Jl()>0&&XG(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Fc(cH(this.playerState,1)),r_a(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");u_a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!kMa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].le)||this.Je),mfmtinfo:!this.videoData.B,prerolls:this.No()?this.Pq.join(","):
"0"};if(this.Je){b=this.Je;if(b.B.size<=0){var c="ns;";b.Z||(c+="nr;");b=c+="ql."+b.C.length}else b=YVa(b.B.values().next().value),b=UF(b);a.drmp=b}var d;Object.assign(a,((d=this.va)==null?void 0:d.wc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.wc())||{});this.Wb().Hd("qoe.start15s",UF(a));this.publish("loadsofttimeout")}};
g.k.Zq=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,ZW(this))};
g.k.gN=function(a,b){var c=this;a=a===void 0?!1:a;if(!this.tJ)if(xA("att_s","player_att")||zA("att_s",void 0,"player_att"),this.N("use_rta_for_player"))(function(){var e,f,h,l;return g.I(function(m){switch(m.j){case 1:if(!(e=a)){m.Ga(2);break}return g.G(m,g.Vua(),3);case 3:e=!m.B;case 2:if(e)return m.return();g.wa(m,4);f=kYa(c.Wb());if(!f)throw Error();h={};return g.G(m,g.Uua((h.cpn=c.videoData.clientPlaybackNonce,h.encryptedVideoId=c.videoData.videoId||"",h),3E4),6);case 6:l=m.B;if(c.tJ)throw Error();
if(!l.challenge)throw g.fx(Error("Not sending attestation ping; no attestation challenge string")),Error();c.tJ=!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("&"));zA("att_f",
void 0,"player_att");g.xa(m,0);break;case 4:g.ya(m),zA("att_e",void 0,"player_att"),g.va(m)}})})().then(function(){b==null||b()});
else{var d=new g.PCa(this.videoData);if("c1a"in d.Rm&&!g.SL.isInitialized()){zA("att_wb",void 0,"player_att");this.TO===2&&Math.random()<.01&&g.fx(Error("Botguard not available after 2 attempts"));if(a)return;if(this.TO<5){g.rp(this.VO);this.TO++;return}}(d=g.QCa(d))?(zA("att_f",void 0,"player_att"),jYa(this.Wb(),d),this.tJ=!0):zA("att_e",void 0,"player_att")}};
g.k.ge=function(a){return this.Sc.ge(a===void 0?!1:a)};
g.k.Zc=function(){return this.Sc.Zc()};
g.k.Mc=function(){return this.Sc?this.Sc.Mc():0};
g.k.getStreamTimeOffset=function(){return this.Sc?this.Sc.getStreamTimeOffset():0};
g.k.yu=function(){var a=0;this.ea.N("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Mc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&LWa(this.al,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,TW(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=AZa(this);b&&b.videoHeight>0&&(a=fG(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.Bt=function(){this.Wb().Bt()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.Wb();c.j?(c=pW(c.j,"engage"),c.ra=a,c.send(b)):b&&b()};
g.k.Ri=function(a){return this.Wb().Ri(a)};
g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return hR(this.videoData)&&(this.HZ||b)?this.Sc.isAtLiveHead(a):!1};
g.k.Wr=function(){var a=this.ge(),b=this.getCurrentTime(),c;(c=!hR(this.videoData))||(c=this.Sc,c=!(c.j&&c.j.C));return c||this.Aq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.gp=ba(23);g.k.uv=ba(41);g.k.qp=function(a){this.Wb().qp(a)};
g.k.ez=function(a){this.Wb().ez(a)};
g.k.kz=function(a){this.Wb().kz(a)};
g.k.tj=ba(27);g.k.jl=ba(31);g.k.EH=function(a){this.Wb().EH(a)};
g.k.YF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&gQ(this.ea)&&this.mediaElement.setLoop(a);this.va&&this.N("html5_loop_skip_set_end_of_stream")&&(a?this.va.policy.Za=!0:RUa(this.va))};
g.k.pu=function(){return this.mediaElement&&gQ(this.ea)?this.mediaElement.pu():this.loop};
g.k.cT=function(a){this.oa("timestamp",{o:a.toString()});this.Sc.cT(a)};
g.k.Nd=function(a){this.Lb.tick(a)};
g.k.Bg=function(a){return this.Lb.Bg(a)};
g.k.Vv=function(a){this.Lb.Vv(a)};
g.k.oa=function(a,b,c){c=c===void 0?!1:c;this.Wb().oa(a,b,c)};
g.k.Fv=function(a,b,c){c=c===void 0?!1:c;this.Wb().oa(a,b,c)};
g.k.Hd=function(a){this.Wb().Hd(a.errorCode,UF(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")||a==="qoe.restart"){a=this.va?$Ra(this.va.videoTrack):{};var b,c;this.oa("lasoe",Object.assign(this.va?$Ra(this.va.audioTrack):{},(b=this.Ra)==null?void 0:(c=b.j)==null?void 0:c.xK()));var d,e;this.oa("lvsoe",Object.assign(a,(d=this.Ra)==null?void 0:(e=d.B)==null?void 0:e.xK()))}};
g.k.DH=function(a,b,c){this.Wb().DH(a,b,c)};
g.k.QP=function(a){this.videoData.nV=!0;this.Hd(new VF("sabr.fallback",a));OV(this,!0)};
g.k.Dx=function(){return g.KK(this.Wb().provider)};
g.k.getPlayerSize=function(){return this.iI.getPlayerSize()};
g.k.zi=function(){return this.iI.zi()};
g.k.Sh=function(){return this.Lb};
g.k.gs=function(){return this.Ld.gs()};
g.k.getVolume=function(){return this.Ld.getVolume()};
g.k.xq=function(){return this.Ld.xq()};
g.k.isMuted=function(){return this.Ld.isMuted()};
g.k.IA=function(){return this.Ld.IA()};
g.k.N=function(a){return this.ea.N(a)};
g.k.kt=function(){var a=this.getCurrentTime(),b=a-this.Mc();var c=this.mediaElement?EG(this.mediaElement.Rh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.N("html5_ssdai_disable_seek_to_skip")&&((d=this.va)==null?0:d.TH(b,this.ge())))return this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return((e=this.va)==null?0:e.kt(b,c))?(this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),cR(this.videoData)&&this.va.seek(b+c,{seekSource:89,bd:"videoplayer_skipServerStitchedAd"}),fZa(this.Sc,
a),!0):!1};
g.k.Xb=function(){return this.ea.Xb()};
g.k.vu=function(){this.Ld.fV();return this.ea.ag||""};
g.k.CK=function(){if(this.videoData.videoId)return this.videoData.mE};
g.k.eg=function(){return this.videoData.videoId};
g.k.VA=function(){return this.Ld.Sy};
g.k.Iu=function(){return this.Ld.Iu()};
g.k.vC=function(a,b){this.Sc.vC(a,b)};
g.k.SE=function(){this.Sc.SE()};
g.k.YS=function(a,b){this.Ld.YS(a,b)};
g.k.GT=function(a,b){var c;(c=this.va)==null||c.GT(a,b)};
g.k.eP=function(){var a=this.Xr();return!!a&&a.eP()};
g.k.If=function(){return this.wb};
g.k.bI=function(a,b){this.Wb().bI(a,b)};
g.k.RF=function(){return this.Wb().RF()};
g.k.Hx=function(){return this.videoData.fE};
g.k.xn=function(){return this.Ld.xn()};
g.k.pG=function(){return this.Ld.pG(this)};g.w(y_a,BS);g.w(z_a,BS);g.k=z_a.prototype;g.k.seekToChapterWithAnimation=function(a){var b=this;if(g.bS(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.vl;if(d&&a<d.length){d=g.x(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){A_a(this,e.startTime,e.title);return}}this.N("web_key_moments_markers")&&(c=c.nL)&&a<c.length&&c.forEach(function(f,h){h===a&&A_a(b,f.timeRangeStartMillis,f.title)})}};
g.k.seekToTimeWithAnimation=function(a,b){g.bS(this.api)&&A_a(this,a,b)};
g.k.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&a.getWatchNextResponse()==null&&(ZQ(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};
g.k.changeMarkerVisibility=function(a,b,c){var d=this.api.getVideoData();if(d){var e=!1;if(a)for(a=g.x(b),b=a.next();!b.done;b=a.next()){b=b.value;var f=d.ib;if(f&&!f.includes(b))switch(c){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":C_a(b,d)||(e=!0,f=void 0,(f=d.ib)==null||f.push(b));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":f.length===0&&(e=!0,f=void 0,(f=d.ib)==null||f.push(b));break;default:e=!0,f=void 0,(f=d.ib)==null||f.push(b)}}else for(c=
g.x(b),a=c.next();!a.done;a=c.next())a=a.value,d.visibleOnLoadKeys.includes(a)||g.ac(d.ib,a)&&(e=!0);e&&this.api.publish("updatemarkervisibility")}};
g.k.isSameMarkerTypeVisible=function(a){var b=this.api.getVideoData();return b?C_a(a,b):!1};g.w(F_a,BS);F_a.prototype.xa=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.x("nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ")),b=a.next();!b.done;b=a.next())kX(b.value,null);BS.prototype.xa.call(this)};g.w(lX,BS);lX.prototype.D=function(a){return a.compositeEmbargo!==void 0};
lX.prototype.xa=function(){BS.prototype.xa.call(this);this.B.clear()};g.w(N_a,BS);g.k=N_a.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.I(function(l){return l.j==1?(f=sY(e.api.Bb()))?g.G(l,f.U1([a],b,c,d),3):l.Ga(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=sY(this.api.Bb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=sY(this.api.Bb());b&&b.nT(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.I(function(d){return(c=sY(b.api.Bb()))?d.return(c.QH(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=sY(this.api.Bb());return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.setUpPositionSyncInterval=function(a){var b=sY(this.api.Bb());b&&b.setUpPositionSyncInterval(a)};g.w(mX,BS);mX.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
mX.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.x(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=xG(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=g.qR(a);AM(e);d=[];e=g.x(e);for(f=e.next();!f.done;f=e.next())f=f.value,xM(a,f,this.api.V().G)===!0&&d.push(f);b=b.concat(O_a(d,!1,c))}a=this.api.FF();b=b.concat(O_a(a,!0,c));c=[];if(this.api.N("web_player_enable_premium_hbr_in_h5_api"))return b=Q_a(b),P_a(b),b;a={};b=g.x(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 Q2={},ffb=(Q2["internal-error"]=-1,Q2["non-recoverable-error"]=-2,Q2["api-disabled-by-application"]=-3,Q2["invalid-argument"]=-4,Q2["token-provider-invalid"]=-5,Q2);g.w(nX,BS);nX.prototype.DI=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){oX(c,"player_update");
b.handleError(c,a)})}catch(c){oX(c,"player_update_catch"),this.handleError(c,a)}}else this.B?U_a(this,a):this.api.oa("pf",{m:this.B?1:0,
p:this.j?1:0})};
nX.prototype.handleError=function(a,b){g.fx(a);if(this.api.N("html5_enable_d6de4_cold_start_and_error")){var c=0;a.mediaIntegrityErrorName?c||(c=ffb[a.mediaIntegrityErrorName]):a.code&&(c=a.code());b.mE={Nda:{code:c}}}};g.w(pX,g.S);pX.prototype.Ta=function(a){a=a?"Exit picture-in-picture":"Picture-in-picture";this.update({"data-title-no-tooltip":a,title:a});this.api.ri()};
pX.prototype.onClick=function(){this.api.togglePictureInPicture()};g.w(qX,BS);qX.prototype.createButton=function(){var a=this;this.button=new pX(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)};
qX.prototype.setDocumentPictureInPicture=function(a){this.api.jj().nz(a);a=this.api.mj();var b=X1a(this.api.Bb());b&&(a?b.load():b.unload());this.api.publish("documentpictureinpicturechange")};g.w(X_a,BS);g.w(tX,g.S);g.k=tX.prototype;g.k.TG=function(){};
g.k.qv=function(){};
g.k.rz=function(){return!0};
g.k.ufa=function(){if(this.expanded){this.eb.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.eb.hide();this.uc=34+a;g.Cp(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.uc)+"px";this.Za.start()};
g.k.W8=function(){this.badge.element.style.width=(this.expanded?this.uc:34)+"px";this.ib.start()};
g.k.FL=function(){this.D&&this.K.logVisibility(this.badge.element,this.rz());this.G&&this.K.logVisibility(this.dismissButton.element,this.rz()&&this.oN())};
g.k.eM=function(a){this.Ba=a;sX(this);rX(this);this.Am()};
g.k.ega=function(){g.Cp(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.oN=function(){return this.ra||this.Ba||!this.Z};
g.k.Am=function(){this.rz()?this.qa.show():this.qa.hide();this.FL()};
g.k.zW=function(){this.enabled=!1;this.Am()};
g.k.zy=function(a){a?this.G&&this.K.logClick(this.dismissButton.element):this.D&&this.K.logClick(this.badge.element)};
g.k.dga=function(){this.Am()};
g.k.nba=function(a){this.Db=a===1;this.Am();g.Cp(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Hba=function(){g.Cp(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.K.isFullscreen());this.Am()};g.w(uX,g.Nx);uX.prototype.G0=function(){this.publish("size-change")};
uX.prototype.focus=function(){this.content.focus()};
uX.prototype.B0=function(){this.publish("back")};g.w(g.vX,uX);g.k=g.vX.prototype;g.k.Vc=function(a,b){if(b===void 0?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.ic(this.items,a,Z_a);if(b>=0)return;b=~b;g.gc(this.items,b,0,a);qh(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.NS,this);this.menuItems.publish("size-change")};
g.k.Kh=function(a){a.unsubscribe("size-change",this.NS,this);this.Ja()||(g.ac(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
g.k.NS=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.iq=function(){return this.items.length};g.w(g.xX,g.uS);g.k=g.xX.prototype;g.k.show=function(){g.uS.prototype.show.call(this);this.dD()};
g.k.hide=function(){g.uS.prototype.hide.call(this);this.j.length>1&&g.zX(this)};
g.k.dD=function(){b0a(this);this.Eb&&($_a(this),g.Lm(this.element,this.size))};
g.k.rj=function(){var a=this.j.pop();a0a(this,a,this.j[this.j.length-1],!0)};
g.k.v6=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Pb();a.preventDefault();break;case 37:this.j.length>1&&this.rj();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.uS.prototype.xa.call(this);this.G&&this.G.dispose();this.L&&this.L.dispose()};g.w(AX,g.xX);AX.prototype.open=function(a,b){this.initialize(a.items)&&this.md(b,!!b)};
AX.prototype.initialize=function(a){g.wX(this.We);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.x(a);for(var c=a.next();!c.done;c=a.next())this.Vc(c.value,b--);return!0};
AX.prototype.Vc=function(a,b){a.menuNavigationItemRenderer?e0a(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&f0a(this,a.menuServiceItemRenderer,b)};g.w(BX,tX);g.k=BX.prototype;g.k.TG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.zy(),this.onClickCommand&&this.K.gb("innertubeCommand",this.onClickCommand))};
g.k.qv=function(){this.enabled=!1;this.qa.hide()};
g.k.rz=function(){return!!this.j&&this.enabled};
g.k.onVideoDataChange=function(a,b){this.G2(b);if(this.j){this.I2();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,hx);var h;if(a=g.Q((h=this.j)==null?void 0:h.onOverflow,hx))this.W=g.Q(a,mdb);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.Va=(y=this.j)==null?void 0:y.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;h0a(this)}};
g.k.Fba=function(){this.isVisible=!0;h0a(this)};
g.k.Gba=function(){this.isVisible=!1;h0a(this)};
g.k.FL=function(){tX.prototype.FL.call(this);this.B&&this.K.logVisibility(this.banner.element,this.isVisible)};
g.k.zy=function(){tX.prototype.zy.call(this,!1);this.B&&this.K.logClick(this.banner.element)};
g.k.w6=function(a){this.L||(this.L=new AX(this.K),g.P(this,this.L));var b,c;if((b=this.W)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.L.open(this.W.menu.menuRenderer,a.target),a.preventDefault()};
g.k.G2=function(){};
g.k.I2=function(){};
g.k.xa=function(){this.K.df("suggested_action_view_model");tX.prototype.xa.call(this)};g.w(CX,BX);
CX.prototype.G2=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,Adb);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.Q((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,jdb)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null?
0:l.trackingParams)){var m,n;this.K.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)};
CX.prototype.I2=function(){var a=[],b,c=g.x(((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.BE(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.K.hf(a)};g.w(i0a,BS);g.w(o0a,BS);o0a.prototype.onVideoDataChange=function(a){var b;a==="newdata"&&(this.B||this.j&&((b=bM())==null?0:b.size))&&m0a(this);this.j&&a==="dataloaded"&&(a=k0a(this))&&(a=j0a(this,this.B||a))&&this.api.setAudioTrack(a,!0)};g.w(g.EX,g.xS);g.k=g.EX.prototype;g.k.open=function(){g.yX(this.Fb,this.B)};
g.k.Li=function(a){p0a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Ed(this.Kl(a)),this.C=a)};
g.k.Ll=function(a){g.wX(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?(g.wS(this.options[e],this.Kl(e,!0)),delete this.options[e]):f=this.jA(e,-d,h);b[e]=f;this.B.Vc(f,!0)}c||(this.C=null);a=g.x(Object.keys(this.options));for(c=a.next();!c.done;c=a.next())this.options[c.value].dispose();this.options=b};
g.k.jA=function(a,b,c,d){var e=this;c={J:"div",Ka:["ytp-menuitem",d?"ytp-menuitem-with-footer":""],Y:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},X:[{J:"div",Ka:["ytp-menuitem-label"],ya:"{{label}}"}]};d&&(d={J:"div",S:"ytp-menuitem-footer",X:[d]},c.X?c.X.push(d):c.X=[d]);b=new g.xS(c,b,this.Kl(a,!0));b.listen("click",function(){e.qO(a)});
return b};
g.k.enable=function(a){this.W?a||(this.W=!1,this.Wz(!1)):a&&(this.W=!0,this.Wz(!0))};
g.k.Wz=function(a){a?this.Fb.Vc(this):this.Fb.Kh(this)};
g.k.kh=function(a){this.publish("select",a)};
g.k.qO=function(a){this.kh(a)};
g.k.Kl=function(a){return a.toString()};
g.k.x6=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())};
g.k.xa=function(){this.W&&this.Fb.Kh(this);g.xS.prototype.xa.call(this);for(var a=g.x(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(q0a,g.EX);g.k=q0a.prototype;g.k.Ta=function(){var a=this.NA("Off");this.K.getPresentingPlayerType()!==2?(r0a(this),this.Li(this.G),this.j&&(this.G===a?this.j="":this.setSleepTimerTimeLeft(this.j)),this.L&&this.setVideoTimeLeft(this.L),this.enable(!0)):(this.Ll([]),this.enable(!1))};
g.k.kh=function(a){s0a(this,a);this.Fb.rj()};
g.k.NA=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"&&r0a(this)};
g.k.dda=function(a){this.K.logVisibility(this.element,a)};
g.k.onClick=function(){this.K.logClick(this.element)};
g.k.resetSleepTimerMenuSettings=function(){s0a(this,this.NA("Off"))};
g.k.setSleepTimerTimeLeft=function(a){this.j=a;this.Ed(a)};
g.k.setVideoTimeLeft=function(a){this.L=a;this.D.Ed(a)};g.w(FX,BS);FX.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
FX.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)};
FX.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.w(t0a,BS);g.w(g.HX,g.Fx);g.k=g.HX.prototype;g.k.T=function(a,b){this.D.T(this.W,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),IX(this),GX(this))};
g.k.Cy=function(a){IX(this);this.T(JX("move"),this.BW);this.T(JX("out"),this.OB);this.T("touchstart",this.sO);this.j&&this.T(JX("down"),this.rO);var b=a.target;a=new g.Ag(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.BW=function(a){var b=a.target;a=new g.Ag(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Bg(new g.Ag(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
g.k.OB=function(a){var b=new g.Ag(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.sh(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}IX(this);GX(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
g.k.Naa=function(a){this.Cy(a);this.rO(a)};
g.k.rO=function(a){if(typeof a.button!=="number"||a.button===0){IX(this);this.D.T(KX(a.target),JX("move"),this.Maa);this.D.T(KX(a.target),JX("up"),this.y6);var b=a.target;if(g.ih)this.T("dragstart",this.I8);else if(a.preventDefault(),(g.eQ||Cm)&&b)a:{for(var c=b;c;){if(Qea(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}KX(b).activeElement.blur()}this.C=!0;a=new g.Ag(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}};
g.k.I8=function(a){a.preventDefault()};
g.k.Maa=function(a){var b=a.target;b===KX(a.target)&&(b=null);a=new g.Ag(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)};
g.k.y6=function(a){IX(this);this.C=!1;var b=Rs(a),c=a.target;a=new g.Ag(a.pageX,a.pageY);b&&g.sh(this.target,b)?(this.T(JX("move"),this.BW),this.T(JX("out"),this.OB),this.T(JX("down"),this.rO),this.T("touchstart",this.sO),this.publish("dragend",a.x,a.y,c)):(GX(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
g.k.sO=function(a){var b=a.changedTouches[0];b&&(IX(this),this.Z||(this.T("touchmove",this.Ofa),this.T("touchend",this.DW),this.T("touchcancel",this.DW),this.L=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.Ofa=function(a){var b=u0a(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.DW=function(a){var b=u0a(this,a);if(b){IX(this);GX(this);this.B=!1;var c=a.target;this.j&&(this.U||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.ih&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");IX(this);g.Fx.prototype.xa.call(this)};
var v0a=!1;g.w(w0a,g.S);w0a.prototype.Ai=function(){g.Bm(this.element,"display","none");this.K.logVisibility(this.j,!1)};g.w(MX,BS);MX.prototype.ra=function(a,b){this.W=[a,b];this.j.subscribe("dragmove",this.L,this);this.j.subscribe("dragend",this.G,this);this.C||g.rp(this.delay)};
MX.prototype.Fa=function(){if(this.D){this.C=!0;this.Ea=this.api.getPlaybackRate();this.Ma=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.Bm(a.element,"display","");a.K.logVisibility(a.j,!0);this.api.setPlaybackRate(this.La);this.api.hideControls();this.api.playVideo();this.U&&(this.U.iB=!0);this.qa&&(this.qa.cL=!0)}};
MX.prototype.L=function(a,b){if(!this.C){a=[a,b];var c=this.W;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.Ba?this.W=a:NX(this)}};
MX.prototype.G=function(){NX(this)};g.w(y0a,BS);y0a.prototype.onVideoDataChange=function(a){a==="newdata"&&this.api.Bb().createSubtitlesModuleIfNeeded()};g.w(OX,g.Wh);OX.prototype.preventDefault=function(){g.Wh.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
OX.prototype.stopPropagation=function(){g.Wh.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.PX,VG);g.k=g.PX.prototype;g.k.Aw=function(){return!0};
g.k.isView=function(){return!1};
g.k.OT=function(){return!1};
g.k.Jb=function(){return this.j};
g.k.xi=function(){return this.j.src};
g.k.kN=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.WM=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.pu=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.yK=function(){return this.j.muted};
g.k.HC=function(a){cG();this.j.muted=a};
g.k.Gx=function(){return this.j.played||zG([],[])};
g.k.Rh=function(){try{var a=this.j.buffered}catch(b){}return a||zG([],[])};
g.k.WA=function(){return this.j.seekable||zG([],[])};
g.k.hJ=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.Jl=function(){return this.j.readyState};
g.k.zK=function(){return this.j.networkState};
g.k.Th=function(){return this.j.error?this.j.error.code:null};
g.k.dg=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.Bi=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Ov=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():bG()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.k.wu=function(){var a=this.j;return new g.Ag(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Mm(this.j)};
g.k.setSize=function(a){g.Lm(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){cG();this.j.volume=a};
g.k.WP=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.FE=ba(45);g.k.sI=ba(47);g.k.tI=ba(49);g.k.oA=ba(51);g.k.sF=function(){return Ls(this.j)};
g.k.Nt=function(a){g.yp(this.j,a)};
g.k.VF=function(a){return g.Dm(this.j,a)};
g.k.uR=function(){return g.sh(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.x(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);VG.prototype.xa.call(this)};
g.k.gU=function(a){this.j.disableRemotePlayback=a};g.w(QX,g.S);g.w(SX,g.S);SX.prototype.show=function(){g.S.prototype.show.call(this);this.Ta();this.Qa.N("html5_enable_moving_s4n_window")&&g.YD(this.Qa.V())&&this.W()};
SX.prototype.hide=function(){g.S.prototype.hide.call(this);this.delay.stop();this.D.stop()};
SX.prototype.Ta=function(){var a=(0,g.Vt)(),b=A0a(this.Qa);RX(this.j,b.bandwidth_samples);RX(this.L,b.network_activity_samples);RX(this.C,b.live_latency_samples);RX(this.B,b.buffer_health_samples);var c={};b=g.x(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.x(d.value);d=e.next().value;e=e.next().value;this.Z[d]!==e&&(c[d]=" "+String(e));this.Z[d]=e}this.update(c);a=(0,g.Vt)()-a>25?5E3:500;this.delay.start(a)};
SX.prototype.W=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.w(D0a,BS);g.w(TX,g.O);TX.prototype.j=function(){var a=(0,g.Vt)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(Op(gfb,a));a<1&&this.delay.start()};
var gfb=new Np(0,0,.4,0,.2,1,1,1),J0a=/[0-9.-]+|[^0-9.-]+/g;g.w(UX,g.S);UX.prototype.onClick=function(){var a=this.api.app;var b=a.N("web_log_theater_mode_visibility")?!a.Sk():!a.ER;a.Qa.gb("SIZE_CLICKED",b);this.api.logClick(this.element)};
UX.prototype.Ta=function(){g.Mx(this,this.api.CR()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Eb){var a=this.api.Sk();this.Sk!==a&&this.MC(a)}this.api.logVisibility(this.element,this.Eb)};
UX.prototype.MC=function(a){var b=a?{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}:{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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.Sk==null?this.updateValue("icon",b):I0a(this.transition,this.element,
b);this.Sk=a;b=g.iS(this.api,"Default view","t");var c=g.iS(this.api,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});this.api.ri()};g.w(K0a,BS);g.w(N0a,BS);g.k=N0a.prototype;g.k.onVideoDataChange=function(a){this.videoId=a.videoId;this.B=this.j=void 0;this.timelyActions=M0a(a);this.ql();(a=this.Nj())&&this.api.hf(a);O0a(this);this.clearTimeout()};
g.k.Ei=function(a){var b=a.Gy,c=a.state,d=c.seekSource;!g.T(b,16)&&g.T(c,16)?this.WS(d!=null?d:void 0):g.T(b,16)&&!g.T(c,16)&&this.VS();a=a.state;a=!a.isCued()&&!g.T(a,1024);g.Mx(this.C,a)};
g.k.ql=function(){this.api.df("timelyAction",1)};
g.k.Nj=function(){if(this.timelyActions){for(var a=[],b=g.x(this.timelyActions),c=b.next();!c.done;c=b.next())c=c.value,c=c.startTimeMilliseconds!=null&&c.endTimeMilliseconds!=null&&c.cueRangeId!=null?new g.BE(Number(c.startTimeMilliseconds),Number(c.endTimeMilliseconds),{id:c.cueRangeId,namespace:"timelyAction"}):void 0,c&&a.push(c);return a}};
g.k.onCueRangeEnter=function(a){var b=a.getId(),c=VX(this,b);c&&this.D[b]!==void 0&&(c.maxShowCount===void 0||(c==null?void 0:c.maxShowCount)>this.D[b])&&(this.j=a.getId(),Q0a(this))};
g.k.onCueRangeExit=function(a){var b=P0a(this,a.getId());b&&this.j===a.getId()&&this.api.gb("innertubeCommand",b);this.clearTimeout();this.j=void 0};
g.k.onTimeout=function(a){this.j!==void 0&&(a==null?void 0:a.cueRangeId)===this.j&&(a=P0a(this,this.j))&&this.api.gb("innertubeCommand",a)};
g.k.WS=function(a){this.B=a};
g.k.VS=function(){Q0a(this);this.B=void 0};
g.k.setTimeout=function(a){var b=this,c=Number(a==null?void 0:a.maxVisibleDurationMilliseconds);c&&(this.clearTimeout(),this.G=setTimeout(function(){b.onTimeout(a)},c))};
g.k.clearTimeout=function(){this.G&&clearTimeout(this.G);this.G=void 0};
g.k.xa=function(){this.timelyActions=this.B=this.j=this.videoId=void 0;this.D={};this.ql();this.clearTimeout();BS.prototype.xa.call(this)};g.w(T0a,BS);var R2={},b1a=(R2[1]="pot_ss",R2[2]="pot_sf",R2[3]="pot_se",R2[4]="pot_xs",R2[5]="pot_xf",R2[6]="pot_xe",R2);g.w(YX,BS);YX.prototype.xa=function(){this.D&&(g.Kr(this.D),this.D=void 0);BS.prototype.xa.call(this)};
YX.prototype.fV=function(){this.j&&!this.j.isReady()&&$X(this)};
YX.prototype.W=function(a,b,c){var d=this;if(V0a(a)){var e=c||"",f;if((f=this.j)==null?0:f.isReady())b=c1a(this,e),W0a(a,b);else{var h=new g.Cj;b.push(h.promise);this.G.promise.then(function(){var l=c1a(d,e);W0a(a,l);h.resolve()})}}};g.w(d1a,BS);g.w(aY,g.O);aY.prototype.j=function(){for(var a=g.x(g.Da.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
aY.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)};bY.prototype.qS=function(){this.B=(0,g.Vt)()};
bY.prototype.reset=function(){this.j=this.B=NaN};
bY.prototype.wS=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.L&&(c.cttAuthInfo={token:a.L,videoId:a.videoId});wA("seek",c);g.vA({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||uA("pl_ss",this.B,"seek");uA(b,(0,g.Vt)(),"seek")}this.reset()}};g.k=e1a.prototype;g.k.reset=function(){rA(this.timerName)};
g.k.tick=function(a,b){uA(a,b,this.timerName)};
g.k.Bg=function(a){return yA(a,this.timerName)};
g.k.Vv=function(a){cI(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.vA(a,this.timerName)};g.w(h1a,g.Fx);g.k=h1a.prototype;g.k.Xl=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.mq=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.uh=function(a){a=a||"hqdefault.jpg";var b=this.W[a];if(b||this.Ca.ra||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.C.length)return YP(this.Ca,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.Hr(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Wl=function(){return this.Ca.getVideoUrl(g.dY(this).videoId,this.getPlaylistId())};
g.k.xa=function(){this.j=null;g.lb(this.items);g.Fx.prototype.xa.call(this)};var eY=new Map;g.w(g.gY,g.Fx);g.k=g.gY.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.oi=function(){};
g.k.Nn=function(){return!0};
g.k.xa=function(){this.loaded&&this.unload();g.Fx.prototype.xa.call(this)};
g.k.wc=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.iY,g.O);g.k=g.iY.prototype;g.k.Tu=ba(54);g.k.CB=function(){};
g.k.At=function(){};
g.k.Ix=function(){return""};
g.k.yT=ba(55);g.k.xa=function(){this.D&&(this.D.reject(),this.D=null);this.At();g.O.prototype.xa.call(this)};g.w(g.jY,g.iY);g.jY.prototype.Tu=ba(53);g.jY.prototype.CB=function(a){if(this.audioTrack)for(var b=g.x(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.hY(this.j,c.value);s1a(this,a,this.videoData.videoId)};
g.jY.prototype.Ix=function(a,b){var c=a.qe(),d={fmt:b};if(b==="srv3"||b==="3"||b==="json3")g.is()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.vQ(a));this.C&&(d.xosf="1");Object.assign(d,this.Qa.V().j);return xr(c,d)};
g.jY.prototype.At=function(){this.B&&this.B.abort()};g.hfb=new Map;g.w(g.kY,g.iY);g.kY.prototype.Tu=ba(52);
g.kY.prototype.CB=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.ZZ&&(d.asrs=1);c=xr(c,d);this.At();this.B=g.Rr(c,{format:"RAW",onSuccess:function(e){b.B=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.hY(b.j,new g.sQ({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.L[m.languageCode]=m.languageName,b.G.push(m)}s1a(b,
a,b.videoId)},
withCredentials:!0})};
g.kY.prototype.Ix=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};var d=this.Qa.V();d.N("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.vQ(a));Object.assign(b,d.j);return c=xr(c,b)};
g.kY.prototype.At=function(){this.B&&this.B.abort()};v1a.prototype.run=function(){for(var a=g.Da.apply(0,arguments),b=this,c=yL("empty"),d=[],e={hB:0};e.hB<this.B.length&&c.currentState!=="done";e={Eo:void 0,hB:e.hB},e.hB++)e.Eo=this.B[e.hB],e.Eo.condition.apply(e.Eo,g.z(a))&&(c=CL(CL(c,function(f){return function(){if(!f.Eo.condition.apply(f.Eo,g.z(a)))throw"condition failed";var h=f.Eo.xx.apply(f.Eo,g.z(a));return b.j===void 0||b.j===null?h:BL(xL(h),function(l){if(!b.j.apply(b,[l].concat(g.z(a))))throw"verification failed";return l})}}(e)),function(f){return function(h){h!==
"empty"&&h!=="condition failed"&&h!=="verification failed"&&h!=="error"&&(f.Eo.onFailure&&f.Eo.onFailure.apply(f.Eo,[h].concat(g.z(a))),b.onFailure&&b.onFailure.apply(b,[h,
f.hB,f.Eo].concat(g.z(a))),d.push(h));throw"error";}}(e)));
return CL(c,function(){return yL(d)})};mY.prototype.preload=function(a){a=a?w1a(this.capabilities,a):this.capabilities;return a.Wd?BL(z1a(this,a),function(){}):xL()};
mY.prototype.compile=function(a){return CL(this.G.run(a),function(b){throw Error("wasm module compile failure: "+b.map(function(c){return c.message}).join(", "),{cause:b});
})};
mY.prototype.instantiate=function(a,b){return CL(this.L.run(a,b),function(c){throw Error("wasm module instantiation failure: "+c.map(function(d){return d.message}).join(", "),{cause:c});
})};D1a.prototype.emscripten_notify_memory_growth=function(){};var A1a;g.k=F1a.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.ZE=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.eS=function(a){if(a.buffer===this.exports.memory.buffer){var b=a.slice();this.free(a.byteOffset);return b}};
var j8a="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);lY.mB(F1a,{ZE:function(a){return{profile:"copyj2w",xo:a===void 0?0:Math.ceil(a.byteLength/16)}},
eS:function(a){return{profile:"copyw2j",xo:a===void 0?0:Math.ceil(a.byteLength/16)}}});g.w(I1a,g.O);g.k=I1a.prototype;g.k.createSubtitlesModuleIfNeeded=function(){M1a(this)&&oY(this,"captions");return!!g.nY(this)};
g.k.sU=function(){return g.jR(this.K.getVideoData())&&!this.K.EQ().C};
g.k.fI=function(){return this.K.getVideoData().fI()};
g.k.rU=function(){return this.K.getVideoData().rU()};
g.k.mY=function(){var a=this.Pe.get("heartbeat");oY(this,"heartbeat",!1,!0,this.mY);!a&&this.Pe.has("heartbeat")&&this.K.publish("offlineslatestatechange")};
g.k.MJ=function(){oY(this,"annotations_module",!0,void 0,this.MJ);var a=this.Pe.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.EP=function(){if(!this.Pe.get("ad"))try{J1a(this)?oY(this,"ad",!1,!0,this.EP):this.K.Mg("ad")}catch(a){this.K.Mg("ad"),g.ex(a)}};
g.k.Sh=function(){return this.B};
g.k.gs=function(){var a={},b=g.nY(this);b&&Object.assign(a,b.gs());return a};
g.k.DB=function(a,b){Object.assign(this.B,a||null);Object.assign(this.PJ,b||null)};
g.k.onVideoDataChange=function(){var a=this.K.getVideoData();this.K.N("enable_wn_infocards")&&g.HR(a)&&!g.tY(this)&&this.MJ()};
g.k.xa=function(){g.O.prototype.xa.call(this);pY(this,1,!0);for(var a=g.x(Object.entries(a2a)),b=a.next();!b.done;b=a.next()){var c=g.x(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&eY.delete(b)}this.D.clear()};
var S2={},a2a=(S2.ad="ad.js",S2.annotations_module="annotations_module.js",S2.asmjs="asmjs.js",S2.creatorendscreen="annotations_module.js",S2.embed="embed.js",S2.endscreen="endscreen.js",S2.heartbeat="heartbeat.js",S2.inline_preview="inline_preview.js",S2.kids="kids.js",S2.remote="remote.js",S2.miniplayer="miniplayer.js",S2.offline="offline.js",S2.captions="captions.js",S2.unplugged="unplugged.js",S2.ux="ux.js",S2.webgl="webgl.js",S2.ypc="ypc.js",S2.ypc_clickwrap="ypc_clickwrap.js",S2.yto="yto.js",
S2),V1a="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.w(c2a,g.Fx);g.k=c2a.prototype;g.k.z6=function(a){a=new g.Ag(a.pageX,a.pageY);if(!Bg(a,this.D)){var b=2;this.L&&(b|=8);this.D=a;uY(this,b,!0)}};
g.k.Oaa=function(){this.L&&uY(this,8,!0);uY(this,2,!1)};
g.k.Cy=function(a){var b=new g.Ag(a.pageX,a.pageY);Bg(b,this.D)||(this.D=b,(a=a.target)&&this.FJ(a)&&(uY(this,4,!0),this.j.Nc(this.C),this.C=this.j.T(this.target,"mouseover",this.OB),this.U=this.j.T(this.target,"mouseout",this.OB)))};
g.k.OB=function(a){a=a.relatedTarget;a&&this.FJ(a)||(this.D=new g.Ag(NaN,NaN),d2a(this))};
g.k.caa=function(){uY(this,1,!0)};
g.k.q9=function(a){a=a.target;a instanceof Element&&!(a.tabIndex>0)||uY(this,1,!0)};
g.k.EW=function(){this.L=!0;this.j.Nc(this.G);this.G=this.j.T(document,"mouseup",this.A6)};
g.k.A6=function(){this.L=!1;uY(this,8,!1);this.j.Nc(this.G);this.G=this.j.T(this.target,"mousedown",this.EW)};
g.k.FW=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ba=a.identifier,this.j.Nc(this.W),this.W=this.j.T(this.target,"touchend",this.B6,void 0,!0),uY(this,1024,!0)};
g.k.B6=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ba){var d=c;break}}d&&(this.j.Nc(this.W),this.W=this.j.T(this.target,"touchstart",this.FW,void 0,!0),uY(this,1024,!1))};
g.k.Xv=function(){uY(this,2,!0)};
g.k.resize=function(){g.$F&&d2a(this)};
g.k.toString=function(){return g.Fx.prototype.toString.call(this)};g.w(g.wY,g.S);g.k=g.wY.prototype;g.k.cga=function(){this.Ta()};
g.k.Ta=function(){var a=this.api.getVideoData(),b=this.api.V(),c=!!this.api.jd();g.Cp(this.element,"ytp-shorts-mode",c);c?b=[{J:"svg",Y:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},X:[{J:"path",Y:{"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"}},{J:"path",Y:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.QR(a)?b=[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},X:[{J:"path",S:"ytp-dni-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{J:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Nf&&a.cq?b=[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{J:"path",S:"ytp-dni-large-play-button-bg",
Y:{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"}},{J:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.L?(g.Cp(this.element,"ytp-touch-device",b.B),b=[b.L?{J:"svg",Y:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},X:[{J:"path",S:"ytp-large-play-button-bg",Y:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{J:"path",Y:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{J:"path",S:"ytp-large-play-button-bg",Y:{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"}},{J:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},X:[{J:"path",S:"ytp-large-play-button-bg",Y:{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"}},{J:"path",Y:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Nf&&a.cq&&this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",a.cq?a.cq:"#1f1f1f")};
g.k.show=function(){g.S.prototype.show.call(this);this.api.V().N("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.k.g$=function(){this.api.getVideoData().mutedAutoplay||(this.api.GB(),this.api.playVideo())};
g.k.bea=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.w(g.xY,g.S);g.k=g.xY.prototype;g.k.show=function(){var a=this;this.Eb||(this.D.T(this.api,"videodatachange",function(){g.rp(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.rp(a.j)}));
g.S.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.Vs(this.D);g.S.prototype.hide.call(this)};
g.k.lc=function(){g.rp(this.j)};
g.k.onStateChange=function(){g.rp(this.j)};
g.k.Fda=function(){g.rp(this.j)};
g.k.onReset=function(){this.B.stop();this.hide();g.rp(this.j)};
g.k.Ta=function(){var a=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.Bb().Pe.get("ypc"))&&b.vM?b=!0:(b=this.api.V(),b=g.T(a,2)&&g.kS(this.api)&&b.lh?!0:!1);b?(b=!0,this.C.hide()):this.api.N("web_player_show_frame_zero_when_cued")&&e2a(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&this.api.getPresentingPlayerType()!==2||g.T(a,2)&&!g.kS(this.api)&&!this.api.EF()||g.T(a,1024)?!0:!1);var c=this.api.getVideoData();
b&&!c.YK?(this.B.show(),this.iga(this.api.getPlaylist(),c)):(this.B.hide(),g.T(a,1)||this.B.stop())};
g.k.iga=function(){var a=g.Da.apply(0,arguments),b=this.api.V(),c,d=(c=this.api.getVideoData())==null?void 0:c.videoId;if(b.N("web_player_show_frame_zero_when_cued")&&d&&e2a(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.x(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.WQ&&!c.videoId)){e=this.api.qb().getPlayerSize();var f=g.aQ();d=e.width*f;f*=e.height;if(d>1280||f>720)if(e=c.uh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.uh("maxresdefault.jpg"))break;
if(d>320||f>180)if(e=c.uh("sddefault.jpg")||c.uh("hqdefault.jpg")||c.uh("mqdefault.jpg"))break;if(e=c.uh("default.jpg"))break}g.dQ(b)&&(b=new Image,b.addEventListener("load",function(){yua()}),b.src=e?e:"",this.api.Sh().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.w(g.yY,g.S);g.yY.prototype.resize=function(){};
g.yY.prototype.B=function(a){var b=this;this.C=!1;h2a(this);var c=a.YP,d=this.api.V();c!=="GENERIC_WITHOUT_LINK"||d.L?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Ed(BY(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Wl(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.L?this.api.V().N("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.L?(d=d.hostLanguage,a="//support.google.com/youtube?p=videoError",d&&(a=g.cj(a,{hl:d})),this.Ed(BY(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.api.V().N("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.L?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.cj(a,{hl:d})),this.Ed(BY(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Ed(g.zY(a.errorMessage)):this.Ed(BY(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.cj(c,
{hl:a})),this.Ed(BY(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Ac&&!d.D&&g2a(this,function(f){if(g.dT(f,b.api,!ZP(b.api.V()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Bd("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),g2a(this,function(){b.api.logClick(e)}))}};
var f2a=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(i2a,g.S);g.k=i2a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.K.gb("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.dT(a,this.K,!0);this.K.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){k2a(this,b);this.Ne&&l2a(this,this.Ne)};
g.k.C6=function(a){var b=this.K.getVideoData();this.videoId!==b.videoId&&k2a(this,b);this.j&&l2a(this,a.state);this.Ne=a.state};
g.k.md=function(){this.D.show();this.K.publish("paidcontentoverlayvisibilitychange",!0);this.K.logVisibility(this.element,!0)};
g.k.Pb=function(){this.D.hide();this.K.publish("paidcontentoverlayvisibilitychange",!1);this.K.logVisibility(this.element,!1)};g.w(CY,g.S);CY.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.S.prototype.hide.call(this)};
CY.prototype.onStateChange=function(a){this.xd(a.state)};
CY.prototype.xd=function(a){if(g.T(a,128))var b=!1;else{var c;b=((c=this.api.Rc())==null?0:c.Ju)?!1:g.T(a,16)||g.T(a,1)?!0:!1}b?this.j.start():this.hide()};
CY.prototype.B=function(){this.message.style.display="block"};g.w(DY,g.uS);DY.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(m2a(this),this.md()):(this.j&&this.logClick(),this.Pb()))};
DY.prototype.Ei=function(a){this.api.isMutedByMutedAutoplay()&&g.Py(a,2)&&this.Pb()};
DY.prototype.onClick=function(){this.api.unMute();this.logClick()};
DY.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.w(g.EY,g.dG);g.k=g.EY.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.eL=a.getPlayerSize();this.Fc(b);this.wr();this.lc();this.api.publish("basechromeinitialized",this);this.MQ()&&this.api.publish("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.xG!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.eL=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.jR(d))&&this.vr()}c&&(this.xG=b.videoId,c=this.Sg,c.Ea=3E3,uY(c,512,!0),this.wr());this.api.N("web_render_jump_buttons")&&b.showSeekingControls&&(this.V2=572)};
g.k.nca=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.PC=function(){var a=this.api.Nl()&&this.api.Up(),b=this.api.rB();return this.CP||a||this.fR||b};
g.k.vr=function(){var a=!this.PC();g.Cp(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.jR(b))&&g.Cp(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.FJ=function(a){try{if(!g.sh(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Qea(a);)a=a===this.api.getRootNode()?null:a.parentElement||null;return!!a};
g.k.TB=function(a){var b=this.api.getRootNode();g.Cp(b,"ytp-autohide",a);g.Cp(b,"ytp-autohide-active",!0);this.JX.start(a?250:100);a&&(this.zN=!1,g.Ap(b,"ytp-touch-mode"));this.DP=!a;this.api.iN(!a)};
g.k.pS=function(){var a=this.api.getRootNode();g.Cp(a,"ytp-autohide-active",!1)};
g.k.Sca=function(){this.UU=!0};
g.k.Rca=function(a){if(this.api.V().N("player_doubletap_to_seek")||this.api.V().W)this.UU=!1,this.VU&&this.Nc(this.VU),this.QG===0&&FY(this,a)?(this.gR(),this.YJ.start(),this.VU=this.T(this.api.qb(),"touchmove",this.Sca,void 0,!0)):this.YJ.stop();q2a(this)&&FY(this,a)&&!this.api.V().W&&o2a(this);var b=this.ZU.Rk();if(!g.HP(this.api.V())&&EP&&r2a(this,a))b&&a.preventDefault();else if(this.zN=!0,g.yp(this.api.getRootNode(),"ytp-touch-mode"),this.Sg.Xv(),this.api.V().N("player_doubletap_to_seek")||this.api.V().W)if(b=
this.api.getPlayerStateObject(),!(!this.api.Bh()||g.T(b,2)&&g.kS(this.api)||g.T(b,64))){b=Date.now()-this.E_;this.QG+=1;if(b<=350){this.jF=!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.QG-1)*10;d>0&&d<b?(this.KH(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>b*2&&d<b*3&&(this.KH(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else vY&&
this.api.V().W&&FY(this,a)&&a.preventDefault();this.E_=Date.now();this.l2.start()}};
g.k.Qca=function(){this.QL.iB=!1;this.api.publish("rootnodemousedown",this.QL)};
g.k.Mca=function(a){if(this.api.V().N("web_fix_fine_scrubbing_false_play")){if(r2a(this,a)||this.QL.iB)return}else if(this.QL.iB||r2a(this,a))return;q2a(this)||!FY(this,a)||this.YJ.isActive()||(o2a(this),a.preventDefault());this.jF&&(this.jF=!1)};
g.k.gR=function(){};
g.k.gI=function(){};
g.k.KH=function(){};
g.k.renderChapterSeekingAnimation=function(){};
g.k.xt=function(){var a=this.api.getPlayerStateObject();g.T(a,2)&&g.kS(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.Ao&&this.api.publish("largeplaybuttonclicked",this.Ao.C.element),this.api.GB(),this.api.playVideo(),this.Ao&&document.activeElement===this.Ao.C.element&&((a=this.MQ())==null?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.Nca=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!p2a(this,Rs(a)))if(a=this.api.V(),(this.api.V().N("player_doubletap_to_seek")||this.api.V().W)&&this.jF)this.jF=!1;else if(a.Db&&c!==3)try{this.api.toggleFullscreen().catch(function(d){b.aG(d)})}catch(d){this.aG(d)}};
g.k.aG=function(a){String(a).includes("fullscreen error")?g.fx(a):g.ex(a)};
g.k.Oca=function(a){s2a(this,.3,a.scale);a.preventDefault()};
g.k.Pca=function(a){s2a(this,.1,a.scale)};
g.k.lc=function(){var a=this.api.qb().getPlayerSize(),b=this.api.getRootNode(),c=a.width>=650;this.Sg.resize();g.Cp(b,"ytp-fullscreen",this.api.isFullscreen());g.Cp(b,"ytp-large-width-mode",c);g.Cp(b,"ytp-small-mode",this.eh());g.Cp(b,"ytp-tiny-mode",this.lL());g.Cp(b,"ytp-big-mode",this.Vh());this.Dg&&this.Dg.resize(a)};
g.k.Ei=function(a){this.Fc(a.state);this.wr()};
g.k.JC=ba(5);g.k.wQ=function(){var a=!!this.xG&&!this.api.Lf()&&!this.kT,b=this.api.getPresentingPlayerType()===2,c=this.api.V();if(b){if($ab&&c.N("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=qY(this.api.Bb());a&&(b&&b.player?a=(a=b.player.getVideoData(2))?a.isListed&&!g.WD(b.player.V()):!1:(My("showInfoBarDuringAd: this is null"),a=!1));return a}return a&&(c.Vn||this.api.isFullscreen()||c.Cl)};
g.k.wr=function(){var a=this.wQ();this.So!==a&&(this.So=a,g.Cp(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Fc=function(a){var b=a.isCued()||this.api.No()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.WU&&this.Nc(this.WU),this.WU=this.T(this.api.qb(),"touchstart",this.Rca,void 0,b));var c=this.Sg,d=a.isPlaying()&&!g.T(a,32)||this.api.nG();uY(c,128,!d);c=this.Sg;d=this.api.getPresentingPlayerType()===3;uY(c,256,d);c=this.api.getRootNode();g.T(a,2)?d=[n2.ENDED]:(d=[],g.T(a,8)?d.push(n2.PLAYING):g.T(a,4)&&d.push(n2.PAUSED),g.T(a,1)&&!g.T(a,32)&&d.push(n2.BUFFERING),g.T(a,
32)&&d.push(n2.SEEKING),g.T(a,64)&&d.push(n2.UNSTARTED));g.mc(this.FO,d)||(g.Bp(c,this.FO),this.FO=d,g.zp(c,d));d=this.api.V();var e=g.T(a,2);a:{var f=this.api.V();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.T(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Iab(qY(this.api.Bb())))||this.api.rB()||g.HP(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Cp(c,"ytp-hide-controls",!f);g.Cp(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.fR);g.T(a,
128)&&!g.HP(d)?(this.Dg||(this.Dg=new g.yY(this.api),g.P(this,this.Dg),g.qS(this.api,this.Dg.element,4)),this.Dg.B(a.Yg),this.Dg.show()):this.Dg&&(this.Dg.dispose(),this.Dg=null)};
g.k.Sr=function(){return this.api.Nl()&&this.api.Up()?(this.api.GC(!1,!1),!0):this.api.Lf()?(g.lS(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.fR=a;this.vr()};
g.k.Vh=function(){return!1};
g.k.eh=function(){return!this.Vh()&&(this.api.getPlayerSize().width<this.V2||this.api.getPlayerSize().height<290)};
g.k.lL=function(){return this.eh()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.k.yn=function(){return this.zN};
g.k.dn=function(){return null};
g.k.UY=function(){return null};
g.k.hn=function(){var a=this.api.qb().getPlayerSize();return new g.ym(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Vy=function(){};
g.k.showControls=function(a){a!==void 0&&this.api.qb().iN(a)};
g.k.Xv=function(){};
g.k.MQ=function(){return null};g.w(GY,g.Fx);g.k=GY.prototype;g.k.qK=function(){return 1E3*this.api.getDuration(this.Dp,!1)};
g.k.stop=function(){this.j&&this.Md.Nc(this.j)};
g.k.Uc=function(){var a=this.api.getProgressState(this.Dp);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Dp,!1)};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.D6=function(a){g.Py(a,2)&&this.publish("g")};g.w(g.HY,g.S);g.HY.prototype.show=function(){g.S.prototype.show.call(this);g.rp(this.j)};
g.HY.prototype.hide=function(){this.B.stop();g.S.prototype.hide.call(this)};
g.HY.prototype.gI=function(a){a?g.T(this.K.getPlayerStateObject(),64)||IY(this,$x(),"Play"):(a=this.K.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?IY(this,$sa(),"Stop live playback"):IY(this,Wsa(),"Pause"))};g.w(v2a,g.S);g.k=v2a.prototype;g.k.dI=function(a){a?this.j=hS(this.K,this.element,null):(this.j=this.j,this.j(),this.j=null)};
g.k.md=function(){this.K.V().N("player_new_info_card_format")&&g.xp(this.K.getRootNode(),"ytp-cards-teaser-shown")&&!g.HP(this.K.V())||(this.B.show(),g.Hv("iv-button-shown"))};
g.k.Pb=function(){g.Hv("iv-button-hidden");this.B.hide()};
g.k.Rk=function(){return this.Eb&&this.B.state!==4};
g.k.xa=function(){this.j&&this.j();g.S.prototype.xa.call(this)};
g.k.Mba=function(){g.Hv("iv-button-mouseover")};
g.k.onClicked=function(a){this.K.Nl();var b=g.xp(this.K.getRootNode(),"ytp-cards-teaser-shown");g.Hv("iv-teaser-clicked",b);var c;if((c=this.K.getVideoData())==null?0:g.GR(c)){var d;a=(d=this.K.getVideoData())==null?void 0:g.HR(d);(a==null?0:a.onIconTapCommand)&&this.K.gb("innertubeCommand",a.onIconTapCommand)}else d=a.screenX===0&&a.screenY===0,this.K.GC(!this.K.Up(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(w2a,g.S);g.k=w2a.prototype;g.k.S3=function(){this.K.Nl()&&this.K.Up()&&this.Rk()&&this.Pb()};
g.k.MU=function(){this.Pb();!this.K.Nl()&&this.K.V().N("enable_error_corrections_infocards_icon_web")&&this.oh.Pb();g.Hv("iv-teaser-clicked",this.j!=null);if(this.onClickCommand)this.K.gb("innertubeCommand",this.onClickCommand);else{var a;((a=this.K.getVideoData())==null?0:g.GR(a))||this.K.GC(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.F6=function(){g.Hv("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.oda=function(a){this.K.V().N("player_new_info_card_format")&&!g.HP(this.K.V())?this.oh.Pb():this.K.V().N("enable_error_corrections_infocards_icon_web")&&this.oh.md();this.j||!a||this.K.Up()||this.B&&this.B.isActive()||(this.md(a),g.Hv("iv-teaser-shown"))};
g.k.md=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Ip(a.teaserText));this.D.show();this.B=new g.qp(function(){g.yp(this.K.getRootNode(),"ytp-cards-teaser-shown");this.K.N("player_new_info_card_format")&&!g.HP(this.K.V())&&this.oh.Pb();this.tO()},0,this);
this.B.start();this.oh.dI(!1);this.j=new g.qp(this.Pb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.HW,this));this.G.push(this.listen("mouseout",this.GW,this))};
g.k.tO=function(){if(!this.K.V().N("player_new_info_card_format")&&g.HP(this.K.V())&&this.Eb){var a=this.oh.element.offsetLeft,b=g.gh("ytp-cards-button-icon"),c=this.K.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.oh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.h8=function(){g.HP(this.K.V())&&this.K.eh()&&this.Eb&&this.Z.start()};
g.k.HW=function(){this.L.stop();this.j&&this.j.isActive()&&this.W.start()};
g.k.GW=function(){this.W.stop();this.j&&!this.j.isActive()&&this.L.start()};
g.k.aca=function(){this.j&&this.j.stop()};
g.k.Zba=function(){this.Pb()};
g.k.E6=function(){this.Pb()};
g.k.Pb=function(){!this.j||this.C&&this.C.isActive()||(g.Hv("iv-teaser-hidden"),this.D.hide(),g.Ap(this.K.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.qp(function(){for(var a=g.x(this.G),b=a.next();!b.done;b=a.next())this.Nc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.oh.dI(!0);!this.K.Nl()&&this.K.V().N("enable_error_corrections_infocards_icon_web")&&this.oh.Pb()},330,this),this.C.start())};
g.k.Rk=function(){return this.Eb&&this.D.state!==4};
g.k.xa=function(){var a=this.K.getRootNode();a&&g.Ap(a,"ytp-cards-teaser-shown");g.lb(this.B,this.C,this.j);g.S.prototype.xa.call(this)};var T2={},KY=(T2.BUTTON="ytp-button",T2.TITLE_NOTIFICATIONS="ytp-title-notifications",T2.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",T2.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",T2.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",T2);g.w(x2a,g.S);x2a.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);y2a(this,a)};g.Oa("yt.pubsub.publish",g.Hv);g.w(g.LY,g.S);g.LY.prototype.D=function(){window.location.reload()};
g.LY.prototype.j=function(){g.yp(this.element,"ytp-sb-subscribed")};
g.LY.prototype.B=function(){g.Ap(this.element,"ytp-sb-subscribed")};g.w(D2a,g.S);g.k=D2a.prototype;g.k.qba=function(a){this.api.logClick(this.B);var b=this.api.V();b.B||b.Ua?H2a(this)&&(this.isExpanded()?this.tP():this.aQ()):g.Zf(window,C2a(this));a.preventDefault()};
g.k.PT=function(){G2a(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.aQ=function(){if(H2a(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.Dm&&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.Ta=function(){var a=this.api.V();g.Mx(this,!this.api.jd());var b=this.api.getVideoData(),c=this.api.V(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Kb&&!!d.profilePicture;this.api.getPresentingPlayerType()===2?this.D=e&&!!d.isListed&&!!d.author:g.HP(c)&&(this.D=e&&!g.QR(d)&&!c.C&&!(c.W&&this.api.getPlayerSize().width<200));c=b.profilePicture;a=g.HP(a)?b.expandedTitle:b.author;c=c===void 0?"":c;a=a===void 0?"":a;this.D?(this.L!==c&&(this.B.style.backgroundImage="url("+c+")",this.L=
c),this.updateValue("channelLogoLabel",g.OE("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.yp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Ap(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,this.D&&this.U);this.subscribeButton&&(this.subscribeButton.channelId=b.Bm);this.updateValue("expandedTitle",b.expandedTitle);this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.yc=function(a){g.S.prototype.yc.call(this,a);this.api.logVisibility(this.B,this.D&&a)};g.w(MY,g.xS);MY.prototype.j=function(a){a.defaultPrevented||a.keyCode!==39||(this.element.click(),a.preventDefault())};g.w(I2a,g.S);g.k=I2a.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.G6=function(a){var b=Rs(a),c=g.sh(this.closeButton.element,b),d=g.sh(this.element,b);a=this.j&&g.sh(this.j,b)&&g.Zy(a);b&&(d||a)&&!c||this.hide()};
g.k.H6=function(){A2a(g.XP(this.Qa.V()),"user_info_panel",function(){window.location.reload()})};
g.k.Ta=function(){var a=this.Qa.V(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.bj};this.updateValue("icon",Xsa());this.updateValue("watchingAsUsername",g.OE("Watching as $USER_NAME",b));a.bj?this.updateValue("watchingAsEmail",g.OE("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.w(K2a,g.vX);g.k=K2a.prototype;g.k.k8=function(){this.Fb.Pb()};
g.k.wba=function(){bOa(this.vA.element)};
g.k.Iba=function(){OY(this,this.K.getDebugText(!0))&&IY(this.ze,Sx())};
g.k.Jba=function(){OY(this,this.K.getVideoEmbedCode())&&IY(this.ze,Osa());this.K.logClick(this.Go.element);lz("EMBED",this.K.getVideoData().videoId,this.K.getPlaylistId()||"")};
g.k.Kba=function(){OY(this,this.K.getVideoUrl(!0,!0))&&IY(this.ze,Wx());this.K.logClick(this.getVideoUrl.element);lz("COPY_PASTE",this.K.getVideoData().videoId,this.K.getPlaylistId()||"")};
g.k.Lba=function(){OY(this,this.K.getVideoUrl(!1,!0))&&IY(this.ze,Wx());this.K.logClick(this.Lo.element);lz("COPY_PASTE",this.K.getVideoData().videoId,this.K.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;(b=this.im)==null||cT(b,a)};
g.k.Tba=function(){this.K.setLoopVideo(this.im.getValue());this.Fb.Pb();this.K.logClick(this.im.element)};
g.k.Ica=function(a){this.K.reportPlaybackIssue();if(g.dT(a,this.K,!ZP(this.K.V()))){a=this.K;var b=a.app.getFeedbackProductData();a.Bd("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Fb.Pb()};
g.k.fda=function(){g.YR(this.K,"isVideoInfoVisible",[])?g.YR(this.K,"hideVideoInfo",[]):g.YR(this.K,"showVideoInfo",[]);this.Fb.Pb()};
g.k.eda=function(){this.wm&&(this.II||(this.II=new I2a(this.K,this.wm.element),g.P(this,this.II),g.qS(this.K,this.II.element,4)),this.II.show(),this.Fb.Pb(),this.K.logClick(this.wm.element))};
g.k.onVideoDataChange=function(a,b){this.lN(b)};
g.k.lN=function(a){var b=this.K.V(),c=this.K.getPresentingPlayerType()===2,d=!c||a.isListed;d=!b.ra&&!!a.videoId&&d;b.playerStyle!=="play"?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.partnerId&&(b.partnerid=a.partnerId),b=g.cj("//support.google.com/googleplay/",b));g.Mx(this.Go,d&&a.allowEmbed);g.Mx(this.getVideoUrl,d);g.Mx(this.Lo,
d&&!a.isLivePlayback);this.LH.Ed(b,"href");var e;(e=this.im)==null||g.Mx(e,!a.isLivePlayback&&!c);var f;(f=this.wm)==null||g.Mx(f,!c)};
g.k.yc=function(a){g.vX.prototype.yc.call(this,a);this.K.logVisibility(this.Go.element,a);this.K.logVisibility(this.getVideoUrl.element,a);this.K.logVisibility(this.Lo.element,a);this.im&&this.K.logVisibility(this.im.element,a);this.wm&&this.K.logVisibility(this.wm.element,a)};g.w(N2a,g.xX);g.k=N2a.prototype;g.k.J6=function(a){var b=Rs(a);if(!(b&&(vh(b,"a")||vh(b,null,"ytp-no-contextmenu"))||this.Eb)){var c;this.Ba=(a=(c=a.touches)==null?void 0:c.item(0))?new g.Ag(a.clientX,a.clientY):new g.Ag(0,0);this.ra.start()}};
g.k.l1=function(){this.ra.stop()};
g.k.tda=function(){this.open(this.Ba)};
g.k.QY=function(){if(this.C&&L2a(this.C)){var a=L2a(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 K2a(this.K,this,this.ze),g.P(this,this.C),g.yX(this,this.C));this.C.onLoopChange(this.K.getLoopVideo());g.xX.prototype.show.call(this);this.K.logVisibility(this.element,!0);this.C.yc(!0)};
g.k.hide=function(){M2a(this);g.xX.prototype.hide.call(this);this.K.logVisibility(this.element,!1);this.C&&this.C.yc(!1)};
g.k.uba=function(a){var b=Rs(a);this.Eb||b&&(vh(b,"a")||vh(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ag(a.pageX,a.pageY)))};
g.k.md=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ag(b.x,b.y))}g.xX.prototype.md.call(this,a)};
g.k.open=function(a){O2a(this);var b=this.K.getVideoData();g.Cp(this.element,"ytp-dni",b.Nf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.xX.prototype.md.call(this);var c=document.body;b=new lm(0,Infinity,Infinity,0);var d=bh(c);for(var e=d.j.body,f=d.j.documentElement,h=Mea(d.j);c=Uia(c);)if((!g.ih||c.clientHeight!=0||c!=e)&&c!=e&&c!=f&&Fm(c,"overflow")!="visible"){var l=g.Jm(c),m=new g.Ag(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=Lea(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.ym(0,0,0,0);d.left=a.x;d.top=a.y;d.width=
b.width;d.height=b.height;g.Hm(this.element,new g.Ag(d.left,d.top));g.Vs(this.D);this.D.T(document,"contextmenu",this.Bba);this.D.T(this.K,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.K,"pageTransition",this.I6)};
g.k.Bba=function(a){if(!a.defaultPrevented){var b=Rs(a);g.sh(this.element,b)||this.Pb();this.K.V().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Pb();O2a(this)};
g.k.I6=function(){this.Pb()};g.w(PY,g.S);PY.prototype.onClick=function(){var a=this,b,c,d,e;return g.I(function(f){if(f.j==1)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.G(f,R2a(a,e),2);f.B&&Q2a(a);a.api.logClick(a.element);g.va(f)})};
PY.prototype.Ta=function(){this.updateValue("icon",{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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=P2a(this);g.Cp(this.element,"ytp-copylink-button-visible",this.visible);
g.Mx(this,this.visible);this.tooltip.ri();this.api.logVisibility(this.element,this.visible&&this.U)};
PY.prototype.yc=function(a){g.S.prototype.yc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
PY.prototype.xa=function(){g.S.prototype.xa.call(this);g.Ap(this.element,"ytp-copylink-button-visible")};g.w(QY,g.S);QY.prototype.show=function(){g.S.prototype.show.call(this);g.rp(this.B)};
QY.prototype.hide=function(){this.D.stop();this.C=0;this.Da("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Ap(this.element,"ytp-chapter-seek");g.Ap(this.element,"ytp-time-seeking");g.S.prototype.hide.call(this)};
QY.prototype.KH=function(a,b,c,d){this.C=a===this.L?this.C+d:d;this.L=a;var e=a===-1?this.Z:this.W;e&&this.K.logClick(e);this.G?this.B.stop():g.tp(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"back":"forward");var f=3*this.K.qb().getPlayerSize().height;e=this.K.qb().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.K.qb().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");S2a(this,this.G?this.C:d)};g.w(U2a,tX);g.k=U2a.prototype;g.k.K6=function(a){this.La||(this.La=new AX(this.K),g.P(this,this.La));var b,c;if((b=this.tb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.La.open(this.tb.menu.menuRenderer,a.target),a.preventDefault()};
g.k.Nba=function(){this.K.gb("innertubeCommand",this.Jc);this.K.logClick(this.infoButton.element)};
g.k.rz=function(){return!!this.j};
g.k.oN=function(){return!!this.j};
g.k.TG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Ac&&this.K.gb("innertubeCommand",this.Ac),this.zy(!1))};
g.k.qv=function(){this.zy(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Sb.push(this.j.bannerData.dismissedStatusKey);this.JH()};
g.k.zW=function(){this.JH();UY(this)};
g.k.afa=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.JH();c=g.x(this.Ea);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.Sb.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.K.setTrackingParams(this.badge.element,
d.trackingParams));this.qa.show();sX(this);g.Mx(this.Fa,!d.stayInApp);f3a(this);W2a(this);TY(this);this.Ac=g.Q(d.onTapCommand,hx);if(e=g.Q(d.menuOnTap,hx))this.tb=g.Q(e,mdb);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:Z2a(this),priceDropReferencePrice:$2a(this),promotionText:Y2a(this),priceA11yText:a3a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:b3a(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.Ib=new g.qp(function(){e3a(b)},1E3),this.Fa.hide(),this.countdownTimer.show(),e3a(this));
this.K.N("web_player_enable_featured_product_banner_exclusives_on_desktop")&&V2a(this)&&(this.Vb=new g.qp(function(){X2a(b)},1E3),X2a(this))}}}};
g.k.JH=function(){this.j&&(this.j=void 0,this.Am())};
g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&UY(this);var d,e;a=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;var f,h,l;b=g.Q((f=b.getWatchNextResponse())==null?void 0:(h=f.playerOverlays)==null?void 0:(l=h.playerOverlayRenderer)==null?void 0:l.productsInVideoOverlayRenderer,kdb);this.K.N("web_player_enable_info_button_in_banner_on_desktop")&&!a?this.infoButton.show():this.infoButton.hide();this.K.N("web_player_enable_overflow_button_in_banner_on_desktop")&&
(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var m=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var n;if(f=b==null?void 0:(n=b.dismissButton)==null?void 0:n.trackingParams)this.K.setTrackingParams(this.dismissButton.element,f),this.G=!0;var p;(n=b==null?void 0:(p=b.dismissButton)==null?void 0:p.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.Qx(n));this.Jc=b==null?void 0:b.onClickCommand;
this.Ea.length||(d3a(this,m),TY(this));var q;(q=this.Pc)==null||q.call(this);this.Pc=g.nR.subscribe(function(){d3a(c,m);TY(c)})};
g.k.xa=function(){UY(this);f3a(this);W2a(this);tX.prototype.xa.call(this)};g.w(k3a,g.S);k3a.prototype.onClick=function(){this.K.logClick(this.element,this.B)};g.w(l3a,g.uS);g.k=l3a.prototype;g.k.show=function(){g.uS.prototype.show.call(this);this.K.publish("infopaneldetailvisibilitychange",!0);this.K.logVisibility(this.element,!0);m3a(this,!0)};
g.k.hide=function(){g.uS.prototype.hide.call(this);this.K.publish("infopaneldetailvisibilitychange",!1);this.K.logVisibility(this.element,!1);m3a(this,!1)};
g.k.getId=function(){return this.D};
g.k.iq=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.rk)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.rk)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.rk)==null?void 0:h.trackingParams)||null;this.K.setTrackingParams(this.element,a);h=g.x(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.rk)==null?0:l.ctaButtons)for(b=g.x(b.rk.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.Q(l.value,
fdb))l=new k3a(this.K,l,this.j),l.Be&&(this.itemData.push(l),l.Ha(this.items))}};
g.k.xa=function(){this.hide();g.uS.prototype.xa.call(this)};g.w(p3a,g.S);g.k=p3a.prototype;g.k.onVideoDataChange=function(a,b){o3a(this,b);this.Ne&&r3a(this,this.Ne)};
g.k.N6=function(a){var b=this.K.getVideoData();this.videoId!==b.videoId&&o3a(this,b);r3a(this,a.state);this.Ne=a.state};
g.k.H0=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.M6=function(){this.B||this.md();this.showControls=!0};
g.k.L6=function(){this.B||this.Pb();this.showControls=!1};
g.k.md=function(){var a;if((a=this.K)==null?0:a.N("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.K)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.K)==null?0:c.jd())?400:280);var d,e;if((((d=this.K)==null?0:d.getPlayerStateObject().isCued())||((e=this.K)==null?0:g.T(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.K.publish("infopanelpreviewvisibilitychange",!0),this.K.logVisibility(this.element,!0))};
g.k.Pb=function(){this.j&&!this.D&&(this.C.hide(),this.K.publish("infopanelpreviewvisibilitychange",!1),this.K.logVisibility(this.element,!1))};
g.k.ffa=function(){this.B=!1;this.showControls||this.Pb()};var ifb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ifb).reduce(function(a,b){a[ifb[b]]=b;return a},{});
var jfb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(jfb).reduce(function(a,b){a[jfb[b]]=b;return a},{});
var kfb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(kfb).reduce(function(a,b){a[kfb[b]]=b;return a},{});var lfb,mfb;lfb=[{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"}];mfb=[{option:0,text:VY(0)},{option:.25,text:VY(.25)},{option:.5,text:VY(.5)},{option:.75,text:VY(.75)},{option:1,text:VY(1)}];
g.ZY=[{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:lfb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:VY(.5)},{option:-1,text:VY(.75)},{option:0,text:VY(1)},{option:1,text:VY(1.5)},{option:2,
text:VY(2)},{option:3,text:VY(3)},{option:4,text:VY(4)}]},{option:"background",text:"Background color",options:lfb},{option:"backgroundOpacity",text:"Background opacity",options:mfb},{option:"windowColor",text:"Window color",options:lfb},{option:"windowOpacity",text:"Window opacity",options:mfb},{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:VY(.25)},{option:.5,text:VY(.5)},{option:.75,text:VY(.75)},{option:1,text:VY(1)}]}];var nfb=[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.w(x3a,g.dG);g.k=x3a.prototype;
g.k.DZ=function(a){a.repeat||(this.C.cL=!1);var b=!1,c=a.keyCode,d=Rs(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||nfb.includes(c)),f=!1,h=!1,l=this.api.V();a.defaultPrevented?(e=!1,h=!0):l.Se&&!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);JY(this.ze,f,!1);this.api.setVolume(f);
h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);JY(this.ze,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Bh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Bh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&XY(this,!0);(b||h)&&this.Sg.Xv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.U&&(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.xf("onKeyPress",a))};
g.k.EZ=function(a){var b=a.keyCode;(!this.api.N("web_player_spacebar_control_bugfix")||this.api.N("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.cL)return b;(c=g.oS(this.api.Bb()))&&(c=c.Rv)&&c.Eb&&(c.BZ(a),b=!0);switch(a){case 9:XY(this,!0);b=!0;break;case 32:if(this.api.N("web_speedmaster_spacebar_control")&&(!this.api.N("web_player_spacebar_control_bugfix")&&!this.D||this.api.N("web_player_spacebar_control_bugfix"))&&!this.api.V().Se){var l,m;a=(l=this.progressBar)==
null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.xt(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.cL=!1);var m=!1,n=this.api.V();if(n.Se&&!this.api.isMutedByEmbedsMutedAutoplay())return m;var p=g.oS(this.api.Bb());if(p&&(p=p.Rv)&&p.Eb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.AZ(a)}n.L||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&bma(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!this.api.isMutedByEmbedsMutedAutoplay()||
nfb.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.vl:[];t=wU?d:c;switch(a){case 80:b&&!n.Pa&&(IY(this.ze,Zsa(),"Previous"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Pa&&(IY(this.ze,Xx(),"Next"),this.api.nextVideo(),m=!0);break;case 74:this.api.Bh()&&(this.api.startSeekCsiAction(),this.j?this.api.N("enable_key_press_seek_logging")?(m=YY(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),RY(this.j,
-1,10,m)):RY(this.j,-1,10):IY(this.ze,{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.Bh()&&(this.api.startSeekCsiAction(),this.j?this.api.N("enable_key_press_seek_logging")?(m=YY(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),RY(this.j,1,10,m)):RY(this.j,1,10):IY(this.ze,{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.Bh()&&(this.api.startSeekCsiAction(),t?(t=u3a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(T2a(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.N("enable_key_press_seek_logging")?(m=YY(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),RY(this.j,-1,5,m)):RY(this.j,-1,5):IY(this.ze,{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.Bh()&&(this.api.startSeekCsiAction(),t?(t=t3a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(T2a(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.N("enable_key_press_seek_logging")?(m=YY(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),RY(this.j,1,5,m)):RY(this.j,1,5):IY(this.ze,{J:"svg",Y:{height:"100%",version:"1.1",
viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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(),JY(this.ze,this.api.getVolume(),!1)):(this.api.mute(),JY(this.ze,0,!0));m=!0;break;case 32:m=this.api.N("web_speedmaster_spacebar_control")?!this.api.V().Pa:this.xt(p);break;case 75:m=this.xt(p);break;case 190:b?n.enableSpeedOptions&&z3a(this)&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),t2a(this.ze,!1),m=!0):this.api.Bh()&&(this.step(1),m=!0);break;case 188:b?
n.enableSpeedOptions&&z3a(this)&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),t2a(this.ze,!0),m=!0):this.api.Bh()&&(this.step(-1),m=!0);break;case 70:YNa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.vx(),m=!0):this.L()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.nY(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),u2a(this.ze,!n||n&&!n.displayName),m=!0);break;case 79:$Y(this,"textOpacity");break;case 87:$Y(this,"windowOpacity");break;case 187:case 61:$Y(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:$Y(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.Bh()&&
(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.Sg.Xv()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h,repeat:l},this.C);return m};
g.k.step=function(a){this.api.Bh();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.xt=function(a){if(!this.api.V().Pa){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,tdb))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.gb("onExpandMiniplayer");a?this.progressBar.dQ():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.ze.gI(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.xa=function(){g.tp(this.G);g.dG.prototype.xa.call(this)};g.w(g.aZ,g.S);g.aZ.prototype.Ys=ba(11);g.aZ.prototype.Ta=function(){var a=this.K.V(),b=a.C||this.K.N("web_player_hide_overflow_button_if_empty_menu")&&this.Fi.isEmpty();a=g.HP(a)&&g.nS(this.K)&&g.T(this.K.getPlayerStateObject(),128);var c=this.K.getPlayerSize();this.visible=this.K.eh()&&!a&&c.width>=240&&!g.QR(this.K.getVideoData())&&!b&&!this.j&&!this.K.jd();g.Cp(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.K.ri();this.K.logVisibility(this.element,this.visible&&this.U)};
g.aZ.prototype.yc=function(a){g.S.prototype.yc.call(this,a);this.K.logVisibility(this.element,this.visible&&a)};
g.aZ.prototype.xa=function(){g.S.prototype.xa.call(this);g.Ap(this.element,"ytp-overflow-button-visible")};g.w(A3a,g.uS);g.k=A3a.prototype;g.k.O6=function(a){a=Rs(a);g.sh(this.element,a)&&(g.sh(this.j,a)||g.sh(this.closeButton,a)||vS(this))};
g.k.Pb=function(){g.uS.prototype.Pb.call(this);this.K.Qm(this.element)};
g.k.show=function(){this.Eb&&this.K.publish("OVERFLOW_PANEL_OPENED");g.uS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");C3a(this,!0)};
g.k.hide=function(){g.uS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");C3a(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Rk()&&vS(this)};
g.k.isEmpty=function(){return this.actionButtons.length===0};
g.k.focus=function(){for(var a=g.x(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Eb){b.focus();break}};g.w(D3a,g.S);D3a.prototype.onClick=function(a){g.dT(a,this.api)&&this.api.playVideoAt(this.index)};g.w(E3a,g.uS);g.k=E3a.prototype;g.k.show=function(){g.uS.prototype.show.call(this);this.j.T(this.api,"videodatachange",this.uO);this.j.T(this.api,"onPlaylistUpdate",this.uO);this.uO()};
g.k.hide=function(){g.uS.prototype.hide.call(this);g.Vs(this.j);this.updatePlaylist(null)};
g.k.uO=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().C&&(this.Da("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Nc(this.C),this.C=null))};
g.k.bN=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.OE(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.x(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 D3a(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.sda=function(a){var b=this.api.getVideoUrl(!0);g.eT(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.bN,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.bN,this),this.bN()):this.Eb&&this.hide()):this.playlist&&this.bN()};
g.k.focus=function(){this.selected.focus()};
g.k.xa=function(){this.hide();g.uS.prototype.xa.call(this)};g.w(bZ,g.S);bZ.prototype.hide=function(){g.S.prototype.hide.call(this);this.yc(!1);this.api.ri()};
bZ.prototype.Ta=function(){var a=g.HP(this.api.V());g.Cp(this.element,"ytp-playlist-menu-button-tiny",this.api.qb().getPlayerSize().width<400&&!a);this.api.jd()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.OE("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.OE("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Eb||(this.show(),this.api.ri()),
this.visible=!0,this.yc(!0)):this.Eb&&this.hide()};
bZ.prototype.yc=function(a){g.S.prototype.yc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
bZ.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ta,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ta,this);this.Ta()};g.w(F3a,g.S);g.k=F3a.prototype;g.k.Q6=function(){this.C?J3a(this):I3a(this)};
g.k.P6=function(){this.C?(cZ(this),this.G=!0):I3a(this)};
g.k.Uaa=function(){this.D=!0;this.YH(1);this.K.publish("promotooltipacceptbuttonclicked",this.acceptButton);cZ(this);this.j&&this.K.logClick(this.acceptButton)};
g.k.Aba=function(){this.D=!0;this.YH(2);cZ(this);this.j&&this.K.logClick(this.dismissButton)};
g.k.R6=function(a){if(this.K.getPresentingPlayerType()===1||this.K.getPresentingPlayerType()===2&&this.L){var b=!0,c=g.gh("ytp-ad-overlay-ad-info-dialog-container"),d=g.gh("ytp-ad-player-overlay-layout"),e=Rs(a);if(this.B&&e&&g.sh(this.B,e))this.B=null;else{this.K.getPresentingPlayerType()===1&&e&&Array.from(e.classList).forEach(function(m){if(m.startsWith("ytp-ad")||m.startsWith("ytp-skip-ad"))b=!1});
var f=K3a(this.tooltipRenderer),h;if(((h=this.tooltipRenderer.dismissStrategy)==null?void 0:h.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")f&&(b=b&&!g.sh(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.sh(this.element,e))}this.targetElement&&this.Eb&&!c&&!d&&(!e||b&&g.Zy(a))&&(this.D=!0,cZ(this))}}};
g.k.YH=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,edb))==null?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.K.Xm(),(a==null?0:Qta(d,a.VP))&&BA(a,d,e))}};
g.k.lc=function(){this.G||(this.targetElement||(this.targetElement=G3a(this)),J3a(this))};
var H3a={"ytp-settings-button":g.by()};g.w(dZ,g.S);dZ.prototype.onStateChange=function(a){this.xd(a.state)};
dZ.prototype.xd=function(a){g.Mx(this,g.T(a,2))};
dZ.prototype.onClick=function(){this.K.getPlayerStateObject().isOrWillBePlaying();this.K.playVideo()};g.w(eZ,g.S);eZ.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.cj(this.api.V().Ea,{focusSearch:"true"}),c={};g.YR(this.api,"addEmbedsConversionTrackingParams",[c]);b=g.cj(b,c);var d;(c=(d=this.api.getVideoData().g7)==null?void 0:d.params)&&(b=g.cj(b,{bp:c}));g.Zf(window,b);a.preventDefault()};
eZ.prototype.j=function(){if(this.api.N("embeds_web_enable_search_button")){var a=this.api.V();var b=this.api.getVideoData(),c=this.api.qb().getPlayerSize().width;a=g.HP(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.jd()}else a=!1;this.visible=a;g.Mx(this,this.visible);g.Cp(this.element,"ytp-search-button-visible",this.visible);g.Cp(this.element,"ytp-show-search-title",!this.api.eh());this.api.logVisibility(this.element,this.visible&&this.U)};
eZ.prototype.yc=function(a){g.S.prototype.yc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(g.fZ,g.S);g.k=g.fZ.prototype;g.k.Zs=ba(8);g.k.onClick=function(){var a=this,b=this.api.V(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=this.api.N("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){M3a(a,f)})}catch(f){f instanceof Error&&M3a(this,f)}else this.Ve.Sr(),vS(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Ta=function(){var a=this.api.V(),b=this.api.jd();g.Cp(this.element,"ytp-show-share-title",g.HP(a)&&!b);this.Ve.Vh()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Bm(this.element,"right",a+"px")):b&&g.Bm(this.element,"right","0px");this.updateValue("icon",{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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=L3a(this);g.Cp(this.element,"ytp-share-button-visible",this.visible);g.Mx(this,this.visible);this.tooltip.ri();this.api.logVisibility(this.element,L3a(this)&&this.U)};
g.k.yc=function(a){g.S.prototype.yc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.xa=function(){g.S.prototype.xa.call(this);g.Ap(this.element,"ytp-share-button-visible")};g.w(O3a,g.uS);g.k=O3a.prototype;g.k.S6=function(a){a=Rs(a);g.sh(this.G,a)||g.sh(this.closeButton,a)||vS(this)};
g.k.Pb=function(){g.uS.prototype.Pb.call(this);this.tooltip.Qm(this.element);this.api.logVisibility(this.j,!1);for(var a=g.x(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.uS.prototype.show.call(this);this.Ta();a||this.api.gb("onSharePanelOpened")};
g.k.vaa=function(){this.Eb&&this.Ta()};
g.k.Ta=function(){var a=this;g.yp(this.element,"ytp-share-panel-loading");g.Ap(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&BA(this.api.Xm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ja()||(g.Ap(a.element,"ytp-share-panel-loading"),Q3a(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.OE("Share link $URL",{URL:b}));bOa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.Rk()&&vS(this)};
g.k.focus=function(){this.j.focus()};
g.k.xa=function(){g.uS.prototype.xa.call(this);P3a(this)};g.w(T3a,tX);g.k=T3a.prototype;g.k.xa=function(){Y3a(this);tX.prototype.xa.call(this)};
g.k.TG=function(a){a.target!==this.dismissButton.element&&(this.zy(!1),this.K.gb("innertubeCommand",this.onClickCommand))};
g.k.qv=function(){this.Ua=!0;this.zy(!0);this.Am()};
g.k.pca=function(a){this.W=a;this.Am()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Ua=!1,this.Ba=!0,this.Z=this.ra=!1,Y3a(this),X3a(this,!1),this.B=this.j=!1,hZ(this),U3a(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.Sf(!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,
kdb);this.W=this.enabled=!1;if(b){if(e=b==null?void 0:b.featuredProductsEntityKey){f=g.nR.getState().entities;var l;if((l=IB(f,"featuredProductsEntity",e))==null?0:l.productsData){this.Sf(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.K.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p;this.K.setTrackingParams(this.dismissButton.element,((p=
b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,X3a(this,!0),U3a(this),m=W3a(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.S({J:"div",S:"ytp-suggested-action-more-products-icon"}),g.P(this,p),n.push(p),n.push.apply(n,g.z(m.slice(1)))),this.L=new g.S({J:"div",X:n,S:"ytp-suggested-action-content-forward-container"}),g.P(this,this.L),this.Ma.element.append(this.L.element));this.text=g.Qx(b.text);var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Va=
g.Qx(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.hf()}Y_a(this);sX(this);this.Am()}};
g.k.rz=function(){return!this.W&&this.enabled&&!this.Ua&&!this.K.eh()&&!this.Db&&(this.Z||this.Ba)};
g.k.eM=function(a){tX.prototype.eM.call(this,a);if(this.j||this.B)this.timing&&gZ(this.timing.preview)&&(this.j=!1,hZ(this),this.B=!1,hZ(this),this.K.df("shopping_overlay_preview_collapsed"),this.K.df("shopping_overlay_preview_expanded"),a=iZ(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),gZ(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.K.df("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.K.hf([a])),
this.ra=!0,sX(this);hZ(this)};
g.k.Sf=function(a){(this.Z=a)?(rX(this),sX(this,!1)):(Y3a(this),this.Pa.start());this.Am()};
g.k.hf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.K.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;gZ(d)&&(R3a(d,a),c.push(iZ(d.startSec,d.endSec,"shopping_overlay_visible")));gZ(e)&&(R3a(e,a),d=e.startSec+1,c.push(iZ(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(iZ(d,e.endSec,"shopping_overlay_preview_expanded")));gZ(b)&&(R3a(b,a),c.push(iZ(b.startSec,b.endSec,"shopping_overlay_expanded")));this.K.hf(c)};g.w(a4a,g.S);
a4a.prototype.Ta=function(){var a=this.api.V();g.Mx(this,g.HP(a)&&this.api.jd());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.Kb&&!!b.profilePicture:g.HP(a)&&(c=!!b.videoId&&!!b.Kb&&!!b.profilePicture&&!g.QR(b)&&!a.C&&!(a.W&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.HP(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.OE("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.yp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Ap(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.U);this.api.logVisibility(this.channelName,c&&this.U);this.subscribeButton&&(this.subscribeButton.channelId=b.Bm);this.updateValue("expandedTitle",b.expandedTitle)};g.w(jZ,g.uS);jZ.prototype.show=function(){g.uS.prototype.show.call(this);this.j.start()};
jZ.prototype.hide=function(){g.uS.prototype.hide.call(this);this.j.stop()};
jZ.prototype.Bu=function(a,b){a==="dataloaded"&&((this.Mj=b.Mj,this.zf=b.zf,isNaN(this.Mj)||isNaN(this.zf))?this.C&&(this.K.df("intro"),this.K.removeEventListener(g.DE("intro"),this.L),this.K.removeEventListener(g.EE("intro"),this.G),this.K.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.K.addEventListener(g.DE("intro"),this.L),this.K.addEventListener(g.EE("intro"),this.G),this.K.addEventListener("onShowControls",this.D),a=new g.BE(this.Mj,this.zf,{priority:9,namespace:"intro"}),
this.K.hf([a]),this.C=!0))};g.w(kZ,g.S);kZ.prototype.onClick=function(){this.K.Ov()};
kZ.prototype.Ta=function(){var a=!0;g.HP(this.K.V())&&(a=a&&this.K.qb().getPlayerSize().width>=480);g.Mx(this,a);this.updateValue("icon",this.K.Bi()?{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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"}}]}:
{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.w(c4a,g.S);c4a.prototype.xa=function(){this.j=null;g.S.prototype.xa.call(this)};g.w(lZ,g.S);lZ.prototype.onClick=function(){this.K.gb("innertubeCommand",this.B)};
lZ.prototype.W=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
lZ.prototype.L=function(){this.j.disabled=this.B==null;g.Cp(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Uc()};g.w(mZ,lZ);mZ.prototype.onClickCommand=function(a){g.Q(a,mR)&&this.Uc()};
mZ.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,EQ);var f;this.B=(f=g.Q(a==null?void 0:a.playerBarActionButton,g.YJ))==null?void 0:f.command;lZ.prototype.L.call(this)};
mZ.prototype.Uc=function(){var a="",b=this.D.j,c,d=((c=this.K.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.K.getProgressState().current*1E3;c=WY(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.C)this.K.gb("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;lZ.prototype.W.call(this,a)};g.w(nZ,g.S);nZ.prototype.G=function(a){g.T(a.state,32)?f4a(this,this.api.Nk()):this.Eb&&(g.T(a.state,16)||g.T(a.state,1))||this.j.hide()};
nZ.prototype.Jg=function(){var a=this.api.getPlayerStateObject();(g.T(a,32)||g.T(a,16))&&g4a(this)};
nZ.prototype.L=function(){this.C=NaN;g4a(this)};
nZ.prototype.hide=function(){this.B&&f4a(this,null);g.S.prototype.hide.call(this)};g.w(h4a,g.S);g.k=h4a.prototype;g.k.onClick=function(){var a=this;if(this.K.V().Db||this.K.V().W){this.K.logClick(this.element);try{this.K.toggleFullscreen().catch(function(b){a.aG(b)})}catch(b){this.aG(b)}}else vS(this.message,this.element,!0)};
g.k.aG=function(a){String(a).includes("fullscreen error")?g.fx(a):g.ex(a);this.DS()};
g.k.DS=function(){this.disable();this.message.md(this.element,!0)};
g.k.Ny=function(){Ks()===this.K.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.b8=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.DS()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(Hs(["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.uS(this.K,{J:"div",Ka:["ytp-popup","ytp-generic-popup"],Y:{role:"alert",tabindex:"0"},X:[b[0],{J:"a",Y:{href:"https://support.google.com/youtube/answer/6276924",
target:this.K.V().Z},ya:b[2]},b[4]]},100,!0);this.message.hide();g.P(this,this.message);this.message.subscribe("show",function(c){a.Ve.nF(a.message,c)});
g.qS(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Ta=function(){var a=YNa(this.K),b=this.K.V().W&&this.K.getPlayerSize().width<250;g.Mx(this,a&&!b);var c;((c=this.K.V())==null?0:c.N("embeds_use_parent_visibility_in_ve_logging"))?this.K.logVisibility(this.element,this.Eb&&this.U):this.K.logVisibility(this.element,this.Eb)};
g.k.pm=function(a){if(a){var b={J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"g",S:"ytp-fullscreen-button-corner-2",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",S:"ytp-fullscreen-button-corner-3",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{J:"g",S:"ytp-fullscreen-button-corner-0",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{J:"g",
S:"ytp-fullscreen-button-corner-1",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.iS(this.K,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.K.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.fx(c)})}else b={J:"svg",
Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"g",S:"ytp-fullscreen-button-corner-0",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{J:"g",S:"ytp-fullscreen-button-corner-1",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{J:"g",S:"ytp-fullscreen-button-corner-2",X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",S:"ytp-fullscreen-button-corner-3",
X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.iS(this.K,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});this.Ve.Ze().ri()};
g.k.xa=function(){this.message||((0,this.j)(),this.j=null);g.S.prototype.xa.call(this)};
g.k.yc=function(a){g.S.prototype.yc.call(this,a);var b;((b=this.K.V())==null?0:b.N("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.Eb&&a)};g.w(oZ,g.S);oZ.prototype.onClick=function(){this.K.logClick(this.element);this.K.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.K.Pi().ox;c&&RY(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.z(a)),g.rp(this.B))};g.w(pZ,lZ);pZ.prototype.onClickCommand=function(a){g.Q(a,idb)&&this.Uc()};
pZ.prototype.updateVideoData=function(){var a,b;this.B=(a=j4a(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;lZ.prototype.L.call(this)};
pZ.prototype.Uc=function(){var a="",b=this.D.L,c,d=(c=j4a(this))==null?void 0:c.headerTitle;c=d?g.Qx(d):"";var e;d=((e=this.K.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.K.getProgressState().current*1E3,e=s3a(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.K.gb("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));lZ.prototype.W.call(this,a)};g.w(qZ,g.S);qZ.prototype.onClick=function(){this.K.gb("onCollapseMiniplayer");this.K.logClick(this.element)};
qZ.prototype.Ta=function(){this.visible=!this.K.isFullscreen();g.Mx(this,this.visible);this.K.logVisibility(this.element,this.visible&&this.U)};
qZ.prototype.yc=function(a){g.S.prototype.yc.call(this,a);this.K.logVisibility(this.element,this.visible&&a)};g.w(k4a,g.S);g.k=k4a.prototype;g.k.IW=function(a){this.visible=a.width>=300||this.Fa;g.Mx(this,this.visible);this.K.logVisibility(this.element,this.visible&&this.U)};
g.k.bca=function(){this.K.V().Va?this.K.isMuted()?this.K.unMute():this.K.mute():vS(this.message,this.element,!0);this.K.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.K.V();a=d===0?1:a>50?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?n4a(this,a):G0a(this.Ea,function(l){n4a(c,f+(c.G-f)*l)},250);
this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Z;isNaN(h)?o4a(this,d):G0a(this.qa,function(l){o4a(c,h+(c.D-h)*l)},250);
this.D=d}e.Va&&(e=g.iS(this.K,"Mute","m"),d=g.iS(this.K,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.ri())};
g.k.yc=function(a){g.S.prototype.yc.call(this,a);this.K.logVisibility(this.element,this.visible&&a)};
var l4a=["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"],m4a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.w(g.rZ,g.S);g.rZ.prototype.onStateChange=function(a){this.xd(a.state)};
g.rZ.prototype.xd=function(a){var b=g.BR(this.K.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.T(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.iS(this.K,"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.iS(this.K,"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:p4a(a)}):(this.update({title:b}),(b=p4a(a))&&this.j&&this.j!==3?I0a(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.ri();this.j=a}};
g.rZ.prototype.onVideoDataChange=function(){g.Cp(this.element,"ytp-play-button-playlist",g.nS(this.K))};
g.rZ.prototype.xt=function(a){this.K.logClick(this.element);if(this.K.getPlayerStateObject().isOrWillBePlaying())this.K.pauseVideo();else{if(this.K.isMinimized()&&this.K.getPlayerStateObject().isCued()){var b={},c;if((c=this.K.getVideoData())==null?0:c.L)b.cttAuthInfo={token:this.K.getVideoData().L,videoId:this.K.getVideoData().videoId};wA("direct_playback",b);this.K.Sh().timerName="direct_playback"}else this.j===3&&cY(this.K.Sh());this.K.playVideo()}this.K.isMinimized()&&(a==null?void 0:a.type)===
"click"&&this.element.blur()};g.w(g.sZ,g.S);g.k=g.sZ.prototype;g.k.onVideoDataChange=function(){r4a(this);this.D&&(this.Nc(this.D),this.D=null);this.videoData=this.K.getVideoData(1);if(this.playlist=this.K.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.T(this.K,"progresssync",this.T6);this.C=s4a(this);q4a(this);this.vO(this.K.qb().getPlayerSize())};
g.k.vO=function(a){a=a===void 0?this.K.qb().getPlayerSize():a;var b,c=((b=this.K.getLoopRange())==null?void 0:b.type)==="clips";a=(g.nS(this.K)||this.j&&g.rS(this.K)&&!this.K.N("web_hide_next_button")||t4a(this))&&!c&&(this.j||a.width>=400);g.Mx(this,a);this.K.logVisibility(this.element,a)};
g.k.onClick=function(a){this.K.logClick(this.element);var b=!0;this.L?b=g.dT(a,this.K):a.preventDefault();b&&(this.j&&this.K.getPresentingPlayerType()===5?this.K.publish("ytoprerollinternstitialnext"):this.j?(cY(this.K.Sh()),this.K.publish("playlistnextbuttonclicked",this.element),this.K.nextVideo(!0)):this.C?this.K.seekTo(0):(cY(this.K.Sh()),this.K.publish("playlistprevbuttonclicked",this.element),this.K.previousVideo(!0)))};
g.k.T6=function(){var a=s4a(this);a!==this.C&&(this.C=a,q4a(this))};
g.k.xa=function(){this.B&&(this.B(),this.B=null);r4a(this);g.S.prototype.xa.call(this)};g.w(v4a,g.S);g.k=v4a.prototype;g.k.V6=function(a){this.xO(a.pageX);this.wO(a.pageX+a.deltaX);w4a(this)};
g.k.xO=function(a){this.qa=a-this.La};
g.k.wO=function(a){a-=this.La;!isNaN(this.qa)&&this.thumbnails.length>0&&(this.Z=a-this.qa,this.thumbnails.length>0&&this.Z!==0&&(this.C=this.W+this.Z,a=B4a(this,this.C),this.C<=this.j/2&&this.C>=A4a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Bm(this.Ba,"transform","translateX("+(this.C-this.j/2)+"px)"),u4a(this,a)):this.C=this.W))};
g.k.U6=function(){this.ra&&(this.ra.iB=!0);var a=(0,g.Vt)()-this.Va<300;if(Math.abs(this.Z)<5&&!a){this.Va=(0,g.Vt)();a=this.qa+this.Z;var b=this.j/2-a;this.xO(a);this.wO(a+b);w4a(this);this.api.logClick(this.G)}w4a(this)};
g.k.XB=function(){tZ(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(B4a(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.Pa,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.lc=function(a,b){this.La=a;this.j=b;tZ(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Pa=this.api.getCurrentTime(),u4a(this,this.Pa),g.Cp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ma=this.T(this.element,"wheel",this.V6),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Cp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Ma&&this.Nc(this.Ma);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.w(x4a,g.S);g.w(y4a,g.S);g.w(C4a,g.S);g.w(uZ,g.S);uZ.prototype.Jb=function(a){return a==="PLAY_PROGRESS"?this.L:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};F4a.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.xg(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.w(G4a,g.S);g.w(g.xZ,g.Nx);g.k=g.xZ.prototype;
g.k.U3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.df("timedMarkerCueRange");J4a(this);for(var c=g.x(b.ib),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.Pa[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.Pa[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.x(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new G4a;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;P4a(this,f)}Q4a(this,this.L);a=this.L;f=this.yf;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=v3a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.hf(e);this.Xf=this.Pa[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.Pa[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&&I4a(this);n=[];l&&n.push(l);for(var r=g.x(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var u=Number(t.startMillis);u>=p&&u<=q&&n.push(t)}e>0&&(this.ra.style.height=
e+"px");p=this.G[m];q=n;t=f;var y=e,A=m===0;A=A===void 0?!1:A;D4a(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 K=(H+.5)*C,N=100-g.xg((r[H].intensityScoreNormalized||0)*100,t/u*100,y/u*100);H!==0||A||F.push({x:0,y:N});F.push({x:K,y:N});H===r.length-1&&F.push({x:1E3,y:N})}F.push({x:1E3,y:100});r=F;q=q.length===0?"":wva(r);p.C.setAttribute("d",q);p.Be=q!=="";g.Cp(p.api.getRootNode(),"ytp-heat-map",p.Be);n.length>0&&(l=n[n.length-1])}g.yZ(this)}e=
void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.x(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.Qx(e.label):""});d=f;this.heatMarkersDecorations=d}}b.nL=this.L;g.Cp(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.lc=function(){g.yZ(this);BZ(this);Q4a(this,this.L);if(this.B){var a=g.Jm(this.element).x||0;this.B.lc(a,this.W)}};
g.k.onClickCommand=function(a){if(a=g.Q(a,mR)){var b=a.key;a.isVisible&&b&&U4a(this,b)}};
g.k.rda=function(a){this.api.gb("innertubeCommand",this.yf[a.id])};
g.k.Uc=function(){BZ(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.VM()};
g.k.W6=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.N("enable_key_press_seek_logging")&&GZ(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.N("enable_key_press_seek_logging")&&GZ(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.Bu=function(a,b){this.updateVideoData(b,a==="newdata")};
g.k.o$=function(){this.Bu("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.Be();if(c&&(PR(a)||Z4a(this)?this.zf=!1:this.zf=a.allowLiveDvr,g.Cp(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!PR(a))),this.api.N("enable_custom_playhead_parsing"))){var d,e,f,h=g.Q((d=a.getWatchNextResponse())==null?void 0:(e=d.playerOverlays)==null?void 0:(f=e.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,EQ);if(h==null?0:h.progressColor)for(d=0;d<this.j.length;d++)this.j[d].Jb("PLAY_PROGRESS").style.background=
g.mz(h.progressColor);h=g.Q(h==null?void 0:h.playhead,zdb);var l,m;d=(h==null?void 0:(l=h.playheadImage)==null?void 0:l.thumbnails)&&(h==null?void 0:(m=h.playheadImage)==null?void 0:m.thumbnails[0].url);g.Cp(this.Ph,"ytp-decorated-scrubber-container",!!d);var n;if(h==null?0:(n=h.loggingDirectives)==null?0:n.trackingParams){var p;this.api.setTrackingParams(this.Dd,h==null?void 0:(p=h.loggingDirectives)==null?void 0:p.trackingParams);this.api.createServerVe(this.Dd,this)}d&&(this.Dd.src=d)}j5a(this,
this.api.Bh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;HZ(this);for(DZ(this,this.qa,this.ib);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.tb={};var q;(q=this.B)==null||q.reset();MZ(this);g.Cp(this.api.getRootNode(),"ytp-fine-scrubbing-exp",wZ(this))}else this.VM();this.Ai()}if(a){var r;q=((r=this.Hb)==null?void 0:r.type)==="clips";if(r=!a.isLivePlayback){r=this.api.getVideoData();b=g.FQ(r);c=L4a(r);var t;r=b!=null||c!=null&&c.length>0||((t=
r.sx)==null?void 0:t.length)>0}if(r&&!q){t=this.api.getVideoData();q=g.FQ(t);r=!1;if(q==null?0:q.markersMap){r=this.api.getVideoData();var u;r.Kw=((u=q.visibleOnLoad)==null?void 0:u.key)||r.Kw;u=g.x(q.markersMap);for(q=u.next();!q.done;q=u.next())q=q.value,q.key&&q.value&&(this.tb[q.key]=q.value,q.value.onChapterRepeat&&(r.d5=q.value.onChapterRepeat));r.Kw!=null&&U4a(this,r.Kw);r=!0}var y;if(((y=t.sx)==null?void 0:y.length)>0){y=g.nR.getState().entities;u=g.x(t.sx);for(q=u.next();!q.done;q=u.next())if(q=
q.value,c=void 0,b=(c=IB(y,"macroMarkersListEntity",q))==null?void 0:c.markersList,l=c=void 0,((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((l=b)==null?void 0:l.markerType)==="MARKER_TYPE_HEATMAP")this.Pa[q]=b;r=this.U3()||r}!r&&(y=L4a(t))&&(N4a(this,y),t.vl=this.j,M4a(this));$4a(this,null);a.aX&&this.G.length===0&&(a=a.aX,y=a.key,a.isVisible&&y&&U4a(this,y))}else H4a(this),J4a(this)}BZ(this)};
g.k.p$=function(a){this.Z&&!g.T(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Z.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.T(a.state,8)&&this.api.pauseVideo();this.api.N("web_always_show_scrubber")&&(a=this.api.getPresentingPlayerType()===2||!this.api.Bh()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0,g.Cp(this.Se,"ytp-hide-scrubber-button",a))};
g.k.JW=function(a){var b=!!this.Hb!==!!a,c=this.Hb;this.Hb=a;$4a(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",Vsa()),this.updateValue("clipendicon",Vsa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Nsa()),this.updateValue("clipendicon",Msa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.yZ(this)),HZ(this));DZ(this,this.qa,this.ib)};
g.k.sca=function(a,b,c){var d=g.Jm(this.element),e=AZ(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=hz(this.C,Number(c.getAttribute("data-position")),0)*e+g.Jm(this.progressBar).x);this.eb.x=a-d.x;this.eb.y=b-d.y;a=AZ(this);c=FZ(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:PR(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=hz(this.C,m)*AZ(this).j),b=this.C.B;
Z4a(this)&&(b=this.C.B);m=f||g.Yy(this.zf?c-this.C.j:c-b);b=a.position+this.lh;c-=this.api.Mc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.Nk()){if(this.j.length>1){n=EZ(this,this.eb.x,!0);if(!this.Hb)for(d=0;d<this.j.length;)g.Cp(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.Cp(this.G[d].element,"ytp-heatmap-hover",d===n)}if(this.L.length>0)for(n=this.eb.x,d=g.x(this.L),e=d.next();!e.done;e=d.next())e=e.value,h=zZ(this,e.timeRangeStartMillis/
(this.C.j*1E3),AZ(this)),g.Cp(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.N("web_key_moments_markers")?this.Xf?(n=s3a(this.L,c*1E3),n=n!=null?this.L[n].title:""):(n=WY(this.j,c*1E3),n=this.j[n].title):(n=WY(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.N("web_cairo_modern_miniplayer")?(l=this.api.qb().getPlayerSize().height-225,l=n?l+110:l+110+16,this.api.N("web_cairo_modern_miniplayer_inset_progress_bar")&&
(l-=12)):l=n?110:126);d=WY(this.j,c*1E3);this.Ba=a5a(this,c,d)?d:a5a(this,c,d+1)?d+1:-1;g.Cp(this.api.getRootNode(),"ytp-progress-bar-snap",this.Ba!==-1&&this.j.length>1);d=!1;e=g.x(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.Yy(h.decorationTimeMillis/1E3),d=!0)}this.Gd!==d&&(this.Gd=d,this.api.logVisibility(this.Fd,this.Gd));g.Cp(this.api.getRootNode(),"ytp-progress-bar-decoration",
d);d=160*this.tooltip.scale*2;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.W-a.position&&(d=2);this.api.V().W&&(l-=10);this.G.length&&this.G[0].Be&&(l-=14*(this.D?2:1),this.Ma||(this.Ma=!0,this.api.logVisibility(this.ra,this.Ma)));var q;if(wZ(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Ua>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?JZ(this):this.Ua}q=void 0;wZ(this)&&(q="Pull up for precise seeking",this.Fa||(this.Fa=!0,this.api.logVisibility(this.kd,
this.Fa)));this.tooltip.sN(b,c,m,!!f,l,n,d,q)}else this.tooltip.sN(b,c,m,!!f,l);g.yp(this.api.getRootNode(),"ytp-progress-bar-hover");Y4a(this)};
g.k.rca=function(){this.Ai();g.Ap(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ma&&(this.Ma=!1,this.api.logVisibility(this.ra,this.Ma));this.Fa&&(this.Fa=!1,this.api.logVisibility(this.kd,this.Fa))};
g.k.qca=function(a,b){wZ(this)&&this.B&&(this.B.Fa?tZ(this.B,this.api.getCurrentTime()):z4a(this.B),this.B.show(),g.Cp(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Xd&&(this.Xd.dispose(),this.Xd=null);this.Oh=b;this.He=this.api.getCurrentTime();this.j.length>1&&this.Ba!==-1?this.api.seekTo(this.j[this.Ba].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(FZ(this,AZ(this)),!1,void 0,void 0,7);g.yp(this.element,"ytp-drag");(this.Rg=this.api.getPlayerStateObject().isOrWillBePlaying())&&
this.api.pauseVideo()};
g.k.tca=function(){if(wZ(this)&&this.B){var a=JZ(this);this.Ua>=a*.5?(this.B.enable(),tZ(this.B,this.api.getCurrentTime()),i5a(this,a)):MZ(this)}if(g.T(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.Ba!==-1)this.api.N("html5_enable_progress_bar_slide_seek_logging")&&GZ(this,this.He,this.j[this.Ba].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER",
"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.j[this.Ba].startTime/1E3,void 0,void 0,void 0,7);else{a=FZ(this,AZ(this));this.api.N("html5_enable_progress_bar_slide_seek_logging")&&GZ(this,this.He,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.x(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.Fd)}g.Ap(this.element,"ytp-drag");this.Rg&&!g.T(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.k.uca=function(a,b){a=AZ(this);a=FZ(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;wZ(this)&&((c=this.B)==null?0:c.Fa)&&(tZ(this.B,a),this.B.isEnabled||(this.Ua=g.xg(this.Oh-b-10,0,JZ(this)),i5a(this,this.Ua)))};
g.k.Ai=function(){this.tooltip.hR()};
g.k.E0=function(){this.Hb||(this.updateValue("clipstarticon",Lsa()),this.updateValue("clipendicon",Lsa()),g.yp(this.element,"ytp-clip-hover"))};
g.k.D0=function(){this.Hb||(this.updateValue("clipstarticon",Nsa()),this.updateValue("clipendicon",Msa()),g.Ap(this.element,"ytp-clip-hover"))};
g.k.VM=function(){this.clipStart=0;this.clipEnd=Infinity;HZ(this);DZ(this,this.qa,this.ib)};
g.k.gga=function(a){a=g.x(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.mh("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Sb[c]=d;g.wp(d,b.style);b5a(this,c);this.api.V().N("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else h5a(this,b)};
g.k.vea=function(a){a=g.x(a);for(var b=a.next();!b.done;b=a.next())h5a(this,b.value)};
g.k.vx=function(a){this.B&&(this.B.onExit(a!=null),MZ(this))};
g.k.dQ=function(a){this.B&&(this.B.play(a!=null),MZ(this))};
g.k.hga=function(){j5a(this,this.api.Bh())};
g.k.xa=function(){j5a(this,!1);g.Nx.prototype.xa.call(this)};g.w(NZ,g.S);NZ.prototype.isActive=function(){return!!this.K.getOption("remote","casting")};
NZ.prototype.Ta=function(){var a=!1;this.K.getOptions().includes("remote")&&(a=this.K.getOption("remote","receivers").length>1);g.Mx(this,a&&this.K.qb().getPlayerSize().width>=400);this.K.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",{J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},X:[{J:"path",Gc:!0,Y:{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.Ksa())}g.Cp(this.element,"ytp-remote-button-active",this.isActive())}};
NZ.prototype.B=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var a=this.Fb,b=this.element;if(a.Rk())a.Pb();else{a.initialize();a:{var c=g.x(a.We.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.md(b));a.md(b)}}this.K.logClick(this.element)};g.w(OZ,g.S);OZ.prototype.j=function(a){var b=this.K.V(),c=400;this.K.N("web_player_small_hbp_settings_menu")&&b.L?c=300:b.W&&(c=200);a=this.B&&a.width>=c;g.Mx(this,a);this.K.logVisibility(this.element,a)};
OZ.prototype.C=function(){if(this.Fb.Eb)this.Fb.Pb();else{var a=g.nY(this.K.Bb());a&&!a.loaded&&(a.oi("tracklist",{includeAsr:!0}).length||a.load());this.K.logClick(this.element);this.Fb.md(this.element)}};
OZ.prototype.updateBadge=function(){var a=this.K.isHdr(),b=this.K.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.pS(this.K),e=c&&!!g.oS(this.K.Bb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.K.getPlaybackQuality();g.Cp(this.element,"ytp-hdr-quality-badge",a);g.Cp(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.Cp(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.Cp(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.Cp(this.element,"ytp-8k-quality-badge",
!a&&c==="highres");g.Cp(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Cp(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(PZ,ZS);PZ.prototype.isLoaded=function(){var a=g.tY(this.K.Bb());return a!==void 0&&a.loaded};
PZ.prototype.Ta=function(){g.tY(this.K.Bb())!==void 0&&this.K.getPresentingPlayerType()!==3?this.j||(this.Fb.Vc(this),this.j=!0):this.j&&(this.Fb.Kh(this),this.j=!1);cT(this,this.isLoaded())};
PZ.prototype.onSelect=function(a){this.isLoaded();a?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module");this.K.publish("annotationvisibility",a)};
PZ.prototype.xa=function(){this.j&&this.Fb.Kh(this);ZS.prototype.xa.call(this)};g.w(QZ,g.EX);QZ.prototype.Ta=function(){var a=this.K.getAvailableAudioTracks();a.length>1?(this.Ll(g.Ml(a,this.j)),this.tracks=g.pc(a,this.j,this),this.countLabel.Ed(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Li(this.j(this.K.getAudioTrack())),this.enable(!0)):this.enable(!1)};
QZ.prototype.kh=function(a){g.EX.prototype.kh.call(this,a);this.K.setAudioTrack(this.tracks[a]);this.Fb.rj()};
QZ.prototype.j=function(a){return a.toString()};g.w(RZ,ZS);
RZ.prototype.B=function(){var a=this.K.getPresentingPlayerType();if(a!==2&&a!==3&&g.rS(this.K))this.j||(this.Fb.Vc(this),this.j=!0,this.C.push(this.T(this.K,"videodatachange",this.B)),this.C.push(this.T(this.K,"videoplayerreset",this.B)),this.C.push(this.T(this.K,"onPlaylistUpdate",this.B)),this.C.push(this.T(this.K,"autonavchange",this.D)),a=this.K.getVideoData(),this.D(a.autonavState),this.K.logVisibility(this.element,this.j));else if(this.j){this.Fb.Kh(this);this.j=!1;a=g.x(this.C);for(var b=a.next();!b.done;b=
a.next())this.Nc(b.value)}};
RZ.prototype.D=function(a){cT(this,a!==1)};
RZ.prototype.onSelect=function(a){this.K.ZM(a?2:1);this.j&&(this.K.logVisibility(this.element,this.j),this.K.logClick(this.element))};
RZ.prototype.xa=function(){this.j&&this.Fb.Kh(this);ZS.prototype.xa.call(this)};g.w(l5a,g.xS);l5a.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.bS(this.K))==null||(c=b.dn())==null||c.Pb();var d,e;(d=g.bS(this.K))==null||(e=d.UY())==null||e.md(a.target)};g.w(m5a,g.EX);g.k=m5a.prototype;
g.k.PD=function(){var a=this.K.getPresentingPlayerType();if(a!==2&&a!==3){this.Ba=this.K.nu();a=this.K.getAvailableQualityLevels();if(this.j){this.D={};var b=g.YR(this.K,"getAvailableQualityData",[]);b=g.x(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.Ea=new Set(a)}else if(this.G){c=g.YR(this.K,"getAvailableQualityData",[]);b=[];c=g.x(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Z[d.quality]=
d,d.quality&&b.push(d.quality);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.FNa(this.K)&&this.K.Kx()&&b.unshift("missing-qualities");GNa(this.K)&&b.unshift("inline-survey");this.Ll(b);a=this.K.getVideoData().cotn?!0:!1;c=this.ra.Ah();c=!g.bQ(this.K.V())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;a.MZ&&g.Cp(a.Da("ytp-panel-footer"),"ytp-panel-hide-footer",c===void 0?!1:c);if(b.length){this.KW();this.enable(!0);return}}this.enable(!1)};
g.k.KW=function(){if(this.j){var a=this.K.getPreferredQuality();this.Ea.has(a)&&(this.L=this.K.getPlaybackQuality(),this.qa=this.K.getPlaybackQualityLabel(),a==="auto"?(this.Li(a),this.Ed(this.Kl(a))):this.Li(this.qa))}else a=this.K.getPreferredQuality(),this.options[a]&&(this.L=this.K.getPlaybackQuality(),this.Li(a),a==="auto"&&this.Ed(this.Kl(a)))};
g.k.kh=function(a){if(a!=="missing-qualities"){g.EX.prototype.kh.call(this,a);var b=this.j?this.D[a]:this.Z[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.K.logClick(e)}if(this.j){var h,l;if((h=g.Q(b,g.ddb))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.K.gb("innertubeCommand",b);else if(b){this.K.gb("innertubeCommand",b);return}d?this.K.setPlaybackQuality(c,
d):this.K.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.Q(b,g.ddb))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.K.gb("innertubeCommand",b);else if(b){this.K.gb("innertubeCommand",b);return}}this.K.setPlaybackQuality(a)}this.Fb.Pb();this.PD()}};
g.k.open=function(){for(var a=g.x(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.K.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.K.logVisibility((c=b)==null?void 0:c.element,!0))}g.EX.prototype.open.call(this);this.K.logClick(this.element)};
g.k.jA=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.xS({J:"a",Ka:["ytp-menuitem"],Y:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.V().Z,tabindex:"0",role:"menuitemradio"},X:[{J:"div",Ka:["ytp-menuitem-label"],ya:"{{label}}"}]},b,this.Kl(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Z[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.EX.prototype.jA.call(this,a,b,c);f?(this.K.createServerVe(b.element,
this,!0),this.K.setTrackingParams(b.element,f)):e&&this.K.createClientVe(b.element,this,e,!0);return b}a=[{J:"span",ya:"Looks good?"}];c=g.x([!0,!1]);f=c.next();for(e={};!f.done;e={jR:void 0},f=c.next())e.jR=f.value,f=new g.S({J:"span",S:"ytp-menuitem-inline-survey-response",X:[e.jR?Usa():Psa()],Y:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.jR,m=g.dS(d.K.app);m&&(m.oa("iqsr",{tu:l}),m.getVideoData().xV=!0);d.Fb.Pb();d.PD()}}(e)),a.push(f);
return new g.xS({J:"div",S:"ytp-menuitem",Y:{"aria-disabled":"true"},X:[{J:"div",Ka:["ytp-menuitem-label"],X:a}]},b)};
g.k.Kl=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{J:"div",ya:"Missing options?"};if(a==="inline-survey")return"";var c=this.G||this.j?[p5a(this,a,b,!1)]:[o5a(this,a)];var d=this.K.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(p5a(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(p5a(this,this.L,b,!0,["ytp-menu-label-secondary"])):c.push(o5a(this,this.L,["ytp-menu-label-secondary"])));return{J:"div",X:c}};g.w(SZ,g.S);SZ.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.L);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.B);q5a(this,this.B)};
SZ.prototype.G=function(){var a=Number(this.j.value);this.B=a;this.updateValue("slidervalue",this.B);this.j.valueAsNumber=this.B;q5a(this,a);this.j.focus()};g.w(TZ,SZ);TZ.prototype.G=function(){SZ.prototype.G.call(this);this.C&&(this.C.textContent=this.B+"x")};
TZ.prototype.ra=function(){this.qa()};
TZ.prototype.Z=function(){this.K.setPlaybackRate(this.B,!0)};g.w(UZ,g.S);g.k=UZ.prototype;g.k.init=function(){this.pz(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.C)};
g.k.Z6=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.W;break;case 39:case 38:b=this.W;break;default:return}this.pz(this.j+b);a.preventDefault()}};
g.k.X6=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Z:this.Z;this.pz(b);a.preventDefault()};
g.k.Y6=function(a){a=(a-g.Jm(this.D).x)/this.qa*this.range+this.B;this.pz(a)};
g.k.pz=function(a,b){b=b===void 0?"":b;a=g.xg(a,this.B,this.C);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Fa)+"px";this.j=a};
g.k.focus=function(){this.Ma.focus()};g.w(VZ,UZ);VZ.prototype.Ba=function(){this.K.setPlaybackRate(this.j,!0)};
VZ.prototype.pz=function(a){UZ.prototype.pz.call(this,a,s5a(this,a).toString());this.G&&(r5a(this),this.Ea())};
VZ.prototype.updateValues=function(){var a=this.K.getPlaybackRate();s5a(this,this.j)!==a&&(this.pz(a),r5a(this))};g.w(t5a,g.Nx);t5a.prototype.focus=function(){this.j.focus()};g.w(u5a,uX);g.w(v5a,g.EX);g.k=v5a.prototype;g.k.Kl=function(a){return a==="1"?"Normal":a.toLocaleString()};
g.k.Ta=function(){var a,b=(a=this.K.getVideoData())==null?void 0:a.gg();a=this.K.getPresentingPlayerType(b);this.enable(a!==2&&a!==3);z5a(this)};
g.k.Ll=function(a){g.EX.prototype.Ll.call(this,a);this.L&&this.L.j.focus()};
g.k.Wz=function(a){g.EX.prototype.Wz.call(this,a);a?(this.qa=this.T(this.K,"onPlaybackRateChange",this.onPlaybackRateChange),z5a(this),x5a(this,this.K.getPlaybackRate())):(this.Nc(this.qa),this.qa=null)};
g.k.onPlaybackRateChange=function(a){var b=this.K.getPlaybackRate();!this.G&&this.Z.includes(b)||y5a(this,b);x5a(this,a)};
g.k.jA=function(a,b,c){return a===this.j&&A5a(this.K)?g.EX.prototype.jA.call(this,a,b,c,{J:"div",S:"ytp-speed-slider-menu-footer",X:[this.L]}):g.EX.prototype.jA.call(this,a,b,c)};
g.k.kh=function(a){g.EX.prototype.kh.call(this,a);a===this.j?this.K.setPlaybackRate(this.D,!0):this.K.setPlaybackRate(Number(a),!0);A5a(this.K)&&a===this.j||this.Fb.rj()};
g.k.qO=function(a){var b=a===this.j;this.G=!1;b&&WZ(this.K)&&!A5a(this.K)?(a=new u5a(this.K),g.yX(this.Fb,a)):g.EX.prototype.qO.call(this,a)};g.w(C5a,g.EX);g.k=C5a.prototype;g.k.Li=function(a){g.EX.prototype.Li.call(this,a)};
g.k.LW=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Kl=function(a){return this.getOption(a).text||""};
g.k.kh=function(a){g.EX.prototype.kh.call(this,a);this.publish("settingChange",this.setting,this.settings[a].option)};g.w(XZ,g.vX);XZ.prototype.Ii=function(a){for(var b=g.x(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.bv[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Li(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
XZ.prototype.Yk=function(a,b){this.publish("settingChange",a,b)};g.w(YZ,g.EX);YZ.prototype.j=function(a){return a.languageCode};
YZ.prototype.Kl=function(a){return this.languages[a].languageName||""};
YZ.prototype.kh=function(a){this.publish("select",a);this.K.logClick(this.element);g.zX(this.Fb)};g.w(F5a,g.EX);g.k=F5a.prototype;g.k.QD=function(a){return g.Og(a)?"__off__":a.displayName};
g.k.Kl=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.kh=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var b=g.VL(this.K.V(),this.K.getVideoData());g.qz(b)}else if(a==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var c=G5a(this);ZZ(this,c);g.EX.prototype.kh.call(this,this.QD(c));var d,e;c=(b=this.K.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)==
null?void 0:e.openTranscriptCommand;this.K.gb("innertubeCommand",c);this.Fb.rj();this.D&&this.K.logClick(this.D)}else{if(a==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();b=G5a(this);ZZ(this,b);g.EX.prototype.kh.call(this,this.QD(b));var f,h;b=(c=this.K.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.K.gb("innertubeCommand",b)}else this.K.logClick(this.element),
ZZ(this,a==="__off__"?{}:this.tracks[a]),g.EX.prototype.kh.call(this,a);this.Fb.rj()}};
g.k.Ta=function(){var a=this.K.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.K.getVideoData(),c=b&&b.Gw,d,e=!((d=this.K.getVideoData())==null||!g.OR(d));d={};if(a||c){var f;if(a){var h=this.K.getOption("captions","track");d=this.K.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.K.getOption("captions","translationLanguages");this.tracks=g.pc(d,this.QD,this);e=g.Ml(d,this.QD);var m,n;G5a(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.Og(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
Bba(l,f)}D5a(this.j,l);e.push("__translate__")}f=this.QD(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.Ll(e);this.Li(f);h&&h.translationLanguage?this.j.Li(this.j.j(h.translationLanguage)):p0a(this.j);a&&this.G.Ii(this.K.getSubtitlesUserSettings());this.countLabel.Ed(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.K.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.a7=function(a){var b=this.K.getOption("captions","track");b=g.Rg(b);b.translationLanguage=this.j.languages[a];ZZ(this,b)};
g.k.Yk=function(a,b){if(a==="reset")this.K.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.K.updateSubtitlesUserSettings(c)}E5a(this,!0);this.L.start();this.G.Ii(this.K.getSubtitlesUserSettings())};
g.k.cda=function(a){a||g.tp(this.L)};
g.k.xa=function(){g.tp(this.L);g.EX.prototype.xa.call(this)};
g.k.open=function(){g.EX.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.K.createClientVe(this.D,this,167341),this.K.logVisibility(this.D,!0))};g.w(H5a,g.xX);g.k=H5a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.K.V();this.isInitialized=!0;try{this.CT=new m5a(this.K,this)}catch(c){g.fx(Error("QualityMenuItem creation failed"))}g.P(this,this.CT);var b=new F5a(this.K,this);g.P(this,b);a.C||(b=new PZ(this.K,this),g.P(this,b));a.enableSpeedOptions&&(b=new v5a(this.K,this),g.P(this,b));(g.HP(a)||a.L)&&(a.B||a.Ua)&&(b=new l5a(this.K,this),g.P(this,b));a.Xd&&!a.N("web_player_move_autonav_toggle")&&(a=new RZ(this.K,this),g.P(this,a));a=new QZ(this.K,this);
g.P(this,a);this.K.publish("settingsMenuInitialized");k5a(this.settingsButton,this.We.iq())}};
g.k.Vc=function(a){this.initialize();this.We.Vc(a);k5a(this.settingsButton,this.We.iq())};
g.k.Kh=function(a){this.Eb&&this.We.iq()<=1&&this.hide();this.We.Kh(a);k5a(this.settingsButton,this.We.iq())};
g.k.md=function(a){this.initialize();this.We.iq()>0&&g.xX.prototype.md.call(this,a)};
g.k.Pb=function(){this.wM?this.wM=!1:g.xX.prototype.Pb.call(this)};
g.k.show=function(){g.xX.prototype.show.call(this);g.yp(this.K.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.xX.prototype.hide.call(this);g.Ap(this.K.getRootNode(),"ytp-settings-shown")};
g.k.Sf=function(a){this.K.logVisibility(this.element,a);this.K.publish("settingsMenuVisibilityChanged",a)};g.w($Z,g.S);$Z.prototype.onClick=function(){if(J5a(this)&&(this.K.toggleSubtitles(),this.K.logClick(this.element),!this.isEnabled())){var a=!1,b=g.gt(g.ft(),65);g.bQ(this.K.V())&&b!=null&&(a=!b);a&&this.K.V().N("web_player_nitrate_promo_tooltip")&&this.K.publish("showpromotooltip",this.element)}};
$Z.prototype.j=function(a){var b,c;(b=g.bS(this.K))==null||(c=b.dn())==null||c.md(a)};
$Z.prototype.isEnabled=function(){return!!this.K.getOption("captions","track").displayName};
$Z.prototype.Ta=function(){var a=J5a(this),b=300;this.K.V().W&&(b=480);if(this.K.V().L){this.updateValue("title",g.iS(this.K,"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.iS(this.K,"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.ri();c=c&&this.K.qb().getPlayerSize().width>=b;g.Mx(this,c);this.K.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.w(g.a_,g.S);g.k=g.a_.prototype;
g.k.Uc=function(){var a=this.api.qb().getPlayerSize().width,b=this.W;this.api.V().W&&(b=400);b=a>=b&&(!b_(this)||!g.T(this.api.getPlayerStateObject(),64));g.Mx(this,b);g.Cp(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);c_(this)&&(c-=this.Hb.startTimeMs/1E3);c=g.Yy(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=c_(this)?g.Yy((this.Hb.endTimeMs-
this.Hb.startTimeMs)/1E3):g.Yy(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}K5a(this,a.isAtLiveHead);L5a(this,this.api.getLoopRange())};
g.k.onLoopRangeChange=function(a){var b=this.Hb!==a;this.Hb=a;b&&(this.Uc(),M5a(this))};
g.k.Bda=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().N("enable_topsoil_wta_for_halftime")||this.api.V().N("enable_topsoil_wta_for_halftime_live_infra"))&&c===2?this.api.getVideoData(1):b);this.Uc();M5a(this)};
g.k.updateVideoData=function(a){this.mG=a.isLivePlayback&&!a.rb;this.B=PR(a);this.isPremiere=a.isPremiere;g.Cp(this.element,"ytp-live",b_(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.w(O5a,g.S);g.k=O5a.prototype;g.k.Ny=function(){var a=this.api.Vh();this.C!==a&&(this.C=a,N5a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.MW=function(a){g.Mx(this,a.width>=350)};
g.k.d7=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.xg(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.b7=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.xg(b/10,-10,10));a.preventDefault()};
g.k.ida=function(){d_(this,this.j,!0,this.B,this.api.yn());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.c7=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Jm(this.W).x;this.api.setVolume(g.xg((a-c/2)/(b-c),0,1)*100)};
g.k.hda=function(){d_(this,this.j,!1,this.B,this.api.yn());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Z))};
g.k.onVolumeChange=function(a){N5a(this,a.volume,a.muted)};
g.k.dY=function(){d_(this,this.j,this.isDragging,this.B,this.api.yn())};
g.k.xa=function(){g.S.prototype.xa.call(this);g.Ap(this.L,"ytp-volume-slider-active")};g.w(e_,g.S);
e_.prototype.onVideoDataChange=function(){var a=this.api.V();this.lc();this.visible=!!this.api.getVideoData().videoId&&!g.QR(this.api.getVideoData(1));g.Mx(this,this.visible);this.api.logVisibility(this.element,this.visible&&this.U);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}a.C&&(this.j&&(this.Nc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.yp(this.element,"no-link"));
b=this.api.V();a=this.api.getVideoData();var c="";b.C||(b=g.XP(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.RR(a)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.OE("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",c)};
e_.prototype.onClick=function(a){this.api.N("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.Zy(a),!1,!0,!0);if(g.HP(b)){var d={};g.HP(b)&&g.YR(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.cj(c,d)}g.eT(c,this.api,a);this.api.N("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
e_.prototype.lc=function(){var a={J:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},X:[{J:"path",Gc:!0,S:"ytp-svg-fill",Y:{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.jd()?a={J:"svg",Y:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},X:[{J:"path",Y:{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.RR(c)&&(a={J:"svg",Y:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},X:[{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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"}},{J:"path",Y:{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.RR(c)?g.yp(this.element,"ytp-youtube-music-button"):g.Ap(this.element,"ytp-youtube-music-button");a.Y=Object.assign({},a.Y,{"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)};
e_.prototype.yc=function(a){g.S.prototype.yc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.w(Q5a,g.dG);g.k=Q5a.prototype;g.k.Jg=function(){if(this.K.N("web_player_max_seekable_on_ended")||!g.T(this.K.getPlayerStateObject(),2))this.progressBar.Uc(),this.Ea.Uc()};
g.k.TB=function(){this.gV();this.Sg.B?this.Jg():this.progressBar.Ai()};
g.k.e7=function(){this.Jg();this.Z.start()};
g.k.gV=function(){var a;if(a=!this.K.V().B){a=this.progressBar;var b=2*g.aQ()*a.W;a=a.C.getLength()*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.K.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Sg.B||(a=b=!1);b?this.Ba||(this.Ba=this.T(this.K,"progresssync",this.Jg)):this.Ba&&(this.Nc(this.Ba),this.Ba=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
g.k.lc=function(){var a=this.K.Vh(),b=this.K.qb().getPlayerSize(),c=S5a(this),d=Math.max(b.width-c*2,100);if(this.ib!==b.width||this.eb!==a){this.ib=b.width;this.eb=a;var e=T5a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.g5a(this.progressBar,c,e,a);this.K.Ze().NW=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-U5a(this))*.82));c.maxWidth=d;c.maxHeight=a;c.dD();this.gV();this.K.V().N("html5_player_dynamic_bottom_gradient")&&b4a(this.Za,
b.height)};
g.k.onVideoDataChange=function(){var a=this.K.getVideoData();this.Pa.style.background=a.Nf?a.cq:"";this.ra&&i4a(this.ra,a.showSeekingControls);this.qa&&i4a(this.qa,a.showSeekingControls)};
g.k.Jb=function(){return this.C.element};g.w(V5a,tX);g.k=V5a.prototype;g.k.TG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.K.gb("innertubeCommand",this.onClickCommand),this.qv())};
g.k.qv=function(){this.enabled=!1;this.qa.hide()};
g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&W5a(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,Cdb))==null?void 0:f.suggestedActions)for(c=g.x(b),d=c.next();!d.done;d=c.next())(d=g.Q(d.value,Ddb))&&g.Q(d.trigger,Bdb)&&a.push(d);if(a.length!==0){c=[];a=g.x(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.Q(d.trigger,Bdb))f=(f=d.title)?g.Qx(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.BE(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.K.hf(c)}};
g.k.rz=function(){return this.enabled};
g.k.Sf=function(){this.enabled?this.Pa.start():rX(this);this.Am()};
g.k.xa=function(){W5a(this);tX.prototype.xa.call(this)};var U2={},f_=(U2.CHANNEL_NAME="ytp-title-channel-name",U2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",U2.LINK="ytp-title-link",U2.SESSIONLINK="yt-uix-sessionlink",U2.SUBTEXT="ytp-title-subtext",U2.TEXT="ytp-title-text",U2.TITLE="ytp-title",U2);g.w(g_,g.S);g_.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.Zy(a),!1,!0);g.HP(b)&&(b={},g.YR(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.cj(c,b));g.eT(c,this.api,a)};
g_.prototype.Ta=function(){var a=this.api.getVideoData(),b=this.api.V();this.updateValue("title",a.title);var c={J:"a",S:f_.CHANNEL_NAME,Y:{href:"{{channelLink}}",target:"_blank"},ya:"{{channelName}}"};this.api.V().C&&(c={J:"span",S:f_.CHANNEL_NAME,ya:"{{channelName}}",Y:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);X5a(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Kb&&c.profilePicture?(this.updateValue("channelLink",
c.Kb),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):X5a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Cl;g.Cp(this.link,f_.FULLERSCREEN_LINK,c);b.ra||!a.videoId||c||g.QR(a)||b.C?this.j&&(this.updateValue("url",null),this.Nc(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.HP(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.h_,g.S);g.k=g.h_.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:Z5a(this);this.L.show();break;default:this.L.show()}else this.L.hide();this.Z=a};
g.k.sN=function(a,b,c,d,e,f,h,l){if(!this.La||this.env.W){this.type===3&&this.Ai();this.type!==1&&(g.wp(this.element,"ytp-tooltip ytp-bottom"),(e4a(this.api)||this.api.isInline())&&g.yp(this.element,"ytp-rounded-tooltip"),this.type=1,this.Z&&this.L.show(),this.B&&this.B.dispose(),(this.B=this.api.Nk())&&this.B.subscribe("l",this.K0,this));if(l){var m=g.Mm(this.bg).height||this.Ba;this.Pa.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.Cp(this.text,"ytp-tooltip-text-no-title",
this.type===1&&!f);this.api.isInline()&&g.yp(this.text,"ytp-modern-tooltip-text");g.Cp(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=OQ(this.B,this.W*this.scale),this.env.N("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=ELa(this.B,c,b));a6a(this,c);if(h)switch(b=g.Mm(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"}$5a(this,!!d,a,e)}};
g.k.hR=function(){this.type===1&&this.Ai()};
g.k.hI=function(a,b){if(this.type)if(this.type===3)this.Ai();else return;Y5a(this,a,3,b)};
g.k.ri=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Z&&Z5a(this))};
g.k.K0=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,a6a(this,a))};
g.k.iaa=function(){CLa(this.B,this.D,this.W*this.scale)};
g.k.Ai=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);b6a(this);break;case 3:b6a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.K0,this),this.B=null),this.api.removeEventListener("videoready",this.Ea),this.Fa.stop()}this.type=null;this.Z&&this.L.hide()};
g.k.Qm=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.sh(arguments[a],this.j)&&this.Ai()};
g.k.xa=function(){this.type!=null&&this.Ai();this.B&&this.B.dispose();g.S.prototype.xa.call(this)};g.w(d6a,g.S);g.k=d6a.prototype;g.k.RD=function(){this.visible=e6a(this);g.Mx(this,this.visible);this.icon&&g6a(this,this.icon);this.K.logVisibility(this.element,this.visible&&this.U)};
g.k.eg=function(){return this.K.getVideoData().videoId};
g.k.onClick=function(){this.K.logClick(this.element);var a=this.K.V(),b=this.eg();a.Ba?c6a(this):f6a(this,b)};
g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Ta(2);this.RD()};
g.k.Ta=function(a,b){var c=this.K.V();g6a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.OE("Added as $USER_NAME",a):g.OE("Watch later as $USER_NAME",a),image:iQ(c)})):this.update({title:"Watch later",image:null});this.K.ri()};
g.k.yc=function(a){g.S.prototype.yc.call(this,a);this.K.logVisibility(this.element,this.visible&&a)};g.w(g.i_,g.EY);g.k=g.i_.prototype;
g.k.init=function(){var a=this;this.ze=new g.HY(this.api);this.ox=new QY(this.api);this.Ji=new g.S({J:"div",S:"ytp-chrome-top"});this.tooltip=new g.h_(this.api,this);this.channelAvatar=new D2a(this.api);this.title=new g_(this.api);this.ih=new g.Jx({J:"div",S:"ytp-chrome-top-buttons"});this.oh=new v2a(this.api,this.Ji.element);this.Ng=this.api.V().controlsType==="1"?new Q5a(this.api,this,this.Sg):null;this.contextMenu=new N2a(this.api,this.ze);this.zF=new g.S({J:"div",Y:{tabindex:"0"}});this.yF=new g.S({J:"div",
Y:{tabindex:"0"}});var b=this.api.qb(),c=this.api.V(),d=this.api.getVideoData();this.zs&&(g.yp(this.api.getRootNode(),"ytp-embed"),g.yp(this.api.getRootNode(),"ytp-embed-playlist"),this.iL&&(g.yp(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.yp(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.mP=60,this.nP=89);this.api.V().C&&g.yp(this.api.getRootNode(),"ytp-embed-pfl");this.api.V().B&&(g.yp(this.api.getRootNode(),"ytp-mobile"),this.api.V().W&&g.yp(this.api.getRootNode(),"ytp-embed-mobile"));
d&&d.videoId&&(this.Oi=d&&d.getEmbeddedPlayerResponse());g.P(this,this.ze);g.qS(this.api,this.ze.element,4);g.P(this,this.ox);g.qS(this.api,this.ox.element,4);d=new g.S({J:"div",S:"ytp-gradient-top"});g.P(this,d);g.qS(this.api,d.element,1);this.yN=new g.Cy(d,250,!0,100);g.P(this,this.yN);g.P(this,this.Ji);g.qS(this.api,this.Ji.element,1);this.xN=new g.Cy(this.Ji,250,!0,100);g.P(this,this.xN);g.P(this,this.tooltip);g.qS(this.api,this.tooltip.element,4);var e=new E3a(this.api);g.P(this,e);g.qS(this.api,
e.element,5);e.subscribe("show",function(m){a.DA(e,m)});
this.yI.push(e);this.jC=new bZ(this.api,e);g.P(this,this.jC);!this.zs&&this.jC.Ha(this.Ji.element);g.P(this,this.channelAvatar);this.channelAvatar.Ha(this.Ji.element);g.P(this,this.title);this.title.Ha(this.Ji.element);this.zs&&(d=new a4a(this.api),g.P(this,d),d.Ha(this.Ji.element));g.P(this,this.ih);this.ih.Ha(this.Ji.element);var f=new O3a(this.api,this);g.P(this,f);g.qS(this.api,f.element,5);f.subscribe("show",function(m){a.DA(f,m)});
this.yI.push(f);this.searchButton=new eZ(this.api);g.P(this,this.searchButton);this.searchButton.Ha(this.ih.element);this.Gp=new d6a(this.api);g.P(this,this.Gp);this.Gp.Ha(this.ih.element);this.shareButton=new g.fZ(this.api,this,f);g.P(this,this.shareButton);this.shareButton.Ha(this.ih.element);this.copyLinkButton=new PY(this.api,this);g.P(this,this.copyLinkButton);this.copyLinkButton.Ha(this.ih.element);this.zs&&this.jC.Ha(this.ih.element);g.P(this,this.oh);this.oh.Ha(this.ih.element);c.Op&&(d=new jZ(this.api),
g.P(this,d),g.qS(this.api,d.element,4));c.C||(d=new w2a(this.api,this.oh),g.P(this,d),d.Ha(this.ih.element));this.Fi=new A3a(this.api);g.P(this,this.Fi);g.qS(this.api,this.Fi.element,5);this.Fi.subscribe("show",function(){a.DA(a.Fi,a.Fi.Rk())});
this.yI.push(this.Fi);this.overflowButton=new g.aZ(this.api,this.Fi);g.P(this,this.overflowButton);this.overflowButton.Ha(this.ih.element);this.Ng&&g.P(this,this.Ng);c.controlsType==="3"&&(d=new dZ(this.api),g.P(this,d),g.qS(this.api,d.element,9));g.P(this,this.contextMenu);this.contextMenu.subscribe("show",this.Z3,this);this.api.N("show_preskip_progress_bar_for_skippable_ads")||(d=new iz(this.api,new GY(this.api)),g.P(this,d),g.qS(this.api,d.element,4));this.zF.listen("focus",this.r9,this);g.P(this,
this.zF);this.yF.listen("focus",this.s9,this);g.P(this,this.yF);var h;(this.oy=c.yk?null:new x3a(this.api,b,this.contextMenu,this.Sg,this.ze,this.ox,function(){return a.Sr()},(h=this.Ng)==null?void 0:h.progressBar))&&g.P(this,this.oy);
this.zs||(this.JY=new U2a(this.api),g.P(this,this.JY),g.qS(this.api,this.JY.element,4),this.Q2=new T3a(this.api),g.P(this,this.Q2),g.qS(this.api,this.Q2.element,4));this.l3=new V5a(this.api);g.P(this,this.l3);g.qS(this.api,this.l3.element,4);if(this.zs){var l=new l3a(this.api,this.api.V().Ua);g.P(this,l);g.qS(this.api,l.element,5);l.subscribe("show",function(m){a.DA(l,m)});
b=new p3a(this.api,l);g.P(this,b);g.qS(this.api,b.element,4)}this.OG.push(this.ze.element);this.T(this.api,"fullscreentoggled",this.Ny);this.T(this.api,"offlineslatestatechange",function(){a.api.nG()&&uY(a.Sg,128,!1)});
this.T(this.api,"cardstatechange",function(){a.vr()});
this.T(this.api,"resize",this.vba);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.Vba);g.EY.prototype.init.call(this)};
g.k.Ze=function(){return this.tooltip};
g.k.MQ=function(){return this.Ng};
g.k.DA=function(a,b){b?this.aF=a:this.aF=null;this.vr()};
g.k.nF=function(a,b){if(b)this.ov.push(a);else for(b=this.ov.length;b>=0;b--)if(this.ov[b]===a){this.ov.splice(b,1);break}uY(this.Sg,64,this.ov.length>0)};
g.k.PC=function(){this.api.Nl()&&this.api.Up();return!!this.aF||h6a(this)||g.EY.prototype.PC.call(this)};
g.k.IC=ba(3);g.k.Zs=ba(7);g.k.Ys=ba(10);g.k.vr=function(){var a=!this.PC(),b=a&&this.api.Nl()&&!g.T(this.api.getPlayerStateObject(),2)&&!g.QR(this.api.getVideoData())&&!this.api.V().C&&!this.api.jd(),c=this.zs&&g.nS(this.api)&&g.T(this.api.getPlayerStateObject(),128);a||c?(this.xN.show(),this.yN.show()):(this.xN.hide(),this.yN.hide(),this.api.Qm(this.Ji.element));b?this.oh.md():this.oh.Pb();this.Ng&&R5a(this.Ng,this.jT||!a);this.api.N("web_player_hide_overflow_button_if_empty_menu")&&i6a(this);g.EY.prototype.vr.call(this)};
g.k.Vy=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Mm(a),h=d||this.Ng&&g.sh(this.Ng.Jb(),b),l=d=null;c!=null&&h||(d=g.Mm(b),l=g.Km(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Ng,d=S5a(b),l=T5a(b),h=this.api.qb().getPlayerSize().height,c=g.xg(c,d,d+l-f.width),f=h-U5a(b)-f.height):g.sh(this.Ji.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.xg(c,12,b-f.width-12),f=this.Vh()?this.nP:this.mP,this.api.V().playerStyle==="gvn"&&(f+=
20),this.zs&&(f-=this.Vh()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.xg(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.TB=function(a){a&&(this.api.Qm(this.Ji.element),this.Ng&&this.api.Qm(this.Ng.Jb()));this.iL&&(g.Cp(this.contextMenu.element,"ytp-autohide",a),g.Cp(this.contextMenu.element,"ytp-autohide-active",!0));g.EY.prototype.TB.call(this,a)};
g.k.pS=function(){g.EY.prototype.pS.call(this);this.iL&&(g.Cp(this.contextMenu.element,"ytp-autohide-active",!1),this.iL&&(this.contextMenu.hide(),this.Fi&&this.Fi.hide()))};
g.k.hn=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.ym(0,0,c.width,c.height);if(a||this.Sg.B&&!this.PC()){if(this.api.V().Vn||b)a=this.Vh()?this.nP:this.mP,c.top+=a,c.height-=a;this.Ng&&(c.height-=U5a(this.Ng))}return c};
g.k.Ny=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.V().externalFullscreen||(b.parentElement.insertBefore(this.zF.element,b),b.parentElement.insertBefore(this.yF.element,b.nextSibling))):g.ex(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.zF.detach(),this.yF.detach());this.lc();this.wr()};
g.k.Vh=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.W||!1};
g.k.showControls=function(a){this.CP=!a;this.vr()};
g.k.lc=function(){var a=this.Vh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Cp(this.contextMenu.element,"ytp-big-mode",a);this.vr();this.api.N("web_player_hide_overflow_button_if_empty_menu")||i6a(this);this.wr();var b=this.api.jd();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Bm(this.Ji.element,"padding-left",a+"px"),g.Bm(this.Ji.element,"padding-right",a+"px")):b&&(g.Bm(this.Ji.element,"padding-left",""),g.Bm(this.Ji.element,"padding-right",""));g.EY.prototype.lc.call(this)};
g.k.wQ=function(){if(h6a(this)&&!g.nS(this.api))return!1;var a=this.api.getVideoData();return!g.HP(this.api.V())||this.api.getPresentingPlayerType()===2||!this.Oi||((a=this.Oi||a.Oi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.Q(a.videoDetails,EMa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.EY.prototype.wQ.call(this):!1};
g.k.wr=function(){g.EY.prototype.wr.call(this);this.api.logVisibility(this.title.element,!!this.So);this.jC&&this.jC.yc(!!this.So);this.channelAvatar.yc(!!this.So);this.overflowButton&&this.overflowButton.yc(this.eh()&&!!this.So);this.shareButton&&this.shareButton.yc(!this.eh()&&!!this.So);this.Gp&&this.Gp.yc(!this.eh()&&!!this.So);this.searchButton&&this.searchButton.yc(!this.eh()&&!!this.So);this.copyLinkButton&&this.copyLinkButton.yc(!this.eh()&&!!this.So);if(!this.So){this.api.Qm(this.Ji.element);
for(var a=0;a<this.yI.length;a++){var b=this.yI[a];b.Rk()&&b.Pb()}}};
g.k.Fc=function(a){this.Ng&&R5a(this.Ng,this.PC());this.vr();g.EY.prototype.Fc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.oy?this.oy.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.oy?this.oy.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Sr=function(){if(this.contextMenu.Eb)return this.contextMenu.Pb(),!0;if(this.ov.length)return this.ov[this.ov.length-1].Pb(),!0;if(this.aF)return this.aF.Pb(),!0;this.Ng&&this.api.Qm(this.Ng.Jb());this.ih&&this.api.Qm(this.ih.element);return g.EY.prototype.Sr.call(this)};
g.k.iU=function(a,b){this.UR=b;this.nF(a,b);this.Z3()};
g.k.Z3=function(){var a=this.UR||this.contextMenu.Rk();this.WO!==a&&(this.WO=a,this.api.gb("onAutonavPauseRequest",this.WO))};
g.k.r9=function(){j6a(this,this.api.getRootNode(),!0).focus()};
g.k.s9=function(){j6a(this,this.api.getRootNode(),!1).focus()};
g.k.dn=function(){return this.Ng&&this.Ng.B};
g.k.Xv=function(){this.Sg.Xv()};
g.k.gR=function(){this.ze.hide()};
g.k.gI=function(a){this.ze.gI(!a.isOrWillBePlaying())};
g.k.KH=function(a,b,c,d){this.ox.KH(a,b,c,d)};
g.k.renderChapterSeekingAnimation=function(a,b,c){T2a(this.ox,a,b,c)};
g.k.vba=function(){k6a(this,!0)};
g.k.onReset=function(){i6a(this)};
g.k.Vba=function(a){k6a(this,!1,a)};
g.k.UY=function(){return this.contextMenu};
g.k.eA=function(a){var b;if((b=this.Ng)!=null){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.x(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.vx=function(){var a,b=(a=this.Ng)==null?void 0:a.progressBar;if(b){var c;((c=b.B)==null?0:c.isEnabled)&&b.vx()}};g.w(g.j_,g.gY);g.j_.prototype.Nn=function(){return!1};
g.j_.prototype.create=function(){var a=this.player.V();g.kz(a)&&a.B||a.disableOrganicUi?this.chrome=new g.EY(this.player):this.chrome=new g.i_(this.player);g.P(this,this.chrome);this.chrome.init();this.player.Mg("ux")};
g.j_.prototype.Pi=function(){return this.chrome};var k_=[],g8a=!1;g.w(l_,g.O);l_.prototype.L=function(){this.j!=null&&this.app.getVideoData()!==this.j&&XQ(this.j)&&M8a(this.app,this.j,void 0,void 0,this.B)};
l_.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.yb!=null&&this.C!=null&&this.D!=null&&XQ(this.j)){var a=n6a(this.yb,this.C,this.D);a==null?M8a(this.app,this.j,void 0,void 0,this.B):(this.yb.oa("sgap",a),this.yb.getVideoData().Z&&gX(this.yb,!1))}};
l_.prototype.U=function(a){var b=this.app.Rc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.oa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.oa("glrre",{cmt:c})}};
l_.prototype.xa=function(){this.j=null;g.O.prototype.xa.call(this)};g.w(g.m_,VG);g.k=g.m_.prototype;g.k.isView=function(){return!0};
g.k.OT=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Rh(),c=DG(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Gx=function(){return GG(this.mediaElement.Gx(),this.start,this.end)};
g.k.Rh=function(){return GG(this.mediaElement.Rh(),this.start,this.end)};
g.k.WA=function(){return GG(this.mediaElement.WA(),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.OT()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.wc=function(){var a=VG.prototype.wc.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.gJ=function(){return this.mediaElement.gJ()};
g.k.activate=function(a){this.mediaElement.activate(a)};
g.k.Xr=function(){return this.mediaElement.Xr()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.TP=function(){this.mediaElement.TP()};
g.k.PP=function(){this.mediaElement.PP()};
g.k.Aw=function(){return this.mediaElement.Aw()};
g.k.Jb=function(){return this.mediaElement.Jb()};
g.k.xi=function(){return this.mediaElement.xi()};
g.k.kN=function(a){this.mediaElement.kN(a)};
g.k.WM=function(){this.mediaElement.WM()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.pu=function(){return this.mediaElement.pu()};
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.yK=function(){return this.mediaElement.yK()};
g.k.HC=function(a){this.mediaElement.HC(a)};
g.k.hJ=function(){return this.mediaElement.hJ()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Jl=function(){return this.mediaElement.Jl()};
g.k.zK=function(){return this.mediaElement.zK()};
g.k.Th=function(){return this.mediaElement.Th()};
g.k.dg=function(){return this.mediaElement.dg()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Bi=function(){return this.mediaElement.Bi()};
g.k.Ov=function(){return this.mediaElement.Ov()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.wu=function(){return this.mediaElement.wu()};
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.FE=ba(44);g.k.sI=ba(46);g.k.tI=ba(48);g.k.oA=ba(50);g.k.sF=function(){return this.mediaElement.sF()};
g.k.Nt=function(a){this.mediaElement.Nt(a)};
g.k.VF=function(a){return this.mediaElement.VF(a)};
g.k.uR=function(){return this.mediaElement.uR()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.WP=function(a){this.mediaElement.WP(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.gU=function(a){this.mediaElement.gU(a)};g.w(q6a,g.O);g.k=q6a.prototype;g.k.getStatus=function(){return this.status};
g.k.uo=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.x(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.Le()){f=m6a(this.policy,this.j,this.B,this.Qn);h=r6a(this);c=h.z8;e=h.u0;d=h.rY;h=h.s0;if(!this.U){var l=this.B.xg()*1E3,m=this.j.xg();m=(d-c-m)*1E3;f&&f.msg==="in-the-past"&&(m=0);a=a.isAd();this.B.DH(l,
m,a);this.U=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.gh(b,f)):this.status.status===2?x6a(this):(a=this.j.Xr())&&RG(a)&&(!NG(a)&&g.is()?this.gh("mse_closed"):b.j&&yM(b.j)&&a.B&&!a.B.wK()?this.gh("encr_upgrade"):(b=this.j.Le(),b.isEnded()?this.gh("elem_ended"):e<0?this.gh("next_player_future"):(this.L=d,this.currentVideoDuration=d-c,this.C=Uxa(a,c,d,!0),this.D=Uxa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.oa("gaplessPrep",{cpn:a}),UZa(this.j,this.C,!1,u6a(this),this.Ld.V().N("html5_shorts_gapless_keep_pending_requests")&&
oR(this.j.getVideoData())),this.j.setMediaElement(s6a(b,c,d,!this.j.getVideoData().isAd())),o_(this,2),x6a(this))))}else this.gh("no-elem")};
g.k.Xz=function(a){var b=a===w6a(this).qU,c=b?this.C.j:this.C.B;b=b?this.D.j:this.D.B;if(c.isActive&&!b.isActive){var d=this.L;CG(a.Ke(),d-.01)&&(o_(this,4),c.isActive=!1,c.OI=c.OI||c.isActive,(this.G===1?this.j:this.B).oa("sbh",{}),b.isActive=!0,b.OI=b.OI||b.isActive,this.G!==0&&(this.j.getVideoData().LL=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(o_(this,5),this.G!==0)){a=this.B.yx();c=this.j.yx();this.j.oa("sbs",{citag:c==null?void 0:c.itag,nitag:a==null?void 0:a.itag});var e;if((e=this.B)!=
null&&oR(e.videoData)&&e.videoData.N("html5_gapless_append_early")){var f;(f=e.va)!=null&&f.xe()}}}};
g.k.M0=function(){this.Iu()&&this.gh("player-reload-after-handoff")};
g.k.gh=function(a,b){b=b===void 0?{}:b;if(!this.Ja()&&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.Hd(new VF("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Qn,msg:a})));gX(this.j,c)}this.lr.reject(a);this.dispose()}};
g.k.Iu=function(){return this.status.status>=4&&this.status.status<6};
g.k.xa=function(){v6a(this);this.j.unsubscribe("newelementrequired",this.M0,this);if(this.C){var a=this.C.B;this.C.j.Jd.unsubscribe("updateend",this.Xz,this);a.Jd.unsubscribe("updateend",this.Xz,this)}g.O.prototype.xa.call(this)};
g.k.OW=function(a){g.Py(a,128)&&this.gh("player-error-event")};g.w(z6a,g.O);g.k=z6a.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.V().N("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&gX(this.B,!1);p_(this,a)};
g.k.xn=function(){return!this.j};
g.k.pG=function(a){return this.j===a};
g.k.Iu=function(){var a;return((a=this.C)==null?void 0:a.Iu())||!1};
g.k.xa=function(){p_(this);g.O.prototype.xa.call(this)};g.w(D6a,g.Fx);g.k=D6a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:rWa()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0};
g.k.pm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Sf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Sf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Sf())};
g.k.nz=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Sf())};
g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Sf())};
g.k.MC=function(a){this.D!==a&&(this.D=a,this.Sf())};
g.k.Bi=function(){return this.j};
g.k.xq=function(){return this.fullscreen!==0};
g.k.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4};
g.k.MA=function(){return this.fullscreen};
g.k.isMinimized=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return rWa()};
g.k.mj=function(){return this.pictureInPicture};
g.k.pB=function(){return!1};
g.k.wB=function(){return this.C};
g.k.Sk=function(){return this.D};
g.k.Sf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Bi(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.mj(),this.pB(),this.wB(),this.Sk());a!==this.L&&this.publish("visibilitystatechange");this.L=a};
g.k.xa=function(){uWa(this.G);g.Fx.prototype.xa.call(this)};g.w(r_,g.O);g.k=r_.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.sf=function(){return this.hc||0};
g.k.Qi=function(){return this.D||0};
g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear();this.C=void 0};
g.k.xa=function(){this.removeAll();g.O.prototype.xa.call(this)};
g.w(N6a,g.O);g.k=N6a.prototype;g.k.sf=function(){return this.hc};
g.k.Qi=function(){return this.C};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.lN=function(a){xMa(a);this.videoData=a};
g.k.xa=function(){O6a(this);g.O.prototype.xa.call(this)};g.w(g.v_,g.O);g.k=g.v_.prototype;g.k.OJ=function(a,b,c){return new g.BE(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId();this.ma.oa("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ma.getCurrentTime()||0).toFixed(3),cmt:(this.ma.xg()||0).toFixed(3)});var c=b==="";this.ib.add(a.B);var d=this.C.get(b);if(c){var e;if(this.ma.getVideoData().gg()&&((e=this.j)==null?0:e.J7)&&this.U){this.Pl=0;this.j=void 0;this.rb&&(this.events.Nc(this.rb),this.rb=null);this.U="";this.Pa=!0;return}}else if(this.ma.oa("sdai",{enterAdCueRange:1}),this.ma.getVideoData().gg()&&
(d==null?0:d.uB))return;if(this.Pa&&!this.j)this.Pa=!1,!c&&d&&(c=this.ma.getCurrentTime(),z_(this,{oe:a,isAd:!0,zq:!0,Mh:c,adCpn:b},{isAd:!1,zq:!1,Mh:c}),this.Mb=d.cpn,W6a(this,d),a=y_(this,"midab",d),this.ma.oa("sdai",a),this.Pl=1),this.ra=!1;else if(this.j){if(this.j.zq)this.ma.oa("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Mh,cpn:b,currentTime:this.ma.getCurrentTime()}),d=this.ma.getCurrentTime(),a={oe:a,isAd:!c,zq:!0,Mh:d,adCpn:b},b={oe:this.j.oe,isAd:this.j.isAd,
zq:!1,Mh:d,adCpn:this.j.adCpn},this.j.oe&&this.ib.delete(this.j.oe.B),z_(this,a,b);else{if(this.j.oe===a){this.ma.oa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Mh,cpn:b,currentTime:this.ma.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ma.oa("sdai",{dchtsc:b});this.j=void 0;return}a={oe:a,isAd:!c,zq:!0,Mh:this.ma.getCurrentTime(),adCpn:b};z_(this,a,this.j)}this.j=void 0;this.ra=!1}else this.j={oe:a,
isAd:!c,zq:!0,Mh:this.ma.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){var b=a.getId();this.ma.oa("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ma.getCurrentTime()||0).toFixed(3),cmt:(this.ma.xg()||0).toFixed(3)});var c=b==="",d=this.C.get(b);if(this.ma.getVideoData().gg()&&!c&&d){if(d.uB)return;d.uB=!0;this.L.clear();if(this.ea.N("html5_lifa_no_rewatch_ad_sbc"))if(this.ma.eP()){var e=d.hc;this.ma.GT(e/1E3,(e+d.durationMs)/1E3)}else this.ma.oa("lifa",{remove:0})}if(this.ib.has(a.B))if(this.ib.delete(a.B),this.La=this.La.filter(function(f){return f!==
a}),this.Pa&&(this.ra=this.Pa=!1,this.ma.oa("sdai",{cref:1})),this.j){if(this.j.zq){if(this.j.oe===a){this.ma.oa("sdai",{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Mh,cpn:b,currentTime:this.ma.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ma.oa("sdai",{dchtsc:b});this.j=void 0;return}b={oe:a,isAd:!c,zq:!1,Mh:this.ma.getCurrentTime(),adCpn:b};z_(this,this.j,b)}else this.ma.oa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Mh,upcomingCpn:b,contentCpn:this.ma.getVideoData().clientPlaybackNonce,currentTime:this.ma.getCurrentTime()});
this.j=void 0;this.ra=!1}else this.j={oe:a,isAd:!c,zq:!1,Mh:this.ma.getCurrentTime(),adCpn:b};else this.ma.oa("sdai",{ignore_single_exit:1})};
g.k.HF=function(){return{cpn:this.ma.getVideoData().clientPlaybackNonce,durationMs:0,hc:0,playerType:1,Sd:0,videoData:this.ma.getVideoData(),errorCount:0}};
g.k.Qk=function(){if(this.Bo)return!1;var a=void 0;this.Mb&&(a=this.C.get(this.Mb));return this.ma.getVideoData().gg()?!!a&&!a.uB:!!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.ma.getVideoData().gg()&&a<=this.Ua/1E3)this.ma.pauseVideo(),this.Ua=0,this.ra=!0,OV(this.ma),this.ma.seekTo(a),this.ma.playVideo();else if(this.ra=!0,c)Q6a(this,a,b);else{c=this.api.Rc();var e=c===this.eb?this.Kb:null;A_(this,!1);this.Vb=a;this.Sb=b;d!=null&&this.Ib.start(d);c&&(this.Kb=e||c.getPlayerState(),$Za(c),this.eb=c)}};
g.k.xa=function(){A_(this,!1);a7a(this);b7a(this);g.O.prototype.xa.call(this)};
g.k.oU=function(a){this.Jc=a;this.ma.oa("sdai",{swebm:a})};
g.k.Pk=function(a,b,c){if(c&&b){var d=this.L.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.FM(c);this.Va&&this.ma.oa("sdai",{hdlredir:1,itag:b,seg:a,hostport:HM(c)});d.locations.set(e,c)}}};
g.k.KK=function(a,b,c,d,e,f){var h=d===3;e=d7a(this,a,b,d,c,f);if(!e)return D_(this,b,h),e=g.c7a(this,b)?"undec":"ncp",this.ma.oa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.L.set(b,e);a=e.Mm;var l;d=((l=C_(this,b-1,d))==null?void 0:l.Xt)||"";d===""&&this.ma.oa("sdai",{eds:1});l=f7a(this,e.ssdaiAdsConfig);c=this.ma.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.kE[f];b=e.nt&&b>=e.nt?e.nt:void 0;return{Kn:{mJ:a?j7a(this,a):[],BX:l,Xt:d,DU:b,i4:ng(m.split(";")[0]),
j4:m.split(";")[1]||""}}};
g.k.LQ=function(a){a:{if(!this.Bo){var b=e7a(this,a);if(!(this.ma.getVideoData().gg()&&(b==null?0:b.uB)))break a}b=void 0}var c=b;if(!c)return this.ma.oa("sdai",{gvprp:"ncp",mt:a}),null;b=c.Mm;var d=f7a(this,c.ssdaiAdsConfig);a=c.nt&&c.CU&&a>=c.CU?c.nt:void 0;c=this.ma.getVideoData();var e,f=((e=c.B)==null?void 0:e.containerType)||0;e=c.kE[f];return{mJ:b?j7a(this,b):[],BX:d,DU:a,i4:ng(e.split(";")[0]),j4:e.split(";")[1]||""}};
g.k.JA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=d7a(this,a,b,d,c,f);this.Va&&this.ma.oa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return D_(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.ma.oa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),D_(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.x(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ma.oa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});D_(this,b,e);return null}a.locations.set(h,new g.FM(l.url,!0))}l=a.locations.get(h);if(!l)return this.ma.oa("sdai",{gdu:"nourl",seg:b,itag:h}),D_(this,b,e),null;l=new yN(l);this.Jc&&(l.get("dvc")?this.ma.oa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=C_(this,b-1,d))==null?void 0:q.Xt)&&
l.set("daistate",m);a.nt&&b>=a.nt&&l.set("skipsq",""+a.nt);(m=this.ma.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Mm&&(q=j7a(this,a.Mm),q.length>0&&l.set("acpns",q.join(",")));e||this.L.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.Mm){var t;this.ma.oa("sdai",{acpns_aids_nm:1,ids:l7a(this,a.Mm).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ma.oa("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.qe();(d==null?void 0:d.length)>2048&&this.ma.oa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Va&&(d&&(r=a.cpn,p=a.Mm,n7a(this,r,p),p&&!this.Gd.has(p)&&(r=k7a(this,r,p),t=m7a(this,p),this.ma.oa("sdai",{iofa:r}),this.ma.oa("sdai",{noawnzd:t-r}),this.ma.oa("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.Gd.add(p))),this.ma.oa("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.TH=function(a,b,c){var d=B_(this,a,c);return(d=d?(d.hc+d.durationMs)/1E3:0)&&b>d?(this.Pv(a,c,!0),this.ma.seekTo(d),!0):!1};
g.k.Pv=function(a,b,c){c=c===void 0?!1:c;var d=B_(this,a,b);if(d){var e=void 0,f=d.Mm;if(f){this.ma.oa("sdai",{skipadonsq:b,sts:c,abid:f,acpn:d.cpn,avid:d.videoData.videoId});c=this.qa.get(f);if(!c)return;c=g.x(c);for(f=c.next();!f.done;f=c.next())f=f.value,f.nt=b,f.CU=a,f.hc>d.hc&&(e=f)}this.U=d.cpn;g7a(this);a=this.ma.getCurrentTime();X6a(this,d,e,a,a,!1,!0)}};
g.k.RT=function(){for(var a=g.x(this.G),b=a.next();!b.done;b=a.next())b=b.value,b.nt=NaN,b.CU=NaN;g7a(this);this.ma.oa("sdai",{rsac:"resetSkipAd",sac:this.U});this.U=""};
g.k.CI=ba(39);
g.k.XS=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ma.oa("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.Za.set(a,{Xt:m,bA:l}):this.Fa.set(a,{Xt:m,bA:l}));l=cR(this.ma.getVideoData())&&this.ea.N("html5_process_all_cuepoints");if(h||l){if(d.length&&e.length)for(this.U&&this.U===d[0]&&this.ma.oa("sdai",{skipfail:1,sq:a,acpn:this.U}),a=b+this.yu(),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.Uw=m.Uw!=null?Math.min(m.Uw,l):
l;if(d.length&&e.length)for(b=(b+this.yu())*1E3,c=0;c<d.length;c++)if(a=d[c],h=e[c]*1E3,a===this.ma.getVideoData().clientPlaybackNonce)i7a(this,b,b+h,!1),b+=h;else{this.kd.has(a)||(this.ma.oa("sdai",{adCpnFromEmsg:1}),this.kd.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.ma.ph.sync()):(m=this.OJ(b-l,b+h,a),this.B.set(a,m),this.ma.oa("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;i7a(this,m.start,m.end,!0);if(n)for(this.ma.addCueRange(m),
a=this.ma.tF("serverstitchedcuerange",36E5),a=g.x(a),h=a.next();!h.done;h=a.next())this.B.delete(h.value.getId())}else c!==5&&c!==4||i7a(this,(b+this.yu())*1E3,(b+this.yu())*1E3+5E3,!1)}};
g.k.IF=ba(37);g.k.yu=function(){return this.ma.yu()};
g.k.Sj=function(a){this.ma.oa("timelineerror",{e:a})};
g.k.ZF=function(a){this.Ba&&this.W&&this.Ea.push(this.W);a&&this.W&&this.Ac.push(this.W);this.W=null;this.ma.ZF(a)};
g.k.NK=function(a){if(this.Bo||a.identifier&&this.Xd.has(a.identifier))this.Va&&this.ma.oa("sdai",{startnoad:a.identifier}),x_(this);else if(Qm(this.Ea,function(c){return c.identifier===a.identifier}))this.ma.oa("sdai",{timedoutcp:1}),this.Z.start(0);
else if(Qm(this.Ac,function(c){return c.identifier===a.identifier}))this.ma.oa("sdai",{fetchedcp:1}),x_(this);
else if(this.Z.isActive()){var b;this.ma.oa("sdai",{racingcp:((b=this.W)==null?void 0:b.identifier)+"_"+a.identifier})}else this.Pc=(new Date).getTime()/1E3,this.Va&&this.ma.oa("sdai",{adf:1}),(b=5E3,a.event==="predictStart")&&(b-=a.j),this.Db=Math.max(b,15E3),this.Ba=!1,this.Z.start(this.Db),this.W=a,this.Fa.clear(),this.Za.clear(),this.Ma.clear(),this.tb=[]};
g.k.BA=function(a,b,c){c=c||{reason:"disablessdai"};if(a&&b){if(!B_(this,a,b))return!1;c.sq=b}if(this.Bo)return!1;this.Bo=!0;this.Pl>0&&(this.Pl=0,this.Mb="",this.api.publish("serverstitchedvideochange"));a=this.ma;a.videoData.SW=!0;a.Hd(new VF("qoe.restart",c));OV(a,!0);a.videoData.gg()&&a.N("html5_reload_caption_on_ssdai_fallback")&&a.Ld.HH();return!0};
g.k.Jx=function(){this.ma.oa("sdai",{rstdaist:1});this.Fa.clear();this.Za.clear();this.Ma.clear()};
g.k.yv=function(a){var b;if(this.ea.N("html5_ssdai_ignore_noadresponse_before_adfetching_start")&&a!==((b=this.W)==null?void 0:b.identifier))this.ma.oa("sdai",{ignorenoad:a});else{this.Xd.add(a);var c;((c=this.W)==null?void 0:c.identifier)===a&&x_(this)}};
g.k.oQ=function(){return this.Pl};
g.k.Ul=function(){return this.Mb};
g.k.tv=function(a){var b=qY(this.api.Bb());return b?b.tv(a):!1};
g.k.SP=function(a){return this.Bo?!1:!!e7a(this,a)};
g.k.BU=function(a){var b=this;this.ma.pauseVideo();var c=this.ma.getCurrentTime(),d=this.C.get(this.Mb),e=this.B.get(this.Mb);if(d){this.U=this.Mb;this.ra=!1;d.uB=!0;var f=this.ma.getCurrentTime();this.j={oe:e,isAd:!0,zq:!1,Mh:f,adCpn:this.Mb,J7:d,Qqa:a};this.ma.getVideoData().gg()&&jX(this.ma,d,this.HF(),f,this.ma.getCurrentTime(),!1,!0,a,(0,g.Vt)());if(e==null?0:e.start)this.Ua=f*1E3-e.start;this.L.clear();OV(this.ma);this.Mb=this.HF().cpn;this.api.publish("serverstitchedvideochange");this.ma.seekTo(c);
this.ma.playVideo();this.rb||(this.rb=this.events.T(this.api,"progresssync",function(){var h=d.Uw?d.Uw*1E3:d.hc,l=b.B.get(d.cpn);l&&b.ma.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.x(b.D),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ma.removeCueRange(n):l.push(n);b.D=l;h7a(b,0,h+d.durationMs)}));
return!0}this.ma.oa("sdai",{skipFail:c});return!1};
var U6a=0;g.w(r7a,g.O);g.k=r7a.prototype;
g.k.NO=function(a,b){b=b===void 0?"":b;if(this.timeline.C===b)return!0;var c=this.timeline.j,d=c==null?void 0:c.getVideoData();if(!c||!d)return this.api.oa("ssap",{htsm:c?0:1}),!1;if(this.api.N("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||O6a(f);e.B.clear()}e=s_(c);var h=!1;f=[];var l=new Map;c=[];var m=[],n=0,p=0,q=0,r=[];a=g.x(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.Ct){q=A.Ct.Q_||0;t=A.Ct.R_||1;var F=
Number(((A.Ct.H1||0)/(A.Ct.I1||1)*1E3).toFixed(0));q=t=F+Number((q/t*1E3).toFixed(0))}else t=F=q,this.jI.has(C)||this.Xk.add(C);var H=(y=l.get(C))!=null?y:0,K=this.timeline.C;y=!1;if(K&&this.api.N("html5_ssap_clear_timeline_before_update")){if(K=this.Gk.get(C))K.start=F,K.end=t,y=!0}else{if(K){var N=C;K=F;var W=t,V=H,da=GV(this.timeline,N);if(da!=null&&da.length){V<da.length&&(da[V].hc=K,da[V].C=W);if(N=this.Gk.get(N))N.start=K,N.end=W;K=!0}else K=!1}if(K){l.set(C,H+1);h=!0;break a}}r.push(C);!y&&
A.Ct&&(r=this.OJ(F,t,r.join(",")),this.Gk.set(C,r),c.push(r),r=[]);if(((u=A.Ct)==null?void 0:u.x4)===d.videoId){y=u=void 0;A=C;C=d;A!==C.clientPlaybackNonce&&this.api.oa("ssap",{cnm:1,cid:A,cpn:C.clientPlaybackNonce});if(this.api.N("html5_ssap_clear_timeline_before_update"))C.Gd=F,A=u_(this.timeline,1,F,t-F,C),f.push(A),F=t_(this.timeline,F,t,[A]),h=h||F;else if(K=[],C&&(C.Gd=F,K=(y=GV(this.timeline,A))!=null?y:[]),!this.timeline.C&&K.length&&H===0){h=K[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(K=u[y],K.sf()!==K.Qi()){K.hc=F;K.D=t;u.splice(y,1);C.has(F)?C.get(F).push(K):C.set(F,[K]);break}f.push(h);l.set(A,H+1);h=!0}else A=u_(this.timeline,1,F,t-F,C),f.push(A),F=t_(this.timeline,F,t,[A]),h=h||F;m.length&&(m=s7a(this,n||0,p,m),h=h||m);p=n=t;m=[]}else H=void 0,u=this.zo.get(C),y=u!=null?u:new g.WQ(this.api.V(),{cpn:C}),y.SI=!0,this.Xk.has(C)&&this.zo.set(C,y),n=Math.min(F,n),p=Math.max(t,p),this.api.oa("ssap",{e:F,d:t-
F,c:C,p:u?1:0}),y.Gd=F,t=u_(this.timeline,2,F,t-F,y,(H=A.iS)==null?void 0:H.CL),m.push(t)}else this.api.oa("ssap",{cm:1})}m.length&&(d=s7a(this,n||0,p,m),h=h||d);e&&f.length&&(M6a(this.timeline,e,f),this.api.N("html5_ssap_clear_timeline_before_update")&&(d=f[f.length-1].Qi(),(e=this.timeline.j)!=null&&(e.C=d)));c.length&&this.ma.cA(c);if(h){this.timeline.C=b;d=this.ma.Nj();b=[];d=g.x(d);for(c=d.next();!c.done;c=d.next()){c=c.value;if(c.C){if(this.api.N("html5_ssap_fix_ad_completion_cue_range")&&c.start===
0x7ffffffffffff)continue;e=rT(this,c.C);if(e===c.lm)continue;c.start=c.start-c.lm+e;c.end=c.end-c.lm+e;c.lm=e;b.push(c)}this.api.N("html5_ssap_fix_cue_range_updates")||(c=this.ma.ph,b.length<=0||c.Ja()||(c=c.j,c.array.sort(c.j)))}this.api.N("html5_ssap_fix_cue_range_updates")&&(d=this.ma.ph,b.length<=0||d.Ja()||(b=d.j,b.array.sort(b.j)));this.api.oa("ssap",{tu:hV(this)});b=qY(this.api.Bb());this.api.oa("ssap",{am:b?1:0})}else this.api.oa("ssap",{tnu:1});return!0};
g.k.addPlayerResponseForAssociation=function(a){var b=new g.WQ(this.api.V(),a.playerVars);b.playerResponseCpn?b.clientPlaybackNonce=b.playerResponseCpn:this.api.oa("ssap",{eim:this.ma.getVideoData().clientPlaybackNonce});b.SI=!0;if(a=a.QJ)b.QJ=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.oa("ssap",{aprfa:a+"_"+b.videoId});if(a){this.zo.set(a,b);var c=GV(this.timeline,a),d=!1;if(c==null?0:c.length){c=g.x(c);for(var e=c.next();!e.done;e=c.next())e=e.value,b.Gd=e.sf(),e.lN(b),e.B&&
(d=!0)}else d=!b.videoId;if(!d){if(!cYa(this.ma.Wb(b.videoId))){var f;this.api.oa("ssap",{nlc:a,nlcc:(f=this.timeline.j)==null?void 0:s_(f)})}this.ma.TA().NJ(a,b,2)}}};
g.k.ZG=function(){this.yR=!0;this.api.N("html5_ssap_timeline_handle_error_and_abandon")&&this.finishSegmentByCpn(this.Mb,UU(this),5)};
g.k.Ei=function(a){if(g.Py(a,128)){var b;a=(b=a.state.Yg)==null?void 0:b.errorCode;this.finishSegmentByCpn(this.Mb,UU(this),7,a)}};
g.k.finishSegmentByCpn=function(a,b,c,d){if(this.Mb===b)return[];this.yR&&(c=5,this.yR=!1);this.api.oa("ssap",{fsbc:a+";"+b,fsbcr:c,fsbct:this.api.getCurrentTime().toFixed(),fsbce:d!=null?d:""});if(this.api.N("html5_ssap_timeline_handle_error_and_abandon")&&(c===5||c===7))return x7a(this,a,b,c),[];this.vz=b;var e=!1;if(this.Xk.has(a)&&(e=o7a(this,c),!e))return[a];var f=GV(this.timeline,b);if(f){f.sort(function(m,n){return m.sf()-n.sf()});
var h=g.x(f);for(f=h.next();!f.done;f=h.next()){f=f.value;var l=this.ma.getCurrentTime()*1E3;if(f.sf()>=l){this.YC.set(a,c);v7a(this,a,b);this.BN.set(a,(0,g.Vt)());if(c=this.Gk.get(b))for(c=c.getId().split(","),c=g.x(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Xk.has(h)&&(this.Xk.delete(h),this.jI.add(h));E_(this);b=f.sf()/1E3;f=void 0;c=(f=g.KD(this.api.V().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?f:0;this.api.N("html5_ssap_keep_media_on_finish_segment")?this.ma.seekTo(b+
c/1E3,{Ds:!0}):this.ma.seekTo(b+c/1E3);this.OC?(this.api.oa("ssap",{gpfreload:this.Mb}),q7a(this)||(this.OC=!1),OV(this.ma,!1,!1,this.api.N("html5_ssap_keep_media_on_finish_segment"))):d&&OV(this.ma,!1,!1,this.api.N("html5_ssap_keep_media_on_finish_segment"));e&&this.api.playVideo(1,this.api.N("html5_ssap_keep_media_on_finish_segment"));return[a]}}}return[]};
g.k.yQ=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Qi();a=g.x(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.x(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Qi()>b&&(b=d.Qi())}return b/1E3};
g.k.Zc=function(){var a=this.ma.getCurrentTime()*1E3;var b=y7a(this,a);if(!b){var c=GV(this.timeline,this.Mb);if(c){c=g.x(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.sf()>a&&(b=d)}}return b&&b.getType()===1?b.sf()/1E3:0};
g.k.getVideoData=function(a){if(a===2&&!this.Qk()){if(this.tL&&this.zo.has(this.tL))return this.zo.get(this.tL);this.api.oa("ssap",{lpanf:""+UU(this)});return null}return B7a(this)};
g.k.Qk=function(){var a=GV(this.timeline,this.Mb);return(a==null?0:a.length)?a[0].getType()===2:!1};
g.k.rB=function(){var a=GV(this.timeline,this.Mb);return(a==null?0:a.length)?a[0].B:!1};
g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=z7a(this,this.ma.getCurrentTime());this.ma.seekTo(a+c/1E3,b)};
g.k.OJ=function(a,b,c){return new g.BE(a,b,{id:c,namespace:"ssap",priority:9})};
g.k.onCueRangeEnter=function(a){if(!this.EM.has(a.getId())){this.api.oa("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ma.getCurrentTime()||0).toFixed(3),cmt:(this.ma.xg()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;c<b.length&&this.vz&&b[c]!==this.vz;){var d=b[c];this.Xk.has(d)&&(this.Xk.delete(d),this.jI.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.qH.push(b[d]);b=b[c];this.Xk.has(b)&&C7a(this,b);this.jI.has(b)||w7a(this,b);b=g.x(this.Gk.values());for(c=b.next();!c.done;c=
b.next())c=c.value,c.start<=a.start&&!this.EM.has(a.getId())&&this.EM.add(c.getId())}};
g.k.oQ=function(){return this.Pl};
g.k.Ul=function(){return this.Mb};
g.k.handleError=function(a,b){b=b===void 0?0:b;if(a!=="fmt.decode"&&a!=="fmt.unplayable"||!this.Qk()||this.B_===this.Mb)return!1;this.B_=this.Mb;if(this.api.N("html5_enable_ssap_gapful_switch"))this.OC=!0,this.api.oa("ssap",{gpfonerr:a}),OV(this.ma);else{this.ma.oa("ssap",{skiperr:a,acpn:this.Mb});var c=this.ma.getVideoData().clientPlaybackNonce;this.finishSegmentByCpn(this.Mb,c,b===1||b===2?7:6,a)}return!0};
g.k.Ada=function(a){var b=this.zo.get(this.Mb);b&&j_a(this.ma,a-b.Gd/1E3,b.lengthSeconds,this.Mb)};
g.k.xa=function(){this.api.V().Xb()&&this.api.oa("ssap",{di:""+this.Mb,dic:""+this.ma.getVideoData().clientPlaybackNonce});this.zo.clear();this.Xk.clear();this.EM.clear();this.YC.clear();this.BN.clear();this.jI.clear();this.qH=[];p7a(this);this.vz="";g.Vs(this.events);g.O.prototype.xa.call(this)};g.w(F7a,g.O);g.k=F7a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Rc()){var b=this.L.get(a);b?L7a(this,b.target,b.Qn,a):this.Hd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.au.oe===a})){var c=b.au,d=c.target;
c=c.Qn;d?L7a(this,d,c,a):K7a(this,b.Sd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.U;J_(this);if(a){if(!I_(this,a)){var b=this.api.Rc();this.Hd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:b==null?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Rc().addCueRange(a.au.oe)}};
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)E7a(this,a,b);else{c=this.api.Rc();var e=c===this.D?this.G:null;K_(this,!1);this.qa=a;this.Z=b;d!=null&&this.W.start(d);c&&(this.G=e||c.getPlayerState(),$Za(c),this.D=c)}};
g.k.Ei=function(a){g.Py(a,128)&&Q7a(this)};
g.k.isManifestless=function(){return iR(this.j.getVideoData())};
g.k.xa=function(){K_(this,!1);S7a(this);g.O.prototype.xa.call(this)};
g.k.Hd=function(a,b){this.j.Hd(new VF(a,b))};
var G7a=0;var T7a="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.w(N_,g.O);g.k=N_.prototype;g.k.get=function(a){L_(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);L_(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.Vt)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&O_(this,c,!0);M_(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&&(O_(this,c,b),g.bc(this.data,function(d){return d.key===a}),M_(this))};
g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.x(this.data),c=b.next();!c.done;c=b.next())O_(this,c.value,a);this.data=[];M_(this)};
g.k.xa=function(){var a=this;g.O.prototype.xa.call(this);this.data.forEach(function(b){O_(a,b,!0)});
this.data=[]};g.w(P_,g.O);P_.prototype.tK=function(a){if(a)return this.B.get(a)};
P_.prototype.xa=function(){this.j.removeAll();this.B.removeAll();g.O.prototype.xa.call(this)};g.ofb=yi(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var V2;V2={};g.Q_=(V2.STOP_EVENT_PROPAGATION="html5-stop-propagation",V2.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",V2.IV_DRAWER_OPEN="ytp-iv-drawer-open",V2.MAIN_VIDEO="html5-main-video",V2.VIDEO_CONTAINER="html5-video-container",V2.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",V2.HOUSE_BRAND="house-brand",V2);g.w(Z7a,g.S);g.k=Z7a.prototype;g.k.Nt=function(){g.zp(this.element,g.Da.apply(0,arguments))};
g.k.hk=function(){this.zc&&(this.zc.removeEventListener("focus",this.BS),g.rh(this.zc),this.zc=null)};
g.k.NP=function(){this.Ja();var a=this.app.V();a.Yn||this.Nt("tag-pool-enabled");a.L&&this.Nt(g.Q_.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.Nt("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Ac&&(this.AP=g.Fv("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.iN=function(a){g.MP(this.app.V());this.ZK=!a;R_(this)};
g.k.resize=function(){if(this.zc){var a=this.zi();if(!a.isEmpty()){var b=!g.Dg(a,this.lC.getSize()),c=d8a(this);b&&(this.lC.width=a.width,this.lC.height=a.height);a=this.app.V();(c||b||a.Ac)&&this.app.Qa.publish("resize",this.getPlayerSize())}}};
g.k.Bu=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.zc){var b=this.app.V();nu&&(this.zc.setAttribute("x-webkit-airplay","allow"),a.title?this.zc.setAttribute("title",a.title):this.zc.removeAttribute("title"));this.zc.setAttribute("controlslist","nodownload");b.Cr&&a.videoId&&(this.zc.poster=a.uh("default.jpg"))}b=g.xR(a,"yt:bgcolor");this.uA.style.backgroundColor=b?b:"";this.WR=zs(g.xR(a,"yt:stretch"));this.XR=zs(g.xR(a,"yt:crop"),!0);g.Cp(this.element,"ytp-dni",a.Nf);this.resize()};
g.k.setGlobalCrop=function(a){this.QQ=zs(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.aY=a;this.resize()};
g.k.pm=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Qa.isFullscreen(),c=a.externalFullscreen&&g.HP(a);if(b&&hs()&&!c)return new g.Cg(window.outerWidth,window.outerHeight);c=!isNaN(this.xF.width)&&!isNaN(this.xF.height);var d=this.app.V().N("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Cg(this.element.clientWidth,this.element.clientHeight);if(b||a.bq){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.JG&&this.JG.media===
a||(this.JG=window.matchMedia(a));var e=this.JG&&this.JG.matches}if(e)return new g.Cg(window.innerWidth,window.innerHeight)}else if(c)return this.xF.clone();return new g.Cg(this.element.clientWidth,this.element.clientHeight)};
g.k.zi=function(){var a=this.app.V().N("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.KD(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.xT&&b.width>c?(a=g.KD(this.app.V().experiments,"player_underlay_video_width_fraction"),new g.Cg(Math.min(b.height*this.getVideoAspectRatio(),b.width*a),Math.min(b.height,b.width*a/this.getVideoAspectRatio()))):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.WR)?a8a(this):this.WR};
g.k.getVideoContentRect=function(a){var b=this.zi();a=b8a(this,b,this.getVideoAspectRatio(),a);return new g.ym((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.er=function(a){this.xT=a;this.resize()};
g.k.tB=function(){return this.HM};
g.k.onMutedAutoplayChange=function(){R_(this)};
g.k.setInternalSize=function(a){g.Dg(this.xF,a)||(this.xF=a,this.resize())};
g.k.xa=function(){this.AP&&g.Gv(this.AP);this.hk();g.S.prototype.xa.call(this)};g.k=e8a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.Xw();c&&a.visualElement&&g.Cx(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=Sra(c);a.visualElement=c;var f=g.Xw(),h=g.Ww();f&&h&&(g.Mr("combine_ve_grafts")?NL(LL(),c,h):g.qr(g.rx)(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.oY=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,ML(LL(),a),f8a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.Uw(b))};
g.k.hasVe=function(a){return this.elements.has(a)};g.w(g.T_,g.O);g.T_.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.Va(a),f=W2[e];if(f){try{f.dispose()}catch(l){g.ex(l)}W2[e]=null}var h=new g.T_(a,b,c,d);h.addOnDisposeCallback(function(){W2[e]=null;h.O3&&h.O3()});
return W2[e]=h}catch(l){throw g.ex(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.T_.prototype;g.k.jj=function(){return this.visibility};
g.k.Xm=function(){this.qR||(this.qR=g.NA(sS(),ECa()));return this.qR};
g.k.hk=function(a){if(this.mediaElement){this.hD&&(this.events.Nc(this.hD),this.hD=null);g.Vs(this.Yu);this.yb&&this.yb.hk(!0,!1,a);this.template.hk();try{this.N("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.WM()}catch(b){g.fx(b)}this.mediaElement=null}};
g.k.Rc=function(){return this.yb};
g.k.iz=function(){var a=this;this.yb!==this.ub&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.yb)==null?void 0:b.getPlayerType())+", vid "+((c=a.yb)==null?void 0:c.getVideoData().videoId)}),q_(this,this.ub))};
g.k.xA=function(a,b,c){var d=this,e=this.Lb;a===2&&(e=new e1a(this.ea));return new g.VW(this.ea,a,e,this.template,function(f,h,l){d.Qa.publish(f,h,l)},function(){return d.Qa.getVisibilityState()},this.visibility,this,b,c)};
g.k.dba=function(){if(!Z_(this)){this.logger.debug("application playback ready");if(this.N("html5_enable_ssap_autoplay_debug_logging")){var a;(a=this.ub)==null||a.oa("ssap",{onpbrdy:1})}this.Yq(5)}};
g.k.mca=function(a){if(!Z_(this)){this.logger.debug("playback ready");U8a(this);var b=a.getPlayerState();a.oG()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}};
g.k.canPlayType=function(a){return ZF(a)};
g.k.V=function(){return this.ea};
g.k.getVideoData=function(){i0(this,"gvd");return this.yb.getVideoData()};
g.k.WF=ba(17);g.k.wd=function(){return this.ub.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.dS(this,a);return a?g.OR(a.getVideoData())?1:(a=a.Le())?a.Cx():0:0};
g.k.qb=function(){return this.template};
g.k.Bb=function(){return this.Rd};
g.k.Sh=function(){return this.Lb};
g.k.KC=function(a){var b=g.dS(this,1);b&&NW(b,a)};
g.k.gs=function(){var a=this.Rd.gs();this.Qa.publish("videoStatsPingCreated",a);return a};
g.k.getVolume=function(){return Math.round(this.Qa.getVolume())};
g.k.isMuted=function(){return this.Qa.isMuted()};
g.k.IA=function(){if(this.yb===this.ub&&this.Hb)return this.Hb.postId};
g.k.mea=function(){var a=this;this.N("use_rta_only_for_player")||(g.YD(this.ea)?g.kQ(this.ea,g.MR(this.getVideoData())).then(function(b){tS(sS(),b);lNa(a.getVideoData(),a.ea,a.Xm())}):lNa(this.getVideoData(),this.ea,this.Xm()))};
g.k.DI=function(a){this.Qa.publish("d6de4videobindingchange",a)};
g.k.fV=function(){this.J1&&this.J1.fV()};
g.k.kU=function(a){this.J1=a};
g.k.zH=function(a){a===1&&(this.Lb.tick("vr"),h_a(this.yb),f1a(this.Lb,this.yb.getVideoData(),T8a(this)),U1a(this.Rd));var b=this.ea;(hQ(b)&&b.U||g.OP(b))&&(this.Mf()||this.Qa.xf("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.yb===this.ub&&this.yb.pu()!==a&&(this.yb.setLoop(a),this.Qa.gb("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.yb.pu()};
g.k.setLoopRange=function(a){var b=!1;!!this.Hb!==!!a?b=!0:this.Hb&&a&&(b=this.Hb.startTimeMs!==a.startTimeMs||this.Hb.endTimeMs!==a.endTimeMs||this.Hb.postId!==a.postId||this.Hb.type!==a.type);if(b){if(this.yb&&oR(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.dS(this))==null||c.oa("slr",{et:b})}this.ub.ph.df("applooprange");if(a)c=new g.BE(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.ub.addCueRange(c);else{this.wd().clipConfig=void 0;var d,e;((d=
this.Hb)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Hb)==null?void 0:e.loopCount))||(c={loopCount:String(this.Hb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.Dt("repeatChapterLoopEvent",c))}this.Hb=a;this.Qa.gb("onLoopRangeChange",a||void 0);this.yb===this.ub&&(this.eN(),this.yb.Ep())}};
g.k.getLoopRange=function(){return this.Hb};
g.k.eN=function(){var a="";this.Hb?this.yb!==this.ub?a="pnea":F8a(this,this.ub.getCurrentTime())&&(this.Hb.loopCount=0,a="ilr"):a="nlr";if(this.yb&&oR(this.getVideoData()))if(this.N("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.dS(this))==null||d.oa("slrre",{rej:a,ct:this.ub.getCurrentTime(),lst:(b=this.Hb)==null?void 0:b.startTimeMs,let:(c=this.Hb)==null?void 0:c.endTimeMs})}else{var e;(e=g.dS(this))==null||e.oa("slrre",{})}a||J8a(this)};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=l8a(this,a),this.ub.getPlaybackRate()!==a&&(this.ub.setPlaybackRate(a),b&&!this.ea.D&&g.Zs("yt-player-playback-rate",a),this.Qa.xf("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return mS(this.Rd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.jR(this.getVideoData());i0(this,"gct");a=d||e?g.dS(this):g.dS(this,a);if(!a)return 0;if(e&&this.wb)return b=this.wb,a=a.getCurrentTime(),c?c=F_(b,c):(c=z7a(b,a),c=a-c/1E3),c;if(b){if(d&&this.Ee&&(c=this.Ee.Ua/1E3,c!==0))return c;c=Y_(this,a);return g0(this,c.getCurrentTime(),c)}d&&this.Ee?(c=this.Ee,a=a.getCurrentTime(),
c=(c=Z6a(c,a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c};
g.k.RA=function(){var a=g.dS(this);if(!a)return 0;a=Y_(this,a);return g0(this,a.RA(),a)};
g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.jR(c);var f=d||e?g.dS(this):g.dS(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}i0(this,"agd");if(e&&this.wb)return b=A7a(this.wb,this.wb.Ul()),a===1&&b===0?f.getDuration():b;if(b)return f=
X_(this,f),g0(this,f.getDuration(),f);d&&this.Ee?(a=this.Ee,f=f.getCurrentTime(),f=(f=$6a(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.kf=function(a){var b=g.dS(this,a);return b?this.Mf(b)?(b=X_(this,b),b.kf()-b.getCurrentTime()+this.getCurrentTime(a)):b.kf():0};
g.k.EQ=function(){return this.En};
g.k.addPlayerResponseForAssociation=function(a){this.wb&&this.wb.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b,c){i0(this,"afsc");return this.wb?this.wb.finishSegmentByCpn(a,b,c):[]};
g.k.NP=function(){this.template.NP();var a=this.Qa;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=ioa(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Kca)};
g.k.getDebugText=function(a){var b=this.ub.wc(a);if(this.yb&&this.yb!==this.ub){for(var c=this.yb.wc(a),d=g.x(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=ch(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.gh("video-ads");f?($8a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.gh("videoAdUiSkipContainer"),l=g.gh("ytp-ad-skip-button-container"),m=g.gh("ytp-skip-ad-button"),n=h||l||m;n?($8a(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.VF("opacity"),c=this.mediaElement.wu().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.VF("display"));a&&((a=(0,g.jW)())&&(b.gpu=a),(a=this.ea.playerStyle)&&(b.ps=a),this.ea.Ua&&(b.webview=1));b.debug_playbackQuality=this.Qa.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.V().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20241113_01_RC00"},b=this.getPlayerStateObject().Yg;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){i0(this,"gppt");if(this.appState===1)return 1;if(Z_(this))return 3;var b;if(a&&((b=this.Ee)==null?0:b.Qk(this.getCurrentTime())))return 2;var c;return g.jR(this.getVideoData())&&((c=this.wb)==null?0:c.Qk())?2:g.dS(this).getPlayerType()};
g.k.rB=function(){i0(this,"invp");return g.jR(this.getVideoData())&&this.wb?this.wb.rB():!1};
g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?mS(this.Rd).Ne:g.dS(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.pM=function(a){switch(a.type){case "loadedmetadata":this.cN.start();a=g.x(this.BC);for(var b=a.next();!b.done;b=a.next())b=b.value,R8a(this,b.id,b.oga,b.nga,void 0,!1);this.BC=[];break;case "loadstart":this.Lb.Vv("gv");break;case "progress":case "timeupdate":EG(a.target.Rh())>=2&&this.Lb.Vv("l2s");break;case "playing":g.eQ&&this.cN.start();if(g.YD(this.ea))a=!1;else{b=g.oS(this.Bb());a=this.mediaElement.VF("display")==="none"||this.mediaElement.getSize().area()===0;var c=S_(this.template),d=this.yb.getVideoData(),
e=g.kz(this.ea);d=pR(d);b=!c||b||e||d||this.ea.tb;a=a&&!b}a&&(this.yb.oa("hidden",{},!0),this.getVideoData().uc||(this.getVideoData().uc=1,this.N0(),this.yb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Qa.Bd("onLoadProgress",b)};
g.k.lda=function(){this.Qa.publish("playbackstalledatstart")};
g.k.Tca=function(){this.Qa.publish("sabrCaptionsDataLoaded")};
g.k.onVideoProgress=function(a,b){a=Y_(this,a);b=g0(this,a.getCurrentTime(),a);this.Qa.xf("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Qa.xf("onAutoplayBlocked")};
g.k.wca=function(){this.Qa.publish("progresssync")};
g.k.lca=function(){this.Qa.Bd("onPlaybackPauseAtStart")};
g.k.fba=function(a){if(this.getPresentingPlayerType()===1){g.Py(a,1)&&!g.T(a.state,64)&&this.wd().isLivePlayback&&this.ub.isAtLiveHead()&&this.Qa.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Py(a,2)){if(this.Hb&&this.Hb.endTimeMs>=(this.getDuration()-1)*1E3){J8a(this);return}w8a(this)}if(g.T(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Yg;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Qa.xf("onError",BNa(b.errorCode));this.Qa.Bd("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.YP,cpn:b.cpn});(0,g.Vt)()-this.ea.Yf>6048E5&&this.Qa.Bd("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!xA("pbresume","ad_to_video")&&xA("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.vA(b,"ad_to_video");uA("pbresume",void 0,"ad_to_video");U1a(this.Rd)}this.Qa.publish("applicationplayerstatechange",a)}};
g.k.n1=function(a){this.getPresentingPlayerType()!==3&&this.Qa.publish("presentingplayerstatechange",a)};
g.k.Ei=function(a){W_(this,OH(a.state));g.T(a.state,1024)&&this.Qa.isMutedByMutedAutoplay()&&(e0(this,{muted:!1,volume:this.Yi.volume},!1),f0(this,!1))};
g.k.oS=function(a,b,c){a==="newdata"&&m8a(this);this.Qa.publish("applicationvideodatachange",a,c)};
g.k.SB=function(a,b){this.Qa.Bd("onPlaybackAudioChange",this.Qa.getAudioTrack().qc.name);this.Qa.publish("internalaudioformatchange",this.Qa.getAudioTrack().qc.id,b)};
g.k.aC=function(a){var b=this.yb.getVideoData();a===b&&this.Qa.xf("onPlaybackQualityChange",a.B.video.quality)};
g.k.lA=function(){var a=this.Ar[2];if(a){var b=a.getVideoData();a=a.FX;var c;(c=g.dS(this))==null||c.oa("ssdai",{cleanaply:1,acpn:b==null?void 0:b.clientPlaybackNonce,avid:b.videoId,ccpn:a,sccpn:this.wd().clientPlaybackNonce===a?1:0,isDai:this.wd().enableServerStitchedDai?1:0});delete this.Ar[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.ea.Xb()&&b.oa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.ub&&(this.ea.dk=c.oauthToken);if(b===this.ub){this.getVideoData().enableServerStitchedDai&&!this.Ee?this.Ee=new g.v_(this.Qa,this.ea,this.ub):!this.getVideoData().enableServerStitchedDai&&this.Ee&&(this.Ee.dispose(),this.Ee=null);if(this.ea.Xb()&&g.jR(c)){var d,e;b.oa("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.jR(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.jR(this.getVideoData())&&this.wb&&(this.ea.Xb()&&b.oa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.wb.dispose(),this.wb=null):(L6a(this.En),this.N("html5_ssap_cleanup_ad_player_on_new_data")&&this.lA(),d=u_(this.En,1,0,this.getDuration(1)*
1E3,this.getVideoData()),this.En.enqueue(d,!0),t_(this.En,0,this.getDuration(1)*1E3,[d]),M6a(this.En,this.getVideoData().clientPlaybackNonce,[d]),this.wb&&(this.wb.dispose(),this.wb=null,this.ea.Xb()&&b.oa("ssap",{tlmdis:1})),this.ea.Xb()&&b.oa("ssap",{tlmcreate:1}),this.wb=new r7a(this.Qa,this.En,this.ub),this.ub.cI(this.wb))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),pY(this.Rd,2),this.Qa.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&
(this.yb===this.ub?(TP(c.Ca,c.jX),B8a(this)):z8a(this));b.getPlayerType()===1&&(this.ea.Va&&Z8a(this),this.getVideoData().isLivePlayback&&!this.ea.yr&&this.gh("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((CMa(c)||this.getVideoData().qw)&&this.Qa.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&L8a(this)));this.Qa.publish("videodatachange",a,c,b.getPlayerType())}this.Qa.xf("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.eN();(d=
c.RH)?this.ys.oY(d,c.clientPlaybackNonce):f8a(this.ys)};
g.k.qP=function(){a0(this,null);this.Qa.Bd("onPlaylistUpdate")};
g.k.vca=function(a){delete this.MM[a.getId()];this.ub.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Pa)==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.Pa)==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.x(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.kR),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.kR))&&this.Qa.gb("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Yq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(W_(this,-1),W_(this,5)),this.appState=a,this.Qa.publish("appstatechange",a))};
g.k.gh=function(a,b,c,d,e){this.ub.vg(a,b,c,d,e)};
g.k.gt=function(a,b){this.ub.handleError(new VF(a,b))};
g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.dS(this,a);if(!c)return!1;a=X_(this,c);c=Y_(this,c);return a!==c?a.isAtLiveHead(g0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Wr=function(){var a=g.dS(this);return a?X_(this,a).Wr():0};
g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.dS(this,d))this.appState===2&&c0(this),i0(this,"seekTo"),this.Mf(d)?h0(this)?this.Ee.seekTo(a,{seekSource:e},b,c):this.fd.seekTo(a,{seekSource:e},b,c):g.jR(this.getVideoData())&&this.wb?this.wb.seekTo(a,{BI:!b,YU:c,bd:"application",seekSource:e}):d.seekTo(a,{BI:!b,YU:c,bd:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.XB=function(){this.Qa.xf("SEEK_COMPLETE")};
g.k.lS=function(){this.Qa.gb("onAbnormalityDetected")};
g.k.onSnackbarMessage=function(a){this.Qa.gb("onSnackbarMessage",a)};
g.k.Yca=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.T(a.getPlayerState(),512)||c0(this):this.Qa.xf("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Qa.publish("airplayactivechange");this.ea.N("html5_external_airplay_events")&&this.Qa.Bd("onAirPlayActiveChange",this.Qa.Bi())};
g.k.onAirPlayAvailabilityChange=function(){this.Qa.publish("airplayavailabilitychange");this.ea.N("html5_external_airplay_events")&&this.Qa.Bd("onAirPlayAvailabilityChange",this.Qa.kG())};
g.k.showAirplayPicker=function(){var a;(a=this.yb)==null||a.Ov()};
g.k.qS=function(){this.Qa.publish("beginseeking")};
g.k.wS=function(){this.Qa.publish("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.dS(this,a))?X_(this,a).getVideoData().getStoryboardFormat():null};
g.k.Nk=function(a){return(a=g.dS(this,a))?X_(this,a).getVideoData().Nk():null};
g.k.Mf=function(a){a=a||this.yb;var b=!1;if(a){a=a.getVideoData();if(h0(this))a=a===this.Ee.ma.getVideoData();else a:if(b=this.fd,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.x(b.B);for(var c=b.next();!c.done;c=b.next())if(a.Cd===c.value.Cd){a=!0;break a}a=!1}b=a}return b};
g.k.EE=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=h0(this),n;(n=g.dS(this))==null||n.oa("appattl",{sstm:this.Ee?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?V6a(this.Ee,a,b,c,d,e,f,h):J7a(this.fd,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
return l};
g.k.gG=function(a,b,c,d,e,f,h){if(h0(this)){var l=V6a(this.Ee,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.yv=function(a){var b;(b=this.Ee)==null||b.yv(a)};
g.k.mA=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;h0(this)||S7a(this.fd,a,b)};
g.k.FI=function(a,b,c){if(h0(this)){var d=this.Ee,e=d.uc.get(a);e?(c===void 0&&(c=e.Sd),e.durationMs=b,e.Sd=c):d.Sj("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.fd;e=null;for(var f=g.x(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.Cd===a){e=h;break}e?(c===void 0&&(c=e.Sd),R7a(d,e,b,c)):G_(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.Mf();a=new g.WQ(this.ea,a);d&&(a.Cd=d);M8a(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.Rc();a&&b&&(this.N("html5_check_queue_on_data_loaded")?this.V().supportsGaplessShorts()&&b.getVideoData().Z&&(c=this.ON,d=this.zl.U,c.C!==a&&(c.yb=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=n6a(b,a,this.zl.U),c!=null?(b.oa("sgap",c),b.getVideoData().Z&&gX(b,!1)):(a=a.getVideoData(),b=this.ON,b.j!==
a&&(b.j=a,b.B=1,a.isLoaded()?b.L():b.j.subscribe("dataloaded",b.L,b)))))};
g.k.eK=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.dS(this);f&&(X_(this,f).V3=!0);A6a(this.zl,a,b,c,d).then(function(){e.Qa.Bd("onQueuedVideoLoaded")},function(){})};
g.k.xn=function(){return this.zl.xn()};
g.k.pG=function(a){return this.zl.pG(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.zl.clearQueue(a,b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e,f){b=b===void 0?1:b;if(b===2&&this.wd().enableServerStitchedDai&&this.ub&&!KV(this.ub)){var h;(h=this.ub)==null||h.oa("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var l=!1;h=new g.WQ(this.ea,a);h.reloadPlaybackParams=f;g.dQ(this.ea)&&!h.qj&&cY(this.Lb);var m;f=this.Lb;var n=(m=h.Va)!=null?m:"";f.timerName=n;this.Lb.Bg("pl_i");this.N("web_player_early_cpn")&&h.clientPlaybackNonce&&this.Lb.infoGel({clientPlaybackNonce:h.clientPlaybackNonce});
if(!hNa(h).supportsVp9Encoding){var p;(p=g.dS(this))==null||p.oa("noVp9",{})}if(this.V().supportsGaplessShorts()){m=C6a(this.zl,h,b);if(m==null){W_(this,-1);a=this.zl;a.app.V().N("html5_gapless_new_slr")?H8a(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().vE=!0;var q,r;(q=a.j)==null||(r=q.va)==null||r.resume();var t;(t=a.j)==null||vW(t.Wb());c={bd:"gapless_to_next_video",seekSource:60};var u;(u=a.app.Rc())==null||u.seekTo(B6a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var y;
(y=g.dS(a.app))==null||y.playVideo(!0)}a.L();return!0}u=this.N("html5_shorts_gapless_preload_fallback");y=this.zl.j;u&&y&&!y.Ja()&&(q=y.getVideoData(),q=this.ea.N("html5_autonav_autoplay_in_preload_key")?k0(this,b,q):l0(this,b,q.videoId,q.Cd),this.Wy.set(q,y,3600));this.zl.clearQueue(u);var A;(A=g.dS(this))==null||A.oa("sgap",{f:m})}if(e){for(;h.An.length&&h.An[0].isExpired();)h.An.shift();l=h.An.length-1;l=l>0&&e.B(h.An[l])&&e.B(h.An[l-1]);h.An.push(e)}c||(a&&i1a(a)?(ZP(this.ea)&&!this.Lj&&(a.fetch=
0),a0(this,a)):this.playlist&&a0(this,null),a&&(this.Lj=vs(!1,a.external_list)));this.Qa.publish("loadvideo");b=this.Uu(h,b,d);l&&this.gh("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+h.An.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.ea.N("html5_autonav_autoplay_in_preload_key"))f=O8a(this,b,a,e);else{var h=As(a);f=l0(this,b,h,e)}if(this.Wy.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.WQ(this.ea,a);e&&(a.Cd=e);return N8a(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);(a=X1a(this.Rd))&&(this.isMinimized()?a.load():a.unload());this.Qa.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.K.V().showInlinePreviewUi?a.Pe.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Qa.gb("onInlinePreviewModeChange"))};
g.k.nz=function(a){var b=this.ea.N("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.ea.Fl&&this.ea.N("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.iQ&&b?this.iQ.start():this.WX():this.visibility.nz(a)};
g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
g.k.WX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Jb();b&&Ls(b).catch(function(c){return g.fx(c)})};
g.k.Vca=function(){this.mediaElement.Jb();this.mediaElement.Jb().webkitPresentationMode==="picture-in-picture"?this.nz(!0):this.nz(!1)};
g.k.togglePictureInPicture=function(){var a=g.dS(this);a&&a.togglePictureInPicture()};
g.k.Uu=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
xA("_start",this.Lb.timerName)||g.qr(nA)(void 0,this.Lb.timerName);var d=!1,e=E8a(this,b,a,!1);e?(d=!0,a.dispose()):(e=y8a(this,b,a,c),(this.N("html5_onesie")||this.N("html5_load_before_stop"))&&WW(e)&&g.XW(e),this.cN.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),q_(this,e));e===this.ub&&(this.ea.dk=a.oauthToken);if(!WW(e))return!1;if(e===this.ub){this.Yq(1);c=c0(this);if(d&&this.N("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.Qq.finished)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}JZa(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.wd().enableServerStitchedDai&&this.ub&&!KV(this.ub)&&a&&Object.keys(a).length>0){var d;(d=this.ub)==null||d.oa("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&i1a(a))if(this.Zx=!0,a0(this,a),(a=g.dY(this.playlist))&&a.Be())n0(this,a,b);else this.playlist.onReady(function(){b0(c)});
else{b||(b=this.getPresentingPlayerType());b===1&&this.qP();d=new g.WQ(this.ea,a);var e=g.HP(this.ea)&&!this.ea.ra&&b===1&&!d.isAd()&&!d.Vb;this.Qa.publish("cuevideo");e?(this.Rc().getVideoData().loading=!0,p1a(d,a?a:{}).then(function(f){n0(c,f,b)}),d.dispose()):n0(this,d,b)}};
g.k.Hp=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(JP(this.ea)||g.WD(this.ea))return b=b||{},b.lact=Wv(),b.vis=this.Qa.getVisibilityState(),this.Qa.gb("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;g1a(this.Lb);this.Lb.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.Zx=!0;P8a(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Zx=!1;P8a(this,a,b,c,d)};
g.k.EF=function(){return this.Qa.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Xl())};
g.k.ju=ba(13);
g.k.nextVideo=function(a,b){var c=g.lR(this.ub.getVideoData());g.rS(this.Qa)&&c?this.Hp(c.videoId,b?c.qF:c.sessionData,c.playlistId,b,void 0,c.KX||void 0):this.Lj?this.Qa.Bd("onPlaylistNext"):this.getPresentingPlayerType()===3?mS(this.Rd).nextVideo():!this.playlist||ZP(this.ea)&&!this.Qa.isFullscreen()||(this.playlist.Xl(a)&&l1a(this.playlist,j1a(this.playlist)),this.playlist.loaded?(a=b&&this.ea.N("html5_player_autonav_logging"),b&&this.Qa.publish("playlistautonextvideo"),this.Uu(g.dY(this.playlist,void 0,
b,a),1)):this.Zx=!1)};
g.k.previousVideo=function(a){this.Lj?this.Qa.Bd("onPlaylistPrevious"):this.getPresentingPlayerType()===3?mS(this.Rd).JM():!this.playlist||ZP(this.ea)&&!this.Qa.isFullscreen()||(this.playlist.mq(a)&&l1a(this.playlist,k1a(this.playlist)),this.playlist.loaded?this.Uu(g.dY(this.playlist),1):this.Zx=!1)};
g.k.playVideoAt=function(a){this.Lj?this.Qa.Bd("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Uu(g.dY(this.playlist,a),1):this.Zx=!1,l1a(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.PF=ba(21);g.k.aba=function(a){this.Qa.xf("onCueRangeEnter",a.getId())};
g.k.bba=function(a){this.Qa.xf("onCueRangeExit",a.getId())};
g.k.HH=function(){var a=g.nY(this.Bb());a&&a.HH()};
g.k.cA=function(a,b,c){var d=g.dS(this,b);if(d){var e=this.wd();if(g.jR(e)){i0(this,"acrl");if(this.wb)if(this.N("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.wb.Qk()&&(this.ub.oa("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.ub.getVideoData().clientPlaybackNonce}),d=this.ub),b===1)for(var f=rT(this.wb,e.clientPlaybackNonce),h=g.x(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=
f,l.lm=f,l.C=e.clientPlaybackNonce;else if(this.N("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.x(a),f=e.next();!f.done;f=e.next())f.value.C=this.wb.Ul();e=g.x(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||V_(this,"cuerangesadded",a)}else this.N("html5_ssap_enable_cpn_triggered_media_end")&&this.ub.oa("ssap",{acrlpnf:this.ub.getVideoData().clientPlaybackNonce})};
g.k.IH=function(a,b){var c=g.dS(this,b);c&&(c.IH(a),b&&this.getPresentingPlayerType()!==b||V_(this,"cuerangesremoved",a))};
g.k.Bz=function(a){var b=this.Rc()||this.ub,c=b.ph;if(c){var d=this.getPresentingPlayerType();if(this.ea.Xb()){var e=c.TK("ad");b.oa("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.N("html5_ssap_enable_cpn_triggered_media_end")?c.Bz(d,a):c.Bz(d)}return 0};
g.k.eba=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.Xw(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.ea.N("web_player_attach_player_response_ve"),h=b.ea.N("web_playback_associated_ve");d={cpn:b.getVideoData().clientPlaybackNonce,csn:e};b.getVideoData().Fa&&(f||h)&&(f=g.Uw(b.getVideoData().Fa),g.zx(e,f),h&&(d.playbackVe=f.getAsJson()));b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo);e={};b.N("web_playback_associated_log_ctt")&&b.getVideoData().L&&(e.cttAuthInfo=
{token:b.getVideoData().L,videoId:b.getVideoData().videoId});g.Dt("playbackAssociated",d,e)}else g.fx(new g.lt("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();f1a(this.Lb,this.yb.getVideoData(),T8a(this));$_(this)&&this.ea.D&&IR(this.wd())==="embedded"&&this.S_&&Math.random()<.01&&g.Dt("autoplayTriggered",{intentional:this.m_});this.S_=!1;U1a(this.Rd);this.N("web_player_defer_ad")&&A8a(this);this.Qa.Bd("onPlaybackStartExternal");(this.ea.N("mweb_client_log_screen_associated"),UP(this.ea))||a();var c={};this.getVideoData().L&&(c.cttAuthInfo={token:this.getVideoData().L,videoId:this.getVideoData().videoId});c.sampleRate=
20;wA("player_att",c);if(this.getVideoData().botguardData||this.N("fetch_att_independently"))g.bQ(this.ea)||eP(this.ea)==="MWEB"?g.qt(g.tt(),function(){d0(b)}):d0(this);
this.eN();I8a(this)};
g.k.ZG=function(){this.Qa.publish("internalAbandon");j0(this)};
g.k.onApiChange=function(){this.ea.U&&this.yb?this.Qa.xf("onApiChange",this.yb.getPlayerType()):this.Qa.xf("onApiChange")};
g.k.Yba=function(){var a=this.mediaElement;a={volume:g.xg(Math.floor(a.getVolume()*100),0,100),muted:a.yK()};a.muted||f0(this,!1);this.Yi=g.Rg(a);this.Qa.xf("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.fS)&&(this.fS=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.fS}),this.Qa.Bd("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=V8a(this);this.pm(a?1:0);X8a(this,!!a)};
g.k.pm=function(a){var b=!!a,c=!!this.MA()!==b;this.visibility.pm(a);this.template.pm(b);this.N("html5_media_fullscreen")&&!b&&this.mediaElement&&V8a(this)===this.mediaElement.Jb()&&this.mediaElement.sF();this.template.resize();c&&this.Lb.tick("fsc");c&&(this.Qa.publish("fullscreentoggled",b),a=this.wd(),b={fullscreen:b,videoId:a.KE||a.videoId,time:this.getCurrentTime()},this.Qa.getPlaylistId()&&(b.listId=this.Qa.getPlaylistId()),this.Qa.xf("onFullscreenChange",b))};
g.k.xq=function(){return this.visibility.xq()};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.MA=function(){return this.visibility.MA()};
g.k.Kca=function(){this.yb&&(this.MA()!==0&&this.MA()!==1||this.pm(V8a(this)?1:0),this.ea.Fl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.sF())};
g.k.Qba=function(a){this.getPresentingPlayerType()!==3&&this.Qa.publish("liveviewshift",a)};
g.k.playVideo=function(a,b){this.logger.debug(function(){return"play video, player type "+a});
var c=g.dS(this,a);c&&(this.appState===2?(g.dQ(this.ea)&&cY(this.Lb),c0(this)):g.T(c.getPlayerState(),2)?(b=36,this.getVideoData().Pj()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):c.playVideo(!1,b))};
g.k.pauseVideo=function(a,b){(a=g.dS(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.ub.getVideoData(),c=new g.WQ(this.ea,{video_id:b.KE||b.videoId,oauth_token:b.oauthToken});c.W=g.Rg(b.W);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.YK=!0);this.cancelPlayback(6);n0(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.dS(this,b);d?b===2&&d.getPlayerType()===1&&(UMa(this.wd())||g.jR(this.getVideoData()))?d.oa("canclpb",{r:"no_adpb_ssdai"}):(this.ea.Xb()&&d.oa("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.yb&&(this.logger.debug("cancel playback, destroy modules"),pY(this.Rd,a)),b===1&&(d.stopVideo(),j0(this)),d.tp(void 0,a!==6),V_(this,"cuerangesremoved",d.Nj()),d.ph.reset(),this.zl&&d.isGapless()&&
(d.hk(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.dS(this,b))&&yKa(this.ea,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Ri=function(a){var b=g.dS(this);return b&&yKa(this.ea,a)?b.Ri(a):null};
g.k.updatePlaylist=function(){!ZP(this.ea)&&g.HP(this.ea)&&C8a(this);this.Qa.Bd("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.U2=a;this.N("web_log_theater_mode_visibility")?this.MC(b):this.ER=b;this.Qa.publish("sizestylechange",a,b);this.template.resize()};
g.k.MC=function(a){this.visibility.MC(a)};
g.k.Sk=function(){return this.N("web_log_theater_mode_visibility")?this.visibility.Sk():this.ER};
g.k.isMinimized=function(){return this.visibility.isMinimized()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.mj=function(){return this.visibility.mj()};
g.k.pB=function(){return this.visibility.pB()};
g.k.wB=function(){return this.visibility.wB()};
g.k.CR=function(){return this.U2};
g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return mS(this.Rd).getAdState();i0(this,"gas");if(!this.Mf()){var a=qY(this.Bb());if(a)return a.getAdState()}return-1};
g.k.Jca=function(a){var b=this.template.getVideoContentRect();zm(this.G_,b)||(this.G_=b,this.yb&&bX(this.yb),this.ub&&this.ub!==this.yb&&bX(this.ub),this.MA()===1&&this.nH&&X8a(this,!0));this.LR&&g.Dg(this.LR,a)||(this.Qa.publish("appresize",a),this.LR=a)};
g.k.Bh=function(){return this.Qa.Bh()};
g.k.gda=function(){this.getPresentingPlayerType()===2&&this.fd.isManifestless()?Q7a(this.fd):(this.Ee&&(a7a(this.Ee),j0(this)),v8a(this,"signature"))};
g.k.Eca=function(a){a&&v8a(this,"reloadPlayerEvent",void 0,a)};
g.k.N0=function(a){this.hk(a);U_(this)};
g.k.eca=function(a){if(a.errorCode==="manifest.net.badstatus"){var b=this.ea.experiments.fb("html5_use_network_error_code_enums")?401:"401";a.details.rc===b&&this.Qa.gb("onPlayerRequestAuthFailed")}};
g.k.YG=function(a){this.Qa.publish("heartbeatparams",a)};
g.k.ZM=function(a){this.Qa.gb("onAutonavChangeRequest",a!==1)};
g.k.Le=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.ea.tb!==a&&(this.ea.tb=a,this.yb&&(this.yb.Ep(),this.ea.Va&&Z8a(this),this.yb.qp(a)))};
g.k.gca=function(){var a=g.dS(this);if(a){var b=!this.Qa.nG();(a.HZ=b)||a.vy.stop();a.videoData.j&&(b?a.videoData.j.resume():qJa(a.videoData.j));if(a.va){var c=a.videoData.N("html5_disable_preload_for_ssdai_with_preroll")&&KV(a)&&a.videoData.isDaiEnabled();b&&!c?a.va.resume():eX(a,!0)}g.T(a.playerState,2)||b?g.T(a.playerState,512)&&b&&a.Fc(dH(a.playerState,512)):a.Fc(cH(a.playerState,512));a=a.Wb();a.qoe&&(a=a.qoe,g.fW(a,g.KK(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Qa.Bd("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Qa.Bd("onDrmOutputRestricted")};
g.k.GB=function(){this.m_=!0};
g.k.xa=function(){this.Rd.dispose();this.n9.dispose();this.fd.dispose();this.Ee&&this.Ee.dispose();this.En.removeAll();this.En.dispose();this.wb&&this.wb.dispose();this.ub.dispose();this.hk();g.lb(g.Jg(this.Ar),this.playlist);g.O.prototype.xa.call(this)};
g.k.N=function(a){return this.ea.N(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Qa.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Rd.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=sY(this.Rd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Hb&&this.Hb.postId)return a=this.ea.getVideoUrl(a),a=fj(a,"v"),a.replace("/watch","/clip/"+this.Hb.postId);var f=this.Qa.jd()||this.ea.Ma==="shortspage",h=g.RR(this.getVideoData());return this.ea.getVideoUrl(a,b,c,d,e,f,h)};
g.k.Iu=function(){return this.zl.Iu()};
g.k.YS=function(a,b){this.Qa.publish("spsumpreject",a,b)};
g.k.PG=function(){try{for(var a=g.x(Object.values(this.Ar)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ja()||c.PG()}if(this.N("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.x(V7a(this.Wy)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ja()||f.PG()}this.ub.PG()}catch(h){g.fx(h)}};
g.k.BU=function(){if(this.Ee){var a=(0,g.Vt)();return this.Ee.BU(a)}return!1};
var W2={};var pfb={Hs:[{Gs:/Unable to load player module/,weight:20},{Gs:/Failed to fetch/,weight:500},{Gs:/XHR API fetch failed/,weight:10},{Gs:/JSON parsing failed after XHR fetch/,weight:10},{Gs:/Retrying OnePlatform request/,weight:10},{Gs:/CSN Missing or undefined during playback association/,weight:100},{Gs:/Non-recoverable error. Do not retry./,weight:0},{Gs:/Internal Error. Retry with an exponential backoff./,weight:0},{Gs:/API disabled by application./,weight:0}],Mr:[{callback:a9a,weight:500}]};var n9a=/[&\?]action_proxy=1/,m9a=/[&\?]token=([\w-]*)/,o9a=/[&\?]video_id=([\w-]*)/,p9a=/[&\?]index=([\d-]*)/,q9a=/[&\?]m_pos_ms=([\d-]*)/,s9a=/[&\?]vvt=([\w-]*)/,e9a="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(" "),r9a="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(" "),h9a={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"},i9a={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},k9a={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};q0.prototype.DB=function(a){this.player.Sh().tick(a)};
q0.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.DB("a_bid_s");var e=c9a();if(e!==null)return d&&this.DB("a_bid_f"),this.B(a,b,e);e=d9a();d&&Hi(e,function(){c.DB("a_bid_f")});
return e.then(function(f){return c.B(a,b,f)})};
q0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.mx;var f=e.oe;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.V().ek;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Xg:0,AUTONAV_STATE:p0(this.player.V()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Wr()*1E3,LACT:Wv(),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.qb().zi().height,P_W:this.player.qb().zi().width,YT_REMOTE:e?e.join(","):""},n=Dr(Cr);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())});
c!==""&&(m.BISCOTTI_ID=c);c={};Br(a)&&(c.sts="20041",(b=this.player.V().forcedExperiments)&&(c.forced_experiments=b));var p=yr(g.Uo(a,m),c);return p.split("?").length!==2?Ei(Error("Invalid AdBreakInfo URL")):g.kQ(this.player.V(),l==null?void 0:l.oauthToken).then(function(q){if(q&&Ar()){var r=sS();tS(r,q)}q=d.player.Xm(r);r=t9a(d,p,m,l.isMdxPlayback,h);return g.CA(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
q0.prototype.reset=function(){this.C=this.j=1};g.w(u9a,q0);
u9a.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.mx;var e=b.oe;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.V().N("h5_disable_macro_substitution_in_get_ad_break")?a:v9a(this,a,{mx:d,oe:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.fx(Error("Invalid AdBreakInfo URL")),Ei(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=m9a.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=n9a.test(h);e=o9a.exec(h);e=e!=null&&e.length>=
2?e[1]:"";var n=p9a.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=q9a.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=SP(this.player.V().Ea),r=g.xz(this.player.getVideoData(1).Fa,!0);g9a(this,r,h,m===""?"":m,this.player.V());m={splay:!1,lactMilliseconds:String(Wv()),playerHeightPixels:Math.trunc(this.player.qb().zi().height),playerWidthPixels:Math.trunc(this.player.qb().zi().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:20041,autonavState:p0(this.player.V())};
if(l){l={};var t=this.player.V().ek;j9a(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=r9a.includes(q)?void 0:g.bs("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=l9a(l)}h=s9a.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.Xg:0)*1E3))?String(d):void 0;u=this.player.Wr()*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 w9a(this,b)};var qfb={xla:"replaceUrlMacros",Mka:"onAboutThisAdPopupClosed",Jia:"executeCommand"};x9a.prototype.Vr=function(){return"adPingingEndpoint"};
x9a.prototype.Au=function(a,b,c){c$a(this.Na.get(),a,b,c)};y9a.prototype.Vr=function(){return"changeEngagementPanelVisibilityAction"};
y9a.prototype.Au=function(a){this.K.gb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};z9a.prototype.Vr=function(){return"loggingUrls"};
z9a.prototype.Au=function(a,b,c){a=g.x(a);for(var d=a.next();!d.done;d=a.next())d=d.value,c$a(this.Na.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.w(B9a,g.O);g.w(s0,g.O);g.k=s0.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.Xj=function(a,b,c,d,e,f,h,l){if(a==="")My("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(a!==this.j||c){this.j=a;this.Ia.get().Xj(a,b,c,d,e,f,h,l);this.Sa.get().Xj(a,b,c,d,e,f,h,l);var m;(m=this.Ie)==null||m.get().Xj(a,b,c,d,e,f,h,l);this.B.Xj(a,b,c,d,e,f,h,l);m=g.x(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Xj(a,b,c,d,e,f,h,l)}else My("Duplicate content video loaded signal")};
g.k.ZG=function(){this.j&&this.Bn(this.j)};
g.k.Bn=function(a){this.j=void 0;for(var b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.Bn(a)};t0.prototype.vJ=function(a,b,c,d,e){C9a(this);this.G=!b&&c===0;var f=this.K.getVideoData(1),h=this.K.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.L);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.D=a;d<=0?(C9a(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,xA("_start",this.actionType)&&F9a(this)))};
t0.prototype.reset=function(){return new t0(this.K)};g.w(u0,g.O);u0.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)?My("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new G9a(a,b,c,d,f),this.j.set(a.id,{oe:a,listener:e,Dp:h}),this.K.hf([a],h))};
u0.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.K.ql([b.oe],b.Dp),this.j.delete(b.oe.id)):My("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
u0.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
u0.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(G9a,g.BE);v0.prototype.zH=function(a){this.K.zH(a)};
v0.prototype.Ss=function(a){var b=g.Da.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.K.xf.apply(this.K,[a].concat(g.z(b))):this.K.gb.apply(this.K,[a].concat(g.z(b)))};w0.prototype.qf=function(a){return a&&x0(this)};var O9a=null;g.w(N9a,g.Fx);N9a.prototype.uQ=function(a){return this.j.hasOwnProperty(a)?this.j[a].uQ():{}};
g.Oa("ytads.bulleit.getVideoMetadata",function(a){return y0().uQ(a)});
g.Oa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=y0();c=M9a(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=z0.prototype;
g.k.Zh=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.K.V().N("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=Pl(Ko).JK(a,{});c?Jn(c):b&&(a=Pl(Ko).GH(null,gm(),!1,a),a.Vk=3,tka([a]));return{}}b=Q9a(b);if(b===null)return{};var d=this.K.Rc();d=d&&AZa(d);if(!d)return{};var e=this.K.getPresentingPlayerType(!0);if((c=this.K.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ia.get().isFullscreen()};return ula(b,a,c)};
g.k.cw=function(a,b,c,d,e){this.j.has(a)&&(d<=0||e<=0||Pl(Ko).cw(a,b,c,d,e))};
g.k.Ky=function(a){var b;(b=this.j.get(a.queryId))==null||b.Ky()};
g.k.Jy=function(a){var b;(b=this.j.get(a.queryId))==null||b.Jy()};
g.k.Ly=function(a){var b;(b=this.j.get(a.queryId))==null||b.Ly()};
g.k.Hy=function(a){var b;(b=this.j.get(a.queryId))==null||b.Hy()};
g.k.Iy=function(a){var b;(b=this.j.get(a.queryId))==null||b.Iy()};Y9a.prototype.send=function(a,b,c,d){try{Z9a(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.w($9a,Y9a);a$a.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=Iqa(a);d=e;var f=a.match(Vi);if(f[1]==="https")var h=a;else f[1]="https",h=Ti("https",f[2],f[3],f[4],f[5],f[6],f[7]);var l=Fla(h);f=[];var m=tna(h)&&this.Aa.get().K.V().experiments.fb("add_auth_headers_to_remarketing_google_dot_com_ping");if(Br(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){}};E0.prototype.Ri=function(){var a=this.K.Rc();return a&&(a=a.Ri(1))?a:null};g.w(F0,g.O);g.k=F0.prototype;g.k.Tl=function(){return this.K.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.Xj=function(){this.MO.clear();this.OR=null;this.qt.get().clear()};
g.k.Bn=function(){};
g.k.yda=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&this.K.oa("ads_ssm_vdc_s",{pt:c,dvt:a});JK(this.Aa.get())&&a!=="dataloaded"||j$a(this,b,c);if(x0(this.Aa.get())&&a==="newdata"&&e!==void 0){a=this.Tl();var f=b.clientPlaybackNonce,h={};QF(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=PF(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=k$a(e);if(e!==1)if(d!==void 0)for(c=g.x(this.listeners),a=c.next();!a.done;a=c.next())a.value.WG(d,
b,e);else My("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.x(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.VG(b)}};
g.k.Zca=function(a,b){a!==void 0&&(this.OR=a,b===void 0?My("Expected ad video start time on SS video changed"):this.MO.set(a,b));var c=this.K.getPresentingPlayerType(!0),d=this.K.getVideoData(c);this.K.getVideoData(1).oa("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:b});d?j$a(this,d,c):My("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.K.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.wJ=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.Cd,h=a.title,l=a.uj,m=a.gk,n=a.isMdxPlayback,p=a.Sn,q=a.mdxEnvironment,r=a.isAutonav,t=a.wp,u=a.qj,y=a.Vp,A=a.videoId||"",C=a.profilePicture||"",F=a.Bm||"",H=a.Pj()||!1,K=a.gg()||!1;a=a.kx||void 0;f=this.qt.get().j.get(f)||{layoutId:null,slotId:null};var N=this.K.getVideoData(1),W=N.Yb();N=N.getPlayerResponse();b=1E3*this.K.getDuration(b);var V=1E3*this.K.getDuration(1),da,na,X=(N==null?void 0:(da=N.playerConfig)==null?void 0:
(na=da.daiConfig)==null?void 0:na.enableDai)||!1,R,Y;da=(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,Sda:b,Fk:V,daiEnabled:X,sY:da,isListed:e,Yb:W,profilePicture:C,title:h,Bm:F,uj:l,gk:m,kx:a,isMdxPlayback:n,Sn:p,mdxEnvironment:q,isAutonav:r,wp:t,qj:u,Vp:y,Pj:H,gg:K})};
g.k.xa=function(){this.listeners.length=0;this.nx=null;g.O.prototype.xa.call(this)};g.w(G0,g.O);g.k=G0.prototype;g.k.Xj=function(){var a=this;x0(this.Aa.get())||(this.j=zi(function(){a.K.Ja()||a.K.Mg("ad",1)}))};
g.k.Bn=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.tS=function(){};
g.k.playVideo=function(){this.K.playVideo()};
g.k.pauseVideo=function(){this.K.pauseVideo()};
g.k.resumeVideo=function(a){this.Vo(a)&&this.K.playVideo()};
g.k.Vo=function(a){return this.K.getPlayerState(a)===2};
g.k.getCurrentTimeSec=function(a,b,c){var d=this.Sa.get().OR;if(a===2&&!b&&d!==null)return m$a(this,d);sE(this.Aa.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.K.getCurrentTime(a,b,c):this.K.getCurrentTime(a,b)};
g.k.getVolume=function(){return this.K.getVolume()};
g.k.isMuted=function(){return this.K.isMuted()};
g.k.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.K.getPlayerState(a)};
g.k.isFullscreen=function(){return this.K.isFullscreen()};
g.k.isAtLiveHead=function(){return this.K.isAtLiveHead()};
g.k.er=function(a){this.K.er(a)};
g.k.xca=function(){var a=this.K.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.x(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ui(b)}else if(a===1)for(a=g.x(this.YE),c=a.next();!c.done;c=a.next())c.value.tS(b)};
g.k.oca=function(a){for(var b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ig(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.x(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Dh=function(){for(var a=this.K.isMinimized(),b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.Dh(a)};
g.k.Yj=function(a){for(var b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.Yj(a)};
g.k.lc=function(){for(var a=this.K.qb().zi(),b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.pj(a)};
g.k.Vj=function(a){for(var b=g.x(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vj(a)};
g.k.bk=function(){for(var a=g.x(this.listeners),b=a.next();!b.done;b=a.next())b.value.bk()};g.w(p$a,g.O);g.w(L0,g.O);L0.prototype.xa=function(){this.Yo.Ja()||this.Yo.get().removeListener(this);g.O.prototype.xa.call(this)};M0.prototype.fetch=function(a){var b=a.qY;return this.j.fetch(a.a4,{mx:a.mx===void 0?void 0:a.mx,oe:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return q$a(c,b)})};g.w(N0,g.O);g.k=N0.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.qN=function(a){r$a(this,a,1)};
g.k.onAdUxClicked=function(a,b){O0(this,function(c){c.fg(a,b)})};
g.k.nS=function(a){O0(this,function(b){b.TQ(a)})};
g.k.mS=function(a){O0(this,function(b){b.SQ(a)})};
g.k.Xaa=function(a){O0(this,function(b){b.PK(a)})};P0.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={bF:null,I_:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.I_))if(b.I_=c,b.bF){if(c<b.bF.end){a:{c=b.bF;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Xg;a=c.end<=a?null:a}if(a!==null)for(b.bF.end=a,b=this.B,g.nc(b.C.j,a*1E3),b=g.x(b.listeners),c=b.next();!c.done;c=b.next())c.value.uS(a)}}else if(a=s$a(a,this.C))c=a.R$,b.bF=
a.t8,u$a(this.B,c)};
P0.prototype.updateTime=function(){};g.w(Q0,g.O);g.k=Q0.prototype;
g.k.Xj=function(){this.G=new P0(this,I9a(this.Aa.get()));this.C=new t$a;var a=this.K.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.K.getVideoData(1),c;((c=this.j)==null?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(this.j!=null&&this.j.unsubscribe("cuepointupdated",this.vS,this),b.subscribe("cuepointupdated",this.vS,this),this.j=b)}this.ZC.length=0;var d;b=((d=a.j)==null?void 0:JIa(d,0))||[];d=g.x(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.tv(b)&&My("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Bn=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.tv=function(a){w$a(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.vS=function(a){var b=this.K.getVideoData(1).isDaiEnabled();if(b||!g.WD(this.K.V())){a=g.x(a);for(var c=a.next();!c.done;c=a.next())c=c.value,w$a(this,c),b?this.G.reduce(c):this.K.getCurrentTime(1)!==0&&c.event==="start"&&(this.Aa.get().K.V().experiments.fb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.B==null?0:c.startSecs+c.Xg>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Xg)?My("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,u$a(this,
c)))}};
g.k.xa=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.vS,this),this.j=null);this.listeners.length=0;this.ZC.length=0;g.O.prototype.xa.call(this)};R0.prototype.addPlayerResponseForAssociation=function(a){this.K.addPlayerResponseForAssociation(a)};g.k=T0.prototype;g.k.EE=function(a,b,c,d,e,f,h){return this.K.EE(a,b,c,d,e,f,h)};
g.k.mA=function(a,b){this.K.mA(a,b)};
g.k.FI=function(a,b,c){this.K.FI(a,b,c)};
g.k.yv=function(a){this.K.yv(a)};
g.k.gG=function(a,b,c,d,e,f,h){this.K.gG(a,b,c,d,e,f,h)};
g.k.kt=function(a){return this.K.kt(a)};
g.k.finishSegmentByCpn=function(a,b,c){c=y$a(c);this.K.finishSegmentByCpn(a,b,c)};g.w(A$a,g.O);g.w(B$a,g.O);g.w(C$a,g.O);g.w(D$a,g.O);g.w(E$a,g.O);g.w(G$a,g.O);G$a.prototype.C=function(){return this.B};g.w(H$a,qy);
H$a.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.gb("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.gb("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.gb("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.gb("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.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.gb("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.gb("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.gb("updateEngagementPanelAction",b.addAction);this.j.gb("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.gb("changeEngagementPanelVisibility",b.hideAction),this.j.gb("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.gb("updateEngagementPanelAction",{action:jx(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.gb("changeEngagementPanelVisibility",jx(c.expandAction));break;case 3:this.j.gb("changeEngagementPanelVisibility",
jx(c.hideAction)),this.j.gb("updateEngagementPanelAction",{action:jx(c.removeAction)})}}};g.w(I$a,zy);g.k=I$a.prototype;g.k.init=function(a,b,c){zy.prototype.init.call(this,a,b,c);g.Bm(this.C,"stroke-dasharray","0 "+this.B);this.api.V().N("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.C.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.api.V().N("enable_dsa_ad_badge_for_action_endcap_on_web")&&this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){By(this);zy.prototype.hide.call(this)};
g.k.show=function(){Ay(this);zy.prototype.show.call(this)};
g.k.Hn=function(){this.hide()};
g.k.nm=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Bm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(J$a,Ox);g.k=J$a.prototype;
g.k.init=function(a,b,c){Ox.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.YJ))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.ex(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.zb(g.lg(e[0].url))&&(e[0].url=d.profilePicture,g.zb(g.lg(d.profilePicture))&&tPa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.zb(g.lg(e[0].url))&&(e[0].url=d.uh());e=b.headline;e!=null&&g.zb(g.lg(e.text))&&(e.text=d.author)}this.Z.init(Dx("ad-image"),b.image,c);this.G.init(Dx("ad-text"),b.headline,c);this.C.init(Dx("ad-text"),b.description,c);this.Ua.init(Dx("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button",
"ytp-ad-action-interstitial-action-button-rounded"];this.api.V().N("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.V().B&&(d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),d.push("ytp-ad-action-interstitial-action-button-dark"));
this.api.V().N("enable_unified_action_endcap_on_web")&&!this.api.V().B&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.eb.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.ib.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Ef.classList.add("ytp-ad-action-interstitial-card-unified"),this.ra.classList.add("ytp-ad-action-interstitial-description-container-unified"),
this.C.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.Fa.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.La.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Pa.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new fy(this.api,this.layoutId,this.interactionLoggingClientData,
this.Ya,d);g.P(this,this.actionButton);this.actionButton.Ha(this.eb);this.actionButton.init(Dx("button"),g.Q(b.actionButton,g.YJ),c);lp(this.actionButton.element);d=op(this.actionButton.element);np(this.actionButton.element,d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.La,"click",this.ZP,this);this.D.T(this.ra,"click",this.ZP,this);!this.api.V().N("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.V().B||this.D.T(this.Fa,"click",this.ZP,
this);this.j=this.vU?new Wy(this.api,a):new Xy(a);g.P(this,this.j);if(b.skipButton){if((a=g.Q(b.skipButton,Ocb))&&this.j&&(this.skipButton=new Qy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.j,this.nN),g.P(this,this.skipButton),this.skipButton.Ha(this.element),this.skipButton.init(Dx("skip-button"),a,c)),this.api.V().N("enable_dsa_ad_badge_for_action_endcap_on_web")){c=this.api.N("disable_ad_preview_for_instream_ads");if(a=b.adBadgeRenderer)if(a=g.Q(a,Ncb))d=new Uy(this.api,
this.layoutId,this.interactionLoggingClientData,this.Ya,!0,c),d.Ha(this.Pa),d.init(Dx("simple-ad-badge"),a,this.macros),g.P(this,d);if(a=b.adInfoRenderer)if(a=g.Q(a,WJ))c=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.element,void 0,c),c.Ha(this.Pa),c.init(Dx("ad-info-hover-text-button"),a,this.macros),g.P(this,c)}}else b.nonskippableOverlayRenderer&&(a=g.Q(b.nonskippableOverlayRenderer,XJ))&&this.j&&(this.B=new Ey(this.api,this.layoutId,this.interactionLoggingClientData,
this.Ya,this.j,!1),g.P(this,this.B),this.B.Ha(this.element),this.B.init(Dx("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.Q(b,Pcb)&&this.j&&(c=new I$a(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.j),g.P(this,c),c.Ha(this.element),c.init(Dx("timed-pie-countdown"),g.Q(b,Pcb),this.macros)));this.show();this.element.focus()}else g.ex(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.ex(Error("AdActionInterstitialRenderer has no button."));
else g.ex(Error("AdActionInterstitialRenderer has no background AdImage."));else g.ex(Error("AdActionInterstitialRenderer has no description AdText."));else g.ex(Error("AdActionInterstitialRenderer has no headline AdText."));else g.ex(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Vs(this.D);this.hide()};
g.k.show=function(){K$a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();Ox.prototype.show.call(this)};
g.k.hide=function(){K$a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();Ox.prototype.hide.call(this)};
g.k.ZP=function(){this.navigationEndpoint&&(this.layoutId?this.Ya.executeCommand(this.navigationEndpoint,this.layoutId):g.ex(Error("Missing layoutId for ad action interstitial.")))};var P$a={iconType:"CLOSE"},X0=new g.Cg(320,63);g.w(O$a,Ox);g.k=O$a.prototype;
g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);this.D=b;this.Z=g.dc(this.D.onClickCommands||[]);this.Pa=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.Q(a,Kcb)?(this.G=g.gh("ytp-ad-overlay-ad-info-button-container",this.C.element),Q$a(this,b),a=S$a(this,g.Q(a,Kcb))):g.Q(a,Lcb)?(this.G=g.gh("ytp-ad-overlay-ad-info-button-container",this.B.element),Q$a(this,b),a=T$a(this,g.Q(a,Lcb))):g.Q(a,Mcb)?(this.G=
g.gh("ytp-ad-overlay-ad-info-button-container",this.j.element),Q$a(this,b),a=U$a(this,g.Q(a,Mcb))):(g.ex(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),V$a(this,!0))};
g.k.clear=function(){V$a(this,!1);this.La.reset();this.ra=0;this.C.hide();this.logVisibility(this.C.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()};
g.k.pda=function(){this.eb&&(this.layoutId?this.Ya.executeCommand(this.eb,this.layoutId):g.ex(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.yO=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.x(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.Ya.executeCommand(b,this.layoutId):g.ex(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.Vaa=function(){this.Ua||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.k.OS=function(){this.Ua||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.OS("invideo-overlay")};
g.k.Waa=function(a){a.target===this.G&&g.gh("ytp-ad-button",this.ib.element).click()};g.w(W$a,zy);g.k=W$a.prototype;g.k.init=function(a,b,c){zy.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(Dx("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(){X$a(this,!1);zy.prototype.hide.call(this);this.B.hide();this.messageText.hide();By(this)};
g.k.show=function(){X$a(this,!0);zy.prototype.show.call(this);Ay(this);this.B.show();this.messageText.show()};
g.k.Hn=function(){this.hide()};
g.k.nm=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(yy(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.w(Y$a,Ox);g.k=Y$a.prototype;
g.k.init=function(a,b,c){Ox.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.Q(b.actionButton,g.YJ)?(this.C.init(Dx("ad-image"),b.image,c),this.B.init(Dx("ad-text"),b.headline,c),this.D.init(Dx("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().N("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,
a),b.backgroundColor&&g.Bm(this.element,"background-color",g.mz(b.backgroundColor)),g.P(this,this.actionButton),this.actionButton.Ha(this.G),this.actionButton.init(Dx("button"),g.Q(b.actionButton,g.YJ),c),b=g.KD(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().N("place_shrunken_video_on_left_of_player")?(c=this.j,g.Ap(c,"ytp-ad-underlay-left-container"),g.yp(c,"ytp-ad-underlay-right-container"),g.Bm(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.Ap(c,"ytp-ad-underlay-right-container"),
g.yp(c,"ytp-ad-underlay-left-container")),g.Bm(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.tB()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.QW.bind(this)),this.api.addEventListener("resize",this.PW.bind(this))):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.ex(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){Z$a(!0);this.actionButton&&this.actionButton.show();Ox.prototype.show.call(this)};
g.k.hide=function(){Z$a(!1);this.actionButton&&this.actionButton.hide();Ox.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.QW.bind(this));this.api.removeEventListener("resize",this.PW.bind(this));this.hide()};
g.k.onClick=function(a){Ox.prototype.onClick.call(this,a);this.actionButton&&g.sh(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.QW=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.PW=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.Bm(this.B.element,"font-size",a.width/40+"px")};g.w(Y0,Ox);
Y0.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.Q(b.answer,g.YJ)?(a=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ha(this.answer),a.init(Dx("ytp-ad-survey-answer-button"),g.Q(b.answer,g.YJ),c),a.show()):b.answer&&g.Q(b.answer,R1)&&(this.j=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ha(this.answer),g.P(this,this.j),this.j.init(Dx("survey-answer-button"),g.Q(b.answer,R1),c));this.show()};
Y0.prototype.SH=function(a){this.layoutId?pE(this.Ya,a,this.layoutId,this.macros):g.ex(new g.lt("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
Y0.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);if(this.api.V().N("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
Y0.prototype.clear=function(){this.hide()};g.w($$a,Ox);$$a.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);b.answer&&g.Q(b.answer,R1)&&(this.button=new oy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ha(this.j),this.button.init(Dx("survey-none-of-the-above-button"),g.Q(b.answer,R1),c));this.show()};g.w(Z0,fy);Z0.prototype.init=function(a,b,c){fy.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.Qx(b.text),a=!g.zb(b));a||g.fx(Error("No submit text was present in the renderer."))};
Z0.prototype.onClick=function(a){this.publish("l");fy.prototype.onClick.call(this,a)};g.w($0,Ox);
$0.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.Q(a,JI)?(a=g.Q(a,JI),c=new Sy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.D,!0),c.Ha(this.skipOrPreview),c.init(Dx("skip-button"),a,this.macros),g.P(this,c),this.j=c):g.Q(a,XJ)&&(a=g.Q(a,XJ),c=new Ey(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.D,!1),c.Ha(this.skipOrPreview),c.init(Dx("ad-preview"),a,this.macros),Fy(c),g.P(this,c),this.j=c);this.j==
null&&g.ex(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.Q(a,g.YJ)&&(a=g.Q(a,g.YJ),c=new Z0(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),c.Ha(this.submitButton),c.init(Dx("survey-submit"),a,this.macros),g.P(this,c),this.B=c));a=this.api.N("disable_ad_preview_for_instream_ads");if(c=b.adBadgeRenderer){c=g.Q(c,Ncb);var d=new Uy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,!0,
a,!0);d.Ha(this.C);d.init(Dx("simple-ad-badge"),c,this.macros);this.adBadge=d.element;g.P(this,d)}if(c=b.adDurationRemaining)c=g.Q(c,Hcb),d=new $y(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.D,void 0,a),d.Ha(this.C),d.init(Dx("ad-duration-remaining"),c,this.macros),g.P(this,d);(b=b.adInfoRenderer)&&g.Q(b,WJ)&&(c=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.element,void 0,a),g.P(this,c),a&&this.adBadge!==void 0?this.C.insertBefore(c.element,
this.adBadge.nextSibling):c.Ha(this.C),c.init(Dx("ad-info-hover-text-button"),g.Q(b,WJ),this.macros));this.show()};
$0.prototype.clear=function(){this.hide()};g.w(a1,Ox);a1.prototype.init=function(a,b,c){Ox.prototype.init.call(this,a,b,c);eab(this)};
a1.prototype.show=function(){this.C=Date.now();Ox.prototype.show.call(this)};
a1.prototype.Z1=function(){};g.w(fab,a1);g.k=fab.prototype;g.k.init=function(a,b,c){var d=this;a1.prototype.init.call(this,a,b,c);b.questionText&&aab(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,P1)&&bab(d,g.Q(e,P1),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.Q(a,Jcb))&&gab(this,a,c);b.surveyAdQuestionCommon&&dab(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.Z1=function(){hab(this,!1);this.D.B.subscribe("l",this.nda,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?iab(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),hab(this,!0))};
g.k.nda=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.Sg(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=dj(f.baseUrl,b));return f});
return e});
if(c){c=g.x(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?pE(this.Ya,d,this.layoutId,this.macros):g.ex(Error("Missing layoutId for multi_select_question."))}this.api.V().N("supports_multi_step_on_desktop")&&this.ra(a)};
g.k.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(b1,a1);b1.prototype.init=function(a,b,c){var d=this;a1.prototype.init.call(this,a,b,c);b.questionText&&aab(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.Q(e,P1)&&bab(d,g.Q(e,P1),c,f)});
b.surveyAdQuestionCommon?dab(this,b.surveyAdQuestionCommon):g.ex(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
b1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(c1,Ox);c1.prototype.init=function(a,b,c){var d=this;Ox.prototype.init.call(this,a,b,c);if(this.api.V().N("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)&&mab(this,0)}else(b.questions||[]).forEach(function(l){g.Q(l,UJ)?kab(d,g.Q(l,UJ),c):g.Q(l,TJ)&&lab(d,g.Q(l,TJ),c)});
this.show()};
c1.prototype.clear=function(){this.api.V().N("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
c1.prototype.D=function(a){var b=this;if(this.api.V().N("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.ex(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.ex(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)mab(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.ex(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 nab=pa(['background-image:url("','");']);g.w(d1,Ox);
d1.prototype.init=function(a,b,c){var d=this;Ox.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.ex(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.YJ))if(b.brandImage)if(b.backgroundImage&&g.Q(b.backgroundImage,ZJ)&&g.Q(b.backgroundImage,ZJ).landscape){this.layoutId||g.ex(Error("Missing layoutId for survey interstitial."));oab(this.interstitial,
g.Q(b.backgroundImage,ZJ).landscape);oab(this.logoImage,b.brandImage);g.th(this.text,g.Qx(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new fy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,e);g.P(this,this.actionButton);this.actionButton.Ha(this.B);this.actionButton.init(Dx("button"),g.Q(b.ctaButton,g.YJ),c);this.actionButton.show();this.j=new Wy(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.ex(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.ex(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.ex(Error("SurveyTextInterstitialRenderer has no button."));else g.ex(Error("SurveyTextInterstitialRenderer has no text."));else g.ex(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
d1.prototype.clear=function(){this.hide()};
d1.prototype.show=function(){pab(!0);Ox.prototype.show.call(this)};
d1.prototype.hide=function(){pab(!1);Ox.prototype.hide.call(this)};g.w(e1,zy);g.k=e1.prototype;
g.k.init=function(a,b){zy.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.ex(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.qK();var c;if((c=b.previewText)==null||!c.text||g.zb(b.previewText.text))g.ex(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.th(this.C,b.previewText.text);var d;
if(((d=this.api.getVideoData(1))==null?0:d.Gl)&&b.previewImage){var e,f;(a=((f=YB(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.Nx({J:"img",S:"ytp-preview-ad__image",Y:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.P(this,this.previewImage),this.previewImage.Ha(this.element)):g.ex(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(){By(this);zy.prototype.hide.call(this)};
g.k.show=function(){Ay(this);zy.prototype.show.call(this)};
g.k.Hn=function(){this.hide()};
g.k.nm=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.th(this.C,a);this.D=b}}}};g.w(f1,Ox);
f1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});var c,d;if((a=((d=YB(((c=b.image)==null?void 0:c.sources)||[],qab(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.ex(Error("Failed to get imageUrl in AdAvatar."))};
f1.prototype.clear=function(){this.hide()};
f1.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a)};g.w(g1,Ox);
g1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.zb(a))||b.iconImage){c&&(this.buttonText=new g.Nx({J:"span",S:"ytp-ad-button-vm__text",ya: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&&np(this.element,f+" This link opens in new tab");lp(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=
g.x(e.sources),a=e.next();!a.done;a=e.next())if(a=a.value,f=void 0,(f=a.clientResource)==null?0:f.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=ey(d);h!=null&&(this.buttonIcon=new g.Nx({J:"span",S:"ytp-ad-button-vm__icon",X:[h]}),g.P(this,this.buttonIcon),b.iconLeading?(qh(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):c?(this.buttonIcon.Ha(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")):
(this.buttonIcon.Ha(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(b.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;default: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.fx(Error("AdButton does not have label or an icon."))};
g1.prototype.clear=function(){this.hide()};
g1.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a)};g.w(rab,zy);g.k=rab.prototype;
g.k.init=function(a,b){zy.prototype.init.call(this,a,b,{});this.api.V().N("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"),qh(this.Da("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.Q(b.avatar,yab)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.Q(b.button,q1);e?(this.adAvatar.init(Dx("ad-avatar"),a),this.headline.init(Dx("ad-simple-attributed-string"),new bz(c)),this.description.init(Dx("ad-simple-attributed-string"),new bz(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(Dx("ad-button"),e),this.startMilliseconds=b.startMs||0,this.api.tB()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.RW.bind(this)),Ay(this)):g.ex(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ex(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ex(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.ex(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.nm=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.startMilliseconds&&(By(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Hn=function(){this.clear()};
g.k.onClick=function(a){this.api.pauseVideo();zy.prototype.onClick.call(this,a)};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.RW.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();zy.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();zy.prototype.hide.call(this)};
g.k.RW=function(a){a==="hidden"?this.show():this.hide()};g.w(h1,Ox);g.k=h1.prototype;
g.k.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(!b.label||g.zb(b.label))g.ex(Error("No label is returned for SkipAdButton."));else if(g.th(this.D,b.label),a=ey({iconType:"SKIP_NEXT_NEW"}),a==null)g.ex(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.Nx({J:"span",S:"ytp-skip-ad-button__icon",X:[a]}),g.P(this,this.C),this.C.Ha(this.element),this.api.V().experiments.fb("enable_skip_to_next_messaging")&&(b=g.lg(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;vta(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0?this.api.gb("onAbnormalityDetected"):(Ox.prototype.onClick.call(this,a),this.api.V().N("embeds_web_enable_ad_skipped_event_publishing")&&this.api.gb("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){Ox.prototype.hide.call(this)};
g.k.show=function(){this.j.start();Ox.prototype.show.call(this);this.B&&this.api.V().experiments.fb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.w(sab,zy);g.k=sab.prototype;
g.k.init=function(a,b){zy.prototype.init.call(this,a,b,{});a=g.Q(b.preskipState,Wcb);if(this.D||!this.api.V().experiments.fb("disable_ad_preview_for_instream_ads")){if(!a){g.ex(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var c;(c=this.B)==null||c.init(Dx("preview-ad"),a);(c=this.B)!=null&&(c.transition.show(100),c.show())}(c=g.Q(b.skippableState,Ycb))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.fx(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=
5E3),this.C.init(Dx("skip-button"),c),this.show()):g.ex(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){Ay(this);zy.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();By(this);zy.prototype.hide.call(this)};
g.k.clear=function(){var a;(a=this.B)==null||a.clear();this.C&&this.C.clear();By(this);zy.prototype.hide.call(this)};
g.k.Hn=function(){this.hide()};
g.k.nm=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.w(i1,Ox);
i1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.zb(b.label.content)&&(this.linkText=new g.Nx({J:"span",S:"ytp-visit-advertiser-link__text",ya: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)np(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.zb(b.label.content)&&np(this.element,
b.label.content+" This link opens in new tab")}lp(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.ex(Error("No label found in VisitAdvertiserLink."))};
i1.prototype.onClick=function(a){Ox.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
i1.prototype.clear=function(){this.hide()};g.w(j1,Ox);
j1.prototype.init=function(a,b,c,d){Ox.prototype.init.call(this,a,b,{});if(b.skipOrPreview){c=b.skipOrPreview;a=g.Q(c,Zcb);c=g.Q(c,Wcb);var e,f=this.api.V().N("clean_player_style_fix_on_web")&&((e=this.api.getVideoData())==null?void 0:e.isDaiEnabled());a?(this.Pv=new sab(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B),g.P(this,this.Pv),this.Pv.Ha(this.Z),this.Pv.init(Dx("skip-ad"),a)):!c||this.api.V().experiments.fb("disable_ad_preview_for_instream_ads")&&!f||(this.D=new e1(this.api,
this.layoutId,this.interactionLoggingClientData,this.Ya,this.B,1),g.P(this,this.D),this.D.Ha(this.Z),this.D.init(Dx("ad-preview"),c),e=this.D,e.transition.show(100),e.show());if(e=g.Q(b.skipOrPreview,Zcb))var h=e.skipOffsetMilliseconds}b.playerAdCard&&(e=g.Q(b.playerAdCard,Xcb))&&(this.playerAdCard=new rab(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B),g.P(this,this.playerAdCard),this.playerAdCard.Ha(this.Fa),this.playerAdCard.init(Dx("ad-avatar-lockup-card"),e));e=this.api.V().N("disable_ad_duration_remaining_for_instream_video_ads")||
b.adPodIndex!==void 0;b.adBadgeRenderer&&((a=g.Q(b.adBadgeRenderer,p1))?(this.C=new dz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,e),g.P(this,this.C),this.C.Ha(this.j),this.C.init(Dx("ad-badge"),a)):g.ex(Error("AdBadgeViewModel is not found in player overlay layout.")));b.adPodIndex&&(a=g.Q(b.adPodIndex,Scb))&&(this.adPodIndex=new ez(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,g.Q(b.skipOrPreview,Zcb)===void 0),g.P(this,this.adPodIndex),this.adPodIndex.Ha(this.j),
this.adPodIndex.init(Dx("ad-pod-index"),a));b.adInfoRenderer&&(a=g.Q(b.adInfoRenderer,WJ))&&(this.adInfoButton=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.element,void 0,e),g.P(this,this.adInfoButton),this.api.V().N("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(Dx("ad-info-hover-text-button"),a,this.macros));var l;a=this.api.V().N("clean_player_style_fix_on_web")&&
((l=this.api.getVideoData())==null?void 0:l.isDaiEnabled());b.adDurationRemaining&&(!e||a)&&(l=g.Q(b.adDurationRemaining,Hcb))&&(this.adDurationRemaining=new $y(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B,d.videoAdDurationSeconds,e),g.P(this,this.adDurationRemaining),e&&this.adPodIndex!==void 0?this.j.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?e?this.j.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):
this.j.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Ha(this.j),this.adDurationRemaining.init(Dx("ad-duration-remaining"),l,this.macros));b.visitAdvertiserLink&&(d=g.Q(b.visitAdvertiserLink,adb))&&(this.visitAdvertiserLink=new i1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ha(this.j),this.visitAdvertiserLink.init(Dx("visit-advertiser-link"),d));b.adDisclosureBanner&&
(b=g.Q(b.adDisclosureBanner,Rcb))&&(this.adDisclosureBanner=new fz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.adDisclosureBanner),this.adDisclosureBanner.Ha(this.ra),this.adDisclosureBanner.init(Dx("ad-disclosure-banner"),b));this.api.V().N("show_preskip_progress_bar_for_skippable_ads")&&(this.G=new iz(this.api,this.B,h,e),g.P(this,this.G),g.qS(this.api,this.G.element,4));this.show()};
j1.prototype.clear=function(){this.hide()};g.w(tab,Ox);g.k=tab.prototype;
g.k.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b!=null&&b.title)if(a=b.title)if(this.headline.init(Dx("ad-simple-attributed-string"),new bz(a)),a=g.Q(b.moreInfoButton,q1)){if(this.moreInfoButton.init(Dx("ad-button"),a),b.descriptions)b.descriptions.length>0&&(a=b.descriptions[0])&&(this.j=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.j),this.j.Ha(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.j.init(Dx("ad-simple-attributed-string"),
new bz(a))),b.descriptions.length>1&&(b=b.descriptions[1])&&(this.B=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.B),this.B.Ha(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.B.init(Dx("ad-simple-attributed-string"),new bz(b)))}else g.ex(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.ex(Error("No headline found in AdGridCardText."));else g.ex(Error("No headline found in AdGridCardText."))};
g.k.onClick=function(a){Ox.prototype.onClick.call(this,a);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var a;(a=this.j)==null||a.clear();var b;(b=this.B)==null||b.clear()};
g.k.hide=function(){this.headline.hide();this.moreInfoButton.hide();var a;(a=this.j)==null||a.hide();var b;(b=this.B)==null||b.hide();Ox.prototype.hide.call(this)};
g.k.show=function(){Ox.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var a;(a=this.j)==null||a.show();var b;(b=this.B)==null||b.show()};g.w(k1,Ox);k1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b!=null&&b.gridCards)if(b.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.ex(Error("Only single column style is currently supported in AdGridCardCollection."));else for(a=g.x(b.gridCards),b=a.next();!b.done;b=a.next()){if(b=g.Q(b.value,Vcb)){var c=new tab(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,c);c.Ha(this.element);c.init(Dx("ad-grid-card-text"),b);this.j.push(c)}}else g.ex(Error("No grid cards found in AdGridCardCollection."))};
k1.prototype.show=function(){for(var a=g.x(this.j),b=a.next();!b.done;b=a.next())b.value.show();Ox.prototype.show.call(this)};
k1.prototype.clear=function(){this.hide();for(var a=g.x(this.j),b=a.next();!b.done;b=a.next())b.value.clear()};
k1.prototype.hide=function(){for(var a=g.x(this.j),b=a.next();!b.done;b=a.next())b.value.hide();Ox.prototype.hide.call(this)};g.w(l1,zy);g.k=l1.prototype;g.k.init=function(a,b,c,d,e){e=e===void 0?0:e;zy.prototype.init.call(this,a,b,c,d);this.playerProgressOffsetMs=e;Ay(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.FZ.bind(this));this.api.addEventListener("resize",this.AV.bind(this));this.api.tB()?(this.B=!0,this.api.er(!0),this.show()):this.hide()};
g.k.nm=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&!this.B&&1E3*a.current>=this.playerProgressOffsetMs&&(this.B=!0,this.api.er(!0),this.show())}};
g.k.Hn=function(){this.B&&this.api.er(!1);this.hide()};
g.k.clear=function(){this.api.er(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.FZ.bind(this));this.api.removeEventListener("resize",this.AV.bind(this));By(this);this.hide()};
g.k.hide=function(){uab(!1);zy.prototype.hide.call(this)};
g.k.show=function(){uab(!0);zy.prototype.show.call(this)};g.w(vab,l1);g.k=vab.prototype;g.k.init=function(a,b,c,d){if(b!=null&&b.adGridCardCollection)if(b!=null&&b.adButton){var e=Number(b.playerProgressOffsetMs||"0");isNaN(e)?l1.prototype.init.call(this,a,b,c,d):l1.prototype.init.call(this,a,b,c,d,e);a=g.Q(b.adGridCardCollection,Ucb);this.adGridCardCollection.init(Dx("ad-grid-card-collection"),a);b=g.Q(b.adButton,q1);this.adButton.init(Dx("ad-button"),b);this.hide()}else g.ex(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.ex(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))};
g.k.onClick=function(a){this.adButton&&g.sh(this.adButton.element,a.target)&&this.api.pauseVideo();l1.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.AV=function(){};
g.k.clear=function(){this.hide();this.adGridCardCollection.clear();this.adButton.clear();l1.prototype.clear.call(this)};
g.k.show=function(){this.adGridCardCollection.show();this.adButton.show();l1.prototype.show.call(this)};
g.k.hide=function(){this.adGridCardCollection.hide();this.adButton.hide();l1.prototype.hide.call(this)};
g.k.FZ=function(a){a==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))};g.w(m1,Ox);
m1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(b.attributes===void 0)g.ex(Error("No attributes found in AdDetailsLineViewModel."));else if(b.style===void 0)g.ex(Error("No style found in AdDetailsLineViewModel."));else{a=g.x(b.attributes);for(b=a.next();!b.done;b=a.next())if(b=b.value,b.text!==void 0){b=b.text;var c=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,c);c.Ha(this.element);c.element.classList.add("ytp-ad-details-line__text--style-standard");c.init(Dx("ad-simple-attributed-string"),
new bz(b));this.j.push(c)}this.show()}};
m1.prototype.show=function(){this.j.forEach(function(a){a.show()});
Ox.prototype.show.call(this)};
m1.prototype.clear=function(){this.hide()};
m1.prototype.hide=function(){this.j.forEach(function(a){a.hide()});
Ox.prototype.hide.call(this)};g.w(n1,Ox);n1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});var c,d;if((a=((d=YB(((c=b.image)==null?void 0:c.sources)||[]))==null?void 0:d.url)||"")&&a.length){c=this.Da("ytp-image-background-image");g.Bm(c,"backgroundImage","url("+a+")");b.blurLevel!==void 0&&g.Bm(c,"filter","blur("+b.blurLevel+"px)");if(b.gradient!==void 0)switch(b.gradient){case "IMAGE_BACKGROUND_GRADIENT_VERTICAL":this.element.classList.add("ytp-image-background--gradient-vertical")}this.show()}else g.ex(Error("Failed to get imageUrl in ImageBackground."))};
n1.prototype.clear=function(){this.hide()};g.w(wab,zy);g.k=wab.prototype;g.k.init=function(a,b){zy.prototype.init.call(this,a,b,{});g.Bm(this.C,"stroke-dasharray","0 "+this.B);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){By(this);zy.prototype.hide.call(this)};
g.k.show=function(){Ay(this);zy.prototype.show.call(this)};
g.k.Hn=function(){this.hide()};
g.k.nm=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Bm(this.C,"stroke-dasharray",a.current/a.seekableEnd*this.B+" "+this.B)}};g.w(o1,Ox);
o1.prototype.init=function(a,b){Ox.prototype.init.call(this,a,b,{});if(zab(b)){this.adAvatar=new f1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.adAvatar);this.adAvatar.Ha(this.Da("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Dx("ad-avatar"),g.Q(b.adAvatar,yab));this.headline=new cz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.headline);this.headline.Ha(this.Da("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline");
this.headline.init(Dx("ad-simple-attributed-string"),new bz(b.headline));if(a=g.Q(b.adDetailsLine,Qcb))this.detailsLine=new m1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.detailsLine),this.detailsLine.Ha(this.Da("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Dx("ad-details-line"),a);this.adButton=new g1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya);g.P(this,this.adButton);this.adButton.Ha(this.Da("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));
this.adButton.init(Dx("ad-button"),g.Q(b.adButton,q1));this.adBadge=new dz(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,!1);g.P(this,this.adBadge);this.adBadge.Ha(this.D);this.adBadge.init(Dx("ad-badge"),g.Q(b.adBadge,p1));this.adInfoButton=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.element,void 0,!1);g.P(this,this.adInfoButton);this.adInfoButton.Ha(this.D);this.adInfoButton.init(Dx("ad-info-hover-text-button"),g.Q(b.adInfoRenderer,WJ),this.macros);
if(a=g.Q(b.skipAdButton,Ycb))this.skipAdButton=new h1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.skipAdButton),this.skipAdButton.Ha(this.element),this.skipAdButton.init(Dx("skip-button"),a);this.B=new Xy(b.durationMilliseconds);g.P(this,this.B);if(a=g.Q(b.countdownViewModel,$cb))this.j=new wab(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya,this.B),g.P(this,this.j),this.j.Ha(this.Da("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),
this.j.init(Dx("timed-pie-countdown"),a);if(b=g.Q(b.imageBackground,Tcb))this.imageBackground=new n1(this.api,this.layoutId,this.interactionLoggingClientData,this.Ya),g.P(this,this.imageBackground),this.imageBackground.Ha(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Dx("image-background"),b);this.show();this.element.focus()}};
o1.prototype.clear=function(){g.Vs(this.C);this.hide()};
o1.prototype.show=function(){xab(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Ox.prototype.show.call(this)};
o1.prototype.hide=function(){xab(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.j&&this.j.hide();this.imageBackground&&this.imageBackground.hide();Ox.prototype.hide.call(this)};var rfb="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.w(r1,qy);
r1.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!rfb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.Ya,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof sF?c.vU:!1,m=c instanceof sF||c instanceof Vy?c.nN:!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 O$a(a,f,h,e);break;case "player-overlay":a=new jz(a,f,h,e,new GY(a),m);break;case "player-overlay-layout":a=new j1(a,f,h,e,new GY(a));break;case "survey":a=
new c1(a,f,h,e);break;case "ad-action-interstitial":a=new J$a(a,f,h,e,l,m);break;case "video-interstitial-buttoned-centered":a=new o1(a,f,h,e);break;case "survey-interstitial":a=new d1(a,f,h,e);break;case "ad-message":a=new W$a(a,f,h,e,new GY(a,1));break;case "player-underlay":a=new Y$a(a,f,h,e);break;case "display-underlay-text-grid-cards":a=new vab(a,f,h,e,new GY(a));break;default:a=null}if(!a){g.fx(Error("No UI component returned from ComponentFactory for type: "+d));break}g.Lg(this.B,b)?g.fx(Error("Ad UI component already registered: "+
b)):this.B[b]=a;a.bind(c);c instanceof qF?this.C?this.C.append(a.UT):g.ex(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(a.UT);break;case 2:b=Aab(this,a);if(b==null)break;b.bind(c);break;case 3:c=Aab(this,a),c!=null&&(g.jb(c),g.Lg(this.B,b)?(c=this.B,b in c&&delete c[b]):g.fx(Error("Ad UI component does not exist: "+b)))}};
r1.prototype.xa=function(){g.lb(Object.values(this.B));this.B={};qy.prototype.xa.call(this)};g.w(Bab,g.gY);g.k=Bab.prototype;g.k.create=function(){try{Cab(this),this.load(),this.created=!0,Cab(this)}catch(a){My(a instanceof Error?a:String(a))}};
g.k.load=function(){try{Fab(this)}finally{x0(V0(this.j).Rl)&&this.player.Mg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.My.Bn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.gY.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){My(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.Nn=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(qfb)};
g.k.oi=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=U9a(this.player),Object.assign(b,a.Cna),a=g.Uo(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Jq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.tv=function(a){var b;return!((b=this.j.j.Ie)==null||!b.get().tv(a))};
g.k.Jq=function(a){a.isMuted&&Fva(V0(this.j).hm,V0(this.j).fp,a.layoutId);this.Lt&&this.Lt.Jq()};
g.k.executeCommand=function(a){V0(this.j).Ya.executeCommand(a.command,a.layoutId)};g.Oa("yt.player.Application.create",g.T_.create);g.Oa("yt.player.Application.createAlternate",g.T_.create);hsa(ax(),pfb);var sfb=g.Pa("ytcsi.tick");sfb&&sfb("pe");g.fY("ad",Bab);g.w(g.u1,g.O);g.u1.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.Vt)()};this.next()};
g.u1.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.u1.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.Vt)()-a;a=this.j;d=sma(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=zg(a.C,a.y1,d);var f=zg(a.y1,a.y2,d);a=zg(a.y2,a.D,d);e=zg(e,f,d);f=zg(f,a,d);a=zg(e,f,d)}a=g.xg(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.w(g.v1,g.S);g.k=g.v1.prototype;g.k.e5=function(){this.j&&this.scrollTo(this.scrollPosition-this.containerWidth)};
g.k.show=function(){g.S.prototype.show.call(this);Lab(this)};
g.k.f5=function(){this.j&&this.scrollTo(this.scrollPosition+this.containerWidth)};
g.k.Ny=function(){this.lc(this.api.qb().getPlayerSize())};
g.k.lc=function(a){var b=this.api.jd()?.5625:16/9,c=this.api.Vh();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.x(this.B),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.D=d;this.W=b;this.containerWidth=a;this.columns=c;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.w1(this)};
g.k.onVideoDataChange=function(){var a=this.api.V(),b=this.api.getVideoData();this.G=b.Nf?!1:a.D;this.suggestionData=b.suggestions?g.wn(b.suggestions,function(c){return c&&!c.playlistId}):[];
Nab(this);b.Nf?this.title.update({title:g.OE("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.jd()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.xg(a,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.L.start(this.scrollPosition,a,1E3);this.scrollPosition=a;g.w1(this);Lab(this)};})(_yt_player);