var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var _yt_player={};(function(g){var window=this;/*

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

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

 SPDX-License-Identifier: Apache-2.0
*/
'use strict';var aa,baa,caa,ea,daa,eaa,faa,ha,ka,ma,na,jaa,kaa,va,xa,laa,maa,za,naa,Aa,Ca,Da,Ha,oaa,qaa,raa,Sa,Ua,saa,Va,Wa,Ya,cb,fb,taa,uaa,kb,waa,xaa,Eb,yaa,Kb,zaa,Aaa,Ib,Baa,Caa,Daa,Faa,Eaa,Gaa,Rb,Haa,Sb,Ub,ac,dc,mc,nc,oc,pc,qc,tc,Paa,uc,wc,vc,Qaa,Raa,Saa,xc,yc,Taa,Bc,Cc,Dc,Uaa,Vaa,Gc,Hc,Xaa,Yaa,$aa,Qc,Rc,cba,Sc,Vc,dba,eba,Yc,gd,fba,iba,pd,sd,jba,kba,td,pba,yd,mba,oba,wd,vd,Jd,Kd,qba,Ld,rba,Nd,Od,sba,Ud,Vd,Wd,Yd,wba,xba,Zd,zba,Cba,$d,ae,Eba,Jba,ce,je,ke,Lba,Kba,Qba,Rba,ue,Sba,Uba,Vba,Wba,Zba,ye,
aca,De,Ee,Ge,Je,Le,Re,Se,bca,cca,dca,eca,Ve,We,lf,hca,jca,ica,nf,pf,kca,of,Ue,Bf,mca,Df,Cf,Te,Ff,nca,oca,Gf,Hf,pca,rca,tca,Pf,Qf,Rf,xca,Yf,yca,Sf,Cca,Nf,vca,Eca,Bca,zca,Aca,Fca,Dca,Zf,bg,Hca,Ica,Jca,Kca,Lca,Mca,Nca,Oca,Pca,Qca,Rca,Sca,Tca,dg,Uca,eg,Vca,Yca,Zca,$ca,eda,ig,dda,ada,gda,ida,kda,sg,tg,nda,vg,wg,yg,xg,pda,zg,rda,tda,qda,Cg,Eg,Dg,Fg,Gg,Hg,Ig,uda,wda,Kg,xda,yda,Lg,Mg,Pg,Ada,Bda,Dda,Eda,Gda,Zg,Hda,$g,Ida,ah,Jda,bh,Kda,Lda,Mda,ch,Nda,dh,fh,Oda,Pda,gh,hh,ih,jh,Qda,Rda,kh,Sda,lh,nh,mh,oh,Tda,
Uda,Vda,Wda,Xda,Yda,ph,rh,$da,Ah,H,Bh,Ch,Eh,bea,cea,Fh,dea,eea,Gh,fea,Hh,Ih,Kh,Jh,gea,aea,Mh,hea,Nh,I,Oh,Ph,Qh,Rh,iea,Sh,Uh,Zh,jea,Th,kea,bi,lea,mea,oea,nea,pea,di,qea,ei,fi,Lh,J,rea,uea,vea,xea,yea,zea,Aea,Bea,sea,tea,Dea,Eea,Fea,Gea,li,Hea,Iea,Jea,Kea,hi,wea,Cea,mi,ni,oi,pi,Lea,Mea,Nea,Oea,qi,Qea,ri,Rea,Tea,si,ti,Vea,Wea,Xea,ui,$ea,bfa,cfa,efa,dfa,ffa,Gi,Hi,Ii,hfa,ifa,jfa,Ji,lfa,Ni,mfa,pfa,Oi,Pi,qfa,Qi,Ri,sfa,tfa,Vi,Wi,Xi,ufa,vfa,$i,wfa,lj,mj,zfa,Bfa,Cfa,Efa,Dfa,Ffa,oj,Gfa,rj,vj,wj,xj,$h,Lfa,yj,
Ofa,Qfa,Rfa,Aj,Tfa,Ufa,Vfa,Xfa,Wfa,Yfa,Sfa,zj,Zfa,$fa,cga,Bj,Cj,dga,Dj,Ej,ega,fga,Fj,Gj,Hj,Ij,gga,hga,iga,jga,Jj,kga,lga,mga,pga,nga,Kj,qga,Lj,rga,sga,Mj,Xj,tga,uga,vga,Yj,Zj,ak,bk,yga,ck,zga,dk,ek,hk,Aga,Cga,Bga,Dga,Ega,Fga,ik,jk,Gga,Jga,kk,lk,mk,nk,Kga,ok,pk,qk,rk,Pga,Mga,uk,Oga,vk,Nga,tk,sk,xk,Rga,zk,yk,Sga,Tga,Fk,Gk,Ik,Wga,Hk,Ok,Xga,Pk,Uga,$ga,aha,bha,Sk,Tk,Uk,cha,Vk,Wk,Xk,Yk,dha,Zk,$k,al,eha,fha,bl,gha,Hga,jha,kha,lha,mha,hha,nha,oha,cl,dl,fl,gl,hl,il,jl,pha,kl,el,ll,ml,qha,rha,sha,tha,uha,vha,
nl,ol,pl,ql,rl,sl,tl,wha,ul,vl,wl,xha,zha,Aha,yl,Al,zl,Cl,Ol,Pl,Cha,Dha,Ql,Rl,Sl,Fha,Gha,Jha,Hha,Kha,Oha,Tl,Nha,Lha,Ul,Vl,Pha,Wl,Qha,Xl,Sha,Rha,Tha,Uha,am,bm,Vha,Wha,Xha,cm,dm,Yha,em,Zha,$ha,bia,fia,fm,gia,hia,iia,jia,kia,im,lia,mia,nia,pm,om,nm,oia,pia,qia,qm,rm,sm,sia,xm,ym,zm,Am,Bm,Cm,uia,via,wia,Dm,Fm,Gm,Km,Lm,Om,yia,Aia,zia,Bia,Cia,Um,Dia,Eia,Vm,Fia,Gia,Hia,Iia,Zm,Xm,$m,an,bn,Jia,Kia,Lia,rn,sn,tn,Mia,Nia,Oia,un,Pia,vn,wn,Qia,Ria,Sia,Tia,Uia,Via,Wia,yn,zn,An,Cn,Zia,Dn,En,$ia,Yia,Bn,aja,Fn,Gn,
Hn,Jn,In,bja,cja,dja,Kn,fja,Ln,hja,ija,jja,kja,lja,mja,nja,oja,On,Pn,Qn,qja,pja,Sn,rja,Tn,sja,Un,tja,uja,Vn,Wn,Xn,vja,Yn,Zn,wja,$n,ao,bo,co,eo,fo,go,ho,xja,yja,zja,Aja,io,Bja,Dja,Cja,ko,lo,Fja,Eja,Kja,Jja,mo,Lja,Mja,Nja,Pja,Oja,Qja,no,Rja,Sja,po,Tja,Uja,Vja,Wja,qo,Xja,ro,Yja,so,to,$ja,uo,aka,vo,wo,bka,cka,xo,zo,eka,Ao,dka,fka,gka,hka,jka,Bo,kka,So,To,mka,nka,qka,rka,Uo,Vo,Wo,Xo,Yo,Zo,$o,ap,bp,cp,dp,ep,fp,vka,uka,wka,yka,xka,Aka,tka,zka,ska,gp,hp,Cka,Dka,Eka,lp,mp,np,ip,Gka,op,Bka,Ika,Jka,Kka,Hka,
pp,qp,rp,sp,Lka,Fka,Mka,tp,Nka,Oka,Pka,Qka,Rka,Uka,vp,Vka,wp,Wka,Xka,Yka,ala,zp,dla,yp,Bp,ela,Cp,Ep,Fp,fla,gla,Mp,hla,ila,Np,jla,Yp,Vp,Wp,Xp,kla,aq,$p,lla,cq,mla,ola,dq,pla,qla,vla,rla,gq,hq,Ala,iq,jq,kq,Cla,nq,Dla,Ela,oq,Gla,qq,rq,sq,Hla,uq,vq,wq,xq,Lq,Mq,Jla,Nq,Kla,Pq,Qq,Rq,Sq,Tq,Uq,Lla,Mla,Nla,Ola,Pla,Qla,Vq,Rla,br,Sla,Tla,Ula,cr,er,fr,gr,jr,kr,lr,Wla,or,pr,qr,Xla,Yla,rr,Zla,$la,tr,hma,ima,jma,ur,kma,lma,oma,xr,yr,qma,Ar,Br,Cr,Dr,Er,Fr,Gr,Hr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,Yr,Zr,
$r,as,bs,cs,ds,es,fs,gs,hs,is,js,ks,ls,ms,ns,os,ps,qs,rs,ts,us,vs,ws,xs,ys,zs,As,Bs,Cs,Ds,Es,Fs,Gs,Hs,Is,Js,Ks,Bma,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Ts,Fma,Vs,Ws,Xs,Ys,pt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Dt,Et,Ft,Gt,Ht,It,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,du,eu,fu,gu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,ru,tu,uu,vu,wu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Qu,Ru,Su,Tu,Uu,Vu,Wu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,ov,pv,qv,rv,tv,uv,vv,wv,xv,yv,zv,Av,Bv,Cv,
Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Qv,Rv,Sv,Tv,Uv,Vv,Wv,Xv,Yv,Zv,$v,aw,bw,cw,dw,ew,fw,gw,hw,iw,jw,kw,lw,mw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,yw,Aw,Fw,Gw,Hw,Iw,Jw,Kw,Lw,Mw,Nw,Ow,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,mx,nx,ox,px,qx,rna,rx,sna,sx,una,tx,ux,vx,wx,xx,yx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Lx,Mx,Nx,Ox,Px,Qx,Rx,Sx,Tx,Ux,Vx,Wx,Xx,Yx,Zx,$x,ay,by,Fna,Gna,dy,fy,iy,Hna,jy,Ina,ny,oy,py,qy,ry,ty,uy,Mna,vy,wy,yy,Jna,zy,Pna,Sna,Ay,Una,Wna,Fy,Xna,Yna,Zna,coa,aoa,
boa,Iy,Gy,Ky,Jy,doa,My,Ny,Oy,eoa,Uy,foa,Vy,goa,Xy,hoa,Zy,$y,ioa,az,bz,koa,ez,gz,hz,Wy,iz,jz,kz,lz,mz,nz,oz,moa,pz,sz,rz,ooa,roa,poa,qoa,soa,toa,xoa,yoa,uoa,Aoa,wz,xz,Az,Bz,Boa,zz,Cz,Doa,Eoa,Hoa,Ioa,Gz,Joa,Koa,Hz,Iz,Jz,Kz,Mz,Noa,Ooa,Tz,Poa,Qoa,Uz,Roa,Zz,$z,aA,Soa,Toa,Voa,Xoa,eA,hA,fA,kA,lA,nA,Yoa,uA,vA,wA,xA,zA,AA,CA,cpa,dpa,EA,epa,fpa,GA,gpa,hpa,HA,IA,ipa,JA,jpa,MA,lpa,mpa,KA,npa,opa,qpa,ppa,QA,kpa,spa,tpa,upa,gB,vpa,wpa,iB,jB,xpa,ypa,mB,zpa,Apa,Bpa,Cpa,rB,Dpa,Epa,Fpa,Gpa,Hpa,Ipa,Jpa,Kpa,tB,Lpa,vB,
Npa,Opa,Ppa,Qpa,Rpa,CB,Tpa,Upa,Vpa,Wpa,Spa,Xpa,Ypa,wB,xB,AB,BB,DB,zB,yB,Zpa,gqa,$pa,aqa,bqa,cqa,dqa,kqa,eqa,HB,IB,KB,mqa,NB,nqa,JB,OB,TB,vqa,uqa,QB,tqa,VB,wqa,zqa,WB,UB,xqa,yqa,Aqa,YB,Cqa,Dqa,Eqa,Fqa,Gqa,Hqa,Iqa,Bqa,Kqa,Lqa,Mqa,Nqa,Oqa,aC,bC,dC,Qqa,eC,Rqa,Sqa,hC,iC,Uqa,Tqa,Vqa,Xqa,Zqa,Yqa,bra,era,cra,vC,uC,fra,tC,wC,xC,ira,kra,BC,CC,lra,N,DC,mra,nra,FC,ora,qra,GC,rra,HC,IC,LC,KC,JC,NC,OC,PC,tra,QC,SC,ura,UC,VC,YC,XC,WC,vra,ZC,xra,yra,wra,Ara,Bra,aD,hD,zra,iD,jD,Gra,pD,Fra,Kra,Lra,Era,Jra,Ira,$C,qD,
gD,nD,Hra,sD,Qra,Pra,Tra,xD,Vra,vD,Wra,yD,zD,BD,Yra,Zra,$ra,asa,bsa,csa,qA,ksa,hsa,msa,nsa,osa,rsa,ssa,usa,vsa,wsa,xsa,qsa,zsa,GD,HD,Asa,JD,LD,MD,ND,OD,PD,Csa,QD,RD,SD,TD,Hsa,Jsa,Lsa,Msa,VD,Osa,Psa,aE,bE,Qsa,Rsa,cE,fE,Ssa,Tsa,iE,jE,kE,lE,mE,nE,oE,Usa,pE,qE,Wsa,Vsa,rE,bta,sE,tE,uE,wE,cta,dta,yE,zE,AE,fta,CE,DE,gta,hta,jta,kta,GE,HE,JE,mta,KE,VE,IE,pta,WE,sta,tta,uta,rta,vta,wta,ZE,YE,ota,zta,qta,$E,Bta,Dta,cF,Eta,bF,eF,Fta,aF,Gta,fF,Cta,Hta,gF,iF,lF,nF,Jta,oF,pF,Nta,Pta,Ota,Rta,wF,rF,Qta,Mta,Lta,Kta,
vF,sF,uF,Wta,Xta,Yta,FF,GF,Zta,HF,IF,EF,cua,$ta,aua,dua,JF,eua,LF,fua,MF,NF,OF,PF,gua,hua,QF,iua,RF,jua,kua,SF,UF,YF,lua,ZF,$F,aG,bG,cG,dG,eG,mua,fG,hG,oua,pua,gG,iG,sua,tua,jG,uua,mG,vua,nG,pG,wua,oG,qG,xua,sG,zua,Aua,uG,vG,AG,Cua,xG,BG,DG,Dua,FG,zG,CG,Eua,GG,Fua,HG,Gua,wG,yG,Bua,EG,IG,Hua,Iua,JG,Jua,KG,Kua,LG,MG,OG,Lua,NG,PG,QG,Mua,RG,SG,TG,UG,VG,Oua,WG,XG,Pua,YG,Qua,ZG,$G,aH,Rua,bH,Sua,Tua,Uua,dH,cH,Vua,Wua,Xua,Yua,eH,fH,gH,hH,Zua,$ua,jH,ava,kH,lH,bva,cva,mH,dva,eva,iva,jva,fva,gva,hva,nH,pH,oH,
qH,rH,kva,lva,sH,tH,mva,nva,uH,ova,wH,pva,xH,qva,rva,sva,tva,yH,uva,AH,BH,CH,vva,xva,EH,DH,IH,BF,JH,KH,AF,zF,LH,MH,Nua,yva,NH,YH,ZH,GH,$H,zva,cI,dI,fI,Ava,gI,hI,iI,jI,kI,lI,Bva,mI,nI,oI,pI,qI,sI,Cva,tI,uI,vI,Dva,Eva,Fva,AI,wI,BI,CI,Gva,Hva,Iva,DI,FI,Tta,tF,Mva,Nva,Ova,Pva,Qva,Rva,qF,EI,Sva,II,JI,Vva,Wva,Xva,KI,awa,Yva,Zva,cwa,dwa,LI,bwa,ewa,MI,NI,OI,fwa,gwa,PI,hwa,iwa,jwa,GI,kwa,SI,lwa,mwa,nwa,UI,TI,owa,pwa,qwa,rwa,swa,Uta,Sta,WI,XI,YI,$I,aJ,bJ,cJ,dJ,ZI,hJ,uwa,kJ,vwa,wwa,xwa,ywa,lJ,zwa,Awa,Bwa,Cwa,
mJ,Dwa,nJ,Fwa,oJ,Hwa,Iwa,Gwa,Ewa,Jwa,Kwa,Lwa,sJ,Nwa,tJ,Vta,uJ,Owa,Qwa,xF,Rwa,Swa,Twa,Uwa,wJ,Vwa,xJ,yJ,EJ,Xwa,HJ,IJ,LJ,MJ,Ywa,$wa,Zwa,axa,bxa,cxa,dxa,exa,fxa,OJ,PJ,QJ,gxa,hxa,RJ,ixa,SJ,TJ,jxa,UJ,kxa,VJ,lxa,WJ,XJ,YJ,ZJ,mxa,nxa,pxa,$J,qxa,oxa,aK,vK,rK,xK,AK,BK,rxa,yxa,sK,uK,EK,Cxa,JK,hK,KK,gK,LK,qK,OK,PK,QK,RK,SK,TK,Exa,Fxa,UK,Gxa,Hxa,Ixa,Jxa,VK,Kxa,Pxa,Oxa,Lxa,Nxa,Mxa,WK,Qxa,XK,Rxa,Sxa,Uxa,Vxa,Wxa,$xa,bL,cL,cya,dL,eL,dya,fya,iya,jya,kya,fL,hL,iL,jL,kL,lL,mL,nL,oL,mya,pL,nya,qL,rL,sL,tL,uL,vL,wL,pya,
qya,xL,rya,BL,uya,vya,CL,DL,wya,yya,Aya,JL,Bya,QL,Lya,Fya,Gya,Nya,RL,Oya,Qya,Pya,Rya,TL,WL,Sya,SL,XL,YL,Tya,Xya,Uya,Wya,kM,tM,vM,yza,iza,kza,eM,wM,xza,jza,jM,zza,yM,gza,Bza,Aza,bM,iM,Hza,Dza,Eza,Fza,Gza,Iza,zM,Jza,Kza,BM,CM,Lza,EM,aM,gM,pza,Vya,tza,HM,hM,Cza,PM,RM,SM,UM,TM,Xza,uM,Yza,WM,Zza,XM,YM,hza,$M,Qza,fM,$za,$ya,Zya,eya,aN,bN,bAa,cN,dN,eN,gN,fN,hN,cAa,dAa,iN,kN,eAa,fAa,lN,mN,nN,oN,gAa,hAa,pN,iAa,qN,rN,sN,tN,uN,vN,ZAa,yN,$Aa,zN,BN,rBa,AN,CBa,dBa,fBa,DBa,EBa,FBa,CN,DN,EN,HBa,FN,JBa,IBa,HN,JN,
MBa,NN,LN,PBa,OBa,QBa,QN,NBa,RN,MN,SN,PN,ON,KN,UN,VN,XN,ZN,TBa,UBa,SBa,$N,aO,bO,cO,dO,VBa,eO,fO,WBa,gO,hO,iO,ZBa,XBa,mO,$Ba,aCa,nO,bCa,qO,rO,cCa,hCa,sO,iCa,tO,uO,jCa,vO,kCa,lCa,mCa,nCa,oCa,wO,xO,qCa,rCa,pCa,tCa,sCa,AO,CO,wCa,FO,GO,xCa,yCa,yI,zCa,ACa,HO,BCa,IO,DCa,JO,LO,MO,NO,OO,SO,UO,VO,ECa,FCa,WO,GCa,HCa,XO,ICa,ZO,JCa,KCa,NCa,MCa,OCa,$O,SCa,TCa,dP,UCa,eP,VCa,WCa,cP,XCa,lP,mP,nP,YCa,oP,pP,ZCa,aDa,$Ca,cDa,bDa,qP,dDa,fDa,eDa,hDa,gDa,jDa,rP,kDa,tP,sP,vP,xP,yP,lDa,mDa,nDa,oDa,zP,BP,sDa,vDa,pDa,CP,EDa,
FDa,DP,HDa,GDa,JDa,KDa,MDa,LDa,NDa,ODa,PDa,QDa,IP,JP,RDa,SDa,TDa,UDa,VDa,WDa,QP,YDa,ZDa,OP,PP,XDa,bEa,cEa,RP,fEa,dEa,hEa,gEa,iEa,SP,RBa,jEa,LBa,kEa,lEa,mEa,TP,sEa,oEa,pEa,qEa,tEa,UP,uEa,wEa,xEa,vEa,rEa,yEa,YO,AEa,BEa,zEa,WP,XP,CEa,DEa,YP,$P,FEa,aQ,cQ,eQ,fQ,GEa,HEa,gQ,JEa,KEa,LEa,MEa,NEa,OEa,PEa,lQ,QEa,mQ,oQ,REa,SEa,TEa,pQ,UEa,VEa,tQ,uQ,vQ,WEa,wQ,XEa,yQ,ZEa,YEa,zQ,AQ,BQ,CQ,$Ea,DQ,EQ,aFa,FQ,GQ,eFa,bFa,dFa,cFa,HQ,IQ,JQ,fFa,gFa,hFa,KQ,jFa,mFa,lFa,LQ,MQ,NQ,OQ,PQ,RQ,SQ,TQ,UQ,VQ,WQ,XQ,oFa,nFa,ZQ,pFa,$Q,
aR,bR,cR,dR,gR,hR,iR,rFa,jR,kR,lR,sFa,mR,vFa,wFa,oR,yFa,qR,rR,sR,AFa,tR,FFa,DFa,CFa,BFa,HFa,uR,vR,wR,xR,yR,zR,AR,DR,KFa,MFa,FR,GR,HR,W,OFa,IR,TFa,XFa,YFa,ZFa,eGa,gGa,kGa,lGa,DGa,EGa,FGa,mGa,oGa,tGa,IGa,KGa,UR,MGa,JGa,zHa,TGa,AHa,UGa,VGa,VR,CHa,EHa,GHa,FHa,DHa,XGa,eHa,KHa,LHa,gHa,hHa,jHa,kHa,lHa,SHa,nHa,qHa,vHa,$Ha,WHa,XHa,bIa,eIa,dIa,fIa,gIa,oIa,hIa,aS,lIa,uIa,vIa,wIa,xIa,AIa,EIa,gJa,fJa,eS,kJa,pA,mJa,lJa,nJa,pJa,oJa,qJa,gS,rJa,tJa,wJa,xJa,yJa,uJa,DJa,CJa,MJa,OJa,PJa,QJa,kS,RJa,TJa,lS,UJa,nS,oS,mS,
nEa,VJa,WJa,ZJa,YJa,aKa,sS,bKa,cKa,dKa,eKa,xS,fKa,gKa,jKa,kKa,CS,lKa,DS,ES,FS,mKa,pKa,qKa,QS,rKa,US,VS,WS,XS,YS,sKa,uKa,tKa,vKa,wKa,xKa,yKa,aT,bT,cT,BKa,AKa,dT,CKa,DKa,EKa,eT,fT,FKa,HKa,IKa,hT,JKa,iT,MKa,LKa,NKa,OKa,PKa,QKa,lT,jT,RKa,mT,SKa,nT,VKa,UKa,WKa,oT,YKa,XKa,rT,sT,tT,aLa,ZKa,$Ka,uT,dLa,bLa,cLa,vT,eLa,fLa,gLa,wT,xT,hLa,iLa,yT,jLa,kLa,lLa,mLa,nLa,oLa,pLa,sLa,qLa,tLa,uLa,vLa,wLa,yLa,HT,ALa,BLa,zLa,DLa,CLa,GLa,HLa,ELa,FLa,JLa,KLa,ILa,LLa,MLa,NLa,OLa,TLa,SLa,ULa,VLa,aMa,KT,eMa,dMa,cMa,ZLa,$La,
WLa,XLa,bMa,LT,MT,gMa,JS,XJa,OT,hMa,iMa,fMa,kMa,lMa,mMa,QT,nMa,oMa,pMa,qMa,rMa,tMa,uMa,vMa,aU,bU,wMa,xMa,yMa,zMa,AMa,CMa,BMa,DMa,cU,dU,EMa,HMa,IMa,fU,GMa,JMa,KMa,FMa,gU,LMa,jU,MMa,NMa,iU,PMa,OMa,QMa,RMa,SMa,TMa,VMa,WMa,UMa,ZMa,XMa,oU,pU,aNa,rU,sU,bNa,dNa,uU,cNa,eNa,fNa,gNa,iNa,hNa,jNa,kNa,lNa,mNa,nNa,AU,BU,pNa,oNa,EU,CU,DU,qNa,rNa,FU,sNa,uNa,tNa,xNa,yNa,zNa,CNa,BNa,ANa,DNa,ENa,GU,HU,FNa,GNa,HNa,INa,IU,LU,JNa,LNa,MNa,NNa,ONa,PNa,QNa,NU,RNa,SNa,VNa,OU,WNa,UNa,PU,XNa,YNa,aOa,ZNa,$Na,cOa,dOa,bOa,fOa,
eOa,SU,TU,UU,XU,YU,gOa,hOa,iOa,aV,jOa,bV,kOa,cV,dV,lOa,eV,mOa,qOa,oOa,nOa,pOa,uOa,vOa,wOa,xOa,zOa,AOa,BOa,yOa,COa,DOa,GOa,iV,IOa,HOa,EOa,FOa,KOa,JOa,LOa,jV,kV,MOa,NOa,OOa,POa,QOa,ROa,SOa,TOa,aPa,WOa,XOa,UOa,dPa,pV,ePa,iPa,sV,jPa,fPa,oV,vV,uV,qV,wV,mPa,nPa,xV,rV,bPa,lPa,tV,gPa,kPa,oPa,lV,zV,pPa,qPa,hPa,AV,BV,sPa,CV,tPa,FV,GV,uPa,vPa,xPa,yPa,wPa,HV,IV,zPa,APa,BPa,CPa,DPa,FPa,HPa,GPa,EPa,JPa,IPa,JV,KV,KPa,MPa,NPa,LV,LPa,OPa,PPa,MV,OV,RV,QV,RPa,QPa,SPa,SV,TPa,UPa,WPa,VPa,XPa,YPa,ZPa,VV,$Pa,mU,dQa,zU,
aQa,eQa,cQa,$S,bQa,fQa,hQa,iQa,jQa,gQa,kQa,lQa,mQa,nQa,oQa,pQa,$V,qQa,aW,sQa,bW,uQa,cW,tQa,wQa,xQa,vQa,dW,yQa,AQa,BQa,zQa,fW,gW,DQa,hW,EQa,jW,GQa,HQa,IQa,JQa,KQa,LQa,MQa,NQa,OQa,FQa,kW,PQa,QQa,mW,RQa,SQa,TQa,YQa,bRa,$Qa,VQa,pW,UQa,aRa,rW,dRa,cRa,sW,fRa,gRa,hRa,jRa,kRa,iRa,lRa,xW,mRa,oRa,nRa,pRa,wRa,CW,xRa,yRa,FW,zRa,ARa,GW,BRa,qRa,HW,DRa,ERa,GRa,IW,HRa,JW,JRa,IRa,KW,uRa,AW,KRa,LRa,MRa,NRa,ORa,rRa,tRa,BW,DW,yW,LW,PRa,QRa,SRa,WRa,NW,XRa,YRa,URa,PW,ZRa,$Ra,RRa,aSa,VRa,bSa,QW,OW,cSa,eSa,dSa,MW,gSa,SW,
hSa,TW,RW,UW,iSa,VW,jSa,mSa,lSa,oSa,pSa,nSa,YW,XW,rSa,sSa,tSa,uSa,vSa,wSa,ySa,xSa,$W,aX,zSa,ASa,CSa,GSa,DSa,ESa,FSa,HSa,ISa,JSa,hX,KSa,LSa,MSa,iX,jX,kX,NSa,SSa,USa,VSa,pX,qX,rX,sX,RSa,WSa,mX,OSa,XSa,lX,nX,PSa,QSa,oX,YSa,ZSa,TSa,$Sa,fTa,eTa,bTa,gTa,hTa,cTa,dTa,aTa,iTa,jTa,Eya,Kya,lTa,kTa,uX,qTa,oTa,pTa,mTa,rTa,vX,nTa,wX,xX,sTa,tTa,uTa,vTa,xTa,yTa,yX,zTa,ATa,BTa,CTa,ETa,FTa,AX,MTa,ITa,DTa,OTa,JTa,KTa,HTa,LTa,BX,GTa,NTa,UTa,STa,RTa,QTa,PTa,DX,VTa,EX,ZTa,FX,bUa,IX,aUa,GX,$Ta,JX,cUa,HX,fUa,XTa,iUa,dUa,
YTa,eUa,jUa,KX,LX,kUa,lUa,nUa,mUa,pUa,oUa,qUa,rUa,MX,sUa,OX,tUa,NX,uUa,cX,vUa,xUa,yUa,bX,zUa,QX,RX,AUa,CUa,BUa,SX,DUa,gX,EUa,FUa,eX,fX,JUa,UX,VX,KUa,XX,TX,YX,HUa,GUa,IUa,ZX,MUa,NUa,LUa,dX,WX,OUa,PUa,QUa,RUa,gUa,hUa,SUa,TUa,$X,YUa,UUa,ZUa,$Ua,aVa,XUa,bVa,dVa,aY,cY,fVa,gVa,eVa,hVa,dY,iVa,kVa,nVa,sVa,pVa,rVa,xVa,yVa,wVa,zVa,AVa,CVa,DVa,BVa,fY,EVa,GVa,HVa,IVa,JVa,KVa,FVa,LVa,MVa,NVa,OVa,QVa,TVa,UVa,WVa,ZVa,$Va,VVa,gY,PVa,hY,XVa,YVa,aWa,bWa,dWa,kWa,jWa,nY,lWa,iWa,oWa,pWa,qWa,rWa,sWa,tWa,uWa,vWa,pY,iY,
xWa,yWa,cWa,oY,AWa,wWa,BWa,CWa,DWa,EWa,qY,GWa,HWa,FWa,IWa,JWa,KWa,LWa,MWa,PWa,OWa,NWa,rY,QWa,SWa,TWa,UWa,tY,uY,VWa,XWa,YWa,ZWa,$Wa,cVa,xY,WWa,aXa,dXa,fXa,TTa,bXa,cXa,eXa,zX,VUa,gXa,hXa,iXa,jXa,RWa,kXa,bY,lXa,zY,AY,mXa,BY,nXa,oXa,pXa,qXa,rXa,tXa,sXa,vXa,wXa,zXa,xXa,yXa,AXa,DY,EXa,CXa,DXa,HXa,IXa,JXa,KXa,LXa,CY,MXa,GXa,BXa,EY,NXa,OXa,FY,QXa,RXa,SXa,PXa,GY,VXa,UXa,YXa,XXa,WXa,ZXa,$Xa,HY,aYa,JY,eYa,bYa,cYa,dYa,fYa,gYa,hYa,jYa,iYa,kYa,lYa,mYa,oYa,qYa,pYa,rYa,nYa,sYa,uYa,wYa,xYa,tYa,yYa,zYa,BYa,AYa,CYa,
vYa,LY,DYa,EYa,GYa,IYa,JYa,KYa,LYa,OYa,NYa,PYa,QYa,RYa,TYa,SYa,WYa,OY,XYa,UYa,VYa,YYa,RY,$Ya,ZYa,aZa,bZa,cZa,eZa,dZa,hZa,SY,iZa,TY,kZa,VY,XY,lZa,UY,mZa,YY,oZa,jZa,pZa,qZa,WY,rZa,sZa,tZa,nZa,MYa,QY,vZa,wZa,xZa,yZa,zZa,AZa,BZa,CZa,EZa,FZa,GZa,DZa,HZa,IZa,$Y,JZa,KZa,aZ,bZ,LZa,MZa,NZa,cZ,QZa,eZ,RZa,SZa,dZ,PZa,OZa,hZ,gZ,iZ,fZ,TZa,XZa,ZZa,a_a,b_a,VZa,$Za,c_a,WZa,d_a,e_a,g_a,jZ,h_a,f_a,kZ,i_a,YZa,j_a,UZa,lZ,p_a,m_a,q_a,n_a,l_a,r_a,k_a,u_a,mZ,v_a,x_a,zI,z_a,C_a,TN,rZ,D_a,sRa,F_a,sZ,KY,G_a,I_a,E_a,vW,A_a,
J_a,K_a,vY,wY,xZ,zWa,B_a,wZ,nZ,N_a,O_a,Q_a,P_a,H_a,uZ,S_a,yZ,T_a,ZQa,U_a,IY,eRa,V_a,CRa,tZ,W_a,Y_a,X_a,XQa,Z_a,a0a,M_a,y_a,c0a,b0a,vZ,oZ,d0a,AZ,qW,e0a,f0a,EW,g0a,h0a,i0a,WQa,zZ,R_a,j0a,v0a,p0a,o0a,x0a,n0a,CZ,wW,A0a,y0a,C0a,FZ,GZ,D0a,E0a,IZ,u0a,NZ,G0a,MZ,HZ,I0a,J0a,q0a,QZ,K0a,t0a,KZ,F0a,JZ,Q0a,EZ,R0a,S0a,SZ,H0a,TZ,UZ,T0a,LZ,B0a,M0a,L0a,U0a,V0a,W0a,X0a,tS,Y0a,OZ,Z0a,a1a,DZ,VZ,z0a,b1a,c1a,s0a,RZ,PZ,d1a,r0a,e1a,WZ,XZ,kSa,YZ,AC,ZZ,$Z,g1a,i1a,j1a,a_,k1a,c_,l1a,m1a,d_,b_,n1a,e_,f_,g_,o1a,h_,i_,j_,k_,l_,
m_,q1a,p1a,n_,o_,r1a,p_,q_,s1a,t1a,u1a,r_,s_,t_,u_,v_,w_,x_,y_,v1a,z_,A_,B_,w1a,x1a,C_,y1a,z1a,A1a,B1a,D_,E_,F_,C1a,G_,H_,I_,D1a,J_,K_,L_,M_,N_,O_,P_,Q_,R_,E1a,S_,T_,U_,F1a,V_,W_,X_,Y_,G1a,Z_,$_,H1a,a0,I1a,b0,J1a,eCa,fCa,gCa,YBa,K1a,O1a,P1a,Q1a,pO,j0,jO,L1a,k0,T1a,U1a,V1a,W1a,M1a,Y1a,d0,Z1a,$1a,l0,a2a,m0,f0,b2a,e0,X1a,n0,e2a,d2a,h0,i0,p0,o0,f2a,q0,h2a,g2a,i2a,Y,r0,s0,t0,j2a,u0,x0,l2a,s2a,n2a,t2a,u2a,w2a,y2a,z2a,A0,B0,z0,C0,D0,E0,F0,A2a,B2a,G0,H0,I0,J0,D2a,H2a,K0,I2a,E2a,J2a,L0,K2a,N2a,M2a,R2a,O2a,
M0,N0,X2a,Z2a,Y2a,c3a,b3a,e3a,$2a,a3a,f3a,h3a,i3a,g3a,k3a,l3a,o3a,r3a,p3a,v3a,E3a,D3a,w3a,F3a,y3a,z3a,x3a,I3a,K3a,P3a,S3a,T3a,V3a,W3a,Y3a,$3a,Z3a,g4a,b4a,a4a,h4a,k4a,l4a,m4a,n4a,W0,jra,q4a,o4a,Y0,zC,Z0,$0,hra,a1,s4a,t4a,A3a,u4a,v4a,w4a,u3a,x4a,b1,y4a,O3a,z4a,A4a,c1,W2a,O0,B4a,X0,N3a,M3a,n3a,Q3a,U3a,X3a,S2a,i4a,C4a,G3a,B3a,D4a,E4a,x2a,d1,F4a,e1,G4a,f1,g1,y0,h1,i1,v2a,I4a,H4a,m3a,R3a,J4a,j4a,T2a,V2a,L2a,L3a,t3a,q3a,G2a,F2a,C2a,H3a,C3a,c4a,P2a,Q2a,f4a,d4a,e4a,J3a,M4a,K4a,j1,L4a,l1,oO,g0,R1a,c0,N4a,m1,
n1,o1,p1,P4a,O4a,Q4a,q1,r1,k1,V0,s1,R4a,p4a,N1a,S4a,T4a,U2a,P0,Q0,U4a,t1,V4a,W4a,v1,w1,Y4a,y1,Z4a,$4a,X4a,x1,a5a,b5a,c5a,z1,f5a,e5a,A1,VP,g5a,h5a,u1,i5a,j5a,k5a,B1,C1,l5a,D1,E1,m5a,n5a,o5a,p5a,q5a,r5a,s5a,t5a,u5a,v5a,F1,G1,w5a,H1,I1,J1,K1,L1,M1,N1,y5a,x5a,z5a,A5a,B5a,O1,C5a,D5a,P1,Q1,R1,E5a,F5a,G5a,S1,H5a,T1,I5a,U1,J5a,V1,K5a,W1,L5a,N5a,X1,Q5a,M5a,O5a,P5a,R5a,Z1,S5a,T5a,U5a,a2,$1,b2,V5a,W5a,X5a,Z5a,Y5a,c2,$5a,a6a,c6a,b6a,d2,e2,r4a,d6a,f2,e6a,g2,g6a,h6a,f6a,i6a,h2,j6a,k6a,l6a,i2,j2,k2,m6a,l2,m2,n2,
n6a,o6a,o2,p6a,q6a,p2,Y1,q2,r2,s2,dCa,t2,r6a,u2,s6a,v2,w2,u6a,t6a,x2,y2,z2,v6a,w6a,x6a,A2,y6a,z6a,A6a,C6a,B6a,D6a,E6a,G6a,F6a,H6a,I6a,J6a,K6a,L6a,M6a,N6a,O6a,P6a,Q6a,R6a,S6a,T6a,U6a,V6a,W6a,X6a,B2,C2,D2,Y6a,Z6a,$6a,a7a,b7a,c7a,d7a,e7a,f7a,g7a,h7a,i7a,j7a,k7a,l7a,E2,m7a,n7a,F2,G2,p7a,q7a,H2,r7a,I2,s7a,J2,t7a,K2,u7a,v7a,w7a,L2,x7a,y7a,z7a,A7a,B7a,C7a,N2,D7a,E7a,F7a,G7a,H7a,J7a,O2,I7a,K7a,L7a,M7a,N7a,R7a,O7a,P7a,Q7a,T7a,V7a,W7a,X7a,U7a,P2,Y7a,Z7a,$7a,a8a,b8a,R2,c8a,S2,T2,U2,d8a,f8a,g8a,h8a,i8a,k8a,j8a,
l8a,V2,W2,o8a,m8a,n8a,X2,p8a,q8a,Y2,r8a,s8a,t8a,v8a,w8a,x8a,y8a,z8a,yC,u8a,A8a,E8a,F8a,H8a,aaa,da,pj,Ka,paa;aa=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ba=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
ea=function(a,b){if(b)a:{var c=g.ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&da(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
eaa=function(a){return a.raw=a};
g.t=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
faa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.u=function(a){return a instanceof Array?a:faa(g.t(a))};
ha=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.w=function(a,b){a.prototype=gaa(b.prototype);a.prototype.constructor=a;if(ia)ia(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Gf=b.prototype};
ka=function(){this.J=!1;this.C=null;this.u=void 0;this.j=1;this.D=this.I=0;this.ea=this.B=null};
ma=function(a){if(a.J)throw new TypeError("Generator is already running");a.J=!0};
na=function(a,b){a.B={uT:b,WU:!0};a.j=a.I||a.D};
g.y=function(a,b,c){a.j=c;return{value:b}};
g.oa=function(a){a.j=0};
g.pa=function(a,b,c){a.I=b;void 0!=c&&(a.D=c)};
g.ra=function(a,b){a.j=b;a.I=0};
g.sa=function(a){a.I=0;var b=a.B.uT;a.B=null;return b};
g.haa=function(a){a.ea=[a.B];a.I=0;a.D=0};
g.iaa=function(a,b){var c=a.ea.splice(0)[0];(c=a.B=a.B||c)?c.WU?a.j=a.I||a.D:void 0!=c.Ka&&a.D<c.Ka?(a.j=c.Ka,a.B=null):a.j=a.D:a.j=b};
jaa=function(a){this.j=new ka;this.u=a};
kaa=function(a,b){ma(a.j);var c=a.j.C;if(c)return va(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return xa(a)};
va=function(a,b,c,d){try{var e=b.call(a.j.C,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.J=!1,e;var f=e.value}catch(h){return a.j.C=null,na(a.j,h),xa(a)}a.j.C=null;d.call(a.j,f);return xa(a)};
xa=function(a){for(;a.j.j;)try{var b=a.u(a.j);if(b)return a.j.J=!1,{value:b.value,done:!1}}catch(c){a.j.u=void 0,na(a.j,c)}a.j.J=!1;if(a.j.B){b=a.j.B;a.j.B=null;if(b.WU)throw b.uT;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
laa=function(a){this.next=function(b){ma(a.j);a.j.C?b=va(a,a.j.C.next,b,a.j.T):(a.j.T(b),b=xa(a));return b};
this.throw=function(b){ma(a.j);a.j.C?b=va(a,a.j.C["throw"],b,a.j.T):(na(a.j,b),b=xa(a));return b};
this.return=function(b){return kaa(a,b)};
this[Symbol.iterator]=function(){return this}};
maa=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.A=function(a){return maa(new laa(new jaa(a)))};
g.ya=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
za=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};
naa=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,QY:f}}return{i:-1,QY:void 0}};
Aa=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Ca=function(a){return a?a:Array.prototype.fill};
Da=function(a){return a?a:Array.prototype.copyWithin};
g.Fa=function(a,b,c){a=a.split(".");c=c||g.Ea;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ha=function(a,b){var c=g.Ga("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Ga=function(a,b){a=a.split(".");b=b||g.Ea;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
oaa=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.Ia=function(a){var b=oaa(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.Ja=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.Na=function(a){return Object.prototype.hasOwnProperty.call(a,Ka)&&a[Ka]||(a[Ka]=++paa)};
qaa=function(a,b,c){return a.call.apply(a.bind,arguments)};
raa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.Oa=function(a,b,c){g.Oa=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?qaa:raa;return g.Oa.apply(null,arguments)};
g.Pa=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
g.Ra=function(){return Date.now()};
Sa=function(){return" This link opens in new tab"};
g.Ta=function(a,b){function c(){}
c.prototype=b.prototype;a.Gf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.zj=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)}};
Ua=function(a){return a};
saa=function(a){this.PS=a};
Va=function(a,b,c){this.u=a;this.C=b;this.j=c||[];this.Rx=new Map};
Wa=function(a,b){Va.call(this,a,3,b)};
Ya=function(a,b){Va.call(this,a,2,b)};
g.Za=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.$a=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.Ia(d)?g.$a.apply(null,d):g.Za(d)}};
g.C=function(){this.Eq=this.Eq;this.zm=this.zm};
g.E=function(a,b){g.bb(a,g.Pa(g.Za,b))};
g.bb=function(a,b){a.Eq?b():(a.zm||(a.zm=[]),a.zm.push(b))};
cb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,cb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
fb=function(a,b){var c=cb.call;a=a.split("%s");for(var d="",e=a.length-1,f=0;f<e;f++)d+=a[f]+(f<b.length?b[f]:"%s");c.call(cb,this,d+a[e])};
taa=function(){};
g.ib=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.u=!1};
g.jb=function(a){return a[a.length-1]};
uaa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.nb=function(a,b,c){b=kb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
kb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.ob=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.rb=function(a,b){return 0<=vaa(a,b)};
g.sb=function(a){return 0==a.length};
waa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.wb=function(a,b){b=vaa(a,b);var c;(c=0<=b)&&g.tb(a,b);return c};
g.tb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.yb=function(a,b){b=kb(a,b);0<=b&&g.tb(a,b)};
xaa=function(a,b){var c=0;uaa(a,function(d,e){b.call(void 0,d,e,a)&&g.tb(a,e)&&c++})};
g.zb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Bb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.Cb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.Ia(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.Gb=function(a,b,c,d){Array.prototype.splice.apply(a,Eb(arguments,1))};
Eb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
yaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.Ja(e)?"o"+g.Na(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Jb=function(a,b,c){return zaa(a,c||Ib,!1,b)};
Kb=function(a,b){return zaa(a,b,!0)};
zaa=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]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.Lb=function(a,b){a.sort(b||Ib)};
Aaa=function(a,b){var c=Ib;g.Lb(a,function(d,e){return c(b(d),b(e))})};
g.Mb=function(a,b){if(!g.Ia(a)||!g.Ia(b)||a.length!=b.length)return!1;for(var c=a.length,d=Baa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Ib=function(a,b){return a>b?1:a<b?-1:0};
Baa=function(a,b){return a===b};
g.Nb=function(a,b,c){c=g.Jb(a,b,c);0>c&&g.Gb(a,-(c+1),0,b)};
g.Pb=function(a,b,c){var d={};(0,g.Ob)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Caa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Daa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
Faa=function(a){var b=g.Ga("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ea.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Eaa(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,Qb[c])c=Qb[c];else{c=String(c);if(!Qb[c]){var f=/function\s+([^\(]+)/m.exec(c);Qb[c]=f?f[1]:"[Anonymous]"}c=Qb[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}a.stack=
b;return{message:a.message,name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:a.stack}};
Eaa=function(a,b){b||(b={});b[Gaa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Gaa(a)]&&(c+="\nCaused by: ",a.stack&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Eaa(a,b));return c};
Gaa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
Rb=function(a,b){return 0==a.lastIndexOf(b,0)};
Haa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
Sb=function(a,b){var c=String(b).toLowerCase();a=String(a.slice(0,b.length)).toLowerCase();return 0==(c<a?-1:c==a?0:1)};
g.Tb=function(a){return/^[\s\xa0]*$/.test(a)};
Ub=function(a){if(!Iaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Jaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Kaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Laa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Maa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Naa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Oaa,"&#0;"));return a};
g.Vb=function(a,b){return-1!=a.indexOf(b)};
ac=function(a,b){return g.Vb(a.toLowerCase(),b.toLowerCase())};
g.ec=function(a,b){var c=0;a=cc(String(a)).split(".");b=cc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=dc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||dc(0==f[2].length,0==h[2].length)||dc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
dc=function(a,b){return a<b?-1:a>b?1:0};
g.hc=function(){var a=g.Ea.navigator;return a&&(a=a.userAgent)?a:""};
mc=function(a){return ic||jc?kc?kc.brands.some(function(b){return(b=b.brand)&&g.Vb(b,a)}):!1:!1};
nc=function(a){return g.Vb(g.hc(),a)};
oc=function(){return ic||jc?!!kc&&0<kc.brands.length:!1};
pc=function(){return oc()?!1:nc("Opera")};
qc=function(){return oc()?!1:nc("Trident")||nc("MSIE")};
tc=function(){return oc()?!1:nc("Edge")};
Paa=function(){return oc()?mc("Microsoft Edge"):nc("Edg/")};
uc=function(){return nc("Firefox")||nc("FxiOS")};
wc=function(){return nc("Safari")&&!(vc()||(oc()?0:nc("Coast"))||pc()||tc()||Paa()||(oc()?mc("Opera"):nc("OPR"))||uc()||nc("Silk")||nc("Android"))};
vc=function(){return oc()?mc("Chromium"):(nc("Chrome")||nc("CriOS"))&&!tc()||nc("Silk")};
Qaa=function(){return nc("Android")&&!(vc()||uc()||pc()||nc("Silk"))};
Raa=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})]||""}};
Saa=function(a){var b=g.hc();if("Internet Explorer"===a){if(qc())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),"7.0"==c[1])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=Raa(c);switch(a){case "Opera":if(pc())return b(["Version","Opera"]);if(oc()?mc("Opera"):nc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(tc())return b(["Edge"]);if(Paa())return b(["Edg"]);break;case "Chromium":if(vc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&uc()||"Safari"===a&&wc()||"Android Browser"===a&&Qaa()||"Silk"===a&&nc("Silk")?(b=c[2])&&b[1]||"":""};
xc=function(a){if(oc()&&"Silk"!==a){var b=kc.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Saa(a);if(""===b)return NaN;b=b.split(".")}return 0===b.length?NaN:Number(b[0])};
yc=function(){return ic||jc?!!kc&&!!kc.platform:!1};
Taa=function(){return yc()?"Android"===kc.platform:nc("Android")};
Bc=function(){return nc("iPhone")&&!nc("iPod")&&!nc("iPad")};
Cc=function(){return Bc()||nc("iPad")||nc("iPod")};
Dc=function(){return yc()?"macOS"===kc.platform:nc("Macintosh")};
Uaa=function(){return yc()?"Windows"===kc.platform:nc("Windows")};
Vaa=function(){var a=g.hc(),b="";if(Uaa())b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0";else if(Cc())b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".");else if(Dc())b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10";else if(ac(g.hc(),"KaiOS"))b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1];else if(Taa())b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1];else if(yc()?"Chrome OS"===kc.platform:nc("CrOS"))b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,
b=(a=b.exec(a))&&a[1];return b||""};
Gc=function(a){Gc[" "](a);return a};
Hc=function(a,b){try{return Gc(a[b]),!0}catch(c){}return!1};
Xaa=function(a,b){var c=Waa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
Yaa=function(){var a=g.Ea.document;return a?a.documentMode:void 0};
g.Nc=function(a){return Xaa(a,function(){return 0<=g.ec(Ic,a)})};
g.Oc=function(a){return Number(Zaa)>=a};
$aa=function(a){return g.Pc?"webkit"+a:a.toLowerCase()};
Qc=function(a,b){g.ib.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.j=null;a&&this.init(a,b)};
Rc=function(a){return!(!a||!a[aba])};
cba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.ud=e;this.key=++bba;this.removed=this.cF=!1};
Sc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.ud=null};
g.Tc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Uc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Vc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Wc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
dba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Xc=function(a){for(var b in a)return b};
eba=function(a){for(var b in a)return a[b]};
Yc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Zc=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.$c=function(a,b){return null!==a&&b in a};
g.ad=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
gd=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
fba=function(a,b){return(b=gd(a,b))&&a[b]};
g.hd=function(a){for(var b in a)return!1;return!0};
g.gba=function(a){for(var b in a)delete a[b]};
g.id=function(a,b){b in a&&delete a[b]};
g.jd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.kd=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.md=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.nd=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.nd(a[c]);return b};
g.od=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<hba.length;f++)c=hba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
iba=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
pd=function(a){this.src=a;this.listeners={};this.j=0};
g.rd=function(a,b){var c=b.type;c in a.listeners&&g.wb(a.listeners[c],b)&&(Sc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
sd=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.ud==d)return e}return-1};
g.ud=function(a,b,c,d,e){if(d&&d.once)return td(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.ud(a,b[f],c,d,e);return null}c=vd(c);return Rc(a)?a.Ra(b,c,g.Ja(d)?!!d.capture:!!d,e):jba(a,b,c,!1,d,e)};
jba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.Ja(e)?!!e.capture:!!e,l=wd(a);l||(a[xd]=l=new pd(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=kba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)lba||(e=h),void 0===e&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(mba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");nba++;return c};
kba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=oba;return a};
td=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)td(a,b[f],c,d,e);return null}c=vd(c);return Rc(a)?a.CG(b,c,g.Ja(d)?!!d.capture:!!d,e):jba(a,b,c,!0,d,e)};
pba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)pba(a,b[f],c,d,e);else d=g.Ja(d)?!!d.capture:!!d,c=vd(c),Rc(a)?a.Hc(b,c,d,e):a&&(a=wd(a))&&(b=a.WB(b,c,d,e))&&yd(b)};
yd=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Rc(b))g.rd(b.Hl,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(mba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);nba--;(c=wd(b))?(g.rd(c,a),0==c.j&&(c.src=null,b[xd]=null)):Sc(a)}}};
mba=function(a){return a in Dd?Dd[a]:Dd[a]="on"+a};
oba=function(a,b){if(a.removed)a=!0;else{b=new Qc(b,this);var c=a.listener,d=a.ud||a.src;a.cF&&yd(a);a=c.call(d,b)}return a};
wd=function(a){a=a[xd];return a instanceof pd?a:null};
vd=function(a){if("function"===typeof a)return a;a[Ed]||(a[Ed]=function(b){return a.handleEvent(b)});
return a[Ed]};
g.Fd=function(){g.C.call(this);this.Hl=new pd(this);this.D1=this;this.qO=null};
Jd=function(a,b,c,d){b=a.Hl.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.ud||h.src;h.cF&&g.rd(a.Hl,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Kd=function(a,b){this.B=a;this.C=b;this.u=0;this.j=null};
qba=function(a,b){a.C(b);100>a.u&&(a.u++,b.next=a.j,a.j=b)};
Ld=function(a){return function(){return a}};
g.Md=function(){};
rba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Nd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Od=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
sba=function(a,b){var c=0;return function(d){g.Ea.clearTimeout(c);var e=arguments;c=g.Ea.setTimeout(function(){a.apply(b,e)},50)}};
Ud=function(){if(void 0===Td){var a=null,b=g.Ea.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:Ua,createScript:Ua,createScriptURL:Ua})}catch(c){g.Ea.console&&g.Ea.console.error(c.message)}Td=a}else Td=a}return Td};
Vd=function(a,b){this.j=a===tba&&b||"";this.u=uba};
Wd=function(a){return a instanceof Vd&&a.constructor===Vd&&a.u===uba?a.j:"type_error:Const"};
g.Xd=function(a){return new Vd(tba,a)};
Yd=function(a,b){this.j=b===vba?a:"";this.Qo=!0};
wba=function(a){return a instanceof Yd&&a.constructor===Yd?a.j:"type_error:SafeScript"};
xba=function(a){var b=Ud();a=b?b.createScript(a):a;return new Yd(a,vba)};
Zd=function(a,b){this.j=b===yba?a:""};
zba=function(a){return a instanceof Zd&&a.constructor===Zd?a.j:"type_error:TrustedResourceUrl"};
Cba=function(a,b){var c=Wd(a);if(!Aba.test(c))throw Error("Invalid TrustedResourceUrl format: "+c);a=c.replace(Bba,function(d,e){if(!Object.prototype.hasOwnProperty.call(b,e))throw Error('Found marker, "'+e+'", in format string, "'+c+'", but no valid label mapping found in args: '+JSON.stringify(b));d=b[e];return d instanceof Vd?Wd(d):encodeURIComponent(String(d))});
return $d(a)};
$d=function(a){var b=Ud();a=b?b.createScriptURL(a):a;return new Zd(a,yba)};
ae=function(a,b){this.j=b===Dba?a:""};
g.be=function(a){return a instanceof ae&&a.constructor===ae?a.j:"type_error:SafeUrl"};
Eba=function(a){var b=a.indexOf("#");0<b&&(a=a.substring(0,b));b=a.match(/[?&]body=/gi);if(!b)return!0;if(1<b.length)return!1;a=a.match(/[?&]body=([^&]*)/)[1];if(!a)return!0;try{decodeURIComponent(a)}catch(c){return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(a)};
g.he=function(a){a instanceof ae||(a="object"==typeof a&&a.Qo?a.Ll():String(a),Fba.test(a)?a=ce(a):(a=String(a).replace(/(%0A|%0D)/g,""),a=a.match(Gba)?ce(a):null));return a||Hba};
Jba=function(a){if(a instanceof ae)return a;a="object"==typeof a&&a.Qo?a.Ll():String(a);a:{var b=a;if(Iba){try{var c=new URL(b)}catch(d){b="https:";break a}b=c.protocol}else b:{c=document.createElement("a");try{c.href=b}catch(d){b=void 0;break b}b=c.protocol;b=":"===b||""===b?"https:":b}}"javascript:"!==b||(a="about:invalid#zClosurez");return ce(a)};
ce=function(a){return new ae(a,Dba)};
je=function(a,b){this.j=b===ie?a:"";this.Qo=!0};
ke=function(a){return a instanceof je&&a.constructor===je?a.j:"type_error:SafeStyle"};
Lba=function(a){var b="",c;for(c in a)if(Object.prototype.hasOwnProperty.call(a,c)){if(!/^[-_a-zA-Z0-9]+$/.test(c))throw Error("Name allows only [-_a-zA-Z0-9], got: "+c);var d=a[c];null!=d&&(d=Array.isArray(d)?d.map(Kba).join(" "):Kba(d),b+=c+":"+d+";")}return b?new je(b,ie):le};
Kba=function(a){if(a instanceof ae)return'url("'+g.be(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Vd)a=Wd(a);else{a=String(a);var b=a.replace(Mba,"$1").replace(Mba,"$1").replace(Nba,"url");if(Oba.test(b)){if(b=!Pba.test(a)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c&&Qba(a)}a=b?Rba(a):"zClosurez"}else a="zClosurez"}if(/[{;}]/.test(a))throw new fb("Value does not allow [{;}], got: %s.",[a]);return a};
Qba=function(a){for(var b=!0,c=/^[-_a-zA-Z0-9]$/,d=0;d<a.length;d++){var e=a.charAt(d);if("]"==e){if(b)return!1;b=!0}else if("["==e){if(!b)return!1;b=!1}else if(!b&&!c.test(e))return!1}return b};
Rba=function(a){return a.replace(Nba,function(b,c,d,e){var f="";d=d.replace(/^(['"])(.*)\1$/,function(h,l,m){f=l;return m});
b=g.he(d).Ll();return c+f+b+f+e})};
ue=function(a,b){this.j=b===te?a:"";this.Qo=!0};
g.ve=function(a){return a instanceof ue&&a.constructor===ue?a.j:"type_error:SafeHtml"};
Sba=function(a){return a instanceof ue?a:g.we(Ub("object"==typeof a&&a.Qo?a.Ll():String(a)))};
Uba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=Sba(e),d.push(g.ve(e).toString()))}
var c=Sba(Tba),d=[];a.forEach(b);return g.we(d.join(g.ve(c).toString()))};
Vba=function(a){return Uba(Array.prototype.slice.call(arguments))};
g.we=function(a){var b=Ud();a=b?b.createHTML(a):a;return new ue(a,te)};
Wba=function(a,b){return new je(b,ie)};
g.Yba=function(a,b){if(Xba())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ve(b)};
g.xe=function(a,b){b=b instanceof ae?b:Jba(b);a.href=g.be(b)};
Zba=function(a,b,c,d){a=a instanceof ae?a:Jba(a);b=b||g.Ea;c=c instanceof Vd?Wd(c):c||"";return void 0!==d?b.open(g.be(a),c,d):b.open(g.be(a),c)};
ye=function(){a:{var a=g.Ea.document;if(a.querySelector&&(a=a.querySelector("script[nonce]"))&&(a=a.nonce||a.getAttribute("nonce"))&&$ba.test(a))break a;a=""}return a};
aca=function(a,b){return a+Math.random()*(b-a)};
g.ze=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Ce=function(a,b){a%=b;return 0>a*b?a+b:a};
De=function(a,b,c){return a+c*(b-a)};
Ee=function(a,b){return 1E-6>=Math.abs(a-b)};
g.Fe=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
Ge=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.He=function(a,b){this.width=a;this.height=b};
g.Ie=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
Je=function(a){return a.width*a.height};
g.Ke=function(a){return encodeURIComponent(String(a))};
Le=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
g.Me=function(a){return a=Ub(a)};
g.Qe=function(a){return null==a?"":String(a)};
Re=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Se=function(a){var b=Number(a);return 0==b&&g.Tb(a)?NaN:b};
bca=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
cca=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
dca=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
eca=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
Ve=function(a){return a?new Te(Ue(a)):fca||(fca=new Te)};
We=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.Xe=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.Ze=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Ye(document,"*",a,b)};
g.kf=function(a,b){var c=b||document;if(c.getElementsByClassName)a=c.getElementsByClassName(a)[0];else{c=document;var d=b||c;a=d.querySelectorAll&&d.querySelector&&a?d.querySelector(a?"."+a:""):g.Ye(c,"*",a,b)[0]||null}return a||null};
g.Ye=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.rb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
lf=function(a,b){g.Tc(b,function(c,d){c&&"object"==typeof c&&c.Qo&&(c=c.Ll());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:gca.hasOwnProperty(d)?a.setAttribute(gca[d],c):Rb(d,"aria-")||Rb(d,"data-")?a.setAttribute(d,c):a[d]=c})};
hca=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.He(a.clientWidth,a.clientHeight)};
jca=function(a){var b=ica(a);a=a.parentWindow||a.defaultView;return g.mf&&a.pageYOffset!=b.scrollTop?new g.Fe(b.scrollLeft,b.scrollTop):new g.Fe(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
ica=function(a){return a.scrollingElement?a.scrollingElement:g.Pc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
nf=function(a){return a?a.parentWindow||a.defaultView:window};
pf=function(a,b,c){var d=arguments,e=document,f=d[1],h=of(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):lf(h,f));2<d.length&&kca(e,h,d,2);return h};
kca=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.Ia(f)||g.Ja(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.Ja(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.Ob(h?g.Bb(f):f,e)}}};
g.qf=function(a){return of(document,a)};
of=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.rf=function(a){return document.createTextNode(String(a))};
g.uf=function(a,b){a.appendChild(b)};
g.vf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.wf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.xf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.yf=function(a){var b;if(lca&&(b=a.parentElement))return b;b=a.parentNode;return g.Ja(b)&&1==b.nodeType?b:null};
g.zf=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
Ue=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Af=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.vf(a),a.appendChild(Ue(a).createTextNode(String(b)))};
Bf=function(a){var b;if((b="A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||mca(a)):a.hasAttribute("tabindex")&&mca(a))&&g.mf){var c;"function"!==typeof a.getBoundingClientRect||g.mf&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
mca=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Df=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Cf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.rb(e.className.split(/\s+/),c))},!0)};
Cf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Te=function(a){this.j=a||g.Ea.document||document};
Ff=function(a){"function"!==typeof g.Ea.setImmediate||g.Ea.Window&&g.Ea.Window.prototype&&!tc()&&g.Ea.Window.prototype.setImmediate==g.Ea.setImmediate?(Ef||(Ef=nca()),Ef(a)):g.Ea.setImmediate(a)};
nca=function(){var a=g.Ea.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!nc("Presto")&&(a=function(){var e=g.qf("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.Oa)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},
this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a&&!qc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.MS;c.MS=null;e()}};
return function(e){d.next={MS:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ea.setTimeout(e,0)}};
oca=function(a){g.Ea.setTimeout(function(){throw a;},0)};
Gf=function(){this.u=this.j=null};
Hf=function(){this.next=this.scope=this.fn=null};
g.Mf=function(a,b){If||pca();Lf||(If(),Lf=!0);qca.add(a,b)};
pca=function(){if(g.Ea.Promise&&g.Ea.Promise.resolve){var a=g.Ea.Promise.resolve(void 0);If=function(){a.then(rca)}}else If=function(){Ff(rca)}};
rca=function(){for(var a;a=qca.remove();){try{a.fn.call(a.scope)}catch(b){oca(b)}qba(sca,a)}Lf=!1};
g.Of=function(a){this.j=0;this.J=void 0;this.C=this.u=this.B=null;this.D=this.I=!1;if(a!=g.Md)try{var b=this;a.call(void 0,function(c){Nf(b,2,c)},function(c){Nf(b,3,c)})}catch(c){Nf(this,3,c)}};
tca=function(){this.next=this.context=this.u=this.B=this.j=null;this.C=!1};
Pf=function(a,b,c){var d=uca.get();d.B=a;d.u=b;d.context=c;return d};
Qf=function(a){if(a instanceof g.Of)return a;var b=new g.Of(g.Md);Nf(b,2,a);return b};
Rf=function(a){return new g.Of(function(b,c){c(a)})};
g.wca=function(a,b,c){vca(a,b,c,null)||g.Mf(g.Pa(b,a))};
xca=function(a){return new g.Of(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.wca(e,b,c)})};
Yf=function(a,b){b=Pf(b,b);b.C=!0;Sf(a,b);return a};
yca=function(a,b){if(0==a.j)if(a.B){var c=a.B;if(c.u){for(var d=0,e=null,f=null,h=c.u;h&&(h.C||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?yca(c,b):(f?(d=f,d.next==c.C&&(c.C=d),d.next=d.next.next):zca(c),Aca(c,e,3,b)))}a.B=null}else Nf(a,3,b)};
Sf=function(a,b){a.u||2!=a.j&&3!=a.j||Bca(a);a.C?a.C.next=b:a.u=b;a.C=b};
Cca=function(a,b,c,d){var e=Pf(null,null,null);e.j=new g.Of(function(f,h){e.B=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.u=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof Zf?h(l):f(m)}catch(n){h(n)}}:h});
e.j.B=a;Sf(a,e);return e.j};
Nf=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,vca(c,a.F9,a.G9,a)||(a.J=c,a.j=b,a.B=null,Bca(a),3!=b||c instanceof Zf||Dca(a,c)))};
vca=function(a,b,c,d){if(a instanceof g.Of)return Sf(a,Pf(b||g.Md,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.Ja(a))try{var f=a.then;if("function"===typeof f)return Eca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
Eca=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)}};
Bca=function(a){a.I||(a.I=!0,g.Mf(a.W2,a))};
zca=function(a){var b=null;a.u&&(b=a.u,a.u=b.next,b.next=null);a.u||(a.C=null);return b};
Aca=function(a,b,c,d){if(3==c&&b.u&&!b.C)for(;a&&a.D;a=a.B)a.D=!1;if(b.j)b.j.B=null,Fca(b,c,d);else try{b.C?b.B.call(b.context):Fca(b,c,d)}catch(e){Gca.call(null,e)}qba(uca,b)};
Fca=function(a,b,c){2==b?a.B.call(a.context,c):a.u&&a.u.call(a.context,c)};
Dca=function(a,b){a.D=!0;g.Mf(function(){a.D&&Gca.call(null,b)})};
Zf=function(a){cb.call(this,a)};
g.$f=function(a,b){g.Fd.call(this);this.Fi=a||1;this.gE=b||g.Ea;this.HS=(0,g.Oa)(this.t9,this);this.jV=g.Ra()};
g.ag=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.Oa)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.Oa)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Ea.setTimeout(a,b||0)};
bg=function(a,b){var c=null;return(new g.Of(function(d,e){c=g.ag(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).Zj(function(d){g.Ea.clearTimeout(c);
throw d;})};
g.cg=function(a){g.C.call(this);this.J=a;this.u=new Map;this.I=new Set;this.B=0;this.C=100;this.flushInterval=3E4;this.j=new g.$f(this.flushInterval);this.j.Ra("tick",this.gx,!1,this);g.E(this,this.j);this.D=!1};
Hca=function(a){a.j.enabled||a.j.start();a.B++;a.B>=a.C&&a.gx()};
Ica=function(a,b){return a.I.has(b)?void 0:a.u.get(b)};
Jca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
Kca=function(a){this.j=a;this.j.Jx("/client_streamz/po/w/rl",{Xe:3,We:"mn"},{Xe:2,We:"ac"},{Xe:2,We:"sc"},{Xe:3,We:"rk"})};
Lca=function(a){this.j=a;this.j.Jx("/client_streamz/po/w/el",{Xe:3,We:"en"},{Xe:3,We:"rk"})};
Mca=function(a){this.j=a;this.j.jk("/client_streamz/po/w/cec",{Xe:2,We:"ec"},{Xe:3,We:"rk"})};
Nca=function(a){this.j=a;this.j.jk("/client_streamz/po/w/csc",{Xe:2,We:"cs"},{Xe:3,We:"rk"})};
Oca=function(a){this.j=a;this.j.Jx("/client_streamz/po/w/cl",{Xe:3,We:"op"},{Xe:3,We:"rk"})};
Pca=function(a){this.j=a;this.j.Jx("/client_streamz/po/w/clt",{Xe:3,We:"rk"})};
Qca=function(a){this.j=a;this.j.jk("/client_streamz/po/w/ca",{Xe:3,We:"av"},{Xe:3,We:"rk"})};
Rca=function(a){this.j=a;this.j.jk("/client_streamz/po/w/cta",{Xe:3,We:"av"},{Xe:3,We:"rk"})};
Sca=function(a){this.j=a;this.j.jk("/client_streamz/po/w/cen",{Xe:3,We:"rk"})};
Tca=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
dg=function(){return Error("Failed to read varint, encoding is invalid.")};
Uca=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
eg=function(){throw Error("Invalid UTF8");};
Vca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
Yca=function(a){var b=!1;b=void 0===b?!1:b;if(Wca){if(b&&/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a))throw Error("Found an unpaired surrogate");a=(Xca||(Xca=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(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;d[c++]=f>>
18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
Zca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
$ca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.fg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.gg=function(a,b){void 0===b&&(b=0);ada();b=bda[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.hg=function(a,b){if(cda&&!b)a=g.Ea.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.gg(c,b)}return a};
eda=function(a){var b=[];dda(a,function(c){b.push(c)});
return b};
ig=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.Vb("=.",a[b-1])&&(c=g.Vb("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;dda(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
dda=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=rg[n];if(null!=p)return p;if(!g.Tb(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
ada();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
ada=function(){if(!rg){rg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));bda[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===rg[f]&&(rg[f]=e)}}}};
gda=function(a){if(!fda)return g.gg(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)};
ida=function(a){return hda[a]||""};
kda=function(a){if(!fda)return ig(a);jda.test(a)&&(a=a.replace(jda,ida));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
sg=function(a){return lda&&null!=a&&a instanceof Uint8Array};
tg=function(){return mda||(mda=new Uint8Array(0))};
nda=function(a){if(a!==ug)throw Error("illegal external caller");};
vg=function(a,b){nda(b);this.j=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
wg=function(){return oda||(oda=new vg(null,ug))};
yg=function(a){return(a=xg(a))?new Uint8Array(a):tg()};
xg=function(a){nda(ug);var b=a.j;b=null==b||sg(b)?b:"string"===typeof b?kda(b):null;return null==b?b:a.j=b};
pda=function(a){return 0==a.length?wg():new vg(a,ug)};
zg=function(a){if("string"===typeof a)return{buffer:kda(a),rq:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),rq:!1};if(a.constructor===Uint8Array)return{buffer:a,rq:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),rq:!1};if(a.constructor===vg)return{buffer:xg(a)||tg(),rq:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),rq:!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");
};
rda=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.t(qda(c,a)),b=c.next().value,a=c.next().value,c=b);Ag=c>>>0;Bg=a>>>0};
tda=function(a){if(16>a.length)rda(Number(a));else if(sda)a=BigInt(a),Ag=Number(a&BigInt(4294967295))>>>0,Bg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);Bg=Ag=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)),Bg*=1E6,Ag=1E6*Ag+d,4294967296<=Ag&&(Bg+=Ag/4294967296|0,Ag%=4294967296);b&&(b=g.t(qda(Ag,Bg)),a=b.next().value,b=b.next().value,Ag=a,Bg=b)}};
qda=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
Cg=function(a,b){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.init(a,void 0,void 0,b)};
Eg=function(a){var b=0,c=0,d=0,e=a.u,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;Dg(a,f);if(128>h){a=b>>>0;h=c>>>0;if(c=h&2147483648)a=~a+1>>>0,h=~h>>>0,0==a&&(h=h+1>>>0);a=4294967296*h+(a>>>0);return c?-a:a}throw dg();};
Dg=function(a,b){a.j=b;if(b>a.B)throw Uca(a.B,b);};
Fg=function(a){var b=a.u,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 dg();Dg(a,c);return e};
Gg=function(a){var b=a.u,c=a.j,d=b[c+0],e=b[c+1],f=b[c+2];b=b[c+3];a.advance(4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
Hg=function(a){var b=Gg(a),c=Gg(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
Ig=function(a){for(var b=0,c=a.j,d=c+10,e=a.u;c<d;){var f=e[c++];b|=f;if(0===(f&128))return Dg(a,c),!!(b&127)}throw dg();};
uda=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.B)throw Uca(b,a.B-c);a.j=d;return c};
wda=function(a,b){if(0==b)return wg();var c=uda(a,b);a.XE&&a.D?c=a.u.subarray(c,c+b):(a=a.u,b=c+b,c=c===b?tg():vda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return pda(c)};
Kg=function(a,b){if(Jg.length){var c=Jg.pop();c.init(a,void 0,void 0,b);a=c}else a=new Cg(a,b);this.j=a;this.B=this.j.j;this.u=this.C=-1;xda(this,b)};
xda=function(a,b){b=void 0===b?{}:b;a.mL=void 0===b.mL?!1:b.mL};
yda=function(a){var b=a.j;if(b.j==b.B)return!1;a.B=a.j.j;var c=Fg(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw Tca(c,a.B);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.B+")");a.C=b;a.u=c;return!0};
Lg=function(a){switch(a.u){case 0:0!=a.u?Lg(a):Ig(a.j);break;case 1:a.j.advance(8);break;case 2:if(2!=a.u)Lg(a);else{var b=Fg(a.j)>>>0;a.j.advance(b)}break;case 5:a.j.advance(4);break;case 3:b=a.C;do{if(!yda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.u){if(a.C!=b)throw Error("Unmatched end-group tag");break}Lg(a)}while(1);break;default:throw Tca(a.u,a.B);}};
Mg=function(a,b,c){var d=a.j.B,e=Fg(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.B=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.B=d};
Pg=function(a){var b=Fg(a.j)>>>0;a=a.j;var c=uda(a,b);a=a.u;if(zda){var d=a,e;(e=Ng)||(e=Ng=new TextDecoder("utf-8",{fatal:!0}));a=c+b;d=0===c&&a===d.length?d:d.subarray(c,a);try{var f=e.decode(d)}catch(n){if(void 0===Og){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Og=!0}catch(p){Og=!1}}!Og&&(Ng=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?eg():(m=a[f++],194>l||128!==(m&192)?(f--,eg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?eg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((d=a[f++])&192)?(f--,eg()):c.push((l&15)<<12|(m&63)<<6|d&63)):244>=l?f>=b-2?eg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((d=a[f++])&192)||128!==((e=a[f++])&192)?(f--,eg()):(l=(l&7)<<18|(m&63)<<12|(d&63)<<6|e&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):eg(),8192<=c.length&&(h=Vca(h,c),c.length=0);f=Vca(h,c)}return f};
Ada=function(a){var b=Fg(a.j)>>>0;return wda(a.j,b)};
Bda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Dda=function(a){if(!a)return Cda||(Cda=new Bda(0,0));if(!/^\d+$/.test(a))return null;tda(a);return new Bda(Ag,Bg)};
Eda=function(a,b){this.u=a>>>0;this.j=b>>>0};
Gda=function(a){if(!a)return Fda||(Fda=new Eda(0,0));if(!/^-?\d+$/.test(a))return null;tda(a);return new Eda(Ag,Bg)};
Zg=function(){this.j=[]};
Hda=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
$g=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Ida=function(a,b){if(0<=b)$g(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
ah=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)};
Jda=function(){this.B=[];this.u=0;this.j=new Zg};
bh=function(a,b){0!==b.length&&(a.B.push(b),a.u+=b.length)};
Kda=function(a,b){ch(a,b,2);b=a.j.end();bh(a,b);b.push(a.u);return b};
Lda=function(a,b){var c=b.pop();for(c=a.u+a.j.length()-c;127<c;)b.push(c&127|128),c>>>=7,a.u++;b.push(c);a.u++};
Mda=function(a,b){if(b=b.uC){bh(a,a.j.end());for(var c=0;c<b.length;c++)bh(a,xg(b[c])||tg())}};
ch=function(a,b,c){$g(a.j,8*b+c)};
Nda=function(a,b,c){null!=c&&("string"===typeof c&&Dda(c),ch(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,Ag=b,Bg=c,ah(a,Ag),ah(a,Bg)):(c=Dda(c),a=a.j,b=c.j,ah(a,c.u),ah(a,b)))};
dh=function(a,b,c){ch(a,b,2);$g(a.j,c.length);bh(a,a.j.end());bh(a,c)};
fh=function(a,b){if(eh)return a[eh]|=b;if(void 0!==a.So)return a.So|=b;Object.defineProperties(a,{So:{value:b,configurable:!0,writable:!0,enumerable:!1}});return b};
Oda=function(a,b){var c=gh(a);(c&b)!==b&&(Object.isFrozen(a)&&(a=Array.prototype.slice.call(a)),hh(a,c|b));return a};
Pda=function(a,b){eh?a[eh]&&(a[eh]&=~b):void 0!==a.So&&(a.So&=~b)};
gh=function(a){var b;eh?b=a[eh]:b=a.So;return null==b?0:b};
hh=function(a,b){eh?a[eh]=b:void 0!==a.So?a.So=b:Object.defineProperties(a,{So:{value:b,configurable:!0,writable:!0,enumerable:!1}});return a};
ih=function(a){fh(a,1);return a};
jh=function(a){return!!(gh(a)&2)};
Qda=function(a){fh(a,16);return a};
Rda=function(a,b){hh(b,(a|0)&-51)};
kh=function(a,b){hh(b,(a|18)&-41)};
Sda=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
lh=function(a,b,c,d){if(null==a){if(!c)throw Error();}else if("string"===typeof a)a=a?new vg(a,ug):wg();else if(a.constructor!==vg)if(sg(a))a=d?pda(a):a.length?new vg(new Uint8Array(a),ug):wg();else{if(!b)throw Error();a=void 0}return a};
nh=function(a){mh(gh(a.Re))};
mh=function(a){if(a&2)throw Error();};
oh=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number|null|undefined, found "+typeof a+": "+a);return a};
Tda=function(a){return a.displayName||a.name||"unknown type name"};
Uda=function(a){return null==a?a:!!a};
Vda=function(a){return a};
Wda=function(a){return a};
Xda=function(a){return a};
Yda=function(a){return a};
ph=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Tda(b)+" but got "+(a&&Tda(a.constructor)));return a};
rh=function(a,b,c,d){var e=!1;if(null!=a&&"object"===typeof a&&!(e=Array.isArray(a))&&a.pN===qh)return a;if(!e)return c?d&2?(a=b[Zda])?b=a:(a=new b,fh(a.Re,18),b=b[Zda]=a):b=new b:b=void 0,b;e=c=gh(a);0===e&&(e|=d&16);e|=d&2;e!==c&&hh(a,e);return new b(a)};
$da=function(a){var b=a.u+a.vu;0<=b&&Number.isInteger(b);return a.mq||(a.mq=a.Re[b]={})};
Ah=function(a,b,c){return-1===b?null:b>=a.u?a.mq?a.mq[b]:void 0:c&&a.mq&&(c=a.mq[b],null!=c)?c:a.Re[b+a.vu]};
H=function(a,b,c,d){nh(a);return Bh(a,b,c,d)};
Bh=function(a,b,c,d){a.C&&(a.C=void 0);if(b>=a.u||d)return $da(a)[b]=c,a;a.Re[b+a.vu]=c;(c=a.mq)&&b in c&&delete c[b];return a};
Ch=function(a,b,c){return void 0!==aea(a,b,c,!1)};
Eh=function(a,b,c,d,e){var f=Ah(a,b,d);Array.isArray(f)||(f=Dh);var h=gh(f);h&1||ih(f);if(e)h&2||fh(f,18),c&1||Object.freeze(f);else{e=!(c&2);var l=h&2;c&1||!l?e&&h&16&&!l&&Pda(f,16):(f=ih(Array.prototype.slice.call(f)),Bh(a,b,f,d))}return f};
bea=function(a,b){var c=Ah(a,b);var d=null==c?c:"number"===typeof c||"NaN"===c||"Infinity"===c||"-Infinity"===c?Number(c):void 0;null!=d&&d!==c&&Bh(a,b,d);return d};
cea=function(a,b){var c=Ah(a,b),d=lh(c,!0,!0,!!(gh(a.Re)&18));null!=d&&d!==c&&Bh(a,b,d);return d};
Fh=function(a,b,c,d,e){var f=jh(a.Re),h=Eh(a,b,e||1,d,f),l=gh(h);if(!(l&4)){Object.isFrozen(h)&&(h=ih(h.slice()),Bh(a,b,h,d));for(var m=0,n=0;m<h.length;m++){var p=c(h[m]);null!=p&&(h[n++]=p)}n<m&&(h.length=n);l|=5;f&&(l|=18);hh(h,l);l&2&&Object.freeze(h)}if(2===e)return h;!f&&(l&2||Object.isFrozen(h))&&(h=Array.prototype.slice.call(h),fh(h,5),Bh(a,b,h,d));return h};
dea=function(a){return lh(a,!0,!0,!0)};
eea=function(a){return lh(a,!0,!0,!1)};
Gh=function(a,b){a=cea(a,b);return null==a?wg():a};
fea=function(a,b,c){if(null==b)return H(a,3,Dh);var d=gh(b);if(!(d&4)){if(d&2||Object.isFrozen(b))b=Array.prototype.slice.call(b);for(var e=0;e<b.length;e++)b[e]=c(b[e]);hh(b,d|5)}return H(a,3,b)};
Hh=function(a,b,c,d){nh(a);c!==d?Bh(a,b,c):Bh(a,b,void 0,!1);return a};
Ih=function(a,b,c,d){nh(a);b=Eh(a,b,2,!1,!1);void 0!=d?b.splice(d,0,c):b.push(c);return a};
Kh=function(a,b,c,d){nh(a);(c=Jh(a,c))&&c!==b&&null!=d&&Bh(a,c,void 0,!1);return Bh(a,b,d)};
Jh=function(a,b){for(var c=0,d=0;d<b.length;d++){var e=b[d];null!=Ah(a,e)&&(0!==c&&Bh(a,c,void 0,!1),c=e)}return c};
gea=function(a,b,c){var d=gh(a.Re);mh(d);var e=Ah(a,c);b=Lh(rh(e,b,!0,d));e!==b&&Bh(a,c,b);return b};
aea=function(a,b,c,d){var e=Ah(a,c,d);b=rh(e,b,!1,gh(a.Re));b!==e&&null!=b&&Bh(a,c,b,d);return b};
Mh=function(a,b,c,d){d=void 0===d?!1:d;b=aea(a,b,c,d);if(null==b)return b;if(!jh(a.Re)){var e=Lh(b);e!==b&&(b=e,Bh(a,c,b,d))}return b};
hea=function(a,b,c,d,e){var f=!!(e&2),h=Eh(a,c,1,void 0,f);if(h===Dh||!(gh(h)&4)){var l=h;h=!!(e&2);var m=!!(gh(l)&2);f=l;!h&&m&&(l=Array.prototype.slice.call(l));var n=e|(m?2:0);e=m;for(var p=m=0;m<l.length;m++){var q=rh(l[m],b,!1,n);void 0!==q&&(e=e||!!(2&gh(q.Re)),l[p++]=q)}p<m&&(l.length=p);n=gh(l);b=n|5;b=e?b&-9:b|8;n!=b&&(e=l,Object.isFrozen(e)&&(e=Array.prototype.slice.call(e)),hh(e,b),l=e);f!==l&&Bh(a,c,l);(h||1===d)&&Object.freeze(l);return l}if(3===d)return h;f||(f=Object.isFrozen(h),1===
d?f||Object.freeze(h):(d=gh(h),b=d&-19,f&&(h=Array.prototype.slice.call(h),d=0,Bh(a,c,h)),d!==b&&hh(h,b)));return h};
Nh=function(a,b,c){var d=gh(a.Re),e=!!(d&2);a=hea(a,b,c,e?1:2,d);if(!(e||gh(a)&8)){for(e=0;e<a.length;e++)b=a[e],c=Lh(b),b!==c&&(a[e]=c);fh(a,8)}return a};
I=function(a,b,c,d){nh(a);null!=d?ph(d,b):d=void 0;return Bh(a,c,d)};
Oh=function(a,b,c,d,e){nh(a);null!=e?ph(e,b):e=void 0;return Kh(a,c,d,e)};
Ph=function(a,b,c){return H(a,b,oh(c))};
Qh=function(a,b,c,d){nh(a);var e=null==d?Dh:d;if(null!=d){for(var f=!!d.length,h=0;h<d.length;h++){var l=d[h];ph(l,b);f=f&&!jh(l.Re)}e=Oda(e,(f?8:0)|5)}return Bh(a,c,e)};
Rh=function(a,b,c){H(a,b,lh(c,!1,!0,!1))};
iea=function(a,b,c,d,e){var f=gh(a.Re);mh(f);a=hea(a,c,b,2,f);c=null!=d?ph(d,c):new c;void 0!=e?a.splice(e,void 0,c):a.push(c);c.rq()&&Pda(a,8);return c};
Sh=function(a,b,c,d,e){iea(a,b,c,d,e);return a};
Uh=function(a,b,c){return Th(Ah(a,b),void 0===c?0:c)};
Zh=function(a,b){a:if(a=Ah(a,b),null!=a){switch(typeof a){case "string":a=+a;break a;case "number":break a}a=void 0}return a};
jea=function(){var a=new $h;return H(a,1,1)};
Th=function(a,b){return null==a?b:a};
g.ai=function(a,b){return Th(Ah(a,b),"")};
kea=function(a,b){var c=void 0===c?0:c;return Th(bea(a,b),c)};
bi=function(a,b){return Th(Ah(a,b),0)};
lea=function(a,b,c){a=Eh(a,b,2,!1,jh(a.Re));if(0>c||c>=a.length)throw Error();return a[c]};
mea=function(a,b){ci=b;a=new a(b);ci=void 0;return a};
oea=function(a,b){return nea(b)};
nea=function(a){switch(typeof a){case "number":return isFinite(a)?a:String(a);case "object":if(a&&!Array.isArray(a)){if(sg(a))return gda(a);if(a instanceof vg){var b=a.j;return null==b?"":"string"===typeof b?b:a.j=gda(b)}}}return a};
pea=function(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&gh(a)&1?void 0:f&&gh(a)&2?a:di(a,b,c,void 0!==d,e,f);else if(Sda(a)){var h={},l;for(l in a)h[l]=pea(a[l],b,c,d,e,f);a=h}else a=b(a,d);return a}};
di=function(a,b,c,d,e,f){var h=gh(a);d=d?!!(h&16):void 0;a=Array.prototype.slice.call(a);for(var l=0;l<a.length;l++)a[l]=pea(a[l],b,c,d,e,f);c&&c(h,a);return a};
qea=function(a){return a.pN===qh?a.toJSON():nea(a)};
ei=function(a,b,c){c=void 0===c?kh:c;if(null!=a){if(lda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=gh(a);if(d&2)return a;if(b&&!(d&32)&&(d&16||0===d))return hh(a,d|18),a;a=di(a,ei,d&4?kh:c,!0,!1,!0);b=gh(a);b&4&&b&2&&Object.freeze(a);return a}a.pN===qh&&(jh(a.Re)||(a=fi(a,!0),fh(a.Re,18)));return a}};
fi=function(a,b){var c=a.Re,d=Qda([]),e=a.constructor.j;e&&d.push(e);e=a.mq;if(e){d.length=c.length;var f={};d[d.length-1]=f}b=b||a.rq()?kh:Rda;d=mea(a.constructor,d);a.uC&&(d.uC=a.uC.slice());f=!!(gh(c)&16);for(var h=e?c.length-1:c.length,l=0;l<h;l++)H(d,l-a.vu,ei(c[l],f,b),!1);if(e)for(var m in e)a=e[m],c=+m,Number.isNaN(c),H(d,c,ei(a,f,b),!0);return d};
Lh=function(a){if(!jh(a.Re))return a;var b=fi(a,!1);b.C=a;return b};
J=function(a,b,c){null==a&&(a=ci);ci=void 0;var d=this.constructor.j;if(null==a){a=d?[d]:[];var e=!0;hh(a,48)}else{if(!Array.isArray(a))throw Error();if(d&&d!==a[0])throw Error();var f=fh(a,0)|32;e=0!==(16&f);hh(a,f)}this.vu=d?0:-1;this.Re=a;a:{f=this.Re.length;d=f-1;if(f&&(f=this.Re[d],Sda(f))){this.mq=f;this.u=d-this.vu;break a}void 0!==b&&-1<b?(this.u=Math.max(b,d+1-this.vu),this.mq=void 0):this.u=Number.MAX_VALUE}if(c){b=e&&!0;e=this.u;var h;for(d=0;d<c.length;d++)if(f=c[d],f<e){f+=this.vu;var l=
a[f];l?rea(l,b):a[f]=Dh}else h||(h=$da(this)),(l=h[f])?rea(l,b):h[f]=Dh}};
rea=function(a,b){if(Array.isArray(a)){var c=gh(a),d=1;!b||c&2||(d|=16);(c&d)!==d&&hh(a,c|d)}};
uea=function(a,b,c){if(c){var d={},e;for(e in c){var f=c[e],h=f.Z9;h||(d.vA=f.V7a||f.w8.zI,f.FS?(d.MI=sea(f.FS),h=function(l){return function(m,n,p){return l.vA(m,n,p,l.MI)}}(d)):f.EV?(d.LI=tea(f.yL.Nr,f.EV),h=function(l){return function(m,n,p){return l.vA(m,n,p,l.LI)}}(d)):h=d.vA,f.Z9=h);
h(b,a,f.yL);d={vA:d.vA,MI:d.MI,LI:d.LI}}}Mda(b,a)};
vea=function(a,b,c){return a[gi]||(a[gi]=function(d,e){return b(d,e,c)})};
xea=function(a){var b=a[gi];if(!b){var c=hi(a);b=function(d,e){return wea(d,e,c)};
a[gi]=b}return b};
yea=function(a){var b=a.FS;if(b)return xea(b);if(b=a.U7a)return vea(a.yL.Nr,b,a.EV)};
zea=function(a){var b=yea(a),c=a.yL,d=a.w8.hp;return b?function(e,f){return d(e,f,c,b)}:function(e,f){return d(e,f,c)}};
Aea=function(a,b){var c=a[b];"function"==typeof c&&0===c.length&&(c=c(),a[b]=c);return Array.isArray(c)&&(ii in c||ji in c||0<c.length&&"function"==typeof c[0])?c:void 0};
Bea=function(a,b,c,d,e,f){b.Nr=a[0];var h=1;if(a.length>h&&"number"!==typeof a[h]){var l=a[h++];c(b,l)}for(;h<a.length;){c=a[h++];for(var m=h+1;m<a.length&&"number"!==typeof a[m];)m++;l=a[h++];m-=h;switch(m){case 0:d(b,c,l);break;case 1:(m=Aea(a,h))?(h++,e(b,c,l,m)):d(b,c,l,a[h++]);break;case 2:m=h++;m=Aea(a,m);e(b,c,l,m,a[h++]);break;case 3:f(b,c,l,a[h++],a[h++],a[h++]);break;case 4:f(b,c,l,a[h++],a[h++],a[h++],a[h++]);break;default:throw Error("unexpected number of binary field arguments: "+m);
}}return b};
sea=function(a){var b=a[ki];if(!b){var c=li(a);b=function(d,e){return Cea(d,e,c)};
a[ki]=b}return b};
tea=function(a,b){var c=a[ki];c||(c=function(d,e){return uea(d,e,b)},a[ki]=c);
return c};
Dea=function(a,b){a.push(b)};
Eea=function(a,b,c){a.push(b,c.zI)};
Fea=function(a,b,c,d){var e=sea(d),f=li(d).Nr,h=c.zI;a.push(b,function(l,m,n){return h(l,m,n,f,e)})};
Gea=function(a,b,c,d,e,f){var h=tea(d,f),l=c.zI;a.push(b,function(m,n,p){return l(m,n,p,d,h)})};
li=function(a){var b=a[ji];if(b)return b;b=Bea(a,a[ji]=[],Dea,Eea,Fea,Gea);ii in a&&ji in a&&(a.length=0);return b};
Hea=function(a,b){a[0]=b};
Iea=function(a,b,c,d){var e=c.hp;a[b]=d?function(f,h,l){return e(f,h,l,d)}:e};
Jea=function(a,b,c,d,e){var f=c.hp,h=xea(d),l=hi(d).Nr;a[b]=function(m,n,p){return f(m,n,p,l,h,e)}};
Kea=function(a,b,c,d,e,f,h){var l=c.hp,m=vea(d,e,f);a[b]=function(n,p,q){return l(n,p,q,d,m,h)}};
hi=function(a){var b=a[ii];if(b)return b;b=Bea(a,a[ii]={},Hea,Iea,Jea,Kea);ii in a&&ji in a&&(a.length=0);return b};
wea=function(a,b,c){for(;yda(b)&&4!=b.u;){var d=b.C,e=c[d];if(!e){var f=c[0];f&&(f=f[d])&&(e=c[d]=zea(f))}if(!e||!e(b,a,d))if(f=b,e=a,d=f.B,Lg(f),!f.mL){var h=f.j.j-d;f.j.j=d;d=wda(f.j,h);(f=e.uC)?f.push(d):e.uC=[d]}}return a};
Cea=function(a,b,c){for(var d=c.length,e=1==d%2,f=e?1:0;f<d;f+=2)(0,c[f+1])(b,a,c[f]);uea(a,b,e?c[0]:void 0)};
mi=function(a,b){return{hp:a,zI:b}};
ni=function(a,b,c){b=bea(b,c);if(null!=b){ch(a,c,1);a=a.j;var d=+b;if(0===d)Bg=0<1/d?0:2147483648,Ag=0;else if(isNaN(d))Bg=2147483647,Ag=4294967295;else if(d=(c=0>d?-2147483648:0)?-d:d,1.7976931348623157E308<d)Bg=(c|2146435072)>>>0,Ag=0;else if(2.2250738585072014E-308>d)b=d/Math.pow(2,-1074),Bg=(c|b/4294967296)>>>0,Ag=b>>>0;else{var e=d;b=0;if(2<=e)for(;2<=e&&1023>b;)b++,e/=2;else for(;1>e&&-1022<b;)e*=2,b--;d*=Math.pow(2,-b);Bg=(c|b+1023<<20|1048576*d&1048575)>>>0;Ag=4503599627370496*d>>>0}ah(a,
Ag);ah(a,Bg)}};
oi=function(a,b,c){b=Ah(b,c);null!=b&&("string"===typeof b&&Gda(b),null!=b&&(ch(a,c,0),"number"===typeof b?(a=a.j,rda(b),Hda(a,Ag,Bg)):(c=Gda(b),Hda(a.j,c.u,c.j))))};
pi=function(a,b,c){a:if(b=Ah(b,c),null!=b){switch(typeof b){case "string":b=+b;break a;case "number":break a}b=void 0}null!=b&&null!=b&&(ch(a,c,0),Ida(a.j,b))};
Lea=function(a,b,c){b=Uda(Ah(b,c));null!=b&&(ch(a,c,0),a.j.j.push(b?1:0))};
Mea=function(a,b,c){b=Ah(b,c);null!=b&&dh(a,c,Yca(b))};
Nea=function(a,b,c,d,e){b=Mh(b,d,c);null!=b&&(c=Kda(a,c),e(b,a),Lda(a,c))};
Oea=function(a){return function(){var b=new Jda;Cea(this,b,li(a));bh(b,b.j.end());for(var c=new Uint8Array(b.u),d=b.B,e=d.length,f=0,h=0;h<e;h++){var l=d[h];c.set(l,f);f+=l.length}b.B=[c];return c}};
qi=function(a){return function(b){if(null==b||""==b)b=new a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);b=mea(a,Qda(b))}return b}};
Qea=function(a){J.call(this,a,-1,Pea)};
ri=function(a){J.call(this,a)};
Rea=function(a){J.call(this,a)};
Tea=function(a){J.call(this,a,-1,Sea)};
si=function(a){J.call(this,a)};
ti=function(a){J.call(this,a,-1,Uea)};
Vea=function(a){J.call(this,a)};
Wea=function(a){J.call(this,a)};
Xea=function(a){J.call(this,a)};
ui=function(a){J.call(this,a,-1,Yea)};
$ea=function(a){J.call(this,a,-1,Zea)};
g.afa=function(a){var b=new ui;b=H(b,1,a.u);for(var c=[],d=0;d<a.j.length;d++)c.push(a.j[d].We);b=fea(b,c,Xda);c=[];d=[];for(var e=g.t(a.Rx.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];var h=a.C;for(var l=a.IL(f)||[],m=[],n=0;n<l.length;n++){var p=l[n];p=p&&p.PS;var q=new si;switch(h){case 3:Kh(q,1,vi,Number(p));break;case 2:Kh(q,2,vi,oh(Number(p)))}m.push(q)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new ti;m=I(n,si,2,m);n=f;p=[];q=a;for(var r=[],v=0;v<
q.j.length;v++)r.push(q.j[v].Xe);q=r;for(r=0;r<q.length;r++){v=q[r];var x=n[r],z=new ri;switch(v){case 3:Kh(z,1,wi,String(x));break;case 2:Kh(z,2,wi,Number(x));break;case 1:Kh(z,3,wi,"true"==x)}p.push(z)}Qh(m,ri,1,p);c.push(m)}}Qh(b,ti,4,c);return b};
bfa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.startsWith("blob:")&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==
c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
cfa=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,v=0;64>v;v+=4)r[v/4]=q[v]<<24|q[v+1]<<16|q[v+2]<<8|q[v+3];for(v=16;80>v;v++)q=r[v-3]^r[v-8]^r[v-14]^r[v-16],r[v]=(q<<1|q>>>31)&4294967295;q=e[0];var x=e[1],z=e[2],B=e[3],F=e[4];for(v=0;80>v;v++){if(40>v)if(20>v){var G=B^x&(z^B);var D=1518500249}else G=x^z^B,D=1859775393;else 60>v?(G=x&z|B&(x|z),D=2400959708):(G=x^z^B,D=3395469782);G=((q<<5|q>>>27)&4294967295)+G+F+D+r[v]&4294967295;F=B;B=z;z=(x<<30|x>>>2)&4294967295;x=q;q=G}e[0]=e[0]+q&4294967295;e[1]=e[1]+x&4294967295;e[2]=
e[2]+z&4294967295;e[3]=e[3]+B&4294967295;e[4]=e[4]+F&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var v=[],x=0,z=q.length;x<z;++x)v.push(q.charCodeAt(x));q=v}r||(r=q.length);v=0;if(0==n)for(;v+64<r;)b(q.slice(v,v+64)),v+=64,p+=64;for(;v<r;)if(f[n++]=q[v++],p++,64==n)for(n=0,b(f);v+64<r;)b(q.slice(v,v+64)),v+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var v=63;56<=v;v--)f[v]=r&255,r>>>=8;b(f);for(v=r=0;5>v;v++)for(var x=24;0<=x;x-=8)q[r++]=e[v]>>x&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,I2:function(){for(var q=d(),r="",v=0;v<q.length;v++)r+="0123456789ABCDEF".charAt(Math.floor(q[v]/16))+"0123456789ABCDEF".charAt(q[v]%16);return r}}};
efa=function(a,b,c){var d=String(g.Ea.location.href);return d&&a&&b?[b,dfa(bfa(d),a,c||null)].join(" "):null};
dfa=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.Ob(d,function(l){e.push(l)}),ffa(e.join(" "));
var f=[],h=[];g.Ob(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.sb(f)?[c,b,a]:[f.join(":"),c,b,a];g.Ob(d,function(l){e.push(l)});
a=ffa(e.join(" "));a=[c,a];g.sb(h)||a.push(h.join(""));return a.join("_")};
ffa=function(a){var b=cfa();b.update(a);return b.I2().toLowerCase()};
Gi=function(a){this.j=a||{cookie:""}};
Hi=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=cc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Ii=function(a){return!!gfa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
hfa=function(a){a=void 0===a?!1:a;var b=g.Ea.__SAPISID||g.Ea.__APISID||g.Ea.__3PSAPISID||g.Ea.__OVERRIDE_SID;Ii(a)&&(b=b||g.Ea.__1PSAPISID);if(b)return!0;var c=new Gi(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");Ii(a)&&(b=b||c.get("__Secure-1PAPISID"));return!!b};
ifa=function(a,b,c,d){(a=g.Ea[a])||(a=(new Gi(document)).get(b));return a?efa(a,c,d):null};
jfa=function(a,b){b=void 0===b?!1:b;var c=bfa(String(g.Ea.location.href)),d=[];if(hfa(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Ea.__SAPISID:g.Ea.__APISID;e||(e=new Gi(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?efa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Ii(b)&&((b=ifa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=ifa("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",
a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
Ji=function(a){J.call(this,a,-1,kfa)};
g.Ki=function(a,b,c,d){this.C=a;this.D=b;this.j=this.B=a;this.I=c||0;this.J=d||2};
g.Li=function(a){a.j=Math.min(a.D,a.j*a.J);a.B=Math.min(a.D,a.j+(a.I?Math.round(a.I*(Math.random()-.5)*2*a.j):0));a.u++};
g.Mi=function(a){return(new lfa).jp(a)};
lfa=function(){};
Ni=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),Ni(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),mfa(d,c),c.push(":"),Ni(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":mfa(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);}}};
mfa=function(a,b){b.push('"',a.replace(nfa,function(c){var d=ofa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),ofa[c]=d);return d}),'"')};
pfa=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"}};
Oi=function(){};
Pi=function(){};
qfa=function(a){if(!a.u&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.u=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.u};
Qi=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};
Ri=function(a){return a?decodeURI(a):a};
g.Ti=function(a,b){return b.match(Si)[a]||null};
g.Ui=function(a){return Ri(g.Ti(3,a))};
g.rfa=function(a){a=a.match(Si);return Qi(a[1],a[2],a[3],a[4])};
sfa=function(a){a=a.match(Si);return Qi(a[1],null,a[3],a[4])};
tfa=function(a){a=a.match(Si);return Qi(null,null,null,null,a[5],a[6],a[7])};
Vi=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Le(e):"")}}};
Wi=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Xi=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Xi(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Ke(b)))};
ufa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Xi(a[b],a[b+1],c);return c.join("&")};
g.Yi=function(a){var b=[],c;for(c in a)Xi(c,a[c],b);return b.join("&")};
vfa=function(a,b){var c=2==arguments.length?ufa(arguments[1],0):ufa(arguments,1);return Wi(a,c)};
g.Zi=function(a,b){b=g.Yi(b);return Wi(a,b)};
$i=function(a,b,c){c=null!=c?"="+g.Ke(c):"";return Wi(a,b+c)};
wfa=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
lj=function(a,b){var c=a.search(xfa),d=wfa(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Le(a.slice(d,-1!==e?e:0))};
mj=function(a,b){for(var c=a.search(xfa),d=0,e,f=[];0<=(e=wfa(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(yfa,"$1")};
zfa=function(a,b,c){return $i(mj(a,b),b,c)};
g.nj=function(a){g.Fd.call(this);this.headers=new Map;this.T=a||null;this.B=!1;this.ya=this.j=null;this.Z="";this.u=0;this.C="";this.D=this.Ga=this.ea=this.Aa=!1;this.J=0;this.oa=null;this.Ja="";this.La=this.I=!1};
Bfa=function(a,b,c,d,e,f,h){var l=new g.nj;Afa.push(l);b&&l.Ra("complete",b);l.CG("ready",l.j2);f&&(l.J=Math.max(0,f));h&&(l.I=h);l.send(a,c,d,e)};
Cfa=function(a){return g.mf&&"number"===typeof a.timeout&&void 0!==a.ontimeout};
Efa=function(a,b){a.B=!1;a.j&&(a.D=!0,a.j.abort(),a.D=!1);a.C=b;a.u=5;Dfa(a);oj(a)};
Dfa=function(a){a.Aa||(a.Aa=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Ffa=function(a){if(a.B&&"undefined"!=typeof pj)if(a.ya[1]&&4==g.qj(a)&&2==a.getStatus())a.getStatus();else if(a.ea&&4==g.qj(a))g.ag(a.yW,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.B=!1;try{if(rj(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.u=6;try{var b=2<g.qj(a)?a.j.statusText:""}catch(c){b=""}a.C=b+" ["+a.getStatus()+"]";Dfa(a)}}finally{oj(a)}}};
oj=function(a,b){if(a.j){Gfa(a);var c=a.j,d=a.ya[0]?function(){}:null;
a.j=null;a.ya=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Gfa=function(a){a.j&&a.La&&(a.j.ontimeout=null);a.oa&&(g.Ea.clearTimeout(a.oa),a.oa=null)};
rj=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.Ti(1,String(a.Z)),!a&&g.Ea.self&&g.Ea.self.location&&(a=g.Ea.self.location.protocol.slice(0,-1)),b=!Hfa.test(a?a.toLowerCase():"");c=b}return c};
g.qj=function(a){return a.j?a.j.readyState:0};
g.sj=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.tj=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.Ja){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.Ifa=function(a){var b={};a=(a.j&&2<=g.qj(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.Tb(a[c])){var d=eca(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Vc(b,function(h){return h.join(", ")})};
g.uj=function(a,b){return a.j?a.j.getResponseHeader(b):null};
vj=function(a){J.call(this,a)};
wj=function(a){J.call(this,a,-1,Jfa)};
xj=function(a){J.call(this,a)};
$h=function(a){J.call(this,a)};
Lfa=function(a){J.call(this,a,-1,Kfa)};
yj=function(a){J.call(this,a,33,Mfa)};
Ofa=function(a){J.call(this,a,19,Nfa)};
Qfa=function(a){J.call(this,a,6,Pfa)};
Rfa=function(a){J.call(this,a)};
Aj=function(a,b,c,d,e,f,h,l,m,n,p){g.Fd.call(this);var q=this;this.componentId="";this.u=[];this.Qa="";this.Xa=this.Aa=-1;this.Ja=!1;this.T=this.B=null;this.I=this.J=0;this.fb=1;this.timeoutMillis=0;this.ya=!1;g.Fd.call(this);this.logSource=a;this.La=b||function(){};
this.C=new Sfa(a,f);this.Ya=d;this.network=p;this.ib=g.Pa(aca,0,1);this.Z=e||null;this.sessionIndex=c||null;this.oa=h||!1;this.pageId=m||null;this.logger=null;this.withCredentials=!l;this.Ga=f||!1;!this.Ga&&(65<=xc("Chromium")||45<=xc("Firefox")||12<=xc("Safari")||Cc()&&g.ec(Vaa(),12));a=jea();zj(this.C,a);this.D=new g.Ki(1E4,3E5,.1);this.j=new g.$f(this.D.getValue());g.E(this,this.j);n=Tfa(this,n);g.ud(this.j,"tick",n,!1,this);this.ea=new g.$f(6E5);g.E(this,this.ea);g.ud(this.ea,"tick",n,!1,this);
this.oa||this.ea.start();this.Ga||(g.ud(document,"visibilitychange",function(){"hidden"===document.visibilityState&&q.zL()}),g.ud(document,"pagehide",this.zL,!1,this))};
Tfa=function(a,b){return b?function(){b().then(function(){a.flush()})}:function(){a.flush()}};
Ufa=function(a){a.Z||(a.Z=.01>a.ib()?"https://web.archive.org/web/20230426095903/https://www.google.com/log?format=json&hasfast=true":"https://web.archive.org/web/20230426095903/https://play.google.com/log?format=json&hasfast=true");return a.Z};
Vfa=function(a,b){a.D=new g.Ki(1>b?1:b,3E5,.1);a.j.setInterval(a.D.getValue())};
Xfa=function(a){Wfa(a,function(b,c){b=$i(b,"format","json");var d=!1;try{d=nf().navigator.sendBeacon(b,c.jp())}catch(e){}a.ya&&!d&&(a.ya=!1);return d})};
Wfa=function(a,b){if(0!==a.u.length){var c=mj(Ufa(a),"format");c=vfa(c,"auth",a.La(),"authuser",a.sessionIndex||"0");for(var d=0;10>d&&a.u.length;++d){var e=a.u.slice(0,32),f=a.C.wf(e,a.J,a.I);if(!b(c,f)){++a.I;break}a.J=0;a.I=0;a.u=a.u.slice(e.length)}a.j.enabled&&a.j.stop()}};
Yfa=function(a){g.ib.call(this,"event-logged",void 0);this.j=a};
Sfa=function(a,b){this.B=b=void 0===b?!1:b;this.u=this.locale=null;this.j=new Ofa;H(this.j,2,a);b||(this.locale=document.documentElement.getAttribute("lang"));zj(this,new $h)};
zj=function(a,b){I(a.j,$h,1,b);Ah(b,1)||H(b,1,1);a.B||(b=Bj(a),Ah(b,5)||H(b,5,a.locale));a.u&&(b=Bj(a),Mh(b,wj,9)||I(b,wj,9,a.u))};
Zfa=function(a,b){Ch(Mh(a.j,$h,1),xj,11)&&(a=Cj(a),H(a,1,b))};
$fa=function(a,b){Ch(Mh(a.j,$h,1),xj,11)&&(a=Cj(a),H(a,2,b))};
cga=function(a,b){var c=void 0===c?aga:c;b(nf(),c).then(function(d){a.u=d;d=Bj(a);I(d,wj,9,a.u);return!0}).catch(function(){return!1})};
Bj=function(a){a=Mh(a.j,$h,1);var b=Mh(a,xj,11);b||(b=new xj,I(a,xj,11,b));return b};
Cj=function(a){a=Bj(a);var b=Mh(a,vj,10);b||(b=new vj,H(b,2,!1),I(a,vj,10,b));return b};
dga=function(a,b,c){Bfa(a.url,function(d){d=d.target;rj(d)?b(g.sj(d)):c(d.getStatus())},a.requestType,a.body,a.dw,a.timeoutMillis,a.withCredentials)};
Dj=function(a,b){g.C.call(this);this.I=a;this.Ga=b;this.C="https://web.archive.org/web/20230426095903/https://play.google.com/log?format=json&hasfast=true";this.D=!1;this.oa=dga;this.j=""};
Ej=function(a,b,c,d,e,f){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.C.call(this);f?b=f:(a=new Dj(a,"0"),a.j=b,g.E(this,a),""!=c&&(a.C=c),d&&(a.D=!0),e&&(a.u=e),b=a.wf());this.j=b};
ega=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}};
fga=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""}};
Fj=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
Gj=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
Hj=function(a,b){this.logger=a;this.j=b;this.startMillis=Gj()};
Ij=function(a,b){this.logger=a;this.operation=b;this.startMillis=Gj()};
gga=function(a,b){var c=Gj()-a.startMillis;a.logger.fN(b?"h":"m",c)};
hga=function(){};
iga=function(a,b){this.sf=a;a=new Dj(1654,"0");a.u="10";if(b){var c=new Qea;b=fea(c,b,Vda);a.B=b}b=new Ej(1654,"","",!1,"",a.wf());b=new g.cg(b);this.clientError=new Mca(b);this.J=new Lca(b);this.T=new Kca(b);this.I=new Nca(b);this.B=new Oca(b);this.C=new Pca(b);this.j=new Qca(b);this.D=new Rca(b);this.u=new Sca(b)};
jga=function(a){this.j=a;this.j.jk("/client_streamz/bg/fiec",{Xe:3,We:"rk"},{Xe:2,We:"ec"})};
Jj=function(a,b,c){a.j.yl("/client_streamz/bg/fiec",b,c)};
kga=function(a){this.j=a;this.j.Jx("/client_streamz/bg/fil",{Xe:3,We:"rk"})};
lga=function(a){this.j=a;this.j.jk("/client_streamz/bg/fsc",{Xe:3,We:"rk"})};
mga=function(a){this.j=a;this.j.Jx("/client_streamz/bg/fsl",{Xe:3,We:"rk"})};
pga=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=nga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=Kj(a,l),d+=Kj(a,l+4),e+=Kj(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 oga.toString(e)};
nga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
Kj=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
qga=function(a){this.J=Lj();this.D=new Ej(1828);this.j=new g.cg(this.D);this.I=new kga(this.j);this.B=new lga(this.j);this.C=new mga(this.j);this.u=new jga(this.j);this.sf=pga(a)};
Lj=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
rga=function(a){J.call(this,a)};
sga=function(a){J.call(this,a)};
Mj=function(a){J.call(this,a)};
g.Wj=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Xj=function(a){function b(x,z){Promise.resolve().then(function(){var B;null!=(B=c.Aj)&&B.I.Sf(Lj()-B.J,B.sf);h.resolve({V1:x,d9:z})})}
var c=this;this.j=!1;if(a.challenge instanceof Mj){var d=g.ai(a.challenge,4);var e=g.ai(a.challenge,5)}else d=a.program,e=a.globalName;if(a.x8){var f;this.Aj=null!=(f=a.Aj)?f:new qga(e)}var h=new g.Wj;this.u=h.promise;if(g.Ea[e])if(g.Ea[e].a){var l;null!=(l=this.Aj)&&Jj(l.u,l.sf,3)}else{var m;null!=(m=this.Aj)&&Jj(m.u,m.sf,2);var n;null!=(n=this.Aj)&&n.j.gx()}else{var p;null!=(p=this.Aj)&&Jj(p.u,p.sf,1);var q;null!=(q=this.Aj)&&q.j.gx()}try{this.B=g.t((0,g.Ea[e].a)(d,b,!0)).next().value,this.b9=h.promise.then(function(){})}catch(x){var r;
null!=(r=this.Aj)&&Jj(r.u,r.sf,4);var v;null!=(v=this.Aj)&&v.j.gx();throw x;}};
tga=function(a){return ke(a)};
uga=function(a){g.Xd("From proto message. b/12014412");return $d(Ah(a,4)||"")};
vga=function(){};
Yj=function(a){this.j=a};
Zj=function(a){if(a instanceof ae)a=g.be(a);else{b:if(wga){try{var b=new URL(a)}catch(c){b="https:";break b}b=b.protocol}else c:{b=document.createElement("a");try{b.href=a}catch(c){b=void 0;break c}b=b.protocol;b=":"===b||""===b?"https:":b}a="javascript:"!==b?a:void 0}return a};
ak=function(a){this.De=a};
bk=function(a){return new ak(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
yga=function(a,b){b=void 0===b?xga:b;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ak&&d.De(a))return ce(a)}};
ck=function(a,b){b=Zj(b);void 0!==b&&(a.href=b)};
zga=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof Yj)f=f.j;else throw Error("");return f});
var e=c.toLowerCase();if(a.every(function(f){return 0!==e.indexOf(f)}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.');
b.setAttribute(c,d)};
dk=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
ek=function(a){var b,c,d=null==(c=(b=(a.ownerDocument&&a.ownerDocument.defaultView||window).document).querySelector)?void 0:c.call(b,"script[nonce]");(b=d?d.nonce||d.getAttribute("nonce")||"":"")&&a.setAttribute("nonce",b)};
g.fk=function(a,b){a.src=zba(b);ek(a)};
g.gk=function(a,b,c){var d=window;a=Zj(a);return void 0!==a?d.open(a,b,c):null};
hk=function(){this.j={};this.u=null};
Aga=function(){hk.instance||(hk.instance=new hk);return hk.instance};
Cga=function(a){var b=Aga();return Bga(b,Mh(a,rga,1),Mh(a,sga,2),g.ai(a,3))};
Bga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return Dga(b,c);var e;(e=a.j)[d]||(e[d]=new Promise(function(f,h){Dga(b,c).then(function(){a.u=d;f()},function(l){delete a.j[d];
h(l)})}));
return a.j[d]};
Dga=function(a,b){return b?Ega(b):a?Fga(a):Promise.resolve()};
Ega=function(a){return new Promise(function(b,c){var d=g.qf("SCRIPT"),e=uga(a);g.fk(d,e);d.onload=function(){g.xf(d);b()};
d.onerror=function(){g.xf(d);c(Error("EWLS"))};
(g.Xe("HEAD")[0]||document.documentElement).appendChild(d)})};
Fga=function(a){return new Promise(function(b){var c=g.qf("SCRIPT");if(a){var d=Ah(a,6);d=null===d||void 0===d?null:xba(d)}else d=null;c.textContent=wba(d);ek(c);(g.Xe("HEAD")[0]||document.documentElement).appendChild(c);g.xf(c);b()})};
ik=function(a){J.call(this,a)};
jk=function(a){J.call(this,a)};
Gga=function(a,b,c){this.client=a;this.sf=b;this.j=c};
Jga=function(a,b){var c,d;return g.A(function(e){c=a.j();var f=new jk;f=Hh(f,1,a.sf,"");d=Hh(f,2,b,"");f=e.return;var h=a.client;h=Hga(h.j,h.u+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Iga);return f.call(e,h)})};
kk=function(a){J.call(this,a)};
lk=function(a,b,c){this.j=a;this.B=b;this.u=c};
mk=function(a,b,c){c=void 0===c?{}:c;this.K8=a;this.j=c;this.u=b};
nk=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.u=e};
Kga=function(a,b,c){c=void 0===c?{}:c;return new lk(b,a,c)};
ok=function(a){J.call(this,a)};
pk=function(a){J.call(this,a)};
qk=function(a){J.call(this,a,-1,Lga)};
rk=function(a,b){this.J=a.Y4;this.T=b;this.j=a.xhr;this.B=[];this.D=[];this.I=[];this.C=[];this.u=[];this.J&&Mga(this)};
Pga=function(a,b){g.ud(a.j,"complete",function(){if(rj(a.j)){var c=g.sj(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.T(c)}catch(f){sk(a,new Fj(13,"Error when deserializing response data; error: "+f+(", response: "+c)));return}c=ega(a.j.getStatus());tk(a,uk(a));0==c?Nga(a,d):sk(a,new Fj(c,"Xhr succeeded but the status code is not 200"))}else{d=g.sj(a.j);var e={};d?(e=Oga(a,d),d=e.code,c=e.details,e=e.metadata):
(d=2,c="Rpc failed due to xhr error. error code: "+a.j.u+", error: "+a.j.getLastError());tk(a,uk(a));sk(a,new Fj(d,c,e))}})};
Mga=function(a){a.J.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.T(c)}catch(e){sk(a,new Fj(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Nga(a,d)}if("2"in b)for(b=Oga(a,b["2"]),c=0;c<a.I.length;c++)a.I[c](b)});
a.J.on("end",function(){tk(a,uk(a));for(var b=0;b<a.C.length;b++)a.C[b]()});
a.J.on("error",function(){if(0!=a.u.length){var b=a.j.u;0!==b||rj(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=ega(c);break;default:d=14}tk(a,uk(a));b=pfa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);sk(a,new Fj(d,b))}})};
uk=function(a){var b={},c=g.Ifa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Oga=function(a,b){var c=2,d={};try{var e=Qga(b);c=Uh(e,1);var f=e.getMessage();Nh(e,pk,3).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Z)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
vk=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
Nga=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
tk=function(a,b){for(var c=0;c<a.D.length;c++)a.D[c](b)};
sk=function(a,b){for(var c=0;c<a.u.length;c++)a.u[c](b)};
g.wk=function(a){this.I=a.Y9||null;this.D=a.YX||!1;this.u=void 0};
xk=function(a,b){g.Fd.call(this);this.oa=a;this.I=b;this.D=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.T=new Headers;this.u=null;this.Z="GET";this.ea="";this.j=!1;this.J=this.B=this.C=null};
Rga=function(a){a.B.read().then(a.D3.bind(a)).catch(a.kG.bind(a))};
zk=function(a){a.readyState=4;a.C=null;a.B=null;a.J=null;yk(a)};
yk=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Sga=function(a){if(a.Ml&&"function"==typeof a.Ml)return a.Ml();if("undefined"!==typeof Map&&a instanceof Map||"undefined"!==typeof Set&&a instanceof Set)return Array.from(a.values());if("string"===typeof a)return a.split("");if(g.Ia(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Yc(a)};
Tga=function(a){if(a.Xp&&"function"==typeof a.Xp)return a.Xp();if(!a.Ml||"function"!=typeof a.Ml){if("undefined"!==typeof Map&&a instanceof Map)return Array.from(a.keys());if(!("undefined"!==typeof Set&&a instanceof Set)){if(g.Ia(a)||"string"===typeof a){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Zc(a)}}};
g.Ak=function(a,b,c){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,c);else if(g.Ia(a)||"string"===typeof a)Array.prototype.forEach.call(a,b,c);else for(var d=Tga(a),e=Sga(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)};
g.Bk=function(a){this.j=this.T=this.D="";this.C=null;this.I=this.B="";this.J=!1;var b;a instanceof g.Bk?(this.J=a.J,g.Ck(this,a.D),this.T=a.T,g.Dk(this,a.j),g.Ek(this,a.C),this.B=a.B,Fk(this,a.u.clone()),this.I=a.I):a&&(b=String(a).match(Si))?(this.J=!1,g.Ck(this,b[1]||"",!0),this.T=Gk(b[2]||""),g.Dk(this,b[3]||"",!0),g.Ek(this,b[4]),this.B=Gk(b[5]||"",!0),Fk(this,b[6]||"",!0),this.I=Gk(b[7]||"")):(this.J=!1,this.u=new Hk(null,this.J))};
g.Ck=function(a,b,c){a.D=c?Gk(b,!0):b;a.D&&(a.D=a.D.replace(/:$/,""))};
g.Dk=function(a,b,c){a.j=c?Gk(b,!0):b};
g.Ek=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null};
Fk=function(a,b,c){b instanceof Hk?(a.u=b,Uga(a.u,a.J)):(c||(b=Ik(b,Vga)),a.u=new Hk(b,a.J))};
g.Jk=function(a,b,c){a.u.set(b,c)};
g.Kk=function(a){return a instanceof g.Bk?a.clone():new g.Bk(a)};
Gk=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Ik=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Wga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Wga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Hk=function(a,b){this.u=this.j=null;this.B=a||null;this.C=!!b};
Ok=function(a){a.j||(a.j=new Map,a.u=0,a.B&&Vi(a.B,function(b,c){a.add(Le(b),c)}))};
Xga=function(a,b){Ok(a);b=Pk(a,b);return a.j.has(b)};
g.Yga=function(a,b,c){a.remove(b);0<c.length&&(a.B=null,a.j.set(Pk(a,b),g.Bb(c)),a.u=a.u+c.length)};
Pk=function(a,b){b=String(b);a.C&&(b=b.toLowerCase());return b};
Uga=function(a,b){b&&!a.C&&(Ok(a),a.B=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Yga(this,e,c))},a));
a.C=b};
g.Zga=function(a){var b="";g.Tc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Qk=function(a,b,c){if(g.hd(c))return a;c=g.Zga(c);if("string"===typeof a)return $i(a,g.Ke(b),c);g.Jk(a,b,c);return a};
g.Rk=function(a){g.C.call(this);this.u=a;this.j={}};
$ga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)$ga(a,b,c[h],d,e,f);else{b=td(b,c,d||a.handleEvent,e,f||a.u||a);if(!b)return a;a.j[b.key]=b}return a};
aha=function(){this.B=!0;this.u=0;this.j=""};
bha=function(a,b,c){a.B=!1;throw Error("The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b);};
Sk=function(){this.I=null;this.J=[];this.C=this.u=this.B=this.j=this.ea=0;this.D=null;this.T=0};
Tk=function(a,b,c,d){a.j=3;a.I="The stream is broken @"+a.ea+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.I);};
Uk=function(){this.j=null;this.u=0;this.B=new aha;this.C=new Sk};
cha=function(a,b,c){a.j="The stream is broken @"+a.u+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Vk=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Wk=function(a){this.ea=null;this.I=[];this.C="";this.oa=[];this.B=this.u=0;this.J=!1;this.T=0;this.ya=/[\\"]/g;this.j=this.D=0;this.Z=!(!a||!a.H2)};
Xk=function(a,b,c){a.D=3;a.ea="The stream is broken @"+a.B+"/"+c+". With input:\n"+b;throw Error(a.ea);};
Yk=function(){this.D=this.B=null;this.u=this.j=0;this.C=[];this.I=!1};
dha=function(a){var b=g.uj(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Yk:new Wk:b.startsWith("application/x-protobuf")?(a=g.uj(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Uk:null:new Sk:null};
Zk=function(a){this.j=a;this.u=null;this.C=this.B=0;this.ea=!1;this.D=this.J=this.I=null;this.T=new g.Rk(this);this.T.Ra(this.j,"readystatechange",this.Z)};
$k=function(a,b){a.C!=b&&(a.C=b,a.J&&a.J())};
al=function(a){a.T.Ef();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
eha=function(a){this.B=a;a=(0,g.Oa)(this.S5,this);this.B.D=a;a=(0,g.Oa)(this.z7,this);this.B.J=a;this.u={};this.j={}};
fha=function(a,b){for(var c={},d=0;d<a.length;c={DI:c.DI},d++)c.DI=a[d],b.forEach(function(e){return function(f){try{f(e.DI)}catch(h){}}}(c))};
bl=function(a,b){var c=a.u[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.j[b])&&c.forEach(function(d){d()});
a.j[b]=[]};
gha=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.D=a.G8a||g.Ga("suppressCorsPreflight",a)||!1;this.u=a.withCredentials||g.Ga("withCredentials",a)||!1;this.C=a.F8a||[];this.I=a.L8a||[];this.j=a.O8a;this.B=a.M8a||!1};
Hga=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return hha(function(h){return new iha(function(l,m){var n={},p=jha(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=void 0===r?{}:r;l(new mk(q,h.UF(),r))})})},a.I).call(a,Kga(e,c,d)).then(function(h){return h.K8})};
jha=function(a,b,c){var d=b.UF(),e=b.getMetadata(),f=kha(a,!0);a=lha(a,e,f,c+d.getName());c=mha(f,d.u,!1);Pga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
kha=function(a,b){b=a.B&&!b;return a.j||b?new g.nj(new g.wk({Y9:a.j,YX:b})):new g.nj};
lha=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.u)c.I=!0;if(a.D)d=g.Qk(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
mha=function(a,b,c){if(c)if(a.isActive(),!g.mf||g.Oc(10)){c=new Zk(a);var d=new eha(c)}else d=null;return new rk({xhr:a,Y4:d},b)};
hha=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
nha=function(){this.j=new gha;this.u="https://web.archive.org/web/20230426095903/https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
oha=function(a){var b=new nha,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Gga(b,a,function(){return c})};
cl=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=a;if(b instanceof Error){this.message=b.message;var d;this.stack=null!=(d=b.stack)?d:""}else this.message=String(b),this.stack="";Object.setPrototypeOf(this,cl.prototype)};
dl=function(a){g.C.call(this);this.logger=a;this.D=new g.Wj};
fl=function(a,b){el(b).then(function(){a.D.resolve()})};
gl=function(a,b,c,d,e){dl.call(this,a);this.I=c;this.T=d;this.B="m";this.u="x";this.J=0;g.E(this,b);fl(this,e)};
hl=function(a,b,c){dl.call(this,a);this.I=b;this.B="f";this.u="z";fl(this,c)};
il=function(a,b,c){dl.call(this,a);this.I=b;this.B="w";this.u="z";fl(this,c)};
jl=function(a,b,c){dl.call(this,a);this.error=b;this.J=c;this.B="e";this.u="y"};
pha=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);if(a.J)return new Uint8Array(g.fg("WE:"+a.error.code+":"+b));var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(g.fg(b)))};
kl=function(a,b,c){dl.call(this,a);this.I=b;this.clientState=c;this.B="S";this.u="q"};
el=function(a){return new Promise(function(b){return void setTimeout(b,a)})};
ll=function(a,b){return Promise.race([a,el(12E4).then(b)])};
ml=function(a){this.j=void 0;this.C=new g.Wj;this.state=1;this.B=0;this.u=void 0;this.Qu=a.Qu;this.jW=a.jW;this.onError=a.onError;this.logger=a.k8a?new hga:new iga(a.sf,a.WS);this.DH=!!a.DH};
qha=function(a,b){var c=oha(a);return new ml({sf:a,Qu:c,onError:b,WS:void 0})};
rha=function(a,b,c){var d=window.webpocb;if(!d)throw new cl(4,Error("PMD:Undefined"));d=d(yg(Gh(b,1)));if(!(d instanceof Function))throw new cl(16,Error("APF:Failed"));return new gl(a.logger,c,d,Th(Zh(b,3),0),1E3*Th(Zh(b,2),0))};
sha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,v,x,z,B;return g.A(function(F){switch(F.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Ki(c,6E5,.25,2),e=1;case 2:if(!(2>=e)){F.Ka(4);break}g.pa(F,5);a.state=3;a.B=e-1;return g.y(F,a.u&&1===e?a.u:a.EF(e),7);case 7:return f=F.u,a.u=void 0,a.state=4,h=new Hj(a.logger,"b"),g.y(F,Cga(f),8);case 8:return l=new Xj({challenge:f}),a.state=5,g.y(F,ll(l.snapshot({}),function(){return Promise.reject(new cl(15,"MDA:Timeout"))}),9);
case 9:return m=F.u,h.done(),a.state=6,g.y(F,ll(a.logger.gN("g",e,Jga(a.Qu,m)),function(){return Promise.reject(new cl(10,"BWB:Timeout"))}),10);
case 10:n=F.u;a.state=7;p=new Hj(a.logger,"i");if(g.ai(n,4)){l.dispose();var G=new il(a.logger,g.ai(n,4),1E3*Th(Zh(n,2),0))}else Th(Zh(n,3),0)?G=rha(a,n,l):(l.dispose(),G=new hl(a.logger,yg(Gh(n,1)),1E3*Th(Zh(n,2),0)));q=G;p.done();v=r=void 0;null==(v=(r=a).jW)||v.call(r,yg(Gh(n,1)));a.state=8;return F.return(q);case 5:x=g.sa(F);b=x instanceof cl?x:x instanceof Fj?new cl(11,x):new cl(12,x);a.logger.JC(b.code);B=z=void 0;null==(B=(z=a).onError)||B.call(z,b);a:{if(x instanceof Fj)switch(x.code){case 2:case 13:case 14:case 4:break;
default:G=!1;break a}G=!0}if(!G)throw b;return g.y(F,el(d.getValue()),11);case 11:g.Li(d);case 3:e++;F.Ka(2);break;case 4:throw b;}})};
tha=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:return b=void 0,g.pa(e,4),g.y(e,sha(a),6);case 6:b=e.u;g.ra(e,5);break;case 4:c=g.sa(e);if(a.j){a.logger.JC(13);e.Ka(0);break}a.logger.JC(14);c instanceof cl||(c=new cl(14,c instanceof Error?c:Error(String(c))));b=new jl(a.logger,c,!a.DH);case 5:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.C.resolve(),g.y(e,a.j.D.promise,1)}})};
uha=function(a){try{var b=!0;if(globalThis.sessionStorage){var c;null!=(c=globalThis.sessionStorage.getItem)&&c.call||(a.logger.ez("r"),b=!1);var d;null!=(d=globalThis.sessionStorage.setItem)&&d.call||(a.logger.ez("w"),b=!1);var e;null!=(e=globalThis.sessionStorage.removeItem)&&e.call||(a.logger.ez("d"),b=!1)}else a.logger.ez("n"),b=!1;if(b){a.logger.ez("a");var f=Array.from({length:83}).map(function(){return 9*Math.random()|0}).join(""),h=new Ij(a.logger,"m"),l=globalThis.sessionStorage.getItem("nWC1Uzs7EI");
b=!!l;gga(h,b);var m=Date.now();if(l){var n=Number(l.substring(0,l.indexOf("l")));n?(a.logger.DG("a"),a.logger.rV(m-n)):a.logger.DG("c")}else a.logger.DG("n");f=m+"l"+f;if(b&&.5>Math.random()){var p=new Ij(a.logger,"d");globalThis.sessionStorage.removeItem("nWC1Uzs7EI");p.done();var q=new Ij(a.logger,"a");globalThis.sessionStorage.setItem("nWC1Uzs7EI",f);q.done()}else{var r=new Ij(a.logger,b?"w":"i");globalThis.sessionStorage.setItem("nWC1Uzs7EI",f);r.done()}}}catch(v){a.logger.qV()}};
vha=function(a){var b={};g.Ob(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.equals(e)||(b[d]=null)):b[d]=c});
xaa(a,function(c){return null===b[c.event]})};
nl=function(){this.Xd=0;this.j=!1;this.u=-1;this.hv=!1;this.Tj=0};
ol=function(){this.u=null;this.j=!1};
pl=function(a){ol.call(this);this.C=a};
ql=function(){ol.call(this)};
rl=function(){ol.call(this)};
sl=function(){this.j={};this.u=!0;this.B={}};
tl=function(a,b,c){a.j[b]||(a.j[b]=new pl(c));return a.j[b]};
wha=function(a){a.j.queryid||(a.j.queryid=new rl)};
ul=function(a,b,c){(a=a.j[b])&&a.B(c)};
vl=function(a,b){if(g.$c(a.B,b))return a.B[b];if(a=a.j[b])return a.getValue()};
wl=function(a){var b={},c=g.Uc(a.j,function(d){return d.j});
g.Tc(c,function(d,e){d=void 0!==a.B[e]?String(a.B[e]):d.j&&null!==d.u?String(d.u):"";0<d.length&&(b[e]=d)},a);
return b};
xha=function(a){a=wl(a);var b=[];g.Tc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
zha=function(a){tl(a,"od",yha);tl(a,"opac",xl).j=!0;tl(a,"sbeos",xl).j=!0;tl(a,"prf",xl).j=!0;tl(a,"mwt",xl).j=!0;tl(a,"iogeo",xl)};
Aha=function(){this.j=this.Ss=null};
yl=function(){};
Al=function(){if(!zl())throw Error();};
zl=function(){return!(!Bl||!Bl.performance)};
Cl=function(a){return a?a.passive&&Bha()?a:a.capture||!1:!1};
Ol=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Cl(d)),!0):!1};
Pl=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
Cha=function(){};
Dha=function(){return(ic||jc)&&kc?kc.mobile:!Ql()&&(nc("iPod")||nc("iPhone")||nc("Android")||nc("IEMobile"))};
Ql=function(){return(ic||jc)&&kc?!kc.mobile&&(nc("iPad")||nc("Android")||nc("Silk")):nc("iPad")||nc("Android")&&!nc("Mobile")||nc("Silk")};
Rl=function(a){try{return!!a&&null!=a.location.href&&Hc(a,"foo")}catch(b){return!1}};
Sl=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
Fha=function(){var a=[];Sl(Eha,function(b){a.push(b)});
return a};
Gha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
Jha=function(){var a=Hha("IFRAME"),b={};g.Ob(Iha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
Hha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
Kha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Rl(a)&&(b=a);return b};
Oha=function(a){a=a||Tl();for(var b=new Lha(g.Ea.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Mha.test(f.url)&&(c=f);if(f.url&&!f.MM){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Nha(b,e,c)};
Tl=function(){var a=g.Ea,b=[],c=null;do{var d=a;if(Rl(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Lha(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.Ea;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.MM=!0);return b};
Nha=function(a,b,c){this.j=a;this.u=b;this.B=c};
Lha=function(a,b){this.url=a;this.MM=!!b;this.depth=null};
Ul=function(){this.B="&";this.u={};this.C=0;this.j=[]};
Vl=function(a,b){var c={};c[a]=b;return[c]};
Pha=function(a,b,c,d,e){var f=[];Sl(a,function(h,l){(h=Wl(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Wl=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Wl(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Pha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Qha=function(a){var b=1,c;for(c in a.u)b=c.length>b?c.length:b;return 3997-b-a.B.length-1};
Xl=function(a,b){this.j=a;this.depth=b};
Sha=function(){function a(l,m){return null==l?m:l}
var b=Tl(),c=Math.max(b.length-1,0),d=Oha(b);b=d.j;var e=d.u,f=d.B,h=[];f&&h.push(new Xl([f.url,f.MM?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Xl([e.url,2],0));b.url&&b!=f&&h.push(new Xl([b.url,0],a(b.depth,c)));d=g.Yl(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=Gha(b.url))&&d.push([new Xl([e,1],a(b.depth,c))]);d.push([]);return g.Yl(d,function(l){return Rha(c,l)})};
Rha=function(a,b){g.Zl(b,function(e){return 0<=e.depth});
var c=$l(b,function(e,f){return Math.max(e,f.depth)},-1),d=Caa(c+2);
d[0]=a;g.Ob(b,function(e){return d[e.depth+1]=e.j});
return d};
Tha=function(){var a=void 0===a?Sha():a;return a.map(function(b){return Wl(b)})};
Uha=function(a){var b=!1;b=void 0===b?!1:b;Bl.google_image_requests||(Bl.google_image_requests=[]);var c=Hha("IMG",Bl.document);b&&(c.attributionSrc="");c.src=a;Bl.google_image_requests.push(c)};
am=function(a){var b="Ug";if(a.Ug&&a.hasOwnProperty(b))return a.Ug;var c=new a;a.Ug=c;a.hasOwnProperty(b);return c};
bm=function(){this.u=new Cha;this.j=zl()?new Al:new yl};
Vha=function(){cm();var a=Bl.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Bl.setInterval&&"function"===typeof Bl.clearInterval&&"function"===typeof Bl.setTimeout&&"function"===typeof Bl.clearTimeout)};
Wha=function(){cm();return Tha()};
Xha=function(){};
cm=function(){return am(Xha).getContext()};
dm=function(a){J.call(this,a)};
Yha=function(a){this.B=a;this.j=-1;this.u=this.C=0};
em=function(a,b){return function(){var c=g.ya.apply(0,arguments);if(-1<a.j)return b.apply(null,g.u(c));try{return a.j=a.B.j.now(),b.apply(null,g.u(c))}finally{a.C+=a.B.j.now()-a.j,a.j=-1,a.u+=1}}};
Zha=function(a,b){this.u=a;this.B=b;this.j=new Yha(a)};
$ha=function(){this.j={}};
bia=function(){var a=fm().flags,b=aia;a=a.j[b.key];if("proto"===b.valueType){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};
fia=function(){this.B=void 0;this.u=this.I=0;this.D=-1;this.Cc=new sl;tl(this.Cc,"mv",cia).j=!0;tl(this.Cc,"omid",xl);tl(this.Cc,"epoh",xl).j=!0;tl(this.Cc,"epph",xl).j=!0;tl(this.Cc,"umt",xl).j=!0;tl(this.Cc,"phel",xl).j=!0;tl(this.Cc,"phell",xl).j=!0;tl(this.Cc,"oseid",dia).j=!0;var a=this.Cc;a.j.sloi||(a.j.sloi=new ql);a.j.sloi.j=!0;tl(this.Cc,"mm",gm);tl(this.Cc,"ovms",eia).j=!0;tl(this.Cc,"xdi",xl).j=!0;tl(this.Cc,"amp",xl).j=!0;tl(this.Cc,"prf",xl).j=!0;tl(this.Cc,"gtx",xl).j=!0;tl(this.Cc,
"mvp_lv",xl).j=!0;tl(this.Cc,"ssmol",xl).j=!0;tl(this.Cc,"fmd",xl).j=!0;this.j=new Zha(cm(),this.Cc);this.C=!1;this.flags=new $ha};
fm=function(){return am(fia)};
gia=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Ul)var e=c;else e=new Ul,Sl(c,function(h,l){var m=e,n=m.C++;h=Vl(l,h);m.j.push(n);m.u[n]=h});
var f=e.Ze(a.u,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(cm(),Uha(f))}catch(h){}};
hia=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
iia=function(){var a=void 0===a?g.Ea:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.Ra()};
jia=function(){var a=void 0===a?g.Ea:a;return(a=a.performance)&&a.now?a.now():null};
kia=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random();this.taskId=this.slotId=void 0};
im=function(){var a=window;this.events=[];this.u=a||g.Ea;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=hm()||(null!=b?b:1>Math.random())};
lia=function(a){a&&jm&&hm()&&(jm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),jm.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
mia=function(){var a=km;this.j=lm;this.tT="jserror";this.sP=!0;this.sK=null;this.u=this.iN;this.Gc=void 0===a?null:a};
nia=function(a,b,c){var d=mm;return em(fm().j.j,function(){try{if(d.Gc&&d.Gc.j){var e=d.Gc.start(a.toString(),3);var f=b();d.Gc.end(e)}else f=b()}catch(l){var h=d.sP;try{lia(e),h=d.u(a,new nm(om(l)),void 0,c)}catch(m){d.iN(217,m)}if(!h)throw l;}return f})()};
pm=function(a,b,c,d){return em(fm().j.j,function(){var e=g.ya.apply(0,arguments);return nia(a,function(){return b.apply(c,e)},d)})};
om=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
nm=function(a){hia.call(this,Error(a),{message:a})};
oia=function(){Bl&&"undefined"!=typeof Bl.google_measure_js_timing&&(Bl.google_measure_js_timing||km.disable())};
pia=function(a){mm.sK=function(b){g.Ob(a,function(c){c(b)})}};
qia=function(a,b){return nia(a,b)};
qm=function(a,b){return pm(a,b)};
rm=function(a,b,c,d){mm.iN(a,b,c,d)};
sm=function(){return Date.now()-ria};
sia=function(){var a=fm().B,b=0<=tm?sm()-tm:-1,c=um?sm()-vm:-1,d=0<=wm?sm()-wm:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];rm(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
xm=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ym=function(a){return a.right-a.left};
zm=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};
Am=function(a,b,c){b instanceof g.Fe?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
Bm=function(a,b,c){var d=new xm(0,0,0,0);this.time=a;this.volume=null;this.B=b;this.j=d;this.u=c};
Cm=function(a,b,c,d,e,f,h,l){this.C=a;this.J=b;this.B=c;this.I=d;this.j=e;this.D=f;this.u=h;this.T=l};
uia=function(a){var b=a!==a.top,c=a.top===Kha(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),dba(tia,function(h){return"function"===typeof f[h]})||(e=1));
return{jn:f,compatibility:e,f9:d}};
via=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
wia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.He(b.innerWidth,b.innerHeight)).round():hca(b||window).round()}catch(d){return new g.He(-12245933,-12245933)}};
Dm=function(a,b,c){try{a&&(b=b.top);var d=wia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new xm(f,f,f,f);var h=jca(Ve(b.document).j),l=h.x,m=h.y;return new xm(m,l+f,m+e,l)}catch(n){return new xm(-12245933,-12245933,-12245933,-12245933)}};
g.Em=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Fm=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.Hm=function(a,b,c){if("string"===typeof b)(b=Gm(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Gm(c,d);f&&(c.style[f]=e)}};
Gm=function(a,b){var c=xia[b];if(!c){var d=bca(b);c=d;void 0===a.style[d]&&(d=(g.Pc?"Webkit":Im?"Moz":g.mf?"ms":null)+dca(d),void 0!==a.style[d]&&(c=d));xia[b]=c}return c};
g.Jm=function(a,b){var c=a.style[bca(b)];return"undefined"!==typeof c?c:a.style[Gm(a,b)]||""};
Km=function(a,b){var c=Ue(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Lm=function(a,b){return Km(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Nm=function(a,b,c){if(b instanceof g.Fe){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Mm(d,!1);a.style.top=g.Mm(b,!1)};
Om=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
yia=function(a){if(g.mf&&!g.Oc(8))return a.offsetParent;var b=Ue(a),c=Lm(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Lm(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Pm=function(a){var b=Ue(a),c=new g.Fe(0,0);var d=b?Ue(b):document;d=!g.mf||g.Oc(9)||"CSS1Compat"==Ve(d).j.compatMode?d.documentElement:d.body;if(a==d)return c;a=Om(a);b=jca(Ve(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Aia=function(a,b){var c=new g.Fe(0,0),d=nf(Ue(a));if(!Hc(d,"parent"))return c;do{var e=d==b?g.Pm(a):zia(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.Qm=function(a,b){a=Bia(a);b=Bia(b);return new g.Fe(a.x-b.x,a.y-b.y)};
zia=function(a){a=Om(a);return new g.Fe(a.left,a.top)};
Bia=function(a){if(1==a.nodeType)return zia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Fe(a.clientX,a.clientY)};
g.Rm=function(a,b,c){if(b instanceof g.He)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Mm(b,!0);a.style.height=g.Mm(c,!0)};
g.Mm=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Sm=function(a){var b=Cia;if("none"!=Lm(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
Cia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Pc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Om(a),new g.He(a.right-a.left,a.bottom-a.top)):new g.He(b,c)};
g.Tm=function(a,b){a.style.display=b?"":"none"};
Um=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
Dia=function(a){return new xm(a.top,a.right,a.bottom,a.left)};
Eia=function(a){var b=a.top||0,c=a.left||0;return new xm(b,c+(a.width||0),b+(a.height||0),c)};
Vm=function(a){return null!=a&&0<=a&&1>=a};
Fia=function(){var a=g.hc();return a?Wm("Android TV;AppleTV;Apple TV;GoogleTV;HbbTV;NetCast.TV;Opera TV;POV_TV;SMART-TV;SmartTV;TV Store;AmazonWebAppPlatform;MiBOX".split(";"),function(b){return ac(a,b)})||ac(a,"OMI/")&&!ac(a,"XiaoMi/")?!0:ac(a,"Presto")&&ac(a,"Linux")&&!ac(a,"X11")&&!ac(a,"Android")&&!ac(a,"Mobi"):!1};
Gia=function(){this.B=!Rl(Bl.top);this.isMobileDevice=Ql()||Dha();var a=Tl();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.Ui(a[a.length-1].url)||"":"";this.j=new xm(0,0,0,0);this.C=new g.He(0,0);this.D=new g.He(0,0);this.J=new xm(0,0,0,0);this.I=0;this.T=!1;this.u=!(!Bl||!uia(Bl).jn);this.update(Bl)};
Hia=function(a,b){b&&b.screen&&(a.C=new g.He(b.screen.width,b.screen.height))};
Iia=function(a,b){var c=a.j?new g.He(ym(a.j),a.j.getHeight()):new g.He(0,0);b=void 0===b?Bl:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.He(e,d)}catch(v){r=new g.He(-12245933,-12245933)}a.D=r};
Zm=function(){var a=Xm();if(0<a.I||a.T)return!0;a=cm().u.isVisible();var b=0===Pl(Ym);return a||b};
Xm=function(){return am(Gia)};
$m=function(a){this.B=a;this.u=0;this.j=null};
an=function(a,b,c){this.B=a;this.Qa=void 0===c?"na":c;this.D=[];this.isInitialized=!1;this.C=new Bm(-1,!0,this);this.j=this;this.T=b;this.Z=this.ea=!1;this.Ga="uk";this.Aa=!1;this.I=!0};
bn=function(a,b){g.rb(a.D,b)||(a.D.push(b),b.Hy(a.j),b.Hs(a.C),b.ip()&&(a.ea=!0))};
Jia=function(a){a=a.j;a.nR();a.mR();var b=Xm();b.J=Dm(!1,a.B,b.isMobileDevice);Iia(Xm(),a.B);a.C.j=a.dU()};
Kia=function(a){a.ea=a.D.length?Wm(a.D,function(b){return b.ip()}):!1};
Lia=function(a){var b=g.Bb(a.D);g.Ob(b,function(c){c.Hs(a.C)})};
rn=function(a){var b=g.Bb(a.D);g.Ob(b,function(c){c.Hy(a.j)});
a.j!=a||Lia(a)};
sn=function(a,b,c,d){this.element=a;this.j=new xm(0,0,0,0);this.C=new xm(0,0,0,0);this.u=b;this.Cc=c;this.oa=d;this.Z=!1;this.timestamp=-1;this.J=new Cm(b.C,this.element,this.j,new xm(0,0,0,0),0,0,sm(),0)};
tn=function(a){this.D=!1;this.j=a;this.C=function(){}};
Mia=function(a,b,c){this.B=void 0===c?0:c;this.u=a;this.j=null==b?"":b};
Nia=function(a){switch(Math.trunc(a.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}};
Oia=function(a,b){return a.B<b.B?!0:a.B>b.B?!1:a.u<b.u?!0:a.u>b.u?!1:typeof a.j<typeof b.j?!0:typeof a.j>typeof b.j?!1:a.j<b.j};
un=function(){this.B=0;this.j=[];this.u=!1};
Pia=function(a,b){(0,g.Ob)(b.j,function(c){a.add(c.u,c.j,Nia(c))})};
vn=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Sl(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
wn=function(a){var b=Qia;a.u&&(g.Lb(a.j,function(c,d){return Oia(d,c)?1:Oia(c,d)?-1:0}),a.u=!1);
return $l(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Qia=function(a){var b=a.u;a=a.j;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.rb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Ria=function(a){var b=void 0===b?!0:b;this.j=new un;void 0!==a&&Pia(this.j,a);b&&this.j.add("v",xn,-16)};
Sia=function(a){var b=[],c=[];g.Tc(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
Tia=function(){if(xn&&"unreleased"!==xn)return xn};
Uia=function(a){var b=void 0===b?4E3:b;a=a.toString();if(!/&v=[^&]+/.test(a)){var c=Tia();a=c?a+"&v="+encodeURIComponent(c):a}b=a=a.substring(0,b);cm();Uha(b)};
Via=function(){this.j=0};
Wia=function(a,b,c){(0,g.Ob)(a.B,function(d){var e=a.j;if(!d.j&&(d.B(b,c),d.C())){d.j=!0;var f=d.u(),h=new un;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.D);d=am(Via);h.add("i",d.j++);h.add("adk",e);vn(h,f);e=new Ria(h);Uia(e)}})};
yn=function(){this.u=this.B=this.C=this.j=0};
zn=function(a){this.u=a=void 0===a?Xia:a;this.j=g.Yl(this.u,function(){return new yn})};
An=function(a,b){return Yia(a,function(c){return c.j},void 0===b?!0:b)};
Cn=function(a,b){return Bn(a,b,function(c){return c.j})};
Zia=function(a,b){return Yia(a,function(c){return c.B},void 0===b?!0:b)};
Dn=function(a,b){return Bn(a,b,function(c){return c.B})};
En=function(a,b){return Bn(a,b,function(c){return c.u})};
$ia=function(a){g.Ob(a.j,function(b){b.u=0})};
Yia=function(a,b,c){a=g.Yl(a.j,function(d){return b(d)});
return c?a:aja(a)};
Bn=function(a,b,c){var d=g.ob(a.u,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
aja=function(a){return g.Yl(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
Fn=function(){this.u=new zn;this.Qa=new yn;this.oa=this.J=-1;this.fb=1E3;this.ib=new zn([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.ya=-1};
Gn=function(a,b){return Zia(a.u,void 0===b?!0:b)};
Hn=function(a,b,c,d){var e=void 0===e?!1:e;c=pm(d,c);Ol(a,b,c,{capture:e})};
Jn=function(a,b){b=In(b);return 0===b?0:In(a)/b};
In=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
bja=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.yf(a)||a){var d=Ue(a),e=d&&nf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
cja=function(a,b,c){if(!a||!b)return!1;b=Am(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Rl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!via())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Ue(c))&&b.defaultView&&b.defaultView.frameElement)&&bja(b,a);var d=a===c;a=!d&&a&&Cf(a,function(e){return e===c});
return!(b||d||a)};
dja=function(a,b,c,d){return Xm().B?!1:0>=ym(a)||0>=a.getHeight()?!0:c&&d?qia(208,function(){return cja(a,b,c)}):!1};
Kn=function(a,b,c){g.C.call(this);this.position=eja.clone();this.LG=this.XF();this.eN=-2;this.u9=Date.now();this.lY=-1;this.Wo=b;this.BG=null;this.wB=!1;this.XG=null;this.opacity=-1;this.requestSource=c;this.A9=!1;this.kN=function(){};
this.BY=function(){};
this.Cj=new Aha;this.Cj.Ss=a;this.Cj.j=a;this.Ms=!1;this.Ju={wN:null,vN:null};this.PX=!0;this.ZD=null;this.Oy=this.r4=!1;fm().I++;this.Ah=this.XL();this.hY=-1;this.nf=null;this.hasCompleted=this.o4=!1;this.Cc=new sl;zha(this.Cc);fja(this);1==this.requestSource?ul(this.Cc,"od",1):ul(this.Cc,"od",0)};
fja=function(a){a=a.Cj.Ss;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:gja&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+cca()):!!a.getAttribute("data-"+cca());b&&(Xm().u=!0)};
Ln=function(a,b){b!=a.Oy&&(a.Oy=b,a=Xm(),b?a.I++:0<a.I&&a.I--)};
hja=function(a,b){if(a.nf){if(b.getName()===a.nf.getName())return;a.nf.dispose();a.nf=null}b=b.create(a.Cj.j,a.Cc,a.ip());if(b=null!=b&&b.yJ()?b:null)a.nf=b};
ija=function(a,b,c){if(!a.BG||-1==a.Wo||-1===b.u||-1===a.BG.u)return 0;a=b.u-a.BG.u;return a>c?0:a};
jja=function(a,b,c){if(a.nf){a.nf.Hr();var d=a.nf.J,e=d.C,f=e.j;if(null!=d.I){var h=d.B;a.XG=new g.Fe(h.left-f.left,h.top-f.top)}f=a.hI()?Math.max(d.j,d.D):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.VT(d);a.BG=d;a.Pa(f,b,c,!1,h,e,d.T)}};
kja=function(a){if(a.wB&&a.ZD){var b=1==vl(a.Cc,"od"),c=Xm().j,d=a.ZD,e=a.nf?a.nf.getName():"ns",f=new g.He(ym(c),c.getHeight());c=a.hI();a={j9:e,XG:a.XG,W9:f,hI:c,Xd:a.Ah.Xd,P9:b};if(b=d.u){b.Hr();e=b.J;f=e.C.j;var h=null,l=null;null!=e.I&&f&&(h=e.B,h=new g.Fe(h.left-f.left,h.top-f.top),l=new g.He(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.D):e.j;c={j9:b.getName(),XG:h,W9:l,hI:c,P9:!1,Xd:e}}else c=null;c&&Wia(d,a,c)}};
lja=function(a,b,c){b&&(a.kN=b);c&&(a.BY=c)};
g.Mn=function(){};
g.Nn=function(a){return{value:a,done:!1}};
mja=function(){this.C=this.j=this.B=this.u=this.D=0};
nja=function(a){var b={};var c=g.Ra()-a.D;b=(b.ptlt=c,b);(c=a.u)&&(b.pnk=c);(c=a.B)&&(b.pnc=c);(c=a.C)&&(b.pnmm=c);(a=a.j)&&(b.pns=a);return b};
oja=function(){nl.call(this);this.fullscreen=!1;this.volume=void 0;this.B=!1;this.mediaTime=-1};
On=function(a){return Vm(a.volume)&&0<a.volume};
Pn=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return pja(f,b,c)}};
Qn=function(a,b){return function(c){return b(c)?c[a]:void 0}};
qja=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
pja=function(a,b,c){return void 0===c||c?g.Rn(a,function(d,e){return g.rb(b,e)}):g.Yl(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
Sn=function(){this.u=this.j=""};
rja=function(){};
Tn=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.od(c,a);return wn(vn(new un,c))};
sja=function(){var a={};this.u=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a);this.j={};for(var b in this.u)0<this.u[b][1]&&(this.j[b]=0);this.B=0};
Un=function(a,b){var c=a.u[b],d=c[1];a.B+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
tja=function(a){var b=g.Zc(a.u),c=0,d;for(d in a.j)g.rb(b,d)&&1==a.j[d]&&(c+=a.u[d][1],a.j[d]=2);return c};
uja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.u[c][1]}return b};
Vn=function(){this.j=this.u=0};
Wn=function(){Fn.call(this);this.B=new yn;this.La=this.ea=this.Aa=0;this.T=-1;this.kb=new yn;this.D=new yn;this.j=new zn;this.I=this.C=-1;this.Z=new yn;this.fb=2E3;this.Ja=new Vn;this.Ya=new Vn;this.Xa=new Vn};
Xn=function(a,b,c){var d=a.La;um||c||-1==a.T||(d+=b-a.T);return d};
vja=function(){this.B=!1};
Yn=function(a,b){this.B=!1;this.C=a;this.ea=b;this.D=0};
Zn=function(a,b){Yn.call(this,a,b);this.J=[]};
wja=function(){};
$n=function(){};
ao=function(a,b,c,d){sn.call(this,a,b,c,d)};
bo=function(a,b,c){sn.call(this,null,a,b,c);this.I=a.isActive();this.D=0};
co=function(a){return[a.top,a.left,a.bottom,a.right]};
eo=function(a,b,c,d,e,f){f=void 0===f?new $n:f;Kn.call(this,b,c,d);this.uO=e;this.kL=0;this.Eh={};this.Rg=new sja;this.TY={};this.Zh="";this.Ya=null;this.Pb=!1;this.j=[];this.Bq=f.u();this.I=f.B();this.C=null;this.B=-1;this.La=this.ea=void 0;this.oa=this.Z=0;this.Ga=-1;this.ib=this.fb=!1;this.Aa=this.T=this.u=this.nA=this.tb=0;new zn;this.Ja=this.Qa=0;this.Xa=-1;this.Gi=0;this.J=g.Md;this.ya=[this.XF()];this.Xb=2;this.Bw={};this.Bw.pause="p";this.Bw.resume="r";this.Bw.skip="s";this.Bw.mute="m";this.Bw.unmute=
"um";this.Bw.exitfullscreen="ef";this.D=null;this.kb=!1};
fo=function(a){a.hasCompleted=!0;0!=a.Gi&&(a.Gi=3)};
go=function(a){return void 0===a?a:Number(a)?Um(a,3):0};
ho=function(a,b){return a.ya[null!=b&&b<a.ya.length?b:a.ya.length-1]};
xja=function(a){var b=!!vl(fm().Cc,"umt");return a.ea||!b&&!a.La?0:1};
yja=function(a,b){a.Zm()?b=0:-1==a.Wo?b=0:(b-=a.Wo,b=b>Math.max(1E4,a.B/3)?0:b);var c=a.J(a)||{};c=void 0!==c.currentTime?c.currentTime:a.Z;var d=c-a.Z,e=0;0<=d?(a.oa+=b,a.Ja+=Math.max(b-d,0),e=Math.min(d,a.oa)):a.Qa+=Math.abs(d);0!=d&&(a.oa=0);-1==a.Xa&&0<d&&(a.Xa=0<=wm?sm()-wm:-1);a.Z=c;return e};
zja=function(a,b){Wm(a.I,function(c){return c.C==b.C})||a.I.push(b)};
Aja=function(a){var b=Cn(a.cj().j,1);return io(a,b)};
io=function(a,b,c){return 15E3<=b?!0:a.fb?(void 0===c?0:c)?!0:0<a.B?b>=a.B/2:0<a.Ga?b>=a.Ga:!1:!1};
Bja=function(a){var b=Um(a.Ah.Xd,2),c=a.Rg.B,d=a.Ah,e=ho(a),f=go(e.C),h=go(e.I),l=go(d.volume),m=Um(e.J,2),n=Um(e.oa,2),p=Um(d.Xd,2),q=Um(e.ya,2),r=Um(e.Ga,2);d=Um(d.Tj,2);a=a.Bs().clone();a.round();e=Gn(e,!1);return{V9:b,sC:c,PG:f,IG:h,cB:l,QG:m,JG:n,Xd:p,TG:q,KG:r,Tj:d,position:a,VG:e}};
Dja=function(a,b){Cja(a.j,b,function(){return{V9:0,sC:void 0,PG:-1,IG:-1,cB:-1,QG:-1,JG:-1,Xd:-1,TG:-1,KG:-1,Tj:-1,position:void 0,VG:[]}});
a.j[b]=Bja(a)};
Cja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
ko=function(a,b,c){var d=a.TY[b];if(null!=d)return d;d=Eja(a,b);var e=gd(jo,function(f){return f==b});
a=Fja(a,d,d,c,Gja[jo[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
lo=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
Fja=function(a,b,c,d,e){if(a.Ms)return{"if":0,vs:0};var f=a.Bs().clone();f.round();var h=Xm(),l=fm(),m=a.cj(),n=a.nf?a.nf.getName():"ns",p={};p["if"]=h.B?1:void 0;p.sdk=a.C?a.C:void 0;p.t=a.u9;p.p=[f.top,f.left,f.bottom,f.right];p.tos=An(m.u,!1);p.mtos=Gn(m);p.mcvt=m.Qa.B;p.ps=void 0;f=Xn(m,sm(),a.Zm());p.vht=f;p.mut=m.kb.B;p.a=go(a.Ah.volume);p.mv=go(m.I);p.fs=a.Oy?1:0;p.ft=m.Z.j;p.at=m.D.j;p.as=0<m.C?1:0;p.atos=An(m.j);p.ssb=An(m.ib,!1);p.amtos=Zia(m.j,!1);p.uac=a.tb;p.vpt=m.B.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=io(a,m.B.j,!0)?1:0;p.efpf=a.Xb;if("gsv"==n||"nis"==n)n=a.nf,0<n.D&&(p.nnut=n.D);p.tcm=xja(a);p.nmt=a.Qa;p.bt=a.Ja;p.pst=a.Xa;p.vpaid=a.ea;p.dur=a.B;p.vmtime=a.Z;p.is=a.Rg.B;1<=a.j.length&&(p.i0=a.j[0].sC,p.a0=[a.j[0].cB],p.c0=[a.j[0].Xd],p.ss0=[a.j[0].Tj],n=a.j[0].position,p.p0=n?co(n):void 0);2<=a.j.length&&(p.i1=a.j[1].sC,p.a1=lo(a.j[1].PG,a.j[1].cB,a.j[1].IG),p.c1=lo(a.j[1].QG,a.j[1].Xd,a.j[1].JG),p.ss1=lo(a.j[1].TG,a.j[1].Tj,a.j[1].KG),n=a.j[1].position,p.p1=n?
co(n):void 0,p.mtos1=a.j[1].VG);3<=a.j.length&&(p.i2=a.j[2].sC,p.a2=lo(a.j[2].PG,a.j[2].cB,a.j[2].IG),p.c2=lo(a.j[2].QG,a.j[2].Xd,a.j[2].JG),p.ss2=lo(a.j[2].TG,a.j[2].Tj,a.j[2].KG),n=a.j[2].position,p.p2=n?co(n):void 0,p.mtos2=a.j[2].VG);4<=a.j.length&&(p.i3=a.j[3].sC,p.a3=lo(a.j[3].PG,a.j[3].cB,a.j[3].IG),p.c3=lo(a.j[3].QG,a.j[3].Xd,a.j[3].JG),p.ss3=lo(a.j[3].TG,a.j[3].Tj,a.j[3].KG),n=a.j[3].position,p.p3=n?co(n):void 0,p.mtos3=a.j[3].VG);p.cs=uja(a.Rg);b&&(p.ic=tja(a.Rg),p.dvpt=m.B.u,p.dvs=En(m.u,
.5),p.dfvs=En(m.u,1),p.davs=En(m.j,.5),p.dafvs=En(m.j,1),c&&(m.B.u=0,$ia(m.u),$ia(m.j)),a.wq()&&(p.dtos=m.Aa,p.dav=m.ea,p.dtoss=a.kL+1,c&&(m.Aa=0,m.ea=0,a.kL++)),p.dat=m.D.u,p.dft=m.Z.u,c&&(m.D.u=0,m.Z.u=0));p.ps=[h.D.width,h.D.height];p.bs=[ym(h.j),h.j.getHeight()];p.scs=[h.C.width,h.C.height];p.dom=h.domain;a.nA&&(p.vds=a.nA);if(0<a.I.length||a.Bq)b=g.Bb(a.I),a.Bq&&b.push(a.Bq),p.pings=g.Yl(b,function(q){return q.toString()});
b=g.Yl(g.Rn(a.I,function(q){return q.I()}),function(q){return q.getId()});
yaa(b);p.ces=b;a.u&&(p.vmer=a.u);a.T&&(p.vmmk=a.T);a.Aa&&(p.vmiec=a.Aa);p.avms=a.nf?a.nf.getName():"ns";a.nf&&g.od(p,a.nf.ws());d?(p.c=Um(a.Ah.Xd,2),p.ss=Um(a.Ah.Tj,2)):p.tth=sm()-Hja;p.mc=Um(m.oa,2);p.nc=Um(m.J,2);p.mv=go(m.I);p.nv=go(m.C);p.lte=Um(a.eN,2);d=ho(a,e);Gn(m);p.qmtos=Gn(d);p.qnc=Um(d.J,2);p.qmv=go(d.I);p.qnv=go(d.C);p.qas=0<d.C?1:0;p.qi=a.Zh;p.avms||(p.avms="geo");p.psm=m.Ja.j;p.psv=m.Ja.getValue();p.psfv=m.Ya.getValue();p.psa=m.Xa.getValue();l=xha(l.Cc);l.length&&(p.veid=l);a.D&&g.od(p,
nja(a.D));p.avas=a.OF();p.vs=a.fU();return p};
Eja=function(a,b){if(g.rb(Ija,b))return!0;var c=a.Eh[b];return void 0!==c?(a.Eh[b]=!0,!c):!1};
Kja=function(){this.j={};var a=nf();mo(this,a,document);var b=Jja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)mo(this,c,c.document);mo(this,a.top,a.top.document)}}catch(d){}};
Jja=function(){var a=document.documentElement;try{if(!Rl(nf().top))return"2";var b=[],c=nf(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
mo=function(a,b,c){Hn(c,"mousedown",function(){return Lja(a)},301);
Hn(b,"scroll",function(){return Mja(a)},302);
Hn(c,"touchmove",function(){return Nja(a)},303);
Hn(c,"mousemove",function(){return Oja(a)},304);
Hn(c,"keydown",function(){return Pja(a)},305)};
Lja=function(a){g.Tc(a.j,function(b){1E5<b.B||++b.B})};
Mja=function(a){g.Tc(a.j,function(b){1E5<b.j||++b.j})};
Nja=function(a){g.Tc(a.j,function(b){1E5<b.j||++b.j})};
Pja=function(a){g.Tc(a.j,function(b){1E5<b.u||++b.u})};
Oja=function(a){g.Tc(a.j,function(b){1E5<b.C||++b.C})};
Qja=function(){this.j=[];this.u=[]};
no=function(a,b){return g.nb(a.j,function(c){return c.Zh==b})};
Rja=function(a,b){return b?g.nb(a.j,function(c){return c.Cj.Ss==b}):null};
Sja=function(a,b){return g.nb(a.u,function(c){return 2==c.Io()&&c.Zh==b})};
po=function(){var a=oo;return 0==a.j.length?a.u:0==a.u.length?a.j:g.zb(a.u,a.j)};
Tja=function(a,b){a=1==b.Io()?a.j:a.u;var c=kb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.nf&&b.nf.MA(),b.dispose(),!0):!1};
Uja=function(a){var b=oo;if(Tja(b,a)){switch(a.Io()){case 0:var c=function(){return null};
case 2:c=function(){return Sja(b,a.Zh)};
break;case 1:c=function(){return no(b,a.Zh)}}for(var d=c();d;d=c())Tja(b,d)}};
Vja=function(a,b){var c=oo;a=g.Rn(a,(void 0===b?0:b)?function(d){return!no(c,d.Zh)}:function(d){return!Rja(c,d.Cj.Ss)});
c.j.push.apply(c.j,g.u(a))};
Wja=function(a){var b=[];g.Ob(a,function(c){Wm(oo.j,function(d){return d.Cj.Ss===c.Cj.Ss&&d.Zh===c.Zh})||(oo.j.push(c),b.push(c))})};
qo=function(){this.j=this.u=null};
Xja=function(a,b){function c(d,e){b(d,e)}
if(null==a.u)return!1;a.j=g.nb(a.u,function(d){return null!=d&&d.oR()});
a.j&&(a.j.init(c)?Jia(a.j.j):b(a.j.j.zy(),a.j));return null!=a.j};
ro=function(a){a=Yja(a);tn.call(this,a.length?a[a.length-1]:new an(Bl,0));this.B=a;this.u=null};
Yja=function(a){if(!a.length)return[];a=(0,g.Rn)(a,function(c){return null!=c&&c.LA()});
for(var b=1;b<a.length;b++)bn(a[b-1],a[b]);return a};
so=function(a,b,c,d){sn.call(this,a,b,c,d);this.ea=this.T=this.D=this.I=this.B=null};
to=function(a){return a.B&&a.B.takeRecords?a.B.takeRecords():[]};
$ja=function(a){if(!a.element)return!1;var b=a.element,c=a.u.j.B,d=fm().j.j;a.B=new c.IntersectionObserver(em(d,function(e){return uo(a,e)}),Zja);
d=em(d,function(){a.B.unobserve(b);a.B.observe(b);uo(a,to(a))});
c.ResizeObserver?(a.I=new c.ResizeObserver(d),a.I.observe(b)):c.MutationObserver&&(a.D=new g.Ea.MutationObserver(d),a.D.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.B.observe(b);uo(a,to(a));return!0};
uo=function(a,b){try{if(b.length){a.T||(a.T=sm());var c=aka(b),d=Aia(a.element,a.u.j.B),e=d.x,f=d.y;a.j=new xm(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=Dia(c.intersectionRect);a.C=Am(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.MA(),rm(299,l)}};
aka=function(a){return $l(a,function(b,c){return b.time>c.time?b:c},a[0])};
vo=function(a){a=void 0===a?Bl:a;tn.call(this,new an(a,2))};
wo=function(){var a=bka();an.call(this,Bl.top,a,"geo")};
bka=function(){fm();var a=Xm();return a.B||a.u?0:2};
cka=function(){};
xo=function(){this.done=!1;this.j={E1:0,tS:0,n8a:0,mT:0,AM:-1,w2:0,v2:0,z2:0,i9:0};this.D=null;this.I=!1;this.B=null;this.J=0;this.u=new $m(this)};
zo=function(){var a=yo;a.I||(a.I=!0,dka(a,function(){return a.C.apply(a,g.u(g.ya.apply(0,arguments)))}),a.C())};
eka=function(){am(cka);var a=am(qo);null!=a.j&&a.j.j?Jia(a.j.j):Xm().update(Bl)};
Ao=function(a,b,c){if(!a.done&&(a.u.cancel(),0!=b.length)){a.B=null;try{eka();var d=sm();fm().D=d;if(null!=am(qo).j)for(var e=0;e<b.length;e++)jja(b[e],d,c);for(d=0;d<b.length;d++)kja(b[d]);++a.j.mT}finally{c?g.Ob(b,function(f){f.Ah.Xd=0}):a.u.schedule()}}};
dka=function(a,b){if(!a.D){b=pm(142,b);cm();var c;Ym.visibilityState?c="visibilitychange":Ym.mozVisibilityState?c="mozvisibilitychange":Ym.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Ol(Ym,c,b,{capture:!1})&&(a.D=b)}};
fka=function(){var a=am(qo);if(null!=a.j){var b=po(),c=a.j;g.Ob(b,function(d){return hja(d,c)})}};
gka=function(a,b){a=a.J;um&&(a+=b-vm);return a};
hka=function(a){a=void 0===a?function(){return{}}:a;
mm.tT="av-js";lm.j=.01;pia([function(b){var c=fm(),d={};d=(d.bin=c.u,d.type="error",d);c=wl(c.Cc);if(!yo.B){var e=yo,f=Bl.document,h=0<=tm?sm()-tm:-1,l=sm();-1==e.j.AM&&(h=l);var m=Xm(),n=fm(),p=wl(n.Cc),q=po();try{if(0<q.length){var r=m.j;r&&(p.bs=[ym(r),r.getHeight()]);var v=m.D;v&&(p.ps=[v.width,v.height]);Bl.screen&&(p.scs=[Bl.screen.width,Bl.screen.height])}else p.url=encodeURIComponent(Bl.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=tm;p.bin=n.u;void 0!==Bl.google_osd_load_pub_page_exp&&(p.olpp=Bl.google_osd_load_pub_page_exp);p.deb=[1,e.j.E1,e.j.tS,e.j.mT,e.j.AM,0,e.u.u,e.j.w2,e.j.v2,e.j.z2,e.j.i9,-1].join(";");p.tvt=gka(e,l);m.u&&(p.inapp=1);if(null!==Bl&&Bl!=Bl.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Bl.location.href.substring(0,512)));var x=m.J;p.is=[ym(x),x.getHeight()]}}catch(z){p.error=1}yo.B=p}r=g.md(yo.B);v=fm().j;1==vl(v.B,"prf")?(x=new dm,e=v.j,f=0,-1<e.j&&(f=e.B.j.now()-e.j),x=Hh(x,1,oh(e.C+
f),0),e=v.j,x=Hh(x,5,-1<e.j?e.u+1:e.u,0),x=Hh(x,2,v.u.j.B(),0),x=Hh(x,3,v.u.j.u(),0),v=Hh(x,4,v.u.j.j(),0),x={},v=(x.pf=g.gg(v.j()),x)):v={};g.od(r,v);g.od(b,d,c,r,a());if(d=Tia())c={},g.od(b,(c.v=encodeURIComponent(d),c))}])};
jka=function(){var a=ika||Bl;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("&")};
Bo=function(){var a="youtube.player.web_20230423_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20230423_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20230423_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20230423_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20230423_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
kka=function(){return"av.default_js".includes("ima_html5_sdk")?{Bo:"ima",Do:null}:"av.default_js".includes("ima_native_sdk")?{Bo:"nima",Do:null}:"av.default_js".includes("admob-native-video-javascript")?{Bo:"an",Do:null}:"youtube.player.web_20230423_00_RC00".includes("cast_js_sdk")?{Bo:"cast",Do:Bo()}:"youtube.player.web_20230423_00_RC00".includes("youtube.player.web")?{Bo:"yw",Do:Bo()}:"youtube.player.web_20230423_00_RC00".includes("outstream_web_client")?{Bo:"out",Do:Bo()}:"youtube.player.web_20230423_00_RC00".includes("drx_rewarded_web")?
{Bo:"r",Do:Bo()}:"youtube.player.web_20230423_00_RC00".includes("gam_native_web_video")?{Bo:"n",Do:Bo()}:"youtube.player.web_20230423_00_RC00".includes("admob_interstitial_video")?{Bo:"int",Do:Bo()}:{Bo:"j",Do:null}};
So=function(a,b){var c={sv:"951"};null!==Co&&(c.v=Co);c.cb=lka;c.nas=oo.j.length;c.msg=a;void 0!==b&&(a=mka(b))&&(c.e=Ro[a]);return c};
To=function(a){return Rb(a,"custom_metric_viewable")};
mka=function(a){var b=To(a)?"custom_metric_viewable":a.toLowerCase();return gd(jo,function(c){return c==b})};
nka=function(){this.j=void 0;this.u=!1;this.B=0;this.C=-1;this.D="tos"};
qka=function(a){try{var b=a.split(",");return b.length>g.Zc(oka).length?null:$l(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===pka[d[0]]||!pka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
rka=function(a,b){if(void 0==a.j)return 0;switch(a.D){case "mtos":return a.u?Dn(b.j,a.j):Dn(b.u,a.j);case "tos":return a.u?Cn(b.j,a.j):Cn(b.u,a.j)}return 0};
Uo=function(a,b,c,d){Yn.call(this,b,d);this.J=a;this.T=c};
Vo=function(){};
Wo=function(a){Yn.call(this,"fully_viewable_audible_half_duration_impression",a)};
Xo=function(a){this.j=a};
Yo=function(a,b){Yn.call(this,a,b)};
Zo=function(a){Zn.call(this,"measurable_impression",a)};
$o=function(){Xo.apply(this,arguments)};
ap=function(a,b,c){bo.call(this,a,b,c)};
bp=function(a){a=void 0===a?Bl:a;tn.call(this,new an(a,2))};
cp=function(a,b,c){bo.call(this,a,b,c)};
dp=function(a){a=void 0===a?Bl:a;tn.call(this,new an(a,2))};
ep=function(){an.call(this,Bl,2,"mraid");this.Ja=0;this.oa=this.ya=!1;this.J=null;this.u=uia(this.B);this.C.j=new xm(0,0,0,0);this.La=!1};
fp=function(a,b,c){a.zt("addEventListener",b,c)};
vka=function(a){fm().C=!!a.zt("isViewable");fp(a,"viewableChange",ska);"loading"===a.zt("getState")?fp(a,"ready",tka):uka(a)};
uka=function(a){"string"===typeof a.u.jn.AFMA_LIDAR?(a.ya=!0,wka(a)):(a.u.compatibility=3,a.J="nc",a.fail("w"))};
wka=function(a){a.oa=!1;var b=1==vl(fm().Cc,"rmmt"),c=!!a.zt("isViewable");(b?!c:1)&&cm().setTimeout(qm(524,function(){a.oa||(xka(a),rm(540,Error()),a.J="mt",a.fail("w"))}),500);
yka(a);fp(a,a.u.jn.AFMA_LIDAR,zka)};
yka=function(a){var b=1==vl(fm().Cc,"sneio"),c=void 0!==a.u.jn.AFMA_LIDAR_EXP_1,d=void 0!==a.u.jn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.u.jn.AFMA_LIDAR_EXP_2=!0);c&&(a.u.jn.AFMA_LIDAR_EXP_1=!b)};
xka=function(a){a.zt("removeEventListener",a.u.jn.AFMA_LIDAR,zka);a.ya=!1};
Aka=function(a,b){if("loading"===a.zt("getState"))return new g.He(-1,-1);b=a.zt(b);if(!b)return new g.He(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.He(-1,-1):new g.He(a,b)};
tka=function(){try{var a=am(ep);a.zt("removeEventListener","ready",tka);uka(a)}catch(b){rm(541,b)}};
zka=function(a,b){try{var c=am(ep);c.oa=!0;var d=a?new xm(a.y,a.x+a.width,a.y+a.height,a.x):new xm(0,0,0,0);var e=sm(),f=Zm();var h=new Bm(e,f,c);h.j=d;h.volume=b;c.Hs(h)}catch(l){rm(542,l)}};
ska=function(a){var b=fm(),c=am(ep);a&&!b.C&&(b.C=!0,c.La=!0,c.J&&c.fail("w",!0))};
gp=function(){this.isInitialized=!1;this.j=this.u=null;var a={};this.J=(a.start=this.Y3,a.firstquartile=this.T3,a.midpoint=this.V3,a.thirdquartile=this.Z3,a.complete=this.Q3,a.error=this.R3,a.pause=this.tO,a.resume=this.tX,a.skip=this.X3,a.viewable_impression=this.Jo,a.mute=this.hA,a.unmute=this.hA,a.fullscreen=this.U3,a.exitfullscreen=this.S3,a.fully_viewable_audible_half_duration_impression=this.Jo,a.measurable_impression=this.Jo,a.abandon=this.tO,a.engagedview=this.Jo,a.impression=this.Jo,a.creativeview=
this.Jo,a.progress=this.hA,a.custom_metric_viewable=this.Jo,a.bufferstart=this.tO,a.bufferfinish=this.tX,a.audio_measurable=this.Jo,a.audio_audible=this.Jo,a);a={};this.T=(a.overlay_resize=this.W3,a.abandon=this.pM,a.close=this.pM,a.collapse=this.pM,a.overlay_unmeasurable_impression=function(b){return ko(b,"overlay_unmeasurable_impression",Zm())},a.overlay_viewable_immediate_impression=function(b){return ko(b,"overlay_viewable_immediate_impression",Zm())},a.overlay_unviewable_impression=function(b){return ko(b,
"overlay_unviewable_impression",Zm())},a.overlay_viewable_end_of_session_impression=function(b){return ko(b,"overlay_viewable_end_of_session_impression",Zm())},a);
fm().u=3;Bka(this);this.B=!1};
hp=function(a,b,c,d){b=a.ED(null,d,!0,b);b.C=c;Vja([b],a.B);return b};
Cka=function(a,b,c){vha(b);var d=a.j;g.Ob(b,function(e){var f=g.Yl(e.criteria,function(h){var l=qka(h);if(null==l)h=null;else if(h=new nka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.u=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Haa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Wm(f,function(h){return null==h})||zja(c,new Uo(e.id,e.event,f,d))})};
Dka=function(){var a=[],b=fm();a.push(am(wo));vl(b.Cc,"mvp_lv")&&a.push(am(ep));b=[new bp,new dp];b.push(new ro(a));b.push(new vo(Bl));return b};
Eka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=sm(),c=fm(),d=Xm();tm=b;c.B=79463069;"o"!==a.u&&(ika=Kha(Bl));if(Vha()){yo.j.tS=0;yo.j.AM=sm()-b;var e=Dka(),f=am(qo);f.u=e;Xja(f,function(){ip()})?yo.done||(fka(),bn(f.j.j,a),zo()):d.B?ip():zo()}else jp=!0}catch(h){throw oo.reset(),h;
}}};
lp=function(a){yo.u.cancel();kp=a;yo.done=!0};
mp=function(a){if(a.u)return a.u;var b=am(qo).j;if(b)switch(b.getName()){case "nis":a.u="n";break;case "gsv":a.u="m"}a.u||(a.u="h");return a.u};
np=function(a,b,c){if(null==a.j)return b.nA|=4,!1;a=Fka(a.j,c,b);b.nA|=a;return 0==a};
ip=function(){var a=[new vo(Bl)],b=am(qo);b.u=a;Xja(b,function(){lp("i")})?yo.done||(fka(),zo()):lp("i")};
Gka=function(a,b){if(!a.Pb){var c=ko(a,"start",Zm());c=a.uO.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="951";null!==Co&&(d.v=Co);Vi(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=jka();Vi(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//web.archive.org/web/20230426095903/https://pagead2.googlesyndication.com/pagead/gen_204?"+wn(vn(new un,d));Uia(b);a.Pb=!0}};
op=function(a,b,c){Ao(yo,[a],!Zm());Dja(a,c);4!=c&&Cja(a.ya,c,a.XF);return ko(a,b,Zm())};
Bka=function(a){hka(function(){var b=Hka();null!=a.u&&(b.sdk=a.u);var c=am(qo);null!=c.j&&(b.avms=c.j.getName());return b})};
Ika=function(a,b,c,d){if(a.B)var e=no(oo,b);else e=Rja(oo,c),null!==e&&e.Zh!==b&&(a.rB(e),e=null);e||(b=a.ED(c,sm(),!1,b),0==oo.u.length&&(fm().B=79463069),Wja([b]),e=b,e.C=mp(a),d&&(e.Ya=d));return e};
Jka=function(a){g.Ob(oo.j,function(b){3==b.Gi&&a.rB(b)})};
Kka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
Hka=function(){var a=Xm(),b={},c={},d={};return Object.assign({},(b.sv="951",b),null!==Co&&(c.v=Co,c),(d["if"]=a.B?"1":"0",d.nas=String(oo.j.length),d))};
pp=function(a){Yn.call(this,"audio_audible",a)};
qp=function(a){Zn.call(this,"audio_measurable",a)};
rp=function(){Xo.apply(this,arguments)};
sp=function(){};
Lka=function(a){this.j=a};
Fka=function(a,b,c){a=a.u();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==Co&&(d.v=Co,d),(e.sv="951",e.cb=lka,e.e=Mka(b),e));e=ko(c,b,Zm());g.od(d,e);c.TY[b]=e;d=2==c.Io()?Sia(d).join("&"):c.uO.j(d).j;try{return a(c.Zh,d,b),0}catch(f){return 2}}else return 1};
Mka=function(a){var b=To(a)?"custom_metric_viewable":a;a=gd(jo,function(c){return c==b});
return Ro[a]};
tp=function(){gp.call(this);this.I=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Nka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&Cka(a,c,b)};
Oka=function(a,b,c){var d=no(oo,b);d||(d=c.opt_nativeTime||-1,d=hp(a,b,mp(a),d),c.opt_osdId&&(d.Ya=c.opt_osdId));return d};
Pka=function(a,b,c){var d=no(oo,b);d||(d=hp(a,b,"n",c.opt_nativeTime||-1));return d};
Qka=function(a,b){var c=no(oo,b);c||(c=hp(a,b,"h",-1));return c};
Rka=function(a){fm();switch(mp(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};
Uka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.od(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.eG(b,c);c=f?f.uO:a.eL();if(e.opt_bounds)return c.j(So("ol",d));if(void 0!==d)if(void 0!==mka(d))if(jp)b=So("ue",d);else if(Eka(a),"i"==kp)b=So("i",d),b["if"]=0;else if(b=a.eG(b,e))if(a.B&&3==b.Gi)b="stopped";else{b:{"i"==kp&&(b.Ms=!0);f=e.opt_fullscreen;void 0!==f&&Ln(b,!!f);var h;if(f=!Xm().u)(f=ac(g.hc(),"CrKey")||ac(g.hc(),"PlayStation")||ac(g.hc(),"Roku")||Fia()||ac(g.hc(),"Xbox"))||
(f=g.hc(),f=ac(f,"AppleTV")||ac(f,"Apple TV")||ac(f,"CFNetwork")||ac(f,"tvOS")),f||(f=g.hc(),f=ac(f,"sdk_google_atv_x86")||ac(f,"Android TV")),f=!f;f&&(cm(),f=0===Pl(Ym));if(h=f){switch(b.Io()){case 1:Gka(b,"pv");break;case 2:a.LO(b)}lp("pv")}f=d.toLowerCase();if(h=!h)h=vl(fm().Cc,"ssmol")&&"loaded"===f?!1:g.rb(Ska,f);if(h&&0==b.Gi){"i"!=kp&&(yo.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;wm=h="number"===typeof h?h:sm();b.wB=!0;var l=Zm();b.Gi=1;b.Eh={};b.Eh.start=!1;b.Eh.firstquartile=!1;b.Eh.midpoint=
!1;b.Eh.thirdquartile=!1;b.Eh.complete=!1;b.Eh.resume=!1;b.Eh.pause=!1;b.Eh.skip=!1;b.Eh.mute=!1;b.Eh.unmute=!1;b.Eh.viewable_impression=!1;b.Eh.measurable_impression=!1;b.Eh.fully_viewable_audible_half_duration_impression=!1;b.Eh.fullscreen=!1;b.Eh.exitfullscreen=!1;b.kL=0;l||(b.cj().T=h);Ao(yo,[b],!l)}(h=b.Bw[f])&&Un(b.Rg,h);vl(fm().Cc,"fmd")||g.rb(Tka,f)&&b.Bq&&b.Bq.u(b,null);switch(b.Io()){case 1:var m=To(f)?a.J.custom_metric_viewable:a.J[f];break;case 2:m=a.T[f]}if(m&&(d=m.call(a,b,e,d),vl(fm().Cc,
"fmd")&&g.rb(Tka,f)&&b.Bq&&b.Bq.u(b,null),void 0!==d)){e=So(void 0,f);g.od(e,d);d=e;break b}d=void 0}3==b.Gi&&(a.B?b.nf&&b.nf.MA():a.rB(b));b=d}else b=So("nf",d);else b=void 0;else jp?b=So("ue"):f?(b=So(),g.od(b,Fja(f,!0,!1,!1))):b=So("nf");return"string"===typeof b?a.B&&"stopped"===b?up:c.j():c.j(b)};
vp=function(a,b){b&&(a.C=b)};
Vka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.u,b};
wp=function(a,b,c){c=void 0===c?{}:c;a=Uka(am(tp),b,c,a);return Vka(a)};
Wka=function(a,b){b=void 0===b?!1:b;var c=am(tp).eG(a,{});c?fo(c):b&&(a=am(tp).ED(null,sm(),!1,a),a.Gi=3,Wja([a]))};
Xka=function(a){a=a.url;var b=/[?&]dsh=1(&|$)/.test(a);this.B=!b&&/[?&]ae=1(&|$)/.test(a);this.C=!b&&/[?&]ae=2(&|$)/.test(a);if((this.j=/[?&]adurl=([^&]*)/.exec(a))&&this.j[1]){try{var c=decodeURIComponent(this.j[1])}catch(d){c=null}this.u=c}};
Yka=function(a,b,c,d,e){var f=window,h=c?"//web.archive.org/web/20230426095903/https://pagead2.googlesyndication.com/bg/"+g.Me(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)&&"function"==typeof b.push||(b=f.GoogleTyFxhY=[]);b.push(l);b=Ve(c).createElement("SCRIPT");b.type="text/javascript";b.async=!0;a=Cba(g.Xd("//web.archive.org/web/20230426095903/https://tpc.googlesyndication.com/sodar/%{path}"),{path:g.Me(a)+".js"});g.fk(b,a);(f=(f.GoogleTyFxhYEET||{})[b.src])?f():c.getElementsByTagName("head")[0].appendChild(b)};
ala=function(a){if(g.Tb(g.Qe(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.Bk(a)}catch(c){return null!=g.nb(Zka,function(d){return 0<a.search(d)})}return b.I.match($ka)?!0:null!=g.nb(Zka,function(c){return null!=a.match(c)})};
g.xp=function(a,b){return a.replace(bla,function(c,d){try{var e=g.jd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.Tb(g.Qe(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
zp=function(a){g.Fd.call(this);var b=this;this.D=this.u=0;this.cn=null!=a?a:{xi:function(e,f){return setTimeout(e,f)},
Em:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.B=function(){return g.A(function(e){return g.y(e,yp(b),0)})};
window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.D||this.gf()};
dla=function(){var a=g.Ap;zp.instance||(zp.instance=new zp(a));return zp.instance};
yp=function(a,b){return a.C?a.C:a.C=new Promise(function(c){var d,e,f,h;return g.A(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.pa(l,2,3),d&&(a.u=a.cn.xi(function(){d.abort()},b||2E4)),g.y(l,fetch("/generate_204",{method:"HEAD",
signal:f}),5);case 5:h=!0;case 3:g.haa(l);a.C=void 0;a.u&&(a.cn.Em(a.u),a.u=0);h!==a.j&&(a.j=h,a.j?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(h);g.iaa(l,0);break;case 2:g.sa(l),h=!1,l.Ka(3)}})})};
Bp=function(){this.data_=[];this.j=-1};
ela=function(a){-1===a.j&&(a.j=$l(a.data_,function(b,c,d){return c?b+Math.pow(2,d):b},0));
return a.j};
Cp=function(a){a.setAttribute("role","link")};
Ep=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(Dp||(b={},Dp=(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=Dp,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
Fp=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.Gp=function(a,b,c){g.C.call(this);this.j=null;this.C=!1;this.I=a;this.D=c;this.u=b||window;this.B=(0,g.Oa)(this.N_,this)};
g.Hp=function(a){a.isActive()||a.start()};
fla=function(a){a=a.u;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
gla=function(a){a=a.u;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Ip=function(a,b,c){g.C.call(this);this.j=a;this.Fi=b||0;this.u=c;this.B=(0,g.Oa)(this.qR,this)};
g.Jp=function(a,b){a.isActive()||a.start(b)};
g.Kp=function(a){a.stop();a.qR()};
g.Lp=function(a){a.isActive()&&g.Kp(a)};
Mp=function(a,b){this.j=a[g.Ea.Symbol.iterator]();this.u=b};
hla=function(a,b){return new Mp(a,b)};
ila=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
Np=function(a){return a.classList?a.classList:ila(a).match(/\S+/g)||[]};
g.Op=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Pp=function(a,b){return a.classList?a.classList.contains(b):g.rb(Np(a),b)};
g.Qp=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Pp(a,b)){var c=ila(a);g.Op(a,c+(0<c.length?" "+b:b))}};
g.Rp=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Qp(a,e)});
else{var c={};Array.prototype.forEach.call(Np(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.Op(a,b)}};
g.Sp=function(a,b){a.classList?a.classList.remove(b):g.Pp(a,b)&&g.Op(a,Array.prototype.filter.call(Np(a),function(c){return c!=b}).join(" "))};
g.Tp=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Sp(a,c)}):g.Op(a,Array.prototype.filter.call(Np(a),function(c){return!g.rb(b,c)}).join(" "))};
g.Up=function(a,b,c){c?g.Qp(a,b):g.Sp(a,b)};
jla=function(a,b){var c=!g.Pp(a,b);g.Up(a,b,c)};
Yp=function(a){if(a instanceof Vp||a instanceof Wp||a instanceof Xp)return a;if("function"==typeof a.next)return new Vp(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Vp(function(){return a[Symbol.iterator]()});
if("function"==typeof a.hk)return new Vp(function(){return a.hk()});
throw Error("Not an iterator or iterable.");};
Vp=function(a){this.u=a};
Wp=function(a){this.u=a};
Xp=function(a){Vp.call(this,function(){return a});
this.B=a};
g.Zp=function(a,b){this.u={};this.j=[];this.Pt=this.size=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof g.Zp)for(c=a.Xp(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};
kla=function(a,b){return a===b};
aq=function(a){if(a.size!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];$p(a.u,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.size!=a.j.length){var e={};for(c=b=0;b<a.j.length;)d=a.j[b],$p(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}};
$p=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.bq=function(){g.Fd.call(this);this.j=0;this.endTime=this.startTime=null};
lla=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.Hm(a,"transition",b.join(","))};
cq=function(a,b,c,d,e){g.bq.call(this);this.u=a;this.D=b;this.I=c;this.C=d;this.J=Array.isArray(e)?e:[e]};
mla=function(a,b,c,d){return new cq(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
ola=function(a){a=cc(a);if(""==a)return null;if(Sb(a,"url("))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;for(var b=/([\-\w]+)\(/g,c;c=b.exec(a);)if(!(c[1].toLowerCase()in nla))return null}return a};
dq=function(a,b){a=g.Ea[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
pla=function(a){var b=g.Ea.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
qla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.mf&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
vla=function(a){if(!a)return le;var b=document.createElement("div").style;rla(a).forEach(function(c){var d=g.Pc&&c in sla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Rb(d,"--")||Rb(d,"var")||(c=qla(tla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=ola(c),null!=c&&qla(ula,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return Wba(g.Xd("Output of CSS sanitizer"),b.cssText||"")};
rla=function(a){g.Ia(a)?a=g.Bb(a):(a=g.Zc(a),g.wb(a,"cssText"));return a};
g.fq=function(a){var b,c=b=0,d=!1;a=a.split(wla);for(var e=0;e<a.length;e++){var f=a[e];g.eq.test(f)?(b++,c++):xla.test(f)?d=!0:yla.test(f)?c++:zla.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
gq=function(a,b,c,d,e,f,h,l){this.j=a;this.J=b;this.B=c;this.D=d;this.C=e;this.I=f;this.u=h;this.T=l};
hq=function(a,b){if(0==b)return a.j;if(1==b)return a.u;var c=De(a.j,a.B,b),d=De(a.B,a.C,b);a=De(a.C,a.u,b);c=De(c,d,b);d=De(d,a,b);return De(c,d,b)};
Ala=function(a,b){var c=(b-a.j)/(a.u-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=hq(a,c);var l=(hq(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=hq(a,c);return c};
iq=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
jq=function(a){return(a=a.exec(g.hc()))?a[1]:""};
kq=function(a){return 0<=g.ec(Bla,a)};
g.lq=function(a){g.C.call(this);this.I=1;this.B=[];this.C=0;this.j=[];this.u={};this.J=!!a};
Cla=function(a,b,c){g.Mf(function(){a.apply(b,c)})};
g.mq=function(a){this.j=a};
nq=function(a){this.j=a};
Dla=function(a){this.data=a};
Ela=function(a){return void 0===a||a instanceof Dla?a:new Dla(a)};
oq=function(a){this.j=a};
g.Fla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.Ra()||!!b&&b>g.Ra()};
g.pq=function(a){this.j=a};
Gla=function(){};
qq=function(){};
rq=function(a){this.j=a};
sq=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a};
Hla=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a};
uq=function(a,b){this.u=a;this.j=null;if(g.mf&&!g.Oc(9)){tq||(tq=new g.Zp);this.j=tq.get(a);this.j||(b?this.j=document.getElementById(b):(this.j=document.createElement("userdata"),this.j.addBehavior("#default#userData"),document.body.appendChild(this.j)),tq.set(a,this.j));try{this.j.load(this.u)}catch(c){this.j=null}}};
vq=function(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(b){return Ila[b]})};
wq=function(a){try{a.j.save(a.u)}catch(b){throw"Storage mechanism: Quota exceeded";}};
xq=function(a,b){this.u=a;this.j=b+"::"};
g.yq=function(a){var b=new sq;return b.isAvailable()?a?new xq(b,a):b:null};
Lq=function(a,b){this.j=a;this.u=b};
Mq=function(a){this.j=[];if(a)a:{if(a instanceof Mq){var b=a.Xp();a=a.Ml();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Lq(b[d],a[d]));break a}}else b=g.Zc(a),a=Yc(a);for(c=0;c<b.length;c++)this.Ph(b[c],a[c])}};
Jla=function(){Mq.apply(this,arguments)};
Nq=function(){};
Kla=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var h=a.charCodeAt(b+1);56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var l=new Oq.Nw(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(h=a.charCodeAt(b+1),56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)),128>f?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
6&63),l[c++]=128|f&63);return l};
Pq=function(a){for(var b=a.length;0<=--b;)a[b]=0};
Qq=function(a,b,c,d,e){this.XX=a;this.b3=b;this.Z2=c;this.O2=d;this.J4=e;this.BU=a&&a.length};
Rq=function(a,b){this.nT=a;this.jz=0;this.Ht=b};
Sq=function(a,b){a.hg[a.pending++]=b&255;a.hg[a.pending++]=b>>>8&255};
Tq=function(a,b,c){a.Kh>16-c?(a.Vi|=b<<a.Kh&65535,Sq(a,a.Vi),a.Vi=b>>16-a.Kh,a.Kh+=c-16):(a.Vi|=b<<a.Kh&65535,a.Kh+=c)};
Uq=function(a,b,c){Tq(a,c[2*b],c[2*b+1])};
Lla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
Mla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=Lla(d[e]++,e))};
Nla=function(a){var b;for(b=0;286>b;b++)a.Ej[2*b]=0;for(b=0;30>b;b++)a.Pu[2*b]=0;for(b=0;19>b;b++)a.Ai[2*b]=0;a.Ej[512]=1;a.Kq=a.cA=0;a.Rl=a.matches=0};
Ola=function(a){8<a.Kh?Sq(a,a.Vi):0<a.Kh&&(a.hg[a.pending++]=a.Vi);a.Vi=0;a.Kh=0};
Pla=function(a,b,c){Ola(a);Sq(a,c);Sq(a,~c);Oq.Mx(a.hg,a.window,b,c,a.pending);a.pending+=c};
Qla=function(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
Vq=function(a,b,c){for(var d=a.xg[c],e=c<<1;e<=a.lq;){e<a.lq&&Qla(b,a.xg[e+1],a.xg[e],a.depth)&&e++;if(Qla(b,d,a.xg[e],a.depth))break;a.xg[c]=a.xg[e];c=e;e<<=1}a.xg[c]=d};
Rla=function(a,b,c){var d=0;if(0!==a.Rl){do{var e=a.hg[a.pB+2*d]<<8|a.hg[a.pB+2*d+1];var f=a.hg[a.UM+d];d++;if(0===e)Uq(a,f,b);else{var h=Wq[f];Uq(a,h+256+1,b);var l=Xq[h];0!==l&&(f-=Yq[h],Tq(a,f,l));e--;h=256>e?Zq[e]:Zq[256+(e>>>7)];Uq(a,h,c);l=$q[h];0!==l&&(e-=ar[h],Tq(a,e,l))}}while(d<a.Rl)}Uq(a,256,b)};
br=function(a,b){var c=b.nT,d=b.Ht.XX,e=b.Ht.BU,f=b.Ht.O2,h,l=-1;a.lq=0;a.Ky=573;for(h=0;h<f;h++)0!==c[2*h]?(a.xg[++a.lq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.lq;){var m=a.xg[++a.lq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.Kq--;e&&(a.cA-=d[2*m+1])}b.jz=l;for(h=a.lq>>1;1<=h;h--)Vq(a,c,h);m=f;do h=a.xg[1],a.xg[1]=a.xg[a.lq--],Vq(a,c,1),d=a.xg[1],a.xg[--a.Ky]=h,a.xg[--a.Ky]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.xg[1]=m++,Vq(a,c,1);while(2<=
a.lq);a.xg[--a.Ky]=a.xg[1];h=b.nT;m=b.jz;d=b.Ht.XX;e=b.Ht.BU;f=b.Ht.b3;var n=b.Ht.Z2,p=b.Ht.J4,q,r=0;for(q=0;15>=q;q++)a.Jp[q]=0;h[2*a.xg[a.Ky]+1]=0;for(b=a.Ky+1;573>b;b++){var v=a.xg[b];q=h[2*h[2*v+1]+1]+1;q>p&&(q=p,r++);h[2*v+1]=q;if(!(v>m)){a.Jp[q]++;var x=0;v>=n&&(x=f[v-n]);var z=h[2*v];a.Kq+=z*(q+x);e&&(a.cA+=z*(d[2*v+1]+x))}}if(0!==r){do{for(q=p-1;0===a.Jp[q];)q--;a.Jp[q]--;a.Jp[q+1]+=2;a.Jp[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(v=a.Jp[q];0!==v;)d=a.xg[--b],d>m||(h[2*d+1]!==q&&(a.Kq+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),v--)}Mla(c,l,a.Jp)};
Sla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h<l&&n===f||(h<m?a.Ai[2*n]+=h:0!==n?(n!==e&&a.Ai[2*n]++,a.Ai[32]++):10>=h?a.Ai[34]++:a.Ai[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Tla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h<l&&n===f)){if(h<m){do Uq(a,n,a.Ai);while(0!==--h)}else 0!==n?(n!==e&&(Uq(a,n,a.Ai),h--),Uq(a,16,a.Ai),Tq(a,h-3,2)):10>=h?(Uq(a,17,a.Ai),Tq(a,h-3,3)):(Uq(a,18,a.Ai),Tq(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Ula=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Ej[2*c])return 0;if(0!==a.Ej[18]||0!==a.Ej[20]||0!==a.Ej[26])return 1;for(c=32;256>c;c++)if(0!==a.Ej[2*c])return 1;return 0};
cr=function(a,b,c){a.hg[a.pB+2*a.Rl]=b>>>8&255;a.hg[a.pB+2*a.Rl+1]=b&255;a.hg[a.UM+a.Rl]=c&255;a.Rl++;0===b?a.Ej[2*c]++:(a.matches++,b--,a.Ej[2*(Wq[c]+256+1)]++,a.Pu[2*(256>b?Zq[b]:Zq[256+(b>>>7)])]++);return a.Rl===a.IC-1};
er=function(a,b){a.msg=dr[b];return b};
fr=function(a){for(var b=a.length;0<=--b;)a[b]=0};
gr=function(a){var b=a.state,c=b.pending;c>a.le&&(c=a.le);0!==c&&(Oq.Mx(a.Sj,b.hg,b.oD,c,a.pz),a.pz+=c,b.oD+=c,a.LP+=c,a.le-=c,b.pending-=c,0===b.pending&&(b.oD=0))};
jr=function(a,b){var c=0<=a.qk?a.qk:-1,d=a.xb-a.qk,e=0;if(0<a.level){2===a.Sd.iL&&(a.Sd.iL=Ula(a));br(a,a.zG);br(a,a.rF);Sla(a,a.Ej,a.zG.jz);Sla(a,a.Pu,a.rF.jz);br(a,a.GS);for(e=18;3<=e&&0===a.Ai[2*Vla[e]+1];e--);a.Kq+=3*(e+1)+14;var f=a.Kq+3+7>>>3;var h=a.cA+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)Tq(a,b?1:0,3),Pla(a,c,d);else if(4===a.strategy||h===f)Tq(a,2+(b?1:0),3),Rla(a,hr,ir);else{Tq(a,4+(b?1:0),3);c=a.zG.jz+1;d=a.rF.jz+1;e+=1;Tq(a,c-257,5);Tq(a,d-1,5);Tq(a,e-4,4);for(f=0;f<e;f++)Tq(a,
a.Ai[2*Vla[f]+1],3);Tla(a,a.Ej,c-1);Tla(a,a.Pu,d-1);Rla(a,a.Ej,a.Pu)}Nla(a);b&&Ola(a);a.qk=a.xb;gr(a.Sd)};
kr=function(a,b){a.hg[a.pending++]=b};
lr=function(a,b){a.hg[a.pending++]=b>>>8&255;a.hg[a.pending++]=b&255};
Wla=function(a,b){var c=a.zV,d=a.xb,e=a.Ok,f=a.PV,h=a.xb>a.Oi-262?a.xb-(a.Oi-262):0,l=a.window,m=a.Qt,n=a.gp,p=a.xb+258,q=l[d+e-1],r=l[d+e];a.Ok>=a.hU&&(c>>=2);f>a.Yb&&(f=a.Yb);do{var v=b;if(l[v+e]===r&&l[v+e-1]===q&&l[v]===l[d]&&l[++v]===l[d+1]){d+=2;for(v++;l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&l[++d]===l[++v]&&d<p;);v=258-(p-d);d=p-258;if(v>e){a.gz=b;e=v;if(v>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.Yb?e:a.Yb};
or=function(a){var b=a.Oi,c;do{var d=a.YY-a.Yb-a.xb;if(a.xb>=b+(b-262)){Oq.Mx(a.window,a.window,b,b,0);a.gz-=b;a.xb-=b;a.qk-=b;var e=c=a.lG;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.gp[--e],a.gp[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.Sd.Ti)break;e=a.Sd;c=a.window;f=a.xb+a.Yb;var h=e.Ti;h>d&&(h=d);0===h?c=0:(e.Ti-=h,Oq.Mx(c,e.input,e.Gv,h,f),1===e.state.wrap?e.Cd=mr(e.Cd,c,h,f):2===e.state.wrap&&(e.Cd=nr(e.Cd,c,h,f)),e.Gv+=h,e.yw+=h,c=h);a.Yb+=c;if(3<=a.Yb+a.Ph)for(d=a.xb-a.Ph,
a.Yd=a.window[d],a.Yd=(a.Yd<<a.jq^a.window[d+1])&a.iq;a.Ph&&!(a.Yd=(a.Yd<<a.jq^a.window[d+3-1])&a.iq,a.gp[d&a.Qt]=a.head[a.Yd],a.head[a.Yd]=d,d++,a.Ph--,3>a.Yb+a.Ph););}while(262>a.Yb&&0!==a.Sd.Ti)};
pr=function(a,b){for(var c;;){if(262>a.Yb){or(a);if(262>a.Yb&&0===b)return 1;if(0===a.Yb)break}c=0;3<=a.Yb&&(a.Yd=(a.Yd<<a.jq^a.window[a.xb+3-1])&a.iq,c=a.gp[a.xb&a.Qt]=a.head[a.Yd],a.head[a.Yd]=a.xb);0!==c&&a.xb-c<=a.Oi-262&&(a.Fe=Wla(a,c));if(3<=a.Fe)if(c=cr(a,a.xb-a.gz,a.Fe-3),a.Yb-=a.Fe,a.Fe<=a.hN&&3<=a.Yb){a.Fe--;do a.xb++,a.Yd=(a.Yd<<a.jq^a.window[a.xb+3-1])&a.iq,a.gp[a.xb&a.Qt]=a.head[a.Yd],a.head[a.Yd]=a.xb;while(0!==--a.Fe);a.xb++}else a.xb+=a.Fe,a.Fe=0,a.Yd=a.window[a.xb],a.Yd=(a.Yd<<a.jq^
a.window[a.xb+1])&a.iq;else c=cr(a,0,a.window[a.xb]),a.Yb--,a.xb++;if(c&&(jr(a,!1),0===a.Sd.le))return 1}a.Ph=2>a.xb?a.xb:2;return 4===b?(jr(a,!0),0===a.Sd.le?3:4):a.Rl&&(jr(a,!1),0===a.Sd.le)?1:2};
qr=function(a,b){for(var c,d;;){if(262>a.Yb){or(a);if(262>a.Yb&&0===b)return 1;if(0===a.Yb)break}c=0;3<=a.Yb&&(a.Yd=(a.Yd<<a.jq^a.window[a.xb+3-1])&a.iq,c=a.gp[a.xb&a.Qt]=a.head[a.Yd],a.head[a.Yd]=a.xb);a.Ok=a.Fe;a.ZW=a.gz;a.Fe=2;0!==c&&a.Ok<a.hN&&a.xb-c<=a.Oi-262&&(a.Fe=Wla(a,c),5>=a.Fe&&(1===a.strategy||3===a.Fe&&4096<a.xb-a.gz)&&(a.Fe=2));if(3<=a.Ok&&a.Fe<=a.Ok){d=a.xb+a.Yb-3;c=cr(a,a.xb-1-a.ZW,a.Ok-3);a.Yb-=a.Ok-1;a.Ok-=2;do++a.xb<=d&&(a.Yd=(a.Yd<<a.jq^a.window[a.xb+3-1])&a.iq,a.gp[a.xb&a.Qt]=
a.head[a.Yd],a.head[a.Yd]=a.xb);while(0!==--a.Ok);a.Cv=0;a.Fe=2;a.xb++;if(c&&(jr(a,!1),0===a.Sd.le))return 1}else if(a.Cv){if((c=cr(a,0,a.window[a.xb-1]))&&jr(a,!1),a.xb++,a.Yb--,0===a.Sd.le)return 1}else a.Cv=1,a.xb++,a.Yb--}a.Cv&&(cr(a,0,a.window[a.xb-1]),a.Cv=0);a.Ph=2>a.xb?a.xb:2;return 4===b?(jr(a,!0),0===a.Sd.le?3:4):a.Rl&&(jr(a,!1),0===a.Sd.le)?1:2};
Xla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.Yb){or(a);if(258>=a.Yb&&0===b)return 1;if(0===a.Yb)break}a.Fe=0;if(3<=a.Yb&&0<a.xb&&(d=a.xb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.xb+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.Fe=258-(e-d);a.Fe>a.Yb&&(a.Fe=a.Yb)}3<=a.Fe?(c=cr(a,1,a.Fe-3),a.Yb-=a.Fe,a.xb+=a.Fe,a.Fe=0):(c=cr(a,0,a.window[a.xb]),a.Yb--,a.xb++);if(c&&(jr(a,!1),0===a.Sd.le))return 1}a.Ph=0;return 4===
b?(jr(a,!0),0===a.Sd.le?3:4):a.Rl&&(jr(a,!1),0===a.Sd.le)?1:2};
Yla=function(a,b){for(var c;;){if(0===a.Yb&&(or(a),0===a.Yb)){if(0===b)return 1;break}a.Fe=0;c=cr(a,0,a.window[a.xb]);a.Yb--;a.xb++;if(c&&(jr(a,!1),0===a.Sd.le))return 1}a.Ph=0;return 4===b?(jr(a,!0),0===a.Sd.le?3:4):a.Rl&&(jr(a,!1),0===a.Sd.le)?1:2};
rr=function(a,b,c,d,e){this.y3=a;this.I4=b;this.X4=c;this.H4=d;this.func=e};
Zla=function(){this.Sd=null;this.status=0;this.hg=null;this.wrap=this.pending=this.oD=this.Vl=0;this.Ad=null;this.Qm=0;this.method=8;this.Zy=-1;this.Qt=this.gQ=this.Oi=0;this.window=null;this.YY=0;this.head=this.gp=null;this.PV=this.hU=this.strategy=this.level=this.hN=this.zV=this.Ok=this.Yb=this.gz=this.xb=this.Cv=this.ZW=this.Fe=this.qk=this.jq=this.iq=this.uM=this.lG=this.Yd=0;this.Ej=new Oq.Cp(1146);this.Pu=new Oq.Cp(122);this.Ai=new Oq.Cp(78);fr(this.Ej);fr(this.Pu);fr(this.Ai);this.GS=this.rF=
this.zG=null;this.Jp=new Oq.Cp(16);this.xg=new Oq.Cp(573);fr(this.xg);this.Ky=this.lq=0;this.depth=new Oq.Cp(573);fr(this.depth);this.Kh=this.Vi=this.Ph=this.matches=this.cA=this.Kq=this.pB=this.Rl=this.IC=this.UM=0};
$la=function(a,b){if(!a||!a.state||5<b||0>b)return a?er(a,-2):-2;var c=a.state;if(!a.Sj||!a.input&&0!==a.Ti||666===c.status&&4!==b)return er(a,0===a.le?-5:-2);c.Sd=a;var d=c.Zy;c.Zy=b;if(42===c.status)if(2===c.wrap)a.Cd=0,kr(c,31),kr(c,139),kr(c,8),c.Ad?(kr(c,(c.Ad.text?1:0)+(c.Ad.Is?2:0)+(c.Ad.Ur?4:0)+(c.Ad.name?8:0)+(c.Ad.comment?16:0)),kr(c,c.Ad.time&255),kr(c,c.Ad.time>>8&255),kr(c,c.Ad.time>>16&255),kr(c,c.Ad.time>>24&255),kr(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),kr(c,c.Ad.os&255),c.Ad.Ur&&
c.Ad.Ur.length&&(kr(c,c.Ad.Ur.length&255),kr(c,c.Ad.Ur.length>>8&255)),c.Ad.Is&&(a.Cd=nr(a.Cd,c.hg,c.pending,0)),c.Qm=0,c.status=69):(kr(c,0),kr(c,0),kr(c,0),kr(c,0),kr(c,0),kr(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),kr(c,3),c.status=113);else{var e=8+(c.gQ-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.xb&&(e|=32);c.status=113;lr(c,e+(31-e%31));0!==c.xb&&(lr(c,a.Cd>>>16),lr(c,a.Cd&65535));a.Cd=1}if(69===c.status)if(c.Ad.Ur){for(e=c.pending;c.Qm<(c.Ad.Ur.length&
65535)&&(c.pending!==c.Vl||(c.Ad.Is&&c.pending>e&&(a.Cd=nr(a.Cd,c.hg,c.pending-e,e)),gr(a),e=c.pending,c.pending!==c.Vl));)kr(c,c.Ad.Ur[c.Qm]&255),c.Qm++;c.Ad.Is&&c.pending>e&&(a.Cd=nr(a.Cd,c.hg,c.pending-e,e));c.Qm===c.Ad.Ur.length&&(c.Qm=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Ad.name){e=c.pending;do{if(c.pending===c.Vl&&(c.Ad.Is&&c.pending>e&&(a.Cd=nr(a.Cd,c.hg,c.pending-e,e)),gr(a),e=c.pending,c.pending===c.Vl)){var f=1;break}f=c.Qm<c.Ad.name.length?c.Ad.name.charCodeAt(c.Qm++)&
255:0;kr(c,f)}while(0!==f);c.Ad.Is&&c.pending>e&&(a.Cd=nr(a.Cd,c.hg,c.pending-e,e));0===f&&(c.Qm=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Ad.comment){e=c.pending;do{if(c.pending===c.Vl&&(c.Ad.Is&&c.pending>e&&(a.Cd=nr(a.Cd,c.hg,c.pending-e,e)),gr(a),e=c.pending,c.pending===c.Vl)){f=1;break}f=c.Qm<c.Ad.comment.length?c.Ad.comment.charCodeAt(c.Qm++)&255:0;kr(c,f)}while(0!==f);c.Ad.Is&&c.pending>e&&(a.Cd=nr(a.Cd,c.hg,c.pending-e,e));0===f&&(c.status=103)}else c.status=103;103===c.status&&
(c.Ad.Is?(c.pending+2>c.Vl&&gr(a),c.pending+2<=c.Vl&&(kr(c,a.Cd&255),kr(c,a.Cd>>8&255),a.Cd=0,c.status=113)):c.status=113);if(0!==c.pending){if(gr(a),0===a.le)return c.Zy=-1,0}else if(0===a.Ti&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return er(a,-5);if(666===c.status&&0!==a.Ti)return er(a,-5);if(0!==a.Ti||0!==c.Yb||0!==b&&666!==c.status){d=2===c.strategy?Yla(c,b):3===c.strategy?Xla(c,b):sr[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.le&&(c.Zy=-1),0;if(2===d&&(1===
b?(Tq(c,2,3),Uq(c,256,hr),16===c.Kh?(Sq(c,c.Vi),c.Vi=0,c.Kh=0):8<=c.Kh&&(c.hg[c.pending++]=c.Vi&255,c.Vi>>=8,c.Kh-=8)):5!==b&&(Tq(c,0,3),Pla(c,0,0),3===b&&(fr(c.head),0===c.Yb&&(c.xb=0,c.qk=0,c.Ph=0))),gr(a),0===a.le))return c.Zy=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(kr(c,a.Cd&255),kr(c,a.Cd>>8&255),kr(c,a.Cd>>16&255),kr(c,a.Cd>>24&255),kr(c,a.yw&255),kr(c,a.yw>>8&255),kr(c,a.yw>>16&255),kr(c,a.yw>>24&255)):(lr(c,a.Cd>>>16),lr(c,a.Cd&65535));gr(a);0<c.wrap&&(c.wrap=-c.wrap);return 0!==
c.pending?0:1};
tr=function(a){if(!(this instanceof tr))return new tr(a);a=this.options=Oq.assign({level:-1,method:8,chunkSize:16384,Rt:15,O4:8,strategy:0,to:""},a||{});a.raw&&0<a.Rt?a.Rt=-a.Rt:a.z3&&0<a.Rt&&16>a.Rt&&(a.Rt+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Sd=new ama;this.Sd.le=0;var b=this.Sd;var c=a.level,d=a.method,e=a.Rt,f=a.O4,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15<e&&(l=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>h||4<h)b=er(b,-2);else{8===e&&(e=9);var m=
new Zla;b.state=m;m.Sd=b;m.wrap=l;m.Ad=null;m.gQ=e;m.Oi=1<<m.gQ;m.Qt=m.Oi-1;m.uM=f+7;m.lG=1<<m.uM;m.iq=m.lG-1;m.jq=~~((m.uM+3-1)/3);m.window=new Oq.Nw(2*m.Oi);m.head=new Oq.Cp(m.lG);m.gp=new Oq.Cp(m.Oi);m.IC=1<<f+6;m.Vl=4*m.IC;m.hg=new Oq.Nw(m.Vl);m.pB=1*m.IC;m.UM=3*m.IC;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.yw=b.LP=0;b.iL=2;c=b.state;c.pending=0;c.oD=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Cd=2===c.wrap?0:1;c.Zy=0;if(!bma){d=Array(16);for(f=h=0;28>f;f++)for(Yq[f]=h,e=0;e<
1<<Xq[f];e++)Wq[h++]=f;Wq[h-1]=f;for(f=h=0;16>f;f++)for(ar[f]=h,e=0;e<1<<$q[f];e++)Zq[h++]=f;for(h>>=7;30>f;f++)for(ar[f]=h<<7,e=0;e<1<<$q[f]-7;e++)Zq[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)hr[2*e+1]=8,e++,d[8]++;for(;255>=e;)hr[2*e+1]=9,e++,d[9]++;for(;279>=e;)hr[2*e+1]=7,e++,d[7]++;for(;287>=e;)hr[2*e+1]=8,e++,d[8]++;Mla(hr,287,d);for(e=0;30>e;e++)ir[2*e+1]=5,ir[2*e]=Lla(e,5);cma=new Qq(hr,Xq,257,286,15);dma=new Qq(ir,$q,0,30,15);ema=new Qq([],fma,0,19,7);bma=!0}c.zG=new Rq(c.Ej,cma);
c.rF=new Rq(c.Pu,dma);c.GS=new Rq(c.Ai,ema);c.Vi=0;c.Kh=0;Nla(c);c=0}else c=er(b,-2);0===c&&(b=b.state,b.YY=2*b.Oi,fr(b.head),b.hN=sr[b.level].I4,b.hU=sr[b.level].y3,b.PV=sr[b.level].X4,b.zV=sr[b.level].H4,b.xb=0,b.qk=0,b.Yb=0,b.Ph=0,b.Fe=b.Ok=2,b.Cv=0,b.Yd=0);b=c}}else b=-2;if(0!==b)throw Error(dr[b]);a.header&&(b=this.Sd)&&b.state&&2===b.state.wrap&&(b.state.Ad=a.header);if(a.sB){var n;"string"===typeof a.sB?n=Kla(a.sB):"[object ArrayBuffer]"===gma.call(a.sB)?n=new Uint8Array(a.sB):n=a.sB;a=this.Sd;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.Yb)b=-2;else{1===b&&(a.Cd=mr(a.Cd,f,h,0));n.wrap=0;h>=n.Oi&&(0===b&&(fr(n.head),n.xb=0,n.qk=0,n.Ph=0),c=new Oq.Nw(n.Oi),Oq.Mx(c,f,h-n.Oi,n.Oi,0),f=c,h=n.Oi);c=a.Ti;d=a.Gv;e=a.input;a.Ti=h;a.Gv=0;a.input=f;for(or(n);3<=n.Yb;){f=n.xb;h=n.Yb-2;do n.Yd=(n.Yd<<n.jq^n.window[f+3-1])&n.iq,n.gp[f&n.Qt]=n.head[n.Yd],n.head[n.Yd]=f,f++;while(--h);n.xb=f;n.Yb=2;or(n)}n.xb+=n.Yb;n.qk=n.xb;n.Ph=n.Yb;n.Yb=0;n.Fe=n.Ok=2;n.Cv=0;a.Gv=
d;a.input=e;a.Ti=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(dr[b]);this.p6a=!0}};
hma=function(a){var b=b||{};b.z3=!0;b=new tr(b);b.push(a,!0);if(b.err)throw b.msg||dr[b.err];return b.result};
ima=function(){var a=g.ya.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.u(g.ya.apply(0,arguments))))}})};
jma=function(){var a=g.ya.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.u(g.ya.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=ima.apply(null,g.u(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
ur=function(){return Math.random().toString(36).substring(7).split("").join(".")};
kma=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:vr}))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("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+ur()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(vr+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})};
lma=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(v){if("function"!==typeof v)throw Error("Expected the listener to be a function. Instead, received: '"+typeof v+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;p===n&&(p=n.slice());p.push(v);return function(){if(x){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
x=!1;p===n&&(p=n.slice());p.splice(p.indexOf(v),1);n=null}}}
function h(v){if("object"!==typeof v||null===v)var x=!1;else{for(x=v;null!==Object.getPrototypeOf(x);)x=Object.getPrototypeOf(x);x=Object.getPrototypeOf(v)===x}if(!x)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof v+"'. 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("undefined"===typeof v.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,v)}finally{q=!1}x=n=p;for(var z=0;z<x.length;z++)(0,x[z])();return v}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof c+"'");return c(lma)(a,b)}if("function"!==typeof a)throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:vr});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(v){if("function"!==typeof v)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof v);l=v;h({type:mma});return r},a[nma]=function(){var v={};
return v.subscribe=function(x){function z(){x.next&&x.next(e())}
if("object"!==typeof x||null===x)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof x+"'");z();return{unsubscribe:f(z)}},v[nma]=function(){return this},v},a);
return r};
g.wr=function(a){a=oma(a);return $d(a)};
oma=function(a){return null===a?"null":void 0===a?"undefined":a};
xr=function(a){J.call(this,a)};
yr=function(a){J.call(this,a,-1,pma)};
qma=function(a){var b=a.split(""),c=[",})),",function(d){d.reverse()},
1789576609,1009097478,-1477222277,1956901341,-478675527,2089981945,-1578969223,"wN0C-",function(d,e,f,h,l,m,n,p,q){return f(h,l,m,n,p,q)},
1077814168,1659692083,-1016217413,-1893188125,1814834946,-1430120914,516757484,-276062621,-320266201,function(d,e){e.splice(e.length,0,d)},
-1046698531,1576960023,1789576609,-1762733526,1183540824,-188612219,-1895995651,92726377,null,function(d,e){if(0!=d.length){e=(e%d.length+d.length)%d.length;var f=d[0];d[0]=d[e];d[e]=f}},
126352123,function(d,e){d=(d%e.length+e.length)%e.length;e.splice(d,1)},
-351367061,-1603435758,-809624547,b,function(d){d.reverse()},
1227423822,689377759,-612447815,1844062988,1215785823,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
762174281,620486273,-133986367,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,f,h,l){return e(f,h,l)},
"wN0C-",38739765,/\/\/[/,-33,/,/]{/,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
-276062621,-1534791241,"[,)(;'",935829995,519626314,function(d,e){0!=d.length&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
131228770,935829995,-137505400,2008819456,762418109,-1940150800,-1215737384,1269714173,function(d,e,f,h,l,m){return e(h,l,m)},
-1119648801,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},
b,-1433195489,357111173,-133986367,-1636170980,-718620520,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
function(){for(var d=64,e=[];++d-e.length-32;)switch(d){case 46:d=95;default:e.push(String.fromCharCode(d));case 94:case 95:case 96:break;case 123:d-=76;case 92:case 93:continue;case 58:d=44;case 91:}return e},
6620172,-1534791241,-1427806721,-808685856,null,-635294386,b,-341628761,2056337589,function(d,e){for(e=(e%d.length+d.length)%d.length;e--;)d.unshift(d.pop())},
null,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},
550749786];c[29]=c;c[82]=c;c[88]=c;try{try{-10>=c[19]?(0,c[87])(c[Math.pow(2,2)-138- -218],c[79]):(0,c[76])(c[29],c[28]),c[26]!==14763-Math.pow(1,1)-14772&&(6>=c[24]&&((0,c[48])((0,c[184-108*Math.pow(1,4)])(c[70],c[24]),c[32],c[68],c[84]),1)||((0,c[47])((0,c[43])(),c[49],c[745+-27*Math.pow(5,2)]),c[47])((0,c[69])(),c[9],c[84])),-3>c[27]&&(0>=c[83]||((0,c[32])(c[46],c[82]),null))&&(0,c[1])(c[88]),-2!==c[50]&&(-6<c[new Date("1970-01-01T02:30:44.000+02:30")/1E3]?(((((0,c[60])(c[61],c[18]),c[23])((0,c[43])((0,c[1])(),
c[41],c[6]),c[57-Math.pow(7,1)+-7],(0,c[14])(c[6],c[77]),(0,c[1])(),c[41],c[Math.pow(1,4)%126- -19]),c[42])((0,c[42])((0,c[58])(c[76],c[6]),c[60],c[8],c[71]),c[14],c[6],c[63]),c[43])((0,c[21])(),c[41],c[54]),c[43])((0,c[21])(),c[81],c[new Date("1969-12-31T15:00:54.000-09:00")/1E3]):((((0,c[23])((0,c[38])(c[20]),c[60],(0,c[60])(c[6],c[40]),c[61],c[79]),c[43])((0,c[1])(),c[81],c[Math.pow(5,4)-81+-538]),c[3])(c[2],c[68]),c[25])((0,c[62])(c[8],c[66]),c[60],(0,c[44])((0,c[40])(c[8]),c[72],c[48],c[new Date("1969-12-31T19:00:04.000-05:00")/
1E3]),c[75],c[56])),3!==c[57]&&(0,c[62])(c[4],c[57]),-2<c[65]?(0,c[25])((0,c[60])(c[26-Math.pow(6,1)+-11],c[56]),c[60],((0,c[new Date("1970-01-01T06:00:44.000+06:00")/1E3])((0,c[45])((0,c[3])(),c[83],c[22]),c[60],c[71],c[10]),c[Math.pow(new Date("1969-12-31T17:30:05.000-06:30")/1E3,1)+6+new Date("1970-01-01T02:30:33.000+02:30")/1E3])((0,c[Math.pow(8,5)+10919+-43642])((0,c[23])(),c[83],c[8]),c[34],c[8],c[87]),c[Math.pow(4,2)%392+2],c[22]):((((0,c[16])(c[10],c[new Date("1969-12-31T20:45:48.000-03:15")/
1E3]),c[21])(c[9],c[63]),(0,c[-30*Math.pow(3,2)- -297])(c[42],c[18]),(0,c[17])(c[57],c[238*Math.pow(new Date("1969-12-31T17:15:03.000-06:45")/1E3,1)+-628]),c[15])(c[80],c[69]),c[81])(c[55],c[59]),-5<c[74]&&((0,c[17])(c[11],c[41]),1)||(0,c[63])(c[11],c[Math.pow(5,2)+-27302- -27321])}catch(d){(0,c[91])(((0,c[67])((0,c[70])(),c[90],c[11]),c[15])(c[8],c[11]),c[67],(0,c[50])(),c[3-Math.pow(2,3)+43],c[Math.pow(2,1)+25- -28]),(0,c[91])((0,c[67])((0,c[70])(),c[38],c[11]),c[-17556-Math.pow(6,5)- -25399],(0,c[4])(),
c[38],c[55]),(0,c[67])((0,c[70])(),c[new Date("1969-12-31T19:46:30.000-04:15")/1E3],c[11]),(0,c[81])(c[55],c[5])}finally{2!=c[86]&&(0,c[91])((0,c[27])(c[58],c[57]),c[81],c[57],c[54]),6===c[6]?(0,c[91])(((0,c[10])(c[57]),c[17])(c[new Date("1970-01-01T07:15:57.000+07:15")/1E3],c[6]),c[67],(0,c[50])(),c[-239*Math.pow(7,4)- -573929],c[69]):(0,c[91])(((0,c[52])(c[57],c[43]),c[24])(c[0],c[25]),c[89],c[88],c[90]),c[93]<=new Date("1970-01-01T11:30:08.000+11:30")/1E3&&(0,c[33])(c[58],c[73]),0!==c[2]&&(-4>
c[74]?((0,c[16+Math.pow(8,3)-513])((0,c[81])(c[69],c[34]),c[54],c[24],c[91]),c[64])((0,c[25])(c[42],c[22]),c[54],c[30],c[34]):(0,c[10])((0,c[54])(c[85],c[12]),(0,c[25])(c[42],c[8]),c[new Date("1969-12-31T18:46:04.000-05:15")/1E3],(0,c[82])(c[49],c[30]),c[82],c[20],c[28])),3<c[74]?(0,c[Math.pow(4,3)%166])((0,c[45])((0,c[36])(c[85],c[48])!==(0,c[82])(c[81],c[78]),c[82],(0,c[82])(c[89],c[28]),c[66],c[24]),c[82],c[5],c[30]):((((0,c[new Date("1969-12-31T15:31:22.000-08:30")/1E3])(c[4],c[30]),c[54])(c[28],
c[74]),c[64])((0,c[25])(c[24],c[41]),c[35],c[33+Math.pow(8,3)%229],c[92]),c[70])(c[87],c[27])}try{8>=c[92]&&(0,c[15])((0,c[35])(c[36],c[20]),c[11],c[29])}catch(d){(0,c[60])(c[92],c[93])}try{1>c[45]?((0,c[60])(c[2],c[93]),c[60])(c[91],c[93]):((0,c[88])(c[93],c[86]),c[11])(c[57])}catch(d){(0,c[85])((0,c[80])(),c[56],c[0])}}catch(d){return"enhanced_except_j5gB8Of-_w8_"+a}return b.join("")};
g.zr=function(a){this.name=a};
Ar=function(a){J.call(this,a)};
Br=function(a){J.call(this,a)};
Cr=function(a){J.call(this,a)};
Dr=function(a){J.call(this,a)};
Er=function(a){J.call(this,a)};
Fr=function(a){J.call(this,a)};
Gr=function(a){J.call(this,a)};
Hr=function(a){J.call(this,a)};
Ir=function(a){J.call(this,a,-1,rma)};
Jr=function(a){J.call(this,a,-1,sma)};
Kr=function(a){J.call(this,a)};
Lr=function(a){J.call(this,a)};
Mr=function(a){J.call(this,a)};
Nr=function(a){J.call(this,a)};
Or=function(a){J.call(this,a)};
Pr=function(a){J.call(this,a)};
Qr=function(a){J.call(this,a)};
Rr=function(a){J.call(this,a)};
Sr=function(a){J.call(this,a)};
Tr=function(a){J.call(this,a,-1,tma)};
Ur=function(a){J.call(this,a,-1,uma)};
Vr=function(a){J.call(this,a)};
Wr=function(a){J.call(this,a)};
Xr=function(a){J.call(this,a)};
Yr=function(a){J.call(this,a)};
Zr=function(a){J.call(this,a)};
$r=function(a){J.call(this,a)};
as=function(a){J.call(this,a,-1,vma)};
bs=function(a){J.call(this,a)};
cs=function(a){J.call(this,a,-1,wma)};
ds=function(a){J.call(this,a)};
es=function(a){J.call(this,a)};
fs=function(a){J.call(this,a)};
gs=function(a){J.call(this,a)};
hs=function(a){J.call(this,a)};
is=function(a){J.call(this,a)};
js=function(a){J.call(this,a)};
ks=function(a){J.call(this,a)};
ls=function(a){J.call(this,a)};
ms=function(a){J.call(this,a)};
ns=function(a){J.call(this,a)};
os=function(a){J.call(this,a)};
ps=function(a){J.call(this,a)};
qs=function(a){J.call(this,a)};
rs=function(a){J.call(this,a)};
ts=function(a){J.call(this,a,-1,xma)};
us=function(a){J.call(this,a)};
vs=function(a){J.call(this,a)};
ws=function(a){J.call(this,a)};
xs=function(a){J.call(this,a)};
ys=function(a){J.call(this,a)};
zs=function(a){J.call(this,a)};
As=function(a){J.call(this,a,-1,yma)};
Bs=function(a){J.call(this,a)};
Cs=function(a){J.call(this,a)};
Ds=function(a){J.call(this,a)};
Es=function(a){J.call(this,a,-1,zma)};
Fs=function(a){J.call(this,a)};
Gs=function(a){J.call(this,a)};
Hs=function(a){J.call(this,a)};
Is=function(a){J.call(this,a,-1,Ama)};
Js=function(a){J.call(this,a)};
Ks=function(a){J.call(this,a)};
Bma=function(a,b){return H(a,1,b)};
Ls=function(a){J.call(this,a,-1,Cma)};
Ms=function(a){J.call(this,a,-1,Dma)};
Ns=function(a){J.call(this,a)};
Os=function(a){J.call(this,a)};
Ps=function(a){J.call(this,a)};
Qs=function(a){J.call(this,a)};
Rs=function(a){J.call(this,a)};
Ss=function(a){J.call(this,a)};
Ts=function(a){J.call(this,a)};
Fma=function(a){J.call(this,a,-1,Ema)};
g.Us=function(a){J.call(this,a,-1,Gma)};
Vs=function(a){J.call(this,a)};
Ws=function(a){J.call(this,a,-1,Hma)};
Xs=function(a){J.call(this,a,-1,Ima)};
Ys=function(a){J.call(this,a)};
pt=function(a){J.call(this,a,-1,Jma)};
rt=function(a){J.call(this,a,-1,Kma)};
tt=function(a){J.call(this,a)};
ut=function(a){J.call(this,a)};
vt=function(a){J.call(this,a)};
wt=function(a){J.call(this,a)};
xt=function(a){J.call(this,a)};
zt=function(a){J.call(this,a)};
At=function(a){J.call(this,a,-1,Lma)};
Bt=function(a){J.call(this,a)};
Ct=function(a){J.call(this,a)};
Dt=function(a){J.call(this,a)};
Et=function(a){J.call(this,a)};
Ft=function(a){J.call(this,a)};
Gt=function(a){J.call(this,a)};
Ht=function(a){J.call(this,a)};
It=function(a){J.call(this,a)};
Jt=function(a){J.call(this,a)};
Kt=function(a){J.call(this,a,-1,Mma)};
Lt=function(a){J.call(this,a,-1,Nma)};
Mt=function(a){J.call(this,a,-1,Oma)};
Nt=function(a){J.call(this,a)};
Ot=function(a){J.call(this,a,-1,Pma)};
Pt=function(a){J.call(this,a)};
Qt=function(a){J.call(this,a,-1,Qma)};
Rt=function(a){J.call(this,a,-1,Rma)};
St=function(a){J.call(this,a,-1,Sma)};
Tt=function(a){J.call(this,a)};
Ut=function(a){J.call(this,a)};
Vt=function(a){J.call(this,a,-1,Tma)};
Wt=function(a){J.call(this,a)};
Xt=function(a){J.call(this,a)};
Yt=function(a){J.call(this,a)};
Zt=function(a){J.call(this,a)};
$t=function(a){J.call(this,a)};
au=function(a){J.call(this,a)};
bu=function(a){J.call(this,a)};
cu=function(a){J.call(this,a)};
du=function(a){J.call(this,a)};
eu=function(a){J.call(this,a)};
fu=function(a){J.call(this,a)};
gu=function(a){J.call(this,a)};
hu=function(a){J.call(this,a)};
iu=function(a){J.call(this,a)};
ju=function(a){J.call(this,a)};
ku=function(a){J.call(this,a)};
lu=function(a){J.call(this,a)};
mu=function(a){J.call(this,a)};
nu=function(a){J.call(this,a)};
ou=function(a){J.call(this,a)};
pu=function(a){J.call(this,a)};
qu=function(a){J.call(this,a)};
ru=function(a){J.call(this,a)};
tu=function(a){J.call(this,a,-1,Uma)};
uu=function(a){J.call(this,a,-1,Vma)};
vu=function(a){J.call(this,a,-1,Wma)};
wu=function(a){J.call(this,a)};
xu=function(a){J.call(this,a)};
yu=function(a){J.call(this,a)};
zu=function(a){J.call(this,a)};
Au=function(a){J.call(this,a)};
Bu=function(a){J.call(this,a)};
Cu=function(a){J.call(this,a)};
Du=function(a){J.call(this,a)};
Eu=function(a){J.call(this,a)};
Fu=function(a){J.call(this,a)};
Gu=function(a){J.call(this,a)};
Hu=function(a){J.call(this,a)};
Iu=function(a){J.call(this,a)};
Ju=function(a){J.call(this,a)};
Ku=function(a){J.call(this,a,-1,Xma)};
Lu=function(a){J.call(this,a)};
Mu=function(a){J.call(this,a,-1,Yma)};
Nu=function(a){J.call(this,a)};
Ou=function(a){J.call(this,a,-1,Zma)};
Pu=function(a){J.call(this,a,-1,$ma)};
Qu=function(a){J.call(this,a,-1,ana)};
Ru=function(a){J.call(this,a)};
Su=function(a){J.call(this,a)};
Tu=function(a){J.call(this,a)};
Uu=function(a){J.call(this,a)};
Vu=function(a){J.call(this,a,-1,bna)};
Wu=function(a){J.call(this,a)};
Xu=function(a){J.call(this,a)};
Yu=function(a){J.call(this,a,-1,cna)};
Zu=function(a){J.call(this,a)};
$u=function(a){J.call(this,a,-1,dna)};
av=function(a){J.call(this,a)};
bv=function(a){J.call(this,a)};
cv=function(a){J.call(this,a)};
dv=function(a){J.call(this,a)};
ev=function(a){J.call(this,a)};
fv=function(a){J.call(this,a,-1,ena)};
gv=function(a){J.call(this,a)};
hv=function(a){J.call(this,a,-1,fna)};
iv=function(a){J.call(this,a)};
jv=function(a){J.call(this,a,-1,gna)};
kv=function(a){J.call(this,a)};
lv=function(a){J.call(this,a)};
mv=function(a){J.call(this,a,-1,hna)};
nv=function(a){J.call(this,a)};
ov=function(a){J.call(this,a,-1,ina)};
pv=function(a){J.call(this,a)};
qv=function(a){J.call(this,a)};
rv=function(a){J.call(this,a)};
tv=function(a){J.call(this,a)};
uv=function(a){J.call(this,a,-1,jna)};
vv=function(a){J.call(this,a,-1,kna)};
wv=function(a){J.call(this,a)};
xv=function(a){J.call(this,a)};
yv=function(a){J.call(this,a)};
zv=function(a){J.call(this,a)};
Av=function(a){J.call(this,a)};
Bv=function(a){J.call(this,a)};
Cv=function(a){J.call(this,a)};
Dv=function(a){J.call(this,a)};
Ev=function(a){J.call(this,a)};
Fv=function(a){J.call(this,a)};
Gv=function(a){J.call(this,a)};
Hv=function(a){J.call(this,a)};
Iv=function(a){J.call(this,a,-1,lna)};
Jv=function(a){J.call(this,a)};
Kv=function(a){J.call(this,a,-1,mna)};
Lv=function(a){J.call(this,a)};
Mv=function(a){J.call(this,a)};
Nv=function(a){J.call(this,a)};
Ov=function(a){J.call(this,a)};
Pv=function(a){J.call(this,a)};
Qv=function(a){J.call(this,a)};
Rv=function(a){J.call(this,a)};
Sv=function(a){J.call(this,a)};
Tv=function(a){J.call(this,a)};
Uv=function(a){J.call(this,a)};
Vv=function(a){J.call(this,a)};
Wv=function(a){J.call(this,a)};
Xv=function(a){J.call(this,a)};
Yv=function(a){J.call(this,a)};
Zv=function(a){J.call(this,a)};
$v=function(a){J.call(this,a)};
aw=function(a){J.call(this,a)};
bw=function(a){J.call(this,a)};
cw=function(a){J.call(this,a)};
dw=function(a){J.call(this,a)};
ew=function(a){J.call(this,a)};
fw=function(a){J.call(this,a)};
gw=function(a){J.call(this,a)};
hw=function(a){J.call(this,a)};
iw=function(a){J.call(this,a)};
jw=function(a){J.call(this,a)};
kw=function(a){J.call(this,a)};
lw=function(a){J.call(this,a)};
mw=function(a){J.call(this,a)};
nw=function(a){J.call(this,a)};
ow=function(a){J.call(this,a)};
pw=function(a){J.call(this,a,-1,nna)};
qw=function(a){J.call(this,a)};
rw=function(a){J.call(this,a)};
tw=function(a){J.call(this,a,-1,ona)};
uw=function(a){J.call(this,a)};
vw=function(a){J.call(this,a)};
ww=function(a){J.call(this,a)};
xw=function(a){J.call(this,a)};
yw=function(a){J.call(this,a)};
Aw=function(a){J.call(this,a)};
Fw=function(a){J.call(this,a)};
Gw=function(a){J.call(this,a)};
Hw=function(a){J.call(this,a)};
Iw=function(a){J.call(this,a)};
Jw=function(a){J.call(this,a)};
Kw=function(a){J.call(this,a)};
Lw=function(a){J.call(this,a)};
Mw=function(a){J.call(this,a)};
Nw=function(a){J.call(this,a)};
Ow=function(a){J.call(this,a,-1,pna)};
Pw=function(a){J.call(this,a)};
Qw=function(a){J.call(this,a)};
Rw=function(a){J.call(this,a)};
Sw=function(a){J.call(this,a)};
Tw=function(a){J.call(this,a)};
Uw=function(a){J.call(this,a)};
Vw=function(a){J.call(this,a)};
Ww=function(a){J.call(this,a)};
Xw=function(a){J.call(this,a)};
Yw=function(a){J.call(this,a)};
Zw=function(a){J.call(this,a)};
$w=function(a){J.call(this,a)};
ax=function(a){J.call(this,a)};
bx=function(a){J.call(this,a)};
cx=function(a){J.call(this,a)};
dx=function(a){J.call(this,a)};
ex=function(a){J.call(this,a)};
fx=function(a){J.call(this,a)};
gx=function(a){J.call(this,a)};
hx=function(a){J.call(this,a)};
ix=function(a){J.call(this,a)};
jx=function(a){J.call(this,a)};
kx=function(a){J.call(this,a)};
lx=function(a){J.call(this,a)};
mx=function(a){J.call(this,a)};
nx=function(a){J.call(this,a)};
ox=function(a){J.call(this,a)};
px=function(a){J.call(this,a,-1,qna)};
qx=function(a){J.call(this,a)};
rna=function(a,b){I(a,Tv,1,b)};
rx=function(a){J.call(this,a)};
sna=function(a,b){return I(a,Tv,1,b)};
sx=function(a){J.call(this,a,-1,tna)};
una=function(a,b){return I(a,Tv,2,b)};
tx=function(a){J.call(this,a)};
ux=function(a){J.call(this,a)};
vx=function(a){J.call(this,a)};
wx=function(a){J.call(this,a)};
xx=function(a){J.call(this,a)};
yx=function(a){J.call(this,a)};
zx=function(a){var b=new yx;return H(b,1,a)};
Ax=function(a,b){return H(a,2,b)};
Bx=function(a){J.call(this,a,-1,vna)};
Cx=function(a){J.call(this,a)};
Dx=function(a){J.call(this,a,-1,wna)};
Ex=function(a,b){Sh(a,68,yx,b)};
Fx=function(a){J.call(this,a)};
Gx=function(a){J.call(this,a)};
Hx=function(a){J.call(this,a,-1,xna)};
Ix=function(a){J.call(this,a,-1,yna)};
Jx=function(a){J.call(this,a)};
Kx=function(a){J.call(this,a)};
Lx=function(a){J.call(this,a,-1,zna)};
Mx=function(a){J.call(this,a)};
Nx=function(a){J.call(this,a,-1,Ana)};
Ox=function(a){J.call(this,a)};
Px=function(a){J.call(this,a)};
Qx=function(a){J.call(this,a,-1,Bna)};
Rx=function(a){J.call(this,a)};
Sx=function(a){J.call(this,a)};
Tx=function(a){J.call(this,a,-1,Cna)};
Ux=function(a){J.call(this,a,-1,Dna)};
Vx=function(a){J.call(this,a)};
Wx=function(a){J.call(this,a)};
Xx=function(a){J.call(this,a)};
Yx=function(a){J.call(this,a)};
Zx=function(a){J.call(this,a,475)};
$x=function(a){J.call(this,a)};
ay=function(a){J.call(this,a)};
by=function(a){J.call(this,a,-1,Ena)};
Fna=function(){return g.Ga("yt.ads.biscotti.lastId_")||""};
Gna=function(a){g.Fa("yt.ads.biscotti.lastId_",a)};
dy=function(){var a=arguments;1<a.length?cy[a[0]]=a[1]:1===a.length&&Object.assign(cy,a[0])};
g.ey=function(a,b){return a in cy?cy[a]:b};
fy=function(a){var b=cy.EXPERIMENT_FLAGS;return b?b[a]:void 0};
g.gy=function(a){a=Hna(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.hy=function(a,b){a=Hna(a);return void 0===a&&void 0!==b?b:Number(a||0)};
iy=function(){return g.ey("EXPERIMENTS_TOKEN","")};
Hna=function(a){var b=g.ey("EXPERIMENTS_FORCED_FLAGS",{})||{};return void 0!==b[a]?b[a]:g.ey("EXPERIMENT_FLAGS",{})[a]};
jy=function(){for(var a=[],b=g.ey("EXPERIMENTS_FORCED_FLAGS",{}),c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.ey("EXPERIMENT_FLAGS",{});var e=g.t(Object.keys(c));for(d=e.next();!d.done;d=e.next())d=d.value,d.startsWith("force_")&&void 0===b[d]&&a.push({key:d,value:String(c[d])});return a};
Ina=function(a){ky.forEach(function(b){return b(a)})};
g.my=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.ly(b)}}:a};
g.ly=function(a){var b=g.Ga("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.ey("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),dy("ERRORS",b));Ina(a)};
ny=function(a,b,c,d,e){var f=g.Ga("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.ey("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),dy("ERRORS",f))};
oy=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1==f.length&&f[0]||2==f.length)try{var h=Jna(f[0]||""),l=Jna(f[1]||"");h in c?Array.isArray(c[h])?g.Cb(c[h],l):c[h]=[c[h],l]:c[h]=l}catch(q){var m=q,n=f[0],p=String(oy);m.args=[{key:n,value:f[1],query:a,method:Kna==p?"unchanged":p}];Lna.hasOwnProperty(n)||ny(m)}}return c};
py=function(a){var b=[];g.Tc(a,function(c,d){var e=g.Ke(d),f;Array.isArray(c)?f=c:f=[c];g.Ob(f,function(h){""==h?b.push(e):b.push(e+"="+g.Ke(h))})});
return b.join("&")};
qy=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return oy(a,"&")};
ry=function(a){a=a.split(",");return a=a.map(function(b){return qy(b)})};
g.sy=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),qy(1<a.length?a[1]:a[0])):{}};
ty=function(a,b){return Mna(a,b||{},!0)};
uy=function(a,b){return Mna(a,b||{},!1)};
Mna=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=qy(e[1]||"");for(var f in b)if(c||!g.$c(e,f))e[f]=b[f];return g.Zi(a,e)+d};
vy=function(a){if(!b)var b=window.location.href;var c=g.Ti(1,a),d=g.Ui(a);c&&d?(a=a.match(Si),b=b.match(Si),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.Ui(b)==d&&(Number(g.Ti(4,b))||null)==(Number(g.Ti(4,a))||null):!0;return a};
wy=function(a){a||(a=document.location.href);a=g.Ti(1,a);return null!==a&&"https"==a};
yy=function(a){a=g.Ui(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Jna=function(a){return a&&a.match(Nna)?a:Le(a)};
zy=function(a){var b=Ona;a=void 0===a?Fna():a;var c=Object,d=c.assign,e=Pna(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(F){}try{var m=f.outerWidth;var n=f.outerHeight}catch(F){}try{var p=f.innerWidth;var q=f.innerHeight}catch(F){}try{var r=f.screenLeft;var v=f.screenTop}catch(F){}try{p=f.innerWidth,q=f.innerHeight}catch(F){}try{var x=f.screen.availWidth;var z=f.screen.availTop}catch(F){}f=[r,v,h,l,x,z,m,n,p,q];h=wia(!1,b.j.top);l={};var B=void 0===B?g.Ea:B;m=new Bp;"SVGElement"in B&&"createElementNS"in
B.document&&m.set(0);n=Jha();n["allow-top-navigation-by-user-activation"]&&m.set(1);n["allow-popups-to-escape-sandbox"]&&m.set(2);B.crypto&&B.crypto.subtle&&m.set(3);"TextDecoder"in B&&"TextEncoder"in B&&m.set(4);B=ela(m);b=(l.bc=B,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Pl(b.u),l.wgl=!!Bl.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Pna=function(a){var b={};b.dt=Qna;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.u.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Bl:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Bl.screen)?void 0:f.height;var h;b.u_w=null==(h=Bl.screen)?void 0:h.width;var l;b.u_ah=null==(l=Bl.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Bl.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Bl.screen)?void 0:
n.colorDepth}catch(p){}return b};
Sna=function(){if(!Rna)return null;var a=Rna();return"open"in a?a:null};
g.By=function(a){switch(Ay(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
Ay=function(a){return a&&"status"in a?a.status:-1};
g.Cy=function(a,b){"function"===typeof a&&(a=g.my(a));return window.setTimeout(a,b)};
g.Dy=function(a,b){"function"===typeof a&&(a=g.my(a));return window.setInterval(a,b)};
g.Ey=function(a){window.clearTimeout(a)};
Una=function(a,b){b=void 0===b?{}:b;var c=vy(a),d=g.gy("web_ajax_ignore_global_headers_if_set"),e;for(e in Tna){var f=g.ey(Tna[e]);"X-Goog-Visitor-Id"!==e||f||(f=g.ey("VISITOR_DATA"));!f||!c&&!Fy(a,e)||d&&void 0!==b[e]||!(g.gy("move_vss_away_from_login_info_cookie")||"X-Goog-AuthUser"!==e&&"X-Goog-PageId"!==e)||(b[e]=f)}g.gy("move_vss_away_from_login_info_cookie")&&c&&g.ey("SESSION_INDEX")&&(b["X-Yt-Auth-Test"]="test");"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];
if(c||Fy(a,"X-YouTube-Utc-Offset"))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||Fy(a,"X-YouTube-Time-Zone")){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(l){}h&&(b["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&!Fy(a,"X-YouTube-Ad-Signals")||(b["X-YouTube-Ad-Signals"]=py(zy()));return b};
Wna=function(a,b){var c=g.Ui(a);g.gy("debug_handle_relative_url_for_query_forward_killswitch")||!c&&vy(a)&&(c=document.location.hostname);var d=Ri(g.Ti(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=qy(b),f={};g.Ob(Vna,function(h){e[h]&&(f[h]=e[h])});
return uy(a,f)};
Fy=function(a){return g.Ui(a)?!1:!0};
g.Hy=function(a,b){var c=b.format||"JSON";a=Xna(a,b);var d=Yna(a,b),e=!1,f=Gy(a,function(m){if(!e){e=!0;l&&g.Ey(l);var n=g.By(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Zna(a,c,m,b.convertToSafeHtml);if(n)a:if(m&&204==m.status)n=!0;else{switch(c){case "XML":n=0==parseInt(p&&p.return_code,10);break a;case "RAW":n=!0;break a}n=!!p}p=p||{};q=b.context||g.Ea;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,
p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.Cy(function(){e||(e=!0,f.abort(),g.Ey(l),h.call(b.context||g.Ea,f))},d)}return f};
Xna=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.ey("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=ty(a,b);return a};
Yna=function(a,b){var c=g.ey("XSRF_FIELD_NAME"),d=g.ey("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.ey("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.Ui(a)&&!b.withCredentials&&g.Ui(a)!=document.location.hostname||"POST"!=b.method||l&&"application/x-www-form-urlencoded"!=l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.gy("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=qy(e),g.od(e,f),e=b.postBodyFormat&&
"JSON"==b.postBodyFormat?JSON.stringify(e):g.Yi(e));f=e||f&&!g.hd(f);!$na&&f&&"POST"!=b.method&&($na=!0,g.ly(Error("AJAX request with postData should use POST")));return e};
Zna=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,ny(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?aoa(a):null)e={},g.Ob(a.getElementsByTagName("*"),function(h){e[h.tagName]=boa(h)})}d&&coa(e);
return e};
coa=function(a){if(g.Ja(a))for(var b in a)"html_content"==b||Haa(b,"_html")?a[b]=g.we(a[b]):coa(a[b])};
aoa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
boa=function(a){var b="";g.Ob(a.childNodes,function(c){b+=c.nodeValue});
return b};
Iy=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.Hy(a,b)};
Gy=function(a,b,c,d,e,f,h){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&g.my(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Sna();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;g.gy("debug_forward_web_query_parameters")&&(a=Wna(a,window.location.search));m.open(c,a,!0);f&&(m.responseType=f);h&&(m.withCredentials=!0);c="POST"==c&&(void 0===window.FormData||!(d instanceof FormData));if(e=Una(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
m.send(d);return m};
Ky=function(a,b){var c=g.md(b),d;return(new g.Of(function(e,f){c.onSuccess=function(h){g.By(h)?e(new doa(h)):f(new Jy("Request failed, status="+Ay(h),"net.badstatus",h))};
c.onError=function(h){f(new Jy("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new Jy("Request timed out","net.timeout",h))};
d=g.Hy(a,c)})).Zj(function(e){e instanceof Zf&&d.abort();
return Rf(e)})};
g.Ly=function(a,b,c,d){function e(l,m,n){return l.Zj(function(p){if(0>=m||403===Ay(p.xhr))return Rf(new Jy("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(Ky(a,b),m-1,q)})})}
function f(l){return new g.Of(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(Ky(a,b),c-1,d)};
Jy=function(a,b,c){cb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
doa=function(a){this.xhr=a};
My=function(a){this.j=void 0===a?null:a;this.B=0;this.u=null};
Ny=function(a){var b=new My;a=void 0===a?null:a;b.B=2;b.u=void 0===a?null:a;return b};
Oy=function(a){var b=new My;a=void 0===a?null:a;b.B=1;b.u=void 0===a?null:a;return b};
g.Ry=function(a,b,c,d,e){Py||Qy.set(""+a,b,{HG:c,path:"/",domain:void 0===d?"youtube.com":d,Q8:void 0===e?!1:e})};
g.Sy=function(a,b){if(!Py)return Qy.get(""+a,b)};
g.Ty=function(a,b,c){Py||Qy.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
eoa=function(){if(!Qy.isEnabled())return!1;if(!Qy.Bf())return!0;Qy.set("TESTCOOKIESENABLED","1",{HG:60});if("1"!==Qy.get("TESTCOOKIESENABLED"))return!1;Qy.remove("TESTCOOKIESENABLED");return!0};
g.K=function(a,b){if(a)return a[b.name]};
Uy=function(a){var b=g.ey("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(tfa(a)));return a};
foa=function(a,b){var c={};g.ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.ey("INNERTUBE_API_KEY"));g.gy("json_condensed_response")&&(c.prettyPrint="false");return a=uy(a,c)};
Vy=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:vy(a)?"same-origin":"cors",credentials:vy(a)?"same-origin":"include"};b={};for(var d=g.t(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
goa=function(){var a=/Chrome\/(\d+)/.exec(g.hc());return a?parseFloat(a[1]):NaN};
Xy=function(){return Wy("android")&&Wy("chrome")&&!(Wy("trident/")||Wy("edge/"))&&!Wy("cobalt")};
hoa=function(){return Wy("armv7")||Wy("aarch64")||Wy("android")};
g.Yy=function(){return Wy("cobalt")};
Zy=function(){return Wy("cobalt")&&Wy("appletv")};
$y=function(){return Wy("(ps3; leanback shell)")||Wy("ps3")&&g.Yy()};
ioa=function(){return Wy("(ps4; leanback shell)")||Wy("ps4")&&g.Yy()};
g.joa=function(){return g.Yy()&&(Wy("ps4 vr")||Wy("ps4 pro vr"))};
az=function(){var a=/WebKit\/([0-9]+)/.exec(g.hc());return!!(a&&600<=parseInt(a[1],10))};
bz=function(){var a=/WebKit\/([0-9]+)/.exec(g.hc());return!!(a&&602<=parseInt(a[1],10))};
koa=function(){return Wy("iemobile")||Wy("windows phone")&&Wy("edge")};
ez=function(){return(cz||dz)&&Wy("applewebkit")&&!Wy("version")&&(!Wy("safari")||Wy("gsa/"))};
gz=function(){return g.fz&&Wy("version/")};
hz=function(){return Wy("smart-tv")&&Wy("samsung")};
Wy=function(a){var b=g.hc();return b?0<=b.toLowerCase().indexOf(a):!1};
iz=function(){return hfa()||ez()||gz()?!0:g.ey("EOM_VISITOR_DATA")?!1:!0};
jz=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
kz=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
lz=function(a,b){return void 0===b||null===b?a:Number(b)};
mz=function(a,b){return void 0===b||null===b?a:b.toString()};
nz=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match(loa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
oz=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};
moa=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===pz(a,!1)};
g.qz=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
pz=function(a,b){b=(void 0===b?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?kz(b,c.embeddedPlayerMode,noa):b};
sz=function(a){cb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof rz;this.isTimeout=a instanceof Jy&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof Zf};
rz=function(){cb.call(this,"Biscotti ID is missing from server")};
ooa=function(){if(g.gy("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!iz())return Error("User has not consented - not fetching biscotti id.");var a=g.ey("PLAYER_VARS",{});if("1"==g.jd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(moa(a))return Error("Biscotti id fetching has been disabled for pfl.")};
roa=function(){var a=ooa();if(void 0!==a)return Rf(a);tz||(tz=Ky("//web.archive.org/web/20230426095903/https://googleads.g.doubleclick.net/pagead/id",uz).then(poa).Zj(function(b){return qoa(2,b)}));
return tz};
poa=function(a){a=a.xhr.responseText;if(!Rb(a,")]}'"))throw new rz;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new rz;a=a.id;Gna(a);tz=Oy(a);soa(18E5,2);return a};
qoa=function(a,b){b=new sz(b);Gna("");tz=Ny(b);0<a&&soa(12E4,a-1);throw b;};
soa=function(a,b){g.Cy(function(){Ky("//web.archive.org/web/20230426095903/https://googleads.g.doubleclick.net/pagead/id",uz).then(poa,function(c){return qoa(b,c)}).Zj(g.Md)},a)};
toa=function(){try{var a=g.Ga("yt.ads.biscotti.getId_");return a?a():roa()}catch(b){return Rf(b)}};
xoa=function(a,b,c){a&&(a.dataset?a.dataset[uoa(b)]=String(c):zga([new Yj(voa[0].toLowerCase(),woa)],a,"data-"+b,c.toString()))};
yoa=function(a){return a?a.dataset?a.dataset[uoa("loaded")]:a.getAttribute("data-loaded"):null};
uoa=function(a){return zoa[a]||(zoa[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};
Aoa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=vz+"VisibilityState";if(b in a)return a[b]};
wz=function(a,b){var c;Wm(a,function(d){c=b[d];return!!c});
return c};
xz=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()};
Az=function(a){var b;g.yz()?zz()==a&&(b=document):b=a;return b&&(a=wz(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Bz=function(a){return g.nb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Boa=function(){var a=document;return g.nb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.yz=function(){return!!wz(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
zz=function(a){a=void 0===a?!1:a;var b=wz(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
Cz=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 Coa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.u=a.pageY}}catch(e){}};
Doa=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.u=a.clientY+b}};
Eoa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return gd(Dz,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.Ja(e[4])&&g.Ja(d)&&g.kd(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.Ez=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Eoa(a,b,c,d);if(e)return e;e=++Foa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new Cz(l);if(!Cf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new Cz(l);
l.currentTarget=a;return c.call(a,l)};
h=g.my(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Goa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);Dz[e]=[a,b,c,h,d];return e};
Hoa=function(a,b){var c=document.body||document;return g.Ez(c,"click",function(d){var e=Cf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.Fz=function(a){a&&("string"==typeof a&&(a=[a]),g.Ob(a,function(b){if(b in Dz){var c=Dz[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Goa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete Dz[b]}}))};
Ioa=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
Gz=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
Joa=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
Koa=function(a){return Hoa(a,function(b){return g.Pp(b,"ytp-ad-has-logging-urls")})};
g.Loa=function(a,b,c){var d=void 0===d?{}:d;var e;return e=g.Ez(a,b,function(){g.Fz(e);c.apply(a,arguments)},d)};
Hz=function(a){for(var b in Dz)Dz[b][0]==a&&g.Fz(b)};
Iz=function(a){this.J=a;this.j=null;this.C=0;this.I=null;this.D=0;this.u=[];for(a=0;4>a;a++)this.u.push(0);this.B=0;this.oa=g.Ez(window,"mousemove",(0,g.Oa)(this.ea,this));this.T=g.Dy((0,g.Oa)(this.Z,this),25)};
Jz=function(a){g.C.call(this);this.T=[];this.Pb=a||this};
Kz=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
g.Lz=function(a,b){for(;a.T.length;){var c=a.T.pop(),d=void 0;b&&Moa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
Mz=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.md(b);this.assets=a.assets||{};this.attrs=a.attrs||g.md(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||{}};
Noa=function(a){a instanceof Mz||(a=new Mz(a));return a};
g.Pz=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.Nz)():Oz())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.Qz=function(a){var b=Oz(),c=(0,g.Nz)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
Ooa=function(){var a=(0,g.Nz)();if(a&&(a=a.u("yt-player-quality")))return a.creation};
g.Rz=function(a){try{var b=Oz(),c=(0,g.Nz)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.Sz=function(){return g.Qz("yt-remote-session-screen-id")};
Tz=function(){this.cY=!0};
Poa=function(){Tz.instance||(Tz.instance=new Tz);return Tz.instance};
Qoa=function(a){var b=this;this.u=void 0;this.j=!1;a.addEventListener("beforeinstallprompt",function(c){c.preventDefault();b.u=c});
a.addEventListener("appinstalled",function(){b.j=!0},{once:!0})};
Uz=function(){if(!g.Ea.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ea.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ea.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ea.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ea.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
Roa=function(){this.j=g.ey("ALT_PREF_COOKIE_NAME","PREF");this.u=g.ey("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.Sy(this.j);a&&this.parse(a)};
g.Wz=function(){Vz||(Vz=new Roa);return Vz};
g.Xz=function(a,b){return!!((Soa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Zz=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=Soa(c)||0;d=b?d|a:d&~a;0===d?delete Yz[c]:(b=d.toString(16),Yz[c]=b.toString())};
$z=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
aA=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Soa=function(a){a=void 0!==Yz[a]?Yz[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Toa=function(){var a=g.Ea.navigator;return a?a.connection:void 0};
Voa=function(){var a=Toa();if(a){var b=Uoa[a.type||"unknown"]||"CONN_UNKNOWN";a=Uoa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Xoa=function(){var a=Toa();if(null!=a&&a.effectiveType)return Woa.hasOwnProperty(a.effectiveType)?Woa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.bA=function(a){var b=g.ya.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.u(b))};
g.dA=function(){try{return g.cA(),!0}catch(a){return!1}};
g.cA=function(a){if(void 0!==g.ey("DATASYNC_ID"))return g.ey("DATASYNC_ID");throw new g.bA("Datasync ID not set",void 0===a?"unknown":a);};
eA=function(){this.j=new WeakMap};
g.gA=function(a,b,c){return fA(b,0,c)};
hA=function(){eA.apply(this,arguments)};
g.iA=function(){hA.instance||(hA.instance=new hA);return hA.instance};
g.jA=function(){return!!g.Ga("yt.scheduler.instance")};
fA=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Ga("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.Cy(a,c||0)};
kA=function(a){var b=g.Ga("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
lA=function(a){var b;(b=g.yq(a))||(a=new uq(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);this.j=(a=b)?new oq(a):null;this.u=document.domain||window.location.hostname};
nA=function(){var a;return null==(a=mA())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Yoa=function(){var a={};for(oA=new pA(void 0===a.handleError?qA:a.handleError,void 0===a.logEvent?g.rA:a.logEvent);0<sA.length;)switch(a=sA.shift(),a.type){case "ERROR":oA.KC(a.payload);break;case "EVENT":oA.logEvent(a.eventType,a.payload)}};
uA=function(a){tA||(oA?oA.KC(a):(sA.push({type:"ERROR",payload:a}),10<sA.length&&sA.shift()))};
vA=function(a,b){tA||(oA?oA.logEvent(a,b):(sA.push({type:"EVENT",eventType:a,payload:b}),10<sA.length&&sA.shift()))};
wA=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
xA=function(a){return a.substr(0,a.indexOf(":"))||a};
g.yA=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?Zoa[a]:c;d=void 0===d?$oa[a]:d;e=void 0===e?apa[a]:e;g.bA.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.yA.prototype)};
zA=function(a,b){g.yA.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Zoa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,zA.prototype)};
AA=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,AA.prototype)};
CA=function(a,b,c,d){b=xA(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.yA)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.yA("QUOTA_EXCEEDED",a);if(g.BA&&"UnknownError"===e.name)return new g.yA("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof AA)return new g.yA("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&bpa.some(function(f){return e.message.includes(f)}))return new g.yA("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.yA("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",jH:e.name})];e.level="WARNING";return e};
g.DA=function(a,b,c){var d=nA();return new g.yA("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
cpa=function(a){if(!a)throw Error();throw a;};
dpa=function(a){return a};
EA=function(a){this.j=a};
g.FA=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.t(d.u);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.t(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.u=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
epa=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.FA?GA(a,b,f,d,e):d(f)}catch(h){e(h)}};
fpa=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.FA?GA(a,b,f,d,e):d(f)}catch(h){e(h)}};
GA=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.FA?GA(a,b,f,d,e):d(f)},function(f){e(f)})};
gpa=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)};
hpa=function(a){return new Promise(function(b,c){gpa(a,b,c)})};
HA=function(a){return new g.FA(new EA(function(b,c){gpa(a,b,c)}))};
IA=function(a,b){return new g.FA(new EA(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
ipa=function(a,b){this.request=a;this.cursor=b};
JA=function(a){return HA(a).then(function(b){return b?new ipa(a,b):null})};
jpa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.B=Math.round((0,g.M)());this.u=!1};
g.LA=function(a,b,c){a=a.j.createObjectStore(b,c);return new KA(a)};
MA=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.PA=function(a,b,c){return g.NA(a,[b],{mode:"readwrite",Ub:!0},function(d){return g.OA(d.objectStore(b),c)})};
g.NA=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,v,x,z;return g.A(function(B){switch(B.j){case 1:var F={mode:"readonly",Ub:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?F.mode=c:Object.assign(F,c);e=F;a.transactionCount++;f=e.Ub?3:1;h=0;case 2:if(l){B.Ka(3);break}h++;m=Math.round((0,g.M)());g.pa(B,4);n=a.j.transaction(b,e.mode);F=new QA(n);F=kpa(F,d);return g.y(B,F,6);case 6:return p=B.u,q=Math.round((0,g.M)()),lpa(a,m,q,h,void 0,b.join(),e),B.return(p);case 4:r=g.sa(B);v=Math.round((0,g.M)());
x=CA(r,a.j.name,b.join(),a.j.version);if((z=x instanceof g.yA&&!x.j)||h>=f)lpa(a,m,v,h,x,b.join(),e),l=x;B.Ka(2);break;case 3:return B.return(Promise.reject(l))}})};
lpa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.yA&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&vA("QUOTA_EXCEEDED",{dbName:xA(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.yA&&"UNKNOWN_ABORT"===e.type&&(c-=a.B,0>c&&c>=Math.pow(2,31)&&(c=0),vA("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.u=!0),mpa(a,!1,d,f,b,h.tag),uA(e)):mpa(a,!0,d,
f,b,h.tag)};
mpa=function(a,b,c,d,e,f){vA("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.u,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
KA=function(a){this.j=a};
g.RA=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
npa=function(a,b){return g.fB(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
opa=function(a,b,c){var d=[];return g.fB(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
qpa=function(a){return"getAllKeys"in IDBObjectStore.prototype?HA(a.j.getAllKeys(void 0,void 0)):ppa(a)};
ppa=function(a){var b=[];return g.rpa(a,{query:void 0},function(c){b.push(c.ZF());return c.continue()}).then(function(){return b})};
g.OA=function(a,b,c){return HA(a.j.put(b,c))};
g.fB=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return gB(a).then(function(d){return IA(d,c)})};
g.rpa=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 JA(a).then(function(e){return IA(e,c)})};
QA=function(a){var b=this;this.j=a;this.B=new Map;this.u=!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.u){e=g.yA;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
kpa=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.t(d).next().value})};
spa=function(a){this.j=a};
tpa=function(a,b,c){var d=[];return g.hB(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
g.hB=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return gB(a).then(function(d){return IA(d,c)})};
upa=function(a,b){this.request=a;this.cursor=b};
gB=function(a){return HA(a).then(function(b){return b?new upa(a,b):null})};
vpa=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new jpa(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.q9,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(v){try{if(null===v.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");v.dataLoss&&"none"!==v.dataLoss&&vA("IDB_DATA_CORRUPTED",{reason:v.dataLossMessage||"unknown reason",dbName:xA(a)});var x=f(),z=new QA(h.transaction);
p&&p(x,function(B){return v.oldVersion<B&&v.newVersion>=B},z);
z.done.catch(function(B){e(B)})}catch(B){e(B)}});
h.addEventListener("success",function(){var v=h.result;m&&v.addEventListener("versionchange",function(){m(f())});
v.addEventListener("close",function(){vA("IDB_UNEXPECTEDLY_CLOSED",{dbName:xA(a),dbVersion:v.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
wpa=function(a,b,c){c=void 0===c?{}:c;return vpa(a,b,c)};
iB=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.A(function(h){if(1==h.j)return g.pa(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.y(h,hpa(c),4);
if(2!=h.j)return g.ra(h,0);f=g.sa(h);throw CA(f,a,"",-1);})};
jB=function(a,b){this.name=a;this.options=b;this.B=!0;this.D=this.C=0};
xpa=function(a,b){return new g.yA("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.kB=function(a,b){if(!b)throw g.DA("openWithToken",xA(a.name));return a.open()};
ypa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,g.kB(lB,b),2);c=d.u;return d.return(g.NA(c,["databases"],{Ub:!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.OA(f,a).then(function(){})})}))})};
mB=function(a,b){var c;return g.A(function(d){if(1==d.j)return a?g.y(d,g.kB(lB,b),2):d.return();c=d.u;return d.return(c.delete("databases",a))})};
zpa=function(a,b){var c,d;return g.A(function(e){return 1==e.j?(c=[],g.y(e,g.kB(lB,b),2)):3!=e.j?(d=e.u,g.y(e,g.NA(d,["databases"],{Ub:!0,mode:"readonly"},function(f){c.length=0;return g.fB(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return h.continue()})}),3)):e.return(c)})};
Apa=function(a,b){return zpa(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
Bpa=function(){var a,b,c,d;return g.A(function(e){switch(e.j){case 1:a=nA();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(nB&&az()&&!bz()||g.oB)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.pa(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};
return g.y(e,ypa(d,pB),4);case 4:return g.y(e,mB("yt-idb-test-do-not-use",pB),5);case 5:return e.return(!0);case 2:return g.sa(e),e.return(!1)}})};
Cpa=function(){if(void 0!==qB)return qB;tA=!0;return qB=Bpa().then(function(a){tA=!1;var b;if(null!=(b=mA())&&b.j){var c;b={hasSucceededOnce:(null==(c=nA())?void 0:c.hasSucceededOnce)||a};var d;null==(d=mA())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
rB=function(){return g.Ga("ytglobal.idbToken_")||void 0};
g.sB=function(){var a=rB();return a?Promise.resolve(a):Cpa().then(function(b){(b=b?pB:void 0)&&g.Fa("ytglobal.idbToken_",b);return b})};
Dpa=function(a){if(!g.dA())throw a=new g.yA("AUTH_INVALID",{dbName:a}),uA(a),a;var b=g.cA();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Epa=function(a,b,c,d){var e,f,h,l,m,n;return g.A(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.y(p,g.sB(),2);case 2:h=p.u;if(!h)throw l=g.DA("openDbImpl",a,b),g.gy("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),uA(l),l;wA(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Dpa(a);g.pa(p,3);return g.y(p,ypa(m,h),5);case 5:return g.y(p,wpa(m.actualName,b,d),6);case 6:return p.return(p.u);case 3:return n=g.sa(p),g.pa(p,7),g.y(p,mB(m.actualName,
h),9);case 9:g.ra(p,8);break;case 7:g.sa(p);case 8:throw n;}})};
Fpa=function(a,b,c){c=void 0===c?{}:c;return Epa(a,b,!1,c)};
Gpa=function(a,b,c){c=void 0===c?{}:c;return Epa(a,b,!0,c)};
Hpa=function(a,b){b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.y(e,g.sB(),2);if(3!=e.j){c=e.u;if(!c)return e.return();wA(a);d=Dpa(a);return g.y(e,iB(d.actualName,b),3)}return g.y(e,mB(d.actualName,c),0)})};
Ipa=function(a,b,c){a=a.map(function(d){return g.A(function(e){return 1==e.j?g.y(e,iB(d.actualName,b),2):g.y(e,mB(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Jpa=function(a){var b=void 0===b?{}:b;var c,d;return g.A(function(e){if(1==e.j)return g.y(e,g.sB(),2);if(3!=e.j){c=e.u;if(!c)return e.return();wA(a);return g.y(e,Apa(a,c),3)}d=e.u;return g.y(e,Ipa(d,b,c),0)})};
Kpa=function(a,b){b=void 0===b?{}:b;var c;return g.A(function(d){if(1==d.j)return g.y(d,g.sB(),2);if(3!=d.j){c=d.u;if(!c)return d.return();wA(a);return g.y(d,iB(a,b),3)}return g.y(d,mB(a,c),0)})};
tB=function(a,b){jB.call(this,a,b);this.options=b;wA(a)};
Lpa=function(a,b){var c;return function(){c||(c=new tB(a,b));return c}};
g.uB=function(a,b){return Lpa(a,b)};
vB=function(a){return g.kB(Mpa(),a)};
Npa=function(a,b,c,d){var e,f,h;return g.A(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.M)()},g.y(l,vB(c),2);case 2:return f=l.u,g.y(l,f.clear("hotConfigStore"),3);case 3:return g.y(l,g.PA(f,"hotConfigStore",e),4);case 4:return h=l.u,l.return(h)}})};
Opa=function(a,b,c,d,e){var f,h,l;return g.A(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.M)()},g.y(m,vB(d),2);case 2:return h=m.u,g.y(m,h.clear("coldConfigStore"),3);case 3:return g.y(m,g.PA(h,"coldConfigStore",f),4);case 4:return l=m.u,m.return(l)}})};
Ppa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.y(d,vB(a),2):3!=d.j?(b=d.u,c=void 0,g.y(d,g.NA(b,["coldConfigStore"],{mode:"readwrite",Ub:!0},function(e){return g.hB(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Qpa=function(a){var b,c;return g.A(function(d){return 1==d.j?g.y(d,vB(a),2):3!=d.j?(b=d.u,c=void 0,g.y(d,g.NA(b,["hotConfigStore"],{mode:"readwrite",Ub:!0},function(e){return g.hB(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Rpa=function(){return g.A(function(a){return g.y(a,Jpa("ytGcfConfig"),0)})};
CB=function(){var a=this;this.D=!1;this.B=this.C=0;this.Ne={F7a:function(){a.D=!0},
Y6a:function(){return a.j},
u8a:function(b){wB(a,b)},
q8a:function(b){xB(a,b)},
q3:function(){return a.coldHashData},
r3:function(){return a.hotHashData},
j7a:function(){return a.u},
d7a:function(){return yB()},
f7a:function(){return zB()},
e7a:function(){return g.Ga("yt.gcf.config.coldHashData")},
g7a:function(){return g.Ga("yt.gcf.config.hotHashData")},
J8a:function(){Spa(a)},
l8a:function(){AB(a,"hotHash");BB(a,"coldHash");delete CB.instance},
s8a:function(b){a.B=b},
a7a:function(){return a.B}}};
Tpa=function(){CB.instance||(CB.instance=new CB);return CB.instance};
Upa=function(a){var b;g.A(function(c){if(1==c.j)return g.gy("gcf_config_store_enabled")||g.gy("delete_gcf_config_db")?g.gy("gcf_config_store_enabled")?g.y(c,g.sB(),3):c.Ka(2):c.return();2!=c.j&&((b=c.u)&&g.dA()&&!g.gy("delete_gcf_config_db")?(a.D=!0,Spa(a)):(xB(a,g.ey("RAW_COLD_CONFIG_GROUP")),BB(a,g.ey("SERIALIZED_COLD_HASH_DATA")),DB(a,a.j.configData),wB(a,g.ey("RAW_HOT_CONFIG_GROUP")),AB(a,g.ey("SERIALIZED_HOT_HASH_DATA"))));return g.gy("delete_gcf_config_db")?g.y(c,Rpa(),0):c.Ka(0)})};
Vpa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.u)return l.return(zB());if(!a.D)return b=g.DA("getHotConfig IDB not initialized"),ny(b),l.return(Promise.reject(b));c=rB();d=g.ey("TIME_CREATED_MS");if(!c){e=g.DA("getHotConfig token error");ny(e);l.Ka(2);break}return g.y(l,Qpa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return wB(a,f.config),AB(a,f.hashData),l.return(zB());case 2:wB(a,g.ey("RAW_HOT_CONFIG_GROUP"));AB(a,g.ey("SERIALIZED_HOT_HASH_DATA"));if(!(c&&a.u&&a.hotHashData)){l.Ka(4);
break}return g.y(l,Npa(a.u,a.hotHashData,c,d),4);case 4:return a.u?l.return(zB()):(h=new g.bA("Config not available in ytConfig"),ny(h),l.return(Promise.reject(h)))}})};
Wpa=function(a){var b,c,d,e,f,h;return g.A(function(l){switch(l.j){case 1:if(a.j)return l.return(yB());if(!a.D)return b=g.DA("getColdConfig IDB not initialized"),ny(b),l.return(Promise.reject(b));c=rB();d=g.ey("TIME_CREATED_MS");if(!c){e=g.DA("getColdConfig");ny(e);l.Ka(2);break}return g.y(l,Ppa(c),3);case 3:if((f=l.u)&&f.timestamp>d)return xB(a,f.config),DB(a,f.configData),BB(a,f.hashData),l.return(yB());case 2:xB(a,g.ey("RAW_COLD_CONFIG_GROUP"));BB(a,g.ey("SERIALIZED_COLD_HASH_DATA"));DB(a,a.j.configData);
if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ka(4);break}return g.y(l,Opa(a.j,a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(yB()):(h=new g.bA("Config not available in ytConfig"),ny(h),l.return(Promise.reject(h)))}})};
Spa=function(a){if(!a.u||!a.j){if(!rB()){var b=g.DA("scheduleGetConfigs");ny(b)}a.C||(a.C=g.Ap.xi(function(){return g.A(function(c){if(1==c.j)return g.y(c,Vpa(a),2);if(3!=c.j)return g.y(c,Wpa(a),3);a.C&&(a.C=0);g.oa(c)})},100))}};
Xpa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j){if(!g.gy("update_log_event_config"))return h.Ka(0);c&&wB(a,c);AB(a,b);return(d=rB())?c?h.Ka(4):g.y(h,Qpa(d),5):h.Ka(0)}4!=h.j&&(e=h.u,c=null==(f=e)?void 0:f.config);return g.y(h,Npa(c,b,d),0)})};
Ypa=function(a,b,c){var d,e,f,h;return g.A(function(l){if(1==l.j){if(!g.gy("update_log_event_config"))return l.Ka(0);BB(a,b);return(d=rB())?c?l.Ka(4):g.y(l,Ppa(d),5):l.Ka(0)}4!=l.j&&(e=l.u,c=null==(f=e)?void 0:f.config);if(!c)return l.Ka(0);h=c.configData;return g.y(l,Opa(c,b,h,d),0)})};
wB=function(a,b){a.u=b;g.Fa("yt.gcf.config.hotConfigGroup",a.u)};
xB=function(a,b){a.j=b;g.Fa("yt.gcf.config.coldConfigGroup",a.j)};
AB=function(a,b){a.hotHashData=b;g.Fa("yt.gcf.config.hotHashData",a.hotHashData)};
BB=function(a,b){a.coldHashData=b;g.Fa("yt.gcf.config.coldHashData",a.coldHashData)};
DB=function(a,b){a.configData=b;g.Fa("yt.gcf.config.coldConfigData",a.configData)};
zB=function(){return g.Ga("yt.gcf.config.hotConfigGroup")};
yB=function(){return g.Ga("yt.gcf.config.coldConfigGroup")};
Zpa=function(){return"INNERTUBE_API_KEY"in cy&&"INNERTUBE_API_VERSION"in cy};
g.EB=function(){return{innertubeApiKey:g.ey("INNERTUBE_API_KEY"),innertubeApiVersion:g.ey("INNERTUBE_API_VERSION"),pG:g.ey("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),CM:g.ey("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),NU:g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.ey("INNERTUBE_CONTEXT_CLIENT_VERSION"),EM:g.ey("INNERTUBE_CONTEXT_HL"),DM:g.ey("INNERTUBE_CONTEXT_GL"),OU:g.ey("INNERTUBE_HOST_OVERRIDE")||"",PU:!!g.ey("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),FM:!!g.ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.ey("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.FB=function(a){var b={client:{hl:a.EM,gl:a.DM,clientName:a.CM,clientVersion:a.innertubeContextClientVersion,configInfo:a.pG}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ea.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=iy();""!==c&&(b.client.experimentsToken=c);c=jy();0<c.length&&(b.request={internalExperimentFlags:c});$pa(a,void 0,b);aqa(void 0,b);bqa(void 0,b);cqa(a,void 0,b);dqa(void 0,b);g.gy("start_sending_config_hash")&&eqa(void 0,b);
g.ey("DELEGATED_SESSION_ID")&&!g.gy("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.ey("DELEGATED_SESSION_ID")});a=Object;c=a.assign;for(var d=b.client,e={},f=g.t(Object.entries(qy(g.ey("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,
d,e);return b};
gqa=function(a){var b=new rt,c=new g.Us;H(c,1,a.EM);H(c,2,a.DM);H(c,16,a.NU);H(c,17,a.innertubeContextClientVersion);if(a.pG){var d=a.pG,e=new Ps;d.coldConfigData&&H(e,1,d.coldConfigData);d.appInstallData&&H(e,6,d.appInstallData);d.coldHashData&&H(e,3,d.coldHashData);d.hotHashData&&H(e,5,d.hotHashData);I(c,Ps,62,e)}(d=g.Ea.devicePixelRatio)&&1!=d&&Ph(c,65,d);d=iy();""!==d&&H(c,54,d);d=jy();if(0<d.length){e=new Ws;for(var f=0;f<d.length;f++){var h=new Vs;H(h,1,d[f].key);Kh(h,2,fqa,d[f].value);Sh(e,
15,Vs,h)}I(b,Ws,5,e)}$pa(a,c);aqa(b);bqa(c);cqa(a,c);dqa(c);g.gy("start_sending_config_hash")&&eqa(c);g.ey("DELEGATED_SESSION_ID")&&!g.gy("pageid_as_header_web")&&(a=new pt,H(a,3,g.ey("DELEGATED_SESSION_ID")));a=g.t(Object.entries(qy(g.ey("DEVICE",""))));for(d=a.next();!d.done;d=a.next())e=g.t(d.value),d=e.next().value,e=e.next().value,"cbrand"===d?H(c,12,e):"cmodel"===d?H(c,13,e):"cbr"===d?H(c,87,e):"cbrver"===d?H(c,88,e):"cos"===d?H(c,18,e):"cosver"===d?H(c,19,e):"cplatform"===d&&H(c,42,e);b.Bt(c);
return b};
$pa=function(a,b,c){a=a.CM;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=Mh(b,Ts,96)||new Ts;var d=Uz();d=Object.keys(hqa).indexOf(d);d=-1===d?null:d;null!==d&&H(c,3,d);I(b,Ts,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Uz())};
aqa=function(a,b){var c=g.Ga("yt.embedded_player.embed_url");c&&(a?(b=Mh(a,Xs,7)||new Xs,H(b,4,c),I(a,Xs,7,b)):b&&(b.thirdParty={embedUrl:c}))};
bqa=function(a,b){var c;if(g.gy("web_log_memory_total_kbytes")&&(null==(c=g.Ea.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Ea.navigator)?void 0:d.deviceMemory;a?H(a,95,1E6*c):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
cqa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=Mh(b,Ps,62))?d:new Ps;H(c,6,a.appInstallData);I(b,Ps,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
dqa=function(a,b){var c=Voa();c&&(a?H(a,61,iqa[c]):b&&(b.client.connectionType=c));g.gy("web_log_effective_connection_type")&&(c=Xoa())&&(a?H(a,94,jqa[c]):b&&(b.client.effectiveConnectionType=c))};
kqa=function(a,b,c){c=void 0===c?{}:c;var d={};g.ey("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.ey("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.ey("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.zS||g.ey("AUTHORIZATION");b||(a?b="Bearer "+g.Ga("gapi.auth.getToken")().access_token:(a=Poa().JB(GB),g.gy("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
eqa=function(a,b){var c=Tpa();var d=(0,g.M)()-c.B;if(0!==c.B&&d<g.hy("send_config_hash_timer"))c=void 0;else{d=g.Ga("yt.gcf.config.coldConfigData");var e=g.Ga("yt.gcf.config.hotHashData"),f=g.Ga("yt.gcf.config.coldHashData");d&&e&&f&&(c.B=(0,g.M)());c={coldConfigData:d,hotHashData:e,coldHashData:f}}if(e=c)if(c=e.coldConfigData,d=e.coldHashData,e=e.hotHashData,c&&d&&e)if(a){var h;b=null!=(h=Mh(a,Ps,62))?h:new Ps;H(b,1,c);H(b,3,d);H(b,5,e);I(a,Ps,62,b)}else b&&(b.client.configInfo=b.client.configInfo||
{},b.client.configInfo.coldConfigData=c,b.client.configInfo.coldHashData=d,b.client.configInfo.hotHashData=e)};
HB=function(a,b){this.version=a;this.args=b};
IB=function(a,b){this.topic=a;this.j=b};
KB=function(a,b){var c=JB();c&&c.publish.call(c,a.toString(),a,b)};
mqa=function(a,b){var c=JB();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Ga("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(LB[d])try{if(f&&a instanceof IB&&a!=e)try{var l=a.j,m=f;if(!m.args||!m.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!l.Pt){var n=new l;l.Pt=n.version}var p=l.Pt}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Bb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.ly(q)}},lqa[a.toString()]?g.jA()?g.Ap.xi(h):g.Cy(h,0):h())});
LB[d]=!0;MB[a.toString()]||(MB[a.toString()]=[]);MB[a.toString()].push(d);return d};
NB=function(a,b){var c=mqa(a,function(d){b.apply(void 0,arguments);nqa(c)});
return c};
nqa=function(a){var b=JB();b&&("number"===typeof a&&(a=[a]),g.Ob(a,function(c){b.unsubscribeByKey(c);delete LB[c]}))};
JB=function(){return g.Ga("ytPubsub2Pubsub2Instance")};
OB=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&KB("meta_logging_csi_event",{timerName:a,H8a:b})};
TB=function(a,b,c,d){var e=(0,g.M)(),f={startTime:e,ticks:{},infos:{}};if(PB)try{var h=QB(b);if(!(h>oqa||h<pqa)){var l=hma(qqa(b)),m=(0,g.M)();f.ticks.gelc=m;RB++;g.gy("disable_compression_due_to_performance_degredation")&&m-e>=rqa&&(SB++,g.gy("abandon_compression_after_N_slow_zips")?RB===g.hy("compression_disable_point")&&SB>sqa&&(PB=!1):PB=!1);tqa(f);if(uqa(l,b)||!g.gy("only_compress_gel_if_smaller"))c.headers||(c.headers={}),c.headers["Content-Encoding"]="gzip",c.postBody=l,c.postParams=void 0}d(a,
c)}catch(n){ny(n),d(a,c)}else d(a,c)};
vqa=function(a){var b=void 0===b?!1:b;var c=(0,g.M)(),d={startTime:c,ticks:{},infos:{}};if(PB){if(!a.body)return a;try{var e="string"===typeof a.body?a.body:JSON.stringify(a.body),f=QB(e);if(f>oqa||f<pqa)return a;var h=hma(qqa(e)),l=(0,g.M)();d.ticks.gelc=l;if(!uqa(h,e)&&g.gy("only_compress_gel_if_smaller"))return a;if(b){RB++;if(g.gy("disable_compression_due_to_performance_degredation")&&l-c>=rqa)if(SB++,g.gy("abandon_compression_after_N_slow_zips")){b=SB/RB;var m=sqa/g.hy("compression_disable_point");
0<RB&&0===RB%g.hy("compression_disable_point")&&b>=m&&(PB=!1)}else PB=!1;tqa(d)}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=h;return a}catch(n){return ny(n),a}}else return a};
uqa=function(a,b){if(!window.Blob)return!0;var c=a.length<QB(b);c||ny(new g.bA("Compressed req body is larger than uncompressed","original size: "+QB(b),"compressed size: "+a.length));return c};
QB=function(a){return(new Blob(a.split(""))).size};
tqa=function(a){g.gy("gel_compression_csi_killswitch")||!g.gy("log_gel_compression_latency")&&!g.gy("log_gel_compression_latency_lr")||OB("gel_compression",a,{sampleRate:.1})};
VB=function(a){var b=this;this.aF=this.cg=!1;this.potentialEsfErrorCounter=this.j=0;this.handleError=function(){};
this.Iy=function(){};
this.now=Date.now;this.uB=!1;this.Ne={r8a:function(p){b.yf=p},
K8a:function(){b.eA()},
b2:function(){b.JK()},
pC:function(p){return g.A(function(q){return g.y(q,b.pC(p),0)})},
SH:function(p,q){return b.SH(p,q)},
VH:function(){b.VH()}};
var c;this.gY=null!=(c=a.gY)?c:100;var d;this.wX=null!=(d=a.wX)?d:1;var e;this.pX=null!=(e=a.pX)?e:2592E6;var f;this.kX=null!=(f=a.kX)?f:12E4;var h;this.vX=null!=(h=a.vX)?h:5E3;var l;this.yf=null!=(l=a.yf)?l:void 0;this.wF=!!a.wF;var m;this.hF=null!=(m=a.hF)?m:.1;var n;this.xH=null!=(n=a.xH)?n:10;a.handleError&&(this.handleError=a.handleError);a.Iy&&(this.Iy=a.Iy);a.uB&&(this.uB=a.uB);a.aF&&(this.aF=a.aF);this.ob=a.ob;this.cn=a.cn;this.ih=a.ih;this.Zg=a.Zg;this.Qq=a.Qq;this.lO=a.lO;this.zN=a.zN;UB(this)&&
(!this.ob||this.ob("networkless_logging"))&&wqa(this)};
wqa=function(a){UB(a)&&!a.uB&&(a.cg=!0,a.wF&&Math.random()<=a.hF&&a.ih.h2(a.yf),a.VH(),a.Zg.Rh()&&a.eA(),a.Zg.Ra(a.lO,a.eA.bind(a)),a.Zg.Ra(a.zN,a.JK.bind(a)))};
zqa=function(a,b){if(!UB(a))throw g.DA("updateRequestHandlers");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,f){var h,l,m,n;return g.A(function(p){switch(p.j){case 1:h=xqa(f);(l=yqa(f))&&a.ob&&a.ob("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.ob&&a.ob("nwl_consider_error_code")&&h||a.ob&&!a.ob("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.xH)){p.Ka(2);break}if(!a.Zg.aI){p.Ka(3);break}return g.y(p,a.Zg.aI(),3);case 3:if(a.Zg.Rh()){p.Ka(2);break}c(e,f);if(!a.ob||!a.ob("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.Ka(6);break}return g.y(p,a.ih.SO(b.id,a.yf,!1),6);case 6:return p.return();case 2:if(a.ob&&a.ob("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.xH)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ka(8);break}return b.sendCount<a.wX?g.y(p,a.ih.SO(b.id,a.yf,!0,l?!1:void 0),12):g.y(p,a.ih.ly(b.id,a.yf),8);case 12:a.cn.xi(function(){a.Zg.Rh()&&a.eA()},a.vX);
case 8:c(e,f),g.oa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.A(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ka(2):g.y(l,a.ih.ly(b.id,a.yf),2);a.Zg.Fv&&a.ob&&a.ob("vss_network_hint")&&a.Zg.Fv(!0);d(e,f);g.oa(l)})};
return b};
WB=function(a,b){a.ZY&&!a.Zg.Rh()?a.ZY(b):a.handleError(b)};
UB=function(a){return!!a.yf||a.aF};
xqa=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
yqa=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
Aqa=function(){if(XB)return XB();var a={};XB=g.uB("LogsDatabaseV2",{Fq:(a.LogsRequestsStore={Cm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.LA(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.RA(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&MA(b,"sapisid");c(9)&&MA(b,"SWHealthLog")},
version:9});return XB()};
YB=function(a){return g.kB(Aqa(),a)};
Cqa=function(a,b){var c,d,e,f;return g.A(function(h){if(1==h.j)return c={startTime:(0,g.M)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.y(h,YB(b),2);if(3!=h.j)return d=h.u,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.y(h,g.PA(d,"LogsRequestsStore",e),3);f=h.u;c.ticks.tc=(0,g.M)();Bqa(c);return h.return(f)})};
Dqa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j)return c={startTime:(0,g.M)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.y(n,YB(b),2);if(3!=n.j)return d=n.u,e=g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.M)()],l=IDBKeyRange.bound(f,h),m=void 0,g.y(n,g.NA(d,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(p){return g.hB(p.objectStore("LogsRequestsStore").index("newRequestV2"),{query:l,direction:"prev"},function(q){q.getValue()&&(m=
q.getValue(),"NEW"===a&&(m.status="QUEUED",q.update(m)))})}),3);
c.ticks.tc=(0,g.M)();Bqa(c);return n.return(m)})};
Eqa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,YB(b),2);c=d.u;return d.return(g.NA(c,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.OA(f,h).then(function(){return h})})}))})};
Fqa=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.A(function(f){if(1==f.j)return g.y(f,YB(b),2);e=f.u;return f.return(g.NA(e,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.OA(l,m).then(function(){return m})):g.FA.resolve(void 0)})}))})};
Gqa=function(a,b){var c;return g.A(function(d){if(1==d.j)return g.y(d,YB(b),2);c=d.u;return d.return(c.delete("LogsRequestsStore",a))})};
Hqa=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.y(d,YB(a),2);b=d.u;c=(0,g.M)()-2592E6;return g.y(d,g.NA(b,["LogsRequestsStore"],{mode:"readwrite",Ub:!0},function(e){return g.fB(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Iqa=function(){g.A(function(a){return g.y(a,Jpa("LogsDatabaseV2"),0)})};
Bqa=function(a){g.gy("nwl_csi_killswitch")||OB("networkless_performance",a,{sampleRate:1})};
Kqa=function(a){return g.kB(Jqa(),a)};
Lqa=function(a){var b,c;g.A(function(d){if(1==d.j)return g.y(d,Kqa(a),2);b=d.u;c=(0,g.M)()-2592E6;return g.y(d,g.NA(b,["SWHealthLog"],{mode:"readwrite",Ub:!0},function(e){return g.fB(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return f.continue()})})}),0)})};
Mqa=function(a){var b;return g.A(function(c){if(1==c.j)return g.y(c,Kqa(a),2);b=c.u;return g.y(c,b.clear("SWHealthLog"),0)})};
g.ZB=function(a,b,c,d,e,f){e=void 0===e?"":e;f=void 0===f?!1:f;if(a)if(c&&!g.Yy()){if(a){a=g.be(g.he(a));if("about:invalid#zClosurez"===a||a.startsWith("data"))a="";else{var h=void 0===h?{}:h;a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;");h.g8a&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;"));h.f8a&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>"));h.h8a&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>'));h=g.we(a);a=g.Ke(g.Mi(g.ve(h).toString()))}g.Tb(a)||
(h=pf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),Ue(h).body.appendChild(h))}}else if(e)Gy(a,b,"POST",e,d);else if(g.ey("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d)Gy(a,b,"GET","",d,void 0,f);else{b:{try{var l=new Xka({url:a});if(l.B&&l.u||l.C){var m=Ri(g.Ti(5,a));var n=!(!m||!m.endsWith("/aclk")||"1"!==lj(a,"ri"));break b}}catch(p){}n=!1}n?Nqa(a)?(b&&b(),h=!0):h=!1:h=!1;h||Oqa(a,b)}};
Nqa=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
Oqa=function(a,b){var c=new Image,d=""+Pqa++;$B[d]=c;c.onload=c.onerror=function(){b&&$B[d]&&b();delete $B[d]};
c.src=a};
aC=function(){this.j=new Map;this.u=!1};
bC=function(){if(!aC.instance){var a=g.Ga("yt.networkRequestMonitor.instance")||new aC;g.Fa("yt.networkRequestMonitor.instance",a);aC.instance=a}return aC.instance};
dC=function(){cC||(cC=new lA("yt.offline"));return cC};
Qqa=function(a){if(g.gy("offline_error_handling")){var b=dC().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);dC().set("errors",b,2592E3,!0)}};
eC=function(){g.Fd.call(this);var a=this;this.u=!1;this.j=dla();this.j.Ra("networkstatus-online",function(){if(a.u&&g.gy("offline_error_handling")){var b=dC().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.bA(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.ly(d)}dC().set("errors",{},2592E3,!0)}}})};
Rqa=function(){if(!eC.instance){var a=g.Ga("yt.networkStatusManager.instance")||new eC;g.Fa("yt.networkStatusManager.instance",a);eC.instance=a}return eC.instance};
g.fC=function(a){a=void 0===a?{}:a;g.Fd.call(this);var b=this;this.j=this.C=0;this.u=Rqa();var c=g.Ga("yt.networkStatusManager.instance.listen").bind(this.u);c&&(a.FH?(this.FH=a.FH,c("networkstatus-online",function(){Sqa(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Sqa(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Sqa=function(a,b){a.FH?a.j?(g.Ap.Em(a.C),a.C=g.Ap.xi(function(){a.B!==b&&(a.dispatchEvent(b),a.B=b,a.j=(0,g.M)())},a.FH-((0,g.M)()-a.j))):(a.dispatchEvent(b),a.B=b,a.j=(0,g.M)()):a.dispatchEvent(b)};
hC=function(){var a=VB.call;gC||(gC=new g.fC({R7a:!0,H6a:!0}));a.call(VB,this,{ih:{h2:Hqa,ly:Gqa,XT:Dqa,C4:Eqa,SO:Fqa,set:Cqa},Zg:gC,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;ny(new g.bA(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.ly(b)},
Iy:ny,Qq:Tqa,now:g.M,ZY:Qqa,cn:g.iA(),lO:"publicytnetworkstatus-online",zN:"publicytnetworkstatus-offline",wF:!0,hF:.1,xH:g.hy("potential_esf_error_limit",10),ob:g.gy,uB:!(g.dA()&&"www.youtube-nocookie.com"!==g.Ui(document.location.toString()))});this.u=new g.Wj;g.gy("networkless_immediately_drop_all_requests")&&Iqa();Kpa("LogsDatabaseV2")};
iC=function(){var a=g.Ga("yt.networklessRequestController.instance");a||(a=new hC,g.Fa("yt.networklessRequestController.instance",a),g.gy("networkless_logging")&&g.sB().then(function(b){a.yf=b;wqa(a);a.u.resolve();a.wF&&Math.random()<=a.hF&&a.yf&&Lqa(a.yf);g.gy("networkless_immediately_drop_sw_health_store")&&Uqa(a)}));
return a};
Uqa=function(a){var b;g.A(function(c){if(!a.yf)throw b=g.DA("clearSWHealthLogsDb"),b;return c.return(Mqa(a.yf).catch(function(d){a.handleError(d)}))})};
Tqa=function(a,b,c){g.gy("use_cfr_monitor")&&Vqa(a,b);if(g.gy("use_request_time_ms_header"))b.headers&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.M)())));else{var d;if(null==(d=b.postParams)?0:d.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.M)())}c&&0===Object.keys(b).length?g.ZB(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),TB(a,b.postBody,b,g.Hy)):TB(a,JSON.stringify(b.postParams),b,Iy):g.Hy(a,b)};
Vqa=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){bC().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){bC().requestComplete(a,!0);d(e,f)}};
g.jC=function(a){this.config_=null;a?this.config_=a:Zpa()&&(this.config_=g.EB())};
g.kC=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.KV.bypassNetworkless)f.method="POST",d.KV.writeThenSend?iC().writeThenSend(n,f):iC().sendAndWrite(n,f);else if(d.compress)if(f.postBody){var q=f.postBody;"string"!==typeof q&&(q=JSON.stringify(f.postBody));TB(n,q,f,g.Hy)}else TB(n,JSON.stringify(f.postParams),f,Iy);else g.gy("web_all_payloads_via_jspb")?g.Hy(n,f):Iy(n,f)}catch(r){if("InvalidAccessError"==r.name)ny(Error("An extension is blocking network request."));else throw r;
}}
!g.ey("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&ny(new g.bA("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.bA("innertube xhrclient not ready",b,c,d),g.ly(a),a;var f={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(p,q){if(d.onSuccess)d.onSuccess(q)},
onFetchSuccess:function(p){if(d.onSuccess)d.onSuccess(p)},
onError:function(p,q){if(d.onError)d.onError(q)},
onFetchError:function(p){if(d.onError)d.onError(p)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");c="";var h=a.config_.OU;h&&(c=h);var l=a.config_.PU||!1;h=kqa(l,c,d);Object.assign(f.headers,h);(h=f.headers.Authorization)&&!c&&l&&(f.headers["x-origin"]=window.location.origin);b="/youtubei/"+a.config_.innertubeApiVersion+"/"+b;l={alt:"json"};var m=a.config_.FM&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=ty(""+c+b,l);g.Ga("ytNetworklessLoggingInitializationOptions")&&
Wqa.isNwlInitialized?Cpa().then(function(p){e(p)}):e(!1)};
g.pC=function(a,b,c){var d=g.lC();if(d&&b){var e=d.subscribe(a,function(){var f=arguments;var h=function(){mC[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,f)};
try{g.nC[a]?h():g.Cy(h,0)}catch(l){g.ly(l)}},c);
mC[e]=!0;oC[a]||(oC[a]=[]);oC[a].push(e);return e}return 0};
Xqa=function(a){var b=g.pC("LOGGED_IN",function(c){a.apply(void 0,arguments);g.qC(b)})};
g.qC=function(a){var b=g.lC();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.Ob(a,function(c){b.unsubscribeByKey(c);delete mC[c]}))};
g.rC=function(a,b){var c=g.lC();return c?c.publish.apply(c,arguments):!1};
Zqa=function(a){var b=g.lC();if(b)if(b.clear(a),a)Yqa(a);else for(var c in oC)Yqa(c)};
g.lC=function(){return g.Ea.ytPubsubPubsubInstance};
Yqa=function(a){oC[a]&&(a=oC[a],g.Ob(a,function(b){mC[b]&&delete mC[b]}),a.length=0)};
g.sC=function(a,b,c){c=void 0===c?null:c;if(window.spf&&spf.script){c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace($qa,""),c=c.replace(ara,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else bra(a,b,c)};
bra=function(a,b,c){c=void 0===c?null:c;var d=cra(a),e=document.getElementById(d),f=e&&yoa(e),h=e&&!f;f?b&&b():(b&&(f=g.pC(d,b),b=""+g.Na(b),dra[b]=f),h||(e=era(a,d,function(){yoa(e)||(xoa(e,"loaded","true"),g.rC(d),g.Cy(g.Pa(Zqa,d),0))},c)))};
era=function(a,b,c,d){d=void 0===d?null:d;var e=g.qf("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.fk(e,g.wr(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
cra=function(a){var b=document.createElement("a");g.xe(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Re(a)};
vC=function(a){var b=g.ya.apply(1,arguments);if(!tC(a)||b.some(function(d){return!tC(d)}))throw Error("Only objects may be merged.");
b=g.t(b);for(var c=b.next();!c.done;c=b.next())uC(a,c.value);return a};
uC=function(a,b){for(var c in b)if(tC(b[c])){if(c in a&&!tC(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});uC(a[c],b[c])}else if(wC(b[c])){if(c in a&&!wC(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);fra(a[c],b[c])}else a[c]=b[c];return a};
fra=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,tC(c)?a.push(uC({},c)):wC(c)?a.push(fra([],c)):a.push(c);return a};
tC=function(a){return"object"===typeof a&&!Array.isArray(a)};
wC=function(a){return"object"===typeof a&&Array.isArray(a)};
xC=function(a,b,c,d,e,f,h){g.C.call(this);this.Ca=a;this.ac=b;this.Ib=c;this.Wd=d;this.Va=e;this.u=f;this.j=h};
ira=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.K(f,gra)});
c.dA?(a.Ca.get().F.V().K("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.qo.filter(function(f){var h;return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?yC(a.j,d,e,b.slotId,c.ssdaiAdsConfig):zC(a.ac.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):zC(a.ac.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),hra(a.u,b)):yC(a.j,c.qo,e,b.slotId,c.ssdaiAdsConfig)};
kra=function(a,b,c,d,e,f){var h=a.Va.get().vg(1);zC(a.ac.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return jra(a.Wd.get(),c,d,e,h.clientPlaybackNonce,h.bT,h.daiEnabled,h,f)},b)};
BC=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!AC(a.Ba,c.value))return!1;return!0};
CC=function(){return""};
lra=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}};
N=function(a,b,c,d){d=void 0===d?!1:d;cb.call(this,a);this.lk=c;this.pu=d;this.args=[];b&&this.args.push(b)};
DC=function(a,b,c){this.er=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
mra=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
nra=function(){this.Ir=[];this.Dq=[]};
FC=function(){if(!EC){var a=EC=new nra;a.Dq.length=0;a.Ir.length=0;ora(a,pra)}return EC};
ora=function(a,b){b.Dq&&a.Dq.push.apply(a.Dq,b.Dq);b.Ir&&a.Ir.push.apply(a.Ir,b.Ir)};
qra=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=GC(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=GC(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=GC(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
GC=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
rra=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=HC(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=a[e];var h=b;var l=c;h="string"!==typeof f||"clickTrackingParams"!==e&&"trackingParams"!==e?0:(f=qra(atob(f.replace(/-/g,"+").replace(/_/g,"/"))))?HC(e+".ve",f,h,l):0;d+=h;d+=HC(e,a[e],b,c);if(500<d)break}}else c[b]=IC(a),d+=c[b].length;else c[b]=IC(a),d+=c[b].length;return d};
HC=function(a,b,c,d){c+="."+a;a=IC(b);d[c]=a;return c.length+a.length};
IC=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
LC=function(){var a={},b=void 0===a.p8?!1:a.p8;a=void 0===a.Q2?!0:a.Q2;if(null==g.Ga("_lact",window)){var c=parseInt(g.ey("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Fa("_lact",c,window);g.Fa("_fact",c,window);-1==c&&JC();g.Ez(document,"keydown",JC);g.Ez(document,"keyup",JC);g.Ez(document,"mousedown",JC);g.Ez(document,"mouseup",JC);b?g.Ez(window,"touchmove",function(){KC("touchmove",200)},{passive:!0}):(g.Ez(window,"resize",function(){KC("resize",200)}),a&&g.Ez(window,"scroll",function(){KC("scroll",
200)}));
new Iz(function(){KC("mouse",100)});
g.Ez(document,"touchstart",JC,{passive:!0});g.Ez(document,"touchend",JC,{passive:!0})}};
KC=function(a,b){MC[a]||(MC[a]=!0,g.Ap.xi(function(){JC();MC[a]=!1},b))};
JC=function(a){var b;if(null!=(b=g.Ga("experiment.flags",window))&&b.enable_lact_reset_by_volume_buttons||!sra.has(null==a?void 0:a.keyCode))null==g.Ga("_lact",window)&&(LC(),g.Ga("_lact",window)),a=Date.now(),g.Fa("_lact",a,window),-1==g.Ga("_fact",window)&&g.Fa("_fact",a,window),(a=g.Ga("ytglobal.ytUtilActivityCallback_"))&&a()};
NC=function(){var a=g.Ga("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
OC=function(a){this.name=a};
PC=function(a){this.key=a};
tra=function(){var a=this;this.j=new Map;this.u=new Map;this.Ne={k7a:function(){return new Map(a.j)}}};
QC=function(a,b){a.j.set(b.EO,b)};
SC=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.u.has(b))return a.u.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(void 0!==d.cQ)var e=d.cQ;else if(d.O9)e=d[RC]?ura(a,d[RC],c):[],e=d.O9.apply(d,g.u(e));else if(d.OY){e=d.OY;var f=e[RC]?ura(a,e[RC],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.u(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.C8a||a.u.set(b,e);return e};
ura=function(a,b,c){return b?b.map(function(d){return d instanceof PC?SC(a,d.key,c,!0):SC(a,d,c)}):[]};
UC=function(){TC||(TC=new tra);return TC};
VC=function(){var a=this;this.store={};this.j=0;this.u={};this.Ne={b7a:function(){return a.j}}};
YC=function(a,b){var c=WC(b);if(a.u[c])return a.u[c];var d=Object.keys(a.store)||[];if(1>=d.length&&WC(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(XC(b.auth,h[0])){var l=b.isJspb;XC(void 0===l?"undefined":l?"true":"false",h[1])&&XC(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),XC(l,h[3])&&e.push(d[f]))}}return a.u[c]=e};
XC=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
WC=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo,void 0===a.tier?"undefined":a.tier].join("/")};
vra=function(){this.B=this.j=this.u=0};
ZC=function(){var a=g.Ga("yt.logging.ims");a||(a=new VC,g.Fa("yt.logging.ims",a));return a};
xra=function(a,b){if("log_event"===a.endpoint){$C(a);var c=aD(a);bD[c]=!0;var d={cttAuthInfo:c,isJspb:!1};ZC().storePayload(d,a.payload);wra(b,c,!1,d)}};
yra=function(a,b){if("log_event"===a.endpoint){$C(void 0,a);var c=aD(a,!0);bD[c]=!0;var d={cttAuthInfo:c,isJspb:!0};ZC().storePayload(d,a.payload.toJSON());wra(b,c,!0,d)}};
wra=function(a,b,c,d){c=void 0===c?!1:c;a&&(cD=new a);a=g.hy("tvhtml5_logging_max_batch_ads_fork")||g.hy("web_logging_max_batch")||100;var e=(0,g.M)(),f=c?dD.B:eD.B,h=0;d&&(h=ZC().getSequenceCount(d));h>=a?fD||(fD=gD(function(){hD({writeThenSend:!0},g.gy("flush_only_full_queue")?b:void 0,c);fD=void 0},0)):10<=e-f&&(zra(c),c?dD.B=e:eD.B=e)};
Ara=function(a,b){if("log_event"===a.endpoint){$C(a);var c=aD(a),d=new Map;d.set(c,[a.payload]);b&&(cD=new b);return new g.Of(function(e,f){cD&&cD.isReady()?iD(d,cD,e,f,{bypassNetworkless:!0},!0):e()})}};
Bra=function(a,b){if("log_event"===a.endpoint){$C(void 0,a);var c=aD(a,!0),d=new Map;d.set(c,[a.payload.toJSON()]);b&&(cD=new b);return new g.Of(function(e){cD&&cD.isReady()?jD(d,cD,e,{bypassNetworkless:!0},!0):e()})}};
aD=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new ay;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Kh(d,2,kD,c.playlistId);lD[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),mD[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
hD=function(a,b,c){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.Of(function(d,e){c?(nD(dD.u),nD(dD.j),dD.j=0):(nD(eD.u),nD(eD.j),eD.j=0);if(cD&&cD.isReady()){var f=a,h=c,l=cD;f=void 0===f?{}:f;h=void 0===h?!1:h;var m=new Map,n=new Map;if(void 0!==b)h?(e=ZC().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),m.set(b,e),jD(m,l,d,f)):(m=ZC().extractMatchingEntries({isJspb:h,cttAuthInfo:b}),n.set(b,m),iD(n,l,d,e,f));else if(h){e=g.t(Object.keys(bD));for(h=e.next();!h.done;h=e.next())n=h.value,h=ZC().extractMatchingEntries({isJspb:!0,
cttAuthInfo:n}),0<h.length&&m.set(n,h),delete bD[n];jD(m,l,d,f)}else{m=g.t(Object.keys(bD));for(h=m.next();!h.done;h=m.next()){h=h.value;var p=ZC().extractMatchingEntries({isJspb:!1,cttAuthInfo:h});0<p.length&&n.set(h,p);delete bD[h]}iD(n,l,d,e,f)}}else zra(c),d()})};
zra=function(a){a=void 0===a?!1:a;if(g.gy("web_gel_timeout_cap")&&(!a&&!eD.j||a&&!dD.j)){var b=gD(function(){hD({writeThenSend:!0},void 0,a)},Cra);
a?dD.j=b:eD.j=b}nD(a?dD.u:eD.u);b=g.ey("LOGGING_BATCH_TIMEOUT",g.hy("web_gel_debounce_ms",1E4));g.gy("shorten_initial_gel_batch_timeout")&&oD&&(b=Dra);b=gD(function(){hD({writeThenSend:!0},void 0,a)},b);
a?dD.u=b:eD.u=b};
iD=function(a,b,c,d,e,f){e=void 0===e?{}:e;var h=Math.round((0,g.M)()),l=a.size,m={};a=g.t(a);for(var n=a.next();!n.done;m={zE:m.zE,St:m.St,yA:m.yA,BE:m.BE,AE:m.AE},n=a.next()){var p=g.t(n.value);n=p.next().value;p=p.next().value;m.St=g.nd({context:g.FB(b.config_||g.EB())});if(!g.Ia(p)&&!g.gy("throw_err_when_logevent_malformed_killswitch")){d();break}m.St.events=p;(p=mD[n])&&Era(m.St,n,p);delete mD[n];m.yA="visitorOnlyApprovedKey"===n;Fra(m.St,h,m.yA);Gra(e);m.BE=function(q){g.gy("update_log_event_config")&&
g.Ap.xi(function(){return g.A(function(r){return g.y(r,Hra(q),0)})});
l--;l||c()};
m.zE=0;m.AE=function(q){return function(){q.zE++;if(e.bypassNetworkless&&1===q.zE)try{g.kC(b,"log_event",q.St,pD({writeThenSend:!0},q.yA,q.BE,q.AE,f)),oD=!1}catch(r){g.ly(r),d()}l--;l||c()}}(m);
try{g.kC(b,"log_event",m.St,pD(e,m.yA,m.BE,m.AE,f)),oD=!1}catch(q){g.ly(q),d()}}};
jD=function(a,b,c,d,e){d=void 0===d?{}:d;var f=Math.round((0,g.M)()),h=a.size,l=new Map([].concat(g.u(a)));l=g.t(l);for(var m=l.next();!m.done;m=l.next()){var n=g.t(m.value).next().value,p=a.get(n);m=new by;var q=gqa(b.config_||g.EB());I(m,rt,1,q);p=p?Ira(p):[];p=g.t(p);for(q=p.next();!q.done;q=p.next())Sh(m,3,Zx,q.value);(p=lD[n])&&Jra(m,n,p);delete lD[n];n="visitorOnlyApprovedKey"===n;Kra(m,f,n);Gra(d);p={startTime:(0,g.M)(),ticks:{},infos:{}};m=m.jp();p.ticks.geljspc=(0,g.M)();g.gy("log_jspb_serialize_latency")&&
OB("gel_jspb_serialize",p,{sampleRate:.1});n=pD(d,n,function(r){g.gy("update_log_event_config")&&g.Ap.xi(function(){return g.A(function(v){return g.y(v,Hra(r),0)})});
h--;h||c()},function(){h--;
h||c()},e);
n.headers["Content-Type"]="application/json+protobuf";n.postBodyFormat="JSPB";n.postBody=m;g.kC(b,"log_event","",n);oD=!1}};
Gra=function(a){g.gy("always_send_and_write")&&(a.writeThenSend=!1)};
pD=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,KV:a,dangerousLogToVisitorSession:b,w6a:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.gy("compress_gel")||g.gy("compress_gel_lr")};qD()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.M)())));return a};
Fra=function(a,b,c){qD()||(a.requestTimeMs=String(b));g.gy("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.ey("EVENT_ID"))&&(c=Lra(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Kra=function(a,b,c){qD()||H(a,2,b);if(!c&&(b=g.ey("EVENT_ID"))){c=Lra();var d=new $x;H(d,1,b);H(d,2,c);I(a,$x,5,d)}};
Lra=function(){var a=g.ey("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*Mra/2));a++;a>Mra&&(a=1);dy("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}]};
Jra=function(a,b,c){if(c.Ce())var d=1;else if(c.getPlaylistId())d=2;else return;I(a,ay,4,c);a=a.getContext()||new rt;c=Mh(a,pt,3)||new pt;var e=new Ys;e.setToken(b);H(e,1,d);Sh(c,12,Ys,e);I(a,pt,3,c)};
Ira=function(a){for(var b=[],c=0;c<a.length;c++)try{b.push(new Zx(a[c]))}catch(d){g.ly(new g.bA("Transport failed to deserialize "+String(a[c])))}return b};
$C=function(a,b){if(g.Ga("yt.logging.transport.enableScrapingForTest")){var c=g.Ga("yt.logging.transport.scrapedPayloadsForTesting"),d=g.Ga("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Ga("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));if(d&&1<=d.length)for(b=0;b<d.length;b++)if(a&&a.payload[d[b]]){var e=void 0;c.push((null==(e=a)?void 0:e.payload)[d[b]])}g.Fa("yt.logging.transport.scrapedPayloadsForTesting",c)}};
qD=function(){return g.gy("use_request_time_ms_header")||g.gy("lr_use_request_time_ms_header")};
gD=function(a,b){return g.gy("transport_use_scheduler")?fA(a,0,b):g.Cy(a,b)};
nD=function(a){g.gy("transport_use_scheduler")?g.Ap.Em(a):g.Ey(a)};
Hra=function(a){var b,c,d,e,f,h,l,m,n,p;return g.A(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.K(d,Nra),h=null==(f=d)?void 0:f.hotHashData,l=g.K(d,Ora),n=null==(m=d)?void 0:m.coldHashData,(p=UC().resolve(new PC(CB)))?h?e?g.y(q,Xpa(p,h,e),2):g.y(q,Xpa(p,h),2):q.Ka(2):q.return()):n?l?g.y(q,Ypa(p,n,l),0):g.y(q,Ypa(p,n),0):q.Ka(0)})};
sD=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.M)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;g.gy("enable_unknown_lact_fix_on_html5")&&LC();a=NC();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};g.gy("log_sequence_info_on_gel_web")&&d.sequenceGroup&&(a=e.context,b=d.sequenceGroup,b={index:Pra(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete rD[d.sequenceGroup]);(d.sendIsolatedPayload?Ara:xra)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,
dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
Qra=function(a){hD(void 0,void 0,void 0===a?!1:a)};
Pra=function(a){rD[a]=a in rD?rD[a]+1:0;return rD[a]};
Tra=function(a,b){Rra||(Rra=!0);tD=a;uD=b;Sra=!1};
g.rA=function(a,b,c){c=void 0===c?{}:c;var d=Ura;g.ey("ytLoggingEventsDefaultDisabled",!1)&&Ura===g.jC&&(d=null);if(g.gy("web_all_payloads_via_jspb"))if(tD&&uD){var e=tD[a];if(e){e=e(vD(b));var f=e[1];(e[0]||!g.gy("jspb_translator_return_completion"))&&f&&uD[a]?(uD[a](f,c,d||void 0),Vra()):(ny(new g.bA("Unable to call logFn for payload",a)),sD(a,b,d,c))}else{if(!g.gy("web_translate_player_logs"))ny(new g.bA("Unable to translate payload to JSPB",a));else if(!1===Sra){var h=!1;e=NB("app_received_payload",
function(){h=!0});
KB("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;nqa(e);c.timestamp||(c.timestamp=(0,g.M)());NB("app_has_initialized",function(){KB("player_pass_json_gel_to_app",{lD:a,payload:b,options:c})})}sD(a,b,d,c)}}else c.timestamp||(c.timestamp=(0,g.M)()),wD.push({lD:a,
payload:b,options:c});else sD(a,b,d,c)};
xD=function(){if(g.gy("web_fp_via_jspb")&&(Qra(!0),!g.gy("web_fp_via_jspb_and_json")))return;Qra()};
Vra=function(){var a=wD;wD=[];if(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,g.rA(b.lD,b.payload,b.options)}};
vD=function(a){if(!g.gy("jspb_convert_payloads_to_lower_camel")||!g.Ja(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Wra(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.Ia(a[d]))a[d]=vD(a[d]);else if(g.Ia(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(vD(e[h]));a[d]=f}}return a};
Wra=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
yD=function(a,b,c){c=void 0===c?{}:c;var d=Math.round(c.timestamp||(0,g.M)());H(a,1,d<Number.MAX_SAFE_INTEGER?d:0);var e=NC();d=new Yx;H(d,1,c.timestamp||!isFinite(e)?-1:e);if(g.gy("log_sequence_info_on_gel_web")&&c.sequenceGroup){e=c.sequenceGroup;var f=Pra(e),h=new Xx;H(h,2,f);H(h,1,e);I(d,Xx,3,h);c.endOfSequence&&delete Xra[c.sequenceGroup]}I(a,Yx,33,d);(c.sendIsolatedPayload?Bra:yra)({endpoint:"log_event",payload:a,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},
b)};
zD=function(a,b){b=void 0===b?{}:b;var c=!1;g.ey("ytLoggingEventsDefaultDisabled",!1)&&(c=!0);yD(a,c?null:g.jC,b)};
BD=function(a,b,c){var d=new Zx;Oh(d,vx,72,AD,a);c?yD(d,c,b):zD(d,b)};
Yra=function(a,b,c){var d=new Zx;Oh(d,ux,73,AD,a);c?yD(d,c,b):zD(d,b)};
Zra=function(a,b,c){var d=new Zx;Oh(d,tx,78,AD,a);c?yD(d,c,b):zD(d,b)};
$ra=function(a,b,c){var d=new Zx;Oh(d,wx,208,AD,a);c?yD(d,c,b):zD(d,b)};
asa=function(a,b,c){var d=new Zx;Oh(d,rx,156,AD,a);c?yD(d,c,b):zD(d,b)};
bsa=function(a,b,c){var d=new Zx;Oh(d,mx,202,AD,a);c?yD(d,c,b):zD(d,b)};
csa=function(a,b,c){var d=new Zx;Oh(d,sx,215,AD,a);c?yD(d,c,b):zD(d,b)};
qA=function(a){g.CD(a)};
g.DD=function(a){g.CD(a,"WARNING")};
g.CD=function(a,b){var c=void 0===c?{}:c;c.name=g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.ey("INNERTUBE_CONTEXT_CLIENT_VERSION");b=void 0===b?"ERROR":b;var d=!1;b=void 0===b?"ERROR":b;d=void 0===d?!1:d;if(a){a.hasOwnProperty("level")&&a.level&&(b=a.level);if(g.gy("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(!(5<=dsa)){e=esa;var f=Faa(a),h=f.message||"Unknown Error",l=f.name||"UnknownError",m=f.stack||a.u||"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=rra(a.args[q],"params."+q,c,p),500<=p);q++);else if(a.hasOwnProperty("params")&&
a.params){var r=a.params;if("object"===typeof a.params)for(q in r){if(r[q]){var v="params."+q,x=IC(r[q]);c[v]=x;p+=v.length+x.length;if(500<p)break}}else c.params=IC(r)}if(e.length)for(q=0;q<e.length&&!(p=rra(e[q],"params.context."+q,c,p),500<=p);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("IGNORED"===a.level)a=
0;else a:{a=FC();e=g.t(a.Dq);for(h=e.next();!h.done;h=e.next())if(h=h.value,c.message&&c.message.match(h.MC)){a=h.weight;break a}a=g.t(a.Ir);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.t(fsa);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.oH[c.name])for(l=g.t(e.oH[c.name]),h=l.next();!h.done;h=l.next())if(q=h.value,h=c.message.match(q.pj)){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.oN(q);break}c.params||(c.params={});a=FC();c.params["params.errorServiceSignature"]="msg="+a.Dq.length+"&cb="+a.Ir.length;c.params["params.serviceWorker"]="false";g.Ea.document&&g.Ea.document.querySelectorAll&&(c.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));g.Xd("sample").constructor!==Vd&&(c.params["params.fconst"]="true");window.yterr&&"function"===typeof window.yterr&&window.yterr(c);if(0!==c.sampleWeight&&!gsa.has(c.message)){if(d&&
g.gy("web_enable_error_204"))hsa(void 0===b?"ERROR":b,c);else{b=void 0===b?"ERROR":b;"ERROR"===b?(ED.ma("handleError",c),g.gy("record_app_crashed_web")&&0===isa&&1===c.sampleWeight&&(isa++,g.gy("errors_via_jspb")?(d=new wv,d=H(d,1,1),g.gy("report_client_error_with_app_crash_ks")||(a=new vv,e=new dv,h=new cv,l=new bv,l=H(l,1,c.message),h=I(h,bv,3,l),e=I(e,cv,5,h),a=I(a,dv,9,e),I(d,vv,4,a)),a=new Zx,Oh(a,wv,20,AD,d),zD(a)):(d={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},g.gy("report_client_error_with_app_crash_ks")||
(d.systemHealth={crashData:{clientError:{logMessage:{message:c.message}}}}),g.rA("appCrashed",d))),jsa++):"WARNING"===b&&ED.ma("handleWarning",c);if(g.gy("kevlar_gel_error_routing"))a:{d=b;if(g.gy("errors_via_jspb")){if(ksa())a=void 0;else{h=new Su;H(h,1,c.stack);c.fileName&&H(h,4,c.fileName);a=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):[];0!==a.length&&(1!==a.length||isNaN(Number(a[0]))?2!==a.length||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(H(h,2,Number(a[0])),H(h,3,Number(a[1]))):
H(h,2,Number(a[0])));a=new bv;H(a,1,c.message);H(a,3,c.name);H(a,6,c.sampleWeight);"ERROR"===d?H(a,2,2):"WARNING"===d?H(a,2,1):H(a,2,0);e=new av;H(e,1,!0);Oh(e,Su,3,FD,h);h=new Qu;H(h,3,window.location.href);l=g.ey("FEXP_EXPERIMENTS",[]);for(q=0;q<l.length;q++)h.B(l[q]);l=g.ey("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!fy("web_disable_gel_stp_ecatcher_killswitch")&&l)for(q=g.t(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new Du,H(f,1,n),H(f,2,String(l[n])),h.j(f);if(l=c.params)for(q=
g.t(Object.keys(l)),n=q.next();!n.done;n=q.next())n=n.value,f=new Du,H(f,1,"client."+n),H(f,2,String(l[n])),h.j(f);q=g.ey("SERVER_NAME");l=g.ey("SERVER_VERSION");q&&l&&(n=new Du,H(n,1,"server.name"),H(n,2,q),h.j(n),q=new Du,H(q,1,"server.version"),H(q,2,l),h.j(q));l=new cv;I(l,Qu,1,h);I(l,av,2,e);I(l,bv,3,a);a=l}if(!a)break a;e=new Zx;Oh(e,cv,163,AD,a);zD(e)}else{if(ksa())a=void 0;else{e={stackTrace:c.stack};c.fileName&&(e.filename=c.fileName);a=c.lineNumber&&c.lineNumber.split?c.lineNumber.split(":"):
[];0!==a.length&&(1!==a.length||isNaN(Number(a[0]))?2!==a.length||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(e.lineNumber=Number(a[0]),e.columnNumber=Number(a[1])):e.lineNumber=Number(a[0]));a={level:"ERROR_LEVEL_UNKNOWN",message:c.message,errorClassName:c.name,sampleWeight:c.sampleWeight};"ERROR"===d?a.level="ERROR_LEVEL_ERROR":"WARNING"===d&&(a.level="ERROR_LEVEL_WARNNING");e={isObfuscated:!0,browserStackInfo:e};h={pageUrl:window.location.href,kvPairs:[]};g.ey("FEXP_EXPERIMENTS")&&(h.experimentIds=
g.ey("FEXP_EXPERIMENTS"));q=g.ey("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!fy("web_disable_gel_stp_ecatcher_killswitch")&&q)for(n=g.t(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,h.kvPairs.push({key:l,value:String(q[l])});if(q=c.params)for(n=g.t(Object.keys(q)),l=n.next();!l.done;l=n.next())l=l.value,h.kvPairs.push({key:"client."+l,value:String(q[l])});l=g.ey("SERVER_NAME");q=g.ey("SERVER_VERSION");l&&q&&(h.kvPairs.push({key:"server.name",value:l}),h.kvPairs.push({key:"server.version",
value:q}));a={errorMetadata:h,stackTrace:e,logMessage:a}}if(!a)break a;g.rA("clientError",a)}("ERROR"===d||g.gy("errors_flush_gel_always_killswitch"))&&xD()}g.gy("suppress_error_204_logging")||hsa(b,c)}try{gsa.add(c.message)}catch(z){}dsa++}}}};
ksa=function(){for(var a=g.t(lsa),b=a.next();!b.done;b=a.next())if(Wy(b.value.toLowerCase()))return!0;return!1};
hsa=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.ey("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.t(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.ey("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.t(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.ey("SERVER_NAME");b=g.ey("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.Hy(g.ey("ECATCHER_REPORT_HOST","")+"/error_204",a)};
msa=function(a){var b=g.ya.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.u(b))};
nsa=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;default:dk(a,"Unknown method type")}};
osa=function(a){switch(a){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 1;case 5:return 1;default:dk(a,"unknown result type")}};
rsa=function(a,b){var c,d;g.A(function(e){c={pY:a,metadata:b};d=["b.f_","j.s_","r.s_","e.h_"];d.forEach(function(f){var h;return g.A(function(l){if(1==l.j)return g.y(l,psa[f](),2);h=l.u;qsa(h,f,c);g.oa(l)})});
g.oa(e)})};
ssa=function(){return g.A(function(a){return 1==a.j?g.y(a,(void 0!==ooa()?Rf(Error("Biscotti id is disabled")):Ky("//web.archive.org/web/20230426095903/https://googleads.g.doubleclick.net/pagead/id",uz)).then(function(){return 2},function(b){if("Biscotti id is disabled"===b.message)return 4;
g.DD("Failed fetching bid");return 3}),2):a.return(a.u)})};
usa=function(){var a=JSON.parse(JSON.stringify(tsa));return a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?2:3};
vsa=function(){var a;return g.A(function(b){if(1==b.j)return g.pa(b,2),g.y(b,(new Response('{"adPlacements":true,"playerAds":true,"playerResponse":{"adPlacements":true,"playerAds":true}}',{status:200})).json(),4);if(2!=b.j)return a=b.u,a.adPlacements&&a.playerAds&&a.playerResponse&&a.playerResponse.adPlacements&&a.playerResponse.playerAds?b.return(2):b.return(3);g.sa(b);return b.return(1)})};
wsa=function(){try{var a=document.createElement("ytd-display-ad-renderer");a.classList.add("ytd-companion-slot-renderer");a.setAttribute("id","masthead-ad");document.body.appendChild(a);var b="none"===getComputedStyle(a).display?3:2;document.body.removeChild(a);return b}catch(c){return 1}};
xsa=function(){try{var a=document.querySelector(".ytp-ad-skip-button-slot");return a?"none"===getComputedStyle(a).display?3:2:5}catch(b){return 1}};
qsa=function(a,b,c){var d={detected:3===a,source:b+(c.pY+("b.f_"===b&&4===a?"_known.failure":"r.s_"===b&&1===a?"_failure":"i.s_"===b&&5===a?"_skip_not_found":""))};c.metadata&&(d.contentCpn=c.metadata.contentCpn);g.rA("biscottiBasedDetection",d);a=osa(a);b=nsa(b);dy("CATSTAT",Number(g.ey("CATSTAT",0))&~(3<<b)|a<<b)};
zsa=function(a){ysa=void 0===a?!1:a};
GD=function(a,b,c,d,e){d=void 0===d?{}:d;ysa&&(e=!0);if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.bA(a);if(a.args)for(var f=g.t(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=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.DD(a)}};
HD=function(a,b,c,d,e,f,h,l){g.C.call(this);this.ac=a;this.Wd=b;this.mK=c;this.Ca=d;this.j=e;this.Va=f;this.Ha=h;this.Mc=l};
Asa=function(a){for(var b=Array(a),c=0;c<a;c++){for(var d=Date.now(),e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(ID)for(c=1,d=0;d<ID.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^ID.charCodeAt(d),c++;return b};
JD=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(e){}return Asa(a)};
g.KD=function(a){a=JD(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Bsa=function(){return g.Yl(JD(16),function(a){return(a&15).toString(16)}).join("")};
LD=function(){this.u=new Map;this.j=new Map;this.B=new Map};
MD=function(a,b){if(g.ey("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.u.get(b)||0;c++;a.u.set(b,c);return b+"_"+c}return g.KD(16)};
ND=function(a,b,c){if(g.ey("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.KD(16)};
OD=function(a,b){if(g.ey("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.KD(16)};
PD=function(a,b,c,d,e,f){this.startSecs=a;this.Sg=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
Csa=function(a,b,c,d){this.u=a;this.jf=null;this.Mu=b;this.j=0;this.daiEnabled=void 0===c?!1:c;this.visible=!0;this.B=void 0===d?!1:d};
QD=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.DD(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
RD=function(a,b){return b&&b.test(a)?!0:!1};
SD=function(a){return(a=Dsa&&Dsa.exec(a))?a[0]:""};
TD=function(a){var b=void 0===b?!1:b;return QD(RD(a,Esa),a,b,"Trusted Stream URL")};
g.UD=function(a){var b=void 0===b?!1:b;return QD(RD(a,Fsa),a,b,"Trusted Image URL")};
Hsa=function(a){var b=void 0===b?!1:b;return QD(RD(a,Gsa),a,b,"Trusted Promoted Video Domain URL")};
Jsa=function(a){var b=void 0===b?!1:b;return QD(RD(a,Isa),a,b,"Drm Licensor URL")};
Lsa=function(a,b){b=void 0===b?!1:b;return QD(RD(a,Ksa),a,b,"Captions URL")};
Msa=function(a){a=new g.Bk(a);g.Ck(a,document.location.protocol);g.Dk(a,document.location.hostname);document.location.port&&g.Ek(a,document.location.port);return a.toString()};
VD=function(a){a=new g.Bk(a);g.Ck(a,document.location.protocol);return a.toString()};
g.XD=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.B=Nsa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||WD.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.Zl(d.thumbnails,function(e){return g.UD(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
Osa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
Psa=function(a,b){switch(a.style){case WD.CHAPTER_MARKER:return b?8:5;case WD.AD_MARKER:return 6;case WD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.YD=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.ZD=function(a){return"crn_"+a};
g.$D=function(a){return"crx_"+a};
aE=function(a,b,c,d,e){g.XD.call(this,b.start,b.end,{id:d,namespace:"ad",priority:e,visible:c});this.j=a.kind||"AD_PLACEMENT_KIND_UNKNOWN";this.u=!1;this.C=null};
bE=function(a){return"AD_PLACEMENT_KIND_START"==a.j};
Qsa=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j};
Rsa=function(a,b,c){c=void 0===c?!1:c;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new iq(-0x8000000000000,-0x8000000000000);case "AD_PLACEMENT_KIND_END":return c?new iq(Math.max(0,b.u-b.j),0x7ffffffffffff):new iq(0x7ffffffffffff,0x8000000000000);case "AD_PLACEMENT_KIND_MILLISECONDS":var d=a.adTimeOffset;a=parseInt(d.offsetStartMilliseconds,10);d=parseInt(d.offsetEndMilliseconds,10);-1===d&&(d=b.u);if(c&&(d=a,a=Math.max(0,a-b.j),a==d))break;return new iq(a,d);case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":d=
b.jf;a=1E3*d.startSecs;if(c){if(a<b.Mu)return new iq(a-4E3,a);c=Math.max(0,a-b.Mu-1E4);return new iq(b.B?b.Mu:Math.floor(b.Mu+Math.random()*c),a)}return new iq(a,a+(0<d.Sg?1E3*d.Sg:5E3))}return null};
cE=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
g.dE=function(a){a=void 0===a?!1:a;g.C.call(this);this.Yi=new g.lq(a);g.E(this,this.Yi)};
g.eE=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
fE=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
g.gE=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.t(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.hE=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=pf("B",null,h||l));d.italics&&(h=pf("I",null,h||l));d.strikethrough&&(h=pf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=pf("A",null,h||l),g.xe(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||pf("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:pf("SPAN",null,b)};
Ssa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={Cn:new iq(-0x8000000000000,-0x8000000000000),zD:d},null!=c&&(d.Rp=new iq(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={Cn:new iq(0x7ffffffffffff,0x8000000000000),zD:d},null!=c&&(d.Rp=new iq(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||GD("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||GD("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new N("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={Cn:new iq(a,e),zD:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.Rp=new iq(a,e)}return d;
default:return new N("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
Tsa=function(a){var b=1E3*a.startSecs;return new iq(b,b+1E3*a.Sg)};
iE=function(a){return g.Ga("ytcsi."+(a||"")+"data_")||Usa(a)};
jE=function(){var a=iE();a.info||(a.info={});return a.info};
kE=function(a){a=iE(a);a.metadata||(a.metadata={});return a.metadata};
lE=function(a){a=iE(a);a.tick||(a.tick={});return a.tick};
mE=function(a){a=iE(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
nE=function(a){a=mE(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
oE=function(a){var b=iE(a).nonce;b||(b=g.KD(16),iE(a).nonce=b);return b};
Usa=function(a){var b={tick:{},info:{}};g.Fa("ytcsi."+(a||"")+"data_",b);return b};
pE=function(){var a=g.Ga("ytcsi.debug");a||(a=[],g.Fa("ytcsi.debug",a),g.Fa("ytcsi.reference",{}));return a};
qE=function(a){a=a||"";var b=Vsa();if(b[a])return b[a];var c=pE(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Wsa=function(a){a=a||"";var b=Vsa();b[a]&&delete b[a];var c=pE(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Vsa=function(){var a=g.Ga("ytcsi.reference");if(a)return a;pE();return g.Ga("ytcsi.reference")};
rE=function(a){return Xsa[a]||"LATENCY_ACTION_UNKNOWN"};
bta=function(a,b,c){c=mE(c);if(c.gelInfos)c.gelInfos[a]=!0;else{var d={};c.gelInfos=(d[a]=!0,d)}if(a.match("_rid")){var e=a.split("_rid")[0];a="REQUEST_ID"}if(a in Ysa){c=Ysa[a];g.rb(Zsa,c)&&(b=!!b);a in $sa&&"string"===typeof b&&(b=$sa[a]+b.toUpperCase());a=b;b=c.split(".");for(var f=d={},h=0;h<b.length-1;h++){var l=b[h];f[l]={};f=f[l]}f[b[b.length-1]]="requestIds"===c?[{id:a,endpoint:e}]:a;return vC({},d)}g.rb(ata,a)||g.DD(new g.bA("Unknown label logged with GEL CSI",a))};
sE=function(a,b){HB.call(this,1,arguments);this.timer=b};
tE=function(){this.j=0};
uE=function(){tE.instance||(tE.instance=new tE);return tE.instance};
wE=function(a,b){vE[b]=vE[b]||{count:0};var c=vE[b];c.count++;c.time=(0,g.M)();a.j||(a.j=g.gA(0,function(){var d=(0,g.M)(),e;for(e in vE)vE[e]&&6E4<d-vE[e].time&&delete vE[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.bA("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.DD(c)),!0):!1};
cta=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
dta=function(){var a;if(g.gy("csi_use_performance_navigation_timing")||g.gy("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==xE?void 0:null==(a=xE.getEntriesByType)?void 0:null==(b=a.call(xE,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=yE(e.requestStart),e.responseEnd=yE(e.responseEnd),e.redirectStart=yE(e.redirectStart),e.redirectEnd=yE(e.redirectEnd),e.domainLookupEnd=yE(e.domainLookupEnd),e.connectStart=yE(e.connectStart),
e.connectEnd=yE(e.connectEnd),e.responseStart=yE(e.responseStart),e.secureConnectionStart=yE(e.secureConnectionStart),e.domainLookupStart=yE(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=xE.timing}else a=xE.timing;return a};
yE=function(a){return Math.round(zE()+a)};
zE=function(){return(g.gy("csi_use_time_origin")||g.gy("csi_use_time_origin_tvhtml5"))&&xE.timeOrigin?Math.floor(xE.timeOrigin):xE.timing.navigationStart};
AE=function(a){this.j=a};
g.BE=function(a){return new AE({trackingParams:a})};
fta=function(a){var b=eta++;return new AE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0})};
CE=function(a){a=void 0===a?0:a;return 0===a?"client-screen-nonce":"client-screen-nonce."+a};
DE=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
gta=function(a){return g.ey(DE(void 0===a?0:a))};
g.EE=function(a){return(a=gta(void 0===a?0:a))?new AE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
hta=function(){var a=g.ey("csn-to-ctt-auth-info");a||(a={},dy("csn-to-ctt-auth-info",a));return a};
g.FE=function(a){a=g.ey(CE(void 0===a?0:a));if(!a&&!g.ey("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
jta=function(a){for(var b=g.t(Object.values(ita)),c=b.next();!c.done;c=b.next())if(g.FE(c.value)===a)return!0;return!1};
kta=function(a,b,c){var d=hta();(c=g.FE(c))&&delete d[c];b&&(d[a]=b)};
GE=function(a){return hta()[a]};
HE=function(a,b,c,d){c=void 0===c?0:c;if(a!==g.ey(CE(c))||b!==g.ey(DE(c)))if(kta(a,d,c),dy(CE(c),a),dy(DE(c),b),b=function(){setTimeout(function(){if(a)if(g.gy("web_time_via_jspb")){var e=new dx;H(e,1,lta);H(e,2,a);var f=new Zx;Oh(f,dx,111,AD,e);zD(f)}else g.rA("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:lta,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
JE=function(a,b){IE("_start",a,b)};
mta=function(a,b,c,d){if(null!==b){if("yt_lt"===a){var e="string"===typeof b?b:""+b;kE(c).loadType=e}(a=bta(a,b,c))&&KE(a,c,d)}};
KE=function(a,b,c){if(!g.gy("web_csi_via_jspb")||(void 0===c?0:c))c=qE(b||""),vC(c.info,a),a.loadType&&(c=a.loadType,kE(b).loadType=c),vC(nE(b),a),c=oE(b),b=iE(b).cttAuthInfo,uE().info(a,c,b);else{c=new Dx;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":H(c,1,R[a[e]]);break;case "clientActionNonce":H(c,2,a[e]);break;case "clientScreenNonce":H(c,4,a[e]);break;case "loadType":H(c,3,a[e]);break;case "isPrewarmedLaunch":H(c,92,a[e]);break;
case "isFirstInstall":H(c,55,a[e]);break;case "networkType":H(c,5,LE[a[e]]);break;case "connectionType":H(c,26,ME[a[e]]);break;case "detailedConnectionType":H(c,27,NE[a[e]]);break;case "isVisible":H(c,6,a[e]);break;case "playerType":H(c,7,OE[a[e]]);break;case "clientPlaybackNonce":H(c,8,a[e]);break;case "adClientPlaybackNonce":H(c,28,a[e]);break;case "previousCpn":H(c,77,a[e]);break;case "targetCpn":H(c,76,a[e]);break;case "isMonetized":H(c,9,a[e]);break;case "isPrerollAllowed":H(c,16,a[e]);break;
case "isPrerollShown":H(c,17,a[e]);break;case "adType":H(c,12,a[e]);break;case "adTypesAllowed":H(c,36,a[e]);break;case "adNetworks":H(c,37,a[e]);break;case "previousAction":H(c,13,R[a[e]]);break;case "isRedSubscriber":H(c,14,a[e]);break;case "serverTimeMs":H(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":H(c,20,a[e]);break;case "targetVideoId":H(c,78,a[e]);break;case "adBreakType":H(c,21,PE[a[e]]);break;case "isNavigation":H(c,25,a[e]);break;case "viewportHeight":H(c,29,
a[e]);break;case "viewportWidth":H(c,30,a[e]);break;case "screenHeight":H(c,84,a[e]);break;case "screenWidth":H(c,85,a[e]);break;case "browseId":H(c,31,a[e]);break;case "isCacheHit":H(c,32,a[e]);break;case "httpProtocol":H(c,33,a[e]);break;case "transportProtocol":H(c,34,a[e]);break;case "searchQuery":H(c,41,a[e]);break;case "isContinuation":H(c,42,a[e]);break;case "availableProcessors":H(c,43,a[e]);break;case "sdk":H(c,44,a[e]);break;case "isLocalStream":H(c,45,a[e]);break;case "navigationRequestedSameUrl":H(c,
64,a[e]);break;case "shellStartupDurationMs":H(c,70,a[e]);break;case "appInstallDataAgeMs":H(c,73,a[e]);break;case "latencyActionError":H(c,71,QE[a[e]]);break;case "actionStep":H(c,79,a[e]);break;case "jsHeapSizeLimit":H(c,80,a[e]);break;case "totalJsHeapSize":H(c,81,a[e]);break;case "usedJsHeapSize":H(c,82,a[e]);break;case "sourceVideoDurationMs":H(c,90,a[e]);break;case "videoOutputFrames":H(c,93,a[e]);break;case "isResume":H(c,104,a[e]);break;case "debugTicksExcluded":H(c,105,a[e]);break;case "abandonedPing":H(c,
113,a[e]);break;case "adPrebufferedTimeSecs":H(c,39,a[e]);break;case "isLivestream":H(c,47,a[e]);break;case "liveStreamMode":H(c,91,RE[a[e]]);break;case "adCpn2":H(c,48,a[e]);break;case "adDaiDriftMillis":H(c,49,a[e]);break;case "videoStreamType":H(c,53,SE[a[e]]);break;case "playbackRequiresTap":H(c,56,a[e]);break;case "performanceNavigationTiming":H(c,67,a[e]);break;case "transactionType":H(c,74,TE[a[e]]);break;case "playerRotationType":H(c,101,UE[a[e]]);break;case "allowedPreroll":H(c,10,a[e]);
break;case "shownPreroll":H(c,11,a[e]);break;case "getHomeRequestId":H(c,57,a[e]);break;case "getSearchRequestId":H(c,60,a[e]);break;case "getPlayerRequestId":H(c,61,a[e]);break;case "getWatchNextRequestId":H(c,62,a[e]);break;case "getBrowseRequestId":H(c,63,a[e]);break;case "getLibraryRequestId":H(c,66,a[e]);break;case "isTransformerEnabledForFeature":H(c,106,a[e]);break;case "sourceVideoFrameCount":H(c,109,a[e]);break;default:nta.includes(f)&&g.ly(new g.bA("Codegen laipb translator asked to translate message field",
""+f))}}catch(h){g.ly(Error("Codegen laipb translator failed to set "+f))}}VE(c,b)}};
VE=function(a,b){var c=g.ai(a,3);c&&(kE(b).loadType=c);qE(b||"").jspbInfo.push(a);c=oE(b);b=iE(b).cttAuthInfo;uE().jspbInfo(a,c,b)};
IE=function(a,b,c){if(!b&&"_"!==a[0]){var d=a;xE.mark&&(Rb(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),xE.mark(d))}d=qE(c||"");d.tick[a]=b||(0,g.M)();if(d.callback&&d.callback[a]){d=g.t(d.callback[a]);for(var e=d.next();!e.done;e=d.next())e=e.value,e()}d=mE(c);d.gelTicks&&(d.gelTicks[a]=!0);e=lE(c);d=b||(0,g.M)();g.gy("log_repeated_ytcsi_ticks")?a in e||(e[a]=d):e[a]=d;e=oE(c);var f=iE(c).cttAuthInfo;"_start"===a?(a=uE(),wE(a,"baseline_"+e)||(b={timestamp:b,cttAuthInfo:f},g.gy("web_csi_via_jspb")?
(a=new xx,H(a,1,e),e=new Zx,Oh(e,xx,6,AD,a),zD(e,b)):g.rA("latencyActionBaselined",{clientActionNonce:e},b))):uE().tick(a,e,b,f);ota(c);return d};
pta=function(){var a,b=null==(a=xE.getEntriesByType)?void 0:a.call(xE,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=xE.clearMarks)||d.call(xE,c.name)}})};
WE=function(){switch(Aoa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
sta=function(a){var b=dta(),c=zE(),d=g.ey("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.gy("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(IE("srt",b.responseStart),1!==a.prerender&&JE(c));a=qta();0<a&&IE("fpt",a);a=dta();a.isPerformanceNavigationTiming&&KE({performanceNavigationTiming:!0},void 0);IE("nreqs",a.requestStart,void 0);IE("nress",a.responseStart,void 0);IE("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(IE("nrs",a.redirectStart,void 0),IE("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(IE("ndnss",a.domainLookupStart,void 0),IE("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(IE("ntcps",a.connectStart,void 0),IE("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=zE()&&0<a.connectEnd-a.secureConnectionStart&&(IE("nstcps",a.secureConnectionStart,void 0),IE("ntcpe",a.connectEnd,void 0));xE&&"getEntriesByType"in xE&&rta()};
tta=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);ye()&&a.setAttribute("nonce",ye());return c?(a=xE.getEntriesByName(c))&&a[0]&&(a=a[0],c=zE(),IE("rsf_"+b,c+Math.round(a.fetchStart)),IE("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
uta=function(){var a=[];if(document.querySelector&&xE&&xE.getEntriesByName)for(var b in XE)if(XE.hasOwnProperty(b)){var c=XE[b];tta(b,c)&&a.push(c)}return a};
rta=function(){var a=window.location.protocol,b=xE.getEntriesByType("resource");b=g.Rn(b,function(c){return 0===c.name.indexOf(a+"//web.archive.org/web/20230426095903/https://fonts.gstatic.com/s/")});
(b=$l(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(IE("wffs",yE(b.startTime)),IE("wffe",yE(b.responseEnd)))};
vta=function(a,b,c){xE&&xE.measure&&(Rb(a,"measure_")||(a="measure_"+a),c?xE.measure(a,b,c):b?xE.measure(a,b):xE.measure(a))};
wta=function(a){var b=YE("aft",a);if(b)return b;b=g.ey((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=YE(b[d],a);if(e)return e}return NaN};
ZE=function(a,b){g.Fa("ytglobal.timing"+(b||"")+"ready_",a)};
YE=function(a,b){if(a=lE(b)[a])return"number"===typeof a?a:a[a.length-1]};
ota=function(a){var b=YE("_start",a),c=wta(a);b&&c&&!xta&&(KB(yta,new sE(Math.round(c-b),a)),xta=!0)};
zta=function(a,b){for(var c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())if(d=d.value,!Object.keys(a).includes(d)||"object"===typeof b[d]&&!zta(a[d],b[d]))return!1;return!0};
qta=function(){if(xE.getEntriesByType){var a=xE.getEntriesByType("paint");if(a=g.nb(a,function(b){return"first-paint"===b.name}))return yE(a.startTime)}a=xE.timing;
return a.V4?Math.max(0,a.V4):0};
$E=function(a){Usa(a);Ata();pta();a||(g.ey("TIMING_ACTION")&&dy("PREVIOUS_ACTION",g.ey("TIMING_ACTION")),dy("TIMING_ACTION",""))};
Bta=function(){var a=["pbs","pbu"];g.my(function(){qE("").info.actionType="watch";a&&dy("TIMING_AFT_KEYS",a);dy("TIMING_ACTION","watch");if(g.gy("web_csi_via_jspb")){var b=g.ey("TIMING_INFO",{}),c=new Dx;b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":Ex(c,Ax(zx(d),String(e)));break;case "GetGuide_rid":Ex(c,Ax(zx(d),String(e)));break;case "GetHome_rid":Ex(c,Ax(zx(d),String(e)));break;case "GetPlayer_rid":Ex(c,
Ax(zx(d),String(e)));break;case "GetSearch_rid":Ex(c,Ax(zx(d),String(e)));break;case "GetSettings_rid":Ex(c,Ax(zx(d),String(e)));break;case "GetTrending_rid":Ex(c,Ax(zx(d),String(e)));break;case "GetWatchNext_rid":Ex(c,Ax(zx(d),String(e)));break;case "yt_red":H(c,14,!!e);break;case "yt_ad":H(c,9,!!e)}}VE(c);c=new Dx;c=H(c,25,!0);c=H(c,1,R[rE(g.ey("TIMING_ACTION"))]);(b=g.ey("PREVIOUS_ACTION"))&&H(c,13,R[rE(b)]);(b=g.ey("CLIENT_PROTOCOL"))&&H(c,33,b);(b=g.ey("CLIENT_TRANSPORT"))&&H(c,34,b);(b=g.FE())&&
"UNDEFINED_CSN"!==b&&H(c,4,b);b=WE();1!==b&&-1!==b||H(c,6,!0);b=jE();(d="cold"===kE().loadType)||(d="cold"===b.yt_lt);if(d&&(H(c,3,"cold"),sta(b),b=uta(),0<b.length))for(b=g.t(b),d=b.next();!d.done;d=b.next())d=d.value,e=new Cx,H(e,1,d),Sh(c,83,Cx,e);VE(c)}else{c=g.ey("TIMING_INFO",{});for(b in c)c.hasOwnProperty(b)&&mta(b,c[b]);c={isNavigation:!0,actionType:rE(g.ey("TIMING_ACTION"))};if(b=g.ey("PREVIOUS_ACTION"))c.previousAction=rE(b);if(b=g.ey("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.ey("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.FE())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=WE();if(1===b||-1===b)c.isVisible=!0;b="cold"===kE().loadType;d=jE();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",sta(jE()),b=uta(),0<b.length))for(c.resourceInfo=[],b=g.t(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});KE(c)}c=jE();b=nE();if("cold"===kE().loadType&&("cold"===c.yt_lt||"cold"===b.loadType)){d=lE();e=mE();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var f in d)if(!(f in e))if("number"===typeof d[f])IE(f,
YE(f));else if(g.gy("log_repeated_ytcsi_ticks"))for(var h=g.t(d[f]),l=h.next();!l.done;l=h.next())IE(f.slice(1),l.value);f={};d=!1;e=g.t(Object.keys(c));for(h=e.next();!h.done;h=e.next())h=h.value,(h=bta(h,c[h]))&&!zta(nE(),h)&&(vC(b,h),vC(f,h),d=!0);d&&KE(f)}ZE(!0);f=g.ey("TIMING_ACTION");g.Ga("ytglobal.timingready_")&&f&&aF("_start")&&wta()&&ota()})()};
Dta=function(){var a=void 0===a?{}:a;g.my(function(){Cta();Wsa();$E();ZE(!1);a.cttAuthInfo&&(iE().cttAuthInfo=a.cttAuthInfo);dy("TIMING_AFT_KEYS",[]);a.K7a?bF({loadType:"hot"}):bF({loadType:"warm"});dy("TIMING_ACTION","");delete g.ey("TIMING_INFO",{}).yt_lt;g.my(JE)(a.startTime,void 0)})()};
cF=function(a,b){b=void 0===b?{}:b;g.my(function(){Eta(a);iE(a).useGel=!0;qE(a||"").info.actionType=a;b.cttAuthInfo&&(iE(a).cttAuthInfo=b.cttAuthInfo);dy(a+"TIMING_ACTION",a);g.my(JE)(b.startTime,a);var c={actionType:rE(a)},d=g.FE();d&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);bF(c,a);ZE(!0,a)})()};
Eta=function(a){g.my(function(){Cta(a);Wsa(a);$E(a)})()};
g.dF=function(a,b,c,d){g.my(mta)(a,b,c,d)};
bF=function(a,b){g.my(KE)(a,b,!1)};
eF=function(a,b,c){return g.my(IE)(a,b,c)};
Fta=function(a){g.my(vta)("above_the_fold",a,void 0)};
aF=function(a,b){return g.my(function(){var c=lE(b);return a in c})()};
Gta=function(a,b){return g.my(function(){if(aF(a,b))return!1;eF(a,void 0,b);return!0})()};
fF=function(a,b,c){g.my(function(){if(!aF("_start",c)||aF(a,c))return!1;eF(a,b,c);return!0})()};
Cta=function(a){aF("_start",a)&&eF("aa",void 0,a)};
Hta=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
gF=function(a){var b=g.K(a,Ita)||a.signatureCipher;a={vU:!1,Sx:"",Zz:"",s:""};if(!b)return a;b=qy(b);a.vU=!0;a.Sx=b.url;a.Zz=b.sp;a.s=b.s;return a};
g.hF=function(a,b){this.id=a;this.Jc=b;this.captionTracks=[];this.B=this.C=null;this.xtags="";this.j=null;this.u="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN"};
iF=function(a,b,c,d){this.B=c;this.reason=d;this.u=a||0;this.j=b||0};
g.kF=function(a,b,c,d){return new iF(g.jF[a]||0,g.jF[b]||0,c,d)};
lF=function(a){var b=g.jF.auto;return a.u===b&&a.j===b};
nF=function(a){return mF[a.j||a.u]||"auto"};
Jta=function(a,b){b=g.jF[b];return a.u<=b&&(!a.j||a.j>=b)};
oF=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.t(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Jc||a.has(d.Jc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.Jc,itag:d.itag,xtag:d.u,lang:(null==(e=d.Jc)?void 0:e.name)||"",langid:(null==(f=d.Jc)?void 0:f.id)||""})}else e=new g.hF(d.id,d.Jc),a.add(d.Jc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
pF=function(){g.C.apply(this,arguments);this.j=null};
Nta=function(a,b,c,d,e,f){if(a.j)return a.j;var h={},l=new Set,m={};if(qF(d)){for(var n in d.j)d.j.hasOwnProperty(n)&&(a=d.j[n],m[a.info.Lb]=[a.info]);return m}n=Kta(b,d,h);f&&e({aftsrt:rF(n)});for(var p={},q=g.t(Object.keys(n)),r=q.next();!r.done;r=q.next()){r=r.value;for(var v=g.t(n[r]),x=v.next();!x.done;x=v.next()){x=x.value;var z=x.itag,B=void 0,F=r+"_"+((null==(B=x.video)?void 0:B.fps)||0);p.hasOwnProperty(F)?!0===p[F]?m[r].push(x):h[z]=p[F]:(B=sF(b,x,c,d.isLive,l),!0!==B?(h[z]=B,"disablevp9hfr"===
B&&(p[F]="disablevp9hfr")):(m[r]=m[r]||[],m[r].push(x),p[F]=!0))}}f&&e({bfflt:rF(m)});for(var G in m)m.hasOwnProperty(G)&&(d=G,m[d]&&m[d][0].Xg()&&(m[d]=m[d],m[d]=Lta(b,m[d],h),m[d]=Mta(m[d],h)));f&&e(h);b=g.t(l.values());for(d=b.next();!d.done;d=b.next())(d=c.u.get(d.value))&&--d.uX;f&&e({aftflt:rF(m)});a.j=g.Uc(m,function(D){return!!D.length});
return a.j};
Pta=function(a,b,c,d,e,f,h){if(b.Vd&&h&&1<h.length&&!(0<b.C||b.oa)){for(var l=b.B||!!e,m=l&&b.Dc?f:void 0,n=Kta(b,d),p=[],q=[],r={},v=0;v<h.length;v++){var x=h[v],z=d.I.get(x);if(z&&z.info){var B=z.info;z=B.Lb;if(sF(b,B,c,d.isLive)){x=B.Xg()?p:q;B=g.t(n[z]);for(var F=B.next();!F.done;F=B.next()){F=F.value;var G=void 0,D=z+"_"+((null==(G=F.video)?void 0:G.fps)||0);r.hasOwnProperty(D)?!0===r[D]&&x.push(F):sF(b,F,c,d.isLive)&&(x.push(F),r[D]=!0)}}else l&&f({opfu:x})}}if(p.length&&q.length)return l&&
f({opfm:p[0].itag+","+q[0].itag}),Oy(new oF(p,q,m))}return Ota(a,b,c,d,e,f)};
Ota=function(a,b,c,d,e,f){function h(x){return!!n[x]}
var l=b.B||!!e,m=l&&b.Dc?f:void 0,n=Nta(a,b,c,d,f,l);tF(d)&&(n=Qta(c,n,e,l,f,b),l&&f({enflt:rF(n)}));b.Xb=Rta(n,b);if(qF(d))return f=g.nb(Object.values(n),function(x){return!!x.length&&!!x[0].audio}),l=g.nb(Object.values(n),function(x){return!!x.length&&!!x[0].video}),f&&l||Ny(),Oy(new oF(l,f,m));
a=Sta(b);l&&f({audioPrefOrder:a.join("_")});a=g.nb(a,h);if(!a)return l&&f({noaudio:1}),Ny();a=n[a];n["9"]&&n.h&&d.fd&&!b.fb&&(l&&f({dltvp9:1}),delete n["9"]);var p=n["1h"]?"1h":"1";c=n["9h"]?"9h":"9";var q=n[p],r=n[c];q&&q.length&&(b.u.highestAv1Resolution=q[q.length-1].video.j);r&&r.length&&(b.u.highestVp9Resolution=r[r.length-1].video.j);e=[];var v=[];if(b.oa&&!b.j)for(v=Tta(d)?n["1h"]||n["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],l&&f({newhybpref:v.join(".")}),q=g.t(v),r=q.next();!r.done;r=q.next())e=
e.concat(n[r.value]).filter(function(x){return x});
else 0<b.C&&r&&q&&(v=[p,c],e=q.concat(r).filter(function(x){return x}));
if(e.length&&!b.j){uF(e,v);if(l){l=[];b=g.t(e);for(d=b.next();!d.done;d=b.next())l.push(d.value.itag);f({hbdfmt:l.join(".")})}return Oy(new oF(e,a,m))}e=Uta(b);e=g.nb(e,h);if(!e){if(n[p])return f=n[p],uF(f),Oy(new oF(f,a,m));l&&f({novideo:1});return Ny()}b.Wc&&("1"===e||"1h"===e)&&n[c]&&(p=vF(n[e]),vF(n[c])>p&&(e=c));"9"===e&&n.h&&vF(n.h)>vF(n["9"])&&(e="h");b.jc&&d.isLive&&"("===e&&n.H&&1440>vF(n["("])&&(e="H");l&&f({vfmly:wF(e)});b=n[e];if(!b.length)return l&&f({novfmly:wF(e)}),Ny();uF(b);return Oy(new oF(b,
a,m))};
Rta=function(a,b){var c=b.J&&!(!a.mac3&&!a.MAC3),d=b.T&&!(!a.meac3&&!a.MEAC3);return b.Aa&&!(!a.m&&!a.M)||c||d};
wF=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
rF=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(wF(d));d=g.t(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
Qta=function(a,b,c,d,e,f){var h={},l={};g.Tc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.Pd)return l[q]="noenc",!1;if(f.uc&&"(h"===p.Lb&&f.Tb)return l[q]="lichdr",!1;if("("===p.Lb||"(h"===p.Lb){if(a.B&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.Pd[c.flavor]&&!!c.j[r])||(l[q]=p.Pd[c.flavor]?"unspt":"noflv");return r}if(!xF(a,yF.CRYPTOBLOCKFORMAT)&&!a.ya||a.Z)return l[q]=a.Z?"disvp":"vpsub",!1}return c&&p.Pd[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.Pd[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
Mta=function(a,b){var c=$l(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
$y()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
Lta=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Oc)return!0;c[d.itag]="maxquality";return!1})};
Kta=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.Z&&f.video&&f.video.j<a.Z)c&&(c[f.itag]="min"+a.Z);else{var h=f.Lb;d[h]=d[h]||[];d[h].push(f)}}a=g.t(Object.keys(d));for(b=a.next();!b.done;b=a.next())uF(d[b.value]);return d};
vF=function(a){return $l(a,function(b,c){return Math.max(b,c.video.j)},0)};
sF=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.Lb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ga)return"blk2khfr";if(a.ea&&b.video&&b.video.j>a.ea)return"max"+a.ea;if(a.Pb&&"h"===b.Lb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.Lb&&!c.D)return"enchdr";if((void 0===d?0:d)&&zF(b)&&!a.Ya)return"blk51live";if(AF(b)&&!a.Xa)return"blk51ugc";if(!a.uc&&b.Pd&&b.Pd.fairplay&&("("===b.Lb||"(h"===b.Lb||"A"===b.Lb||"MEAC3"===b.Lb))return"cbc";if((d=c.u.get(b.Lb))&&0<d.uX)return e.add(b.Lb),
"byerr";var f;if(null==(f=b.video)?0:32<f.fps){if(!c.T||!c.oa&&!xF(c,yF.FRAMERATE))return"capHfr";if(a.tb&&4320<=b.video.j)return"blk8khfr";if(BF(b)&&a.rd&&b.Pd&&1440<=b.video.j)return"disablevp9hfr"}a=Vta(c,b);return!0!==a?a:!0};
uF=function(a,b){b=void 0===b?[]:b;g.Lb(a,function(c,d){var e=d.dc-c.dc;if(!c.Xg()||!d.Xg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.Lb)+1,d=b.indexOf(d.Lb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
Wta=function(a){a=void 0===a?{}:a;var b=void 0===a.Oo?!1:a.Oo,c=void 0===a.defraggedFromSubfragments?!1:a.defraggedFromSubfragments,d=void 0===a.isManifestless?!1:a.isManifestless,e=void 0===a.BP?!1:a.BP;return((void 0===a.hasSubfragmentedFmp4?0:a.hasSubfragmentedFmp4)||b)&&d?e?3:2:c&&d?-1:1};
Xta=function(a){return Wta({hasSubfragmentedFmp4:a.I.dk,Oo:a.I.dk,defraggedFromSubfragments:a.Mp,isManifestless:!0,BP:a.Xa})};
Yta=function(a){a=a.split("");CF.My(a,77);CF.hb(a,2);CF.hc(a,41);CF.hc(a,52);CF.My(a,66);CF.hc(a,17);CF.My(a,37);CF.hc(a,70);CF.My(a,69);return a.join("")};
g.DF=function(a,b){this.u=a;this.D=void 0===b?!1:b;this.C=this.path=this.B="";this.j={};this.url=""};
FF=function(a){EF(a);return a.C};
GF=function(a){return a.u?Rb(a.u,"local"):"local"===a.B};
Zta=function(a){EF(a);return g.Wc(a.j,function(b){return null!==b})};
HF=function(a){EF(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
IF=function(a,b){b=void 0===b?!1:b;EF(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ze();c=new g.Bk(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.Dk(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.DF(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.Dk(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.Dk(c,"www.youtube.com"),d=c.toString()):d=Msa(d);c=new g.DF(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
EF=function(a){if(a.u){if(!TD(a.u)&&!a.u.startsWith("local"))throw new g.bA("Untrusted URL",a.u);var b=g.Kk(a.u);a.B=b.D;a.C=b.j+(null!=b.C?":"+b.C:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=$ta(c);Object.assign(a.j,
aua(b.u.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.u="";a.url="";a.D&&(b=a.get("n"))&&(b=bua[0](b),a.set("n",b),bua.length||qma(""))}};
cua=function(a){EF(a);var b=a.B+(a.B?"://":"//")+a.C+a.path;if(Zta(a)){var c=[];g.Tc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
$ta=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&dua(c,a[b],a[b+1]);return c};
aua=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?dua(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
dua=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
JF=function(a,b,c,d,e,f,h,l,m){this.Ma=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.jf=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.jf=m||null};
g.KF=function(){this.segments=[];this.j=null;this.u=!0};
eua=function(a,b){if(b>a.td())a.segments=[];else{var c=kb(a.segments,function(d){return d.Ma>=b},a);
0<c&&a.segments.splice(0,c)}};
LF=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.B=this.u=0;this.C=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
fua=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
MF=function(a,b){b=g.t(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
NF=function(a,b,c){return a.split(b).Wk.split(c).oC};
OF=function(a){a.C=void 0;a.u=0;a.B=0};
PF=function(a,b,c){a.isFocused(b);return b-a.B+c<=a.j[a.u].length};
gua=function(a){if(!a.C){var b=a.j[a.u];a.C=new DataView(b.buffer,b.byteOffset,b.length)}return a.C};
hua=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!PF(a,b,c)){var d=a.u,e=a.B;a.focus(b+c-1);e=new Uint8Array(a.B+a.j[a.u].length-e);for(var f=0,h=d;h<=a.u;h++)e.set(a.j[h],f),f+=a.j[h].length;a.j.splice(d,a.u-d+1,e);OF(a);a.focus(b)}d=a.j[a.u];return new DataView(d.buffer,d.byteOffset+b-a.B,c)};
QF=function(a,b,c){a=hua(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
iua=function(a){a=QF(a,0,-1);var b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(var c=0;c<a.length;c++)b[c]=a[c]}return b};
RF=function(a,b){a.focus(b);return a.j[a.u][b-a.B]};
jua=function(a,b){a.focus(b);return PF(a,b,4)?gua(a).getUint32(b-a.B):256*(256*(256*RF(a,b)+RF(a,b+1))+RF(a,b+2))+RF(a,b+3)};
kua=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
SF=function(a){return String.fromCharCode.apply(null,a)};
UF=function(a){return TF?TF.decode(a):SF(a)};
g.WF=function(a){if(!a.length)return"";try{if(TF)return TF.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;1024>e&&b<d;){var f=a[b++];if(128>f)VF[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;VF[e++]=55296|f>>10;f=56320|f&1023}VF[e++]=f}}f=String.fromCharCode.apply(String,VF);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
YF=function(a,b){var c;if(null==(c=XF)?0:c.encodeInto)return b=XF.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
lua=function(a){if(XF)return XF.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=YF(a,b);b.length<c&&(b=new Uint8Array(c),c=YF(a,b));b.length>c&&(b=b.subarray(0,c));return b};
ZF=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.u=e)?0:8;this.dataOffset=this.offset+this.j};
$F=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
aG=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
bG=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
cG=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
dG=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
eG=function(a,b){b=void 0===b?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 UF(b)};
mua=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
fG=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};
hG=function(a,b){this.data=a;this.uri=b||"https://web.archive.org/web/20230426095903/http://youtube.com/streaming/metadata/segment/102015";this.j=gG(this,"Sequence-Number");this.I=gG(this,"Segment-Count");this.J=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=gG(this,"Ingestion-Walltime-Us")/1E6;this.u=(gG(this,"First-Frame-Time-Us")+gG(this,"First-Frame-Uncertainty-Us"))/1E6;this.Xj=gG(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=gG(this,"Crypto-Period-Index");
this.B=gG(this,"Crypto-Period-Seconds")};
oua=function(a){return a.data["Cuepoint-Type"]?new PD(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",nua[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
pua=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
gG=function(a,b){return Number(a.data[b])||0};
iG=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.qua=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.rua=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
sua=function(a,b){this.j=a;this.duration=b};
tua=function(a,b,c,d,e){this.u=e;this.j=a||0;this.pitch=b||0;this.yaw=c||0;this.roll=d||0;e.getUint32(4)};
jG=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
uua=function(a,b){var c=g.kG(a,0,1952868452);a=g.kG(a,0,1953658222);if(c&&a){c.skip(1);var d=$F(c)<<16|aG(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=cG(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=$F(a)<<16|aG(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=cG(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=cG(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
mG=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.kG(a,0,1836476516))?g.lG(a):NaN};
vua=function(a){var b=g.kG(a,0,1937011556);if(!b)return null;b=nG(a,b.dataOffset+8,1635148593)||nG(a,b.dataOffset+8,1635135537);if(!b)return null;var c=nG(a,b.dataOffset+78,1936995172),d=nG(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),$F(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=nG(a,d.dataOffset,1886547818)){var h=nG(a,d.dataOffset,1886546020),l=nG(a,d.dataOffset,2037673328);if(!l&&(l=nG(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=bG(h)/65536,f=bG(h)/65536,e=bG(h)/65536);a=new DataView(l.data.buffer,l.dataOffset,l.size-8);return new tua(b,c,f,e,a)}return null};
nG=function(a,b,c){for(;oG(a,b);){var d=pG(a,b);if(d.type===c)return d;b+=d.size}return null};
g.kG=function(a,b,c){for(;oG(a,b);){var d=pG(a,b);if(d.type===c)return d;b=qG(d.type)?b+8:b+d.size}return null};
g.rG=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
pG=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new ZF(a,b,c,d)};
g.lG=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
wua=function(a){a=new ZF(a.data,a.offset,a.size,a.type,a.u);var b=$F(a);a.skip(7);var c=cG(a);if(0===b){b=cG(a);var d=cG(a)}else b=dG(a),d=dG(a);a.skip(2);for(var e=aG(a),f=[],h=[],l=0;l<e;l++){var m=cG(a);f.push(m);h.push(cG(a));a.skip(4)}return{Nt:c,N2:b,f3:d,y8:f,CP:h}};
oG=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0};
qG=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
xua=function(a){a.skip(4);return{P8:eG(a,0),value:eG(a,0),Nt:cG(a),e8a:cG(a),K6a:cG(a),id:cG(a),FV:eG(a),offset:a.offset}};
g.yua=function(a){var b=nG(a,0,1701671783);if(!b)return null;var c=xua(b),d=c.P8;c=jG(c.FV);if(a=nG(a,b.offset+b.size,1701671783))if(a=xua(a),a=jG(a.FV),c&&a){b=g.t(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new hG(c,d):null};
sG=function(a,b){for(var c=nG(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=nG(a,c.offset+c.size,b)}};
g.tG=function(a,b){for(var c=0,d=[];oG(a,c);){var e=pG(a,c);e.type===b&&d.push(e);c=qG(e.type)?c+8:c+e.size}return d};
zua=function(a,b){var c=g.kG(a,0,1937011556),d=g.kG(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.kG(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new mua(a.byteLength+b);fG(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;fG(d,a,c.offset+16,c.size-16);fG(d,e,e.byteOffset+f.dataOffset+8,b);fG(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.t([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.kG(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.kG(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
Aua=function(a){var b=g.kG(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=nG(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=nG(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=nG(a,b.offset+8,1935894633);if(!b)return null;b=nG(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;16>d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
uG=function(a,b){this.j=a;this.pos=0;this.start=b||0};
vG=function(a){return a.pos>=a.j.byteLength};
AG=function(a,b,c){var d=new uG(c);if(!wG(d,a))return!1;d=xG(d);if(!yG(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=zG(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?Bua(d-9,8):Bua(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
Cua=function(a){var b=new uG(a);b.Xm();if(wG(b,[408125543,374648427,174,224]))b=xG(b);else return null;for(var c=a=null;!vG(b);){var d=zG(b,!1);if(21432===d)switch(BG(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=xG(b):CG(b)}if(!c)return null;for(var e,f=d=b=null;!vG(c);)switch(zG(c,!1)){case 30321:if(3!==BG(c))return null;break;case 30324:b=DG(c);break;case 30323:f=DG(c);break;case 30325:d=DG(c);break;case 30322:e=zG(c,!0);e=EG(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:CG(c)}return e?new tua(a,b,f,d,e):null};
xG=function(a){var b=zG(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 uG(c,a.start+a.pos);a.pos+=b;return c};
BG=function(a){for(var b=zG(a,!0),c=FG(a),d=1;d<b;d++)c=256*c+FG(a);return c};
DG=function(a){var b=zG(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
Dua=function(a){var b=zG(a,!0);return UF(EG(a,b))};
FG=function(a){return a.j.getUint8(a.pos++)};
zG=function(a,b){var c=FG(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+FG(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+FG(a),d*=128;return b?c-d:c};
CG=function(a){var b=zG(a,!0);a.pos+=b};
Eua=function(a){if(!yG(a,440786851,!0))return null;var b=a.pos;zG(a,!1);var c=zG(a,!0)+a.pos-b;a.pos=b+c;if(!yG(a,408125543,!1))return null;zG(a,!0);if(!yG(a,357149030,!0))return null;var d=a.pos;zG(a,!1);var e=zG(a,!0)+a.pos-d;a.pos=d+e;if(!yG(a,374648427,!0))return null;var f=a.pos;zG(a,!1);var h=zG(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};
GG=function(a){var b=a.pos;a.pos=0;var c=1E6;wG(a,[408125543,357149030,2807729])&&(c=BG(a));a.pos=b;return c};
Fua=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!HG(a)||!yG(a,160))return a.pos=c,NaN;zG(a,!0);var d=a.pos;if(!yG(a,161))return a.pos=c,NaN;zG(a,!0);FG(a);var e=FG(a)<<8|FG(a);a.pos=d;if(!yG(a,155))return a.pos=c,NaN;d=BG(a);a.pos=c;return(e+d)*b/1E9};
HG=function(a){if(!Gua(a)||!yG(a,524531317))return!1;zG(a,!0);return!0};
Gua=function(a){if(a.Xm()){if(!yG(a,408125543))return!1;zG(a,!0)}return!0};
wG=function(a,b){for(var c=0;c<b.length;c++){if(!yG(a,b[c]))return!1;c!==b.length-1&&zG(a,!0)}return!0};
yG=function(a,b,c){c=void 0===c?!1:c;if(vG(a))return!1;for(var d=a.pos;zG(a,!1)!==b;)if(CG(a),d=a.pos,vG(a))return!1;c&&(a.pos=d);return!0};
Bua=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};
EG=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
IG=function(a){this.zj=a;this.j={};this.url=""};
Hua=function(a,b){var c=b.indexOf("?");if(0<c){var d=aua(b.substr(c+1));g.Tc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=$ta(b);g.Tc(b,function(e,f){this.set(f,e)},a)};
Iua=function(a){var b=a.zj.Ze(),c=[];g.Tc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=Zta(a.zj)?"&":"?";return b+a+d};
JG=function(a,b){var c=new g.DF(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Tc(a.j,function(d,e){c.set(e,null)});
return c};
Jua=function(){this.u=this.j=this.timedOut=this.started=this.C=this.B=0};
KG=function(a){a.C=(0,g.M)();a.started=0;a.timedOut=0;a.j=0};
Kua=function(a,b,c){var d=a.started+4*a.j;c&&(d+=a.u);return Math.pow(b.Yi,d)};
LG=function(a,b){a[b]||(a[b]=new Jua);return a[b]};
MG=function(a){this.J=this.I=this.D=this.u=0;this.j=a;this.B=a.clone()};
OG=function(a,b,c){if(GF(a.j))return!1;var d=LG(c,FF(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=NG(a,b);c=LG(c,FF(a));return c.timedOut+c.j+ +(b.Sn&&!c.C)<d};
Lua=function(a,b,c){a=b?NG(a,c):a.j;return new IG(a)};
NG=function(a,b){b=b?b.lm:!1;a.C||(a.C=IF(a.B,b));return a.C};
PG=function(a,b,c){return FF(b?NG(a,c):a.j)};
QG=function(a,b,c){c=LG(c,PG(a,OG(a,b,c),b));c=Math.max(a.D,c.timedOut)+b.Ex*(a.u-a.D)+.25*a.I;b=c>b.Qg?1E3*Math.pow(b.Yi,c-b.Qg):0;return 0===b?!0:a.J+b<(0,g.M)()};
Mua=function(a,b,c){a.j.set(b,c);a.B.set(b,c);a.C&&a.C.set(b,c)};
RG=function(a,b,c,d){this.T=a;this.initRange=c;this.indexRange=d;this.j=null;this.C=!1;this.J=0;this.D=this.B=null;this.info=b;this.u=new MG(a)};
SG=function(a,b,c){return Nua(a.info,b,c)};
TG=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
UG=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new TG(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
VG=function(a,b){return new TG(a,a+b-1)};
Oua=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
WG=function(a){if(!a)return new TG(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new TG(b,a),0<b.length))return b};
XG=function(a,b,c,d,e,f,h,l,m,n,p){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.clipId=void 0===p?"":p;this.J=[];this.D="";this.Ma=-1;this.D=d;this.Ma=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Ob=l||0;this.u=0<=m?m:this.range?this.range.length:NaN;this.bf=this.range?this.Ob+this.u===this.range.length:void 0===n?!!this.u:n;this.range?(this.C=this.startTime+this.duration*this.Ob/this.range.length,this.I=this.duration*this.u/this.range.length,this.B=this.C+this.I):
Pua(this)};
Pua=function(a){a.C=a.startTime;a.I=a.duration;a.B=a.C+a.I};
YG=function(a){return a.bf&&a.j.index.OM(a.Ma)};
Qua=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Ma!==a.Ma);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Ob+b.u===a.Ob+a.u:d};
ZG=function(a){return 1===a.type||2===a.type};
$G=function(a){return 3===a.type||6===a.type};
aH=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Ob+a.u===b.range.start+b.Ob:a.Ma===b.Ma?a.Ob+a.u===b.Ob:a.Ma+1===b.Ma&&0===b.Ob&&a.bf:!1};
Rua=function(a,b){return aH(a,b)||Ee(a.B,b.C)||a.Ma+1===b.Ma&&0===b.Ob&&a.bf?!0:!1};
bH=function(a){return a.Ma+(a.bf?1:0)};
Sua=function(a){1===a.length||g.Zl(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new TG(a[0].range.start+a[0].Ob,b.range.start+b.Ob+b.u-1)};
Tua=function(a){for(var b=1;b<a.length;b++)if(!aH(a[b-1],a[b]))return!1;return!0};
Uua=function(a){var b=0;a=g.t(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
dH=function(a){a=cH(a);var b="";g.Tc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};
cH=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.D;b.seg=String(a.Ma);a.range&&(b.range=""+(a.range.start+a.Ob)+"-"+(a.range.start+a.Ob+a.u-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.I).toFixed(1);b.off=String(a.Ob);b.len=String(a.u);a.bf&&(b.end="1");YG(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
Vua=function(a){return new XG(a.type,a.j,a.range,"getEmptyStubBefore"+a.D,a.Ma,a.startTime,0,a.Ob,0)};
Wua=function(a){return new XG(a.type,a.j,a.range,"getEmptyStubAfter"+a.D,a.Ma,a.startTime+a.duration,0,a.Ob+a.u,0)};
Xua=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Ob>=b.range.start+b.Ob&&a.range.start+a.Ob+a.u<=b.range.start+b.Ob+b.u:a.Ma===b.Ma&&a.Ob>=b.Ob&&(a.Ob+a.u<=b.Ob+b.u||b.bf)};
Yua=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.Jg()?(a=a.j.Jz(a),Wm(a,function(c){return Yua(c,b)})):a.Ma===b.Ma&&!!b.u&&b.Ob+b.u>a.Ob&&b.Ob+b.u<=a.Ob+a.u};
eH=function(a,b){var c=b.Ma;a.D="updateWithSegmentInfo";a.Ma=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,Pua(a)};
fH=function(a,b){var c=this;this.gb=a;this.J=this.u=null;this.D=this.Tg=NaN;this.I=this.requestId=null;this.Ne={v7a:function(){return c.range}};
this.j=a[0].j.u;this.B=b||"";this.gb[0].range&&0<this.gb[0].u&&(Tua(a)?(this.range=Sua(a),this.C=this.range.length):(this.range=this.gb[this.gb.length-1].range,this.C=Uua(a)))};
gH=function(a){return!ZG(a.gb[a.gb.length-1])};
hH=function(a){return 4===a.gb[a.gb.length-1].type};
g.iH=function(a,b,c){c=null===a.I?OG(a.j,b,c):a.I;if(a.u){b=c?IF(a.u,b.lm):a.u;var d=new IG(b);d.get("alr")||d.set("alr","yes");a.B&&Hua(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new IG(new g.DF(a.B)):(d=Lua(a.j,c,b),a.B&&Hua(d,a.B));(b=a.range)?d.set("range",b.toString()):a.gb[0].j.ov()&&1===a.gb.length&&a.gb[0].Ob&&d.set("range",a.gb[0].Ob+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.Tg)||d.set("headm",a.Tg.toString());isNaN(a.D)||d.set("mffa",a.D+"ms");a.urlParams&&g.Tc(a.urlParams,function(e,
f){d.set(f,e)});
return d};
Zua=function(a){if(a.range)return a.C;a=a.gb[0];return Math.round(a.I*a.j.info.dc)};
$ua=function(a,b){return Math.max(0,a.gb[0].C-b)};
jH=function(a,b,c,d,e,f){f=void 0===f?0:f;RG.call(this,a,b,d,void 0);this.I=c;this.Xj=f;this.index=e||new g.KF};
ava=function(a,b,c,d,e){this.Ma=a;this.startSecs=b;this.Sg=c;this.j=d||NaN;this.u=e||NaN};
kH=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""};
lH=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
bva=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
cva=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
mH=function(){this.j=[];this.u=null;this.I=0;this.B=[];this.D=!1;this.J="";this.C=-1};
dva=function(a){var b=a.B;a.B=[];return b};
eva=function(){this.C=[];this.j=null;this.u={};this.B={}};
iva=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=fva(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=gva(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=hva(a,e));if(null==f)return;f.update(d);g.Cb(c,dva(f))}g.Cb(a.C,c);Aaa(a.C,function(h){return 1E3*h.startSecs+h.j})};
jva=function(a){a.j&&(a.j.j=[]);g.Tc(a.u,function(b){b.j=[]});
g.Tc(a.B,function(b){b.j=[]})};
fva=function(a){a.j||(a.j=new mH);return a.j};
gva=function(a,b){a.u[b]||(a.u[b]=new mH);return a.u[b]};
hva=function(a,b){a.B[b]||(a.B[b]=new mH);return a.B[b]};
nH=function(a){var b=void 0===a?{}:a;a=void 0===b.Xj?0:b.Xj;var c=void 0===b.Dm?!1:b.Dm,d=void 0===b.Fo?0:b.Fo,e=void 0===b.Ge?0:b.Ge,f=void 0===b.Yg?Infinity:b.Yg,h=void 0===b.iz?0:b.iz;b=void 0===b.Se?!1:b.Se;g.KF.call(this);this.kq=this.Po=-1;this.B=null;this.sj=a;this.Fo=d;this.Dm=c;this.Ge=e;this.Yg=f;this.iz=h;this.Se=b};
pH=function(a,b,c){b=oH(a,b);return 0<=b&&(c||!a.segments[b].pending)};
oH=function(a,b){return Kb(a.segments,function(c){return b-c.Ma})};
qH=function(a,b,c){c=void 0===c?{}:c;jH.call(this,a,b,"",void 0,void 0,c.Xj||0);this.index=new nH(c)};
rH=function(a,b,c){RG.call(this,a,b);this.I=c;this.index=new g.KF;this.index.u=!1};
kva=function(a,b,c){var d=a.index.bG(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.dc*f;return new fH([new XG(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
lva=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.I;b=b.J.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new JF(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
sH=function(a,b,c){this.info=a;this.j=b;this.B=c;this.u=null;this.D=-1;this.timestampOffset=0;this.I=!1;this.C=this.info.j.Vy()&&!this.info.Ob};
tH=function(a){return hua(a.j)};
mva=function(a,b){if(1!==a.info.j.info.containerType||a.info.Ob||!a.info.bf)return!0;a=tH(a);for(var c=0,d=0;c+4<a.byteLength;){d=a.getUint32(c);if(!d)return!1;c+=d}return c!==a.byteLength?(b&&(b.lastboxlen=d.toString(),4<=a.byteLength&&(b.lastbytes=a.getUint32(a.byteLength-4).toString()),b.boxlen=c.toString(),b.bytelen=a.byteLength.toString()),!1):!0};
nva=function(a,b){b=Math.min(b,a.info.u);var c=a.j.split(b);return[new sH(new XG(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ob,b,!1,a.info.clipId),c.oC,a.B),new sH(new XG(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ob+b,a.info.u-b,a.info.bf,a.info.clipId),c.Wk)]};
uH=function(a,b,c){var d;if(!(d=!aH(a.info,b.info)||a.info.bf)){if(c=void 0===c?!1:c)c=b.j,c=!(c.j.length?fua(a.j,c.j[0]):1);d=c}if(d)return null;c=new XG(a.info.type,a.info.j,a.info.range,a.info.D,a.info.Ma,a.info.startTime,a.info.duration,a.info.Ob,a.info.u,a.info.bf,a.info.clipId);d=b.info;c.u+=d.u;c.range&&(c.I+=d.I);c.B=d.B;c.bf=d.bf;d=new LF;MF(d,a.j);MF(d,b.j);c=new sH(c,d,a.B);c.u=b.u||a.u;return c};
ova=function(a){g.vH(a.info.j.info)||a.info.j.info.Ee();if(-1!==a.D)return a.D;if(a.u&&pua(a.u))return a.D=pua(a.u),a.D;if(g.vH(a.info.j.info)){var b=tH(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;oG(b,f);){var h=pG(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.lG(h):1952867444===h.type&&isNaN(d)&&(d=g.rG(h));f=qG(h.type)?f+8:f+h.size}!e&&c&&(e=mG(c));b=d/e}else b=new uG(tH(a)),c=a.C?b:new uG(new DataView(a.info.j.j.buffer)),d=GG(c),c=b.pos,b.pos=0,HG(b)?yG(b,231)?
(d=BG(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.D=b||a.info.C;return a.D};
wH=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=ova(a)+b;pva(a,c);a.timestampOffset=b};
pva=function(a,b){g.vH(a.info.j.info)||a.info.j.info.Ee();a.D=b;if(g.vH(a.info.j.info)){var c=tH(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;oG(c,f);){var h=pG(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.lG(h)));if(1952867444===h.type){!d&&a&&(d=mG(a));var l=g.rG(h);isNaN(e)&&(e=Math.round(b*d)-l);l+=e;if(h.data.getUint8(h.dataOffset)){var m=h.data,n=h.dataOffset+4;m.setUint32(n,Math.floor(l/4294967296));m.setUint32(n+4,l&4294967295)}else h.data.setUint32(h.dataOffset+
4,l)}f=qG(h.type)?f+8:f+h.size}return!0}c=new uG(tH(a));a=a.C?c:new uG(new DataView(a.info.j.j.buffer));d=GG(a);a=c.pos;c.pos=0;if(HG(c)&&yG(c,231))if(e=zG(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
xH=function(a,b){b=void 0===b?!1:b;var c=qva(a);a=b?0:a.info.I;return c||a};
qva=function(a){g.vH(a.info.j.info)||a.info.j.info.Ee();if(a.u&&6===a.info.type)return a.u.Xj;if(g.vH(a.info.j.info)){var b=tH(a);var c=0;b=g.tG(b,1936286840);b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=wua(d.value),c+=d.CP[0]/d.Nt;c=c||NaN;if(!(0<=c))a:{c=tH(a);b=a.info.j.j;for(var e=d=0,f=0;oG(c,d);){var h=pG(c,d);if(1836476516===h.type)e=g.lG(h);else if(1836019558===h.type){!e&&b&&(e=mG(b));if(!e){c=NaN;break a}var l=nG(h.data,h.dataOffset,1953653094),m=e,n=nG(l.data,l.dataOffset,1952868452);
l=nG(l.data,l.dataOffset,1953658222);var p=bG(n);bG(n);p&2&&bG(n);n=p&8?bG(n):0;var q=bG(l),r=q&1;p=q&4;var v=q&256,x=q&512,z=q&1024;q&=2048;var B=cG(l);r&&bG(l);p&&bG(l);for(var F=r=0;F<B;F++){var G=v?bG(l):n;x&&bG(l);p&&0===F||!z||bG(l);q&&bG(l);r+=G}f+=r/m}d=qG(h.type)?d+8:d+h.size}c=f||NaN}c||g.DD(new g.bA("Missing duration while parsing bmff",dH(a.info)))}else c=new uG(tH(a)),a=a.C?c:new uG(new DataView(a.info.j.j.buffer)),c=Fua(c,GG(a));return c};
rva=function(a){var b=tH(a);var c=(c=g.kG(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.kG(b,0,1836476516))?g.lG(b):a?mG(a):NaN);return c};
sva=function(a){return a.info.j.info.Ee()&&160===RF(a.j,0)};
tva=function(a){if(!a.u){g.vH(a.info.j.info)||a.info.j.info.Ee();if(g.vH(a.info.j.info))var b=g.yua(tH(a));else{b=new uG(tH(a));var c=b.pos;b.pos=0;var d=null,e=null;if(wG(b,[408125543,307544935]))for(var f=b.pos+zG(b,!0);b.pos<f;)if(29555!==zG(b,!1))CG(b);else for(var h=b.pos+zG(b,!0);b.pos<h;)if(26568!==zG(b,!1))CG(b);else for(var l=b.pos+zG(b,!0);b.pos<l;){var m=zG(b,!1);if(17543===m){if(m=Dua(b),m=jG(m))if(e)for(var n=g.t(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else 17827===m?(m=Dua(b),d||(d=m)):CG(b)}b.pos=c;b=e?new hG(e,d):null}a.u=b}};
yH=function(a){if(!a.I){if(g.vH(a.info.j.info)){var b=tH(a);var c=nG(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=Eua(new uG(tH(a)));b&&(a.info.j.j=b,a.I=!0)}};
g.zH=function(){this.count=0;this.j=1;this.u=!1;this.offsets=new Float64Array(128);this.Li=new Float64Array(128)};
uva=function(a,b){return b+1<a.count||a.u?a.offsets[b+1]-a.offsets[b]:-1};
AH=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
BH=function(a,b,c,d){RG.call(this,a,b,c,d);var e=this;this.I=null;this.Ne={cC:function(f,h,l){return e.cC(f,h,l)}};
this.index=new g.zH};
CH=function(a,b,c,d,e){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d;this.u=void 0===e?0:e};
vva=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e;this.id=void 0===f?"":f};
xva=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return wva[a];return null};
EH=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||DH(a,b);this.j=g.jF[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.jF[this.quality],0===a?a="Auto":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":"")));
this.qualityLabel=a;this.u=l||"";this.primaries=m||""};
DH=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=FH[0];for(var d=0;d<FH.length;d++){var e=FH[d],f=g.jF[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
IH=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.dc||(c.dc=16E3);Object.assign(this,c);a=g.t(this.id.split(";"));this.itag=a.next().value;this.u=a.next().value;this.containerType=GH(b);this.Lb=HH[this.itag]||""};
BF=function(a){return"9"===a.Lb||"("===a.Lb||"9h"===a.Lb||"(h"===a.Lb};
JH=function(a){return"9h"===a.Lb||"(h"===a.Lb};
KH=function(a){return"1"===a.Lb||"1h"===a.Lb};
AF=function(a){return"mac3"===a.Lb||"meac3"===a.Lb||"m"===a.Lb};
zF=function(a){return"MAC3"===a.Lb||"MEAC3"===a.Lb||"M"===a.Lb};
g.vH=function(a){return 1===a.containerType};
LH=function(a){return"application/x-mpegURL"===a.mimeType};
MH=function(a,b){return{itag:+a.itag,jj:b?0:a.lastModified,xtags:a.u||""}};
Nua=function(a,b,c){a=MH(a,b);return(c||"")+";"+a.itag+";"+(a.jj||0)+";"+a.xtags};
yva=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.Lb)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.dc||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.dc||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.j=d})};
NH=function(a){return/(opus|mp4a|dtse|ac-3|ec-3)/.test(a)};
YH=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
ZH=function(a){return a.includes("vtt")||a.includes("text/mp4")};
GH=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
$H=function(a,b,c,d,e,f){var h=new CH;b in g.jF||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.jF[b],d=Math.round(16*e/9));f=new EH(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new IH(c,a,{audio:h,video:f})};
zva=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.xu)?void 0:c.toFixed(0))+", "+(null==(d=a.dc)?void 0:d.toFixed(0))+")"};
g.aI=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.bI=function(){Jz.apply(this,arguments)};
cI=function(){var a=g.Ga("yt.player.utils.videoElement_");a||(a=g.qf("VIDEO"),g.Fa("yt.player.utils.videoElement_",a));return a};
dI=function(a){var b=cI();return!!(b&&b.canPlayType&&b.canPlayType(a))};
fI=function(a){if(/opus/.test(a)&&g.eI&&!kq("38")&&!g.Yy())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!ioa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!dI(a)};
Ava=function(a){try{var b=fI('video/mp4; codecs="avc1.42001E"')||fI('video/webm; codecs="vp9"');return(fI('audio/mp4; codecs="mp4a.40.2"')||fI('audio/webm; codecs="opus"'))&&(b||!a)||dI('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
gI=function(){var a=cI();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
hI=function(){var a=cI();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
iI=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
jI=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
kI=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};
lI=function(a,b){return 0<=kI(a,b)};
Bva=function(a,b){if(!a)return NaN;b=kI(a,b);return 0<=b?a.start(b):NaN};
mI=function(a,b){if(!a)return NaN;b=kI(a,b);return 0<=b?a.end(b):NaN};
nI=function(a){return a&&a.length?a.end(a.length-1):NaN};
oI=function(a,b){a=mI(a,b);return 0<=a?a-b:0};
pI=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 iI(d,e)};
qI=function(a,b,c,d){g.dE.call(this);var e=this;this.Ed=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.tU={error:function(){!e.isDisposed()&&e.isActive&&e.ma("error",e)},
updateend:function(){!e.isDisposed()&&e.isActive&&e.ma("updateend",e)}};
g.eE(this.Ed,this.tU);this.rE=this.isActive};
sI=function(a,b,c,d,e,f){g.dE.call(this);var h=this;this.Vb=a;this.Dg=b;this.id=c;this.containerType=d;this.Lb=e;this.Xg=f;this.XM=this.FC=this.Cf=null;this.jF=!1;this.appendWindowStart=this.timestampOffset=0;this.GK=iI([],[]);this.iB=!1;this.Kz=rI?[]:void 0;this.ud=function(m){return h.ma(m.type,h)};
var l;if(null==(l=this.Vb)?0:l.addEventListener)this.Vb.addEventListener("updateend",this.ud),this.Vb.addEventListener("error",this.ud)};
Cva=function(a,b){b.isEncrypted()&&(a.XM=a.FC);3===b.type&&(a.Cf=b)};
tI=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
uI=function(a,b){this.j=a;this.u=void 0===b?!1:b;this.B=!1};
vI=function(a,b,c){c=void 0===c?!1:c;g.C.call(this);this.mediaElement=a;this.Wa=b;this.isView=c;this.I=0;this.C=!1;this.D=!0;this.T=0;this.callback=null;this.Wa||(this.Dg=this.mediaElement.ub());this.events=new g.bI(this);g.E(this,this.events);this.B=new uI(this.Wa?window.URL.createObjectURL(this.Wa):this.Dg.webkitMediaSourceURL,!0);a=this.Wa||this.Dg;Kz(this.events,a,["sourceopen","webkitsourceopen"],this.x7);Kz(this.events,a,["sourceclose","webkitsourceclose"],this.w7);this.J={updateend:this.O_}};
Dva=function(){return!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
Eva=function(a,b){wI(a)?g.Mf(function(){b(a)}):a.callback=b};
Fva=function(a,b,c){if(xI){var d;yI(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.va)?void 0:zI(d)},!1);g.eE(b,a.J,a);g.eE(c,a.J,a)}a.j=b;a.u=c;g.E(a,b);g.E(a,c)};
AI=function(a){return!!a.j||!!a.u};
wI=function(a){try{return"open"===BI(a)}catch(b){return!1}};
BI=function(a){if(a.Wa)return a.Wa.readyState;switch(a.Dg.webkitSourceState){case a.Dg.SOURCE_OPEN:return"open";case a.Dg.SOURCE_ENDED:return"ended";default:return"closed"}};
CI=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Gva=function(a,b,c,d){if(!a.j||!a.u)return null;var e=a.j.isView()?a.j.Ed:a.j,f=a.u.isView()?a.u.Ed:a.u,h=new vI(a.mediaElement,a.Wa,!0);h.B=a.B;Fva(h,new qI(e,b,c,d),new qI(f,b,c,d));wI(a)||a.j.Vq(a.j.Jd());return h};
Hva=function(a){var b;null==(b=a.j)||b.Tx();var c;null==(c=a.u)||c.Tx();a.D=!1};
Iva=function(a){return DI(function(b,c){return g.Ly(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.Jva=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=UF(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
DI=function(a,b,c){b.match(Kva);return a(b,c).then(function(d){var e=g.Jva(d.xhr);return e?DI(a,e,c):d.xhr})};
FI=function(a,b,c,d){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.dE.call(this);var e=this;this.sourceUrl=a;this.isLivePlayback=c;this.videoId=d;this.Ja=this.duration=0;this.isPremiere=this.Se=this.B=this.isLiveHeadPlayable=this.isLive=this.u=!1;this.Yg=this.Ge=0;this.isOtf=this.fd=!1;this.Aa=(0,g.M)();this.T=Infinity;this.j={};this.I=new Map;this.state=this.Kg=0;this.timeline=null;this.isManifestless=!1;this.ea=[];this.C=null;this.Z=0;this.D="";this.ya=NaN;this.Od=this.jc=this.Ld=this.timestampOffset=
this.J=0;this.oa=!1;this.La=[];this.Ne={r6a:function(h){EI(e,h)}};
var f;this.Qa=null==(f=b)?void 0:f.ob("html5_use_network_error_code_enums");this.Xa=!!b&&b.ob("html5_live_head_playable");Lva=!!b&&b.ob("html5_modern_vp9_mime_type")};
Tta=function(a){return g.Wc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
tF=function(a){return g.Wc(a.j,function(b){return!!b.info.Pd})};
Mva=function(a){return g.Wc(a.j,function(b){return ZH(b.info.mimeType)})};
Nva=function(a){return g.Wc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
Ova=function(a){return g.Wc(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
Pva=function(a){return g.Wc(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
Qva=function(a){return g.Wc(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
Rva=function(a){return dba(a.j,function(b){return b.info.video?b.wO():!0})};
qF=function(a){return g.Wc(a.j,function(b){return GF(b.u.j)})};
EI=function(a,b,c){a.j[b.info.id]=b;c=c||a.videoId;a.I.set(SG(b,a.fd,c),b)};
Sva=function(a,b){return(a.videoId||"")+";"+b.itag+";"+(b.jj||0)+";"+b.xtags};
II=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(YH(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=Tva[a.stereoLayout]);var r=xva(a)||void 0;if(null==n?0:n.primaries)var v=Uva[n.primaries]||void 0;h=new EH(h,e,l,p,q,void 0,m,r,v);d=GI(d,h,HH[a.itag||""])}var x;if(NH(d)){var z=a.audioSampleRate;q=a.audioTrack;z=new CH(z?+z:void 0,a.audioChannels,a.spatialAudioType,
a.isDrc,a.loudnessDb);q&&(v=q.displayName,e=q.id,q=q.audioIsDefault,v&&(x=new g.aI(v,e||"",!!q)))}var B;a.captionTrack&&(m=a.captionTrack,q=m.displayName,v=m.vssId,e=m.languageCode,l=m.kind,m=m.id,q&&v&&e&&(B=new vva(q,v,e,l,a.xtags,m)));q=Number(a.bitrate)/8;v=Number(a.contentLength);e=Number(a.lastModified);l=a.drmFamilies;a=a.type;c=c&&v?v/c:0;if(b&&l){var F={};l=g.t(l);for(m=l.next();!m.done;m=l.next())(m=HI[m.value])&&(F[m]=b[m])}return new IH(f,d,{audio:z,video:h,Jc:x,Pd:F,dc:q,xu:c,contentLength:v,
lastModified:e,captionTrack:B,streamType:a})};
JI=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(YH(d)){var h=(a.size||"640x360").split("x");h=new EH(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=GI(d,h,HH[a.itag])}var l;if(NH(d)){var m=new CH(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.aI(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&
(n=new vva(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 v=g.t(a.drm_families.split(",")),x=v.next();!x.done;x=v.next())x=x.value,r[x]=b[x]}return new IH(e,d,{audio:m,video:h,Jc:l,Pd:r,dc:f,xu:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type})};
Vva=function(a){return Wm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Wva=function(a){return Wm(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
Xva=function(a,b){return a.timeline?Eb(a.timeline.C,b):a.ea.length?Eb(a.ea,b):[]};
KI=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.DF(a,!0);a.set("alr","yes");c&&(c=Yta(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
awa=function(a,b){var c=kH(b,"id");c=c.replace(":",";");var d=kH(b,"mimeType"),e=kH(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(kH(b,"bandwidth"))/8;var f=Number(lH(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(YH(d)){var l=Number(kH(b,"width"));var m=Number(kH(b,"height")),n=Number(kH(b,"frameRate")),p=Yva(kH(b,a.D+":projectionType"));a:switch(kH(b,a.D+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=
0}l=new EH(l,m,n,p,q)}if(NH(d)){var r=Number(kH(b,"audioSamplingRate"));var v=Number(kH(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=Zva(kH(b,a.D+":spatialAudioType"));r=new CH(r,v,m);a:{v=kH(b,"lang")||"und";if(m=lH(b,"Role"))if(p=kH(m,"value")||"",g.$c($va,p)){m=v+"."+$va[p];n="main"===p;a=kH(b,a.D+":langName")||v+" - "+p;v=new g.aI(a,m,n);break a}v=void 0}}if(b=lH(b,"ContentProtection"))if("https://web.archive.org/web/20230426095903/http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var x={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(x[a]=m.trim()))}else x=void 0;return new IH(c,d,{audio:r,video:l,Jc:v,Pd:x,dc:e,xu:h,contentLength:f})};
Yva=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"}};
Zva=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"}};
cwa=function(a,b){b=void 0===b?"":b;a.state=1;a.Aa=(0,g.M)();return Iva(b||a.sourceUrl).then(function(c){if(!a.isDisposed()){a.Kg=c.status;var d=c.responseText;c=new DOMParser;d=g.we(oma(d));c=c.parseFromString(g.ve(d),"text/xml").getElementsByTagName("MPD")[0];a.T=1E3*bva(kH(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.t(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"https://web.archive.org/web/20230426095903/http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=
Infinity>a.T&&a.isLivePlayback;a.Ja=Number(kH(c,a.D+":earliestMediaSequence"))||0;if(d=Date.parse(cva(kH(c,a.D+":mpdResponseTime"))))a.Z=(Date.now()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Zl(c.getElementsByTagName("Period"),a.c8,a);a.state=2;a.ma("loaded");bwa(a)}return a}).Zj(function(c){if(c instanceof Jy){var d=c.xhr;
a.Kg=d.status}a.state=3;a.ma("loaderror");return Rf(d)})};
dwa=function(a,b,c){return cwa(new FI(a,b,c),a)};
LI=function(a){return a.isLive&&(0,g.M)()-a.Aa>=a.T};
bwa=function(a){var b=a.T;isFinite(b)&&(LI(a)?a.refresh():(b=Math.max(0,a.Aa+b-(0,g.M)()),a.C||(a.C=new g.Ip(a.refresh,b,a),g.E(a,a.C)),a.C.start(b)))};
ewa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.td()+1}return 0};
MI=function(a){return a.Ld?a.Ld-(a.J||a.timestampOffset):0};
NI=function(a){return a.jc?a.jc-(a.J||a.timestampOffset):0};
OI=function(a){if(!isNaN(a.ya))return a.ya;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()){b=0;for(c=d.Lm();c<=d.td();c++)b+=d.getDuration(c);b/=d.Fy();b=.5*Math.round(b/.5);10<d.Fy()&&(a.ya=b);return b}if(a.isLive&&(d=b[c],d.Xj))return d.Xj}return NaN};
fwa=function(a,b){a=fba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.uh(b);return a.getStartTime(c)===b?b:c<a.td()?a.getStartTime(c+1):NaN};
gwa=function(a,b){if(!a.j["0"]){var c=new IH("0","fakesb",{video:new EH(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new jH(new g.DF("https://web.archive.org/web/20230426095903/http://www.youtube.com/videoplayback"),c,"fake"):new BH(new g.DF("https://web.archive.org/web/20230426095903/http://www.youtube.com/videoplayback"),c,new TG(0,0),new TG(0,0))}};
PI=function(a,b,c){for(var d in a.j){var e=ZH(a.j[d].info.mimeType)||a.j[d].info.Xg();if(c===e){e=a.j[d].index;var f=oH(e,b);0<=f&&e.segments.splice(f,1)}}};
hwa=function(a){for(var b in a.j)eua(a.j[b].index,Infinity)};
iwa=function(a){a.jc=0;a.Ld=0;a.Od=0};
jwa=function(a){return a.Xa&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
GI=function(a,b,c){null===QI&&(QI=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(Lva&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return QI||"9"!==c&&"("!==c?QI||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!QI&&!RI||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.u&&(f="16"),"arib-std-b67"===b.u&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
kwa=function(a){g.Pz("yt-player-bandwidth",a,2592E3)};
SI=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Ooa()>(0,g.M)()-1E3*a))return 0;a=g.Qz("yt-player-quality");if("string"===typeof a){if(a=g.jF[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
lwa=function(){var a=g.Qz("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};
mwa=function(){var a={values:{},gq:{}};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};
nwa=function(a,b){var c="";49<b?c="p60":32<b&&(c="p48");return a+c};
UI=function(a,b){return+TI()[nwa(a,b)]||8192};
TI=function(){return g.Qz("yt-player-performance-cap")||{}};
owa=function(a){g.Pz("yt-player-watch-later-pending",a)};
pwa=function(){return!!g.Qz("yt-player-headers-readable")};
qwa=function(a){g.Pz("yt-player-playback-on-reload",a)};
rwa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.VI=function(){var a=g.Qz("yt-player-caption-language-preferences");return a?a:[]};
swa=function(a){this.D=a;this.Lc=this.j=this.Qa=this.T=this.J=this.Aa=this.La=this.kb=this.ib=!1;this.Z=this.ea=0;this.Pb=!1;this.Ga=!0;this.tb=!1;this.C=0;this.Ja=!1;this.Oc=Infinity;this.tK=!1;this.Wc=!0;this.fb=this.Xa=this.Ya=!1;this.u={};this.B=this.oa=!1;this.Dc=this.D.K("html5_enable_audio_track_log");this.jc=!1;this.uc=this.D.experiments.ob("html5_enable_vp9_fairplay");this.rd=this.D.K("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Vd=this.D.K("html5_account_onesie_format_selection_during_format_filter");
this.dj=0;this.Tb=this.Xb=!1};
Uta=function(a){if(a.kb)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ja&&(b.unshift("1"),b.unshift("1h"));a.j&&b.unshift("h");a.ya&&(b=(twa[a.ya]||[a.ya]).concat(b));return b};
Sta=function(a){var b=["o","a","A"];1===a.dj&&(a.Aa&&(b=["m","M"].concat(b)),a.J&&(b=["mac3","MAC3"].concat(b)),a.T&&(b=["meac3","MEAC3"].concat(b)));a.ib&&(b=["so","sa"].concat(b));!a.Lc||a.Qa||a.I||b.unshift("a");a.La&&b.unshift("ah");a.I&&(b=(twa[a.I]||[a.I]).concat(b));return b};
WI=function(a,b,c){b=void 0===b?{}:b;if(a.K("html5_disable_av1"))return b.disabled=1,0;if(xF(a.D,yF.AV1_CODECS)&&xF(a.D,yF.HEIGHT)&&xF(a.D,yF.BITRATE))return b.isCapabilityUsable=1,8192;try{var d=rwa();if(d)return b.localPref=d}catch(h){}a=1080;2>=navigator.hardwareConcurrency&&(a=480);b.coreCount=navigator.hardwareConcurrency;hoa()&&(b.isArm=1,a=240);if(c){var e,f;if(d=null==(e=c.videoInfos.find(function(h){return KH(h)}))?void 0:null==(f=e.j)?void 0:f.powerEfficient)a=8192,b.isEfficient=1;
c=c.videoInfos[0].video;e=Math.min(UI("1",c.fps),UI("1",30));b.perfCap=e;a=Math.min(a,e);c.isHdr()&&!d&&(b.hdr=1,a*=.75)}else c=UI("1",30),b.perfCap30=c,a=Math.min(a,c),c=UI("1",60),b.perfCap60=c,a=Math.min(a,c);return b.av1Threshold=a};
XI=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.CD(b)}}:a};
YI=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.u=c;this.experiments=d;this.j={};this.Ya=this.keySystemAccess=null;this.nx=this.ox=-1;this.rl=null;this.B=!!d&&d.ob("edge_nonprefixed_eme")};
$I=function(a){return a.B?!1:!a.keySystemAccess&&!!ZI()&&"com.microsoft.playready"===a.keySystem};
aJ=function(a){return"com.microsoft.playready"===a.keySystem};
bJ=function(a){return!a.keySystemAccess&&!!ZI()&&"com.apple.fps.1_0"===a.keySystem};
cJ=function(a){return"com.youtube.fairplay"===a.keySystem};
dJ=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.eJ=function(a){return"fairplay"===a.flavor};
ZI=function(){var a=window,b=a.MSMediaKeys;az()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
hJ=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.eI&&!g.Yy())return kq("45");if(g.oB||g.mf)return a.ob("edge_nonprefixed_eme");if(g.fJ)return kq("47");if(g.BA){if(a.ob("html5_enable_safari_fairplay"))return!1;if(a=g.gJ(a,"html5_safari_desktop_eme_min_version"))return kq(a)}return!0};
uwa=function(a,b,c,d){var e=Zy(),f=(c=e||c&&az())?["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.u(f),g.u(iJ.playready)):[].concat(g.u(iJ.playready),g.u(f))};
kJ=function(){this.B=this.j=0;this.u=Array.from({length:jJ.length}).fill(0)};
vwa=function(a){if(0===a.j)return null;for(var b=a.j.toString()+"."+Math.round(a.B).toString(),c=0;c<jJ.length;++c)if(0<a.u[c])b+="."+jJ[c].toString()+"_"+Math.round(a.u[c]).toString();else break;return b};
wwa=function(){};
xwa=function(a){this.name=a;this.startTimeMs=(0,g.M)();this.j=!1};
ywa=function(){this.j=new wwa};
lJ=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new kJ),a.j[b].Sf(c,d))};
zwa=function(){};
Awa=function(a){this.name=a;this.startTimeMs=(0,g.M)();this.j=!1};
Bwa=function(){this.j=new zwa};
Cwa=function(a,b,c,d){if(b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then){var e=function(f){mJ(a,c,(0,g.M)()-d);return f};
return b.then(e,e)}mJ(a,c,(0,g.M)()-d);return b};
mJ=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new kJ),a.j[b].Sf(c,d))};
Dwa=function(){};
nJ=function(a,b,c,d,e){d=void 0===d?!1:d;g.C.call(this);this.D=b;this.useCobaltWidevine=d;this.xa=e;this.u=[];this.B={};this.j={};this.callback=null;this.I=!1;this.C=[];this.J=this.K("html5_store_probed_media_key_system_access");this.initialize(a,!c)};
Fwa=function(a,b){a.callback=b;a.C=[];hJ(a.D.experiments)?oJ(a):Ewa(a)};
oJ=function(a){if(!a.isDisposed())if(0===a.u.length)a.callback(a.C);else{var b=a.u[0],c=a.B[b],d=Gwa(a,c);if(a.J){if(pJ&&pJ.keySystem===b&&pJ.I8===JSON.stringify(d)){a.xa("remksa",{re:!0});Hwa(a,c,pJ.keySystemAccess);return}var e,f;a.xa("remksa",{re:!1,ok:null!=(f=null==(e=pJ)?void 0:e.keySystem)?f:""});pJ=void 0}(qJ.isActive()&&qJ.ww()?qJ.Dw("emereq",navigator.requestMediaKeySystemAccess).call(navigator,b,d):navigator.requestMediaKeySystemAccess(b,d)).then(XI(function(h){Hwa(a,c,h,d)}),XI(function(){a.I=
!a.I&&"widevine"===a.B[a.u[0]].flavor;
a.I||a.u.shift();oJ(a)}))}};
Hwa=function(a,b,c,d){if(!a.isDisposed()){a.J&&d&&(pJ={keySystem:b.keySystem,keySystemAccess:c,I8:JSON.stringify(d)});b.keySystemAccess=c;if(aJ(b)){c=cI();d=g.t(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.t(c.audioCapabilities),e=d.next();!e.done;e=d.next())Iwa(a,b,e.value);if(c.videoCapabilities)for(c=g.t(c.videoCapabilities),d=c.next();!d.done;d=c.next())Iwa(a,b,d.value)}a.C.push(b);
a.useCobaltWidevine||a.K("html5_enable_vp9_fairplay")&&dJ(b)?(a.u.shift(),oJ(a)):a.callback(a.C)}};
Iwa=function(a,b,c){a.K("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
Gwa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.K("html5_enable_vp9_fairplay")&&cJ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];aJ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.t(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.I?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.eI&&Wy("windows nt")&&!a.K("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.K("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),a.K("html5_query_sw_secure_crypto_for_android")&&"MWEB"===g.rJ(a.D)&&(gz()||Xy())&&(a.xa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
Ewa=function(a){if(ZI()&&g.BA)a.C.push(new YI("fairplay","com.apple.fps.1_0","",a.D.experiments));else{var b=Jwa(),c=g.nb(a.u,function(d){var e=a.B[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.C.push(a.B[c]);a.u=[]}a.callback(a.C)};
Jwa=function(){var a=ZI();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=cI();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
Kwa=function(){this.j=0};
Lwa=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=oy(b||"","&");a={};b=g.t(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.gJ=function(a,b){return Number(a.flags[b])||0};
sJ=function(a,b){return(a=a.flags[b])?a.toString():""};
Nwa=function(a){return Mwa.then(a)};
tJ=function(a,b,c){this.experiments=a;this.oa=b;this.ya=void 0===c?!1:c;this.J=!!g.Ga("cast.receiver.platform.canDisplayType");this.I={};this.ea=!1;this.u=new Map;this.T=!0;this.D=!this.experiments.ob("html5_disable_protected_hdr");this.j=this.B=!1;this.Z=this.experiments.ob("html5_disable_vp9_encrypted");a=g.Ga("cast.receiver.platform.getValue");this.C=!this.J&&a&&a("max-video-resolution-vpx")||null};
Vta=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.Ee()&&Zy()&&a.experiments.ob("html5_appletv_disable_vp9"))return"dwebm";if(KH(b)&&a.ea)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(xF(a,yF.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.eI?kq(53):g.fJ&&kq(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[yF.WIDTH.name]=b.video.width),b.video.height&&(c[yF.HEIGHT.name]=b.video.height),b.video.fps&&(c[yF.FRAMERATE.name]=b.video.fps*f),b.video.u&&(c[yF.EOTF.name]=b.video.u),b.dc&&(c[yF.BITRATE.name]=8*b.dc*f),"("===b.Lb&&(c[yF.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[yF.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[yF.CHANNELS.name]=b.audio.numChannels);a.B&&BF(b)&&(c[yF.EXPERIMENTAL.name]="allowed");f=g.t(Object.keys(yF));for(var h=f.next();!h.done;h=f.next())if(h=yF[h.value],c[h.name]&&!(h===yF.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.ob("html5_ignore_h264_framerate_cap")&&h===yF.FRAMERATE&&("H"===b.Lb||"h"===b.Lb)))if(xF(a,h))if(a.C){if(a.C[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(JH(b)&&h===yF.EOTF)return"dvp92";a.J&&b.video&&1080<b.video.j&&
b.Pd&&(e+="; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.ob("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
uJ=function(){var a=Xy()&&!kq(29),b=Wy("google tv")&&Wy("chrome")&&!kq(30);return a||b?!1:Dva()};
Owa=function(a,b,c){var d=480;b=g.t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===Vta(a,e,c)&&(d=f)}return d};
g.vJ=function(a,b){b=void 0===b?!1:b;return uJ()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(cI(),"application/x-mpegURL")?!0:!1};
Qwa=function(a){Pwa(function(){for(var b=g.t(Object.keys(yF)),c=b.next();!c.done;c=b.next())xF(a,yF[c.value])})};
xF=function(a,b){b.name in a.I||(a.I[b.name]=Rwa(a,b));return a.I[b.name]};
Rwa=function(a,b){if(a.C)return!!a.C[b.name];if(b===yF.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===yF.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Vm);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.Vm)};
Swa=function(a){a.T=!1;a.j=!0};
Twa=function(a){a.B||(a.B=!0,a.j=!0)};
Uwa=function(a,b){var c=0;a.u.has(b)&&(c=a.u.get(b).d3);a.u.set(b,{d3:c+1,uX:Math.pow(2,c+1)});a.j=!0};
wJ=function(){var a=this;this.queue=[];this.C=0;this.j=this.u=!1;this.B=function(){a.u=!1;a.gf()}};
Vwa=function(a){a.j||(Pwa(function(){a.gf()}),a.j=!0)};
xJ=function(){g.dE.call(this);this.items={}};
yJ=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
EJ=function(a){this.counter=[0,0,0,0];this.u=new Uint8Array(16);this.j=16;if(!Wwa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);zJ=new Uint8Array(256);AJ=yJ(256);BJ=yJ(256);CJ=yJ(256);DJ=yJ(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;zJ[f]=e;b=e<<1^(e>>7&&283);var h=b^e;AJ[f]=b<<24|e<<16|e<<8|h;BJ[f]=h<<24|AJ[f]>>>8;CJ[f]=e<<24|BJ[f]>>>8;DJ[f]=e<<24|CJ[f]>>>8}Wwa=!0}e=yJ(44);for(c=0;4>c;c++)e[c]=
a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(zJ[a>>16&255]^d)<<24|zJ[a>>8&255]<<16|zJ[a&255]<<8|zJ[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
Xwa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=AJ[c>>>24]^BJ[d>>16&255]^CJ[e>>8&255]^DJ[f&255]^b[n++],l=AJ[d>>>24]^BJ[e>>16&255]^CJ[f>>8&255]^DJ[c&255]^b[n++],m=AJ[e>>>24]^BJ[f>>16&255]^CJ[c>>8&255]^DJ[d&255]^b[n++],f=AJ[f>>>24]^BJ[c>>16&255]^CJ[d>>8&255]^DJ[e&255]^b[n++],c=h,d=l,e=m;a=a.u;h=b[40];a[0]=zJ[c>>>24]^h>>>24;a[1]=zJ[d>>16&255]^h>>16&255;a[2]=zJ[e>>8&255]^
h>>8&255;a[3]=zJ[f&255]^h&255;h=b[41];a[4]=zJ[d>>>24]^h>>>24;a[5]=zJ[e>>16&255]^h>>16&255;a[6]=zJ[f>>8&255]^h>>8&255;a[7]=zJ[c&255]^h&255;h=b[42];a[8]=zJ[e>>>24]^h>>>24;a[9]=zJ[f>>16&255]^h>>16&255;a[10]=zJ[c>>8&255]^h>>8&255;a[11]=zJ[d&255]^h&255;h=b[43];a[12]=zJ[f>>>24]^h>>>24;a[13]=zJ[c>>16&255]^h>>16&255;a[14]=zJ[d>>8&255]^h>>8&255;a[15]=zJ[e&255]^h&255};
HJ=function(){if(!FJ&&!g.oB){if(GJ)return GJ;var a;GJ=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=GJ)?0:b.importKey)&&(null==(c=GJ)?0:c.sign)&&(null==(d=GJ)?0:d.encrypt))return GJ;GJ=void 0}};
IJ=function(a,b){g.C.call(this);var c=this;this.j=a;this.cipher=this.j.AES128CTRCipher_create(b.byteOffset);g.bb(this,function(){c.j.AES128CTRCipher_release(c.cipher)})};
g.JJ=function(a){this.C=a};
g.KJ=function(a){this.u=a};
LJ=function(a,b){this.j=a;this.D=b};
MJ=function(a){this.D=new Uint8Array(64);this.B=new Uint8Array(64);this.C=0;this.I=new Uint8Array(64);this.u=0;this.D.set(a);this.B.set(a);for(a=0;64>a;a++)this.D[a]^=92,this.B[a]^=54;this.reset()};
Ywa=function(a,b,c){for(var d=a.J,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,v,x,z=0;64>z;)16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],v=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[z]=x),r=q+NJ[z]+x+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),v=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+v,l+=r,z++,16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[z-2],v=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[z]=x),r=p+NJ[z]+x+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),v=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+v,h+=r,z++,16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],v=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[z]=x),r=n+NJ[z]+x+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),v=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+v,f+=r,z++,16>z?(d[z]=x=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[z-2],v=d[z-15],x=d[z-7]+d[z-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((v>>>7|v<<25)^(v>>>18|v<<14)^v>>>3),d[z]=x),r=m+NJ[z]+x+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),v=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),x=q,q=l,l=x,x=p,p=h,h=x,x=n,n=f,f=x,m=e+r,e=r+v,z++;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};
$wa=function(a){var b=new Uint8Array(32),c=64-a.u;55<a.u&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.C,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;Zwa(a);return b};
Zwa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.J=[];a.J.length=64;a.C=0;a.u=0};
axa=function(a){this.j=a};
bxa=function(a,b,c){a=new MJ(a.j);a.update(b);a.update(c);b=$wa(a);a.update(a.D);a.update(b);b=$wa(a);a.reset();return b};
cxa=function(a){this.u=a};
dxa=function(a,b,c,d){var e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(a.j){m.Ka(2);break}e=a;return g.y(m,d.importKey("raw",a.u,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:e.j=m.u;case 2:return f=new Uint8Array(b.length+c.length),f.set(b),f.set(c,b.length),h={name:"HMAC",hash:"SHA-256"},g.y(m,d.sign(h,a.j,f),4);case 4:return l=m.u,m.return(new Uint8Array(l))}})};
exa=function(a,b,c){a.B||(a.B=new axa(a.u));return bxa(a.B,b,c)};
fxa=function(a,b,c){var d,e;return g.A(function(f){if(1==f.j){d=HJ();if(!d)return f.return(exa(a,b,c));g.pa(f,3);return g.y(f,dxa(a,b,c,d),5)}if(3!=f.j)return f.return(f.u);e=g.sa(f);g.DD(e);FJ=!0;return f.return(exa(a,b,c))})};
OJ=function(){g.JJ.apply(this,arguments)};
PJ=function(){g.KJ.apply(this,arguments)};
QJ=function(a,b){if(b.buffer!==a.memory.buffer){var c=new Uint8Array(a.memory.buffer,a.malloc(b.byteLength),b.byteLength);c.set(b)}LJ.call(this,a,c||b);this.u=new Set;this.C=!1;c&&this.u.add(c.byteOffset)};
gxa=function(a,b,c){this.encryptedClientKey=b;this.D=c;this.j=new Uint8Array(a.buffer,0,16);this.B=new Uint8Array(a.buffer,16)};
hxa=function(a){a.u||(a.u=new OJ(a.j));return a.u};
RJ=function(a){try{return ig(a)}catch(b){return null}};
ixa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?RJ(b.clientKey):null;var c=b.encryptedClientKey?RJ(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.M)():null;a&&c&&d&&(this.j=new gxa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=RJ(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
SJ=function(a){this.j=this.u=0;this.alpha=Math.exp(Math.log(.5)/a)};
TJ=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.u=0;this.B=!1;this.D=!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.I=jxa(this);this.C=c;this.J=d};
jxa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
UJ=function(a,b){if(!a.B&&0===a.u)return 0;a.D&&(g.Lb(a.I,function(c,d){return a.values[c]-a.values[d]}),a.D=!1);
return a.values[a.I[Math.round(b*((a.B?a.j:a.u)-1))]]||0};
kxa=function(a){var b=new Kwa;this.policy=a;this.ya=b;this.ea=this.oa=0;this.D=-1;this.T=!1;this.Z=this.C=(0,g.M)();this.J=new TJ(4,1,.6,.4);this.j=new TJ(10,1,.5,.4);this.B=a.C?new SJ(a.j):new TJ(a.j,20,.5,.4);this.I=new TJ(5,1,.25);this.u=new TJ(30,1,.5);a=g.Qz("yt-player-bandwidth")||{};b=this.policy.u;0<a.byterate&&(b=a.byterate,this.T=!0);this.B.zi(this.policy.D,b);0<a.delay&&this.J.zi(1,Math.min(a.delay,2));0<a.stall&&this.j.zi(1,a.stall);0<a.init&&(this.Z=Math.min(a.init,this.Z));this.D=(0,g.M)()};
VJ=function(a){a=a.J.bj();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
lxa=function(a,b,c){isNaN(c)||(a.ea+=c);isNaN(b)||(a.oa+=b)};
WJ=function(a){a=a.B.bj();return 0<a?a:1};
XJ=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=WJ(a);d=1/((a.j.bj()||0)+1/d);var e=a.I.bj();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+VJ(a);c=d*Math.min(1,c/(d*b));a.policy.B||(a=((UJ(a.u,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
YJ=function(a){return{delay:VJ(a),stall:a.j.bj()||0,byterate:WJ(a),init:a.Z}};
ZJ=function(a){-1<a.D&&3E4<(0,g.M)()-a.D&&(kwa(YJ(a)),a.D=(0,g.M)(),a.T=!0)};
mxa=function(a){return 4E3<=(0,g.M)()-a.C};
nxa=function(){this.j=17;this.u=13E4;this.D=.5;this.B=this.C=!1};
pxa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.C.call(this);var c=this;this.values=a;this.gq=b;this.u={};this.B=this.j=0;this.C=new g.Ip(function(){oxa(c)},1E4);
g.E(this,this.C)};
$J=function(a,b){qxa(a,b);return a.values[b]&&a.gq[b]?a.values[b]/Math.pow(2,a.j/a.gq[b]):0};
qxa=function(a,b){a.values[b]||(b=mwa(),a.values=b.values||{},a.gq=b.halfLives||{},a.u=b.values?Object.assign({},b.values):{})};
oxa=function(a){var b=mwa();if(b.values){b=b.values;for(var c={},d=g.t(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.u[e]&&(a.values[e]+=b[e]-a.u[e]),c[e]=$J(a,e);a.u=c}b=a.gq;c={};c.values=a.u;c.halfLives=b;g.Pz("yt-player-memory",c,2592E3)};
aK=function(){var a=this;this.j=this.u=taa;this.promise=new g.Of(function(b,c){a.u=b;a.j=c})};
vK=function(a,b,c,d){g.C.call(this);this.webPlayerContextConfig=b;this.nm=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Zi=this.je=this.ib=this.Ui=this.userDisplayName=this.userDisplayImage=this.ri="";this.j={};this.controlsType="0";this.Vd=NaN;this.Ld=!1;this.Jf=(0,g.M)();this.jc=0;this.jl=this.Pn=!1;this.tm=!0;this.If=this.B=this.mm=this.Hf=!1;a=a?g.md(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);this.experiments=
new Lwa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:mz("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:mz("",a.csp_nonce);this.K("web_player_deprecated_uvr_killswitch");try{var e=document.location.toString()}catch(B){e=""}this.ke=e;this.ancestorOrigins=(d=window.location.ancestorOrigins)?Array.from(d):[];this.C=jz(!1,b?b.isEmbed:a.is_embed);b&&b.device?(d=b.device,d.brand&&(this.j.cbrand=
d.brand),d.browser&&(this.j.cbr=d.browser),d.browserVersion&&(this.j.cbrver=d.browserVersion),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)):(this.j.c=a.c||"web",this.j.cver=a.cver||"html5",this.j.cplayer=
"UNIPLAYER");this.loaderUrl=b?this.C||rxa(this)&&b.loaderUrl?b.loaderUrl||"":this.ke:this.C||rxa(this)&&a.loaderUrl?mz("",a.loaderUrl):this.ke;this.C&&g.Fa("yt.embedded_player.embed_url",this.loaderUrl);this.I=RD(this.loaderUrl,sxa);d=this.loaderUrl;var f=void 0===f?!1:f;this.Yn=QD(RD(d,txa),d,f,"Trusted Ad Domain URL");this.fb=jz(!1,a.privembed);this.protocol=0===this.ke.indexOf("http:")?"http":"https";this.La=SD((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||"")||SD(this.ke)||this.protocol+"://www.youtube.com/";
f=b?b.eventLabel:a.el;d="detailpage";"adunit"===f?d=this.C?"embedded":"detailpage":"embedded"===f||this.I?d=kz(d,f,uxa):f&&(d="embedded");this.Ga=d;LC();f=null;d=b?b.playerStyle:a.ps;e=g.rb(vxa,d);!d||e&&!this.I||(f=d);this.playerStyle=f;this.oa=(this.J=g.rb(vxa,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.Xn=!this.oa;this.Xa=jz(!1,a.disableplaybackui);this.disablePaidContentOverlay=jz(!1,null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=jz(!1,null==
b?void 0:b.disableSeek);this.uf=this.K("variable_playback_rate")?!0:cI().defaultPlaybackRate?bK||g.fz||cK?g.fJ&&kq("20")||g.eI&&kq("4")||g.dK&&kq("11")||bz():!(g.dK&&!Wy("chrome")||bK||Wy("android")||Wy("silk")):!1;this.Sn=jz(!1,a.enable_faster_speeds);this.u=jz("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.tb=ez()||gz();this.Wn=this.u&&!this.J;this.Ya=hI();this.po=g.eK;this.ll=jz(!1,b?b.embedOptOutDeprecation:a.opt_out_deprecation);this.Z=!(!b||!b.embedsEnablePfpImaIntegration);
this.ya=!!((null==b?0:b.embedsEnableAppendUtmParams)&&this.K("embeds_web_enable_utm_params"));this.Un=this.K("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var h;b?void 0!==b.hideInfo&&(h=!b.hideInfo):h=a.showinfo;this.vl=g.fK(this)&&!this.ll||jz(!gK(this)&&!hK(this)&&!this.J,h);this.ol=b?!!b.mobileIphoneSupportsInlinePlayback:jz(!1,a.playsinline);h=this.u&&iK&&null!=jK&&0<jK&&2.3>=jK;f=b?b.useNativeControls:a.use_native_controls;this.T=g.fK(this)&&this.u;d=this.u&&!this.T;f=g.kK(this)||
!h&&jz(d,f)?"3":"1";d=b?b.controlsType:a.controls;this.controlsType="0"!==d&&0!==d?f:"0";this.ph=this.u;this.color=kz("red",b?b.progressBarColor:a.color,wxa);this.jo="3"===this.controlsType||jz(!1,b?b.embedsShowModestBranding:a.modestbranding)&&"red"===this.color;this.Dc=!this.C;this.qm=(f=!this.Dc&&!hK(this)&&!this.oa&&!this.J&&!gK(this))&&!this.jo&&"1"===this.controlsType;this.rd=g.lK(this)&&f&&"0"===this.controlsType&&!this.qm;this.Xo=this.oo=h;this.Lc=("3"===this.controlsType||this.u||jz(!1,a.use_media_volume))&&
!this.T;this.wm=cz&&!g.Nc(601)?!1:!0;this.Vn=this.C||!1;this.Oc=hK(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=mz("",b?b.widgetReferrer:a.widget_referrer);var l;b?b.disableCastApi&&(l=!1):l=a.enablecastapi;l=!this.I||jz(!0,l);h=!0;b&&b.disableMdxCast&&(h=!1);this.dj=this.K("enable_cast_for_web_unplugged")&&g.mK(this)&&h||this.K("enable_cast_on_music_web")&&g.nK(this)&&h||l&&h&&"1"===this.controlsType&&!this.u&&(hK(this)||g.lK(this)||"profilepage"===this.Ga)&&
!g.oK(this);this.Vo=!!window.document.pictureInPictureEnabled||gI();l=b?!!b.supportsAutoplayOverride:jz(!1,a.autoplayoverride);this.bl=!(this.u&&(!g.fK(this)||!this.K("embeds_web_enable_mobile_autoplay")))&&!Wy("nintendo wiiu")||l;l=b?!!b.enableMutedAutoplay:jz(!1,a.mutedautoplay);this.Uo=this.K("embeds_enable_muted_autoplay")&&g.fK(this);this.Qg=l&&!1;l=(hK(this)||gK(this))&&"blazer"===this.playerStyle;this.hj=b?!!b.disableFullscreen:!jz(!0,a.fs);this.Tb=!this.hj&&(l||g.yz());this.lm=this.K("uniplayer_block_pip")&&
(Xy()&&kq(58)&&!gz()||nB);l=g.fK(this)&&!this.ll;var m;b?void 0!==b.disableRelatedVideos&&(m=!b.disableRelatedVideos):m=a.rel;this.Wc=l||jz(!this.J,m);this.ul=jz(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.ea=gz()&&0<jK&&4.4>=jK?"_top":"_blank";this.Wf="profilepage"===this.Ga;this.Xk=jz("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "gmail":m="gm";break;case "gac":m="ga";break;case "books":m="gb";break;case "docs":m=
"gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.Ja=m;this.authUser=mz("",b?b.authorizedUserIndex:a.authuser);this.uc=g.fK(this)&&(this.fb||!eoa()||this.tb);var n;b?void 0!==b.disableWatchLater&&(n=!b.disableWatchLater):n=a.showwatchlater;this.hm=((m=!this.uc)||!!this.authUser&&m)&&jz(!this.oa,this.I?
n:void 0);this.aj=b?b.isMobileDevice||!!b.disableKeyboardControls:jz(!1,a.disablekb);this.loop=jz(!1,a.loop);this.pageId=mz("",b?b.initialDelegatedSessionId:a.pageid);this.Eo=jz(!0,a.canplaylive);this.Xb=jz(!1,a.livemonitor);this.disableSharing=jz(this.J,b?b.disableSharing:a.ss);(n=b&&this.K("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:a.video_container_override)?(m=n.split("x"),2!==m.length?n=null:(n=Number(m[0]),m=Number(m[1]),n=isNaN(n)||isNaN(m)||0>=n*m?null:new g.He(n,
m))):n=null;this.xm=n;this.mute=b?!!b.startMuted:jz(!1,a.mute);this.storeUserVolume=!this.mute&&jz("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);n=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:kz(void 0,n,pK);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":mz("",a.cc_lang_pref);n=kz(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,pK);"3"===this.controlsType&&2===n&&(n=3);this.Pb=n;this.Si=b?b.hl||"en_US":mz("en_US",
a.hl);this.region=b?b.contentRegion||"US":mz("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":mz("en",a.host_language);this.Qn=!this.fb&&Math.random()<g.gJ(this.experiments,"web_player_api_logging_fraction");this.kb=!this.fb;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Vd=lz(this.Vd,a.ismb);this.Xn?(n=a.vss_host||"s.youtube.com","s.youtube.com"===n&&(n=qK(this.La)||"www.youtube.com")):n="video.google.com";this.ym=n;rK(this,a,!0);this.Aa=new xJ;g.E(this,
this.Aa);m=b?b.innertubeApiKey:mz("",a.innertube_api_key);l=b?b.innertubeApiVersion:mz("",a.innertube_api_version);n=b?b.innertubeContextClientVersion:mz("",a.innertube_context_client_version);m=g.ey("INNERTUBE_API_KEY")||m;l=g.ey("INNERTUBE_API_VERSION")||l;h=g.ey("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");f=g.rJ(this);d="number"===typeof this.j.c?Number(this.j.c):Object.keys(xxa).indexOf(this.j.c);this.Pk={innertubeApiKey:m,innertubeApiVersion:l,pG:h,CM:f,NU:d,innertubeContextClientVersion:g.ey("INNERTUBE_CONTEXT_CLIENT_VERSION")||
n,EM:this.hostLanguage,DM:this.region,OU:g.ey("INNERTUBE_HOST_OVERRIDE")||"",PU:!!g.ey("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),FM:!!g.ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.ql=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.D=new tJ(this.experiments,this.K("html5_force_hfr_support")?!0:sK(this)||$y()||ioa()||yxa(this),g.eI&&g.Nc(56)||g.fJ&&g.Nc(54)||this.K("html5_force_vp9_subsample_encryption_support")||yxa(this));n=this.Vd;m=new nxa;g.tK(this)&&(m.C=!0,m.D=.1);n&&
(m.u=n/8);m.B=480<=SI();this.schedule=new kxa(m);var p;this.enableSafetyMode=null!=(p=null==b?void 0:b.initialEnableSafetyMode)?p:jz(!1,a.enable_safety_mode);p=this.Xa?!1:hK(this)&&"blazer"!==this.playerStyle;var q;b?null!=b.disableAutonav&&(q=!b.disableAutonav):q=a.allow_autonav;this.Od=jz(p,!this.oa&&q);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:jz(!1,a.send_visitor_id_header);var r;"docs"===this.playerStyle&&(b?r=b.disableNativeContextMenu:r=a.disable_native_context_menu);this.disableNativeContextMenu=
jz(!1,r);this.Tn=sK(this)&&this.K("enable_skip_intro_button");this.embedConfig=mz("",b?b.serializedEmbedConfig:a.embed_config);this.Qa=pz(a,g.fK(this));this.B="EMBEDDED_PLAYER_MODE_PFL"===this.Qa;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.ij=jz(!1,a.full_window);this.Vf=!g.mK(this)&&!uK(this)&&!g.oK(this)&&!0;var v;this.livingRoomAppMode=kz("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==(v=b.device)?void 0:v.livingRoomAppMode),zxa);var x;q=lz(NaN,
null==b?void 0:null==(x=b.device)?void 0:x.deviceYear);isNaN(q)||(this.deviceYear=q);this.transparentBackground=b?!!b.transparentBackground:jz(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:jz(!1,a.show_miniplayer_button);this.externalFullscreen=b?!!b.externalFullscreen:jz(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:jz(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;this.rl=jz(!1,
a.showbackbutton);var z;this.tm=null!=(z=a.show_loop_video_toggle)?z:!0;this.ao=1E-4>Math.random();this.Qk=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new ixa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.vf=new pxa;g.E(this,this.vf);this.mm=jz(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.ey("DATASYNC_ID");this.Zn=g.ey("LOGGED_IN",!1);this.Yi=(null==b?void 0:b.allowWoffleManagement)||
!1;this.jm=0;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.K("html5_high_res_logging_always")?this.If=!0:this.If=100*Math.random()<(g.gJ(this.experiments,"html5_unrestricted_layer_high_res_logging_percent")||g.gJ(this.experiments,"html5_high_res_logging_percent"));this.K("html5_ping_queue")&&(this.Rk=new wJ)};
g.wK=function(a){var b;if(null==(b=a.webPlayerContextConfig)||!b.embedsEnableLiteUx||a.fb||a.J)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.gJ(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<Axa.length?Axa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
rK=function(a,b,c){c=void 0===c?!1:c;a.je=mz(a.je,b.video_id);a.ib=mz(a.ib,b.eventid);a.ib&&(ID=a.ib);for(var d=[],e=g.t(Object.keys(Bxa)),f=e.next();!f.done;f=e.next()){f=Bxa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.ao&&(d.sort(),g.DD(new g.bA("Player client parameters changed after startup",d)));a.userAge=lz(a.userAge,b.user_age);a.ri=mz(a.ri,b.user_display_email);a.userDisplayImage=mz(a.userDisplayImage,b.user_display_image);g.UD(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=mz(a.userDisplayName,b.user_display_name);a.Ui=mz(a.Ui,b.user_gender);a.csiPageType=mz(a.csiPageType,b.csi_page_type);a.csiServiceName=mz(a.csiServiceName,b.csi_service_name);a.Xk=jz(a.Xk,b.enablecsi);a.pageId=mz(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Kf=b.living_room_session_po_token.toString())};
xK=function(a,b){return!a.J&&Xy()&&kq(55)&&"3"===a.controlsType&&!b};
g.yK=function(a){a=qK(a.La);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
g.zK=function(a){return g.oK(a)?"music.youtube.com":g.yK(a)};
AK=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
BK=function(a){return hK(a)&&!g.mK(a)};
g.kK=function(a){return a.K("html5_local_playsinline")?cz&&!g.Nc(602)&&!("playsInline"in cI()):cz&&!a.ol||Wy("nintendo wiiu")?!0:!1};
g.oK=function(a){return"music-embed"===a.playerStyle};
g.rJ=function(a){return a.j.c};
g.tK=function(a){return/^TVHTML5/.test(g.rJ(a))?!0:"TV"===a.j.cplatform};
rxa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.rJ(a)};
yxa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.CK=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
sK=function(a){return/web/i.test(g.rJ(a))};
g.DK=function(a){return"WEB"===g.rJ(a).toUpperCase()};
uK=function(a){return"WEB_KIDS"===g.rJ(a)};
g.mK=function(a){return"WEB_UNPLUGGED"===g.rJ(a)};
EK=function(a){return"TVHTML5_UNPLUGGED"===g.rJ(a)};
g.FK=function(a){return g.mK(a)||"TV_UNPLUGGED_CAST"===g.rJ(a)||EK(a)};
g.nK=function(a){return"WEB_REMIX"===g.rJ(a)};
g.GK=function(a){return"WEB_EMBEDDED_PLAYER"===g.rJ(a)};
g.IK=function(a){return(a.deviceIsAudioOnly||!g.eI||nB||"3"===a.controlsType?!1:g.fz?a.C&&g.Nc(51):!0)||(a.deviceIsAudioOnly||!g.fJ||nB||"3"===a.controlsType?!1:g.fz?a.C&&g.Nc(48):g.Nc(38))||(a.deviceIsAudioOnly||!g.dK||nB||"3"===a.controlsType?!1:g.fz?a.C&&g.Nc(37):g.Nc(27))||!a.deviceIsAudioOnly&&g.HK&&!koa()&&g.Nc(11)||!a.deviceIsAudioOnly&&g.BA&&g.Nc("604.4")};
Cxa=function(a){if(g.lK(a)&&iK)return!1;if(g.fJ){if(!g.Nc(47)||!g.Nc(52)&&g.Nc(51))return!1}else if(g.BA)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
JK=function(a){return!a.K("html5_disable_media_element_loop_on_tv")||!g.tK(a)};
hK=function(a){return"detailpage"===a.Ga};
g.lK=function(a){return"embedded"===a.Ga};
KK=function(a){return"leanback"===a.Ga};
gK=function(a){return"adunit"===a.Ga||"gvn"===a.playerStyle};
g.fK=function(a){return a.C&&g.lK(a)&&!gK(a)&&!a.J};
LK=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.DD(new g.bA("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.MK=function(a){var b=g.zK(a);Dxa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.NK=function(a,b){b=void 0===b?"":b;if(a.K("enable_tectonic_player_oauth_callback")&&a.nm){var c=new aK,d,e=a.nm();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.DD(new g.bA("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?Oy(d):new My(c)}return Oy(b)};
qK=function(a){var b=g.Ui(a);return(a=Number(g.Ti(4,a))||null)?b+":"+a:b};
OK=function(a){var b=[];if(a){a=g.t(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
PK=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
QK=function(a){return 1===a||2===a};
RK=function(a,b){b=void 0===b?0:b;if(a instanceof PK)return a;a=a&&a instanceof Error?a:Error(""+a);QK(b)?g.CD(a):g.DD(a);return new PK(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
SK=function(a){this.j=a};
TK=function(a,b,c){if(c)return Ny();c={};var d=cI();b=g.t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,a.canPlayType(d,e.rh().mimeType)){var f=e.j.video.quality;if(!c[f]||c[f].rh().Ee())c[f]=e}a=[];c.auto&&a.push(c.auto);d=g.t(FH);for(b=d.next();!b.done;b=d.next())(b=c[b.value])&&a.push(b);return a.length?Oy(a):Ny()};
Exa=function(a,b,c,d,e){this.B=a;this.u=b;this.D=c;this.cpn=d;this.I=e;this.C=0;this.j=""};
Fxa=function(a,b){a.B.some(function(c){var d;return(null==(d=c.Jc)?void 0:d.getId())===b});
a.j=b};
UK=function(a,b,c){a.cpn&&(b=g.Zi(b,{cpn:a.cpn}));c&&(b=g.Zi(b,{Z7a:c}));return b};
Gxa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
Hxa=function(a){for(var b=[],c=[],d=g.t(a.u),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.C?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.u=b.concat(c)};
Ixa=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.u=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.pA=a.pA;this.Pd=a.Pd||"";this.Jc=a.Jc;this.audioChannels=a.audioChannels;this.j=""};
Jxa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.t(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||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.aI(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new Ixa({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,pA:n?l[n]:void 0,Pd:f.drm_families,Jc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
VK=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.u=null};
Kxa=function(a,b){if(!(nB||az()||Zy()))return null;a=Jxa(b,a.K("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.t(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.t(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Jc&&(f=h.Jc.getId(),c[f]||(h=new g.hF(f,h.Jc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
Pxa=function(a,b,c,d,e,f,h){if(!(nB||az()||Zy()))return Ny();var l={},m=Lxa(c),n=Jxa(c,a.K("html5_filter_fmp4_in_hls"),a.D.D,l);if(!n)return h({noplst:1}),Ny();Mxa(n);c={};var p=(c.fairplay="https://web.archive.org/web/20230426095903/https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],v=[],x=null,z="";d=d&&d.match(/hls_timedtext_playlist/)?new Ixa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Jc:new g.aI("English","en",!1)}):null;for(var B=g.t(Object.keys(n)),F=B.next();!F.done;F=B.next())if(F=F.value,!a.K("html5_disable_drm_hfr_1080")||
"383"!==F&&"373"!==F){F=g.t(n[F]);for(var G=F.next();!G.done;G=F.next())if(G=G.value,G.width){for(var D=g.t(G.u),L=D.next();!L.done;L=D.next())if(L=L.value,n[L]){G.j=L;break}G.j||(G.j=Nxa(n,G));if(D=n[G.j])if(c.push(G),"fairplay"===G.Pd&&(q=p),L="","PQ"===G.pA?L="smpte2084":"HLG"===G.pA&&(L="arib-std-b67"),L&&(z=L),v.push(Oxa(D,[G],d,f,G.itag,G.width,G.height,G.fps,m,void 0,void 0,q,L)),!x||G.width*G.height*G.fps>x.width*x.height*x.fps)x=G}else r.push(G)}else l[F]="disdrmhfr";v.reduce(function(P,
T){return T.rh().isEncrypted()&&P},!0)&&(q=p);
e=Math.max(e,0);p=x||{};n=void 0===p.fps?0:p.fps;x=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;B=a.K("html5_native_audio_track_switching");v.push(Oxa(r,c,d,f,"93",x,p,n,m,"auto",e,q,z,B));Object.entries(l).length&&h(l);return TK(a.D,v,xK(a,b))};
Oxa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v){for(var x=0,z="",B=g.t(a),F=B.next();!F.done;F=B.next())F=F.value,z||(z=F.itag),F.audioChannels&&F.audioChannels>x&&(x=F.audioChannels,z=F.itag);e=new IH(e,"application/x-mpegURL",{audio:new CH(0,x),video:new EH(f,h,l,null,void 0,n,void 0,r),Pd:q,JV:z});a=new Exa(a,b,c?[c]:[],d,!!v);a.C=p?p:1369843;return new VK(e,a,m)};
Lxa=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
Nxa=function(a,b){for(var c=g.t(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.Pd===b.Pd&&!e.audioChannels)return d}return""};
Mxa=function(a){for(var b=new Set,c=g.t(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.t(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.t(c);for(e=b.next();!e.done;e=b.next())delete a[e.value]};
WK=function(a,b){this.j=a;this.u=b};
Qxa=function(a,b,c,d){var e=[];c=g.t(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.DF(h.url,!0);if(h.s){var l=h.sp,m=Yta(decodeURIComponent(h.s));f.set(l,encodeURIComponent(m))}l=g.t(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=$H(h.type,h.quality,h.itag,h.width,h.height);e.push(new WK(h,f))}}return TK(a.D,e,xK(a,b))};
XK=function(a,b){this.j=a;this.u=b};
Rxa=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=$H(e.type,"medium","0");d.push(new XK(f,e.url))}return TK(a.D,d,xK(a,b))};
Sxa=function(a,b){var c=[],d=$H(b.type,"auto",b.itag);c.push(new XK(d,b.url));return TK(a.D,c,!1)};
Uxa=function(a){return a&&Txa[a]?Txa[a]:null};
Vxa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.sE=RJ(a.ustreamerConfig)||void 0)};
Wxa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.LW=new Vxa(b)};
g.YK=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name||null;this.id=a.id||null;this.j=a.is_servable||!1;this.u=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.$K=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.ZK(a),kind:a.kind,name:a.name,id:a.id,is_servable:a.j,is_default:a.isDefault,is_translateable:a.u,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.aL=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.ZK=function(a){var b=a.languageName||"",c=[b];"asr"===a.kind&&-1===b.indexOf("(")&&c.push(" (Automatic Captions)");a.name&&c.push(" - "+a.name);a.translationLanguage&&c.push(" >> "+a.translationLanguage.languageName);return c.join("")};
$xa=function(a,b,c,d){a||(a=b&&Xxa.hasOwnProperty(b)&&Yxa.hasOwnProperty(b)?Yxa[b]+"_"+Xxa[b]:void 0);b=a;if(!b)return null;a=b.match(Zxa);if(!a||5!==a.length)return null;if(a=b.match(Zxa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
bL=function(a,b){for(var c={},d=g.t(Object.keys(aya)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.UD(f)&&(c[aya[e]]=f)}return c};
cL=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.t(Object.keys(bya)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=bya[e];for(var f=g.t(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=cya(h.url);g.UD(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=cya(a.url),g.UD(a)&&(b["maxresdefault.jpg"]=a));return b};
cya=function(a){return a.startsWith("//")?"https:"+a:a};
dL=function(a){return a&&a.baseUrl||""};
eL=function(a){a=g.sy(a);for(var b=g.t(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};
dya=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.pk=b)};
fya=function(a,b){a.captionTracks=[];if(b.captionTracks)for(var c=g.t(b.captionTracks),d=c.next();!d.done;d=c.next()){d=d.value;var e=eya(d.baseUrl);if(!e)return;d=new g.YK({is_translateable:!!d.isTranslatable,languageCode:d.languageCode,languageName:d.name&&g.gE(d.name),url:e,vss_id:d.vssId,kind:d.kind});a.captionTracks.push(d)}a.KK=b.audioTracks||[];a.LS=b.defaultAudioTrackIndex||0;a.LK=b.translationLanguages?g.Yl(b.translationLanguages,function(f){return{languageCode:f.languageCode,languageName:g.gE(f.languageName)}}):
[];
a.lX=[];if(b.recommendedTranslationTargetIndices)for(c=g.t(b.recommendedTranslationTargetIndices),d=c.next();!d.done;d=c.next())a.lX.push(d.value);a.gF=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
iya=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.K(h,gya);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.K(h,hya))return Object.assign({is_yto_interstitial:!0},qy(h))});
d=g.t(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,In:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,In: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,
In:0===f?5:7})}}};
jya=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
kya=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)};
fL=function(){var a=lya;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=ima.apply(null,[jma.apply(null,g.u(b))].concat(g.u(c)));this.store=lma(a,void 0,b)};
g.gL=function(a,b,c){for(var d=Object.assign({},a),e=g.t(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.u(h),g.u(l)):l;else if(!Array.isArray(l)&&g.Ja(l)&&!Array.isArray(h)&&g.Ja(h))d[f]=g.gL(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.bA("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Y7a:h,updateValue:l}),g.CD(b),
a}return d};
hL=function(a){this.j=a;this.pos=0;this.u=-1};
iL=function(a){var b=RF(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=RF(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
jL=function(a,b){var c=a.u;for(a.u=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=iL(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.u=c;break}c=-1;switch(e){case 0:iL(a);break;case 1:a.pos+=8;break;case 2:d=iL(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
kL=function(a,b){if(jL(a,b))return iL(a)};
lL=function(a,b){if(jL(a,b))return!!iL(a)};
mL=function(a,b){if(jL(a,b)){b=iL(a);var c=QF(a.j,a.pos,b);a.pos+=b;return c}};
nL=function(a,b){if(a=mL(a,b))return g.WF(a)};
oL=function(a,b,c){if(a=mL(a,b))return c(new hL(new LF([a])))};
mya=function(a,b,c){for(var d=[],e;e=mL(a,b);)d.push(c(new hL(new LF([e]))));return d.length?d:void 0};
pL=function(a,b){a=a instanceof Uint8Array?new LF([a]):a;return b(new hL(a))};
nya=function(a,b){a=void 0===a?4096:a;this.u=b;this.pos=0;this.B=[];b=void 0;if(this.u)try{var c=this.u.exports.malloc(a);b=new Uint8Array(this.u.exports.memory.buffer,c,a)}catch(d){}b||(b=new Uint8Array(a));this.j=b;this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
qL=function(a,b){var c=a.pos+b;if(!(a.j.length>=c)){for(b=2*a.j.length;b<c;)b*=2;a.u?(c=a.u.exports.realloc(a.j.byteOffset,b),a.j=new Uint8Array(a.u.exports.memory.buffer,c,b)):(b=new Uint8Array(b),b.set(a.j.subarray(0,a.pos)),a.j=b);a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
rL=function(a,b){if(268435455<b){qL(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(qL(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
sL=function(a,b,c){oya?rL(a,8*b+c):rL(a,b<<3|c)};
tL=function(a,b,c){void 0!==c&&(sL(a,b,0),rL(a,c))};
uL=function(a,b,c){void 0!==c&&tL(a,b,c?1:0)};
vL=function(a,b,c){void 0!==c&&(sL(a,b,2),b=c.length,rL(a,b),qL(a,b),a.j.set(c,a.pos),a.pos+=b)};
wL=function(a,b,c){void 0!==c&&(pya(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),qL(a,1.2*c.length),b=YF(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(qL(a,b),b=YF(c,a.j.subarray(a.pos))),a.pos+=b,qya(a))};
pya=function(a,b,c){c=void 0===c?2:c;sL(a,b,2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
qya=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}};
xL=function(a,b,c,d,e){c&&(pya(a,b,void 0===e?3:e),d(a,c),qya(a))};
rya=function(a){a.u&&a.j.buffer!==a.u.exports.memory.buffer&&(a.j=new Uint8Array(a.u.exports.memory.buffer,a.j.byteOffset,a.j.byteLength),a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength));return new Uint8Array(a.j.buffer,a.j.byteOffset,a.pos)};
g.yL=function(a,b,c){c=new nya(4096,c);b(c,a);return rya(c)};
g.zL=function(a){var b=new hL(new LF([ig(decodeURIComponent(a))]));a=nL(b,2);b=kL(b,4);var c=sya[b];if("undefined"===typeof c)throw a=new g.bA("Failed to recognize field number",{name:"EntityKeyHelperError",T6a:b}),g.CD(a),a;return{U2:b,entityType:c,entityId:a}};
g.AL=function(a,b){var c=new nya;vL(c,2,lua(a));a=tya[b];if("undefined"===typeof a)throw b=new g.bA("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.CD(b),b;tL(c,4,a);tL(c,5,1);b=rya(c);return encodeURIComponent(g.gg(b))};
BL=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
uya=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.gL(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
vya=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.CD(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.CD(new g.bA("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Xc(e.payload);
return BL(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.zL(e).entityType;l=BL(d,m,e)}catch(q){if(q instanceof Error)g.CD(new g.bA("Failed to deserialize entity key",{entityKey:e,mO:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.CD(new g.bA("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Xc(e.payload);var n,p;return uya(d,l,e.entityKey,e.payload[l],null==(n=
e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return BL(a,c.entityType,c.key,c.T2);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 BL(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,uya(a,c.entityType,c.key,c.T2,c.T7a);default:return a}};
CL=function(a,b,c){return a[b]?a[b][c]||null:null};
DL=function(a,b){this.type=a||"";this.id=b||""};
g.EL=function(a){return new DL(a.substr(0,2),a.substr(2))};
g.FL=function(a,b){this.u=a;this.author="";this.yB=null;this.playlistLength=0;this.j=this.sessionData=null;this.Z={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(a=b.session_data)this.sessionData=oy(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=bL(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new DL("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.EL(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.GL=function(a,b){this.j=a;this.Fr=this.author="";this.yB=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.zv=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Fr=b.Fr||"";if(a=b.endscreen_autoplay_session_data)this.yB=oy(a,"&");this.zB=b.zB;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.zv=b.zv||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=oy(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=bL(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
wya=function(a){var b,c,d=null==(b=a.jd)?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.jd)?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.IL=function(a){var b,c,d;a=g.K(null==(b=a.jd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,HL);return g.K(null==a?void 0:a.playerBar,xya)};
yya=function(a){this.j=a.playback_progress_0s_url;this.B=a.playback_progress_2s_url;this.u=a.playback_progress_10s_url};
Aya=function(a,b){var c=g.Ga("ytDebugData.callbacks");c||(c={},g.Fa("ytDebugData.callbacks",c));if(g.gy("web_dd_iu")||zya.includes(a))c[a]=b};
JL=function(a){this.j=new oq(a)};
Bya=function(){if(void 0===KL){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.yq(g.cA()+"::yt-player"))){KL=new JL(a);break a}KL=void 0}}return KL};
g.LL=function(){var a=Bya();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.Cya=function(a){var b=Bya();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.ML=function(a){return g.LL()[a]||0};
g.NL=function(a,b){var c=g.LL();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.Cya(c))};
g.OL=function(a){return g.A(function(b){return b.return(g.kB(Dya(),a))})};
QL=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,v;return g.A(function(x){switch(x.j){case 1:return m=g.ML(a),4===m?x.return(4):g.y(x,g.sB(),2);case 2:n=x.u;if(!n)throw g.DA("wiac");if(!l||void 0===h){x.Ka(3);break}return g.y(x,Eya(l,h),4);case 4:h=x.u;case 3:return p=c.lastModified||"0",g.y(x,g.OL(n),5);case 5:return q=x.u,g.pa(x,6),PL++,g.y(x,g.NA(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Ub:!0},function(z){if(void 0!==f&&void 0!==h){var B=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");B=g.OA(z.objectStore("media"),h,B)}else B=g.FA.resolve(void 0);var F=Fya(a,b.Xg()),G=Fya(a,!b.Xg()),D={fmts:Gya(d),format:c||{}};F=g.OA(z.objectStore("index"),D,F);var L=-1===d.downloadedEndTime;D=L?z.objectStore("index").get(G):g.FA.resolve(void 0);var P={fmts:"music",format:{}};z=L&&e&&!b.Xg()?g.OA(z.objectStore("index"),P,G):g.FA.resolve(void 0);return g.FA.all([z,D,B,F]).then(function(T){T=g.t(T);T.next();T=T.next().value;PL--;var fa=g.ML(a);if(4!==fa&&L&&e||void 0!==T&&g.Hya(T.fmts))fa=
1,g.NL(a,fa);return fa})}),8);
case 8:return x.return(x.u);case 6:r=g.sa(x);PL--;v=g.ML(a);if(4===v)return x.return(v);g.NL(a,4);throw r;}})};
g.Iya=function(a){var b,c;return g.A(function(d){if(1==d.j)return g.y(d,g.sB(),2);if(3!=d.j){b=d.u;if(!b)throw g.DA("ri");return g.y(d,g.OL(b),3)}c=d.u;return d.return(g.NA(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:{}})})}))})};
Lya=function(a,b,c,d,e){var f,h,l;return g.A(function(m){if(1==m.j)return g.y(m,g.sB(),2);if(3!=m.j){f=m.u;if(!f)throw g.DA("rc");return g.y(m,g.OL(f),3)}h=m.u;l=g.NA(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM",Ub:Jya},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return Kya(e,n)}).catch(function(n){throw new g.bA("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.Hya=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
Fya=function(a,b){return""+a+"|"+(b?"v":"a")};
Gya=function(a){var b={};return py((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
Nya=function(a){var b={},c={};a=g.t(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.Mya)?(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.t(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};
RL=function(a){g.dE.call(this);this.j=null;this.B=new Jla;this.j=null;this.I=new Set;this.crossOrigin=a||""};
Oya=function(a,b,c){for(c=SL(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(TL(d,b))&&(d=g.UL(d,b)))return d;c--}return g.UL(a.levels[0],b)};
Qya=function(a,b,c){c=SL(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=TL(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.I.has(h)||(d.I.add(h),d.B.Ph(f,{mV:f,HV:e}))}Pya(a)};
Pya=function(a){if(!a.j&&!a.B.Bf()){var b=a.B.remove();a.j=Rya(a,b)}};
Rya=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.mV].Ze(b.HV);c.onload=function(){var d=b.mV,e=b.HV;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);Pya(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.NE()-1);e=[e,d];a.ma("l",e[0],e[1])};
return c};
g.VL=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.B=a[6];this.C=a[7];this.videoLength=d};
TL=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.UL=function(a,b){b>=a.BJ()&&a.ix();var c=TL(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.ix()+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.Ze(c),column:b,columns:h,row:e,rows:d,NC:a.width*h,Dv:a.height*d}};
WL=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;RL.call(this,c);this.isLive=d;this.J=!!e;this.levels=this.u(a,b);this.C=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
Sya=function(a,b,c){return(a=a.levels[b])?a.OE(c):-1};
SL=function(a,b){var c=a.C.get(b);if(c)return c;c=a.levels.length;for(var d=0;d<c;d++)if(a.levels[d].width>=b)return a.C.set(b,d),d;a.C.set(b,c-1);return c-1};
XL=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.VL.call(this,a,b,c,0);this.u=null;this.I=d?2:0};
YL=function(a,b,c,d){WL.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].tR(c)};
Tya=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Zi(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.$L=function(a,b){g.dE.call(this);this.B=a;this.adModule=!1;this.adaptiveFormats="";this.MR=this.Lw=this.adQueryId=this.uA=null;this.kQ={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.Pd=null;this.Yv=void 0;this.bJ=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Xa="";this.NI=this.Mw=!1;this.nV=null;this.Kf=this.ij=this.Uo=this.cK=!1;this.I=null;this.VR=this.Xk=!1;this.Zi=NaN;this.nm=!1;this.jE=0;this.RR=!1;this.OI=
this.cycToken=null;this.author="";this.wD=0;this.tm=!1;this.nD=null;this.VI=[];this.Du=this.UI=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.videoCountText=this.Lc=this.je="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Pb=0;this.rl=this.Ya=this.u=null;this.PJ="";this.La=!1;this.Vd=this.qm=0;this.OR=this.pipable=this.kp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Xb=this.isPrivate=this.isListed=
this.WJ=this.aJ=this.mutedAutoplay=this.Xl=!1;this.eK="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.ZJ=this.rd=this.Se=!1;this.latencyClass="UNKNOWN";this.mS=this.DU=this.VJ=this.QR=this.ZI=this.enablePreroll=this.enableServerStitchedDai=this.mf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Dc=0;this.reloadReason="";this.bK=this.dV=this.AD=!1;this.keywords={};this.Tb="";this.Sn=
0;this.Fx=!1;this.liveChunkReadahead=NaN;this.mm=null;this.mA=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.nS=this.paygated=!1;this.Sl=[];this.bl=!1;this.Ja=[];this.vj=null;this.NR=this.racyCheckOk=!1;this.RY={};this.Nz=0;this.C=null;this.autonavState=1;this.CS=null;this.shortDescription="";this.kb=this.jQ=!1;this.aj=this.uc=this.startSeconds=0;this.Nx=this.cS=this.ql=ZL;this.Ow=this.suggestions=null;this.rA=this.sA=void 0;this.isExternallyHostedPodcast=!1;this.ol=null;this.nQ=
!1;this.expandedSubtitle=this.ph=this.subtitle=this.title="";this.multiMarkersPlayerBarRenderer=this.dS=void 0;this.suggestedActions=[];this.Sw=void 0;this.ke=[];this.Pk=[];this.hlsFormats=this.Jf="";this.wx=this.Dx=this.Rk=this.Nd=this.ib=this.Xn=this.tx=null;this.ek="vvt";this.Vf=!1;this.cJ=null;this.aS="";this.Xo=NaN;this.ot=this.Yy=this.Eo=this.Xy=this.Jy=this.ul=this.po=this.rz=this.Vo=this.kz="";this.vl=null;this.KR=!1;this.ea={};this.clipStart=0;this.clipEnd=Infinity;this.heartbeatToken="";
this.ES=this.oS=NaN;this.Si=this.Rn=this.Qg=this.gU=this.RS=!1;this.Zn=!0;this.Z={};this.captionTracks=[];this.KK=[];this.LS=0;this.LK=[];this.lX=[];this.gF=!1;this.hS={};this.wm=new g.hF("und",new g.aI("Default","und",!0));this.dK=0;this.J=null;this.Un=[];this.OJ=!1;this.Wf=[];this.uy=this.Hf="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.jd=this.gK=this.QJ=this.playerResponse=this.kS=this.yx=this.ym=this.kf=this.MJ=this.mQ=this.iQ=null;this.Uw=!1;this.oa=null;this.isInlinePlaybackNoAd=
this.hm=this.WI=this.useCobaltWidevine=this.PR=this.Sy=!1;this.fJ=!0;this.vf=this.ri=NaN;this.defraggedFromSubfragments=this.Oo=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=[];this.dE=this.XI=this.hj=this.lS=!1;this.interstitials=[];this.D=this.XJ=!1;this.Wc="";this.allowImaMonetization=!1;this.Vn=this.jX="";this.hK=[];this.Nc="";this.fb=this.jT=!1;this.dj=0;this.OV=this.oo="";this.TM=this.EL=this.UJ=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=
this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.ao=!1;this.ll=this.Qk=!0;this.errorDetail=this.userGenderAge="";this.RI=this.TI=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Gm=this.errorReason=this.errorCode=null;this.Qw=this.Pw="";this.xm=!1;this.gA=[];this.Od=this.jc=this.Ld=this.Yg=this.Ge=0;this.fetchType=null;this.XY=!0;this.transitionEndpointAtEndOfStream=void 0;this.SI=
this.ZR=-1;this.jl=this.If=!1;this.jm=null;this.Qa="";this.Pn=!1;this.watchUrl=null;this.vx=[];this.visibleOnLoadKeys=[];this.JR=[];this.inlineMetricEnabled=this.Tn=!1;this.embedsRctn=this.embedsRct="";this.SJ=NaN;this.uY=(0,g.M)();this.viewerLivestreamJoinTime=this.jo=0;this.If=this.K("web_new_autonav_countdown");this.jl=this.K("web_new_big_thumbnail_endscreen");Uya(this,b);this.Tw=new pF;g.E(this,this.Tw)};
g.cM=function(a,b,c){b&&b.cpn&&g.DD(new g.bA("CPN provided in VideoData update",{W7a:b.cpn,Ci:a.clientPlaybackNonce,a4:c}));c?(oz(b),Uya(a,b),aM(a)&&bM(a)):(b=b||{},Vya(a,b),Wya(a,b),Xya(a,b),a.ma("dataupdated"))};
Xya=function(a,b){a.fflags=mz(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Xa=VD(c));a.Mw=jz(a.Mw,b.iv_ads_only);a.NI=jz(a.NI,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.l1=c;a.isPharma=jz(a.isPharma,b.is_pharma);a.author=mz(a.author,b.author);a.je=eya(b.ttsurl)||a.je;a.tm=jz(a.tm,b.cc_asr);a.Lc=mz(a.Lc,b.channel_path);if(c=b.profile_picture)a.profilePicture=mz(a.profilePicture,c);a.videoCountText=mz(a.videoCountText,b.video_count_text);a.autonavState=kz(a.autonavState,b.autonav_state,
Yya);a.clientPlaybackNonce=mz(a.clientPlaybackNonce,b.cpn);a.subscribed=jz(a.subscribed,b.subscribed);a.rawViewCount=lz(a.rawViewCount,b.view_count);a.shortViewCount=mz(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=mz(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=mz(a.lengthText||"",b.lengthText);a.zv=mz(a.zv||"",b.zv);a.Fr=mz(a.Fr||"",b.Fr);a.title=mz(a.title,b.title);a.subtitle=mz(a.subtitle,b.subtitle);a.ph=mz(a.ph,b.expanded_title);a.expandedSubtitle=mz(a.expandedSubtitle,
b.expanded_subtitle);a.ariaLabel=mz(a.ariaLabel,b.aria_label);a.ypcPreview=mz(a.ypcPreview,b.ypc_preview);a.eJ=mz(a.eJ,b.ypc_origin);a.Vf=jz(a.Vf,b.ypc_is_premiere_trailer);a.oo=mz(a.oo,b.ypc_clickwrap_message);a.paygated=jz(a.paygated,b.paygated);a.KR=jz(a.KR,b.requires_purchase);a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!jz(!a.showShareButton,b.ss),a.Qk=jz(a.Qk,b.showwatchlater));a.ll=jz(a.ll,b.shownotifybutton);a.ao=jz(a.ao,b.copy_share);if(c=b.el)a.eventLabel=
c;if(c=b.keywords)a.keywords=Zya(c.split(","));if(c=b.rvs)a.suggestions=ry(c).map(function(d){return d.playlist||d.list||d.api?new g.FL(a.B,d):new g.GL(a.B,d)});
a.contentCheckOk=jz(a.contentCheckOk,b.cco);a.racyCheckOk=jz(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=jz(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=mz(a.oauthToken,b.oauth_token);a.Tb=mz(a.Tb,b.kpt);a.visitorData=mz(a.visitorData,b.visitor_data);if(c=b.session_data)a.sessionData=oy(c,"&");a.mx=mz(a.mx,b.endscreen_ad_tracking_data);a.YR=jz(a.YR,b.wait_for_vast_info_cards_xml);a.lQ=jz(a.lQ,b.suppress_creator_endscreen);a.cV=jz(a.cV,b.is_trueview_action);a.WR=mz(a.WR,b.tracking_list);
a.Pw=mz(a.Pw,b.clip);a.Qw=mz(a.Qw,b.clipt);$ya(a,b)};
Uya=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.Gm=f);a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.KD(16));a.Xb=jz(a.B.Xb,b.livemonitor);Vya(a,b);var h=b.raw_player_response;if(h)a.gK=h;else{var l=b.player_response;l&&(h=JSON.parse(l))}h&&(a.playerResponse=h);if(a.playerResponse){var m=a.playerResponse.annotations;
if(m)for(var n=g.t(m),p=n.next();!p.done;p=n.next()){var q=p.value.playerAnnotationsUrlsRenderer;if(q){q.adsOnly&&(a.Mw=!0);q.allowInPlaceSwitch&&(a.NI=!0);var r=q.loadPolicy;r&&(a.annotationsLoadPolicy=aza[r]);var v=q.invideoUrl;v&&(a.Xa=VD(v));a.cK=!0;break}}var x=a.playerResponse.attestation;x&&dya(a,x);var z=a.playerResponse.cotn;z&&(a.cotn=z);var B=a.playerResponse.heartbeatParams;if(B){var F=B.heartbeatToken;F&&(a.drmSessionId=B.drmSessionId||"",a.heartbeatToken=F,a.oS=Number(B.intervalMilliseconds),
a.ES=Number(B.maxRetries),a.RS=!!B.softFailOnError,a.gU=!!B.useInnertubeHeartbeatsForDrm,a.Uo=!0);a.heartbeatServerData=B.heartbeatServerData;var G;a.nm=!(null==(G=B.heartbeatAttestationConfig)||!G.requiresAttestation)}var D=a.playerResponse.messages;D&&jya(a,D);var L=a.playerResponse.multicamera;if(L){var P=L.playerLegacyMulticameraRenderer;if(P){var T=P.metadataList;T&&(a.OV=T,a.Wf=ry(T))}}var fa=a.playerResponse.overlay;if(fa){var V=fa.playerControlsOverlayRenderer;if(V){var Q=V.controlBgHtml;
null!=Q?(a.Wc=Q,a.D=!0):(a.Wc="",a.D=!1);if(V.mutedAutoplay){var X=g.K(V.mutedAutoplay,bza);if(X&&X.endScreen){var O=g.K(X.endScreen,cza);O&&O.text&&(a.jX=g.gE(O.text))}}else a.mutedAutoplay=!1}}var la=a.playerResponse.playabilityStatus;if(la){var qa=la.backgroundability;qa&&qa.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var Ma,Qa;if(null==(Ma=la.offlineability)?0:null==(Qa=Ma.offlineabilityRenderer)?0:Qa.offlineable)a.offlineable=!0;var ua=la.contextParams;ua&&(a.contextParams=
ua);var ab=la.pictureInPicture;ab&&ab.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);la.playableInEmbed&&(a.allowEmbed=!0);var ta=la.ypcClickwrap;if(ta){var db=ta.playerLegacyDesktopYpcClickwrapRenderer,pb=ta.ypcRentalActivationRenderer;if(db)a.oo=db.durationMessage||"",a.Kf=!0;else if(pb){var Xa=pb.durationMessage;a.oo=Xa?g.gE(Xa):"";a.Kf=!0}}var Db=la.errorScreen;if(Db){if(Db.playerLegacyDesktopYpcTrailerRenderer){var eb=Db.playerLegacyDesktopYpcTrailerRenderer;a.ot=eb.trailerVideoId||"";
var Ab=Db.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Fb=Ab&&Ab.ypcTrailerRenderer}else if(Db.playerLegacyDesktopYpcOfferRenderer)eb=Db.playerLegacyDesktopYpcOfferRenderer;else if(Db.ypcTrailerRenderer){Fb=Db.ypcTrailerRenderer;var rc=Fb.fullVideoMessage;a.po=rc?g.gE(rc):"";var Jc,me;a.ot=(null==(Jc=g.K(Fb,dza))?void 0:null==(me=Jc.videoDetails)?void 0:me.videoId)||""}eb&&(a.Eo=eb.itemTitle||"",eb.itemUrl&&(a.Yy=eb.itemUrl),eb.itemBuyUrl&&(a.Jy=eb.itemBuyUrl),a.Xy=eb.itemThumbnail||"",a.rz=
eb.offerHeadline||"",a.Vo=eb.offerDescription||"",a.ul=eb.offerId||"",a.kz=eb.offerButtonText||"",a.cJ=eb.offerButtonFormattedText||null,a.Xo=eb.overlayDurationMsec||NaN,a.po=eb.fullVideoMessage||"",a.ij=!0);if(Fb){var zd=g.K(Fb,dza);if(zd)a.vl={raw_player_response:zd};else{var de=g.K(Fb,eza);a.vl=de?qy(de):null}a.ij=!0}}}var lc=a.playerResponse.playbackTracking;if(lc){var fc=b,bd=dL(lc.googleRemarketingUrl);bd&&(a.googleRemarketingUrl=bd);var Pd=dL(lc.youtubeRemarketingUrl);Pd&&(a.youtubeRemarketingUrl=
Pd);var Hb=dL(lc.ptrackingUrl);if(Hb){var gb=eL(Hb),Wb=gb.oid;Wb&&(a.KX=Wb);var Kc=gb.pltype;Kc&&(a.fY=Kc);var ee=gb.ptchn;ee&&(a.xX=ee);var lb=gb.ptk;lb&&(a.xx=encodeURIComponent(lb));var Ec=gb.m;Ec&&(a.lx=Ec)}var qb=dL(lc.ppvRemarketingUrl);qb&&(a.ppvRemarketingUrl=qb);var zc=dL(lc.qoeUrl);if(zc){for(var Xb=g.sy(zc),Ne=g.t(Object.keys(Xb)),Qd=Ne.next();!Qd.done;Qd=Ne.next()){var gc=Qd.value,Ac=Xb[gc];Xb[gc]=Array.isArray(Ac)?Ac.join(","):Ac}a.bS=Xb;var Ad=Xb.cat;Ad&&(a.Vn=Ad);var sc=Xb.live;sc&&
(a.eK=sc);var cd=Xb.drm_product;cd&&(a.bJ=cd)}var dd=dL(lc.remarketingUrl);if(dd){a.remarketingUrl=dd;var Fc=eL(dd);Fc.foc_id&&(a.ea.focEnabled=!0);var Gd=Fc.data;Gd&&(a.ea.rmktEnabled=!0,Gd.engaged&&(a.ea.engaged="1"));a.ea.baseUrl=sfa(dd)+Ri(g.Ti(5,dd))}var Lc=dL(lc.videostatsPlaybackUrl);if(Lc){var Yb=eL(Lc);a.Oc=Yb;var ub=Yb.adformat;if(ub){fc.adformat=ub;var vb=a.V(),jg=$xa(ub,a.uy,vb.C,vb.I);jg&&(a.adFormat=jg)}var kg=Yb.aqi;kg&&(fc.ad_query_id=kg);var ed=Yb.autoplay;ed&&(a.Xl="1"==ed,a.kp=
"1"==ed);var Zb=Yb.autonav;Zb&&(a.isAutonav="1"==Zb);var Mc=Yb.delay;Mc&&(a.Pb=Se(Mc));var ld=Yb.ei;ld&&(a.eventId=ld);"adunit"===Yb.el&&(a.Xl=!0);var fd=Yb.feature;fd&&(a.Wn=fd);var sf=Yb.list;sf&&(a.playlistId=sf);var qd=Yb.of;qd&&(a.SM=qd);var Rd=Yb.osid;Rd&&(a.osid=Rd);var $e=Yb.referrer;$e&&(a.referrer=$e);var Bd=Yb.sdetail;Bd&&(a.Bx=Bd);var ne=Yb.sourceid;ne&&(a.G6a=ne);var Tf=Yb.ssrt;Tf&&(a.Yn="1"==Tf);var xb=Yb.subscribed;xb&&(a.subscribed="1"==xb,a.ea.subscribed=xb);var aj=Yb.uga;aj&&(a.userGenderAge=
aj);var Qg=Yb.upt;Qg&&(a.Ex=Qg);var xi=Yb.vm;xi&&(a.videoMetadata=xi)}var bj=dL(lc.videostatsWatchtimeUrl);if(bj){var cj=eL(bj).ald;cj&&(a.tA=cj)}if(lc.promotedPlaybackTracking){var Oe=lc.promotedPlaybackTracking;Oe.startUrls&&(a.zx=Oe.startUrls);Oe.firstQuartileUrls&&(a.yN=Oe.firstQuartileUrls);Oe.secondQuartileUrls&&(a.vO=Oe.secondQuartileUrls);Oe.thirdQuartileUrls&&(a.FO=Oe.thirdQuartileUrls);Oe.completeUrls&&(a.jN=Oe.completeUrls);Oe.engagedViewUrls&&(1<Oe.engagedViewUrls.length&&g.DD(new g.bA("There are more than one engaged_view_urls.")),
a.Ui=Oe.engagedViewUrls[0])}}var dj=a.playerResponse.playerCueRanges;dj&&0<dj.length&&(a.cueRanges=dj);a:{var ej=a.playerResponse.adPlacements;if(ej)for(var af=g.t(ej),Rg=af.next();!Rg.done;Rg=af.next()){var yi=void 0,Nj=void 0,Oj=null==(yi=Rg.value.adPlacementRenderer)?void 0:null==(Nj=yi.renderer)?void 0:Nj.videoAdTrackingRenderer;if(Oj){var lg=Oj;break a}}lg=null}var fe=lg;lc&&lc.promotedPlaybackTracking&&fe&&g.DD(new g.bA("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));
fe&&(a.nS=!0);var Uf=a.playerResponse.playerAds;if(Uf)for(var Sg=b,Pj=g.t(Uf),fj=Pj.next();!fj.done;fj=Pj.next()){var oe=fj.value;if(oe){var mg=oe.playerLegacyDesktopWatchAdsRenderer;if(mg){var Ae=mg.playerAdParams;if(Ae){"1"==Ae.autoplay&&(a.Xl=!0,a.kp=!0);a.Lw=Ae.encodedAdSafetyReason||null;void 0!==Ae.showContentThumbnail&&(a.Zn=!!Ae.showContentThumbnail);Sg.enabled_engage_types=Ae.enabledEngageTypes;break}}}}var Hd=a.playerResponse.playerConfig;if(Hd){var tf=Hd.manifestlessWindowedLiveConfig;
if(tf){var Vf=Number(tf.minDvrSequence),sh=Number(tf.maxDvrSequence),Tg=Number(tf.minDvrMediaTimeMs),gj=Number(tf.maxDvrMediaTimeMs),hj=Number(tf.startWalltimeMs);Vf&&(a.Ge=Vf);Tg&&(a.jc=Tg/1E3);sh&&(a.Yg=sh);gj&&(a.Ld=gj/1E3);hj&&(a.Od=hj/1E3)}var th=Hd.daiConfig;if(th){if(th.enableDai){a.mf=!0;var Ug=th.enableServerStitchedDai;Ug&&(a.enableServerStitchedDai=Ug);var zi=th.enablePreroll;zi&&(a.enablePreroll=zi)}var Vh;if("DAI_TYPE_SS_DISABLED"===th.daiType||(null==(Vh=th.debugInfo)?0:Vh.isDisabledUnpluggedChannel))a.VJ=
!0}var Sd=Hd.audioConfig;if(Sd){var ng=Sd.loudnessDb;null!=ng&&(a.Zi=ng);Sd.audioMuted&&(a.Xk=!0);Sd.muteOnStart&&(a.VR=!0)}var bf=Hd.playbackEndConfig;if(bf){var Ai=bf.endSeconds,$b=bf.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(Ai&&(a.endSeconds=Ai),a.V().K("embeds_enable_muted_autoplay")&&$b&&(a.limitedPlaybackDurationInSeconds=$b))}var ge=Hd.fairPlayConfig;if(ge){var pe=ge.certificate;pe&&(a.Ya=RJ(pe));var Wf=Number(ge.keyRotationPeriodMs);0<Wf&&(a.ox=Wf);var Jf=Number(ge.keyPrefetchMarginMs);
0<Jf&&(a.nx=Jf)}var qe=Hd.playbackStartConfig;if(qe){a.TM=Number(qe.startSeconds);var uh=qe.liveUtcStartSeconds,Wh=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;uh&&!Wh&&(a.liveUtcStartSeconds=Number(uh));var og=qe.startPosition;if(og){var Pe=og.utcTimeMillis;Pe&&!Wh&&(a.liveUtcStartSeconds=.001*Number(Pe));var Vg=og.streamTimeMillis;Vg&&(a.aj=.001*Number(Vg))}a.progressBarStartPosition=qe.progressBarStartPosition;a.progressBarEndPosition=qe.progressBarEndPosition}else{var re=Hd.skippableSegmentsConfig;
if(re){var Xh=re.introSkipDurationMs;Xh&&(a.UJ=Number(Xh)/1E3);var Lk=re.outroSkipDurationMs;Lk&&(a.EL=Number(Lk)/1E3)}}var Mk=Hd.skippableIntroConfig;if(Mk){var cn=Number(Mk.startMs),Qj=Number(Mk.endMs);isNaN(cn)||isNaN(Qj)||(a.ri=cn,a.vf=Qj)}var Cd=Hd.streamSelectionConfig;Cd&&(a.Vd=Number(Cd.maxBitrate));var cf=Hd.vrConfig;cf&&(a.Sy="1"==cf.partialSpherical);var df=Hd.webDrmConfig;if(df){df.skipWidevine&&(a.PR=!0);var pg=df.widevineServiceCert;pg&&(a.rl=RJ(pg));df.useCobaltWidevine&&(a.useCobaltWidevine=
!0);df.startWithNoQualityConstraint&&(a.hm=!0)}var Wg=Hd.mediaCommonConfig;if(Wg){var Yh=Wg.dynamicReadaheadConfig;if(Yh){a.maxReadAheadMediaTimeMs=Yh.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=Yh.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=Yh.readAheadGrowthRateMs||NaN;var Bi,Rj=null==Wg?void 0:null==(Bi=Wg.mediaUstreamerRequestConfig)?void 0:Bi.videoPlaybackUstreamerConfig;Rj&&(a.vj=RJ(Rj));var Sj=null==Wg?void 0:Wg.sabrContextUpdates;Sj&&Sj.length&&(a.sabrContextUpdates=Sj)}}var dn=
Hd.inlinePlaybackConfig;dn&&(a.fJ=!!dn.showAudioControls);var Kf=Hd.embeddedPlayerConfig;if(Kf){a.embeddedPlayerConfig=Kf;var vh=Kf.embeddedPlayerMode;if(vh){var ij=a.V();ij.Qa=vh;ij.B="EMBEDDED_PLAYER_MODE_PFL"===vh}var en=Kf.permissions;en&&(a.allowImaMonetization=!!en.allowImaMonetization)}var fn=Hd.ssapConfig;fn&&(a.lS=fn.ssapPrerollEnabled||!1)}var se=a.playerResponse.streamingData;if(se){var ef=se.adaptiveFormats;if(ef){var wh=se.streamingUrlTemplate;if(a.K("enable_streaming_url_template")&&
wh)for(var jj=g.t(ef),ff=jj.next();!ff.done;ff=jj.next()){var gf=ff.value;!gf.url&&gf.distinctParams&&(gf.url=wh+"&"+gf.distinctParams)}}var xh=se.formats;if(xh){var yh=[],gn=g.t(xh);for(ff=gn.next();!ff.done;ff=gn.next()){var Dl=ff.value;yh.push(Dl.itag+"/"+Dl.width+"x"+Dl.height)}a.PJ=yh.join(",");yh=[];var hn=g.t(xh);for(ff=hn.next();!ff.done;ff=hn.next()){var Id=ff.value,hf={itag:Id.itag,type:Id.mimeType,quality:Id.quality},Xg=Id.url;Xg&&(hf.url=Xg);var Yg=gF(Id),El=Yg.Sx,Fl=Yg.Zz,La=Yg.s;Yg.vU&&
(hf.url=El,hf.sp=Fl,hf.s=La);yh.push(g.Yi(hf))}a.Jf=yh.join(",")}var Do=se.hlsFormats;if(Do){var zq=Hd||null,Eo={};if(zq){var Gl=zq.audioPairingConfig;if(Gl&&Gl.pairs)for(var Tj=g.t(Gl.pairs),Hl=Tj.next();!Hl.done;Hl=Tj.next()){var Fo=Hl.value,Aq=Fo.videoItag;Eo[Aq]||(Eo[Aq]=[]);Eo[Aq].push(Fo.audioItag)}}for(var Bq={},Zs=g.t(Do),Uj=Zs.next();!Uj.done;Uj=Zs.next()){var $s=Uj.value;Bq[$s.itag]=$s.bitrate}var at=[],Cq=g.t(Do);for(Uj=Cq.next();!Uj.done;Uj=Cq.next()){var qg=Uj.value,Xf={itag:qg.itag,
type:qg.mimeType,url:qg.url,bitrate:qg.bitrate,width:qg.width,height:qg.height,fps:qg.fps},Il=qg.audioTrack;if(Il){var Go=Il.displayName;Go&&(Xf.name=Go,Xf.audio_track_id=Il.id,Il.audioIsDefault&&(Xf.is_default="1"))}if(qg.drmFamilies){for(var Ci=[],jn=g.t(qg.drmFamilies),Jl=jn.next();!Jl.done;Jl=jn.next())Ci.push(HI[Jl.value]);Xf.drm_families=Ci.join(",")}var Ho=Eo[qg.itag];if(Ho&&Ho.length){Xf.audio_itag=Ho.join(",");var bt=Bq[Ho[0]];bt&&(Xf.bitrate+=bt)}var Kl=xva(qg);Kl&&(Xf.eotf=Kl);qg.audioChannels&&
(Xf.audio_channels=qg.audioChannels);at.push(g.Yi(Xf))}a.hlsFormats=at.join(",")}var kn=se.licenseInfos;if(kn&&0<kn.length){for(var Dq={},ct=g.t(kn),Eq=ct.next();!Eq.done;Eq=ct.next()){var kj=Eq.value,Ll=kj.drmFamily,zh=kj.url;Ll&&zh&&(Dq[HI[Ll]]=zh)}a.Pd=Dq}var ln=se.drmParams;ln&&(a.drmParams=ln);var mn=se.dashManifestUrl;mn&&(a.tb=g.Zi(mn,{cpn:a.clientPlaybackNonce}));var dt=se.hlsManifestUrl;dt&&(a.hlsvp=dt);var et=se.probeUrl;et&&(a.probeUrl=VD(g.Zi(et,{cpn:a.clientPlaybackNonce})));var ft=se.serverAbrStreamingUrl;
ft&&(a.Cx=new g.DF(ft,!0))}var Be=a.playerResponse.trackingParams;Be&&(a.Aa=Be);var bc=a.playerResponse.videoDetails;if(bc){var jf=b,gt=bc.videoId;gt&&(a.videoId=gt,jf.video_id||(jf.video_id=gt));var zw=bc.channelId;zw&&(a.ea.uid=zw.substr(2));var Vj=bc.title;Vj&&(a.title=Vj,jf.title||(jf.title=Vj));var nn=bc.lengthSeconds;nn&&(a.lengthSeconds=Number(nn),jf.length_seconds||(jf.length_seconds=nn));var on=bc.keywords;on&&(a.keywords=Zya(on));var Fq=bc.channelId;Fq&&(a.bk=Fq,jf.ucid||(jf.ucid=Fq));var ht=
bc.viewCount;ht&&(a.rawViewCount=Number(ht));var Io=bc.author;Io&&(a.author=Io,jf.author||(jf.author=Io));var jt=bc.shortDescription;jt&&(a.shortDescription=jt);var Gq=bc.isCrawlable;Gq&&(a.isListed=Gq);var kt=bc.musicVideoType;kt&&(a.musicVideoType=kt);var Hq=bc.isLive;null!=Hq&&(a.isLivePlayback=Hq);if(Hq||bc.isUpcoming)a.isPremiere=!bc.isLiveContent;var Iq=bc.thumbnail;Iq&&(a.Z=cL(Iq));var lt=bc.isExternallyHostedPodcast;lt&&(a.isExternallyHostedPodcast=lt);var Jq=bc.viewerLivestreamJoinPosition;
if(null==Jq?0:Jq.utcTimeMillis)a.viewerLivestreamJoinTime=Se(Jq.utcTimeMillis);var pn=Hd||null,qn=b;bc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);bc.isUpcoming&&(a.isUpcoming=!0);if(bc.isPostLiveDvr)a.Se=!0;else{var Jo=!1;if(a.Xb)a.allowLiveDvr=uJ()?!0:dz&&5>dM?!1:!0,a.isLivePlayback=!0;else if(bc.isLive){qn.livestream="1";a.allowLiveDvr=bc.isLiveDvrEnabled?uJ()?!0:dz&&5>dM?!1:!0:!1;a.Ga=27;bc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Bw=bc.latencyClass;Bw&&(a.latencyClass=
fza[Bw]||"UNKNOWN");var Ml=bc.liveChunkReadahead;Ml&&(a.liveChunkReadahead=Ml);var Di=pn&&pn.livePlayerConfig;if(Di){Di.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Di.hasSubfragmentedWebm&&(a.Oo=!0);Di.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Ko=Di.liveExperimentalContentId;Ko&&(a.liveExperimentalContentId=Number(Ko));var Nk=Di.isLiveHeadPlayable;a.K("html5_live_head_playable")&&null!=Nk&&(a.isLiveHeadPlayable=Nk)}Jo=!0}else bc.isUpcoming&&(Jo=!0);Jo&&(a.isLivePlayback=
!0,qn.adformat&&"8"!==qn.adformat.split("_")[1]||a.Ja.push("heartbeat"),a.Uo=!0)}var Lo=bc.isPrivate;void 0!==Lo&&(a.isPrivate=jz(a.isPrivate,Lo))}if(la){var Mo=bc||null,mt=!1,Nl=la.errorScreen;mt=Nl&&(Nl.playerLegacyDesktopYpcOfferRenderer||Nl.playerLegacyDesktopYpcTrailerRenderer||Nl.ypcTrailerRenderer)?!0:Mo&&Mo.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(la.status);if(!mt){a.errorCode=Uxa(la.errorCode)||"auth";var No=Nl&&Nl.playerErrorMessageRenderer;if(No){a.playerErrorMessageRenderer=
No;var nt=No.reason;nt&&(a.errorReason=g.gE(nt));var Kq=No.subreason;Kq&&(a.Gm=g.gE(Kq),a.qx=Kq)}else a.errorReason=la.reason||null;var Ba=la.status;if("LOGIN_REQUIRED"===Ba)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===Ba)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===Ba){var Ei=la.errorScreen,Oo=Ei&&Ei.playerKavRenderer;a.errorDetail=Oo&&Oo.kavUrl?"4":"3"}else a.errorDetail=la.isBlockedInRestrictedMode?"5":"0"}}var Po=a.playerResponse.interstitialPods;Po&&iya(a,Po);a.Xa&&a.eventId&&(a.Xa=
uy(a.Xa,{ei:a.eventId}));var SA=a.playerResponse.captions;SA&&SA.playerCaptionsTracklistRenderer&&fya(a,SA.playerCaptionsTracklistRenderer);a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.TM=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&kya(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting)}Wya(a,
b);b.queue_info&&(a.queueInfo=b.queue_info);var OH=b.hlsdvr;null!=OH&&(a.allowLiveDvr="1"==OH?uJ()?!0:dz&&5>dM?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Lw||(a.Lw=b.encoded_ad_safety_reason||null);a.MR=b.agcid||null;a.iQ=b.ad_id||null;a.mQ=b.ad_sys||null;a.MJ=b.encoded_ad_playback_context||null;a.Xk=jz(a.Xk,b.infringe||b.muted);a.XR=b.authkey;a.authUser=b.authuser;a.mutedAutoplay=jz(a.mutedAutoplay,b&&b.playmuted)&&a.K("embeds_enable_muted_autoplay");var Qo=b.length_seconds;Qo&&(a.lengthSeconds=
"string"===typeof Qo?Se(Qo):Qo);var TA=!a.isAd()&&!a.bl&&g.qz(g.wK(a.B));if(TA){var ot=a.lengthSeconds;switch(g.wK(a.B)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<ot?a.endSeconds=30:30>ot&&10<ot&&(a.endSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.endSeconds=.2*ot}}else a.endSeconds=lz(a.endSeconds,a.EL||b.end||b.endSeconds);a.Aa=mz(a.Aa,b.itct);a.WJ=jz(a.WJ,b.noiba);a.ZJ=jz(a.ZJ,b.is_live_destination);a.isLivePlayback=jz(a.isLivePlayback,b.live_playback);
a.enableServerStitchedDai=a.enableServerStitchedDai&&a.isLivePlayback;b.isUpcoming&&(a.isUpcoming=jz(a.isUpcoming,b.isUpcoming));a.Se=jz(a.Se,b.post_live_playback);a.isMdxPlayback=jz(a.isMdxPlayback,b.mdx);var Cw=b.mdx_control_mode;Cw&&(a.mdxControlMode="number"===typeof Cw?Cw:Se(Cw));a.isInlinePlaybackNoAd=jz(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Dc=lz(a.Dc,b.reload_count);a.reloadReason=mz(a.reloadReason,b.reload_reason);a.Zn=jz(a.Zn,b.show_content_thumbnail);a.bK=jz(a.bK,b.utpsa);
a.nQ=jz(a.nQ,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.OI=b.tkn||null;var PH=bL(b);0<Object.keys(PH).length&&(a.Z=PH);a.ya=mz(a.ya,b.vvt);a.mdxEnvironment=mz(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.w1=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=mz(a.playlistId,b.list);b.index&&(a.playlistIndex=
void 0===a.playlistIndex?lz(0,b.index):lz(a.playlistIndex,b.index));a.pQ=b.pyv_view_beacon_url;a.sQ=b.pyv_quartile25_beacon_url;a.xQ=b.pyv_quartile50_beacon_url;a.yQ=b.pyv_quartile75_beacon_url;a.rQ=b.pyv_quartile100_beacon_url;var UA=b.remarketing_url;UA&&(a.remarketingUrl=UA);var QH=b.ppv_remarketing_url;QH&&(a.ppvRemarketingUrl=QH);var RH=b.session_data;!a.zQ&&RH&&(a.zQ=oy(RH,"&").feature);a.isFling=1==lz(a.isFling?1:0,b.is_fling);a.vnd=lz(a.vnd,b.vnd);a.forceAdsUrl=mz(a.forceAdsUrl,b.force_ads_url);
a.Ki=mz(a.Ki,b.ctrl);a.qj=mz(a.qj,b.ytr);a.Kp=b.ytrcc;a.BQ=b.ytrexp;a.SP=b.ytrext;a.Hf=mz(a.Hf,b.adformat);a.uy=mz(a.uy,b.attrib);a.slotPosition=lz(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Yn=jz(a.Yn,b.ssrt);a.videoId=oz(b)||a.videoId;a.T=mz(a.T,b.vss_credentials_token);a.ek=mz(a.ek,b.vss_credentials_token_type);a.hj=jz(a.hj,b.audio_only);a.XI=jz(a.XI,b.aac_high);a.dE=jz(a.dE,b.prefer_low_quality_audio);a.Vn=mz(a.Vn,b.qoe_cat);a.xm=jz(a.xm,b.download_media);a.fb=jz(a.fb,b.prefer_gapless);
a:{var VA=a.playerResponse;if(VA&&VA.adPlacements)for(var SH=g.t(VA.adPlacements),WA=SH.next();!WA.done;WA=SH.next()){var Dw=WA.value.adPlacementRenderer;if(null!=Dw&&"AD_PLACEMENT_KIND_START"===(Dw.config&&Dw.config.adPlacementConfig&&Dw.config.adPlacementConfig.kind)){var TH=!0;break a}}TH=!1}TH&&(a.adModule=!0,a.Ja.push("ad"));var XA=b.adaptive_fmts;XA&&(a.adaptiveFormats=XA,a.xa("adpfmts",{},!0));var YA=b.allow_embed;YA&&(a.allowEmbed="1"==YA);var UH=b.backgroundable;UH&&(a.backgroundable="1"==
UH);var VH=b.autonav;VH&&(a.isAutonav="1"==VH);var ZA=b.autoplay;ZA&&(a.kp="1"==ZA,a.Xl="1"==ZA);var wa=b.iv_load_policy;wa&&(a.annotationsLoadPolicy=kz(a.annotationsLoadPolicy,wa,pK));var jAa=b.cc_lang_pref;jAa&&(a.captionsLanguagePreference=mz(jAa,a.captionsLanguagePreference));var kAa=b.cc_load_policy;kAa&&(a.nD=kz(a.nD,kAa,pK));var lAa;a.deviceCaptionsOn=null!=(lAa=b.device_captions_on)?lAa:void 0;var mAa;a.jS=null!=(mAa=b.device_captions_lang_pref)?mAa:"";var nAa;a.VI=null!=(nAa=b.viewer_selected_caption_langs)?
nAa:[];var oAa=b.cached_load;oAa&&(a.Du=jz(a.Du,oAa));"0"==b.dash&&(a.UI=!0);var pAa=b.dashmpd;pAa&&(a.tb=g.Zi(pAa,{cpn:a.clientPlaybackNonce}));var qAa=b.delay;qAa&&(a.Pb=Se(qAa));var rAa=a.EL||b.end;void 0!=rAa&&(a.clipEnd=lz(a.clipEnd,rAa));var sAa=b.fmt_list;sAa&&(a.PJ=sAa);b.heartbeat_preroll&&a.Ja.push("heartbeat");a.qm=-Math.floor(10*Math.random());a.mA=-Math.floor(40*Math.random());var tAa=b.is_listed;tAa&&(a.isListed=jz(a.isListed,tAa));var uAa=b.is_private;uAa&&(a.isPrivate=jz(a.isPrivate,
uAa));var vAa=b.is_dni;vAa&&(a.D=jz(a.D,vAa));var wAa=b.dni_color;wAa&&(a.Wc=mz(a.Wc,wAa));var xAa=b.pipable;xAa&&(a.pipable=jz(a.pipable,xAa));a.OR=a.pipable&&a.B.Vo;a.jQ=a.OR&&!a.B.showMiniplayerButton;var yAa=b.paid_content_overlay_duration_ms;yAa&&(a.paidContentOverlayDurationMs=Se(yAa));var zAa=b.paid_content_overlay_text;zAa&&(a.paidContentOverlayText=zAa);var AAa=b.url_encoded_fmt_stream_map;AAa&&(a.Jf=AAa);var BAa=b.hls_formats;BAa&&(a.hlsFormats=BAa);var CAa=b.hlsvp;CAa&&(a.hlsvp=CAa);var uS=
b.live_start_walltime;uS&&(a.fK="number"===typeof uS?uS:Se(uS));var vS=b.live_manifest_duration;vS&&(a.mm="number"===typeof vS?vS:Se(vS));var DAa=b.player_params;DAa&&(a.playerParams=DAa);var EAa=b.partnerid;EAa&&(a.Ga=lz(a.Ga,EAa));var FAa=b.probe_url;FAa&&(a.probeUrl=VD(g.Zi(FAa,{cpn:a.clientPlaybackNonce})));var i9=b.pyv_billable_url;i9&&Hsa(i9)&&(a.Ui=i9);var j9=b.pyv_conv_url;j9&&Hsa(j9)&&(a.qQ=j9);$ya(a,b);TA?(a.startSeconds=0,a.uc=0):0<a.startSeconds||(a.startSeconds=lz(a.startSeconds,a.TM||
a.UJ||b.start||b.startSeconds),a.uc=a.startSeconds);if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var GAa=b.live_utc_start;if(null!=GAa)a.liveUtcStartSeconds=Number(GAa);else{var k9=a.startSeconds;k9&&isFinite(k9)&&1E9<k9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var HAa=b.utc_start_millis;HAa&&(a.liveUtcStartSeconds=.001*Number(HAa))}var IAa=b.stream_time_start_millis;IAa&&(a.aj=.001*Number(IAa));var JAa=a.UJ||b.start;void 0==JAa||"1"==
b.resume||a.isLivePlayback||(a.clipStart=lz(a.clipStart,JAa));var KAa=b.url_encoded_third_party_media;KAa&&(a.ol=ry(KAa));var l9=b.ypc_offer_button_formatted_text;if(l9){var LAa=JSON.parse(l9);a.cJ=null!=LAa?LAa:null;a.aS=l9}var MAa=b.ypc_offer_button_text;MAa&&(a.kz=MAa);var NAa=b.ypc_offer_description;NAa&&(a.Vo=NAa);var OAa=b.ypc_offer_headline;OAa&&(a.rz=OAa);var PAa=b.ypc_full_video_message;PAa&&(a.po=PAa);var QAa=b.ypc_offer_id;QAa&&(a.ul=QAa);var RAa=b.ypc_buy_url;RAa&&(a.Jy=RAa);var SAa=b.ypc_item_thumbnail;
SAa&&(a.Xy=SAa);var TAa=b.ypc_item_title;TAa&&(a.Eo=TAa);var UAa=b.ypc_item_url;UAa&&(a.Yy=UAa);var VAa=b.ypc_vid;VAa&&(a.ot=VAa);b.ypc_overlay_timeout&&(a.Xo=Number(b.ypc_overlay_timeout));var WAa=b.ypc_trailer_player_vars;WAa&&(a.vl=qy(WAa));var XAa=b.ypc_original_itct;XAa&&(a.d2=XAa);a.bk=mz(a.bk,b.ucid);b.baseUrl&&(a.ea.baseUrl=b.baseUrl);b.uid&&(a.ea.uid=b.uid);b.oeid&&(a.ea.oeid=b.oeid);b.ieid&&(a.ea.ieid=b.ieid);b.ppe&&(a.ea.ppe=b.ppe);b.engaged&&(a.ea.engaged=b.engaged);b.subscribed&&(a.ea.subscribed=
b.subscribed);a.ea.focEnabled=jz(a.ea.focEnabled,b.focEnabled);a.ea.rmktEnabled=jz(a.ea.rmktEnabled,b.rmktEnabled);a.Dx=b.storyboard_spec||null;a.wx=b.live_storyboard_spec||null;a.nV=b.iv_endscreen_url||null;a.cK=jz(a.cK,b.iv3_module);a.Uo=jz(a.Uo,b.ypc_license_checker_module);a.ij=jz(a.ij,b.ypc_module);a.Kf=jz(a.Kf,b.ypc_clickwrap_module);a.ij&&a.Ja.push("ypc");a.Kf&&a.Ja.push("ypc_clickwrap");a.RY={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};Xya(a,b);var YAa=b.cotn;YAa&&(a.cotn=YAa);if(gza(a))eM(a)&&(a.isLivePlayback&&a.tb&&(a.Qg=!0),a.Ya&&(a.Rn=!0));else if(hza(a))a.Qg=
!0;else{var aBa,bBa,cBa=(null==(aBa=a.playerResponse)?void 0:null==(bBa=aBa.streamingData)?void 0:bBa.adaptiveFormats)||[];if(0<cBa.length)var WH=iza(a,cBa);else{var eBa=a.adaptiveFormats;if(eBa&&jza(a)){fM(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(RI=!0);var $A=gM(eBa),m9=a.Pd,gBa=a.lengthSeconds,w9a=a.isLivePlayback,XH=a.Se,aB=a.B,n9=a.videoId,x9a=Vva($A);if(w9a||XH){var Fi=new FI("",null==aB?void 0:aB.experiments,!0,n9);Fi.fd=!0;Fi.isManifestless=!0;Fi.u=!XH;Fi.isLive=!XH;Fi.Se=XH;for(var hBa=
g.t($A),o9=hBa.next();!o9.done;o9=hBa.next()){var bB=o9.value,iBa=JI(bB,m9),Ew=KI(bB.url,bB.sp,bB.s),jBa=Ew.get("id");jBa&&jBa.includes("%7E")&&(Fi.oa=!0);var y9a=Number(bB.target_duration_sec)||5,z9a=Number(bB.max_dvr_duration_sec)||14400,kBa=Number(Ew.get("mindsq")||Ew.get("min_sq")||"0"),lBa=Number(Ew.get("maxdsq")||Ew.get("max_sq")||"0")||Infinity;Fi.Ge=Fi.Ge||kBa;Fi.Yg=Fi.Yg||lBa;var A9a=!ZH(iBa.mimeType);Ew&&EI(Fi,new qH(Ew,iBa,{Xj:y9a,Dm:A9a,Fo:z9a,Ge:kBa,Yg:lBa,iz:300,Se:XH}))}Fi.B=!!Fi.Ge&&
!!Fi.Yg&&isFinite(Fi.Yg);var mBa=Fi}else{if("FORMAT_STREAM_TYPE_OTF"===x9a){var yS=gBa;yS=void 0===yS?0:yS;var cB=new FI("",null==aB?void 0:aB.experiments,!1,n9);cB.duration=yS||0;for(var nBa=g.t($A),p9=nBa.next();!p9.done;p9=nBa.next()){var dB=p9.value,q9=JI(dB,m9,cB.duration),r9=KI(dB.url,dB.sp,dB.s);if(r9)if("FORMAT_STREAM_TYPE_OTF"===q9.streamType)EI(cB,new rH(r9,q9,"sq/0"));else{var B9a=UG(dB.init),C9a=UG(dB.index);EI(cB,new BH(r9,q9,B9a,C9a))}}cB.isOtf=!0;var oBa=cB}else{var zS=gBa;zS=void 0===
zS?0:zS;var AS=new FI("",null==aB?void 0:aB.experiments,!1,n9);AS.duration=zS||0;for(var pBa=g.t($A),s9=pBa.next();!s9.done;s9=pBa.next()){var eB=s9.value,D9a=JI(eB,m9,AS.duration),E9a=UG(eB.init),F9a=UG(eB.index),qBa=KI(eB.url,eB.sp,eB.s);qBa&&EI(AS,new BH(qBa,D9a,E9a,F9a))}oBa=AS}mBa=oBa}var G9a=mBa;if(0<$A.length){var qt=$A[0];if("hangouts-meet"===a.V().playerStyle&&qt.url&&g.gJ(a.B.experiments,"html5_url_signature_expiry_time_hours")){var H9a=g.sy(qt.url);a.jo=a.jo||Number(H9a.expire)}if(qt.url&&
qt.sp&&qt.s){var I9a=KI(qt.url,qt.sp,qt.s),J9a=kza(a,I9a);isFinite(J9a)&&(a.rd=!0)}}var K9a=a.isLivePlayback&&!a.Se&&!a.rd&&!a.isPremiere;a.K("html5_live_head_playable")&&!hM(a)&&K9a&&a.xa("missingLiveHeadPlayable",{});WH=G9a}else WH=null;a.xa("pafmts",{isManifestFilled:!!WH})}if(WH){iM(a,WH);var sBa=!0}else sBa=!1;sBa?a.enableServerStitchedDai=a.enableServerStitchedDai&&jM(a):a.tb&&(a.Qg=!0)}var u9=b.adpings;u9&&(a.uA=u9?qy(u9):null);var tBa=b.feature;tBa&&(a.Wn=tBa);var uBa=b.referrer;uBa&&(a.referrer=
uBa);a.clientScreenNonce=mz(a.clientScreenNonce,b.csn);a.Nz=lz(a.Nz,b.root_ve_type);a.Sn=lz(a.Sn,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.Fx=jz(a.Fx,b.upg_content_filter_mode);var vBa=b.unplugged_location_info;vBa&&(a.oa=vBa);var wBa=b.unplugged_partner_opt_out;wBa&&(a.hQ=mz("",wBa));a.Uw=jz(a.Uw,b.disable_watch_next);a.Qn=mz(a.Qn,b.internal_ip_override);a.XJ=!!b.is_yto_interstitial;(a.interstitials.length||a.XJ)&&a.Ja.push("yto");var xBa=b.Sl;xBa&&(a.Sl=xBa);
b.jI&&(a.jI=b.jI);var yBa;a.Qa=null!=(yBa=b.csi_timer)?yBa:"";a.Pn=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var BS=b.watch_endpoint;a.K("html5_attach_watch_endpoint_ustreamer_config")&&BS&&Wxa(a,BS);var zBa,ABa,BBa=null==BS?void 0:null==(zBa=BS.loggingContext)?void 0:null==(ABa=zBa.qoeLoggingContext)?void 0:ABa.serializedContextData;a.K("html5_add_qclc_to_qoe_ping")&&BBa&&(a.U1=BBa);g.fK(a.B)&&(a.embedsRct=mz(a.embedsRct,b.rct),a.embedsRctn=mz(a.embedsRctn,b.rctn));a.Tn=a.Tn||!!b.pause_at_start;
b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
Wya=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.jd=c;var e,f=null==(e=a.jd.contents)?void 0:e.twoColumnWatchNextResults;if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var h;a.d1=!!(null==f?0:null==(h=f.autoplay)?0:h.autoplay)}var l=a.jd.playerOverlays;if(l){var m=l.playerOverlayRenderer;if(m){var n=m.autonavToggle;n&&(a.autoplaySwitchButtonRenderer=g.K(n,lza),a.K("web_player_autonav_use_server_provided_state")&&
kM(a)&&(a.autonavState=a.autoplaySwitchButtonRenderer.enabled?2:1));var p=m.videoDetails;if(p){var q=p.embeddedPlayerOverlayVideoDetailsRenderer;var r=p.playerOverlayVideoDetailsRenderer;r&&(r.title&&(b.title=g.gE(r.title)),r.subtitle&&(b.subtitle=g.gE(r.subtitle)))}if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var v,x=null==(v=g.K(m.suggestedActionsRenderer,mza))?void 0:v.suggestedActions;if(x)for(var z=g.t(x),B=z.next();!B.done;B=z.next()){var F=g.K(B.value,nza);F&&
g.K(F.trigger,lM)&&a.suggestedActions.push(F)}}if(!a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var G=g.K(m.decoratedPlayerBarRenderer,HL);if(G){a.multiMarkersPlayerBarRenderer=g.K(G.playerBar,xya);var D;a.dS=null==(D=g.K(G.playerBar,oza))?void 0:D.chapters;a.z1=g.K(G.playerBarActionButton,g.mM)}}!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")&&g.lK(a.B)&&(a.Qk=!!m.addToMenu);pza(a,m.shareButton);if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var L=
m.productsInVideoOverlayRenderer;L&&(a.shoppingOverlayRenderer=g.K(L,qza))}a.progressBarStartPosition=m.startPosition;a.progressBarEndPosition=m.endPosition;var P=m.gatedActionsOverlayRenderer;P&&(a.Z0=g.K(P,rza));var T,fa,V,Q=g.K(null==(T=a.jd)?void 0:null==(fa=T.playerOverlays)?void 0:null==(V=fa.playerOverlayRenderer)?void 0:V.infoPanel,sza);if(Q){a.SJ=Number(null==Q?void 0:Q.durationMs)||NaN;if(null==Q?0:Q.infoPanelOverviewViewModel)a.uf=null==Q?void 0:Q.infoPanelOverviewViewModel;if(null==Q?
0:Q.infoPanelDetailsViewModel)a.lm=null==Q?void 0:Q.infoPanelDetailsViewModel}a.showSeekingControls=!!m.showSeekingControls}}if(!a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")&&f){var X=f.desktopOverlay&&g.K(f.desktopOverlay,nM);X&&(X.suppressShareButton&&(a.showShareButton=!1),X.suppressWatchLaterButton&&(a.Qk=!1))}q&&tza(a,b,q);var O=lz(0,b.autoplay_count),la=a.jd,qa,Ma=null==(qa=la.contents)?void 0:qa.twoColumnWatchNextResults,Qa,ua,ab,ta=null==(Qa=la.playerOverlays)?void 0:
null==(ua=Qa.playerOverlayRenderer)?void 0:null==(ab=ua.autoplay)?void 0:ab.playerOverlayAutoplayRenderer,db=wya(a),pb,Xa=null==(pb=la.contents)?void 0:pb.singleColumnWatchNextResults;if(Xa){var Db;if((null==(Db=Xa.autoplay)?0:Db.autoplay)&&!Xa.playlist){var eb=Xa.autoplay.autoplay.sets,Ab={},Fb=new g.GL(a.V()),rc=null,Jc;if(eb){for(var me=g.t(eb),zd=me.next();!zd.done;zd=me.next()){var de=zd.value.autoplayVideoRenderer;if(de&&de.compactVideoRenderer){rc=de.compactVideoRenderer;break}}if(Jc=eb[0].autoplayVideo){var lc=
Jc.clickTrackingParams;lc&&(Ab.itct=lc);Ab.autonav="1";Ab.playnext=String(O)}}else Ab.feature="related-auto";var fc=g.K(Jc,g.oM);if(rc){Fb.videoId=rc.videoId;var bd=rc.shortBylineText;bd&&(Fb.author=g.gE(bd));var Pd=rc.title;Pd&&(Fb.title=g.gE(Pd))}else null!=fc&&fc.videoId&&(Fb.videoId=fc.videoId);Fb.yB=Ab;a.suggestions=[];a.Ow=Fb}}if(db){for(var Hb=[],gb=g.t(db),Wb=gb.next();!Wb.done;Wb=gb.next()){var Kc=Wb.value,ee=void 0,lb=null;if(Kc.endScreenVideoRenderer){var Ec=Kc.endScreenVideoRenderer,qb=
Ec.title;lb=new g.GL(a.V());lb.videoId=Ec.videoId;lb.lengthSeconds=Ec.lengthInSeconds||0;var zc=Ec.publishedTimeText;zc&&(lb.publishedTimeText=g.gE(zc));var Xb=Ec.shortBylineText;Xb&&(lb.author=g.gE(Xb));var Ne=Ec.shortViewCountText;Ne&&(lb.shortViewCount=g.gE(Ne));if(qb){lb.title=g.gE(qb);var Qd=qb.accessibility;if(Qd){var gc=Qd.accessibilityData;gc&&gc.label&&(lb.ariaLabel=gc.label)}}var Ac=Ec.navigationEndpoint;if(Ac){ee=Ac.clickTrackingParams;var Ad=g.K(Ac,g.oM),sc=g.K(Ac,g.pM);Ad?lb.zB=Ad:null!=
sc&&(lb.watchUrl=sc.url)}var cd=Ec.thumbnailOverlays;if(cd)for(var dd=g.t(cd),Fc=dd.next();!Fc.done;Fc=dd.next()){var Gd=Fc.value.thumbnailOverlayTimeStatusRenderer;if(Gd)if("LIVE"===Gd.style){lb.isLivePlayback=!0;break}else if("UPCOMING"===Gd.style){lb.isUpcoming=!0;break}}lb.Z=cL(Ec.thumbnail)}else if(Kc.endScreenPlaylistRenderer){var Lc=Kc.endScreenPlaylistRenderer,Yb=Lc.navigationEndpoint;if(!Yb)continue;var ub=g.K(Yb,g.oM);if(!ub)continue;var vb=ub.videoId;lb=new g.FL(a.V());lb.playlistId=Lc.playlistId;
lb.playlistLength=Number(Lc.videoCount)||0;lb.j=vb||null;lb.videoId=vb;var jg=Lc.title;jg&&(lb.title=g.gE(jg));var kg=Lc.shortBylineText;kg&&(lb.author=g.gE(kg));ee=Yb.clickTrackingParams;lb.Z=cL(Lc.thumbnail)}lb&&(ee&&(lb.sessionData={itct:ee}),Hb.push(lb))}a.suggestions=Hb}if(ta){a.XY=!!ta.preferImmediateRedirect;a.If=a.If||!!ta.webShowNewAutonavCountdown;a.jl=a.jl||!!ta.webShowBigThumbnailEndscreen;if(a.If||a.jl){var ed=new g.GL(a.V());ed.videoId=ta.videoId;var Zb=ta.videoTitle;if(Zb){ed.title=
g.gE(Zb);var Mc=Zb.accessibility;if(Mc){var ld=Mc.accessibilityData;ld&&ld.label&&(ed.ariaLabel=ld.label)}}var fd=ta.byline;fd&&(ed.author=g.gE(fd));var sf=ta.publishedTimeText;sf&&(ed.publishedTimeText=g.gE(sf));var qd=ta.shortViewCountText;qd&&(ed.shortViewCount=g.gE(qd));var Rd=ta.thumbnailOverlays;if(Rd)for(var $e=g.t(Rd),Bd=$e.next();!Bd.done;Bd=$e.next()){var ne=Bd.value.thumbnailOverlayTimeStatusRenderer;if(ne)if("LIVE"===ne.style){ed.isLivePlayback=!0;break}else if("UPCOMING"===ne.style){ed.isUpcoming=
!0;break}else if("DEFAULT"===ne.style&&ne.text){ed.lengthText=g.gE(ne.text);var Tf=ne.text.accessibility;if(Tf){var xb=Tf.accessibilityData;xb&&xb.label&&(ed.zv=xb.label||"")}break}}ed.Z=cL(ta.background);var aj=ta.nextButton;if(aj){var Qg=aj.buttonRenderer;if(Qg){var xi=Qg.navigationEndpoint;if(xi){var bj=g.K(xi,g.oM);bj&&(ed.zB=bj)}}}if(ta.topBadges){var cj=ta.topBadges[0];if(cj){var Oe=g.K(cj,uza);Oe&&"BADGE_STYLE_TYPE_PREMIUM"===Oe.style&&(ed.jI=!0)}}var dj=ta.alternativeTitle;dj&&(ed.Fr=g.gE(dj));
var ej=Ma||null,af={autonav:"1",playnext:String(O)};ed.playlistId&&(af.autoplay="1");if(ej){var Rg,yi,Nj,Oj,lg=null==(Rg=ej.autoplay)?void 0:null==(yi=Rg.autoplay)?void 0:null==(Nj=yi.sets)?void 0:null==(Oj=Nj[0])?void 0:Oj.autoplayVideo;if(lg){var fe=lg.clickTrackingParams;fe&&(af.itct=fe);var Uf=g.K(lg,g.oM);Uf&&(ed.CS=Uf)}}else if(ta){var Sg,Pj,fj,oe=null==(Sg=ta.nextButton)?void 0:null==(Pj=Sg.buttonRenderer)?void 0:null==(fj=Pj.navigationEndpoint)?void 0:fj.clickTrackingParams;oe&&(af.itct=oe)}af.itct||
(af.feature="related-auto");ed.yB=af;a.suggestions||(a.suggestions=[]);a.Ow=ed}null!=ta.countDownSecs&&(a.ZR=1E3*ta.countDownSecs);null!=ta.countDownSecsForFullscreen&&(a.SI=0<=ta.countDownSecsForFullscreen?1E3*ta.countDownSecsForFullscreen:-1);var mg;a.q1=null==(mg=ta.cancelButton)?void 0:mg.buttonRenderer;a.K("web_autonav_color_transition")&&ta.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.K(ta.watchToWatchTransitionRenderer,vza))}var Ae=wya(a);if(Ae){var Hd,tf,Vf,sh=null==
Ae?void 0:null==(Hd=Ae[0])?void 0:null==(tf=Hd.endScreenVideoRenderer)?void 0:null==(Vf=tf.navigationEndpoint)?void 0:Vf.clickTrackingParams,Tg=g.qM(a);sh&&Tg&&(Tg.sessionData={itct:sh})}a.jd.currentVideoThumbnail&&(a.Z=cL(a.jd.currentVideoThumbnail));var gj,hj,th,Ug,zi,Vh=null==(gj=a.jd)?void 0:null==(hj=gj.contents)?void 0:null==(th=hj.twoColumnWatchNextResults)?void 0:null==(Ug=th.results)?void 0:null==(zi=Ug.results)?void 0:zi.contents;if(Vh&&Vh[1]){var Sd,ng,bf,Ai,$b=null==(Sd=Vh[1].videoSecondaryInfoRenderer)?
void 0:null==(ng=Sd.owner)?void 0:null==(bf=ng.videoOwnerRenderer)?void 0:null==(Ai=bf.thumbnail)?void 0:Ai.thumbnails;$b&&$b.length&&(a.profilePicture=$b[$b.length-1].url)}var ge=oz(b),pe,Wf=null==(pe=a.jd)?void 0:pe.onResponseReceivedEndpoints;if(Wf)for(var Jf=g.t(Wf),qe=Jf.next();!qe.done;qe=Jf.next()){var uh=qe.value;g.K(uh,rM)&&(a.GV=g.K(uh,rM));var Wh=g.K(uh,wza),og=void 0;a.K("web_key_moments_markers")&&(null==(og=Wh)?0:og.entityKeys)&&(a.vx=Wh.entityKeys,Wh.visibleOnLoadKeys&&(a.visibleOnLoadKeys=
Wh.visibleOnLoadKeys))}if(a.K("web_key_moments_markers")){var Pe=g.sM.getState().entities,Vg=g.AL("visibility_override","markersVisibilityOverrideEntity");var re=CL(Pe,"markersVisibilityOverrideEntity",Vg);a.ke=(null==re?void 0:re.videoId)===(a.videoId||ge)&&(null==re?0:re.visibilityOverrideMarkersKey)?re.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.u(a.ke))}if(!a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var Xh=g.K(a.jd.currentVideoEndpoint,
g.oM);if(null==Xh?0:Xh.playlistId)a.v1=Xh.playlistId}}};
kM=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
tM=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
vM=function(a){var b=a.fb,c=!!a.j&&a.j.fd,d=a.B,e=a.KM(),f=uM(a),h=a.XI,l=a.isOtf(),m=a.tK(),n=a.Xb,p=a.dj,q=new swa(d);if(d.Rd()||d.K("html5_logging_format_selection"))q.B=!0;q.kb=f;q.La=h&&d.I;q.dj=p;Wy("windows nt 5.1")&&!g.fJ&&(q.j=!0);if(f=e)f=g.IK(d)?Cxa(d):!1;f&&(q.ib=!0);b&&(q.j=!0,q.Lc=!0);l&&!d.K("html5_otf_prefer_vp9")&&(q.j=!0);"picasaweb"===d.playerStyle&&(l&&(q.j=!1),q.Ga=!1);n&&(q.j=!0);b=d.K("html5_ugc_vod_audio_51")&&!c;l=d.K("html5_ugc_live_audio_51")&&c;q.Xa=b||l;xF(d.D,yF.CHANNELS)&&
(d.K("html5_enable_aac51")&&(q.Aa=!0),d.K("html5_enable_ac3")&&(q.J=!0),d.K("html5_enable_eac3")&&(q.T=!0),d.K("html5_enable_ac3_gapless")&&(q.Qa=!0));d.K("html5_block_8k_hfr")&&(q.tb=!0);q.ea=g.gJ(d.experiments,"html5_max_selectable_quality_ordinal");q.Z=g.gJ(d.experiments,"html5_min_selectable_quality_ordinal");cK&&(q.Oc=480);if(c||e)q.Ga=!1;q.Pb=!1;c=WI(d,q.u);0<c&&2160>c&&(tI()||d.K("html5_format_hybridization"))&&(q.u.supportsChangeType=+tI(),q.C=c);2160<=c&&(q.Ja=!0);rwa()&&(q.u.serveVp9OverAv1IfHigherRes=
0,q.Wc=!1);q.tK=m;q.fb=g.oB||hz()&&!m?!1:!0;q.oa=d.K("html5_format_hybridization");q.jc=d.K("html5_disable_encrypted_vp9_live_non_2k_4k");Zy()&&a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(q.J=!0,q.T=!0);a.fb&&a.isAd()&&(a.sA&&(q.ya=a.sA),a.rA&&(q.I=a.rA));q.Ya=a.isLivePlayback&&a.Pl()&&a.B.K("html5_drm_live_audio_51");q.Tb=a.WI;return a.jm=q};
yza=function(a){eF("drm_pb_s",void 0,a.Qa);a.Ya||a.j&&tF(a.j);var b={};a.j&&(b=Nta(a.Tw,vM(a),a.B.D,a.j,function(c){return a.ma("ctmp","fmtflt",c)},!0));
b=new nJ(b,a.B,a.PR,xza(a),function(c,d){a.xa(c,d)});
g.E(a,b);a.Rn=!1;a.La=!0;Fwa(b,function(c){eF("drm_pb_f",void 0,a.Qa);for(var d=g.t(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Ya=a.Ya;e.ox=a.ox;e.nx=a.nx;break;case "widevine":e.rl=a.rl}a.Un=c;if(0<a.Un.length&&(a.J=a.Un[0],a.B.Rd())){c={};d=g.t(Object.entries(a.J.j));for(e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.xa("drmProbe",c)}bM(a)})};
iza=function(a,b){if(0===b.length||!jza(a))return null;fM(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(RI=!0);var c=a.Pd;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Se,h=a.B,l=a.videoId,m=Wva(b);if(e||f){h=new FI("",h.experiments,!0,l);h.u=!f;h.fd=!0;h.isManifestless=!0;h.isLive=!f;h.Se=f;l=g.t(b);for(d=l.next();!d.done;d=l.next()){var n=d.value;d=II(n,c);e=gF(n);e=KI(e.Sx||n.url||"",e.Zz,e.s);(m=e.get("id"))&&m.includes("%7E")&&(h.oa=!0);m=Number(n.targetDurationSec||5);n=Number(n.maxDvrDurationSec||
14400);var p=Number(e.get("mindsq")||e.get("min_sq")||"0"),q=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.Ge=h.Ge||p;h.Yg=h.Yg||q;var r=!ZH(d.mimeType);e&&EI(h,new qH(e,d,{Xj:m,Dm:r,Fo:n,Ge:p,Yg:q,iz:300,Se:f}))}h.B=!!h.Ge&&!!h.Yg&&isFinite(h.Yg);c=h}else if("FORMAT_STREAM_TYPE_OTF"===m){d=void 0===d?0:d;f=new FI("",h.experiments,!1,l);f.duration=d||0;h=g.t(b);for(l=h.next();!l.done;l=h.next())l=l.value,d=II(l,c,f.duration),e=gF(l),(e=KI(e.Sx||l.url||"",e.Zz,e.s))&&("FORMAT_STREAM_TYPE_OTF"===
d.streamType?EI(f,new rH(e,d,"sq/0")):EI(f,new BH(e,d,WG(l.initRange),WG(l.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new FI("",h.experiments,!1,l);f.duration=d||0;h=g.t(b);for(l=h.next();!l.done;l=h.next())m=l.value,l=II(m,c,f.duration),d=WG(m.initRange),e=WG(m.indexRange),n=gF(m),(m=KI(n.Sx||m.url||"",n.Zz,n.s))&&EI(f,new BH(m,l,d,e));c=f}h=gF(b[0]);b=h.Sx;f=h.Zz;h=h.s;b&&f&&h&&(b=KI(b,f,h),b=kza(a,b),isFinite(b)&&(a.rd=!0));b=a.isLivePlayback&&!a.Se&&!a.rd&&!a.isPremiere;a.K("html5_live_head_playable")&&
!hM(a)&&b&&a.xa("missingLiveHeadPlayable",{});return c};
kza=function(a,b){var c=NaN;a.K("html5_add_maxdsq_check")&&(c=Number(b.get("maxdsq")));return c||Number(b.get("max_sq"))||Infinity};
eM=function(a){return Zy()?!wM(a):az()?!(!a.Ya||!a.K("html5_enable_safari_fairplay")):!1};
wM=function(a){return a.K("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
xza=function(a){return a.K("html5_disable_tvos_widevine")||!a.useCobaltWidevine?!1:Zy()?wM(a):!1};
jza=function(a){return!a.K("html5_manifestless_unplugged")&&a.isLivePlayback&&g.FK(a.B)&&g.tK(a.B)?!1:!eM(a)};
jM=function(a){return!(!a.j||!a.j.isManifestless)};
zza=function(a){return Wta({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,Oo:a.Oo,defraggedFromSubfragments:a.defraggedFromSubfragments,isManifestless:jM(a),BP:xM})};
yM=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=OI(a.j)?21530001:a.liveExperimentalContentId};
gza=function(a){return Zy()&&wM(a)?!1:eM(a)&&g.FK(a.B)&&!a.isLivePlayback||!uJ()||a.UI?!0:!1};
Bza=function(a){a.La=!0;a.Qg=!1;if(hza(a))g.Iya(a.videoId).then(function(c){Aza(a,c)}).then(function(){bM(a)});
else{TD(a.tb)||g.DD(new g.bA("DASH MPD Origin invalid: ",a.tb));var b=a.tb;b=g.Zi(b,{mpd_version:g.gJ(a.B.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Zi(b,{pacing:0}));dwa(b,a.B.experiments,a.isLivePlayback).then(function(c){a.isDisposed()||(iM(a,c,!0),eF("mrc",void 0,a.Qa),bM(a))},function(c){a.isDisposed()||(a.La=!1,a.ma("dataloaderror",new PK("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
eF("mrs",void 0,a.Qa)}};
Aza=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e={},f=g.t(a.playerResponse.streamingData.adaptiveFormats),h=f.next();!h.done;e={yp:e.yp},h=f.next())e.yp=h.value,c.includes(e.yp.itag)&&(e.yp=Object.assign({},e.yp),e.yp.url=b.find(function(l){return function(m){return m.itag===l.yp.itag}}(e)).url,e.yp.signatureCipher="",d.push(e.yp));
b=iza(a,d);iM(a,b);a.xa("dlr",{})}else a.xa("offsdm",{cotn:a.gK?a.gK.cotn:"0",cpn:a.clientPlaybackNonce})};
bM=function(a){a.isDisposed()||(a.La=!1,a.ma("dataloaded"))};
iM=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.E(a,b);b.Ge=a.Ge;b.Yg=a.Yg;b.jc=a.jc;b.Ld=a.Ld;b.Od=a.Od;a.Cx&&(b.Ga=new MG(a.Cx));Cza(a)&&a.Ja.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.mm=Number(d[d.indexOf("manifest_duration")+1]));b.u&&(b.subscribe("clienttemp",a.xa,a),c?b.subscribe("refresh",a.gW,a):b.subscribe("cuepointsadded",a.SS,a));tF(b)&&(a.Rn=!0);b.isPremiere=a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
Hza=function(a,b){if(a.isDisposed())return Ny();a.C=null;a.ib=null;a.Nd=null;fM(a,"html5_high_res_logging_always")&&(a.B.If=!0);return Dza(a,b).then(void 0,function(){return Eza(a,b)}).then(void 0,function(){return Fza(a)}).then(void 0,function(){return Gza(a)})};
Dza=function(a,b){var c=b||gza(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.xa("skipDash",{dm:!!a.j,air:b,dd:a.UI,mss:uJ(),"3pp":a.isExternallyHostedPodcast}),Ny();uM(a)&&gwa(a.j,a.isLivePlayback);fM(a,"html5_enable_cobalt_experimental_vp9_decoder")&&Twa(a.B.D);return Oy().then(function(){return Pta(a.Tw,vM(a),a.B.D,a.j,a.J,function(d){return a.ma("ctmp","fmtflt",d)},a.hK).then(function(d){Iza(a,d);
a.Tw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.jm&&a.xa("av1",a.jm.u)})})};
Eza=function(a,b){if(b&&a.hlsvp)return Ny();if(a.hlsFormats){b=gM(a.hlsFormats);var c;if((null==(c=a.jm)?0:c.B)&&b){c=[];for(var d=g.t(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.xa("hlsfmt",{itags:c.join(".")})}a.tx=Kxa(a.B,b);c=a.clientPlaybackNonce;var f,h,l,m;return Pxa(a.B,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Vd,c,function(n){return a.ma("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.t(n),v=r.next();!v.done;v=r.next()){v=v.value;
var x=void 0;q.push(null==(x=v.rh())?void 0:x.itag);var z=x=void 0;(null==(x=v.rh())?void 0:null==(z=x.audio)?void 0:z.numChannels)>p&&(p=v.rh().audio.numChannels)}2<p&&a.xa("hlschl",{mn:p});var B;(null==(B=a.jm)?0:B.B)&&a.xa("hlsfmtaf",{itags:q.join(".")});var F;if(a.K("html5_enable_vp9_fairplay")&&(null==(F=a.J)?0:dJ(F)))for(a.xa("drm",{sbdlfbk:1}),p=g.t(a.Un),q=p.next();!q.done;q=p.next())if(q=q.value,cJ(q)){a.J=q;break}zM(a,n)})}return Ny()};
Fza=function(a){if(a.isExternallyHostedPodcast&&a.Jf){var b=gM(a.Jf);return b[0]?Sxa(a.B,b[0]).then(function(c){zM(a,c)}):Ny()}return a.ol&&a.dV?Rxa(a.B,a.isAd(),a.ol).then(function(c){zM(a,c)}):Ny()};
Gza=function(a){if(a.isExternallyHostedPodcast)return Ny();var b=gM(a.Jf,a.PJ);if(a.hlsvp){var c=Tya(a.hlsvp,a.clientPlaybackNonce,a.Vd);b.push(c)}return Qxa(a.B,a.isAd(),b,Jza(a)).then(function(d){zM(a,d)})};
Iza=function(a,b){a.C=b;if(a.C){b=g.t(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.hS[d]=c.id)}}b=a.getAvailableAudioTracks();b=b.concat(a.wm);for(c=0;c<a.KK.length;c++){d=a.KK[c];for(var e=0;e<b.length;e++){var f=b[e],h=f.Jc.id==d.audioTrackId;if(f.Jc.isDefault&&c==a.LS||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.B=a.captionTracks[d.defaultCaptionTrackIndex]);
void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);f.u=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}}if(a.J&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=LH(a.C.videoInfos[0]),b!=("fairplay"==a.J.flavor)))for(c=g.t(a.Un),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.J=d;break}};
zM=function(a,b){a.Nd=b;Iza(a,new oF(g.Yl(a.Nd,function(c){return c.rh()})))};
Jza=function(a){var b={cpn:a.clientPlaybackNonce,c:a.B.j.c,cver:a.B.j.cver};a.xx&&(b.ptk=a.xx,b.oid=a.KX,b.ptchn=a.xX,b.pltype=a.fY,a.lx&&(b.m=a.lx));return b};
g.AM=function(a){return eM(a)&&a.Ya?(a={},a.fairplay="https://web.archive.org/web/20230426095903/https://youtube.com/api/drm/fps?ek=uninitialized",a):a.u&&a.u.Pd||null};
Kza=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.gE(b.text):a.paidContentOverlayText};
BM=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?Se(b.durationMs):a.paidContentOverlayDurationMs};
CM=function(a){var b="";if(a.eK)return a.eK;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.rd?"window":"live");a.Se&&(b="post");return b};
g.DM=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
Lza=function(a){return!!a.Ui||!!a.cN||!!a.zx||!!a.Ax||a.nS||a.ea.focEnabled||a.ea.rmktEnabled};
EM=function(a){return!!(a.tb||a.Jf||a.ol||a.hlsvp||a.Yu())};
aM=function(a){if(a.K("html5_onesie")&&a.errorCode)return!1;var b=g.rb(a.Ja,"ypc");a.ypcPreview&&(b=!1);return a.De()&&!a.La&&(EM(a)||g.rb(a.Ja,"heartbeat")||b)};
gM=function(a,b){a=ry(a);var c={};if(b){b=g.t(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.t(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};
pza=function(a,b){a.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")||(a.showShareButton=!!b);var c,d,e=(null==(c=g.K(b,g.mM))?void 0:c.navigationEndpoint)||(null==(d=g.K(b,g.mM))?void 0:d.command);e&&(a.ao=!!g.K(e,Mza))};
Vya=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.kf=c);if(a.kf){a.embeddedPlayerConfig=a.kf.embeddedPlayerConfig||null;if(c=a.kf.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.kf.embedPreview){c=c.thumbnailPreviewRenderer;d=c.controlBgHtml;a.K("embeds_web_enable_video_data_refactoring_embedded_player_response")||
(null!=d?(a.Wc=d,a.D=!0):(a.Wc="",a.D=!1));if(d=c.defaultThumbnail)a.Z=cL(d),a.sampledThumbnailColor=d.sampledThumbnailColor;(d=g.K(null==c?void 0:c.videoDetails,Nza))&&tza(a,b,d);d=g.K(null==c?void 0:c.videoDetails,g.Oza);a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")||(a.Qk=!!c.addToWatchLaterButton);pza(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.K(null==(e=a.kf)?void 0:null==(f=e.embedPreview)?void 0:null==(h=
f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.oM))Wxa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=Se(c.videoDurationSeconds));c.webPlayerActionsPorting&&kya(a,c.webPlayerActionsPorting);if(e=g.K(null==c?void 0:c.playlist,Pza)){a.bl=!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.gE(c.shortBylineText):
"";var n=c.title?g.gE(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.D:!1,dni_color:l===h?a.Wc:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.gE(e.titleText));e.shortBylineText&&(b.author=g.gE(e.shortBylineText));a.kS=b}var p,q,r;if(b=g.K(null==(p=a.kf)?void 0:null==(q=p.embedPreview)?void 0:null==
(r=q.thumbnailPreviewRenderer)?void 0:r.infoPanel,sza)){a.SJ=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.uf=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.lm=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.kf.previewPlayabilityStatus){if(a.yx=a.kf.previewPlayabilityStatus,p=a.yx,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=Uxa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.dJ=
r;if(b=r.reason)a.errorReason=g.gE(b);if(r=r.subreason)a.Gm=g.gE(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 v;(null==q?0:null==(v=q.playerKavRenderer)?0:v.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.kf.playabilityStatus&&(a.ym=a.kf.playabilityStatus,Qza(a)&&(a.errorDetail="0",a.ym&&((v=
a.ym.embeddedPlayerErrorMessageRenderer)?a.dJ=g.K(v,Rza):a.errorReason=a.ym.reason||null)));(v=a.kf.attestation)&&dya(a,v);(v=a.kf.permissions)&&v.allowImaMonetization&&(a.allowImaMonetization=!0)}};
tza=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.K(null==(e=g.K(null==c?void 0:c.channelThumbnailEndpoint,Sza))?void 0:e.urlEndpoint,g.pM))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.K(e,Tza)){if(d=e.title)b.title=g.gE(d);if(e=e.subtitle)b.subtitle=g.gE(e)}if(c=c.expandedRenderer)if(c=g.K(c,Uza)){if(e=c.title)b.expanded_title=g.gE(e);if(e=c.subtitle)b.expanded_subtitle=g.gE(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.K(c,g.FM),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.ll=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.TI=b.toggledServiceEndpoint||null,a.RI=b.defaultServiceEndpoint||
null):(a.TI=b.defaultServiceEndpoint||null,a.RI=b.toggledServiceEndpoint||null)))}};
g.GM=function(a){return hM(a)&&!a.allowLiveDvr};
HM=function(a){return hM(a)&&a.allowLiveDvr};
hM=function(a){return a.K("html5_live_head_playable")&&jM(a)?a.isLiveHeadPlayable:a.isLivePlayback};
g.IM=function(a){return!!a.j&&Nva(a.j)};
g.JM=function(a){return!!a.j&&Ova(a.j)};
Cza=function(a){return a.KM()||g.KM(a)};
g.LM=function(a){return!!a.j&&Pva(a.j)};
g.KM=function(a){return!!a.j&&Qva(a.j)};
g.Vza=function(a){if(a.lQ)return null;var b=a.nV;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.Wza=function(a){return a.lQ?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.MM=function(a){return a.K("enable_wn_infocards")};
g.NM=function(a){var b,c,d,e;return(null==(b=a.playerResponse)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer)||(null==(d=a.jd)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
g.OM=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.t(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};
PM=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.B.Ga};
g.QM=function(a){return"shortspage"===PM(a)};
RM=function(a){if(a.isAd()&&a.videoId!=a.B.je)return a.B.je};
SM=function(a){return a.Xl||"detailpage"==PM(a)||"shortspage"==PM(a)||a.mutedAutoplay};
UM=function(a){var b=a.K("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==PM(a)?a.kp:SM(a)?"detailpage"==PM(a)||"shortspage"==PM(a)?a.isAutonav||0<a.Dc:b||"17_8"!==a.adFormat||a.isAutonav||g.GK(a.B)||a.kp?a.aJ?!1:!a.B.bl&&!a.B.Qg&&g.fK(a.B)&&a.K("embeds_web_enable_autoplay_not_supported_logging_fix")?!1:!b&&"adunit"==PM(a)&&a.Ui?!1:!0:!1:TM(a)&&a.K("embeds_web_enable_log_splay_as_autoplay")&&g.fK(a.B)?!0:!1};
TM=function(a){return a.K("embeds_web_enable_scripted_playback_blocked_logging_fix")&&a.aJ?!1:a.AD};
g.VM=function(a){return a.oauthToken||a.B.Zi};
Xza=function(a){var b=1,c=g.gJ(a.B.experiments,"html5_default_ad_gain");c&&a.isAd()&&(b=c);var d;c=(null==(d=a.I)?void 0:d.audio.u)||a.Zi;if(a.K("html5_stateful_audio_normalization")&&null!=c){if(a.RR)return Math.min(1,Math.pow(10,-a.jE/20))||b;d=0;a.K("html5_diff_bias_over_ad_content")&&(d=a.isAd()?0:3);c-=Math.min(0,d+Math.max(a.B.jm,g.gJ(a.B.experiments,"html5_stateful_audio_min_adjustment_value")));a.jE=c}return Math.min(1,Math.pow(10,-c/20))||b};
uM=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.rJ(a.B)&&"MUSIC"===a.B.j.ctheme;!a.hj&&(g.nK(a.B)||c)&&b.includes(a.musicVideoType)&&(a.hj=!0);if(b=g.Yy())b=/Starboard\/([0-9]+)/.exec(g.hc()),b=10>(b?parseInt(b[1],10):NaN);c=a.B;c=("TVHTML5_CAST"===g.rJ(c)||"TVHTML5"===g.rJ(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.B.j.ctheme;var d;if(d=!a.hj)c||(c=a.B,c="TVHTML5"===g.rJ(c)&&c.j.cver.startsWith("7")),
d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.K("cast_prefer_audio_only_for_atv_and_uploads")||a.K("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c)&&(a.hj=!0);return a.B.deviceIsAudioOnly||a.hj&&a.B.I};
Yza=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
WM=function(a){return!(!a.xm||!a.B.I)&&a.Yu()};
Zza=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
XM=function(a){if(a.mS||a.cotn||!a.j||a.j.isOtf)return!1;if(a.K("html5_use_sabr_requests_for_debugging"))return!0;var b=!a.j.fd&&!a.Pl(),c=b&&xM&&a.K("html5_enable_sabr_vod_streaming_xhr");b=b&&!xM&&a.K("html5_enable_sabr_vod_non_streaming_xhr");(c=c||b)&&!a.Cx&&a.xa("sabr",{loc:"m"});return c&&!!a.Cx};
YM=function(a){return a.lS&&XM(a)};
hza=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.ML(b);return b&&!a.xm};
g.ZM=function(a){if(!a.j||!a.u||!a.I)return!1;var b=a.j.j;return!!b[a.u.id]&&GF(b[a.u.id].u.j)&&!!b[a.I.id]&&GF(b[a.I.id].u.j)};
$M=function(a){return a.yx?["OK","LIVE_STREAM_OFFLINE"].includes(a.yx.status):!0};
Qza=function(a){return(a=a.ym)&&a.showError?a.showError:!1};
fM=function(a,b){return a.K(b)?!0:(a.fflags||"").includes(b+"=true")};
$za=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
$ya=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.Ax=new yya(b));if(b=b.video_masthead_ad_quartile_urls)a.cN=b.quartile_0_url,a.bZ=b.quartile_25_url,a.cZ=b.quartile_50_url,a.oQ=b.quartile_75_url,a.aZ=b.quartile_100_url,a.zx=b.quartile_0_urls,a.yN=b.quartile_25_urls,a.vO=b.quartile_50_urls,a.FO=b.quartile_75_urls,a.jN=b.quartile_100_urls};
Zya=function(a){var b={};a=g.t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
eya=function(a){if(a){if(Lsa(a))return a;a=Msa(a);if(Lsa(a,!0))return a}return""};
g.aAa=function(a){return a.captionsLanguagePreference||a.B.captionsLanguagePreference||g.DM(a,"yt:cc_default_lang")||a.B.Si};
aN=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.qM=function(a){var b;return a.Ow||(null==(b=a.suggestions)?void 0:b[0])||null};
bN=function(a,b){this.j=a;this.oa=b||{};this.J=String(Math.floor(1E9*Math.random()));this.I={};this.Z=this.ea=0};
bAa=function(a){return cN(a)&&1==a.getPlayerState(2)};
cN=function(a){a=a.Rc();return void 0!==a&&2==a.getPlayerType()};
dN=function(a){a=a.V();return sK(a)&&!g.FK(a)&&"desktop-polymer"==a.playerStyle};
eN=function(a,b){var c=a.V();g.kK(c)||"3"!=c.controlsType||a.jb().SD(b)};
gN=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=fN(a)};
fN=function(a){return a+(":"+(Nq.getInstance().j++).toString(36))};
hN=function(a){this.Y=a};
cAa=function(a,b){if(0===b||1===b&&(a.Y.u&&g.BA?0:a.Y.u||g.FK(a.Y)||g.tK(a.Y)||uK(a.Y)||!g.BA))return!0;a=g.kf("video-ads");return null!=a&&"none"!==Km(a,"display")};
dAa=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}};
iN=function(){g.dE.call(this);var a=this;this.j={};g.bb(this,function(){for(var b=g.t(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
kN=function(){if(null===jN){jN=new iN;am(tp).u="b";var a=am(tp),b="h"==mp(a)||"b"==mp(a),c=!(fm(),!1);b&&c&&(a.D=!0,a.I=new Kja)}return jN};
eAa=function(a,b,c){a.j[b]=c};
fAa=function(){};
lN=function(a,b,c){this.j=a;this.D=b;this.B=c;this.u=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
mN=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
nN=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
oN=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||[]],["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",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?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||[]]])};
gAa=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 "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}};
hAa=function(a){return(a=a.pings)?Object.fromEntries(oN(a)):{}};
pN=function(a,b,c,d,e){bN.call(this,a,hAa(a));(a=c&&c.kind)||(a="AD_PLACEMENT_KIND_UNKNOWN");this.Qa=c;this.isPostroll="AD_PLACEMENT_KIND_END"===a;this.B=new lN(0,[]);this.Ga=null;this.C={};this.Aa=null;this.u=0;this.T=null;this.ya=e;this.La=null;c=this.j.skipOffsetMilliseconds||0;0<c&&(this.Aa=c);this.C=qy(this.j.playerVars||"");this.T=this.j.externalVideoId||null;this.u=lz(this.u,this.C.length_seconds);this.ya&&this.T&&(this.La=this.ya(this.T));if(this.C.cta_conversion_urls)try{this.C.cta_conversion_urls=
JSON.parse(this.C.cta_conversion_urls)}catch(f){g.CD(f)}this.Ga=this.j.clickthroughEndpoint||null;this.B=new lN(0,[this.u])};
iAa=function(a){var b=a.C||{};1<a.B.u&&(b.slot_pos=a.B.j);b.autoplay="1";return b};
qN=function(){this.j=[];this.u=0};
rN=function(a,b){b&&a.j.push(b)};
sN=function(a){if(!a)return[];var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=g.t(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())b.push({baseUrl:d.value.baseUrl})}return b};
tN=function(a){if(!a)return[];var b=[];a.forEach(function(c){c.command.loggingUrls.forEach(function(d){b.push({baseUrl:d.baseUrl,offsetMilliseconds:c.adVideoOffset.milliseconds})})});
return b};
uN=function(a){return a&&a.adVideoOffset&&a.adVideoOffset.percent||0};
vN=function(a){return"AD_VIDEO_PROGRESS_KIND_PERCENT"==a.adVideoOffset.kind};
ZAa=function(a){a=a.playbackCommands;if(!a)return{};var b={};b.impression=sN(a.impressionCommands)||[];b.error=sN(a.errorCommands)||[];b.mute=sN(a.muteCommands)||[];b.unmute=sN(a.unmuteCommands)||[];b.pause=sN(a.pauseCommands)||[];b.rewind=sN(a.rewindCommands)||[];b.resume=sN(a.resumeCommands)||[];b.skip=sN(a.skipCommands)||[];b.close=sN(a.closeCommands)||[];b.clickthrough=sN(a.clickthroughCommands)||[];b.fullscreen=sN(a.fullscreenCommands)||[];b.active_view_viewable=sN(a.activeViewViewableCommands)||
[];b.active_view_measurable=sN(a.activeViewMeasurableCommands)||[];b.active_view_fully_viewable_audible_half_duration=sN(a.activeViewFullyViewableAudibleHalfDurationCommands)||[];a.activeViewTracking&&(b.audio_audible=sN(a.activeViewTracking.activeViewAudioAudibleCommands)||[],b.audio_measurable=sN(a.activeViewTracking.activeViewAudioMeasurableCommands)||[]);b.end_fullscreen=sN(a.endFullscreenCommands)||[];b.channel_clickthrough=sN(a.channelClickthroughCommands)||[];b.abandon=sN(a.abandonCommands)||
[];b.progress=tN(a.progressCommands.filter(function(c){return"AD_VIDEO_PROGRESS_KIND_MILLISECONDS"==c.adVideoOffset.kind}));
b.start=tN(a.progressCommands.filter(function(c){return vN(c)&&Ee(uN(c),0)}));
b.first_quartile=tN(a.progressCommands.filter(function(c){return vN(c)&&Ee(uN(c),.25)}));
b.midpoint=tN(a.progressCommands.filter(function(c){return vN(c)&&Ee(uN(c),.5)}));
b.third_quartile=tN(a.progressCommands.filter(function(c){return vN(c)&&Ee(uN(c),.75)}));
b.complete=tN(a.progressCommands.filter(function(c){return vN(c)&&Ee(uN(c),1)}));
return b};
yN=function(a){bN.call(this,a,ZAa(a));a.questions&&a.questions.reduce(function(b,c){return(c=g.K(c,wN)||g.K(c,xN))?b+(c.surveyAdQuestionCommon.durationMilliseconds||0)/1E3:b},0)};
$Aa=function(a,b,c,d){this.id=b;this.C=d.jf;b=a.config&&a.config.adPlacementConfig;if(!b)throw Error("Malformed AdPlacementRenderer: missing AdPlacementConfig");var e=a.renderer&&a.renderer.adBreakServiceRenderer&&a.renderer.adBreakServiceRenderer||{};this.B=(this.D=e.getAdBreakUrl||"")?0:2;d.j=parseInt(e.prefetchMilliseconds,10)||0;d.visible=!b.hideCueRangeMarker;var f=Rsa(b,d);if(null==f)d=new aE(b,new iq(-1,-1),!1,"adcuerange:invalid",3),d.u=!0,d=[null,d];else{e=":"+(Nq.getInstance().j++).toString(36);
var h=d.daiEnabled||d.jf;f=new aE(b,f,d.visible&&!h,"adcuerange:"+e,3);h=null;if(d.jf||0<d.j)if(d=Rsa(b,d,!0))h=new aE(b,d,!1,"prefetch:"+e,5),f.C=h,h.C=f;d=[h,f]}this.j=d[1];this.u=c;this.I=!1;this.T={};this.J=void 0===a.driftRecoveryMs?null:parseInt(a.driftRecoveryMs,10)};
zN=function(a){return"AD_PLACEMENT_KIND_MILLISECONDS"==a.j.j||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==a.j.j};
BN=function(a,b){var c={};dBa(a,c,b);fBa(c);c.LACT=AN(function(){return NC().toString()});
c.VIS=AN(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=AN(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
rBa=function(a,b){var c={};if(b)return c;if(!a.kind)return g.CD(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.CD(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=AN(Ld(Math.round(Se(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=AN(Ld("0"));return c};
AN=function(a){return{toString:function(){return a()}}};
CBa=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.hd(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};
dBa=function(a,b,c){b.CPN=AN(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.DD(Error("Video data is null.")),d=null);return d});
b.AD_MT=AN(function(){return Math.round(Math.max(0,1E3*(null!=c?c:a.getCurrentTime(2,!1)))).toString()});
b.MT=AN(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=AN(function(){return a.jb().Ij().height.toString()});
b.P_W=AN(function(){return a.jb().Ij().width.toString()});
b.PV_H=AN(function(){return a.jb().getVideoContentRect().height.toString()});
b.PV_W=AN(function(){return a.jb().getVideoContentRect().width.toString()})};
fBa=function(a){a.CONN=AN(Ld("0"));a.WT=AN(function(){return Date.now().toString()})};
DBa=function(a){var b=Object.assign({},{});b.MIDROLL_POS=zN(a)?AN(Ld(Math.round(a.j.start/1E3).toString())):AN(Ld("0"));return b};
EBa=function(a){var b={};b.SLOT_POS=AN(Ld(a.B.j.toString()));return b};
FBa=function(a){var b=a&&g.Vb(a,"load_timeout")?"402":"400",c={};return c.YT_ERROR_CODE=(3).toString(),c.ERRORCODE=b,c.ERROR_MSG=a,c};
CN=function(a){for(var b={},c=g.t(GBa),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d];e&&(b[d]=e.toString())}return b};
DN=function(){var a={};Object.assign.apply(Object,[a].concat(g.u(g.ya.apply(0,arguments))));return a};
EN=function(){};
HBa=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,v,x;g.A(function(z){switch(z.j){case 1:e=!!b.scrubReferrer;f=g.xp(b.baseUrl,CBa(c,e,d));h={};if(!b.headers){z.Ka(2);break}l=g.t(b.headers);m=l.next();case 3:if(m.done){z.Ka(5);break}n=m.value;switch(n.headerType){case "VISITOR_ID":g.ey("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.ey("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ey("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]=g.ey("EOM_VISITOR_DATA"));break;case "USER_AUTH":return z.Ka(6);case "PLUS_PAGE_ID":(p=
a.B())&&(h["X-Goog-PageId"]=p);break;case "AUTH_USER":q=a.u();a.K("move_vss_away_from_login_info_cookie")&&q&&(h["X-Goog-AuthUser"]=q,h["X-Yt-Auth-Test"]="test");break;case "ATTRIBUTION_REPORTING_ELIGIBLE":h["Attribution-Reporting-Eligible"]="event-source"}z.Ka(4);break;case 6:r=a.j();if(!r.j){v=r.getValue();z.Ka(8);break}return g.y(z,r.j,9);case 9:v=z.u;case 8:(x=v)&&(h.Authorization="Bearer "+x);z.Ka(4);break;case 4:m=l.next();z.Ka(3);break;case 5:"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in
h&&delete h["X-Goog-Visitor-Id"];case 2:g.ZB(f,void 0,e,0!==Object.keys(h).length?h:void 0,"",!0),g.oa(z)}})};
FN=function(a){this.Dl=a};
JBa=function(a,b){var c=void 0===c?!0:c;var d=g.ey("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.Ui(window.location.href);e&&d.push(e);e=g.Ui(a);if(g.rb(d,e)||!e&&Rb(a,"/"))if(g.gy("autoescape_tempdata_url")&&(d=document.createElement("a"),g.xe(d,a),a=d.href),a&&(a=tfa(a),d=a.indexOf("#"),a=0>d?a:a.slice(0,d)))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.FE()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&IBa(a,b,f)}else IBa(a,b)};
IBa=function(a,b,c){a="ST-"+Re(a).toString(36);b=b?g.Yi(b):"";c=c||5;iz()&&g.Ry(a,b,c)};
g.KBa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Zi(a,b)+c;var e=void 0===e?xga:e;e=yga(a,e)||Hba;e=Zj(e);void 0!==e&&(d.href=e)};
g.GN=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.ey("EVENT_ID");d&&(b.ei||(b.ei=d));b&&JBa(a,b);c||((window.ytspf||{}).enabled?spf.navigate(a):g.KBa(a))};
g.IN=function(a,b,c,d){c&&JBa(a,c);c=g.he(a);c=g.be(c);a!=c&&ny(Error("Unsafe window.open URL: "+a));a=c;b=b||Re(a).toString(36);try{var e;if("2"===(null==(e=qy(a))?void 0:e.ase)){ny(Error("Queries for attributionsrc label registration when opening a window."));a=HN(a);window.open(a,b,"attributionsrc");return}}catch(h){g.ly(h)}if(d){a=HN(a);try{var f=encodeURIComponent(d);window.open(a,b,"attributionsrc="+f);return}catch(h){g.ly(h)}}window.open(a,b)};
HN=function(a){if("www.googleadservices.com"!==g.Ui(a))return a;var b,c;return"function"===typeof(null==(b=document.featurePolicy)?void 0:b.features)&&(null==(c=document.featurePolicy)?0:c.features().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
JN=function(a){this.ou=a};
MBa=function(a,b,c,d,e,f){e=void 0===e?new JN(new FN(d.getVideoData(1))):e;f=void 0===f?!1:f;g.C.call(this);this.ad=a;this.C=b;this.macros=c;this.u=d;this.Wl=e;this.daiEnabled=f;this.j={YI:.25,YJ:.5,aK:.75};this.B=null;this.progressPings=Array.from(this.ad.oa.progress||[]);this.progressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
this.unmutedProgressPings=Array.from(this.ad.oa.unmuted_progress||[]);this.unmutedProgressPings.sort(function(h,l){return h.offsetMilliseconds-l.offsetMilliseconds});
LBa(nN(a.j.pings))};
NN=function(a,b){KN(a)||(a.daiEnabled?(LN(a,0,!0),NBa(a,b,b)):(LN(a,0,!0),OBa(a,0,0,!0)),MN(a,"complete"))};
LN=function(a,b,c){for(c=void 0===c?!1:c;a.ad.ea<a.progressPings.length;){var d=ON(a,"progress"),e=a.progressPings[a.ad.ea];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&PN(a,e,d),a.ad.ea++;else break}};
PBa=function(a,b,c){for(c=void 0===c?!1:c;a.ad.Z<a.unmutedProgressPings.length;){var d=ON(a,"unmuted_progress"),e=a.unmutedProgressPings[a.ad.Z];if(e.offsetMilliseconds<=1E3*b||c)(e=e.baseUrl)&&PN(a,e,d),a.ad.Z++;else break}};
OBa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.YI||d)&&MN(a,"first_quartile");(b>=c*a.j.YJ||d)&&MN(a,"midpoint");(b>=c*a.j.aK||d)&&MN(a,"third_quartile")};
QBa=function(a,b,c,d){d=void 0===d?!1:d;(b>=c*a.j.YI||d)&&MN(a,"unmuted_first_quartile");(b>=c*a.j.YJ||d)&&MN(a,"unmuted_midpoint");(b>=c*a.j.aK||d)&&MN(a,"unmuted_third_quartile")};
QN=function(a,b,c,d){if(null==a.B){if(c<d||1<c-d)return}else if(a.B>d||d>c)return;MN(a,b)};
NBa=function(a,b,c){if(0<c&&0<b){var d=a.u.Cb(a.u.getPresentingPlayerType());g.S(d,16)||g.S(d,32)||(QN(a,"first_quartile",b,c*a.j.YI),QN(a,"midpoint",b,c*a.j.YJ),QN(a,"third_quartile",b,c*a.j.aK))}a.B=b};
RN=function(a,b){for(var c=ON(a,b),d=g.t(a.ad.oa[b]||[]),e=d.next();!e.done;e=d.next())(e=e.value.baseUrl)&&PN(a,e,c);a.ad.I[b]=!0};
MN=function(a,b){a.ad.I.hasOwnProperty(b)||RN(a,b)};
SN=function(a,b){return a.ad.I.hasOwnProperty(b)};
PN=function(a,b,c){for(var d=a.Wl,e=d.send,f={},h=BN(a.u),l=g.t(Object.keys(h)),m=l.next();!m.done;m=l.next())m=m.value,f[m]=h[m].toString();if(h=a.u.getVideoData(2))f.AD_CPN=h.clientPlaybackNonce;a=Object.assign(f,a.macros);e.call(d,b,a,c)};
ON=function(a,b){var c=a.C;a=a.ad;if(a.D())if(b=RBa(b),null==b)c={};else{var d;(d=a.Ja()())||(d=(d=c.F)&&d.Rc?(d=d.Rc())&&2==d.getPlayerType()?TN(d):null:null);d?(c={opt_adElement:d,opt_fullscreen:c.F.isFullscreen()},c=wp(b,a.J,c)):c={}}else c={};return c?Object.assign({},c):{}};
KN=function(a){return a.daiEnabled&&!SN(a,"impression")};
UN=function(a){return a.daiEnabled&&SN(a,"seek")};
VN=function(a,b){a.daiEnabled?RN(a,b):MN(a,b)};
g.WN=function(a,b){this.state=a;this.Hv=b};
XN=function(a,b){return g.S(a.state,b)&&!g.S(a.Hv,b)?1:!g.S(a.state,b)&&g.S(a.Hv,b)?-1:0};
g.YN=function(a,b){return 0<XN(a,b)};
ZN=function(a,b,c,d,e,f){f=void 0===f?0:f;g.dE.call(this);this.F=a;this.Za=d;this.j=e;this.j.j[b.J]=this;this.j.subscribe("adactiveviewmeasurable",this.cX,this);this.j.subscribe("adfullyviewableaudiblehalfdurationimpression",this.dX,this);this.j.subscribe("adoverlaymeasurableimpression",this.eX,this);this.j.subscribe("adoverlayunviewableimpression",this.fX,this);this.j.subscribe("adoverlayviewableendofsessionimpression",this.gX,this);this.j.subscribe("adoverlayviewableimmediateimpression",this.hX,
this);this.j.subscribe("adviewableimpression",this.iX,this);this.ad=b;this.oa=[];this.macros=c;this.J=!1;this.ya=!cAa(new hN(this.F.V()),f);this.B=!1};
TBa=function(a,b){g.Cb(a.oa,b);SBa(a,b,1)};
UBa=function(a,b){if(a.J){var c=a.Za,d=a.getDuration();!KN(c)&&0<d&&(LN(c,b),c.daiEnabled?NBa(c,b,d):OBa(c,b,d,!1));a.B||(c=a.Za,a=a.getDuration(),!KN(c)&&0<a&&(PBa(c,b),QBa(c,b,a,!1)))}};
SBa=function(a,b,c){0!=b.length&&(b=g.Yl(b,function(d){return new cE(d,c,d.id)}),a.ma("onAdUxUpdate",b))};
$N=function(a){var b={};b.abandon=a.abandonCommands&&sN(a.abandonCommands.commands)||[];bN.call(this,a,b)};
aO=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;gN.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.pP=e;this.gI=f};
bO=function(a,b,c,d,e,f){ZN.call(this,a,b,c,d,e,1);this.C=b;this.u=b.j.durationMilliseconds||0;this.Gc=null;this.D=f};
cO=function(a){bN.call(this,a);this.u=qy(this.j.playerVars||"")};
dO=function(){bN.apply(this,arguments)};
VBa=function(a,b,c,d){this.C=a;this.j=b;this.B=c;this.u=d};
eO=function(a,b,c,d,e){ZN.call(this,a,b,c,d,e);var f=this;this.D=b;this.u=new g.Ip(function(){f.Lo("load_timeout")},1E4);
g.E(this,this.u);this.C=new Jz(this);g.E(this,this.C)};
fO=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.t(b);for(c=b.next();!c.done;c=b.next())if(!AC(a.Ba,c.value))return!1;return!0};
WBa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
gO=function(a){return!!(a.l4&&a.slot&&a.layout)};
hO=function(a,b,c){gN.call(this,"ad-message",a,void 0,b,c)};
iO=function(a,b,c,d,e,f,h,l){ZN.call(this,a,b,c,d,e);var m=this;this.u=b;this.T=b.j.durationMs||0;this.I=l;this.ea=!1;this.D=this.C=0;this.Z=function(){var n=m.F.getProgressState().current;n<m.C?m.Ko():n>m.D&&m.Ei()}};
ZBa=function(a,b){if(a.I&&a.ea){a.ea=!1;var c=a.u.j;if(gO(c)){var d=c.slot;c=c.layout;b=XBa(b);a=g.t(a.I.listeners);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=d,h=c,l=b;jO(e.j(),f,h,l);YBa(e.j(),f)}}else g.DD(Error("adMessageRenderer is not augmented on termination"))}};
XBa=function(a){switch(a){case "adabandonedreset":return"user_cancelled";case "adended":return"normal";case "aderror":return"error";case void 0:return g.DD(Error("AdNotify abandoned")),"abandoned";default:return g.DD(Error("Unexpected eventType for adNotify exit")),"abandoned"}};
g.kO=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
g.lO=function(a,b){for(var c={},d=g.t(Object.keys(b)),e=d.next();!e.done;c={II:c.II},e=d.next())e=e.value,c.II=b[e],a=a.replace(new RegExp("\\$"+e,"gi"),function(f){return function(){return f.II}}(c));
return a};
mO=function(a,b,c,d){this.j=a;this.C=b;this.u=BN(c);this.B=d};
$Ba=function(a){for(var b={},c=g.t(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a.u[d].toString();return Object.assign(b,a.C)};
aCa=function(a,b,c,d){new mO(a,b,c,d)};
nO=function(a,b,c,d,e,f,h,l,m){ZN.call(this,a,b,c,d,e,1);var n=this;this.tG=!0;this.I=m;this.u=b;this.C=f;this.ea=new Jz(this);g.E(this,this.ea);this.D=new g.Ip(function(){n.Lo("load_timeout")},1E4);
g.E(this,this.D);this.T=h};
bCa=function(a){if(a.T&&(a.F.V().experiments.ob("enable_topsoil_wta_for_halftime")||a.F.V().experiments.ob("enable_topsoil_wta_for_halftime_live_infra"))){var b=a.u.B,c=b.C,d=b.B,e=b.j;b=b.D;if(void 0===c)g.CD(Error("Expected ad break start time when a DAI ad starts"));else if(void 0===d)g.CD(Error("Expected ad break end time when a DAI ad starts"));else return e=b.slice(0,e).reduce(function(f,h){return f+h},0),Math.min(Math.max((d-c)/1E3-e,0),a.u.u)}};
qO=function(a,b){if(null!==a.I){var c=cCa(a);a=g.t(a.I.listeners);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=c;var f=b,h=!1;d.j||"aderror"!==f||(dCa(d,e,[],!1),eCa(d.B(),d.u),fCa(d.B(),d.u),gCa(d.B(),d.u),h=!0);if(d.j&&d.j.layoutId===e){switch(f){case "adabandoned":e="abandoned";break;case "aderror":e="error";break;default:e="normal"}jO(d.B(),d.u,d.j,e);if(h){e=d.B();h=d.u;oO(e.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",h);e=g.t(e.Fd);for(f=e.next();!f.done;f=e.next())f.value.Rj(h);YBa(d.B(),
d.u)}d.Ca.get().F.V().K("html5_send_layout_unscheduled_signal_for_externally_managed")&&d.C&&pO(d.B(),d.u,d.j);d.u=null;d.j=null;d.C=!1}}}};
rO=function(a){return(a=a.F.getVideoData(2))?a.clientPlaybackNonce:""};
cCa=function(a){if(a=a.u.j.elementId)return a;g.CD(Error("No elementId on VideoAd InstreamVideoAdRenderer"));return""};
hCa=function(a){function b(h,l){h=a.j8;var m=Object.assign({},{});m.FINAL=AN(Ld("1"));m.SLOT_POS=AN(Ld("0"));return DN(h,CN(m),l)}
function c(h){return null==h?{create:function(){return null}}:{create:function(l,m,n){var p=b(l,m);
m=a.PP(l,p);l=h(l,p,m,n);g.E(l,m);return l}}}
var d=c(function(h,l,m){return new bO(a.F,h,l,m,a.DB,a.xe)}),e=c(function(h,l,m){return new iO(a.F,h,l,m,a.DB,a.xe,a.Tm,a.zq)}),f=c(function(h,l,m){return new eO(a.F,h,l,m,a.DB,a.xe)});
this.F1=new VBa({create:function(h,l){var m=DN(b(h,l),CN(EBa(h)));l=a.PP(h,m);h=new nO(a.F,h,m,l,a.DB,a.xe,a.daiEnabled,function(){return new aCa(a.xe,m,a.F,a.Wl)},a.Aq,a.Di);
g.E(h,l);return h}},d,e,f)};
sO=function(a,b){this.u=a;this.j={};this.B=void 0===b?!1:b};
iCa=function(a,b){var c=a.startSecs+a.Sg;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{B2:new iq(b,c),j4:new PD(b,c-b,a.context,a.identifier,a.event,a.j)}};
tO=function(){this.j=[]};
uO=function(a,b,c){var d=g.Jb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
jCa=function(){this.j=new tO};
vO=function(a){this.j=a};
kCa=function(a){a=[a,a.C].filter(function(d){return!!d});
for(var b=g.t(a),c=b.next();!c.done;c=b.next())c.value.u=!0;return a};
lCa=function(a,b,c){this.B=a;this.u=b;this.j=c;a.getCurrentTime()};
mCa=function(a,b,c){a.j&&wO({daiStateTrigger:{totalCueDurationMs:b,filledAdsDurationMs:c,contentCpn:a.u}})};
nCa=function(a,b){a.j&&wO({adTrimmingInfo:{contentCpn:a.u,cueIdentifier:b.cueIdentifier||void 0,adMediaInfo:b.T1}})};
oCa=function(a,b){wO({daiStateTrigger:{errorType:a,contentCpn:b}})};
wO=function(a){g.rA("adsClientStateChange",a)};
xO=function(a){this.F=a;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.C=!0;this.u=this.cg=!1;this.adFormat=null;this.B="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"};
qCa=function(a,b,c,d,e,f){f();var h=a.F.getVideoData(1),l=a.F.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.T);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.B=b;0>=d?f():(a.actionType=a.C?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.cg=!0,aF("_start",a.actionType)&&pCa(a)))};
rCa=function(a,b){a=g.t(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){eF("ad_i");bF({isMonetized:!0});break}};
pCa=function(a){if(a.cg)if(a.F.K("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.B&&"video_to_ad"===a.actionType)$E("video_to_ad");else if(a.F.K("web_csi_via_jspb")){var b=new Bx;b=H(b,8,2);var c=new Dx;c=H(c,21,sCa(a.B));c=H(c,7,4);b=I(c,Bx,22,b);b=H(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&H(b,76,a.contentCpn),a.videoId&&H(b,78,a.videoId)):(a.adCpn&&H(b,76,a.adCpn),a.adVideoId&&H(b,78,a.adVideoId));a.adFormat&&H(b,12,a.adFormat);a.contentCpn&&H(b,
8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&H(b,28,a.adCpn);a.adVideoId&&H(b,20,a.adVideoId);g.my(VE)(b,a.actionType)}else b={adBreakType:tCa(a.B),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),bF(b,a.actionType)};
tCa=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"}};
sCa=function(a){switch(a){case "AD_PLACEMENT_KIND_START":return 1;case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return 2;case "AD_PLACEMENT_KIND_END":return 3;default:return 0}};
g.vCa=function(a){return(a=uCa[a.toString()])?a:"LICENSE"};
g.zO=function(a){g.yO?a=a.keyCode:(a=a||window.event,a=a.keyCode?a.keyCode:a.which);return a};
AO=function(a){if(g.yO)a=new g.Fe(a.pageX,a.pageY);else{a=a||window.event;var b=a.pageX,c=a.pageY;document.body&&document.documentElement&&("number"!==typeof b&&(b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft),"number"!==typeof c&&(c=a.clientY+document.body.scrollTop+document.documentElement.scrollTop));a=new g.Fe(b,c)}return a};
g.BO=function(a){return g.yO?a.target:Ioa(a)};
CO=function(a){if(g.yO)var b=a.composedPath()[0];else a=a||window.event,a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path,b=b&&b.length?b[0]:Ioa(a);return b};
g.DO=function(a){g.yO?a=a.defaultPrevented:(a=a||window.event,a=!1===a.returnValue||a.UU&&a.UU());return a};
wCa=function(a,b){if(g.yO){var c=function(){var d=g.ya.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.u(d))};
a.addEventListener("playing",c)}else g.Loa(a,"playing",b)};
g.EO=function(a){g.yO?a.preventDefault():Joa(a)};
FO=function(){g.C.call(this);this.xM=!1;this.B=null;this.T=this.J=!1;this.D=new g.Fd;this.va=null;g.E(this,this.D)};
GO=function(a){a=a.dC();return 1>a.length?NaN:a.end(a.length-1)};
xCa=function(a){!a.u&&Dva()&&(a.C?a.C.then(function(){return xCa(a)}):a.Qf()||(a.u=a.zs()))};
yCa=function(a){a.u&&(a.u.dispose(),a.u=void 0)};
yI=function(a,b,c){var d;(null==(d=a.va)?0:d.Rd())&&a.va.xa("rms",b,void 0===c?!1:c)};
zCa=function(a,b,c){a.Ip()||a.getCurrentTime()>b||10<c||(a.play(),g.Cy(function(){zCa(a,a.getCurrentTime(),c+1)},500))};
ACa=function(a,b){a.B&&a.B.equals(b)||(a.B&&a.B.dispose(),a.B=b)};
HO=function(a){return oI(a.Nh(),a.getCurrentTime())};
BCa=function(a,b){if(0===a.xj()||0<a.Ye())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.dC(),a.length||!c)?lI(a,b):c};
IO=function(a){a.Qf()&&(CCa&&a.va&&a.va.Mt("rs_s"),nB&&0<a.getCurrentTime()&&a.seekTo(0),a.OH(),a.load(),ACa(a,null));delete a.C};
DCa=function(a){var b=a.Nh();return 0<nI(b)&&a.getDuration()?b.end(b.length-1):0};
JO=function(a){switch(a.Ye()){case 2:return"progressive.net.retryexhausted";case 3:return"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.KO=function(a,b){this.j=void 0===b?null:b;this.state=a||64};
LO=function(a,b,c){return b===a.state&&c===a.j||void 0!==b&&(b&128&&!c||b&2&&b&16)?a:new g.KO(b,c)};
MO=function(a,b){return LO(a,a.state|b)};
NO=function(a,b){return LO(a,a.state&~b)};
OO=function(a,b,c){return LO(a,(a.state|b)&~c)};
g.S=function(a,b){return!!(a.state&b)};
g.PO=function(a,b){return b.state===a.state&&b.j===a.j};
g.QO=function(a){return g.S(a,4)};
g.RO=function(a){return g.S(a,8)&&!g.S(a,2)&&!g.S(a,1024)};
SO=function(a){return a.bd()&&!g.S(a,16)&&!g.S(a,32)};
g.TO=function(a){return g.S(a,1)&&!g.S(a,2)};
UO=function(a){return g.S(a,128)?-1:g.S(a,2)?0:g.S(a,64)?-1:g.S(a,1)&&!g.S(a,32)?3:g.S(a,8)?1:g.S(a,4)?2:-1};
VO=function(a,b,c,d,e,f,h,l){g.dE.call(this);this.wi=a;this.F=b;this.u=d;this.J=this.u.u instanceof bN?this.u.u:null;this.j=null;this.Z=!1;this.D=c;this.ea=(a=b.getVideoData(1))&&a.isLivePlayback||!1;this.ya=0;this.Aa=!1;this.Lp=e;this.jy=f;this.ju=h;this.oa=!1;this.daiEnabled=l};
ECa=function(a){if(cN(a.F)){var b=a.F.getVideoData(2);b=a.u.T[b.Nc]||null;if(!b)return a.Sr(),!0;(!a.j||a.j&&a.j.ad!==b)&&a.RA(b)}else if(1===a.F.getPresentingPlayerType()&&a.j)return a.Sr(),!0;return!1};
FCa=function(a,b){a.D.Px(a.u.j.j,b,a.FT(),a.GT(),a.isLiveStream())};
WO=function(a){var b=a.wi,c=a.u.j;if(c instanceof aE){if(b.T&&Qsa(c)&&g.S(b.j.Cb(1),64)){var d=1E3*b.j.getCurrentTime(1)||0;d!=c.start&&c.contains(d)&&(c.u=!0)}b.B.has(c)?g.CD(Error(c.toString()+" has already been seen")):(b.mu.add(c),b.B.set(c,a),bE(c)||b.j.ye([c],1))}else g.CD(Error("Should use AdCueRange instead of CueRange"));a.daiEnabled&&!a.u.I&&(GCa(a,a.HT()),a.u.I=!0)};
GCa=function(a,b){for(var c=XO(a),d=a.u.j.start,e=[],f=g.t(b),h=f.next();!h.done;h=f.next()){h=h.value;if(c<=d)break;var l=HCa(h);e.push({externalVideoId:h.Ce(),originalMediaDurationMs:(1E3*h.u).toString(),trimmedMediaDurationMs:(parseInt(h.j.trimmedMaxNonSkippableAdDurationMs,10)||0).toString()});l=d+l;var m=Math.min(l,c);h.B.C=a.u.j.start;h.B.B=c;if(!ICa(a,h,d,m)||l!==m)break;d=l}b=b.reduce(function(n,p){return n+HCa(p)},0);
mCa(a.Lp,a.u.j.Jl(),b);nCa(a.Lp,{cueIdentifier:a.u.C&&a.u.C.identifier,T1:e})};
HCa=function(a){var b=1E3*a.u;return 0<parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)&&parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10)<b?parseInt(a.j.trimmedMaxNonSkippableAdDurationMs,10):b};
XO=function(a){var b=a.u.j.end;a=uO(a.jy,a.u.j.start,b);return Math.min(b,null===a?Infinity:a)};
ICa=function(a,b,c,d){var e=a.ju.create(b,CN(DBa(a.u)),a.u.j.j);c=e.rT(c,d);g.Za(e);if(!c)return!1;a.u.T[c]=b;return!0};
ZO=function(a,b){b=void 0===b?!1:b;a.Z=!0;g.Za(a.j);a.D.aA();var c=a.u.J;if(null!==c){var d=a.Lp,e=a.u.C&&a.u.C.identifier,f=a.u.j.start,h=XO(a);d.j&&wO({driftRecoveryInfo:{contentCpn:d.u,cueIdentifier:e||void 0,driftRecoveryMs:c.toString(),breakDurationMs:Math.round(h-f).toString(),driftFromHeadMs:Math.round(1E3*d.B.us()).toString()}});a.u.J=null}b||a.daiEnabled?YO(a.wi,!0):a.ea&&a.jR()&&a.DC()?YO(a.wi,!1,JCa(a)):YO(a.wi,!1);FCa(a,!0)};
JCa=function(a){if(a.Aa)return function(c){c.seekTo(Infinity,!0,void 0,1)};
var b=Math.floor(g.Ra()/1E3)-a.ya;return function(c){c.seekTo(c.getCurrentTime()+b,!0,void 0,1)}};
KCa=function(a,b,c){this.j=a;this.u=b;this.B=c};
NCa=function(a){var b=g.K(a,g.oM);a=g.K(a,LCa);if(b){if(a=MCa(b,"VIDEO"))return{token:a,videoId:b.videoId}}else if(a&&(b=MCa(a,"PLAYLIST")))return{token:b,playlistId:a.playlistId}};
MCa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
OCa=function(a){a=void 0===a||a?JD(16):Asa(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
$O=function(a){HB.call(this,1,arguments);this.csn=a};
SCa=function(a,b,c,d,e,f,h,l){function m(){g.DD(new g.bA("newScreen() parent element does not have a VE - rootVe",b))}
var n=PCa(),p=new AE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f={sequenceGroup:n};e&&(f.cttAuthInfo=e);if(g.gy("il_via_jspb")){e=sna((new rx).j(n),p.getAsJspb());c&&c.visualElement?(p=new qx,c.clientScreenNonce&&H(p,2,c.clientScreenNonce),rna(p,c.visualElement.getAsJspb()),h&&H(p,4,QCa[h]),I(e,qx,5,p)):c&&m();d&&H(e,3,d);if(g.gy("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new Ms;l=g.t(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=
l.next())d=d.value,d.screenVeType&&(d=Bma(new Ks,d.screenVeType),c.j(d));I(e,Ms,7,c)}asa(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.gy("expectation_logging")&&l&&l.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=l.screenCreatedLoggingExpectations),c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},h&&(e.implicitGesture.gestureType=h)):c&&m(),d&&(e.cloneCsn=d),a?sD("screenCreated",e,a,f):g.rA("screenCreated",e,f);KB(RCa,
new $O(n));return n};
g.bP=function(a,b,c,d){g.aP(a,b,c,[d])};
g.aP=function(a,b,c,d){var e=d.filter(function(m){m.csn!==b?(m.csn=b,m=!0):m=!1;return m}),f={cttAuthInfo:GE(b)||void 0,
sequenceGroup:b};d=g.t(d);for(var h=d.next();!h.done;h=d.next())h=h.value.getAsJson(),(g.hd(h)||!h.trackingParams&&!h.veType)&&g.DD(Error("Child VE logged with no data"));if(g.gy("il_via_jspb")){var l=una((new sx).j(b),c.getAsJspb());g.Yl(e,function(m){m=m.getAsJspb();Sh(l,3,Tv,m)});
"UNDEFINED_CSN"===b?cP("visualElementAttached",f,void 0,l):csa(l,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Yl(e,function(m){return m.getAsJson()})},"UNDEFINED_CSN"===b?cP("visualElementAttached",f,c):a?sD("visualElementAttached",c,a,f):g.rA("visualElementAttached",c,f)};
TCa=function(a,b,c,d,e,f){d={cttAuthInfo:GE(b)||void 0,sequenceGroup:b};g.gy("il_via_jspb")?(e=(new vx).j(b),c=c.getAsJspb(),c=I(e,Tv,2,c),c=H(c,4,1),f&&I(c,px,3,f),"UNDEFINED_CSN"===b?cP("visualElementShown",d,void 0,c):BD(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?cP("visualElementShown",d,f):a?sD("visualElementShown",f,a,d):g.rA("visualElementShown",f,d))};
dP=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f={cttAuthInfo:GE(b)||void 0,sequenceGroup:b,endOfSequence:d};g.gy("il_via_jspb")?(e=(new ux).j(b),c=c.getAsJspb(),c=I(e,Tv,2,c),H(c,4,d?16:8),"UNDEFINED_CSN"===b?cP("visualElementHidden",f,void 0,c):Yra(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?cP("visualElementHidden",f,d):a?sD("visualElementHidden",d,a,f):g.rA("visualElementHidden",d,f))};
UCa=function(a,b,c,d,e){eP(a,b,c,d,e)};
eP=function(a,b,c,d,e){var f={cttAuthInfo:GE(b)||void 0,sequenceGroup:b};g.gy("il_via_jspb")?(d=(new tx).j(b),c=c.getAsJspb(),c=I(d,Tv,2,c),H(c,4,QCa.INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK),e&&I(c,px,3,e),"UNDEFINED_CSN"===b?cP("visualElementGestured",f,void 0,c):Zra(c,f,a)):(e={csn:b,ve:c.getAsJson(),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"},d&&(e.clientData=d),"UNDEFINED_CSN"===b?cP("visualElementGestured",f,e):a?sD("visualElementGestured",e,a,f):g.rA("visualElementGestured",
e,f))};
VCa=function(a,b,c,d){var e={cttAuthInfo:GE(b)||void 0,sequenceGroup:b};g.gy("il_via_jspb")?(d=new wx,d.j(b),c=c.getAsJspb(),I(d,Tv,2,c),"UNDEFINED_CSN"===b?cP("visualElementStateChanged",e,void 0,d):$ra(d,e,a)):(c={csn:b,ve:c.getAsJson(),clientData:d},"UNDEFINED_CSN"===b?cP("visualElementStateChanged",e,c):a?sD("visualElementStateChanged",c,a,e):g.rA("visualElementStateChanged",c,e))};
WCa=function(){var a;g.gy("enable_web_96_bit_csn")?a=OCa():g.gy("enable_web_96_bit_csn_no_crypto")?a=OCa(!1):a=g.gg(g.fg(Math.random()+""),3);return a};
cP=function(a,b,c,d){fP.push({lD:a,payload:c,Ps:d,options:b});gP||(gP=NB(RCa,XCa))};
XCa=function(a){if(fP){for(var b=g.t(fP),c=b.next();!c.done;c=b.next())if(c=c.value,g.gy("il_via_jspb")&&c.Ps)switch(c.Ps.j(a.csn),c.lD){case "screenCreated":asa(c.Ps,c.options);break;case "visualElementAttached":csa(c.Ps,c.options);break;case "visualElementShown":BD(c.Ps,c.options);break;case "visualElementHidden":Yra(c.Ps,c.options);break;case "visualElementGestured":Zra(c.Ps,c.options);break;case "visualElementStateChanged":$ra(c.Ps,c.options);break;default:g.DD(new g.bA("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.rA(c.lD,c.payload,c.options));fP.length=0}gP=0};
g.hP=function(a,b,c,d){g.my(TCa)(void 0,a,b,c,d,void 0)};
g.iP=function(a,b){g.my(function(){g.Ob(b,function(c){var d={cttAuthInfo:GE(a)||void 0,sequenceGroup:a};if(g.gy("il_via_jspb")){var e=(new vx).j(a);c=c.getAsJspb();e=I(e,Tv,2,c);e=H(e,4,4);"UNDEFINED_CSN"===a?cP("visualElementShown",d,void 0,e):BD(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?cP("visualElementShown",d,e):g.rA("visualElementShown",e,d)})})()};
g.jP=function(a,b){g.my(function(){g.Ob(b,function(c){dP(void 0,a,c)})})()};
g.kP=function(a,b,c){g.my(UCa)(void 0,a,b,c,void 0)};
lP=function(){this.B=new Set;this.u=new Set;this.C=new Map;this.client=void 0;this.csn=null};
mP=function(){lP.instance||(lP.instance=new lP);return lP.instance};
nP=function(){};
YCa=function(){nP.instance||(nP.instance=new nP);g.my(mP().j).bind(mP())()};
oP=function(){this.J=[];this.T=[];this.j=[];this.oa=[];this.D=[];this.ea=[];this.B=new Map;this.I=new Map;this.u=new Set;this.ya=new Map};
pP=function(){oP.instance||(oP.instance=new oP);return oP.instance};
ZCa=function(a,b,c,d){d=void 0===d?0:d;var e=g.FE(d);b=b||g.EE(d);e&&b&&VCa(a.client,e,b,c)};
aDa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.C=function(){$Ca(a,b,c,d);var h=g.EE(d.layer);if(h){for(var l=g.t(a.J),m=l.next();!m.done;m=l.next())m=m.value,a.fq(m[0],m[1]||h,d.layer);h=g.t(a.T);for(l=h.next();!l.done;l=h.next())l=l.value,ZCa(a,l[0],l[1])}};
c||g.FE(d.layer)||a.C();if(d.qB)for(var e=g.t(d.qB),f=e.next();!f.done;f=e.next())a.iM(f.value,d.layer);else g.CD(Error("Delayed screen needs a data promise."))};
$Ca=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.rO?d.rO:d.layer;var f=g.FE(e);e=g.EE(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.ey("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});g.gy("combine_ve_grafts")&&f&&bDa(a,f);try{var n=SCa(a.client,b,l,d.mB,d.cttAuthInfo,m,d.Ny,d.loggingExpectations)}catch(r){msa(r,
{Nz:b,rootVe:e,b8:c,D2:f,a8:l,mB:d.mB});g.CD(r);return}HE(n,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!jta(f)&&dP(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=n||"");bF({clientScreenNonce:n});YCa();var p=g.EE(d.layer);f&&"UNDEFINED_CSN"!==f&&p&&(g.gy("web_mark_root_visible")||g.gy("music_web_mark_root_visible"))&&g.hP(n,p);a.u.delete(d.layer||0);a.C=void 0;var q;null==(q=a.ya.get(d.layer))||q.forEach(function(r,v){r?a.fq(v,r,d.layer):p&&a.fq(v,p,d.layer)});
cDa(a)};
cDa=function(a){for(var b=0;b<a.D.length;b++){var c=a.D[b];try{c()}catch(d){g.CD(d)}}for(b=a.D.length=0;b<a.ea.length;b++){c=a.ea[b];try{c()}catch(d){g.CD(d)}}};
bDa=function(a,b){a.B.forEach(function(c,d){(d=a.I.get(d))&&g.aP(a.client,b,d,c)});
a.B.clear();a.I.clear();a.Z=void 0};
qP=function(){this.J=[];this.T=[];this.j=[];this.oa=[];this.D=[];this.ea=[];this.B=new Map;this.I=new Map;this.u=new Set;this.ya=new Map};
dDa=function(a,b,c,d){d=void 0===d?0:d;var e=g.FE(d);b=b||g.EE(d);e&&b&&VCa(a.client,e,b,c)};
fDa=function(a,b,c,d){d=void 0===d?{}:d;a.u.add(d.layer||0);a.C=function(){eDa(a,b,c,d);var h=g.EE(d.layer);if(h){for(var l=g.t(a.J),m=l.next();!m.done;m=l.next())m=m.value,a.fq(m[0],m[1]||h,d.layer);h=g.t(a.T);for(l=h.next();!l.done;l=h.next())l=l.value,dDa(a,l[0],l[1])}};
c||g.FE(d.layer)||a.C();if(d.qB)for(var e=g.t(d.qB),f=e.next();!f.done;f=e.next())a.iM(f.value,d.layer);else g.CD(Error("Delayed screen needs a data promise."))};
eDa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.rO?d.rO:d.layer;var f=g.FE(e);e=g.EE(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m;h=g.ey("EVENT_ID");"UNDEFINED_CSN"===f&&h&&(m={servletData:{serializedServletEventId:h}});g.gy("combine_ve_grafts")&&f&&gDa(a,f);try{var n=SCa(a.client,b,l,d.mB,d.cttAuthInfo,m,d.Ny,d.loggingExpectations)}catch(r){msa(r,
{Nz:b,rootVe:e,b8:c,D2:f,a8:l,mB:d.mB});g.CD(r);return}HE(n,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!jta(f)&&dP(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=n||"");bF({clientScreenNonce:n});YCa();var p=g.EE(d.layer);f&&"UNDEFINED_CSN"!==f&&p&&(g.gy("web_mark_root_visible")||g.gy("music_web_mark_root_visible"))&&g.hP(n,p);a.u.delete(d.layer||0);a.C=void 0;var q;null==(q=a.ya.get(d.layer))||q.forEach(function(r,v){r?a.fq(v,r,d.layer):p&&a.fq(v,p,d.layer)});
hDa(a)};
hDa=function(a){for(var b=0;b<a.D.length;b++){var c=a.D[b];try{c()}catch(d){g.CD(d)}}for(b=a.D.length=0;b<a.ea.length;b++){c=a.ea[b];try{c()}catch(d){g.CD(d)}}};
gDa=function(a,b){a.B.forEach(function(c,d){(d=a.I.get(d))&&g.aP(a.client,b,d,c)});
a.B.clear();a.I.clear();a.Z=void 0};
jDa=function(){var a=void 0===a?window.location.href:a;if(g.gy("kevlar_disable_theme_param"))return null;Ri(g.Ti(5,a));try{var b=g.sy(a).theme;return iDa.get(b)||null}catch(c){}return null};
rP=function(){this.j={};if(this.u=eoa()){var a=g.Sy("CONSISTENCY");a&&kDa(this,{encryptedTokenJarContents:a})}};
kDa=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.u&&g.Ry("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
tP=function(){var a=g.ey("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.ey("INNERTUBE_CLIENT_NAME")&&(this.localStorage=sP(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
sP=function(a){return void 0===a.localStorage?new lA("yt-client-location"):a.localStorage};
g.uP=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.ey("INNERTUBE_CONTEXT");if(!d)return g.CD(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.nd(d);g.gy("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&(e.clientFormFactor=g.ey("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||
1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.Wz();var h="USER_INTERFACE_THEME_LIGHT";g.Xz(0,165)?h="USER_INTERFACE_THEME_DARK":g.Xz(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.gy("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:jDa()||h;e.userInterfaceTheme=f;if(!b){if(f=
Voa())e.connectionType=f;g.gy("web_log_effective_connection_type")&&(f=Xoa())&&(d.client.effectiveConnectionType=f)}var l;if(g.gy("web_log_memory_total_kbytes")&&(null==(l=g.Ea.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ea.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}m=g.sy(g.Ea.location.href);!g.gy("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ea.location.href},
g.gy("kevlar_woffle")&&Qoa.instance&&(m=Qoa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.u?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Uz(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.gy("web_lr_app_quality_killswitch")&&(m=g.ey("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.ey("LIVING_ROOM_CERTIFICATION_SCOPE"))&&
(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.gy("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(F){}n=void 0}n&&(e.timeZone=n)}(n=iy())?e.experimentsToken=n:delete e.experimentsToken;n=jy();rP.instance||(rP.instance=new rP);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:Yc(rP.instance.j)});!g.gy("web_prequest_context_killswitch")&&
(n=g.ey("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.Wz();n=g.Xz(0,58);e=e.get("gsml","");d.user=Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.gy("warm_op_csn_cleanup")?c&&(b=g.FE())&&(d.clientScreenNonce=b):!b&&(b=g.FE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Ga("yt.mdx.remote.remoteClient_"))d.remoteClient=a;tP.getInstance().setLocationOnInnerTubeContext(d);try{var p=zy(),q=p.bid;
delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.t(Object.entries(p)),v=r.next();!v.done;v=r.next()){var x=g.t(v.value),z=x.next().value,B=x.next().value;p=z;q=B;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}}catch(F){g.CD(F)}return d};
vP=function(){Tz.apply(this,arguments);this.dw={}};
xP=function(){wP||(wP=new vP);return wP};
yP=function(a,b){b?a.dw.Authorization="Bearer "+b:delete a.dw.Authorization};
lDa=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
mDa=function(){var a=null;toa().then(function(b){return a=b},function(b){return a=lDa(b)});
return a};
nDa=function(){var a=bg(1E3,"NO_BID");return Yf(xca([toa(),a]).Zj(lDa),function(){a.cancel()})};
oDa=function(a){return a.Od?g.Xz(g.Wz(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
zP=function(a){this.player=a;this.u=this.j=1};
BP=function(a,b,c,d){var e=void 0===c?{}:c;c=e.nB;e=e.me;d=void 0===d?"":d;var f=a.player.getVideoData(1),h=a.player.V().Rn,l={AD_BLOCK:a.j++,AD_BREAK_LENGTH:c?c.Sg:0,AUTONAV_STATE:oDa(a.player.V()),CA_TYPE:"image",CPN:f.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.us(),LACT:NC(),LIVE_INDEX:c?a.u++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:e?Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:a.player.getVisibilityState(),P_H:a.player.jb().Ij().height,
P_W:a.player.jb().Ij().width,YT_REMOTE:h?h.join(","):""},m=Pna(Ona);Object.keys(m).forEach(function(p){null!=m[p]&&(l[p.toUpperCase()]=m[p].toString())});
""!==d&&(l.BISCOTTI_ID=d);d={};yy(b)&&(d.sts="19471",(c=a.player.V().forcedExperiments)&&(d.forced_experiments=c));var n=uy(g.xp(b,l),d);a.player.getVideoData();return 2!==n.split("?").length?Rf(Error("Invalid AdBreakInfo URL")):g.NK(a.player.V(),null==f?void 0:f.oauthToken).then(function(p){if(p&&wy()){var q=xP();yP(q,p)}p=a.player.Mm(q);q=pDa(a,n,l,f.isMdxPlayback);return g.AP(p,q,"/youtubei/v1/player/ad_break").then(function(r){return r})})};
sDa=function(a,b,c,d){a.client||(a.client={});a.client.originalUrl=b;var e=vy(b),f=qDa(b,"X-YouTube-Time-Zone");(e||f)&&"undefined"!==typeof Intl&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);f=qDa(b,"X-YouTube-Ad-Signals");if(e||f||""!==c){var h={};b=py(zy(c)).split("&");var l=new Map;b.forEach(function(m){m=m.split("=");1<m.length&&l.set(m[0].toString(),decodeURIComponent(m[1].toString()))});
l.has("bid")&&(h.bid=l.get("bid"));h.params=[];rDa.forEach(function(m){l.has(m)&&(m={key:m,value:l.get(m)},h.params.push(m))});
a.adSignalsInfo=h}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;b=d.j.cosver;null!=b&&"cosver"!==b&&(a.client.osVersion=b);b=d.j.cplatform;null!=b&&"cplatform"!==b&&""!==b&&(a.client.platform=b);b=d.j.cmodel;null!=b&&"cmodel"!==b&&(a.client.deviceModel=b);b=d.j.cplayer;null!=b&&"cplayer"!==b&&(a.client.playerType=b);d=d.j.cbrand;null!=d&&"cbrand"!==d&&(a.client.deviceMake=d);a.user||(a.user={});a.user.lockedSafetyMode=!1};
vDa=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in tDa&&(f.clientName=tDa[d[0]]),d[1]in uDa&&(f.platform=uDa[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
pDa=function(a,b,c,d){var e=c.DRIFT_FROM_HEAD_MS&&!Number.isNaN(c.DRIFT_FROM_HEAD_MS)?Math.trunc(c.DRIFT_FROM_HEAD_MS):0,f=wDa.exec(b);f=null!=f&&2<=f.length?f[1]:"";var h=xDa.test(b),l=yDa.exec(b);l=null!=l&&2<=l.length?l[1]:"";var m=zDa.exec(b);m=null!=m&&2<=m.length&&!Number.isNaN(Number(m[1]))?Number(m[1]):1;var n=ADa.exec(b);n=null!=n&&2<=n.length?n[1]:"0";var p=qK(a.player.V().La),q=g.uP(a.player.getVideoData(1).Aa,!0),r="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";sDa(q,b,r.toString(),a.player.V());
var v={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19471,autonavState:oDa(a.player.V())};d&&(d={},vDa(d,c.YT_REMOTE)&&(v.mdxContext=d));if(d=BDa.includes(p)?void 0:g.Sy("PREF")){for(var x=d.split(RegExp("[:&]")),z=0,B=x.length;z<B;z++){var F=x[z].split("=");if(("SML"===F[0].toUpperCase()||"GSML"===F[0].toUpperCase())&&1<F.length&&"TRUE"===F[1].toUpperCase()){q.user.lockedSafetyMode=!0;
break}}a:{if("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in CDa)for(d=d.split(RegExp("[:&]")),z=CDa.FLAG_AUTO_CAPTIONS_DEFAULT_ON,x="f"+(1+Math.floor(z/31)).toString(),z=1<<Math.floor(z%31),B=0,F=d.length;B<F;B++){var G=d[B].split("=");if(G[0]===x&&parseInt("0x"+G[1],16)&z){d=!0;break a}}d=!1}v.autoCaptionsDefaultOn=d}b=DDa.exec(b);(b=null!=b&&2<=b.length?b[1]:"")&&l&&(q.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:v};f={adBlock:Math.trunc(c.AD_BLOCK),params:f,breakIndex:m,
breakPositionMs:n,clientPlaybackNonce:c.CPN,topLevelDomain:p,isProxyAdTagRequest:h,context:q,adSignalsInfoString:py(zy(r.toString())),overridePlaybackContext:b};l&&(f.videoId=l);c.LIVE_TARGETING_CONTEXT&&(f.liveTargetingParams=c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(f.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());e&&(f.driftFromHeadMs=e.toString());f.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));return f};
CP=function(a,b,c,d,e,f){g.dE.call(this);this.I=a;this.u=b;this.D=c;this.C=d;this.j=e;this.B=f};
EDa=function(a,b){var c={Bf:!0,aV:!1,qo:[]};if(!b)return c;if(b&&b.trackingParams){if(g.gy("use_core_sm"))var d=pP();else qP.instance||(qP.instance=new qP),d=qP.instance;d.eq(b.trackingParams)}if(b&&b.adThrottled)return c.aV=!0,c;b=b.playerAds;if(!b||!b.length)return c;b=b.map(function(f){return f.adPlacementRenderer}).filter(function(f){return f&&null!=f.renderer});
if(g.sb(b))return c;if(0<a.j.j.end){var e=a.j.j.end.toString();b.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"==f.kind&&"-1"==f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!=e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}c.qo=b;
c.Bf=!1;return c};
FDa=function(){bN.apply(this,arguments)};
DP=function(a,b,c,d,e,f,h,l){VO.call(this,a,b,c,d,e,f,h,l);this.B=d.u;this.C=-1;this.I=null;this.T=GDa(this.YF())};
HDa=function(a){a.C++;var b=a.YF();b?(0<a.C&&a.D.uP(),a.RA(b)):ZO(a)};
GDa=function(a){return a?IDa.some(function(b){return a instanceof b}):!1};
JDa=function(a){this.j=new KCa(function(b){b=new VO(a.wi,a.F,a.fT(),b,a.Lp,a.jy,a.ju,a.daiEnabled);WO(b);return b},function(b){return new CP(a.mK,a.wi,a.F,a.fu,b,a.Lp)},function(b){b=new DP(a.wi,a.F,a.fT(),b,a.Lp,a.jy,a.ju,a.daiEnabled);
WO(b);return b})};
KDa=function(a,b){qN.call(this);a.adStart&&g.K(a.adStart,EP)&&(g.rA("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_LINEAR_AD_SEQUENCE"}),rN(this,new dO(g.K(a.adStart,EP))));if(a.linearAds){var c=[];a=g.t(a.linearAds);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(g.K(d,FP)){var e=b(g.K(d,FP));rN(this,e);c.push(e.u);g.K(d,FP).isCritical&&(this.u=1)}else g.K(d,GP)?(d=new $N(g.K(d,GP)),rN(this,d)):g.K(d,HP)&&(d=new cO(g.K(d,HP)),rN(this,d),this.u=1);this.j.filter(function(f){return f instanceof
pN}).forEach(function(f,h){f instanceof pN&&(h=new lN(h,c),f.B=h)})}}};
MDa=function(a,b){qN.call(this);rN(this,LDa(this,a.adVideoStart));var c=a.linearAd;b=c&&g.K(c,FP)?b(g.K(c,FP)):null;rN(this,b);(a=a.adVideoEnd)?g.K(a,GP)?(this.u=1,a=new $N(g.K(a,GP))):a=null:a=null;rN(this,a)};
LDa=function(a,b){return null==b?null:g.K(b,GP)?(a.u=1,new $N(g.K(b,GP))):g.K(b,EP)?(g.rA("adNotifyFilled",{notifyCompositeType:"COMPOSITE_AD_TYPE_SANDWICHED_LINEAR_AD"}),new dO(g.K(b,EP))):null};
NDa=function(a,b){this.B=new fAa;this.j=a;this.u=b};
ODa=function(a){this.j=a};
PDa=function(a,b,c,d){try{var e=b.renderer,f=b.config&&b.config.adPlacementConfig,h=e?a.j.create(e,f):null;return new $Aa(b,c,h,d)}catch(l){g.CD(l)}};
QDa=function(a){var b=new ODa(a.G1);return{ET:function(){return b}}};
IP=function(a){g.C.call(this);var b=this;this.u=a;this.j=null;g.bb(this,function(){return b.j=null});
var c=Bz(a);if(c){var d=function(){b.j&&b.j(!!zz())};
this.u.addEventListener(c,d);g.bb(this,function(){b.u.removeEventListener(c,d)})}};
JP=function(a){g.C.call(this);this.j=a};
RDa=function(a){var b=window.document;return g.FK(a.V())?new IP(b):new JP(a)};
SDa=function(a){g.C.call(this);this.S_=new lCa(a.F,a.contentCpn,a.daiEnabled)};
TDa=function(a){KP=a&&a.data};
UDa=function(a){LP=a&&a.data};
VDa=function(a){MP=a&&a.data};
WDa=function(){NP=MP=LP=KP=null};
QP=function(a){g.C.call(this);var b=this;this.zd=a;this.rf=new Map;this.j=new Map;OP(this,"commandExecutorCommand",function(c,d,e){b.Hg(c.commands,d,e)});
PP(this,"commandExecutorCommand",function(c,d,e){XDa(b,c.commands,d,e)});
OP(this,"clickTrackingParams",function(){});
PP(this,"clickTrackingParams",function(){})};
YDa=function(a,b){OP(a,b.Km(),function(c,d,e){d=void 0===d?{}:d;e=void 0===e?{}:e;b.handle(c,d,e)})};
ZDa=function(a,b){PP(a,b.Km(),function(c,d,e){b.hq(c,d,e)})};
OP=function(a,b,c){a.isDisposed();a.rf.get(b)&&g.CD(Error("Extension name "+b+" already registered"));a.rf.set(b,c)};
PP=function(a,b,c){a.isDisposed();a.j.get(b)&&g.CD(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
XDa=function(a,b,c,d){b=void 0===b?[]:b;a.isDisposed();var e=[],f=[],h=g.t(b);for(b=h.next();!b.done;b=h.next())b=b.value,g.K(b,$Da)||g.K(b,aEa)?e.push(b):f.push(b);e=g.t(e);for(b=e.next();!b.done;b=e.next())RP(a,b.value,c,d);f=g.t(f);for(b=f.next();!b.done;b=f.next())RP(a,b.value,c,d)};
bEa=function(a,b){a.zd.get().Na("innertubeCommand",{openPopupAction:b})};
cEa=function(a,b){a.zd.get().Na("innertubeCommand",{confirmDialogEndpoint:b})};
RP=function(a,b,c,d){a.isDisposed();b.loggingUrls&&dEa(a,"loggingUrls",b.loggingUrls,c,d);b=g.t(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?bEa(a,f):"confirmDialogEndpoint"===e?cEa(a,f):eEa.hasOwnProperty(e)||dEa(a,e,f,c,d)}};
fEa=function(a,b,c,d,e){e=void 0===e?{}:e;if((a=a.rf.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.CD(f)}else b=new g.bA("Unhandled field",b),g.DD(b)};
dEa=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.CD(f)}else b=new g.bA("Unhandled field",b),g.DD(b)};
hEa=function(a,b,c,d){for(var e=!1,f=g.t(b.Vk.entries()),h=f.next();!h.done;h=f.next())h=g.t(h.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===h.slotType&&"core"===h.bb&&(e=!0);e?(d=gEa(b,d))?c.nM(d):GD("No triggering layout ID available when attempting to mute."):g.Mf(function(){a.Sr()})};
gEa=function(a,b){if(b)return b;a=g.t(a.Vk.entries());for(b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;if("SLOT_TYPE_IN_PLAYER"===b.slotType&&"core"===b.bb)return c.layoutId}};
iEa=function(a){var b=new FN(a.Dl),c=new JN(b);return{l3:function(){return b},
YL:function(){return c}}};
SP=function(a){xO.call(this,a)};
RBa=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 "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}};
jEa=function(a){this.F=a;var b=am(tp),c=a.mf();b.B!==c&&((b.B=c)||Jka(b));a.V().K("active_view_stop_starting_measurement_on_loaded")&&ul(fm().Cc,"ssmol",1)};
LBa=function(a){vp(am(tp),a)};
kEa=function(a){g.C.call(this);this.j=a;this.u=new jEa(a.F)};
lEa=function(a){return function(){return new SP(a.j.F)}};
mEa=function(a){return function(b,c){return new MBa(b,a.u,c,a.j.F,a.j.Wl,a.j.daiEnabled)}};
TP=function(a,b,c,d,e){g.dE.call(this);var f=this;this.j=b;this.Ga=null;this.fb=c;this.kb=e.Di;this.Ya=e.qt;this.u=null;this.B=new Map;c=this.j.V().experiments;var h=iEa({Dl:b.getVideoData(1)}),l=new kEa({Wl:h.YL(),F:b,daiEnabled:!1});g.E(this,l);this.mu=new Set;this.qG=-1;this.ea=[];this.Z=new Map;this.I=new Map;this.J=new Set;this.C=new Jz(this);g.E(this,this.C);this.D=new Jz(this);g.E(this,this.D);this.oa=this.Xa=this.ya=!1;this.T=g.FK(b.V());this.tb=d;b=new SDa({contentCpn:this.j.getVideoData(1).clientPlaybackNonce,
C6a:this,daiEnabled:!1,F:this.j});g.E(this,b);this.ib=b.S_;this.La=(new jCa).j;var m=iba(CN(BN(this.j)));e=new hCa({xe:this,DB:kN(),Wl:h.YL(),F:this.j,j8:m,PP:mEa(l),daiEnabled:!1,Aq:e.Aq,Di:this.kb,Tm:e.Tm,zq:e.zq});this.Aa=(new JDa({fu:this.fb,ju:e.F1,mK:a,wi:this,DB:kN(),fT:lEa(l),Lp:this.ib,jy:this.La,F:this.j,E8a:m,PP:function(n){return mEa(l)(n,m)},
daiEnabled:!1})).DT();this.Ja=QDa({G1:new NDa(c,function(n){return f.I.has(n)?f.I.get(n):null})}).ET();
this.Qa=RDa(this.j);g.E(this,this.Qa);this.Pb=KK(this.j.V())?this.j.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit_living_room"):this.j.V().experiments.ob("align_ad_to_video_player_lifecycle_for_bulleit")};
sEa=function(a,b){if(a.j.getVideoData(1).Du||g.ey("SERVED_VIA_SPF_HISTORY"))UP(a);else{if(dN(a.j)){var c=nEa(a.j);c.addEventListener("updateKevlarOrC3Companion",TDa);c.addEventListener("updateEngagementPanelAction",UDa);c.addEventListener("changeEngagementPanelVisibility",VDa);window.addEventListener("yt-navigate-start",WDa)}a.C.S(a.j,"applicationplayerstatechange",a.z5);a.C.S(a.j,g.ZD("ad"),a.IN,a);a.C.S(a.j,g.$D("ad"),a.R5,a);a.C.S(a.j,"aduxclicked",a.n5);a.C.S(a.j,"videodatachange",a.Q7);b=oEa(b);
b=pEa(a,b);b=qEa(a,b);0<b.length&&rEa(a,b);g.Mf(a.M9,a)}};
oEa=function(a){return a.filter(function(b){return"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"==(b.config&&b.config.adPlacementConfig&&b.config.adPlacementConfig.kind||null)?(GD("Tries to extract CuePoint triggered AdPlacementRenderer."),!1):!0})};
pEa=function(a,b){a.Z=new Map;return b.filter(function(c){return"AD_PLACEMENT_KIND_COMMAND_TRIGGERED"==(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind||null)&&c.elementId?(a.Z.set(c.elementId,c),!1):!0})};
qEa=function(a,b){a.I=new Map;return b.filter(function(c){return(c=c.renderer.remoteSlotsRenderer)&&c.hostElementId?(a.I.set(c.hostElementId,c),!1):!0})};
tEa=function(a,b){return b.every(function(c){c=a.B.get(c);return null==c?(g.CD(Error("AdCueRange without a corresponding AdPlacement.")),!0):c instanceof CP?!1:c instanceof VO?!c.fv():!0})};
UP=function(a){var b=uEa(a);if(0<b.length){var c=g.gJ(a.j.V().experiments,"delay_ads_gvi_call_on_bulleit_living_room_ms");0<c&&!a.T&&g.tK(a.j.V())?(c=new g.Ip(function(){vEa(a,b)},c),g.E(a,c),c.start()):g.Mf(function(){vEa(a,b)})}};
uEa=function(a){for(var b=wEa(a),c=g.t(b),d=c.next();!d.done;d=c.next())a.mu.delete(d.value);return b};
wEa=function(a){var b=[];a=g.t(a.mu);for(var c=a.next();!c.done;c=a.next())c=c.value,bE(c)&&b.push(c);return b};
xEa=function(a,b){var c=null;c=void 0===c?null:c;var d=a.Ja,e=d.create;var f=1E3*a.j.getDuration(1);f=new Csa(f,1E3*a.j.getCurrentTime(1)||0,!1,a.j.V().experiments.ob("html5_recognize_predict_start_cue_point"));b=e.call(d,b,f,a.ea.length,c);a.ea=a.ea.concat(b);return b};
vEa=function(a,b){if(!a.isDisposed()){b=g.t(b);for(var c=b.next();!c.done;c=b.next())a.IN(c.value)}};
rEa=function(a,b){b=xEa(a,b);0==b.length||b.map(function(c){return a.Aa.create(c)})};
yEa=function(a){a.ya||(a.D.S(a.j,"presentingplayerstatechange",a.T_),a.D.S(a.j,"internalAbandon",a.b5),a.D.S(a.j,"progresssync",a.T7),a.D.S(a.j,"onVolumeChange",a.U7),a.D.S(a.Qa,"fullscreentoggled",a.a6),a.ya=!0);g.Qp(a.j.getRootNode(),"ad-showing");g.Qp(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.ob("enable_html5_teal_ad_badge")&&dN(a.j)&&g.Qp(a.j.getRootNode(),"ad-teal-design");a.j.cueVideoByPlayerVars({videoId:"workaround"},2)};
YO=function(a,b,c){var d=!!a.u&&a.u||null,e=d&&d.fv()&&(cN(a.j)||!1);d=b&&d&&d.reset()||null;a.u&&zEa(a,a.u);a.u=null;a.qG=-1;e&&AEa(a,c);a.oa||VP(a.Ya);b&&d&&(d.iR().u=!1,WO(d))};
AEa=function(a,b){g.Lz(a.D);a.ya=!1;g.Sp(a.j.getRootNode(),"ad-showing");a.Pb?(a.oa||VP(a.Ya),BEa(a),a.j.cueVideoByPlayerVars({},2)):(a.j.cueVideoByPlayerVars({},2),BEa(a));g.Sp(a.j.getRootNode(),"ad-interrupting");a.j.V().experiments.ob("enable_html5_teal_ad_badge")&&g.Sp(a.j.getRootNode(),"ad-teal-design");b&&b(a.j)};
BEa=function(a){if(a.Xa)!a.T&&g.tK(a.j.V())&&a.j.Nq();else if(a.j.Nq(),!a.T){var b=a.j.Cb(1);g.QO(b)&&!g.S(b,2)&&a.j.playVideo()}};
zEa=function(a,b){a=a.B;for(var c=g.t(a),d=c.next();!d.done;d=c.next()){d=g.t(d.value);var e=d.next().value;if(d.next().value==b){a.delete(e);break}}g.Za(b)};
WP=function(a){g.C.call(this);this.u=a};
XP=function(a){WP.call(this,!0);this.j=a};
CEa=function(a,b){g.C.call(this);var c=this;this.B=[];this.J=!1;this.u=0;this.D=this.I=this.C=!1;this.Z=null;var d=(0,g.Oa)(a,b);this.j=new g.Ip(function(){return d(c.Z)},300);
g.E(this,this.j);this.ea=this.T=Infinity};
DEa=function(a,b){if(!b)return!1;for(var c=0;c<b.length;c++){var d=b.item(c);if(d&&a.B.includes(d.identifier))return!0}return!1};
YP=function(){var a="ytp-id-"+EEa.toString();EEa++;return a};
g.ZP=function(a){g.C.call(this);this.Pb={};this.Nd={};this.element=this.createElement(a)};
$P=function(a,b,c,d){if("{{"===d.substr(0,2))a.Nd[d]=[b,c];else return d};
FEa=function(a,b){var c=[];if(!b)return c;b=g.t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.G?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.qf("BR"));c.push(g.rf(f))}):c.push(g.rf(d))}return c};
aQ=function(a,b,c,d){if("child"===c){g.vf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.G?[d]:d;c=FEa(a,e);c=g.t(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.Hm(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.be(g.he(a))),b.setAttribute(c,a))};
g.U=function(a){g.ZP.call(this,a);this.yb=!0;this.ea=!1;this.listeners=[]};
g.bQ=function(a,b){b?a.show():a.hide()};
cQ=function(a,b){a.element.setAttribute("aria-label",b)};
g.dQ=function(a){g.U.call(this,a);this.La=new g.dE;g.E(this,this.La)};
eQ=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.dQ.call(this,b);this.api=a;this.macros={};this.componentType=c;this.I=null;this.kb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.rb=f;this.Xa=null;this.VO=new XP(this.element);g.E(this,this.VO);this.ib=this.S(this.element,"click",this.onClick);this.ya=[];this.oa=new CEa(this.onClick,this);g.E(this,this.oa);this.tb=!1;this.T=null};
fQ=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.DD(Error("Got null or undefined adText object")),"";var c=g.Qe(a.text);if(!a.isTemplated)return c;if(null==b)return g.DD(Error("Missing required parameters for a templated message")),c;a=g.t(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.t(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
GEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.sb(a.thumbnails)||null==a.thumbnails[0].url)?"":g.Qe(a.thumbnails[0].url)};
HEa=function(a){a=void 0===a?null:a;return null==a||(a=a.thumbnail,null==a||null==a.thumbnails||g.sb(a.thumbnails)||null==a.thumbnails[0].width||null==a.thumbnails[0].height)?new g.He(0,0):new g.He(a.thumbnails[0].width||0,a.thumbnails[0].height||0)};
g.IEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
gQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.hQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{G:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.iQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},W:[{G:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
JEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{G:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
KEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
LEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.jQ=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
MEa=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
NEa=function(){return{G:"svg",X:{viewBox:"0 0 24 24"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
OEa=function(){return{G:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{G:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",X:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
PEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
g.kQ=function(){return{G:"svg",X:{viewBox:"0 0 24 24"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
lQ=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
QEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
mQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.nQ=function(){return{G:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{G:"path",X:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
oQ=function(){return{G:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},W:[{G:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{G:"path",X:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
REa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
SEa=function(){return{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",N:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
TEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
pQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
UEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.qQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.rQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.sQ=function(){return{G:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},W:[{G:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
VEa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
tQ=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
uQ=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":return oQ();case "CHECK_BOX":return{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",
fill:"#d4d4d4"}},{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.jQ();case "INFO_OUTLINE":return OEa();case "REMOVE_CIRCLE":return{G:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return mQ();case "LIKE":return g.kQ();case "DISLIKE":return NEa();default:return g.DD(new g.bA("Unexpected icon:",
a)),null}};
vQ=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;f=void 0===f?"button":f;h=void 0===h?!1:h;e={G:"button",Ia:["ytp-ad-button"].concat(e)};null!=l&&(e.X={tabindex:l});eQ.call(this,a,e,f,b,c,d);this.j=this.u=this.B=null;this.C=h;this.hide()};
WEa=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
wQ=function(){g.C.call(this);var a=this;this.j=new Map;this.u=Koa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.ZB(b[c])})};
XEa=function(){null==xQ&&(xQ=new wQ);return xQ};
yQ=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=YEa(a))){b=pf("SPAN",null,b);break a}b=g.rf(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(ZEa(e,b))}return 1==c.length?c[0]:pf("SPAN",null,c)};
ZEa=function(a,b){var c=null,d=a.text;b&&(d=YEa(d)||d);a.bold&&(c=pf("B",null,c||d));a.italics&&(c=pf("I",null,c||d));a.strikethrough&&(c=pf("STRIKE",null,c||d));a.navigationEndpoint&&g.K(a.navigationEndpoint,g.pM)&&(b=g.K(a.navigationEndpoint,g.pM),c=pf("A",null,c||d),g.xe(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),XEa().register(c,a),g.Qp(c,"ytp-ad-has-logging-urls"));
return c||pf("SPAN",null,d)};
YEa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(pf("BR")),b.push(a[c]);return b}return null};
zQ=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;l=void 0===l?"ad-hover-text-button":l;eQ.call(this,a,{G:"span",Ia:["ytp-ad-hover-text-button"].concat(h)},l,b,c,d);this.button=this.u=null;this.D=f;this.C=e;this.hide()};
AQ=function(a){return a&&a.thumbnails&&!g.sb(a.thumbnails||null)&&a.thumbnails[0].url?g.Qe(a.thumbnails[0].url):""};
BQ=function(a,b,c,d,e,f){f=void 0===f?!1:f;eQ.call(this,a,{G:"img",N:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
CQ=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"confirm-dialog":f;eQ.call(this,a,{G:"div",Ia:["ytp-ad-confirm-dialog-background"],W:[{G:"div",N:"ytp-ad-confirm-dialog-container",W:[{G:"div",Ia:["ytp-ad-confirm-dialog"].concat(e),X:{role:"dialog",tabindex:"-1"},W:[{G:"div",N:"ytp-ad-confirm-dialog-title",ra:"{{title}}"},{G:"div",N:"ytp-ad-confirm-dialog-messages"},{G:"div",N:"ytp-ad-confirm-dialog-confirm-container",W:[{G:"button",N:"ytp-ad-confirm-dialog-cancel-button",ra:"{{cancelLabel}}"},
{G:"button",N:"ytp-ad-confirm-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]},{G:"button",Ia:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],W:[{G:"span",N:"ytp-ad-button-icon",W:[g.jQ()]}]}]},f,b,c,d);this.J=this.Da("ytp-ad-confirm-dialog-close-overlay-button");this.C=this.Da("ytp-ad-confirm-dialog-cancel-button");this.D=this.Da("ytp-ad-confirm-dialog-confirm-button");this.Z=this.Da("ytp-ad-confirm-dialog-messages");this.B=null;this.j=new Jz;g.E(this,this.j);
this.u=null;this.hide()};
$Ea=function(a,b){if(b.title){var c=g.gE(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.t(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=yQ(d.value),a.Z.appendChild(d)}b.cancelLabel&&(c=g.gE(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.S(a.C,"click",function(e){return a.CJ(e)}));
b.confirmLabel&&(b=g.gE(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.S(a.D,"click",function(e){return a.GN(e)}));
a.j.S(a.J,"click",function(e){return a.FN(e)})};
DQ=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=fN("ytp-ad-toggle-button-input");eQ.call(this,a,{G:"div",Ia:["ytp-ad-toggle-button"].concat(e),W:[{G:"label",N:"ytp-ad-toggle-button-label",X:{"for":h},W:[{G:"span",N:"ytp-ad-toggle-button-icon",X:{role:"button","aria-label":"{{tooltipText}}"},W:[{G:"span",N:"ytp-ad-toggle-button-untoggled-icon",ra:"{{untoggledIconTemplateSpec}}"},{G:"span",N:"ytp-ad-toggle-button-toggled-icon",ra:"{{toggledIconTemplateSpec}}"}]},{G:"input",
N:"ytp-ad-toggle-button-input",X:{id:h,type:"checkbox"}},{G:"span",N:"ytp-ad-toggle-button-text",ra:"{{buttonText}}"},{G:"span",N:"ytp-ad-toggle-button-tooltip",ra:"{{tooltipText}}"}]}]},f,b,c,d);this.B=this.Da("ytp-ad-toggle-button");this.j=this.Da("ytp-ad-toggle-button-input");this.Da("ytp-ad-toggle-button-label");this.Z=this.Da("ytp-ad-toggle-button-icon");this.D=this.Da("ytp-ad-toggle-button-untoggled-icon");this.C=this.Da("ytp-ad-toggle-button-toggled-icon");this.Aa=this.Da("ytp-ad-toggle-button-text");
this.u=null;this.J=!1;this.hide()};
EQ=function(a){a.J&&(a.isToggled()?(g.Tm(a.D,!1),g.Tm(a.C,!0)):(g.Tm(a.D,!0),g.Tm(a.C,!1)))};
aFa=function(a,b){var c=null;a.u&&(c=(b?[a.u.defaultServiceEndpoint,a.u.defaultNavigationEndpoint]:[a.u.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
FQ=function(a){Jz.call(this);this.j=a;this.S(this.j,"onAdUxUpdate",this.I)};
GQ=function(a,b,c,d){eQ.call(this,a,{G:"div",N:"ytp-ad-feedback-dialog-background",W:[{G:"div",N:"ytp-ad-feedback-dialog-container",W:[{G:"div",N:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{G:"div",N:"ytp-ad-feedback-dialog-title",W:[{G:"span",ra:"{{title}}"}]},{G:"span",N:"ytp-ad-info-dialog-feedback-options-title",ra:"{{reasonsTitle}}"},{G:"div",N:"ytp-ad-info-dialog-feedback-options"},{G:"div",N:"ytp-ad-feedback-dialog-confirm-container",W:[{G:"button",N:"ytp-ad-feedback-dialog-cancel-button",
ra:"{{cancelLabel}}"},{G:"button",N:"ytp-ad-feedback-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.C=[];this.j=null;this.D=this.Da("ytp-ad-feedback-dialog-cancel-button");this.J=this.Da("ytp-ad-feedback-dialog-confirm-button");this.Z=this.Da("ytp-ad-info-dialog-feedback-options");this.Aa=this.Da("ytp-ad-feedback-dialog-title");this.B=this.u=null;this.hide()};
eFa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new vQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,["ytp-ad-feedback-dialog-close-button"],"button"),g.E(a,a.j),a.j.init(fN("button"),c,a.macros),a.j.Ra("click",a.aW,a),a.j.Ea(a.element));b.title&&(c=g.gE(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.gE(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&bFa(a,b.reasons);b.cancelLabel&&(c=g.gE(b.cancelLabel),a.updateValue("cancelLabel",
c),g.Ez(a.D,"click",function(){return a.aW()}));
b.confirmLabel&&(c=g.gE(b.confirmLabel),a.updateValue("confirmLabel",c),g.Ez(a.J,"click",function(){return cFa(a)}));
b.undoRenderer&&dFa(a,b.undoRenderer)};
bFa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;null==c?g.DD(Error("AdFeedbackReason.reason was not set.")):(d=d.endpoint,null==d?g.DD(Error("AdFeedbackReason.endpoint was not set.")):(c=new HQ(c,d),g.E(a,c),d=c.ub(),a.Z.appendChild(d),a.C.push(c)))}};
dFa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.u=new vQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.E(a,a.u),a.u.init(fN("ad-feedback-undo-mute-button"),b,a.macros),a.u.Ra("click",a.P7,a),a.u.Ea(a.Aa)):g.DD(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
cFa=function(a){var b=a.C.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].u,a.layoutId?a.rb.executeCommand(b,a.layoutId):g.CD(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.ma("a"),a.hide())};
HQ=function(a,b){this.u=b;this.j=new g.dQ({G:"label",N:"ytp-ad-feedback-dialog-reason-label",W:[{G:"input",N:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{G:"span",N:"ytp-ad-feedback-dialog-reason-text",ra:g.gE(a)}]});this.B=this.j.Da("ytp-ad-feedback-dialog-reason-input")};
IQ=function(a,b,c,d){CQ.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
JQ=function(a,b,c,d,e){eQ.call(this,a,{G:"div",N:"ytp-ad-info-dialog-background",W:[{G:"div",N:"ytp-ad-info-dialog-container",W:[{G:"div",N:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},W:[{G:"div",N:"ytp-ad-info-dialog-title",ra:"{{title}}"},{G:"ul",N:"ytp-ad-info-dialog-ad-reasons"},{G:"div",N:"ytp-ad-info-dialog-message"},{G:"div",N:"ytp-ad-info-dialog-mute-container"},{G:"div",N:"ytp-ad-info-dialog-confirm-container",W:[{G:"button",N:"ytp-ad-info-dialog-confirm-button",ra:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.u=null;this.J=this.Da("ytp-ad-info-dialog-confirm-button");this.Ya=this.Da("ytp-ad-info-dialog-mute-container");this.Qa=this.Da("ytp-ad-info-dialog-message");this.Ga=this.Da("ytp-ad-info-dialog-ad-reasons");this.C=this.B=null;this.Aa=e;this.D=null;this.Ja=!1;this.Z=null;this.hide()};
fFa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.u=new GQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb),g.E(a,a.u),a.u.init(fN("ad-feedback-dialog"),b,a.macros),a.u.Ea(a.Aa),a.u.subscribe("a",function(){return a.ma("c")})};
gFa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.C=new IQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb),g.E(a,a.C),a.C.init(fN("ad-mute-confirm-dialog"),b,a.macros),a.C.Ea(a.Aa),a.C.subscribe("b",function(){return a.ma("c")})};
hFa=function(a){a.j&&a.j.Ra("click",a.vR,a);g.Ez(a.J,"click",function(){return a.vR()})};
KQ=function(a,b,c,d,e,f){zQ.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.B=e;this.hide()};
jFa=function(a,b,c){b=b.dialog&&g.K(b.dialog,iFa)||null;null==b?g.CD(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new JQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.B),g.E(a,a.j),a.j.init(fN("ad-info-dialog"),b,c),a.j.Ea(a.B),a.j.subscribe("d",function(){return a.ma("f")}),a.j.subscribe("c",function(){return a.ma("e")}))};
mFa=function(a,b,c){null==a.button?g.CD(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.u&&g.Qp(a.u.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.K(b.serviceEndpoint,kFa)||null)?(jFa(a,b,c),a.button.Ra("click",function(){a.j&&!a.j.yb&&(a.j.show(),lFa(a))})):a.button.Ra("click",function(){return lFa(a)}))};
lFa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
LQ=function(a,b,c,d,e,f){eQ.call(this,a,{G:"div",N:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
MQ=function(a,b){b&&g.Af(a.element,fQ(a.j,b))};
NQ=function(a,b,c,d,e,f,h){eQ.call(this,a,b,c,d,e,f);this.j=h;g.E(this,this.j);this.Ga=this.D=-1};
OQ=function(a){a.j&&-1===a.D&&(a.D=a.j.subscribe("h",a.ut,a),a.Ga=a.j.subscribe("g",a.Vv,a),a.ut())};
PQ=function(a){null!=a.j&&-1!==a.D&&(a.j.Gh(a.D),a.j.Gh(a.Ga),a.Ga=-1,a.D=-1)};
g.QQ=function(a,b,c,d,e,f){g.C.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.u=e;this.delay=new g.Ip(this.TE,0,this);g.E(this,this.delay)};
RQ=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
SQ=function(a,b,c,d,e,f){NQ.call(this,a,{G:"div",N:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Qa=-1;this.u=new g.dQ({G:"span",N:"ytp-ad-preview-container"});g.E(this,this.u);this.B=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-preview-text");g.E(this,this.B);this.B.Ea(this.u.element);this.J=new g.dQ({G:"span",N:"ytp-ad-preview-image"});g.E(this,this.J);this.C=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb);g.E(this,this.C);
this.C.Ea(this.J.element);this.J.Ea(this.u.element);this.u.Ea(this.element);this.Z=new g.QQ(this.u,400,!1,100,function(){return h.hide()});
g.E(this,this.Z);this.Aa=0;this.Ja=!1;this.Ya=f;this.hide()};
TQ=function(a){a.Z.show(100);a.show()};
UQ=function(a,b,c,d,e){NQ.call(this,a,{G:"div",Ia:["ytp-flyout-cta","ytp-flyout-cta-inactive"],W:[{G:"div",N:"ytp-flyout-cta-icon-container"},{G:"div",N:"ytp-flyout-cta-body",W:[{G:"div",N:"ytp-flyout-cta-text-container",W:[{G:"div",N:"ytp-flyout-cta-headline-container"},{G:"div",N:"ytp-flyout-cta-description-container"}]},{G:"div",N:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",b,c,d,e);this.C=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-flyout-cta-icon");
g.E(this,this.C);this.C.Ea(this.Da("ytp-flyout-cta-icon-container"));this.api.V().K("web_rounded_thumbnails")&&this.C.element.classList.add("ytp-flyout-cta-icon-rounded");this.B=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-flyout-cta-headline");g.E(this,this.B);this.B.Ea(this.Da("ytp-flyout-cta-headline-container"));this.J=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-flyout-cta-description");g.E(this,this.J);this.J.Ea(this.Da("ytp-flyout-cta-description-container"));
a=["ytp-flyout-cta-action-button"];this.api.V().K("web_modern_buttons")&&a.push("ytp-flyout-cta-action-button-rounded");this.u=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,a);g.E(this,this.u);this.u.Ea(this.Da("ytp-flyout-cta-action-button-container"));this.u.element.setAttribute("tabIndex","-1");this.api.V().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&Cp(this.u.element);this.Z=null;this.Aa=0;this.hide()};
VQ=function(a,b,c,d,e){eQ.call(this,a,{G:"div",N:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.B=new DQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-instream-user-sentiment-like-button"]);g.E(this,this.B);this.B.Ea(this.element);this.u=new DQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-instream-user-sentiment-dislike-button"]);g.E(this,this.u);this.u.Ea(this.element);
this.C=new g.QQ(this,400,!1,500,function(){return f.hide()});
g.E(this,this.C);this.hide()};
WQ=function(a,b,c,d,e){e=void 0===e?0:e;g.C.call(this);this.B=a;this.u=!1;this.ea=d;this.I=!1;this.j=null;0<b&&(this.j=new g.Ip(this.AS,b,this),g.E(this,this.j));this.D=new g.Ip(this.AS,c,this);g.E(this,this.D);this.T=mla(this.B,e,1,d);g.E(this,this.T);this.J=mla(this.B,0,d,1);g.E(this,this.J);this.C=new Jz;g.E(this,this.C)};
XQ=function(a,b,c,d,e,f){NQ.call(this,a,{G:"div",N:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.J=null;this.Aa=!1;this.Ja=f;this.Qa=!1;this.C=new g.dQ({G:"span",Ia:["ytp-ad-skip-button-container"]});g.E(this,this.C);this.C.Ea(this.element);this.B=this.u=null;this.Ya=new g.QQ(this.C,500,!1,100,function(){return h.hide()});
g.E(this,this.Ya);this.Z=new WQ(this.C.element,15E3,5E3,.5,.5);g.E(this,this.Z);this.hide()};
oFa=function(a){a=a.J&&a.J.adRendererCommands;return(a&&a.clickCommand&&g.K(a.clickCommand,g.YQ)&&g.K(a.clickCommand,g.YQ).commands||[]).some(function(b){return b.adLifecycleCommand?nFa(b.adLifecycleCommand):!1})};
nFa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
ZQ=function(a,b,c,d,e,f){NQ.call(this,a,{G:"div",N:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.Z=f;this.C=!1;this.J=0;this.B=this.u=null;this.hide()};
pFa=function(a,b){a.C||(a.C=!0,a.u&&(b?a.u.Z.hide():a.u.hide()),b?(a=a.B,a.Ya.show(),a.show()):a.B.show())};
$Q=function(a,b,c,d){vQ.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
aR=function(a,b,c,d,e){e=void 0===e?!1:e;eQ.call(this,a,{G:"span",N:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,c,d);this.j=e;this.hide()};
bR=function(a,b,c,d,e){e=void 0===e?!1:e;gN.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.gI=e};
cR=function(a,b){g.dE.call(this);this.api=a;this.durationMs=b;this.j=null;this.ud=new Jz(this);g.E(this,this.ud);this.u=qFa;this.ud.S(this.api,"presentingplayerstatechange",this.yd);this.j=this.ud.S(this.api,"onAdPlaybackProgress",this.yc)};
dR=function(a,b){g.dE.call(this);this.xe=b;this.j=!1;this.Mi=0;this.ud=new Jz(this);g.E(this,this.ud);this.durationMs=a;this.timer=new g.$f(100);g.E(this,this.timer);this.ud.S(this.timer,"tick",this.yc);this.u={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.eR=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" Days");if(0<d||0<e)b+=" "+e+" Hours";b+=" "+f+" Minutes";b+=" "+c+" Seconds";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.fR=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
gR=function(a,b,c,d,e,f){NQ.call(this,a,{G:"span",N:"ytp-ad-duration-remaining"},"ad-duration-remaining",b,c,d,e);this.videoAdDurationSeconds=f;this.u=null;this.hide()};
hR=function(a,b,c,d){LQ.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
iR=function(a,b){this.u=a;this.j=b};
rFa=function(a,b){return a.u+b*(a.j-a.u)};
jR=function(a,b,c){return a.j-a.u?g.ze((b-a.u)/(a.j-a.u),0,1):null!=c?c:Infinity};
kR=function(a,b){g.dQ.call(this,{G:"div",N:"ytp-ad-persistent-progress-bar-container",W:[{G:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=a;this.u=b;g.E(this,this.u);this.Kc=this.Da("ytp-ad-persistent-progress-bar");this.j=-1;this.S(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
lR=function(a,b,c,d,e,f){eQ.call(this,a,{G:"div",N:"ytp-ad-player-overlay",W:[{G:"div",N:"ytp-ad-player-overlay-flyout-cta"},{G:"div",N:"ytp-ad-player-overlay-instream-info"},{G:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",N:"ytp-ad-player-overlay-progress-bar"},{G:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.J=f;this.C=this.Da("ytp-ad-player-overlay-flyout-cta");this.api.V().K("web_rounded_thumbnails")&&this.C.classList.add("ytp-ad-player-overlay-flyout-cta-rounded");
this.u=this.Da("ytp-ad-player-overlay-instream-info");this.B=null;sFa(this)&&(a=pf("div"),g.Qp(a,"ytp-ad-player-overlay-top-bar-gradients"),b=this.u,b.parentNode&&b.parentNode.insertBefore(a,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(c=new hR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),c.Ea(a),c.init(fN("ad-title"),{text:b.title},this.macros),g.E(this,c)),this.B=a);this.D=this.Da("ytp-ad-player-overlay-skip-or-preview");this.Aa=this.Da("ytp-ad-player-overlay-progress-bar");
this.Z=this.Da("ytp-ad-player-overlay-instream-user-sentiment");this.j=e;g.E(this,this.j);this.hide()};
sFa=function(a){a=a.api.V();return g.nK(a)&&a.u};
mR=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.Zi("/sharing_services",a);g.ZB(d)};
g.nR=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
vFa=function(a,b){if(!a)return!1;var c,d=null==(c=g.K(a,tFa))?void 0:c.signal;if(d&&b.ow)return!!b.ow[d];var e;if((c=null==(e=g.K(a,uFa))?void 0:e.request)&&b.ZK)return!!b.ZK[c];for(var f in a)if(b.VK[f])return!0;return!1};
wFa=function(a,b){var c,d=null==(c=g.K(a,tFa))?void 0:c.signal;if(d&&b.ow&&(c=b.ow[d]))return c();var e;if((c=null==(e=g.K(a,uFa))?void 0:e.request)&&b.ZK&&(e=b.ZK[c]))return e();for(var f in a)if(b.VK[f]&&(a=b.VK[f]))return a()};
oR=function(a){return function(){return new a}};
yFa=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=xFa[b];if(c){var d=new RegExp(c),e=g.t(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,d.exec(c))return c}var f=[];Object.entries(xFa).forEach(function(h){var l=g.t(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
d=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
e=g.t(a);for(c=e.next();!c.done;c=e.next())if(c=c.value,!d.exec(c))return c;return a[0]};
g.pR=function(a){return"/youtubei/v1/"+yFa(a)};
qR=function(){};
rR=function(){};
sR=function(a,b,c,d){this.rL=a;this.Zg=b;this.j=c;this.C=d;this.B=void 0;this.u=new Map;a.ow||(a.ow={});a.ow=Object.assign({},zFa,a.ow)};
AFa=function(a,b,c,d){if(void 0!==sR.instance){if(d=sR.instance,a=[a!==d.rL,b!==d.Zg,c!==d.j,!1,!1,void 0!==d.B],a.some(function(e){return e}))throw new g.bA("InnerTubeTransportService is already initialized",a);
}else sR.instance=new sR(a,b,c,d)};
tR=function(a,b,c){var d=void 0===d?GB:d;var e=wFa(b,a.rL);if(!e)return Rf(new g.bA("Error: No request builder found for command.",b));var f=e.D(b,c,d);return f?new g.Of(function(h){var l,m,n;return g.A(function(p){if(1==p.j)return m="cors"===(null==(l=f.xt)?void 0:l.mode)?"cors":void 0,a.j.cY?(n=BFa(a,f.config,m),p.Ka(2)):g.y(p,CFa(a,f.config,m),3);2!=p.j&&(n=p.u);h(DFa(a,f,n));g.oa(p)})}):Rf(new g.bA("Error: Failed to build request for command.",b))};
g.AP=function(a,b,c,d,e){e=void 0===e?{wu:{identity:GB}}:e;var f=void 0===f?!0:f;b.context||(b.context=g.uP(d,f));return new g.Of(function(h){var l,m,n,p,q;return g.A(function(r){if(1==r.j)return l=Uy(c),m=vy(l)?"same-origin":"cors",a.j.cY?(n=BFa(a,e,m),r.Ka(2)):g.y(r,CFa(a,e,m),3);2!=r.j&&(n=r.u);var v=n;p=foa(Uy(c),v);q={input:p,xt:Vy(p),Ro:b,config:e};h(DFa(a,q,n));g.oa(r)})})};
FFa=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.p8a)?0:d.D8a)&&a.C){d=g.t(EFa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.C[e]&&a.C[e].handleResponse(b,c)}};
DFa=function(a,b,c){var d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G,D,L,P,T,fa,V,Q,X,O,la,qa,Ma,Qa;return g.A(function(ua){switch(ua.j){case 1:ua.Ka(2);break;case 3:if((d=ua.u)&&!d.isExpired())return ua.return(Promise.resolve(d.j()));case 2:if(!(null==(e=b)?0:null==(f=e.Ro)?0:f.context)){ua.Ka(4);break}h=b.Ro.context;if(!g.gy("web_async_context_processor")){l=g.t([]);for(m=l.next();!m.done;m=l.next())n=m.value,n.j8a(h);ua.Ka(4);break}return g.y(ua,[].reduce(function(ab,ta){return ab.then(function(){return ta.i8a(h)})},
Promise.resolve()),4);
case 4:if(null==(p=a.B)||!p.y8a(b.input,b.Ro)){ua.Ka(7);break}return g.y(ua,a.B.P7a(b.input,b.Ro),8);case 8:return q=ua.u,g.gy("kevlar_process_local_innertube_responses_killswitch")||FFa(a,q,b),ua.return(q);case 7:return(x=null==(v=b.config)?void 0:v.sf)&&a.u.has(x)&&g.gy("web_memoize_inflight_requests")?r=a.u.get(x):(z=JSON.stringify(b.Ro),G=null!=(F=null==(B=b.xt)?void 0:B.headers)?F:{},b.xt=Object.assign({},b.xt,{headers:Object.assign({},G,c)}),D=Object.assign({},b.xt),"POST"===b.xt.method&&(D=
Object.assign({},D,{body:z})),(null==(L=b.config)?0:L.H8)&&eF(b.config.H8),P=function(){return a.Zg.fetch(b.input,D,b.config)},r=P(),x&&a.u.set(x,r)),g.y(ua,r,9);
case 9:if((T=ua.u)&&"error"in T&&(null==(fa=T)?0:null==(V=fa.error)?0:V.details))for(Q=T.error.details,X=g.t(Q),O=X.next();!O.done;O=X.next())la=O.value,(qa=la["@type"])&&-1<GFa.indexOf(qa)&&(delete la["@type"],T=la);x&&a.u.has(x)&&a.u.delete(x);(null==(Ma=b.config)?0:Ma.L8)&&eF(b.config.L8);if(T||null==(Qa=a.B)||!Qa.x6a(b.input,b.Ro)){ua.Ka(10);break}return g.y(ua,a.B.O7a(b.input,b.Ro),11);case 11:T=ua.u;case 10:return FFa(a,T,b),ua.return(T||void 0)}})};
CFa=function(a,b,c){var d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.wu)?void 0:e.identity)||GB;m=null==(h=b)?void 0:null==(l=h.wu)?void 0:l.sessionIndex;var q=Qf(a.j.JB(f,{sessionIndex:m}));return g.y(p,q,2)}n=p.u;return p.return(Promise.resolve(Object.assign({},HFa(c),n)))})};
BFa=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.wu)?void 0:d.identity)||GB,f;b=null==b?void 0:null==(f=b.wu)?void 0:f.sessionIndex;a=a.j.JB(e,{sessionIndex:b});return Object.assign({},HFa(c),a)};
HFa=function(a){var b={"Content-Type":"application/json"};g.ey("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.ey("EOM_VISITOR_DATA"):g.ey("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.ey("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.ey("LOGGED_IN",!1);"cors"!==a&&((a=g.ey("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.ey("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=a),(a=g.ey("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=
g.ey("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
uR=function(){};
vR=function(){};
wR=function(){};
xR=function(){};
yR=function(){};
zR=function(){};
AR=function(a){this.j=a};
g.CR=function(a,b){if(!BR){var c=UC();QC(c,{EO:IFa,OY:AR});var d={VK:{feedbackEndpoint:oR(wR),modifyChannelNotificationPreferenceEndpoint:oR(xR),playlistEditEndpoint:oR(yR),subscribeEndpoint:oR(uR),unsubscribeEndpoint:oR(vR),webPlayerShareEntityServiceEndpoint:oR(zR)}},e=tP.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=Poa());void 0===b&&(b=c.resolve(IFa));AFa(d,b,a,f);QC(c,{EO:JFa,cQ:sR.instance});BR=c.resolve(JFa)}return BR};
DR=function(){};
KFa=function(){DR.instance||(DR.instance=new DR);return DR.instance};
MFa=function(){if(!g.gy("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.gy("disable_biscotti_fetch_entirely_for_all_web_clients")&&iz()){var a=g.ey("PLAYER_VARS",{});if("1"!=g.jd(a,"privembed",!1)&&!moa(a)){var b=function(){ER=!0;"google_ad_status"in window?dy("DCLKSTAT",1):dy("DCLKSTAT",2)};
try{g.sC("//web.archive.org/web/20230426095903/https://static.doubleclick.net/instream/ad_status.js",b)}catch(c){}LFa.push(g.Ap.xi(function(){if(!(ER||"google_ad_status"in window)){try{if(b){var c=""+g.Na(b),d=dra[c];d&&g.qC(d)}}catch(e){}ER=!0;dy("DCLKSTAT",3)}},5E3))}}};
FR=function(){var a=Number(g.ey("DCLKSTAT",0));return isNaN(a)?0:a};
GR=function(a,b,c){if(!g.gy("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)c?a(c(b[d])[1]):a(b[d]);else c?a(c(b)[1]):a(b)};
HR=function(a,b,c){if(!g.gy("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
W=function(a){g.gy("jspb_translator_log_errors")&&g.ly(a)};
OFa=function(a){var b=new wu,c=0;try{return void 0!==a.eventType&&(H(b,1,NFa[a.eventType]),c++),void 0!==a.storedEventsCount&&(H(b,2,a.storedEventsCount),c++),void 0!==a.expiredEventsCount&&(H(b,3,a.expiredEventsCount),c++),void 0!==a.averageTimeBetweenDispatchesMs&&(H(b,4,a.averageTimeBetweenDispatchesMs),c++),void 0!==a.oldestStoredEventAgeMs&&(H(b,5,a.oldestStoredEventAgeMs),c++),void 0!==a.metricIntervalMs&&(H(b,6,a.metricIntervalMs),c++),void 0!==a.dispatchedEventCount&&(H(b,7,a.dispatchedEventCount),
c++),void 0!==a.dispatchAttemptCount&&(H(b,8,a.dispatchAttemptCount),c++),void 0!==a.withDiskSpaceMs&&(H(b,9,a.withDiskSpaceMs),c++),void 0!==a.withNetworkMs&&(H(b,10,a.withNetworkMs),c++),void 0!==a.foregroundMs&&(H(b,11,a.foregroundMs),c++),void 0!==a.activeMs&&(H(b,12,a.activeMs),c++),void 0!==a.condensedPageBcSlackCount&&(H(b,13,a.condensedPageBcSlackCount),c++),void 0!==a.persistedDeleteUsedCount&&(H(b,14,a.persistedDeleteUsedCount),c++),void 0!==a.persistedDeleteCount&&(H(b,15,a.persistedDeleteCount),
c++),void 0!==a.eventDisabledCount&&(H(b,16,a.eventDisabledCount),c++),void 0!==a.identityResolutionErrorCount&&(H(b,17,a.identityResolutionErrorCount),c++),void 0!==a.exceededMaxRetryCount&&(H(b,18,a.exceededMaxRetryCount),c++),void 0!==a.condensedPageBcPersistFailCount&&(H(b,19,a.condensedPageBcPersistFailCount),c++),void 0!==a.couldNotUnloadPageCount&&(H(b,20,a.couldNotUnloadPageCount),c++),void 0!==a.pageWasCorruptedCount&&(H(b,24,a.pageWasCorruptedCount),c++),void 0!==a.badEventIndexCount&&(H(b,
27,a.badEventIndexCount),c++),void 0!==a.serializeErrorCount&&(H(b,25,a.serializeErrorCount),c++),void 0!==a.payloadInfoNotSetCount&&(H(b,21,a.payloadInfoNotSetCount),c++),void 0!==a.requestEmptyErrorCount&&(H(b,22,a.requestEmptyErrorCount),c++),void 0!==a.clientEventNotSetCount&&(H(b,23,a.clientEventNotSetCount),c++),void 0!==a.differentIdCount&&(H(b,26,a.differentIdCount),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
IR=function(a){var b=new Tv,c=0;try{void 0!==a.trackingParams&&(b.og(a.trackingParams),c++);void 0!==a.veType&&(H(b,2,a.veType),c++);void 0!==a.elementIndex&&(H(b,3,a.elementIndex),c++);void 0!==a.veCounter&&(H(b,6,a.veCounter),c++);if(a.dataElement){var d=IR(a.dataElement);d[0]&&(I(b,Tv,7,d[1]),c++)}void 0!==a.isCounterfactual&&(H(b,5,a.isCounterfactual),c++);if(a.youtubeData){var e=a.youtubeData,f=new Os,h=0;try{if(e.channelData){var l=e.channelData,m=new fs,n=0;try{void 0!==l.externalId&&(Rh(m,
1,l.externalId),n++);var p=[n===Object.keys(l).length,m]}catch(Ba){W(Ba),p=[!1,void 0]}var q=p;q[0]&&(I(f,fs,2,q[1]),h++)}if(e.channelItem){var r=e.channelItem,v=new gs,x=0;try{void 0!==r.externalId&&(Rh(v,1,r.externalId),x++);var z=[x===Object.keys(r).length,v]}catch(Ba){W(Ba),z=[!1,void 0]}var B=z;B[0]&&(I(f,gs,5,B[1]),h++)}if(e.playlistItem){var F=e.playlistItem,G=new ws,D=0;try{void 0!==F.externalPlaylistId&&(Rh(G,5,F.externalPlaylistId),D++);var L=[D===Object.keys(F).length,G]}catch(Ba){W(Ba),
L=[!1,void 0]}var P=L;P[0]&&(I(f,ws,6,P[1]),h++)}if(e.analyticsData){var T=e.analyticsData,fa=new ds,V=0;try{void 0!==T.tabName&&(H(fa,1,PFa[T.tabName]),V++);if(T.analysisVariant){var Q=T.analysisVariant,X=new Rr,O=0;try{if(Q.analysisSummary){var la=Q.analysisSummary,qa=new Er,Ma=0;try{void 0!==la.type&&(H(qa,1,QFa[la.type]),Ma++);void 0!==la.eligibility&&(H(qa,2,RFa[la.eligibility]),Ma++);void 0!==la.sentiment&&(H(qa,3,SFa[la.sentiment]),Ma++);var Qa=[Ma===Object.keys(la).length,qa]}catch(Ba){W(Ba),
Qa=[!1,void 0]}var ua=Qa;ua[0]&&(I(X,Er,1,ua[1]),O++)}if(Q.videoPerformanceVariant){var ab=TFa(Q.videoPerformanceVariant);ab[0]&&(Oh(X,Or,2,JR,ab[1]),O++)}if(Q.videoOverviewVariant){var ta=Q.videoOverviewVariant,db=new Pr,pb=0;try{void 0!==ta.timePeriod&&(H(db,1,KR[ta.timePeriod]),pb++);if(ta.videoPerformanceVariant){var Xa=TFa(ta.videoPerformanceVariant);Xa[0]&&(I(db,Or,2,Xa[1]),pb++)}void 0!==ta.durationTimePeriod&&(H(db,3,UFa[ta.durationTimePeriod]),pb++);var Db=[pb===Object.keys(ta).length,db]}catch(Ba){W(Ba),
Db=[!1,void 0]}var eb=Db;eb[0]&&(Oh(X,Pr,3,JR,eb[1]),O++)}if(Q.channelFluctuationVariant){var Ab=Q.channelFluctuationVariant,Fb=new Gr,rc=0;try{void 0!==Ab.views&&(H(Fb,1,LR[Ab.views]),rc++);void 0!==Ab.driver&&(H(Fb,2,VFa[Ab.driver]),rc++);void 0!==Ab.ctr&&(H(Fb,3,LR[Ab.ctr]),rc++);void 0!==Ab.impressions&&(H(Fb,4,LR[Ab.impressions]),rc++);void 0!==Ab.viewsPerVideo&&(H(Fb,5,LR[Ab.viewsPerVideo]),rc++);var Jc=[rc===Object.keys(Ab).length,Fb]}catch(Ba){W(Ba),Jc=[!1,void 0]}var me=Jc;me[0]&&(Oh(X,Gr,
4,JR,me[1]),O++)}if(Q.artistOverviewVariant){var zd=Q.artistOverviewVariant,de=new Fr,lc=0;try{void 0!==zd.timePeriod&&(H(de,1,KR[zd.timePeriod]),lc++);void 0!==zd.variantType&&(H(de,2,WFa[zd.variantType]),lc++);var fc=[lc===Object.keys(zd).length,de]}catch(Ba){W(Ba),fc=[!1,void 0]}var bd=fc;bd[0]&&(Oh(X,Fr,5,JR,bd[1]),O++)}if(Q.monthlySubsVariant){var Pd=XFa(Q.monthlySubsVariant);Pd[0]&&(Oh(X,Kr,6,JR,Pd[1]),O++)}if(Q.monthlyRevenueVariant){var Hb=YFa(Q.monthlyRevenueVariant);Hb[0]&&(Oh(X,Jr,7,JR,
Hb[1]),O++)}if(Q.holisticMonthlyOverviewVariant){var gb=Q.holisticMonthlyOverviewVariant,Wb=new Lr,Kc=0;try{if(gb.viewsPerformance){var ee=ZFa(gb.viewsPerformance);ee[0]&&(I(Wb,Ir,1,ee[1]),Kc++)}if(gb.subsPerformance){var lb=XFa(gb.subsPerformance);lb[0]&&(I(Wb,Kr,2,lb[1]),Kc++)}if(gb.revenuePerformance){var Ec=YFa(gb.revenuePerformance);Ec[0]&&(I(Wb,Jr,3,Ec[1]),Kc++)}var qb=[Kc===Object.keys(gb).length,Wb]}catch(Ba){W(Ba),qb=[!1,void 0]}var zc=qb;zc[0]&&(Oh(X,Lr,8,JR,zc[1]),O++)}if(Q.personalizedChannelOverviewVariant){var Xb=
Q.personalizedChannelOverviewVariant,Ne=new Nr,Qd=0;try{void 0!==Xb.timePeriod&&(H(Ne,1,KR[Xb.timePeriod]),Qd++);if(Xb.viewsPerformance){var gc=ZFa(Xb.viewsPerformance);gc[0]&&(I(Ne,Ir,2,gc[1]),Qd++)}var Ac=[Qd===Object.keys(Xb).length,Ne]}catch(Ba){W(Ba),Ac=[!1,void 0]}var Ad=Ac;Ad[0]&&(Oh(X,Nr,9,JR,Ad[1]),O++)}if(Q.channelNewReturningVariant){var sc=Q.channelNewReturningVariant,cd=new Hr,dd=0;try{void 0!==sc.uniqueViewers&&(H(cd,1,LR[sc.uniqueViewers]),dd++);void 0!==sc.newViewers&&(H(cd,2,LR[sc.newViewers]),
dd++);void 0!==sc.returningViewers&&(H(cd,3,LR[sc.returningViewers]),dd++);var Fc=[dd===Object.keys(sc).length,cd]}catch(Ba){W(Ba),Fc=[!1,void 0]}var Gd=Fc;Gd[0]&&(Oh(X,Hr,10,JR,Gd[1]),O++)}if(Q.lowReturningViewersDataStoryVariant){var Lc=Q.lowReturningViewersDataStoryVariant,Yb=new Mr,ub=0;try{void 0!==Lc.videoListType&&(H(Yb,1,$Fa[Lc.videoListType]),ub++);var vb=[ub===Object.keys(Lc).length,Yb]}catch(Ba){W(Ba),vb=[!1,void 0]}var jg=vb;jg[0]&&(Oh(X,Mr,11,JR,jg[1]),O++)}if(Q.weeklyDataStoryVariant){var kg=
Q.weeklyDataStoryVariant,ed=new Qr,Zb=0;try{void 0!==kg.dateId&&(H(ed,1,kg.dateId),Zb++);var Mc=[Zb===Object.keys(kg).length,ed]}catch(Ba){W(Ba),Mc=[!1,void 0]}var ld=Mc;ld[0]&&(Oh(X,Qr,12,JR,ld[1]),O++)}var fd=[O===Object.keys(Q).length,X]}catch(Ba){W(Ba),fd=[!1,void 0]}var sf=fd;sf[0]&&(I(fa,Rr,12,sf[1]),V++)}if(T.cardConfig){var qd=T.cardConfig,Rd=new Vr,$e=0;try{void 0!==qd.cardType&&(H(Rd,3,aGa[qd.cardType]),$e++);void 0!==qd.legacyMobileCardType&&(H(Rd,5,bGa[qd.legacyMobileCardType]),$e++);
void 0!==qd.entityType&&(H(Rd,4,cGa[qd.entityType]),$e++);if(qd.tableCardConfig){var Bd=qd.tableCardConfig,ne=new Ur,Tf=0;try{void 0!==Bd.dimension&&(H(ne,1,MR[Bd.dimension]),Tf++);void 0!==Bd.metrics&&(HR(ne.j.bind(ne),Bd.metrics,MR),Tf++);var xb=[Tf===Object.keys(Bd).length,ne]}catch(Ba){W(Ba),xb=[!1,void 0]}var aj=xb;aj[0]&&(Oh(Rd,Ur,1,dGa,aj[1]),$e++)}if(qd.keyMetricCardConfig){var Qg=qd.keyMetricCardConfig,xi=new Tr,bj=0;try{Qg.metricTabConfigs&&(GR(xi.j.bind(xi),Qg.metricTabConfigs,eGa),bj++);
var cj=[bj===Object.keys(Qg).length,xi]}catch(Ba){W(Ba),cj=[!1,void 0]}var Oe=cj;Oe[0]&&(Oh(Rd,Tr,2,dGa,Oe[1]),$e++)}var dj=[$e===Object.keys(qd).length,Rd]}catch(Ba){W(Ba),dj=[!1,void 0]}var ej=dj;ej[0]&&(I(fa,Vr,13,ej[1]),V++)}void 0!==T.externalVideoId&&(H(fa,15,T.externalVideoId),V++);void 0!==T.videoSid&&(H(fa,16,T.videoSid),V++);if(T.exploreConfig){var af=T.exploreConfig,Rg=new cs,yi=0;try{void 0!==af.metrics&&(HR(Rg.j.bind(Rg),af.metrics,MR),yi++);void 0!==af.dimension&&(H(Rg,2,MR[af.dimension]),
yi++);void 0!==af.timePeriodType&&(H(Rg,3,KR[af.timePeriodType]),yi++);var Nj=[yi===Object.keys(af).length,Rg]}catch(Ba){W(Ba),Nj=[!1,void 0]}var Oj=Nj;Oj[0]&&(I(fa,cs,18,Oj[1]),V++)}if(T.contentInspirationEntity){var lg=T.contentInspirationEntity,fe=new Dr,Uf=0;try{if(lg.video){var Sg=lg.video,Pj=new Cr,fj=0;try{void 0!==Sg.externalVideoId&&(H(Pj,1,Sg.externalVideoId),fj++);var oe=[fj===Object.keys(Sg).length,Pj]}catch(Ba){W(Ba),oe=[!1,void 0]}var mg=oe;mg[0]&&(Oh(fe,Cr,1,NR,mg[1]),Uf++)}if(lg.kgTopic){var Ae=
lg.kgTopic,Hd=new Br,tf=0;try{void 0!==Ae.kgTopicMid&&(H(Hd,1,Ae.kgTopicMid),tf++);var Vf=[tf===Object.keys(Ae).length,Hd]}catch(Ba){W(Ba),Vf=[!1,void 0]}var sh=Vf;sh[0]&&(Oh(fe,Br,2,NR,sh[1]),Uf++)}if(lg.freeformTopic){var Tg=lg.freeformTopic,gj=new Ar,hj=0;try{void 0!==Tg.freeformTopic&&(H(gj,1,Tg.freeformTopic),hj++);void 0!==Tg.isContentGap&&(H(gj,2,Tg.isContentGap),hj++);var th=[hj===Object.keys(Tg).length,gj]}catch(Ba){W(Ba),th=[!1,void 0]}var Ug=th;Ug[0]&&(Oh(fe,Ar,3,NR,Ug[1]),Uf++)}var zi=
[Uf===Object.keys(lg).length,fe]}catch(Ba){W(Ba),zi=[!1,void 0]}var Vh=zi;Vh[0]&&(I(fa,Dr,19,Vh[1]),V++)}var Sd=[V===Object.keys(T).length,fa]}catch(Ba){W(Ba),Sd=[!1,void 0]}var ng=Sd;ng[0]&&(I(f,ds,20,ng[1]),h++)}if(e.promotionData){var bf=e.promotionData,Ai=new xs,$b=0;try{void 0!==bf.promotionId&&(H(Ai,1,bf.promotionId),$b++);void 0!==bf.placementType&&(H(Ai,9,fGa[bf.placementType]),$b++);var ge=[$b===Object.keys(bf).length,Ai]}catch(Ba){W(Ba),ge=[!1,void 0]}var pe=ge;pe[0]&&(I(f,xs,21,pe[1]),
h++)}if(e.backstageItem){var Wf=e.backstageItem,Jf=new es,qe=0;try{void 0!==Wf.stanzaId&&(H(Jf,1,Wf.stanzaId),qe++);void 0!==Wf.likeCount&&(H(Jf,7,Wf.likeCount),qe++);void 0!==Wf.backstageId&&(H(Jf,9,Wf.backstageId),qe++);void 0!==Wf.wasPostScheduled&&(H(Jf,14,Wf.wasPostScheduled),qe++);var uh=[qe===Object.keys(Wf).length,Jf]}catch(Ba){W(Ba),uh=[!1,void 0]}var Wh=uh;Wh[0]&&(I(f,es,32,Wh[1]),h++)}if(e.adminSelfieData){var og=e.adminSelfieData,Pe=new $r,Vg=0;try{void 0!==og.componentId&&(H(Pe,1,og.componentId),
Vg++);void 0!==og.componentType&&(H(Pe,2,og.componentType),Vg++);if(og.payload){var re=og.payload,Xh=new Zr,Lk=0;try{if(re.include){var Mk=re.include,cn=new Wr,Qj=0;try{void 0!==Mk.fragmentName&&(H(cn,1,Mk.fragmentName),Qj++);var Cd=[Qj===Object.keys(Mk).length,cn]}catch(Ba){W(Ba),Cd=[!1,void 0]}var cf=Cd;cf[0]&&(Oh(Xh,Wr,1,OR,cf[1]),Lk++)}if(re.toolboxPage){var df=re.toolboxPage,pg=new Yr,Wg=0;try{void 0!==df.fragmentName&&(H(pg,1,df.fragmentName),Wg++);var Yh=[Wg===Object.keys(df).length,pg]}catch(Ba){W(Ba),
Yh=[!1,void 0]}var Bi=Yh;Bi[0]&&(Oh(Xh,Yr,2,OR,Bi[1]),Lk++)}if(re.reviewQueuePage){var Rj=re.reviewQueuePage,Sj=new Xr,dn=0;try{void 0!==Rj.queueId&&(H(Sj,1,Rj.queueId),dn++);var Kf=[dn===Object.keys(Rj).length,Sj]}catch(Ba){W(Ba),Kf=[!1,void 0]}var vh=Kf;vh[0]&&(Oh(Xh,Xr,3,OR,vh[1]),Lk++)}var ij=[Lk===Object.keys(re).length,Xh]}catch(Ba){W(Ba),ij=[!1,void 0]}var en=ij;en[0]&&(I(Pe,Zr,3,en[1]),Vg++)}var fn=[Vg===Object.keys(og).length,Pe]}catch(Ba){W(Ba),fn=[!1,void 0]}var se=fn;se[0]&&(I(f,$r,41,
se[1]),h++)}if(e.notificationState){var ef=e.notificationState,wh=new Js,jj=0;try{if(ef.inboxInteractionData){var ff=ef.inboxInteractionData,gf=new Is,xh=0;try{ff.notifications&&(GR(gf.j.bind(gf),ff.notifications,gGa),xh++);var yh=[xh===Object.keys(ff).length,gf]}catch(Ba){W(Ba),yh=[!1,void 0]}var gn=yh;gn[0]&&(I(wh,Is,9,gn[1]),jj++)}var Dl=[jj===Object.keys(ef).length,wh]}catch(Ba){W(Ba),Dl=[!1,void 0]}var hn=Dl;hn[0]&&(I(f,Js,59,hn[1]),h++)}if(e.delegationContext){var Id=e.delegationContext,hf=
new vs,Xg=0;try{void 0!==Id.externalChannelId&&(H(hf,1,Id.externalChannelId),Xg++);void 0!==Id.externalOwnerId&&(H(hf,3,Id.externalOwnerId),Xg++);void 0!==Id.artistId&&(H(hf,4,Id.artistId),Xg++);if(Id.roleType){var Yg=Id.roleType,El=new us,Fl=0;try{void 0!==Yg.channelRoleType&&(Kh(El,1,PR,hGa[Yg.channelRoleType]),Fl++);void 0!==Yg.artistRoleType&&(Kh(El,2,PR,iGa[Yg.artistRoleType]),Fl++);void 0!==Yg.contentOwnerRoleType&&(Kh(El,3,PR,jGa[Yg.contentOwnerRoleType]),Fl++);var La=[Fl===Object.keys(Yg).length,
El]}catch(Ba){W(Ba),La=[!1,void 0]}var Do=La;Do[0]&&(I(hf,us,5,Do[1]),Xg++)}void 0!==Id.oacChannelId&&(H(hf,6,Id.oacChannelId),Xg++);void 0!==Id.isInternalUser&&(H(hf,8,Id.isInternalUser),Xg++);void 0!==Id.delegationContextSerialized&&(Rh(hf,9,Id.delegationContextSerialized),Xg++);var zq=[Xg===Object.keys(Id).length,hf]}catch(Ba){W(Ba),zq=[!1,void 0]}var Eo=zq;Eo[0]&&(I(f,vs,63,Eo[1]),h++)}if(e.campaignData){var Gl=e.campaignData,Tj=new Gs,Hl=0;try{void 0!==Gl.campaignName&&(H(Tj,1,Gl.campaignName),
Hl++);void 0!==Gl.campaignVersion&&(H(Tj,2,Gl.campaignVersion),Hl++);var Fo=[Hl===Object.keys(Gl).length,Tj]}catch(Ba){W(Ba),Fo=[!1,void 0]}var Aq=Fo;Aq[0]&&(I(f,Gs,64,Aq[1]),h++)}if(e.scoringEventInfo){var Bq=e.scoringEventInfo,Zs=new ys,Uj=0;try{void 0!==Bq.scoringTrackingParams&&(Rh(Zs,1,Bq.scoringTrackingParams),Uj++);var $s=[Uj===Object.keys(Bq).length,Zs]}catch(Ba){W(Ba),$s=[!1,void 0]}var at=$s;at[0]&&(I(f,ys,77,at[1]),h++)}if(e.servletData){var Cq=e.servletData,qg=new zs,Xf=0;try{void 0!==
Cq.serializedServletEventId&&(H(qg,1,Cq.serializedServletEventId),Xf++);var Il=[Xf===Object.keys(Cq).length,qg]}catch(Ba){W(Ba),Il=[!1,void 0]}var Go=Il;Go[0]&&(I(f,zs,83,Go[1]),h++)}if(e.yoodleData){var Ci=e.yoodleData,jn=new Fs,Jl=0;try{void 0!==Ci.promoId&&(H(jn,1,Ci.promoId),Jl++);var Ho=[Jl===Object.keys(Ci).length,jn]}catch(Ba){W(Ba),Ho=[!1,void 0]}var bt=Ho;bt[0]&&(I(f,Fs,85,bt[1]),h++)}if(e.videoRestrictionData){var Kl=e.videoRestrictionData,kn=new Es,Dq=0;try{Kl.restrictions&&(GR(kn.j.bind(kn),
Kl.restrictions,kGa),Dq++);void 0!==Kl.prechecksPending&&(H(kn,2,Kl.prechecksPending),Dq++);var ct=[Dq===Object.keys(Kl).length,kn]}catch(Ba){W(Ba),ct=[!1,void 0]}var Eq=ct;Eq[0]&&(I(f,Es,92,Eq[1]),h++)}if(e.creatorMusicData){var kj=e.creatorMusicData,Ll=new ts,zh=0;try{if(kj.entity){var ln=lGa(kj.entity);ln[0]&&(I(Ll,rs,1,ln[1]),zh++)}kj.entities&&(GR(Ll.j.bind(Ll),kj.entities,lGa),zh++);if(kj.track){var mn=mGa(kj.track);mn[0]&&(Oh(Ll,qs,3,nGa,mn[1]),zh++)}if(kj.collection){var dt=oGa(kj.collection);
dt[0]&&(Oh(Ll,os,4,nGa,dt[1]),zh++)}var et=[zh===Object.keys(kj).length,Ll]}catch(Ba){W(Ba),et=[!1,void 0]}var ft=et;ft[0]&&(I(f,ts,96,ft[1]),h++)}if(e.creatorData){var Be=e.creatorData,bc=new ks,jf=0;try{void 0!==Be.ttWizardTargetFeature&&(Kh(bc,1,pGa,qGa[Be.ttWizardTargetFeature]),jf++);void 0!==Be.ttWizardTargetLevel&&(Kh(bc,2,pGa,rGa[Be.ttWizardTargetLevel]),jf++);if(Be.simpleWizardDetails){var gt=Be.simpleWizardDetails,zw=new js;try{var Vj=[0===Object.keys(gt).length,zw]}catch(Ba){W(Ba),Vj=[!1,
void 0]}var nn=Vj;nn[0]&&(Oh(bc,js,3,QR,nn[1]),jf++)}if(Be.advancedWizardDetails){var on=Be.advancedWizardDetails,Fq=new hs,ht=0;try{void 0!==on.isDoubleHop&&(H(Fq,1,on.isDoubleHop),ht++);var Io=[ht===Object.keys(on).length,Fq]}catch(Ba){W(Ba),Io=[!1,void 0]}var jt=Io;jt[0]&&(Oh(bc,hs,4,QR,jt[1]),jf++)}if(Be.blockedWizardDetails){var Gq=Be.blockedWizardDetails,kt=new is,Hq=0;try{void 0!==Gq.loggableBlockedReason&&(H(kt,1,sGa[Gq.loggableBlockedReason]),Hq++);var Iq=[Hq===Object.keys(Gq).length,kt]}catch(Ba){W(Ba),
Iq=[!1,void 0]}var lt=Iq;lt[0]&&(Oh(bc,is,5,QR,lt[1]),jf++)}var Jq=[jf===Object.keys(Be).length,bc]}catch(Ba){W(Ba),Jq=[!1,void 0]}var pn=Jq;pn[0]&&(I(f,ks,98,pn[1]),h++)}if(e.adstubeData){var qn=e.adstubeData,Jo=new bs,Bw=0;try{if(qn.countryTargetingPrefill){var Ml=qn.countryTargetingPrefill,Di=new as,Ko=0;try{Ml.prefilledCodes&&(GR(Di.B.bind(Di),Ml.prefilledCodes),Ko++);Ml.finalCodes&&(GR(Di.j.bind(Di),Ml.finalCodes),Ko++);void 0!==Ml.source&&(H(Di,3,Ml.source),Ko++);var Nk=[Ko===Object.keys(Ml).length,
Di]}catch(Ba){W(Ba),Nk=[!1,void 0]}var Lo=Nk;Lo[0]&&(I(Jo,as,1,Lo[1]),Bw++)}var Mo=[Bw===Object.keys(qn).length,Jo]}catch(Ba){W(Ba),Mo=[!1,void 0]}var mt=Mo;mt[0]&&(I(f,bs,104,mt[1]),h++)}if(e.loggingExpectations){var Nl=tGa(e.loggingExpectations);Nl[0]&&(I(f,Ns,106,Nl[1]),h++)}var No=[h===Object.keys(e).length,f]}catch(Ba){W(Ba),No=[!1,void 0]}var nt=No;nt[0]&&(I(b,Os,8,nt[1]),c++)}if(a.loggingExpectations){var Kq=tGa(a.loggingExpectations);Kq[0]&&(I(b,Ns,9,Kq[1]),c++)}return[c===Object.keys(a).length,
b]}catch(Ba){return W(Ba),[!1,void 0]}};
TFa=function(a){var b=new Or,c=0;try{return void 0!==a.views&&(H(b,1,LR[a.views]),c++),void 0!==a.driver&&(H(b,2,uGa[a.driver]),c++),void 0!==a.ctr&&(H(b,3,LR[a.ctr]),c++),void 0!==a.avd&&(H(b,4,LR[a.avd]),c++),void 0!==a.impressions&&(H(b,5,LR[a.impressions]),c++),void 0!==a.videoLength&&(H(b,6,LR[a.videoLength]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
XFa=function(a){var b=new Kr,c=0;try{return void 0!==a.subsGrowth&&(H(b,1,LR[a.subsGrowth]),c++),void 0!==a.nonSubViews&&(H(b,2,LR[a.nonSubViews]),c++),void 0!==a.subsAddedPerNonSubViews&&(H(b,3,LR[a.subsAddedPerNonSubViews]),c++),void 0!==a.accountsClosed&&(H(b,4,LR[a.accountsClosed]),c++),void 0!==a.subsRemovedToAddedRatio&&(H(b,5,LR[a.subsRemovedToAddedRatio]),c++),void 0!==a.videosPublished&&(H(b,6,LR[a.videosPublished]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
YFa=function(a){var b=new Jr,c=0;try{return void 0!==a.revenue&&(H(b,1,LR[a.revenue]),c++),void 0!==a.revenueSource&&(H(b,2,vGa[a.revenueSource]),c++),void 0!==a.revenueDrivingMetrics&&(HR(b.j.bind(b),a.revenueDrivingMetrics,wGa),c++),void 0!==a.revenueChangeReason&&(H(b,4,xGa[a.revenueChangeReason]),c++),void 0!==a.revenueChangeFact&&(H(b,5,yGa[a.revenueChangeFact]),c++),void 0!==a.driverCountryCode&&(H(b,6,a.driverCountryCode),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
ZFa=function(a){var b=new Ir,c=0;try{return void 0!==a.views&&(H(b,1,LR[a.views]),c++),void 0!==a.drivers&&(HR(b.j.bind(b),a.drivers,zGa),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
eGa=function(a){var b=new Sr,c=0;try{return void 0!==a.metric&&(H(b,1,MR[a.metric]),c++),void 0!==a.comparisonMetric&&(H(b,2,MR[a.comparisonMetric]),c++),void 0!==a.includeCumulative&&(H(b,3,a.includeCumulative),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
gGa=function(a){var b=new Hs,c=0;try{return void 0!==a.attributionTag&&(H(b,2,a.attributionTag),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
kGa=function(a){var b=new Ds,c=0;try{if(a.limitedAds){var d=a.limitedAds,e=new Cs,f=0;try{void 0!==d.imposer&&(H(e,1,AGa[d.imposer]),f++);var h=[f===Object.keys(d).length,e]}catch(v){W(v),h=[!1,void 0]}h[0]&&(Oh(b,Cs,1,RR,h[1]),c++)}if(a.copyright){var l=a.copyright,m=new Bs;h=0;try{void 0!==l.policyType&&(H(m,1,BGa[l.policyType]),h++);var n=[h===Object.keys(l).length,m]}catch(v){W(v),n=[!1,void 0]}n[0]&&(Oh(b,Bs,2,RR,n[1]),c++)}if(a.communityGuidelines){var p=a.communityGuidelines,q=new As;n=0;try{void 0!==
p.policyVerticals&&(HR(q.j.bind(q),p.policyVerticals,CGa),n++);var r=[n===Object.keys(p).length,q]}catch(v){W(v),r=[!1,void 0]}r[0]&&(Oh(b,As,3,RR,r[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return W(v),[!1,void 0]}};
lGa=function(a){var b=new rs,c=0;try{if(a.featuredCollection){var d=DGa(a.featuredCollection);d[0]&&(Oh(b,ls,1,SR,d[1]),c++)}if(a.mood){var e=EGa(a.mood);e[0]&&(Oh(b,ns,2,SR,e[1]),c++)}if(a.genre){var f=FGa(a.genre);f[0]&&(Oh(b,ms,3,SR,f[1]),c++)}if(a.track){var h=mGa(a.track);h[0]&&(Oh(b,qs,4,SR,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
DGa=function(a){var b=new ls,c=0;try{return void 0!==a.id&&(H(b,1,a.id),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
EGa=function(a){var b=new ns,c=0;try{return void 0!==a.type&&(H(b,1,GGa[a.type]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
FGa=function(a){var b=new ms,c=0;try{return void 0!==a.type&&(H(b,1,HGa[a.type]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
mGa=function(a){var b=new qs,c=0;try{void 0!==a.artTrackId&&(H(b,1,a.artTrackId),c++);void 0!==a.assetId&&(H(b,2,a.assetId),c++);if(a.details){var d=a.details,e=new ps;try{var f=[0===Object.keys(d).length,e]}catch(l){W(l),f=[!1,void 0]}f[0]&&(I(b,ps,3,f[1]),c++)}if(a.parent){var h=oGa(a.parent);h[0]&&(I(b,os,4,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
oGa=function(a){var b=new os,c=0;try{if(a.featuredCollection){var d=DGa(a.featuredCollection);d[0]&&(Oh(b,ls,1,TR,d[1]),c++)}if(a.mood){var e=EGa(a.mood);e[0]&&(Oh(b,ns,2,TR,e[1]),c++)}if(a.genre){var f=FGa(a.genre);f[0]&&(Oh(b,ms,3,TR,f[1]),c++)}return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
tGa=function(a){var b=new Ns,c=0;try{if(a.attachLoggingExpectations){var d=a.attachLoggingExpectations,e=new Ls,f=0;try{d.attachScreenExpectations&&(GR(e.j.bind(e),d.attachScreenExpectations,IGa),f++);var h=[f===Object.keys(d).length,e]}catch(p){W(p),h=[!1,void 0]}h[0]&&(I(b,Ls,1,h[1]),c++)}if(a.screenCreatedLoggingExpectations){var l=a.screenCreatedLoggingExpectations,m=new Ms;h=0;try{l.expectedParentScreens&&(GR(m.j.bind(m),l.expectedParentScreens,IGa),h++);var n=[h===Object.keys(l).length,m]}catch(p){W(p),
n=[!1,void 0]}n[0]&&(I(b,Ms,2,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}};
IGa=function(a){var b=new Ks,c=0;try{return void 0!==a.screenVeType&&(Bma(b,a.screenVeType),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
KGa=function(a){var b=new Mu,c=0;try{return a.segments&&(GR(b.j.bind(b),a.segments,UR),c++),a.transitions&&(GR(b.B.bind(b),a.transitions,JGa),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
UR=function(a){var b=new Ku,c=0;try{void 0!==a.type&&(H(b,1,LGa[a.type]),c++);a.effects&&(GR(b.L1.bind(b),a.effects,MGa),c++);if(a.videoInfo){var d=a.videoInfo,e=new Iu,f=0;try{void 0!==d.resolutionWidth&&(H(e,1,d.resolutionWidth),f++);void 0!==d.resolutionHeight&&(H(e,2,d.resolutionHeight),f++);void 0!==d.frameRate&&(Ph(e,3,d.frameRate),f++);void 0!==d.durationMs&&(H(e,4,d.durationMs),f++);var h=[f===Object.keys(d).length,e]}catch(p){W(p),h=[!1,void 0]}h[0]&&(I(b,Iu,3,h[1]),c++)}if(a.audioInfo){var l=
a.audioInfo,m=new Hu;h=0;try{void 0!==l.sourceOffsetMs&&(H(m,1,l.sourceOffsetMs),h++);void 0!==l.sampleRateHz&&(H(m,2,l.sampleRateHz),h++);void 0!==l.channelCount&&(H(m,3,l.channelCount),h++);var n=[h===Object.keys(l).length,m]}catch(p){W(p),n=[!1,void 0]}n[0]&&(I(b,Hu,4,n[1]),c++)}void 0!==a.startTimeMs&&(H(b,5,a.startTimeMs),c++);void 0!==a.durationMs&&(H(b,6,a.durationMs),c++);void 0!==a.playbackRate&&(b.setPlaybackRate(a.playbackRate),c++);void 0!==a.enabled&&(b.fP(a.enabled),c++);return[c===
Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}};
MGa=function(a){var b=new Ju,c=0;try{return void 0!==a.effectBaseName&&(H(b,1,a.effectBaseName),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
JGa=function(a){var b=new Lu,c=0;try{if(a.incomingSegment){var d=UR(a.incomingSegment);d[0]&&(I(b,Ku,1,d[1]),c++)}if(a.outgoingSegment){var e=UR(a.outgoingSegment);e[0]&&(I(b,Ku,2,e[1]),c++)}void 0!==a.durationMs&&(H(b,3,a.durationMs),c++);return[c===Object.keys(a).length,b]}catch(f){return W(f),[!1,void 0]}};
zHa=function(a){var b=new tw,c=0;try{void 0!==a.encryptedVideoId&&(H(b,1,a.encryptedVideoId),c++);void 0!==a.cotn&&(H(b,20,a.cotn),c++);void 0!==a.cpn&&(H(b,30,a.cpn),c++);void 0!==a.transferStatusType&&(H(b,38,NGa[a.transferStatusType]),c++);void 0!==a.statusType&&(H(b,2,OGa[a.statusType]),c++);void 0!==a.failureReason&&(H(b,3,PGa[a.failureReason]),c++);void 0!==a.transferFailureReason&&(H(b,41,QGa[a.transferFailureReason]),c++);void 0!==a.failureExceptionType&&(H(b,37,a.failureExceptionType),c++);
void 0!==a.totalFetchedKbytes&&(H(b,4,a.totalFetchedKbytes),c++);void 0!==a.diskAvailableKbytes&&(H(b,5,a.diskAvailableKbytes),c++);void 0!==a.totalContentKbytes&&(H(b,21,a.totalContentKbytes),c++);void 0!==a.alreadyDownloadedKbytes&&(H(b,22,a.alreadyDownloadedKbytes),c++);void 0!==a.fetchedFromCacheKbytes&&(H(b,23,a.fetchedFromCacheKbytes),c++);if(a.systemHealth){var d=a.systemHealth,e=new vv,f=0;try{void 0!==d.tag&&(H(e,1,RGa[d.tag]),f++);if(d.staticContext){var h=d.staticContext,l=new pv,m=0;try{void 0!==
h.displayDensityDpi&&(H(l,1,h.displayDensityDpi),m++);void 0!==h.heightPixels&&(H(l,2,h.heightPixels),m++);void 0!==h.widthPixels&&(H(l,3,h.widthPixels),m++);void 0!==h.memoryTotalKbytes&&(H(l,4,h.memoryTotalKbytes),m++);void 0!==h.osSdkVersion&&(H(l,5,h.osSdkVersion),m++);void 0!==h.osIncrementalVersion&&(H(l,6,h.osIncrementalVersion),m++);void 0!==h.hardwareArchitecture&&(H(l,7,h.hardwareArchitecture),m++);void 0!==h.appVersionCode&&(H(l,8,h.appVersionCode),m++);void 0!==h.devicePixelRatio&&(Ph(l,
9,h.devicePixelRatio),m++);void 0!==h.buildFingerprint&&(H(l,10,h.buildFingerprint),m++);void 0!==h.socManufacturer&&(H(l,11,h.socManufacturer),m++);void 0!==h.socModel&&(H(l,12,h.socModel),m++);void 0!==h.availableProcessors&&(H(l,13,h.availableProcessors),m++);void 0!==h.cpuCores&&(H(l,14,h.cpuCores),m++);void 0!==h.heightPoints&&(H(l,15,h.heightPoints),m++);void 0!==h.widthPoints&&(H(l,16,h.widthPoints),m++);void 0!==h.androidMediaPerformanceClass&&(H(l,17,h.androidMediaPerformanceClass),m++);
var n=[m===Object.keys(h).length,l]}catch(La){W(La),n=[!1,void 0]}var p=n;p[0]&&(I(e,pv,2,p[1]),f++)}if(d.dynamicContext){var q=d.dynamicContext,r=new jv,v=0;try{void 0!==q.screenOn&&(H(r,1,q.screenOn),v++);void 0!==q.deviceRotation&&(H(r,2,q.deviceRotation),v++);void 0!==q.networkType&&(H(r,3,q.networkType),v++);void 0!==q.networkCoarseState&&(H(r,4,q.networkCoarseState),v++);void 0!==q.chargingStatus&&(H(r,5,SGa[q.chargingStatus]),v++);void 0!==q.isInForeground&&(H(r,6,q.isInForeground),v++);void 0!==
q.viewportHeightPixels&&(H(r,7,q.viewportHeightPixels),v++);void 0!==q.viewportWidthPixels&&(H(r,8,q.viewportWidthPixels),v++);void 0!==q.hasCoarsePointer&&(H(r,9,q.hasCoarsePointer),v++);void 0!==q.hasFinePointer&&(H(r,10,q.hasFinePointer),v++);void 0!==q.hasHoverSupport&&(H(r,11,q.hasHoverSupport),v++);void 0!==q.deviceFreeStorageMbytes&&(H(r,12,q.deviceFreeStorageMbytes),v++);void 0!==q.deviceStorageQuotaMbytes&&(H(r,13,q.deviceStorageQuotaMbytes),v++);void 0!==q.deviceStorageUsageMbytes&&(H(r,
14,q.deviceStorageUsageMbytes),v++);void 0!==q.processUptimeMs&&(H(r,15,q.processUptimeMs),v++);void 0!==q.hasAppShell&&(H(r,16,q.hasAppShell),v++);void 0!==q.glVersion&&(H(r,17,q.glVersion),v++);void 0!==q.glRenderer&&(H(r,18,q.glRenderer),v++);q.srsDatapushBuildIds&&(GR(r.B.bind(r),q.srsDatapushBuildIds,TGa),v++);q.playerDatapushBuildIds&&(GR(r.j.bind(r),q.playerDatapushBuildIds,UGa),v++);if(q.creationContext){var x=q.creationContext,z=new hv,B=0;try{void 0!==x.activeFrontendUploadId&&(H(z,1,x.activeFrontendUploadId),
B++);void 0!==x.inShortsCreation&&(H(z,2,x.inShortsCreation),B++);x.activeEffectLoggingIds&&(GR(z.j.bind(z),x.activeEffectLoggingIds,VGa),B++);var F=[B===Object.keys(x).length,z]}catch(La){W(La),F=[!1,void 0]}var G=F;G[0]&&(I(r,hv,21,G[1]),v++)}if(q.kimonoContext){var D=q.kimonoContext,L=new iv,P=0;try{void 0!==D.cobaltUserAgent&&(H(L,1,D.cobaltUserAgent),P++);void 0!==D.webAppVersion&&(H(L,2,D.webAppVersion),P++);void 0!==D.cobaltVersion&&(H(L,3,D.cobaltVersion),P++);var T=[P===Object.keys(D).length,
L]}catch(La){W(La),T=[!1,void 0]}var fa=T;fa[0]&&(I(r,iv,22,fa[1]),v++)}var V=[v===Object.keys(q).length,r]}catch(La){W(La),V=[!1,void 0]}var Q=V;Q[0]&&(I(e,jv,3,Q[1]),f++)}void 0!==d.serializedPrimesMetric&&(Rh(e,4,d.serializedPrimesMetric),f++);void 0!==d.serializedIosPrimesMetric&&(Rh(e,6,d.serializedIosPrimesMetric),f++);if(d.webMetric){var X=d.webMetric,O=new rv,la=0;try{void 0!==X.currentHeapKbytes&&(H(O,1,X.currentHeapKbytes),la++);void 0!==X.navigationCount&&(H(O,2,X.navigationCount),la++);
var qa=[la===Object.keys(X).length,O]}catch(La){W(La),qa=[!1,void 0]}var Ma=qa;Ma[0]&&(I(e,rv,7,Ma[1]),f++)}if(d.crashData){var Qa=d.crashData,ua=new dv,ab=0;try{void 0!==Qa.stackTrace&&(H(ua,1,Qa.stackTrace),ab++);void 0!==Qa.screenVeType&&(H(ua,2,Qa.screenVeType),ab++);if(Qa.compactStackTrace){var ta=VR(Qa.compactStackTrace);ta[0]&&(I(ua,vu,3,ta[1]),ab++)}void 0!==Qa.crashTimeMs&&(H(ua,4,Qa.crashTimeMs),ab++);if(Qa.clientError){var db=Qa.clientError,pb=new cv,Xa=0;try{if(db.errorMetadata){var Db=
db.errorMetadata,eb=new Qu,Ab=0;try{void 0!==Db.exceptionCategory&&(H(eb,1,WGa[Db.exceptionCategory]),Ab++);if(Db.serviceTrackingData){var Fb=Db.serviceTrackingData,rc=new Eu,Jc=0;try{void 0!==Fb.innertubeBuildChangelist&&(H(rc,1,Fb.innertubeBuildChangelist),Jc++);void 0!==Fb.innertubeBuildExperimentsSourceVersion&&(H(rc,2,Fb.innertubeBuildExperimentsSourceVersion),Jc++);void 0!==Fb.innertubeBuildLabel&&(H(rc,3,Fb.innertubeBuildLabel),Jc++);void 0!==Fb.innertubeBuildTimestampSec&&(H(rc,4,Fb.innertubeBuildTimestampSec),
Jc++);void 0!==Fb.innertubeBuildVariantsChecksum&&(H(rc,5,Fb.innertubeBuildVariantsChecksum),Jc++);void 0!==Fb.innertubeJobName&&(H(rc,6,Fb.innertubeJobName),Jc++);var me=[Jc===Object.keys(Fb).length,rc]}catch(La){W(La),me=[!1,void 0]}var zd=me;zd[0]&&(I(eb,Eu,2,zd[1]),Ab++)}void 0!==Db.pageUrl&&(H(eb,3,Db.pageUrl),Ab++);Db.kvPairs&&(GR(eb.j.bind(eb),Db.kvPairs,XGa),Ab++);Db.experimentIds&&(GR(eb.B.bind(eb),Db.experimentIds),Ab++);if(Db.playerMetadata){var de=Db.playerMetadata,lc=new Pu,fc=0;try{void 0!==
de.error&&(HR(lc.j.bind(lc),de.error,YGa),fc++);void 0!==de.stackTrace&&(H(lc,2,de.stackTrace),fc++);var bd=[fc===Object.keys(de).length,lc]}catch(La){W(La),bd=[!1,void 0]}var Pd=bd;Pd[0]&&(I(eb,Pu,6,Pd[1]),Ab++)}void 0!==Db.exceptionType&&(H(eb,7,ZGa[Db.exceptionType]),Ab++);void 0!==Db.clientScreenNonce&&(H(eb,8,Db.clientScreenNonce),Ab++);if(Db.blocksMethodExecutionInfo){var Hb=Db.blocksMethodExecutionInfo,gb=new Cu,Wb=0;try{void 0!==Hb.methodId&&(H(gb,1,Hb.methodId),Wb++);void 0!==Hb.blockTypeId&&
(H(gb,2,Hb.blockTypeId),Wb++);void 0!==Hb.methodType&&(H(gb,3,$Ga[Hb.methodType]),Wb++);void 0!==Hb.requestSize&&(H(gb,4,Hb.requestSize),Wb++);void 0!==Hb.responseSize&&(H(gb,5,Hb.responseSize),Wb++);void 0!==Hb.statusCode&&(H(gb,6,Hb.statusCode),Wb++);void 0!==Hb.containerId&&(H(gb,7,Hb.containerId),Wb++);void 0!==Hb.moduleIdentifier&&(H(gb,8,Hb.moduleIdentifier),Wb++);void 0!==Hb.datapushBuildId&&(H(gb,9,Hb.datapushBuildId),Wb++);var Kc=[Wb===Object.keys(Hb).length,gb]}catch(La){W(La),Kc=[!1,void 0]}var ee=
Kc;ee[0]&&(I(eb,Cu,9,ee[1]),Ab++)}if(Db.mediaEngineMetadata){var lb=Db.mediaEngineMetadata,Ec=new Ou,qb=0;try{void 0!==lb.client&&(Ec.Bt(aHa[lb.client]),qb++);void 0!==lb.mdeErrorType&&(H(Ec,2,bHa[lb.mdeErrorType]),qb++);void 0!==lb.uploadId&&(H(Ec,3,lb.uploadId),qb++);lb.composition&&(GR(Ec.j.bind(Ec),lb.composition,KGa),qb++);if(lb.player){var zc=lb.player,Xb=new Nu,Ne=0;try{void 0!==zc.state&&(Xb.qc(cHa[zc.state]),Ne++);void 0!==zc.playbackPositionTimeMs&&(H(Xb,2,zc.playbackPositionTimeMs),Ne++);
var Qd=[Ne===Object.keys(zc).length,Xb]}catch(La){W(La),Qd=[!1,void 0]}var gc=Qd;gc[0]&&(I(Ec,Nu,5,gc[1]),qb++)}if(lb.exporter){var Ac=lb.exporter,Ad=new Gu,sc=0;try{if(Ac.settings){var cd=Ac.settings,dd=new Fu,Fc=0;try{void 0!==cd.audioChannelCount&&(H(dd,1,cd.audioChannelCount),Fc++);void 0!==cd.resolutionWidth&&(H(dd,2,cd.resolutionWidth),Fc++);void 0!==cd.resolutionHeight&&(H(dd,3,cd.resolutionHeight),Fc++);var Gd=[Fc===Object.keys(cd).length,dd]}catch(La){W(La),Gd=[!1,void 0]}var Lc=Gd;Lc[0]&&
(Ad.ah(Lc[1]),sc++)}void 0!==Ac.state&&(Ad.qc(dHa[Ac.state]),sc++);var Yb=[sc===Object.keys(Ac).length,Ad]}catch(La){W(La),Yb=[!1,void 0]}var ub=Yb;ub[0]&&(I(Ec,Gu,6,ub[1]),qb++)}var vb=[qb===Object.keys(lb).length,Ec]}catch(La){W(La),vb=[!1,void 0]}var jg=vb;jg[0]&&(I(eb,Ou,10,jg[1]),Ab++)}var kg=[Ab===Object.keys(Db).length,eb]}catch(La){W(La),kg=[!1,void 0]}var ed=kg;ed[0]&&(I(pb,Qu,1,ed[1]),Xa++)}if(db.stackTrace){var Zb=db.stackTrace,Mc=new av,ld=0;try{void 0!==Zb.isObfuscated&&(H(Mc,1,Zb.isObfuscated),
ld++);if(Zb.androidStackInfo){var fd=Zb.androidStackInfo,sf=new Ru,qd=0;try{void 0!==fd.serializedThrowable&&(Rh(sf,1,fd.serializedThrowable),qd++);var Rd=[qd===Object.keys(fd).length,sf]}catch(La){W(La),Rd=[!1,void 0]}var $e=Rd;$e[0]&&(Oh(Mc,Ru,2,FD,$e[1]),ld++)}if(Zb.browserStackInfo){var Bd=Zb.browserStackInfo,ne=new Su,Tf=0;try{void 0!==Bd.stackTrace&&(H(ne,1,Bd.stackTrace),Tf++);void 0!==Bd.lineNumber&&(H(ne,2,Bd.lineNumber),Tf++);void 0!==Bd.columnNumber&&(H(ne,3,Bd.columnNumber),Tf++);void 0!==
Bd.filename&&(H(ne,4,Bd.filename),Tf++);var xb=[Tf===Object.keys(Bd).length,ne]}catch(La){W(La),xb=[!1,void 0]}var aj=xb;aj[0]&&(Oh(Mc,Su,3,FD,aj[1]),ld++)}if(Zb.iosStackInfo){var Qg=Zb.iosStackInfo,xi=new Tu,bj=0;try{void 0!==Qg.stackTrace&&(H(xi,1,Qg.stackTrace),bj++);if(Qg.compactStackTrace){var cj=VR(Qg.compactStackTrace);cj[0]&&(I(xi,vu,2,cj[1]),bj++)}var Oe=[bj===Object.keys(Qg).length,xi]}catch(La){W(La),Oe=[!1,void 0]}var dj=Oe;dj[0]&&(Oh(Mc,Tu,4,FD,dj[1]),ld++)}if(Zb.multiLanguageStackInfo){var ej=
Zb.multiLanguageStackInfo,af=new $u,Rg=0;try{ej.languageStackTraces&&(GR(af.j.bind(af),ej.languageStackTraces,eHa),Rg++);var yi=[Rg===Object.keys(ej).length,af]}catch(La){W(La),yi=[!1,void 0]}var Nj=yi;Nj[0]&&(Oh(Mc,$u,5,FD,Nj[1]),ld++)}var Oj=[ld===Object.keys(Zb).length,Mc]}catch(La){W(La),Oj=[!1,void 0]}var lg=Oj;lg[0]&&(I(pb,av,2,lg[1]),Xa++)}if(db.logMessage){var fe=db.logMessage,Uf=new bv,Sg=0;try{void 0!==fe.message&&(H(Uf,1,fe.message),Sg++);void 0!==fe.level&&(H(Uf,2,fHa[fe.level]),Sg++);
void 0!==fe.errorClassName&&(H(Uf,3,fe.errorClassName),Sg++);void 0!==fe.sourceMethodName&&(H(Uf,4,fe.sourceMethodName),Sg++);void 0!==fe.sampleWeight&&(H(Uf,6,fe.sampleWeight),Sg++);var Pj=[Sg===Object.keys(fe).length,Uf]}catch(La){W(La),Pj=[!1,void 0]}var fj=Pj;fj[0]&&(I(pb,bv,3,fj[1]),Xa++)}var oe=[Xa===Object.keys(db).length,pb]}catch(La){W(La),oe=[!1,void 0]}var mg=oe;mg[0]&&(I(ua,cv,5,mg[1]),ab++)}var Ae=[ab===Object.keys(Qa).length,ua]}catch(La){W(La),Ae=[!1,void 0]}var Hd=Ae;Hd[0]&&(I(e,dv,
9,Hd[1]),f++)}d.delayedEventMetrics&&(GR(e.j.bind(e),d.delayedEventMetrics,OFa),f++);if(d.iosBatteryMetric){var tf=d.iosBatteryMetric,Vf=new yu,sh=0;try{void 0!==tf.sampleDurationMs&&(H(Vf,1,tf.sampleDurationMs),sh++);if(tf.startSample){var Tg=gHa(tf.startSample);Tg[0]&&(I(Vf,xu,2,Tg[1]),sh++)}if(tf.endSample){var gj=gHa(tf.endSample);gj[0]&&(I(Vf,xu,3,gj[1]),sh++)}var hj=[sh===Object.keys(tf).length,Vf]}catch(La){W(La),hj=[!1,void 0]}var th=hj;th[0]&&(I(e,yu,11,th[1]),f++)}if(d.androidBatteryMetric){var Ug=
d.androidBatteryMetric,zi=new nu,Vh=0;try{void 0!==Ug.sampleDurationMs&&(H(zi,1,Ug.sampleDurationMs),Vh++);if(Ug.startSample){var Sd=hHa(Ug.startSample);Sd[0]&&(I(zi,mu,2,Sd[1]),Vh++)}if(Ug.endSample){var ng=hHa(Ug.endSample);ng[0]&&(I(zi,mu,3,ng[1]),Vh++)}var bf=[Vh===Object.keys(Ug).length,zi]}catch(La){W(La),bf=[!1,void 0]}var Ai=bf;Ai[0]&&(I(e,nu,12,Ai[1]),f++)}if(d.webApiSupport){var $b=d.webApiSupport,ge=new qv,pe=0;try{void 0!==$b.intersectionObserverPresent&&(H(ge,1,$b.intersectionObserverPresent),
pe++);void 0!==$b.indexedDbPresent&&(H(ge,2,$b.indexedDbPresent),pe++);void 0!==$b.serviceWorkerPresent&&(H(ge,3,$b.serviceWorkerPresent),pe++);void 0!==$b.webSharePresent&&(H(ge,4,$b.webSharePresent),pe++);void 0!==$b.fullScreenApiPresent&&(H(ge,5,$b.fullScreenApiPresent),pe++);void 0!==$b.cacheStoragePresent&&(H(ge,6,$b.cacheStoragePresent),pe++);void 0!==$b.storageEstimatePresent&&(H(ge,7,$b.storageEstimatePresent),pe++);void 0!==$b.storagePersistPresent&&(H(ge,8,$b.storagePersistPresent),pe++);
void 0!==$b.webkitTemporaryStoragePresent&&(H(ge,9,$b.webkitTemporaryStoragePresent),pe++);void 0!==$b.idb2Present&&(H(ge,10,$b.idb2Present),pe++);void 0!==$b.promiseRejectionEventPresent&&(H(ge,11,$b.promiseRejectionEventPresent),pe++);void 0!==$b.subtleCryptoPresent&&(H(ge,12,$b.subtleCryptoPresent),pe++);void 0!==$b.broadcastChannelPresent&&(H(ge,13,$b.broadcastChannelPresent),pe++);void 0!==$b.webLocksApiPresent&&(H(ge,14,$b.webLocksApiPresent),pe++);var Wf=[pe===Object.keys($b).length,ge]}catch(La){W(La),
Wf=[!1,void 0]}var Jf=Wf;Jf[0]&&(I(e,qv,13,Jf[1]),f++)}if(d.cpuProfiling){var qe=d.cpuProfiling,uh=new Bu,Wh=0;try{if(qe.profilingSamples){var og=VR(qe.profilingSamples);og[0]&&(I(uh,vu,1,og[1]),Wh++)}if(qe.config){var Pe=qe.config,Vg=new Au,re=0;try{void 0!==Pe.profilingIntervalSec&&(Ph(Vg,1,Pe.profilingIntervalSec),re++);void 0!==Pe.profilingDurationSec&&(Ph(Vg,2,Pe.profilingDurationSec),re++);void 0!==Pe.timerType&&(H(Vg,3,iHa[Pe.timerType]),re++);void 0!==Pe.profilingStartTimeSec&&(Ph(Vg,4,Pe.profilingStartTimeSec),
re++);void 0!==Pe.fractionOfRunsToSample&&(Ph(Vg,5,Pe.fractionOfRunsToSample),re++);var Xh=[re===Object.keys(Pe).length,Vg]}catch(La){W(La),Xh=[!1,void 0]}var Lk=Xh;Lk[0]&&(uh.setConfig(Lk[1]),Wh++)}var Mk=[Wh===Object.keys(qe).length,uh]}catch(La){W(La),Mk=[!1,void 0]}var cn=Mk;cn[0]&&(I(e,Bu,14,cn[1]),f++)}if(d.stallStackTrace){var Qj=VR(d.stallStackTrace);Qj[0]&&(I(e,vu,15,Qj[1]),f++)}if(d.memoryUsage){var Cd=d.memoryUsage,cf=new mv,df=0;try{void 0!==Cd.totalMemoryUsageBytes&&(H(cf,1,Cd.totalMemoryUsageBytes),
df++);Cd.classMemoryUsage&&(GR(cf.j.bind(cf),Cd.classMemoryUsage,jHa),df++);if(Cd.config){var pg=Cd.config,Wg=new lv,Yh=0;try{void 0!==pg.maxStartTimeSec&&(H(Wg,1,pg.maxStartTimeSec),Yh++);void 0!==pg.durationTimeSec&&(H(Wg,2,pg.durationTimeSec),Yh++);void 0!==pg.intervalSec&&(H(Wg,3,pg.intervalSec),Yh++);void 0!==pg.maxLogCount&&(H(Wg,4,pg.maxLogCount),Yh++);void 0!==pg.fractionOfRunsToSample&&(Ph(Wg,5,pg.fractionOfRunsToSample),Yh++);var Bi=[Yh===Object.keys(pg).length,Wg]}catch(La){W(La),Bi=[!1,
void 0]}var Rj=Bi;Rj[0]&&(cf.setConfig(Rj[1]),df++)}void 0!==Cd.processUptimeMs&&(H(cf,4,Cd.processUptimeMs),df++);void 0!==Cd.foregroundUptimeMs&&(H(cf,8,Cd.foregroundUptimeMs),df++);Cd.viewAllocation&&(GR(cf.D.bind(cf),Cd.viewAllocation,jHa),df++);void 0!==Cd.entityStoreCount&&(H(cf,6,Cd.entityStoreCount),df++);void 0!==Cd.entityStoreBytes&&(H(cf,7,Cd.entityStoreBytes),df++);void 0!==Cd.emlTemplateStoreBytes&&(H(cf,10,Cd.emlTemplateStoreBytes),df++);Cd.jsVmStatistics&&(GR(cf.B.bind(cf),Cd.jsVmStatistics,
kHa),df++);var Sj=[df===Object.keys(Cd).length,cf]}catch(La){W(La),Sj=[!1,void 0]}var dn=Sj;dn[0]&&(I(e,mv,16,dn[1]),f++)}d.networkEvents&&(GR(e.B.bind(e),d.networkEvents,lHa),f++);if(d.threadUtilization){var Kf=d.threadUtilization,vh=new uv,ij=0;try{void 0!==Kf.userJourney&&(H(vh,1,Kf.userJourney),ij++);void 0!==Kf.type&&(H(vh,2,mHa[Kf.type]),ij++);Kf.threadPoolStats&&(GR(vh.j.bind(vh),Kf.threadPoolStats,nHa),ij++);void 0!==Kf.totalThreadCount&&(H(vh,4,Kf.totalThreadCount),ij++);void 0!==Kf.statsGenerateDurationMs&&
(H(vh,5,Kf.statsGenerateDurationMs),ij++);var en=[ij===Object.keys(Kf).length,vh]}catch(La){W(La),en=[!1,void 0]}var fn=en;fn[0]&&(I(e,uv,18,fn[1]),f++)}if(d.androidBackgroundTask){var se=d.androidBackgroundTask,ef=new zu,wh=0;try{void 0!==se.tag&&(H(ef,1,se.tag),wh++);void 0!==se.isKnownTask&&(H(ef,2,se.isKnownTask),wh++);void 0!==se.result&&(H(ef,3,oHa[se.result]),wh++);void 0!==se.durationMs&&(H(ef,4,se.durationMs),wh++);var jj=[wh===Object.keys(se).length,ef]}catch(La){W(La),jj=[!1,void 0]}var ff=
jj;ff[0]&&(I(e,zu,19,ff[1]),f++)}if(d.distributiveProfilingSpan){var gf=d.distributiveProfilingSpan,xh=new fv,yh=0;try{void 0!==gf.spanId&&(H(xh,1,pHa[gf.spanId]),yh++);void 0!==gf.sampleRate&&(Ph(xh,2,gf.sampleRate),yh++);void 0!==gf.spanDurationMs&&(H(xh,3,gf.spanDurationMs),yh++);void 0!==gf.sampleFailureCount&&(H(xh,4,gf.sampleFailureCount),yh++);gf.sample&&(GR(xh.zi.bind(xh),gf.sample,qHa),yh++);var gn=[yh===Object.keys(gf).length,xh]}catch(La){W(La),gn=[!1,void 0]}var Dl=gn;Dl[0]&&(I(e,fv,20,
Dl[1]),f++)}var hn=[f===Object.keys(d).length,e]}catch(La){W(La),hn=[!1,void 0]}var Id=hn;Id[0]&&(I(b,vv,6,Id[1]),c++)}void 0!==a.detailedNetworkType&&(H(b,7,WR[a.detailedNetworkType]),c++);void 0!==a.isAd&&(H(b,8,a.isAd),c++);void 0!==a.offlineModeType&&(H(b,9,rHa[a.offlineModeType]),c++);void 0!==a.storageFormat&&(H(b,24,sHa[a.storageFormat]),c++);void 0!==a.offlineSourceVeType&&(H(b,32,a.offlineSourceVeType),c++);void 0!==a.listId&&(H(b,10,a.listId),c++);void 0!==a.offlineabilityFormatType&&(H(b,
11,YR[a.offlineabilityFormatType]),c++);void 0!==a.offlineAudioQuality&&(H(b,29,tHa[a.offlineAudioQuality]),c++);void 0!==a.softErrorCount&&(H(b,12,a.softErrorCount),c++);void 0!==a.pendingStateFlags&&(H(b,13,a.pendingStateFlags),c++);void 0!==a.unusedOfflineVideoPendingState&&(H(b,14,uHa[a.unusedOfflineVideoPendingState]),c++);void 0!==a.isRefresh&&(H(b,15,a.isRefresh),c++);void 0!==a.isNewPlayerResponse&&(H(b,16,a.isNewPlayerResponse),c++);void 0!==a.isOfflineShareable&&(H(b,17,a.isOfflineShareable),
c++);void 0!==a.hasContentVerificationSignature&&(H(b,18,a.hasContentVerificationSignature),c++);void 0!==a.isOfflineInterleaving&&(H(b,19,a.isOfflineInterleaving),c++);void 0!==a.blockSizeBytes&&(H(b,25,a.blockSizeBytes),c++);void 0!==a.streamVerificationStrategy&&(H(b,26,ZR[a.streamVerificationStrategy]),c++);a.streamVerificationFailedBlocks&&(GR(b.j.bind(b),a.streamVerificationFailedBlocks,vHa),c++);if(a.spacecastInfo){var hf=a.spacecastInfo,Xg=new qw,Yg=0;try{void 0!==hf.applianceId&&(H(Xg,1,
hf.applianceId),Yg++);void 0!==hf.transferredFromCache&&(H(Xg,2,wHa[hf.transferredFromCache]),Yg++);var El=[Yg===Object.keys(hf).length,Xg]}catch(La){W(La),El=[!1,void 0]}var Fl=El;Fl[0]&&(I(b,qw,28,Fl[1]),c++)}void 0!==a.transferType&&(H(b,33,xHa[a.transferType]),c++);void 0!==a.onlyDownloadOnWifi&&(H(b,34,a.onlyDownloadOnWifi),c++);void 0!==a.appLifecycleStatus&&(H(b,35,yHa[a.appLifecycleStatus]),c++);void 0!==a.isDefaultDownloadToSdCard&&(H(b,36,a.isDefaultDownloadToSdCard),c++);void 0!==a.serializedLoggingParams&&
(Rh(b,39,a.serializedLoggingParams),c++);void 0!==a.transferServiceStartedFromBackground&&(H(b,40,a.transferServiceStartedFromBackground),c++);void 0!==a.transferFirstStarted&&(H(b,42,a.transferFirstStarted),c++);return[c===Object.keys(a).length,b]}catch(La){return W(La),[!1,void 0]}};
TGa=function(a){var b=new Ss,c=0;try{if(a.datapushBuild){var d=AHa(a.datapushBuild);d[0]&&(I(b,Qs,1,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
AHa=function(a){var b=new Qs,c=0;try{return void 0!==a.buildId&&(H(b,1,a.buildId),c++),void 0!==a.clientExperimentId&&(H(b,2,a.clientExperimentId),c++),void 0!==a.accessType&&(H(b,3,BHa[a.accessType]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
UGa=function(a){var b=new Rs,c=0;try{if(a.datapushBuild){var d=AHa(a.datapushBuild);d[0]&&(I(b,Qs,1,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
VGa=function(a){var b=new gv,c=0;try{return void 0!==a.assetLoggingId&&(H(b,1,a.assetLoggingId),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
VR=function(a){var b=new vu,c=0;try{return a.stackTraces&&(GR(b.B.bind(b),a.stackTraces,CHa),c++),a.allModules&&(GR(b.j.bind(b),a.allModules,DHa),c++),void 0!==a.appVersionCode&&(H(b,3,a.appVersionCode),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
CHa=function(a){var b=new uu,c=0;try{if(a.mainThread){var d=EHa(a.mainThread);d[0]&&(I(b,tu,1,d[1]),c++)}a.backgroundThreads&&(GR(b.j.bind(b),a.backgroundThreads,EHa),c++);a.metaData&&(GR(b.B.bind(b),a.metaData,FHa),c++);return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
EHa=function(a){var b=new tu,c=0;try{a.stackFrames&&(GR(b.j.bind(b),a.stackFrames,GHa),c++);void 0!==a.androidStack&&(H(b,6,a.androidStack),c++);void 0!==a.threadName&&(H(b,2,a.threadName),c++);void 0!==a.cpuUsage&&(Ph(b,3,a.cpuUsage),c++);void 0!==a.cpuTimeSec&&(H(b,4,a.cpuTimeSec),c++);if(a.iosThreadInfo){var d=a.iosThreadInfo,e=new qu,f=0;try{void 0!==d.state&&(e.qc(HHa[d.state]),f++);void 0!==d.flag&&(H(e,2,IHa[d.flag]),f++);void 0!==d.currentPriority&&(H(e,3,d.currentPriority),f++);void 0!==
d.priority&&(H(e,4,d.priority),f++);void 0!==d.maxPriority&&(H(e,5,d.maxPriority),f++);void 0!==d.isCrashedThread&&(H(e,6,d.isCrashedThread),f++);var h=[f===Object.keys(d).length,e]}catch(l){W(l),h=[!1,void 0]}h[0]&&(I(b,qu,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}};
GHa=function(a){var b=new ru,c=0;try{return void 0!==a.instructionOffset&&(H(b,1,a.instructionOffset),c++),void 0!==a.moduleIndex&&(H(b,2,a.moduleIndex),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
FHa=function(a){var b=new pu,c=0;try{return void 0!==a.clientTimestampMs&&(H(b,1,a.clientTimestampMs),c++),void 0!==a.sampleTimeCostMs&&(Ph(b,2,a.sampleTimeCostMs),c++),void 0!==a.numberOfBustedFrames&&(H(b,3,a.numberOfBustedFrames),c++),void 0!==a.droppedFrameDurationMs&&(H(b,4,a.droppedFrameDurationMs),c++),void 0!==a.deviceOrientation&&(H(b,5,JHa[a.deviceOrientation]),c++),void 0!==a.processUptimeMs&&(H(b,6,a.processUptimeMs),c++),void 0!==a.memoryUsageKbytes&&(H(b,7,a.memoryUsageKbytes),c++),
void 0!==a.batteryPercentage&&(Ph(b,8,a.batteryPercentage),c++),void 0!==a.exceptionName&&(H(b,9,a.exceptionName),c++),void 0!==a.exceptionReason&&(H(b,10,a.exceptionReason),c++),void 0!==a.signalNumber&&(H(b,11,a.signalNumber),c++),void 0!==a.signalCode&&(H(b,12,a.signalCode),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
DHa=function(a){var b=new ou,c=0;try{return void 0!==a.moduleUuid&&(Rh(b,1,a.moduleUuid),c++),void 0!==a.moduleName&&(H(b,2,a.moduleName),c++),void 0!==a.loadAddress&&(H(b,3,a.loadAddress),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
XGa=function(a){var b=new Du,c=0;try{return void 0!==a.key&&(H(b,1,a.key),c++),void 0!==a.value&&(H(b,2,a.value),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
eHa=function(a){var b=new Zu,c=0;try{if(a.jsStack){var d=a.jsStack,e=new Yu,f=0;try{d.stackTrace&&(GR(e.j.bind(e),d.stackTrace,KHa),f++);var h=[f===Object.keys(d).length,e]}catch(v){W(v),h=[!1,void 0]}h[0]&&(Oh(b,Yu,1,$R,h[1]),c++)}if(a.javaStack){var l=a.javaStack,m=new Wu;h=0;try{void 0!==l.stackTrace&&(H(m,1,l.stackTrace),h++);var n=[h===Object.keys(l).length,m]}catch(v){W(v),n=[!1,void 0]}n[0]&&(Oh(b,Wu,2,$R,n[1]),c++)}if(a.ccStack){var p=a.ccStack,q=new Vu;n=0;try{p.stackTrace&&(GR(q.j.bind(q),
p.stackTrace,LHa),n++);var r=[n===Object.keys(p).length,q]}catch(v){W(v),r=[!1,void 0]}r[0]&&(Oh(b,Vu,3,$R,r[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return W(v),[!1,void 0]}};
KHa=function(a){var b=new Xu,c=0;try{return void 0!==a.functionName&&(H(b,1,a.functionName),c++),void 0!==a.source&&(H(b,2,a.source),c++),void 0!==a.lineNumber&&(H(b,3,a.lineNumber),c++),void 0!==a.columnNumber&&(H(b,4,a.columnNumber),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
LHa=function(a){var b=new Uu,c=0;try{return void 0!==a.functionName&&(H(b,1,a.functionName),c++),void 0!==a.source&&(H(b,2,a.source),c++),void 0!==a.lineNumber&&(H(b,3,a.lineNumber),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
gHa=function(a){var b=new xu,c=0;try{return void 0!==a.batteryLevelMicros&&(H(b,1,a.batteryLevelMicros),c++),void 0!==a.networkType&&(H(b,2,WR[a.networkType]),c++),void 0!==a.screenBrightness&&(Ph(b,3,a.screenBrightness),c++),void 0!==a.isLowPowerMode&&(H(b,4,a.isLowPowerMode),c++),void 0!==a.isBackground&&(H(b,5,a.isBackground),c++),void 0!==a.isStateTransition&&(H(b,6,a.isStateTransition),c++),void 0!==a.observedBackgroundFetchMethodCallback&&(H(b,7,a.observedBackgroundFetchMethodCallback),c++),
void 0!==a.observedBackgroundTaskDidExpire&&(H(b,8,a.observedBackgroundTaskDidExpire),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
hHa=function(a){var b=new mu,c=0;try{return void 0!==a.batteryLevelMicros&&(H(b,1,a.batteryLevelMicros),c++),void 0!==a.networkType&&(H(b,2,WR[a.networkType]),c++),void 0!==a.screenBrightness&&(H(b,3,a.screenBrightness),c++),void 0!==a.screenBrightnessMode&&(H(b,4,MHa[a.screenBrightnessMode]),c++),void 0!==a.lowPowerMode&&(H(b,5,NHa[a.lowPowerMode]),c++),void 0!==a.batteryHealth&&(H(b,6,OHa[a.batteryHealth]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
jHa=function(a){var b=new kv,c=0;try{return void 0!==a.className&&(H(b,1,a.className),c++),void 0!==a.instanceNum&&(H(b,2,a.instanceNum),c++),void 0!==a.instanceSizeBytes&&(H(b,3,a.instanceSizeBytes),c++),void 0!==a.allocationNum&&(H(b,4,a.allocationNum),c++),void 0!==a.deallocationNum&&(H(b,5,a.deallocationNum),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
kHa=function(a){var b=new wt,c=0;try{if(a.v8Stats){var d=a.v8Stats,e=new vt,f=0;try{void 0!==d.totalHeapSize&&(H(e,1,d.totalHeapSize),f++);void 0!==d.totalHeapSizeExecutable&&(H(e,2,d.totalHeapSizeExecutable),f++);void 0!==d.totalPhysicalSize&&(H(e,3,d.totalPhysicalSize),f++);void 0!==d.totalAvailableSize&&(H(e,4,d.totalAvailableSize),f++);void 0!==d.totalGlobalHandlesSize&&(H(e,5,d.totalGlobalHandlesSize),f++);void 0!==d.usedGlobalHandlesSize&&(H(e,6,d.usedGlobalHandlesSize),f++);void 0!==d.usedHeapSize&&
(H(e,7,d.usedHeapSize),f++);void 0!==d.heapSizeLimit&&(H(e,8,d.heapSizeLimit),f++);void 0!==d.mallocedMemory&&(H(e,9,d.mallocedMemory),f++);void 0!==d.externalMemory&&(H(e,10,d.externalMemory),f++);void 0!==d.peakMallocedMemory&&(H(e,11,d.peakMallocedMemory),f++);void 0!==d.numberOfNativeContexts&&(H(e,12,d.numberOfNativeContexts),f++);void 0!==d.numberOfDetachedContexts&&(H(e,13,d.numberOfDetachedContexts),f++);var h=[f===Object.keys(d).length,e]}catch(p){W(p),h=[!1,void 0]}h[0]&&(Oh(b,vt,1,PHa,
h[1]),c++)}if(a.quickjsStats){var l=a.quickjsStats,m=new ut;h=0;try{void 0!==l.mallocSize&&(H(m,1,l.mallocSize),h++);void 0!==l.mallocLimit&&(H(m,2,l.mallocLimit),h++);void 0!==l.memoryUsedSize&&(H(m,3,l.memoryUsedSize),h++);void 0!==l.mallocCount&&(H(m,4,l.mallocCount),h++);void 0!==l.memoryUsedCount&&(H(m,5,l.memoryUsedCount),h++);var n=[h===Object.keys(l).length,m]}catch(p){W(p),n=[!1,void 0]}n[0]&&(Oh(b,ut,2,PHa,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}};
lHa=function(a){var b=new ov,c=0;try{return void 0!==a.index&&(H(b,1,a.index),c++),void 0!==a.networkEventType&&(H(b,2,QHa[a.networkEventType]),c++),void 0!==a.path&&(H(b,3,a.path),c++),void 0!==a.failureReason&&(H(b,4,RHa[a.failureReason]),c++),void 0!==a.startTimeMs&&(H(b,5,a.startTimeMs),c++),void 0!==a.totalDurationMs&&(H(b,6,a.totalDurationMs),c++),void 0!==a.requestSize&&(H(b,7,a.requestSize),c++),void 0!==a.responseSize&&(H(b,8,a.responseSize),c++),a.networkRequestAttempt&&(GR(b.j.bind(b),
a.networkRequestAttempt,SHa),c++),void 0!==a.httpMethod&&(H(b,10,THa[a.httpMethod]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
SHa=function(a){var b=new nv,c=0;try{return void 0!==a.failureReason&&(H(b,1,RHa[a.failureReason]),c++),void 0!==a.startTimeMs&&(H(b,5,a.startTimeMs),c++),void 0!==a.durationMs&&(H(b,2,a.durationMs),c++),void 0!==a.networkAvailable&&(H(b,3,UHa[a.networkAvailable]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
nHa=function(a){var b=new tv,c=0;try{return void 0!==a.threadPoolName&&(H(b,1,a.threadPoolName),c++),void 0!==a.threadCount&&(H(b,2,a.threadCount),c++),void 0!==a.startedTaskCount&&(H(b,3,a.startedTaskCount),c++),void 0!==a.finishedTaskCount&&(H(b,4,a.finishedTaskCount),c++),void 0!==a.runningTimeMs&&(H(b,5,a.runningTimeMs),c++),void 0!==a.waitingTimeMs&&(H(b,6,a.waitingTimeMs),c++),void 0!==a.runCount&&(H(b,7,a.runCount),c++),void 0!==a.runningPercent&&(H(b,8,a.runningPercent),c++),[c===Object.keys(a).length,
b]}catch(d){return W(d),[!1,void 0]}};
qHa=function(a){var b=new ev,c=0;try{void 0!==a.curveTimestampMs&&(H(b,1,a.curveTimestampMs),c++);void 0!==a.curveWeight&&(Ph(b,2,a.curveWeight),c++);void 0!==a.realTimestampMs&&(H(b,3,a.realTimestampMs),c++);void 0!==a.sampleCostUsec&&(H(b,4,a.sampleCostUsec),c++);if(a.compactStackTraceSample){var d=VR(a.compactStackTraceSample);d[0]&&(I(b,vu,5,d[1]),c++)}return[c===Object.keys(a).length,b]}catch(e){return W(e),[!1,void 0]}};
vHa=function(a){var b=new rw,c=0;try{return void 0!==a.itag&&(H(b,1,a.itag),c++),void 0!==a.startingByte&&(H(b,2,a.startingByte),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
$Ha=function(a){var b=new Tx,c=0;try{void 0!==a.id&&(H(b,1,a.id),c++);void 0!==a.videoState&&(H(b,2,VHa[a.videoState]),c++);void 0!==a.pendingStateFlags&&(H(b,3,a.pendingStateFlags),c++);void 0!==a.totalBytes&&(H(b,21,a.totalBytes),c++);void 0!==a.downloadedBytes&&(H(b,4,a.downloadedBytes),c++);void 0!==a.selectedVideoQuality&&(H(b,5,YR[a.selectedVideoQuality]),c++);void 0!==a.selectedOfflineMode&&(H(b,6,rHa[a.selectedOfflineMode]),c++);void 0!==a.playerResponseSavedTimeMs&&(H(b,7,a.playerResponseSavedTimeMs),
c++);void 0!==a.offlineStateUpdateTimeMs&&(H(b,8,a.offlineStateUpdateTimeMs),c++);void 0!==a.offlineStateExpiresInS&&(H(b,9,a.offlineStateExpiresInS),c++);void 0!==a.durationInS&&(H(b,10,a.durationInS),c++);void 0!==a.isInPlaylist&&(H(b,11,a.isInPlaylist),c++);void 0!==a.addedNetworkType&&(H(b,12,WR[a.addedNetworkType]),c++);void 0!==a.downloadCompletedNetworkType&&(H(b,13,WR[a.downloadCompletedNetworkType]),c++);a.captions&&(GR(b.j.bind(b),a.captions,WHa),c++);void 0!==a.unusedOfflineVideoPendingState&&
(H(b,15,uHa[a.unusedOfflineVideoPendingState]),c++);void 0!==a.lastPlaybackTimestampMs&&(H(b,16,a.lastPlaybackTimestampMs),c++);a.offlineSuspendedStates&&(GR(b.B.bind(b),a.offlineSuspendedStates,XHa),c++);void 0!==a.streamInLocalStorage&&(H(b,18,a.streamInLocalStorage),c++);void 0!==a.streamInInternalStorage&&(H(b,19,a.streamInInternalStorage),c++);if(a.storageIdStates){var d=a.storageIdStates,e=new Sx,f=0;try{void 0!==d.storageId&&(H(e,1,d.storageId),f++);void 0!==d.storageIdSourceType&&(H(e,2,YHa[d.storageIdSourceType]),
f++);var h=[f===Object.keys(d).length,e]}catch(v){W(v),h=[!1,void 0]}h[0]&&(I(b,Sx,20,h[1]),c++)}void 0!==a.cotn&&(H(b,22,a.cotn),c++);if(a.additionalVideoClientState){var l=a.additionalVideoClientState,m=new Ox;try{var n=[0===Object.keys(l).length,m]}catch(v){W(v),n=[!1,void 0]}n[0]&&(I(b,Ox,23,n[1]),c++)}if(a.offlineVideoEntityMigrationState){var p=a.offlineVideoEntityMigrationState,q=new Qx;n=0;try{void 0!==p.isInOfflineStore&&(H(q,1,p.isInOfflineStore),n++);void 0!==p.isPlaybackDataEntityPresent&&
(H(q,2,p.isPlaybackDataEntityPresent),n++);void 0!==p.wasPlaybackDataEntityUsedToFillVideoState&&(H(q,3,p.wasPlaybackDataEntityUsedToFillVideoState),n++);void 0!==p.isTransferEntityPresent&&(H(q,4,p.isTransferEntityPresent),n++);void 0!==p.wasTransferEntityUsedToFillVideoState&&(H(q,5,p.wasTransferEntityUsedToFillVideoState),n++);void 0!==p.offlineStoreCaptionTrackCount&&(H(q,6,p.offlineStoreCaptionTrackCount),n++);void 0!==p.entityStoreCaptionTrackCount&&(H(q,7,p.entityStoreCaptionTrackCount),n++);
void 0!==p.isMetadataEntityPresent&&(H(q,8,p.isMetadataEntityPresent),n++);void 0!==p.transferDiffFields&&(HR(q.j.bind(q),p.transferDiffFields,ZHa),n++);var r=[n===Object.keys(p).length,q]}catch(v){W(v),r=[!1,void 0]}r[0]&&(I(b,Qx,24,r[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return W(v),[!1,void 0]}};
WHa=function(a){var b=new Px,c=0;try{return void 0!==a.format&&(H(b,1,a.format),c++),void 0!==a.isDownloaded&&(H(b,2,a.isDownloaded),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
XHa=function(a){var b=new Rx,c=0;try{return void 0!==a.totalDownloadedBytes&&(H(b,1,a.totalDownloadedBytes),c++),void 0!==a.totalSegmentCount&&(H(b,2,a.totalSegmentCount),c++),void 0!==a.backgroundTransitionCount&&(H(b,3,a.backgroundTransitionCount),c++),void 0!==a.totalDurationMs&&(H(b,4,a.totalDurationMs),c++),void 0!==a.downloadErrorCount&&(H(b,5,a.downloadErrorCount),c++),void 0!==a.totalDownloadedSizePercent&&(H(b,6,a.totalDownloadedSizePercent),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),
[!1,void 0]}};
bIa=function(a){var b=new Nx,c=0;try{return void 0!==a.id&&(H(b,1,a.id),c++),a.videoIds&&(GR(b.j.bind(b),a.videoIds),c++),void 0!==a.videoCount&&(H(b,3,a.videoCount),c++),void 0!==a.successCount&&(H(b,4,a.successCount),c++),void 0!==a.failCount&&(H(b,5,a.failCount),c++),void 0!==a.pendingCount&&(H(b,6,a.pendingCount),c++),void 0!==a.disabledCount&&(H(b,7,a.disabledCount),c++),void 0!==a.deletedCount&&(H(b,8,a.deletedCount),c++),void 0!==a.selectedVideoQuality&&(H(b,9,YR[a.selectedVideoQuality]),c++),
void 0!==a.isPlaylistOwner&&(H(b,10,a.isPlaylistOwner),c++),void 0!==a.lastSyncTimeMs&&(H(b,11,a.lastSyncTimeMs),c++),void 0!==a.requestSource&&(H(b,12,aIa[a.requestSource]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
eIa=function(a){var b=new Hx,c=0;try{return void 0!==a.videoId&&(b.setVideoId(a.videoId),c++),void 0!==a.itag&&(H(b,6,a.itag),c++),void 0!==a.failureReason&&(H(b,2,cIa[a.failureReason]),c++),void 0!==a.isCachedExternally&&(H(b,3,a.isCachedExternally),c++),void 0!==a.previousFailureReason&&(H(b,4,cIa[a.previousFailureReason]),c++),void 0!==a.previousFailureReasonTimestampMs&&(H(b,5,a.previousFailureReasonTimestampMs),c++),void 0!==a.streamVerificationStrategy&&(H(b,7,ZR[a.streamVerificationStrategy]),
c++),void 0!==a.blockSizeBytes&&(H(b,8,a.blockSizeBytes),c++),a.streamVerificationFailedBlocks&&(GR(b.j.bind(b),a.streamVerificationFailedBlocks,dIa),c++),void 0!==a.primaryVerificationStrategy&&(H(b,10,ZR[a.primaryVerificationStrategy]),c++),void 0!==a.secondaryVerificationStrategy&&(H(b,11,ZR[a.secondaryVerificationStrategy]),c++),void 0!==a.secondaryFailureReason&&(H(b,12,cIa[a.secondaryFailureReason]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
dIa=function(a){var b=new Gx,c=0;try{return void 0!==a.itag&&(H(b,1,a.itag),c++),void 0!==a.startingByte&&(H(b,2,a.startingByte),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
fIa=function(a){var b=new Jx,c=0;try{return void 0!==a.videoId&&(b.setVideoId(a.videoId),c++),void 0!==a.surrogateVideoId&&(H(b,2,a.surrogateVideoId),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
gIa=function(a){var b=new Kx,c=0;try{return void 0!==a.externalVideoId&&(H(b,1,a.externalVideoId),c++),void 0!==a.videoSid&&(H(b,2,a.videoSid),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
oIa=function(a){var b=new Tt,c=0;try{if(a.opportunityData){var d=a.opportunityData,e=new Pt,f=0;try{if(d.debugData){var h=d.debugData,l=new Ot,m=0;try{h.slots&&(GR(l.j.bind(l),h.slots,hIa),m++);void 0!==h.associatedSlotId&&(H(l,2,h.associatedSlotId),m++);var n=[m===Object.keys(h).length,l]}catch(Xa){W(Xa),n=[!1,void 0]}n[0]&&(I(e,Ot,2,n[1]),f++)}void 0!==d.opportunityType&&(H(e,3,iIa[d.opportunityType]),f++);var p=[f===Object.keys(d).length,e]}catch(Xa){W(Xa),p=[!1,void 0]}p[0]&&(I(b,Pt,1,p[1]),c++)}if(a.slotData){var q=
hIa(a.slotData);q[0]&&(I(b,Nt,2,q[1]),c++)}if(a.layoutData){var r=a.layoutData,v=new Lt;q=0;try{void 0!==r.type&&(H(v,2,jIa[r.type]),q++);if(r.debugData){var x=r.debugData,z=new Kt;p=0;try{void 0!==x.layoutId&&(H(z,1,x.layoutId),p++);x.exitNormalTriggerData&&(GR(z.O1.bind(z),x.exitNormalTriggerData,aS),p++);x.exitSkipTriggerData&&(GR(z.P1.bind(z),x.exitSkipTriggerData,aS),p++);x.exitMuteTriggerData&&(GR(z.N1.bind(z),x.exitMuteTriggerData,aS),p++);x.exitUserInputSubmittedTriggerData&&(GR(z.R1.bind(z),
x.exitUserInputSubmittedTriggerData,aS),p++);x.exitUserCancelledTriggerData&&(GR(z.Q1.bind(z),x.exitUserCancelledTriggerData,aS),p++);var B=[p===Object.keys(x).length,z]}catch(Xa){W(Xa),B=[!1,void 0]}B[0]&&(I(v,Kt,3,B[1]),q++)}void 0!==r.controlFlowManagerLayer&&(H(v,4,kIa[r.controlFlowManagerLayer]),q++);void 0!==r.pingTriggerTypes&&(HR(v.j.bind(v),r.pingTriggerTypes,bS),q++);var F=[q===Object.keys(r).length,v]}catch(Xa){W(Xa),F=[!1,void 0]}F[0]&&(I(b,Lt,3,F[1]),c++)}if(a.triggerData){var G=aS(a.triggerData);
G[0]&&(I(b,Jt,4,G[1]),c++)}if(a.pingData){var D=a.pingData,L=new St;G=0;try{void 0!==D.sourceTriggerType&&(H(L,1,bS[D.sourceTriggerType]),G++);D.debugData&&(GR(L.j.bind(L),D.debugData,lIa),G++);void 0!==D.pingCount&&(H(L,3,D.pingCount),G++);void 0!==D.pingDispatchStatus&&(H(L,4,mIa[D.pingDispatchStatus]),G++);void 0!==D.serializedAdPingMetadata&&(Rh(L,5,D.serializedAdPingMetadata),G++);if(D.pingDebugData){var P=D.pingDebugData,T=new Rt;F=0;try{void 0!==P.substitutedMacros&&(HR(T.j.bind(T),P.substitutedMacros,
nIa),F++);void 0!==P.unsubstitutedMacros&&(HR(T.B.bind(T),P.unsubstitutedMacros,nIa),F++);var fa=[F===Object.keys(P).length,T]}catch(Xa){W(Xa),fa=[!1,void 0]}fa[0]&&(I(L,Rt,6,fa[1]),G++)}void 0!==D.pingIndex&&(H(L,8,D.pingIndex),G++);var V=[G===Object.keys(D).length,L]}catch(Xa){W(Xa),V=[!1,void 0]}V[0]&&(I(b,St,6,V[1]),c++)}if(a.externalContext){var Q=a.externalContext,X=new Gt;V=0;try{if(Q.organicPlaybackContext){var O=Q.organicPlaybackContext,la=new Ft;D=0;try{void 0!==O.contentCpn&&(H(la,1,O.contentCpn),
D++);void 0!==O.isLivePlayback&&(H(la,2,O.isLivePlayback),D++);void 0!==O.isOfflinePlayback&&(H(la,3,O.isOfflinePlayback),D++);void 0!==O.isMdxPlayback&&(H(la,4,O.isMdxPlayback),D++);void 0!==O.isDaiContent&&(H(la,5,O.isDaiContent),D++);void 0!==O.isPrefetchedPlayback&&(H(la,6,O.isPrefetchedPlayback),D++);var qa=[D===Object.keys(O).length,la]}catch(Xa){W(Xa),qa=[!1,void 0]}qa[0]&&(I(X,Ft,1,qa[1]),V++)}if(Q.html5ExperimentContext){var Ma=Q.html5ExperimentContext,Qa=new Et;qa=0;try{void 0!==Ma.ytExperimentId&&
(H(Qa,1,Ma.ytExperimentId),qa++);var ua=[qa===Object.keys(Ma).length,Qa]}catch(Xa){W(Xa),ua=[!1,void 0]}ua[0]&&(I(X,Et,2,ua[1]),V++)}if(Q.adVideoPlaybackContext){var ab=Q.adVideoPlaybackContext,ta=new Dt;ua=0;try{void 0!==ab.adVideoCpn&&(H(ta,1,ab.adVideoCpn),ua++);var db=[ua===Object.keys(ab).length,ta]}catch(Xa){W(Xa),db=[!1,void 0]}db[0]&&(I(X,Dt,3,db[1]),V++)}var pb=[V===Object.keys(Q).length,X]}catch(Xa){W(Xa),pb=[!1,void 0]}pb[0]&&(I(b,Gt,5,pb[1]),c++)}return[c===Object.keys(a).length,b]}catch(Xa){return W(Xa),
[!1,void 0]}};
hIa=function(a){var b=new Nt,c=0;try{void 0!==a.type&&(H(b,2,pIa[a.type]),c++);void 0!==a.entryTriggerType&&(H(b,6,bS[a.entryTriggerType]),c++);void 0!==a.slotPhysicalPosition&&(H(b,8,a.slotPhysicalPosition),c++);if(a.debugData){var d=a.debugData,e=new Mt,f=0;try{void 0!==d.slotId&&(H(e,1,d.slotId),f++);void 0!==d.entryTriggerTypes&&(HR(e.B.bind(e),d.entryTriggerTypes,bS),f++);void 0!==d.unscheduledDueToError&&(H(e,3,d.unscheduledDueToError),f++);d.entryTriggerData&&(GR(e.j.bind(e),d.entryTriggerData,
aS),f++);if(d.slotEntryTriggerData){var h=aS(d.slotEntryTriggerData);h[0]&&(I(e,Jt,7,h[1]),f++)}d.fulfillmentTriggerData&&(GR(e.I.bind(e),d.fulfillmentTriggerData,aS),f++);d.expirationTriggerData&&(GR(e.D.bind(e),d.expirationTriggerData,aS),f++);var l=[f===Object.keys(d).length,e]}catch(m){W(m),l=[!1,void 0]}l[0]&&(I(b,Mt,3,l[1]),c++)}void 0!==a.externallyManaged&&(H(b,4,a.externallyManaged),c++);void 0!==a.controlFlowManagerLayer&&(H(b,5,kIa[a.controlFlowManagerLayer]),c++);return[c===Object.keys(a).length,
b]}catch(m){return W(m),[!1,void 0]}};
aS=function(a){var b=new Jt,c=0;try{void 0!==a.type&&(H(b,1,bS[a.type]),c++);void 0!==a.category&&(H(b,2,qIa[a.category]),c++);if(a.layoutIdEnteredTriggerData){var d=a.layoutIdEnteredTriggerData,e=new Ht,f=0;try{void 0!==d.enteredLayoutId&&(H(e,1,d.enteredLayoutId),f++);var h=[f===Object.keys(d).length,e]}catch(p){W(p),h=[!1,void 0]}h[0]&&(Oh(b,Ht,3,rIa,h[1]),c++)}if(a.triggerSourceData){var l=a.triggerSourceData,m=new It;h=0;try{void 0!==l.associatedSlotId&&(Kh(m,1,sIa,l.associatedSlotId),h++);void 0!==
l.associatedLayoutId&&(Kh(m,2,sIa,l.associatedLayoutId),h++);var n=[h===Object.keys(l).length,m]}catch(p){W(p),n=[!1,void 0]}n[0]&&(Oh(b,It,4,rIa,n[1]),c++)}void 0!==a.shouldOnlyTriggerOnce&&(H(b,5,a.shouldOnlyTriggerOnce),c++);return[c===Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}};
lIa=function(a){var b=new Qt,c=0;try{return void 0!==a.macros&&(HR(b.j.bind(b),a.macros,nIa),c++),void 0!==a.success&&(H(b,2,a.success),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
uIa=function(a){var b=new zt,c=0;try{if(a.cui){var d=a.cui,e=new xt;try{var f=[0===Object.keys(d).length,e]}catch(h){W(h),f=[!1,void 0]}f[0]&&(I(b,xt,1,f[1]),c++)}void 0!==a.step&&(H(b,2,tIa[a.step]),c++);return[c===Object.keys(a).length,b]}catch(h){return W(h),[!1,void 0]}};
vIa=function(a){var b=new gu,c=0;try{return void 0!==a.startMs&&(Ph(b,1,a.startMs),c++),void 0!==a.endMs&&(Ph(b,2,a.endMs),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
wIa=function(a){var b=new Ut,c=0;try{return void 0!==a.externalVideoId&&(H(b,1,a.externalVideoId),c++),void 0!==a.originalMediaDurationMs&&(H(b,2,a.originalMediaDurationMs),c++),void 0!==a.trimmedMediaDurationMs&&(H(b,3,a.trimmedMediaDurationMs),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
xIa=function(a){var b=new ow,c=0;try{return void 0!==a.orchestrationActionId&&(H(b,1,a.orchestrationActionId),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
AIa=function(a){var b=new Lw,c=0;try{return void 0!==a.ypcCallerPage&&(H(b,1,yIa[a.ypcCallerPage]),c++),void 0!==a.useCase&&(H(b,2,zIa[a.useCase]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
EIa=function(a){var b=new Xw,c=0;try{if(a.itemId){var d=a.itemId,e=new tt,f=0;try{void 0!==d.type&&(H(e,1,cS[d.type]),f++);void 0!==d.externalId&&(H(e,2,d.externalId),f++);var h=[f===Object.keys(d).length,e]}catch(p){W(p),h=[!1,void 0]}h[0]&&(I(b,tt,1,h[1]),c++)}void 0!==a.productType&&(H(b,2,dS[a.productType]),c++);if(a.alcLoggingParams){var l=a.alcLoggingParams,m=new Ww;h=0;try{void 0!==l.purchaseOriginEntityType&&(H(m,1,BIa[l.purchaseOriginEntityType]),h++);void 0!==l.purchaseOriginPageType&&(H(m,
2,CIa[l.purchaseOriginPageType]),h++);var n=[h===Object.keys(l).length,m]}catch(p){W(p),n=[!1,void 0]}n[0]&&(Oh(b,Ww,3,DIa,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return W(p),[!1,void 0]}};
gJa=function(a){var b=new Iv,c=0;try{if(a.dimensions){var d=a.dimensions,e=new Gv,f=0;try{void 0!==d.csn&&(H(e,1,d.csn),f++);void 0!==d.userExperienceId&&(H(e,2,d.userExperienceId),f++);if(d.studio){var h=d.studio,l=new Dv,m=0;try{void 0!==h.route&&(H(l,1,h.route),m++);void 0!==h.feature&&(H(l,2,FIa[h.feature]),m++);void 0!==h.topEntityType&&(H(l,3,GIa[h.topEntityType]),m++);void 0!==h.availability&&(H(l,4,HIa[h.availability]),m++);void 0!==h.isChannelDelegation&&(H(l,5,h.isChannelDelegation),m++);
void 0!==h.isArtistDelegation&&(H(l,6,h.isArtistDelegation),m++);void 0!==h.environment&&(H(l,7,IIa[h.environment]),m++);void 0!==h.networkConnectionStatus&&(H(l,8,JIa[h.networkConnectionStatus]),m++);var n=[m===Object.keys(h).length,l]}catch(ua){W(ua),n=[!1,void 0]}n[0]&&(I(e,Dv,3,n[1]),f++)}if(d.mweb){var p=d.mweb,q=new Cv;n=0;try{void 0!==p.pageType&&(H(q,1,KIa[p.pageType]),n++);void 0!==p.navType&&(H(q,2,LIa[p.navType]),n++);var r=[n===Object.keys(p).length,q]}catch(ua){W(ua),r=[!1,void 0]}r[0]&&
(I(e,Cv,4,r[1]),f++)}if(d.mainAppWeb){var v=d.mainAppWeb,x=new Bv;r=0;try{void 0!==v.pageType&&(H(x,1,MIa[v.pageType]),r++);void 0!==v.requestType&&(H(x,2,NIa[v.requestType]),r++);void 0!==v.isShellLoad&&(H(x,3,v.isShellLoad),r++);var z=[r===Object.keys(v).length,x]}catch(ua){W(ua),z=[!1,void 0]}z[0]&&(I(e,Bv,5,z[1]),f++)}if(d.survivalSli){var B=d.survivalSli,F=new zv;z=0;try{void 0!==B.partitionMinute&&(H(F,1,B.partitionMinute),z++);void 0!==B.survivalStatus&&(H(F,2,OIa[B.survivalStatus]),z++);void 0!==
B.survivalSessionType&&(H(F,3,PIa[B.survivalSessionType]),z++);var G=[z===Object.keys(B).length,F]}catch(ua){W(ua),G=[!1,void 0]}G[0]&&(I(e,zv,6,G[1]),f++)}if(d.tvhtml5){var D=d.tvhtml5,L=new Ev;G=0;try{void 0!==D.authRefreshTokenFailureType&&(H(L,1,QIa[D.authRefreshTokenFailureType]),G++);void 0!==D.networkErrorEndpoint&&(H(L,2,RIa[D.networkErrorEndpoint]),G++);void 0!==D.networkErrorResponseCode&&(H(L,3,D.networkErrorResponseCode),G++);void 0!==D.sessionSurvivalLengthMin&&(H(L,4,D.sessionSurvivalLengthMin),
G++);void 0!==D.accountChangeType&&(H(L,5,SIa[D.accountChangeType]),G++);void 0!==D.accountChangeTrigger&&(H(L,6,TIa[D.accountChangeTrigger]),G++);void 0!==D.cpn&&(H(L,7,D.cpn),G++);void 0!==D.sessionSurvivalDidUserAgentChange&&(H(L,8,D.sessionSurvivalDidUserAgentChange),G++);void 0!==D.adShownToPremiumUserCondition&&(H(L,9,UIa[D.adShownToPremiumUserCondition]),G++);void 0!==D.identityType&&(H(L,10,VIa[D.identityType]),G++);void 0!==D.identityDelegationType&&(H(L,11,WIa[D.identityDelegationType]),
G++);void 0!==D.botguardServerEnvironment&&(H(L,12,XIa[D.botguardServerEnvironment]),G++);void 0!==D.accountEventTrigger&&(H(L,13,YIa[D.accountEventTrigger]),G++);void 0!==D.signInMethodType&&(H(L,14,ZIa[D.signInMethodType]),G++);void 0!==D.accountEventErrorType&&(H(L,15,$Ia[D.accountEventErrorType]),G++);void 0!==D.hadRemoteDeviceConnected&&(H(L,16,D.hadRemoteDeviceConnected),G++);void 0!==D.hadVoiceInitiatedPlayback&&(H(L,17,D.hadVoiceInitiatedPlayback),G++);void 0!==D.restartLengthMin&&(H(L,18,
D.restartLengthMin),G++);void 0!==D.restartReason&&(H(L,19,aJa[D.restartReason]),G++);void 0!==D.numberOfPersonaAccountsDelta&&(H(L,20,D.numberOfPersonaAccountsDelta),G++);var P=[G===Object.keys(D).length,L]}catch(ua){W(ua),P=[!1,void 0]}P[0]&&(I(e,Ev,7,P[1]),f++)}if(d.unpluggedWeb){var T=d.unpluggedWeb,fa=new Fv;P=0;try{void 0!==T.unpluggedWebEntitlementType&&(H(fa,1,bJa[T.unpluggedWebEntitlementType]),P++);void 0!==T.unpluggedWebPurchaseType&&(H(fa,2,cJa[T.unpluggedWebPurchaseType]),P++);var V=
[P===Object.keys(T).length,fa]}catch(ua){W(ua),V=[!1,void 0]}V[0]&&(I(e,Fv,8,V[1]),f++)}void 0!==d.logEventStatus&&(H(e,9,d.logEventStatus),f++);if(d.kids){var Q=d.kids,X=new Av;V=0;try{void 0!==Q.userType&&(H(X,1,dJa[Q.userType]),V++);var O=[V===Object.keys(Q).length,X]}catch(ua){W(ua),O=[!1,void 0]}O[0]&&(I(e,Av,10,O[1]),f++)}void 0!==d.screen&&(H(e,11,d.screen),f++);if(d.navigation){var la=d.navigation,qa=new yv;O=0;try{void 0!==la.destinationScreen&&(H(qa,1,la.destinationScreen),O++);void 0!==
la.navType&&(H(qa,2,eJa[la.navType]),O++);var Ma=[O===Object.keys(la).length,qa]}catch(ua){W(ua),Ma=[!1,void 0]}Ma[0]&&(I(e,yv,12,Ma[1]),f++)}var Qa=[f===Object.keys(d).length,e]}catch(ua){W(ua),Qa=[!1,void 0]}Qa[0]&&(I(b,Gv,1,Qa[1]),c++)}a.records&&(GR(b.j.bind(b),a.records,fJa),c++);return[c===Object.keys(a).length,b]}catch(ua){return W(ua),[!1,void 0]}};
fJa=function(a){var b=new Hv,c=0;try{return void 0!==a.name&&(H(b,1,hJa[a.name]),c++),void 0!==a.status&&(H(b,2,iJa[a.status]),c++),void 0!==a.state&&(b.qc(jJa[a.state]),c++),void 0!==a.sliId&&(H(b,4,a.sliId),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}};
eS=function(){};
kJa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
pA=function(a,b){var c=this;this.handleError=a;this.j=b;this.u=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.u=!0});
this.B=Math.random()<=g.hy("ytidb_transaction_ended_event_rate_limit_session",.2)};
mJa=function(a,b){eS.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:lJa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:lJa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
lJa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
nJa=function(){this.state=1;this.j=null};
pJa=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.qc(2),g.sC(c,function(){if(window[h])oJa(a,d,h,e);else{a.qc(3);var l=cra(c),m=document.getElementById(l);m&&(Zqa(l),m.parentNode.removeChild(m));g.DD(new g.bA("Unable to load Botguard","from "+c))}},f)):b?(f=g.qf("SCRIPT"),b instanceof Yd?(f.textContent=wba(b),ek(f)):f.textContent=b,f.nonce=ye(),document.head.appendChild(f),document.head.removeChild(f),window[h]?oJa(a,d,h,e):(a.qc(4),g.DD(new g.bA("Unable to load Botguard from JS")))):g.DD(new g.bA("Unable to load VM; no url or JS provided"))};
oJa=function(a,b,c,d){a.qc(5);try{var e=new Xj({program:b,globalName:c,x8:g.gy("att_web_record_metrics")});e.b9.then(function(){a.qc(6);d&&d(b)});
a.jP(e)}catch(f){a.qc(7),f instanceof Error&&g.DD(f)}};
qJa=function(a,b){var c=g.fS;a=void 0===a?{}:a;b=void 0===b?3E3:b;return c.qE()?Promise.race([new Promise(function(d,e){setTimeout(function(){setTimeout(function(){setTimeout(function(){e(Error("Timed out waiting for snapshot"))},0)},0)},b)}),
new Promise(function(d){c.qE()?c.UY({by:a}).then(d):d(null)})]):Promise.resolve(null)};
gS=function(){var a=g.Ga("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
rJa=function(){nJa.apply(this,arguments)};
tJa=function(a){return!sJa||(0,g.M)()-sJa>a};
wJa=function(a,b){uJa(a.program,b.A8)&&(fF("bg_i",void 0,"player_att"),g.fS.initialize(a,function(){var c=a.serverEnvironment;fF("bg_l",void 0,"player_att");sJa=(0,g.M)();for(var d=0;d<vJa.length;d++){var e=vJa[d];try{e(c)}catch(f){}}},b.cspNonce))};
xJa=function(a){a=void 0===a?{}:a;return g.fS.invoke(a)};
yJa=function(a){var b=g.hy("botguard_async_snapshot_timeout_ms",3E3);a=void 0===a?{}:a;return qJa(a,b)};
uJa=function(a,b){return a?g.fS.isLoading()?!1:tJa(b):!1};
g.zJa=function(a,b){return a.La+"timedtext_video?ref=player&v="+b.videoId};
g.hS=function(a,b){a.feature=b;return a};
g.iS=function(a,b){b=g.Ui(b)||b;a.utm_source="yt-embeds-web";a.utm_medium=b};
g.AJa=function(a){var b=this;this.videoData=a;a={};this.u=(a.c1a=function(){var c=[];if(g.fS.isInitialized()){var d="";b.videoData&&b.videoData.pk&&(d=b.videoData.pk+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);fF("bg_v",void 0,"player_att");d=xJa(d);fF("bg_s",void 0,"player_att");d?c.push("r1a="+d):c.push("r1c=2")}else fF("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.fS.getState());return c.join("&")},a.c6a=
function(c){return"r6a="+(Number(c.c)^FR())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.ey("CATSTAT",0)))},a);
this.videoData&&this.videoData.pk?this.j=qy(this.videoData.pk):this.j={}};
g.BJa=function(a){if(a.videoData&&a.videoData.pk){for(var b=[a.videoData.pk],c=g.t(Object.keys(a.u)),d=c.next();!d.done;d=c.next())d=d.value,a.j[d]&&a.u[d]&&(d=a.u[d](a.j))&&b.push(d);return b.join("&")}return null};
DJa=function(a){var b={};Object.assign(b,a.u);g.gy("player_attestation_bg_async")&&(b.c1a=function(){return CJa(a)});
if(a.videoData&&a.videoData.pk){for(var c=[a.videoData.pk],d=g.t(Object.keys(b)),e=d.next();!e.done;e=d.next())e=e.value,a.j[e]&&b[e]&&(e=b[e](a.j))&&c.push(e);return new Promise(function(f,h){Promise.all(c).then(function(l){f(l.filter(function(m){return!!m}).join("&"))},h)})}return Promise.resolve(null)};
g.EJa=function(a,b){wJa(a,{A8:g.gJ(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
CJa=function(a){function b(e){return e+"&r1d="+g.fS.getState()}
if(!g.fS.isInitialized())return fF("bg_e",void 0,"player_att"),window.trayride||window.botguard?Promise.resolve(b("r1c=1")):Promise.resolve(b("r1c=4"));var c="";a.videoData&&a.videoData.pk&&(c=a.videoData.pk+("&r1b="+a.videoData.clientPlaybackNonce));a={};var d=(a.atr_challenge=c,a);return new Promise(function(e){fF("bg_v",void 0,"player_att");yJa(d).then(function(f){f?(fF("bg_s",void 0,"player_att"),e(b("r1a="+f))):(fF("bg_e",void 0,"player_att"),e(b("r1c=2")))},function(){fF("bg_e",void 0,"player_att");
e(b("r1c=3"))})})};
g.jS=function(a){var b=a.V(),c=g.FJa(b),d=a.Aa;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=PM(a);"leanback"===f?e="WATCH":b.K("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.Xb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Sn)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:GJa[e]}});a.Fx&&(d.unpluggedAppInfo={enableFilterMode:!0});
if(b=a.oa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Si&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=HJa[b];c.request=d;d=c.user||{};if(b=a.ya)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.FJa=function(a){var b=g.uP(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.t(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.K("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Oc)b.thirdParty={embedUrl:a};return b};
MJa=function(a,b,c){var d=a.videoId,e=g.jS(a),f=a.V(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(NC()),referer:document.location.toString(),signatureTimestamp:19471};g.Wz();a.isAutonav&&(h.autonav=!0);g.Xz(0,141)&&(h.autonavState=g.Xz(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.Xz(0,66);UM(a)&&(h.autoplay=!0);f.I&&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.t(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.t(q);for(var r=q.next();!r.done;r=q.next()){var v=g.t(r.value.split("="));r=v.next().value;v=faa(v);p[r]=v.join("=")}q=p.url;r=p.presetad;v=p.viralresponseurl;var x=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),v&&(m.viralAdResponseUrl=v),x&&(m.viralCampaignId=String(x));
else if("video_ad"===p.adtype){var z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=IJa[p.breaktype])z.breakType=p;q&&(z.url=q);r&&(z.presetAd=r);v&&(z.viralAdResponseUrl=v);x&&(z.viralCampaignId=String(x));n.push(z)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.fK;if(null!=m){m={startWalltime:String(m)};if(n=a.mm)m.manifestDuration=String(n||14400);h.liveContext=
m}a.mutedAutoplay&&(h.mutedAutoplay=!0);TM(a)&&(h.splay=!0);m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Kp)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.qj){n=a.SP;l=[];p=g.t(p.split(","));for(q=p.next();!q.done;q=p.next())if(r=q.value)if((q=r.startsWith("!"))&&(r=r.substr(1)),r=r.split("-"),!(3>r.length)){q={applicationState:q?"INACTIVE":"ACTIVE",clientFormFactor:JJa[r[1]]||"UNKNOWN_FORM_FACTOR",clientName:KJa[r[0]]||"UNKNOWN_INTERFACE",clientVersion:r[2]||
"",platform:LJa[r[1]]||"UNKNOWN_PLATFORM"};r=void 0;if(n){v=void 0;try{v=JSON.parse(n)}catch(B){g.DD(B)}v&&(r={params:[{key:"ms",value:v.ms}]},q.osName=v.os_name,q.userAgent=v.user_agent,q.windowHeightPoints=v.window_height_points,q.windowWidthPoints=v.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;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.fK(f)&&h&&(h.ancestorOrigins=f.ancestorOrigins);a.defaultActiveSourceVideoId&&(h.compositeVideoContext={defaultActiveSourceVideoId:a.defaultActiveSourceVideoId});d={videoId:d,context:e,playbackContext:{contentPlaybackContext:h}};a.contentCheckOk&&(d.contentCheckOk=!0);if(e=a.clientPlaybackNonce)d.cpn=e;if(e=
a.playerParams)d.params=e;if(e=a.playlistId)d.playlistId=e;a.racyCheckOk&&(d.racyCheckOk=!0);e=a.V();if(f=e.embedConfig)d.serializedThirdPartyEmbedConfig=f;d.captionParams={};f=g.Xz(g.Wz(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.DK(e)&&(d.captionParams.deviceCaptionsOn=null!=f?!f:!1);a.jS&&(d.captionParams.deviceCaptionsLangPref=a.jS);a.VI.length?d.captionParams.viewerSelectedCaptionLangs=a.VI:g.DK(e)&&(f=g.VI(),null==f?0:f.length)&&(d.captionParams.viewerSelectedCaptionLangs=
f);f="onesie"===a.fetchType&&a.K("html5_onesie_attach_po_token");h="onesie"!==a.fetchType&&a.K("html5_non_onesie_attach_po_token");if(f||h)a=a.V(),a.Kf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.Kf);e.K("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});return d};
OJa=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j)return c={context:g.FJa(a.V()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.pR(NJa),g.y(f,g.AP(b,c,d),2);e=f.u;return f.return(e)})};
PJa=function(a,b,c){tJa(g.gJ(b.experiments,"bg_vm_reinit_threshold"))&&OJa(a,c).then(function(d){d&&(d=d.botguardData)&&g.EJa(d,b)},function(d){a.isDisposed()||(d=RK(d),a.xa("attf",{error:d.errorCode}))})};
QJa=function(){this.Lx={}};
kS=function(a,b,c,d,e){b in a.Lx||(c=new g.XD(c,d,{id:b,priority:2,namespace:"appad"}),e.addCueRange(c),a.Lx[b]=c)};
RJa=function(){g.C.apply(this,arguments);this.C=new Set;this.D={};this.J={};this.j={};this.I={};this.B={};this.u=void 0;this.T=new Set};
TJa=function(a){var b=void 0===b?5:b;return a?SJa[a]||b:b};
lS=function(a,b,c){g.C.call(this);this.app=a;this.state=b;this.playerType=c;this.j=!0;this.element=null};
UJa=function(a){mS(a,"getInternalApiInterface",a.getInternalApiInterface);mS(a,"cueVideoByPlayerVars",a.cueVideoByPlayerVars);mS(a,"loadVideoByPlayerVars",a.loadVideoByPlayerVars);mS(a,"preloadVideoByPlayerVars",a.preloadVideoByPlayerVars);mS(a,"getAdState",a.getAdState);mS(a,"sendAbandonmentPing",a.sendAbandonmentPing);mS(a,"setLoopRange",a.setLoopRange);mS(a,"getLoopRange",a.getLoopRange);mS(a,"setAutonavState",a.setAutonavState);mS(a,"seekToLiveHead",a.seekToLiveHead);mS(a,"requestSeekToWallTimeSeconds",
a.requestSeekToWallTimeSeconds);mS(a,"seekToStreamTime",a.seekToStreamTime);mS(a,"startSeekCsiAction",a.startSeekCsiAction);mS(a,"getStreamTimeOffset",a.getStreamTimeOffset);mS(a,"getVideoData",a.w3);mS(a,"setInlinePreview",a.setInlinePreview);mS(a,"updateDownloadState",a.updateDownloadState);mS(a,"queueOfflineAction",a.queueOfflineAction);mS(a,"pauseVideoDownload",a.pauseVideoDownload);mS(a,"resumeVideoDownload",a.resumeVideoDownload);mS(a,"refreshAllStaleEntities",a.refreshAllStaleEntities);mS(a,
"isOrchestrationLeader",a.isOrchestrationLeader);mS(a,"getAppState",a.getAppState);mS(a,"updateLastActiveTime",a.updateLastActiveTime);mS(a,"setBlackout",a.setBlackout);mS(a,"setUserEngagement",a.setUserEngagement);mS(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);mS(a,"getPresentingPlayerType",a.getPresentingPlayerType);mS(a,"canPlayType",a.canPlayType);mS(a,"updatePlaylist",a.updatePlaylist);mS(a,"updateVideoData",a.updateVideoData);mS(a,"updateEnvironmentData",a.updateEnvironmentData);
mS(a,"sendVideoStatsEngageEvent",a.sendVideoStatsEngageEvent);mS(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);mS(a,"setSafetyMode",a.setSafetyMode);mS(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
mS(a,"getVideoAspectRatio",a.getVideoAspectRatio);mS(a,"getPreferredQuality",a.getPreferredQuality);mS(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);mS(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);mS(a,"onAdUxClicked",a.onAdUxClicked);mS(a,"getFeedbackProductData",a.getFeedbackProductData);mS(a,"getStoryboardFrame",a.getStoryboardFrame);mS(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);mS(a,"getStoryboardLevel",a.getStoryboardLevel);mS(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
mS(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);mS(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);mS(a,"addUtcCueRange",a.addUtcCueRange);mS(a,"showAirplayPicker",a.showAirplayPicker);mS(a,"dispatchReduxAction",a.dispatchReduxAction);mS(a,"getPlayerResponse",a.getPlayerResponse);mS(a,"getHeartbeatResponse",a.getHeartbeatResponse);mS(a,"changeMarkerVisibility",a.changeMarkerVisibility);mS(a,"setAutonav",a.setAutonav);mS(a,"isNotServable",a.isNotServable);mS(a,"channelSubscribed",
a.channelSubscribed);mS(a,"channelUnsubscribed",a.channelUnsubscribed);mS(a,"togglePictureInPicture",a.togglePictureInPicture);mS(a,"supportsGaplessAudio",a.supportsGaplessAudio);mS(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
mS(a,"clearQueue",a.clearQueue);mS(a,"getAudioTrack",a.X2);mS(a,"setAudioTrack",a.setAudioTrack);mS(a,"getAvailableAudioTracks",a.Y2);mS(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);mS(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);mS(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);mS(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);mS(a,"setMinimized",a.setMinimized);mS(a,"confirmYpcRental",a.confirmYpcRental);mS(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);
mS(a,"isSubtitlesOn",a.isSubtitlesOn);mS(a,"queueNextVideo",a.queueNextVideo);mS(a,"handleExternalCall",a.handleExternalCall);mS(a,"logApiCall",a.logApiCall);mS(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);mS(a,"setScreenLayer",a.setScreenLayer);mS(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);mS(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);mS(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);mS(a,"syncVolume",a.syncVolume);mS(a,"highlightSettingsMenuItem",
a.highlightSettingsMenuItem);mS(a,"openSettingsMenuItem",a.openSettingsMenuItem);mS(a,"getVisibilityState",a.getVisibilityState);mS(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);mS(a,"setGlobalCrop",a.setGlobalCrop);mS(a,"setInternalSize",a.setInternalSize)};
nS=function(a,b,c){a.state.D[b]=function(){return c.apply(a,g.ya.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||mS(a,b,c);a.state.C.add(b)};
oS=function(a,b,c){a.state.J[b]=function(){return c.apply(a,g.ya.apply(0,arguments))};
a.state.j.hasOwnProperty(b)||mS(a,b,c);a.state.C.add(b)};
mS=function(a,b,c){a.state.j[b]=function(){return c.apply(a,g.ya.apply(0,arguments))}};
g.pS=function(a,b,c){return a.state.j[b].apply(a.state.j,g.u(c))};
nEa=function(a){a.state.u||(a.state.u={addEventListener:function(b,c){VJa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.Na(c));var d=a.state.B[c];d&&(a.app.Qp.unsubscribe(b,d),g.id(a.state.B,c))}});
return a.state.u};
VJa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.Na(c));if(!a.state.B[d]){var e="string"===typeof c?function(){var h=g.ya.apply(0,arguments);g.Ga(c).apply(window,h)}:c;
var f=function(h){e({target:a.state.u,data:h})};
a.state.B[d]=f;a.app.Qp.subscribe(b,f)}};
WJa=function(a,b){b=void 0===b?a.playerType:b;var c={};if(b=g.qS(a.app,b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=$M(b);c.errorCode=b.errorCode;if(b.u&&b.u.video){c.video_quality=b.u.video.quality;b=b.u.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
g.rS=function(a){var b=XJa(a.app.wb());if(b)return b.MB();a=a.app.wb();a=g.oK(a.F.V())?a.df.get("music"):void 0;return a?a.MB():null};
ZJa=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return YJa(a)};
YJa=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.t($Ja);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
aKa=function(a,b,c,d){if(g.Ja(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
sS=function(a,b,c,d){lS.call(this,a,b,d);c&&(UJa(this),bKa(this))};
bKa=function(a){nS(a,"cueVideoById",a.cueVideoById);nS(a,"loadVideoById",a.loadVideoById);nS(a,"cueVideoByUrl",a.cueVideoByUrl);nS(a,"loadVideoByUrl",a.loadVideoByUrl);nS(a,"playVideo",a.playVideo);nS(a,"pauseVideo",a.pauseVideo);nS(a,"stopVideo",a.stopVideo);nS(a,"clearVideo",a.clearVideo);nS(a,"getVideoBytesLoaded",a.getVideoBytesLoaded);nS(a,"getVideoBytesTotal",a.getVideoBytesTotal);nS(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);nS(a,"getVideoStartBytes",a.getVideoStartBytes);nS(a,"cuePlaylist",
a.cuePlaylist);nS(a,"loadPlaylist",a.loadPlaylist);nS(a,"nextVideo",a.nextVideo);nS(a,"previousVideo",a.previousVideo);nS(a,"playVideoAt",a.playVideoAt);nS(a,"setShuffle",a.setShuffle);nS(a,"setLoop",a.setLoop);nS(a,"getPlaylist",a.t3);nS(a,"getPlaylistIndex",a.getPlaylistIndex);nS(a,"getPlaylistId",a.getPlaylistId);nS(a,"loadModule",a.loadModule);nS(a,"unloadModule",a.unloadModule);nS(a,"setOption",a.setOption);nS(a,"getOption",a.getOption);nS(a,"getOptions",a.getOptions);nS(a,"mute",a.mute);nS(a,
"unMute",a.unMute);nS(a,"isMuted",a.isMuted);nS(a,"setVolume",a.setVolume);nS(a,"getVolume",a.getVolume);nS(a,"seekTo",a.seekTo);nS(a,"getPlayerMode",a.getPlayerMode);nS(a,"getPlayerState",a.getPlayerState);nS(a,"getPlaybackRate",a.getPlaybackRate);nS(a,"setPlaybackRate",a.setPlaybackRate);nS(a,"getAvailablePlaybackRates",a.getAvailablePlaybackRates);nS(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
nS(a,"setPlaybackQuality",a.setPlaybackQuality);nS(a,"getAvailableQualityLevels",a.getAvailableQualityLevels);nS(a,"getCurrentTime",a.getCurrentTime);nS(a,"getDuration",a.getDuration);nS(a,"addEventListener",a.M1);nS(a,"removeEventListener",a.C8);nS(a,"getDebugText",a.getDebugText);nS(a,"getVideoData",function(){return WJa(a)});
nS(a,"addCueRange",a.addCueRange);nS(a,"removeCueRange",a.removeCueRange);nS(a,"setSize",a.setSize);nS(a,"getApiInterface",a.getApiInterface);nS(a,"destroy",a.destroy);nS(a,"getSphericalProperties",a.getSphericalProperties);nS(a,"setSphericalProperties",a.setSphericalProperties);nS(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.V();b.J||(nS(a,"getVideoEmbedCode",a.getVideoEmbedCode),nS(a,"getVideoUrl",a.getVideoUrl));nS(a,"getMediaReferenceTime",a.getMediaReferenceTime);nS(a,"getSize",a.getSize);
b.J||nS(a,"logImaAdEvent",a.logImaAdEvent)};
cKa=function(a,b,c){b=g.ze(Math.floor(b),0,100);isFinite(b)&&tS(a.app,{volume:b,muted:a.isMuted()},c)};
dKa=function(a,b){tS(a.app,{muted:!0,volume:a.getVolume()},b)};
eKa=function(a,b){g.wS(a.app)||tS(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
xS=function(a,b,c,d){sS.call(this,a,b,!1,d);this.j=!1;c&&(UJa(this),fKa(this),bKa(this))};
fKa=function(a){oS(a,"cueVideoByPlayerVars",function(b,c){a.cueVideoByPlayerVars(gKa(a,b),c)});
oS(a,"loadVideoByPlayerVars",function(b,c,d,e){a.loadVideoByPlayerVars(gKa(a,b),c,d,e)});
oS(a,"preloadVideoByPlayerVars",function(b,c,d,e){return void a.preloadVideoByPlayerVars(gKa(a,b),c,d,e)});
oS(a,"getVideoData",a.eU);oS(a,"seekBy",a.seekBy);oS(a,"showControls",a.showControls);oS(a,"hideControls",a.hideControls);oS(a,"cancelPlayback",a.cancelPlayback);oS(a,"getProgressState",a.getProgressState);oS(a,"isInline",a.isInline);oS(a,"setInline",a.setInline);oS(a,"setLoopVideo",a.setLoopVideo);oS(a,"getLoopVideo",a.getLoopVideo);oS(a,"getVideoContentRect",a.getVideoContentRect);oS(a,"getVideoStats",a.getVideoStats);oS(a,"getStoryboardFormat",a.getStoryboardFormat);oS(a,"toggleFullscreen",a.toggleFullscreen);
oS(a,"isFullscreen",a.isFullscreen);oS(a,"getPlayerSize",a.getPlayerSize);oS(a,"toggleSubtitles",a.toggleSubtitles);oS(a,"setCenterCrop",a.setCenterCrop);oS(a,"setFauxFullscreen",a.setFauxFullscreen);oS(a,"setSizeStyle",a.setSizeStyle);oS(a,"handleGlobalKeyDown",a.handleGlobalKeyDown);oS(a,"handleGlobalKeyUp",a.handleGlobalKeyUp);oS(a,"wakeUpControls",a.wakeUpControls)};
gKa=function(a,b){var c={};if(a.app.V().oa){a=g.t(hKa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);b=c.raw_player_response;b||(a=c.player_response)&&(b=JSON.parse(a));delete c.player_response;delete c.raw_player_response;b&&(c.raw_player_response={streamingData:b.streamingData})}else for(a=g.t(iKa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
jKa=function(a){var b=g.wK(a.app.V()),c;a=null==(c=a.app.getVideoData())?void 0:c.bl;return g.qz(b)&&!a?!1:!0};
kKa=function(a,b,c){var d=a.app.Pf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
CS=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.u=this.j=a-1};
lKa=function(a){return a.data[a.j]||0};
DS=function(a){g.C.call(this);this.B=a;this.j=new Map;this.u=new g.Ip(this.sample,250,this);g.E(this,this.u);this.start()};
ES=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.u!==a.j;)a.u=(a.u+1)%a.data.length,b.push(a.data[a.u]);a=b}return a||[]};
FS=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:lKa(c.buffer))||0};
mKa=function(a){this.u=a;this.j=NaN;this.buffer=new CS(100)};
g.GS=function(a,b){xS.call(this,a,b,!1);this.DJ=null};
g.HS=function(a){a=a.wb();var b=a.df.get("endscreen");return b&&b.mw()?!0:a.VD()||g.oK(a.F.V())};
g.IS=function(a,b){3===a.getPresentingPlayerType()?a.ma("mdxautoplaycancel"):a.ma("autonavcancel",b)};
g.KS=function(a){var b=JS(a.wb());return a.app.Lh&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Ck()&&b.No()||!!a.getPlaylist()};
g.nKa=function(a,b,c){var d=a.V();d.ya&&g.iS(b,d.loaderUrl);g.pS(a,"addEmbedsConversionTrackingParams",[b]);g.hS(b,c)};
g.MS=function(a){return(a=g.LS(a.wb()))?a.cG():{}};
g.oKa=function(a){a=(a=a.getVideoData())&&a.u;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.NS=function(a,b,c){a=a.jb().element;var d=Kb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));g.wf(a,b,d);b.setAttribute("data-layer",String(c))};
g.OS=function(a){var b=a.V();if(!b.Od)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay"))&&!aN(c);d=c.isLivePlayback&&(!b.K("allow_live_autoplay")||!d);var e=c.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");a=a.getPlaylist();a=!!a&&a.Ck();var f=c.jd&&c.jd.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.D&&f;return!c.ypcPreview&&(!d||e)&&!g.rb(c.Ja,"ypc")&&
!a&&(!g.fK(b)||f)};
pKa=function(a){a=g.qS(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.u||!b.u.video||1080>b.u.video.j||b.jT)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.u.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.xa("iqss",{trigger:d},!0),!0):!1};
g.PS=function(a,b,c,d){d=void 0===d?!1:d;g.dQ.call(this,b);var e=this;this.F=a;this.Ga=d;this.J=new g.bI(this);this.Z=new g.QQ(this,c,!0,void 0,void 0,function(){e.BT()});
g.E(this,this.J);g.E(this,this.Z)};
qKa=function(a){a.u&&(document.activeElement&&g.zf(a.element,document.activeElement)&&(Bf(a.u),a.u.focus()),a.u.setAttribute("aria-expanded","false"),a.u=void 0);g.Lz(a.J);a.T=void 0};
QS=function(a,b,c){a.ej()?a.Fb():a.od(b,c)};
rKa=function(a,b,c,d){d=new g.U({G:"div",Ia:["ytp-linked-account-popup-button"],ra:d,X:{role:"button",tabindex:"0"}});b=new g.U({G:"div",N:"ytp-linked-account-popup",X:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{G:"div",N:"ytp-linked-account-popup-title",ra:b},{G:"div",N:"ytp-linked-account-popup-description",ra:c},{G:"div",N:"ytp-linked-account-popup-buttons",W:[d]}]});g.PS.call(this,a,{G:"div",N:"ytp-linked-account-popup-container",W:[b]},100);var e=this;this.dialog=b;g.E(this,this.dialog);
d.Ra("click",function(){e.Fb()});
g.E(this,d);g.NS(this.F,this.element,4);this.hide()};
g.SS=function(a,b,c,d){g.dQ.call(this,a);this.priority=b;c&&g.RS(this,c);d&&this.ge(d)};
g.TS=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex="0");return{G:c?"a":"div",Ia:b,X:a,W:[{G:"div",N:"ytp-menuitem-icon",ra:"{{icon}}"},{G:"div",N:"ytp-menuitem-label",ra:"{{label}}"},{G:"div",N:"ytp-menuitem-content",ra:"{{content}}"}]}};
US=function(a,b){a.updateValue("icon",b)};
g.RS=function(a,b){a.updateValue("label",b)};
VS=function(a){g.SS.call(this,g.TS({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.F=a;this.u=this.j=!1;this.Eb=a.Nm();a.Zf(this.element,this,!0);this.S(this.F,"settingsMenuVisibilityChanged",function(c){b.Zb(c)});
this.S(this.F,"videodatachange",this.C);this.Ra("click",this.onClick);this.C()};
WS=function(a){return a?g.gE(a):""};
XS=function(a){g.C.call(this);this.api=a};
YS=function(a){XS.call(this,a);var b=this;mS(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
mS(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new VS(b.api);g.E(b,b.menuItem)})};
sKa=function(a){XS.call(this,a);this.events=new g.bI(a);g.E(this,this.events);a.K("fetch_bid_for_dclk_status")&&this.events.S(a,"videoready",function(b){var c,d={contentCpn:(null==(c=a.getVideoData(1))?void 0:c.clientPlaybackNonce)||""};2===a.getPresentingPlayerType()&&(d.adCpn=b.clientPlaybackNonce);g.gA(g.iA(),function(){rsa("vr",d)})});
a.K("report_pml_debug_signal")&&this.events.S(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.rA("adsClientStateChange",e)}})};
uKa=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"-10","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{G:"div",N:"ytp-autonav-toggle-button-container",W:[{G:"div",N:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.F=a;this.u=[];this.j=!1;this.isChecked=!0;a.sb(this.element,this,113681);this.S(a,"presentingplayerstatechange",this.SA);this.Ra("click",this.onClick);this.F.V().K("web_player_autonav_toggle_always_listen")&&
tKa(this);this.tooltip=b.Ic();g.bb(this,g.ZS(b.Ic(),this.element));this.SA()};
tKa=function(a){a.u.push(a.S(a.F,"videodatachange",a.SA));a.u.push(a.S(a.F,"videoplayerreset",a.SA));a.u.push(a.S(a.F,"onPlaylistUpdate",a.SA));a.u.push(a.S(a.F,"autonavchange",a.yR))};
vKa=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);$S(a.tooltip)};
wKa=function(a){return a.F.V().K("web_player_autonav_use_server_provided_state")&&kM(a.Hd())};
xKa=function(a){XS.call(this,a);var b=this;this.events=new g.bI(a);g.E(this,this.events);var c=a.V();c.Od&&c.K("web_player_move_autonav_toggle")&&this.events.S(a,"basechromeinitialized",function(){var d=g.rS(a),e=new uKa(a,d);g.E(b,e);d.aB(e)})};
yKa=function(){g.Wz();return g.Xz(0,192)?g.Xz(0,190):!g.gy("web_watch_cinematics_disabled_by_default")};
aT=function(a,b){g.SS.call(this,g.TS({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{G:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.Ra("click",this.onClick)};
bT=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
cT=function(a){var b=a.K("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";aT.call(this,b,13);var c=this;this.F=a;this.j=!1;this.u=new g.Ip(function(){g.Sp(c.element,"ytp-menuitem-highlighted")},0);
this.Eb=a.Nm();US(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.Ra(zKa,this.B);g.E(this,this.u)};
BKa=function(a){XS.call(this,a);var b=this;this.j=!1;var c;this.K("web_cinematic_watch_settings")&&(null==(c=a.V().webPlayerContextConfig)?0:c.cinematicSettingsAvailable)&&(a.addEventListener("settingsMenuInitialized",function(){AKa(b)}),a.addEventListener("highlightSettingsMenu",function(d){AKa(b);
var e=b.menuItem;"menu_item_cinematic_lighting"===d&&(g.Qp(e.element,"ytp-menuitem-highlighted"),g.Qp(e.element,"ytp-menuitem-highlight-transition-enabled"),e.u.start())}),mS(a,"updateCinematicSettings",function(d){b.updateCinematicSettings(d)}))};
AKa=function(a){a.menuItem||(a.menuItem=new cT(a.api),g.E(a,a.menuItem),a.menuItem.Pa(a.j))};
dT=function(a){XS.call(this,a);var b=this;this.j={};this.events=new g.bI(a);g.E(this,this.events);this.K("enable_precise_embargos")&&!g.FK(this.api.V())&&(this.events.S(a,"videodatachange",function(){var c=b.api.getVideoData();b.api.Ff("embargo",1);(null==c?0:c.cueRanges)&&CKa(b,c)}),this.events.S(a,g.ZD("embargo"),function(c){var d;
c=null!=(d=b.j[c.id])?d:[];d=g.t(c);for(c=d.next();!c.done;c=d.next()){var e=c.value;b.api.hideControls();b.api.Ng("heartbeat.stop",2,"This video isn't available in your current playback area");c=void 0;(e=null==(c=e.embargo)?void 0:c.onTrigger)&&b.api.Na("innertubeCommand",e)}}))};
CKa=function(a,b){if(null!=b&&aN(b)||a.K("enable_discrete_live_precise_embargos")){var c;null==(c=b.cueRanges)||c.filter(function(d){var e;return null==(e=d.onEnter)?void 0:e.some(a.u)}).forEach(function(d){var e,f=Number(null==(e=d.playbackPosition)?void 0:e.utcTimeMillis)/1E3,h;
e=f+Number(null==(h=d.duration)?void 0:h.seconds);h="embargo_"+f;a.api.addUtcCueRange(h,f,e,"embargo",!1);d.onEnter&&(a.j[h]=d.onEnter.filter(a.u))})}};
DKa=function(a){XS.call(this,a);var b=this;this.j=[];this.events=new g.bI(a);g.E(this,this.events);mS(a,"addEmbedsConversionTrackingParams",function(c){b.api.V().Un&&b.addEmbedsConversionTrackingParams(c)});
this.events.S(a,"veClickLogged",function(c){b.api.Dk(c)&&(c=Uh(c.visualElement.getAsJspb(),2),b.j.push(c))})};
EKa=function(a){XS.call(this,a);var b=this;this.events=new g.bI(a);g.E(this,this.events);a.K("embeds_web_enable_ve_logging_unification")&&a.V().C&&(this.events.S(a,"initialvideodatacreated",function(c){pP().wk(16623);b.j=g.FE();if(SM(c)){pP().wk(27240,void 0,{Ny:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.jd){var d,e=null==(d=c.jd)?void 0:d.trackingParams;e&&pP().eq(e)}if(c.getPlayerResponse()){var f;(c=null==(f=c.getPlayerResponse())?void 0:f.trackingParams)&&pP().eq(c)}}else pP().wk(32594,
void 0,{Ny:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.kf&&(f=null==(e=c.kf)?void 0:e.trackingParams)&&pP().eq(f)}),this.events.S(a,"loadvideo",function(){pP().wk(27240,void 0,{Ny:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.S(a,"cuevideo",function(){pP().wk(32594,void 0,{Ny:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",
parentCsn:b.j})}),this.events.S(a,"largeplaybuttonclicked",function(c){pP().wk(27240,c.visualElement)}),this.events.S(a,"playlistnextbuttonclicked",function(c){pP().wk(27240,c.visualElement)}),this.events.S(a,"playlistprevbuttonclicked",function(c){pP().wk(27240,c.visualElement)}),this.events.S(a,"playlistautonextvideo",function(){pP().wk(27240,void 0,{Ny:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})}))};
eT=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-fullerscreen-edu-button","ytp-button"],W:[{G:"div",Ia:["ytp-fullerscreen-edu-text"],ra:"Scroll for details"},{G:"div",Ia:["ytp-fullerscreen-edu-chevron"],W:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}]});this.Ta=a;this.B=b;this.j=new g.QQ(this,250,void 0,100);this.C=this.u=!1;a.sb(this.element,this,61214);this.B=b;g.E(this,this.j);this.S(a,
"fullscreentoggled",this.Pa);this.S(a,"presentingplayerstatechange",this.Pa);this.Ra("click",this.onClick);this.Pa()};
fT=function(a){XS.call(this,a);var b=this;this.events=new g.bI(a);g.E(this,this.events);mS(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
mS(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.V();a.K("external_fullscreen_with_edu")&&c.externalFullscreen&&BK(c)&&"1"===c.controlsType&&this.events.S(a,"basechromeinitialized",function(){var d=g.rS(a);b.j=new eT(a,d);g.E(b,b.j);d.aB(b.j)})};
FKa=function(a){g.U.call(this,{G:"div",N:"ytp-gated-actions-overlay",W:[{G:"div",N:"ytp-gated-actions-overlay-background",W:[{G:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",Ia:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Close"},W:[g.jQ()]},{G:"div",N:"ytp-gated-actions-overlay-bar",W:[{G:"div",N:"ytp-gated-actions-overlay-text-container",W:[{G:"div",N:"ytp-gated-actions-overlay-title",ra:"{{title}}"},{G:"div",N:"ytp-gated-actions-overlay-subtitle",
ra:"{{subtitle}}"}]},{G:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Da("ytp-gated-actions-overlay-background");this.u=this.Da("ytp-gated-actions-overlay-button-container");this.j=[];this.S(this.Da("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.Na("onCloseMiniplayer")});
this.hide()};
HKa=function(a,b){var c=0,d={};for(c=0;c<b.length;d={wA:d.wA},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.U({G:"button",N:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},W:[{G:"div",N:"ytp-gated-actions-overlay-button-title",ra:"{{buttonText}}"}]}),g.E(a,h),h.Ea(a.u),e={element:h});d.wA=g.K(b[c],g.GKa);var l=f=void 0,m=void 0,n=(null==(f=d.wA)?void 0:f.title)||(null==(l=d.wA)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Hc(e.listener);e.listener=h.Ra("click",function(p){return function(){var q,r=g.K(null==(q=p.wA)?void 0:q.onTap,g.gT);r&&a.api.Na("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
IKa=function(a){XS.call(this,a);var b=this;this.events=new g.bI(a);g.E(this,this.events);this.K("enable_courses_player_overlay_purchase")&&(this.j=new FKa(this.api),g.E(this,this.j),this.events.S(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.Z0;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.t(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;HKa(c,d.actionButtons||[]);c.show()}else c.hide()}),g.NS(this.api,this.j.element,4))};
hT=function(a){XS.call(this,a);var b=this;this.events=new g.bI(a);g.E(this,this.events);g.DK(a.V())&&(mS(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)}),mS(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)}))};
JKa=function(a,b,c,d){var e=1E3*a.api.getCurrentTime()<c?1:-1;b.FD(e,d);a.api.seekTo(c/1E3)};
iT=function(a){XS.call(this,a);var b=this;this.u=new Map;this.j=void 0;this.events=new g.bI(a);g.E(this,this.events);this.events.S(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.K(l.compositeVideoOverlay,KKa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.t(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=e.value,e.isActive){d=e;break a}d=
void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.vI({top:d.topLeftCornerY,right:1-d.topLeftCornerX-d.width,bottom:1-d.topLeftCornerY-d.height,left:d.topLeftCornerX})});
this.K("html5_enable_composite_embargo")&&(this.events.S(a,"videodatachange",function(){b.j=void 0;b.u.clear();b.api.Ff("compositeembargo",1);var c=b.api.getVideoData();(null==c?0:c.cueRanges)&&LKa(b,c)}),this.events.S(a,g.ZD("compositeembargo"),function(c){var d;
if((null==(d=b.j)?void 0:d.id)!==c.id&&b.u.has(c.id)){var e=b.u.get(c.id);d=b.api.getVideoData();e=g.t(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.Yv!==f&&(d.Yv=f,b.api.jr());MKa(b,c)}}}),this.events.S(a,g.$D("compositeembargo"),function(c){var d;
if((null==(d=b.j)?void 0:d.id)===c.id&&b.u.has(c.id)){if(c=b.api.getVideoData())c.Yv=void 0;b.api.jr();MKa(b)}}))};
MKa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.u.delete(a.j.id),a.api.Ch([a.j],1)),a.j=b)};
LKa=function(a,b){var c;b=null==(c=b.cueRanges)?void 0:c.filter(function(h){var l;return null==(l=h.onEnter)?void 0:l.some(a.B)});
if(null!=b&&b.length)for(c=g.t(b),b=c.next();!b.done;b=c.next()){var d=b.value,e=void 0;b=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=b+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+b;d.onEnter&&(d=d.onEnter.filter(a.B),d.length&&(a.u.set(f,d),a.api.addUtcCueRange(f,b,e,"compositeembargo",!1)))}};
NKa=function(a){XS.call(this,a);var b=this;mS(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()})};
OKa=function(a,b,c){var d=[],e=b?156595:151874;a=g.t(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};
PKa=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++}};
QKa=function(a){var b=new Set,c=new Map,d={};a=g.t(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.t(Object.values(d));for(e=d.next();!e.done;e=d.next())e=e.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
g.kT=function(a,b,c,d){b=void 0===b?!1:b;d=void 0===d?!1:d;g.dE.call(this);this.J=!1;this.C=new Jz(this);this.D=this.I=null;this.B=this.u=!1;g.E(this,this.C);this.target=a;this.j=b;this.T=c||a;this.J=d;b&&(g.Pc&&this.target.setAttribute("draggable","true"),this.target.style.touchAction="none");jT(this)};
lT=function(a){g.Lz(a.C,!a.j)};
jT=function(a){a.D=null;a.I=null;a.S(mT("over"),a.Ev);a.S("touchstart",a.FJ);a.j&&a.S(mT("down"),a.T4)};
RKa=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier===a.I)return d}return null};
mT=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
SKa=function(a,b){g.U.call(this,{G:"div",Ia:["ytp-overlay","ytp-speedmaster-overlay"],W:[{G:"div",N:"ytp-speedmaster-user-edu",ra:b}]});this.F=a;this.j=this.Da("ytp-speedmaster-user-edu");this.F.sb(this.j,this,173040,!0);g.Hm(this.j,"display","none")};
nT=function(a){XS.call(this,a);var b=this;this.D=this.B=!1;this.Ga=g.gJ(this.api.V().experiments,"speedmaster_touch_activation_ms")||500;this.oa=g.gJ(this.api.V().experiments,"speedmaster_cancellation_movement_dp")||10;this.Aa=g.gJ(this.api.V().experiments,"speedmaster_playback_rate")||2;this.K("web_enable_speedmaster")&&g.DK(this.api.V())&&(this.u=new g.bI(a),g.E(this,this.u),this.speedmasterUserEdu=new SKa(a,this.C),g.E(this,this.speedmasterUserEdu),g.NS(this.api,this.speedmasterUserEdu.element,
4),this.j=new g.kT(this.speedmasterUserEdu.element,!0),g.E(this,this.j),this.delay=new g.Ip(this.ya,this.Ga,this),g.E(this,this.delay),this.u.S(a,"videodatachange",function(c,d){var e,f;if(c=null==(e=d.jd)?void 0:null==(f=e.playerOverlays)?void 0:f.playerOverlayRenderer){var h,l;(e=null==(h=g.K(c.speedmasterUserEdu,TKa))?void 0:null==(l=h.bodyText)?void 0:l.content)&&e!==b.C&&(b.speedmasterUserEdu.j.textContent=e);b.C=e;UKa(b)}},this),this.u.S(a,"presentingplayerstatechange",function(){UKa(b)},this),
this.u.S(a,"autonavvisibility",function(){UKa(b)},this),this.u.S(a,"rootnodemousedown",function(c){b.ea=c}))};
VKa=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.J,a);a.j.unsubscribe("dragend",a.I,a);a.B&&(a.B=!1,g.Hm(a.speedmasterUserEdu.j,"display","none"),a.api.setPlaybackRate(1),a.api.showControls())};
UKa=function(a){var b,c;var d=!!a.C&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.Af()&&2!==a.api.getPresentingPlayerType()&&!g.S(a.api.Cb(),2)&&!(null==(c=g.rS(a.api))?0:c.Wg())&&!a.api.Sb();a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.Z,a):(a.j.unsubscribe("dragstart",a.Z,a),a.j.unsubscribe("dragmove",a.J,a),a.j.unsubscribe("dragend",a.I,a),VKa(a)))};
WKa=function(a){XS.call(this,a);var b=this;this.events=new g.bI(a);g.E(this,this.events);a.K("html5_enable_ssap")&&(mS(this.api,"addPlayerResponsesForAssociation",function(c){b.api.addPlayerResponsesForAssociation(c)}),mS(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)}),mS(this.api,"getCpnByClipId",function(c){return b.api.getCpnByClipId(c)}))};
oT=function(a,b,c){g.ib.call(this,b,a);this.j=c};
g.pT=function(a){FO.call(this);var b=this;this.j=a;this.I={};this.listener=function(c){b.dispatchEvent(new oT(b,c.type,c))}};
YKa=function(a){var b=a.Rc(),c=a.getVideoData(),d=a.qe(),e=d.ub(),f=b.hC(),h=b.xP,l=8*FS(h,"bandwidth")/1024,m=FS(h,"networkactivity")/1024,n=FS(h,"bufferhealth");if(b.oe){var p=b.videoData.useInnertubeDrmService()?"IT/":"";p+=b.oe.j.rh()+"/"+nF(b.Su());p+="/"+b.oe.rh()}else p="";var q=p,r=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),x=jI(d.Nh(),",",3);p="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(p+=c.VJ?"DS":"SS");p+="DAI, ";a:{if(b.kd){if(b.kd.Np){var z="D,";break a}z=
b.kd.El;if(0<z){z="AD"+z+", ";break a}}z=""}z&&(p+=z)}YM(c)?p+="SSAP, ":XM(c)&&(p+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":z="o";break;case "gp":z="gp";break;default:z="gvi"}p+="vd:"+z+", "}p+="s:"+r+" t:"+v+" b:"+x+" ";d.hh()&&(p+="S");d.Ip()&&(p+="P");d.Qh()&&(p+="E");a.isOrchestrationLeader()&&(p+=" L");(d=b.VB())&&(p+=" l:"+d.toFixed());d=b.getCurrentTime();r=c.kQ;d&&d>r.start&&d<r.end&&(p+=" as");d=p;p=g.my(YE)("_start",void 0);r=[];v=g.t(["pl_i","vir","or_p","orfb","pbs"]);
for(x=v.next();!x.done;x=v.next())x=x.value,(z=g.my(YE)(x,void 0))&&p&&(z-=p,r.push(x+":"+Math.round(z)));p=r.join(" ");r=g.CK();v=g.MS(a).g4;x=c.C&&!c.C.j?"display:none":"";if((z=c.clientPlaybackNonce)&&16==z.length){for(var B=0,F="",G=0;10>G;G++)if(B=(B<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(z.charAt(G)),4==G%5){for(var D="",L=0;6>L;L++)D="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(B&31)+D,B>>=5;F+=D}z=F.substr(0,4)+" "+F.substr(4,4)+" "+F.substr(8,4)}else z=
"";l={video_id_and_cpn:String(c.videoId)+" / "+z,codecs:"",dims_and_frames:"",bandwidth_kbps:l.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:q?"":"display:none",drm:q,debug_info:d,extra_debug_info:"",bandwidth_style:x,network_activity_style:x,network_activity_bytes:m.toFixed(0)+" KB",shader_info:v,shader_info_style:v?"":"display:none",playback_categories:""};m=e.clientWidth+"x"+e.clientHeight+(1<r?"*"+r.toFixed(2):"");n="-";f.totalVideoFrames&&
(n=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);l.dims_and_frames=m+" / "+n;a=a.getVolume();f=Xza(c);var P;m=(null==(P=c.I)?0:P.audio.j)?"DRC":Math.round(a*f)+"%";P=Math.round(a)+"% / "+m;a=c.Zi.toFixed(1);isFinite(Number(a))&&(P+=" (content loudness "+a+"dB)");l.volume=P;l.resolution=e.videoWidth+"x"+e.videoHeight;if(P=c.u)if(e=P.video)a=e.fps,1<a&&(l.resolution+="@"+a),(a=g.qT(b))&&a.video&&(l.resolution+=" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(l.resolution+="@"+a.video.fps)),
l.codecs=XKa(P),!c.I||P.audio&&P.video?P.JV&&(l.codecs+=" / "+P.JV+"A"):l.codecs+=" / "+XKa(c.I),e.u||e.primaries?(P=e.u||"unknown","smpte2084"===P?P+=" (PQ)":"arib-std-b67"===P&&(P+=" (HLG)"),l.color=P+" / "+(e.primaries||"unknown"),l.color_style=""):l.color_style="display:none";e=c.isLivePlayback;P=c.Se;l.live_mode_style=e||P?"":"display:none";l.live_latency_style=e?"":"display:none";if(P)l.live_mode="Post-Live"+(jM(c)?" Manifestless":"");else if(e){P=FS(h,"livelatency");l.live_latency_secs=P.toFixed(2)+
"s";e=jM(c)?"Manifestless, ":"";c.rd&&(e+="Windowed, ");a="Uncertain";if(0<=P&&120>P)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=a;(P=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=
", seq "+P.sequence);l.live_mode=e}b.isGapless()&&(l.playback_categories+="Gapless ");l.playback_categories_style=l.playback_categories?"":"display:none";l.bandwidth_samples=ES(h,"bandwidth");l.network_activity_samples=ES(h,"networkactivity");l.live_latency_samples=ES(h,"livelatency");l.buffer_health_samples=ES(h,"bufferhealth");b=g.ZM(c);if(c.cotn||b)l.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+b;l.cotn_and_local_media_style=l.cotn_and_local_media?"":"display:none";fM(c,"web_player_release_debug")?
(l.release_name="youtube.player.web_20230423_00_RC00",l.release_style=""):l.release_style="display:none";l.debug_info&&0<p.length&&60>=l.debug_info.length+p.length?l.debug_info+=" "+p:l.extra_debug_info=p;l.extra_debug_info_style=l.extra_debug_info&&0<l.extra_debug_info.length?"":"display:none";return l};
XKa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
rT=function(a,b,c,d,e){g.U.call(this,{G:"div",N:"ytp-horizonchart"});this.I=b;this.sampleCount=c;this.C=d;this.D=e;this.index=0;this.heightPx=-1;this.B=this.u=null;this.j=Math.round(a/c);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.I+"em"};
sT=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.qf("CANVAS"),a.u=c.getContext("2d")}catch(l){}if(a.u){var d=a.j*a.sampleCount;a.B=c;a.B.width=d;a.B.style.width=d+"px";a.element.appendChild(a.B)}else for(a.sampleCount=Math.floor(a.sampleCount/4),a.j*=4,c=0;c<a.sampleCount;c++)d=g.qf("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.u&&(c=1<(window.devicePixelRatio||1)?2:1,a.B.height=a.heightPx*c,a.B.style.height=
a.heightPx+"px",a.u.scale(1,c)));b=g.t(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.C.length&&c.C[d+1]<f;)d++;f=Math.min(1,(f-c.C[d])/(c.C[d+1]-c.C[d]));if(c.u)c.u.fillStyle=c.D[d],c.u.fillRect(e*c.j,0,c.j,c.heightPx),c.u.fillStyle=c.D[d+1],c.u.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.D[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.D[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.u?a.u.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
tT=function(a){var b=null;b={G:"button",Ia:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},ra:"[X]"};g.U.call(this,{G:"div",Ia:["html5-video-info-panel","ytp-sfn"],W:[b,{G:"div",Ia:["html5-video-info-panel-content","ytp-sfn-content"],W:[{G:"div",W:[{G:"div",ra:"Video ID / sCPN"},{G:"span",ra:"{{video_id_and_cpn}}",N:"ytp-sfn-cpn"}]},{G:"div",W:[{G:"div",ra:"Viewport / Frames"},{G:"span",ra:"{{dims_and_frames}}"}]},{G:"div",W:[{G:"div",ra:"Current / Optimal Res"},{G:"span",
ra:"{{resolution}}"}]},{G:"div",W:[{G:"div",ra:"Volume / Normalized"},{G:"span",ra:"{{volume}}"}]},{G:"div",W:[{G:"div",ra:"Codecs"},{G:"span",ra:"{{codecs}}"}]},{G:"div",X:{style:"{{shader_info_style}}"},W:[{G:"div",ra:"Shader Info"},{G:"span",ra:"{{shader_info}}"}]},{G:"div",X:{style:"{{color_style}}"},W:[{G:"div",ra:"Color"},{G:"span",ra:"{{color}}"}]},{G:"div",X:{style:"{{drm_style}}"},W:[{G:"div",ra:"Protected"},{G:"span",ra:"{{drm}}"}]},{G:"div",X:{style:"{{bandwidth_style}}"},W:[{G:"div",ra:"Connection Speed"},
{G:"span",W:[{G:"span",ra:"{{bandwidth_chart}}"},{G:"span",ra:"{{bandwidth_kbps}}"}]}]},{G:"div",X:{style:"{{network_activity_style}}"},W:[{G:"div",ra:"Network Activity"},{G:"span",W:[{G:"span",ra:"{{network_activity_chart}}"},{G:"span",ra:"{{network_activity_bytes}}"}]}]},{G:"div",W:[{G:"div",ra:"Buffer Health"},{G:"span",W:[{G:"span",ra:"{{buffer_health_chart}}"},{G:"span",ra:"{{buffer_health_seconds}}"}]}]},{G:"div",X:{style:"{{live_latency_style}}"},W:[{G:"div",ra:"Live Latency"},{G:"span",W:[{G:"span",
ra:"{{live_latency_chart}}"},{G:"span",ra:"{{live_latency_secs}}"}]}]},{G:"div",X:{style:"{{live_mode_style}}"},W:[{G:"div",ra:"Live Mode"},{G:"span",ra:"{{live_mode}}"}]},{G:"div",X:{style:"{{playback_categories_style}}"},W:[{G:"div",ra:"Playback Categories"},{G:"span",ra:"{{playback_categories}}"}]},{G:"div",W:[{G:"div",ra:"Mystery Text"},{G:"span",ra:"{{debug_info}}"}]},{G:"div",X:{style:"{{extra_debug_info_style}}"},W:[{G:"div",ra:""},{G:"span",W:[{G:"span",ra:"{{extra_debug_info}}"}]}]},{G:"div",
W:[{G:"div",ra:"Date"},{G:"span",ra:"{{date}}"}]},{G:"div",X:{style:"{{cotn_and_local_media_style}}"},W:[{G:"div",ra:"COTN / Local Media"},{G:"span",ra:"{{cotn_and_local_media}}"}]},{G:"div",X:{style:"{{release_style}}"},W:[{G:"div",ra:"Player Release"},{G:"span",ra:"{{release_name}}"}]}]}]});this.Ta=a;b?(a=this.Da("ytp-sfn-close"),this.S(a,"click",this.hide)):this.S(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.D={};this.j=new rT(300,1,150,a,b);g.E(this,this.j);this.updateValue("bandwidth_chart",this.j);this.B=new rT(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.E(this,this.B);this.updateValue("live_latency_chart",this.B);this.u=new rT(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.E(this,this.u);this.updateValue("buffer_health_chart",this.u);this.C=new rT(300,1,150,c,b);g.E(this,this.C);this.updateValue("network_activity_chart",
this.C);this.delay=new g.Ip(this.Pa,500,this);g.E(this,this.delay)};
aLa=function(a){XS.call(this,a);var b=this;mS(a,"getStatsForNerds",function(){return YKa(b.api)});
nS(a,"showVideoInfo",function(){ZKa(b,!0)});
nS(a,"hideVideoInfo",function(){ZKa(b,!1)});
nS(a,"isVideoInfoVisible",function(){return $Ka(b)})};
ZKa=function(a,b){var c=$Ka(a);a.j||(a.j=new tT(a.api),g.E(a,a.j),g.NS(a.api,a.j.element,4));g.bQ(a.j,b);var d=JS(a.api.wb());d&&d.loaded&&c!==b&&d.GP();b&&a.api.xa("sfn",{},!0)};
$Ka=function(a){var b;return!(null==(b=a.j)||!b.yb)};
uT=function(a){XS.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.vb=null;var c;this.useLivingRoomPoToken=!(null==(c=a.V().webPlayerContextConfig)||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.vb=a.Oh();try{if(b.K("html5_generate_session_po_token")&&!b.useLivingRoomPoToken)if(b.vb.di("pot_isc"),b.K("html5_webpo_idle_priority_job")){if(b.K("html5_web_po_prefetch")){bLa(b);var d;null==(d=b.j)||d.prefetch()}g.gA(g.iA(),function(){b.K("html5_web_po_prefetch")||bLa(b);
cLa(b)})}else bLa(b),cLa(b)}catch(e){e instanceof Error&&g.DD(e)}});
a.gP(this)};
dLa=function(a,b){var c=a.K("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.K("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.K("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.K("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.K("html5_web_po_prefetch")?"0wjYMhvxbLZ78HRVBg8V":a.K("html5_web_po_token_caching")?"nJH2JWixsHocEBryELkG":"O43z0dpjhgX20SCx4KAo";b=g.tK(b)?c:d;a.K("html5_placeholder_po_tokens")&&(b=
"2ZCPXHYZSpebQXqOYNtj");return b};
bLa=function(a){function b(d){g.DD(d)}
var c=dLa(a,a.api.V());try{a.K("html5_po_token_enable_webpo_experimental")?a.j=new ml({sf:c,Qu:oha(c),onError:b,DH:!0}):(a.j=qha(c,b),a.K("html5_web_po_token_caching")&&uha(a.j))}catch(d){d instanceof Error&&g.DD(d)}};
cLa=function(a){var b=a.api.V();a.vb.di("pot_ist");var c;null==(c=a.j)||c.start();if(!a.K("html5_generate_content_po_token")){vT(a);var d;null==(d=a.j)||d.ready().then(function(){a.vb.di("pot_if");vT(a)});
b=g.gJ(b.experiments,"html5_session_po_token_interval_time_ms")||0;0<b&&(a.u=g.Dy(function(){vT(a)},b))}};
vT=function(a){var b,c,d,e;g.A(function(f){if(!a.K("html5_generate_session_po_token")||a.useLivingRoomPoToken)return f.return();b=a.api.V();c=g.ey("EOM_VISITOR_DATA")||g.ey("VISITOR_DATA");d=b.Zn?b.datasyncId:c;e=b.livingRoomPoTokenId||d;b.Kf=eLa(a,e);g.oa(f)})};
eLa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.vb.di("pot_cms"):a.vb.di("pot_csms");a:{var d=a.j;b={by:b};var e,f=null!=(e=d.j)?e:new kl(d.logger,d.B,d.state),h=new Hj(d.logger,f.B);try{var l=f.C(b);break a}catch(p){h=new Hj(d.logger,"e");var m=p instanceof cl?p:new cl(5,p);d.logger.JC(m.code);var n;null==(n=d.onError)||n.call(d,m);f=new jl(d.logger,m,!d.DH);l=f.C(b);break a}finally{h.done()}l=void 0}c?a.vb.di("pot_cmf"):a.vb.di("pot_csmf");return l}catch(p){return g.DD(p),""}};
fLa=function(a){XS.call(this,a);var b=this;this.freePreviewWatchedDuration=0;this.events=new g.bI(a);g.E(this,this.events);g.FK(a.V())&&(this.events.S(a,"heartbeatRequest",function(c){c.heartbeatRequestParams||(c.heartbeatRequestParams={});c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={});c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}),mS(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=
c}))};
gLa=function(a){g.C.call(this);this.features=[];this.features.push(new YS(a),new NKa(a),new uT(a),new dT(a),new sKa(a),new iT(a),new aLa(a));this.features.push(new fLa(a),new WKa(a));this.features.push(new BKa(a),new fT(a),new IKa(a),new DKa(a),new EKa(a),new xKa(a),new hT(a),new nT(a));a=g.t(this.features);for(var b=a.next();!b.done;b=a.next())g.E(this,b.value)};
wT=function(){this.u=this.j=NaN};
xT=function(a,b,c){aF(a,c)||fF(a,b,c);aF(a,"video_to_ad")||fF(a,b,"video_to_ad");aF(a,"ad_to_video")||fF(a,b,"ad_to_video");aF(a,"ad_to_ad")||fF(a,b,"ad_to_ad")};
hLa=function(a,b){this.Y=a;this.timerName="";this.B=!1;this.u=NaN;this.C=new wT;this.j=b||null;this.B=!1};
iLa=function(a,b,c){var d=g.lK(b.B)&&!b.B.J;if(b.B.Xk&&(hK(b.B)||"shortspage"===b.B.Ga||KK(b.B)||d)&&!a.B){a.B=!0;a.I=b.clientPlaybackNonce;g.ey("TIMING_ACTION")||dy("TIMING_ACTION",a.Y.csiPageType);a.Y.csiServiceName&&dy("CSI_SERVICE_NAME",a.Y.csiServiceName);if(a.j){d=a.j.Oh();for(var e=g.t(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,eF(f,d[f],a.timerName);d=a.j.qF;e=g.t(Object.keys(d));for(f=e.next();!f.done;f=e.next())f=f.value,g.dF(f,d[f],a.timerName);d=a.j;d.j={};d.qF={}}g.dF("yt_pvis",
g.my(WE)(),a.timerName);g.dF("yt_pt","html5",a.timerName);a.D!==b.clientPlaybackNonce||Number.isNaN(a.u)||(aF("_start",a.timerName)?c=g.my(YE)("_start",a.timerName)+a.u:g.DD(new g.bA("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!aF("pbs",a.timerName)&&a.tick("pbs",c)}};
yT=function(a){Dta();Bta();a.timerName=""};
jLa=function(a){if(a.j){var b=a.j;b.j={};b.qF={}}a.B=!1;a.D=void 0;a.u=NaN};
kLa=function(a,b){g.dE.call(this);this.u=a;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.Z={};this.B=0;if(a=b.session_data)this.sessionData=oy(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new DL("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.EL(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.t(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=bL(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
lLa=function(a){return!!(a.playlist||a.list||a.api)};
mLa=function(a){var b=a.index+1;return b>=a.length?0:b};
nLa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.zT=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.$L(a.u,b),g.E(a,e),e.bl=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
oLa=function(a,b){a.index=g.ze(b,0,a.length-1);a.startSeconds=0};
pLa=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.zT(a);a.items=[];for(var d=g.t(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()}};
sLa=function(a,b){var c,d,e,f,h,l,m;return g.A(function(n){if(1==n.j){c=g.CR();var p=a.V(),q={context:g.jS(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};p=p.embedConfig;var r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=b.raw_embedded_player_response;if(!r){var v=b.embedded_player_response;v&&(r=JSON.parse(v))}if(r){var x,z,B,F,G,D;r=(null==(D=g.K(null==(x=r)?void 0:null==(z=x.embedPreview)?void 0:null==(B=z.thumbnailPreviewRenderer)?void 0:null==(F=B.playButton)?
void 0:null==(G=F.buttonRenderer)?void 0:G.navigationEndpoint,g.oM))?void 0:D.videoId)||null}else r=null}x=(x=r)?x:void 0;z=a.playlistId?a.playlistId:b.list;B=b.listType;if(z){var L;"user_uploads"===B?L={username:z}:L={playlistId:z};qLa(p,x,b,L);q.playlistRequest=L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},qLa(p,x,b,L),q.playlistRequest=L):x&&(L={videoId:x},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.pR(rLa);g.pa(n,2);return g.y(n,g.AP(c,d,
e),4)}if(2!=n.j)return f=n.u,h=a.V(),b.raw_embedded_player_response=f,h.Qa=pz(b,g.fK(h)),h.B="EMBEDDED_PLAYER_MODE_PFL"===h.Qa,f&&(l=f,l.trackingParams&&(q=l.trackingParams,pP().eq(q))),n.return(new g.$L(h,b));m=g.sa(n);m instanceof Error||(m=Error("b259802748"));g.CD(m);return n.return(a)})};
qLa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.BT=function(a,b){AT.get(a);AT.set(a,b)};
g.CT=function(a){g.dE.call(this);this.loaded=!1;this.player=a};
tLa=function(){this.u=[];this.j=[]};
g.DT=function(a,b){return b?a.j.concat(a.u):a.j};
g.ET=function(a,b){switch(b.kind){case "asr":uLa(b,a.u);break;default:uLa(b,a.j)}};
uLa=function(a,b){g.nb(b,function(c){return a.equals(c)})||b.push(a)};
g.FT=function(a){g.C.call(this);this.Y=a;this.j=new tLa;this.C=[]};
g.GT=function(a,b,c){g.FT.call(this,a);this.audioTrack=c;this.u=null;this.B=!1;this.eventId=null;this.C=b.LK;this.B=g.QM(b);this.eventId=b.eventId};
vLa=function(){this.j=this.dk=!1};
wLa=function(a){a=void 0===a?{}:a;var b=void 0===a.Oo?!1:a.Oo,c=new vLa;c.dk=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
g.xLa=function(a){this.j=a;this.I=new vLa;this.Un=this.Tn=!1;this.qm=2;this.Z=20971520;this.Ga=8388608;this.ea=120;this.kb=3145728;this.Ld=this.j.K("html5_platform_backpressure");this.tb=62914560;this.Wc=10485760;this.xm=g.gJ(this.j.experiments,"html5_min_readbehind_secs");this.vx=g.gJ(this.j.experiments,"html5_min_readbehind_cap_secs");this.tx=g.gJ(this.j.experiments,"html5_max_readbehind_secs");this.AD=this.j.K("html5_trim_future_discontiguous_ranges");this.ri=this.j.K("html5_offline_reset_media_stream_on_unresumable_slices");
this.dc=NaN;this.jo=this.Xk=this.Yv=2;this.Ja=2097152;this.vf=0;this.ao=1048576;this.Oc=!1;this.Nd=1800;this.wm=this.vl=5;this.fb=15;this.Hf=1;this.J=1.15;this.T=1.05;this.bl=1;this.Rn=!0;this.Xa=!1;this.oo=.8;this.ol=this.Dc=!1;this.Vd=6;this.D=this.ib=!1;this.aj=g.gJ(this.j.experiments,"html5_static_abr_resolution_shelf");this.ph=g.gJ(this.j.experiments,"html5_min_startup_buffered_media_duration_secs");this.Vn=g.gJ(this.j.experiments,"html5_post_interrupt_readahead");this.Sn=!1;this.Xn=g.gJ(this.j.experiments,
"html5_probe_primary_delay_base_ms")||5E3;this.Uo=100;this.Kf=10;this.wx=g.gJ(this.j.experiments,"html5_offline_failure_retry_limit")||2;this.lm=this.j.experiments.ob("html5_clone_original_for_fallback_location");this.Qg=1;this.Yi=1.6;this.Lc=!1;this.Xb=g.gJ(this.j.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.hj=g.gJ(this.j.experiments,"html5_subsegment_readahead_timeout_secs");this.rz=g.gJ(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.dj=
g.gJ(this.j.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.nD=g.gJ(this.j.experiments,"html5_subsegment_readahead_min_load_speed");this.Eo=g.gJ(this.j.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.wD=g.gJ(this.j.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Vf=15;this.rl=1;this.rd=!1;this.Nx=this.j.K("html5_restrict_streaming_xhr_on_sqless_requests");this.ox=g.gJ(this.j.experiments,"html5_max_headm_for_streaming_xhr");
this.Ax=this.j.K("html5_pipeline_manifestless_allow_nonstreaming");this.Cx=this.j.K("html5_prefer_server_bwe3");this.mx=this.j.K("html5_last_slice_transition");this.Yy=this.j.K("html5_store_xhr_headers_readable");this.Mp=!1;this.Yn=0;this.zm=2;this.po=this.jm=!1;this.ul=g.gJ(this.j.experiments,"html5_max_drift_per_track_secs");this.Pn=this.j.K("html5_no_placeholder_rollbacks");this.kz=this.j.K("html5_subsegment_readahead_enable_mffa");this.uf=this.j.K("html5_allow_video_keyframe_without_audio");this.zx=
this.j.K("html5_enable_vp9_fairplay");this.ym=this.j.K("html5_never_pause_appends");this.uc=!0;this.ke=this.Ya=this.jc=!1;this.mm=!0;this.Ui=!1;this.u="";this.Qw=1048576;this.je=[];this.Sw=this.j.K("html5_woffle_resume");this.Qk=this.j.K("html5_abs_buffer_health");this.Pk=!1;this.lx=this.j.K("html5_interruption_resets_seeked_time");this.qx=g.gJ(this.j.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Qa=!1;this.ll=this.j.K("html5_explicitly_dispose_xhr");this.Zn=!1;this.sA=!this.j.K("html5_encourage_array_coalescing");
this.hm=!1;this.Fx=this.j.K("html5_restart_on_unexpected_detach");this.ya=0;this.jl="";this.Pw=this.j.K("html5_disable_codec_for_playback_on_error");this.Si=!1;this.Uw=this.j.K("html5_filter_non_efficient_formats_for_safari");this.j.K("html5_format_hybridization");this.mA=this.j.K("html5_abort_before_separate_init");this.uy=bz();this.Wf=!1;this.Xy=this.j.K("html5_serialize_server_stitched_ad_request");this.tA=this.j.K("html5_skip_buffer_check_seek_to_head");this.Od=!1;this.rA=this.j.K("html5_attach_po_token_to_bandaid");
this.tm=g.gJ(this.j.experiments,"html5_max_redirect_response_length")||8192;this.Zi=this.j.K("html5_rewrite_timestamps_for_webm");this.Pb=this.j.K("html5_only_media_duration_for_discontinuities");this.Ex=g.gJ(this.j.experiments,"html5_resource_bad_status_delay_scaling")||1;this.j.K("html5_onesie_live");this.dE=this.j.K("html5_onesie_premieres");this.Rw=this.j.K("html5_drop_onesie_for_live_mode_mismatch");this.xx=g.gJ(this.j.experiments,"html5_onesie_live_ttl_secs")||8;this.Qn=g.gJ(this.j.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.Jy=this.j.K("html5_self_init_consolidation");this.yx=g.gJ(this.j.experiments,"html5_onesie_request_timeout_ms")||3E3;this.C=!1;this.nm=this.j.K("html5_new_sabr_buffer_timeline")||this.C;this.Aa=this.j.K("html5_ssdai_use_post_for_media")&&this.j.K("gab_return_sabr_ssdai_config");this.Xo=this.j.K("html5_use_post_for_media");this.Vo=g.gJ(this.j.experiments,"html5_url_padding_length");this.ij="";this.ot=this.j.K("html5_post_body_in_string");this.Bx=this.j.K("html5_post_body_as_prop");
this.useUmp=this.j.K("html5_use_ump")||this.j.K("html5_cabr_utc_seek");this.Rk=this.j.K("html5_cabr_utc_seek");this.La=this.oa=!1;this.Wn=this.j.K("html5_prefer_drc");this.Dx=this.j.K("html5_reset_primary_stats_on_redirector_failure");this.j.K("html5_remap_to_original_host_when_redirected");this.B=!1;this.If=this.j.K("html5_enable_sabr_format_selection");this.uA=this.j.K("html5_iterative_seeking_buffered_time");this.Eq=this.j.K("html5_use_network_error_code_enums");this.Ow=this.j.K("html5_disable_overlapping_requests");
this.Mw=this.j.K("html5_disable_cabr_request_timeout_for_sabr");this.Tw=this.j.K("html5_fallback_to_cabr_on_net_bad_status");this.Jf=this.j.K("html5_enable_sabr_partial_segments");this.Tb=!1;this.gA=this.j.K("html5_use_media_end_for_end_of_segment");this.nx=this.j.K("html5_log_smooth_audio_switching_reason");this.jE=this.j.K("html5_update_ctmp_rqs_logging");this.ql=!this.j.K("html5_remove_deprecated_ticks");this.Lw=this.j.K("html5_disable_bandwidth_cofactors_for_sabr")};
yLa=function(a,b){1080<b.video.j&&!a.Tn&&(a.Z=36700160,a.Ga=5242880,a.kb=10485760,a.Ja=Math.max(4194304,a.Ja),a.Tn=!0);2160<b.video.j&&!a.Un&&(a.Z=104857600,a.dc=13107200,a.Un=!0);b.isEncrypted()&&g.Yy()&&Wy("kant")&&(a.dc=1310720);b.dc&&(a.ao=Math.max(65536,Math.min(a.Ja,5*b.dc)))};
HT=function(a){return a.B&&a.If};
ALa=function(a,b){tL(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(sL(a,14,0),rL(a,c<<1^c>>31));tL(a,16,b.v4);tL(a,18,b.o2);tL(a,19,b.n2);tL(a,21,b.h9);tL(a,23,b.X1);tL(a,28,b.l8);tL(a,34,b.visibility);xL(a,38,b.mediaCapabilities,zLa,3);tL(a,39,b.v9);tL(a,40,b.pT);uL(a,46,b.M2);tL(a,48,b.S8)};
BLa=function(a){for(var b=[];jL(a,2);)b.push(iL(a));return{AK:b.length?b:void 0,videoId:nL(a,3),eQ:kL(a,4)}};
zLa=function(a,b){var c;if(b.dQ)for(c=0;c<b.dQ.length;c++)xL(a,1,b.dQ[c],CLa,1);if(b.zK)for(c=0;c<b.zK.length;c++)xL(a,2,b.zK[c],DLa,1)};
DLa=function(a,b){tL(a,1,b.W1);tL(a,2,b.numChannels);tL(a,3,b.D4)};
CLa=function(a,b){tL(a,1,b.S9);tL(a,3,b.E4);tL(a,4,b.F4);tL(a,11,b.maxFramerate);tL(a,12,b.D4)};
GLa=function(a){return{d8:kL(a,1),itag:nL(a,3),TW:oL(a,4,ELa),jj:kL(a,5),Q6a:kL(a,7),xtags:nL(a,15),N4:oL(a,23,FLa)}};
HLa=function(a){return{o8:lL(a,8)}};
ELa=function(a){return{iv:mL(a,5),n4:lL(a,7)}};
FLa=function(a){return{videoId:nL(a,2)}};
JLa=function(a,b){xL(a,2,b.Gu,ALa,3);xL(a,3,b.GM,ILa,3);vL(a,4,b.onesieUstreamerConfig);vL(a,9,b.sE)};
KLa=function(a){return{XH:kL(a,1),YH:kL(a,2),seekSource:kL(a,3)}};
ILa=function(a,b){vL(a,2,b.qT);vL(a,5,b.encryptedClientKey);vL(a,6,b.iv);vL(a,7,b.EU);uL(a,10,b.FX);uL(a,13,b.oT);uL(a,14,b.oL);vL(a,16,b.H9)};
LLa=function(a,b){wL(a,1,b.name);wL(a,2,b.value)};
MLa=function(a,b){wL(a,1,b.url);var c;if(b.wM)for(c=0;c<b.wM.length;c++)xL(a,2,b.wM[c],LLa,3);vL(a,3,b.postBody);uL(a,4,b.t8);uL(a,6,b.YD)};
NLa=function(a){return{MW:kL(a,1),GU:kL(a,2),body:mL(a,4)}};
OLa=function(a,b){var c;if(b.lK)for(c=0;c<b.lK.length;c++)wL(a,1,b.lK[c]);vL(a,2,b.S1);wL(a,3,b.Qr);tL(a,4,b.RX);tL(a,5,b.T9);wL(a,6,b.U9)};
g.PLa=function(a,b){b.Gu&&xL(a,1,b.Gu,ALa,1);b.videoPlaybackUstreamerConfig&&vL(a,3,b.videoPlaybackUstreamerConfig);b.Pz&&xL(a,6,b.Pz,OLa,3)};
g.QLa=function(a,b){return ZH(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.RLa=function(a,b){if(null!=a.j&&g.FK(b.V())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.fd())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.QLa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&Mva(a.j);return b||a};
g.IT=function(a,b,c,d,e,f){g.FT.call(this,a);this.videoId=c;this.JU=e;this.eventId=f;this.D={};this.u=null;a=d||g.sy(b).hl||"";a=a.split("_").join("-");this.B=ty(b,{hl:a})};
TLa=function(){this.j=SLa(this)};
SLa=function(a){return{env:{emscripten_notify_memory_growth:function(){}},
wasi_snapshot_preview1:{proc_exit:function(){},
fd_write:function(b,c,d){b=new DataView(a.exports.memory.buffer);for(var e="",f=0,h=0;h<d;h++){var l=b.getUint32(c,!0),m=b.getUint32(c+4,!0);f+=m;e+=g.WF(new Uint8Array(a.exports.memory.buffer,l,m));c+=8}console.log(e);return f}}}};
ULa=function(a){var b,c;return g.A(function(d){if(1==d.j)return b=new TLa,g.y(d,WebAssembly.instantiateStreaming(fetch(a),b.j),2);c=d.u;b.module=c.module;b.instance=c.instance;b.exports=b.instance.exports;return d.return(b)})};
VLa=function(a,b){g.C.call(this);this.F=a;this.C=b;this.qF={};this.j={};this.u=null;this.D=this.F.K("web_player_defer_modules");this.B=new Set;this.df=new Map};
g.JT=function(a){return a.df.get("captions")};
aMa=function(a,b){switch(b){case "ad":return WLa(a);case "annotations_module":return a.isShortsModeEnabled()?a=!1:(b=a.F,a=b.V(),b=b.getVideoData(),a=a.B||b.cV||"3"===a.controlsType?!1:a.Aa.Bf()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Xa||!!g.NM(b)||!!g.OM(b):!0),a;case "creatorendscreen":return XLa(a);case "embed":return g.fK(a.F.V());case "endscreen":return g.YLa(a);case "heartbeat":return a.lP();case "inline_preview":return a.F.V().showInlinePreviewUi;case "kids":return uK(a.F.V());
case "remote":return a.F.V().dj;case "miniplayer":return a.F.V().showMiniplayerUiWhenMinimized;case "music":return g.oK(a.F.V());case "offline":return a.F.V().Yi;case "captions":return ZLa(a);case "unplugged":return g.mK(a.F.V());case "ux":return a.F.V().Vf;case "webgl":return $La(a);case "ypc":return a.VD();case "ypc_clickwrap":return a=a.F.getVideoData(),a.Kf&&!a.XJ;case "yto":return!!a.F.getVideoData().Ja.includes("yto");default:return g.CD(Error("Module descriptor "+b+" does not match")),!1}};
KT=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.df.get(b);if(!h||d)if(e||(e=function(){KT(a,b,c,d)}),f||(f=function(){a.F.jg(b)}),h=h||bMa(a,b,aMa(a,b),e,f))a.df.set(b,h),h.create(),a.F.ma("modulecreated",b),c&&a.F.Na("onApiChange")};
eMa=function(a){cMa(a)&&a.bL();dMa(a)&&(KT(a,"captions",!0),KT(a,"endscreen"),a.cL(),KT(a,"creatorendscreen",!0))};
dMa=function(a){var b=a.F.getVideoData(),c=a.D&&!b.isInlinePlaybackNoAd;a.F.K("html5_defer_modules_on_ads_only")&&!b.isAd()&&(c=!1);return c};
cMa=function(a){a=a.F.getVideoData();var b;if(b=a.K("web_player_defer_ad")){if(g.rb(a.Ja,"ad")||fM(a,"disable_defer_admodule_on_advertiser_video")&&Lza(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=
e=void 0;f=Number(null==(e=f)?void 0:null==(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
ZLa=function(a){var b=a.F.getVideoData();return!!b.je||!!b.captionTracks.length||g.RLa(b,a.F)};
g.YLa=function(a){var b=a.F.V();if(b.B||KK(b)||b.J||!b.Wc&&!b.Wf)return!1;var c=a.F.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.K("desktop_enable_autoplay");a=a.F.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.K("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.K("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.K("allow_live_autoplay_on_mweb");return!c||b};
g.LS=function(a){return a.df.get("webgl")};
$La=function(a){var b=a.F.getVideoData();a=a.F.V();var c=g.joa(),d=a.K("enable_spherical_kabuki"),e=g.IK(a);if(g.LM(b))return c||d||e;if(g.IM(b))return e||c||d;if(g.JM(b))return e||c||!1;if(g.KM(b))return e||!1;c=b.u&&b.u.video&&b.u.video.isHdr();return e&&!g.AM(b)&&!c&&a.K("enable_webgl_noop")};
WLa=function(a){if(a.F.V().B)return!1;if(a=a.F.getVideoData(1).getPlayerResponse())if(a=a.adPlacements)for(var b=0;b<a.length;b++)if(a[b].adPlacementRenderer)return!0;return!1};
XLa=function(a){if(a.isShortsModeEnabled())return!1;a=a.F;var b=a.V();if(b.B||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.Vza(a)||!!g.Wza(a))};
bMa=function(a,b,c,d,e){try{if(c){var f=AT.get(b);if(f)return new f(a.F);fMa(a,b,d,e)}else a.F.jg(b)}catch(h){a.F.jg(b),g.CD(h)}return null};
LT=function(a,b,c){for(var d=g.t(a.df),e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;(f=f.next().value)&&(c||f.Tk(b))&&(g.Za(f),a.df.delete(e))}};
MT=function(a){return a.df.get("ad")};
gMa=function(a){if(uK(a.F.V()))return a.df.get("kids")};
JS=function(a){if(a.F.V().dj)return a.df.get("remote")};
g.NT=function(a){if(g.mK(a.F.V()))return a.df.get("unplugged")};
XJa=function(a){if(a.F.V().Vf)return a.df.get("ux")};
OT=function(a){if(a.F.V().Yi)return a.df.get("offline")};
g.PT=function(a){return a.df.get("annotations_module")};
hMa=function(a){return a.df.get("creatorendscreen")};
iMa=function(a){a=a.C.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return ULa(a)};
fMa=function(a,b,c,d){if(a.C){var e=jMa[b];kMa(a,a.C+e,function(){a.B.add(e);c.call(a)},d)}};
kMa=function(a,b,c,d){function e(){a.isDisposed()||d.call(a)}
function f(){a.isDisposed()||c.call(a)}
for(var h=g.Xe("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.qf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(z){Ff(f);q&&q.apply(window,[z])};
var r=m.onerror;m.onerror=function(z){if(.01>Math.random()){var B=new g.bA("Unable to load player module",b,document.location&&document.location.origin);g.CD(B)}Ff(e);r&&r(z)};
var v=m,x=v.onreadystatechange;v.onreadystatechange=function(z){switch(v.readyState){case "loaded":case "complete":Ff(f)}x&&x(z)};
l&&((h=a.F.V().cspNonce)&&m.setAttribute("nonce",h),g.fk(m,g.wr(b)),h=g.Xe("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),g.bb(a,function(){m.parentNode&&m.parentNode.removeChild(m)}))};
lMa=function(a,b,c,d,e){g.dE.call(this);var f=this;this.target=a;this.fF=b;this.u=0;this.I=!1;this.C=new g.Fe(NaN,NaN);this.j=new g.bI(this);this.ya=this.B=this.J=null;g.E(this,this.j);b=d||e?4E3:3E3;this.ea=new g.Ip(function(){QT(f,1,!1)},b,this);
g.E(this,this.ea);this.Z=new g.Ip(function(){QT(f,2,!1)},b,this);
g.E(this,this.Z);this.oa=new g.Ip(function(){QT(f,512,!1)},b,this);
g.E(this,this.oa);this.Aa=c&&0<c.Wf.length?5E3:3E3;d||(this.B=this.j.S(a,"mouseover",this.Ev),this.j.S(a,"mousemove",this.d0),this.j.S(a,"mouseleave",this.U4));Im?this.j.S(a,"keypress",this.t4):this.j.S(a,"focusin",this.g3);this.D=this.j.S(a,"mousedown",this.BR);this.T=this.j.S(a,"touchstart",this.CR,void 0,!0);QT(this,640,!0)};
mMa=function(a){QT(a,4,!1);a.J&&(a.j.Hc(a.J),a.J=null,a.B=a.j.S(a.target,"mouseover",a.Ev));a.B&&(a.j.Hc(a.B),a.B=a.j.S(a.target,"mouseover",a.Ev))};
QT=function(a,b,c){a.isDisposed();var d=!a.u;c?(a.u|=b,b&1&&a.ea.start(),b&2&&a.Z.start()):(a.u&=~b,b&1&&a.ea.stop(),b&2&&a.Z.stop(),b&512&&a.oa.stop());a.u&512&&!(a.u&128)&&g.Jp(a.oa,a.Aa);b=!a.u;d!==b&&a.ma("autohideupdate",b)};
g.ST=function(a){g.U.call(this,{G:"button",Ia:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Play"},W:["{{largePlayButtonChildren}}"]});this.api=a;this.S(a,"videodatachange",this.Pa);this.S(a,"basechromeinitialized",this.Pa);a=this.api.V();a.T&&RT&&(this.Ra("click",this.j,this),this.Ra("touchstart",this.u,this));g.lK(a)&&g.Qp(this.element,"ytp-large-play-button-red-bg");this.api.sb(this.element,this,28572);this.Pa()};
g.TT=function(a){var b=a.V(),c=["ytp-cued-thumbnail-overlay"];b.J&&c.push("ytp-exp-contain-thumbnail");b.K("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.U.call(this,{G:"div",Ia:c,W:[{G:"div",N:"ytp-cued-thumbnail-overlay-image"}]});b=this.Da("ytp-cued-thumbnail-overlay");c=new g.ST(a);g.E(this,c);c.Ea(b);this.C=new g.bI(this);g.E(this,this.C);this.api=a;this.D=this.Da("ytp-cued-thumbnail-overlay-image");this.B=c;this.u=new g.QQ(this,250);g.E(this,this.u);this.j=new g.Ip(this.Pa,
0,this);g.E(this,this.j);this.Pa();this.S(a,"appresize",this.Db);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"ypcStateChanged",this.Z7);hK(a.V())&&this.S(a,"videoplayerreset",this.Jv)};
nMa=function(a){if(!a.api.K("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Cb();a=g.S(a,64)&&g.S(a,1);return 0===b&&a};
oMa=function(a){var b=!a.V().hj&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.UT=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.fR(a))return g.EO(a),!0;b.pauseVideo();a=e.getAttribute("href");g.GN(a,d,!0);return!1};
g.VT=function(a,b,c){if(BK(b.V())&&2!==b.getPresentingPlayerType()){if(g.fR(c))return b.isFullscreen()&&!b.V().externalFullscreen&&b.toggleFullscreen(),g.EO(c),!0}else if(b.V().K("embeds_enable_webview_nonjs_navigation")&&g.fK(b.V())&&(gz()||ez()))b=c.target,b instanceof HTMLAnchorElement&&ck(b,yga(a));else{var d=g.fR(c);d&&b.pauseVideo();g.GN(a,void 0,!0);d&&(g.IN(a),g.EO(c))}return!1};
pMa=function(){return{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}],N:"ytp-subtitles-button-icon"}};
qMa=function(){return{G:"div",N:"ytp-spinner-container",W:[{G:"div",N:"ytp-spinner-rotator",W:[{G:"div",N:"ytp-spinner-left",W:[{G:"div",N:"ytp-spinner-circle"}]},{G:"div",N:"ytp-spinner-right",W:[{G:"div",N:"ytp-spinner-circle"}]}]}]}};
rMa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
g.WT=function(a,b,c){a=a.V();return a.K("desktop_player_button_tooltip_with_shortcut")&&!a.aj?g.lO("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c}):b};
g.XT=function(a){g.U.call(this,{G:"div",Ia:["ytp-error"],X:{role:"alert"},W:[{G:"div",N:"ytp-error-content",W:[{G:"div",N:"ytp-error-icon-container",W:[{G:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},W:[{G:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{G:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{G:"div",N:"ytp-error-content-wrap",
W:[{G:"div",N:"ytp-error-content-wrap-reason",ra:"{{content}}"},{G:"div",N:"ytp-error-content-wrap-subreason",ra:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.ZT=function(a){a=a.split(sMa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({G:"br"}),b.push(d[e]);c<a.length&&b.push({G:"a",X:{href:a[c],target:a[c+1]},ra:a[c+2]})}return{G:"span",W:b}};
tMa=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.V().C);a=a.api.getVideoData();b=g.lO(g.$T[b]||"",d?{CPN:a.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({G:"h2",ra:f});d.push(b[0]);h&&d.push({G:"br"});d.push({G:"a",X:{href:c,target:e?"_blank":null},ra:b[2]});d.push(b[4]);return{G:"span",W:d}};
uMa=function(a,b){for(var c=a.element.getElementsByTagName("a"),d=0;d<c.length;d++){var e=a.S(c[d],"click",b);a.keys.push(e)}};
vMa=function(a){for(var b=0;b<a.keys.length;b++)a.Hc(a.keys[b]);a.keys=[]};
aU=function(a){g.bI.call(this);this.F=a;this.j=new Set;this.mediaSession=navigator.mediaSession;this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.Hi);this.onVideoDataChange()};
bU=function(a,b,c){a.mediaSession.setActionHandler(b,c?function(){c()}:null);
a.j.add(b)};
wMa=function(a){bU(a,"play",function(){a.F.playVideo()});
bU(a,"pause",function(){a.F.pauseVideo()});
bU(a,"seekbackward",function(){a.F.seekBy(-5*a.F.getPlaybackRate())});
bU(a,"seekforward",function(){a.F.seekBy(5*a.F.getPlaybackRate())})};
xMa=function(a){var b,c;a=a.F.getVideoData();a=a.jd&&a.jd.playerOverlays||null;return null==a?void 0:null==(b=a.playerOverlayRenderer)?void 0:null==(c=b.browserMediaSession)?void 0:c.browserMediaSessionRenderer};
yMa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.t(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.UD(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
zMa=function(a){var b=a.F.Cb();b=b.isCued()||b.isError()?"none":g.RO(b)?"playing":"paused";a.mediaSession.playbackState=b};
AMa=function(a){g.U.call(this,{G:"div",N:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.F=a;this.videoId=null;this.B=!1;this.Te=this.j=null;var b=a.V();a.K("enable_new_paid_product_placement")&&!g.GK(b)?(this.u=new g.U({G:"a",N:"ytp-paid-content-overlay-link",X:{href:"{{href}}",target:"_blank"},W:[{G:"div",N:"ytp-paid-content-overlay-icon",ra:"{{icon}}"},{G:"div",N:"ytp-paid-content-overlay-text",ra:"{{text}}"},{G:"div",N:"ytp-paid-content-overlay-chevron",ra:"{{chevron}}"}]}),
this.S(this.u.element,"click",this.onClick)):this.u=new g.U({G:"div",Ia:["ytp-button","ytp-paid-content-overlay-text"],ra:"{{text}}"});this.C=new g.QQ(this.u,250,!1,100);g.E(this,this.u);this.u.Ea(this.element);g.E(this,this.C);this.F.Zf(this.element,this);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.yd)};
CMa=function(a,b){var c=Kza(b),d=BM(b);b.Kf&&a.F.Mo()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Lp(a.j),a.videoId=b.videoId,a.B=!!d,a.B&&c&&BMa(a,d,c,b)):c&&d&&BMa(a,d,c,b))};
BMa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Ip(a.Fb,b,a);g.E(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.K(e,g.pM))?void 0:l.url;a.F.og(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.u.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{G:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 24 24",
width:"100%"},W:[{G:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.iQ():null})};
DMa=function(a,b){a.j&&(g.S(b,8)&&a.B?(a.B=!1,a.od(),a.j.start()):(g.S(b,2)||g.S(b,64))&&a.videoId&&(a.videoId=null))};
cU=function(a){g.U.call(this,{G:"div",N:"ytp-spinner",W:[qMa(),{G:"div",N:"ytp-spinner-message",ra:"If playback doesn't begin shortly, try restarting your device."}]});this.api=a;this.message=this.Da("ytp-spinner-message");this.j=new g.Ip(this.show,500,this);g.E(this,this.j);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"playbackstalledatstart",this.u);this.qc(a.Cb())};
dU=function(a){var b=sJ(a.V().experiments,"mweb_muted_autoplay_animation"),c=[],d=[{G:"div",Ia:["ytp-unmute-icon"],W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{G:"div",Ia:["ytp-unmute-text"],ra:"Tap to unmute"}];"none"!==b&&(c.push("ytp-unmute-animated"),d.push({G:"div",Ia:["ytp-unmute-box"],W:[]}),"expand"===b?c.push("ytp-unmute-expand"):"shrink"===b&&c.push("ytp-unmute-shrink"));g.PS.call(this,a,{G:"button",Ia:["ytp-unmute","ytp-popup","ytp-button"].concat(c),W:[{G:"div",N:"ytp-unmute-inner",W:d}]},100);this.j=this.clicked=!1;this.api=a;this.api.sb(this.element,this,51663);this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.S(a,"presentingplayerstatechange",
this.Hi);this.Ra("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.fK(this.api.V());g.bQ(this,a);a&&EMa(this);this.B=a};
EMa=function(a){a.j||(a.j=!0,a.api.Ua(a.element,!0))};
g.eU=function(a){g.bI.call(this);var b=this;this.api=a;this.nN=!1;this.To=null;this.pF=!1;this.rg=null;this.aL=this.qI=!1;this.NP=this.OP=null;this.hV=NaN;this.MP=this.vB=!1;this.PC=0;this.jK=[];this.pO=!1;this.qC={height:0,width:0};this.X9=["ytp-player-content","html5-endscreen","ytp-overlay"];this.uN={HU:!1};var c=a.V(),d=a.jb();this.qC=a.getPlayerSize();this.BS=new g.Ip(this.DN,0,this);g.E(this,this.BS);g.oK(c)||(this.Fm=new g.TT(a),g.E(this,this.Fm),g.NS(a,this.Fm.element,4));if(FMa(this)){var e=
new cU(a);g.E(this,e);e=e.element;g.NS(a,e,4)}var f=a.getVideoData();this.Ve=new lMa(d,function(l){return b.fF(l)},f,c.ph,!1);
g.E(this,this.Ve);this.Ve.subscribe("autohideupdate",this.qn,this);if(!c.disablePaidContentOverlay){var h=new AMa(a);g.E(this,h);g.NS(a,h.element,4)}this.TP=new dU(a);g.E(this,this.TP);g.NS(this.api,this.TP.element,2);this.vM=this.api.isMutedByMutedAutoplay();this.S(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.pI=new g.Ip(this.fA,200,this);g.E(this,this.pI);this.GC=f.videoId;this.qX=new g.Ip(function(){b.PC=0},350);
g.E(this,this.qX);this.uF=new g.Ip(function(){b.MP||GMa(b)},350,this);
g.E(this,this.uF);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Player");switch(c.color){case "white":g.Qp(f,"ytp-color-white")}g.oK(c)&&g.Qp(f,"ytp-music-player");navigator.mediaSession&&null!=navigator.mediaSession.setActionHandler&&(f=new aU(a),g.E(this,f));this.S(a,"appresize",this.Db);this.S(a,"presentingplayerstatechange",this.Hi);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.G6);this.S(a,"autonavvisibility",function(){b.wp()});
this.S(a,"sizestylechange",function(){b.wp()});
this.S(d,"click",this.d7,this);this.S(d,"dblclick",this.e7,this);this.S(d,"mousedown",this.h7,this);c.Tb&&(this.S(d,"gesturechange",this.f7,this),this.S(d,"gestureend",this.g7,this));this.Ws=[d.kB];this.Fm&&this.Ws.push(this.Fm.element);e&&this.Ws.push(e)};
HMa=function(a,b){if(!b)return!1;var c=a.api.qe();if(c.du()&&(c=c.ub())&&g.zf(c,b))return c.controls;for(c=0;c<a.Ws.length;c++)if(g.zf(a.Ws[c],b))return!1;c=g.t(a.X9);for(var d=c.next();!d.done;d=c.next())if(g.Pp(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
IMa=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.jb().mG||!1)&&a.api.V().u&&RT&&11<=dM;a=a.api.V().T&&RT;return!(!b&&!a)};
fU=function(a,b){return!a.api.isInline()&&!HMa(a,CO(b))&&g.fR(b)};
GMa=function(a){a.Ve.tp();if(a.qI&&a.aL)a.aL=!1;else if(!a.api.V().Xa&&!a.Il()){var b=a.api.Cb();g.S(b,2)&&g.HS(a.api)||a.nw(b);if(!a.api.V().Tb||b.isCued()||g.S(b,1024)){var c=a.api.fI();g.rA("embedsShouldRequestStorageAccessResult",{result:!!c,returnsUndefined:void 0===c});var d=g.S(b,1024);c&&(b.isCued()||d)?(g.rA("embedsRequestStorageAccessState",{isCued:b.isCued(),J7a:d}),a.requestStorageAccess()):(!c||b.isCued()&&d||g.rA("embedsRequestStorageAccessFailedState",{state:b.state}),a.fA())}else a.pI.isActive()?
(a.nG(),a.pI.stop()):a.pI.start()}};
JMa=function(a,b){var c;if(null==(c=a.api.getVideoData())?0:c.mutedAutoplay){var d,e;if(null==(d=b.target)?0:null==(e=d.className)?0:e.includes("ytp-info-panel"))return!1}return g.fR(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Cb(),!g.S(b,4)||g.S(b,8)||g.S(b,2)||a.fA(),!0):!1};
KMa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
FMa=function(a){a=Xy()&&67<=goa()&&!a.api.V().T;return!Wy("tizen")&&!cK&&!a&&!0};
gU=function(a,b){b=void 0===b?2:b;g.dE.call(this);this.api=a;this.j=null;this.ud=new Jz(this);g.E(this,this.ud);this.u=qFa;this.ud.S(this.api,"presentingplayerstatechange",this.yd);this.j=this.ud.S(this.api,"progresssync",this.yc);this.In=b;1===this.In&&this.yc()};
LMa=function(a){g.U.call(this,{G:"button",Ia:["ytp-button","ytp-back-button"],W:[{G:"div",N:"ytp-arrow-back-icon",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 -12 36 36",width:"100%"},W:[{G:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{G:"path",xc:!0,X:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z",fill:"#fff"}}]}]}]});this.F=a;g.bQ(this,a.V().rl);this.Ra("click",this.onClick)};
g.hU=function(a){g.U.call(this,{G:"div",W:[{G:"div",N:"ytp-bezel-text-wrapper",W:[{G:"div",N:"ytp-bezel-text",ra:"{{title}}"}]},{G:"div",N:"ytp-bezel",X:{role:"status","aria-label":"{{label}}"},W:[{G:"div",N:"ytp-bezel-icon",ra:"{{icon}}"}]}]});this.F=a;this.u=new g.Ip(this.show,10,this);this.j=new g.Ip(this.hide,500,this);g.E(this,this.u);g.E(this,this.j);this.hide()};
jU=function(a,b,c){if(0>=b){c=tQ();b="muted";var d=0}else c=c?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"volume";iU(a,c,b,d+"%")};
MMa=function(a,b){b=b?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};var c=a.F.getPlaybackRate(),d=g.lO("Speed is $RATE",{RATE:String(c)});iU(a,b,d,c+"x")};
NMa=function(a,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";iU(a,pMa(),b)};
iU=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.Lp(a.j);a.u.start();a.updateValue("title",d);g.Up(a.element,"ytp-bezel-text-hide",!d)};
PMa=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-button","ytp-cards-button"],X:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.fK(a.V()))},W:[{G:"span",N:"ytp-cards-button-icon-default",W:[{G:"div",N:"ytp-cards-button-icon",W:[a.V().K("player_new_info_card_format")?PEa():{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{G:"div",N:"ytp-cards-button-title",ra:"Info"}]},{G:"span",N:"ytp-cards-button-icon-shopping",W:[{G:"div",N:"ytp-cards-button-icon",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",N:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",N:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{G:"path",N:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div",
N:"ytp-cards-button-title",ra:"Shopping"}]}]});this.F=a;this.B=b;this.C=c;this.j=null;this.u=new g.QQ(this,250,!0,100);g.E(this,this.u);g.Up(this.C,"ytp-show-cards-title",g.fK(a.V()));this.hide();this.Ra("click",this.L5);this.Ra("mouseover",this.f6);OMa(this,!0)};
OMa=function(a,b){b?a.j=g.ZS(a.B.Ic(),a.element):(a.j=a.j,a.j(),a.j=null)};
QMa=function(a,b,c){g.U.call(this,{G:"div",N:"ytp-cards-teaser",W:[{G:"div",N:"ytp-cards-teaser-box"},{G:"div",N:"ytp-cards-teaser-text",W:a.V().K("player_new_info_card_format")?[{G:"button",N:"ytp-cards-teaser-info-icon",X:{"aria-label":"Show cards","aria-haspopup":"true"},W:[PEa()]},{G:"span",N:"ytp-cards-teaser-label",ra:"{{text}}"},{G:"button",N:"ytp-cards-teaser-close-button",X:{"aria-label":"Close"},W:[g.jQ()]}]:[{G:"span",N:"ytp-cards-teaser-label",ra:"{{text}}"}]}]});var d=this;this.F=a;this.Z=
b;this.Wi=c;this.C=new g.QQ(this,250,!1,250);this.j=null;this.J=new g.Ip(this.s6,300,this);this.I=new g.Ip(this.r6,2E3,this);this.D=[];this.u=null;this.T=new g.Ip(function(){d.element.style.margin="0"},250);
this.onClickCommand=this.B=null;g.E(this,this.C);g.E(this,this.J);g.E(this,this.I);g.E(this,this.T);a.V().K("player_new_info_card_format")?(g.Qp(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.Da("ytp-cards-teaser-close-button"),"click",this.Zo),this.S(this.Da("ytp-cards-teaser-info-icon"),"click",this.DP),this.S(this.Da("ytp-cards-teaser-label"),"click",this.DP)):this.Ra("click",this.DP);this.S(c.element,"mouseover",this.ER);this.S(c.element,"mouseout",this.DR);this.S(a,"cardsteasershow",
this.E7);this.S(a,"cardsteaserhide",this.Fb);this.S(a,"cardstatechange",this.CY);this.S(a,"presentingplayerstatechange",this.CY);this.S(a,"appresize",this.aQ);this.S(a,"onShowControls",this.aQ);this.S(a,"onHideControls",this.m2);this.Ra("mouseenter",this.g0)};
RMa=function(a){g.U.call(this,{G:"button",Ia:[kU.BUTTON,kU.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{G:"div",N:kU.TITLE_NOTIFICATIONS_ON,X:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.nQ()]},{G:"div",N:kU.TITLE_NOTIFICATIONS_OFF,X:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{G:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{G:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});
this.api=a;this.j=!1;a.sb(this.element,this,36927);this.Ra("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")};
SMa=function(a,b){a.j=b;a.element.classList.toggle(kU.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.TI:c.RI)?(a=a.api.Mm())?tR(a,b):g.CD(Error("No innertube service available when updating notification preferences.")):g.CD(Error("No update preferences command available.")):g.CD(Error("No video data when updating notification preferences."))};
g.lU=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=TMa(a,b);if(a=g.gk(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Xqa(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
TMa=function(a,b){var c=document.location.protocol;return vfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.nU=function(a,b,c,d,e,f,h,l,m,n,p,q,r){r=void 0===r?null:r;a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var v=q.V();p=v.userDisplayName&&g.lK(v);g.U.call(this,{G:"div",Ia:["ytp-button","ytp-sb"],W:[{G:"div",N:"ytp-sb-subscribe",X:p?{title:g.lO("Subscribe as $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":LK(v),"data-tooltip-opaque":String(g.fK(v)),
tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},W:[{G:"div",N:"ytp-sb-text",W:[{G:"div",N:"ytp-sb-icon"},a]},b?{G:"div",N:"ytp-sb-count",ra:b}:""]},{G:"div",N:"ytp-sb-unsubscribe",X:p?{title:g.lO("Subscribed as $USER_NAME",{USER_NAME:v.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":LK(v),"data-tooltip-opaque":String(g.fK(v)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},W:[{G:"div",N:"ytp-sb-text",W:[{G:"div",N:"ytp-sb-icon"},c]},
d?{G:"div",N:"ytp-sb-count",ra:d}:""]}],X:{"aria-live":"polite"}});var x=this;this.channelId=h;this.B=r;this.F=q;var z=this.Da("ytp-sb-subscribe"),B=this.Da("ytp-sb-unsubscribe");f&&g.Qp(this.element,"ytp-sb-classic");if(e){l?this.j():this.u();var F=function(){if(v.authUser){var D=x.channelId;if(m||n){var L={c:D};var P;g.fS.isInitialized()&&(P=xJa(L));L=P||"";if(P=q.getVideoData())if(P=P.subscribeCommand){var T=q.Mm();T?(tR(T,P,{botguardResponse:L,feature:m}),q.Na("SUBSCRIBE",D)):g.CD(Error("No innertube service available when updating subscriptions."))}else g.CD(Error("No subscribe command in videoData."));
else g.CD(Error("No video data available when updating subscription."))}B.focus();B.removeAttribute("aria-hidden");z.setAttribute("aria-hidden","true")}else g.lU(g.yK(x.F.V()),"sb_button",x.C)},G=function(){var D=x.channelId;
if(m||n){var L=q.getVideoData();tR(q.Mm(),L.unsubscribeCommand,{feature:m});q.Na("UNSUBSCRIBE",D)}z.focus();z.removeAttribute("aria-hidden");B.setAttribute("aria-hidden","true")};
this.S(z,"click",F);this.S(B,"click",G);this.S(z,"keypress",function(D){13===D.keyCode&&F(D)});
this.S(B,"keypress",function(D){13===D.keyCode&&G(D)});
this.S(q,"SUBSCRIBE",this.j);this.S(q,"UNSUBSCRIBE",this.u);this.B&&p&&(this.tooltip=this.B.Ic(),mU(this.tooltip),g.bb(this,g.ZS(this.tooltip,z)),g.bb(this,g.ZS(this.tooltip,B)))}else g.Qp(z,"ytp-sb-disabled"),g.Qp(B,"ytp-sb-disabled")};
VMa=function(a,b){g.U.call(this,{G:"div",N:"ytp-title-channel",W:[{G:"div",N:"ytp-title-beacon"},{G:"a",N:"ytp-title-channel-logo",X:{href:"{{channelLink}}",target:a.V().ea,"aria-label":"{{channelLogoLabel}}"}},{G:"div",N:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{G:"div",N:"ytp-title-expanded-heading",W:[{G:"div",N:"ytp-title-expanded-title",W:[{G:"a",ra:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.V().ea,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",N:"ytp-title-expanded-subtitle",ra:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var c=this;this.api=a;this.D=b;this.channel=this.Da("ytp-title-channel");this.j=this.Da("ytp-title-channel-logo");this.channelName=this.Da("ytp-title-expanded-title");this.I=this.Da("ytp-title-expanded-overlay");this.B=this.u=this.subscribeButton=null;this.C=!1;a.sb(this.j,this,36925);a.sb(this.channelName,this,37220);g.fK(this.api.V())&&
UMa(this);this.S(a,"videodatachange",this.Pa);this.S(a,"videoplayerreset",this.Pa);this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&(this.S(this.channelName,"click",function(d){c.api.qb(c.channelName);g.gk(oU(c));d.preventDefault()}),this.S(this.j,"click",this.I5));
this.Pa()};
WMa=function(a){if(!a.api.V().uc){var b=a.api.getVideoData(),c=new g.nU("Subscribe",null,"Subscribed",null,!0,!1,b.bk,b.subscribed,"channel_avatar",null,null,a.api,a.D);a.api.Zf(c.element,a);var d;a.api.og(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.S(c.element,"click",function(){a.api.qb(c.element)});
a.subscribeButton=c;g.E(a,a.subscribeButton);a.subscribeButton.Ea(a.I);a.subscribeButton.hide();var e=new RMa(a.api);a.u=e;g.E(a,e);e.Ea(a.I);e.hide();a.S(a.api,"SUBSCRIBE",function(){b.ll&&(e.show(),a.api.Ua(e.element,!0))});
a.S(a.api,"UNSUBSCRIBE",function(){b.ll&&(e.hide(),a.api.Ua(e.element,!1),SMa(e,!1))})}};
UMa=function(a){var b=a.api.V();WMa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.u||b.tb?a.S(a.j,"click",function(c){a.api.K("web_player_ve_conversion_fixes_for_channel_info")||(XMa(a)&&(c.preventDefault(),a.isExpanded()?a.nF():a.CF()),a.api.qb(a.j))}):(a.S(a.channel,"mouseenter",a.CF),a.S(a.channel,"mouseleave",a.nF),a.S(a.channel,"focusin",
a.CF),a.S(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.nF()}),a.S(a.j,"click",function(){a.api.K("web_player_ve_conversion_fixes_for_channel_info")||a.api.qb(a.j)}));
a.B=new g.Ip(function(){a.isExpanded()&&(a.api.K("web_player_ve_conversion_fixes_for_channel_info")&&a.api.Ua(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.Ua(a.subscribeButton.element,!1)),a.u&&(a.u.hide(),a.api.Ua(a.u.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.E(a,a.B);a.S(a.channel,YMa,function(){ZMa(a)});
a.S(a.api,"onHideControls",a.RO);a.S(a.api,"appresize",a.RO);a.S(a.api,"fullscreentoggled",a.RO)};
ZMa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
XMa=function(a){var b=a.api.getPlayerSize();return g.fK(a.api.V())&&524<=b.width};
oU=function(a){var b=a.api.V(),c=a.api.getVideoData();c=g.MK(b)+c.Lc;if(!g.fK(b))return c;var d={};b.ya&&g.iS(d,a.api.V().loaderUrl);g.pS(a.api,"addEmbedsConversionTrackingParams",[d]);g.hS(d,"emb_ch_name_ex");return g.Zi(c,d)};
pU=function(a,b,c,d,e,f){var h={G:"div",N:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={G:"div",N:"ytp-panel-header",W:[{G:"div",Ia:["ytp-panel-back-button-container"],W:[{X:{"aria-label":"Back to previous menu"},G:"button",Ia:["ytp-button",l]}]},{X:{tabindex:"0"},G:"span",Ia:[m],W:[c]}]};if(e){var p="ytp-panel-options";n.W.push({G:"button",Ia:["ytp-button",p],W:[d]})}h.W=[n]}d=!1;f&&(f={G:"div",N:"ytp-panel-footer",W:[f]},d=!0,h.W?h.W.push(f):h.W=[f]);g.dQ.call(this,
h);this.content=b;d&&h.W?b.Ea(this.element,h.W.length-1):b.Ea(this.element);this.yU=!1;this.xU=d;c&&(c=this.Da(l),m=this.Da(m),this.S(c,"click",this.WV),this.S(m,"click",this.WV),this.yU=!0,e&&(p=this.Da(p),this.S(p,"click",e)));b.subscribe("size-change",this.cW,this);this.S(a,"fullscreentoggled",this.cW);this.F=a};
g.qU=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.dQ({G:"div",N:"ytp-panel-menu",X:h});pU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.E(this,this.menuItems)};
g.$Ma=function(a){for(var b=g.t(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.WN,a);a.items=[];g.vf(a.menuItems.element);a.menuItems.ma("size-change")};
aNa=function(a,b){return b.priority-a.priority};
rU=function(a){var b=g.TS({"aria-haspopup":"true"});g.SS.call(this,b,a);this.Ra("keydown",this.j)};
sU=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
bNa=function(a,b){g.U.call(this,{G:"div",N:"ytp-user-info-panel",X:{"aria-label":"User info"},W:a.V().authUser&&!a.K("embeds_web_always_enable_signed_out_state")?[{G:"div",N:"ytp-user-info-panel-icon",ra:"{{icon}}"},{G:"div",N:"ytp-user-info-panel-content",W:[{G:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},ra:"{{watchingAsUsername}}"},{G:"div",N:"ytp-user-info-panel-info",X:{tabIndex:"{{userInfoFocusable2}}",role:"text"},ra:"{{watchingAsEmail}}"}]}]:[{G:"div",
N:"ytp-user-info-panel-icon",ra:"{{icon}}"},{G:"div",N:"ytp-user-info-panel-content",W:[{G:"div",W:[{G:"text",X:{tabIndex:"{{userInfoFocusable}}"},ra:"Signed out"}]},{G:"div",N:"ytp-user-info-panel-login",W:[{G:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},ra:a.V().uc?"":"Sign in on YouTube"}]}]}]});this.Ta=a;this.j=b;a.V().authUser||a.V().uc||(a=this.Da("ytp-user-info-panel-login"),this.S(a,"click",this.j0));this.closeButton=new g.U({G:"button",Ia:["ytp-collapse","ytp-button"],X:{title:"Close"},
W:[g.sQ()]});this.closeButton.Ea(this.element);g.E(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.h0);this.Pa()};
dNa=function(a,b,c,d){g.qU.call(this,a);this.Eb=c;this.Qc=d;this.getVideoUrl=new rU(6);this.Pm=new rU(5);this.Jm=new rU(4);this.lc=new rU(3);this.HD=new g.SS(g.TS({href:"{{href}}",target:this.F.V().ea},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.SS(g.TS(),1,"Stats for nerds");this.ey=new g.dQ({G:"div",Ia:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},ra:"{{text}}"});this.cT=new pU(this.F,this.ey);this.lE=this.Js=null;g.fK(this.F.V())&&this.F.K("embeds_web_enable_new_context_menu_triggering")&&
(this.closeButton=new g.U({G:"button",Ia:["ytp-collapse","ytp-button"],X:{title:"Close"},W:[g.sQ()]}),g.E(this,this.closeButton),this.closeButton.Ea(this.element),this.closeButton.Ra("click",this.q2,this));g.fK(this.F.V())&&(this.Uk=new g.SS(g.TS(),8,"Account"),g.E(this,this.Uk),this.Zc(this.Uk,!0),this.Uk.Ra("click",this.r7,this),a.sb(this.Uk.element,this.Uk,137682));this.F.V().tm&&(this.Gk=new aT("Loop",7),g.E(this,this.Gk),this.Zc(this.Gk,!0),this.Gk.Ra("click",this.l6,this),a.sb(this.Gk.element,
this.Gk,28661));g.E(this,this.getVideoUrl);this.Zc(this.getVideoUrl,!0);this.getVideoUrl.Ra("click",this.d6,this);a.sb(this.getVideoUrl.element,this.getVideoUrl,28659);g.E(this,this.Pm);this.Zc(this.Pm,!0);this.Pm.Ra("click",this.e6,this);a.sb(this.Pm.element,this.Pm,28660);g.E(this,this.Jm);this.Zc(this.Jm,!0);this.Jm.Ra("click",this.c6,this);a.sb(this.Jm.element,this.Jm,28658);g.E(this,this.lc);this.Zc(this.lc,!0);this.lc.Ra("click",this.b6,this);g.E(this,this.HD);this.Zc(this.HD,!0);this.HD.Ra("click",
this.Z6,this);g.E(this,this.showVideoInfo);this.Zc(this.showVideoInfo,!0);this.showVideoInfo.Ra("click",this.s7,this);g.E(this,this.ey);this.ey.Ra("click",this.Q5,this);g.E(this,this.cT);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=xc("Chromium")&&(b=!0);40>=xc("Firefox")&&(b=!1);b&&(this.Js=new g.U({G:"textarea",N:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),g.E(this,this.Js),this.Js.Ea(this.element));var e;null==(e=this.Uk)||US(e,SEa());var f;null==(f=this.Gk)||
US(f,{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});US(this.lc,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});US(this.HD,{G:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]});US(this.showVideoInfo,OEa());this.S(a,"onLoopChange",this.onLoopChange);this.S(a,"videodatachange",this.onVideoDataChange);cNa(this);this.iP(this.F.getVideoData())};
uU=function(a,b){var c=!1;if(a.Js){var d=a.Js.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Eb.Fb():(a.ey.ge(b,"text"),g.tU(a.Eb,a.cT),rMa(a.ey.element),a.Js&&(a.Js=null,cNa(a)));return c};
cNa=function(a){var b=!!a.Js;g.RS(a.lc,b?"Copy debug info":"Get debug info");sU(a.lc,!b);g.RS(a.Jm,b?"Copy embed code":"Get embed code");sU(a.Jm,!b);g.RS(a.getVideoUrl,b?"Copy video URL":"Get video URL");sU(a.getVideoUrl,!b);g.RS(a.Pm,b?"Copy video URL at current time":"Get video URL at current time");sU(a.Pm,!b);US(a.Jm,b?MEa():null);US(a.getVideoUrl,b?lQ():null);US(a.Pm,b?lQ():null)};
eNa=function(a){return g.fK(a.F.V())?a.Uk:a.Gk};
g.vU=function(a,b){g.PS.call(this,a,{G:"div",Ia:["ytp-popup",b||""]},100,!0);this.j=[];this.I=this.D=null;this.UE=this.maxWidth=0;this.size=new g.He(0,0);this.Ra("keydown",this.k0)};
fNa=function(a){var b=a.j[a.j.length-1];if(b){g.Rm(a.element,a.maxWidth||"100%",a.UE||"100%");g.Hm(b.element,"width","");g.Hm(b.element,"height","");g.Hm(b.element,"maxWidth","100%");g.Hm(b.element,"maxHeight","100%");g.Hm(b.content.element,"height","");var c=g.Sm(b.element);c.width+=1;c.height+=1;g.Hm(b.element,"width",c.width+"px");g.Hm(b.element,"height",c.height+"px");g.Hm(b.element,"maxWidth","");g.Hm(b.element,"maxHeight","");var d=0;b.yU&&(d=b.Da("ytp-panel-header"),d=g.Sm(d).height);var e=
0;b.xU&&(e=b.Da("ytp-panel-footer"),g.Hm(e,"width",c.width+"px"),e=g.Sm(e).height);g.Hm(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.Hm(b.element,"width",c.width+"px")));a.size=c}};
g.tU=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);gNa(a,c,b)};
g.wU=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];gNa(a,b,c,!0)}};
gNa=function(a,b,c,d){hNa(a);b&&(b.unsubscribe("size-change",a.lA,a),b.unsubscribe("back",a.nj,a));c.subscribe("size-change",a.lA,a);c.subscribe("back",a.nj,a);if(a.yb){g.Qp(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ea(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;fNa(a);g.Rm(a.element,e);a.D=new g.Ip(function(){iNa(a,b,c,d)},20,a);
a.D.start()}else c.Ea(a.element),b&&b.detach()};
iNa=function(a,b,c,d){a.D.dispose();a.D=null;g.Qp(a.element,"ytp-popup-animating");d?(g.Qp(b.element,"ytp-panel-animate-forward"),g.Sp(c.element,"ytp-panel-animate-back")):(g.Qp(b.element,"ytp-panel-animate-back"),g.Sp(c.element,"ytp-panel-animate-forward"));g.Rm(a.element,a.size);a.I=new g.Ip(function(){g.Sp(a.element,"ytp-popup-animating");b.detach();g.Tp(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.I.dispose();a.I=null},250,a);
a.I.start()};
hNa=function(a){a.D&&g.Kp(a.D);a.I&&g.Kp(a.I)};
g.xU=function(a,b,c){g.vU.call(this,a);this.Aa=b;this.Qc=c;this.C=new g.bI(this);this.oa=new g.Ip(this.J7,1E3,this);this.ya=this.B=null;g.E(this,this.C);g.E(this,this.oa);a.sb(this.element,this,28656);g.Qp(this.element,"ytp-contextmenu");jNa(this);this.hide()};
jNa=function(a){g.Lz(a.C);var b=a.F.V();"gvn"===b.playerStyle||(b.u||b.tb)&&b.K("embeds_web_enable_new_context_menu_triggering")||(b=a.F.jb(),a.C.S(b,"contextmenu",a.O5),a.C.S(b,"touchstart",a.m0,null,!0),a.C.S(b,"touchmove",a.GW,null,!0),a.C.S(b,"touchend",a.GW,null,!0))};
kNa=function(a){a.F.isFullscreen()?g.NS(a.F,a.element,10):a.Ea(document.body)};
g.yU=function(a,b,c){c=void 0===c?240:c;g.U.call(this,{G:"button",Ia:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.fK(a.V()))},W:[{G:"div",N:"ytp-copylink-icon",ra:"{{icon}}"},{G:"div",N:"ytp-copylink-title",ra:"Copy link",X:{"aria-hidden":"true"}}]});this.api=a;this.j=b;this.u=c;this.visible=!1;this.tooltip=this.j.Ic();b=a.V();mU(this.tooltip);g.Up(this.element,"ytp-show-copylink-title",g.fK(b)&&!g.oK(b));a.sb(this.element,this,86570);this.Ra("click",
this.onClick);this.S(a,"videodatachange",this.Pa);this.S(a,"videoplayerreset",this.Pa);this.S(a,"appresize",this.Pa);this.Pa();g.bb(this,g.ZS(this.tooltip,this.element))};
lNa=function(a){var b=a.api.V(),c=a.api.getVideoData(),d=a.api.jb().getPlayerSize().width,e=b.K("shorts_mode_to_player_api")?a.api.Sb():a.j.Sb(),f=b.B;return!!c.videoId&&d>=a.u&&c.ao&&!(c.D&&b.Z)&&!e&&!f};
mNa=function(a){a.updateValue("icon",gQ());if(a.api.V().u)zU(a.tooltip,a.element,"Link copied to clipboard");else{a.updateValue("title-attr","Link copied to clipboard");$S(a.tooltip);zU(a.tooltip,a.element);var b=a.Ra("mouseleave",function(){a.Hc(b);a.Pa();a.tooltip.rk()})}};
nNa=function(a,b){return g.A(function(c){if(1==c.j)return g.pa(c,2),g.y(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.sa(c);var d=c.return,e=!1,f=g.qf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(nB){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)})};
AU=function(a){g.U.call(this,{G:"div",N:"ytp-doubletap-ui-legacy",W:[{G:"div",N:"ytp-doubletap-fast-forward-ve"},{G:"div",N:"ytp-doubletap-rewind-ve"},{G:"div",N:"ytp-doubletap-static-circle",W:[{G:"div",N:"ytp-doubletap-ripple"}]},{G:"div",N:"ytp-doubletap-overlay-a11y"},{G:"div",N:"ytp-doubletap-seek-info-container",W:[{G:"div",N:"ytp-doubletap-arrows-container",W:[{G:"span",N:"ytp-doubletap-base-arrow"},{G:"span",N:"ytp-doubletap-base-arrow"},{G:"span",N:"ytp-doubletap-base-arrow"}]},{G:"div",
N:"ytp-doubletap-tooltip",W:[{G:"div",N:"ytp-chapter-seek-text-legacy",ra:"{{seekText}}"},{G:"div",N:"ytp-doubletap-tooltip-label",ra:"{{seekTime}}"}]}]}]});this.F=a;this.C=new g.Ip(this.show,10,this);this.u=new g.Ip(this.hide,700,this);this.I=this.B=0;this.D=!1;this.j=this.Da("ytp-doubletap-static-circle");g.E(this,this.C);g.E(this,this.u);this.hide();this.J=this.Da("ytp-doubletap-fast-forward-ve");this.T=this.Da("ytp-doubletap-rewind-ve");this.F.sb(this.J,this,28240);this.F.sb(this.T,this,28239);
this.F.Ua(this.J,!0);this.F.Ua(this.T,!0);this.D=a.K("web_show_cumulative_seek_time")};
BU=function(a,b,c){a.B=b===a.I?a.B+c:c;a.I=b;var d=a.F.jb().getPlayerSize();a.D?a.u.stop():g.Lp(a.u);a.C.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.Qp(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";oNa(a,a.D?a.B:c)};
pNa=function(a,b,c){g.Lp(a.u);a.C.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.Qp(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
oNa=function(a,b){b=g.lO("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
EU=function(a,b,c){c=void 0===c?!0:c;g.U.call(this,{G:"div",N:"ytp-suggested-action"});var d=this;this.F=a;this.kb=b;this.Xa=this.Z=this.C=this.u=this.j=this.D=this.expanded=this.enabled=this.ya=!1;this.La=new g.Ip(function(){d.badge.element.style.width=""},200,this);
this.oa=new g.Ip(function(){CU(d);DU(d)},200,this);
this.dismissButton=new g.U({G:"button",Ia:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.E(this,this.dismissButton);this.B=new g.U({G:"div",N:"ytp-suggested-action-badge-expanded-content-container",W:[{G:"label",N:"ytp-suggested-action-badge-title",ra:"{{badgeLabel}}"},this.dismissButton]});g.E(this,this.B);this.ib=new g.U({G:"div",N:"ytp-suggested-action-badge-icon-container",W:[c?{G:"div",N:"ytp-suggested-action-badge-icon"}:""]});g.E(this,this.ib);this.badge=new g.U({G:"button",
Ia:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],W:[this.ib,this.B]});g.E(this,this.badge);this.badge.Ea(this.element);this.I=new g.QQ(this.badge,250,!1,100);g.E(this,this.I);this.Ga=new g.QQ(this.B,250,!1,100);g.E(this,this.Ga);this.Qa=new g.Gp(this.g9,null,this);g.E(this,this.Qa);this.Aa=new g.Gp(this.S2,null,this);g.E(this,this.Aa);g.E(this,this.La);g.E(this,this.oa);this.F.Zf(this.badge.element,this.badge,!0);this.F.Zf(this.dismissButton.element,this.dismissButton,
!0);this.S(this.F,"onHideControls",function(){d.C=!1;DU(d);CU(d);d.dl()});
this.S(this.F,"onShowControls",function(){d.C=!0;DU(d);CU(d);d.dl()});
this.S(this.badge.element,"click",this.YG);this.S(this.dismissButton.element,"click",this.WC);this.S(this.F,"pageTransition",this.n0);this.S(this.F,"appresize",this.dl);this.S(this.F,"fullscreentoggled",this.Z5);this.S(this.F,"cardstatechange",this.F5);this.S(this.F,"annotationvisibility",this.J9,this);this.S(this.F,"offlineslatestatechange",this.K9,this)};
CU=function(a){g.Up(a.badge.element,"ytp-suggested-action-badge-with-controls",a.C||!a.D)};
DU=function(a,b){var c=a.oP();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.Qa.stop(),a.Aa.stop(),a.La.stop(),a.Qa.start()):(g.bQ(a.B,a.expanded),g.Up(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),qNa(a))};
qNa=function(a){a.j&&a.F.Ua(a.badge.element,a.Yz());a.u&&a.F.Ua(a.dismissButton.element,a.Yz()&&a.oP())};
rNa=function(a){var b=a.text||"";g.Af(g.kf("ytp-suggested-action-badge-title",a.element),b);cQ(a.badge,b);cQ(a.dismissButton,a.Ya?a.Ya:"")};
FU=function(a,b){b?a.u&&a.F.qb(a.dismissButton.element):a.j&&a.F.qb(a.badge.element)};
sNa=function(a,b){EU.call(this,a,b,!1);this.T=[];this.D=!0;this.badge.element.classList.add("ytp-featured-product");this.banner=new g.U({G:"a",N:"ytp-featured-product-container",X:{href:"{{url}}",target:"_blank"},W:[{G:"div",N:"ytp-featured-product-thumbnail",W:[{G:"img",X:{src:"{{thumbnail}}"}},{G:"div",N:"ytp-featured-product-open-in-new"}]},{G:"div",N:"ytp-featured-product-details",W:[{G:"text",N:"ytp-featured-product-title",ra:"{{title}}"},{G:"text",N:"ytp-featured-product-vendor",ra:"{{vendor}}"},
{G:"text",N:"ytp-featured-product-price",ra:"{{price}}"}]},this.dismissButton]});g.E(this,this.banner);this.banner.Ea(this.B.element);this.S(this.F,g.ZD("featured_product"),this.W8);this.S(this.F,g.$D("featured_product"),this.NH);this.S(this.F,"videodatachange",this.onVideoDataChange)};
uNa=function(a,b){tNa(a);if(b){var c=g.sM.getState().entities;c=CL(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.t(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.T.push(d);var f=void 0;e=g.t(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next())(f=f.value)&&b.push(new g.XD(1E3*Number(f.startTimeSec),1E3*Number(f.endTimeSec)||0x7ffffffffffff,{id:d.identifier,namespace:"featured_product"}))}}a.F.ye(b)}}};
tNa=function(a){a.T=[];a.F.Ff("featured_product")};
xNa=function(a,b,c){g.U.call(this,{G:"div",Ia:["ytp-info-panel-action-item"],W:[{G:"div",N:"ytp-info-panel-action-item-disclaimer",ra:"{{disclaimer}}"},{G:"a",Ia:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{G:"div",N:"ytp-info-panel-action-item-icon",ra:"{{icon}}"},{G:"div",N:"ytp-info-panel-action-item-label",ra:"{{label}}"}]}]});this.F=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.De=!1;this.F.Zf(this.element,this,!0);this.Ra("click",this.onClick);a="";c=g.K(null==b?void 0:b.onTap,g.gT);var d=g.K(c,g.pM);this.De=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.De=!0,ck(this.button,g.he(a))):(d=g.K(c,vNa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.De=!0,c=this.button,d=a,Sb(d,"sms:")&&Eba(d)||(d="about:invalid#zClosurez"),ck(c,ce(d))):(c=
g.K(c,wNa))&&!this.j&&(a=c.phoneNumber?"tel:"+c.phoneNumber:"",this.De=!0,c=a,Sb(c,"tel:")||(c="about:invalid#zClosurez"),ck(this.button,ce(c)));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:oQ(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:oQ()})}this.F.og(this.element,
b.trackingParams||null);this.De&&(this.u={externalLinkData:{url:a}})};
yNa=function(a,b){var c=YP();g.PS.call(this,a,{G:"div",N:"ytp-info-panel-detail-skrim",W:[{G:"div",N:"ytp-info-panel-detail",X:{role:"dialog",id:c},W:[{G:"div",N:"ytp-info-panel-detail-header",W:[{G:"div",N:"ytp-info-panel-detail-title",ra:"{{title}}"},{G:"button",Ia:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Close"},W:[g.jQ()]}]},{G:"div",N:"ytp-info-panel-detail-body",ra:"{{body}}"},{G:"div",N:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.Da("ytp-info-panel-detail-items");
this.B=new g.bI(this);this.itemData=[];this.C=c;b=this.Da("ytp-info-panel-detail-close");this.S(b,"click",this.Fb);b=this.Da("ytp-info-panel-detail-skrim");this.S(b,"click",this.Fb);b=this.Da("ytp-info-panel-detail");this.S(b,"click",function(d){d.stopPropagation()});
g.E(this,this.B);this.F.Zf(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
zNa=function(a,b){a=g.t(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.F.Ua(c.element,b)};
CNa=function(a,b,c){g.U.call(this,{G:"div",N:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.fK(a.V()))},W:[{G:"div",N:"ytp-info-panel-preview-text",ra:"{{text}}"},{G:"div",N:"ytp-info-panel-preview-chevron",ra:"{{chevron}}"}]});var d=this;this.F=a;this.Te=this.j=this.videoId=null;this.C=this.showControls=this.u=!1;this.S(this.element,"click",function(){a.qb(d.element);b.Il();QS(c)});
this.B=new g.QQ(this,250,!1,100);g.E(this,this.B);this.F.Zf(this.element,this,!0);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.yd);this.S(this.F,"paidcontentoverlayvisibilitychange",this.dW);this.S(this.F,"infopaneldetailvisibilitychange",this.dW);var e=a.getVideoData()||{};ANa(e)&&BNa(this,e);this.S(a,"onShowControls",this.q0);this.S(a,"onHideControls",this.o0)};
BNa=function(a,b){if(!b.Kf||!a.F.Mo()){var c=b.SJ||1E4,d=ANa(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Lp(a.j),a.videoId=b.videoId,d?(DNa(a,c,b),a.od()):(a.Fb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),DNa(a,c,b),a.od())}};
ANa=function(a){var b,c,d,e;return!!(null==(b=a.uf)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.uf)?0:null==(e=d.bodyText)?0:e.content)};
DNa=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Ip(a.Z8,b,a);g.E(a,a.j);var d;b=(null==(d=c.uf)?void 0:d.trackingParams)||null;a.F.og(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.uf)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.uf)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.uf)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.uf)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.iQ()})};
ENa=function(a,b){a.j&&(g.S(b,8)?(a.u=!0,a.od(),a.j.start()):(g.S(b,2)||g.S(b,64))&&a.videoId&&(a.videoId=null))};
GU=function(a){var b=null;try{b=a.toLocaleString("en",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
HU=function(a,b){var c=0;a=g.t(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
FNa=function(a,b){for(var c=0,d=g.t(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};
GNa=function(a,b){b=HU(a,b)+1;return b<a.length?b:-1};
HNa=function(a,b){return HU(a,b)-1};
INa=function(a,b){return new g.XD(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
g.JU=function(a,b,c,d,e,f,h,l){g.bI.call(this);var m=this;this.api=a;this.contextMenu=c;this.Ve=d;this.Qc=e;this.j=f;this.C=h;this.Kc=l;this.B=new g.Ip(function(){JNa(m,!1)},1E3);
this.u="";g.E(this,this.B);this.S(b,"mousedown",function(){IU(m,!1)});
this.S(c.element,"mousedown",function(){IU(m,!1)});
this.S(b,"keydown",this.oU);this.S(c.element,"keydown",this.oU);this.S(b,"keyup",this.pU);this.S(c.element,"keyup",this.pU)};
IU=function(a,b){g.Up(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Up(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
LU=function(a,b,c,d){var e=g.JT(a.api.wb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.KU.length;h++){var l=g.KU[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);JNa(a,!0);a.B.start()}};
JNa=function(a,b){g.JT(a.api.wb())&&a.api.setOption("captions","sampleSubtitles",b)};
LNa=function(a){var b,c;a=null==(b=a.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(!a)return!1;var d;return"PLAYBACK_MODE_PAUSED_ONLY"===(null==(d=g.K(a.miniplayer,KNa))?void 0:d.playbackMode)};
g.MU=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-button","ytp-overflow-button"],X:{title:"More","aria-haspopup":"true","aria-owns":c.element.id},W:[{G:"div",N:"ytp-overflow-icon",W:[{G:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},W:[{G:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var d=this;this.F=a;this.j=b;this.Bh=c;this.u=this.visible=!1;this.tooltip=
this.j.Ic();a.sb(this.element,this,16499);this.S(a,"videoplayerreset",this.Pa);this.S(a,"appresize",this.Pa);this.S(a,"fullscreentoggled",this.Pa);this.S(a,"presentingplayerstatechange",this.Pa);this.Pa();g.bb(this,g.ZS(this.tooltip,this.element));this.Ra("click",function(){a.qb(d.element);QS(c,d.element,!1)});
this.S(c.closeButton,"click",function(){d.focus()})};
MNa=function(a,b){g.PS.call(this,a,{G:"div",N:"ytp-overflow-panel",X:{id:YP(),role:"dialog"},W:[{G:"div",N:"ytp-overflow-panel-content",W:[{G:"div",N:"ytp-overflow-panel-action-buttons",ra:"{{buttons}}"}]},{G:"button",Ia:["ytp-overflow-panel-close","ytp-button"],X:{title:"Close"},W:[g.jQ()]}]},250);this.actionButtons=[];this.tooltip=b.Ic();this.j=this.Da("ytp-overflow-panel-content");this.closeButton=this.Da("ytp-overflow-panel-close");this.S(this.closeButton,"click",this.Fb);g.bb(this,g.ZS(this.tooltip,
this.closeButton));this.Ra("click",this.r0);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
NNa=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
ONa=function(a,b){a=g.t(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Zb(b)};
PNa=function(a,b,c){var d=g.zT(b,c),e=a.V(),f=d.wg("default.jpg");g.U.call(this,{G:"a",Ia:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},W:[{G:"div",N:"ytp-video-menu-item-index",ra:String(c+1)},{G:"div",N:"ytp-video-menu-item-now-playing",ra:"\u25b6"},{G:"div",N:"ytp-video-menu-item-thumbnail",X:{style:f?"background-image: url("+f+");":void 0}},{G:"div",N:"ytp-video-menu-item-title",ra:d.title},{G:"div",
N:"ytp-video-menu-item-author",ra:d.author}]});this.api=a;this.index=c;this.Ra("click",this.onClick)};
QNa=function(a){g.PS.call(this,a,{G:"div",N:"ytp-playlist-menu",X:{role:"dialog",id:YP()},W:[{G:"div",N:"ytp-playlist-menu-header",W:[{G:"div",N:"ytp-playlist-menu-title",W:[a.V().B?{G:"span",N:"ytp-playlist-menu-title-name",ra:"{{title}}"}:{G:"a",N:"ytp-playlist-menu-title-name",X:{href:"{{playlisturl}}"},ra:"{{title}}"},{G:"button",Ia:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.jQ()]}]},{G:"div",N:"ytp-playlist-menu-subtitle",ra:"{{subtitle}}"}]},{G:"div",N:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.C=this.selected=this.D=this.playlist=null;this.items=this.Da("ytp-playlist-menu-items");this.B=new g.bI(this);this.j=[];var b=this.Da("ytp-playlist-menu-close");this.S(b,"click",this.Fb);b=this.Da("ytp-playlist-menu-title-name");a.V().B||(this.C=this.S(b,"click",this.I7));g.E(this,this.B);this.hide()};
NU=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(c.element.id),"aria-haspopup":"true","aria-label":"Playlist"},W:[{G:"div",N:"ytp-playlist-menu-button-icon",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{G:"div",N:"ytp-playlist-menu-button-text",ra:"{{text}}"}]});var d=this;this.api=a;this.u=b;this.playlist=null;this.visible=!1;this.tooltip=b.Ic();a.sb(this.element,this,70344);this.S(a,"videodatachange",this.j);this.S(a,"videoplayerreset",this.j);this.S(a,"onPlaylistUpdate",this.j);this.S(a,"presentingplayerstatechange",this.Pa);this.S(a,"appresize",this.Pa);this.hide();this.j();g.bb(this,g.ZS(this.tooltip,this.element));this.Ra("click",function(){a.qb(d.element);QS(c,d.element,
!1)})};
RNa=function(a,b,c){g.U.call(this,{G:"div",N:"ytp-promotooltip-wrapper",W:[{G:"div",N:"ytp-promotooltip-container",W:[{G:"div",N:"ytp-promotooltip-content",W:[{G:"div",N:"ytp-promotooltip-title",ra:"{{title}}"},{G:"div",N:"ytp-promotooltip-details",ra:"{{details}}"}]},{G:"div",N:"ytp-promotooltip-buttons",W:[{G:"div",N:"ytp-promotooltip-dismiss-button",ra:"{{dismissButtonText}}",X:{tabindex:"0"}},{G:"div",N:"ytp-promotooltip-accept-button",ra:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{G:"div",N:"ytp-promotooltip-pointer"}]});var d=this;this.tooltipRenderer=a;this.J=b;this.F=c;this.j=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.u=this.D=!1;this.C=!0;this.oa=this.I=this.Z=this.T=!1;this.Ne={QD:function(e){d.QD(e)}};
g.bQ(this,!1);a=this.tooltipRenderer.trackingParams||null;if(this.u=!!a)this.F.Zf(this.element,this,!0),this.F.og(this.element,a);this.S(c,"onShowControls",this.t0);this.S(c,"onHideControls",this.s0);this.S(c,"resize",this.Db);this.S(this.acceptButton,"click",this.c5);this.S(this.dismissButton,"click",this.V5);this.S(document,"click",this.u0)};
SNa=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.kf("ytp-chrome-bottom"),d=g.kf("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.T=!(null==d||!d.contains(b));a.Z=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
VNa=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Tm(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.ZP({G:"span",N:"ytp-promotooltip-details-icon",
W:[TNa[a.tooltipRenderer.targetId]]});g.E(a,h);for(var l=[],m=g.t(d),n=m.next();!n.done;n=m.next())n=new g.ZP({G:"span",N:"ytp-promotooltip-details-component",ra:n.value}),g.E(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(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("string"!==typeof f)for(g.vf(a.details),e=g.t(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Tm(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.K(e,g.mM))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.K(e,g.mM).text.runs[0].text&&(a.update({acceptButtonText:g.K(e,g.mM).text.runs[0].text.toString()}),f=!0);g.Tm(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var v,x,z;(null==(v=g.K(p,g.mM))?0:null==(x=v.text)?0:null==(z=x.runs)?0:z.length)&&g.K(p,g.mM).text.runs[0].text&&(a.update({dismissButtonText:g.K(p,g.mM).text.runs[0].text.toString()}),
q=!0);g.Tm(a.dismissButton,q)}c&&(a.B=c);a.j=SNa(a);a.I=!1;a.F.V().K("web_player_hide_nitrate_promo_tooltip")||g.bQ(a,!0);UNa(a);a.yb&&!a.oa&&(a.oa=!0,a.Ne.QD(0));a.u&&a.F.Ua(a.element,a.yb)}};
OU=function(a){g.bQ(a,!1);a.u&&a.F.Ua(a.element,a.yb)};
WNa=function(a){var b,c,d,e=(null==(b=g.K(a.acceptButton,g.mM))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.K(a.acceptButton,g.mM).text.runs[0].text,f,h,l;b=(null==(f=g.K(a.dismissButton,g.mM))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.K(a.dismissButton,g.mM).text.runs[0].text;return e||b};
UNa=function(a){var b;if(!(b=!a.j)){b=a.j;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.F.zg())g.bQ(a,!1);else if(b=g.Sm(a.j),b.width&&b.height){a.J.Uv(a.element,a.j);var d=a.F.jb().getPlayerSize().height;c=g.Sm(a.Da("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.Z||(d=a.J.zk().height-c-b.height-12,a.element.style.top=d+"px");d=a.Da("ytp-promotooltip-pointer");var e=g.Qm(a.j,a.F.getRootNode()),
f=Number(a.element.style.left.replace(/[^\d\.]/g,""));a=a.F.isFullscreen()?18:12;d.style.left=e.x-f+b.width/2-a+"px";d.style.top=c+"px"}else g.bQ(a,!1)};
PU=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-replay-button","ytp-button"],X:{title:"Replay"},W:[g.qQ()]});this.F=a;this.S(a,"presentingplayerstatechange",this.onStateChange);this.Ra("click",this.onClick,this);this.qc(a.Cb());g.ZS(b.Ic(),this.element)};
g.QU=function(a,b,c,d){d=void 0===d?240:d;g.U.call(this,{G:"button",Ia:["ytp-button","ytp-share-button"],X:{title:"Share","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.fK(a.V()))},W:[{G:"div",N:"ytp-share-icon",ra:"{{icon}}"},{G:"div",N:"ytp-share-title",ra:"Share"}]});this.api=a;this.j=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.j.Ic();this.u=!1;a.sb(this.element,this,28664);this.Ra("click",this.onClick);this.S(a,"videodatachange",this.Pa);this.S(a,"videoplayerreset",
this.Pa);this.S(a,"appresize",this.Pa);this.S(a,"presentingplayerstatechange",this.Pa);this.Pa();g.bb(this,g.ZS(this.tooltip,this.element))};
XNa=function(a){var b=a.api.V(),c=a.api.getVideoData(),d=g.fK(b)&&g.KS(a.api)&&g.S(a.api.Cb(),128);b=b.B||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!a.showShareButton(c,b)||c.ao||d||c.D&&b.Z||a.u;d=a.api.jb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
YNa=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.j.Il(),QS(a.B,a.element,!1)):g.CD(b))};
g.RU=function(a,b){var c=YP(),d=a.V();c={G:"div",N:"ytp-share-panel",X:{id:YP(),role:"dialog","aria-labelledby":c},W:[{G:"div",N:"ytp-share-panel-inner-content",W:[{G:"div",N:"ytp-share-panel-title",X:{id:c},ra:"Share"},{G:"a",Ia:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.ea,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},ra:"{{linkText}}"},{G:"label",N:"ytp-share-panel-include-playlist",W:[{G:"input",N:"ytp-share-panel-include-playlist-checkbox",X:{type:"checkbox",
checked:"true"}},"Include playlist"]},{G:"div",N:"ytp-share-panel-loading-spinner",W:[qMa()]},{G:"div",N:"ytp-share-panel-service-buttons",ra:"{{buttons}}"},{G:"div",N:"ytp-share-panel-error",ra:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",Ia:["ytp-share-panel-close","ytp-button"],X:{title:"Close"},W:[g.jQ()]}]};g.PS.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Ic();this.B=[];this.D=this.Da("ytp-share-panel-inner-content");
this.closeButton=this.Da("ytp-share-panel-close");this.S(this.closeButton,"click",this.Fb);g.bb(this,g.ZS(this.tooltip,this.closeButton));this.C=this.Da("ytp-share-panel-include-playlist-checkbox");this.S(this.C,"click",this.Pa);this.j=this.Da("ytp-share-panel-link");g.bb(this,g.ZS(this.tooltip,this.j));this.api.sb(this.j,this,164503);this.S(this.j,"click",function(f){if(e.api.K("web_player_add_ve_conversion_logging_to_outbound_links")){g.EO(f);e.api.qb(e.j);var h=e.api.getVideoUrl(!0,!0,!1,!1);h=
ZNa(e,h);g.VT(h,e.api,f)&&e.api.Na("SHARE_CLICKED")}else e.api.qb(e.j)});
this.Ra("click",this.v0);this.S(a,"videoplayerreset",this.hide);this.S(a,"fullscreentoggled",this.onFullscreenToggled);this.S(a,"onLoopRangeChange",this.B4);this.hide()};
aOa=function(a,b){$Na(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={rr:e.rr,fk:e.fk},f++){e.rr=c[f];a:switch(e.rr.img||e.rr.iconId){case "facebook":var h={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.rr.sname||e.rr.serviceName;e.fk=new g.U({G:"a",Ia:["ytp-share-panel-service-button","ytp-button"],X:{href:e.rr.url,target:"_blank",title:l},W:[h]});e.fk.Ra("click",function(p){return function(q){if(g.fR(q)){var r=p.rr.url;var v=void 0===v?{}:v;v.target=v.target||"YouTube";v.width=v.width||"600";v.height=v.height||"600";var x=v;x||(x={});v=window;var z=r instanceof ae?r:g.he("undefined"!=typeof r.href?r.href:String(r));var B=void 0!==self.crossOriginIsolated,
F="strict-origin-when-cross-origin";window.Request&&(F=(new Request("/")).referrerPolicy);var G="unsafe-url"===F;F=x.noreferrer;if(B&&F){if(G)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");F=!1}r=x.target||r.target;B=[];for(var D in x)switch(D){case "width":case "height":case "top":case "left":B.push(D+"="+x[D]);break;case "target":case "noopener":case "noreferrer":break;default:B.push(D+"="+(x[D]?1:0))}D=B.join(",");Cc()&&
v.navigator&&v.navigator.standalone&&r&&"_self"!=r?(x=g.qf("A"),g.xe(x,z),x.target=r,F&&(x.rel="noreferrer"),z=document.createEvent("MouseEvent"),z.initMouseEvent("click",!0,!0,v,1),x.dispatchEvent(z),v={}):F?(v=Zba("",v,r,D),z=g.be(z),v&&(g.HK&&g.Vb(z,";")&&(z="'"+z.replace(/'/g,"%27")+"'"),v.opener=null,""===z&&(z="javascript:''"),g.Xd("b/12014412, meta tag with sanitized URL"),z='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+g.Me(z)+'">',z=g.we(z),(x=
v.document)&&x.write&&(x.write(g.ve(z)),x.close()))):((v=Zba(z,v,r,D))&&x.noopener&&(v.opener=null),v&&x.noreferrer&&(v.opener=null));v&&(v.opener||(v.opener=window),v.focus());g.EO(q)}}}(e));
g.bb(e.fk,g.ZS(a.tooltip,e.fk.element));"Facebook"===l?a.api.sb(e.fk.element,e.fk,164504):"Twitter"===l&&a.api.sb(e.fk.element,e.fk,164505);a.S(e.fk.element,"click",function(p){return function(){a.api.qb(p.fk.element)}}(e));
a.api.Ua(e.fk.element,!0);a.B.push(e.fk);d++}}var m=b.more||b.moreLink,n=new g.U({G:"a",Ia:["ytp-share-panel-service-button","ytp-button"],W:[{G:"span",N:"ytp-share-panel-service-button-more",W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"More"}});n.Ra("click",function(p){var q=m;a.api.K("web_player_add_ve_conversion_logging_to_outbound_links")&&(a.api.qb(a.moreButton.element),q=ZNa(a,q));g.VT(q,a.api,p)&&a.api.Na("SHARE_CLICKED")});
g.bb(n,g.ZS(a.tooltip,n.element));a.api.sb(n.element,n,164506);a.api.K("web_player_add_ve_conversion_logging_to_outbound_links")||a.S(n.element,"click",function(){a.api.qb(n.element)});
a.api.Ua(n.element,!0);a.B.push(n);a.moreButton=n;a.updateValue("buttons",a.B)};
ZNa=function(a,b){var c=a.api.V(),d={};c.ya&&g.fK(c)&&g.iS(d,c.loaderUrl);g.fK(c)&&(g.pS(a.api,"addEmbedsConversionTrackingParams",[d]),b=g.Zi(b,g.hS(d,"emb_share")));return b};
$Na=function(a){for(var b=g.t(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Za(c);a.B=[]};
cOa=function(a,b){EU.call(this,a,b);this.J=this.T=this.Ja=!1;bOa(this);this.S(this.F,"changeProductsInVideoVisibility",this.I6);this.S(this.F,"videodatachange",this.onVideoDataChange);this.S(this.F,"paidcontentoverlayvisibilitychange",this.B6)};
dOa=function(a){a.F.Ff("shopping_overlay_visible");a.F.Ff("shopping_overlay_expanded")};
bOa=function(a){a.S(a.F,g.ZD("shopping_overlay_visible"),function(){a.Bg(!0)});
a.S(a.F,g.$D("shopping_overlay_visible"),function(){a.Bg(!1)});
a.S(a.F,g.ZD("shopping_overlay_expanded"),function(){a.Z=!0;DU(a)});
a.S(a.F,g.$D("shopping_overlay_expanded"),function(){a.Z=!1;DU(a)})};
fOa=function(a,b){g.U.call(this,{G:"div",N:"ytp-shorts-title-channel",W:[{G:"a",N:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.V().ea,"aria-label":"{{channelLogoLabel}}"}},{G:"div",N:"ytp-shorts-title-expanded-heading",W:[{G:"div",N:"ytp-shorts-title-expanded-title",W:[{G:"a",ra:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.V().ea,tabIndex:"0"}}]}]}]});var c=this;this.api=a;this.u=b;this.j=this.Da("ytp-shorts-title-channel-logo");this.channelName=this.Da("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.sb(this.j,this,36925);this.S(this.j,"click",function(d){c.api.K("web_player_ve_conversion_fixes_for_channel_info")?(c.api.qb(c.j),g.gk(SU(c)),d.preventDefault()):c.api.qb(c.j)});
a.sb(this.channelName,this,37220);this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&this.S(this.channelName,"click",function(d){c.api.qb(c.channelName);g.gk(SU(c));d.preventDefault()});
eOa(this);this.S(a,"videodatachange",this.Pa);this.S(a,"videoplayerreset",this.Pa);this.Pa()};
eOa=function(a){if(!a.api.V().uc){var b=a.api.getVideoData(),c=new g.nU("Subscribe",null,"Subscribed",null,!0,!1,b.bk,b.subscribed,"channel_avatar",null,null,a.api,a.u);a.api.Zf(c.element,a);var d;a.api.og(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.S(c.element,"click",function(){a.api.qb(c.element)});
a.subscribeButton=c;g.E(a,a.subscribeButton);a.subscribeButton.Ea(a.element)}};
SU=function(a){var b=a.api.V(),c=a.api.getVideoData();c=g.MK(b)+c.Lc;if(!g.fK(b))return c;var d={};b.ya&&g.iS(d,a.api.V().loaderUrl);g.pS(a.api,"addEmbedsConversionTrackingParams",[d]);g.hS(d,"emb_ch_name_ex");return g.Zi(c,d)};
TU=function(a){g.PS.call(this,a,{G:"button",Ia:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{G:"div",N:"ytp-skip-intro-button-text",ra:"Skip Intro"}]},100);var b=this;this.B=!1;this.j=new g.Ip(function(){b.hide()},5E3);
this.vf=this.ri=NaN;g.E(this,this.j);this.I=function(){b.show()};
this.D=function(){b.hide()};
this.C=function(){var c=b.F.getCurrentTime();c>b.ri/1E3&&c<b.vf/1E3&&b.show()};
this.S(this.F,"videodatachange",function(c,d){b.Gs(c,d)});
this.S(this.element,"click",function(){b.F.seekTo(b.vf/1E3)});
this.hide()};
UU=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay"},ra:"{{icon}}"});this.F=a;this.Ra("click",this.onClick);this.S(a,"airplayactivechange",this.Pa);this.S(a,"airplayavailabilitychange",this.Pa);this.Pa();g.bb(this,g.ZS(b.Ic(),this.element))};
g.WU=function(a){g.U.call(this,{G:"div",N:"ytp-gradient-bottom"});this.u=g.qf("CANVAS");this.j=this.u.getContext("2d");this.C=NaN;this.u.width=1;this.B=g.oK(a.V());g.VU(this,a.jb().getPlayerSize().height)};
g.VU=function(a,b){if(a.j){b=Math.floor(b*(a.B?1:.4));b=Math.max(b,47);var c=b+2;if(a.C!==c){a.C=c;a.u.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b);if(a.B)d.addColorStop(.133,"rgba(0, 0, 0, 0.2)"),d.addColorStop(.44,"rgba(0, 0, 0, 0.243867)"),d.addColorStop(1,"rgba(0, 0, 0, 0.8)");else{var e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)")}a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=
c+"px";try{a.element.style.backgroundImage="url("+a.u.toDataURL()+")"}catch(f){}}}};
XU=function(a,b,c,d,e){g.U.call(this,{G:"div",N:"ytp-chapter-container",W:[{G:"button",Ia:["ytp-chapter-title","ytp-button"],W:[{G:"span",X:{"aria-hidden":"true"},N:"ytp-chapter-title-prefix",ra:"\u2022"},{G:"div",N:"ytp-chapter-title-content",ra:"{{title}}",X:{title:e,"aria-label":e}},{G:"div",N:"ytp-chapter-title-chevron",W:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.F=a;
this.C=c;this.D="";this.currentIndex=0;this.j=void 0;this.u=!0;this.T=this.Da("ytp-chapter-container");this.B=this.Da("ytp-chapter-title");this.Z=this.Da("ytp-chapter-title-content");this.updateVideoData("newdata",this.F.getVideoData());this.S(a,"videodatachange",this.updateVideoData);this.S(this.T,"click",this.onClick);this.S(a,g.ZD(d),this.yc);this.S(a,"onLoopRangeChange",this.yc);this.S(a,"innertubeCommand",this.onClickCommand);g.fK(this.F.V())||g.bb(this,g.ZS(b.Ic(),this.Z))};
YU=function(a,b,c){XU.call(this,a,b,c,"chapterCueRange","View chapter")};
gOa=function(a,b,c,d,e){var f=b.Dv/b.rows,h=Math.min(c/(b.NC/b.columns),d/f),l=b.NC*h,m=b.Dv*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&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
g.ZU=function(a,b){g.U.call(this,{G:"div",N:"ytp-storyboard-framepreview",W:[{G:"div",N:"ytp-storyboard-framepreview-timestamp",ra:"{{timestamp}}"},{G:"div",N:"ytp-storyboard-framepreview-img"}]});this.api=a;this.C=this.Da("ytp-storyboard-framepreview-img");this.u=null;this.B=NaN;this.events=new g.bI(this);this.j=new g.QQ(this,100);g.E(this,this.events);g.E(this,this.j);this.S(this.api,"presentingplayerstatechange",this.yd);b&&this.S(this.element,"click",function(){b.Vr()});
a.K("web_big_boards")&&g.Qp(this.element,"ytp-storyboard-framepreview-big-boards")};
hOa=function(a,b){var c=!!a.u;a.u=b;a.u?(c||(a.events.S(a.api,"videodatachange",function(){hOa(a,a.api.Hj())}),a.events.S(a.api,"progresssync",a.Ie),a.events.S(a.api,"appresize",a.D)),a.B=NaN,iOa(a),a.j.show(200)):(c&&g.Lz(a.events),a.j.hide(),a.j.stop())};
iOa=function(a){var b=a.u,c=a.api.getCurrentTime(),d=a.api.jb().getPlayerSize(),e=SL(b,d.width);e=Sya(b,e,c);a.update({timestamp:g.eR(c)});e!==a.B&&(a.B=e,Qya(b,e,d.width),b=Oya(b,e,d.width),gOa(a.C,b,d.width,d.height))};
g.$U=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ra:"{{icon}}"});this.F=a;this.u=b;this.message=null;this.j=g.ZS(this.u.Ic(),this.element);this.B=new g.Ip(this.f2,2E3,this);g.E(this,this.B);this.S(a,"fullscreentoggled",this.cm);this.S(a,"presentingplayerstatechange",this.Pa);this.Ra("click",this.onClick);g.yz()&&(b=this.F.jb(),this.S(b,Boa(),this.NN),this.S(b,Bz(document),
this.Hq));a.V().Tb||a.V().T||this.disable();a.sb(this.element,this,139117);this.Pa();this.cm(a.isFullscreen())};
aV=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}",style:"display: none;"},W:[0<c?{G:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",Ia:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{G:"text",Ia:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{G:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",Ia:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{G:"text",Ia:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var d=this;this.F=a;this.C=b;this.j=c;this.u=new g.Ip(function(){d.B?(d.B=!1,d.u.start()):d.element.classList.remove("ytp-jump-spin","backwards")},250);
this.B=!1;(a=0<c)?this.F.sb(this.element,this,36843):this.F.sb(this.element,this,36844);a=g.lO(a?"Seek forward $SECONDS seconds.":"Seek backwards $SECONDS seconds.",{SECONDS:Math.abs(this.j).toString()});this.update({title:a,"data-title-no-tooltip":a});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.j).toString();this.Ra("click",this.onClick,this)};
jOa=function(a,b){a.element.style.display=b?"block":"";a.F.Ua(a.element,b)};
bV=function(a,b,c){XU.call(this,a,b,c,"timedMarkerCueRange","View key moments");this.S(a,g.$D("timedMarkerCueRange"),this.yc);this.S(a,"updatemarkervisibility",this.updateVideoData)};
kOa=function(a){var b,c=null==(b=a.F.getVideoData())?void 0:b.ke;if(c)for(a=a.C.uc,c=g.t(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("engagement-panel-macro-markers-problem-walkthroughs"!==(null==(d=b.onTap)?void 0:null==(e=d.innertubeCommand)?void 0:null==(f=e.changeEngagementPanelVisibilityAction)?void 0:f.targetId))return b}};
cV=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-miniplayer-button","aria-keyshortcuts":"i","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[TEa()]});this.F=a;this.visible=!1;this.Ra("click",this.onClick);this.S(a,"fullscreentoggled",this.Pa);this.updateValue("title",g.WT(a,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});g.bb(this,g.ZS(b.Ic(),this.element));a.sb(this.element,this,62946);
this.Pa()};
dV=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-multicam-button","ytp-button"],X:{title:"Switch camera","aria-haspopup":"true","data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},W:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});var d=this;this.F=a;this.j=!1;this.u=new g.Ip(this.B,400,this);this.tooltip=b.Ic();mU(this.tooltip);g.E(this,this.u);this.Ra("click",function(){QS(c,d.element,!1)});
this.S(a,"presentingplayerstatechange",function(){d.Pa(!1)});
this.S(a,"videodatachange",this.onVideoDataChange);this.Pa(!0);g.bb(this,g.ZS(this.tooltip,this.element))};
lOa=function(a){g.PS.call(this,a,{G:"div",N:"ytp-multicam-menu",X:{role:"dialog"},W:[{G:"div",N:"ytp-multicam-menu-header",W:[{G:"div",N:"ytp-multicam-menu-title",W:["Switch camera",{G:"button",Ia:["ytp-multicam-menu-close","ytp-button"],X:{"aria-label":"Close"},W:[g.jQ()]}]}]},{G:"div",N:"ytp-multicam-menu-items"}]},250);this.api=a;this.B=new g.bI(this);this.items=this.Da("ytp-multicam-menu-items");this.j=[];g.E(this,this.B);a=this.Da("ytp-multicam-menu-close");this.S(a,"click",this.Fb);this.hide()};
eV=function(){g.C.call(this);this.u=null;this.startTime=this.duration=0;this.delay=new g.Gp(this.j,null,this);g.E(this,this.delay)};
mOa=function(a,b){if("path"===b.G)return b.X.d;if(b.W)for(var c=0;c<b.W.length;c++){var d=b.W[c];if(d&&"string"!==typeof d&&(d=mOa(a,d)))return d}};
qOa=function(a,b,c){c=mOa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=YP();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=nOa(e),m=nOa(c);oOa(a,function(n){d.setAttribute("d",pOa(l,m,n))},200)};
oOa=function(a,b,c){a.u=b;a.startTime=(0,g.M)();a.duration=c;a.j()};
nOa=function(a){var b=[];a=a.match(rOa);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};
pOa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
g.fV=function(a,b,c){c=void 0===c?!1:c;g.U.call(this,{G:"button",Ia:["ytp-mute-button","ytp-button"],X:a.V().Ya?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},ra:"{{icon}}"});this.F=a;this.Ga=c;this.j=null;this.C=this.T=this.D=this.oa=NaN;this.ya=this.I=null;this.B=[];this.u=[];this.visible=!1;this.J=null;c=this.F.V();this.updateValue("icon",tQ());this.tooltip=b.Ic();this.j=new g.ZP({G:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},W:[{G:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",N:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},W:[{G:"path",N:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{G:"path",xc:!0,Ia:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",xc:!0,Ia:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.E(this,this.j);this.I=this.j.Da("ytp-svg-volume-animation-speaker");
this.ya=this.I.getAttribute("d");this.B=g.Ze("ytp-svg-volume-animation-mover",this.j.element);this.u=g.Ze("ytp-svg-volume-animation-hider",this.j.element);this.Aa=new eV;g.E(this,this.Aa);this.Z=new eV;g.E(this,this.Z);this.Ra("click",this.t6);this.S(a,"appresize",this.FR);this.S(a,"onVolumeChange",this.onVolumeChange);var d=null;if(c.Ya)g.bb(this,g.ZS(b.Ic(),this.element));else{var e="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);d=
new g.PS(a,{G:"span",Ia:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},W:[e[0],{G:"a",X:{href:"https://web.archive.org/web/20230426095903/https://support.google.com/youtube/?p=noaudio",target:c.ea},ra:e[2]},e[4]]},100,!0);g.E(this,d);d.hide();d.subscribe("show",function(f){b.qy(d,f)});
g.NS(a,d.element,4)}this.message=d;a.sb(this.element,this,28662);this.FR(a.jb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
uOa=function(a,b){a.oa=b;var c=a.ya;b&&(c+=pOa(sOa,tOa,b));a.I.setAttribute("d",c)};
vOa=function(a,b){a.T=b;for(var c=20*b,d=0;d<a.B.length;d++)a.B[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=tQ():e=a.j;for(c=0;c<a.u.length;c++){d=a.u[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.J&&(a.updateValue("icon",e),a.J=e)};
wOa=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-tooltip-target-id":"ytp-pip-button"},W:[TEa()]});this.F=a;this.updateValue("title","Picture in Picture");this.Ra("click",this.onClick);g.bb(this,g.ZS(b.Ic(),this.element))};
g.gV=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ra:"{{icon}}"});this.F=a;this.j=null;this.transition=new eV;this.tooltip=b.Ic();g.E(this,this.transition);a.sb(this.element,this,36842);a.Ua(this.element,!0);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"presentingplayerstatechange",this.onStateChange);this.S(a,"videodatachange",this.onVideoDataChange);this.qc(a.Cb());
this.Ra("click",this.fA,this);g.bb(this,g.ZS(b.Ic(),this.element))};
xOa=function(a){switch(a){case 1:return pQ();case 2:return REa();case 3:return g.qQ();case 4:return VEa();default:return null}};
g.hV=function(a,b,c){g.U.call(this,{G:"a",Ia:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},W:[c?mQ():UEa()]});var d=this;this.F=a;this.j=c;this.playlist=this.videoData=null;this.I=
!1;this.C=this.D=this.u=null;this.B=!1;this.tooltip=b.Ic();c?a.sb(this.element,this,6193):a.sb(this.element,this,6194);this.S(a,"fullscreentoggled",this.onVideoDataChange);this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"onPlaylistUpdate",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.j||this.S(a,"appresize",this.HJ);this.S(a,"mdxpreviousnextchange",function(){yOa(d);d.HJ()});
this.onVideoDataChange()};
zOa=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
AOa=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.F.getCurrentTime()&&2!==a.F.getPresentingPlayerType()};
BOa=function(a){var b=JS(a.F.wb());return b?a.j?b.Ck():b.No():!1};
yOa=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.Ck();c=g.KS(a.F)&&(!a.j||c);var d=a.j&&g.OS(a.F),e=BOa(a),f=a.j&&5===a.F.getPresentingPlayerType(),h=g.WT(a.F,"Next","SHIFT+n"),l=g.WT(a.F,"Previous","SHIFT+p");if(f)b.title="Start video";else if(a.B)b.title="Replay";else if(c){var m=null;a.playlist&&(m=g.zT(a.playlist,a.j?mLa(a.playlist):nLa(a.playlist)));if(m){if(m.videoId){var n=a.playlist.listId;
b.url=a.F.V().getVideoUrl(m.videoId,n?n.toString():void 0)}b.text=m.title;b.duration=m.lengthText?m.lengthText:m.lengthSeconds?g.eR(m.lengthSeconds):null;b.preview=m.wg("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=null==(m=a.videoData)?void 0:g.qM(m))b.url=l.Ak(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.eR(l.lengthSeconds):
null,b.preview=l.wg("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.I=!!b.url;d||c||a.B||e||f?a.u||(a.u=g.ZS(a.tooltip,a.element),a.D=a.Ra("click",a.onClick,a)):a.u&&(a.u(),a.u=null,a.Hc(a.D),a.D=null);$S(a.tooltip)};
COa=function(a,b){g.U.call(this,{G:"div",N:"ytp-fine-scrubbing",W:[{G:"div",N:"ytp-fine-scrubbing-thumbnails",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}},{G:"div",X:{"aria-hidden":"true"},N:"ytp-fine-scrubbing-cursor"},{G:"div",N:"ytp-fine-scrubbing-seek-time",X:{"aria-hidden":"true"},ra:"{{seekTime}}"},{G:"div",
N:"ytp-fine-scrubbing-play",W:[pQ()],X:{title:"Play from this position",role:"button"}},{G:"div",N:"ytp-fine-scrubbing-dismiss",W:[g.jQ()],X:{title:"Exit precise seeking",role:"button"}}]});this.api=a;this.B=this.Da("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Da("ytp-fine-scrubbing-dismiss");this.playButton=this.Da("ytp-fine-scrubbing-play");this.thumbnails=[];this.j=[];this.Ga=this.C=0;this.Aa=void 0;this.Z=NaN;this.La=this.T=this.u=this.J=0;this.D=[];this.interval=this.frameCount=0;
this.I=160;this.scale=1;this.Ja=0;this.isEnabled=this.ya=!1;g.bb(this,g.ZS(b,this.dismissButton));g.bb(this,g.ZS(b,this.playButton));this.oa=new g.kT(this.B,!0);this.oa.subscribe("dragstart",this.JJ,this);this.oa.subscribe("dragmove",this.IJ,this);this.oa.subscribe("dragend",this.x0,this);this.S(a,"SEEK_COMPLETE",this.xz);this.B.addEventListener("keydown",function(){});
g.E(this,this.oa);this.api.sb(this.element,this,153154);this.api.sb(this.B,this,152789);this.api.sb(this.dismissButton,this,153156);this.api.sb(this.playButton,this,153155)};
DOa=function(a){a.Z=NaN;a.T=0;a.J=a.u};
GOa=function(a){var b=a.api.Hj();if(b){var c=90*a.scale,d=SL(b,160*a.scale);if(b=b.levels[d]){a.I=b.width;if(!a.D.length){d=[];for(var e=TL(b,b.ix()),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.Ze(l),column:0,columns:p,row:n,rows:m,NC:b.width*p,Dv:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.NE();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new EOa,a.thumbnails.push(d),d.Ea(a.B),g.E(a,d);for(d=0;d<a.D.length;d++)e=a.thumbnails[d].element,f=a.D[d],h=a.I*a.scale,l=f.Dv/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Dv/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";iV(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Pk;a.j.length>c.length;)d=void 0,null==(d=a.j.pop())||d.dispose();
for(;a.j.length<c.length;)d=new FOa,a.j.push(new FOa),g.E(a,d);for(d=0;d<c.length;d++)e=c[d],a.j[d].update({chapterTitle:e.title}),e=Math.round(e.startTime/b.j),f=Math.floor(e/b.rows),g.Hm(a.j[d].element,"transform","translateX("+e%b.rows*a.I*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.j[d].Ea(a.thumbnails[f].element);a.ya=!0}}};
iV=function(a,b){a.update({seekTime:g.eR(b)});var c=a.I*a.scale;b=b<a.interval/2?-b*c/a.interval*2+a.C/2:-b*c/a.interval-c/2+a.C/2;b=g.ze(b,HOa(a),a.C/2);a.J=b;a.u=a.J;g.Hm(a.B,"transform","translateX("+a.J+"px)")};
IOa=function(a,b){var c=a.I*a.scale;b-=a.C/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
HOa=function(a){return-((a.B.offsetWidth||(a.frameCount-1)*a.I*a.scale)-a.C/2)};
EOa=function(){g.U.call(this,{G:"div",N:"ytp-fine-scrubbing-thumbnail"})};
FOa=function(){g.U.call(this,{G:"div",N:"ytp-fine-scrubbing-chapter-title",W:[{G:"div",N:"ytp-fine-scrubbing-chapter-title-content",ra:"{{chapterTitle}}"}]})};
KOa=function(a,b,c,d){d=void 0===d?!1:d;b=new JOa(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.u:b.u)}};
JOa=function(a,b){this.u=this.j=0;this.j=b.x-a.x;this.u=b.y-a.y};
LOa=function(a){g.U.call(this,{G:"div",N:"ytp-heat-map-chapter",W:[{G:"svg",N:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",X:{id:"{{id}}"},W:[{G:"path",N:"ytp-heat-map-path",X:{d:"",fill:"white","fill-opacity":"0.6"}}]}]},{G:"rect",N:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.2",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",N:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",
height:"100%",x:"0",y:"0"}},{G:"rect",N:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.I=this.Da("ytp-heat-map-svg");this.D=this.Da("ytp-heat-map-path");this.C=this.Da("ytp-heat-map-graph");this.B=this.Da("ytp-heat-map-play");this.u=this.Da("ytp-heat-map-hover");this.De=!1;this.j=60;a=""+g.Na(this);this.update({id:a});a="url(#"+a+")";this.C.setAttribute("clip-path",a);this.B.setAttribute("clip-path",a);this.u.setAttribute("clip-path",a)};
jV=function(){g.U.call(this,{G:"div",N:"ytp-chapter-hover-container",W:[{G:"div",N:"ytp-progress-bar-padding"},{G:"div",N:"ytp-progress-list",W:[{G:"div",Ia:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",N:"ytp-progress-linear-live-buffer"},{G:"div",N:"ytp-load-progress"},{G:"div",N:"ytp-hover-progress"},{G:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.C=this.Da("ytp-progress-linear-live-buffer");this.B=this.Da("ytp-ad-progress-list");
this.D=this.Da("ytp-load-progress");this.I=this.Da("ytp-play-progress");this.u=this.Da("ytp-hover-progress");this.j=this.Da("ytp-chapter-hover-container")};
kV=function(a,b){g.Hm(a.j,"width",b)};
MOa=function(a,b){g.Hm(a.j,"margin-right",b+"px")};
NOa=function(){this.fraction=this.position=this.u=this.j=this.B=this.width=NaN};
OOa=function(){g.U.call(this,{G:"div",N:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
POa=function(a){return a.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")};
g.mV=function(a,b){g.dQ.call(this,{G:"div",N:"ytp-progress-bar-container",X:{"aria-disabled":"true"},W:[{G:"div",Ia:["ytp-heat-map-container"],W:[{G:"div",N:"ytp-heat-map-edu"}]},{G:"div",Ia:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{G:"div",N:"ytp-chapters-container"},{G:"div",N:"ytp-timed-markers-container"},{G:"div",N:"ytp-clip-start-exclude"},
{G:"div",N:"ytp-clip-end-exclude"},{G:"div",N:"ytp-scrubber-container",W:[{G:"div",Ia:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{G:"div",N:"ytp-scrubber-pull-indicator"}]}]}]},{G:"div",Ia:["ytp-fine-scrubbing-container"],W:[{G:"div",N:"ytp-fine-scrubbing-edu"}]},{G:"div",N:"ytp-bound-time-left",ra:"{{boundTimeLeft}}"},{G:"div",N:"ytp-bound-time-right",ra:"{{boundTimeRight}}"},{G:"div",N:"ytp-clip-start",X:{title:"{{clipstarttitle}}"},ra:"{{clipstarticon}}"},{G:"div",N:"ytp-clip-end",
X:{title:"{{clipendtitle}}"},ra:"{{clipendicon}}"}]});this.api=a;this.ke=!1;this.Kf=this.Qa=this.J=this.Jf=0;this.Ld=null;this.Ja={};this.jc={};this.clipEnd=Infinity;this.Xb=this.Da("ytp-clip-end");this.Oc=new g.kT(this.Xb,!0);this.uf=this.Da("ytp-clip-end-exclude");this.Qg=this.Da("ytp-clip-start-exclude");this.clipStart=0;this.Tb=this.Da("ytp-clip-start");this.Lc=new g.kT(this.Tb,!0);this.Z=this.ib=0;this.Kc=this.Da("ytp-progress-bar");this.tb={};this.uc={};this.Dc=this.Da("ytp-chapters-container");
this.Wf=this.Da("ytp-timed-markers-container");this.j=[];this.I=[];this.Od={};this.vf=null;this.Xa=-1;this.kb=this.ya=0;this.T=null;this.Vf=this.Da("ytp-scrubber-button");this.ph=this.Da("ytp-scrubber-container");this.fb=new g.Fe;this.Hf=new NOa;this.B=new iR(0,0);this.Bb=null;this.C=this.je=!1;this.If=null;this.oa=this.Da("ytp-heat-map-container");this.Vd=this.Da("ytp-heat-map-edu");this.D=[];this.heatMarkersDecorations=[];this.Ya=this.Da("ytp-fine-scrubbing-container");this.Wc=this.Da("ytp-fine-scrubbing-edu");
this.u=void 0;this.Aa=this.rd=this.Ga=!1;this.tooltip=b.Ic();g.bb(this,g.ZS(this.tooltip,this.Xb));g.E(this,this.Oc);this.Oc.subscribe("hoverstart",this.ZV,this);this.Oc.subscribe("hoverend",this.YV,this);this.S(this.Xb,"click",this.LH);g.bb(this,g.ZS(this.tooltip,this.Tb));g.E(this,this.Lc);this.Lc.subscribe("hoverstart",this.ZV,this);this.Lc.subscribe("hoverend",this.YV,this);this.S(this.Tb,"click",this.LH);QOa(this);this.S(a,"resize",this.Db);this.S(a,"presentingplayerstatechange",this.z0);this.S(a,
"videodatachange",this.Gs);this.S(a,"videoplayerreset",this.I3);this.S(a,"cuerangesadded",this.GY);this.S(a,"cuerangesremoved",this.D8);this.S(a,"cuerangemarkersupdated",this.GY);this.S(a,"onLoopRangeChange",this.GR);this.S(a,"innertubeCommand",this.onClickCommand);this.S(a,g.ZD("timedMarkerCueRange"),this.H7);this.S(a,"updatemarkervisibility",this.EY);this.updateVideoData(a.getVideoData(),!0);this.GR(a.getLoopRange());lV(this)&&!this.u&&(this.u=new COa(this.api,this.tooltip),a=g.Pm(this.element).x||
0,this.u.Db(a,this.J),this.u.Ea(this.Ya),g.E(this,this.u),this.S(this.u.dismissButton,"click",this.Vr),this.S(this.u.playButton,"click",this.AL),this.S(this.u.element,"dblclick",this.AL));a=this.api.V();g.fK(a)&&a.u&&g.Qp(this.element,"ytp-no-contextmenu");this.api.sb(this.oa,this,139609,!0);this.api.sb(this.Vd,this,140127,!0);this.api.sb(this.Wc,this,151179,!0);this.api.K("web_modern_miniplayer")&&(this.element.hidden=!0)};
QOa=function(a){if(0===a.j.length){var b=new jV;a.j.push(b);g.E(a,b);b.Ea(a.Dc,0)}for(;1<a.j.length;)a.j.pop().dispose();kV(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
ROa=function(a){for(;a.I.length;)a.I.pop().dispose()};
SOa=function(a){if(POa(a)){var b,c,d,e,f;return null==(f=g.K(null==(e=g.K(null==(b=a.jd)?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,HL))?void 0:e.playerBar,oza))?void 0:f.chapters}return a.dS};
TOa=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.XD(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.Ff("chapterCueRange");a.api.ye(c)};
aPa=function(a,b){var c,d=null==(c=a.tb[b])?void 0:c.chapters;d&&(UOa(a,d),a.api.getVideoData().Pk=a.j,TOa(a));var e;if((c=null==(e=a.tb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){ROa(a);e=g.t(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new OOa,d=g.K(d,g.VOa)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;WOa(a,c)}XOa(a,
a.I);e=a.I;c=a.Od;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=INa(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.ye(d)}var l;if(b=g.K(null==(l=a.tb[b])?void 0:l.heatmap,YOa)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?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;if(d===a.D.length){f=
void 0;var q=a;f=void 0===f?NaN:f;var r=new LOa(q.api);q.D.push(r);g.E(q,r);r.Ea(q.oa);0<=f&&(r.element.style.width=f+"px")}f=[];c&&f.push(c);q=g.t(l);for(r=q.next();!r.done;r=q.next()){r=r.value;var v=void 0,x=void 0,z=null!=(x=null==(v=g.K(r,ZOa))?void 0:v.timeRangeStartMillis)?x:-1;z>=h&&z<=p&&f.push(r)}0<m&&(a.oa.style.height=m+"px");h=a.D[d];q=0===d;q=void 0===q?!1:q;p=h;0<m&&(p.j=m,p.I.style.height=p.j+"px");p=h.j;q=void 0===q?!1:q;r=1E3/f.length;v=[];v.push({x:0,y:100});for(x=0;x<f.length;x++){var B=
void 0;z=(null==(B=g.K(f[x],ZOa))?void 0:B.heatMarkerIntensityScoreNormalized)||0;B=(x+.5)*r;z=100-g.ze(100*z,e/p*100,m/p*100);0!==x||q||v.push({x:0,y:z});v.push({x:B,y:z});x===f.length-1&&v.push({x:1E3,y:z})}v.push({x:1E3,y:100});p=v;if(0===f.length)p="";else{q="";for(r=0;r<p.length;r++)v=p[r],0===r?v="M "+v.x.toFixed(1)+","+v.y.toFixed(1):(x=KOa(p[r-1],p[r-2],v),z=KOa(v,p[r-1],p[r+1],!0),v=" C "+(x.x.toFixed(1)+","+x.y.toFixed(1)+" "+z.x.toFixed(1)+","+z.y.toFixed(1)+" "+v.x.toFixed(1)+","+v.y.toFixed(1))),
q+=v;p=q}h.D.setAttribute("d",p);h.De=""!==p;g.Up(h.api.getRootNode(),"ytp-heat-map",h.De);g.Up(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.K("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.nV(a);l=[];b=g.t(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.K(e.value,$Oa))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=(n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,
decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.gE(m):""});a.heatMarkersDecorations=l}};
WOa=function(a,b){a.I.push(b);g.E(a,b);b.Ea(a.Wf,a.Wf.children.length)};
XOa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=bPa(a,c.timeRangeStartMillis/(1E3*a.B.j),oV(a));g.Hm(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
UOa=function(a,b){var c=0,d=!1;b=g.t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.K(e,cPa)){e=g.K(e,cPa);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.gE(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new jV,a.j.push(f),g.E(a,f),f.Ea(a.Dc,a.Dc.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.nV(a);pV(a)};
g.nV=function(a){a.ya=a.j.length-1;a.kb=0;dPa(a,!0)&&dPa(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){MOa(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;kV(a.j[d],e+"px");break}a.j[c].width=0;kV(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,kV(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,kV(a.j[c],d+"px"));c=0;if(a.D.length===a.j.length)for(b=0;b<
a.D.length;b++)d=a.j[b].width,a.D[b].element.style.width=d+"px",a.D[b].element.style.left=c+"px",c+=d+(a.C?3:2)};
dPa=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.B.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.J){for(var h=a.J-(a.C?3:2)*a.ya,l=0===a.kb?3:h*a.kb,m=g.t(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,MOa(a.j[c],a.C?3:2));g.Up(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?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];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);MOa(p.j[q],0);b&&(a.ya--,m/f>a.kb&&(a.kb=m/f),d=!0)}c++}}return d};
pV=function(a){if(a.J){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:aN(d))&&b.airingStart&&b.airingEnd?ePa(a,b.airingStart,b.airingEnd):ePa(a,b.seekableStart,b.seekableEnd);d=jR(c,b.loaded,0);b=jR(c,b.current,0);var e=a.B.u!==c.u||a.B.j!==c.j;a.B=c;qV(a,b,d);e&&fPa(a);gPa(a)}}};
ePa=function(a,b,c){return hPa(a)?new iR(Math.max(b,a.Bb.startTimeMs/1E3),Math.min(c,a.Bb.endTimeMs/1E3)):new iR(b,c)};
iPa=function(a,b){var c;if("repeatChapter"===(null==(c=a.Bb)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[HU(a.j,b.startTimeMs)],g.Up(b.j,"ytp-repeating-chapter",!1)),a.Bb&&(b=a.j[HU(a.j,a.Bb.startTimeMs)],g.Up(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Up(d.j,"ytp-exp-chapter-hover-container",!a.Bb)})};
sV=function(a,b){var c=rFa(a.B,b.fraction);if(1<a.j.length){c=rV(a,b.u,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.C?3:2);c=(a.j[c].startTime+(b.u-d)/a.j[c].width*((c===a.j.length-1?1E3*a.B.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
jPa=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.B.j*(a.J-(a.C?3:2)*a.ya)};
fPa=function(a){a.Vf.style.removeProperty("height");for(var b=g.t(Object.keys(a.Ja)),c=b.next();!c.done;c=b.next())kPa(a,c.value);tV(a);qV(a,a.Z,a.ib)};
oV=function(a){var b=a.fb.x;b=g.ze(b,0,a.J);a.Hf.update(b,a.J);return a.Hf};
vV=function(a){return(a.C?135:90)-uV(a)};
uV=function(a){var b=48,c=a.api.V();a.C?b=54:g.fK(c)&&!c.u&&(b=40);return b};
qV=function(a,b,c){a.Z=b;a.ib=c;var d=oV(a),e=a.B.j,f=rFa(a.B,a.Z),h=g.lO("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.eR(f,!0),DURATION:g.eR(e,!0)}),l=HU(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.B.u),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Bb&&2!==a.api.getPresentingPlayerType()&&(e=a.Bb.startTimeMs/1E3,f=a.Bb.endTimeMs/1E3);e=jR(a.B,e,0);l=jR(a.B,f,1);h=a.api.getVideoData();f=g.ze(b,e,l);c=(null==h?0:g.ZM(h))?1:g.ze(c,e,
l);b=bPa(a,b,d);g.Hm(a.ph,"transform","translateX("+b+"px)");wV(a,d,e,f,"PLAY_PROGRESS");(null==h?0:aN(h))?(b=a.api.getProgressState().seekableEnd)&&wV(a,d,f,jR(a.B,b),"LIVE_BUFFER"):wV(a,d,e,c,"LOAD_PROGRESS");if(a.api.K("web_player_heat_map_played_bar")){var m;null!=(m=a.D[0])&&m.B.setAttribute("width",(100*f).toFixed(2)+"%")}};
wV=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.ya*(a.C?3:2),l=c*h;c=rV(a,l);var m=d*h;h=rV(a,m);"HOVER_PROGRESS"===e&&(h=rV(a,b.j*d,!0),m=b.j*d-lPa(a,b.j*d)*(a.C?3:2));b=Math.max(l-mPa(a,c),0);for(d=c;d<f;d++)a.j[d].ub(e).style.left=c===d?b+"px":"0";for(f=c;f<h;f++)d=a.j[f].ub(e),l=a.j[f].width,xV(a,d,f===c?l-b:l,l);f=a.j[h].width;m=g.ze(m-mPa(a,h),0,f);c===h&&(m-=b);b=a.j[h].ub(e);xV(a,b,m,f);m=a.j.length;for(h+=1;h<m;h++)nPa(a,h,e);for(h=0;h<c;h++)nPa(a,h,e)};
mPa=function(a,b){if(b>=a.j.length)return a.J;for(var c=0,d=0;d<b;)c+=a.j[d].width,d++;return c};
nPa=function(a,b,c){c=a.j[b].ub(c);xV(a,c,0,a.j[b].width)};
xV=function(a,b,c,d,e){e||a.api.V().u?b.style.width=c+"px":g.Hm(b,"transform","scalex("+(d?c/d:0)+")")};
rV=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=lPa(a,b)*(a.C?3:2));c=g.t(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};
bPa=function(a,b,c){for(var d=b*a.B.j*1E3,e=-1,f=g.t(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.C?3:2)*a.ya)+(a.C?3:2)*(0>e?0:e)+c.B};
lPa=function(a,b){for(var c=a.j.length,d=0,e=g.t(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.C?3:2,d++;else break;return d===c?c-1:d};
g.yV=function(a,b,c,d){var e=a.J!==c,f=a.C!==d;a.Jf=b;a.J=c;a.C=d;lV(a)&&null!=(b=a.u)&&(b.scale=d?1.5:1);fPa(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.nV(a);a.u&&f&&lV(a)&&(a.u.isEnabled&&(c=a.C?135:90,d=c-uV(a),a.Ya.style.height=c+"px",g.Hm(a.oa,"transform","translateY("+-d+"px)"),g.Hm(a.Kc,"transform","translateY("+-d+"px)")),GOa(a.u))};
tV=function(a){var b=!!a.Bb&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Bb?(c=a.Bb.startTimeMs/1E3,d=a.Bb.endTimeMs/1E3):(e=c>a.B.u,f=0<a.B.j&&d<a.B.j);var h,l;if((null==(h=a.Bb)?0:h.postId)||"repeatChapter"===(null==(l=a.Bb)?void 0:l.type))f=e=!1;g.Up(a.element,"ytp-loop-range-enabled",b);g.Up(a.element,"ytp-clip-start-enabled",e);g.Up(a.element,"ytp-clip-end-enabled",f);b=e?jR(a.B,c,0):0;d=f?jR(a.B,d,1):1;a.Tb.style.left=Math.round(1E3*b)/10+"%";a.Xb.style.left=
Math.round(1E3*d)/10+"%";a.Qg.style.width=Math.round(1E3*b)/10+"%";a.uf.style.left=Math.round(1E3*d)/10+"%";a.uf.style.width=Math.round(1E3*(1-d))/10+"%"};
gPa=function(a){var b;if(null==(b=a.api.getVideoData())||!aN(b)){b=oV(a);wV(a,b,a.Z,Math.max(b.fraction,a.Z),"HOVER_PROGRESS");for(var c=rV(a,b.j*a.Z,!0),d=rV(a,b.u,!0),e=c;e<=d;e++)g.Up(a.j[e].u,"ytp-hover-progress-light",b.fraction>a.Z);g.Up(a.Vf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.K("web_player_heat_map_played_bar")){var f;null!=(f=a.D[0])&&f.u.setAttribute("width",(100*b.fraction).toFixed(2)+"%")}}};
kPa=function(a,b){var c=a.Ja[b];b=a.jc[b];var d=oV(a),e=jR(a.B,c.start/1E3,0),f=Psa(c,a.C)/d.width;var h=jR(a.B,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ze(e,0,h-f));h=Math.min(h,e+f);c.color&&(b.style.background=c.color);c=e;b.style.left=Math.max(c*d.j+d.B,0)+"px";xV(a,b,g.ze((h-c)*d.j+d.B,0,d.width),d.width,!0)};
oPa=function(a,b){var c=b.getId();a.Ja[c]===b&&(g.xf(a.jc[c]),delete a.Ja[c],delete a.jc[c])};
lV=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.zg()&&!a.api.isInline()};
zV=function(a){a.u&&(a.u.disable(),a.Qa=0,a.oa.style.removeProperty("transform"),a.Kc.style.removeProperty("transform"),a.Ya.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
pPa=function(a,b){var c=b/vV(a)*uV(a);g.Hm(a.Kc,"transform","translateY("+-b+"px)");g.Hm(a.oa,"transform","translateY("+-b+"px)");g.Hm(a.Ya,"transform","translateY("+c+"px)");a.Ya.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=uV(a)-c+"px")};
qPa=function(a,b){b?a.T||(a.element.removeAttribute("aria-disabled"),a.T=new g.kT(a.Kc,!0),a.T.subscribe("hovermove",a.L6,a),a.T.subscribe("hoverend",a.K6,a),a.T.subscribe("dragstart",a.J6,a),a.T.subscribe("dragmove",a.N6,a),a.T.subscribe("dragend",a.M6,a),a.If=a.Ra("keydown",a.A0)):a.T&&(a.element.setAttribute("aria-disabled","true"),a.Hc(a.If),a.T.cancel(),a.T.dispose(),a.T=null)};
g.rPa=function(a){var b=2*a.J*g.CK(),c=a.B;return 1E3*(c.j-c.u)/a.api.getPlaybackRate()/b};
hPa=function(a){var b;return!(null==(b=a.Bb)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
AV=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-remote-button","ytp-button"],X:{title:"Play on TV","aria-haspopup":"true"},ra:"{{icon}}"});this.F=a;this.Eb=c;this.j=null;this.S(a,"onMdxReceiversChange",this.Pa);this.S(a,"presentingplayerstatechange",this.Pa);this.S(a,"appresize",this.Pa);a.sb(this.element,this,139118);this.Pa();this.Ra("click",this.u,this);g.bb(this,g.ZS(b.Ic(),this.element))};
BV=function(a,b,c){g.U.call(this,{G:"button",Ia:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":YP(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.rQ()]});this.F=a;this.Eb=c;this.u=!0;this.Ra("click",this.B);this.S(a,"onPlaybackQualityChange",this.updateBadge);this.S(a,"videodatachange",this.updateBadge);this.S(a,"webglsettingschanged",this.updateBadge);this.S(a,"appresize",this.j);g.bb(this,g.ZS(b.Ic(),this.element));
this.F.sb(this.element,this,28663);this.updateBadge();this.j(a.jb().getPlayerSize())};
sPa=function(a,b){a.u=!!b;a.j(a.F.jb().getPlayerSize())};
CV=function(a,b){aT.call(this,"Annotations",7);this.F=a;this.Eb=b;this.j=!1;a.K("web_settings_menu_icons")&&US(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.S(a,"videodatachange",this.Pa);this.S(a,"onApiChange",this.Pa);this.subscribe("select",this.onSelect,this);this.Pa()};
g.DV=function(a,b,c,d,e,f,h){g.SS.call(this,g.TS({"aria-haspopup":"true"}),b,a);this.Eb=d;this.I=!1;this.B=null;this.options={};this.u=new g.qU(c,void 0,a,e,f,h);g.E(this,this.u);this.Ra("keydown",this.B0);this.Ra("click",this.open)};
tPa=function(a){if(a.B){var b=a.options[a.B];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked");a.B=null}};
g.EV=function(a,b){g.$Ma(a.u);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.B;l&&(d=!0);h&&h.priority===-e?(g.RS(a.options[f],a.gk(f,!0)),delete a.options[f]):h=a.DK(f,-e,l);c[f]=h;a.u.Zc(h,!0)}d||(a.B=null);b=g.t(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
FV=function(a,b){g.DV.call(this,"Audio track",4,a,b);this.F=a;this.tracks={};this.j=new g.U({G:"div",W:[{G:"span",ra:"Audio track"},{G:"span",N:"ytp-menuitem-label-count",ra:"{{content}}"}]});a.K("web_settings_menu_icons")&&US(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.E(this,this.j);g.RS(this,this.j);this.S(a,"videodatachange",this.Pa);this.S(a,"onPlaybackAudioChange",this.Pa);this.Pa()};
GV=function(a,b){aT.call(this,"Autoplay",8);this.F=a;this.Eb=b;this.j=!1;this.B=[];this.S(a,"presentingplayerstatechange",this.u);this.subscribe("select",this.onSelect,this);a.sb(this.element,this,113682);this.u()};
uPa=function(a,b){g.SS.call(this,g.TS({"aria-haspopup":"false"}),0,"More options");this.F=a;this.Eb=b;this.S(this.element,"click",this.onClick);this.Eb.Zc(this)};
vPa=function(a,b){var c;g.DK(a.V())&&(c={G:"div",N:"ytp-panel-footer-content",W:[{G:"span",ra:"Adjust download quality from your "},{G:"a",N:"ytp-panel-footer-content-link",ra:"Settings",X:{href:"/account_downloads"}}]});g.DV.call(this,"Quality",3,a,b,void 0,void 0,c);this.F=a;this.oa={};this.T={};this.C={};this.ya=new Set;this.j=this.D=!1;this.J="unknown";this.Z="";this.D=this.F.K("web_player_use_new_api_for_quality_pullback");this.j=this.F.K("web_player_enable_premium_hbr_playback_cap");a.K("web_settings_menu_icons")&&
US(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Qp(this.u.element,"ytp-quality-menu");this.S(a,"videodatachange",this.TA);this.S(a,"videoplayerreset",this.TA);this.S(a,"onPlaybackQualityChange",this.HR);this.TA();a.sb(this.element,this,137721)};
xPa=function(a,b,c){var d=a.oa[b],e=g.jF[b];return wPa(a,d?d.qualityLabel:e?e+"p":"Auto",b,c)};
yPa=function(a,b,c,d,e){var f=(b=a.j?a.C[b]:a.T[b])&&b.quality,h=b&&b.qualityLabel;h=h?h:"Auto";d&&(h="("+h);a=wPa(a,h,f||"",e);d&&a.W.push(")");(d=(d=b&&b.paygatedQualityDetails)&&d.paygatedIndicatorText)&&c&&a.W.push({G:"div",N:"ytp-premium-label",ra:d});return a};
wPa=function(a,b,c,d){b={G:"span",Ia:d,W:[b]};var e;d="ytp-swatch-color";if(a.D||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.W.push(" "),b.W.push({G:"sup",N:d,ra:e}));return b};
HV=function(a,b,c,d,e,f,h){g.U.call(this,{G:"div",N:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{G:"div",N:"ytp-slider",W:[{G:"div",N:"ytp-slider-handle"}]}]});this.T=a;this.J=b;this.u=c;this.C=d;this.Z=e;this.Aa=f;this.range=this.C-this.u;this.Ga=this.Da("ytp-slider-section");this.B=this.Da("ytp-slider");this.oa=this.Da("ytp-slider-handle");this.I=new g.kT(this.B,
!0);this.j=h?h:c;g.E(this,this.I);this.I.subscribe("dragmove",this.D0,this);this.S(this.element,"keydown",this.E0);this.S(this.element,"wheel",this.C0);this.init()};
IV=function(a){HV.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.F=a;this.D=g.qf("P");this.Ja=sba(this.ya,this);g.Qp(this.B,"ytp-speedslider");g.Qp(this.D,"ytp-speedslider-text");a=this.B;a.parentNode&&a.parentNode.insertBefore(this.D,a.nextSibling);zPa(this);this.S(this.F,"onPlaybackRateChange",this.updateValues)};
zPa=function(a){a.D.textContent=APa(a,a.j)+"x"};
APa=function(a,b){a=Number(g.ze(b,a.u,a.C).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
BPa=function(a){g.dQ.call(this,{G:"div",N:"ytp-speedslider-component"});this.j=new IV(a);g.E(this,this.j);this.element.appendChild(this.j.element)};
CPa=function(a){var b=new BPa(a);pU.call(this,a,b,"Custom");g.E(this,b)};
DPa=function(a,b){var c=new CPa(a);g.DV.call(this,"Playback speed",6,a,b,"Custom",function(){g.tU(b,c)});
a.K("web_settings_menu_icons")&&US(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.E(this,c);this.F=a;this.C=this.j=this.J=null;this.D=this.F.getAvailablePlaybackRates();this.S(a,"presentingplayerstatechange",this.Pa);this.Pa()};
FPa=function(a,b){var c=EPa(b);a.options[c]?a.yj(c):b===a.C&&a.j&&(a.yj(a.j),a.ge(b.toString()))};
HPa=function(a){g.EV(a,a.D.map(EPa));a.j=null;a.C=null;var b=a.F.getPlaybackRate();a.D.includes(b)||(GPa(a,b),g.DV.prototype.eh.call(a,a.j))};
GPa=function(a,b){a.C=b;a.j=g.lO("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.D.map(EPa);b.unshift(a.j);g.EV(a,b)};
EPa=function(a){return a.toString()};
JPa=function(a,b,c,d){var e=new g.qU(b,void 0,"Video Override");g.DV.call(this,d.text||"",a,b,c,"Video Override",function(){g.tU(c,e)});
var f=this;g.Qp(this.element,"ytp-subtitles-options-menu-item");this.J=d.option.toString();a=d.options;this.settings=g.Pb(a,this.getKey,this);this.D=e;g.E(this,this.D);b=new g.SS({G:"div",N:"ytp-menuitemtitle",ra:"Allow for a different caption style if specified by the video."},0);g.E(this,b);this.D.Zc(b,!0);this.C=new g.SS({G:"div",N:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",N:"ytp-menuitem-label",ra:"On"}]},-1);g.E(this,this.C);this.D.Zc(this.C,!0);this.S(this.C.element,"click",
function(){IPa(f,!0)});
this.j=new g.SS({G:"div",N:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",N:"ytp-menuitem-label",ra:"Off"}]},-2);g.E(this,this.j);this.D.Zc(this.j,!0);this.S(this.j.element,"click",function(){IPa(f,!1)});
g.EV(this,g.Yl(a,this.getKey))};
IPa=function(a,b){a.ma("settingChange",a.J+"Override",!b);a.Eb.nj()};
JV=function(a,b){g.qU.call(this,a,void 0,"Options");var c=this;this.Vs={};for(var d=0;d<g.KU.length;d++){var e=g.KU[d],f=new JPa(-d,a,b,e);g.E(this,f);f.subscribe("settingChange",this.Pj,this);this.Vs[e.option.toString()]=f;this.Zc(f,!0)}a=new g.SS(g.TS(),-g.KU.length,"Reset");g.E(this,a);a.Ra("click",function(){c.Pj("reset",!0)});
this.Zc(a,!0)};
KV=function(a,b){g.DV.call(this,"Auto-translate",0,a,b);this.F=a;this.languages={};a.sb(this.element,this,127301);a.Ua(this.element,!0)};
KPa=function(a,b){a.languages=g.Pb(b,a.getKey,a);g.EV(a,g.Yl(b,a.getKey))};
MPa=function(a,b){var c=new JV(a,b),d=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],e;g.DK(a.V())&&(e={G:"div",N:"ytp-panel-footer-content",W:[{G:"span",ra:d[0]},{G:"a",N:"ytp-panel-footer-content-link",ra:"Settings",X:{href:"/account_playback"}},{G:"span",ra:d[1]}]});g.DV.call(this,"Subtitles/CC",5,a,b,"Options",function(){g.tU(b,c)},e);
var f=this;this.F=a;this.Eb=b;this.tracks={};this.J=new g.Ip(function(){LPa(f,!1)},3E3);
g.E(this,this.J);this.T=new g.U({G:"div",W:[{G:"span",ra:"Subtitles/CC"},{G:"span",N:"ytp-menuitem-label-count",ra:"{{content}}"}]});g.E(this,this.T);g.RS(this,this.T);a.K("web_settings_menu_icons")&&US(this,{G:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]});this.j=new KV(a,b);g.E(this,this.j);this.j.subscribe("select",this.F0,this);this.D=c;g.E(this,this.D);this.D.subscribe("settingChange",this.Pj,this);b.subscribe("show",this.q7,this);this.S(a,"videodatachange",this.Pa);this.S(a,"onApiChange",this.Pa);this.S(a,"onCaptionsTrackListChanged",this.Pa);this.S(a,"captionschanged",this.Pa);a.sb(this.element,this,127300);this.Pa()};
NPa=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
LV=function(a,b){a.F.setOption("captions","track",b)};
LPa=function(a,b){a.F.setOption("captions","sampleSubtitles",b)};
OPa=function(a){g.vU.call(this,a,"ytp-settings-menu");var b=this;this.Of=new g.qU(this.F);this.settingsButton=null;this.isInitialized=this.nO=!1;g.E(this,this.Of);this.hide();g.tU(this,this.Of);a.sb(this.element,this,108341,!0);this.subscribe("show",function(c){b.Bg(c)});
this.S(a,"highlightSettingsMenu",function(){b.nO=!0;b.od()})};
PPa=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
MV=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-title-no-tooltip":"{{data-title-no-tooltip}}"},ra:"{{icon}}"});this.F=a;this.wv=null;this.transition=new eV;this.tooltip=b.Ic();g.E(this,this.transition);this.S(a,"sizestylechange",this.Pa);this.S(a,"fullscreentoggled",this.Pa);this.S(a,"presentingplayerstatechange",this.Pa);a.sb(this.element,this,139116);this.Pa();this.Ra("click",this.onClick);g.bb(this,g.ZS(this.tooltip,
this.element))};
g.NV=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-subtitles-button","ytp-button"],X:{"aria-pressed":"{{pressed}}",title:"{{title}}","aria-keyshortcuts":"c","data-title-no-tooltip":"{{data-title-no-tooltip}}"},W:[pMa()]});this.F=a;this.tooltip=b.Ic();this.S(a,"videodatachange",this.Pa);this.S(a,"appresize",this.Pa);this.S(a,"promotooltipacceptbuttonclicked",this.j);this.S(a,"onApiChange",this.Pa);this.S(a,"onCaptionsTrackListChanged",this.Pa);this.S(a,"captionschanged",this.Pa);this.F.sb(this.element,
this,127299);this.Pa();this.Ra("click",this.onClick);g.bb(this,g.ZS(b.Ic(),this.element))};
g.PV=function(a,b,c){c=void 0===c?350:c;g.U.call(this,{G:"div",Ia:["ytp-time-display","notranslate"],W:[{G:"span",N:"ytp-time-clip-icon",ra:"{{clipicon}}"},{G:"span",W:[{G:"span",N:"ytp-time-current",ra:"{{currenttime}}"},{G:"span",N:"ytp-time-separator",ra:" / "},{G:"span",N:"ytp-time-duration",ra:"{{duration}}"}]},{G:"span",N:"ytp-clip-watch-full-video-button-separator",ra:"\u2022"},{G:"span",N:"ytp-clip-watch-full-video-button",ra:"{{watchfullvideo}}"}]});this.api=a;this.J=c;this.liveBadge=new g.U({G:"button",
Ia:["ytp-live-badge","ytp-button"],X:{disabled:"true"},ra:"{{content}}"});this.j=null;this.yC=this.u=!1;this.I=this.D=null;this.isPremiere=!1;this.Bb=this.C=this.B=null;this.T=this.Da("ytp-clip-watch-full-video-button");this.liveBadge.ge("Live");g.E(this,this.liveBadge);this.liveBadge.Ea(this.element);this.tooltip=b.Ic();this.Ra("click",this.onClick);this.S(this.T,"click",this.V7);this.S(a,"presentingplayerstatechange",this.yc);this.S(a,"appresize",this.yc);this.S(a,"onLoopRangeChange",this.onLoopRangeChange);
this.S(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.yc();a=a.getLoopRange();b=this.Bb!==a;this.Bb=a;b&&OV(this);this.api.K("web_modern_miniplayer")&&(this.element.hidden=!0)};
OV=function(a){a.updateValue("clipicon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.yC&&!a.u?a.updateValue("watchfullvideo","Watch live stream"):a.updateValue("watchfullvideo","Watch full video");g.Up(a.element,"ytp-clip",QV(a));g.Up(a.element,"ytp-live",RV(a))};
RV=function(a){var b=a.api.V().K("enable_linear_program_progress");return a.yC&&!QV(a)&&(!b||!a.u)};
QV=function(a){return!!a.Bb&&!!a.Bb.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Bb.type||"clips"===a.Bb.type)};
RPa=function(a,b,c){g.U.call(this,{G:"div",N:"ytp-volume-panel",X:{title:"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{G:"div",N:"ytp-volume-slider",W:[{G:"div",N:"ytp-volume-slider-handle"}]}]});var d=this;this.api=a;this.j=b;this.J=c;this.Ql=!1;this.Z=this.volume=0;this.I=null;this.B=this.u=this.isDragging=!1;this.j=b;this.J=c;this.C=b.yg();this.T=this.Da("ytp-volume-slider");this.oa=this.Da("ytp-volume-slider-handle");
this.D=new g.kT(this.T,!0);g.E(this,this.D);this.D.subscribe("dragstart",this.v7,this);this.D.subscribe("dragmove",this.H0,this);this.D.subscribe("dragend",this.u7,this);this.S(a,"onVolumeChange",this.onVolumeChange);this.S(a,"appresize",this.IR);this.S(a,"fullscreentoggled",this.Hq);this.S(a,"onShowControls",this.US);this.S(a,"onHideControls",this.US);this.S(this.element,"keydown",this.I0);this.S(this.element,"focus",function(){SV(d,d.u,d.isDragging,!0,d.j.Ql())});
this.S(this.element,"blur",function(){SV(d,d.u,d.isDragging,!1,d.j.Ql())});
this.IR(a.jb().getPlayerSize());QPa(this,a.getVolume(),a.isMuted());g.bb(this,g.ZS(b.Ic(),this.element))};
QPa=function(a,b,c){var d=Math.floor(b),e=d+"% volume"+(c?" muted":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.oa.style.left=(a.C?60:40)*c+"px";a.volume=b};
SPa=function(a,b){g.Up(a.element,"ytp-volume-control-hover",b);SV(a,b,a.isDragging,a.B,a.j.Ql())};
SV=function(a,b,c,d,e){var f=a.u||a.isDragging||a.B||a.Ql;a.u=b;a.isDragging=c;a.B=d;a.Ql=e;b=a.u||a.isDragging||a.B||a.Ql;f!==b&&(b?a.I=a.S(a.element,"wheel",a.G0):(a.Hc(a.I),a.I=null),g.Up(a.J,"ytp-volume-slider-active",b))};
g.TV=function(a,b){var c=a.V(),d=g.zK(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.B&&e.push("no-link");g.oK(c)&&e.push("ytp-youtube-music-button");var f={target:c.ea,"data-sessionlink":"feature=player-button",title:""};c.B||(f.title=g.lO("Watch on $WEBSITE",{WEBSITE:d}),f.href="{{url}}");g.U.call(this,{G:"a",Ia:e,X:f,ra:"{{logoSvg}}"});this.u=b;this.j=null;this.api=a;this.visible=!1;a.sb(this.element,this,28666);c.B||(this.j=this.Ra("click",
this.onClick));this.S(a,"videodatachange",this.onVideoDataChange);this.S(a,"videoplayerreset",this.onVideoDataChange);this.S(a,"onLoopRangeChange",this.onVideoDataChange);this.S(a,"appresize",this.Db);this.onVideoDataChange();c.B||g.bb(this,g.ZS(b.Ic(),this.element));this.Db()};
TPa=function(a,b,c){g.bI.call(this);var d=this;this.F=a;this.u=b;this.Ve=c;this.ib=NaN;this.kb=this.fb=null;this.B=new OPa(this.F);this.Kc=new g.mV(this.F,this.u);this.oa=this.Z=this.J=null;this.tj=new g.PV(this.F,this.u);this.Xa=this.tb=this.I=this.D=this.Qa=this.La=null;this.ya=new wOa(this.F,this.u);this.Ya=new g.$U(this.F,this.u);this.lf=new g.Gp(this.Iv,null,this);this.ea=null;c=a.V();this.Ve.subscribe("autohideupdate",this.qn,this);var e=!a.Cb().isCued(),f;g.oK(c)||a.V().K("html5_player_dynamic_bottom_gradient")?
this.kb=f=new g.WU(a):f=new g.U({G:"div",N:"ytp-gradient-bottom"});g.E(this,f);g.NS(a,f.element,9);this.Ga=new g.QQ(f,250,e,100);g.E(this,this.Ga);this.C=new g.U({G:"div",N:"ytp-chrome-bottom",W:[{G:"div",N:"ytp-chrome-controls"}]});g.E(this,this.C);g.NS(a,this.C.element,9);this.Aa=new g.QQ(this.C,250,e,100);g.E(this,this.Aa);this.Ja=this.C.element.children[0];g.bb(this.B,function(){a.Nm()===d.B&&(a.DJ=null)});
g.E(this,this.B);a.DJ=this.B;g.NS(a,this.B.element,6);this.B.subscribe("show",function(m){d.u.Ic().fP(!m);b.cI(d.B,m)});
g.E(this,this.Kc);this.Kc.Ea(this.C.element,0);e=new g.ZU(a,b);g.E(this,e);g.NS(a,e.element,4);e=new g.ZP({G:"div",N:"ytp-left-controls"});g.E(this,e);e.Ea(this.Ja);f=new g.hV(a,b,!1);g.E(this,f);f.Ea(e.element);a.K("web_render_jump_buttons")&&(this.Z=new aV(a,b,g.gJ(a.V().experiments,"web_jump_button_backward_amount")||-10),g.E(this,this.Z),this.Z.Ea(e.element));c.Xa||(f=new g.gV(a,b),g.E(this,f),f.Ea(e.element));a.K("web_render_jump_buttons")&&(this.oa=new aV(a,b,g.gJ(a.V().experiments,"web_jump_button_forward_amount")||
10),g.E(this,this.oa),this.oa.Ea(e.element));f=new g.hV(a,b,!0);g.E(this,f);f.Ea(e.element);f=new g.U({G:"span",N:"ytp-volume-area"});g.E(this,f);f.Ea(e.element);if(!c.Lc&&(this.J=new g.fV(a,b),g.E(this,this.J),this.J.Ea(f.element),c.Ya&&!c.T)){var h=new RPa(a,b,this.C.element);this.Xa=h;g.E(this,h);h.Ea(f.element);f=new g.kT(f.element);g.E(this,f);f.subscribe("hoverstart",function(){var m;null==(m=d.Xa)||SPa(m,!0)});
f=new g.kT(e.element);g.E(this,f);f.subscribe("hoverend",function(){var m;null==(m=d.Xa)||SPa(m,!1)})}g.E(this,this.tj);
this.tj.Ea(e.element);this.j=new g.ZP({G:"div",N:"ytp-right-controls"});g.E(this,this.j);this.La=new YU(a,b,this.Kc);g.E(this,this.La);this.La.Ea(e.element);c.K("web_key_moments_markers")&&(this.Qa=new bV(a,b,this.Kc),g.E(this,this.Qa),this.Qa.Ea(e.element));this.j.Ea(this.Ja);e=new g.NV(a,b);g.E(this,e);e.Ea(this.j.element);e=new BV(a,b,this.B);g.E(this,e);PPa(this.B,e);e.Ea(this.j.element);var l=new lOa(a);g.E(this,l);g.NS(a,l.element,5);l.subscribe("show",function(m){b.Op(l,m)});
e=new dV(a,b,l);g.E(this,e);e.Ea(this.j.element);e=a.getVideoData();if(c.qm||e.D&&"1"===c.controlsType)this.D=new g.TV(a,b),g.E(this,this.D),this.D.Ea(this.j.element);g.E(this,this.ya);c.showMiniplayerButton&&(this.I=new cV(a,b),g.E(this,this.I),this.I.Ea(this.j.element));this.ya.Ea(this.j.element);e.jQ||this.ya.hide();c.ij||(e=new MV(a,b),g.E(this,e),e.Ea(this.j.element));c.dj&&(e=new AV(a,b,this.B),g.E(this,e),e.Ea(this.j.element));c.ql&&(c=new UU(a,b),g.E(this,c),c.Ea(this.j.element));g.E(this,
this.Ya);this.Ya.Ea(this.j.element);g.E(this,this.lf);this.S(a,"appresize",this.Db);this.S(a,"fullscreentoggled",this.Db);this.S(a,"presentingplayerstatechange",this.KJ);this.S(a,"videodatachange",this.onVideoDataChange);this.Db()};
UPa=function(a,b){a.F.Cb().isCued()||b?b&&(a.Aa.hide(),a.Ga.hide(),a.J&&a.J.Zb(!1),a.D&&a.D.Zb(!1),a.I&&a.I.Zb(!1),a.u.Ic().rk(a.ub())):b||(a.Aa.show(),a.Ga.show(),a.J&&a.J.Zb(!0),a.D&&a.D.Zb(!0),a.I&&a.I.Zb(!0),a.qn())};
WPa=function(a){var b=a.F.jb().getPlayerSize().width;return Math.max(b-2*VPa(a),100)};
VPa=function(a){var b=a.u.yg(),c=a.F.getVideoData().D,d=a.F.V().K("shorts_mode_to_player_api")?a.F.Sb():a.u.Sb(),e=0;a.u.yg()&&d&&(e=(a.F.jb().getPlayerSize().width-a.F.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+e};
XPa=function(a){var b=a.u.yg()?72:50;a=a.F.V();g.DK(a)&&(b=62,g.lK(a)&&(b=54));return b};
YPa=function(a,b){EU.call(this,a,b,!1);var c=this;this.suggestedActions={};this.S(this.F,"videodatachange",this.onVideoDataChange);this.S(this.F,g.ZD("suggested_action_button_visible"),function(d){d=d.id;c.text=d;rNa(c);c.onClickCommand=c.suggestedActions[d];c.enabled=!0;c.Bg()});
this.S(this.F,g.$D("suggested_action_button_visible"),function(d){c.enabled=!1;c.Bg();c.F.K("suggested_actions_clear_cuerange_after_use")&&c.F.removeCueRange(d.id)})};
ZPa=function(a){a.suggestedActions={};a.F.Ff("suggested_action_button_visible")};
VV=function(a){g.U.call(this,{G:"div",N:UV.TITLE,W:[{G:"div",N:UV.TEXT,W:[{G:"a",Ia:[UV.LINK,UV.SESSIONLINK],X:{target:a.V().ea,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},ra:"{{title}}"},{G:"div",N:UV.SUBTEXT,W:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Da(UV.LINK);a.sb(this.element,this,23851);this.S(a,"videodatachange",this.Pa);this.S(a,"videoplayerreset",this.Pa);this.Pa()};
$Pa=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.lK(a.api.V())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.WV=function(a,b){g.U.call(this,{G:"div",W:[{G:"div",N:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},W:[{G:"div",N:"ytp-tooltip-edu",W:[{G:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{G:"span",ra:"{{eduText}}"}]},{G:"div",N:"ytp-tooltip-image"},{G:"div",N:"ytp-tooltip-title",W:[{G:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"g",
W:[{G:"rect",X:{fill:"none",height:"24",width:"24",x:"0"}}]},{G:"g",W:[{G:"g",W:[{G:"polygon",X:{points:"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"}},{G:"polygon",X:{points:"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"}},{G:"path",X:{d:"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"}}]}]}]},{G:"span",ra:"{{title}}"}]},{G:"span",N:"ytp-tooltip-text",
ra:"{{text}}"}]},{G:"div",N:"ytp-tooltip-bg",W:[{G:"div",N:"ytp-tooltip-duration",ra:"{{duration}}"}]}]});var c=this;this.api=a;this.Qa=b;this.env=this.api.V();this.La=this.env.u;this.bg=this.Da("ytp-tooltip-bg");this.Xa=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.oa=function(d){(d=g.yO?d.relatedTarget:Gz(d))&&g.zf(c.j,d)||c.Nn()};
this.D=function(d){3===c.type&&c.Nn();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.D),d.addEventListener("mouseout",c.oa),d.removeEventListener("focus",c.D),d.addEventListener("blur",c.oa),aQa(c,d,2))};
this.ya=function(){c.Nn()};
this.j=null;this.I=new g.QQ(this,100);this.type=null;this.Z=!1;this.u=null;this.C=NaN;this.B="";this.LJ=this.api.jb().getPlayerSize().width;this.T=!0;this.scale=1;this.J=160;this.Ja=90;this.Aa=new g.Ip(this.x4,250,this);this.Ga=new g.Ip(this.Nn,5E3,this);g.E(this,this.I);g.E(this,this.Aa);g.E(this,this.Ga);bK&&(a=this.Da("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));this.env.K("web_big_boards")&&(this.J=243,this.Ja=141)};
mU=function(a){a.element.setAttribute("aria-live","polite")};
dQa=function(a,b,c,d,e,f,h,l,m){if(!a.La||a.env.T){3===a.type&&a.Nn();1!==a.type&&(g.Op(a.element,"ytp-tooltip ytp-bottom"),(a.env.K("web_big_boards")||a.env.K("web_modern_scrubber")&&a.api.isInline())&&g.Qp(a.element,"ytp-rounded-tooltip"),a.type=1,a.T&&a.I.show(),a.u&&a.u.dispose(),a.u=a.api.Hj(),a.u&&a.u.subscribe("l",a.iW,a));if(m){var n=g.Sm(a.bg).height||90;a.Xa.style.bottom=n+2+"px"}a.update({text:d,title:null!=h?h:"",eduText:null!=m?m:""});g.Up(a.text,"ytp-tooltip-text-no-title",1===a.type&&
!h);a.env.K("web_modern_scrubber")&&a.api.isInline()&&g.Qp(a.text,"ytp-modern-tooltip-text");g.Up(a.element,"ytp-text-detail",!!e);d=-1;a.u&&(d=SL(a.u,a.J*a.scale),a.env.K("web_l3_storyboard")&&4===a.u.levels.length&&(d=a.u.levels.length-1),d=Sya(a.u,d,c));bQa(a,d);if(l)switch(c=g.Sm(a.element).width,l){case 1:a.title.style.right="0";a.title.style.textAlign="left";break;case 2:a.title.style.right=c+"px";a.title.style.textAlign="right";break;case 3:a.title.style.right=c/2+"px",a.title.style.textAlign=
"center"}cQa(a,!!e,b,f)}};
g.XV=function(a){1===a.type&&a.Nn()};
g.ZS=function(a,b){if(a.La)return function(){};
b.addEventListener("mouseover",a.D);b.addEventListener("focus",a.D);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Nn();b.removeEventListener("mouseover",a.D);b.removeEventListener("focus",a.D)}};
zU=function(a,b,c){if(a.type)if(3===a.type)a.Nn();else return;aQa(a,b,3,c)};
aQa=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.bA("showElementTooltip called with non-element.",b.toString()),g.CD(a);else{isNaN(a.C)||(a.C=NaN,a.bg.style.background="");a.j=b;a.Z=!!d;d?a.B=d:(a.B=b.getAttribute("title"),b.removeAttribute("title"));g.Op(a.element,"ytp-tooltip");g.Qp(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.Up(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Up(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.ya);a.T&&(eQa(a),a.I.show(0))}};
eQa=function(a){if(a.j){var b=a.j.getAttribute("data-tooltip-text");if(a.B&&a.j.getAttribute("aria-label")!==a.B)var c=a.B;var d=a.j.getAttribute("aria-keyshortcuts"),e=a.j.getAttribute("data-title-no-tooltip");d&&e&&(c=g.lO("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.Z){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.B,duration:c});d=d.getAttribute("data-preview");e=a.J*a.scale;var f=
a.Ja*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.Rp(a.element,["ytp-text-detail","ytp-preview"]);g.Up(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.B),g.Tp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);cQa(a,!!b)}};
cQa=function(a,b,c,d){var e=Math.min(a.LJ,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Qa.Uv(a.element,a.j,c,1===a.type,d);a.element.style.top?g.Qp(a.element,"ytp-bottom"):a.element.style.bottom&&g.Qp(a.element,"ytp-top");3===a.type&&a.Ga.start()};
$S=function(a){a.j&&!a.Z&&a.j.hasAttribute("title")&&(a.B=a.j.getAttribute("title")||"",a.j.removeAttribute("title"),a.T&&eQa(a))};
bQa=function(a,b){g.Up(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.C)){a.C=b;b=a.J*a.scale;var c=a.Ja*a.scale,d=Oya(a.u,a.C,b);gOa(a.bg,d,b,c,!0);a.Aa.start()}};
fQa=function(a){var b=a.j;3===a.type&&a.Ga.stop();a.api.removeEventListener("appresize",a.ya);a.Z||b.setAttribute("title",a.B);a.B="";a.j=null};
hQa=function(a,b){g.U.call(this,{G:"button",Ia:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.fK(a.V()))},W:[{G:"div",N:"ytp-watch-later-icon",ra:"{{icon}}"},{G:"div",N:"ytp-watch-later-title",ra:"Watch later"}]});this.F=a;this.u=b;this.icon=null;this.visible=this.isRequestPending=this.j=!1;this.tooltip=b.Ic();mU(this.tooltip);a.sb(this.element,this,28665);this.Ra("click",this.onClick,this);this.S(a,"videoplayerreset",this.Jv);
this.S(a,"appresize",this.UA);this.S(a,"videodatachange",this.UA);this.S(a,"presentingplayerstatechange",this.UA);this.UA();a=this.F.V();var c=g.Qz("yt-player-watch-later-pending");a.C&&c?(owa(),gQa(this)):this.Pa(2);g.Up(this.element,"ytp-show-watch-later-title",g.fK(a));g.bb(this,g.ZS(b.Ic(),this.element))};
iQa=function(a){var b=a.F.getPlayerSize(),c=a.F.V(),d=a.F.getVideoData(),e=g.fK(c)&&g.KS(a.F)&&g.S(a.F.Cb(),128);a=c.K("shorts_mode_to_player_api")?a.F.Sb():a.u.Sb();var f=c.B;if(b=c.hm&&240<=b.width&&!d.isAd())if(d.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){b=!0;var h,l,m=null==(h=d.kf)?void 0:null==(l=h.embedPreview)?void 0:l.thumbnailPreviewRenderer;m&&(b=!!m.addToWatchLaterButton);if(g.lK(d.V())){var n,p;(h=null==(n=d.jd)?void 0:null==(p=n.playerOverlays)?void 0:p.playerOverlayRenderer)&&
(b=!!h.addToMenu)}var q,r,v,x;if(null==(x=g.K(null==(q=d.jd)?void 0:null==(r=q.contents)?void 0:null==(v=r.twoColumnWatchNextResults)?void 0:v.desktopOverlay,nM))?0:x.suppressWatchLaterButton)b=!1}else b=d.Qk;return b&&!e&&!(d.D&&c.Z)&&!a&&!f};
jQa=function(a,b){g.lU(g.yK(a.F.V()),"wl_button",function(){owa({videoId:b});window.location.reload()})};
gQa=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Pa(3);var b=a.F.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.F.Mm(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Pa(2);a.F.V().I&&a.F.Na("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Pa(1);a.F.V().u&&zU(a.tooltip,a.element);a.F.V().I&&a.F.Na("WATCH_LATER_VIDEO_ADDED")};
tR(c,b).then(d,function(){a.isRequestPending=!1;kQa(a,"An error occurred. Please try again later.")})}};
kQa=function(a,b){a.Pa(4,b);a.F.V().I&&a.F.Na("WATCH_LATER_ERROR",b)};
lQa=function(a,b){if(b!==a.icon){switch(b){case 3:var c=qMa();break;case 1:c=gQ();break;case 2:c={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",
xc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.YV=function(a){g.eU.call(this,a);var b=this;this.rG=(this.oq=g.fK(this.api.V()))&&(this.api.V().u||gz()||ez());this.QK=48;this.RK=69;this.Co=null;this.Xs=[];this.Qc=new g.hU(this.api);this.Ou=new AU(this.api);this.Fh=new g.U({G:"div",N:"ytp-chrome-top"});this.hE=[];this.tooltip=new g.WV(this.api,this);this.backButton=this.Dz=null;this.channelAvatar=new VMa(this.api,this);this.title=new VV(this.api,this);this.gi=new g.ZP({G:"div",N:"ytp-chrome-top-buttons"});this.Bi=this.shareButton=this.Jn=null;
this.Wi=new PMa(this.api,this,this.Fh.element);this.overflowButton=this.Bh=null;this.dh="1"===this.api.V().controlsType?new TPa(this.api,this,this.Ve):null;this.contextMenu=new g.xU(this.api,this,this.Qc);this.BK=!1;this.IF=new g.U({G:"div",X:{tabindex:"0"}});this.HF=new g.U({G:"div",X:{tabindex:"0"}});this.uD=null;this.oO=this.nN=this.pF=!1;var c=a.jb(),d=a.V(),e=a.getVideoData();this.oq&&(g.Qp(a.getRootNode(),"ytp-embed"),g.Qp(a.getRootNode(),"ytp-embed-playlist"),this.rG&&(g.Qp(a.getRootNode(),
"ytp-embed-overlays-autohide"),g.Qp(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.QK=60,this.RK=89);a.V().B&&g.Qp(a.getRootNode(),"ytp-embed-pfl");this.api.V().u&&(g.Qp(a.getRootNode(),"ytp-mobile"),this.api.V().T&&g.Qp(a.getRootNode(),"ytp-embed-mobile-exp"));this.kf=e&&e.kf;g.E(this,this.Qc);g.NS(a,this.Qc.element,4);g.E(this,this.Ou);g.NS(a,this.Ou.element,4);e=new g.U({G:"div",N:"ytp-gradient-top"});g.E(this,e);g.NS(a,e.element,1);this.KP=new g.QQ(e,250,!0,100);g.E(this,this.KP);
g.E(this,this.Fh);g.NS(a,this.Fh.element,1);this.JP=new g.QQ(this.Fh,250,!0,100);g.E(this,this.JP);g.E(this,this.tooltip);g.NS(a,this.tooltip.element,4);var f=new QNa(a);g.E(this,f);g.NS(a,f.element,5);f.subscribe("show",function(n){b.Op(f,n)});
this.hE.push(f);this.Dz=new NU(a,this,f);g.E(this,this.Dz);d.rl&&(this.backButton=new LMa(a),g.E(this,this.backButton),this.backButton.Ea(this.Fh.element));this.oq||this.Dz.Ea(this.Fh.element);g.E(this,this.channelAvatar);this.channelAvatar.Ea(this.Fh.element);g.E(this,this.title);this.title.Ea(this.Fh.element);this.oq&&(e=new fOa(this.api,this),g.E(this,e),e.Ea(this.Fh.element));g.E(this,this.gi);this.gi.Ea(this.Fh.element);var h=new g.RU(a,this);g.E(this,h);g.NS(a,h.element,5);h.subscribe("show",
function(n){b.Op(h,n)});
this.hE.push(h);this.Jn=new hQa(a,this);g.E(this,this.Jn);this.Jn.Ea(this.gi.element);this.shareButton=new g.QU(a,this,h);g.E(this,this.shareButton);this.shareButton.Ea(this.gi.element);this.Bi=new g.yU(a,this);g.E(this,this.Bi);this.Bi.Ea(this.gi.element);this.oq&&this.Dz.Ea(this.gi.element);g.E(this,this.Wi);this.Wi.Ea(this.gi.element);d.Tn&&(e=new TU(a),g.E(this,e),g.NS(a,e.element,4));d.B||(e=new QMa(a,this,this.Wi),g.E(this,e),e.Ea(this.gi.element));this.Bh=new MNa(a,this);g.E(this,this.Bh);
g.NS(a,this.Bh.element,5);this.Bh.subscribe("show",function(){b.Op(b.Bh,b.Bh.ej())});
this.hE.push(this.Bh);this.overflowButton=new g.MU(a,this,this.Bh);g.E(this,this.overflowButton);this.overflowButton.Ea(this.gi.element);this.dh&&g.E(this,this.dh);"3"===d.controlsType&&(e=new PU(a,this),g.E(this,e),g.NS(a,e.element,9));g.E(this,this.contextMenu);this.contextMenu.subscribe("show",this.LY,this);e=new kR(a,new gU(a));g.E(this,e);g.NS(a,e.element,4);this.IF.Ra("focus",this.h3,this);g.E(this,this.IF);this.HF.Ra("focus",this.j3,this);g.E(this,this.HF);var l;(this.xq=d.ph?null:new g.JU(a,
c,this.contextMenu,this.Ve,this.Qc,this.Ou,function(){return b.Il()},null==(l=this.dh)?void 0:l.Kc))&&g.E(this,this.xq);
this.oq||(this.api.K("web_player_enable_featured_product_banner_on_desktop")&&(this.wT=new sNa(this.api,this),g.E(this,this.wT),g.NS(a,this.wT.element,4)),this.MX=new cOa(this.api,this),g.E(this,this.MX),g.NS(a,this.MX.element,4));this.bY=new YPa(this.api,this);g.E(this,this.bY);g.NS(a,this.bY.element,4);if(this.oq){var m=new yNa(a,this.api.V().tb);g.E(this,m);g.NS(a,m.element,5);m.subscribe("show",function(n){b.Op(m,n)});
c=new CNa(a,this,m);g.E(this,c);g.NS(a,c.element,4)}this.Ws.push(this.Qc.element);this.S(a,"fullscreentoggled",this.Hq);this.S(a,"offlineslatestatechange",function(){b.api.AC()&&QT(b.Ve,128,!1)});
this.S(a,"cardstatechange",function(){b.fl()});
this.S(a,"resize",this.P5);this.S(a,"videoplayerreset",this.Jv);this.S(a,"showpromotooltip",this.n6)};
mQa=function(a){var b=a.api.V(),c=g.S(a.api.Cb(),128);return b.C&&c&&!a.api.isFullscreen()};
nQa=function(a){if(a.Wg()&&!a.Sb()&&a.Bh){var b=a.api.K("web_player_hide_overflow_button_if_empty_menu");!a.Jn||b&&!iQa(a.Jn)||NNa(a.Bh,a.Jn);!a.shareButton||b&&!XNa(a.shareButton)||NNa(a.Bh,a.shareButton);!a.Bi||b&&!lNa(a.Bi)||NNa(a.Bh,a.Bi)}else{if(a.Bh){b=a.Bh;for(var c=g.t(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.Jn&&!g.zf(a.gi.element,a.Jn.element)&&a.Jn.Ea(a.gi.element);a.shareButton&&!g.zf(a.gi.element,a.shareButton.element)&&a.shareButton.Ea(a.gi.element);
a.Bi&&!g.zf(a.gi.element,a.Bi.element)&&a.Bi.Ea(a.gi.element)}};
oQa=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Km(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=oQa(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};
pQa=function(a,b,c){if(a.api.V().K("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.uD){if(!(b=!b)){var f,h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)&&"dtip-edu-player-touchcaptions"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.uD=new RNa(d,a,a.api),g.E(a,a.uD),g.NS(a.api,
a.uD.element,9));var m;null==(m=a.uD)||VNa(m,d,c)}}};
g.ZV=function(a){g.CT.call(this,a);this.chrome=null;this.load()};
$V=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.M)()-f).toFixed(),shost:g.Ui(a),trigger:b};qQa(h,a);c&&c(h);d&&!l&&d(new PK("pathprobe.net",h))}
var f=(0,g.M)();g.Hy(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
qQa=function(a,b){var c;(null==(c=window.performance)?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())};
aW=function(a){g.C.call(this);var b=this;this.Y=a;this.j=new Map;this.C=[];this.u=this.Y.experiments.ob("html5_onesie_trusted_hosts_for_all")||!HJ();this.ea=g.gJ(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.T=new g.Ip(this.J,this.ea,this);this.I=-1;this.Ne={h7a:function(){return b.j},
m7a:function(){return b.D},
i7a:function(){return rQa}};
g.E(this,this.T);sQa(this,g.Qz("yt-player-bandaid-host"));this.D=this.load();this.ea&&this.D.then(function(){b.J()})};
sQa=function(a,b){var c=null==b?void 0:b.primary;a.B(0,c);c=c?tQa(c):void 0;a.B(2,c);a.B(1,null==b?void 0:b.secondary)};
bW=function(a,b){return new g.DF("https://"+b+a.Y.Qk.baseUrl)};
uQa=function(a,b){a="https://"+FF(b.location)+"/initplayback?c="+g.rJ(a.Y)+"&owc=1";$V(a,"pw",function(c){c.ht=b.j})};
cW=function(a,b,c,d){$V("https://"+b+"/videoplayback?probe=1",c,function(e){!d.K("html5_onesie_host_racing")||d.videoData.isLivePlayback||d.K("html5_onesie_probe_ec_hosts")||d.sG||d.sU();a.C.push(e)},function(e){a.C.push(e.details)})};
tQa=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
wQa=function(a,b){var c,d,e,f,h,l;return g.A(function(m){if(1==m.j){c=bW(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.y(m,Ky(c.Ze(),d),2)}e=m.u;if(200!==e.xhr.status||!e.xhr.responseText)return m.return(Promise.reject(new g.bA("b204258371_no_host",c.Ze(),e.xhr.status)));f=new g.DF(e.xhr.responseText);
h=FF(f);l=f.get("ms");f=bW(a,h);f.set("ms",l);return h&&vQa(h)?2!==b||dW(h)?m.return(f):m.return(Promise.reject(new g.bA("b204258371_untrusted",h,l))):m.return(Promise.reject(new g.bA("b204258371_invalid",h,l)))})};
xQa=function(a){var b=a.C;a.C=[];return b};
vQa=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
dW=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
yQa=function(a,b){this.location=a;this.j=b};
g.eW=function(a){this.tag=a};
AQa=function(a,b){zQa.apply(null,[6,a,b].concat(g.u(g.ya.apply(2,arguments))))};
BQa=function(a,b){zQa.apply(null,[5,a,b].concat(g.u(g.ya.apply(2,arguments))))};
zQa=function(a,b,c){var d=g.ya.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.CD(new (Function.prototype.bind.apply(g.bA,[null,f].concat(g.u(d)))),e);d.unshift(f);d=d.join(", ");e=CQa.get(b);if(!e){e="ytplog."+b;f=5;try{window.localStorage&&!isNaN(+window.localStorage[e])&&(f=+window.localStorage[e]),window.sessionStorage&&!isNaN(+window.sessionStorage[e])&&(f=+window.sessionStorage[e])}catch(h){}CQa.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
fW=function(a,b,c,d){var e=this;this.policy=a;this.gb=b;this.C=void 0===d?!1:d;this.j=0;this.u=null;this.Le=[];this.B=null;this.Ne={Om:function(){return e.gb}};
(this.length=c?c:0)?1!==this.gb.length||this.gb[0].u||(this.gb[0].u=this.length):1===this.gb.length||g.Zl(this.gb,function(f){return!!f.range})};
gW=function(a,b,c){a.u&&(MF(a.u,b),b=a.u,a.u=null);for(var d=!1,e=!1,f=0,h=0,l=g.t(a.gb),m=l.next();!m.done;m=l.next()){m=m.value;if(a.C&&m.range&&c)break;if(m.range&&f+m.u<=a.j)f+=m.u;else{if(ZG(m)&&!c&&a.j+b.totalLength-h<f+m.u){a.u=b.split(h).Wk;break}var n=3===m.type||4===m.type;a:{var p=a;var q=a.j-f,r=n&&d&&!e&&1===b.j.length,v=b.totalLength-h;m.range&&(v=Math.min(m.u-q,v));q=new XG(m.type,m.j,m.range,"reslice"+m.D,m.Ma,m.startTime,m.duration,m.Ob+q,v,m.range?m.Ob+q+v===m.range.length:!!c,m.clipId);
var x=NF(b,h,v),z=void 0;if(r)for(z=new LF([]),r=0;r<p.Le.length;r++)MF(z,p.Le[r].j);r=new sH(q,x,z);if(p.policy.useUmp&&p.Le.length&&(q=uH(p.Le[p.Le.length-1],r))){p.Le[p.Le.length-1]=q;p=v;break a}p.Le.push(r);p=v}a.j+=p;h+=p;f+=m.u;1===m.type&&(d=!0);n&&(e=!0);a.C&&!m.range&&c&&(a.gb.shift(),a.j=0);if(h===b.totalLength)break}}};
DQa=function(a){return a.length-a.j+a.Le.reduce(function(b,c){return b+c.j.totalLength},0)};
hW=function(a){g.C.call(this);var b=this;this.C=a;this.logger=new g.eW("onesie");this.Xc=new Map;this.B=!1;this.j=this.Sa=null;this.u=!1;this.Ne={z7a:function(c){var d;return null==(d=b.Xc.get(c))?void 0:d.Zd}}};
EQa=function(a,b,c){a.Xc.get(b).Ie=c};
jW=function(a,b){a.Xc.has(b)&&(iW?a.Xc.get(b).Cq=[]:a.Xc.get(b).Le=new LF,FQa(a,b))};
GQa=function(a){for(var b=g.t(a.Xc),c=b.next();!c.done;c=b.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;d.Ie||jW(a,c)}};
HQa=function(a,b){b=a.Xc.get(b);if(!b)return 0;a=0;if(0<b.gb.length){b=g.t(b.gb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.OG.length)for(c=g.t(b.OG),d=c.next();!d.done;d=c.next())a+=d.value.Pq||0;return a+b.KU};
IQa=function(a,b){if(!iW){var c;return(null==(c=a.Xc.get(b))?void 0:c.Le.totalLength)||0}var d;a=null==(d=a.Xc.get(b))?void 0:d.Cq;if(!a||!a.length)return 0;for(b=d=0;b<a.length;b++)d+=a[b].data.totalLength;return d};
JQa=function(a,b){if(iW){var c;return!(null==(c=a.Xc.get(b))||!c.Cq.length)}var d;return!(null==(d=a.Xc.get(b))||!d.Le.totalLength)};
KQa=function(a,b){var c=a.Xc.get(b),d=HQa(a,b),e=!d&&!!c.bytesReceived,f=a.Qh(b);return e&&a.B&&void 0!==f?f:(e||c.bytesReceived===d)&&c.Qx+IQa(a,b)===c.bytesReceived};
LQa=function(a,b,c,d){c.gb.push.apply(c.gb,g.u(d));if(c.Zd){a=g.t(d);for(var e=a.next();!e.done;e=a.next())b=void 0,d=c.Zd,e=e.value,d.gb.push(e),d.length+=(null==(b=e.range)?void 0:b.length)||0}else c.Zd=new fW(a.j,[].concat(g.u(c.gb)),HQa(a,b),!(null==(e=a.j)||!e.gA))};
MQa=function(a,b,c,d){var e,f=null==(e=a.Sa)?void 0:e.I.get(b);if(!f)return[];if(c.Xm){var h;return(null==(h=f.Uu(0,d))?void 0:h.gb)||[]}if(f.Ym()){if(0>c.Oz||0>c.At||0>c.durationMs||0>c.startMs||0>c.Pq)return jW(a,b),[];b=VG(c.Oz,c.Pq);var l;if(null==(l=a.j)?0:l.Jf){var m=c.AN||0;var n=b.length-m}return[new XG(3,f,b,"makeSliceInfosMediaBytes",c.At-1,c.startMs/1E3,c.durationMs/1E3,m,n,void 0,d)]}if(0>c.At)return jW(a,b),[];var p;return(null==(p=a.Sa)?0:p.fd)?(a=f.Xj,[new XG(3,f,void 0,"makeSliceInfosMediaBytes",
c.At,void 0,a,void 0,a*f.info.dc,!0,d)]):[]};
NQa=function(a,b,c){a.Sa=b;a.j=c;b=g.t(a.Xc);for(c=b.next();!c.done;c=b.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;for(var e=g.t(d.AX),f=e.next();!f.done;f=e.next())f=MQa(a,c,f.value),LQa(a,c,d,f)}};
OQa=function(a,b,c){(a=a.Xc.get(b))&&!a.Vg&&(iW?(b=0<a.Cq.length?a.Cq[a.Cq.length-1]:null,!b||b.qL?a.Cq.push({data:new LF([QF(c)]),qL:!1}):MF(b.data,c)):MF(a.Le,c),a.bytesReceived+=c.totalLength,a.CO=!0)};
FQa=function(a,b){if((b=a.Xc.get(b))&&!b.Vg){b.Vg=!0;b.Ie&&b.Ie();a:{b=g.t(a.Xc.values());for(var c=b.next();!c.done;c=b.next())if(!c.value.Vg){b=!1;break a}b=!0}b&&a.C.UV()}};
kW=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
PQa=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.u(new Uint8Array(c))));a.close()}return b};
QQa=function(){for(var a=lW.length;4>a;a++){var b=g.qf("VIDEO");b.load();lW.push(new g.pT(b))}};
mW=function(a){g.C.call(this);this.app=a;this.j=null;this.u=1};
RQa=function(){};
g.nW=function(a,b,c,d){d=void 0===d?!1:d;FO.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
SQa=function(a,b,c){var d=b.getVideoData(),e=a.getVideoData();if(b.getPlayerState().isError())return{msg:"player-error"};b=e.C;if(a.xk()>c/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(c))return{msg:"live-infinite"};(a=a.qe())&&a.isView()&&(a=a.mediaElement);if(a&&12<a.Vu().length&&g.AM(d))return{msg:"played-ranges"};if(!d.C)return null;if(!d.C.j||!b.j)return{msg:"non-dash"};if(d.C.videoInfos[0].containerType!==b.videoInfos[0].containerType)return{msg:"container"};if(g.AM(e)&&g.AM(d))return{msg:"content-protection"};
e=b.j[0];d=d.C.j[0];a=e.audio;c=d.audio;return a.sampleRate===c.sampleRate||g.eI?(a.numChannels||2)!==(c.numChannels||2)?{msg:"channel-count"}:null:{msg:"sample-rate",ci:e.itag,cr:a.sampleRate,ni:d.itag,nr:c.sampleRate}};
TQa=function(a,b,c,d,e){e=void 0===e?0:e;g.C.call(this);var f=this;this.policy=a;this.j=b;this.u=c;this.T=e;this.C=this.B=null;this.currentVideoDuration=this.D=-1;this.I=!1;this.rp=new aK;this.fm=d-1E3*b.Jd();this.rp.then(void 0,function(){});
this.timeout=new g.Ip(function(){f.Eg("timeout")},1E4);
g.E(this,this.timeout);this.J=isFinite(d);this.status={status:0,error:null}};
YQa=function(a){var b,c,d,e,f,h,l,m,n;return g.A(function(p){if(1==p.j){if(a.isDisposed())return p.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.oW.Xq("gtfta");return g.y(p,a.rp,2)}g.oW.Sp(b);c=a.j.qe();if(c.Qh())return a.Eg("ended_in_finishTransition"),p.return(Promise.reject(Error(a.status.error||"")));if(!a.C||!wI(a.C))return a.Eg("next_mse_closed"),p.return(Promise.reject(Error(a.status.error||"")));if(a.u.zs()!==a.C)return a.Eg("next_mse_mismatch"),p.return(Promise.reject(Error(a.status.error||
"")));d=UQa(a);e=d.MV;f=d.hT;h=d.LV;a.j.rj(!1,!0);l=VQa(c,e,h,!a.u.getVideoData().isAd());a.u.setMediaElement(l);a.J&&(a.u.seekTo(a.u.getCurrentTime()+.001,{bv:!0,IP:3,Je:"gapless_pseudo"}),l.play()||Oy());m=c.lc();m.cpn=a.j.getVideoData().clientPlaybackNonce;m.st=""+e;m.et=""+h;a.u.xa("gapless",m);a.j.xa("gaplessTo",{cpn:a.u.getVideoData().clientPlaybackNonce});n=a.j.getPlayerType()===a.u.getPlayerType();WQa(a.j,f,!1,n,a.u.getVideoData().clientPlaybackNonce);WQa(a.u,a.u.getCurrentTime(),!0,n,a.j.getVideoData().clientPlaybackNonce);
g.Mf(function(){!a.u.getVideoData().kb&&g.RO(a.u.getPlayerState())&&XQa(a.u)});
pW(a,6);a.dispose();return p.return(Promise.resolve())})};
bRa=function(a){if(a.u.getVideoData().C){ZQa(a.u,a.C);pW(a,3);$Qa(a);var b=aRa(a),c=b.LX;b=b.c9;c.subscribe("updateend",a.kx,a);b.subscribe("updateend",a.kx,a);a.kx(c);a.kx(b)}};
$Qa=function(a){a.j.unsubscribe("internalvideodatachange",a.uu,a);a.u.unsubscribe("internalvideodatachange",a.uu,a);a.j.unsubscribe("mediasourceattached",a.uu,a);a.u.unsubscribe("statechange",a.yd,a)};
VQa=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.nW(a,b,c,d)};
pW=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.rp.resolve(void 0))};
UQa=function(a){var b=a.j.qe();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:qW(a.j,!0);c=Math.min(a.fm/1E3,c)+b;var d=a.J?100:0;a=c-a.u.xk()+d;return{E2:b,MV:a,hT:c,LV:Infinity}};
aRa=function(a){return{LX:a.B.j.Ed,c9:a.B.u.Ed}};
rW=function(a){g.C.call(this);var b=this;this.app=a;this.D=this.u=this.j=null;this.J=!1;this.C=null;this.T=new RQa;this.B=null;this.I=function(){g.Mf(function(){cRa(b)})}};
dRa=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.vv()||sW(a);a.C=new aK;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.Rc(),m=l.getVideoData().isLivePlayback?Infinity:1E3*qW(l,!0);f>m&&(f=m-200,a.J=!0);h&&l.getCurrentTime()>=f/1E3?a.I():(a.u=l,h&&(h=f,f=a.u,a.app.Ta.addEventListener(g.ZD("vqueued"),a.I),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.D=new g.XD(h,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(a.D)));h=d/=1E3;f=b.getVideoData().j;d&&f&&a.u&&(l=d,m=0,
b.getVideoData().isLivePlayback&&(h=Math.min(c/1E3,qW(a.u,!0)),m=Math.max(0,h-a.u.getCurrentTime()),l=Math.min(d,qW(b)+m)),h=fwa(f,l)||d,h!==d&&a.j.xa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Si=!0;d.getVideoData().fb=!0;g.tW(d,!0);f={};a.u&&(f=g.uW(a.u.zc.provider),h=a.u.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.xa("queued",f);0!==b&&d.seekTo(b+.01,{bv:!0,IP:3,Je:"videoqueuer_queued"});a.B=new TQa(a.T,a.app.Rc(),a.j,c,e);c=a.B;Infinity!==c.status.status&&
(pW(c,1),c.j.subscribe("internalvideodatachange",c.uu,c),c.u.subscribe("internalvideodatachange",c.uu,c),c.j.subscribe("mediasourceattached",c.uu,c),c.u.subscribe("statechange",c.yd,c),c.j.subscribe("newelementrequired",c.nW,c),c.uu());return a.C};
cRa=function(a){var b,c,d;g.A(function(e){switch(e.j){case 1:if(a.isDisposed()||!a.C||!a.j)return e.return();a.J&&vW(a.app.Rc(),!0,!1);b=null;if(!a.B){e.Ka(2);break}g.pa(e,3);return g.y(e,YQa(a.B),5);case 5:g.ra(e,2);break;case 3:b=c=g.sa(e);case 2:if(!a.j)return e.return();g.oW.IH("vqsp",function(){wW(a.app,a.j)});
g.oW.IH("vqpv",function(){a.app.playVideo()});
b&&eRa(a.j,b.message);d=a.C;sW(a);return e.return(d.resolve(void 0))}})};
sW=function(a){if(a.u){if(a.D){var b=a.u;a.app.Ta.removeEventListener(g.ZD("vqueued"),a.I);b.removeCueRange(a.D)}a.u=null;a.D=null}a.B&&(6!==a.B.status.status&&(b=a.B,Infinity!==b.status.status&&b.Eg("Canceled")),a.B=null);a.C=null;a.j&&a.j!==g.qS(a.app,1)&&a.j!==a.app.Rc()&&a.j.dispose();a.j=null;a.J=!1};
fRa=function(a){var b;return(null==(b=a.B)?void 0:b.currentVideoDuration)||-1};
gRa=function(a,b,c){if(a.vv())return"qine";var d;if(b.videoId!==(null==(d=a.j)?void 0:d.Ce()))return"vinm";if(0>=fRa(a))return"ivd";if(1!==c)return"upt";var e,f;null==(e=a.B)?f=void 0:f=5!==e.getStatus().status?"neb":null!=SQa(e.j,e.u,e.fm)?"pge":null;a=f;return null!=a?a:null};
hRa=function(){var a=Aoa();return!(!a||"visible"===a)};
jRa=function(a){var b=iRa();b&&document.addEventListener(b,a,!1)};
kRa=function(a){var b=iRa();b&&document.removeEventListener(b,a,!1)};
iRa=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[vz+"VisibilityState"])return"";a=vz+"visibilitychange"}return a};
lRa=function(){g.dE.call(this);var a=this;this.fullscreen=0;this.pictureInPicture=this.j=this.u=this.inline=!1;this.B=function(){a.Bg()};
jRa(this.B);this.C=this.getVisibilityState(this.wh(),this.isFullscreen(),this.zg(),this.isInline(),this.Ty(),this.Ry())};
xW=function(a,b,c,d,e){e=void 0===e?[]:e;g.C.call(this);this.Y=a;this.Ec=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;this.u=new Map;if(e.length)for(this.j=e[0],a=g.t(e),b=a.next();!b.done;b=a.next())b=b.value,(c=b.hs())&&this.B.set(c,b.OB())};
mRa=function(a,b,c,d){if(a.j&&!(b>c)){b=new xW(a.Y,b,c,a.j,d);d=g.t(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.hs();e&&e!==a.j.hs()&&a.u.set(e,[c])}a.j.j.set(b.yy(),b)}};
oRa=function(a,b,c,d,e,f){return new nRa(c,c+(d||0),!d,b,a,new g.$L(a.Y,f),e)};
nRa=function(a,b,c,d,e,f,h){g.C.call(this);this.Ec=a;this.u=b;this.type=d;this.B=e;this.videoData=f;this.clipId=h;this.j=new Map};
pRa=function(a){this.end=this.start=a};
g.zW=function(a,b,c){g.C.call(this);var d=this;this.api=a;this.Y=b;this.va=c;this.ib="";this.Aa=new Map;this.Xa=new Map;this.Ja=new Map;this.C=new Map;this.B=[];this.T=[];this.D=new Map;this.Oc=new Map;this.ea=new Map;this.Dc=NaN;this.Tb=this.tb=null;this.uc=new g.Ip(function(){qRa(d,d.Dc)});
this.events=new g.bI(this);this.jc=g.gJ(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4;this.J=new g.Ip(function(){d.ya=!0;var e=d.va,f=d.jc;e.xa("sdai",{aftimeout:f});e.Kd(new PK("ad.fetchtimeout",{timeout:f}));rRa(d);d.kC(!1)},this.jc);
this.ya=!1;this.Ya=new Map;this.Xb=[];this.oa=null;this.ke=new Set;this.Ga=[];this.Lc=[];this.Nd=[];this.rd=[];this.j=void 0;this.kb=0;this.fb=!0;this.I=!1;this.La=[];this.Ld=new Set;this.je=new Set;this.Od=new Set;this.El=0;this.Z=null;this.Pb=new Set;this.Vd=0;this.Np=this.Wc=!1;this.u="";this.va.getPlayerType();sRa(this.va,this);this.Qa=this.Y.Rd();g.E(this,this.uc);g.E(this,this.events);g.E(this,this.J);yW(this)||(this.events.S(this.api,g.ZD("serverstitchedcuerange"),this.onCueRangeEnter),this.events.S(this.api,
g.$D("serverstitchedcuerange"),this.onCueRangeExit))};
wRa=function(a,b,c,d,e,f,h,l){var m=tRa(a,f,f+e);a.ya&&a.va.xa("sdai",{adaftto:1});a.Np&&a.va.xa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.va;h=void 0===h?f+e:h;f===h&&!e&&a.Y.K("html5_allow_zero_duration_ads_on_timeline")&&a.va.xa("sdai",{attl0d:1});f>h&&AW(a,{reason:"enterTime_greater_than_return",Ec:f,Dd:h});var p=1E3*n.Id();f<p&&AW(a,{reason:"enterTime_less_than_minSeekableTime",Ec:f,b8a:p});n=1E3*n.getDuration();h>n&&AW(a,{reason:"parent_return_greater_than_content_duration",Dd:h,a8a:n});
n=null;p=g.Jb(a.T,{Dd:f},function(q,r){return q.Dd-r.Dd});
0<=p&&(n=a.T[p],n.Dd>f&&uRa(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ga.length;p++){if(a.Ga[p].identifier===m.identifier){a.Ga.splice(p,1);break}}else if(m)return a.va.xa("sdai",{rejectAttl:1}),l&&!Wm(a.rd,function(q){return q===l})&&(a.va.xa("sdai",{rejectAdBreakAttl:1}),a.rd.push(l)),BW(a),"";
m="ss_childplayback_"+vRa++;b.cpn||(b.cpn=g.KD(16));p=b.cpn;b=new g.$L(a.Y,b);b.Nc=m;c={Nc:m,playerType:d,durationMs:e,Ec:f,Dd:h,cpn:p,videoData:b,V2:0,ssdaiAdsConfig:c};g.Nb(a.T,c,function(q,r){return q.Ec===r.Ec?q.durationMs-r.durationMs:q.Ec-r.Ec});
a.D.set(p,c);a.Oc.set(m,c);a.va.xa("sdai",{attlDone:h-f,acpn:p});l?c.Am=l:n?c.Am=n.Am:c.Am=c.cpn;if(f=c.Am)(d=a.ea.get(f))?(d.push(c),g.Lb(d,function(q,r){return q.Ec-r.Ec})):a.ea.set(f,[c]);
a.J.isActive()&&(a.ya=!1,a.J.stop(),rRa(a),a.kC(!0));return m};
CW=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
xRa=function(a,b,c){return new g.XD(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
yRa=function(a){return{cpn:a.va.getVideoData().clientPlaybackNonce,durationMs:0,Ec:0,playerType:1,Dd:0,videoData:a.va.getVideoData(),V2:0}};
FW=function(a,b,c){var d=a.I,e=yRa(a),f=a.u;a.u="";var h=b.nh-c.nh;.5<Math.abs(h)&&a.va.xa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});if(b.isAd&&c.isAd){if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}m&&l&&(a.api.ma("serverstitchedvideochange",l.Nc,l.Cr),a.va.xa("sdai",CW("a2a",l)),a.El++,DW(a,f)&&a.va.xa("sdai",{rsac:"a2a",sac:f,from:m.cpn,to:l.cpn}),EW(a.va,m,l,c.nh,b.nh,d,!!f))}else if(!b.isAd&&c.isAd){a.api.ma("serverstitchedvideochange");
a.va.xa("sdai",CW("a2c"));a.El=0;if(h=c.me)a.kb=h.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&(DW(a,f)&&a.va.xa("sdai",{rsac:"a2c",sac:f,from:n.cpn,to:e.cpn}),EW(a.va,n,e,c.nh,b.nh,d,!!f))}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.kb=0,a.api.ma("serverstitchedvideochange",p.Nc,p.Cr),a.va.xa("sdai",CW("c2a",p)),a.El=1,DW(a,f)&&a.va.xa("sdai",{rsac:"c2a",sac:f,from:e.cpn,to:p.cpn}),EW(a.va,e,p,c.nh,b.nh,d,!!f))}};
zRa=function(a,b){return a.Np?!1:yW(a)?!!a.Z:!!GW(a,1E3*b)};
ARa=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Jb(a.T,{Ec:c},function(e,f){return e.Ec-f.Ec});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.T[d],a.Dd>=c)?{Ao:a,sz:b}:{Ao:void 0,sz:b}};
GW=function(a,b){var c="";yW(a)?(c=b/1E3-a.aq(),c=a.va.Gy(c)):(b=BRa(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
BRa=function(a,b){a=g.t(a.C.values());for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
qRa=function(a,b){var c=a.Tb||a.api.Rc().getPlayerState();HW(a,!0);a.va.seekTo(b);a=a.api.Rc();b=a.getPlayerState();g.RO(c)&&!g.RO(b)?a.playVideo():g.QO(c)&&!g.QO(b)&&a.pauseVideo()};
HW=function(a,b){a.Dc=NaN;a.uc.stop();a.tb&&b&&CRa(a.tb);a.Tb=null;a.tb=null};
DRa=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.t(a.T),f=e.next();!f.done;f=e.next())f=f.value,(f.Ec<b||f.Dd>c)&&d.push(f);a.T=d;d=g.t(a.C.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.va.removeCueRange(e),a.C.delete(e.getId()),a.va.xa("sdai",{rmAdCR:1}));d=ARa(a,b/1E3);b=d.Ao;d=d.sz;if(b&&(d=1E3*d-b.Ec,e=b.Ec+d,b.durationMs=d,b.Dd=e,d=a.C.get(b.cpn))){e=g.t(a.B);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.Ec+b.durationMs:f.end===d.start&&(f.end=b.Ec);d.start=b.Ec;d.end=b.Ec+b.durationMs}if(b=ARa(a,c/1E3).Ao){var h;d="playback_timelinePlaybackId_"+b.Nc+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.Ec+"_parentReturnTimeMs_"+b.Dd;a.KC("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
ERa=function(a){a.ib="";a.Aa.clear();a.Xa.clear();a.Ja.clear();a.C.clear();a.B=[];a.T=[];a.D.clear();a.Oc.clear();a.ea.clear();a.Ya.clear();a.Xb=[];a.oa=null;a.ke.clear();a.Ga=[];a.Lc=[];a.Nd=[];a.rd=[];a.La=[];a.Ld.clear();a.je.clear();a.Od.clear();a.Pb.clear();a.ya=!1;a.j=void 0;a.kb=0;a.fb=!0;a.I=!1;a.El=0;a.Z=null;a.Vd=0;a.Wc=!1;a.Np=!1;DW(a,a.u)&&a.va.xa("sdai",{rsac:"resetAll",sac:a.u});a.u="";a.J.isActive()&&BW(a)};
GRa=function(a,b,c,d,e){if(!a.Np)if(g.FRa(a,c))a.Qa&&a.va.xa("sdai",{gdu:"undec",seg:c,itag:e});else return IW(a,b,c,d)};
IW=function(a,b,c,d){var e=a.Ya.get(c);if(!e){b+=a.aq();b=ARa(a,b,1);var f;b.Ao||2!==(null==(f=JW(a,c-1,null!=d?d:2))?void 0:f.YA)?e=b.Ao:e=a.Ya.get(c-1)}return e};
HRa=function(a){if(a.La.length)for(var b=g.t(a.La),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);c=g.t(a.C.values());for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);c=g.t(a.B);for(b=c.next();!b.done;b=c.next())a.va.removeCueRange(b.value);a.C.clear();a.B=[];a.Aa.clear();a.Xa.clear();a.Ja.clear();a.j||(a.fb=!0)};
JW=function(a,b,c,d){if(1===c){if(a.Y.K("html5_reset_daistate_on_audio_codec_change")&&d&&d!==a.ib&&(""!==a.ib&&(a.va.xa("sdai",{rstadaist:1,old:a.ib,"new":d}),a.Aa.clear()),a.ib=d),a.Aa.has(b))return a.Aa.get(b)}else{if(2===c&&a.Xa.has(b))return a.Xa.get(b);if(3===c&&a.Ja.has(b))return a.Ja.get(b)}};
JRa=function(a,b,c,d){if(d)for(d=0;d<a.B.length;){var e=a.B[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;IRa(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.va.removeCueRange(e);if(a.La.includes(e))a.onCueRangeExit(e);a.B.splice(d,1);continue}d++}else IRa(a,b,c)};
IRa=function(a,b,c){b=xRa(b,c);c=!0;g.Nb(a.B,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.B.length;){if(0<d){var e=a.B[d],f=a.B[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.va.removeCueRange(e):c=!1;a.B.splice(d,1);continue}}d++}if(c)for(a.va.addCueRange(b),b=a.va.CB("serverstitchedcuerange",36E5),b=g.t(b),c=b.next();!c.done;c=b.next())a.C.delete(c.value.getId())};
KW=function(a,b,c){if(void 0===c||!c){c=g.t(a.Xb);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.Xb.push(new pRa(b))}};
g.FRa=function(a,b){a=g.t(a.Xb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
uRa=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",X7a:b,Ec:c,Dd:d,O6a:e.Nc,P6a:(null==(f=e.videoData)?void 0:f.videoId)||"",L6a:e.durationMs,M6a:e.Ec,N6a:e.Dd};AW(a,b)};
AW=function(a,b){a=a.va;a.xa("timelineerror",b);a.Kd(new PK("dai.timelineerror",b))};
KRa=function(a,b){var c=[];a=a.ea.get(b);if(!a)return[];a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
LRa=function(a,b,c){var d=0;a=a.ea.get(c);if(!a)return-1;a=g.t(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
MRa=function(a,b){var c=[];a=a.ea.get(b);if(!a)return[];a=g.t(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
NRa=function(a,b){var c=0;a=a.ea.get(b);if(!a)return 0;a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Dd!==b.Ec&&c++;return c};
ORa=function(a,b,c){var d=!1;if(c&&(c=a.ea.get(c))){c=g.t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Dd!==e.Ec&&(e=e.cpn,b===e&&(d=!0),d&&!a.je.has(e)&&(a.va.xa("sdai",{decoratedAd:e}),a.je.add(e)))}};
rRa=function(a){a.Qa&&a.va.xa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Vd)+"_isTimeout_"+a.ya})};
tRa=function(a,b,c){if(a.Ga.length)for(var d={},e=g.t(a.Ga),f=e.next();!f.done;d={Tt:d.Tt},f=e.next()){d.Tt=f.value;f=1E3*d.Tt.startSecs;var h=1E3*d.Tt.Sg+f;if(b>f&&b<h||c>f&&c<h)return Wm(a.Nd,function(l){return function(m){return m.identifier===l.Tt.identifier}}(d))||(a.va.xa("sdai",{adskip:b}),a.Nd.push(d.Tt)),d.Tt}};
BW=function(a){a.ya=!1;a.J.isActive()&&rRa(a);a.J.stop();a.kC(!1)};
DW=function(a,b){return""!==b&&a.Y.experiments.ob("html5_ssdai_log_reset_skipping_ad_cpn")};
yW=function(a){return a.Y.experiments.ob("html5_ssdai_use_new_ad_report")};
LW=function(a,b,c){g.C.call(this);this.api=a;this.timeline=b;this.va=c;this.j=new Map;this.va.getPlayerType();this.va.eI(this)};
PRa=function(a,b){a=a.timeline.u.get(b);return(null==a?0:a.length)?a[0].yy():0};
QRa=function(a,b){var c=a.timeline.j;if(!c)return{clipId:"",lN:0};c=c.j;var d=Array.from(c.keys());g.Lb(d);var e=g.Jb(d,b);if(c=c.get(d[0>e?-1*(e+2):e]))for(c=g.t(c.segments),d=c.next();!d.done;d=c.next())if(d=d.value,d.yy()<=b&&d.QL()>b)return{clipId:d.hs()||"",lN:d.yy()};a.api.xa("ssap",{mci:1});return{clipId:"",lN:0}};
SRa=function(a,b,c){g.C.call(this);var d=this;this.api=a;this.Y=b;this.j=c;this.I=new Map;this.u=[];this.B=this.J=null;this.ea=NaN;this.D=this.C=null;this.T=new g.Ip(function(){RRa(d,d.ea)});
this.Z=[];this.oa=new g.Ip(function(){var e=d.Z.pop();if(e){var f=e.Nc,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.Z.length&&g.Jp(d.oa,4500))}});
this.events=new g.bI(this);c.getPlayerType();g.E(this,this.T);g.E(this,this.oa);g.E(this,this.events);this.events.S(this.api,g.ZD("childplayback"),this.onCueRangeEnter);this.events.S(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.S(this.api,"presentingplayerstatechange",this.Hi)};
WRa=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return MW(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Id();if(e<n)return MW(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Jd(),MW(a,m,h,l),"";n=null;for(var p=g.t(a.u),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.Ec&&e<q.Dd)return MW(a,"overlappingEnter",h,l),"";if(f<=q.Dd&&f>q.Ec)return MW(a,"overlappingReturn",h,l),"";if(f===q.Ec)return MW(a,"outOfOrder",h,l),"";e===q.Dd&&(n=q)}h="cs_childplayback_"+TRa++;l={me:NW(d,!0),fm:Infinity,target:null};var r={Nc:h,playerVars:b,playerType:c,durationMs:d,Ec:e,Dd:f,Tr:l};a.u=a.u.concat(r).sort(function(z,B){return z.Ec-B.Ec});
n?URa(a,n,{me:NW(n.durationMs,!0),fm:n.Tr.fm,target:r}):(b={me:NW(e,!1),fm:e,target:r},a.I.set(b.me,b),m.addCueRange(b.me));b=!0;if(a.j===a.api.Rc()&&(m=1E3*m.getCurrentTime(),m>=r.Ec&&m<r.Dd)){var v=a.api.Rc().getPlayerState(),x=m-r.Ec;Ff(function(){VRa(a,r,x/1E3,v)});
b=!1}b&&(a.Z.unshift(r),g.Jp(a.oa,0));return h};
NW=function(a,b){return new g.XD(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
XRa=function(a,b,c,d){a.B=d;a.api.yF(a.j,c,b)};
YRa=function(a,b,c,d){a.B=d;d=b.Nc;var e=b.playerVars,f=b.playerType;a.J=b;e&&a.api.enqueueVideoByPlayerVars(e,f,c,d)};
URa=function(a,b,c){var d=b.Tr;b.Tr=c;OW(a,b)&&(c=a.api.Rc(),d.me===a.B&&PW(a),c.removeCueRange(d.me),c.addCueRange(b.Tr.me))};
PW=function(a){a.J=null;a.B=null;a.api.vv()||a.api.clearQueue()};
ZRa=function(a,b){OW(a,b)||MW(a,"childPlaybackIsNotPresenting");return b.Dd===b.Ec+b.durationMs?(a=a.api.Rc(),b.Ec+1E3*a.getCurrentTime()):b.Dd};
$Ra=function(a,b){var c=0;a=g.t(a.u);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.Ec/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Ao:d,sz:b-e};c=f-d.Dd/1E3}return{Ao:null,sz:b-c}};
RRa=function(a,b){var c=a.D||a.api.Rc().getPlayerState();QW(a,!0);b=isFinite(b)?b:a.j.Wp();var d=$Ra(a,b);b=d.Ao;d=d.sz;var e=b&&!OW(a,b)||!b&&a.j!==a.api.Rc(),f=1E3*d;f=a.B&&a.B.start<=f&&f<=a.B.end;!e&&f||PW(a);b?VRa(a,b,d,c):aSa(a,d,c)};
aSa=function(a,b,c){var d=a.j,e=a.api.Rc();d!==e&&a.api.Nq();d.seekTo(b,{Je:"application_timelinemanager"});bSa(a,c)};
VRa=function(a,b,c,d){var e=OW(a,b);if(!e){b.playerVars.prefer_gapless=!0;var f=new g.$L(a.Y,b.playerVars);f.Nc=b.Nc;a.api.Rs(f,b.playerType)}f=a.api.Rc();e||f.addCueRange(b.Tr.me);f.seekTo(c,{Je:"application_timelinemanager"});bSa(a,d)};
bSa=function(a,b){a=a.api.Rc();var c=a.getPlayerState();g.RO(b)&&!g.RO(c)?a.playVideo():g.QO(b)&&!g.QO(c)&&a.pauseVideo()};
QW=function(a,b){a.ea=NaN;a.T.stop();a.C&&b&&CRa(a.C);a.D=null;a.C=null};
OW=function(a,b){a=a.api.Rc();return!!a&&a.getVideoData().Nc===b.Nc};
cSa=function(a){var b=a.u.find(function(e){return OW(a,e)});
if(b){var c=a.api.Rc();PW(a);var d=new g.KO(8);b=ZRa(a,b)/1E3;aSa(a,b,d);c.xa("forceParentTransition",{childPlayback:1});a.j.xa("forceParentTransition",{parentPlayback:1})}};
eSa=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.t(a.I),h=f.next();!h.done;h=f.next()){var l=g.t(h.value);h=l.next().value;l=l.next().value;l.fm>=d&&l.target&&l.target.Dd<=e&&(a.j.removeCueRange(h),a.I.delete(h))}d=b;e=c;f=[];h=g.t(a.u);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.Ec>=d&&l.Dd<=e){var m=a;m.J===l&&PW(m);OW(m,l)&&m.api.Nq()}else f.push(l);a.u=f;d=$Ra(a,b/1E3);b=d.Ao;d=d.sz;b&&(d*=1E3,dSa(a,b,d,b.Dd===b.Ec+b.durationMs?b.Ec+d:b.Dd));(b=$Ra(a,c/1E3).Ao)&&
MW(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.Nc+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.Ec+" parentReturnTimeMs="+b.Dd+"}.Child playbacks can only have duration updated not their start."))};
dSa=function(a,b,c,d){b.durationMs=c;b.Dd=d;d={me:NW(c,!0),fm:c,target:null};URa(a,b,d);OW(a,b)&&1E3*a.api.Rc().getCurrentTime()>c&&(b=ZRa(a,b)/1E3,c=a.api.Rc().getPlayerState(),aSa(a,b,c))};
MW=function(a,b,c,d){a.j.xa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
gSa=function(a){a&&"web"!==a&&fSa.includes(a)};
SW=function(a,b){g.C.call(this);var c=this;this.data=[];this.B=a||NaN;this.u=b||null;this.j=new g.Ip(function(){hSa(c);RW(c)});
g.E(this,this.j)};
hSa=function(a){var b=(0,g.M)();a.data.forEach(function(c){c.expire<b&&TW(a,c,!0)});
a.data=g.Rn(a.data,function(c){return!(c.expire<b)})};
TW=function(a,b,c){c&&a.u&&a.u(b.value)};
RW=function(a){a.j.stop();var b=Infinity;for(var c=g.t(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))};
UW=function(){g.C.call(this);this.j=new SW(5,null);g.E(this,this.j);this.u=new SW(15,null);g.E(this,this.u)};
iSa=function(a,b){return b?!!a.j.get(b):!1};
VW=function(){g.lq.call(this);this.D=new Map};
jSa=function(a){g.C.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.u=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.u.observe(a)};
mSa=function(a){g.U.call(this,{G:"div",Ia:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},W:[{G:"div",N:g.WW.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.kB=this.Da(g.WW.VIDEO_CONTAINER);this.Ez=new g.Em(0,0,0,0);this.kc=null;this.zH=new g.Em(0,0,0,0);this.gM=this.rN=this.qN=NaN;this.mG=this.vH=this.zO=this.QS=!1;this.YK=NaN;this.QM=!1;this.LC=null;this.MN=function(){b.element.focus()};
this.gH=function(){b.app.Ta.ma("playerUnderlayVisibilityChange","visible");b.kc.classList.remove(g.WW.VIDEO_CONTAINER_TRANSITIONING);b.kc.removeEventListener(zKa,b.gH);b.kc.removeEventListener("transitioncancel",b.gH)};
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.Dr("ytp-transparent");"0"===e.controlsType&&this.Dr("ytp-hide-controls");g.Qp(this.element,"ytp-exp-bottom-control-flexbox");e.K("enable_new_paid_product_placement")&&!g.GK(e)&&g.Qp(this.element,"ytp-exp-ppp-update");xoa(this.element,"version",kSa(a));this.OX=!1;this.FB=new g.He(NaN,NaN);lSa(this);this.S(a.Ta,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
lSa=function(a){function b(){a.kc&&XW(a);YW(a)!==a.QM&&a.resize()}
function c(h,l){a.Gs(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.zH=new g.Em(0,0,0,0);a.Ez=new g.Em(0,0,0,0)}
var f=a.app.Ta;f.addEventListener("initializingmode",e);f.addEventListener("videoplayerreset",d);f.addEventListener("videodatachange",c);f.addEventListener("presentingplayerstatechange",b);g.bb(a,function(){f.removeEventListener("initializingmode",e);f.removeEventListener("videoplayerreset",d);f.removeEventListener("videodatachange",c);f.removeEventListener("presentingplayerstatechange",b)})};
oSa=function(a){var b=g.qS(a.app);if(b=b?b.getVideoData():null){if(g.IM(b)||g.JM(b)||g.LM(b))return 16/9;if(tM(b)&&b.C.j)return a=b.C.videoInfos[0].video,nSa(a.width,a.height)}return(a=a.kc)?nSa(a.videoWidth,a.videoHeight):16/9};
pSa=function(a,b,c,d){var e=c,f=nSa(b.width,b.height);a.QS?e=c<f?Infinity:0:isNaN(a.gM)?isNaN(a.rN)||(e=a.rN):e=a.gM;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};
nSa=function(a,b){return 1>Math.abs(qSa*b-a)||1>Math.abs(qSa/a-b)?qSa:a/b};
YW=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.qS(a.app);if(!b||b.Mo())return!1;a=a.app.Ta.Cb();b=!g.S(a,2)||b&&b.getVideoData().fb;var c=g.S(a,1024);return a&&b&&!c&&!a.isCued()};
XW=function(a){var b="3"===a.app.V().controlsType&&!a.mG&&YW(a)&&!a.app.oz||!1;a.kc.controls=b;a.kc.tabIndex=b?0:-1;b?a.kc.removeEventListener("focus",a.MN):a.kc.addEventListener("focus",a.MN)};
rSa=function(a){var b=a.Ij(),c=1,d=!1,e=pSa(a,b,a.getVideoAspectRatio()),f=a.app.V(),h=f.K("enable_desktop_player_underlay"),l=koa(),m=g.gJ(f.experiments,"player_underlay_min_player_width");m=h&&a.zO&&a.getPlayerSize().width>m;if(YW(a)){var n=oSa(a);var p=isNaN(n)||g.oB||ZW&&g.BA||m;nB&&!g.Nc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.K("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Em(p,0,b.width,b.height)):p=new g.Em(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Em((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.BA&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.Up(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.OX)a.kc.style.display="";a.QM=!0}else{p=-b.height;nB?p*=window.devicePixelRatio:g.HK&&(p-=window.screen.height);p=new g.Em(0,p,b.width,b.height);if(l||a.OX)a.kc.style.display="none";a.QM=!1}Fm(a.zH,p)||(a.zH=p,g.mK(f)?(a.kc.style.setProperty("width",
p.width+"px","important"),a.kc.style.setProperty("height",p.height+"px","important")):g.Rm(a.kc,p.getSize()),d=new g.Fe(p.left,p.top),g.Nm(a.kc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Em((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Fm(a.Ez,b)||(a.Ez=b,d=!0);g.Hm(a.kc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.vH&&(m&&(a.kc.addEventListener(zKa,a.gH),a.kc.addEventListener("transitioncancel",a.gH),a.kc.classList.add(g.WW.VIDEO_CONTAINER_TRANSITIONING)),a.vH=m,a.app.Ta.ma("playerUnderlayVisibilityChange",
a.vH?"transitioning":"hidden"));return d};
sSa=function(){this.csn=g.FE();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.j=new Set;this.u=new Set};
tSa=function(a,b){a.elements.has(b);a.elements.delete(b);a.B.delete(b);a.j.delete(b);a.u.delete(b)};
uSa=function(a){if(a.csn!==g.FE())if("UNDEFINED_CSN"===a.csn)a.csn=g.FE();else{var b=g.FE(),c=g.EE();if(b&&c){a.csn=b;for(var d=g.t(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&g.my(g.bP)(void 0,b,c,e)}if(b)for(a=g.t(a.j),e=a.next();!e.done;e=a.next())(c=e.value.visualElement)&&c.isClientVe()&&g.hP(b,c)}};
vSa=function(a,b){this.schedule=a;this.policy=b;this.playbackRate=1};
wSa=function(a,b){var c=Math.min(2.5,VJ(a.schedule));a=$W(a);return b-c*a};
ySa=function(a,b,c,d,e){e=void 0===e?!1:e;a.policy.Qk&&(d=Math.abs(d));d/=a.playbackRate;var f=1/XJ(a.schedule);c=Math.max(.9*(d-3),VJ(a.schedule)+2048*f)/f*a.policy.oo/(b+c);if(!a.policy.vf||d)c=Math.min(c,d);a.policy.Vf&&e&&(c=Math.max(c,a.policy.Vf));return xSa(a,c,b)};
xSa=function(a,b,c){return Math.ceil(Math.max(Math.max(65536,a.policy.jo*c),Math.min(Math.min(a.policy.Ja,31*c),Math.ceil(b*c))))||65536};
$W=function(a){return XJ(a.schedule,!a.policy.ol,a.policy.ao)};
aX=function(a){return $W(a)/a.playbackRate};
zSa=function(a,b,c,d,e){this.Fa=a;this.Sa=b;this.videoTrack=c;this.audioTrack=d;this.policy=e;this.seekCount=this.j=0;this.C=!1;this.u=this.Sa.isManifestless&&!this.Sa.Se;this.B=null};
ASa=function(a,b){var c=a.j.index,d=a.u.Ma;pH(c,d)||b&&b.Ma===d?(a.D=!pH(c,d),a.ea=!pH(c,d)):(a.D=!0,a.ea=!0)};
CSa=function(a,b,c,d,e){if(!b.j.Jg()){if(!(d=0===c||!!b.B.length&&b.B[0]instanceof bX))a:{if(b.B.length&&(d=b.B[0],d instanceof cX&&d.Yj&&d.vj)){d=!0;break a}d=!1}d||a.policy.B||dX(b);return c}a=eX(b,c);if(!isNaN(a))return a;e.EC||b.vk();return d&&(a=mI(d.Ig(),c),!isNaN(a))?(fX(b,a+BSa),c):fX(b,c)};
GSa=function(a,b,c,d){if(a.hh()&&a.j){var e=DSa(a,b,c);if(-1!==e){a.videoTrack.D=!1;a.audioTrack.D=!1;a.u=!0;g.Mf(function(){a.Fa.xa("seekreason",{reason:"behindMinSq",tgt:e});ESa(a,e)});
return}}c?a.videoTrack.ea=!1:a.audioTrack.ea=!1;var f=a.policy.tA||!a.u;0<=eX(a.videoTrack,a.j)&&0<=eX(a.audioTrack,a.j)&&f?((a.videoTrack.D||a.audioTrack.D)&&a.Fa.xa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.D=!1,a.audioTrack.D=!1):d&&g.Mf(function(){if(a.u||!a.policy.uc)FSa(a);else{var h=b.startTime,l=b.duration,m=c?a.videoTrack.D:a.audioTrack.D,n=-1!==a.videoTrack.I&&-1!==a.audioTrack.I,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.ea&&!a.audioTrack.ea,r=a.policy.uA&&eX(a.videoTrack,
h)&&eX(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).D=!1,a.videoTrack.D||a.audioTrack.D||(a.Fa.xa("iterativeSeeking",{status:"done",target:h,count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.Fa.xa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Fa.xa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.D=!1,a.audioTrack.D=!1,a.Fa.va.seekTo(h+
.1,{bv:!0,Je:"chunkSelectorSynchronizeMedia",Er:!0})))}})};
DSa=function(a,b,c){if(!a.hh())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.uh(a.j);return(pH(c,a.Sa.Ge)||b.Ma===a.Sa.Ge)&&d<a.Sa.Ge?a.Sa.Id():-1};
ESa=function(a,b){a.u&&-1!==a.videoTrack.I&&-1!==a.audioTrack.I&&(a.u=!1,a.j=b,a.Fa.va.seekTo(b+.1,{bv:!0,Je:"chunkSelectorSynchronize",Er:!0}))};
FSa=function(a){var b=-1!==a.videoTrack.I,c=-1!==a.audioTrack.I;if(!b||!c)if(b=!b&&gX(a.videoTrack),c=!c&&gX(a.audioTrack),b||c)if(c=b?a.videoTrack:a.audioTrack,b=b?a.audioTrack:a.videoTrack,c.I=gX(c).info.Ma,-1!==b.I){var d=Math.max(b.j.index.getStartTime(b.I),c.j.index.getStartTime(c.I));NI(a.Sa)&&432E3<Math.abs(d-NI(a.Sa))&&iwa(a.Sa);a.policy.Tb&&(a.videoTrack.J=!1,a.audioTrack.J=!1);g.Mf(function(){ESa(a,d)});
a.Fa.xa("initManifestlessSync",{st:d,a:a.audioTrack.I,v:a.videoTrack.I});a.B&&(a.B.resolve(d+.1),a.B=null)}};
HSa=function(a){this.j=a;this.Z=this.La=this.T=this.Ga=this.B=this.D=this.C=this.I=this.ea=this.Ja=this.ya=this.Aa=this.oa=0;this.ticks={}};
ISa=function(a){a.oa||(a.oa=(0,g.M)(),xT("mb_s",a.oa,a.j))};
JSa=function(a,b,c,d,e,f){g.dE.call(this);this.Fa=a;this.Sa=b;this.policy=c;this.T=d;this.Ga=e;this.oa=this.j=null;this.B=this.D=NaN;this.I=0;this.ea=NaN;this.C=null;this.ya=new Map;this.Z="";this.Aa=0;this.J=NaN;this.u=f?1:0};
hX=function(a,b,c){b.startSecs+=isNaN(a.I)?0:a.I;a=a.Sa;a.ea.push(b);a.ma("cuepointsadded",c)};
KSa=function(a,b,c){if(0!==a.u&&c&&b.gb[0].Xg()){var d=b.gb[0].Ma,e;d!==(null==(e=a.j)?void 0:e.Ma)||1===a.u||b.Im()||"predictStart"===a.j.jf.event||a.xa("sdai",{undecevt:1,sq:d,evt:a.j.jf.event});d>a.B&&(a.B=NaN,a.D=NaN);if(a.j&&a.j.Ma===d){d=a.j;e=d.jf;var f=c.gt(e);a.xa("sdai",{onqevt:e.event,sq:b.gb[0].Ma,gab:f});f?"predictStart"!==e.event?d.nC?iX(a,4,"cue"):(a.B=b.gb[0].Ma,a.D=b.gb[0].C,a.xa("sdai",{joinad:a.u,sg:a.B,st:a.D.toFixed(3)}),a.ea=Date.now(),iX(a,2,"join"),c.fG(d.jf)):(a.J=b.gb[0].Ma+
Math.max(Math.ceil(-e.j/5E3),1),a.xa("sdai",{onpred:b.gb[0].Ma,est:a.J}),a.ea=Date.now(),iX(a,3,"predict"),c.fG(d.jf)):1===a.u&&iX(a,5,"nogab")}else 1===a.u&&iX(a,5,"noad")}};
LSa=function(a,b,c){return(0>c||c===a.B)&&!isNaN(a.D)?a.D:b};
MSa=function(a,b){if(a.j){var c=a.j.jf.Sg-(b.startTime+a.I-a.j.jf.startSecs);0>=c||(c=new PD(a.j.jf.startSecs-(isNaN(a.I)?0:a.I),c,a.j.jf.context,a.j.jf.identifier,"stop",a.j.jf.j+1E3*b.duration),a.xa("cuepointdiscontinuity",{segNum:b.Ma}),hX(a,c,b.Ma))}};
iX=function(a,b,c){a.u!==b&&(a.xa("sdai",{setsst:b,old:a.u,r:c}),a.u=b)};
jX=function(a,b,c,d){(void 0===d?0:d)?iX(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.u&&iX(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
kX=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
NSa=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.Fa=a;this.Aa=b;this.policy=c;this.Sa=d;this.D=e;this.kb=f;this.logger=new g.eW("dash/abr");this.B=ZL;this.j=this.I=null;this.ea=-1;this.Qa=!1;this.nextVideo=this.u=null;this.C=[];this.Ja={};this.J=0;this.fb=this.Z=this.T=!1;this.Ga=0;this.Ya=new Set;this.ib=!1;this.ya=new Map;this.Xa=0;this.tb=!1;this.La=null;this.Ne={CX:function(){lX(h)}}};
SSa=function(a,b,c){mX(a,b);OSa(a,c);a.I=a.u;PSa(a);QSa(a);a.j=a.nextVideo;a.I=a.u;return RSa(a)};
USa=function(a,b){if(TSa(a,b))return null;if("m"===b.reason&&b.isLocked())return mX(a,b),a.J=a.C.length-1,lX(a),nX(a),a.Z=a.Z||a.j!==a.nextVideo,a.j=a.nextVideo,new kX(a.u,a.j,b.reason);"r"===b.reason&&(a.ea=-1);mX(a,b);nX(a);if("r"===b.reason&&a.nextVideo===a.j)return new kX(a.u,a.nextVideo,b.reason);a.j&&a.nextVideo&&oX(a,a.j.info)<oX(a,a.nextVideo.info)&&(b=a.B.reason,a.T=a.T||"r"===b||"u"===b||"v"===b);return null};
VSa=function(a,b){if(b.info.video){if(a.j!==b)return a.j=b,RSa(a)}else a.fb=a.I!==b,a.I=b;return null};
pX=function(a,b,c){a.Xa+=1;if(void 0===c?0:c)a.tb=!0;c=6E4*Math.pow(2,a.Xa);a.ya.set(b.info.id,(0,g.M)()+c);a.ea=-1;mX(a,a.B)};
qX=function(a){if(a.ya.size){for(var b=(0,g.M)(),c=g.t(a.ya.values()),d=c.next();!d.done;d=c.next())if(d.value>b)return!0;a.ya.clear()}return!1};
rX=function(a,b){return new kX(a.I,a.j,b||a.B.reason)};
sX=function(a){return a.B.isLocked()};
RSa=function(a){a.Qa?a.Qa=!1:a.ea=(0,g.M)();a.T=!1;return new kX(a.I,a.j,a.B.reason)};
WSa=function(a,b){var c={};b=g.t(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&&KH(f)&&f.video.j>a.policy.ya,l=e<=a.policy.ya?KH(d):BF(d);if(!f||h||l)c[e]=d}return c};
mX=function(a,b){a.B=b;var c=a.D.videoInfos;if(!sX(a)){var d=(0,g.M)();c=g.Rn(c,function(q){if(q.dc>this.policy.dc)return!1;var r=this.Sa.j[q.id],v=r.info.Lb;return this.policy.Pw&&this.Ya.has(v)||this.ya.get(q.id)>d||4<r.u.u||4<r.J?!1:!0},a);
a.tb&&qX(a)&&(c=g.Rn(c,function(q){return 854>=q.video.width&&480>=q.video.height}))}c.length||(c=a.D.videoInfos);
var e=g.Rn(c,b.C,b);if(sX(a)&&a.oa){var f=g.nb(c,function(q){return q.id===a.oa});
f?e=[f]:delete a.oa}f="m"===b.reason||"s"===b.reason;a.policy.Uw&&ZW&&g.BA&&(!f||1080>b.j)&&(e=e.filter(function(q){return q.video&&(!q.j||q.j.powerEfficient)}));
if(0<e.length)if(tI()){var h=WSa(a,e);e=e.filter(function(q){return!!q&&!!q.video&&q.Lb===h[q.video.j].Lb})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(q){return!!q&&!!q.video&&q.video.j===n});
var p=WSa(a,b)[n].Lb;e=e.filter(function(q){return!!q&&!!q.video&&q.Lb===p})}}e.length||(e=[c[0]]);
e.sort(function(q,r){return oX(a,q)-oX(a,r)});
c={};for(b=1;b<e.length;c={uE:c.uE,tE:c.tE},b++)c.tE=e[b-1],c.uE=e[b],c.tE.video.width>c.uE.video.width?(g.tb(e,b),b--):oX(a,c.tE)*a.policy.J>oX(a,c.uE)&&(g.tb(e,b-1),b--);c=e[e.length-1];a.ib=!!a.j&&!!a.j.info&&a.j.info.Lb!==c.Lb;a.C=e;yLa(a.policy,c)};
OSa=function(a,b){b?a.u=a.Sa.j[b]:(b=g.nb(a.D.j,function(c){return!!c.Jc&&c.Jc.isDefault}),a.policy.Wn&&!b&&(b=g.nb(a.D.j,function(c){return c.audio.j})),b=b||a.D.j[0],a.u=a.Sa.j[b.id]);
lX(a)};
XSa=function(a,b){for(var c=0;c+1<a.C.length&&"tiny"===a.C[c].video.quality;)c++;var d=aX(a.Aa)/a.policy.J;return oX(a,b.info)+oX(a,a.C[c])>d};
lX=function(a){if(!a.u||!a.policy.u&&!a.u.info.Jc){var b=a.D.j;a.u&&a.policy.Wn&&(b=b.filter(function(d){return d.audio.j===a.u.info.audio.j}),b.length||(b=a.D.j));
a.u=a.Sa.j[b[0].id];if(1<b.length){var c=!1;if(c=a.policy.jc?!0:a.B.isLocked()?240>a.B.j:XSa(a,a.u))a.u=a.Sa.j[g.jb(b).id]}}};
nX=function(a){a.policy.Si&&(a.La=a.La||new g.Ip(function(){a.policy.Si&&a.j&&!qX(a)&&1===Math.floor(10*Math.random())?(pX(a,a.j),a.T=!0):a.La.start()},6E4),g.Jp(a.La));
if(!a.nextVideo||!a.policy.u)if(sX(a))a.nextVideo=360>=a.B.j?a.Sa.j[a.C[0].id]:a.Sa.j[g.jb(a.C).id];else{for(var b=Math.min(a.J,a.C.length-1),c=aX(a.Aa),d=oX(a,a.u.info),e=c/a.policy.T-d;0<b&&!(oX(a,a.C[b])<=e);b--);for(var f=c/a.policy.J-d;b<a.C.length-1&&!(oX(a,a.C[b+1])>=f);b++);a.nextVideo=a.Sa.j[a.C[b].id];a.J!==b&&a.logger.info(function(){var h=a.B;return"Adapt to: "+zva(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+
", constraint: ["+(h.u+"-"+h.j+", override: "+(h.B+", reason: "+h.reason+"]"))});
a.J=b}};
PSa=function(a){var b=a.policy.T,c=aX(a.Aa),d=c/b-oX(a,a.u.info);b=g.ob(a.C,function(e){return oX(this,e)<d},a);
0>b&&(b=0);a.J=b;a.nextVideo=a.Sa.j[a.C[b].id];a.logger.info(function(){return"Initial selected fmt: "+zva(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
QSa=function(a){if(a.kb.length){var b=a.kb,c=function(d,e){if("f"===d.info.Lb||b.includes(SG(d,a.Sa.fd,a.Fa.Ce())))return d;for(var f={},h=0;h<e.length;f={xE:f.xE,CE:f.CE},h++){var l=a.Sa.j[e[h].id],m=SG(l,a.Sa.fd,a.Fa.Ce());if(b.includes(m)){m=d.info.Lb;var n=l.info.Lb;if(m===n||tI()){if(d.info.u!==l.info.u)return a.Fa.xa("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.xE=d.info.itag;f.CE=l.info.itag;a.Fa.xa("ombifa",{f:f.xE,t:f.CE});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.xE+" to "+p.CE+" based on prefetched media."}}(f));
a.Qa=!0;return l}a.Fa.xa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Fa.xa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.D.videoInfos);a.u=c(a.u,a.D.j)}};
oX=function(a,b){if(!a.Ja[b.id]){var c=a.Sa.j[b.id].index.ST(a.Ga,15);c=b.xu&&a.j&&a.j.index.isLoaded()?c||b.xu:c||b.dc;a.Ja[b.id]=c}c=a.Ja[b.id];a.policy.aj&&b.video&&b.video.j>a.policy.aj&&(c*=1.5);return c};
YSa=function(a,b){a=fba(a.Sa.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
ZSa=function(a){var b=[];if("m"===a.B.reason||"s"===a.B.reason)return b;if(Rva(a.Sa)){for(var c=Math.max(0,a.J-2);c<a.J&&c<a.C.length;c++)b.push(a.C[c].itag);b.reverse()}return b};
TSa=function(a,b){var c;return a.B.equals(b)&&(!a.oa||!sX(a)||(null==(c=a.nextVideo)?void 0:c.info.id)===a.oa)};
$Sa=function(a,b,c){this.B=a;this.Sa=b;this.policy=c;this.Az=[];this.ze=[];this.j=-1;this.Vb=null;this.timestampOffset=0;this.kd=null;this.u=b.fd?0:1};
fTa=function(a,b,c,d,e){if(a.policy.Jf)if(e.info.bf){var f;(c=null==(f=c.pop())?void 0:uH(f,e))||(c=e)}else{if(0===c.length)c.push(e);else{var h;(a=null==(h=c[c.length-1])?void 0:uH(h,e))?(c.pop(),c.push(a)):c.push(e)}return d}else c=e;if(a.policy.nm){var l=c;e=aTa(a,l);var m=e.formatId,n=e.Ma;d=e.startTimeMs;e=e.clipId;c=0;a.policy.C&&a.kd&&(c=PRa(a.kd,e));l={formatId:m,startTimeMs:d+c,durationMs:1E3*l.info.I,Gt:n,fh:n};m=bTa(b,l.startTimeMs);(n=0<=m?b[m]:null)&&cTa(a,n,l)?l=n:(m+=1,b.splice(m,0,
l));n=0;for(d=m+1;d<b.length;d++){e=b[d];c=l;f=e.startTimeMs+e.durationMs;h=c.startTimeMs+c.durationMs;h>=f+100?e=!0:h+100<e.startTimeMs?e=!1:dTa(a,e.formatId,c.formatId)?(c.durationMs=f-c.startTimeMs,c.fh=e.fh,e=!0):(e.startTimeMs=h,e.Gt=c.fh+1,e=!1);if(!e)break;n++}n&&b.splice(m+1,n);a=m}else{e=c;h=aTa(a,e);c=h.formatId;f=h.Ma;h=h.startTimeMs;var p=0<=d?b[d]:null,q;if(q=p?!((null==(l=p.formatId)?void 0:l.itag)!==(null==c?void 0:c.itag)||(null==(m=p.formatId)?void 0:m.xtags)!==(null==c?void 0:c.xtags)||
!a.Sa.fd&&(null==(n=p.formatId)?void 0:n.jj)!==(null==c?void 0:c.jj)||p.fh!==f&&p.fh+1!==f?0:100>Math.abs(p.startTimeMs+p.durationMs-h)):!0)d=eTa(a,b,h),p={formatId:c,startTimeMs:h,durationMs:0,Gt:f},d+=1,b.splice(d,0,p);p.durationMs+=1E3*e.info.I;p.fh=f;a=d}return a};
eTa=function(a,b,c){for(var d=-1,e=0;e<b.length;e++){var f=a.ze[e],h=f.startTimeMs;f=h+f.durationMs;c>f&&(d=e);if(c>=h&&c<=f)return e}return d};
bTa=function(a,b){a=g.Jb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
gTa=function(a){if(a.Vb){var b=a.Vb.Ig();if(0===b.length)a.ze=[];else{var c=[],d=1E3*b.start(0);b=1E3*b.end(b.length-1);for(var e=g.t(a.ze),f=e.next();!f.done;f=e.next())f=f.value,f.startTimeMs+f.durationMs<d||f.startTimeMs>b?--a.j:c.push(f);if(0!==c.length){e=c[0];if(e.startTimeMs<d)if(f=a.Sa.I.get(Sva(a.Sa,e.formatId)),d=f.index.uh(d/1E3),d=Math.min(f.index.td(),d+1),d<=e.fh-a.u){var h=e.startTimeMs;e.startTimeMs=1E3*f.index.getStartTime(d);e.durationMs-=e.startTimeMs-h;e.Gt=d+a.u}else c.shift(),
--a.j;0!==c.length&&(d=c[c.length-1],e=d.startTimeMs+d.durationMs,e>b&&a.j!==c.length-1&&(f=a.Sa.I.get(Sva(a.Sa,d.formatId)),b=f.index.uh(b/1E3),h=Math.max(0,b-1),h>=d.Gt-a.u?(d.fh=h+a.u,b=1E3*f.index.getStartTime(b),d.durationMs-=e-b):c.pop()),a.ze=c)}}}};
hTa=function(a){var b=[],c=[].concat(g.u(a.Az));a.ze.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.t(a.B.bU()),f=e.next();!f.done;f=e.next())d=fTa(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset)});
return{ze:b,Az:c}};
cTa=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(dTa(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.fh=Math.max(b.fh,c.fh),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.fh;b.formatId=c.formatId;b.durationMs=c.durationMs;b.fh=c.fh;c.formatId=a;c.startTimeMs=e;c.durationMs=d-e;c.Gt=b.fh+1;c.fh=f;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&
(b.durationMs=c.startTimeMs-b.startTimeMs,b.fh=c.Gt-1);return!1};
dTa=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.Sa.fd||b.jj===c.jj};
aTa=function(a,b){return{formatId:MH(b.info.j.info,a.Sa.fd),Ma:b.info.Ma+a.u,startTimeMs:1E3*b.info.C,clipId:b.info.clipId}};
iTa=function(a){a.ze=[];a.Az=[];a.j=-1};
jTa=function(a,b){this.u=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
Eya=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=tX.Xq("woe");d=new g.JJ(a.u);return g.y(f,d.encrypt(b,a.j),2)}e=f.u;tX.Sp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
Kya=function(a,b){var c,d,e;return g.A(function(f){if(1==f.j){if(!b)return f.return(b);c=tX.Xq("wod");d=new g.JJ(a.u);return g.y(f,d.decrypt(b,a.j),2)}e=f.u;tX.Sp(c,Math.ceil(b.byteLength/16));return f.return(e)})};
lTa=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Aa=c;this.C=this.u=0;this.Cf=null;this.Z=new Set;this.ea=[];this.indexRange=this.initRange=null;this.T=new aK;this.oa=this.ya=!1;this.Ne={t7a:function(){return d.B},
X6a:function(){return d.chunkSize},
W6a:function(){return d.J},
V6a:function(){return d.I}};
(b=kTa(this))?(this.chunkSize=b.csz,this.B=Math.floor(b.clen/b.csz),this.J=b.ck,this.I=b.civ):(this.chunkSize=a.Qw,this.B=0,this.J=g.KD(16),this.I=g.KD(16));this.D=new Uint8Array(this.chunkSize);this.J&&this.I&&(this.crypto=new jTa(this.J,this.I))};
kTa=function(a){if(a.policy.je&&a.policy.Sw)for(var b={},c=g.t(a.policy.je),d=c.next();!d.done;b={vE:b.vE,wE:b.wE},d=c.next())if(d=g.sy(d.value),b.vE=+d.clen,b.wE=+d.csz,0<b.vE&&0<b.wE&&a.policy.u===d.docid&&a.j.info.id===d.fmtid&&a.j.info.lastModified===+d.lmt)return a={},a.clen=b.vE,a.csz=b.wE,a.ck=d.ck,a.civ=d.civ,a};
uX=function(a){return!!a.Cf&&YG(a.Cf)};
qTa=function(a,b){if(!uX(a)&&!a.isDisposed()){if(!(a.ya||(a.ya=!0,0<a.B))){var c=mTa(a);c=QL(a.policy.u,a.j.info,vX(a),c,a.policy.La);nTa(a,c)}if(1===b.info.type){if(a.Cf){wX(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=VG(0,b.j.totalLength)}else if(2===b.info.type)a.Cf&&1===a.Cf.type||wX(a,Error("Woffle: Index before init")),a.indexRange=VG(a.initRange.end+1,b.j.totalLength);else if(3===b.info.type){if(!a.Cf){wX(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Cf.type&&!aH(a.Cf,b.info)&&(a.ea=[],b.info.Ma!==bH(a.Cf)||0!==b.info.Ob))return;if(b.info.bf){c=g.t(a.ea);for(var d=c.next();!d.done;d=c.next())oTa(a,d.value);a.ea=[]}else{a.ea.push(b);a.Cf=b.info;return}}else{wX(a,Error("Woffle: Unexpected slice type"));return}a.Cf=b.info;oTa(a,b);pTa(a)}};
oTa=function(a,b){var c=0,d=QF(b.j);if(a.C<a.B){c=a.B*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Ob;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.C=a.B;a.u=0}for(e={};c<d.length;){e.BA=Math.min(d.length-c,a.D.byteLength-a.u);f=new Uint8Array(d.buffer,d.byteOffset+c,e.BA);a.D.set(f,a.u);a.u+=e.BA;c+=e.BA;if(a.u===a.D.length){if(b.info===a.Cf&&uX(a)&&c===d.length)break;f=mTa(a);f=QL(a.policy.u,a.j.info,vX(a),f,a.policy.La,a.C,a.D,a.crypto);a.Z.add(f);nTa(a,
f);a.isDisposed()||(f=mTa(a),a.Aa(vX(a),void 0!==f?(f.downloadedEndTime||0)*f.averageByteRate:f.maxKnownEndTime*f.averageByteRate,f.maxKnownEndTime*f.averageByteRate));a.D=new Uint8Array(a.chunkSize);a.u=0;a.C+=1}e={BA:e.BA}}};
pTa=function(a){if(uX(a))if(a.Cf&&a.indexRange)if(a.u){var b=new Uint8Array(a.D.buffer,0,a.u),c=rTa(a),d=a.policy.u;Promise.all(a.Z).then(function(){var e=QL(d,a.Cf.j.info,vX(a,!0),c,a.policy.La,a.C,b,a.crypto);nTa(a,e,!0)})}else wX(a,new xX("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else wX(a,new xX("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
mTa=function(a){return{downloadedEndTime:Math.round(a.Cf?a.Cf.B:0),maxKnownEndTime:Math.round(a.j.index.ys()),averageByteRate:Math.round(a.j.info.xu)}};
rTa=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.ys()),averageByteRate:Math.round(a.j.info.xu)}};
vX=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Cf||wX(a,new xX("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));b={lmt:a.j.info.lastModified,docid:a.policy.u,fmtid:a.j.info.id,type:a.j.info.mimeType.split(";")[0],csz:a.chunkSize,clen:a.C*a.chunkSize+a.u};a.crypto&&(b.ck=a.J,b.civ=a.I);var c="local://localhost/videoplayback?"+py(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.dc,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:Oua(d),indexRange:null==(e=a.indexRange)?void 0:Oua(e),url:c};if(d=a.j.info.u)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};
nTa=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.Z.delete(b);(c||4===d)&&a.T.resolve(d)},function(d){a.T.reject(d)})};
wX=function(a,b){4!==g.ML(a.policy.u)&&(g.NL(a.policy.u,4),g.DD(b),a.T.reject(new xX(b.message)))};
xX=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
sTa=function(a){a=g.tG(a,1886614376);for(var b=g.t(a),c=b.next();!c.done;c=b.next());return g.Yl(a,function(d){return new Uint8Array(d.data.buffer,d.offset+d.data.byteOffset,d.size)})};
tTa=function(a){var b=$l(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
uTa=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.u=c;this.C=d;this.B=e;this.YA=f};
vTa=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.B=[];this.Ee=!1;this.u=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Ee=!0};
xTa=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=wTa(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null}catch(p){n=null}}if(null!=n)for(b=Zh(n,7),null==b||a.Ee||(a.cryptoPeriodIndex=b),b=Zh(n,10),null!=b&&0<b&&!a.Ee&&(a.j=b),n=g.t(Fh(n,2,gh(n.Re)&18?dea:eea)),
b=n.next();!b.done;b=n.next())a.B.push(g.gg(yg(b.value),4))};
yTa=function(a){return isNaN(a.cryptoPeriodIndex)?g.gg(a.initData):""+a.cryptoPeriodIndex};
yX=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.tD?void 0:d.tD;d=void 0===d.oG?!1:d.oG;this.videoId=a;this.status=b;this.videoDuration=c;this.tD=e;this.oG=d};
zTa=function(a,b,c,d,e){this.videoId=a;this.B=b;this.u=c;this.bytesDownloaded=d;this.j=e};
ATa=function(a){this.j=a;this.offset=0};
BTa=function(a){if(a.offset>=a.j.totalLength)throw Error();return RF(a.j,a.offset++)};
CTa=function(a,b){b=void 0===b?!1:b;var c=BTa(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=BTa(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+BTa(a),d*=128;return b?c:c-d};
ETa=function(a,b,c){var d=this;this.Fa=a;this.policy=b;this.I=c;this.logger=new g.eW("dash");this.u=[];this.j=null;this.ya=-1;this.ea=0;this.Ga=NaN;this.Z=0;this.B=NaN;this.T=this.La=0;this.Ya=-1;this.Ja=this.C=this.D=this.Aa=null;this.fb=this.Xa=NaN;this.J=this.oa=this.Qa=this.ib=null;this.kb=!1;this.timestampOffset=0;this.Ne={bU:function(){return d.u}};
if(this.policy.u){var e=this.I,f=this.policy.u;this.policy.La&&a.xa("atv",{ap:this.policy.La});this.J=new lTa(this.policy,e,function(h,l,m){zX(a,new yX(d.policy.u,2,{tD:new zTa(f,h,e.info,l,m)}))});
this.J.T.promise.then(function(h){d.J=null;1===h?zX(a,new yX(d.policy.u,h)):d.Fa.xa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof xX&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Fa.xa("offlinenwerr",{em:l}),DTa(d),zX(a,new yX(d.policy.u,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Fa.xa("dldbwerr",{em:l}),DTa(d),zX(a,new yX(d.policy.u,4,{oG:!0})))})}};
FTa=function(a){return a.u.length?a.u[0]:null};
AX=function(a){return a.u.length?a.u[a.u.length-1]:null};
MTa=function(a,b,c,d){d=void 0===d?0:d;if(a.C){var e=a.C.Ob+a.C.u;if(0<c.info.Ob)if(c.info.Ma===a.C.Ma&&c.info.Ob<e){if(c.info.Ob+c.info.u<=e)return;c=nva(c,e-c.info.Ob)[1]}else if(0<=c.info.Ma&&0<=a.C.Ma&&!aH(a.C,c.info))throw new g.bA("improper_continuation",dH(a.C),dH(c.info));e=a.C;var f=c.info;(e.Ma!==f.Ma&&f.Ma!==e.Ma+1||e.type!==f.type?0:aH(e,f)||(Ee(e.C,f.C)&&e.Ma===f.Ma?0:Rua(e,f)))||GTa(a,"d")}else if(0<c.info.Ob)throw new g.bA("continuation_of_null",dH(c.info));a.C=c.info;a.I=c.info.j;
if(0===c.info.Ob){if(a.j)if(!a.Fa.isOffline()||a.policy.ri)a.Fa.xa("slice_not_fully_processed",{buffered:dH(a.j.info),push:dH(c.info)});else throw new g.bA("slice_not_fully_processed",dH(a.j.info),dH(c.info));BX(a);a.La=d}else{if(a.La&&d&&a.La!==d)throw a=new g.bA("lmt_mismatch",c.info.Ma,a.La,d),a.level="WARNING",a;!c.info.j.Ym()&&a.D&&(d=c.info,e=a.D.j,d.D="updateWithEmsg",d.Ma=e)}if(a.j){d=uH(a.j,c);if(!d)throw new g.bA("failed_to_merge",dH(a.j.info),dH(c.info));a.j=d}else a.j=c;a:{c=g.vH(a.j.info.j.info);
if(3!==a.j.info.type){if(!a.j.info.bf)break a;6===a.j.info.type?HTa(a,b,a.j):ITa(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(0>=a.ya&&0===a.ea){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=jua(h,l),n=jua(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new ATa(h);for(m=l=!1;;){n=h.Yp();var p=h;try{var q=CTa(p,!0),r=CTa(p,!1);var v=q;var x=r}catch(B){x=v=-1}p=v;var z=x;if(!(0<p))break;if(408125543!==p)if(524531317===p)l=!0,0<=z&&(e=
h.Yp()+z,m=!0);else{if(l&&(160===p||163===p)&&(0>f&&(f=n),m))break;163===p&&(f=Math.max(0,f),e=h.Yp()+z);if(160===p){0>f&&(e=f=h.Yp()+z);break}h.skip(z)}}0>f&&(e=-1)}if(0>f)break;a.ya=f;a.ea=e-f}if(a.ya>d)break;a.ya?(d=JTa(a,a.ya),d.C&&KTa(a,d),HTa(a,b,d),LTa(a,d),a.ya=0):a.ea&&(d=JTa(a,0>a.ea?Infinity:a.ea),a.ea-=d.j.totalLength,LTa(a,d))}}a.j&&a.j.info.bf&&(LTa(a,a.j),a.j=null)};
ITa=function(a,b){!b.info.j.Ym()&&0===b.info.Ob&&(g.vH(b.info.j.info)||b.info.j.info.Ee())&&tva(b);if(1===b.info.type)try{KTa(a,b),NTa(a,b)}catch(d){g.CD(d);var c=cH(b.info);c.hms="1";a.Fa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.mM(b);a.J&&qTa(a.J,b);c.Jg()&&a.policy.B&&(a=a.Fa.Sa,a.La.push(MH(c.info,a.fd)))};
DTa=function(a){var b;null==(b=a.J)||b.dispose();a.J=null};
OTa=function(a){var b=a.u.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
JTa=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=nva(c,b);a.j=c[1];return c[0]};
KTa=function(a,b){var c=tH(b);if(JH(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new uG(c);wG(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;BF(d)&&!JH(d)&&(d=tH(b),(new uG(d)).Xm(),AG([408125543,374648427,174,224],21936,d));b.info.j.info.Xg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.vH(d.info)?d.B=vua(c):d.info.Ee()&&(d.B=Cua(c))));b.info.j.info.Ee()&&
b.info.Xg()&&(c=tH(b),(new uG(c)).Xm(),AG([408125543,374648427,174,224],30320,c)&&AG([408125543,374648427,174,224],21432,c));if(a.policy.uy&&b.info.j.info.Ee()){c=tH(b);var e=new uG(c);if(wG(e,[408125543,374648427,174,29637])){d=zG(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.Ek()&&g.vH(b.info.j.info)){d=tH(b);c=g.kG(d,0,1701606260);f=g.kG(d,0,1836476516);if(c&&f){c.skip(2);var h=aG(c),l=cG(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(dG(c)),e.push(dG(c)),
m.push(aG(c)),n.push(aG(c));else for(h=0;h<l;++h)d.push(bG(c)),e.push(bG(c)),m.push(aG(c)),n.push(aG(c));c=g.lG(f);c=new sua(e[0]/c,d[0]/c)}else c=null;if(c){if(g.vH(b.info.j.info))for(d=tH(b),e=g.kG(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.kG(d,e.offset+e.size,1701082227);a.kb=!0;b.info.j.D=c}}b.info.j.Ym()||b.info.j.j||b.info.j.indexRange||yH(b)};
HTa=function(a,b,c){if(c.info.j.Ym()){if(a.kb&&PTa(c)&&(b=tH(c),b=g.kG(b,0,1953658222))){b.skip(1);var d=$F(b)<<16|aG(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=cG(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=cG(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.Aa&&!!a.Aa.I.D)if(b=c.info.Xg())b=rva(c),h=a.Aa,CX?(l=1/b,b=DX(a,b)>=DX(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&PTa(c)&&(b=a.Aa,CX?(l=rva(c),h=1/l,l=DX(a,l),b=DX(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,uua(tH(c),b))}else{h=!1;a.D||(tva(c),c.u&&(a.D=c.u,h=!0,f=c.info,d=c.u.j,f.D="updateWithEmsg",f.Ma=d,f=c.u,f.C&&(a.I.index.u=!f.C),f=c.info.j.info,d=tH(c),g.vH(f)?sG(d,1701671783):f.Ee()&&AG([408125543],307544935,d)));a:if((f=xH(c,a.policy.Pb))&&sva(c))l=QTa(a,c),a.T+=l,f-=l,a.Z+=f,a.B=a.policy.Zi?a.B+f:NaN;else{if(a.policy.po){if(d=m=a.Fa.Er(ova(c),1),0<=a.B&&6!==c.info.type){if(a.policy.Zi&&isNaN(a.Xa)){g.DD(new g.bA("Missing duration while processing previous chunk",
dH(c.info)));a.Fa.isOffline()&&!a.policy.ri||RTa(a,c,d);GTa(a,"m");break a}var n=m-a.B,p=n-a.T,q=c.info.Ma,r=a.Ja?a.Ja.Ma:-1,v=a.fb,x=a.Xa,z=a.policy.ul&&n>a.policy.ul,B=10<Math.abs(p),F=1E-7>Math.abs(a.B-d);if(1E-4<Math.abs(p)){var G=null==(e=a.D)?void 0:iG(e);e={audio:""+ +a.Ek(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:v,lastSliceDuration:x,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(z||B)};if(null==G?0:G.length)e.adCpn=G[0];a.Fa.handleError("qoe.avsync",
e);a.Ya=q}z||B||F||(d=a.B);e=QTa(a,c,m);f-=e;a.T=n+e;a.policy.D&&(p&&!F||e)&&(n=null==(l=a.D)?void 0:iG(l),a.Fa.xa("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Ma,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.B)?c.info.startTime:a.B;RTa(a,c,d)&&(a.Z+=f,a.B=d+f)}a.Ja=c.info;a.Xa=qva(c);0<=c.D&&(a.fb=c.D);if(h&&a.D){h=STa(a,
!0);eH(c.info,h);a.j&&eH(a.j.info,h);if(!a.policy.Tb)for(b=g.t(b),l=b.next();!l.done;l=b.next())eH(l.value,h);(c.info.bf||a.j&&a.j.info.bf)&&6!==c.info.type||(a.oa=h,b=a.Fa,b.Sa.isManifestless&&TTa(b,h,null,!!a.I.info.video),a.policy.Od||UTa(a))}}NTa(a,c);a.timestampOffset&&wH(c,a.timestampOffset)};
LTa=function(a,b){if(b.info.bf){a.ib=b.info;if(a.D){var c=a.D,d=STa(a,!1),e=null;if(a.D.nC()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=iG(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.t(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.t(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.t(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new uTa(e,f,h,l,g.qua(c),g.rua(c))}a.Fa.VN(a.I,d,e);a.oa||a.policy.Od||UTa(a);a.oa=null}BX(a)}a.J&&qTa(a.J,b);if(c=AX(a))if(c=uH(c,b,a.policy.sA)){a.u.pop();a.u.push(c);return}a.u.push(b)};
BX=function(a){a.j=null;a.ya=-1;a.ea=0;a.D=null;a.Ga=NaN;a.Z=0;a.oa=null};
GTa=function(a,b){b={rst4disc:b,cd:a.T.toFixed(3),sq:a.Ja?a.Ja.Ma:-1};a.B=NaN;a.T=0;a.Ya=-1;a.Ja=null;a.fb=NaN;a.Xa=NaN;a.Qa=null;a.Fa.xa("mdstm",b)};
NTa=function(a,b){if(a.I.info.Pd){if(b.info.j.info.Ee()){var c=new uG(tH(b));if(wG(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=zG(c,!0);c=16!==d?null:EG(c,d)}else c=null;d="webm"}else b.info.J=sTa(tH(b)),c=tTa(b.info.J),d="cenc";c&&c.length&&(c=new vTa(c,d),a.policy.zx&&g.vH(b.info.j.info)&&(d=Aua(tH(b)))&&(c.u=d),c.Ee=b.info.j.info.Ee(),b.u&&b.u.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.u.cryptoPeriodIndex),b.u&&b.u.B&&(c.j=b.u.B),a.Fa.vz(c))}};
UTa=function(a){var b=a.D,c=oua(b);c&&(c.startSecs+=a.Ga,a.Fa.UN(a.I,c,b.j,b.nC()))};
STa=function(a,b){var c,d=a.D;if(c=oua(d))c.startSecs+=a.Ga;return new JF(d.j,a.Ga,b?d.Xj:a.Z,d.ingestionTime,"sq/"+d.j,void 0,void 0,b,c)};
RTa=function(a,b,c){if(!pva(b,c))return b=cH(b.info),b.smst="1",a.Fa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0};
QTa=function(a,b,c){var d=0;if(b.info.j.info.Ee()&&!sva(b))return 0;if(a.Aa&&!a.Ek()){var e=0;c&&g.vH(b.info.j.info)?e=c-a.B:b.info.j.info.Ee()&&(e=a.T);var f=b.info.Ma;c=xH(b,a.policy.Pb);var h=a.Aa;var l=h.Ya;h=h.T;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Ya)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.vH(b.info.j.info))uua(tH(b),d);else if(b.info.j.info.Ee()&&(f=e-h,!g.vH(b.info.j.info)&&(b.info.j.info.Ee(),d=new uG(tH(b)),l=b.C?d:new uG(new DataView(b.info.j.j.buffer)),xH(b,!0)))){var n=
1E3*f,p=GG(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||HG(d))if(yG(d,160))if(zG(d,!0),yG(d,155)){if(f=d.pos,m=zG(d,!0),d.pos=f,n=1E9*n/p,p=BG(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=xH(b,a.policy.Pb);d=c-d}d&&b.info.j.info.Ee()&&a.Fa.xa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
PTa=function(a){return a.info.j.Ym()&&a.info.Ma===a.info.j.index.td()};
DX=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.I.D&&b&&(b+=a.I.D.j);return b+a.getDuration()};
VTa=function(a,b){0>b||(a.u.forEach(function(c){wH(c,b)}),a.timestampOffset=b)};
EX=function(a,b){var c=b.Jh,d=b.Iz,e=void 0===b.BB?1:b.BB,f=void 0===b.kH?e:b.kH,h=void 0===b.Mr?!1:b.Mr,l=void 0===b.tq?!1:b.tq,m=void 0===b.pL?!1:b.pL,n=b.Hk,p=b.Ma;b=b.Tg;this.callbacks=a;this.requestNumber=++WTa;this.j=this.now();this.ya=this.Qa=NaN;this.Ja=0;this.C=this.j;this.u=0;this.Xa=this.j;this.Aa=0;this.Ya=this.La=this.isActive=!1;this.B=0;this.Z=NaN;this.J=this.D=Infinity;this.T=NaN;this.Ga=!1;this.ea=NaN;this.I=void 0;this.Jh=c;this.Iz=d;this.policy=this.Jh.ya;this.BB=e;this.kH=f;this.Mr=
h;this.tq=l;m&&(this.I=[]);this.Hk=n;this.Ma=p;this.Tg=b;this.snapshot=YJ(this.Jh);XTa(this);YTa(this,this.j);this.Z=(this.ea-this.j)/1E3};
ZTa=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
FX=function(a){var b={rn:a.requestNumber,rt:(a.now()-a.j).toFixed(),lb:a.u,pt:(1E3*a.Z).toFixed(),pb:a.BB,stall:(1E3*a.B).toFixed(),ht:(a.Qa-a.j).toFixed(),elt:(a.ya-a.j).toFixed(),elb:a.Ja};a.url&&qQa(b,a.url);return b};
bUa=function(a,b,c,d){if(!a.La){a.La=!0;if(!a.tq){$Ta(a,b,c);aUa(a,b,c);var e=a.gs();if(2===e&&d)GX(a,a.u/d,a.u);else if(2===e||1===e)d=(b-a.j)/1E3,(d<=a.policy.j||!a.policy.j)&&!a.Ya&&HX(a)&&GX(a,d,c),HX(a)&&(d=a.Jh,d.j.zi(1,a.B/Math.max(c,2048)),ZJ(d));c=a.Jh;b=(b-a.j)/1E3||.05;d=a.Z;e=a.Mr;c.I.zi(b,a.u/b);c.C=(0,g.M)();e||c.u.zi(1,b-d)}IX(a)}};
IX=function(a){a.isActive&&(a.isActive=!1)};
aUa=function(a,b,c){var d=(b-a.C)/1E3,e=c-a.u,f=a.gs();if(a.isActive)1===f&&0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&GX(a,.05,e)):GX(a,d,e),a.Ya=!0);else if(cUa(a,c)){if(1===f&&(f=(b-a.j)/1E3,!dUa(a)&&!a.tq)){var h=a.Jh;h.J.zi(1,f);ZJ(h)}a.ya=b;a.Ja=c;a.isActive=!0}a.tq||(lxa(a.Jh,d,e),a.Iz(d,e));a.C=b;a.u=c};
GX=function(a,b,c){if(!a.tq){b=Math.max(b,.05);a=a.Jh;var d=b;a.B.zi(void 0===b?d:b,c/d);a.C=(0,g.M)()}};
$Ta=function(a,b,c){c=Math.round(c/1024);a.I&&a.I.push(eUa(b-a.Xa,c-a.Aa));a.Xa=b;a.Aa=c};
JX=function(a){return a.I?a.I.join(""):""};
cUa=function(a,b){return b?a.wG()?!0:2048<=b:!1};
HX=function(a){return cUa(a,a.u)};
fUa=function(a){return(a.C-a.j)/1E3};
XTa=function(a){a.T=a.j+1E3*a.snapshot.delay;a.Ga=!1};
iUa=function(a,b){if(a.Hk&&void 0!==a.Ma&&void 0!==a.Tg){var c=Math,d=c.min,e=a.D;var f=a.Hk;var h=a.j;if(gUa(f,a.Ma))f=b;else{var l=0;f.dk&&(l=.2);f=h+1E3*(f.sj+l)}a.D=d.call(c,e,f);c=Math;d=c.min;e=a.J;f=a.Hk;h=a.j;l=hUa(f,a.Ma,a.Tg);2!==l&&(b=l?b:h+1E3*f.sj,f.dk&&(b+=1E3*f.sj));a.J=d.call(c,e,b);a.D<=a.j?XTa(a):(a.T=a.D,a.Ga=!0)}};
dUa=function(a){a.Hk&&iUa(a,a.now());return a.Ga};
YTa=function(a,b){b=void 0===b?a.now():b;if(a.Hk){iUa(a,b);if(a.oa?a.wG():a.D!==a.J){var c=a.J;if(b<c){a.ea=a.J;return}}else c=a.D;c=Math.max(c,a.T)}else c=a.T;var d=a.BB-a.u;0>d&&(d=0);d=1E3*(d*a.snapshot.stall+d/a.snapshot.byterate);d=HX(a)?d+b:d+Math.max(b,c);a.ea=d};
eUa=function(a,b){for(var c="";4095<a;)c+=eUa(4095,0),a-=4095;for(;4095<b;)c+=eUa(a,4095),b-=4095,a=0;return c+("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b>>6&63)+"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(b&63))};
jUa=function(a,b){if(b+1<=a.totalLength){var c=RF(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=RF(a,b++);else if(2===c)c=RF(a,b++),a=RF(a,b++),a=(c&63)+64*a;else if(3===c){c=RF(a,b++);var d=RF(a,b++);a=RF(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=RF(a,b++);d=RF(a,b++);var e=RF(a,b++);a=RF(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),PF(a,c,4)?a=gua(a).getUint32(c-a.B,!0):(d=RF(a,c+2)+256*RF(a,c+3),a=RF(a,c)+256*(RF(a,c+1)+
256*d)),b+=5;return[a,b]};
KX=function(a){this.callbacks=a;this.j=new LF};
LX=function(a,b){this.info=a;this.callback=b;this.state=1;this.Bz=this.tM=!1;this.Zd=null};
kUa=function(a){return g.Zl(a.info.gb,function(b){return 3===b.type})};
lUa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.status=0;this.j=new LF;this.B=0;this.isDisposed=this.C=!1;this.D=0;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.t(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.wz()};
this.xhr.onload=function(){return e.onDone()};
this.xhr.onerror=function(){return e.onError()};
this.xhr.fetch(function(f){e.u&&e.j.append(e.u);e.policy.j?e.j.append(f):e.u=f;e.B+=f.length;f=(0,g.M)();10<f-e.D&&(e.callbacks.nt(f,e.B),e.D=f)},function(){},d.body||null)};
nUa=function(a,b){var c=this;this.j=a;this.callbacks=b;this.loaded=this.status=0;this.error="";a=UG(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.u=new LF;mUa(this).then(function(){c.callbacks.Jq()},function(d){c.error=""+d||"unknown_err";
c.callbacks.Jq()})};
mUa=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,v,x,z;return g.A(function(B){if(1==B.j){a.status=200;b=a.j.get("docid");c=Le(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 jTa(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(5!=B.j)return n<=m?g.y(B,Lya(b,c,d,n,f),5):B.Ka(0);p=B.u;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;r=(n+1)*e;
v=Math.max(0,h.start-q);x=Math.min(h.end+1,r)-(v+q);z=new Uint8Array(p.buffer,v,x);a.u.append(z);a.loaded+=x;a.loaded<h.length&&a.callbacks.nt((0,g.M)(),a.loaded);n++;return B.Ka(2)})};
pUa=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.callbacks=c;this.ea=d;this.status=0;this.response=void 0;this.T=this.u=0;this.I=this.J=!1;this.errorMessage="";this.oa=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&204!==e.status)e.status=e.status||242,e.hp=f.body.getReader(),e.isDisposed()?e.hp.cancel().catch(function(){}):(e.D=f.headers,e.callbacks.Mv(),oUa(e));
else e.onDone();else e.onError(Error("null_response"))};
this.Z=function(f){var h=(0,g.M)();e.isDisposed()||(e.C&&(e.j.append(e.C),e.C=void 0),f.done?(e.hp=void 0,e.onDone()):(f=f.value,e.u+=f.length,e.policy.j?e.j.append(f):e.C=f,oUa(e),f=(0,g.M)(),10<f-e.T&&(e.T=f,e.callbacks.nt(h,e.u))))};
this.onError=function(f){e.errorMessage=String(f);e.J=!0;e.onDone()};
this.j=new LF;this.B=window.AbortController?new AbortController:void 0;this.start(a)};
oUa=function(a){a.hp.read().then(a.Z,a.onError).then(void 0,qA)};
qUa=function(a,b,c){var d=this;c=void 0===c?{}:c;this.callbacks=b;this.u=this.status=0;this.isDisposed=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.t(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.wz(f)};
a=XI(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",XI(function(f){d.Ie(f)}),!1)};
rUa=function(a,b,c,d,e){if(GF(a.zj))return new nUa(a,c);a=a.Ze();return d?Hta()?new lUa(a,b,c,e):new pUa(a,b,c,e):new qUa(a,c,e)};
MX=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;g.C.call(this);this.callbacks=a;this.policy=b;this.Me=c;this.B=d;this.timing=e;this.logger=f;this.C=h;this.D=l;this.lastError=null;this.u=0;this.j=new g.Ip(this.G8,this.policy.Nd,this)};
sUa=function(a){a.B.J=(0,g.M)();a=NX(a);a.B=(0,g.M)();a.started+=1};
OX=function(a){if("net.timeout"===a.lastError){var b=a.timing,c=(0,g.M)();if(!b.tq){$Ta(b,c,1024*b.Aa);var d=(c-b.j)/1E3;if(2!==b.gs())if(HX(b)){b.B+=(c-b.C)/1E3;var e=b.Jh,f=b.u;f=Math.max(f,2048);e.j.zi(1,b.B/f);ZJ(e)}else dUa(b)||b.tq||(e=b.Jh,e.J.zi(1,d),ZJ(e)),b.ya=c;e=b.Jh;f=b.Z;var h=b.Mr;e.I.zi(d,b.u/d);e.C=(0,g.M)();h||e.u.zi(1,d-f);c=(c-b.C)/1E3;lxa(b.Jh,c,0);b.Iz(c,0)}}"net.nocontent"!==a.lastError?((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&
!GF(a.Me.zj)?(c=NX(a),c.timedOut+=1):(c=NX(a),c.j+=1),a.timing.u||(c=a.B,d=a.Me,e=a.policy,f=a.C,++c.u,b&&++c.D,FF(d.zj).startsWith("redirector.")&&(c.j=c.B.clone(),delete c.C,e.Dx&&delete f[FF(c.j)]))):++a.B.I;a.callbacks.qc(5)};
tUa=function(a,b,c){return 400<=b.status?(a.lastError="net.badstatus",!0):b.BD()||void 0!==c&&c?!1:(a.lastError=204===b.status?"net.nocontent":"net.connect",!0)};
NX=function(a){return LG(a.C,FF(a.Me.zj))};
uUa=function(a){var b=FX(a.timing);b.shost=FF(a.Me.zj);return b};
cX=function(a,b,c,d,e,f){var h=void 0===f?{}:f;f=void 0===h.pD?[]:h.pD;var l=void 0===h.aE?!1:h.aE,m=void 0===h.Au?0:h.Au,n=void 0===h.poToken?"":h.poToken,p=void 0===h.Nv?void 0:h.Nv,q=void 0===h.yD?"":h.yD,r=void 0===h.Yj?0:h.Yj;h=void 0===h.vj?new Uint8Array(0):h.vj;LX.call(this,b,e);var v=this;this.policy=a;this.logger=new g.eW("dash/request");this.Wx=this.Kg=0;this.GX=!1;this.kq=this.Po=null;this.AU=!1;this.vj=this.Yj=null;this.yY=this.xY=!1;this.postBody=this.FK=null;this.Ne={qc:function(z){v.qc(z)},
y7a:function(){return v.Zd},
x8a:function(z){v.Zd=z},
w8a:function(z){v.Kg=z},
v8a:function(z){v.Bd.lastError=z},
fM:function(){return v.xhr}};
this.timing=new EX(this,c);this.aE=l;this.policy.Bx&&(this.postBody=this.policy.ot?"x\x00":(0,g.PX)([120,0]));this.Yj=r;this.vj=h;this.Me=g.iH(this.info,this.policy,d);this.Me.set("rn",this.aG().toString());this.Me.set("rbuf",(1E3*m).toFixed().toString());this.aE&&this.Me.set("smb","1");this.policy.rA&&n&&this.Me.set("pot",n);q&&this.Me.set("bbs",q);this.policy.useUmp&&!GF(this.Me.zj)&&(this.uj=new KX(this),this.Me.set("ump","1"),this.Me.set("srfvp","1"));this.Bd=new MX(this,this.policy,this.Me,this.info.j,
this.timing,this.logger,d);this.pD=f||null;this.Nv=p;this.Bz=vUa(this);sUa(this.Bd);a=void 0;if(this.policy.Xo||this.uj||this.policy.Aa){a={method:"POST"};b=this.policy.ot?"x\x00":(0,g.PX)([120,0]);if(this.uj||this.policy.Xo)a.body=this.postBody?this.postBody:b;this.policy.Aa&&((c=this.info.Ds())?a.body=g.yL(c,g.PLa):a.body=b)}this.policy.Vo&&(this.policy.ij||(this.policy.ij=(0,g.wUa)("1",this.policy.Vo)),this.Me.set("postpad",this.policy.ij));if(this.policy.Rk&&this.Yj&&this.vj){this.Me.set("iwts",
"1");a={method:"POST"};b={S8:1E3*this.Yj};var x;c=null==(x=this.info.Ds())?void 0:x.Pz;x=g.yL({Gu:b,Pz:c||void 0,videoPlaybackUstreamerConfig:this.vj},g.PLa);a.body=x}try{this.xhr=rUa(this.Me,this.policy.I,this.timing,this.policy.Xa?this.policy.Nx&&!isNaN(this.info.Tg)&&this.info.Tg>this.policy.ox?!1:!0:!1,a),this.Bd.j.start(),g.Mf(function(){})}catch(z){xUa(this,z,!0)}};
vUa=function(a){if(!(hH(a.info)&&a.info.Mr()&&a.policy.rd&&a.pD)||2<=a.info.j.u||0<SI()||!pwa())return!1;var b=a.Me.get("aitags");if(!b)return!1;b=Le(b).split(",");for(var c=[],d=g.t(a.pD),e=d.next();!e.done;e=d.next())e=e.value,g.rb(b,e)&&c.push(e);if(!c.length)return!1;a.Me.set("altitags",g.Ke(c.join(",")));return!0};
xUa=function(a,b,c){c=void 0===c?!1:c;g.CD(b);a.Bd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.Mf(function(){OX(a.Bd)}):OX(a.Bd)};
yUa=function(a){var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.NB();c=!c||c<=a.policy.tm;return(!a.xhr.Jt()||!b||-1!==b.indexOf("text/plain"))&&c};
bX=function(a,b,c,d,e){LX.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.eg=d;this.lastError=null;this.j=new g.Ip(function(){f.isComplete()||(f.lastError="net.timeout",f.qc(5))},this.policy.yx);
this.Ie=function(){f.isDisposed()||(f.eg.Xc.has(f.formatId)?(f.isComplete()||f.j.start(),JQa(f.eg,f.formatId)&&f.qz(2),f.eg.Vg(f.formatId)&&(KQa(f.eg,f.formatId)?f.qc(4):(f.lastError="net.closed",f.qc(5)))):(f.lastError="player.exception",f.qc(5)))};
this.j.start();EQa(this.eg,this.formatId,this.Ie);g.Mf(this.Ie)};
zUa=function(a,b,c,d){var e=this;this.Fa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.eW("dash");this.B=[];this.u=this.Vb=null;this.oa=this.ya=0;this.I=-1;this.ea=!1;this.Z=-1;this.Ne={VL:function(){return e.C},
s7a:function(){return e.B}};
this.C=new ETa(a,b,c);this.policy.B&&(this.T=new $Sa(this.C,this.Fa.UT(),this.policy));this.dc=c.info.dc;this.J=c.zC();this.isManifestless=c.zC();this.D=this.J};
QX=function(a,b){b&&CX&&VTa(a.C,b.dM());var c;null==(c=a.T)||iTa(c);a.Vb=b;null!=(b=a.T)&&(b.Vb=a.Vb)};
RX=function(a){return a.Vb&&a.Vb.TF()};
AUa=function(a,b){a.B.push(b);a.u=g.jb(b.info.gb)};
CUa=function(a){for(;a.B.length&&4===a.B[0].state;){var b=a.B.shift();BUa(a,b);a.ya=b.JT()}a.B.length&&BUa(a,a.B[0])};
BUa=function(a,b){if(b.Nk()){var c=b.Vj();c=g.t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.D&&b instanceof bX&&a.Fa.xa("omblss",{s:dH(d.info)}),SX(a,b.info.gb,d,b.bM())}};
SX=function(a,b,c,d){d=void 0===d?0:d;switch(c.info.type){case 1:case 2:DUa(a,c);break;case 4:var e=c.info.j,f=e.rR(c),h;(null==(h=a.u)?0:4===h.type)&&Xua(c.info,a.u)&&(a.u=e.Jz(a.u).pop());c=g.t(f);for(e=c.next();!e.done;e=c.next())SX(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,f=a.policy.ql,f=void 0===f?!0:f,e.I||(e.I=(0,g.M)(),f&&xT("fvb",e.I,e.j),xT("fvb_r",e.I,e.j))):(e=a.timing,f=a.policy.ql,f=void 0===f?!0:f,e.C||(e.C=(0,g.M)(),f&&xT("avb",e.C,e.j),xT("fab_r",e.C,e.j)));MTa(a.C,
b,c,d);a.policy.B&&EUa(a);break;case 6:MTa(a.C,b,c,d),a.u=c.info}};
DUa=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.Ja||(c.Ja=(0,g.M)(),xT("vis_r",c.Ja,c.j))}else c=a.timing,c.ea||(c.ea=(0,g.M)(),xT("ais_r",c.ea,c.j));ITa(a.C,b)};
gX=function(a){return FTa(a.C)};
EUa=function(a){a.B.length?a.u=g.jb(g.jb(a.B).info.gb):a.C.u.length?a.u=AX(a.C).info:a.u=RX(a)};
FUa=function(a){var b={ze:[],yn:[]},c;if(null==(a=a.T))a=void 0;else{gTa(a);var d=hTa(a),e=d.ze;d=d.Az;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:MH(l.info.j.info,a.Sa.fd),sequenceNumber:l.info.Ma+a.u,GF:{Li:1E3*(l.info.startTime+a.timestampOffset),vF:1E3*l.info.duration,Nt:1E3},lV:l.info.u})}a={ze:e,yn:f}}return null!=(c=a)?c:b};
eX=function(a,b,c){c=void 0===c?!1:c;if(a.Vb){var d=a.Vb.Ig(),e=mI(d,b),f=NaN,h=RX(a);h&&(f=mI(d,h.j.index.getStartTime(h.Ma)));if(e===f&&a.u&&a.u.u&&GUa(HUa(a),0))return b}a=IUa(a,b,c);return 0<=a?a:NaN};
fX=function(a,b){a.j.Jg();var c=IUa(a,b);if(0<=c)return c;if(null!=(c=a.T)){var d=b;c.Az=[];gTa(c);c.j=c.policy.nm?bTa(c.ze,1E3*d):eTa(c,c.ze,1E3*d)}c=Math;d=c.min;var e=a.C;if(e.J)if(e=e.J,e.Cf&&3===e.Cf.type)e=e.Cf.startTime;else if(0<e.B){var f=e.j.index;f=g.Jb(f.offsets.subarray(0,f.count),e.B*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.C){var h,l;c=null==(h=a.Fa.Og)?void 0:null==(l=QRa(h,b))?void 0:l.clipId;a.u=a.j.Zp(b,
void 0,c).gb[0]}else a.u=a.j.Zp(b).gb[0];TX(a)&&a.Vb&&a.Vb.abort();a.oa=0;return a.u.startTime};
JUa=function(a){a.J=!0;a.D=!0;a.I=-1;fX(a,Infinity)};
UX=function(a){for(var b=0,c=g.t(a.B),d=c.next();!d.done;d=c.next())d=d.value,d=d.Zd&&d.Zd.length?DQa(d.Zd):Zua(d.info),b+=d;return b+=OTa(a.C)};
VX=function(a,b){b=void 0===b?!1:b;if(!a.Vb)return 0;var c=RX(a);if(c&&YG(c))return c.B;c=a.Fa.getCurrentTime();var d=a.Vb.Ig(!0);if(b&&(b=AX(a.C))){var e=0;a.policy.B&&(e=oI(d,b.info.B));return e+b.info.B-c}return oI(d,c)};
KUa=function(a,b,c,d){dX(a);for(var e=a.C,f=null,h=e.u.length-1;0<=h;h--){var l=e.u[h];l.info.Ma>=b&&(e.u.pop(),e.B-=xH(l,e.policy.Pb),f=l.info)}f&&(e.C=0<e.u.length?e.u[e.u.length-1].info:e.Qa,0!==e.u.length||e.C||GTa(e,"r"));e.Fa.xa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Ma:-1,sq:b,lastslc:e.C?e.C.Ma:-1,lastfraget:e.B.toFixed(3)});d>c?fX(a,d):a.u=a.j.Br(b-1,!1).gb[0]};
XX=function(a,b){var c;for(c=0;c<a.B.length&&b!==a.B[c];c++);if(c===a.B.length)WX(a,b);else{for(;c<a.B.length;)WX(a,a.B.pop());var d=LUa(a);d&&d.j.ov()&&Wm(b.info.gb,function(e){return Yua(e,d)})?(a.u=d,a.policy.D&&a.Fa.xa("cer",{lsr:"lsp",
lsp:dH(d)})):($G(b.info.gb[0])?(a.u=b.Zd&&b.Zd.B?Wua(b.Zd.B):Vua(b.info.gb[0]),a.policy.D&&a.Fa.xa("cer",{lsr:dH(a.u),lsp:null==d?void 0:dH(d)})):(a.u=null,a.policy.D&&a.Fa.xa("cer",{lsr:"null",lsp:null==d?void 0:dH(d)})),a.Fa.isOffline()&&!a.policy.ri||WX(a,b,!0))}};
TX=function(a){var b;!(b="f"===a.j.info.Lb)&&(b=a.policy.u)&&(b=a.C,b=!!b.J&&uX(b.J));if(b)return!0;b=RX(a);if(!b)return!1;var c=YG(b)&&b.bf;return a.isManifestless&&0<a.Z?c||b.Ma>=a.Z:c};
YX=function(a){var b;return TX(a)||!(null==(b=AX(a.C))||!YG(b.info))};
HUa=function(a){var b=[],c=RX(a);c&&b.push(c);b=g.zb(b,a.C.Om());c=g.t(a.B);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e={},f=g.t(d.info.gb),h=f.next();!h.done;e={Kw:e.Kw},h=f.next())e.Kw=h.value,d.tM&&(b=g.Rn(b,function(l){return function(m){return!Xua(m,l.Kw)}}(e))),($G(e.Kw)||4===e.Kw.type)&&b.push(e.Kw)}a.u&&!Qua(a.u,g.jb(b),a.u.j.Ym())&&b.push(a.u);
return b};
GUa=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!Rua(a[b-1],a[b]))return!1;return!0};
IUa=function(a,b,c){c=void 0===c?!1:c;if(!a.u||!a.u.u)return NaN;a=HUa(a);a:{var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:GUa(a,c?b:0)?a[b].startTime:NaN};
ZX=function(a){return!(!a.u||a.u.j===a.j)};
MUa=function(a){return ZX(a)&&a.j.Jg()&&a.u.j.info.dc<a.j.info.dc};
NUa=function(a,b,c){return(a=LUa(a))&&!YG(a)?a.B>b&&a.B<b+c:!1};
LUa=function(a){var b=AX(a.C);return b?b.info:RX(a)};
dX=function(a){for(var b=g.t(a.B),c=b.next();!c.done;c=b.next())WX(a,c.value);a.B=[];a.u=null};
WX=function(a,b,c){c=void 0===c?!1:c;b.tM&&((void 0===c?0:c)||!b.info.gb[0].j.ov())&&(a=a.C,a.oa&&!a.policy.Pn&&(c=a.Fa,c.Sa.isManifestless&&PI(c.Sa,a.oa.Ma,!!a.I.info.video)),a.oa=null,a.D=null,a.C=a.ib,a.B=a.C?a.B-a.Z:NaN,BX(a));b.dispose()};
OUa=function(a){return!!a.u&&-1!==a.u.Ma&&a.u.Ma<a.j.index.Lm()};
PUa=function(a){var b=a.u;b&&-1===b.Ma&&(a=AX(a.C))&&$G(a.info)&&(a=a.info.Ma,b.D="updateLastSliceRequested",b.Ma=a)};
QUa=function(a){return Wm(a.B,function(b){return b.Bz})};
RUa=function(a){a=void 0===a?{}:a;var b=a.dk,c=a.sj,d=a.td,e=a.Ru;this.Mp=a.Mp;this.dk=b;this.sj=c;this.td=d;this.Ru=e};
gUa=function(a,b){if(0>b)return!0;var c=a.td();return b<c||b===c&&!a.Mp||b===c&&(a=a.Ru())&&b===a.Ma?!0:!1};
hUa=function(a,b,c){if(!gUa(a,b))return 0;if(!a.dk||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.td();return b<c||b===c&&(a=a.Ru())&&b===a.Ma&&!a.pending?2:1};
SUa=function(a,b,c,d){var e=a.As();if(a.isComplete()||!e||OG(a.info.j,b,c))return 0;var f=b.Yn;if(!d&&f&&e>=f)return 1;d=b.zm;if(!d||e<d)return 0;a=LG(c,PG(a.info.j,!0,b));return a.j||a.timedOut||a.started?0:2};
TUa=function(a,b,c){if(!(b.Xn&&a.isComplete()&&a.canRetry()&&OG(a.info.j,b,c)))return 0;a=LG(c,PG(a.info.j,!1,b));return a.B+b.Xn*Kua(a,b,!0)>(0,g.M)()?0:1};
$X=function(a,b,c,d,e,f,h,l,m,n,p,q){g.C.call(this);this.Fa=a;this.policy=b;this.videoTrack=c;this.audioTrack=d;this.C=e;this.j=f;this.timing=h;this.D=l;this.schedule=m;this.Sa=n;this.B=p;this.Z=q;this.oa=!1;this.yD="";this.Hk=null;this.J=0;this.Tg=NaN;this.ea=!1;this.u=null;this.Yj=this.T=NaN;this.vj=null;this.I=0;this.logger=new g.eW("dash");0<this.policy.Qn&&(this.yD=g.KD(this.policy.Qn))};
YUa=function(a,b,c){if(UUa(a,b,c)){if(b.J){if(a.Sa.isLive){var d=a.Sa.Ge&&a.Sa.B?b.j.Br(a.Sa.Ge,!1):b.j.Zp(Infinity);d.Tg=a.Tg}else d=b.j.Br(0,!1);a.Z?0===d.Tg&&(d.D=a.Z.T):d.D=a.T}else if(d=b.u,d.j.Jg()){var e=d.B-a.Fa.getCurrentTime(),f=!d.range||0===d.u&&0===d.Ob?0:d.range.length-(d.Ob+d.u),h=d.j;if(ZX(b)&&b.j.Jg()){var l=Math.min(15,.5*VUa(a.Fa,b,!0));l=MUa(b)||e<=l||a.B.T}else l=!1;l&&0===f&&(a.Sa.isManifestless?h=b.j:(h=d.startTime+WUa,d.u&&(h+=d.duration),fX(b,h),d=b.u,h=d.j));h.Ym()?(f=a.B,
c=ySa(a.D,h.info.dc,c.j.info.dc,e,0<f.C.length&&0===f.J&&a.Fa.Uy),h=ZX(b),c=d.j.hx(d,c),(e=c.C)&&1<c.gb.length&&(h||c.j.u||c.gb[0].j!==d.j?c=d.j.hx(d,c.gb[0].u):(h=c.gb[c.gb.length-1],f=h.u/e,!h.bf&&.4>f&&(c=d.j.hx(d,e-h.u)))),d=c):(0>d.Ma&&(c=cH(d),c.pr=""+b.B.length,a.Fa.hh()&&(c.sk="1"),c.snss=d.D,a.Fa.xa("nosq",c)),d=h.PA(d));if(a.policy.oa)for(c=g.t(d.gb),e=c.next();!e.done;e=c.next())e.value.type=6}else d.j.Ym()?(c=ySa(a.D,b.j.info.dc,c.j.info.dc,0),d=d.j.hx(d,c)):d=d.j.PA(d);if(a.u){l=d.gb[0].j.info.id;
c=a.j;e=d.gb[0].Ma;c=0>e&&!isNaN(c.B)?c.B:e;e=LSa(a.j,d.gb[0].C,c);var m=b===a.audioTrack?1:2;f=d.gb[0].j.info.Lb;h=l.split(";")[0];if(a.policy.Aa&&0!==a.j.u){if(l=a.u.Ds(e,c,l,m,f),0>c&&2===m&&jX(a.j,0,0,!0),l){var n;m=(null==(n=l.Pz)?void 0:n.Qr)||"";var p;n=(null==(p=l.Pz)?void 0:p.RX)||-1;a.Fa.xa("sdai",{ssdaiinfo:"1",ds:m,skipsq:n,itag:h,f:f,sg:c,st:e.toFixed(3)});d.J=l}}else if(p=a.u.Im(e,c,l,m,f),0>c&&2===m&&jX(a.j,0,0,!0),p){n={dec_sq:c,itag:h,st:e.toFixed(3)};if(a.policy.Xy&&b.isRequestPending(c-
1)){a.Fa.xa("sdai",{wt_daistate_on_sg:c-1});return}a.Fa.xa("sdai",n);p&&(d.u=new g.DF(p))}else 5!==a.j.u&&a.Fa.xa("sdai",{nodec_sq:c,itag:h,st:e.toFixed(3)})}a.policy.hm&&-1!==d.gb[0].Ma&&d.gb[0].Ma<a.Sa.Ge&&(d=b.j.Br(a.Sa.Ge,!1));AUa(b,XUa(a,d));ISa(a.timing)}};
UUa=function(a,b,c){var d;var e=a.j,f=(null==(d=b.u)?void 0:d.Ma)||-1;3===e.u&&f+1>=e.J?(e.xa("sdai",{haltrq:f+1,est:e.J}),d=!1):d=2!==e.u;if(!d||!QG(b.u?b.u.j.u:b.j.u,a.policy,a.C)||a.Fa.isSuspended&&(!mxa(a.schedule)||a.Fa.sF))return!1;if(a.policy.u&&5<=PL)return g.Jp(a.Fa.FG),!1;if(a.Sa.isManifestless){if(0<b.B.length&&b.u&&-1===b.u.Ma||b.B.length>=a.policy.rl||!a.policy.Ax&&0<b.B.length&&!a.policy.I.dk)return!1;if(b.J)return!a.Sa.isLive||!isNaN(a.Tg)}if(QUa(b))return!1;if(!b.u){if(!b.j.Jg())return!1;
fX(b,a.Fa.getCurrentTime())}if(a.policy.Ld&&gX(b))return!1;e=(d=a.policy.vf)&&!b.B.length&&VX(b,!0)<Math.min(d,VX(c));d=b.B.length+c.B.length;f=!a.policy.Ow&&((b.B.length?b.B[0].qv():!1)||(c.B.length?c.B[0].qv():!1)||a.Sa.isLive);(e||f)&&--d;if(d+1>=a.policy.qm)return!1;d=b.u;if(!d)return!0;4===d.type&&d.j.Jg()&&(b.u=g.jb(d.j.Jz(d)),d=b.u);if(!YG(d)&&!d.j.Ar(d))return!1;f=a.Sa.Se||a.Sa.B;if(a.Sa.isManifestless&&f){f=b.j.index.td();var h=c.j.index.td();f=Math.min(f,h);if(0<b.j.index.RF()&&0<f&&d.Ma>=
f)return b.Z=f,c.Z=f,!1}if(d.j.info.audio&&4===d.type)return!1;if(!a.policy.Ld&&MUa(b)&&!a.policy.Oc)return!0;if(YG(d)||!a.policy.Ld&&UX(b)&&UX(b)+UX(c)>a.policy.kb)return!1;f=!b.D&&!c.D;if(e=!e)e=d.B,e=!!(c.u&&!YG(c.u)&&c.u.B<e);h=b===a.videoTrack&&a.policy.oa;return e&&(!a.Sa.isManifestless||c.u&&c.u.B&&d.B)&&f&&!h||a.policy.uc&&!b.D&&c.D?!1:$G(d)&&d.B>ZUa(a,b)?(ZUa(a,b),!1):(a=b.Vb)&&a.isLocked()?!1:!0};
ZUa=function(a,b){var c=a.j;c=c.j?c.j.jf:null;if(a.policy.oa&&c)return c.startSecs+c.Sg+15;b=VUa(a.Fa,b,!0);!sX(a.Fa.ue)&&0<a.policy.fb&&(c=((0,g.M)()-a.J)/1E3,b=Math.min(b,a.policy.fb+a.policy.Hf*c));b=a.Fa.getCurrentTime()+b;return a.policy.Vn&&(c=$Ua(a)+a.policy.Vn,c<b)?(a.Fa.xa("mrl",{ori:b,mod:c},!0),a.policy.lx&&(a.J=(0,g.M)()),c):b};
$Ua=function(a){var b=a.Fa.Hm().filter(function(d){return"ad"===d.namespace});
b=g.t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.Fa.getCurrentTime())return c.start/1E3;return Infinity};
aVa=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.u)b=null;else{var d=b.gb[0];if(b.range)var e=VG(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.j.B.get("defrag")||"1"===b.j.B.get("otf")){b=null;break a}e=VG(0,4096)}e=new fH([new XG(5,d.j,e,"createProbeRequestInfo"+d.D,d.Ma)],b.B);e.I=c;e.u=b.u;b=e}b&&XUa(a,b)}};
XUa=function(a,b){a.Fa.iG(b);var c=Zua(b);c={Jh:a.schedule,BB:c,kH:wSa(a.D,c),Mr:ZG(b.gb[0]),tq:GF(b.j.j),pL:a.policy.D,Iz:function(e,f){a.Fa.DD(e,f)}};
a.Hk&&(c.Ma=b.gb[0].Ma,c.Tg=b.Tg,c.Hk=a.Hk);var d={Au:$ua(b,a.Fa.getCurrentTime()),pD:a.policy.rd&&hH(b)&&b.gb[0].j.info.video?ZSa(a.B):void 0,aE:a.policy.oa,poToken:a.Fa.cM(),Nv:a.Fa.XB(),yD:a.yD,Yj:isNaN(a.Yj)?null:a.Yj,vj:a.vj};return new cX(a.policy,b,c,a.C,function(e,f){try{a:{var h=e.info.gb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.As()||!(!a.Fa.Wa||a.Fa.isSuspended||3<VX(l))){var m=SUa(e,a.policy,a.C,a.ea);1===m&&(a.ea=!0);aVa(a,e,m);if(e.isComplete()||
e.isDisposed()&&3>f){if(a.policy.ib){var n=e.policy.jE?Object.assign(FX(e.timing),{rst:e.state,strm:e.xhr.Jt(),d:JX(e.timing),cncl:e.isDisposed()}):Object.assign(FX(e.timing),{rst:e.state,strm:e.xhr.Jt(),d:JX(e.timing)});a.Fa.xa("rqs",n)}e.GX&&a.Fa.xa("sbwe3",{},!0)}if(!a.isDisposed()&&2<=e.state){var p=a.timing,q=e.info.gb[0].j,r=!p.J&&q.info.video,v=!p.u&&q.info.audio;3===e.state?r?p.tick("vrr"):v&&p.tick("arr"):4===e.state?r?(p.J=e.Ze(),g.iA(),kA(4)):v&&(p.u=e.Ze()):e.qv()&&r&&(g.iA(),kA(4));var x=
a.Fa;a.Yj&&e.FK&&x&&(a.Yj=NaN,a.Fa.xa("cabrUtcSeek",{mediaTimeSeconds:e.FK}));if(3===e.state){XX(l,e);hH(e.info)&&aY(a,l,h,!0);if(a.u){var z=e.info.Im();z&&a.u.Bk(e.info.gb[0].Ma,h.info.id,z)}a.Fa.gf()}else if(e.isComplete()&&5===e.info.gb[0].type){if(4===e.state){var B=(e.info.gb[0].j.info.video?a.videoTrack:a.audioTrack).B[0]||null;B&&B instanceof cX&&B.As()&&B.iE(!0)}e.dispose()}else{if(!e.Wm()&&e.Bz&&2<=e.state&&3!==e.state){var F=e.xhr.getResponseHeader("X-Response-Itag");if(F){var G=YSa(a.B,
F),D=e.info.C;if(D){var L=D-G.WL();G.C=!0;e.info.gb[0].j.C=!1;var P=G.Uu(L);e.info=P;if(e.Zd){var T=e.Zd,fa=P.gb;(fa.length!==T.gb.length||fa.length<T.Le.length)&&BQa("dash/request",260511119,""+fa.length,""+T.gb.length,""+T.Le.length);T.gb=fa;var V=fa[0].range,Q=new LF;for(f=0;f<T.Le.length;f++)MF(Q,T.Le[f].j);for(f=0;f<T.Le.length;f++){T.Le[f].info=fa[f];var X=fa[f].range;T.Le[f].j=NF(Q,X.start-V.start,X.length);delete T.Le[f].B}}e.Bz=!1;bY(a.videoTrack,G);var O=a.videoTrack;O.u&&(O.u.j=G);a.Fa.hO(G.info.video.quality);
var la=e.bM();la&&G.info.lastModified&&G.info.lastModified!==+la&&XX(a.videoTrack,e)}}else e.Bz=!1}if(4===e.state)bVa(a,e),a.j&&KSa(a.j,e.info,a.u);else if(a.policy.Xa&&e.Nk()&&!e.isComplete()&&!bVa(a,e)&&!e.Wm())break a;e.Wm()&&(a.Fs(e),a.Yj=NaN);a.Fa.gf();var qa=TUa(e,a.policy,a.C);aVa(a,e,qa)}}}}}catch(Ma){G=a.oa?1:0,a.oa=!0,e=QK(G),G=RK(Ma,G),a.Fa.handleError(G.errorCode,G.details,G.severity),e||a.Fa.vk()}},d)};
bVa=function(a,b){if(a.policy.useUmp&&b.isDisposed())return!1;try{var c=b.info.gb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.Sa.isManifestless&&d){a.I=0;d.J&&(b.isDisposed(),b.isComplete()||b.Nk(),d.J=!1);b.JL()&&a.Fa.kF.zi(1,b.JL());var e=b.RF(),f=b.OT(),h=a.Sa,l;for(l in h.j){var m=h.j[l].index;m.Dm&&(e&&(m.Po=Math.max(m.Po,e)),f&&(m.kq=Math.max(m.kq||0,f)))}}if(b.info.Mr()&&!gH(b.info))for(var n=g.t(b.Vj()),p=n.next();!p.done;p=n.next())DUa(d,p.value);CUa(d,a.Fa.getCurrentTime());var q=
!!gX(d);if(q&&b instanceof bX)if(c.info.Ek()){var r=a.timing;r.ya||(r.ya=(0,g.M)(),xT("oafs_rp",r.ya,r.j))}else{var v=a.timing;v.Aa||(v.Aa=(0,g.M)(),xT("ovfs_rp",v.Aa,v.j))}return q}catch(x){return b=b.Vp(),b.origin="hrhs",cVa(a.Fa,x,b),!1}};
dVa=function(a){var b=a.videoTrack.j.index;a.Hk=new RUa({Mp:a.policy.Mp,dk:a.policy.I.dk,sj:b.sj,td:function(){return b.td()},
Ru:function(){return b.Ru()}})};
aY=function(a,b,c,d){if(!(c.Jg()||c.Vy()||c.C||!QG(c.u,a.policy,a.C)||"f"===c.info.Lb||a.policy.B)){if(d){d=a.D;var e=c.info;d=xSa(d,e.video?d.policy.Yv:d.policy.Xk,e.dc)}else d=0;d=c.Uu(d);a=XUa(a,d);gH(d)&&AUa(b,a);c.C=!0}};
cY=function(a,b,c,d,e,f){g.C.call(this);this.C=a;this.B=b;this.Fa=c;this.videoTrack=d;this.audioTrack=e;this.Sa=f;this.logger=new g.eW("sabr");this.videoInfos=this.C;this.j=this.B;eVa(this)};
fVa=function(a){var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())b.push(MH(c.value));return b};
gVa=function(a,b){a.videoInfos=a.C;a.videoInfos=g.Rn(a.videoInfos,function(c){return c.video.j===b})};
eVa=function(a){var b=g.nb(a.B,function(c){var d;return!(null==(d=c.Jc)||!d.isDefault)});
b&&(a.j=[b])};
hVa=function(a,b,c){return a.map(function(d){return Nua(d,b,c)})};
dY=function(a){this.u={};this.logger=new g.eW(a)};
iVa=function(a){return(a.videoId||"")+";"+a.itag+";"+(a.jj||0)+";"+(a.xtags||"")};
kVa=function(a,b){var c=[];b=g.t(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=jVa[d]||0;a.j&&e>a.j||c.push(d)}return c};
nVa=function(a,b,c){b.push.apply(b,g.u(lVa[a]||[]));c.K("html5_early_media_for_drm")&&b.push.apply(b,g.u(mVa[a]||[]))};
sVa=function(a,b){var c=vM(a),d=a.V().D;if(eY&&!d.j)return eY;for(var e=[],f=[],h={},l=g.t(oVa),m=l.next();!m.done;m=l.next()){var n=!1;m=g.t(m.value);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=pVa(p);!q||!q.video||KH(q)&&!c.Ja&&q.video.j>c.C||(n?(e.push(p),nVa(p,e,a)):(q=sF(c,q,d),!0===q?(n=!0,e.push(p),nVa(p,e,a)):h[p]=q))}}l=g.t(qVa);for(n=l.next();!n.done;n=l.next())for(n=g.t(n.value),p=n.next();!p.done;p=n.next())if(m=p.value,(p=rVa(m))&&p.audio&&(a.K("html5_onesie_51_audio")||!AF(p)&&
!zF(p)))if(p=sF(c,p,d),!0===p){f.push(m);nVa(m,f,a);break}else h[m]=p;c.B&&b("orfmts",h);eY={video:e,audio:f};d.j=!1;return eY};
pVa=function(a){var b=HH[a],c=tVa[b],d=uVa[a];if(!d||!c)return null;var e=new EH(d.width,d.height,d.fps);c=GI(c,e,b);return new IH(a,c,{video:e,dc:d.bitrate/8})};
rVa=function(a){var b=tVa[HH[a]],c=vVa[a];return c&&b?new IH(a,b,{audio:new CH(c.audioSampleRate,c.numChannels)}):null};
xVa=function(a){return{kY:mya(a,1,wVa)}};
yVa=function(a){return{S7a:kL(a,1)}};
wVa=function(a){return{clipId:nL(a,1),nE:oL(a,2,zVa),Z4:oL(a,3,yVa)}};
zVa=function(a){return{a$:nL(a,1),k8:kL(a,2),Q7a:kL(a,3),vF:kL(a,4),Nt:kL(a,5)}};
AVa=function(a){return{first:kL(a,1),eV:kL(a,2)}};
CVa=function(a,b){xL(a,1,b.formatId,fY,3);tL(a,2,b.startTimeMs);tL(a,3,b.durationMs);tL(a,4,b.Gt);tL(a,5,b.fh);xL(a,9,b.t6a,BVa,3)};
DVa=function(a,b){wL(a,1,b.videoId);tL(a,2,b.jj)};
BVa=function(a,b){var c;if(b.uS)for(c=0;c<b.uS.length;c++)xL(a,1,b.uS[c],DVa,3)};
fY=function(a,b){tL(a,1,b.itag);tL(a,2,b.jj);wL(a,3,b.xtags)};
EVa=function(a){return{itag:kL(a,1),jj:kL(a,2),xtags:nL(a,3)}};
GVa=function(a,b){xL(a,1,b.formatId,fY,3);tL(a,2,b.T8);tL(a,3,b.sequenceNumber);xL(a,4,b.GF,FVa,1);tL(a,5,b.lV)};
HVa=function(a){return{sN:kL(a,1),SG:kL(a,2),minReadaheadMs:kL(a,3)}};
IVa=function(a,b){tL(a,1,b.type);vL(a,2,b.value)};
JVa=function(a,b){var c;if(b.Py)for(c=0;c<b.Py.length;c++)xL(a,1,b.Py[c],fY,3);if(b.ze)for(c=0;c<b.ze.length;c++)xL(a,2,b.ze[c],CVa,3);wL(a,3,b.clipId)};
KVa=function(a,b){vL(a,3,b.playbackCookie);var c;if(b.WH)for(c=0;c<b.WH.length;c++)xL(a,5,b.WH[c],IVa,3)};
FVa=function(a,b){tL(a,1,b.Li);tL(a,2,b.vF);tL(a,3,b.Nt)};
LVa=function(a,b){xL(a,1,b.Gu,ALa,1);var c;if(b.Py)for(c=0;c<b.Py.length;c++)xL(a,2,b.Py[c],fY,3);if(b.ze)for(c=0;c<b.ze.length;c++)xL(a,3,b.ze[c],CVa,3);vL(a,5,b.videoPlaybackUstreamerConfig);if(b.yn)for(c=0;c<b.yn.length;c++)xL(a,6,b.yn[c],GVa,3);if(b.OD)for(c=0;c<b.OD.length;c++)xL(a,16,b.OD[c],fY,3);if(b.PD)for(c=0;c<b.PD.length;c++)xL(a,17,b.PD[c],fY,3);xL(a,19,b.k9,KVa,3);if(b.lI)for(c=0;c<b.lI.length;c++)xL(a,1E3,b.lI[c],JVa,3)};
MVa=function(a){dY.call(this,"sabr");this.callbacks=a};
NVa=function(a,b,c,d,e,f){g.C.call(this);this.policy=a;this.info=b;this.Sa=c;this.callbacks=e;this.logger=new g.eW("sabr");this.uj=new KX(this);this.N8=new MVa(this);this.eg=new hW(this);this.state=1;this.yX=!1;this.NO=0;this.clipId="";this.Dh=new EX(this,f);e=this.policy;f=void 0===b.u?OG(b.j,e,d):b.u;e=Lua(b.j,f,e);b.uv()&&e.set("probe","1");this.Me=e;this.Me.set("rn",""+this.aG());NQa(this.eg,c,a);this.Bd=new MX(this,this.policy,this.Me,b.j,this.Dh,this.logger,d,this.policy.Mw);sUa(this.Bd);a=
{method:"POST"};a.body=b.B;try{this.xhr=rUa(this.Me,this.policy.I,this.Dh,xM,a),this.Bd.j.start()}catch(h){g.DD(h)}};
OVa=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.MO)?0:f.items)for(a=g.t(a.MO.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.sN||f.sN<c||(c=f.sN,d=f.SG,e=f.minReadaheadMs);return{u4:c,SG:d,tN:e}};
QVa=function(a){var b=Object.assign(FX(a.Dh),{rst:a.state,strm:a.xhr.Jt(),d:JX(a.Dh)});return Object.assign(PVa(a.info),b)};
TVa=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;var h={},l=SI(0);l&&(h.v4=l,h.lastManualDirection=lwa(),l=Ooa()||0,0<l&&(l=(a.K("html5_use_date_now_for_local_storage")?Date.now():(0,g.M)())-l,a.K("html5_use_date_now_for_local_storage")?0<l&&(h.timeSinceLastManualFormatSelectionMs=l):h.timeSinceLastManualFormatSelectionMs=l));h.h9=SI();a.schedule.T&&(h.X1=XJ(a.schedule,!f));f=g.CK();h.o2=c.width*f;h.n2=c.height*f;h.visibility=d;h.v9=NC();a.K("html5_onesie_media_capabilities")&&(h.pT=3);
a.K("html5_onesie_audio_only_playback")&&uM(b)&&(h.pT=1);if(a.K("html5_onesie_media_capabilities")){b=vM(b);c=a.D;d=[];f=[];l=g.t(oVa);for(var m=l.next();!m.done;m=l.next()){m=g.t(m.value);for(var n=m.next();!n.done;n=m.next()){n=n.value;var p=pVa(n);if(p&&p.video&&!0===sF(b,p,c)){d.push({S9:RVa[HH[n]],F4:p.video.width,E4:p.video.height,maxFramerate:p.video.fps});break}}}l=g.t(qVa);for(m=l.next();!m.done;m=l.next())for(m=g.t(m.value),n=m.next();!n.done;n=m.next())if(n=n.value,(p=rVa(n))&&p.audio&&
(a.K("html5_onesie_51_audio")||!AF(p)&&!zF(p))&&!0===sF(b,p,c)){f.push({W1:SVa[HH[n]],numChannels:p.audio.numChannels});break}h.mediaCapabilities={dQ:d,zK:f}}a.K("html5_prefer_drc")&&(h.M2=!0);h.l8=e;return h};
UVa=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.Pk,h="https://web.archive.org/web/20230426095903/https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.FM&&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.hc()});g.ey("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.ey("EOM_VISITOR_DATA")}):(c=c.visitorData||g.ey("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=sJ(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=lua(JSON.stringify(a));return{url:h,wM:f,postBody:a,t8:e,YD:e}};
WVa=function(a,b,c,d,e,f,h,l){var m=g.yL(a,MLa,c.Nd),n={encryptedClientKey:b.j.encryptedClientKey,FX:!0,oT:!0,oL:VVa(c,!!a.YD)};a.YD?n.H9=m:(a=b.encrypt(m),n.qT=a,(0,g.M)(),a=bxa(new axa(b.j.B),a,b.iv),n.EU=a,n.iv=b.iv);b=TVa(c,d,e,f,1E3*d.startSeconds);return{GM:n,Gu:b,onesieUstreamerConfig:h,sE:l}};
ZVa=function(a,b,c){var d,e,f;return g.A(function(h){if(1==h.j)return d=g.yL(b,MLa),g.y(h,XVa(c,d),2);if(3!=h.j)return e=h.u,g.y(h,YVa(c,e),3);f=h.u;return h.return({qT:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,EU:f,FX:!0,oT:!0,oL:VVa(a,!!b.YD)})})};
$Va=function(a,b,c,d,e,f,h,l){var m,n;return g.A(function(p){if(1==p.j)return g.y(p,ZVa(c,a,b),2);m=p.u;n=TVa(c,d,e,f,1E3*d.startSeconds);return p.return({GM:m,Gu:n,onesieUstreamerConfig:h,sE:l})})};
VVa=function(a,b){a=XJ(a.schedule,!0);b=b||!!HJ()&&1572864<a;return"DecompressionStream"in window||!b};
gY=function(a,b,c,d){this.requestType=a;this.data=b;this.callbacks=c;this.B=null;if(!this.uv()){var e=b.videoData;a=b.Sa;c=YM(e);var f=TVa(e.V(),e,b.tH,b.visibilityState,b.Mu,!!b.J2),h=b.nextRequestPolicy;h={playbackCookie:null==h?void 0:h.playbackCookie};if(YM(e)&&e.sabrContextUpdates){h.WH=[];for(var l=g.t(e.sabrContextUpdates),m=l.next();!m.done;m=l.next())if(m=m.value,m.sendByDefault&&m.value){var n=RJ(m.value);n&&h.WH.push({type:m.type,value:n})}}m=b.OD;l=b.PD;if(void 0===l&&void 0===m){var p;
l=(l=null==(p=b.EK)?void 0:p.video)?[MH(l.info,a.fd)]:[];var q;m=(p=null==(q=b.EK)?void 0:q.audio)?[MH(p.info,a.fd)]:[]}if(e.vj)var r=e.vj;c&&(m=[],l=[]);q={Gu:f,yn:b.yn,OD:m,PD:l,videoPlaybackUstreamerConfig:r,k9:h};if(c&&d){r=new Map;a=g.t(b.ze);for(c=a.next();!c.done;c=a.next())c=c.value,p=c.startTimeMs||0,f=void 0,e=null==(f=d)?void 0:QRa(f,p),f=e.clipId,e=e.lN,f&&(r.has(f)||r.set(f,{clipId:f,ze:[]}),0!==e&&(c.startTimeMs=p-e),r.get(f).ze.push(c));q.lI=[];d=g.t(r.entries());for(r=d.next();!r.done;r=
d.next())r=g.t(r.value),r.next(),r=r.next().value,q.lI.push(r)}else q.ze=b.ze,q.Py=a.La;this.C=q;this.B=g.yL(this.C,LVa)}this.j=b.Sa.Ga};
PVa=function(a){for(var b={},c=[],d=[],e=0;e<a.data.ze.length;e++){var f=a.data.ze[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+f.startTimeMs+"_d."+f.durationMs+"_sn."+f.Gt+"_en."+f.fh)}for(e=0;e<a.data.yn.length;e++){f=a.data.yn[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.T8||NaN)+"_lb."+f.lV+"_tr.s_"+(null==(l=f.GF)?void 0:l.Li)+"_d_"+(null==(m=f.GF)?void 0:m.vF)+"_t_"+(null==(n=f.GF)?void 0:n.Nt))}b.rtype=
a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
hY=function(a,b){g.C.call(this);this.j=a;this.B=b;this.iv=(0,g.PX)(JD(16))};
XVa=function(a,b){var c;return g.A(function(d){(0,g.M)();c=hxa(a.j);return d.return(c.encrypt(b,a.iv))})};
YVa=function(a,b){var c;return g.A(function(d){(0,g.M)();var e=a.j;e.C||(e.C=new cxa(e.B));c=e.C;return d.return(fxa(c,b,a.iv))})};
aWa=function(a,b,c){var d;return g.A(function(e){(0,g.M)();d=hxa(a.j);return e.return(d.decrypt(b,c))})};
bWa=function(a){this.Mk=a;this.u=!1;this.j=[]};
dWa=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.AP;if(b=b.buffer)cWa(a.Mk.Md,c,b);else if(b=a.Mk,b.j[c].wU=!0,b=iY(b.Md,c),null==b?0:b.Xc.has(c))null==b||FQa(b,c)}};
g.gWa=function(a){this.data=a;this.j=0;this.C=!1;this.B=0;this.error=!1;this.register=this.u=0;if(0===jY.length){jY.length=288;jY.fill(8);for(a=144;280>a;a++)jY[a]=255>=a?9:7;eWa.length=32;eWa.fill(5);kY.length=286;kY.fill(0);for(a=261;285>a;a++)kY[a]=Math.floor((a-261)/4);lY[257]=3;for(a=258;285>a;a++){var b=lY[a-1];b+=1<<kY[a-1];lY[a]=b}lY[285]=258;for(a=0;30>a;a++)fWa[a]=3>=a?0:Math.floor((a-2)/2);for(a=mY[0]=1;30>a;a++)b=mY[a-1],b+=1<<fWa[a-1],mY[a]=b}a=100+7*this.data.length;31===this.data[0]&&
139===this.data[1]&&(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.Sj=new Uint8Array(a)};
g.mWa=function(a){for(;!a.C&&!a.error;){var b=a;b.C=!!nY(b,1);switch(nY(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=nY(b,5)+257;var f=nY(b,5)+1;for(var h=nY(b,4)+4,l=0;l<h;l++)d[hWa[l]]=nY(b,3);d=iWa(d);for(h=e+f;c.length<h;){l=jWa(b,d);switch(l){case 16:l=c[c.length-1];var m=nY(b,2)+3;break;case 17:l=0;m=nY(b,3)+3;break;case 18:l=0;m=nY(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,kWa(b,c,f));break;case 1:kWa(b,jY,eWa);break;case 0:lWa(b,
b.j&7);c=nY(b,16);e=nY(b,16);65535!==(c^e)&&(b.error=!0);b.Sj.set(b.data.subarray(b.u,b.u+c),b.B);b.u+=c;b.B+=c;break;default:b.error=!0}a.B>a.Sj.length&&(a.Sj=new Uint8Array(2*a.B),a.B=0,a.u=0,a.C=!1,a.j=0,a.register=0)}a.Sj.length!==a.B&&(a.Sj=a.Sj.subarray(0,a.B));return a.error?new Uint8Array(0):a.Sj};
kWa=function(a,b,c){b=iWa(b);c=iWa(c);for(var d=a.data,e=a.Sj,f=a.B,h=a.register,l=a.j,m=a.u;;){if(15>l){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(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.u=m,256<n){h=lY[n];h+=nY(a,kY[n]);m=jWa(a,c);l=mY[m];l+=nY(a,fWa[m]);if(nWa&&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.u}else break}a.B=f};
jWa=function(a,b){if(7>a.j){var c=a.data,d=a.u;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.u+=2;a.j+=16}c=b[a.register&127];if(0<=c)return lWa(a,c&15),c>>4;for(lWa(a,7);0>c;)c=b[nY(a,1)-c];return c>>4};
nY=function(a,b){for(;a.j<b;){if(a.u>=a.data.length)return a.error=!0,0;a.register|=a.data[a.u++]<<a.j;a.j+=8}var c=a.register&(1<<b)-1;a.register>>=b;a.j-=b;return c};
lWa=function(a,b){a.j-=b;a.register>>=b};
iWa=function(a){for(var b=[],c=g.t(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,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));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(7>=h)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};
oWa=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,v;return g.A(function(x){switch(x.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=b.exports.inflateGzip(c,a.length,e))throw Error("inflateGzip="+f);h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return x.return(h)}catch(z){g.CD(z),b.reload()}if(!("DecompressionStream"in
window))return x.return(g.mWa(new g.gWa(a)));l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new LF([]);case 2:return g.y(x,n.read(),4);case 4:q=x.u;r=q.value;if(v=q.done){x.Ka(3);break}p.append(r);x.Ka(2);break;case 3:return x.return(QF(p))}})};
pWa=function(a){dY.call(this,"onesie");this.Md=a;this.j={};this.C=!0;this.B=null;this.queue=new bWa(this)};
qWa=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.u&&(b.j.length=0);b=g.t(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next())if(c=c.value,!a.j[c].wU){var d=a.queue;d.j.push({AP:c,isEncrypted:!1});d.u||dWa(d)}};
rWa=function(a,b){var c=b.totalLength,d=!1;switch(a.B){case 0:a.ZN(b,a.C).then(function(e){var f=a.Md;f.Vc("oprr");f.playerResponse=e;f.mN||(f.JD=!1);oY(f)},function(e){a.Md.fail(e)});
break;case 2:a.Vc("ormk");b=QF(b);a.queue.decrypt(b);break;default:d=!0}a.Md.Nl&&a.Md.xa("ombup","id.11;pt."+a.B+";len."+c+(d?";ignored.1":""));a.B=null};
sWa=function(a){return new Promise(function(b){setTimeout(b,a)})};
tWa=function(a,b){var c=sJ(b.Y.experiments,"debug_bandaid_hostname");if(c)b=bW(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=RJ(a.videoId);a=[];if(b)for(b=g.t(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
uWa=function(a,b,c){c=void 0===c?0:c;var d,e;return g.A(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(sWa(c)),g.y(f,Promise.race(d),2);e=tWa(a,b);return f.return(e)})};
vWa=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.V();a.set("por","1");HJ()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(c?(b=c.audio,a.set("pvi",c.video.join(",")),e.K("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),xM||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
pY=function(a,b){g.C.call(this);var c=this;this.va=a;this.playerRequest=b;this.Y=this.va.V();this.videoData=this.va.getVideoData();this.logger=new g.eW("onesie");this.Nl=this.Y.Rd();this.hL=this.Y.Qk;var d;this.jD=new hY(this.hL.j,null==(d=this.Y.Nd)?void 0:d.exports);this.xhr=null;this.state=1;this.rp=new aK;this.zU=!1;this.playerResponse="";this.uj=new KX(this);this.Mk=new pWa(this);this.zz=new g.Ip(this.sU,1E4,this);this.iH=this.K("html5_enable_onesie_media_stall_timeout")?new g.Ip(function(){if(!c.isComplete()){var e=
wWa(c);c.fail(new PK("net.timeout",e));c.qc(5)}},g.gJ(this.Y.experiments,"html5_onesie_request_timeout_ms")):void 0;
this.KW=new g.Ip(this.K4,2E3,this);this.Xv="";this.sG=this.SU=!1;this.Ly=this.va.XB();this.kO="";this.JD=this.K("html5_onesie_wait_for_media_availability");this.enableCompression=this.mN=this.xC=!1;g.E(this.videoData,this);g.E(this,this.zz);g.E(this,this.KW);g.E(this,this.jD);a=uJ();xM&&a&&!this.Y.K("html5_disable_onesie_media_bytes")&&(this.Ag=new Map);this.CT=new Map};
iY=function(a,b){if(a.Ag)return b=b.split(";")[0],a.Ag.get(b)};
xWa=function(a,b,c){var d;return g.A(function(e){if(1==e.j)return a.Vc("oprd_s"),HJ()?g.y(e,aWa(a.jD,b,c),3):(d=a.jD.decrypt(b,c),e.Ka(2));2!=e.j&&(d=e.u);a.Vc("oprd_c");return e.return(d)})};
yWa=function(a){return a.K("html5_onesie_host_probing")||a.Nl?xM:!1};
cWa=function(a,b,c){var d;null==(d=iY(a,b))||OQa(d,b,c);var e;null==(e=a.callbacks)||qY(e,a)};
oY=function(a){if(!a.playerResponse)return!1;if(a.xC)return!0;var b=a.videoData.K("html5_onesie_audio_only_playback")&&uM(a.videoData);if(a.Ag&&a.JD){if(!a.Ag.has(a.Xv))return!1;var c=a.Ag.get(a.Xv),d;if(d=c){d=!1;for(var e=g.t(c.Xc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Xc.get(f.value))for(var h=g.t(f.OG),l=h.next();!l.done;l=h.next())0<l.value.Pq&&(f.Ek?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Vc("ofr");a.rp.resolve(a.playerResponse);var m;null==(m=a.iH)||m.start();a.K("html5_onesie_time_out_after_resolving")?
a.zz.start():a.zz.stop();return a.xC=!0};
AWa=function(a){if(a.Ag&&!a.K("html5_onesie_media_capabilities")){a.Vc("ogsf_s");var b=sVa(a.va.getVideoData(),function(d,e){a.xa(d,e)}),c=zWa(a.va);
b.video=kVa(c,b.video);a.Vc("ogsf_c");if(b.video.length)return b;a.xa("ombspf","l."+c.u+";u."+c.j+";o."+c.B+";r."+c.reason)}};
wWa=function(a){if(!a.Dh)return{};var b=FX(a.Dh);b.d=JX(a.Dh);b.shost=a.DX;b.ty="o";return b};
BWa=function(a,b){var c,d;(d=null==(a=null==(c=a.Ag)?void 0:c.get(b)))||(b=a.u?!1:a.u=!0,d=!b);return!d};
CWa=function(a,b,c,d,e,f,h,l,m){g.C.call(this);var n=this;this.va=a;this.Fa=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.Sa=f;this.Jh=h;this.I=l;this.B=m;this.j=[];this.u={};this.J=!1;this.T="";this.Ne={x7a:function(){return n.j},
Z6a:function(){return n.u},
y6a:function(){n.j.length=0}};
this.ea=this.va.V();this.videoData=this.va.getVideoData()};
DWa=function(a){if(a.Fa.sF||a.Fa.isSuspended||a.D&&(0,g.M)()<a.D||0<a.j.length)return!1;var b;if(null==(b=a.Sa.Ga)||!QG(b,a.policy,a.u)||YX(a.audioTrack)&&YX(a.videoTrack)&&(!a.policy.C||a.T===a.videoData.videoId))return!1;if(UX(a.videoTrack)+UX(a.audioTrack)>a.policy.kb)return a.policy.D&&a.Fa.xa("sabrHeap",{a:""+UX(a.videoTrack),v:""+UX(a.videoTrack)}),!1;if(!a.C)return!0;b=1E3*VX(a.audioTrack,!0);var c=1E3*VX(a.videoTrack,!0)>a.C.targetVideoReadaheadMs;return!(b>a.C.targetAudioReadaheadMs)||!c};
EWa=function(a,b){b=new NVa(a.policy,b,a.Sa,a.u,a,{Jh:a.Jh,Iz:function(c,d){a.va.DD(c,d)}});
a.policy.ib&&a.Fa.xa("rqs",QVa(b));return b};
qY=function(a,b){if(!b.isDisposed()&&!a.isDisposed())if(b.isComplete()&&b.uv())b.dispose();else if(b.YU()?FWa(a,b):b.Wm()?a.Fs(b):GWa(a),!(b.isDisposed()||b instanceof pY)){if(b.isComplete())var c=TUa(b,a.policy,a.u);else c=SUa(b,a.policy,a.u,a.J),1===c&&(a.J=!0);0!==c&&(c=2===c,b=new gY(1,b.info.data),b.u=c,EWa(a,b))}a.Fa.gf()};
GWa=function(a){for(;a.j.length&&a.j[0].ZU();){var b=a.j.shift();HWa(a,b)}a.j.length&&HWa(a,a.j[0])};
HWa=function(a,b){if(a.policy.C){var c;var d=((null==(c=a.Fa.Og)?void 0:PRa(c,b.hs()))||0)/1E3}else d=0;if(a.policy.If){c=new Set(b.Up(a.va.Ce()||""));c=g.t(c);for(var e=c.next();!e.done;e=c.next()){var f=e.value;if(!(e=!(b instanceof pY))){var h=a.B,l=h.Sa.fd,m=h.Fa.Ce();e=hVa(h.j,l,m);h=hVa(h.videoInfos,l,m);e=e.includes(f)||h.includes(f)}if(e&&b.Nk(f))for(e=b.Vj(f),f=b.Om(f),e=g.t(e),h=e.next();!h.done;h=e.next()){h=h.value;a.policy.C&&a.policy.C&&d&&3===h.info.type&&wH(h,d);a.policy.D&&b instanceof
pY&&a.Fa.xa("omblss",{s:dH(h.info)});l=h.info.j.info.Ek();m=h.info.j;if(l){var n=a.B;m!==n.u&&(n.u=m,n.aH(m,n.audioTrack,!0))}else n=a.B,m!==n.D&&(n.D=m,n.aH(m,n.videoTrack,!1));SX(l?a.audioTrack:a.videoTrack,f,h)}}}else for(h=b.IT()||rX(a.I),c=new Set(b.Up(a.va.Ce()||"")),a.policy.C?l=c:l=[(null==(f=h.video)?void 0:SG(f,a.Sa.fd,a.va.Ce()))||"",(null==(e=h.audio)?void 0:SG(e,a.Sa.fd,a.va.Ce()))||""],f=g.t(l),e=f.next();!e.done;e=f.next())if(e=e.value,c.has(e)&&b.Nk(e))for(h=b.Vj(e),l=g.t(h),h=l.next();!h.done;h=
l.next())h=h.value,a.policy.C&&d&&3===h.info.type&&wH(h,d),a.policy.D&&b instanceof pY&&a.Fa.xa("omblss",{s:dH(h.info)}),m=b.Om(e),n=h.info.j.info.Ek()?a.audioTrack:a.videoTrack,n.J=!1,SX(n,m,h)};
FWa=function(a,b){a.j.pop();null==b||b.dispose()};
IWa=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof pY?c.push(a.j[d]):a.j[d].dispose();a.j=c};
JWa=function(a,b){if(b.Wm()||b.isDisposed()){var c=a.Fa,d=c.xa,e=b.state;a=a.va.Ce()||"";var f,h;if(null==(b=null==(f=b.Ag)?void 0:f.get(a)))b=void 0;else{f=0;a=b.Up();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.Xc.get(a[l]))?void 0:m.bytesReceived)||0}b=f}b=null!=(h=b)?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.RD(a)};
KWa=function(a,b,c,d,e){this.Fa=a;this.policy=b;this.schedule=c;this.Wx=d;this.ea=e;this.Z=NaN;this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1;this.T=NaN};
LWa=function(a,b,c,d,e){return b.Lc&&b.uf&&3===Xta(b)?new KWa(a,b,c,d,e):null};
MWa=function(a,b){if(a.policy.kz){var c=b.info.dc,d=XJ(a.schedule);b=b.index.sj;c=Math.max(1,d/c);a.T=Math.round(1E3*Math.max(((c-1)*b+a.policy.Xb)/c,b-a.policy.hj))}};
PWa=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.I,f=e>=a.policy.Eo,h=!1;if(f){var l=0;!isNaN(b)&&b>a.D&&(l=b-a.D,a.D=b);l/e<a.policy.nD&&(h=!0);a.I=c}c=d>=a.policy.hj&&!a.B;if(!f&&!c&&NWa(a,b))return NaN;c&&(a.B=!0);a:{d=h;c=Date.now()/1E3-(a.Wx.bj()||0)-a.J.u-a.policy.Xb;f=a.u.startTime;c=f+c;if(d){if(isNaN(b)){rY(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.dj;d<c&&(c=d)}else a.B&&(d=c+a.policy.Xb-a.Z+a.policy.wD,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.dj))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&NWa(a,b))return OWa(a,b),NaN;if(a.j<=a.u.startTime)return rY(a,NaN,"y",b),a.clear(),NaN;if(!a.ea(a.j,!1))return!OWa(a,b)&&h&&(rY(a,NaN,"t",b),a.clear()),NaN;h=a.j;rY(a,h,"s",b);a.clear();return h};
OWa=function(a,b){return a.ea(a.j,!0)?!1:(rY(a,NaN,"ns",b),a.clear(),!0)};
NWa=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.B?a.policy.dj:a.policy.rz)};
rY=function(a,b,c,d){var e=a.C.Vp();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=Date.now().toFixed(0);e.ssr_f=(1E3*a.J.u).toFixed(0);e.ssr_fa=a.B?"1":"0";e.ssr_o=(1E3*a.Wx.bj()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.u.j.index;pH(b,a.u.Ma,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.u.Ma)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.u.Ma)).toFixed(0));a.Fa.xa("ssr",e)};
QWa=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.sY=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.C.call(this);var p=this;this.va=a;this.schedule=b;this.policy=c;this.Sa=d;this.T=m;this.kb=n;this.timing=new HSa(this.kb);this.J=new vSa(this.schedule,this.policy);this.Wa=null;this.fb=new g.Ip(this.gf,0,this);this.FG=new g.Ip(this.gf,1E3,this);this.ib=new g.Ip(this.gf,void 0,this);this.La=new g.Ip(this.gf,1E4,this);this.D=this.currentTime=NaN;this.ea=0;this.Uy=this.sF=this.isSuspended=!1;this.Ja="";this.kF=new SJ(5);this.tb={};this.timestampOffset=
NaN;this.Ya=!1;this.Qa=0;this.I=null;this.oa=NaN;this.Aa=!1;this.logger=new g.eW("dash");this.Ne={getAudioTrack:function(){return p.audioTrack},
UT:function(){return p.Sa},
B7a:function(){return p.Z},
gf:function(){p.gf()}};
a=m&&m.Up();m&&(NQa(m,this.Sa,this.policy),this.oa=Date.now());this.ue=new NSa(this,this.J,c,this.Sa,e,a);c=SSa(this.ue,f,h&&h.id);this.audioTrack=new zUa(this,this.policy,c.audio,this.timing);this.videoTrack=new zUa(this,this.policy,c.video,this.timing);this.videoTrack.C.Aa=this.audioTrack.VL();this.Ga={updateend:this.J0,error:this.v5};g.E(this,this.fb);g.E(this,this.FG);g.E(this,this.ib);g.E(this,this.La);this.C=LWa(this,this.policy,this.schedule,this.kF,function(q,r){return RWa(p,q,r)});
this.B=new JSa(this,this.Sa,this.policy,this.videoTrack,this.audioTrack,l);this.j=new zSa(this,this.Sa,this.videoTrack,this.audioTrack,this.policy);this.u=new $X(this,this.policy,this.videoTrack,this.audioTrack,this.tb,this.B,this.timing,this.J,this.schedule,this.Sa,this.ue,this.C);g.E(this,this.u);this.ya=new cY(e.videoInfos,e.j,this,this.videoTrack,this.audioTrack,this.Sa);g.E(this,this.ya);this.Z=new CWa(this.va,this,this.policy,this.audioTrack,this.videoTrack,this.Sa,this.schedule,this.ue,this.ya);
g.E(this,this.Z);this.Xa=this.va.Nf.Us.Qu};
SWa=function(a,b){var c=SG(b.j,a.Sa.fd,a.Ce()),d,e=(null==(d=a.T)?void 0:d.Om(c))||[];if(0===e.length)return a.xa("ombmsi",{}),!1;a:{d=new fH(e);c=a.currentTime;d=g.t(d.gb);for(e=d.next();!e.done;e=d.next())if(e=e.value,3===e.type&&c>=e.C&&c<=e.B){c=!0;break a}c=!1}return c?!0:(a.xa("ostmf",{ct:a.currentTime,a:b.j.info.Ek()}),!1)};
TWa=function(a){if(!a.Sa.fd)return!0;var b=a.va.getVideoData(),c,d;if(a.policy.Rw&&!!(null==(c=a.Xa)?0:null==(d=c.w4)?0:d.o8)!==a.Sa.Se)return a.xa("ombplmm",{}),!1;b=b.uc||b.liveUtcStartSeconds||b.aj;if(a.Sa.Se&&b)return a.xa("ombplst",{}),!1;if(a.Sa.oa)return a.xa("ombab",{}),!1;b=Date.now();return jwa(a.Sa)&&!isNaN(a.oa)&&b-a.oa>1E3*a.policy.xx?(a.xa("ombttl",{}),!1):a.Sa.Ge&&a.Sa.B||!a.policy.dE&&a.Sa.isPremiere?!1:!0};
UWa=function(a,b){var c=b.j,d=a.Sa.fd;if(TWa(a)){var e=a.Ce();if(a.T&&a.T.Xc.has(SG(c,d,e))){if(d=SG(c,d,e),SWa(a,b)){e=new fH(a.T.Om(d));var f=function(h){try{if(h.Wm())a.handleError(h.Ye(),h.Vp()),XX(b,h),hH(h.info)&&aY(a.u,b,c,!0),a.gf();else if(bVa(a.u,h)){var l;null==(l=a.B)||KSa(l,h.info,a.I);a.gf()}}catch(m){h=RK(m),a.handleError(h.errorCode,h.details,h.severity),a.vk()}};
c.C=!0;gH(e)&&(AUa(b,new bX(a.policy,d,e,a.T,f)),ISa(a.timing))}}else a.xa("ombfmt",{})}};
tY=function(a,b){b=b||a.videoTrack&&a.videoTrack.u&&a.videoTrack.u.startTime||a.currentTime;var c=a.videoTrack,d=a.ue;b=d.nextVideo&&d.nextVideo.index.uh(b)||0;d.Ga!==b&&(d.Ja={},d.Ga=b,mX(d,d.B));b=!sX(d)&&-1<d.ea&&8E3>(0,g.M)()-d.ea;var e=d.nextVideo&&3*oX(d,d.nextVideo.info)<aX(d.Aa);if(!b||e)lX(d),nX(d),d.Z=d.Z||d.nextVideo!==d.j;d.nextVideo&&!d.nextVideo.index.isLoaded()&&(d.Ga=-1);bY(c,d.nextVideo);bY(a.audioTrack,a.ue.u)};
uY=function(a,b){a.sF=b;a.policy.oa||(a.isSuspended=!0)};
VWa=function(a,b,c,d){KUa(a.videoTrack,d,c,b);KUa(a.audioTrack,d,c,b);PI(a.Sa,d,!0);PI(a.Sa,d,!1);a.xa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
XWa=function(a){a.policy.Ya=!1;try{WWa(a)}catch(b){g.CD(b)}};
YWa=function(a){a.Wa&&a.Wa.j&&a.Wa.u&&(fE(a.Wa.j,a.Ga,a),fE(a.Wa.u,a.Ga,a));QX(a.audioTrack,null);QX(a.videoTrack,null);a.Wa&&(a.Wa.C=!1);a.Wa=null};
ZWa=function(a){a.Wa&&a.Wa.Vg()&&(a.oy(),a.policy.Fx&&a.handleError("fmt.unplayable",{unexpected:1},1))};
$Wa=function(a,b){b&&a.va.bD(b);a.policy.Wf&&a.ue.fb&&(b=rX(a.ue,"a"),vY(a.va,b.reason,b.audio.info))};
cVa=function(a,b,c){if(b instanceof Error){c.msg||(c.msg=""+b.message);c.name||(c.name=""+b.name);if(b instanceof g.bA&&b.args)for(var d=g.t(Object.entries(b.args)),e=d.next();!e.done;e=d.next()){var f=g.t(e.value);e=f.next().value;f=f.next().value;c["arg"+e]=""+f}g.DD(b);if("WARNING"===b.level){wY(a.va,c);return}}a.handleError("fmt.unplayable",c,1)};
xY=function(a){g.Jp(a.fb)};
WWa=function(a){if(a.Wa){var b=a.Wa.j,c=a.Wa.u,d=aXa(a);if(d){if(a.policy.Xa){if(!b.qs()){var e=gX(a.audioTrack);e&&(bXa(a,a.audioTrack,b,e.info),cXa(a,b,e))}!c.qs()&&(b=gX(a.videoTrack))&&(bXa(a,a.videoTrack,c,b.info),cXa(a,c,b))}a.ea||(a.ea=(0,g.M)(),a.policy.D&&a.xa("apdps",{r:d}))}else{if(a.ea){d=(0,g.M)()-a.ea;e=VX(a.audioTrack,!0);var f=VX(a.videoTrack,!0);a.policy.D&&a.xa("apdpe",{dur:d.toFixed(),abuf:(1E3*e).toFixed(),vbuf:(1E3*f).toFixed()});a.ea=0}a.C&&(d=a.C.gf(a.audioTrack,nI(a.Wa.u.Ig())))&&
a.va.seekTo(d,{bv:!0,Je:"pollSubsegmentReadahead",Er:!0});d=!1;dXa(a,a.videoTrack,c)&&(d=!0,e=a.timing,e.D||(e.D=(0,g.M)(),xT("vda",e.D,e.j),e.B&&(g.iA(),kA(4))),e=a.timing,e.La||(e.La=(0,g.M)(),xT("vrb_f",e.La,e.j)));if(a.Wa&&!a.Wa.Vg()&&(dXa(a,a.audioTrack,b)&&(d=!0,e=a.timing,e.B||(e.B=(0,g.M)(),xT("ada",e.B,e.j),e.D&&(g.iA(),kA(4))),e=a.timing,e.Z||(e.Z=(0,g.M)(),xT("arb_f",e.Z,e.j))),!a.isDisposed()&&a.Wa)){!a.policy.Ya&&TX(a.videoTrack)&&TX(a.audioTrack)&&wI(a.Wa)&&!a.Wa.gj()&&(e=RX(a.audioTrack).j,
e===a.Sa.j[e.info.id]&&(e=a.Wa,wI(e)&&(e.Wa?e.Wa.endOfStream():e.Dg.webkitSourceEndOfStream(e.Dg.EOS_NO_ERROR)),e=a.schedule,kwa(YJ(e)),e.D=(0,g.M)(),e.T=!0));e=a.policy.tx;f=a.policy.AD;d||!(0<e||f)||!wI(a.Wa)||TX(a.videoTrack)||TX(a.audioTrack)||(b.tI(a.currentTime,f,e),c.tI(a.currentTime,f,e));if(c=d)c=a.Wa,c=!(c.j?c.j.supports(0):CI());c&&xY(a)}}}};
aXa=function(a){if(QUa(a.videoTrack))return"ssf";if(a.policy.ym||YX(a.audioTrack)||YX(a.videoTrack)&&"f"!==a.videoTrack.j.info.Lb)return"";if(a.j.hh()){var b=a.J;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.B)b=b.policy.ph,c=VX(d,!0)>=b&&VX(c,!0)>=b;else if(c.B.length||d.B.length){var e=c.j.info.dc+d.j.info.dc;e=10*(1-aX(b)/e);b=Math.max(e,b.policy.ph);c=VX(d,!0)>=b&&VX(c,!0)>=b}else c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.B.length&&1===c.C.u.length&&FTa(c.C).info.I<c.ya)return"seek"}if(!a.Uy||
!a.policy.Vd||10>a.currentTime||360<a.videoTrack.j.info.video.j)return"";c=NUa(a.videoTrack,a.currentTime,a.policy.Vd)||NUa(a.audioTrack,a.currentTime,a.policy.Vd);return(0<a.videoTrack.B.length||0<a.audioTrack.B.length||UUa(a.u,a.videoTrack,a.audioTrack)||UUa(a.u,a.audioTrack,a.videoTrack))&&c?"nord":""};
dXa=function(a,b,c){if(c.IM())return!0;if(!c.eF())return!1;var d=gX(b);if(!d||6===d.info.type)return!1;var e,f;(f=null==(e=a.B))||(f=1===e.u||2===e.u)||!(f=0!==e.u&&b===e.Ga)||(e=LUa(e.T),f=d.info.Ma>(e?e.Ma:-1));if(f)return a.j.hh()&&xY(a),!1;bXa(a,b,c,d.info);if(a.Sa.u&&0===d.info.Ob){if(null==c.qs()){e=RX(b);if(!(f=!e||e.j!==d.info.j)){b:if(e=e.J,f=d.info.J,e.length!==f.length)e=!1;else{for(var h=0;h<e.length;h++)if(!g.Mb(e[h],f[h])){e=!1;break b}e=!0}f=!e}e=f}else e=c.qs(),d.info.j.Vy()&&yH(d),
f=d.info.j.j,e=e!==f&&!g.Mb(e,f);e&&(f=RX(b),a.xa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Ma}));f=g.vH(d.info.j.info);a.policy.Dc&&f&&!e&&(g.vH(d.info.j.info)?(sG(tH(d),1836019574),sG(tH(d),1718909296)):(e=new uG(tH(d)),Gua(e),yG(e,524531317,!0),d.j=d.j.split(e.start+e.pos).Wk),d.C=!1)}a.policy.Ui?d.B=void 0:a.policy.Jy&&!c.qs()&&(e=d.info.j.j,1===d.j.j.length||0!==d.info.Ob||d.C||d.B||3!==d.info.type||!e||(f=new LF([e]),MF(f,d.j),f=QF(f),e=(new LF([f])).split(e.length),
d.B=e.oC,d.j=e.Wk));e=a.C&&!!a.C.C&&b.j.info.audio;f=a.Sa.isManifestless||d.B||d.C;if(!(a.Sa.u&&0!==d.info.Ob||f&&!e)&&cXa(a,c,d))return!0;if(e)return!1;e=a.currentTime+VUa(a,b,!1);if(!(e=d.info.C>e)){a:{e=a.policy.Qa?(0,g.M)():0;f=d.C||d.B?d.info.j.j:null;h=d.j;d.B&&(h=new LF([]),MF(h,d.B),MF(h,d.j));var l=QF(h);h=a.policy.Qa?(0,g.M)():0;f=eXa(a,c,l,d.info,f);a.policy.Qa&&(!d.info.Ob||d.info.bf||10>d.info.C)&&a.xa("sba",c.lc({as:dH(d.info),pdur:Math.round(h-e),adur:Math.round((0,g.M)()-h)}));if("s"===
f)a.Aa&&(a.Aa=!1),a.Qa=0,a=!0;else{if("i"===f||"x"===f)fXa(a,"checked",f,d.info);else{if("q"===f){if(!a.Aa){a.Aa=!0;a=!1;break a}d.info.Xg()?(c=a.policy,c.Z=Math.floor(.8*c.Z),c.tb=Math.floor(.8*c.tb),c.ea=Math.floor(.8*c.ea)):(c=a.policy,c.Ga=Math.floor(.8*c.Ga),c.Wc=Math.floor(.8*c.Wc),c.ea=Math.floor(.8*c.ea));HT(a.policy)||pX(a.ue,d.info.j)}wY(a.va,{reattachOnAppend:f})}a=!1}}e=!a}if(e)return!1;b.lw(d);return!0};
fXa=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",HT(a.policy)||d.j.info.video&&!qX(a.ue)&&pX(a.ue,d.j)):"i"===c&&(15>a.Qa?(a.Qa++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=cH(d);var h;d.mrs=null==(h=a.Wa)?void 0:BI(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
TTa=function(a,b,c,d,e){var f=a.Sa;var h=!1,l=-1;for(p in f.j){var m=ZH(f.j[p].info.mimeType)||f.j[p].info.Xg();if(d===m)if(h=f.j[p].index,pH(h,b.Ma)){m=b;var n=h.Go(m.Ma);n&&n.startTime!==m.startTime?(h.segments=[],h.AJ(m),h=!0):h=!1;h&&(l=b.Ma)}else h.AJ(b),h=!0}if(0<=l){var p={};f.ma("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;GSa(a.j,b,d,f);a.B.VN(b,c,d,e);b.Ma===a.Sa.Ge&&f&&NI(a.Sa)&&b.startTime>NI(a.Sa)&&(a.Sa.jc=b.startTime+(isNaN(a.timestampOffset)?0:a.timestampOffset),a.j.hh()&&
a.j.j<a.Sa.Id()&&a.j.seek(a.Sa.Id(),{}))};
bXa=function(a,b,c,d){b=RX(b);!b||b.bf||aH(b,d)||c.abort();!c.UB()||tI()?c.VP(d.j.info.containerType,d.j.info.mimeType):d.j.info.containerType!==c.UB()&&a.xa("ctu",{ct:tI(),prev_c:c.UB(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.mm&&b&&(d=0+b.duration,b=-b.j,0===c.IB()&&d===c.NF()||c.cP(0,d),b!==c.Jd()&&(c.Vq(b),CX&&VTa(a.audioTrack.VL(),c.dM())))};
cXa=function(a,b,c){c.info.j.Jg();var d=c.info.j.j;if(!d||!b.eF()||b.qs()===d)return!1;var e=d,f=b.SF();if(a.policy.Ui&&f&&b.isView()&&g.vH(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=zua(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.xa("fenc",{})}f=null;(h=c.info.j.Uu(0,c.info.clipId))&&(f=h.gb[0]);a.policy.Qa&&a.xa("sbi",b.lc({as:dH(c.info)}));a.policy.mA&&b.abort();d=eXa(a,b,e,f,d);if("s"!==d)return fXa(a,"sepInit",d,c.info),!0;c.info.Xg()?(a=a.timing,
a.Ga||(a.Ga=(0,g.M)(),xT("vis_a",a.Ga,a.j))):(a=a.timing,a.T||(a.T=(0,g.M)(),xT("ais_a",a.T,a.j)));return b.gj()};
eXa=function(a,b,c,d,e){try{b.appendBuffer(c,d,e)}catch(f){if(f instanceof DOMException){if(11===f.code)return"i";if(12===f.code)return"x";if(22===f.code||0===f.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:jI(b.Ig()).replace(/,/g,"_"),vheap:UX(a.videoTrack),aheap:UX(a.audioTrack),message:g.hg(f.message,3),track:a.Wa?b===a.Wa.u?"v":"a":"u"},QWa()),a.handleError("player.exception",b),"q";g.CD(f)}return"u"}return a.Wa.Vg()?"m":"s"};
zX=function(a,b){a.va.cH(b)};
VUa=function(a,b,c){if(a.Aa&&!a.Uy)return c?5:3;if(a.isSuspended)return 1;var d=b.j.info.audio?a.policy.Ga:a.policy.Z;!a.policy.Oc&&sX(a.ue)&&(d=Math.max(d,b.j.info.audio?a.policy.Wc:a.policy.tb));c&&!a.policy.Ld&&(d+=a.policy.kb);c=sX(a.ue)?b.u?b.u.j.info.dc:b.j.info.dc:b.dc*a.policy.bl;d/=c;0<a.policy.xm&&a.Wa&&wI(a.Wa)&&(b=b.j.info.video?a.Wa.u:a.Wa.j)&&!b.gj()&&(b=b.Ig(),c=kI(b,a.currentTime),0<=c&&(b=a.currentTime-b.start(c),d+=Math.max(0,Math.min(b-a.policy.xm,a.policy.vx))));0<a.policy.ea&&
(d=Math.min(d,a.policy.ea));return d};
gXa=function(a,b){$V(b,"cms",function(c){a.policy.D&&a.xa("pathprobe",c)},function(c){a.va.handleError(c)})};
hXa=function(a,b){a.I=b;a.B&&(a.B.C=b);a.I.kP(a.videoTrack.j.info.Ee());a.u.u=a.I};
iXa=function(a,b){if(a.Wa&&a.Wa.u){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;var c=a.B,d=b;if(0!==c.u&&c.C){var e=c.Gy(d);e!==c.Z&&(c.C.eO(c.Z,e,c.Aa,d),c.Z=e);c.Aa=d}a.currentTime!==b&&a.resume();a.j.hh()&&a.Wa&&!a.Wa.Vg()&&(c=a.currentTime<=b&&b<a.currentTime+10,d=lI(a.Wa.u.Ig(),a.currentTime+WUa),c&&d&&(a.j.C=!1));a.j.hh()||(a.currentTime=b);g.Jp(a.FG)}};
jXa=function(a,b){var c=HUa(a.videoTrack).find(function(d){return d.startTime>=b&&RWa(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
RWa=function(a,b,c){if(!(a.videoTrack.j.Jg()&&a.audioTrack.j.Jg()&&a.Wa&&a.Wa.u&&a.Wa.j))return!1;if(c&&a.Sa.isManifestless&&(-1===a.videoTrack.I||-1===a.audioTrack.I))return!0;var d=eX(a.videoTrack,b,c);if(isNaN(d))return!1;a=eX(a.audioTrack,a.policy.uf?b:d,c);return isNaN(a)?!1:!0};
kXa=function(a){a.vk();a.C&&MWa(a.C,a.videoTrack.j);xY(a);a=a.j;var b=Math.max(a.videoTrack.C.B||0,a.audioTrack.C.B||0);JUa(a.videoTrack);JUa(a.audioTrack);hwa(a.Sa);a.Sa.isManifestless&&(a.u=!0);a.Fa.currentTime=b;a.C=!0;a.B=new aK;return a.B};
bY=function(a,b){a.j!==b&&(a.j=b)};
lXa=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.B.I=a.timestampOffset,a.va.gO(a.timestampOffset),a.Sa.isManifestless&&(a.Sa.timestampOffset=a.timestampOffset),a.videoTrack.Vq(a.timestampOffset),a.audioTrack.Vq(a.timestampOffset))};
g.yY=function(a){this.kd=a};
zY=function(){g.dE.apply(this,arguments)};
AY=function(a,b,c,d){zY.call(this);var e=this;this.B=-1;this.j={};this.C=new g.Ip(this.D,0,this);g.E(this,this.C);this.u=new g.Ip(function(){e.isDisposed()||(e.C.start(Math.random()*c),e.u.start(b))},a,this);
g.E(this,this.u);d.subscribe("fairplay_next_need_key_info",this.I,this)};
mXa=function(a){if(!(28>=a.length))for(var b=(0,g.PX)([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;24>d;++d)b[d]=a[c+2*d];a=UF(b);a=ig(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++}};
BY=function(a,b){zY.call(this);var c=this;this.B=a;this.j=[];this.u=new g.Ip(function(){c.ma("log_qoe",{wvagt:"timer",reqlen:c.j?c.j.length:-1});if(c.j){if(0<c.j.length){var d=c.j.shift();nXa(c,d.info)}0<c.j.length&&(d=c.j[0].time-(0,g.M)(),c.u.start(Math.max(0,d)))}},0);
g.E(this,this.u);b.subscribe("widevine_set_need_key_info",this.C,this)};
nXa=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.B.size)c=!0;else{for(var d=g.t(a.B.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.ma("log_qoe",{wvagt:"reqnews",canskip:c});c||a.ma("rotated_need_key_info_ready",b)};
oXa=function(a){var b=a.interval,c=a.Lz;this.url=a.url;this.interval=b;this.Lz=c};
pXa=function(a,b){this.statusCode=a;this.message=b;this.u=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
qXa=function(a){var b=SF(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=jG(b.slice(d+2));if(null==b)return null;a=new pXa(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.vCa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new oXa({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,Lz:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.u=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.t(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
rXa=function(a,b,c){c=void 0===c?"":c;g.C.call(this);this.message=a;this.requestNumber=b;this.timer=c;this.onError=this.onSuccess=null;this.j=new g.Ki(5E3,2E4,.2)};
tXa=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.isDisposed())if(0!==e.status&&e.response)if(eF("drm_net_r",void 0,a.timer),e=new Uint8Array(e.response),e=qXa(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else sXa(a,e)},
onError:function(e){sXa(a,e)}};
c&&(b=zfa(b,"access_token",c));g.Hy(b,d)};
sXa=function(a,b){if(!a.isDisposed())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
vXa=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.isDisposed()){eF("drm_net_r",void 0,a.timer);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=ig(f.license)}catch(x){g.CD(x)}if(0!==h||l){l=new pXa(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.t(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=uXa[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");
h[r]||(m.push(r),h[r]=!0);var v=null;try{v=ig(q.keyId)}catch(x){g.CD(x)}v&&(n[g.gg(v,4)]=r)}}l.u=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f=l}else f=null;if(f)a.onSuccess(f,a.requestNumber);else a.onError(a,"drm.net","t.p;p.i")}},
onError:function(f){if(!a.isDisposed())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.zS="Bearer "+d);g.kC(c,"player/get_drm_license",b,e)};
wXa=function(a,b,c,d){g.dE.call(this);this.videoData=a;this.Y=b;this.ea=c;this.sessionId=d;this.D={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.oa=!1;this.B=null;this.Aa=[];this.C=[];this.T=!1;this.j={};this.ya=NaN;this.status="";this.I=NaN;this.u=a.J;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.Y.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.ya&&(a.vvt=this.videoData.ya,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.Y.authUser&&(a.authuser=this.Y.authUser);this.Y.pageId&&(a.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.hc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.D=a;this.D.session_id=d;this.Z=!0;"widevine"===this.u.flavor&&(this.D.hdr="1");"playready"===this.u.flavor&&(b=Number(sJ(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.D.mfpe=""+b),this.Z=!1);b="";g.eJ(this.u)?dJ(this.u)?(d=c.u)&&
(b="https://web.archive.org/web/20230426095903/https://www.youtube.com/api/drm/fps?ek="+Zca(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.u.u;this.baseUrl=b;this.fairplayKeyId=lj(this.baseUrl,"ek")||"";if(b=lj(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.K("html5_use_drm_retry");this.Aa=c.Ee?[g.gg(c.initData,4)]:c.B;CY(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
zXa=function(a,b){CY(a,{createkeysession:1});a.status="gr";eF("drm_gk_s",void 0,a.videoData.Qa);a.url=xXa(a);try{a.B=b.createSession(a.ea,function(c){CY(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.ma("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.B&&(a.B.RD(function(c,d){yXa(a,c,d)},function(c,d,e){if(!a.isDisposed()){d=void 0;
var f=1;g.eJ(a.u)&&g.mK(a.Y)&&a.Y.K("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.Y.K("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.isDisposed()||(CY(a,{onkyadd:1}),a.J||(a.ma("sessionready"),a.J=!0))},function(c){a.ep(c)}),g.E(a,a.B))};
xXa=function(a){var b=a.baseUrl;Jsa(b)||a.error("drm.net",2,"t.x");if(!lj(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.Y.experiments.experiments[e]});
0<c.length&&(a.D.fexp=c.join())}c=g.t(Object.keys(a.D));for(var d=c.next();!d.done;d=c.next())d=d.value,b=zfa(b,d,a.D[d]);return b};
yXa=function(a,b,c){if(!a.isDisposed())if(b){CY(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":AXa(a,b);return;default:a.ma("ctmp","message_type",{t:c,l:b.byteLength})}a.oa||(eF("drm_gk_f",void 0,a.videoData.Qa),a.oa=!0,a.ma("newsession",a));if(aJ(a.u)&&(b=BXa(b),!b))return;g.eJ(a.u)&&!a.videoData.useInnertubeDrmService()&&(b=kua(g.gg(b)));b=new rXa(b,++a.requestNumber,a.videoData.Qa);b.RD(function(d){CXa(a,
d)},function(d,e,f){if(!a.isDisposed()){var h=0,l;
(l=3<=d.j.u)||(l=a.Ga&&36E4<(0,g.M)()-a.ya);l&&(h=1,e="drm.net.retryexhausted");CY(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(QK(h),d)&&DXa(a,d)}});
g.E(a,b);EXa(a,b)}else a.error("drm.unavailable",1,"km.empty")};
AXa=function(a,b){CY(a,{sdpvrq:1});a.I=Date.now();if("widevine"!==a.u.flavor)a.error("drm.provision",1,"e.flavor;f."+a.u.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.Y.j);c=g.Zi("https://web.archive.org/web/20230426095903/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:SF(b)}),responseType:"arraybuffer"};
g.Ly(c,b,3,500).then(XI(function(d){d=d.xhr;if(!a.isDisposed()){d=new Uint8Array(d.response);var e=SF(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.ma("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.I)/1E3,a.I=NaN,a.ma("ctmp","provs",{et:f.toFixed(3)}),a.B&&a.B.update(d)):(f=f&&f.error&&f.error.message,d="e.parse",f&&(d+=";m."+f),a.error("drm.provision",1,d))}}),XI(function(d){a.isDisposed()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
DY=function(a){var b;if(b=a.Z&&null!=a.B)a=a.B,b=!(!a.j||!a.j.keyStatuses);return b};
EXa=function(a,b){a.status="km";eF("drm_net_s",void 0,a.videoData.Qa);if(a.videoData.useInnertubeDrmService()){var c=new g.jC(a.Y.Pk),d={context:g.FB(c.config_||g.EB())};d.drmSystem=FXa[a.u.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.gg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.u)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.Y.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.ya&&(d.context.user.credentialTransferTokens=[{token:a.videoData.ya,
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.eJ(a.u)&&(d.fairplayKeyId=g.gg($ca(a.fairplayKeyId)));g.NK(a.Y,g.VM(a.videoData)).then(function(l){vXa(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.NK(a.Y,g.VM(a.videoData)).then(function(l){tXa(b,a.url,l);
a.status="rs"})};
CXa=function(a,b){if(!a.isDisposed())if(CY(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{eF("drm_kr_s",void 0,a.videoData.Qa);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.K("outertube_streaming_data_always_use_staging_license_service")){var c=a.u.u.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.ma("newlicense",b.heartbeatParams);b.u&&(a.C=b.u,a.videoData.useInnertubeDrmService()&&
!a.videoData.OJ&&a.ma("newlicense",new oXa({})),a.videoData.OJ=!0,a.T=Wm(a.C,function(d){return d.includes("HDR")}));
b.j&&(a.Y.K("html5_enable_vp9_fairplay")&&dJ(a.u)?(c=g.gg($ca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Vc(b.j,function(d){return{type:d,status:"unknown"}}));
bJ(a.u)&&!a.videoData.useInnertubeDrmService()?b.message=ig(SF(b.message)):cJ(a.u)&&a.videoData.useInnertubeDrmService()&&(b.message=kua(g.gg(b.message)));a.B&&(CY(a,{updtks:1}),a.status="ku",a.B.update(b.message).then(function(){eF("drm_kr_f",void 0,a.videoData.Qa);DY(a)||(CY(a,{ksApiUnsup:1}),a.ma("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.hg(d.message,3);
a.error("drm.keyerror",1,d)}));
a.J&&(a.ya=(0,g.M)());g.eJ(a.u)&&a.ma("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.Y.K("html5_enable_vp9_fairplay")&&dJ(a.u)&&a.ma("qualitychange",GXa(a.C))}};
DXa=function(a,b){var c=b.j.getValue();c=new g.Ip(function(){EXa(a,b)},c);
g.E(a,c);c.start();g.Li(b.j);CY(a,{rtyrq:1})};
HXa=function(a,b){for(var c=[],d=g.t(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)};
IXa=function(a){var b={};b[a.status]=DY(a)?HXa(a,"."):a.C.join(".");return b};
JXa=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};
KXa=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
LXa=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
CY=function(a,b){var c=void 0===c?!1:c;OK(b);(c||a.Y.Rd())&&a.ma("ctmp","drmlog",b)};
MXa=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};
GXa=function(a){return g.rb(a,"UHD2")||g.rb(a,"UHD2HDR")?"highres":g.rb(a,"UHD1")||g.rb(a,"UHD1HDR")?"hd2160":g.rb(a,"HD")||g.rb(a,"HDHDR")?"hd1080":g.rb(a,"HD720")||g.rb(a,"HD720HDR")?"hd720":"large"};
BXa=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=new DOMParser;b=g.we(b);b=a.parseFromString(g.ve(b),"text/xml");return b?(b=b.querySelector("Challenge"))&&b.childNodes&&0!==b.childNodes.length?new Uint8Array((0,g.PX)(eda(b.childNodes[0].nodeValue)).buffer):null:null};
EY=function(a,b,c,d,e){g.C.call(this);this.element=a;this.T=b;this.initData=c;this.j=d;this.u=e;this.sessionId="";this.J=this.I=this.B=this.D=null;this.C=new g.bI(this);g.E(this,this.C);NXa(this)};
NXa=function(a){a.j?(a.C.S(a.j,"message",a.K0),a.C.S(a.j,"keystatuseschange",a.ep),a.j.closed&&a.j.closed.then(XI(function(){a.isDisposed()||Wy("xboxone")&&a.B&&a.B("closed")}),null)):a.u&&(Kz(a.C,a.u,["mskeymessage",
"webkitkeymessage"],a.vW),Kz(a.C,a.u,["mskeyerror","webkitkeyerror"],a.uW),Kz(a.C,a.u,["mskeyadded","webkitkeyadded"],a.tW))};
OXa=function(a,b,c){g.CD(c);a.B&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.B(b))};
FY=function(a,b){g.C.call(this);this.element=a;this.j=b;this.I={};this.C=null;this.D=new g.bI(this);this.B=this.u=null;g.E(this,this.D)};
QXa=function(a,b){b=PXa(b,a.j.Ya);a=a.B.createSession("video/mp4",b);return new EY(null,null,null,null,a)};
RXa=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.B.createSession("video/mp4",b,c);return new EY(null,null,null,null,a)};
SXa=function(a,b){var c=a.I[b.sessionId];!c&&a.C&&(c=a.C,a.C=null,c.sessionId=b.sessionId,a.I[b.sessionId]=c);return c};
PXa=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
GY=function(){this.keys=[];this.values=[]};
VXa=function(a,b,c){g.dE.call(this);this.element=a;this.videoData=b;this.Y=c;this.j=this.videoData.J;this.drmSessionId=this.videoData.drmSessionId||g.Bsa();this.u=new Map;this.I=new GY;this.J=new GY;this.B=[];this.Ja=2;this.oa=new g.bI(this);this.La=this.Aa=!1;this.heartbeatParams=null;this.ya=this.ea=!1;this.D=null;this.Ga=!1;(a=this.element)&&(a.addKey||a.webkitAddKey)||ZI()||hJ(c.experiments);this.Y.K("html5_enable_vp9_fairplay")&&dJ(this.j)?c=TXa:(c=this.videoData.hm,c="fairplay"===this.j.flavor||
c?ZL:TXa);this.T=c;this.C=new FY(this.element,this.j);g.E(this,this.C);$I(this.j)&&(this.Z=new FY(this.element,this.j),g.E(this,this.Z));g.E(this,this.oa);c=this.element;this.j.keySystemAccess?this.oa.S(c,"encrypted",this.Y5):Kz(this.oa,c,$I(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.v6);UXa(this);a:switch(c=this.j,a=this.u,c.flavor){case "fairplay":if(b=/\sCobalt\/(\S+)\s/.exec(g.hc())){a=[];b=g.t(b[1].split("."));for(var d=b.next();!d.done;d=b.next())d=parseInt(d.value,10),0<=d&&a.push(d);
a=parseFloat(a.join("."))}else a=NaN;19.2999<a?(a=c.ox,c=c.nx,c>=a&&(c=.75*a),b=.5*(a-c),c=new AY(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new BY(a,this);break a;default:c=null}if(this.D=c)g.E(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.wS,this),this.D.subscribe("log_qoe",this.Ri,this);hJ(this.Y.experiments);this.Ri({cks:this.j.rh()})};
UXa=function(a){var b=a.C.attach();b?b.then(XI(function(){WXa(a)}),XI(function(c){if(!a.isDisposed()){g.CD(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.ma("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.Ri({mdkrdy:1}),a.ea=!0);
a.Z&&(b=a.Z.attach())};
YXa=function(a,b,c){a.La=!0;c=new vTa(b,c);a.Y.K("html5_eme_loader_sync")&&(a.I.get(b)||a.I.set(b,c));XXa(a,c)};
XXa=function(a,b){if(!a.isDisposed()){a.Ri({onInitData:1});if(a.Y.K("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.J.get(b.initData);b=a.I.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.I.remove(c);a.J.remove(c)}a.Ri({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Aa&&!a.videoData.isLivePlayback)HY(a);else{if(!(a.Y.K("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ee)){a.Aa=!0;c=b.cryptoPeriodIndex;var d=b.j;xTa(b);b.Ee||(d&&b.j!==d?a.ma("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.ma("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.ma("widevine_set_need_key_info",b)}}else a.wS(b)}};
WXa=function(a){if(!a.isDisposed())if(a.Y.K("html5_drm_set_server_cert")&&!g.tK(a.Y)||dJ(a.j)){var b=a.C.setServerCertificate();b?b.then(XI(function(c){a.Y.Rd()&&a.ma("ctmp","ssc",{success:c})}),XI(function(c){a.ma("ctmp","ssce",{n:c.name,
m:c.message})})).then(XI(function(){ZXa(a)})):ZXa(a)}else ZXa(a)};
ZXa=function(a){a.isDisposed()||(a.ea=!0,a.Ri({onmdkrdy:1}),HY(a))};
$Xa=function(a){return"widevine"===a.j.flavor&&a.videoData.K("html5_drm_cpi_license_key")};
HY=function(a){if(a.La&&a.ea&&!a.ya){for(;a.B.length;){var b=a.B[0],c=$Xa(a)?yTa(b):g.gg(b.initData);if(dJ(a.j)&&!b.u)a.B.shift();else{if(a.u.get(c))if("fairplay"!==a.j.flavor||dJ(a.j)){a.B.shift();continue}else a.u.delete(c);xTa(b);break}}a.B.length&&a.createSession(a.B[0])}};
aYa=function(a){var b;if(b=g.Yy()){var c;b=!(null==(c=a.C.u)||!c.getMetrics)}b&&(b=a.C.getMetrics())&&(b=g.WF(b),a.ma("ctmp","drm",{metrics:b}))};
JY=function(a){g.C.call(this);var b=this;this.va=a;this.j=this.va.V();this.videoData=this.va.getVideoData();this.HC=0;this.I=this.B=!1;this.D=0;this.C=g.gJ(this.j.experiments,"html5_delayed_retry_count");this.u=new g.Ip(function(){IY(b.va)},g.gJ(this.j.experiments,"html5_delayed_retry_delay_ms"));
this.J=g.gJ(this.j.experiments,"html5_url_signature_expiry_time_hours");g.E(this,this.u)};
eYa=function(a,b,c){var d=a.videoData.u,e=a.videoData.I;if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.va.Ji.D&&d&&"22"===d.itag)return a.va.Ji.D=!0,a.Kd("qoe.restart",{reason:"fmt.unplayable.22"}),KY(a.va),!0;var f=!1,h=a.HC+3E4<(0,g.M)()||a.u.isActive();if(a.j.K("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Kd("auth",c),!0;var l;if(l=!h)l=a.va.Es(),l=!!(l.zg()||l.isInline()||l.isBackground()||
l.Ty()||l.Ry());l&&(c.nonfg="paused",h=!0,a.va.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:AF(e)||zF(e))&&(Uwa(a.j.D,e.Lb),c.acfallexp=e.Lb,f=h=!0);!h&&0<a.C&&(a.u.start(),h=!0,c.delayed="1",--a.C);e=a.va.Fa;if(!h&&((null==d?0:KH(d))||(null==d?0:BF(d)))){var m;if(a.videoData.K("html5_disable_codec_for_playback_on_error")&&e){if(HT(e.policy))l=0;else{l=e.ue;var n=d.Lb;l.Ya.has(n)?l=!1:(l.Ya.add(n),l.ea=-1,mX(l,l.B),l=!0)}l&&(m="cfallp")}else Uwa(a.j.D,d.Lb),m="cfallexp";m&&(f=
h=!0,c[m]=d.Lb)}if(!h)return bYa(a,c);a.HC=(0,g.M)();h=a.videoData;h.ib?(h=h.ib.sR(),m=Date.now()/1E3+1800,h=h<m):h=!1;c.e=b;h&&(c.staleprog="1");a.Kd("qoe.restart",c);if(h&&cYa(a))return dYa(a),!0;if(Wy("philips")&&"GAME_CONSOLE"!==a.j.j.cplatform)try{window.close()}catch(p){}d&&KH(d)?(f=a.j.D,f.ea=!0,f=f.j=!0):e?(b=(b=RX(e.videoTrack)||e.videoTrack.u)?b.j:e.videoTrack.j,b.J+=1,HT(e.policy)||pX(e.ue,b,!0)):a.videoData.ib&&a.videoData.ib.ZO();a.u.isActive()||IY(a.va,f);return!0};
bYa=function(a,b){if(a.videoData.kb)return!1;a.j.jc+=1;if(10>=a.j.jc)return!1;b.exiled=""+a.j.jc;a.Kd("qoe.start15s",b);a.va.ma("playbackstalledatstart");return!0};
cYa=function(a){return a.B?!0:"yt"===a.j.Ja?a.videoData.kb?25>a.videoData.Dc:!a.videoData.Dc:!1};
dYa=function(a){if(!a.B){a.B=!0;var b=a.va.getPlayerState();b=g.QO(b)||b.isSuspended();a.va.Dn();b&&!WM(a.videoData)||a.va.ma("signatureexpired")}};
fYa=function(a,b){if((a=a.va.qe())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Ye();b.details.merr=c?c.toString():"0";b.details.mmsg=a.zf()}};
gYa=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
hYa=function(a,b){return a.j.K("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
jYa=function(a,b){if(!hYa(a,b)&&!a.B)return!1;b.details.sts="19471";if(cYa(a))return QK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new PK("qoe.restart",b)),a.Kd(b.errorCode,b.details),dYa(a),!0;6048E5<(0,g.M)()-a.j.Jf&&iYa(a,"signature");return!1};
iYa=function(a,b){try{window.location.reload(),a.Kd("qoe.restart",{detail:"pr."+b})}catch(c){}};
kYa=function(a,b){var c=a.j.D;c.D=!1;c.j=!0;a.Kd("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});IY(a.va,!0)};
lYa=function(a,b,c,d){this.videoData=a;this.j=b;this.reason=c;this.u=d};
mYa=function(a,b,c){this.Y=a;this.XD=b;this.va=c;this.ea=this.I=this.J=this.u=this.j=this.C=this.T=this.B=0;this.D=!1;this.Z=g.gJ(this.Y.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45};
oYa=function(a,b,c){!a.Y.K("html5_tv_ignore_capable_constraint")&&g.tK(a.Y)&&(c=c.compose(nYa(a,b)));return c};
qYa=function(a,b){var c,d=pYa(a,null==(c=b.j)?void 0:c.videoInfos);c=a.va.getPlaybackRate();return 1<c&&d?(a=Owa(a.Y.D,b.j.videoInfos,c),new iF(0,a,!0,"o")):new iF(0,0,!1,"o")};
pYa=function(a,b){return b&&g.tK(a.Y)?b.some(function(c){return 32<c.video.fps}):!1};
rYa=function(a,b){var c=a.va.QF();if(a.K("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.eQ&&lF(b.videoData.ql))a=c.eQ,b.videoData.ql=new iF(0,a,!1,"u");else{var d;if(c&&(null==(d=c.AK)?0:d.length)&&lF(b.videoData.ql)){a=new Map;d=g.t(b.j.videoInfos);for(var e=d.next();!e.done;e=d.next())e=e.value,a.set(+e.itag,e.video.j);d=[];c=g.t(c.AK);for(e=c.next();!e.done;e=c.next())(e=a.get(e.value))&&d.push(e);a=Math.max.apply(Math,g.u(d));b.videoData.ql=new iF(0,a,!1,"u")}}return b.videoData.ql};
nYa=function(a,b){if(g.tK(a.Y)&&xF(a.Y.D,yF.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.kK(a.Y)&&(e=window.screen&&window.screen.width?new g.He(window.screen.width,window.screen.height):null);e||(e=a.Y.xm?a.Y.xm.clone():a.XD.Ij());(cz||ZW||d)&&e.scale(g.CK());d=e;uM(b.videoData)||WM(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||iK||(e=
.45);a=g.gJ(a.Y.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new iF(0,"93"===c.itag?g.jF[DH(d.width,d.height)]:d.j,!1,"r")}else c=ZL;c=c.j}c&&(c=Math.max(c,360));return new iF(0,c,!1,"r")};
sYa=function(a){var b,c,d,e;return g.A(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.y(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.t(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ka(0);break}e=d.value;return g.y(f,yva(e),4);case 4:d=c.next(),f.Ka(3)}})};
uYa=function(a,b){if(!b.videoData.u||a.K("html5_disable_performance_downgrade"))return!1;6E4<g.Ra()-a.T&&(a.B=0);a.B++;a.T=g.Ra();if(4!==a.B)return!1;tYa(a,b.videoData.u);return!0};
wYa=function(a,b,c,d){if(!b||!c||!b.videoData.u)return!1;var e=g.gJ(a.Y.experiments,"html5_df_downgrade_thresh"),f=a.K("html5_log_media_perf_info"),h=g.gJ(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold");if(!(5E3>(0,g.M)()-a.C?0:f||0<e||0<h))return!1;var l=((0,g.M)()-a.C)/1E3;a.C=(0,g.M)();c=c.getVideoPlaybackQuality();if(!c)return!1;var m=c.droppedVideoFrames-a.I,n=c.totalVideoFrames-a.ea;a.I=c.droppedVideoFrames;a.ea=c.totalVideoFrames;var p=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||
-1;f&&a.Y.Rd()&&a.va.xa("ddf",{dr:c.droppedVideoFrames,de:c.totalVideoFrames,comp:p});if(d)return a.j=0,a.u=0,!1;d=60<n?m/n:0;0<d&&(a.J=d);a.u=0<h&&60*d>h?a.u+1:0;if((n-m)/l>a.Z||!e||g.tK(a.Y))return!1;a.j=d>e?a.j+1:0;if(3!==a.j)return!1;tYa(a,b.videoData.u);a.va.xa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},vYa()));return!0};
xYa=function(a,b){return 0>=g.gJ(a.Y.experiments,"hfr_dropped_framerate_fallback_threshold")||!(b&&b.video&&32<b.video.fps)?!1:3<=a.u?(a.u=0,!0):!1};
tYa=function(a,b){var c=b.Lb,d=b.video.fps;b=b.video.j-1;var e=TI();c=nwa(c,d);0<+e[c]&&(b=Math.min(+e[c],b));e[c]!==b&&(e[c]=b,g.Pz("yt-player-performance-cap",e,604800));a.va.iA()};
yYa=function(a,b){if(!b.j.j)return a.D?new iF(0,360,!1,"b"):ZL;for(var c=!1,d=!1,e=g.t(b.j.videoInfos),f=e.next();!f.done;f=e.next())KH(f.value)?c=!0:d=!0;c=c&&d;d=0;f=g.gJ(a.Y.experiments,"html5_performance_cap_floor");a=a.Y.u?240:f;b=g.t(b.j.videoInfos);for(f=b.next();!f.done;f=b.next())if(e=f.value,!c||!KH(e))if(f=UI(e.Lb,e.video.fps),e=e.video.j,Math.max(f,a)>=e){d=e;break}return new iF(0,d,!1,"b")};
zYa=function(a){a=a.va.Es();return a.isInline()?new iF(0,480,!1,"v"):a.isBackground()&&60<NC()/1E3?new iF(0,360,!1,"v"):ZL};
BYa=function(a,b,c){if(a.Y.experiments.ob("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.tK(a.Y)&&(1080<=SI(-1)||b.osid))return ZL;var d=g.gJ(a.Y.experiments,"html5_autonav_quality_cap"),e=g.gJ(a.Y.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&NC()/1E3>e?(c&&(d=AYa(a,c,d)),new iF(0,d,!1,"e")):ZL};
AYa=function(a,b,c){if(a.K("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};
CYa=function(a,b){a.K("html5_log_media_perf_info")&&(a.va.xa("perfdb",vYa()),a.va.xa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.va.xa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.j)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
vYa=function(){return Vc(TI(),function(a){return""+a})};
LY=function(a){g.C.call(this);this.provider=a;this.j=-1;this.D=!1;this.u=-1;this.playerState=new g.KO;this.seekCount=this.nonNetworkErrorCount=this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.C=0;this.delay=new g.Ip(this.send,6E4,this);this.B=!1;g.E(this,this.delay)};
DYa=function(a){0<=a.j||(3===a.provider.va.getVisibilityState()?a.D=!0:(a.j=g.uW(a.provider),a.delay.start()))};
EYa=function(a){if(!(0>a.u)){var b=g.uW(a.provider),c=b-a.C;a.C=b;8===a.playerState.state?a.playTimeSecs+=c:g.TO(a.playerState)&&!g.S(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
GYa=function(a,b){b?FYa.test(a):(a=g.sy(a),Object.keys(a).includes("cpn"))};
IYa=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(vy(a)&&wy()){if(h){var n;2!==(null==(n=HYa.uaChPolyfill)?void 0:n.state.type)?h=null:(h=HYa.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.ey("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.ey("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.ey("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);d=b.authUser;b.K("move_vss_away_from_login_info_cookie")&&d&&(m["X-Goog-AuthUser"]=d,m["X-Yt-Auth-Test"]="test");e&&(m.Authorization="Bearer "+e);h||m["X-Goog-Visitor-Id"]||e||c||b.K("move_vss_away_from_login_info_cookie")&&d?l.withCredentials=!0:b.K("html5_send_cpn_with_options")&&FYa.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?
l:null};
JYa=function(a,b,c,d,e,f,h,l){wy()&&c.token&&(a=ty(a,{ctt:c.token,cttype:c.HP,mdx_environment:c.mdxEnvironment}));f||l&&d.K("nwl_skip_retry")?(null==b?b={}:GYa(a,d.K("html5_assert_cpn_with_regex")),h?iC().sendAndWrite(a,b):iC().sendThenWrite(a,b,l)):d.Rk?(b=b||{},GYa(a,d.K("html5_assert_cpn_with_regex")),c=d.Rk,c.queue.push({url:a,options:b}),Vwa(c)):b?(GYa(a,d.K("html5_assert_cpn_with_regex")),g.Hy(a,b)):g.ZB(a,e)};
KYa=function(a,b){wL(a,1,b.cpn);tL(a,2,b.sequenceNumber);wL(a,3,b.serializedWatchEndpointLoggingContext)};
g.NY=function(a){g.C.call(this);var b=this;this.provider=a;this.logger=new g.eW("qoe");this.j={};this.sequenceNumber=1;this.kb=NaN;this.Te="N";this.J=this.jc=this.Pb=this.ib=this.C=0;this.Aa=this.uc="";this.Xb=this.Ga=NaN;this.tb=0;this.Dc=-1;this.Tb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Ya=this.oa=this.isOffline=this.Z=!1;this.Lc=[];this.ea=null;this.Xa=this.D=this.Qa=this.I=!1;this.u=-1;this.Ja=!1;this.Oc=new g.Ip(this.K3,750,this);this.T=this.adCpn="";this.adFormat=void 0;this.Wc=0;
this.La=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.fb=!1;this.Ne={JH:function(c){b.JH(c)},
l7a:function(){return b.B}};
g.E(this,this.Oc);(a="function"===typeof navigator.getBattery?navigator.getBattery():null)&&a.then&&a.then(function(c){b.ea=c});
g.MY(this,0,"vps",["N"])};
g.MY=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
LYa=function(a,b){var c=a.provider.va.getCurrentTime();g.MY(a,b,"cmt",[c.toFixed(3)]);c=a.provider.va.xk();if(a.B&&1E3*c>a.B.NV+100&&a.B){var d=a.B,e=d.isAd;c=1E3*c-d.NV;a.ya=1E3*b-d.M8-c-d.B8;c=(0,g.M)()-c;b=a.ya;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.T&&(h.cttAuthInfo={token:d.T,videoId:d.videoId});h.startTime=c-b;cF(f,h);bF({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);eF("pbs",c,f)}else c=a.provider.va.Oh(),c.I!==d.clientPlaybackNonce?
(c.D=d.clientPlaybackNonce,c.u=b):g.DD(new g.bA("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.xa("gllat",{l:a.ya.toFixed(),prev_ad:+e});delete a.B}};
OYa=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.uW(a.provider);var c=a.provider.va.eC(),d=c.Zq-(a.Ga||0);0<d&&g.MY(a,b,"bwm",[d,(c.Ot-(a.Xb||0)).toFixed(3)]);isNaN(a.Ga)&&c.Zq&&a.isOffline&&a.JH(!1);a.Ga=c.Zq;a.Xb=c.Ot;isNaN(c.bandwidthEstimate)||g.MY(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.Y.Rd()&&0!==Object.keys(c.j).length&&a.xa("bwinfo",c.j);if(a.provider.Y.Rd()||a.provider.Y.K("html5_log_meminfo"))d=QWa(),Object.values(d).some(function(e){return void 0!==e})&&a.xa("meminfo",d);
a.ea&&g.MY(a,b,"bat",[a.ea.level,a.ea.charging?"1":"0"]);d=a.provider.va.getVisibilityState();a.Dc!==d&&(g.MY(a,b,"vis",[d]),a.Dc=d);LYa(a,b);(d=MYa(a.provider))&&d!==a.tb&&(g.MY(a,b,"conn",[d]),a.tb=d);NYa(a,b,c)};
NYa=function(a,b,c){if(!isNaN(c.Au)){var d=c.Au;c.u<d&&(d=c.u);g.MY(a,b,"bh",[d.toFixed(3)])}};
PYa=function(a,b,c){g.NK(a.provider.Y,g.VM(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.Y.K("kevlar_woffle")||a.provider.Y.K("qoe_nwl_downloads"))e=!0}else a.provider.Y.K("qoe_with_networkless")&&(e=!0);var f=a.provider.Y.K("qoe_send_and_write"),h=a.provider.Y;d=IYa(b,h,a.provider.Y.pageId,a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.K("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
JYa(b,d,{token:a.provider.videoData.T,HP:a.provider.videoData.ek,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.oa)):e?(e=a.provider.Y.K("networkless_ajax"),h={method:"POST",postBody:c},f&&a.oa?iC().sendAndWrite(b,h):e?g.Hy(b,{method:"POST",postBody:c}):iC().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,Nqa(b,f)||g.ZB(b,void 0,void 0,void 0,f))})};
QYa=function(a){for(var b=0,c=g.t(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number($l(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.Ip(a.reportStats,0,a)).start()};
RYa=function(a){a.provider.videoData.Si&&OY(a,"prefetch");a.provider.videoData.Dc&&a.xa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Dc});a.provider.videoData.Xb&&OY(a,"monitor");a.provider.videoData.isLivePlayback&&OY(a,"live");xM&&OY(a,"streaming");a.provider.videoData.Ki&&a.xa("ctrl",{mode:a.provider.videoData.Ki},!0);if(a.provider.videoData.qj){var b=a.provider.videoData.qj.replace(/,/g,"_");a.xa("ytp",{type:b},!0)}a.provider.videoData.BQ&&(b=a.provider.videoData.BQ.replace(/,/g,
"."),a.xa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.Y.K("enable_white_noise")||a.provider.Y.K("enable_webgl_noop");c=g.KM(c)||g.IM(c)||g.JM(c)||g.LM(c);(b||c)&&(b=(0,g.PY)())&&(a.j.gpu=[b]);WM(a.provider.videoData)&&g.MY(a,g.uW(a.provider),"dt",["1"]);a.provider.Y.Rd()&&(b=(0,g.M)()-a.provider.Y.Jf,a.xa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.D=!0;a.kb=g.Dy(function(){a.reportStats()},1E4)};
TYa=function(a,b,c){var d=g.uW(a.provider);SYa(a,d,b,0,c);OYa(a,d);QYa(a)};
SYa=function(a,b,c,d,e){var f=a.provider.Y.j.cbrver;"Chrome"===a.provider.Y.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&UYa(a,3);a.provider.Y.K("html5_use_ump")&&/b248180278/.test(e)&&UYa(a,4);f=a.provider.va.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+FR());e&&c.push(VYa(e));g.MY(a,b,"error",c);a.D=!0};
WYa=function(a){0<=a.u||(a.provider.Y.Hf||3!==a.provider.va.getVisibilityState()?a.u=g.uW(a.provider):a.Ja=!0)};
OY=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
XYa=function(a,b,c,d,e){var f=g.uW(a.provider);1!==b&&3!==b&&5!==b||g.MY(a,f,"vps",[a.Te]);var h=a.j.xvt||[];h.push("t."+f.toFixed(3)+";m."+e.toFixed(3)+";g.2;tt."+b+";np.0;c."+c+";d."+d);a.j.xvt=h};
UYa=function(a,b){if(!a.Xa){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Xa=!0}};
VYa=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
YYa=function(a){this.provider=a;this.J=!1;this.j=0;this.C=-1;this.Wo=NaN;this.u=0;this.segments=[];this.I=this.D=0;this.ea=this.provider.va.getVolume();this.T=this.provider.va.isMuted()?1:0;this.B=QY(this.provider)};
RY=function(a){a.B.startTime=a.u;a.B.endTime=a.j;a.segments.length&&g.jb(a.segments).Bf()?a.segments[a.segments.length-1]=a.B:a.segments.length&&a.B.Bf()||a.segments.push(a.B);a.D+=a.j-a.u;a.B=QY(a.provider);a.u=a.j};
$Ya=function(a){ZYa(a);a.I=g.Dy(function(){a.update()},100);
a.Wo=g.uW(a.provider);a.B=QY(a.provider)};
ZYa=function(a){window.clearInterval(a.I);a.I=NaN};
aZa=function(a,b,c){c-=a.Wo;return b===a.j&&.5<c};
bZa=function(a,b,c,d){this.Y=b;this.segments=[];this.experimentIds=[];this.Xa=this.Tb=this.isFinal=this.vf=this.Xb=this.Lc=this.autoplay=this.autonav=!1;this.uc="yt";this.D=this.I=null;this.sendVisitorIdHeader=this.Ya=!1;this.pageId="";this.C="watchtime"===c;this.B="playback"===c;this.Z="delayplay"===c;this.ea="atr"===c;this.Hf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ea?"/api/stats/"+c:"//"+b.ym+"/api/stats/"+c;this.Qg=this.B&&b.Z&&a.D;d&&(this.Tb=d.fs,d.rtn&&(this.D=d.rtn),this.C?
(this.playerState=d.state,0<d.rti&&(this.I=d.rti)):(this.If=d.mos,this.Wf=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.Dc=d.inview),d.size&&(this.tH=d.size));this.Ld=g.md(b.j);this.uf=b.Oc;this.experimentIds=b.experiments.experimentIds;this.Qa=b.Si;this.uc=b.Ja;this.region=b.region;this.userAge=b.userAge;this.ib=b.Ui;this.Vd=NC();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.oa=b.K("vss_pings_using_networkless")||b.K("kevlar_woffle");this.Jf=b.K("vss_final_ping_send_and_write");
this.ya=b.K("vss_use_send_and_write");this.pageId=b.pageId;this.Kf=b.K("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.je=b.C&&b.K("embeds_append_synth_ch_headers");g.fK(b)&&(this.Ja=b.Qa);this.accessToken=g.VM(a);a.Oc&&(this.Oc=a.Oc);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=UM(a);this.B&&(this.Lc=(a.K("html5_enable_log_server_autoplay")||a.K("enable_cleanup_masthead_autoplay_hack_fix"))&&a.kp&&"adunit"==PM(a)?!0:!1);
this.autonav=a.isAutonav||this.autonav;this.ke=RM(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Xb=a.D;a.T&&(this.J=a.T,this.tb=a.ek);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.wD;this.Pb=a.Pb;a.u&&(this.rd=a.u.itag,a.I&&a.I.itag!==this.rd&&(this.kb=a.I.itag));a.j&&qF(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=this.Qg?"embedded_unbranded":PM(a);this.Xa=TM(a);this.Nd=a.qm;if(b=CM(a))this.Vf=b;this.Od=a.mA;this.Ga=a.Ga;this.eventId=a.eventId;this.playlistId=
a.WR||a.playlistId;this.Bx=a.Bx;this.Ki=a.Ki;this.qj=a.qj;this.Yn=a.Yn;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.SM=a.SM;this.referrer=a.referrer;this.Wn=a.zQ||a.Wn;this.fb=a.hQ;this.Ex=a.Ex;this.userGenderAge=a.userGenderAge;this.tA=a.tA;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;a.K("html5_report_host_cpn")&&(this.La=a.h1)};
cZa=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.NK(a.Y,a.accessToken).then(function(d){return IYa(a.uri,a.Y,a.pageId,c,d,b,a.je)})};
eZa=function(a,b){return function(){a.Y.K("html5_simplify_pings")?(a.j=a.Aa,a.Wc=b(),a.Vd=0,a.send()):cZa(a).then(function(c){var d=a.uri,e=dZa(a),f=a.oa,h=a.ya;e.cmt=e.len;e.lact="0";var l=b().toFixed(3);e.rt=Number(l).toString();d=g.Zi(d,e);f?(null==c&&(c={}),h?iC().sendAndWrite(d,c):iC().sendThenWrite(d,c)):c?g.Hy(d,c):g.ZB(d)})}};
dZa=function(a){var b={ns:a.uc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.u(a.j),fmt:a.rd,fs:a.Tb?"1":"0",rt:a.u(a.Wc),adformat:a.adFormat,content_v:a.ke,euri:a.uf,lact:a.Vd,live:a.Vf,cl:(526486891).toString(),mos:a.If,state:a.playerState,volume:a.Wf};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Ld);a.autoplay&&(b.autoplay="1");a.Lc&&(b.sautoplay="1");a.Xb&&(b.dni="1");!a.C&&a.Ja&&(b.epm=fZa[a.Ja]);a.isFinal&&(b["final"]="1");a.Xa&&(b.splay="1");a.Pb&&(b.delay=a.Pb);a.Qa&&(b.hl=a.Qa);
a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.ib&&(b.uga=a.ib+a.userAge);void 0!==a.Aa&&(b.len=a.u(a.Aa));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.D&&(b.rtn=a.u(a.D));a.Wn&&(b.feature=a.Wn);a.Ki&&(b.ctrl=a.Ki);a.qj&&(b.ytr=a.qj);a.kb&&(b.afmt=a.kb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.jc&&(b.lio=a.u(a.jc));a.C?(b.idpj=a.Nd,b.ldpj=a.Od,null!=a.I&&(b.rti=a.u(a.I)),a.tA&&(b.ald=a.tA)):void 0!==
a.adType&&(b.at=a.adType);a.tH&&(a.B||a.Z||a.C)&&(b.size=a.tH);null!=a.Dc&&(a.B||a.Z||a.C)&&(b.inview=a.u(a.Dc));a.C&&(b.volume=SY(a,g.Yl(a.segments,function(d){return d.volume})),b.st=SY(a,g.Yl(a.segments,function(d){return d.startTime})),b.et=SY(a,g.Yl(a.segments,function(d){return d.endTime})),Wm(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=SY(a,g.Yl(a.segments,function(d){return d.playbackRate}))),Wm(a.segments,function(d){return"-"!==d.j})&&(b.als=g.Yl(a.segments,function(d){return d.j}).join(",")));
b.muted=SY(a,g.Yl(a.segments,function(d){return d.muted?1:0}));
Wm(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=SY(a,g.Yl(a.segments,function(d){return d.visibilityState})));
Wm(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=SY(a,g.Yl(a.segments,function(d){return d.connectionType})));
Wm(a.segments,function(d){return 0!==d.u})&&(b.blo=SY(a,g.Yl(a.segments,function(d){return d.u})));
Wm(a.segments,function(d){return!!d.B})&&(b.blo=g.Yl(a.segments,function(d){return d.B}).join(","));
Wm(a.segments,function(d){return"-"!==d.D})&&(b.cc=g.Yl(a.segments,function(d){return d.D}).join(","));
Wm(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Yl(a.segments,function(d){return d.clipId}).join(","));
if(Wm(a.segments,function(d){return!!d.C})){var c="au";
a.B&&(c="au_d");b[c]=g.Yl(a.segments,function(d){return d.C}).join(",")}wy()&&a.J&&(b.ctt=a.J,b.cttype=a.tb,b.mdx_environment=a.mdxEnvironment);
a.Hf&&(b.etype=void 0!==a.T?a.T:0);a.fb&&(b.uoo=a.fb);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=gZa[a.livingRoomAppMode]||a.livingRoomAppMode);a.Oc?hZa(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.SM,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.Yn&&(b.ssrt="1"),a.Ex&&(b.upt=a.Ex));if(a.B||a.Z)a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn);a.La&&(b.host_cpn=a.La);return b};
hZa=function(a,b){if(b&&a.Oc){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"]);if(a.Y.K("html5_use_server_provided_namespace")){var f=a.Oc.ns,h=b.ns;f&&f!==h&&(g.DD(new g.bA("b273365784_vss_diff",f,h)),d.delete("ns"))}f=g.t(Object.keys(a.Oc));for(h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Oc[h]||(b[h]=a.Oc[h])}};
SY=function(a,b){return g.Yl(b,a.u).join(",")};
iZa=function(a,b){a.attestationResponse&&cZa(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.oa?a.ya?iC().sendAndWrite(b,c):iC().sendThenWrite(b,c):g.Hy(b,c)})};
TY=function(a){g.C.call(this);this.provider=a;this.I="paused";this.C=NaN;this.J=[10,10,10,40];this.ea=this.T=0;this.Aa=this.ya=this.Ja=this.Ga=this.oa=this.Z=this.u=!1;this.B=this.D=NaN;this.j=new YYa(a)};
kZa=function(a){if(!a.u){16623===a.provider.videoData.Nz&&g.DD(Error("Playback for EmbedPage"));var b=UY(a,"playback");a:{if(a.provider.Y.K("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.provider.videoData.qm,h=a.provider.videoData.mA,l=-f;e=g.t(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.J=c;break a}}a.J=[10+a.provider.videoData.qm,10,10,40+a.provider.videoData.mA-a.provider.videoData.qm,40]}$Ya(a.j);b.D=VY(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.xx&&(b=a.provider.Y,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.xx,oid:d.KX,ptchn:d.xX,pltype:d.fY,content_v:RM(d)},d.lx&&Object.assign(c,{m:d.lx}),b=g.Zi(b.La+"ptracking",c),WY(a,b));a.provider.videoData.Pb||jZa(a);
a.u=!0;a=a.j;a.j=a.provider.va.xk();a.Wo=g.uW(a.provider);!(0===a.u&&5>a.j)&&2<a.j-a.u&&(a.u=a.j);a.J=!0}};
VY=function(a,b){b=void 0===b?NaN:b;var c=g.uW(a.provider);b=isNaN(b)?c:b;b=Math.ceil(b);var d=a.J[a.T];a.T+1<a.J.length&&a.T++;var e=b+d;a.C=g.Cy(function(){if(!a.isDisposed()){a.C=NaN;var f=lZa(a),h=mZa(a,f);h.I=e;var l=1E3<a.ea;!(1<f.length)&&f[0].Bf()||l||(h.D=VY(a,e));h.send();a.ea++}},1E3*(e-c));
return a.D=e};
XY=function(a){g.Ey(a.C);a.C=NaN};
lZa=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.u||RY(a);var b=a.segments;a.segments=[];return b};
UY=function(a,b){var c=nZa(a.provider);Object.assign(c,{state:a.I});b=new bZa(a.provider.videoData,a.provider.Y,b,c);b.j=a.provider.va.xk();a.provider.videoData.isLivePlayback||(b.Aa=a.provider.va.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.Pf(b.j))&&(b.jc=c-b.j);b.Wc=g.uW(a.provider);b.segments=[QY(a.provider)];return b};
mZa=function(a,b){var c=UY(a,"watchtime");if(0<a.B){for(var d=g.t(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.j;c.segments=b;return c};
YY=function(a,b){var c=oZa(a,!isNaN(a.D));b&&(a.D=NaN);return c};
oZa=function(a,b){var c=mZa(a,lZa(a));!isNaN(a.D)&&b&&(c.I=a.D);return c};
jZa=function(a){a.provider.videoData.remarketingUrl&&!a.Ga&&(WY(a,a.provider.videoData.remarketingUrl),a.Ga=!0);a.provider.videoData.youtubeRemarketingUrl&&!a.Ja&&(WY(a,a.provider.videoData.youtubeRemarketingUrl),a.Ja=!0);a.provider.videoData.googleRemarketingUrl&&!a.ya&&(WY(a,a.provider.videoData.googleRemarketingUrl),a.ya=!0);a.provider.videoData.ppvRemarketingUrl&&!a.Aa&&(WY(a,a.provider.videoData.ppvRemarketingUrl),a.Aa=!0);a.kA()};
pZa=function(a){if(!a.isDisposed()&&a.u){a.I="paused";var b=YY(a);b.isFinal=!0;b.send();a.dispose()}};
qZa=function(a,b,c){if(!a.Z){c||(c=UY(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.Z=!0}};
WY=function(a,b){var c=a.provider.Y;g.NK(a.provider.Y,g.VM(a.provider.videoData)).then(function(d){var e=a.provider.Y.pageId,f=a.provider.Y.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.Y.K("vss_pings_using_networkless")||a.provider.Y.K("kevlar_woffle"),l=a.provider.Y.K("allow_skip_networkless");d=IYa(b,c,e,f,d);JYa(b,d,{token:a.provider.videoData.T,HP:a.provider.videoData.ek,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
rZa=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.C="";this.u=0;this.B=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-"};
sZa=function(a,b,c){this.videoData=a;this.Y=b;this.va=c;this.j=void 0};
g.uW=function(a){return tZa(a)()};
tZa=function(a){if(!a.j){var b=g.Pa(function(d){var e=(0,g.M)();d&&631152E6>=e&&(a.va.xa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.Y.K("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.va.cO()}return a.j};
nZa=function(a){var b=a.va.bq()||{};b.fs=a.va.wC();b.volume=a.va.getVolume();b.muted=a.va.isMuted()?1:0;b.mos=b.muted;b.inview=a.va.TB();b.size=a.va.HB();b.clipid=a.va.wy();var c=Object,d=c.assign;a=a.videoData;var e={};a.u&&(e.fmt=a.u.itag,a.I&&a.I.itag!=a.u.itag&&(e.afmt=a.I.itag));e.ei=a.eventId;e.list=a.playlistId;e.cpn=a.clientPlaybackNonce;a.videoId&&(e.v=a.videoId);a.Xk&&(e.infringe=1);TM(a)&&(e.splay=1);var f=CM(a);f&&(e.live=f);a.kp&&(e.sautoplay=1);a.Xl&&(e.autoplay=1);a.Bx&&(e.sdetail=
a.Bx);a.Ga&&(e.partnerid=a.Ga);a.osid&&(e.osid=a.osid);a.Rw&&(e.cc=a.Rw.vssId);return d.call(c,b,e)};
MYa=function(a){if(navigator.connection&&navigator.connection.type)return uZa[navigator.connection.type]||uZa.other;if(g.tK(a.Y)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 1}return 0};
QY=function(a){var b=new rZa,c;b.D=(null==(c=nZa(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.va.getPlaybackRate();c=a.va.getVisibilityState();0!==c&&(b.visibilityState=c);a.Y.Ld&&(b.u=1);b.B=a.videoData.Yv;c=a.va.getAudioTrack();c.Jc&&c.Jc.id&&"und"!==c.Jc.id&&(b.C=c.Jc.id);b.connectionType=MYa(a);b.volume=a.va.getVolume();b.muted=a.va.isMuted();b.clipId=a.va.wy()||"-";b.j=a.videoData.AQ||"-";return b};
g.ZY=function(a){g.C.call(this);this.provider=a;this.qoe=this.j=null;this.Ci=void 0;this.u=new Map;this.provider.videoData.De()&&!this.provider.videoData.ol&&(this.j=new TY(this.provider),g.E(this,this.j),this.qoe=new g.NY(this.provider),g.E(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ci=this.provider.videoData.clientPlaybackNonce)&&this.u.set(this.Ci,this.j));this.B=new LY(this.provider);g.E(this,this.B)};
vZa=function(a){DYa(a.B);a.qoe&&WYa(a.qoe)};
wZa=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Ci){var b;null!=(b=a.u.get(a.Ci))&&RY(b.j)}else a.j&&RY(a.j.j)};
xZa=function(a){a.B.send();if(a.qoe){var b=a.qoe;if(b.D){"PL"===b.Te&&(b.Te="N");var c=g.uW(b.provider);g.MY(b,c,"vps",[b.Te]);b.I||(0<=b.u&&(b.j.user_intent=[b.u.toString()]),b.I=!0);b.provider.Y.Rd()&&b.xa("finalized",{});b.oa=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.t(a.u.values()),c=b.next();!c.done;c=b.next())pZa(c.value);else a.j&&pZa(a.j);a.dispose()};
yZa=function(a,b){a.j&&qZa(a.j,b)};
zZa=function(a){if(!a.j)return null;var b=UY(a.j,"atr");return function(c){a.j&&qZa(a.j,c,b)}};
AZa=function(a,b,c,d){c.adFormat=c.Hf;var e=b.va;b=new TY(new sZa(c,b.Y,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
xk:function(){return e.xk()},
eC:function(){return e.eC()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
hC:function(){return e.hC()},
getVisibilityState:function(){return e.getVisibilityState()},
Oh:function(){return e.Oh()},
bq:function(){return e.bq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
wC:function(){return e.wC()},
wy:function(){return e.wy()},
TB:function(){return e.TB()},
HB:function(){return e.HB()},
cO:function(){e.cO()},
YC:function(){e.YC()},
xa:function(f,h){e.xa(f,h)}}));
b.B=d;g.E(a,b);return b};
BZa=function(){this.Au=0;this.B=this.Ot=this.Zq=this.u=NaN;this.j={};this.bandwidthEstimate=NaN};
CZa=function(){this.j=g.YD;this.array=[]};
EZa=function(a,b,c){var d=[];for(b=DZa(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};
FZa=function(a,b){var c=[];a=g.t(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};
GZa=function(a){return a.array.slice(DZa(a,0x7ffffffffffff),a.array.length)};
DZa=function(a,b){a=Kb(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
HZa=function(a,b){var c=NaN;a=g.t(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};
IZa=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
$Y=function(a,b,c,d){g.C.call(this);this.T=a;this.oa=b;this.D=c;this.ea=d;this.u=NaN;this.I=this.J=this.started=!1;this.B=[];this.Z=new g.Ip(this.On,250,this);g.E(this,this.Z);this.C=new g.Ip(this.On,0,this);g.E(this,this.C);this.j=new CZa};
JZa=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.ea(g.ZD(d.namespace),d):a.ea(g.$D(d.namespace),d)}};
KZa=function(a){this.u=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.tK(a)&&(this.C=.01)};
aZ=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
bZ=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.u>(d||!a.B?1500:400);a.mediaTime=b;a.u=c;return!1};
LZa=function(a,b){this.videoData=a;this.j=b};
MZa=function(a,b,c){return Hza(b,c).then(function(){return Oy(new LZa(b,b.C))},function(d){d instanceof Error&&g.DD(d);
var e=dI('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=fI('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.vJ(a.D,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Yu(),d:!!b.tb,drm:b.Pl(),f18:0<=b.Jf.indexOf("itag=18"),c18:e};b.j&&(b.Pl()?(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=fI('video/mp4; codecs="avc1.42001E"'),
e.cVP9=fI('video/webm; codecs="vp9"'));b.J&&(e.drmsys=b.J.keySystem,f=0,b.J.j&&(f=Object.keys(b.J.j).length),e.drmst=f);return new PK(d,e,h)})};
NZa=function(a){this.D=a;this.B=this.u=0;this.C=new CS(50)};
cZ=function(a,b,c){g.dE.call(this);this.videoData=a;this.experiments=b;this.T=c;this.u=[];this.C=0;this.B=!0;this.D=!1;this.I=0;c=new OZa;"ULTRALOW"===a.latencyClass&&(c.C=!1);a.Xb?c.u=3:g.GM(a)&&(c.u=2);"NORMAL"===a.latencyClass&&(c.T=!0);var d=zza(a);c.D=2===d||-1===d;c.D&&(c.Z++,21530001===yM(a)&&(c.I=g.gJ(b,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN));if(Wy("trident/")||Wy("edge/"))c.B=Math.max(c.B,g.gJ(b,"html5_platform_minimum_readahead_seconds")||3);g.gJ(b,"html5_minimum_readahead_seconds")&&
(c.B=g.gJ(b,"html5_minimum_readahead_seconds"));g.gJ(b,"html5_maximum_readahead_seconds")&&(c.ea=g.gJ(b,"html5_maximum_readahead_seconds"));b.ob("html5_force_adaptive_readahead")&&(c.C=!0);switch(yM(a)){case 21530001:c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2),c.J=b.ob("html5_live_smoothly_extend_max_seekable_time")}this.policy=c;this.J=1!==this.policy.u;b=isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Xb&&b--;this.experiments.ob("html5_disable_extra_readahead_normal_latency_live_stream")||
a.isLowLatencyLiveStream&&"NORMAL"!==a.latencyClass||b++;switch(yM(a)){case 21530001:b=1;break;case 2153E4:b=2}this.policy.D&&b++;this.j=PZa(this,b)};
QZa=function(a,b){var c=a.j;(void 0===b?0:b)&&a.policy.J&&3===zza(a.videoData)&&--c;return dZ(a)*c};
eZ=function(a,b){var c=a.Wp(),d=a.policy.j;a.D||(d=Math.max(d-1,0));a=d*dZ(a);return b>=c-a};
RZa=function(a,b,c){b=eZ(a,b);c||b?b&&(a.B=!0):a.B=!1;a.J=2===a.policy.u||3===a.policy.u&&a.B};
SZa=function(a,b){b=eZ(a,b);a.D!==b&&a.ma("livestatusshift",b);a.D=b};
dZ=function(a){return a.videoData.j?OI(a.videoData.j)||5:5};
PZa=function(a,b){b=Math.max(Math.max(a.policy.Z,Math.ceil(a.policy.B/dZ(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.ea/dZ(a))),b)};
OZa=function(){this.Z=1;this.B=0;this.ea=Infinity;this.C=!0;this.j=2;this.u=1;this.D=!1;this.I=NaN;this.J=this.T=!1};
hZ=function(a){g.C.call(this);this.va=a;this.Y=this.va.V();this.C=this.j=0;this.B=new g.Ip(this.gf,1E3,this);this.Ja=new fZ({delayMs:g.gJ(this.Y.experiments,"html5_seek_timeout_delay_ms")});this.T=new fZ({delayMs:g.gJ(this.Y.experiments,"html5_long_rebuffer_threshold_ms")});this.La=gZ(this,"html5_seek_set_cmt");this.Z=gZ(this,"html5_seek_jiggle_cmt");this.Ga=gZ(this,"html5_seek_new_elem");this.fb=gZ(this,"html5_unreported_seek_reseek");this.I=gZ(this,"html5_long_rebuffer_jiggle_cmt");this.J=new fZ({delayMs:2E4});
this.ya=gZ(this,"html5_seek_new_elem_shorts");this.Aa=gZ(this,"html5_seek_new_elem_shorts_vrs");this.oa=gZ(this,"html5_seek_new_elem_shorts_buffer_range");this.D=gZ(this,"html5_ads_preroll_lock_timeout");this.Qa=new fZ({delayMs:g.gJ(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,gy:!this.Y.K("html5_report_slow_ads_as_error")});this.Xa=new fZ({delayMs:g.gJ(this.Y.experiments,"html5_skip_slow_ad_delay_ms")||5E3,gy:!this.Y.K("html5_skip_slow_buffering_ad")});this.Ya=new fZ({delayMs:g.gJ(this.Y.experiments,
"html5_slow_start_timeout_delay_ms")});this.ea=gZ(this,"html5_slow_start_no_media_source");this.u={};g.E(this,this.B)};
gZ=function(a,b){var c=g.gJ(a.Y.experiments,b+"_delay_ms");a=a.Y.K(b+"_cfl");return new fZ({delayMs:c,gy:a})};
iZ=function(a,b,c,d,e,f,h,l){TZa(b,c)?(a.Kd(e,b,h),b.gy||f()):(b.QH&&b.u&&!b.C?(c=(0,g.M)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.u>b.QH,c=b.j&&c-b.j>b.KO||f?b.C=!0:!1):c=!1,c&&(l=Object.assign({},a.lc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.va.xa("workaroundReport",l),d&&(b.reset(),a.u[e]=!1)))};
fZ=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.KO?1E3:b.KO,d=void 0===b.QH?3E4:b.QH;b=void 0===b.gy?!1:b.gy;this.j=this.u=this.B=this.startTimestamp=0;this.C=!1;this.D=Math.ceil(a/1E3);this.KO=c;this.QH=d;this.gy=b};
TZa=function(a,b){if(!a.D||a.u)return!1;if(!b)return a.reset(),!1;b=(0,g.M)();if(!a.startTimestamp)a.startTimestamp=b,a.B=0;else if(a.B>=a.D)return a.u=b,!0;a.B+=1;return!1};
XZa=function(a){g.C.call(this);var b=this;this.va=a;this.Y=this.va.V();this.videoData=this.va.getVideoData();this.policy=new UZa(this.Y);this.Z=new hZ(this.va);this.playbackData=null;this.Qa=new g.bI;this.I=this.j=this.Fa=this.mediaElement=null;this.u=NaN;this.C=0;this.Aa=NaN;this.B=null;this.Ga=NaN;this.D=this.J=null;this.ea=this.T=!1;this.ya=new g.Ip(function(){VZa(b,!1)},2E3);
this.ib=new g.Ip(function(){jZ(b)});
this.La=new g.Ip(function(){b.T=!0;WZa(b,{})});
this.timestampOffset=0;this.Xa=!0;this.Ja=0;this.fb=NaN;this.oa=new g.Ip(function(){var c=b.Y.vf;c.j+=1E4/36E5;c.j-c.B>1/6&&(oxa(c),c.B=c.j);b.oa.start()},1E4);
this.Ya=this.kb=!1;g.E(this,this.Z);g.E(this,this.Qa);g.E(this,this.ya);g.E(this,this.La);g.E(this,this.ib);g.E(this,this.oa)};
ZZa=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.I=new NZa(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(jM(a.videoData)&&a.Fa){var c=a.Fa.kF.bj()||0;break a}if(a.videoData.j){c=a.videoData.j.Z;break a}}c=0}return c}),a.j=new cZ(a.videoData,a.Y.experiments,function(){return a.pe(!0)}));
YZa(a)||(a.C=a.C||a.videoData.startSeconds||0)};
a_a=function(a,b){(a.Fa=b)?$Za(a,!0):kZ(a)};
b_a=function(a,b){var c=a.getCurrentTime(),d=a.isAtLiveHead(c);if(a.I&&d){var e=a.I;if(e.j&&!(c>=e.u&&c<e.B)){var f=e.j.uh(c);-1!==f&&(e.u=e.j.getStartTime(f),e.B=e.u+e.j.getDuration(f),f=Date.now()/1E3-e.j.Pf(f),f-=e.D(),e.C.add(f))}}a.j&&(d&&(e=a.j,f=a.mediaElement?HO(a.mediaElement):0,e.C++,3>e.C||3E3>g.Ra()-e.I||(e.I=g.Ra(),e.u.push(f),50<e.u.length&&e.u.shift())),e=a.j,RZa(e,c,void 0===b?!0:b),SZa(e,c),b&&VZa(a,!0));a.Y.K("html5_report_live_head_condition_to_qoe")&&d!==a.kb&&(b=a.va.zc,b.qoe&&
(b=b.qoe,c=g.uW(b.provider),g.MY(b,c,"lh",[d?"1":"0"])),a.kb=d)};
VZa=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!eZ(c,d)&&c.uq()?(c.policy.T&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Id()?Math.min(c.videoData.Id()+10,c.Wp()):NaN;if(!isNaN(c)){if(a.Fa&&b&&(b=a.ya.isActive(),d=a.j.Wp(),(d=jXa(a.Fa,d-a.Jd()))&&!b)){a.ya.start();a.va.xa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Jd()});a.seekTo(d+a.Jd(),{Je:"seektimeline_inBufferSeek"});return}a.seekTo(c,{Je:"seektimeline_pegToLive"})}}};
$Za=function(a,b){if(a.j&&a.Fa){var c=!1;if(b)c=!0;else if(a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass)if(b=a.j,b.u.length){c=b.j;b:{if(b.u.length){if(1<Math.min.apply(null,b.u)){var d=PZa(b,b.j-1);break b}if(b.policy.C){d=PZa(b,b.j+1);break b}}d=b.j}b.j=d;if(c=c!==b.j)b.u=[],b.C=0}else c=!1;c&&(c=a.va.zc,b=QZa(a.j),c.qoe&&(c=c.qoe,g.MY(c,g.uW(c.provider),"lra",[b]),c.xa("live-readahead-seconds",{v:b})));b=a.Fa;c=a.j.j;d=a.j;d=(d.j-1+
d.policy.j)*dZ(d);var e=b.u;a=a.j.policy.I;e.Tg=Math.max(c-1,0);e.T=a;b.C&&(b.C.Z=d)}};
c_a=function(a,b){a.C=b};
WZa=function(a,b){d_a(a,b).then(void 0,function(){kZ(a)});
e_a(a).then(function(c){f_a(a,c)},function(){kZ(a)});
CRa(a.va);a.Y.Rd()&&(b=a.lc(),b["native"]=""+ +a.ea,b.tgt=""+a.u,a.va.xa("startSeek",b))};
d_a=function(a,b){a.J||(a.Fa?isFinite(a.u)?a.J=a.Fa.seek(a.u-a.timestampOffset,b):(hM(a.videoData),a.J=kXa(a.Fa),a.u=a.Fa.getCurrentTime()+a.timestampOffset):a.J=Qf(a.u-a.timestampOffset));return a.J};
e_a=function(a){var b=a.B;b||(a.B=new aK,b=a.B,jZ(a));return b};
g_a=function(a,b,c){return isNaN(b)?NaN:g.ze(b,a.Id(),a.pe(c))};
jZ=function(a){if(a.B)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.xj()&&0<GO(a.mediaElement)&&(a.u=g_a(a,a.u,!1)),!a.mediaElement||!h_a(a))a.ib.start(750);else if(!isNaN(a.u)&&isFinite(a.u)&&a.Ga!==a.u-a.timestampOffset){var b=a.mediaElement.getCurrentTime()-a.u;if(Math.abs(b)<=a.Ja)a.B&&a.B.resolve(a.mediaElement.getCurrentTime());else{if(a.videoData.ZI)a.videoData.ZI=!1;else if(!hM(a.videoData)&&a.u>=a.pe()-.1){a.u=a.pe();a.B.resolve(a.pe());
vW(a.va);return}try{var c=a.u-a.timestampOffset;a.mediaElement.seekTo(c);a.Z.j=c;a.Ga=c;a.C=a.u}catch(d){}}}};
h_a=function(a){if(!a.mediaElement||0===a.mediaElement.xj()||0<a.mediaElement.Ye())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Pl())return b;if(0<=a.u){var c=a.mediaElement.dC();if(c.length||!b)return lI(c,a.u-a.timestampOffset)}return b};
f_a=function(a,b){a.D&&(a.D.resolve(b),a.va.ma("SEEK_COMPLETE"),a.Y.Rd()&&(b=a.lc(),b["native"]=""+ +a.ea,a.va.xa("seekEnd",b)));kZ(a)};
kZ=function(a){a.u=NaN;a.Ga=NaN;a.B=null;a.J=null;a.D=null;a.T=!1;a.ea=!1;a.Ja=0;a.ya.stop();a.La.stop()};
i_a=function(a){if(a.mediaElement){for(var b=g.t(["loadedmetadata","progress","seeked","seeking"]),c=b.next();!c.done;c=b.next())a.Qa.S(a.mediaElement,c.value,function(d){var e=a.mediaElement;switch(d.type){case "seeking":d=e.getCurrentTime()+a.timestampOffset;if(!a.B||a.ea&&d!==a.u)a.B=new aK,a.Ga=d,e=e.getCurrentTime(),a.Z.j=e,a.seekTo(d,{Je:"seektimeline_mediaElementEvent"}),a.ea=!0;break;case "seeked":a.B&&a.B.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":if(a.Xa){e="ss";
d=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.uc&&!YZa(a)&&(e="mss",d=a.videoData.uc);a.K("html5_prioritize_st_start_seconds")&&!d&&a.videoData.aj&&(e="stss",d=a.videoData.aj);var f;if(f=!d)f=(HM(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||YZa(a))&&!!a.videoData.j;f&&(d=a.videoData.liveUtcStartSeconds||a.videoData.uc,e="utc",d=a.pe()-a.Pf(a.pe())+d);!d&&a.videoData.aj&&(e="stss",d=a.videoData.aj);f={};if(d){if(d>a.pe()||d<a.Id())f.minSeekableTime=
a.Id(),f.maxSeekableTime=a.pe(),a.va.xa("startSecondsOutOfBounds",f),a.videoData.fd()&&(d=g_a(a,d,!1));a.seekTo(d,{Je:"seektimeline_startSeconds"});f[e]=d;a.va.xa("startSeconds",f);a.Xa=!1}else a.videoData.uc&&(f[e]=a.videoData.uc+a.Jd(),a.va.xa("startSeconds",f))}jZ(a);break;case "progress":jZ(a)}});
a.D||a.C||!a.mediaElement.QO()||a.seekTo(.01,{Je:"seektimeline_setupMediaElement"})}};
YZa=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
j_a=function(a,b){a.va.xa("sdai",{adj4t:b.toFixed(3)});a.Aa=b;b+=1;a.u=b;a.C=b;e_a(a).then(function(c){f_a(a,c)},function(){kZ(a)})};
UZa=function(a){this.j=a.K("html5_live_smoothly_extend_max_seekable_time")};
lZ=function(){this.finished=this.started=!1};
p_a=function(a){function b(e){return c.mm&&(!d.xm||!d.B.I)||"yt"!==c.Ja&&(38===d.Ga&&"books"===c.playerStyle||30===d.Ga&&"docs"===c.playerStyle||33===d.Ga&&"google-live"===c.playerStyle)?k_a(a,d,e):l_a(a,d).then(function(){mZ(a,d)},function(f){mZ(a,d,!0);
throw f;})}
var c=a.V(),d=a.getVideoData();d.isDisposed();d.La=!0;return m_a(a)?n_a(a,d).then(function(){mZ(a,d)},function(e){e=RK(e);
if(QK(e.severity))return mZ(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(o_a=!0);a.handleError(e);return b("onesie")}):b("gvi")};
m_a=function(a){var b=a.V();if(b.K("html5_disable_onesie")||!b.K("html5_onesie")||!b.K("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.Ja)return!1;var c=b.Qk;if(!c||!c.j)return a.handleError(new PK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.D<(0,g.M)()&&(a.xa("okexp","1"),(c=a.XB())&&b.K("html5_prefer_trusted_host_on_key_expiration"))){c.u=!0;var d;(b=null==(d=c.j.get(0))?void 0:FF(d.location))&&!dW(b)&&c.j.delete(0)}if(o_a)return a.xa("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new PK("html5.missingapi",d)),!1):!0};
q_a=function(a){var b=xP();yP(b,a);return g.CR(b,KFa())};
n_a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G,D,L,P,T,fa,V,Q,X,O;return g.A(function(la){if(1==la.j)return b.fetchType="onesie",c=MJa(b,a.getPlayerSize(),a.getVisibilityState()),d=new pY(a,c),g.y(la,d.fetch(),2);e=la.u;f={player_response:e};b.La=!1;h=a.Nf.Us;if(d.Ag){l=g.t(d.Ag.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.t(n),q=p.next().value,r=p.next().value,v=q,x=r,h.j.set(v,x,180),v===b.videoId&&(z=x.Up(),b.hK=z);h.Qu=d}B=g.t(d.CT.entries());for(F=B.next();!F.done;F=B.next())G=
F.value,D=g.t(G),L=D.next().value,P=D.next().value,T=L,fa=P,h.u.set(T,fa,180);g.cM(b,f,!0);if(b.La||aM(b))return la.return(Promise.resolve());h.j.Ef();h.u.Ef();b.hK=[];V={};Q="onesie.response";X=0;b.errorCode?(Q="auth",V.ec=b.errorCode,V.ed=b.errorDetail,V.es=b.Gm||"",X=2):(V.successButUnplayable="1",V.disposed=""+ +b.isDisposed(),V.afmts=""+ +/adaptiveFormats/.test(e),V.cpn=b.clientPlaybackNonce);O=new PK(Q,V,X);return la.return(Promise.reject(O))})};
l_a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r;return g.A(function(v){switch(v.j){case 1:c=b.isAd(),d=!c,e=c?1:3,f=0;case 2:if(!(f<e)){v.Ka(4);break}if(!(0<f)){v.Ka(5);break}return g.y(v,bg(5E3),6);case 6:h=new g.bA("Retrying OnePlatform request",{attempt:f}),g.DD(h);case 5:return g.pa(v,7),g.y(v,r_a(a,b),9);case 9:return v.return();case 7:l=g.sa(v);m=RK(l);n=m.errorCode;p=a.V();p.K("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&"manifest.net.badstatus"===
n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return v.return(Promise.reject(m));a.handleError(m);if(QK(m.severity)){v.Ka(4);break}case 3:f++;v.Ka(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,v.return(Promise.reject(new PK(q,{backend:"op"},r)))}})};
r_a=function(a,b){function c(Q){2===Q.readyState&&a.Vc("ps_c")}
var d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G,D,L,P,T,fa,V;return g.A(function(Q){switch(Q.j){case 1:b.fetchType="gp";d=a.V();e=g.NK(d,g.VM(b));if(!e.j){f=e.getValue();Q.Ka(2);break}return g.y(Q,e.j,3);case 3:f=Q.u;case 2:return h=f,l=q_a(h),m=MJa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.pR(s_a),p=g.VM(b),q=(0,g.M)(),r=!1,v="empty",x=0,a.Vc("psns"),z={wz:c},g.y(Q,g.AP(l,m,n,void 0,z),4);case 4:B=Q.u;a.Vc("psnr");if(b.isDisposed())return Q.return();B?"error"in B&&B.error?(r=!0,v="esf:"+B.error.message,
x=B.error.code):B.errorMetadata&&(r=!0,v="its",x=B.errorMetadata.status):r=!0;if(r)return F=0,G=((0,g.M)()-q).toFixed(),D={},D=d.K("html5_use_network_error_code_enums")?{backend:"op",rc:x,rt:G,reason:v,has_kpt:b.Tb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.ey("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.ya?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Ki||"",token_eq:p===g.VM(b)?"1":"0"}:{backend:"op",
rc:""+x,rt:G,reason:v,has_kpt:b.Tb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.ey("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.ya?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Ki||"",token_eq:p===g.VM(b)?"1":"0"},L="manifest.net.connect",429===x?(L="auth",F=2):200<x&&(L="manifest.net.badstatus",400===x&&(F=2)),Q.return(Promise.reject(new PK(L,D,F)));b.La=!1;g.cM(b,{raw_player_response:B},!0);P=B;if(b.V().K("embeds_web_enable_ve_logging_unification")&&
g.lK(b.V())&&P&&P.trackingParams){var X=P.trackingParams;pP().eq(X)}if(b.errorCode)return T={ec:b.errorCode,ed:b.errorDetail,es:b.Gm||""},Q.return(Promise.reject(new PK("auth",T,2)));if(!b.La&&!aM(b))return fa=b.isAd()?"auth":"manifest.net.retryexhausted",V=b.isAd()?2:1,Q.return(Promise.reject(new PK(fa,{successButUnplayable:"1",hasMedia:EM(b)?"1":"0"},V)));g.oa(Q)}})};
k_a=function(a,b,c){function d(){return!0}
function e(x){x=RK(x);if(QK(x.severity))return Promise.reject(x);a.handleError(x);return!1}
var f,h,l,m,n,p,q,r,v;return g.A(function(x){switch(x.j){case 1:var z=a.V(),B=a.getPlayerSize(),F=a.getVisibilityState();a.isFullscreen();var G=window.location.search;if(38===b.Ga&&"books"===z.playerStyle)G=b.videoId.indexOf(":"),G=g.Zi("//web.archive.org/web/20230426095903/https://play.google.com/books/volumes/"+b.videoId.slice(0,G)+"/content/media",{aid:b.videoId.slice(G+1),sig:b.w1});else if(30===b.Ga&&"docs"===z.playerStyle)G=g.Zi("https://web.archive.org/web/20230426095903/https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.authUser,authkey:b.XR,eurl:z.Oc});else if(33===
b.Ga&&"google-live"===z.playerStyle)G=g.Zi("//web.archive.org/web/20230426095903/https://google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==z.Ja&&g.CD(Error("getVideoInfoUrl for invalid namespace: "+z.Ja));var D={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:z.Oc,ps:z.playerStyle,el:PM(b),hl:z.Si,list:b.playlistId,agcid:b.MR,aqi:b.adQueryId,sts:19471,lact:NC()};Object.assign(D,z.j);z.forcedExperiments&&(D.forced_experiments=z.forcedExperiments);b.ya?(D.vvt=b.ya,b.mdxEnvironment&&(D.mdx_environment=b.mdxEnvironment)):
g.VM(b)&&(D.access_token=g.VM(b));b.adFormat&&(D.adformat=b.adFormat);0<=b.slotPosition&&(D.slot_pos=b.slotPosition);b.breakType&&(D.break_type=b.breakType);null!==b.iQ&&(D.ad_id=b.iQ);null!==b.mQ&&(D.ad_sys=b.mQ);null!==b.MJ&&(D.encoded_ad_playback_context=b.MJ);b.nQ&&(D.tpra="1");z.captionsLanguagePreference&&(D.cc_lang_pref=z.captionsLanguagePreference);z.Pb&&2!==z.Pb&&(D.cc_load_policy=z.Pb);var L=g.Xz(g.Wz(),65);g.DK(z)&&null!=L&&!L&&(D.device_captions_on="1");z.mute&&(D.mute=z.mute);b.annotationsLoadPolicy&&
2!==z.annotationsLoadPolicy&&(D.iv_load_policy=b.annotationsLoadPolicy);b.mx&&(D.endscreen_ad_tracking=b.mx);(L=z.Aa.get(b.videoId))&&L.rI&&(D.ic_track=L.rI);b.Aa&&(D.itct=b.Aa);UM(b)&&(D.autoplay="1");b.mutedAutoplay&&(D.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(D.autonav="1");b.WJ&&(D.noiba="1");b.isMdxPlayback&&(D.mdx="1",D.ytr=b.qj);b.mdxControlMode&&(D.mdx_control_mode=b.mdxControlMode);b.Kp&&(D.ytrcc=b.Kp);b.bK&&(D.utpsa="1");b.isFling&&(D.is_fling="1");b.isInlinePlaybackNoAd&&(D.mute="1");
b.vnd&&(D.vnd=b.vnd);b.forceAdsUrl&&(L=3===b.forceAdsUrl.split("|").length,D.force_ad_params=L?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Si&&(D.preload=b.Si);B.width&&(D.width=B.width);B.height&&(D.height=B.height);TM(b)&&(D.splay="1");b.ypcPreview&&(D.ypc_preview="1");RM(b)&&(D.content_v=RM(b));b.Xb&&(D.livemonitor=1);z.authUser&&(D.authuser=z.authUser);z.pageId&&(D.pageid=z.pageId);z.ib&&(D.ei=z.ib);z.C&&(D.iframe="1");b.contentCheckOk&&(D.cco="1");b.racyCheckOk&&(D.rco="1");z.I&&b.fK&&(D.live_start_walltime=
b.fK);z.I&&b.mm&&(D.live_manifest_duration=b.mm);z.I&&b.playerParams&&(D.player_params=b.playerParams);z.I&&b.cycToken&&(D.cyc=b.cycToken);z.I&&b.OI&&(D.tkn=b.OI);0!==F&&(D.vis=F);z.enableSafetyMode&&(D.enable_safety_mode="1");b.Tb&&(D.kpt=b.Tb);b.Sn&&(D.kids_age_up_mode=b.Sn);b.kidsAppInfo&&(D.kids_app_info=b.kidsAppInfo);b.Fx&&(D.upg_content_filter_mode="1");z.widgetReferrer&&(D.widget_referrer=z.widgetReferrer.substring(0,128));b.oa?(B=null!=b.oa.latitudeE7&&null!=b.oa.longitudeE7?b.oa.latitudeE7+
","+b.oa.longitudeE7:",",B+=","+(b.oa.clientPermissionState||0)+","+(b.oa.locationRadiusMeters||"")+","+(b.oa.locationOverrideToken||"")):B=null;B&&(D.uloc=B);b.Qn&&(D.internalipoverride=b.Qn);z.embedConfig&&(D.embed_config=z.embedConfig);z.ul&&(D.co_rel="1");0<z.ancestorOrigins.length&&(D.ancestor_origins=Array.from(z.ancestorOrigins).join(","));void 0!==z.homeGroupInfo&&(D.home_group_info=z.homeGroupInfo);void 0!==z.livingRoomAppMode&&(D.living_room_app_mode=z.livingRoomAppMode);z.enablePrivacyFilter&&
(D.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(D.is_living_room_deeplink="1");b.Pw&&b.Qw&&(D.clip=b.Pw,D.clipt=b.Qw);b.Uw&&(D.disable_watch_next="1");b.Pn&&(D.forced_by_var="1");for(var P in D)!t_a.has(P)&&D[P]&&512<String(D[P]).length&&(g.DD(Error("GVI param too long: "+P)),D[P]="");P=z.La;g.mK(z)&&(P=SD(P.replace(/\b(?:www|web)([.-])/,"tv$1"))||z.La);z=g.Zi(P+"get_video_info",D);G&&(z=Wna(z,G));G=z}f=G;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){x.Ka(4);break}n=f;if(!(0<m)){x.Ka(5);break}return g.y(x,
bg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=uy(f,p);case 5:return g.y(x,u_a(b,n).then(d,e),7);case 7:if(q=x.u)return x.return();m++;x.Ka(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";v=h?2:1;if(!h&&1E-4>Math.random())try{g.DD(new g.bA("b/152131571",btoa(f)))}catch(T){}return x.return(Promise.reject(new PK(r,{backend:"gvi"},v)))}})};
u_a=function(a,b){function c(B){if(!a.isDisposed()){B=B?B.status:-1;var F=0,G=((0,g.M)()-p).toFixed();G=e.K("html5_use_network_error_code_enums")?{backend:"gvi",rc:B,rt:G}:{backend:"gvi",rc:""+B,rt:G};var D="manifest.net.connect";429===B?(D="auth",F=2):200<B&&(D="manifest.net.badstatus",400===B&&(F=2));return Promise.reject(new PK(D,G,F))}}
function d(B){return c(B.xhr)}
var e,f,h,l,m,n,p,q,r,v,x,z;return g.A(function(B){if(1==B.j){a.fetchType="gvi";e=a.V();var F={};a.SP&&(F.ytrext=a.SP);(l=g.hd(F)?void 0:F)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=uy(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=sJ(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.M)();return g.y(B,DI(Ky,h,f).then(void 0,d),2)}q=B.u;if(!q||!q.responseText)return B.return(c(q));a.La=!1;r=qy(q.responseText);g.cM(a,r,!0);if(a.errorCode)return v={ec:a.errorCode,ed:a.errorDetail,es:a.Gm||""},B.return(Promise.reject(new PK("auth",v,2)));if(!a.La&&!aM(a))return x=a.isAd()?"auth":"manifest.net.retryexhausted",z=a.isAd()?2:1,B.return(Promise.reject(new PK(x,{successButUnplayable:"1"},z)));g.oa(B)})};
mZ=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.A(function(l){if(1==l.j){d=a.V();if(c&&(!g.GK(d)||"embedded"!==PM(b))||b.Uw||"adunit"!==PM(b)&&(g.tK(d)||uK(d)||g.nK(d)||g.mK(d)||"WEB_CREATOR"===g.rJ(d)))return l.return();e=g.NK(d,g.VM(b));return e.j?g.y(l,e.j,3):(f=e.getValue(),l.Ka(2))}2!=l.j&&(f=l.u);h=f;return l.return(v_a(a,b,h))})};
v_a=function(a,b,c){var d,e,f,h,l;return g.A(function(m){if(1==m.j){g.pa(m,2);d=q_a(c);var n=b.V();g.Wz();var p={context:g.jS(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===PM(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.ul&&(p.showContentOwnerOnly=!0);b.NR&&(p.showShortsOnly=!0);g.Xz(0,141)&&(p.autonavState=g.Xz(0,140)?"STATE_OFF":"STATE_ON");if(g.DK(n)){n=g.Xz(0,65);n=null!=n?!n:!1;
var q=!!g.Qz("yt-player-sticky-caption");p.captionsRequested=n&&q}e=p;f=g.pR(w_a);a.Vc("wn_s");return g.y(m,g.AP(d,e,f),4)}if(2!=m.j)return h=m.u,a.Vc("wn_r"),!h||"error"in h&&h.error||(l=h,g.lK(b.V())&&l.trackingParams&&(p=l.trackingParams,pP().eq(p)),g.cM(b,{raw_watch_next_response:h},!1)),g.ra(m,0);g.sa(m);g.oa(m)})};
x_a=function(a){a.Vc("vir");a.Vc("ps_s");fF("vir",void 0,"video_to_ad");var b=p_a(a);b.then(function(){a.Vc("virc");fF("virc",void 0,"video_to_ad");a.Vc("ps_r");fF("ps_r",void 0,"video_to_ad")},function(){a.Vc("virc");
fF("virc",void 0,"video_to_ad")});
return b};
g.pZ=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.$L(a):m;n=void 0===n?!0:n;g.dE.call(this);var p=this;this.Y=a;this.playerType=b;this.vb=c;this.XD=d;this.getVisibilityState=f;this.visibility=h;this.Nf=l;this.videoData=m;this.Z1=n;this.logger=new g.eW("VideoPlayer");this.gB=new KZa(this.Y);this.oe=null;this.Cz=new GY;this.Pp=null;this.Ji=new mYa(this.Y,this.XD,this);this.uU=!0;this.Wa=this.Fa=null;this.zn=[];this.fp=new lZ;this.Df=this.mD=null;this.Lq=new lZ;this.qH=null;this.sM=this.Ns=!1;this.rH=
NaN;this.playerState=new g.KO;this.uH=[];this.oA=new g.bI;this.Gl=new JY(this);this.mediaElement=null;this.Bv=new g.Ip(this.j6,15E3,this);this.XO=this.WG=!1;this.Wv=NaN;this.ZE=!1;this.xK=0;this.yK=new g.Ip(this.aP,4500,this);this.vC=!1;this.AG=NaN;this.xP=new DS(new Map([["bufferhealth",function(){var q=p.xd;return q.mediaElement?HO(q.mediaElement):0}],
["bandwidth",function(){return p.HL()}],
["networkactivity",function(){return p.Y.schedule.ea}],
["livelatency",function(){return p.isAtLiveHead()&&p.bd()?y_a(p):NaN}],
["rawlivelatency",function(){return y_a(p)}]]));
this.HC=0;this.loop=!1;this.playbackRate=1;this.fV=0;this.xd=new XZa(this);this.DS=!1;this.sH=[];this.WM=this.SW=0;this.UO=this.FY=!1;this.Ot=this.Zq=0;this.kK=new g.Ip(this.A3,0,this);this.Og=this.kd=null;this.QV=new g.Ip(this.g2,0,this);this.BH=new g.Ip(this.oX,3E4,this);this.a5=[this.oA,this.kK,this.Bv,this.BH,this.yK,this.xP,this.QV];this.Bg=function(){var q=p.zc;q.provider.Y.Hf||3===q.provider.va.getVisibilityState()||(q.provider.Y.Hf=!0);wZa(q);var r=q.B;r.D&&0>r.j&&3!==r.provider.va.getVisibilityState()&&
DYa(r);q.qoe&&(q=q.qoe,q.Ja&&0>q.u&&q.provider.Y.Hf&&WYa(q));p.Fa&&nZ(p);p.Y.Wn&&!p.videoData.backgroundable&&p.mediaElement&&!p.wh()&&(p.isBackground()&&p.mediaElement.QE()?(p.xa("bgmobile",{suspend:1}),p.Dn(!0,!0)):p.isBackground()||oZ(p)&&p.xa("bgmobile",{resume:1}));p.K("html5_log_tv_visibility_playerstate")&&g.tK(p.Y)&&p.xa("vischg",{vis:p.getVisibilityState(),ps:p.playerState.state.toString(16)})};
this.Ne={ep:function(q){p.ep(q)},
t8a:function(q){p.oe=q},
n7a:function(){return p.zc}};
this.Xi=new $Y(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.ZD("endcr")||g.S(p.playerState,32)||vW(p);
e(q,r,p.playerType)});
g.E(this,this.Xi);g.E(this,this.xd);z_a(this,m);this.videoData.subscribe("dataupdated",this.S7,this);this.videoData.subscribe("dataloaded",this.PK,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.xa,this);this.videoData.subscribe("ctmpstr",this.IO,this);!this.zc||this.zc.isDisposed();this.zc=new g.ZY(new sZa(this.videoData,this.Y,this));jRa(this.Bg);this.visibility.subscribe("visibilitystatechange",this.Bg)};
zI=function(a){return a.K("html5_not_reset_media_source")&&!a.Pl()&&!a.videoData.isLivePlayback&&g.QM(a.videoData)};
z_a=function(a,b){if(2===a.playerType||a.Y.Yn)b.dV=!0;var c=$xa(b.Hf,b.uy,a.Y.C,a.Y.I);c&&(b.adFormat=c);2===a.playerType&&(b.Xl=!0);if(a.isFullscreen()||a.Y.C)c=g.Qz("yt-player-autonavstate"),b.autonavState=c||(a.Y.C?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&A_a(a,b.endSeconds)};
C_a=function(a){if(a.videoData.fb){var b=a.Nf.Rc();a.videoData.rA=a.videoData.rA||(null==b?void 0:b.KL());a.videoData.sA=a.videoData.sA||(null==b?void 0:b.NL())}if(Qza(a.videoData)||!$M(a.videoData))b=a.videoData.errorDetail,a.Ng(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Gm||void 0);1===a.playerType&&qZ.isActive()&&a.BH.start();a.videoData.dj=a.getUserAudio51Preference();a.K("html5_generate_content_po_token")&&B_a(a)};
TN=function(a){return a.mediaElement&&a.mediaElement.du()?a.mediaElement.ub():null};
rZ=function(a){if(a.videoData.De())return!0;a.Ng("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.tW=function(a,b){(b=void 0===b?!1:b)||vZa(a.zc);a.Ns=b;!rZ(a)||a.fp.Os()?g.tK(a.Y)&&a.videoData.isLivePlayback&&a.fp.Os()&&!a.fp.finished&&!a.Ns&&a.PK():(a.fp.start(),b=a.zc,g.uW(b.provider),b.qoe&&RYa(b.qoe),a.PK())};
D_a=function(a){var b=a.videoData;x_a(a).then(void 0,function(c){a.videoData!==b||b.isDisposed()||(c=RK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.Ng(c.errorCode,2,unescape(a.videoData.errorReason),OK(c.details),a.videoData.errorDetail,a.videoData.Gm||void 0):a.handleError(c))})};
sRa=function(a,b){a.kd=b;a.Fa&&hXa(a.Fa,new g.yY(b))};
F_a=function(a){if(!g.S(a.playerState,128))if(a.videoData.isLoaded(),4!==a.playerType&&(a.zn=g.Bb(a.videoData.Ja)),EM(a.videoData)){a.vb.tick("bpd_s");sZ(a).then(function(){a.vb.tick("bpd_c");if(!a.isDisposed()){a.Ns&&(a.pc(MO(MO(a.playerState,512),1)),oZ(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&A_a(a,c.endSeconds);a.fp.finished=!0;tZ(a,"dataloaded");a.Lq.Os()&&E_a(a);CYa(a.Ji,a.Df)}});
a.K("html5_log_media_perf_info")&&a.xa("loudness",{v:a.videoData.Zi.toFixed(3)},!0);var b=$za(a.videoData);b&&a.xa("playerResponseExperiment",{id:b},!0);a.wK()}else tZ(a,"dataloaded")};
sZ=function(a){uZ(a);a.Df=null;var b=MZa(a.Y,a.videoData,a.wh());a.mD=b;a.mD.then(function(c){G_a(a,c)},function(c){a.isDisposed()||(c=RK(c),a.visibility.isBackground()?(vZ(a,"vp_none_avail"),a.mD=null,a.fp.reset()):(a.fp.finished=!0,a.Ng(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",OK(c.details))))});
return b};
KY=function(a){sZ(a).then(function(){return oZ(a)});
g.RO(a.playerState)&&a.playVideo()};
G_a=function(a,b){if(!a.isDisposed()&&!b.videoData.isDisposed()){a.Df=b;ZZa(a.xd,a.Df);if(a.videoData.isLivePlayback){var c=iSa(a.Nf.Us,a.videoData.videoId)||a.Fa&&!isNaN(a.Fa.oa);c=a.K("html5_onesie_live")&&c;0<a.videoData.uc&&!jM(a.videoData)||c||a.seekTo(a.pe(),{Je:"videoplayer_playbackData"})}a.videoData.C.j?a.Fa?g.DD(Error("Duplicated Loader")):(c=g.gJ(a.Y.experiments,"html5_onesie_defer_content_loader_ms"))&&g.rb(a.zn,"ad")&&iSa(a.Nf.Us,a.videoData.B1)?g.Cy(function(){a.isDisposed()||a.Fa||
H_a(a)},c):H_a(a):!a.videoData.C.j&&WM(a.videoData)&&a.cH(new yX(a.videoData.videoId||"",4));
wZ(a);sYa(b).then(function(){a.iA();nZ(a)})}};
I_a=function(a){a.mediaElement&&a.mediaElement.Hx();g.tW(a);if(rZ(a)&&!g.S(a.playerState,128)){a.Lq.Os()||(a.Lq.start(),a.videoData.Tn?a.pc(MO(a.playerState,4)):a.pc(MO(MO(a.playerState,8),1)));var b=a.Nf.Rc();b=b&&2===b.getPlayerType();a.K("html5_suspend_for_preroll_join_latency")&&b&&1===a.getPlayerType()&&!g.S(a.playerState,512)&&a.pc(MO(a.playerState,512));E_a(a)}};
E_a=function(a){a.isDisposed();if(!a.Lq.finished&&a.fp.finished&&!g.S(a.playerState,128)&&!a.zn.length){if(!a.Xi.started){var b=a.Xi;b.started=!0;b.On()}if(!a.Mo()){a.Fa&&(b=a.Fa.timing,a.sM=!!b.u&&!!b.J);a.Lq.finished||(a.Lq.finished=!0);b=a.K("html5_onesie_live")&&a.Fa&&!isNaN(a.Fa.oa);!a.videoData.isLivePlayback||0<a.videoData.uc&&!jM(a.videoData)||b||(a.seekTo(Infinity,{Je:"videoplayer_readying"}),a.isBackground()&&(a.XO=!0));b=a.zc;if(b.qoe){b=b.qoe;b.provider.videoData.Vn&&OY(b,b.provider.videoData.Vn);
if(b.provider.videoData.isLivePlayback){var c=b.provider.videoData.j;jM(b.provider.videoData)&&OY(b,"manifestless");c&&OI(c)&&OY(b,"live-segment-"+OI(c).toFixed(1))}XM(b.provider.videoData)&&OY(b,"sabr");"yt"!==b.provider.Y.Ja&&(b.j.len=[b.provider.videoData.lengthSeconds.toFixed(2)]);b.provider.videoData.cotn&&!WM(b.provider.videoData)&&b.JH(!0);b.provider.Y.Rd()&&(c=PQa())&&b.xa("cblt",{m:c})}a.ma("playbackready",a);aF("pl_c",a.vb.timerName)||(a.vb.tick("pl_c"),fF("pl_c",void 0,"video_to_ad"));
a.K("html5_remove_deprecated_ticks")||aF("pbr",a.vb.timerName)||(a.vb.tick("pbr"),fF("pbr",void 0,"video_to_ad"))}}};
vW=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.pc(b?new g.KO(14):new g.KO)};
A_a=function(a,b){a.Pp&&J_a(a);a.Pp=new g.XD(1E3*b,0x7ffffffffffff);a.Pp.namespace="endcr";a.addCueRange(a.Pp)};
J_a=function(a){a.removeCueRange(a.Pp);a.Pp=null};
K_a=function(a,b,c,d){a.videoData.u=c;d&&vY(a,b,d);d=g.qT(a);a.zc.iD(new lYa(a.videoData,c,b,d?d.itag:""));c=a.Ji;c.B=0;c.j=0;a.ma("internalvideoformatchange",a.videoData,"m"===b)};
g.qT=function(a){var b=xZ(a);return lF(b)||!a.Df?null:g.nb(a.Df.j.videoInfos,function(c){return b.C(c)})};
vY=function(a,b,c){if(c!==a.videoData.I){var d=!a.videoData.I;a.videoData.I=c;"m"!==b&&(b=d?"i":"a");a.zc.VC(new lYa(a.videoData,c,b,""));d||a.ma("internalaudioformatchange",a.videoData,"m"===b)}};
wY=function(a,b){b&&a.Kd(new PK("qoe.restart",b));a.pc(MO(a.playerState,2048));yZ(a);b=a.videoData.j&&tF(a.videoData.j);var c=a.mediaElement&&a.mediaElement.isView();b||c?(a.Fa&&XWa(a.Fa),IY(a)):(oZ(a),g.RO(a.playerState)&&a.playVideo())};
xZ=function(a){if(a.Df){var b=a.Ji;var c=a.Df;a=a.Su();if(b.va.Es().isInline())var d=ZL;else b.K("html5_exponential_memory_for_sticky")?d=.5>$J(b.Y.vf,"sticky-lifetime")?"auto":mF[SI()]:d=mF[SI()],d=g.kF("auto",d,!1,"s");if(lF(d)){d=nYa(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.t(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.j)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;hoa()&&!g.tK(b.Y)&&BF(c.j.videoInfos[0])&&
(f=Math.min(f,g.jF.large));d=e.call(d,new iF(0,f,!1,"o"));e=d.compose;f=4320;!b.Y.u||g.lK(b.Y)||b.Y.K("hls_for_vod")||b.Y.K("mweb_remove_360p_cap")||(f=g.jF.medium);(h=g.gJ(b.Y.experiments,"html5_default_quality_cap"))&&c.j.j&&!c.videoData.Ki&&!c.videoData.Pd&&(f=Math.min(f,h));h=g.gJ(b.Y.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.gJ(b.Y.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.t(l.videoInfos),m=l.next();!m.done;m=
l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.gJ(b.Y.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=AYa(b,c,f);d=e.call(d,new iF(0,4320===f?0:f,!1,"d")).compose(zYa(b)).compose(BYa(b,c.videoData,c)).compose(yYa(b,c)).compose(qYa(b,c));if(!b.K("html5_ignore_ustreamer_cap_for_drm")||lF(a))d=d.compose(rYa(b,c))}else b.K("html5_perf_cap_override_sticky")&&(d=d.compose(yYa(b,c))),b.K("html5_ustreamer_cap_override_sticky")&&(d=d.compose(rYa(b,
c)));d=d.compose(qYa(b,c));b=c.videoData.Nx.compose(d).compose(c.videoData.cS).compose(a)}else b=ZL;return b};
zWa=function(a){var b=a.Ji;a=a.videoData;var c=zYa(b);b.K("html5_disable_client_autonav_cap_for_onesie")||c.compose(BYa(b,a));return c};
g.L_a=function(a,b,c,d){a.videoData.Nx=b;if(a.Df&&c){c=a.Ji;var e=a.Df;if(e.j.j){var f=SI(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=pYa(c,null==(l=e.j)?void 0:l.videoInfos);l=c.va.getPlaybackRate();1<l&&f&&(l=Owa(c.Y.D,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.va.setPlaybackRate(1));var m,n;e=(null==(m=e.videoData.u)?void 0:null==(n=m.video)?void 0:n.j)||0;g.Pz("yt-player-quality",{quality:g.jF[nF(b)],previousQuality:e},31104E3);c.Y.schedule.policy.B=480<=SI();if(c.K("html5_exponential_memory_for_sticky")){b=
c.Y.vf;m=1;var p=void 0===p?!1:p;qxa(b,"sticky-lifetime");b.values["sticky-lifetime"]&&b.gq["sticky-lifetime"]||(b.values["sticky-lifetime"]=0,b.gq["sticky-lifetime"]=0);p&&.0625<$J(b,"sticky-lifetime")&&(m=2*b.gq["sticky-lifetime"]);b.values["sticky-lifetime"]+=1*Math.pow(2,b.j/m);b.gq["sticky-lifetime"]=m;b.C.start()}if(c.K("html5_perf_cap_override_sticky"))if(c.K("html5_perserve_av1_perf_cap")){p=TI();c=g.t(Object.keys(p));for(b=c.next();!b.done;b=c.next())b=b.value,0!==b.indexOf("1")&&(p[b]=0);
g.Pz("yt-player-performance-cap",p,604800)}else g.Rz("yt-player-performance-cap")}}}a.Fa&&(p=a.Fa,HT(p.policy)||(p.ue.oa=d||""));wZ(a)};
B_a=function(a){a.videoData.videoId?a.Nf.FL(a.videoData.videoId).then(function(b){a.videoData.F6a=b}):a.xa("pomvid",{})};
wZ=function(a){if(!a.isDisposed()&&!g.S(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)nZ(a);else{var b=xZ(a),c=a.videoData;a:{var d=a.videoData.Nd;if(b.j){for(var e=g.t(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.rh(),l=g.jF[h.video.quality];if((!b.B||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.ib=d;K_a(a,b.reason,M_a(a,a.videoData.ib))}if(a.K("html5_check_unstarted")?g.RO(a.playerState):a.bd())a.xd.Xa=!1,a.playVideo()}};
nZ=function(a){if(a.videoData.C&&a.videoData.C.j){var b=xZ(a);if(a.Fa&&(a=a.Fa,!a.isDisposed()))if(HT(a.policy)){var c=a.ya;void 0!==c.I&&b.equals(c.I)||(c=a.ya,"m"===b.reason?b.isLocked()&&gVa(c,b.j):c.videoInfos=c.C,c.I=b,"m"===b.reason?wY(a.va,{reattachOnConstraint:"u"}):xY(a))}else if(!TSa(a.ue,b)&&a.videoTrack){var d=a.ue.B;$Wa(a,USa(a.ue,b));tY(a);c=sX(a.ue)&&"m"===b.reason&&a.ue.Z;var e=a.policy.jm&&"l"===b.reason&&ZX(a.videoTrack);b=d.j>b.j&&"b"===b.reason;d=a.ue.ib&&!tI();c||e||b||d?wY(a.va,
{reattachOnConstraint:c?"u":e?"drm":d?"codec":"perf"}):xY(a)}}};
N_a=function(a){var b;return!!(a.K("html5_native_audio_track_switching")&&g.BA&&(null==(b=a.videoData.u)?0:LH(b)))};
O_a=function(a){if(!N_a(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
Q_a=function(a){var b=P_a(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Jc.getName()===b})};
P_a=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
H_a=function(a){for(var b=a.videoData.j,c=g.t(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.Y.j.c,cver:a.Y.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;for(var f=g.t(Object.values(b.j)),h=f.next();!h.done;h=f.next())Mua(h.value.u,d,e);f=void 0;null==(f=b.Ga)||Mua(f,d,e)}c=a.Y;d=a.videoData;b=new g.xLa(c);e=wLa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,Oo:d.Oo});b.I=e;b.ea=d.maxReadAheadMediaTimeMs/1E3||b.ea;e=c.schedule;e.B.bj()===e.policy.u?
b.fb=10:b.fb=d.minReadAheadMediaTimeMs/1E3||b.fb;b.Hf=d.readAheadGrowthRateMs/1E3||b.Hf;Im&&(b.tb=41943040);b.Oc=!CI();g.tK(c)||!CI()?(e=c.experiments,b.Z=8388608,b.Ga=524288,b.Xk=5,b.kb=2097152,b.Ja=1048576,b.jo=1.5,b.j.K("html5_enable_path_probe_on_tv")||(b.Rn=!1),b.dc=4587520,$y()&&(b.dc=786432),b.J*=1.1,b.T*=1.1,b.Dc=!0,b.tb=b.Z,b.Wc=b.Ga,b.ke=e.ob("persist_disable_player_preload_on_tv")||e.ob("persist_disable_player_preload_on_tv_for_living_room")||!1):c.u&&(b.J*=1.3,b.T*=1.3);g.eI&&Wy("crkey")&&
(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.Z=20971520,b.Ga=1572864,e&&(b.dc=812500,b.Nd=1E3,b.Yv=5,b.Ja=2097152));g.fJ&&(b.Dc=!0);c.supportsGaplessAudio()||(b.mm=!1);cK&&(b.jc=!0);b.rd=c.K("html5_peak_shave");"onesie"===d.fetchType&&c.K("html5_disable_peak_shave_for_onesie")&&(b.rd=!1);var l;e=null==(l=d.j)?void 0:tF(l);if(jM(d)){b.Od=!0;b.ol=!0;b.Pb=!0;b.Zi=!0;b.po=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.K("html5_disable_low_pipeline"))b.rl=2,b.qm=4;b.Mp=d.defraggedFromSubfragments;
if(d.mf||c.K("html5_publish_all_cuepoints"))b.Zn=!0;g.GM(d)&&(b.uc=!1);b.hm=g.FK(c)}b.I.j=b.useUmp;d.isAd()&&(b.Vd=0,b.Vf=0,b.ph=g.gJ(c.experiments,"html5_min_startup_buffered_ad_media_duration_secs"));xM&&(b.Xa=!0,c.K("html5_aggressive_timeout_for_streaming_xhr")&&(b.Nd=400,b.wm=10,b.Yn=1,b.Sn=!0,b.zm=5,b.vl=2,b.Qg=3,b.Yi=1.4),c.K("html5_streaming_xhr_expand_request_size")&&(b.Ja=10485760,b.vf=3));b.Lc=c.K("html5_enable_subsegment_readahead_v3")||c.K("html5_ultra_low_latency_subsegment_readahead")&&
"ULTRALOW"===d.latencyClass;b.ib=c.Rd();b.D=b.ib&&(/^rq[a-f]/.test(d.clientPlaybackNonce)||c.Rd());hz()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.K("html5_disable_move_pssh_to_moov")&&e&&(b.Dc=!1);f=0;c.K("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.gJ(c.experiments,"ULTRALOW"===d.latencyClass?"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.ya.j=jM(d)?.5:0;if(!l.policy.C&&f&&(l=l.B,f=Math.round(f*l.resolution),f!==l.j)){h=Array(f);var m=Math.min(f,l.B?l.j:l.u),n=l.u-m;0>n&&(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.u=m%f;l.B=m===f;l.D=!0;l.I=jxa(l)}b.ym=d.isLivePlayback;switch(yM(d)){case 21530001:b.Pk=c.K("html5_live_smoothly_extend_max_seekable_time");b.Lc=!0;"LOW"===d.latencyClass?b.Xb=g.gJ(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):"ULTRALOW"===
d.latencyClass&&(b.Xb=g.gJ(c.experiments,"html5_jumbo_ull_subsegment_readahead_target"));b.Pn=!0;break;case 2153E4:b.Lc=!1}d.fd()&&(b.bl=1.3);b.jc=b.jc||d.dE;b.C=YM(d);b.Ya=d.fb||b.C;c.Rd()&&(b.Qa=!0);d.fb&&!e&&(b.Ui=!0);d.fb&&d.isAd()&&(b.J*=1.6,b.T*=1.6);WM(d)&&(b.u=d.videoId,b.Qk=!0,b.Uo=4,d.gA&&0<d.gA.length&&(b.je=d.gA));b.jm=d.hm;b.ya=WI(c,{},d.C||void 0);b.La=uM(d)&&g.nK(c);b.B=XM(d);b.Tb=b.B&&c.K("html5_sabr_live");l=480<=SI();if(d=g.gJ(c.experiments,"html5_request_sizing_multiplier"))b.oo=
d;xF(c.D,yF.BITRATE)&&(b.dc=NaN);c.D.B&&(b.jl="; "+yF.EXPERIMENTAL.name+"=allowed");l&&(b.aj=0);c.K("debug_html5_random_stun_format")&&(b.Si=!0);c.K("html5_log_audio_abr")&&(b.Wf=!0);c=a.getAudioTrack();c=c.Jc.isDefault?void 0:c;a.Cz.Ef();a:{l=a.Nf.Us;if(d=a.videoData.videoId)if(e=l.j.get(d)){l.j.remove(d);l=e;break a}l=void 0}a.Fa=new g.sY(a,a.Y.schedule,b,a.videoData.j,a.videoData.C,xZ(a),c,a.videoData.enableServerStitchedDai,l,a.videoData.Qa);b=R_a(a)?!0:a.Ns&&g.tK(a.Y)&&a.videoData.isLivePlayback;
a.Fa.initialize(a.getCurrentTime(),xZ(a),b);a.videoData.probeUrl&&(a.Fa.Ja=a.videoData.probeUrl);if(a.zn.length||a.Ns)a.videoData.cotn||zZ(a,!1);a_a(a.xd,a.Fa);a.kd&&hXa(a.Fa,new g.yY(a.kd));a.Og&&a.Fa.eI(a.Og);g.ZM(a.videoData)&&(b=a.Fa,b.policy.Kf=b.policy.wx,a.K("html5_offline_retry_index_db_read")&&(Jya=!0))};
uZ=function(a){a.Fa&&(a.Fa.dispose(),a.Fa=null,a_a(a.xd,null));zI(a)?S_a(a):yZ(a)};
S_a=function(a){if(a.Wa)if(a.oy(),a.Wa.D)try{a.Y.Rd()&&a.xa("rms",{l:"vprms",sr:zI(a),rs:BI(a.Wa)});a.Wa.clear();var b;null!=(b=a.mediaElement)&&(b.u=a.Wa);a.Wa=null}catch(c){b=new g.bA("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=RK(b),a.handleError(b),yZ(a)}else yZ(a)};
yZ=function(a){a.Wa&&(Hva(a.Wa),a.oy(),a.Wa.dispose(),a.Wa=null)};
T_a=function(a){if(a.Wa)return a.Wa.B;a:{try{g.Yy()&&a.videoData.KM()&&yCa(a.mediaElement);var b=a.mediaElement.zs(a.OL(),a.LL())}catch(d){if(eYa(a.Gl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Ng("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}ZQa(a,b)}var c;return(null==(c=a.zs())?void 0:c.B)||null};
ZQa=function(a,b){function c(d){try{if(a.Wa&&(!d||a.Wa===d)){var e=a.getDuration();!e&&jM(a.videoData)&&(e=25200);a.Wa.isView?(d=e,d>a.Wa.getDuration()&&a.Wa.Sk(d)):a.Wa.Sk(e);var f=a.Fa,h=a.Wa;f.policy.oa&&(f.policy.Aa&&f.xa("loader",{setsmb:0}),f.vk(),f.policy.oa=!1);YWa(f);if(!AI(h)){var l=gX(f.videoTrack),m=gX(f.audioTrack),n=(l?l.info.j:f.videoTrack.j).info,p=(m?m.info.j:f.audioTrack.j).info,q=f.policy.jl,r=n.mimeType+(void 0===q?"":q),v=p.mimeType,x=n.Lb,z=p.Lb,B,F=null==(B=h.Wa)?void 0:B.addSourceBuffer(v),
G,D="fakesb"===r.split(";")[0]?void 0:null==(G=h.Wa)?void 0:G.addSourceBuffer(r);h.Dg&&(h.Dg.webkitSourceAddId("0",v),h.Dg.webkitSourceAddId("1",r));var L=new sI(F,h.Dg,"0",GH(v),z,!1),P=new sI(D,h.Dg,"1",GH(r),x,!0);Fva(h,L,P)}QX(f.videoTrack,h.u||null);QX(f.audioTrack,h.j||null);f.Wa=h;f.Wa.C=!0;f.resume();g.eE(h.j,f.Ga,f);g.eE(h.u,f.Ga,f);try{f.gf()}catch(T){g.CD(T)}a.ma("mediasourceattached")}}catch(T){g.DD(T),a.handleError(new PK("fmt.unplayable",{msi:"1",ename:T.name},1))}}
U_a(a);a.Wa=b;zI(a)&&"open"===BI(a.Wa)?c(a.Wa):Eva(a.Wa,c)};
U_a=function(a){if(a.Fa){var b=a.getCurrentTime()-a.Jd();a.K("html5_skip_loader_media_source_seek")&&a.Fa.getCurrentTime()===b||a.Fa.seek(b,{}).Zj(function(){})}else H_a(a)};
IY=function(a,b){b=void 0===b?!1:b;var c,d,e;return g.A(function(f){if(1==f.j){a.Fa&&a.Fa.Xu();a.Fa&&a.Fa.isDisposed()&&uZ(a);if(a.K("html5_enable_vp9_fairplay")&&a.Pl()&&null!=(c=a.videoData.j)){var h=c,l;for(l in h.j)h.j.hasOwnProperty(l)&&(h.j[l].j=null,h.j[l].C=!1)}a.pc(MO(a.playerState,2048));a.ma("newelementrequired");return b?g.y(f,sZ(a),2):f.Ka(2)}a.videoData.fd()&&(null==(d=a.Fa)?0:d.oa)&&(e=a.isAtLiveHead())&&hM(a.videoData)&&a.seekTo(Infinity,{Je:"videoPlayer_getNewElement"});g.S(a.playerState,
8)&&a.playVideo();g.oa(f)})};
eRa=function(a,b){a.xa("newelem",{r:b});IY(a)};
V_a=function(a){a.vb.C.EN();g.S(a.playerState,32)||(a.pc(MO(a.playerState,32)),g.S(a.playerState,8)&&a.pauseVideo(!0),a.ma("beginseeking",a));a.yc()};
CRa=function(a){g.S(a.playerState,32)?(a.pc(OO(a.playerState,16,32)),a.ma("endseeking",a)):g.S(a.playerState,2)||a.pc(MO(a.playerState,16));a.vb.C.JN(a.videoData,g.QO(a.playerState))};
tZ=function(a,b){a.ma("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
W_a=function(a){for(var b=g.t("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.oA.S(a.mediaElement,c.value,a.iO,a);a.Y.ql&&a.mediaElement.du()&&(a.oA.S(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.q5,a),a.oA.S(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.r5,a))};
Y_a=function(a){window.clearInterval(a.rH);X_a(a)||(a.rH=g.Dy(function(){return X_a(a)},100))};
X_a=function(a){var b=a.mediaElement;b&&a.WG&&!a.videoData.kb&&!aF("vfp",a.vb.timerName)&&2<=b.xj()&&!b.Qh()&&0<nI(b.Nh())&&a.vb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.kb&&0<b.getDuration()&&(!aF("pbp",a.vb.timerName)&&b.Ip()&&2<=b.xj()&&0<nI(b.Nh())&&a.vb.tick("pbp"),b=b.getCurrentTime(),aZ(a.gB,b))?(XQa(a),!0):!1};
XQa=function(a){window.clearInterval(a.rH);a.Bv.stop();a.videoData.kb=!0;a.Y.Pn=!0;a.Y.jc=0;var b=a.Gl;if(b.videoData.u){var c=b.j.D;c.u.delete(b.videoData.u.Lb);c.j=!0}b.u.stop();a.Y.jm=a.videoData.jE;a.videoData.RR=!0;Z_a(a);g.S(a.playerState,8)&&a.pc(NO(a.playerState,65));a.Ns=!1;b=a.zc;b.j&&kZa(b.j);b=b.B;c=g.uW(b.provider);0>b.j&&(b.j=c,b.delay.start());b.u=c;b.C=c;g.Jp(a.yK);a.ma("playbackstarted");g.jA()&&((a=g.Ga("yt.scheduler.instance.clearPriorityThreshold"))?a():kA(0))};
Z_a=function(a){var b=a.getCurrentTime(),c=a.Nf.Hd();!aF("pbs",a.vb.timerName)&&xE.measure&&xE.getEntriesByName&&(xE.getEntriesByName("mark_nr")[0]?Fta("mark_nr"):Fta());c.videoId&&a.vb.info("docid",c.videoId);c.eventId&&a.vb.info("ei",c.eventId);c.clientPlaybackNonce&&!a.K("web_player_early_cpn")&&a.vb.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.vb.info("start",c.startSeconds.toString());if(a.mediaElement&&a.mediaElement.Ip())if(a.Y.experiments.ob("web_csi_via_jspb")){var d=new Bx;H(d,
6,!0);var e=new Dx;I(e,Bx,22,d);g.my(VE)(e,a.vb.timerName)}else a.vb.info("paused",1);a.Y.experiments.ob("web_csi_via_jspb")?(d=new Bx,c.u?H(d,1,Number(c.u.itag)):H(d,1,-1),e=new Dx,I(e,Bx,22,d),g.my(VE)(e,a.vb.timerName)):c.u?a.vb.info("fmt",c.u.itag):a.vb.info("fmt","-1");c.Si&&(e=a.sM?2:1,a.Y.experiments.ob("web_csi_via_jspb")?(d=new Bx,H(d,8,e),e=new Dx,I(e,Bx,22,d),g.my(VE)(e,a.vb.timerName)):a.vb.info("yt_pre",String(a.sM?2:1)));a.isFullscreen()&&a.vb.info("yt_fs","1");bF({liveStreamMode:$_a[CM(c)]},
a.vb.timerName);a.vb.info("cmt",b.toFixed(3));if(a.Fa){b=a.Fa.timing;window&&window.performance&&window.performance.getEntriesByName&&(b.J&&(c=window.performance.getEntriesByName(b.J),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.u&&(c=window.performance.getEntriesByName(b.u),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 f in b)b.hasOwnProperty(f)&&a.vb.tick(f,b[f])}};
a0a=function(a){a.zc.Ie();if(hM(a.videoData)&&Date.now()>a.fV+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&LI(a.videoData.j))){var b=a.zc;if(b.qoe){b=b.qoe;var c=b.provider.va.eC(),d=g.uW(b.provider);NYa(b,d,c);c=c.B;isNaN(c)||g.MY(b,d,"e2el",[c.toFixed(3)])}}g.FK(a.Y)&&a.xa("rawlat",{l:FS(a.xP,"rawlivelatency").toFixed(3)});a.fV=Date.now()}a.videoData.u&&LH(a.videoData.u)&&(b=TN(a))&&b.videoHeight!==a.WM&&(a.WM=b.videoHeight,K_a(a,"a",M_a(a,a.videoData.ib)))};
M_a=function(a,b){if("auto"===b.j.video.quality&&LH(b.rh())&&a.videoData.Nd)for(var c=g.t(a.videoData.Nd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.WM&&"auto"!==d.j.video.quality)return d.rh();return b.rh()};
y_a=function(a){if(!hM(a.videoData))return NaN;var b=0;a.Fa&&a.videoData.j&&(b=jM(a.videoData)?a.Fa.kF.bj()||0:a.videoData.j.Z);return Date.now()/1E3-a.Pf()-b};
c0a=function(a){a.mediaElement&&a.mediaElement.wh()&&(a.AG=(0,g.M)());a.Y.po?g.Cy(function(){b0a(a)},0):b0a(a)};
b0a=function(a){var b;if(null==(b=a.Wa)||!b.Ol()){if(a.mediaElement)try{a.qH=a.mediaElement.playVideo()}catch(d){vZ(a,"err."+d)}if(a.qH){var c=a.qH;c.then(void 0,function(d){if(!(g.S(a.playerState,4)||g.S(a.playerState,256)||a.qH!==c||d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))){var e="promise";d&&d.name&&(e+=";m."+d.name);vZ(a,e);a.DS=!0;a.videoData.aJ=!0}})}}};
vZ=function(a,b){g.S(a.playerState,128)||(a.pc(OO(a.playerState,1028,9)),a.xa("dompaused",{r:b}),a.ma("onAutoplayBlocked"))};
oZ=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=T_a(a);var d;null==(d=a.Fa)||d.resume()}else uZ(a),a.videoData.ib&&(c=a.videoData.ib.QA());b=c;d=a.mediaElement.QE();c=!1;d&&d.equals(b)||(d0a(a,b),c=!0);g.S(a.playerState,2)||(b=a.xd,b.D||!(0<b.C)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||b.seekTo(b.C,{Je:"seektimeline_resumeTime"}));a:if(b=c,g.AM(a.videoData)&&a.mediaElement)if((d=a.videoData.J)&&a.mediaElement.du()){var e=a.mediaElement.ub();
if(a.oe)if(e!==a.oe.element)AZ(a);else if(b&&"fairplay"===d.flavor&&!Zy())AZ(a);else break a;if(a.K("html5_report_error_for_unsupported_tvos_widevine")&&Zy()&&"widevine"===d.flavor)a.Ng("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.oe=new VXa(e,a.videoData,a.Y);a.oe.subscribe("licenseerror",a.bH,a);a.oe.subscribe("qualitychange",a.h6,a);a.oe.subscribe("heartbeatparams",a.aD,a);a.oe.subscribe("keystatuseschange",a.ep,a);a.oe.subscribe("ctmp",a.xa,a);b=g.t(a.Cz.keys);
for(d=b.next();!d.done;d=b.next())d=a.Cz.get(d.value),a.oe.vz(d);a.K("html5_eme_loader_sync")||a.Cz.Ef()}}else a.Ng("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1");return c};
d0a=function(a,b){a.vb.tick("vta");fF("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&c_a(a.xd,a.getCurrentTime());a.mediaElement.Hx(b);a.Wa&&kA(4);!a.videoData.kb&&g.RO(a.playerState)&&a.Bv.start();if(N_a(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.ma("internalaudioformatchange",a.videoData,!0)}}};
AZ=function(a){a.oe&&(a.oe.dispose(),a.oe=null)};
qW=function(a,b){b=void 0===b?!1:b;return hM(a.videoData)&&(a.isAtLiveHead()&&!g.QO(a.playerState)||a.uq()||g.GM(a.videoData))?a.getCurrentTime():a.pe(b)};
e0a=function(a){a.mediaElement&&(a.Wa?(AZ(a),yZ(a),T_a(a)):(a.videoData.ib&&a.videoData.ib.ZO(),a.mediaElement.stopVideo()),a.playVideo())};
f0a=function(a,b){a.Y.K("html5_log_rebuffer_reason")&&a.xa("bufreason",{r:b,lact:NC()})};
EW=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){l=2===c.playerType?c:b;var m=b.videoData.videoId,n=c.videoData.videoId;if(m&&n){var p=a.zc;if(p.qoe){p=p.qoe;var q=b.cpn,r=c.cpn,v=l.videoData.Hf,x=p.provider.videoData.clientPlaybackNonce,z=p.provider.videoData.videoId,B=r!==x&&n!==z;x=q!==x&&m!==z;p.reportStats();p.adCpn&&p.adCpn!==q||(p.adCpn=x?q:"",p.T=x?m:"",p.adFormat=x?v:void 0,XYa(p,h?4:f?2:0,r,n,e),p.reportStats(),p.adCpn=B?r:"",p.T=B?n:"",p.adFormat=B?v:void 0,XYa(p,
h?5:f?3:1,q,m,d),p.reportStats())}d=a.zc;f=b.cpn;if(d.u.has(f)){if(h=d.u.get(f),YY(h,!0).send(),XY(h),f!==d.provider.videoData.clientPlaybackNonce){pZa(h);var F;null==(F=d.j)||lZa(F);d.u.delete(f)}}else d.Ci=d.provider.videoData.clientPlaybackNonce,d.Ci&&d.j&&(d.u.set(d.Ci,d.j),YY(d.j).send(),XY(d.j));F=a.zc;d=c.cpn;l=l.videoData;f=e-a.aq();if(F.u.has(d)){l=F.u.get(d);var G=l.u&&isNaN(l.C)?VY(l):NaN;l=oZa(l,!1);isNaN(G)||(l.D=G);l.send()}else l=AZa(F,F.provider,l,f),F.u.set(d,l),l.yd(new g.WN(MO(new g.KO,
8),new g.KO)),kZa(l),null==(G=F.j)||XY(G);F.Ci=d;G=a.videoData.clientPlaybackNonce;a=c.videoData;b=(b.cpn===G?"video":"ad")+"_to_"+(c.cpn===G?"video":"ad");G={};a.T&&(G.cttAuthInfo={token:a.T,videoId:a.videoId});G.startTime=e;cF(b,G);bF({targetVideoId:a.videoId,targetCpn:c.cpn},b);eF("pbs",e,b)}}};
g0a=function(a,b){if(a.Y.Rd()){var c=g.gJ(a.Y.experiments,"html5_log_rebuffer_events");if(c&&a.mediaElement){var d=a.mediaElement.lc();d.rt=(1E3*g.uW(a.zc.provider)).toFixed();d.e=b.substr(0,3);a.sH[a.SW++%c]=d}}};
h0a=function(a){if(a.Y.Rd()){a.sH.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.t(a.sH),c=b.next();!c.done;c=b.next())c=c.value,a.xa("vpe",Object.assign({t:c.rt},c));a.sH=[];a.SW=0}};
i0a=function(a){if(Wy("cobalt")&&Wy("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.xa("nxdock",{d:b})}};
WQa=function(a,b,c,d,e){a.xa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
zZ=function(a,b){var c;null==(c=a.Fa)||uY(c,b||R_a(a))};
R_a=function(a){return a.K("disable_prefetch_when_ad_pending_for_living_room")&&g.tK(a.Y)&&g.rb(a.zn,"ad")};
j0a=function(a){return YM(a.videoData)&&a.Og?a.Og.getDuration():a.videoData.pe()};
g.BZ=function(a,b,c,d){g.C.call(this);var e=this;this.logger=new g.eW("App");this.oz=this.Lh=!1;this.Cw={};this.Lx=new QJa;this.CH={};this.Mz=[];this.MU=!1;this.HM=null;this.QU=!1;this.tv=!0;this.nP=!1;this.iV=this.YM=null;this.pV=!0;this.mediaElement=this.Bb=null;this.xN=NaN;this.kD=!1;this.Og=this.Ke=this.screenLayer=this.xD=this.Kb=this.playlist=null;this.WD=void 0;this.Ud=this.qA=null;this.config=Noa(b||{});this.webPlayerContextConfig=c;Yoa();b=this.config.args||{};this.Y=new vK(b,c,c?c.canaryState:
this.config.assets.player_canary_state,d);g.E(this,this.Y);this.wK();this.Y.experiments.ob("web_player_empty_translator")?Tra({},{}):this.Y.experiments.ob("web_player_all_payloads_via_jspb")&&Tra(k0a,l0a);this.Y.u&&!m0a&&(window.addEventListener(bK?"touchstart":"click",QQa,{capture:!0,passive:!0}),m0a=!0);this.K("html5_onesie")&&(this.Nv=new aW(this.Y),g.E(this,this.Nv));this.QX=jz(hK(this.Y)&&!0,b.enablesizebutton);this.RM=jz(!1,b.player_wide);this.visibility=new lRa;g.E(this,this.visibility);this.Lh=
jz(!1,b.external_list);this.events=new g.bI(this);g.E(this,this.events);this.K("start_client_gcf")&&(QC(UC(),{EO:CB,cQ:Tpa()}),this.u2=UC().resolve(CB),Upa(this.u2));this.Mq=new VW;g.E(this,this.Mq);this.Qp=new VW;g.E(this,this.Qp);this.Ls=new sSa;d=new RJa;this.Ta=new g.GS(this,d);g.E(this,this.Ta);this.template=new mSa(this);g.E(this,this.template);this.appState=1;this.ji=n0a(this);this.F=this.Y.I?new xS(this,d,!0,1):new sS(this,d,!0,1);g.E(this,this.F);g.E(this,d);d={};this.vK=(d.internalvideodatachange=
this.u5,d.playbackready=this.w5,d.playbackstarted=this.x5,d.statechange=this.y5,d);this.e3=new gLa(this.Ta);g.E(this,this.e3);this.hd=o0a(this);this.K("html5_load_wasm")&&"WebAssembly"in window&&iMa(this.hd).then(function(f){e.Y.Nd=f},function(f){g.DD(f)});
this.R4=new g.bI(this);g.E(this,this.R4);this.vb=new hLa(this.Y,this.hd);this.Ta.ma("csiinitialized");this.zb=p0a(this);this.zb.setPlaybackRate(this.Y.C?1:q0a(this,Number(g.Qz("yt-player-playback-rate"))||1));g.eE(this.zb,this.vK,this);C_a(this.zb);d={};this.WW=(d.airplayactivechange=this.onAirPlayActiveChange,d.airplayavailabilitychange=this.onAirPlayAvailabilityChange,d.beginseeking=this.EN,d.endseeking=this.JN,d.internalAbandon=this.PN,d.internalaudioformatchange=this.VC,d.internalvideodatachange=
this.onVideoDataChange,d.internalvideoformatchange=this.iD,d.liveviewshift=this.i6,d.playbackstalledatstart=this.y7,d.progresssync=this.P6,d.onLoadProgress=this.onLoadProgress,d.SEEK_COMPLETE=this.xz,d.SEEK_TO=this.n7,d.onVideoProgress=this.onVideoProgress,d.onLoadedMetadata=this.onLoadedMetadata,d.onAutoplayBlocked=this.onAutoplayBlocked,d.playbackready=this.F6,d.statechange=this.JW,d.connectionissue=this.YC,d.newelementrequired=this.oW,d.heartbeatparams=this.aD,d.videoelementevent=this.iO,d.drmoutputrestricted=
this.onDrmOutputRestricted,d.signatureexpired=this.t7,d.nonfatalerror=this.w6,d);this.Ts=new g.bI(this);g.E(this,this.Ts);d=10;g.tK(this.Y)&&(d=3);EK(this.Y)&&(d=g.gJ(this.Y.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Us=new UW;g.E(this,this.Us);this.rD=new SW(d,function(f){f!==g.qS(e,f.getPlayerType())&&f.dispose()});
g.E(this,this.rD);this.xL=this.DF=-1;this.UH=new g.Ip(this.template.resize,16,this.template);g.E(this,this.UH);r0a(this);this.kd=new SRa(this.Ta,this.Y,this.zb);this.Sv=new xW(this.Y);this.ir=new rW(this);g.E(this,this.ir);this.SY=new mW(this);g.E(this,this.SY);gSa(this.Y.j.c);this.events.S(this.Ta,g.ZD("appapi"),this.s5);this.events.S(this.Ta,g.$D("appapi"),this.t5);this.events.S(this.Ta,g.ZD("appad"),this.TV);this.events.S(this.Ta,g.$D("appad"),this.TV);this.events.S(this.Ta,g.ZD("appprogressboundary"),
this.O6);this.events.S(this.Ta,g.$D("applooprange"),this.ZH);this.events.S(this.Ta,"presentingplayerstatechange",this.Hi);this.events.S(this.Ta,"resize",this.a7);this.template.Ea(We(document,a));this.events.S(this.Ta,"offlineslatestatechange",this.y6);this.fQ=s0a(this,this.template.element);g.E(this,this.fQ);this.hd.F.V().Yi&&KT(this.hd,"offline");this.Y.Vf&&g.BT("ux",g.ZV);this.yS=new g.Ip(this.z8,g.gJ(this.Y.experiments,"html5_defer_fetch_att_ms"),this);g.E(this,this.yS);this.Hd().De()&&(g.Sz()&&
this.Hd().Ja.push("remote"),t0a(this));this.vb.tick("fs");u0a(this);this.Y.Vf&&KT(this.hd,"ux",!0);g.oK(this.hd.F.V())&&KT(this.hd,"music");g.fK(this.hd.F.V())&&KT(this.hd,"embed");this.K("web_player_sentinel_is_uniplayer")||g.DD(new g.bA("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.K("web_player_sentinel_yt_experiments_sync");d=g.gy("web_player_sentinel_yt_experiments_sync");a!==d&&g.DD(new g.bA("b/195699950",{yt:a,player:d}));c||g.DD(new g.bA("b/179532961"));this.zY=
v0a(this);if(c=g.gJ(this.Y.experiments,"html5_block_pip_safari_delay"))this.DL=new g.Ip(this.KS,c,this),g.E(this,this.DL);Py=this.Y.fb;c=g.gJ(this.Y.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.OW=new g.$f(c),g.E(this,this.OW),this.events.S(this.OW,"tick",function(){e.PW&&w0a.Sp(e.PW);e.PW=w0a.Xq("apit")}));
this.K("html5_proto_encoder_large_field_index")&&(oya=!0)};
v0a=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(a.Kb||a.zb).zc.Kd("player.exception",OK({n:c.name,m:c.message}))}
ED.subscribe("handleError",b);ky.push(b);return function(){ED.unsubscribe("handleError",b);var c=ky.indexOf(b);-1!==c&&ky.splice(c,1)}};
p0a=function(a){var b=new g.$L(a.Y,a.config.args);a.Ta.ma("initialvideodatacreated",b);return a.iy(1,b)};
o0a=function(a){var b="",c=kSa(a);0===c.indexOf("//")&&(c=a.Y.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.DD(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new VLa(a.Ta,b);x0a(a,b);return b};
x0a=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.u=c};
n0a=function(a){if(a.Y.storeUserVolume){a=g.Qz("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ze(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.Y.mute};return a};
CZ=function(a){a.mediaElement=a.Y.deviceIsAudioOnly?new g.pT(g.qf("AUDIO")):lW.pop()||new g.pT(g.qf("VIDEO"));g.E(a,a.mediaElement);a.Kb&&a.Kb.setMediaElement(a.mediaElement);try{a.Y.Lc?(a.qA&&a.events.Hc(a.qA),a.qA=a.events.S(a.mediaElement,"volumechange",a.q6)):(a.mediaElement.Sz(a.ji.muted),a.mediaElement.setVolume(a.ji.volume/100))}catch(e){a.Eg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_")));return}g.Lz(a.Ts);y0a(a);var b=a.template,
c=a.mediaElement.ub();b.kc=c;b.mG=!1;b.kc.parentNode||g.wf(b.kB,b.kc,0);b.zH=new g.Em(0,0,0,0);rSa(b);XW(b);c=b.kc;g.Qp(c,"video-stream");g.Qp(c,g.WW.MAIN_VIDEO);var d=b.app.V();d.hj&&c.setAttribute("data-no-fullscreen","true");d.K("html5_local_playsinline")?"playsInline"in cI()&&(c.playsInline=!0):d.ol&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.oo&&b.kc&&b.S(c,"click",c.play,c);try{a.mediaElement.Hx()}catch(e){a.Eg("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+
(e.message&&e.message.replace(/[;:,]/g,"_")))}};
wW=function(a,b,c){if(a.Kb!==b){var d=null;if(a.Kb){d=a.Kb.getPlayerState();LT(a.hd,3);DZ(a,"cuerangesremoved",a.Kb.Hm());a.ir&&!b.isGapless()&&a.Kb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=zI(b)&&zI(a.Kb);a.K("html5_rebase_video_to_ad_timeline")&&a.vb.Mt("iv_s");e=void 0===e?!0:e;var f;if(f=a.Ud)f=a.mediaElement,f=!!f&&f===a.Ud.mediaElement;f&&(a.rj(),CZ(a));a.Kb&&(a.Kb.rj(!e),fE(a.Kb,a.WW,a),1!==a.Kb.getPlayerType()&&a.Kb.dispose());a.Kb=null}1===b.getPlayerType()&&a.zb!==b&&
(b.getVideoData().autonavState=a.zb.getVideoData().autonavState,fE(a.zb,a.vK,a),e=a.zb.getPlaybackRate(),a.zb.dispose(),a.zb=b,a.zb.setPlaybackRate(e),g.eE(b,a.vK,a),t0a(a));e=b.getPlayerType();if(b!==a.zb&&b!==a.Cw[e]){var h;null==(h=a.Cw[e])||h.dispose();a.Cw[e]=b}a.Kb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.eE(b,a.WW,a);if(b.yG())z0a(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",b,b.getVideoData());d&&!g.PO(d,b.getPlayerState())&&a.JW(new g.WN(b.getPlayerState(),d));c=
c&&a.F.K("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.fp.finished&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().u)&&c.video)&&a.Ta.Na("onPlaybackQualityChange",c.quality);DZ(a,"cuerangesadded",a.Kb.Hm());c=b.getPlayerState();g.S(c,2)?A0a(a):g.S(c,8)?b.playVideo():b.BC()&&b.pauseVideo();if(2===b.getPlayerType()&&a.K("html5_report_host_cpn")){var l;b.getVideoData().h1=null==(l=g.qS(a,1))?void 0:l.getVideoData().clientPlaybackNonce}2!==b.getPlayerType()||
a.mf()||(b=b.getVideoData(),a.zb.Hz(b.clientPlaybackNonce,b.Hf||"",b.breakType||0,b.Zi))}}};
A0a=function(a){if(!B0a(a)){var b=a.zb.qe();b&&(b=b.AB(),b instanceof Promise&&b.catch(function(){}));
EZ(a,UO(a.Cb()))}};
y0a=function(a){var b=a.mediaElement;gI()?a.Ts.S(b,"webkitpresentationmodechanged",a.k7):window.document.pictureInPictureEnabled&&(a.Ts.S(b,"enterpictureinpicture",function(){a.Uz(!0)}),a.Ts.S(b,"leavepictureinpicture",function(){a.Uz(!1)}));
cz&&(a.Ts.S(b,"webkitbeginfullscreen",function(){a.cm(3)}),a.Ts.S(b,"webkitendfullscreen",function(){a.cm(0)}))};
g.qS=function(a,b){return b?1===b?a.zb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Cw[2]||a.Kb:a.Kb:a.Cw[b]||null:a.Kb};
C0a=function(a,b,c,d){a=a.iy(b,c,d);C_a(a);return a};
FZ=function(a,b){return a.mf(b)?a.zb:b};
GZ=function(a,b){var c=a.Kb;return c&&b===a.zb&&a.mf(b)&&a.mf(c)?c:b};
D0a=function(a){if(!HZ(a)){var b=MT(a.hd);b&&!b.created&&WLa(a.hd)&&b.create()}};
E0a=function(a){var b=a.getVideoData(),c=a.hd;cMa(c)||c.bL();KT(c,"embed");KT(c,"inline_preview");KT(c,"kids");KT(c,"remote");KT(c,"miniplayer");KT(c,"music");KT(c,"offline");KT(c,"unplugged");KT(c,"ypc",!1,!0);KT(c,"ypc_clickwrap",!1,!0);KT(c,"yto",!1,!0);KT(c,"webgl",!1,!0);dMa(c)||(KT(c,"captions",!0),KT(c,"endscreen"),c.cL(),KT(c,"creatorendscreen",!0));c.dT();a.Ta.ma("videoready",b)};
IZ=function(a){a=a.Hd();a.De();return SM(a)};
u0a=function(a){a.jL();var b=a.config.args;CZ(a);var c=a.Hd();a.Ta.Na("onVolumeChange",a.ji);if(b&&lLa(b)){var d=BK(a.Y);d&&!a.Lh&&(b.fetch=0);var e=g.fK(a.Y);e&&!a.Lh&&(b.fetch=0);JZ(a,b);g.fK(a.Y)&&a.vb.tick("ep_pr_s");if(d&&!a.Lh)KZ(a);else if(e&&!a.Lh)F0a(a);else if(!c.De())a.playlist.onReady(function(){LZ(a)})}wW(a,a.zb);
g.S(a.zb.getPlayerState(),128)||(b=Ava(!a.Y.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Eg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Eg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.De()&&IZ(a)&&(a.Y.bl||a.Y.Qg)?MZ(a):g.Qz("yt-player-playback-on-reload")?(g.rA("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.Y.authUser}),qwa(!1),MZ(a)):KK(a.Y)||G0a(a),g.DK(a.Y)||"MWEB"===g.rJ(a.Y)?(g.gA(g.iA(),function(){NZ(a)}),g.gA(g.iA(),function(){MFa()})):
(NZ(a),MFa()))};
NZ=function(a){if(a.K("fetch_att_independently"))g.Jp(a.yS);else{var b=a.getVideoData().botguardData;b&&g.EJa(b,a.Y,a.getVideoData().pk||"")}};
G0a=function(a){a.Ta.ma("initializingmode");a.mp(2);KT(a.hd,"remote");KT(a.hd,"miniplayer")};
MZ=function(a){if(g.S(a.zb.getPlayerState(),128))return!1;var b=a.zb.getVideoData();IZ(a)&&a.Y.Qg&&(lW.length&&a.oz?(tS(a,{muted:!1,volume:a.ji.volume},!1),OZ(a,!1)):lW.length||a.ji.muted||(tS(a,{muted:!0,volume:a.ji.volume},!1),OZ(a,!0)));IZ(a)&&a.Y.Uo&&b.mutedAutoplay&&(tS(a,{muted:!0,volume:a.ji.volume},!1),OZ(a,!0));b.VR&&tS(a,{muted:!0,volume:a.ji.volume},!1);H0a(a,1,b,!1);a.Ta.ma("initializingmode");wW(a,a.zb);a.mp(3);var c;if(!(c=!a.Y.wm)){if(c=a.Ud)c=a.mediaElement,c=!!c&&c===a.Ud.mediaElement;
c=c&&a.MU}c&&(a.rj(),CZ(a),a.zb.setMediaElement(a.mediaElement));I_a(a.zb);if(g.S(a.zb.getPlayerState(),128))return!1;b.Tn||EZ(a,3);return a.MU=!0};
HZ=function(a){a=JS(a.hd);return!!a&&a.loaded};
I0a=function(a,b){if(!a.Bb)return!1;var c=.001*a.Bb.startTimeMs-1,d=.001*a.Bb.endTimeMs;"repeatChapter"===a.Bb.type&&d--;return Ee(b,c)||Ee(b,d)||b>=c&&b<=d};
J0a=function(a){if(!(g.S(a.zb.getPlayerState(),64)&&a.Hd().isLivePlayback&&5E3>a.Bb.startTimeMs)){if("repeatChapter"===a.Bb.type){var b,c=null==(b=XJa(a.wb()))?void 0:b.MB(),d;b=null==(d=a.getVideoData())?void 0:d.Pk;c instanceof g.eU&&b&&(d=b[HU(b,a.Bb.startTimeMs)],c.FD(0,d.title));isNaN(Number(a.Bb.loopCount))?a.Bb.loopCount=0:a.Bb.loopCount++;1===a.Bb.loopCount&&a.F.Na("innertubeCommand",a.getVideoData().C1)}a.zb.seekTo(.001*a.Bb.startTimeMs,{Je:"application_loopRangeStart"})}};
q0a=function(a,b){var c=a.Ta.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
QZ=function(a,b,c){if(a.mf(c)){c=c.getVideoData();if(PZ(a))c=b;else{a=a.kd;for(var d=g.t(a.u),e=d.next();!e.done;e=d.next())if(e=e.value,c.Nc===e.Nc){b+=e.Ec/1E3;break}d=b;a=g.t(a.u);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.Nc===e.Nc)break;var f=e.Ec/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Dd/1E3;else break}c=d}return c}return b};
K0a=function(a,b){if(3===a.getPresentingPlayerType())return UO(JS(a.hd).Te);if(a.getVideoData().enableServerStitchedDai&&2===b){var c;return(null==(c=a.Ke)?0:zRa(c,a.getCurrentTime()))?a.DF:-1}return 2!==b||a.mf()?a.DF:a.xL};
t0a=function(a){RZ(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Lx.Lx={};a.CH={};a.Mz=[];jLa(a.vb);if(a.Ke){var b=a.Ke,c=a.zb;c.getPlayerType();HW(b,!1);DRa(b);ERa(b);b.va=c}b=a.kd;a=a.zb;1!==a.getPlayerType()&&MW(b,"invalidParentVideoPlayerType");QW(b,!1);eSa(b);b.j=a};
KZ=function(a){var b=L0a();if(b)if(!b.list)a.iF();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ta.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.zT(a.playlist).videoId||(b.index=a.playlist.index));pLa(a.playlist,b);a.xD&&M0a(a,a.xD)}else a.xD=null};
F0a=function(a,b){var c=(b?b:a.Hd()).kS;a.vb.tick("ep_pr_r");if(null!=c&&(pLa(a.playlist,c),a.nP))a.playlist.onReady(function(){LZ(a,b)})};
JZ=function(a,b){a.playlist&&(g.Za(a.playlist),a.playlist=null);b&&(a.Lh&&(b.fetch=0),a.playlist=new kLa(a.Y,b))};
Q0a=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.getVideoData().clientPlaybackNonce};c=g.xp(c,d);d=void 0;d=void 0===d?!1:d;(d=QD(RD(c,N0a),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=QD(RD(c,O0a),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=QD(RD(c,P0a),c,d,"Nielsen OCR URL"));g.ZB(c,void 0,d)}return!0};
EZ=function(a,b){if(a.Kb){var c=a.Kb.getPlayerType();if(2===c&&!a.mf()){a.xL!==b&&(a.xL=b,a.Ta.Na("onAdStateChange",b));return}if(2===c&&a.mf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Bb)return;var d;if((null==(d=a.Kb)?0:d.xs())&&!JK(a.Y)){a.playVideo();return}}a.DF!==b&&(a.DF=b,a.Ta.Na("onStateChange",b))};
R0a=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;c=c||a.Kb.getPlayerType();var f=H0a(a,c,b,!0);f||(f=C0a(a,c,b));2===c&&a.zb&&(b=f.getVideoData(),a.zb.Hz(b.clientPlaybackNonce,b.Hf||"",b.breakType||0,b.Zi));a.yF(f,d,0,e)};
S0a=function(a,b,c){return SZ(a,b,c.videoId,c.Nc,c.isAutonav,c.kp)};
SZ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.Y.K("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
H0a=function(a,b,c,d){var e=a.Y.K("html5_autonav_autoplay_in_preload_key")?S0a(a,b,c):SZ(a,b,c.videoId,c.Nc);var f=a.rD.get(e);if(!f)return null;a.rD.remove(e);if(g.S(f.getPlayerState(),128))return f.dispose(),null;if(f===g.qS(a,b))return bF({isCacheHit:!0},a.vb.timerName),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;d||wW(a,f,!0);bF({isCacheHit:!0},a.vb.timerName);return f};
TZ=function(a,b,c){c=g.qS(a,c);b&&c===a.zb&&(c.getVideoData().AD=!0)};
UZ=function(a,b,c){c=void 0===c?1:c;if(b.De()){var d=a.iy(c,b);a.cancelPlayback(4,c);wW(a,d);C_a(d);1===c&&(a.mp(1),a.K("embeds_web_enable_cue_video_unplayable_fix")&&g.fK(a.Y)&&!$M(b)?(b.dispose(),g.Za(g.qS(a,c))):G0a(a))}else b.dispose(),g.Za(g.qS(a,c)),Zza(a.Hd())&&2===c&&delete a.Cw[2]};
T0a=function(a,b,c,d,e){b=aKa(b,c,d,e);(c=g.fK(a.Y)&&!a.Y.oa)&&!a.Lh&&(b.fetch=0);JZ(a,b);g.fK(a.Y)&&a.vb.tick("ep_a_pr_s");if(c&&!a.Lh)c=a.Hd(),sLa(c,b).then(function(f){a.nP=!0;F0a(a,f)});
else a.playlist.onReady(function(){LZ(a)});
g.fK(a.Y)&&a.vb.tick("ep_a_pr_r")};
LZ=function(a,b){var c=g.fK(a.Y)&&!a.Y.oa,d=c&&b?b:g.zT(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Xl&&(a.Y.bl||a.Y.Qg)||!a.tv?(b=b.AD,d=a.Rs(d,1),b&&TZ(a,d)):UZ(a,d,1));g.fK(a.Y)&&a.vb.tick("ep_p_l");a.nP=!1;a.Ta.Na("onPlaylistUpdate")};
B0a=function(a){if(a.playlist&&g.lK(a.Y)&&a.KB()){var b=a.Y.K("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
M0a=function(a,b){var c=g.Ga(b);c?((b=L0a())&&b.list&&c(),a.xD=null):a.xD=b};
L0a=function(){var a=g.Ga("yt.www.watch.lists.getState");return a?a():null};
U0a=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=WD.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=WD.AD_MARKER:(b.style=WD.TIME_MARKER,b.color=e),b.visible=!0);a.ZA([new g.XD(1E3*c,1E3*d,b)],1);return!0};
V0a=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.Pf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.Mz.push({id:b,R9:c,Q9:d}),!1;f=h-a.getCurrentTime();return U0a(a,b,c-f,d-f,void 0,void 0,e)};
W0a=function(a,b){a.Mz=g.Rn(a.Mz,function(f){return f.id!==b});
for(var c=a.zb.Hm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.zb.removeCueRange(e),DZ(a,"cuerangesremoved",[e]),!0}return!1};
X0a=function(a){var b=(0,g.M)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
tS=function(a,b,c){a.Y.Ya&&(a.ji=b,b.muted||OZ(a,!1),c&&a.Y.storeUserVolume&&!a.Y.Lc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.Pz("yt-player-volume",c),g.Pz("yt-player-volume",c,2592E3))),Y0a(a),c=g.eI&&a.mediaElement&&!a.mediaElement.Qf(),a.Y.Lc&&!c||a.Ta.Na("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.Y.storeUserVolume}))};
Y0a=function(a){var b=a.getVideoData();if(!b.Xk){b=a.Y.Lc?1:Xza(b);var c=a.mediaElement;c.Sz(a.ji.muted);try{c.setVolume(a.ji.volume*b/100)}catch(d){g.DD(new g.bA("b183742307","multiplier: "+b+", volume: "+a.ji.volume))}}};
OZ=function(a,b){b!==a.oz&&(a.oz=b,a.Ta.Na("onMutedAutoplayChange",b))};
g.wS=function(a){return a.oz&&a.getVideoData().mutedAutoplay};
Z0a=function(a){var b=zz(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.ub())?b:null};
a1a=function(a,b){var c=window.screen&&window.screen.orientation;if((a.Y.K("lock_fullscreen2")||a.Y.T)&&c&&c.lock&&(!g.eI||!$0a))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.kD||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.kD=!0}}else a.kD&&(a.kD=!1,c.unlock())};
DZ=function(a,b,c){a.Ta.ma(b,c);var d=g.tK(a.Y)||g.mK(a.Y)||g.nK(a.Y);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ta.Na(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
VZ=function(a,b,c,d,e,f){c=void 0===c?!0:c;f=void 0===f?!1:f;var h=g.qS(a,e);if(!h||(2!==h.getPlayerType()||a.mf(h)||f)&&!g.GM(h.getVideoData()))3===a.getPresentingPlayerType()?JS(a.hd).bp("control_seek",b,c):(h===a.zb&&a.Bb&&!I0a(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e))};
z0a=function(a,b,c){c&&(a.rj(),CZ(a));c=g.qS(a);c.Kd(new PK("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?jM(d)&&g.FK(a.Y)&&(e.live_utc_start=c.Pf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.ya&&(e.vvt=d.ya);d.T&&(e.vss_credentials_token=d.T,e.vss_credentials_token_type=d.ek);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Pn&&(e.force_gvi=d.Pn);e.autoplay=1;e.reload_count=d.Dc+1;e.reload_reason=b;d.hQ&&(e.unplugged_partner_opt_out=
d.hQ);d.Vf&&(e.ypc_is_premiere_trailer=d.Vf);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.Ke&&D0a(a)};
b1a=function(a,b){a.Hd().autonavState=b;g.Pz("yt-player-autonavstate",b);a.Ta.ma("autonavchange",b)};
c1a=function(a){var b=a.getVideoData().Xk,c=a.Y.Ld,d=a.isInline()&&!a.getVideoData().fJ,e=a.mediaElement;b||c||d?e.lL():(e.nL(),tS(a,a.ji))};
s0a=function(a,b){return a.Y.K("html5_enable_embedded_player_visibility_signals")&&g.fK(a.Y)?new jSa(b):null};
RZ=function(a){(a=MT(a.wb()))&&a.created&&a.destroy()};
PZ=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.Ke};
d1a=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.t(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Km(a,d);b.hidden=!!a.hidden};
r0a=function(a){var b=a.Y,c=document,d=c.requestStorageAccess&&c.hasStorageAccess;b.K("embeds_enable_request_storage_access_safari_itp")&&g.BA&&d&&b.C?ez()||b.fb?(g.rA("embedsStorageAccessNotChecked",{isIosWebview:ez(),isPemPlayer:b.fb}),a.WD=!1):c.hasStorageAccess().then(function(e){g.rA("embedsHasStorageAccessResult",{hasCookieAccess:e,resultedInError:!1});a.WD=!e},function(e){g.rA("embedsHasStorageAccessResult",{hasCookieAccess:!1,
resultedInError:!0});g.DD(Error("Embeds ITP Error: "+e));a.WD=!1}):a.WD=!1};
e1a=function(a,b){return g.tK(a.Y)&&yy(b)&&wy(b)?g.NK(a.Y,g.VM(a.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):Oy()};
WZ=function(a,b){e1a(a,b).then(function(c){g.ZB(b,void 0,void 0,c)})};
XZ=function(a,b){b.forEach(function(c){WZ(a,c)})};
kSa=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:a.config.assets&&a.config.assets.js?a.config.assets.js:""};
YZ=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
AC=function(a,b){return a.j.has(b)};
ZZ=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
$Z=function(a){return Array.from(a.j.keys())};
g1a=function(a){var b;return(null==(b=f1a.get(a))?void 0:b.uw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
i1a=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:h1a.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=a_(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.t(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(a_(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.t(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(a_(a.value))}return c};
j1a=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:h1a.get(b.bb)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
a_=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
k1a=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Yl(d||[],function(e){return i1a(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
c_=function(a,b){return function(c){return l1a(b_(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.bb,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.bb)}};
l1a=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:i1a(a,{slotId:b,slotType:c,slotPhysicalPosition:d,bb:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ba:new YZ([])}),layoutData:j1a(a,{layoutId:m,layoutType:n,bb:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],Rb:new Map,Ba:new YZ([]),Ac:{}})}}};
m1a=function(){return!0};
d_=function(a){this.u=m1a;this.Ca=a;a=Math.random();var b=this.Ca.get();b=g.gJ(b.F.V().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
b_=function(a){return a.j||a.Ca.get().F.V().K("html5_force_debug_data_for_client_tmp_logs")};
n1a=function(a,b){var c={slotId:MD(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],bb:"surface",Ba:new YZ([])},d=Object,e=d.assign;b=ND(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Rb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"surface",Ba:new YZ([]),
Ac:l1a(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.bb,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{l4:!0,slot:c,layout:b})};
e_=function(a){this.lB=a};
f_=function(a){this.lB=a};
g_=function(a,b,c){this.lB=a;this.Kj=b;this.Tl=c};
o1a=function(a,b,c){var d=a.lB();switch(b.type){case "SKIP":hEa(d,a.Kj,a.Tl,c)}};
h_=function(){};
i_=function(){};
j_=function(a,b,c){this.An=a;this.i8=b;this.Oa=c};
k_=function(a,b){this.ou=a;this.Oa=b};
l_=function(a){this.F=a};
m_=function(a,b){this.Wl=a;this.Oa=b};
q1a=function(a){g.C.call(this);this.j=a;this.IZ=p1a(this)};
p1a=function(a){var b=new QP(a.j.zd);g.E(a,b);a=g.t([new e_(a.j.I1),new k_(a.j.ou,a.j.Oa),new l_(a.j.F),new m_(a.j.Wl,a.j.Oa),new g_(a.j.W4,a.j.Kj,a.j.Tl),new f_(a.j.l2),new i_,new j_(a.j.An,a.j.Di,a.j.Oa),new h_]);for(var c=a.next();!c.done;c=a.next())c=c.value,YDa(b,c),ZDa(b,c);a=g.t(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())c=c.value,OP(b,c,function(){}),PP(b,c,function(){});
return b};
n_=function(a){this.value=a};
o_=function(a){this.value=a};
r1a=function(a){this.value=a};
p_=function(a){this.value=a};
q_=function(a){this.value=a};
s1a=function(){n_.apply(this,arguments)};
t1a=function(a){this.value=a};
u1a=function(a){this.value=a};
r_=function(a){this.value=a};
s_=function(a){this.value=a};
t_=function(a){this.value=a};
u_=function(a){this.value=a};
v_=function(a){this.value=a};
w_=function(a){this.value=a};
x_=function(a){this.value=a};
y_=function(){n_.apply(this,arguments)};
v1a=function(){n_.apply(this,arguments)};
z_=function(a){this.value=a};
A_=function(a){this.value=a};
B_=function(a){this.value=a};
w1a=function(a){this.value=a};
x1a=function(a){this.value=a};
C_=function(a){this.value=a};
y1a=function(a){this.value=a};
z1a=function(a){this.value=a};
A1a=function(a){this.value=a};
B1a=function(a){this.value=a};
D_=function(a){this.value=a};
E_=function(a){this.value=a};
F_=function(a){this.value=a};
C1a=function(a){this.value=a};
G_=function(a){this.value=a};
H_=function(a){this.value=a};
I_=function(a){this.value=a};
D1a=function(a){this.value=a};
J_=function(a){this.value=a};
K_=function(a){this.value=a};
L_=function(a){this.value=a};
M_=function(a){this.value=a};
N_=function(a){this.value=a};
O_=function(a){this.value=a};
P_=function(a){this.value=a};
Q_=function(a){this.value=a};
R_=function(a){this.value=a};
E1a=function(a){this.value=a};
S_=function(a){this.value=a};
T_=function(a){this.value=a};
U_=function(a){this.value=a};
F1a=function(a){this.value=a};
V_=function(a){this.value=a};
W_=function(a){this.value=a};
X_=function(a){this.value=a};
Y_=function(){n_.apply(this,arguments)};
G1a=function(a){this.value=a};
Z_=function(){n_.apply(this,arguments)};
$_=function(){n_.apply(this,arguments)};
H1a=function(){n_.apply(this,arguments)};
a0=function(){n_.apply(this,arguments)};
I1a=function(a){this.value=a};
b0=function(a,b,c,d){d=void 0===d?!1:d;cb.call(this,a);this.lk=c;this.pu=d;this.args=[];b&&this.args.push(b)};
J1a=function(a,b,c,d){g.C.call(this);this.Fd=b;this.Qb=c;this.Ca=d;this.j=a(this,this,this,this,this);g.E(this,this.j);a=g.t(b);for(b=a.next();!b.done;b=a.next())g.E(this,b.value)};
eCa=function(a,b){oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",b)};
fCa=function(a,b){oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);a=g.t(a.Fd);for(var c=a.next();!c.done;c=a.next())c.value.Ii(b)};
gCa=function(a,b){oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=g.t(a.Fd);for(var c=a.next();!c.done;c=a.next())c.value.Lg(b)};
YBa=function(a,b){oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);a=g.t(a.Fd);for(var c=a.next();!c.done;c=a.next())c.value.Mg(b)};
K1a=function(a,b,c,d){GD(c,b,void 0,void 0,c.pu);c.lk?c0(a.Qb,d,c.lk,b):GD("adsClientErrorMessage is missing.",b);d0(a,b,!0)};
O1a=function(a,b,c){if(e0(a.j,b))if(f0(a.j,b).C=c?"filled":"not_filled",null===c){g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.t(a.Fd);for(var d=c.next();!d.done;d=c.next())d.value.Kk(b);d0(a,b,!1)}else{g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e=null!=(d=c.qw)?d:ZZ(c.Ba,"metadata_type_sub_layouts");if(e)for(d=g.t(e),e=d.next();!e.done;e=d.next())g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,e.value);e=
g.t(a.Fd);for(d=e.next();!d.done;d=e.next())d.value.Lk(b);if(e0(a.j,b))if(f0(a.j,b).D)d0(a,b,!1);else{g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{var f=a.j;if(!f0(f,b))throw new b0("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!f.rf.yq.get(b.slotType))throw new b0("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(g.sb(c.layoutExitNormalTriggers)&&
g.sb(c.layoutExitSkipTriggers)&&g.sb(c.layoutExitMuteTriggers)&&g.sb(c.layoutExitUserInputSubmittedTriggers)&&g.sb(c.Sc))throw new b0("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");h0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);h0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);h0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);h0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
c.layoutExitUserInputSubmittedTriggers);h0(f,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Sc)}catch(n){n instanceof b0?a.fg(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.fg(b,c,new b0("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");d0(a,b,!0);return}f0(a.j,b).I=!0;try{var h=a.j,l=f0(h,b),m=h.rf.yq.get(b.slotType).get().wf(h.C,h.u,b,c);m.init();l.layout=c;if(l.B)throw new b0("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.B=m;i0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);i0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);i0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);i0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);i0(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Sc)}catch(n){L1a(a,b);n instanceof b0?a.fg(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.fg(b,c,new b0("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");d0(a,b,!0);return}g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);f=g.t(a.Fd);for(d=f.next();!d.done;d=f.next())d.value.Oj(b,c);L1a(a,b);M1a(a,b)}else N1a(a.Ca.get())&&GD("slot is unscheduled after been fulfilled.",b,c)}};
P1a=function(a,b,c){"core"!==b.bb&&g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c)};
Q1a=function(a,b,c){g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);a=g.t(a.Fd);for(var d=a.next();!d.done;d=a.next())d.value.Oj(b,c)};
pO=function(a,b,c){a=g.t(a.Fd);for(var d=a.next();!d.done;d=a.next())d.value.Th(b,c)};
j0=function(a,b,c){g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=g.t(a.Fd);for(var d=a.next();!d.done;d=a.next())d.value.Tc(b,c)};
jO=function(a,b,c,d){g0(a.Qb,g1a(d),b,c);a=g.t(a.Fd);for(var e=a.next();!e.done;e=a.next())e.value.wd(b,c,d)};
L1a=function(a,b){if(e0(a.j,b)){f0(a.j,b).I=!1;var c=k0;b=f0(a.j,b);var d=[].concat(g.u(b.T));waa(b.T);c(a,d)}};
k0=function(a,b){b.sort(function(f,h){function l(m){GD("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):lra(f.category,l)-lra(h.category,l)});
var c=new Map;b=g.t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,e0(a.j,d.slot))if(f0(a.j,d.slot).I)f0(a.j,d.slot).T.push(d);else{R1a(a.Qb,d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.t(S1a);for(d=b.next();!d.done;d=b.next())e=g.t(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&T1a(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&U1a(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&V1a(a,b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&
W1a(a,c)};
T1a=function(a,b,c){b=g.t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&X1a(a.j,d.slot)&&Y1a(a,d.slot,d.layout,c)};
U1a=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next())d0(a,c.value.slot,!1)};
V1a=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(f0(a.j,c.slot).C){case "not_filled":var d=!0;break a;default:d=!1}d&&(oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.EB(c.slot))}};
W1a=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.t(a.Fd),e=d.next();!e.done;e=d.next())e.value.Qj(c.slot);try{var f=a.j,h=c.slot,l=f0(f,h);if(!l)throw new N("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.u)throw new N("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new N("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(l0(l))throw new N("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.t(m0(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&l0(p))throw new N("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 N&&q.lk?(c0(a.Qb,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.lk,c.slot),GD(q,c.slot,n0(a.j,c.slot),void 0,q.pu)):(c0(a.Qb,"ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),GD(q,c.slot));d0(a,c.slot,!0);continue}c=f0(a.j,c.slot);"scheduled"!==c.j&&o0(c.slot,c.j,"enterSlot");c.j="enter_requested";c.u.zF()}};
M1a=function(a,b){if(e0(a.j,b)&&l0(f0(a.j,b))&&n0(a.j,b)&&!X1a(a.j,b)){var c;g0(a.Qb,"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=n0(a.j,b))?c:void 0);a=f0(a.j,b);"entered"!==a.j&&o0(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.B.startRendering(a.layout)}};
Y1a=function(a,b,c,d){if(e0(a.j,b)){var e=a.Qb,f;var h=(null==(f=f1a.get(d))?void 0:f.cw)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";g0(e,h,b,c);a=f0(a.j,b);"rendering"!==a.j&&o0(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.B.Pg(c,d)}};
d0=function(a,b,c){if(e0(a.j,b)){a:switch(f0(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(f0(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(f0(a.j,b).D=!0,!c))return;if(l0(f0(a.j,b)))f0(a.j,b).D=!0,Z1a(a,b,c);else{a:switch(f0(a.j,b).C){case "fill_requested":c=!0;break a;default:c=!1}if(c)f0(a.j,b).D=!0,e0(a.j,b)&&(oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=f0(a.j,b),b.C="fill_cancel_requested",b.J.IK());else{c=
n0(a.j,b);(d=a.Ca.get().F.V().experiments.ob("h5_enable_layout_unscheduling_events"))&&(c?a.Th(b,c):GD(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=f0(a.j,b),f=b.slotEntryTrigger,h=e.ya.get(f.triggerId);h&&(h.gm(f),e.ya.delete(f.triggerId));f=g.t(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.Z.get(h.triggerId);l&&(l.gm(h),e.Z.delete(h.triggerId))}f=g.t(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.ea.get(h.triggerId))l.gm(h),e.ea.delete(h.triggerId);null!=e.layout&&(f=e.layout,p0(e,f.layoutExitNormalTriggers),p0(e,f.layoutExitSkipTriggers),p0(e,f.layoutExitMuteTriggers),p0(e,f.layoutExitUserInputSubmittedTriggers),p0(e,f.Sc));e.J=void 0;null!=e.u&&(e.u.release(),e.u=void 0);null!=e.B&&(e.B.release(),e.B=void 0);e=a.j;f0(e,b)&&(e=m0(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.t(a.Fd);for(e=a.next();!e.done;e=a.next())e=e.value,e.Rj(b),c&&!d&&e.Th(b,c)}}}};
Z1a=function(a,b,c){if(e0(a.j,b)&&l0(f0(a.j,b))){var d=n0(a.j,b);if(d&&X1a(a.j,b))Y1a(a,b,d,c?"error":"abandoned");else{oO(a.Qb,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=f0(a.j,b);if(!e)throw new N("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&o0(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.u)throw e.j="scheduled",new N("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.u.BF()}catch(f){f instanceof N&&f.lk?(c0(a.Qb,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.lk,b),GD(f,b,void 0,void 0,f.pu)):(c0(a.Qb,"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),GD(f,b))}}}};
$1a=function(a){this.slot=a;this.ya=new Map;this.Z=new Map;this.ea=new Map;this.oa=new Map;this.B=this.layout=this.u=this.J=void 0;this.I=this.D=!1;this.T=[];this.j="not_scheduled";this.C="not_filled"};
l0=function(a){return"enter_requested"===a.j||a.isActive()};
a2a=function(a,b,c,d,e,f){g.C.call(this);this.rf=a;this.B=b;this.D=c;this.C=d;this.u=e;this.Ca=f;this.j=new Map};
m0=function(a,b){return(a=a.j.get(b))?a:new Map};
f0=function(a,b){return m0(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
b2a=function(a){var b=[];a.j.forEach(function(c){c=g.t(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
e0=function(a,b){return null!=f0(a,b)};
X1a=function(a,b){a=f0(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
n0=function(a,b){(a=f0(a,b))?null!=a.layout&&!a.layout&&GD("Unexpected empty layout",b):GD("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
e2a=function(a,b,c){if(g.sb(c))throw new N("No "+c2a.get(b)+" triggers found for slot.",void 0,d2a(b));c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.rf.al.get(d.triggerType))throw new N("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
d2a=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"}};
h0=function(a,b,c){c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.rf.al.get(d.triggerType))throw new b0("No trigger adapter registered for "+c2a.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
i0=function(a,b,c,d){d=g.t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.rf.al.get(e.triggerType);f.Zl(c,e,b.slot,b.layout?b.layout:null);b.oa.set(e.triggerId,f)}};
p0=function(a,b){b=g.t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.oa.get(c.triggerId);d&&(d.gm(c),a.oa.delete(c.triggerId))}};
o0=function(a,b,c){GD("Slot stage was "+b+" when calling method "+c,a)};
f2a=function(a){return q0(a.Ov).concat(q0(a.al)).concat(q0(a.Tp)).concat(q0(a.Wq)).concat(q0(a.yq))};
q0=function(a){var b=[];a=g.t(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.Jj&&b.push(c);return b};
h2a=function(a){g.C.call(this);this.j=a;this.u=g2a(this)};
g2a=function(a){var b=new J1a(function(c,d,e,f){return new a2a(a.j.rf,c,d,e,f,a.j.Ca)},new Set(f2a(a.j.rf).concat(a.j.listeners)),a.j.Qb,a.j.Ca);
g.E(a,b);return b};
i2a=function(a){g.C.call(this);var b=this;this.j=a;this.instance=null;g.bb(this,function(){g.Za(b.instance);b.instance=null})};
Y=function(a){return new i2a(a)};
r0=function(a){this.j=a};
s0=function(a,b,c,d){(a=a.j())||GD("Could not initiate a command router instance.");RP(a,b,c,d)};
t0=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
j2a=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
u0=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
x0=function(a){if(!t0(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.K(a,k2a);return b?l2a(b):(b=g.K(a,FP))?u0(b):(b=g.K(a,HP))?void 0!==b.playerVars:(b=g.K(a,GP))?void 0!==b.durationMilliseconds:g.K(a,v0)||g.K(a,w0)?!0:!1};
l2a=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.K(b,m2a)});
return 0<a.length&&a.every(x0)};
s2a=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(n2a(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;if(c=g.K(a,m2a))return x0(c);(c=g.K(a,o2a))?t0(c.adLayoutMetadata)?(c=g.K(c.renderingContent,p2a),c=g.K(null==c?void 0:c.sidePanel,q2a)||g.K(null==c?void 0:c.sidePanel,r2a)?!0:!1):c=!1:c=!1;return c};
n2a=function(a){var b;a=g.K(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,o2a);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
t2a=function(a){return null!=a.linearAds&&t0(a.adLayoutMetadata)};
u2a=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
w2a=function(a,b,c,d,e,f,h){b=Ssa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof N?b:v2a(a,d,e,b,c);return a instanceof N?a:[a]};
y2a=function(a,b,c,d,e){var f=MD(a.eb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new U_({getAdBreakUrl:d.getAdBreakUrl,HO:0,GO:0})];a=b.pauseDurationMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:new y0(a.j,f),slotFulfillmentTriggers:[new x2a(a.j)],slotExpirationTriggers:[new z0(a.j,e)],bb:"core",Ba:new YZ(d),adSlotLoggingData:c}:new N("AdPlacementConfig for Pause Ads is missing pause_duration_ms");return a instanceof N?a:[a]};
z2a=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
A0=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
B0=function(a,b){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=a(this.triggerType)};
z0=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
C0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
D0=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
E0=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
F0=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)};
A2a=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 N("Invalid layout exit reason: "+
a)}};
B2a=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
G0=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
H0=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
I0=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
J0=function(a,b){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new DC(CC,b,a.id):new N("Not able to create BeforeContentVideoIdStartedTrigger");else if(a.layoutExitedForReasonTrigger){var c,d;if((null==(c=a.layoutExitedForReasonTrigger)?0:c.triggeringLayoutId)&&(null==(d=a.layoutExitedForReasonTrigger)?0:d.layoutExitReason)){var e=A2a(a.layoutExitedForReasonTrigger.layoutExitReason);a=e instanceof N?e:new F0(CC,a.layoutExitedForReasonTrigger.triggeringLayoutId,[e],
a.id)}else a=new N("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger)var f=null!=(e=a.onLayoutSelfExitRequestedTrigger)&&e.triggeringLayoutId?new G0(CC,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new N("Not able to create OnLayoutSelfExitRequestedTrigger");else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=a.onNewPlaybackAfterContentVideoIdTrigger?new z0(CC,b,a.id):new N("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger)e=
null!=(f=a.skipRequestedTrigger)&&f.triggeringLayoutId?new H0(CC,a.skipRequestedTrigger.triggeringLayoutId,a.id):new N("Not able to create SkipRequestedTrigger");else if(a.slotIdEnteredTrigger){var h;e=null!=(h=a.slotIdEnteredTrigger)&&h.triggeringSlotId?new C0(CC,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new N("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var l;e=null!=(l=a.slotIdExitedTrigger)&&l.triggeringSlotId?new D0(CC,a.slotIdExitedTrigger.triggeringSlotId,a.id):
new N("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var m;e=null!=(m=a.surveySubmittedTrigger)&&m.triggeringLayoutId?new I0(CC,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new N("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new B2a(a.id):new N("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var n;e=null!=(n=a.closeRequestedTrigger)&&n.triggeringLayoutId?new E0(CC,a.closeRequestedTrigger.triggeringLayoutId,
a.id):new N("Not able to create CloseRequestedTrigger")}else e=new N("Not able to convert an AdsControlflowTrigger.");a=e}e=a}a=e}f=a}a=f}return a};
D2a=function(a,b,c,d,e,f,h,l){return null===b?new N("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[C2a(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new YZ([new o_(d),new t_(e)]);n=ND(c.eb.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Rb:new Map,
layoutExitNormalTriggers:[new z0(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:q,Ac:m(r),adLayoutLoggingData:p}})]};
H2a=function(a,b,c,d,e,f){if(!f)for(b=g.t(b),f=b.next();!f.done;f=b.next())f=f.value,K0(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return E2a(p)});
b=[];f={};for(var h=g.t(a),l=h.next();!l.done;f={lr:f.lr},l=h.next()){f.lr=l.value;l={};for(var m=g.t(f.lr.pK),n=m.next();!n.done;l={il:l.il},n=m.next())l.il=n.value,n=function(p,q){return function(r){return p.il.dL(r,q.lr.instreamVideoAdRenderer.elementId,p.il.oK)}}(l,f),l.il.isContentVideoCompanion?b.push(F2a(c,d,e,f.lr.instreamVideoAdRenderer.elementId,l.il.associatedCompositePlayerBytesLayoutId,l.il.adSlotLoggingData,n)):1<a.length?b.push(G2a(c,d,e,f.lr.instreamVideoAdRenderer.elementId,l.il.adSlotLoggingData,
function(p,q){return function(r){return p.il.dL(r,q.lr.instreamVideoAdRenderer.elementId,p.il.oK,p.il.associatedCompositePlayerBytesLayoutId)}}(l,f))):b.push(G2a(c,d,e,f.lr.instreamVideoAdRenderer.elementId,l.il.adSlotLoggingData,n))}return b};
K0=function(a,b,c){if(b=I2a(b)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=J2a(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.tC=c)}else GD("InstreamVideoAdRenderer without externalVideoId")}};
I2a=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.K(a.sandwichedLinearAdRenderer.linearAd,FP);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.t(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.K(c,FP)&&b.push(g.K(c,FP));return b}return null};
E2a=function(a){if(void 0===a.instreamVideoAdRenderer)return GD("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.t(a.pK),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.dL)return!1;if(void 0===c.oK)return GD("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.tC||void 0===c.WE||a.tC!==c.WE&&"AD_PLACEMENT_KIND_SELF_START"!==c.WE)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return GD("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.tC,"matching APSR kind":c.WE}),!1}return!0};
J2a=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,tC:void 0,adVideoId:b,pK:[]});return a.get(b)};
L0=function(a,b,c,d,e,f,h,l,m){e?J2a(a,e).pK.push({q6a:b,WE:c,isContentVideoCompanion:d,oK:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,dL:m}):GD("Companion AdPlacementSupportedRenderer without adVideoId")};
K2a=function(a){var b,c=null==(b=ZZ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=ZZ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=ZZ(a.Ba,"metadata_type_content_cpn"),f=ZZ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=ZZ(a.Ba,"metadata_type_player_underlay_renderer"),l=ZZ(a.Ba,"metadata_type_ad_placement_config"),m=ZZ(a.Ba,"metadata_type_video_length_seconds");var n=AC(a.Ba,"metadata_type_layout_enter_ms")&&AC(a.Ba,
"metadata_type_layout_exit_ms")?(ZZ(a.Ba,"metadata_type_layout_exit_ms")-ZZ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{vp:d,contentCpn:e,xO:c,qK:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,MG:n,inPlayerLayoutId:ZZ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ZZ(a.Ba,"metadata_type_linked_in_player_slot_id")}};
N2a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x){d=MD(d,"SLOT_TYPE_PLAYER_BYTES");a=L2a(e,a,h,c,d,m,n);if(a instanceof N)return a;var z;n=null==(z=ZZ(a.Ba,"metadata_type_fulfilled_layout"))?void 0:z.layoutId;if(!n)return new N("Invalid adNotify layout");b=M2a(n,e,f,c,l,b,m,p,q,r,v,x,h);return b instanceof N?b:[a].concat(g.u(b))};
M2a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=O2a(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof N)return c;a=P2a(b,a,h,e,c);return a instanceof N?a:[].concat(g.u(a.gg),[a.Tv])};
R2a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=O2a(a,b,c,e,f,l,m,n,p,q,r);if(b instanceof N)return b;a=Q2a(a,c,f,h,d,l.fd,b);return a instanceof N?a:a.gg.concat(a.Tv)};
O2a=function(a,b,c,d,e,f,h,l,m,n,p){var q=M0(d);return q instanceof b0?new N(q):n.F.V().experiments.ob("html5_refactor_in_player_slot_generation")?function(r){var v=new lN(0,[q.uo]);r=S2a(b,q.Hn,c,N0(q.playerVars,q.Gz,f,m,v),q.uo,e,v,h(r),l.get(q.Hn.externalVideoId));v=[];if(q.Hn.playerOverlay.instreamAdPlayerOverlayRenderer){var x=K2a(r);if(!x)return GD("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,r),{layout:r,gg:[]};v=[T2a(a,x.contentCpn,
x.vp,function(B){return O0(b,B.slotId,"core",x,c_(p,B))},x.inPlayerSlotId)].concat(g.u(v));
if(x.instreamAdPlayerUnderlayRenderer&&U2a(n)){var z=x.instreamAdPlayerUnderlayRenderer;v=[V2a(a,x.contentCpn,x.vp,function(B){return W2a(b,B.slotId,z,x.adPlacementConfig,x.vp,c_(p,B))})].concat(g.u(v))}}return{layout:r,
gg:v}}:function(r){var v=new lN(0,[q.uo]);
return{layout:S2a(b,q.Hn,c,N0(q.playerVars,q.Gz,f,m,v),q.uo,e,v,h(r),l.get(q.Hn.externalVideoId)),gg:[]}}};
M0=function(a){if(!a.playerVars)return new b0("No playerVars available in InstreamVideoAdRenderer.");var b;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(b=a.playerOverlay)?void 0:b.instreamAdPlayerOverlayRenderer)||null==a.pings||null==a.externalVideoId)return new b0("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});b=qy(a.playerVars);var c=Number(b.length_seconds);isNaN(c)&&(c=0,GD("Expected valid length seconds in player vars but got NaN"));
return{Hn:a,playerVars:b,Gz:a.playerVars,uo:c}};
N0=function(a,b,c,d,e){a.iv_load_policy=d;b=qy(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){GD(f)}c.Ki&&(a.ctrl=c.Ki);c.qj&&(a.ytr=c.qj);c.Kp&&(a.ytrcc=c.Kp);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.ek&&(a.vss_credentials_token_type=c.ek),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.u&&(a.slot_pos=e.j);a.autoplay="1";return a};
X2a=function(a){var b=new Map;a=g.t(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};
Z2a=function(a,b,c,d,e,f,h,l,m,n){for(var p=[],q=g.t(a),r=q.next();!r.done;r=q.next())if(r=r.value,!n2a(r)){var v=J0(r.slotEntryTrigger,d);if(v instanceof N)return v;for(var x=[],z=g.t(r.slotFulfillmentTriggers),B=z.next();!B.done;B=z.next()){B=J0(B.value,d);if(B instanceof N)return B;x.push(B)}z=[];var F=g.t(r.slotExpirationTriggers);for(B=F.next();!B.done;B=F.next()){B=J0(B.value,d);if(B instanceof N)return B;z.push(B)}B=[];c.fd&&B.push(new $_({}));var G=void 0;F={slotId:r.adSlotMetadata.slotId,
slotType:r.adSlotMetadata.slotType,slotPhysicalPosition:null!=(G=r.adSlotMetadata.slotPhysicalPosition)?G:1,bb:"core",slotEntryTrigger:v,slotFulfillmentTriggers:x,slotExpirationTriggers:z};v=g.K(r.fulfillmentContent.fulfilledLayout,m2a);if(!v||!x0(v))return new N("Invalid fulfilled layout");v=Y2a(F,v,b,c,d,e,f,h,l,m,n,a);if(v instanceof N)return v;r=Object.assign({},F,{Ba:new YZ(B),fulfilledLayout:v.layout,adSlotLoggingData:r.adSlotMetadata.adSlotLoggingData});p.push.apply(p,g.u(v.gg));p.push(r)}return p};
Y2a=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=$2a(b,e);if(r instanceof N)return r;if(g.K(b.renderingContent,FP)){d=a3a([b],d,l);if(d instanceof N)return d;if(1!==d.length)return new N("Only expected one media layout.");a=b3a(a,b,r,d[0],void 0,"core",c,e,f,h,m,q);return a instanceof N?a:{layout:a,gg:[]}}var v=g.K(b.renderingContent,k2a);if(v){if(!t0(b.adLayoutMetadata))return new N("Invalid ad layout metadata");if(!l2a(v))return new N("Invalid sequential layout");v=v.sequentialLayouts.map(function(x){return x.playerBytesAdLayoutRenderer});
a=c3a(a,b.adLayoutMetadata,r,v,c,e,d,l,f,h,m,n,p,q);return a instanceof N?a:{layout:a.t2,gg:a.gg}}return new N("Not able to convert a sequential layout")};
c3a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v){var x=new x_({current:null}),z=a3a(d,h,l);if(z instanceof N)return z;h=[];l=[];for(var B=void 0,F=0;F<d.length;F++){var G=d[F];if(g.K(G.renderingContent,FP)){B=b3a(a,G,d3a,z[F],P0(q)&&Q0(q)?z[F+1]:void 0,"adapter",e,f,m,n,p,v);if(B instanceof N)return B;h.push(B);B=z[F]}else if(g.K(G.renderingContent,HP)){var D=a,L=n;if(x0(G)){var P=g.K(G.renderingContent,HP);if(P&&void 0!==P.playerVars){var T={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,
bb:"adapter"};P=qy(P.playerVars);P.autoplay="1";G=Object.assign({},T,d3a,{renderingContent:G.renderingContent,Ba:new YZ([new R_({}),new t_({kind:"AD_PLACEMENT_KIND_START"}),new G_({current:null}),new K_(P)]),Rb:new Map,Ac:c_(L,D)(T)})}else G=new N("Invalid ad intro renderer")}else G=new N("Invalid PlayerBytesAdLayoutRenderer");if(G instanceof N)return G;h.push(G)}else if(g.K(G.renderingContent,GP)){a:{D=G.adLayoutMetadata.layoutId;L=g.t(e);for(T=L.next();!T.done;T=L.next()){T=T.value;var fa=P=void 0,
V=(null==(P=T.renderer)?void 0:null==(fa=P.linearAdSequenceRenderer)?void 0:fa.linearAds)||[];P=g.t(V);for(fa=P.next();!fa.done;fa=P.next())if((fa=g.K(fa.value,GP))&&void 0!==fa.inPlayerSlotId&&void 0!==fa.inPlayerLayoutId&&void 0!==fa.associatedPlayerBytesLayoutId&&fa.associatedPlayerBytesLayoutId===D){D={xF:fa,adPlacementConfig:T.config.adPlacementConfig};break a}}D=new N("Not able to find associated InPlayer slot for endcap")}if(D instanceof N)return D;L=void 0;T=a;P=n;var Q=D.adPlacementConfig;
fa=B;if(x0(G)){var X=g.K(G.renderingContent,GP);X&&void 0!==X.durationMilliseconds?(V={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,bb:"adapter"},Q=[new X_(X.durationMilliseconds),new Z_({impressionCommands:void 0,abandonCommands:X.abandonCommands?[{commandExecutorCommand:X.abandonCommands}]:void 0,completeCommands:X.completionCommands}),new t_(Q)],fa&&(Q.push(new v_(fa.Ix.j-1)),Q.push(new P_(fa.Ix.j)),Q.push(new w_(null!=(L=fa.adPodSkipTarget)?L:-1))),G=Object.assign({},
V,d3a,{renderingContent:G.renderingContent,Ba:new YZ(Q),Rb:new Map,Ac:c_(P,T)(V)})):G=new N("Invalid endcap renderer")}else G=new N("Invalid PlayerBytesAdLayoutRenderer");if(G instanceof N)return G;h.push(G);G=e3a(G.layoutId,r,f,D,x,n);if(G instanceof N)return G;l.push(G)}}d={layoutId:b.layoutId,layoutType:b.layoutType,bb:"core"};return{t2:Object.assign({},d,c,{qw:h,Rb:new Map,Ba:new YZ([x]),Ac:c_(n,a)(d),adLayoutLoggingData:b.adLayoutLoggingData}),gg:l}};
b3a=function(a,b,c,d,e,f,h,l,m,n,p,q){if(!x0(b))return new N("Invalid PlayerBytesAdLayoutRenderer");var r=g.K(b.renderingContent,FP);(null==r?0:r.pings)?r=oN(r.pings):(r=g.K(b.renderingContent,GP),r=(null==r?0:r.skipPings)?new Map([["skip",r.skipPings]]):new Map);if(r instanceof N)return r;f={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,bb:f};var v=b.adLayoutMetadata.layoutId;b:{var x=g.t(h);for(h=x.next();!h.done;h=x.next()){h=h.value;var z=I2a(h.renderer)||[],B=
g.t(z);for(z=B.next();!z.done;z=B.next())if(z=z.value,z.associatedPlayerBytesLayoutId===v){z.associatedPlayerBytesLayoutId?(x=z.playerOverlay,x=void 0!==x&&void 0!==x.instreamAdPlayerOverlayRenderer&&void 0!==x.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&void 0!==x.instreamAdPlayerOverlayRenderer.inPlayerLayoutId):x=!1;h=x?{instreamVideoAdRenderer:z,adPlacementConfig:h.config.adPlacementConfig}:new N("Invalid InPlayer shim");break b}}h=new N("Not able to find associated InPlayer slot")}x=h;if(x instanceof
N)e=x;else if((h=g.K(b.renderingContent,FP))&&u0(h)){z=x.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;d=[new u_(d.Ix),new y_(h.externalVideoId),new z_(l),new A_(x.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer),new Z_({impressionCommands:h.impressionCommands,abandonCommands:h.onAbandonCommands,completeCommands:h.completeCommands}),new K_(d.dB),new G_({current:null}),new J_(d.m8.uo),new E_(z.inPlayerLayoutId),new F_(z.inPlayerSlotId),new P_(d.Ix.j),new a0(nN(h.pings)),
new t_(x.adPlacementConfig)];b:{q=g.t(q);for(l=q.next();!l.done;l=q.next())if(l=l.value,"SLOT_TYPE_PLAYER_UNDERLAY"===l.adSlotMetadata.slotType&&(x=g.K(l.fulfillmentContent.fulfilledLayout,o2a))&&(x=g.K(x.renderingContent,p2a))&&x.associatedPlayerBytesLayoutId===v){v=l;break b}v=void 0}v&&d.push(new w1a(v));e&&d.push(new L_(e.dB));h.adNextParams&&d.push(new p_(h.adNextParams));h.clickthroughEndpoint&&d.push(new q_(h.clickthroughEndpoint));h.legacyInfoCardVastExtension&&d.push(new Y_(h.legacyInfoCardVastExtension));
h.sodarExtensionData&&d.push(new M_(h.sodarExtensionData));(e=m.get(h.externalVideoId))&&d.push(new V_(e));e=new YZ(d)}else e=new N("Invalid vod media renderer");if(e instanceof N)return e;a=Object.assign({},f,c,{Rb:r,renderingContent:b.renderingContent,Ba:e,Ac:c_(n,a)(f),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData});b=g.K(b.renderingContent,FP);if(!b||!u0(b))return new N("Invalid meida renderer");p=J2a(p,b.externalVideoId);p.instreamVideoAdRenderer=b;p.tC="AD_PLACEMENT_KIND_START";
return a};
e3a=function(a,b,c,d,e,f){function h(n){return OD(b,n)}
var l=d.xF.inPlayerSlotId,m={layoutId:d.xF.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",bb:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:new A0(h,a),slotFulfillmentTriggers:[new C0(h,l)],slotExpirationTriggers:[new D0(h,l),new z0(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new B0(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],Rb:new Map,Ba:new YZ([new C_(d.xF),new t_(d.adPlacementConfig),
e]),Ac:c_(f,c)(m),adLayoutLoggingData:d.xF.adLayoutLoggingData});return Object.assign({},c,{Ba:new YZ([new T_(a)])})};
$2a=function(a,b){for(var c=[],d=g.t(a.layoutExitNormalTriggers||[]),e=d.next();!e.done;e=d.next()){e=J0(e.value,b);if(e instanceof N)return e;c.push(e)}d=[];var f=g.t(a.layoutExitSkipTriggers||[]);for(e=f.next();!e.done;e=f.next()){e=J0(e.value,b);if(e instanceof N)return e;d.push(e)}f=[];var h=g.t(a.layoutExitMuteTriggers||[]);for(e=h.next();!e.done;e=h.next()){e=J0(e.value,b);if(e instanceof N)return e;f.push(e)}h=[];a=g.t(a.layoutExitUserInputSubmittedTriggers||[]);for(e=a.next();!e.done;e=a.next()){e=
J0(e.value,b);if(e instanceof N)return e;h.push(e)}return{layoutExitNormalTriggers:c,layoutExitSkipTriggers:d,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Sc:[]}};
a3a=function(a,b,c){for(var d=[],e=g.t(a),f=e.next();!f.done;f=e.next())if(f=g.K(f.value.renderingContent,FP)){if(!u0(f))return new N("Invalid vod media renderer");d.push(f3a(f))}e=d.map(function(q){return q.uo});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.K(a[l].renderingContent,FP);if(m){var n=new lN(h,e),p=N0(d[h].playerVars,d[h].Gz,b,c,n);f[l]={Ix:n,adPodSkipTarget:m.adPodSkipTarget,m8:d[h],dB:p};h++}}return f};
f3a=function(a){var b=qy(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,GD("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,Gz:a.playerVars,uo:c}};
h3a=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.t(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.K(b,xN))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.K(b,wN))?void 0:d.surveyAdQuestionCommon);if(!g3a(e))return!1}return!0};
i3a=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length){var c,d=(null==(b=g.K(a.questions[0],xN))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.K(a.questions[0],wN))?void 0:c.surveyAdQuestionCommon);b=g3a(d)}else b=!1;else b=!1;return b};
g3a=function(a){if(!a)return!1;a=g.K(a.instreamAdPlayerOverlay,j3a);var b=g.K(null==a?void 0:a.skipOrPreviewRenderer,R0),c=g.K(null==a?void 0:a.adInfoRenderer,S0);return(g.K(null==a?void 0:a.skipOrPreviewRenderer,T0)||b)&&c?!0:!1};
k3a=function(a){var b=0;a=g.t(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.K(c,xN)||g.K(c,wN)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
l3a=function(a){var b,c,d,e,f=(null==(c=g.K(null==(b=a.questions)?void 0:b[0],xN))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.K(null==(d=a.questions)?void 0:d[0],wN))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.u((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.u((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,v,x,z,B,F,G,D,L,P,T,fa,V,Q,X;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(v=a.playbackCommands)?void 0:v.resumeCommands,skipCommands:null==(x=a.playbackCommands)?void 0:x.skipCommands,progressCommands:null==(z=a.playbackCommands)?void 0:z.progressCommands,z6a:null==
(B=a.playbackCommands)?void 0:B.clickthroughCommands,fullscreenCommands:null==(F=a.playbackCommands)?void 0:F.fullscreenCommands,activeViewViewableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewViewableCommands,activeViewMeasurableCommands:null==(D=a.playbackCommands)?void 0:D.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(L=a.playbackCommands)?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(P=a.playbackCommands)?
void 0:null==(T=P.activeViewTracking)?void 0:T.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(fa=a.playbackCommands)?void 0:null==(V=fa.activeViewTracking)?void 0:V.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(Q=a.playbackCommands)?void 0:Q.endFullscreenCommands,abandonCommands:null==(X=a.playbackCommands)?void 0:X.abandonCommands,completeCommands:b}};
o3a=function(a,b,c,d,e,f,h){return function(l,m){return m3a(a,m.slotId,l,f,function(n,p){n=h(n);return n3a(b,m.layoutId,p,e,n,"LAYOUT_TYPE_SURVEY",[new A1a(c),d],c.adLayoutLoggingData)})}};
r3a=function(a,b,c,d,e,f,h){if(!p3a(a))return new N("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[q3a(f,b,c,d,function(m){var n=h(m);m=m.slotId;m=ND(e.eb.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",m);var p={layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",bb:"core"},q=new B0(e.j,d);return{layoutId:m,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Rb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new B1a(l)]),Ac:n(p)}})]};
p3a=function(a){a=g.K(null==a?void 0:a.additionalPlayerOverlay,s3a);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
v3a=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!i3a(a))return function(){return new N("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=k3a(h);return 0>=l?function(){return new N("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=t3a(m,c,d,function(q){var r=n(q),v=q.slotId;
q=l3a(h);v=ND(e.eb.get(),"LAYOUT_TYPE_SURVEY",v);var x={layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",bb:"core"},z=new B0(e.j,d),B=new H0(e.j,v),F=new I0(e.j,v),G=new u3a(e.j);return{layoutId:v,layoutType:"LAYOUT_TYPE_SURVEY",Rb:new Map,layoutExitNormalTriggers:[z,G],layoutExitSkipTriggers:[B],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[F],Sc:[],bb:"core",Ba:new YZ([new z1a(h),new t_(b),new W_(l/1E3),new Z_(q)]),Ac:r(x),adLayoutLoggingData:h.adLayoutLoggingData}});
m=r3a(a,c,p.slotId,d,e,m,n);return m instanceof N?m:[p].concat(g.u(m))}};
E3a=function(a,b,c,d,e,f){var h=[];try{var l=[];if(c.renderer.linearAdSequenceRenderer)var m=function(x){x=w3a(x.slotId,c,b,e(x),d,f);l=x.o9;return x.F2};
else if(c.renderer.instreamVideoAdRenderer)m=function(x){var z=x.slotId;x=e(x);var B=c.config.adPlacementConfig,F=x3a(B),G=F.sT;F=F.vT;var D=c.renderer.instreamVideoAdRenderer,L;if(null==D?0:null==(L=D.playerOverlay)?0:L.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var P=y3a(D);L=Math.min(G+1E3*P.videoLengthSeconds,F);F=new lN(0,[P.videoLengthSeconds],L);var T=P.videoLengthSeconds,fa=P.playerVars,V=P.instreamAdPlayerOverlayRenderer,Q=P.adVideoId,
X=z3a(c),O=P.Rb;P=P.sS;var la=null==D?void 0:D.adLayoutLoggingData;D=null==D?void 0:D.sodarExtensionData;z=ND(b.eb.get(),"LAYOUT_TYPE_MEDIA",z);var qa={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",bb:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",Rb:O,layoutExitNormalTriggers:[new A3a(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new z_(d),new J_(T),new K_(fa),new N_(G),new O_(L),V&&new A_(V),new t_(B),new y_(Q),
new u_(F),new S_(X),D&&new M_(D),new G_({current:null}),new Q_({}),new a0(P)].filter(B3a)),Ac:x(qa),adLayoutLoggingData:la}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var n=C3a(a,d,c.adSlotLoggingData,m);h.push(n);for(var p=g.t(l),q=p.next();!q.done;q=p.next()){var r=q.value,v=r(a,e);if(v instanceof N)return v;h.push.apply(h,g.u(v))}}catch(x){return new N(x,{errorMessage:x.message,AdPlacementRenderer:c,numberOfSurveyRenderers:D3a(c)})}return h};
D3a=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.K(b,FP))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
w3a=function(a,b,c,d,e,f){var h=b.config.adPlacementConfig,l=x3a(h),m=l.sT,n=l.vT;l=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==l||!l.length)throw new TypeError("Expected linear ads");var p=[],q={ZX:m,aY:0,l9:p};l=l.map(function(v){return F3a(a,v,q,c,d,h,e,n)}).map(function(v,x){x=new lN(x,p,n);
return v(x)});
var r=l.map(function(v){return v.G2});
return{F2:G3a(c,a,m,r,h,z3a(b),d,n,f),o9:l.map(function(v){return v.n9})}};
F3a=function(a,b,c,d,e,f,h,l){var m=y3a(g.K(b,FP)),n=c.ZX,p=c.aY,q=Math.min(n+1E3*m.videoLengthSeconds,l);c.ZX=q;c.aY++;c.l9.push(m.videoLengthSeconds);var r,v,x=null==(r=g.K(b,FP))?void 0:null==(v=r.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===m.adVideoId&&null==x)throw new TypeError("Survey slate media has no survey overlay");return function(z){var B=m.playerVars;2<=z.u&&(B.slot_pos=z.j);B.autoplay="1";var F,G;B=m.videoLengthSeconds;var D=m.playerVars,L=m.Rb,P=m.sS,T=m.instreamAdPlayerOverlayRenderer,
fa=m.adVideoId,V=null==(F=g.K(b,FP))?void 0:F.adLayoutLoggingData;F=null==(G=g.K(b,FP))?void 0:G.sodarExtensionData;G=ND(d.eb.get(),"LAYOUT_TYPE_MEDIA",a);var Q={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};z={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Rb:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"adapter",Ba:new YZ([new z_(h),new J_(B),new K_(D),new N_(n),new O_(q),new P_(p),new G_({current:null}),
T&&new A_(T),new t_(f),new y_(fa),new u_(z),F&&new M_(F),x&&new H1a(x),new Q_({}),new a0(P)].filter(B3a)),Ac:e(Q),adLayoutLoggingData:V};B=v3a(g.K(b,FP),f,h,z.layoutId,d);return{G2:z,n9:B}}};
y3a=function(a){if(!a)throw new TypeError("Expected instream video ad renderer");if(!a.playerVars)throw new TypeError("Expected player vars in url encoded string");var b=qy(a.playerVars),c=Number(b.length_seconds);if(isNaN(c))throw new TypeError("Expected valid length seconds in player vars");var d=Number(a.trimmedMaxNonSkippableAdDurationMs);c=isNaN(d)?c:Math.min(c,d/1E3);d=a.playerOverlay||{};d=void 0===d.instreamAdPlayerOverlayRenderer?null:d.instreamAdPlayerOverlayRenderer;var e=b.video_id;e||
(e=(e=a.externalVideoId)?e:void 0);if(!e)throw new TypeError("Expected valid video id in IVAR");return{playerVars:b,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:d,adVideoId:e,Rb:a.pings?oN(a.pings):new Map,sS:nN(a.pings)}};
z3a=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
x3a=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{sT:b,vT:a}};
I3a=function(a,b,c,d,e,f,h){var l=c.pings;return l?[H3a(a,f,e,function(m){var n=m.slotId;m=h(m);var p=c.adLayoutLoggingData;n=ND(b.eb.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",n);var q={layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",bb:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Rb:oN(l),layoutExitNormalTriggers:[new z0(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new t_(d)]),
Ac:m(q),adLayoutLoggingData:p}})]:new N("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
K3a=function(a,b,c,d,e,f,h,l){a=J3a(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=ND(b.eb.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",bb:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Rb:q,layoutExitNormalTriggers:[new G0(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new E1a(e),new t_(c)]),Ac:m(p)}});
return a instanceof N?a:[a]};
P3a=function(a,b,c,d,e,f,h,l){a=L3a(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=ND(b.eb.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=M3a(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,N3a(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=ND(b.eb.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=M3a(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,N3a(b,n,p))):q.imageOverlayAdContentRenderer?(q=ND(b.eb.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=N3a(b,n,p),n.push(new O3a(b.j,q)),n=M3a(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new b0("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new b0("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof N?a:[a]};
S3a=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new N("Expected valid duration for AdActionInterstitialRenderer."):function(p){return Q3a(b,p.slotId,c,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 R3a(a,q,e,function(r,v){var x=r.slotId;r=h(r);x=ND(b.eb.get(),"LAYOUT_TYPE_ENDCAP",
x);return n3a(b,x,v,c,r,"LAYOUT_TYPE_ENDCAP",[new C_(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
T3a=function(a,b,c,d){if(!c.playerVars)return new N("No playerVars available in AdIntroRenderer.");var e=qy(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=ND(a.eb.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",bb:"adapter"};return{Wj:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Rb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"adapter",Ba:new YZ([new R_({}),
new t_(b),new G_({current:null}),new K_(e)]),Ac:f(l)},Cl:[new F0(a.j,h,["error"])],Bj:[],Yx:[],Xx:[]}}};
V3a=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=k3a(e);if(!h3a(e,n))return new N("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new N("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=o3a(a,b,e,f,c,d,h);return q instanceof N?q:function(r){return U3a(b,r.slotId,c,p,l3a(e),h(r),q,l,m)}};
W3a=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.K(a.ctaButton,g.mM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.K(a.backgroundImage,U0)&&(null==(b=g.K(a.backgroundImage,U0))?0:b.landscape)?!0:!1};
Y3a=function(a,b,c,d,e,f,h,l){function m(q){return R3a(a,q,d,n)}
function n(q,r){var v=q.slotId;q=h(q);v=ND(b.eb.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",v);return n3a(b,v,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new y1a(e),f],e.adLayoutLoggingData)}
if(!W3a(e))return new N("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands},v=h(q);q=X3a(b,q.slotId,c,p,r,new Map,v,m);r=new E_(q.lH);v=new v_(l);return{Wj:{layoutId:q.layoutId,layoutType:q.layoutType,Rb:q.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],
Sc:[],bb:q.bb,Ba:new YZ([].concat(g.u(q.Vx),[r,v])),Ac:q.Ac,adLayoutLoggingData:q.adLayoutLoggingData},Cl:[],Bj:q.layoutExitMuteTriggers,Yx:q.layoutExitUserInputSubmittedTriggers,Xx:q.Sc,Cg:q.Cg}}};
$3a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,z){a=MD(a,"SLOT_TYPE_PLAYER_BYTES");d=L2a(b,h,d,e,a,n,p);if(d instanceof N)return d;var B;h=null==(B=ZZ(d.Ba,"metadata_type_fulfilled_layout"))?void 0:B.layoutId;if(!h)return new N("Invalid adNotify layout");b=Z3a(h,b,c,e,f,m,l,n,q,r,v,x,z);return b instanceof N?b:[d].concat(g.u(b))};
Z3a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=a4a(b,c,d,f,h,l,m,n,p,q,r);b4a(f)?(d=c4a(b,a),a=MD(b.eb.get(),"SLOT_TYPE_IN_PLAYER"),f=ND(b.eb.get(),"LAYOUT_TYPE_SURVEY",a),l=d4a(b,d,l),b=[].concat(g.u(l.slotExpirationTriggers),[new E0(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,bb:l.bb},{slotId:a,layoutId:f}),e=a instanceof N?a:{Tv:Object.assign({},
l,{slotExpirationTriggers:b,Ba:new YZ([new T_(a.layout)]),adSlotLoggingData:e}),gg:a.gg}):e=P2a(b,a,l,e,c);return e instanceof N?e:[].concat(g.u(e.gg),[e.Tv])};
g4a=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=a4a(a,b,c,e,f,h,m,n,p,q,r);b4a(e)?(e=e4a(a,c,h,l),e instanceof N?d=e:(l=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER"),m=ND(a.eb.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.u(e.slotExpirationTriggers),[new E0(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,bb:e.bb,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),l instanceof N?d=l:(a=f4a(a,
c,l.yT,e.slotEntryTrigger),d=a instanceof N?a:{Tv:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:a,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h,bb:e.bb,Ba:new YZ([new T_(l.layout)]),adSlotLoggingData:d},gg:l.gg}))):d=Q2a(a,c,h,l,d,m.fd,b);return d instanceof N?d:d.gg.concat(d.Tv)};
b4a=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(g.K(b.value,v0))return!0;return!1};
a4a=function(a,b,c,d,e,f,h,l,m,n,p){return function(q,r){if(P0(p)&&Q0(p))a:{var v=h4a(d);if(v instanceof N)r=v;else{for(var x=0,z=[],B=[],F=[],G=[],D=[],L=[],P=new H_({current:null}),T=new x_({current:null}),fa=!1,V=[],Q=0,X=[],O=0;O<d.length;O++){var la=d[O],qa=g.K(la,FP);if(qa){qa=M0(qa);if(qa instanceof b0){r=new N(qa);break a}var Ma=new lN(Q,v),Qa=N0(qa.playerVars,qa.Gz,h,n,Ma);Q++;X[O]={renderer:la,data:qa,Ix:Ma,dB:Qa}}}Q=-1;for(v=0;v<d.length;v++)if(O=d[v],la=g.K(O,HP)){O=T3a(b,c,la,l);if(O instanceof
N){r=O;break a}O=O(q);z.push(O.Wj);B=[].concat(g.u(O.Cl),g.u(B));F=[].concat(g.u(O.Bj),g.u(F));O.Cg&&(V=[O.Cg].concat(g.u(V)))}else if(g.K(O,FP))la=X[v],Q=la.data,O=la.Ix,la=la.dB,qa=X[v+1],Ma=void 0,qa&&(Ma=qa.dB),O=i4a(b,Q.Hn,c,la,Q.uo,f,O,l(q),T,m.get(Q.Hn.externalVideoId),Ma),x++,z.push(O.Wj),B=[].concat(g.u(O.Cl),g.u(B)),F=[].concat(g.u(O.Bj),g.u(F)),fa||(L.push(T),fa=!0),Q=(Q=Q.Hn.adPodSkipTarget)&&0<Q?Q:-1;else if(la=g.K(O,GP)){O=S3a(a,b,c,la,f,x,l,T,Q);if(O instanceof N){r=O;break a}O=O(q);
z.push(O.Wj);B=[].concat(g.u(O.Cl),g.u(B));F=[].concat(g.u(O.Bj),g.u(F));O.Cg&&(V=[O.Cg].concat(g.u(V)))}else if(la=g.K(O,v0)){if(void 0===r){r=new N("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:la});break a}O=V3a(a,b,c,f,la,P,l,r,x,V0(p,"supports_multi_step_on_desktop"));if(O instanceof N){r=O;break a}O=O(q);z.push(O.Wj);O.Cg&&V.push(O.Cg);B=[].concat(g.u(O.Cl),g.u(B));F=[].concat(g.u(O.Bj),g.u(F));G=[].concat(g.u(O.Yx),g.u(G));D=[].concat(g.u(O.Xx),
g.u(D));L=[P].concat(g.u(L))}else if(O=g.K(O,w0)){O=Y3a(a,b,c,f,O,P,l,x);if(O instanceof N){r=O;break a}O=O(q);z.push(O.Wj);O.Cg&&V.push(O.Cg);F=[].concat(g.u(O.Bj),g.u(F))}else{r=new N("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={qw:z,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:G,Sc:D,layoutExitMuteTriggers:F,Vx:L,gg:V}}}else a:if(x=h4a(d),x instanceof N)r=x;else{z=0;B=[];F=[];G=[];D=[];L=[];P=[];T=new H_({current:null});fa=new x_({current:null});V=!1;X=
[];Q=-1;v=g.t(d);for(O=v.next();!O.done;O=v.next())if(O=O.value,g.K(O,HP)){O=T3a(b,c,g.K(O,HP),l);if(O instanceof N){r=O;break a}O=O(q);B.push(O.Wj);F=[].concat(g.u(O.Cl),g.u(F));G=[].concat(g.u(O.Bj),g.u(G));O.Cg&&(X=[O.Cg].concat(g.u(X)))}else if(g.K(O,FP)){Q=M0(g.K(O,FP));if(Q instanceof b0){r=new N(Q);break a}O=new lN(z,x);O=i4a(b,Q.Hn,c,N0(Q.playerVars,Q.Gz,h,n,O),Q.uo,f,O,l(q),fa,m.get(Q.Hn.externalVideoId));z++;B.push(O.Wj);F=[].concat(g.u(O.Cl),g.u(F));G=[].concat(g.u(O.Bj),g.u(G));V||(P.push(fa),
V=!0);Q=(Q=Q.Hn.adPodSkipTarget)&&0<Q?Q:-1}else if(g.K(O,GP)){O=S3a(a,b,c,g.K(O,GP),f,z,l,fa,Q);if(O instanceof N){r=O;break a}O=O(q);B.push(O.Wj);F=[].concat(g.u(O.Cl),g.u(F));G=[].concat(g.u(O.Bj),g.u(G));O.Cg&&(X=[O.Cg].concat(g.u(X)))}else if(g.K(O,v0)){if(void 0===r){r=new N("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.K(O,v0)});break a}O=V3a(a,b,c,f,g.K(O,v0),T,l,r,z,V0(p,"supports_multi_step_on_desktop"));if(O instanceof N){r=O;break a}O=
O(q);B.push(O.Wj);O.Cg&&X.push(O.Cg);F=[].concat(g.u(O.Cl),g.u(F));G=[].concat(g.u(O.Bj),g.u(G));D=[].concat(g.u(O.Yx),g.u(D));L=[].concat(g.u(O.Xx),g.u(L));P=[T].concat(g.u(P))}else if(g.K(O,w0)){O=Y3a(a,b,c,f,g.K(O,w0),T,l,z);if(O instanceof N){r=O;break a}O=O(q);B.push(O.Wj);O.Cg&&X.push(O.Cg);G=[].concat(g.u(O.Bj),g.u(G))}else{r=new N("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}r={qw:B,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:D,Sc:L,layoutExitMuteTriggers:G,
Vx:P,gg:X}}if(r instanceof N)return r;var ua;L=q.slotId;x=r.qw;z=r.layoutExitSkipTriggers;B=r.layoutExitMuteTriggers;F=r.layoutExitUserInputSubmittedTriggers;G=r.Vx;q=l(q);D=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";L=e?e.layoutId:ND(b.eb.get(),D,L);P={layoutId:L,layoutType:D,bb:"core"};return{layout:{layoutId:L,layoutType:D,Rb:new Map,layoutExitNormalTriggers:[new G0(b.j,L)],layoutExitSkipTriggers:z,layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:F,Sc:[],bb:"core",Ba:new YZ([new I_(x)].concat(g.u(G))),
Ac:q(P)},gg:r.gg,yT:null==(ua=r.qw[0])?void 0:ua.layoutId}}};
h4a=function(a){var b=[];a=g.t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,g.K(c,FP)){c=M0(g.K(c,FP));if(c instanceof b0)return new N(c);b.push(c.uo)}return b};
k4a=function(a,b,c,d,e,f,h,l){if(!h3a(c,void 0===l?!1:l))return new N("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=k3a(c);if(0>=m)return new N("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new H_({current:null}),p=o3a(a,b,c,n,d,f,h);return j4a(a,d,f,m,e,function(q,r){var v=q.slotId,x=l3a(c);q=h(q);v=ND(b.eb.get(),"LAYOUT_TYPE_MEDIA_BREAK",v);var z={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",
bb:"core"},B=p(v,r);ZZ(B.Ba,"metadata_type_fulfilled_layout")||GD("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");x=[new t_(d),new X_(m),new Z_(x),n];return{M4:{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rb:new Map,layoutExitNormalTriggers:[new G0(b.j,v)],layoutExitSkipTriggers:[new H0(b.j,r.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new I0(b.j,r.layoutId)],Sc:[],bb:"core",Ba:new YZ(x),Ac:q(z)},
f4:B}})};
l4a=function(a){if(!u2a(a))return!1;var b=g.K(a.adVideoStart,EP);return b?g.K(a.linearAd,FP)&&gO(b)?!0:(GD("Invalid Sandwich with notify"),!1):!1};
m4a=function(a){if(null==a.linearAds)return!1;a=g.K(a.adStart,EP);return a?gO(a)?!0:(GD("Invalid LASR with notify"),!1):!1};
n4a=function(a){if(!t2a(a))return!1;a=g.K(a.adStart,EP);return a?gO(a)?!0:(GD("Invalid LASR with notify"),!1):!1};
W0=function(a,b,c,d,e,f,h,l){this.eb=a;this.Ib=b;this.Ab=c;this.Ca=d;this.Jb=e;this.j=f;this.Dj=h;this.loadPolicy=void 0===l?1:l};
jra=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length)return n;b=b.filter(j2a);var p=c.filter(s2a),q=d.filter(j2a),r=new Map,v=X2a(b);if(c=c.some(function(O){var la;return"SLOT_TYPE_PLAYER_BYTES"===(null==O?void 0:null==(la=O.adSlotMetadata)?void 0:la.slotType)}))p=Z2a(p,b,l,e,v,a.Jb.get(),a.loadPolicy,r,a.Ca.get(),a.eb.get()),p instanceof N?GD(p,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.u(p));
p=g.t(b);for(var x=p.next();!x.done;x=p.next()){x=x.value;var z=o4a(a,r,x,e,f,h,c,l,v,m);z instanceof N?GD(z,void 0,void 0,{renderer:x.renderer,config:x.config.adPlacementConfig,kind:x.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.u(z))}p4a(a.Ca.get())||(f=q4a(a,q,e,l,v,r),n.push.apply(n,g.u(f)));if(null===a.j||h&&!l.iT){var B,F,G;a=l.fd&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(B=b[0].config)?void 0:null==(F=B.adPlacementConfig)?void 0:F.kind)&&
(null==(G=b[0].renderer)?void 0:G.adBreakServiceRenderer);if(!n.length&&!a){var D,L,P,T;GD("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(D=b[0])?void 0:null==(L=D.config)?void 0:null==(P=L.adPlacementConfig)?void 0:P.kind,renderer:null==(T=b[0])?void 0:T.renderer})}return n}B=d.filter(j2a);n.push.apply(n,g.u(H2a(r,B,a.Ib.get(),a.j,e,c)));if(!n.length){var fa,V,Q,X;GD("Expected slots parsed from AdPlacementRenderers",
void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(fa=b[0])?void 0:null==(V=fa.config)?void 0:null==(Q=V.adPlacementConfig)?void 0:Q.kind,renderer:null==(X=b[0])?void 0:X.renderer})}return n};
q4a=function(a,b,c,d,e,f){function h(r){return c_(a.Jb.get(),r)}
var l=[];b=g.t(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&&l4a(p)?(GD("Found AdNotify with SandwichedLinearAdRenderer"),q=g.K(p.adVideoStart,EP),p=g.K(p.linearAd,FP),K0(f,n,m.config.adPlacementConfig.kind),n=void 0,q=M2a(null==(n=q)?void 0:n.layout.layoutId,a.Ib.get(),a.Ab.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ca.get(),a.Jb.get()),q instanceof N?GD(q):l.push.apply(l,g.u(q))):
q&&(!q.adLayoutMetadata&&m4a(q)||q.adLayoutMetadata&&n4a(q))&&(GD("Found AdNotify with LinearAdSequenceRenderer"),K0(f,n,m.config.adPlacementConfig.kind),n=void 0,p=Z3a(null==(n=g.K(q.adStart,EP))?void 0:n.layout.layoutId,a.Ib.get(),a.Ab.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,t0(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ca.get()),p instanceof N?GD(p):l.push.apply(l,g.u(p)))}return l};
o4a=function(a,b,c,d,e,f,h,l,m,n){function p(B){return c_(a.Jb.get(),B)}
var q=c.renderer,r=c.config.adPlacementConfig,v=r.kind,x=c.adSlotLoggingData,z=l.iT&&"AD_PLACEMENT_KIND_START"===v;z=f&&!z;if(null!=q.adsEngagementPanelRenderer)return L0(b,c.elementId,v,q.adsEngagementPanelRenderer.isContentVideoEngagementPanel,q.adsEngagementPanelRenderer.adVideoId,q.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,r,x,function(B,F,G,D){var L=a.Ab.get(),P=q.adsEngagementPanelRenderer,T=c_(a.Jb.get(),B);return X0(L,B.slotId,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new r1a(P),F,G,P.impressionPings,T,q.adsEngagementPanelRenderer.adLayoutLoggingData,D)}),[];
if(null!=q.actionCompanionAdRenderer){if(q.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return D2a(a.Ib.get(),a.j,a.Ab.get(),q.actionCompanionAdRenderer,r,x,d,p);L0(b,c.elementId,v,q.actionCompanionAdRenderer.isContentVideoCompanion,q.actionCompanionAdRenderer.adVideoId,q.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,r,x,function(B,F,G,D){var L=a.Ab.get(),P=q.actionCompanionAdRenderer,T=c_(a.Jb.get(),B);return X0(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new o_(P),
F,G,P.impressionPings,T,q.actionCompanionAdRenderer.adLayoutLoggingData,D)})}else if(q.imageCompanionAdRenderer)L0(b,c.elementId,v,q.imageCompanionAdRenderer.isContentVideoCompanion,q.imageCompanionAdRenderer.adVideoId,q.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,r,x,function(B,F,G,D){var L=a.Ab.get(),P=q.imageCompanionAdRenderer,T=c_(a.Jb.get(),B);
return X0(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new t1a(P),F,G,P.impressionPings,T,q.imageCompanionAdRenderer.adLayoutLoggingData,D)});
else if(q.shoppingCompanionCarouselRenderer)L0(b,c.elementId,v,q.shoppingCompanionCarouselRenderer.isContentVideoCompanion,q.shoppingCompanionCarouselRenderer.adVideoId,q.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,r,x,function(B,F,G,D){var L=a.Ab.get(),P=q.shoppingCompanionCarouselRenderer,T=c_(a.Jb.get(),B);return X0(L,B.slotId,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new u1a(P),F,G,P.impressionPings,T,q.shoppingCompanionCarouselRenderer.adLayoutLoggingData,D)});
else if(q.adBreakServiceRenderer){if(!z2a(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return y2a(a.Ib.get(),r,x,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return w2a(a.Ib.get(),r,x,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Dj)return new N("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.fd||GD("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:r,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.fd),clientPlaybackNonce:l.clientPlaybackNonce});r4a(a.Dj,{adPlacementRenderer:c,contentCpn:d,bT:e})}else{if(q.clientForecastingAdRenderer)return K3a(a.Ib.get(),a.Ab.get(),r,x,q.clientForecastingAdRenderer,d,e,p);if(q.invideoOverlayAdRenderer)return P3a(a.Ib.get(),a.Ab.get(),r,x,q.invideoOverlayAdRenderer,d,e,p);if((q.linearAdSequenceRenderer||q.instreamVideoAdRenderer)&&z)return E3a(a.Ib.get(),a.Ab.get(),c,d,p,n);if(q.linearAdSequenceRenderer&&
!z){if(h&&!b4a(q.linearAdSequenceRenderer.linearAds))return[];K0(b,q,v);if(q.linearAdSequenceRenderer.adLayoutMetadata){if(!t2a(q.linearAdSequenceRenderer))return new N("Received invalid LinearAdSequenceRenderer.")}else if(null==q.linearAdSequenceRenderer.linearAds)return new N("Received invalid LinearAdSequenceRenderer.");if(g.K(q.linearAdSequenceRenderer.adStart,EP)){GD("Found AdNotify in LinearAdSequenceRenderer");b=g.K(q.linearAdSequenceRenderer.adStart,EP);if(!WBa(b))return new N("Invalid AdMessageRenderer.");
c=q.linearAdSequenceRenderer.linearAds;return $3a(a.eb.get(),a.Ib.get(),a.Ab.get(),a.Jb.get(),r,x,b,t0(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,p,m,a.loadPolicy,a.Ca.get())}return g4a(a.Ib.get(),a.Ab.get(),r,x,q.linearAdSequenceRenderer.linearAds,t0(q.linearAdSequenceRenderer.adLayoutMetadata)?q.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,p,m,a.loadPolicy,a.Ca.get())}if(!q.remoteSlotsRenderer||f)if(!q.instreamVideoAdRenderer||
z||h){if(q.instreamSurveyAdRenderer)return k4a(a.Ib.get(),a.Ab.get(),q.instreamSurveyAdRenderer,r,x,d,p,V0(a.Ca.get(),"supports_multi_step_on_desktop"));if(null!=q.sandwichedLinearAdRenderer)return u2a(q.sandwichedLinearAdRenderer)?g.K(q.sandwichedLinearAdRenderer.adVideoStart,EP)?(GD("Found AdNotify in SandwichedLinearAdRenderer"),b=g.K(q.sandwichedLinearAdRenderer.adVideoStart,EP),WBa(b)?(c=g.K(q.sandwichedLinearAdRenderer.linearAd,FP))?N2a(b,c,r,a.eb.get(),a.Ib.get(),a.Ab.get(),a.Jb.get(),x,d,
e,l,p,m,a.loadPolicy,a.Ca.get()):new N("Missing IVAR from Sandwich"):new N("Invalid AdMessageRenderer.")):g4a(a.Ib.get(),a.Ab.get(),r,x,[q.sandwichedLinearAdRenderer.adVideoStart,q.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,p,m,a.loadPolicy,a.Ca.get()):new N("Received invalid SandwichedLinearAdRenderer.");if(null!=q.videoAdTrackingRenderer)return I3a(a.Ib.get(),a.Ab.get(),q.videoAdTrackingRenderer,r,x,d,p)}else return K0(b,q,v),R2a(a.Ib.get(),a.Ab.get(),r,x,q.instreamVideoAdRenderer,d,e,l,
p,m,a.loadPolicy,a.Ca.get(),a.Jb.get())}return[]};
Y0=function(a){g.C.call(this);this.j=a};
zC=function(a,b,c,d){a.j().lj(b,d);c=c();a=a.j();a.Qb.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.t(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;oO(d.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);oO(d.Qb,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.Tb(c.slotId))throw new N("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(f0(e,c))throw new N("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.rf.Tp.has(c.slotType))throw new N("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.rf.Wq.has(c.slotType))throw new N("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e2a(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);e2a(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);e2a(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=m0(f,h);if(f0(f,c))throw new N("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new $1a(c));f.j.set(h,l)}catch(V){V instanceof N&&V.lk?(c0(d.Qb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",V.lk,c),GD(V,c,void 0,void 0,V.pu)):(c0(d.Qb,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),GD(V,c));break a}f0(d.j,c).I=!0;try{var m=d.j,n=f0(m,c),p=c.slotEntryTrigger,q=m.rf.al.get(p.triggerType);q&&(q.Zl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.ya.set(p.triggerId,q));for(var r=g.t(c.slotFulfillmentTriggers),v=r.next();!v.done;v=r.next()){var x=v.value,z=m.rf.al.get(x.triggerType);z&&(z.Zl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",x,c,null),n.Z.set(x.triggerId,z))}for(var B=g.t(c.slotExpirationTriggers),F=B.next();!F.done;F=B.next()){var G=F.value,D=m.rf.al.get(G.triggerType);D&&(D.Zl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
G,c,null),n.ea.set(G.triggerId,D))}var L=m.rf.Tp.get(c.slotType).get().wf(m.B,c);n.J=L;var P=m.rf.Wq.get(c.slotType).get().wf(m.D,c);P.init();n.u=P}catch(V){V instanceof N&&V.lk?(c0(d.Qb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",V.lk,c),GD(V,c,void 0,void 0,V.pu)):(c0(d.Qb,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),GD(V,c));d0(d,c,!0);break a}oO(d.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Ii(c);for(var T=g.t(d.Fd),fa=T.next();!fa.done;fa=
T.next())fa.value.Ii(c);L1a(d,c)}};
Z0=function(a,b,c,d){this.er=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
$0=function(a,b,c,d){g.C.call(this);var e=this;this.ac=a;this.Ib=b;this.wc=c;this.j=new Map;d.get().addListener(this);g.bb(this,function(){d.isDisposed()||d.get().removeListener(e)})};
hra=function(a,b){var c=0x8000000000000;for(var d=0,e=g.t(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof Z0?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):GD("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});c=new iq(c,d);d="throttledadcuerange:"+b.slotId;a.j.set(d,b);a.wc.get().addCueRange(d,c.start,c.end,!1,a)};
a1=function(){g.C.apply(this,arguments);this.Jj=!0;this.Vk=new Map;this.j=new Map};
s4a=function(a,b){a=g.t(a.Vk.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
t4a=function(a,b){a=g.t(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.t(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}GD("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Tb(b)),layoutId:b})};
A3a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
u4a=function(a,b){this.j=b;this.slotType="SLOT_TYPE_PLAYER_BYTES";this.layoutType="LAYOUT_TYPE_MEDIA";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=a(this.triggerType)};
v4a=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)};
w4a=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)};
u3a=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
x4a=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)};
b1=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
y4a=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)};
O3a=function(a,b){this.durationMs=45E3;this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=a(this.triggerType)};
z4a=function(a){var b=[new D_(a.vp),new A_(a.instreamAdPlayerOverlayRenderer),new C1a(a.xO),new t_(a.adPlacementConfig),new J_(a.videoLengthSeconds),new W_(a.MG)];a.qK&&b.push(new x_(a.qK));return b};
A4a=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:ND(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",bb:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Rb:new Map,layoutExitNormalTriggers:[new B0(function(l){return OD(f,l)},c.vp)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:b,Ba:d,Ac:e(h),adLayoutLoggingData:c.instreamAdPlayerOverlayRenderer.adLayoutLoggingData}};
c1=function(a){var b=this;this.eb=a;this.j=function(c){return OD(b.eb.get(),c)}};
W2a=function(a,b,c,d,e,f){c=new YZ([new B_(c),new t_(d)]);b=ND(a.eb.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Rb:new Map,layoutExitNormalTriggers:[new B0(function(h){return OD(a.eb.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:c,Ac:f(d),adLayoutLoggingData:void 0}};
O0=function(a,b,c,d,e){var f=z4a(d);return A4a(b,c,d,new YZ(f),e,a.eb.get())};
B4a=function(a,b,c,d,e){var f=z4a(d);f.push(new r_(d.H1));f.push(new s_(d.J1));return A4a(b,c,d,new YZ(f),e,a.eb.get())};
X0=function(a,b,c,d,e,f,h,l,m,n){b=ND(a.eb.get(),c,b);var p={layoutId:b,layoutType:c,bb:"core"},q=new Map;h&&q.set("impression",h);h=[new u4a(a.j,e)];n&&h.push(new F0(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Rb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([d,new t_(f),new D_(e)]),Ac:l(p),adLayoutLoggingData:m}};
N3a=function(a,b,c){var d=[];d.push(new v4a(a.j,c));b&&d.push(b);return d};
M3a=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,bb:"core"};return{layoutId:b,layoutType:c,Rb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new E0(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new s1a(d),new t_(e)]),Ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
n3a=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,bb:"core"};return{layoutId:b,layoutType:f,Rb:new Map,layoutExitNormalTriggers:[new B0(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new t_(d)].concat(g.u(h))),Ac:e(m),adLayoutLoggingData:l}};
Q3a=function(a,b,c,d,e,f,h,l,m,n,p,q){a=X3a(a,b,c,d,e,f,h,l,p,q);b=a.Vx;c=new E_(a.lH);d=a.layoutExitSkipTriggers;0<m&&(b.push(c),b.push(new w_(m)),d=[]);b.push(new v_(n));return{Wj:{layoutId:a.layoutId,layoutType:a.layoutType,Rb:a.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:a.bb,Ba:new YZ(b),Ac:a.Ac,adLayoutLoggingData:a.adLayoutLoggingData},Cl:d,Bj:a.layoutExitMuteTriggers,Yx:a.layoutExitUserInputSubmittedTriggers,
Xx:a.Sc,Cg:a.Cg}};
U3a=function(a,b,c,d,e,f,h,l,m){b=X3a(a,b,c,d,e,new Map,f,function(n){return h(n,l)});
a=new I0(a.j,b.lH);c=new E_(b.lH);m=new v_(m);return{Wj:{layoutId:b.layoutId,layoutType:b.layoutType,Rb:b.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:b.bb,Ba:new YZ([].concat(g.u(b.Vx),[c,m])),Ac:b.Ac,adLayoutLoggingData:b.adLayoutLoggingData},Cl:b.layoutExitSkipTriggers,Bj:b.layoutExitMuteTriggers,Yx:[].concat(g.u(b.layoutExitUserInputSubmittedTriggers),[a]),Xx:b.Sc,Cg:b.Cg}};
X3a=function(a,b,c,d,e,f,h,l,m,n){b=ND(a.eb.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);var p={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",bb:"adapter"};l=l(b);var q=ZZ(l.Ba,"metadata_type_fulfilled_layout");q||GD("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");q=q?q.layoutId:"";c=[new t_(c),new X_(d),new Z_(e)];n&&c.push(new P_(n));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Rb:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new H0(a.j,
q)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"adapter",Vx:c,Ac:h(p),adLayoutLoggingData:m,Cg:l,lH:q}};
S2a=function(a,b,c,d,e,f,h,l,m){a=C4a(a,"core",b,c,d,e,f,h,l,m);return{layoutId:a.layoutId,layoutType:a.layoutType,Rb:a.Rb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Sc:a.Sc,bb:a.bb,Ba:new YZ(a.XS),Ac:a.Ac,adLayoutLoggingData:a.adLayoutLoggingData}};
i4a=function(a,b,c,d,e,f,h,l,m,n,p){c=C4a(a,"adapter",b,c,d,e,f,h,l,n,p);d=c.layoutExitSkipTriggers;e=c.XS;b.adPodSkipTarget&&0<b.adPodSkipTarget&&(e.push(m),e.push(new w_(b.adPodSkipTarget)),d=[]);e.push(new v_(h.j));b.isCritical&&(d=[new F0(a.j,c.layoutId,["error"])].concat(g.u(d)));return{Wj:{layoutId:c.layoutId,layoutType:c.layoutType,Rb:c.Rb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:c.bb,Ba:new YZ(e),Ac:c.Ac,
adLayoutLoggingData:c.adLayoutLoggingData},Cl:d,Bj:c.layoutExitMuteTriggers,Yx:c.layoutExitUserInputSubmittedTriggers,Xx:c.Sc}};
C4a=function(a,b,c,d,e,f,h,l,m,n,p){var q=c.elementId,r={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",bb:b};d=[new t_(d),new u_(l),new y_(c.externalVideoId),new z_(h),new A_(c.playerOverlay.instreamAdPlayerOverlayRenderer),new Z_({impressionCommands:c.impressionCommands,abandonCommands:c.onAbandonCommands,completeCommands:c.completeCommands}),new K_(e),new G_({current:null}),new J_(f)];p&&d.push(new L_(p));(p=c.playerUnderlay)&&d.push(new B_(p));p=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER");e=(e=c.playerOverlay.instreamAdPlayerOverlayRenderer.elementId)?
e:ND(a.eb.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);d.push(new E_(e));d.push(new F_(p));d.push(new P_(l.j));c.adNextParams&&d.push(new p_(c.adNextParams));c.shrunkenPlayerBytesConfig&&d.push(new x1a(c.shrunkenPlayerBytesConfig));c.clickthroughEndpoint&&d.push(new q_(c.clickthroughEndpoint));c.legacyInfoCardVastExtension&&d.push(new Y_(c.legacyInfoCardVastExtension));c.sodarExtensionData&&d.push(new M_(c.sodarExtensionData));n&&d.push(new V_(n));d.push(new a0(nN(c.pings)));return{layoutId:q,
layoutType:"LAYOUT_TYPE_MEDIA",Rb:oN(c.pings),layoutExitNormalTriggers:[new G0(a.j,q)],layoutExitSkipTriggers:c.skipOffsetMilliseconds?[new H0(a.j,e)]:[],layoutExitMuteTriggers:[new H0(a.j,e)],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:b,XS:d,Ac:m(r),adLayoutLoggingData:c.adLayoutLoggingData}};
G3a=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return fO(p,[],["LAYOUT_TYPE_MEDIA"])})||GD("Unexpect subLayout type for DAI composite layout");
b=ND(a.eb.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",bb:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Rb:new Map,layoutExitNormalTriggers:[new A3a(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new N_(c),new O_(l),new I_(d),new t_(e),new S_(f),new Q_({}),new I1a(m)]),Ac:h(n)}};
B3a=function(a){return null!=a};
D4a=function(a){this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
E4a=function(a,b,c){this.er=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=a(this.triggerType)};
x2a=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
d1=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)};
F4a=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
e1=function(a,b,c,d,e){this.er=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)};
G4a=function(a,b,c){this.er=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
f1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
g1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
y0=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=a(this.triggerType)};
h1=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
i1=function(a,b,c){var d=this;this.eb=a;this.Ab=b;this.Ca=c;this.j=function(e){return OD(d.eb.get(),e)}};
v2a=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=MD(a.eb.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Rp&&d.Rp.start!==d.Cn.start&&l.push(new Z0(a.j,c,new iq(d.Rp.start,d.Cn.start),!1));l.push(new Z0(a.j,c,new iq(d.Cn.start,d.Cn.end),d.zD));d={getAdBreakUrl:b.getAdBreakUrl,HO:d.Cn.start,GO:d.Cn.end};b=new g1(a.j,h);f=[new U_(d)].concat(g.u(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new z0(a.j,
c),new D0(a.j,h),new f1(a.j,h)],bb:"core",Ba:new YZ(f),adSlotLoggingData:e}};
I4a=function(a,b,c){var d=[];c=g.t(c);for(var e=c.next();!e.done;e=c.next())d.push(H4a(a,b,e.value));return d};
H4a=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
m3a=function(a,b,c,d,e){return J4a(a,b,c,d,e)};
R3a=function(a,b,c,d){var e=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER");return J4a(a,e,b,c,d)};
J4a=function(a,b,c,d,e){var f=new A0(a.j,c),h=[new C0(a.j,b)];a=[new D0(a.j,b),new z0(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,bb:"core",Ba:new YZ([new T_(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
j4a=function(a,b,c,d,e,f){var h=MD(a.eb.get(),"SLOT_TYPE_PLAYER_BYTES"),l=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER"),m=ND(a.eb.get(),"LAYOUT_TYPE_SURVEY",l);d=j1(a,b,c,d);var n=[new C0(a.j,h)];c=[new D0(a.j,h),new z0(a.j,c),new E0(a.j,m)];if(d instanceof N)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.M4;l=l.f4;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f4a(a,b,f.layoutId,d),slotFulfillmentTriggers:n,slotExpirationTriggers:c,bb:"core",Ba:new YZ([new T_(f)]),adSlotLoggingData:e},l]};
T2a=function(a,b,c,d,e){e=e?e:MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER");c=new A0(a.j,c);var f=[new C0(a.j,e)];a=[new z0(a.j,b),new D0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ba:new YZ([new T_(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
V2a=function(a,b,c,d){var e=MD(a.eb.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new A0(a.j,c);var f=[new C0(a.j,e)];a=[new z0(a.j,b),new D0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ba:new YZ([new T_(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
L2a=function(a,b,c,d,e,f,h){var l=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER"),m=ND(a.eb.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=K4a(a,d,f,h,m);if(d instanceof N)return d;h=[new C0(a.j,l)];e=[new z0(a.j,f),new C0(a.j,e),new h1(a.j,e)];c=c_(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.Ab.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",bb:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Rb:new Map,layoutExitNormalTriggers:[new x4a(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new y4a(a.j,m,b.durationMs)],Sc:[new b1(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],bb:"core",Ba:new YZ([new G1a(b)]),Ac:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ba:new YZ([new T_(b)])}};
L3a=function(a,b,c,d,e,f){b=j1(a,b,c,d);if(b instanceof N)return b;var h=b instanceof Z0?new G4a(a.j,c,b.j):null;d=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER");var l=[new C0(a.j,d)];a=[new z0(a.j,c),new D0(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof b0?new N(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
bb:"core",Ba:new YZ([new T_(f)]),adSlotLoggingData:e}};
t3a=function(a,b,c,d){var e=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER");c=new A0(a.j,c);var f=[new C0(a.j,e)],h=[new D0(a.j,e),new z0(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new C0(a.j,e)],slotExpirationTriggers:[new z0(a.j,b),new D0(a.j,e)],bb:"core",Ba:new YZ([new T_(d(f))])}};
q3a=function(a,b,c,d,e){var f=MD(a.eb.get(),"SLOT_TYPE_IN_PLAYER");c=new d1(a.j,d,c);d=[new C0(a.j,f)];a=[new z0(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,bb:"core",Ba:new YZ([new T_(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
G2a=function(a,b,c,d,e,f){var h=MD(a.eb.get(),b);return L4a(a,h,b,new A0(a.j,d),[new z0(a.j,c),new D0(a.j,h),new F0(a.j,d,["error"])],e,f)};
F2a=function(a,b,c,d,e,f,h){var l=MD(a.eb.get(),b);return L4a(a,l,b,new F0(a.j,e,["normal"]),[new z0(a.j,c),new D0(a.j,l),new F0(a.j,d,["error"])],f,h)};
C2a=function(a,b,c,d,e){var f=MD(a.eb.get(),b);return L4a(a,f,b,new DC(a.j,c),[new z0(a.j,c),new D0(a.j,f)],d,e)};
H3a=function(a,b,c,d){var e=MD(a.eb.get(),"SLOT_TYPE_PLAYBACK_TRACKING");b=new DC(a.j,b);var f=[new C0(a.j,e)];a=[new D0(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a,bb:"core",Ba:new YZ([new T_(d({slotId:e,slotType:"SLOT_TYPE_PLAYBACK_TRACKING",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
C3a=function(a,b,c,d){var e=MD(a.eb.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new F4a(a.j),h=[new y0(a.j,e)];b=[new z0(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ca.get();return!g.tK(a.F.V())&&a.F.V().experiments.ob("enable_pacf_slot_asde_player_byte_h5")||g.tK(a.F.V())&&a.F.V().experiments.ob("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,bb:"core",Ba:new YZ([new T_(d(l)),new Q_({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,bb:"core",Ba:new YZ([new T_(d(l)),new Q_({})])}};
c4a=function(a,b){return p4a(a.Ca.get())?new F0(a.j,b,["normal","error","skipped"]):new F0(a.j,b,["normal"])};
P2a=function(a,b,c,d,e){b=c4a(a,b);a=d4a(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,bb:a.bb});return e instanceof N?e:{Tv:Object.assign({},a,{Ba:new YZ([new T_(e.layout)]),adSlotLoggingData:d}),gg:e.gg}};
Q2a=function(a,b,c,d,e,f,h){c=e4a(a,b,c,d);if(c instanceof N)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,bb:c.bb});if(h instanceof N)return h;d=[new T_(h.layout)];f&&d.push(new $_({}));a=f4a(a,b,h.yT,c.slotEntryTrigger);return a instanceof N?a:{Tv:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,
slotEntryTrigger:a,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,bb:c.bb,Ba:new YZ(d),adSlotLoggingData:e},gg:h.gg}};
f4a=function(a,b,c,d){return k1(a.Ca.get())&&"AD_PLACEMENT_KIND_START"===b.kind?null==c?new N("Expected at least one triggering layout id of a PlayerBytes slot in SSAP"):new D4a(a.j):d};
d4a=function(a,b,c){var d=MD(a.eb.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new C0(a.j,d)];a=[new D0(a.j,d),new z0(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,bb:"core"}};
e4a=function(a,b,c,d){b=j1(a,b,c,d);return b instanceof N?b:d4a(a,b,c)};
J3a=function(a,b,c,d,e,f){var h=MD(a.eb.get(),"SLOT_TYPE_FORECASTING");b=j1(a,b,c,d);if(b instanceof N)return b;d=[new C0(a.j,h)];a=[new D0(a.j,h),new z0(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,bb:"core",Ba:new YZ([new T_(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,bb:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
M4a=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new DC(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=Ssa(b,d),a instanceof N?a:e(a.Cn,f);case "AD_PLACEMENT_KIND_END":return new E4a(a.j,c,f);default:return new N("Cannot construct entry trigger",{kind:b.kind})}};
K4a=function(a,b,c,d,e){return M4a(a,b,c,d,function(f,h){return new e1(a.j,c,f,h,e)})};
j1=function(a,b,c,d){return M4a(a,b,c,d,function(e,f){return new Z0(a.j,c,e,f)})};
L4a=function(a,b,c,d,e,f,h){a=[new y0(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,bb:"core",Ba:new YZ([new T_(h({slotId:b,slotType:c,slotPhysicalPosition:1,bb:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
l1=function(a,b){g.C.call(this);this.Ca=a;this.u=b;this.eventCount=0};
oO=function(a,b,c){a.j(b,void 0,void 0,void 0,c,void 0,void 0,c.adSlotLoggingData)};
g0=function(a,b,c,d){a.j(b,void 0,void 0,void 0,c,d?d:void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
R1a=function(a,b,c,d){b_(a.u.get())&&a.j("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,b,d?d:void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
c0=function(a,b,c,d,e){a.j("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,e,void 0,d.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,{errorType:b,errorMessage:c})};
N4a=function(a,b,c,d,e,f,h,l,m,n,p){if(a.B()&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==b||a.mP())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==b){b||GD("Empty PACF event type",f,h);var q=b_(a.u.get());b={eventType:b,eventOrder:++a.eventCount};var r={};f&&(r.slotData=i1a(q,f));h&&(r.layoutData=j1a(q,h));l&&(r.triggerData=a_(l.trigger,l.category));c&&(r.opportunityData=k1a(q,c,d,e));c={organicPlaybackContext:{contentCpn:a.Va.get().vg(1).clientPlaybackNonce}};c.organicPlaybackContext.isLivePlayback=a.Va.get().vg(1).fd;
var v;c.organicPlaybackContext.isMdxPlayback=null==(v=a.Va.get().vg(1))?void 0:v.isMdxPlayback;var x;if(v=null==(x=a.Va.get().vg(2))?void 0:x.clientPlaybackNonce)c.adVideoPlaybackContext={adVideoCpn:v};c&&(r.externalContext=c);b.adClientData=r;m&&(b.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(b.serializedAdServingData=n.serializedAdServingDataEntry);p&&(b.errorInfo=p);m={adsClientEvent:b};V0(a.Ca.get(),"tvh5_pacf_disable_gel_log_action")||g.rA("adsClientStateChange",m)}};
m1=function(a,b,c){l1.call(this,a,b);this.Ca=a;this.Va=c};
n1=function(){this.j=new Map};
o1=function(a,b,c,d,e){g.C.call(this);this.F=a;this.u=b;this.Ha=c;this.Va=d;this.xf=e;this.listeners=[];var f=new Jz(this);g.E(this,f);f.S(a,"internalAbandon",this.PN);g.bb(this,function(){g.Lz(f)})};
p1=function(a){g.C.call(this);this.F=a;this.j=new Map;this.u=new Jz(this);g.E(this,this.u);this.u.S(this.F,g.ZD("ad"),this.onCueRangeEnter,this);this.u.S(this.F,g.$D("ad"),this.onCueRangeExit,this)};
P4a=function(a,b){(b=a.j.get(b))&&O4a(a,b)};
O4a=function(a,b){a.F.Ch([b.me],b.In);a.j.delete(b.me.id)};
Q4a=function(a,b,c,d,e){g.XD.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
q1=function(a){this.F=a};
r1=function(a){this.F=a;this.j=Math.random()<g.gJ(this.F.V().experiments,"tv_pacf_logging_sample_rate")};
k1=function(a){var b,c,d,e;return g.DK(a.F.V())&&(null==(b=a.F.getVideoData(1))?void 0:null==(c=b.getPlayerResponse())?void 0:null==(d=c.playerConfig)?void 0:null==(e=d.ssapConfig)?void 0:e.ssapPrerollEnabled)||!1};
V0=function(a,b){return a.F.V().K(b)};
s1=function(a){var b,c,d;return(null==(b=a.F.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
R4a=function(a){return a.F.V().K("html5_enable_vod_lasr_with_notify_pacf")};
p4a=function(a){return a.F.V().K("html5_enable_vod_slar_with_notify_pacf")};
N1a=function(a){if(g.FK(a.F.V())||sK(a.F.V())||g.tK(a.F.V()))return!0;GD("Composite VOD on legacy path.");return!1};
S4a=function(a){return a.F.V().K("html5_recognize_predict_start_cue_point")};
T4a=function(a){return a.F.V().K("enable_lr_home_infeed_ads_inline_playback_progress_pings")};
U2a=function(a){return a.F.V().experiments.ob("enable_desktop_player_underlay")};
P0=function(a){return a.F.V().experiments.ob("html5_load_ads_instead_of_cue")};
Q0=function(a){return a.F.V().experiments.ob("html5_preload_ads")};
U4a=function(a){return a.F.V().experiments.ob("html5_rebase_video_to_ad_timeline")};
t1=function(a,b){this.Ha=a;this.F=b;this.j=new Map;kN().subscribe("adactiveviewmeasurable",this.TC,this);kN().subscribe("adfullyviewableaudiblehalfdurationimpression",this.SC,this);kN().subscribe("adviewableimpression",this.UC,this);kN().subscribe("adaudioaudible",this.QC,this);kN().subscribe("adaudiomeasurable",this.RC,this)};
V4a=function(a,b,c,d,e){e=void 0===e?null:e;a.j.has(b)?GD("Unexpected registration of layout in LidarApi"):(a.j.set(b,e),ul(fm().Cc,"fmd",1),vp(am(tp),c),eAa(kN(),b,{RB:function(){return d?{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,bd:2===a.Ha.get().getPresentingPlayerType()&&1===u1(a.Ha.get(),2),L7a:!1,M7a:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}:{}}}))};
W4a=function(a,b){a.j.has(b)?(a.j.delete(b),delete kN().j[b]):GD("Unexpected unregistration of layout in LidarApi")};
v1=function(a,b,c,d){this.I=a;this.J=b;this.C=c;this.D=d};
w1=function(a,b,c,d){var e=void 0===e?new v1(function(){var f=a.V(),h=a.getVideoData(1);return g.NK(f,h?g.VM(h):"")},function(){return a.V().pageId},function(){return a.V().authUser},function(f){return a.V().K(f)}):e;
this.F=a;this.u=b;this.Mb=c;this.Va=d;this.ou=e;this.nI=null;this.j=new Map;this.Wl=new JN(e)};
Y4a=function(a,b,c,d){var e=t4a(a.u.get(),c);e?(c=x1(a,X4a(e),e,void 0,d),b.hasOwnProperty("baseUrl")?a.ou.send(b,c):a.Wl.send(b,c,{})):GD("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
y1=function(a,b){g.rA("adsClientStateChange",b)};
Z4a=function(a,b){a.j.has(b.Cy())?GD("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Cy(),b)};
$4a=function(a,b){a.j.delete(b.Cy())||GD("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
X4a=function(a){var b=ZZ(a.Ba,"metadata_type_ad_placement_config");a=ZZ(a.Ba,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,BV:a}};
x1=function(a,b,c,d,e){var f=c?a5a(a):{};c=c?b5a(a,c.layoutId):{};var h=c5a(a),l,m=null==(l=a.Va.get().vg(2))?void 0:l.clientPlaybackNonce;a.F.V().K("enable_player_logging_lr_home_infeed_ads")&&!m&&(m=a.Va.get().vg(1).clientPlaybackNonce);l={};d=Object.assign({},BN(a.F,d),rBa(b.adPlacementConfig,a.F.K("h5_disable_client_subs_slot_pos")),c,f,h,(l.FINAL=AN(function(){return"1"}),l.AD_CPN=AN(function(){return m||""}),l));
a.F.K("h5_disable_client_subs_slot_pos")||(d.SLOT_POS=AN(function(){return(b.BV||0).toString()}));
a={};e=Object.assign({},d,e);d=g.t(Object.values(d5a));for(f=d.next();!f.done;f=d.next())f=f.value,c=e[f],null!=c&&null!=c.toString()&&(a[f]=c.toString());return a};
a5a=function(a){var b={},c,d=null==(c=a.nI)?void 0:c.Mi/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=AN(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=AN(function(){return Math.round(Date.now()/1E3).toString()});
return b};
b5a=function(a,b){a=a.j.get(b);if(!a)return{};a=a.GL();if(!a)return{};b={};return b.YT_ERROR_CODE=a.AI.toString(),b.ERRORCODE=a.mE.toString(),b.ERROR_MSG=a.errorMessage,b};
c5a=function(a){var b={},c=a.F.getVideoData(1);b.ASR=AN(function(){var d;return null!=(d=null==c?void 0:c.Lw)?d:null});
b.EI=AN(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
z1=function(a,b,c){g.C.call(this);this.F=a;this.Td=b;this.Ca=c;this.listeners=[];this.bN=null;this.rK=new Map;b=new g.bI(this);g.E(this,b);b.S(a,"videodatachange",this.R7);b.S(a,"serverstitchedvideochange",this.o7);this.Nu=this.vg()};
f5a=function(a,b,c){var d=e5a(a,b,c);a.Nu=d;a.listeners.forEach(function(e){e.sW(d)})};
e5a=function(a,b,c){var d=b.author,e=b.clientPlaybackNonce,f=b.isListed,h=b.Nc,l=b.title,m=b.Ki,n=b.qj,p=b.isMdxPlayback,q=b.ek,r=b.mdxEnvironment,v=b.isAutonav,x=b.kp,z=b.Xl,B=b.Du,F=b.videoId||"",G=b.profilePicture||"",D=b.bk||"";b=b.Kp||void 0;h=a.Td.get().j.get(h)||{layoutId:null,slotId:null};var L=a.F.getVideoData(1),P=L.fd();L=L.getPlayerResponse();c=1E3*a.F.getDuration(c);a=1E3*a.F.getDuration(1);var T,fa,V=(null==L?void 0:null==(T=L.playerConfig)?void 0:null==(fa=T.daiConfig)?void 0:fa.enableDai)||
!1,Q,X;T=(null==L?void 0:null==(Q=L.playerConfig)?void 0:null==(X=Q.daiConfig)?void 0:X.enablePreroll)||!1;return Object.assign({},h,{videoId:F,author:d,clientPlaybackNonce:e,h8:c,bT:a,daiEnabled:V,iT:T,isListed:f,fd:P,profilePicture:G,title:l,bk:D,Ki:m,qj:n,Kp:b,isMdxPlayback:p,ek:q,mdxEnvironment:r,isAutonav:v,kp:x,Xl:z,Du:B})};
A1=function(a,b,c){g.C.call(this);this.F=a;this.Va=b;this.Ca=c;this.listeners=[];this.oF=[];this.j=function(){GD("Called 'doUnlockPreroll' before it's initialized.")};
b=new Jz(this);c=new g.bI(this);g.E(this,c);g.E(this,b);b.S(a,"progresssync",this.Q6);b.S(a,"presentingplayerstatechange",this.H6);b.S(a,"fullscreentoggled",this.onFullscreenToggled);b.S(a,"onVolumeChange",this.onVolumeChange);b.S(a,"minimized",this.Uh);b.S(a,"resize",this.Db);c.S(a,g.ZD("appad"),this.Ul)};
VP=function(a){k1(a.Ca.get())||a.j()};
g5a=function(a,b){a.oF=a.oF.filter(function(c){return c!==b})};
h5a=function(a,b){var c;b=null!=(c=a.Va.get().rK.get(b))?c:null;if(null===b)return GD("Expected ad video start time on playback timeline"),0;a=a.F.getCurrentTime(2,!0);return a<b?0:a-b};
u1=function(a,b){return a.F.Cb(b)};
i5a=function(a){var b=a.F.jb().Ij();a=a.F.zk(!0,!0);return b.height-(a.height+a.top)};
j5a=function(a){a.F.cueVideoByPlayerVars({videoId:"empty_video"},2)};
k5a=function(a,b){var c=a.F.V();g.kK(c)||"3"!==c.controlsType||a.F.jb().SD(b)};
B1=function(a,b){g.Qp(a.F.getRootNode(),b)};
C1=function(a,b){g.Sp(a.F.getRootNode(),b)};
l5a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,null,null)});
g.E(this,this.Wd);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va);this.qg=Y(function(){return h});
this.Zs=h;this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.rf={Ov:new Map,Tp:new Map,al:new Map,Wq:new Map,yq:new Map};this.listeners=[];this.yv={Yc:this.Yc,Aq:null,Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,Tm:this.eb.get(),zq:null,Tl:{nM:function(){}},
Kj:this.Pc.get(),An:this.Va.get()}};
D1=function(){this.listeners=new Set};
E1=function(){};
m5a=function(a,b){a=b.bgp&&b.bgub;var c=b.upb;b.siub&&b.scs&&(a||c)&&Yka(b.siub,b.scs,b.bgub,b.bgp,c)};
n5a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.Ab=c;this.Jb=d;this.Ca=e;this.j=null};
o5a=function(a,b,c,d){a.j&&GD("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.dA?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.Ab.get(),l=a.slot.slotId,m=c_(a.Jb.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,bb:a.slot.bb,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=ND(h.eb.get(),f,l),p={layoutId:n,layoutType:f,bb:"core"};e={layoutId:n,layoutType:f,Rb:new Map,layoutExitNormalTriggers:[new w4a(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"core",Ba:new YZ([new F1a(e)]),Ac:m(p)};O1a(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof Zf||K1a(a.callback,a.slot,new N(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
p5a=function(a){if(null==a.j)a.callback.fH(a.slot);else try{a.j.cancel(),a.j=null,a.callback.fH(a.slot)}catch(b){a.j=null,K1a(a.callback,a.slot,new N(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
q5a=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.Lf=c;this.Oa=h;this.Ha=l;this.qf=m;this.j=new n5a(a,b,d,e,f)};
r5a=function(a){var b;null==(b=a.qf)||b.get().kt(ZZ(a.slot.Ba,"metadata_type_cue_point").identifier)};
s5a=function(a,b,c,d,e,f){this.slot=b;this.Lf=c;this.j=new n5a(a,b,d,e,f)};
t5a=function(a,b){this.callback=a;this.slot=b};
u5a=function(a,b){return BC(a,b.Ae,b.slotType)?!0:!1};
v5a=function(){};
F1=function(a,b,c,d,e,f,h){this.Lf=a;this.Ab=b;this.Jb=c;this.Ca=d;this.Oa=e;this.Ha=f;this.qf=h};
G1=function(){};
w5a=function(a,b,c,d){this.callback=a;this.slot=b;this.layout=c;this.j=d};
H1=function(a,b){return fO(a,b.Ae,b.Rf)?!0:!1};
I1=function(a){this.j=a};
J1=function(a,b,c,d,e){e=void 0===e?null:e;this.B=a;this.Oa=b;this.layoutId=d;this.C=0;this.D=null;this.j=new Set;this.u=Array.from(this.B.get("progress")||[]);this.u.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.I={adPlacementConfig:c,BV:e}};
K1=function(){return["metadata_type_ad_placement_config"]};
L1=function(a){var b=a.Oa.get();return x1(b,a.I)};
M1=function(a,b,c){for(c=void 0===c?!1:c;a.C<a.u.length;){var d=a.u[a.C];if(d.offsetMilliseconds<=b||c)x5a(a,"progress",[d]),a.C++;else break}};
N1=function(a,b){return a.j.has(b)};
y5a=function(a){return a.u.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
x5a=function(a,b,c){var d,e=a.Oa.get(),f=a.layoutId;a=null!=(d=a.D)?d:void 0;c=void 0===c?[]:c;if(d=t4a(e.u.get(),f))for(b=e.Mb.get().lh(f,b),f=x1(e,X4a(d),d,a),c=g.t(c),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&e.Wl.send(d.baseUrl,f,b);else GD("Trying to track from an unknown layout.",void 0,void 0,{layoutId:f,trackingType:b})};
z5a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.j=e;a=ZZ(this.layout.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
A5a=function(){var a=["metadata_type_client_forecasting_ad_renderer"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_FORECASTING"]}};
B5a=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.j=e;a=ZZ(this.layout.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
O1=function(a,b,c,d){this.Ca=a;this.Oa=b;this.j=c;this.Mb=d};
C5a=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
D5a=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.fg(a.slot,b,new b0("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()};
P1=function(a,b,c,d){g.dE.call(this);this.callback=a;this.B=d;this.j=[];this.u=new C5a(a,b,c)};
Q1=function(a,b,c,d,e,f,h){e=ZZ(c.Ba,e);a=L1(a);var l=Od(function(){d.Tc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.Ac},function(){l()}))};
R1=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.t(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.F.sendVideoStatsEngageEvent(1,void 0,2):e?e():GD("Tried to call engagePingCallback but it is null",h,l)}}else GD("Companion AdUxClick received without a layoutId",h,l)};
E5a=function(a,b,c,d,e){gN.call(this,"action-companion",a,b,c,d,e)};
F5a=function(a,b,c,d,e,f,h,l){P1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Jj=!0;this.C=null;this.D=ZZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Fd.add(this);a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
G5a=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
S1=function(a,b,c,d,e){P1.call(this,a,b,c,d);a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,e,a,c.layoutId)};
H5a=function(){var a=["metadata_type_ad_action_interstitial_renderer"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_ENDCAP"]}};
T1=function(a,b,c,d,e,f,h,l){P1.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.I=h;this.D=l;this.C=!1;this.J=ZZ(this.layout.Ba,"metadata_type_linked_player_bytes_layout_id")};
I5a=function(){return{Ae:["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"],Rf:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
U1=function(a,b,c,d,e,f){P1.call(this,c,a,b,d);this.Ha=e;this.Ca=f};
J5a=function(){return{Ae:["metadata_type_valid_ad_message_renderer"],Rf:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
V1=function(a,b,c,d,e,f,h,l,m){return H1(c,I5a())?new T1(a,b,c,d,e,f,h,l):H1(c,H5a())?new S1(a,b,c,d,f):H1(c,J5a())?new U1(b,c,a,d,e,m):null};
K5a=function(a,b,c,d,e,f){this.vc=a;this.Ha=b;this.Oa=c;this.u=d;this.j=e;this.Ca=f};
W1=function(a,b,c,d,e,f){g.C.call(this);this.callback=a;this.Pe=b;this.Ha=c;this.Mc=d;this.Ue=e;this.Ca=f;this.Jj=!0;this.yM=!1};
L5a=function(a,b,c,d,e,f,h,l,m,n){W1.call(this,a,b,c,d,m,n);this.B=e;this.slot=f;this.layout=h;this.I=l;this.u=[];this.j=-1;this.C=!1};
N5a=function(a,b,c){var d=a.u[a.j];if(c.layoutId!==X1(d,b,c))GD("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.pd(),d.Hb(),{requestingSlot:b,requestingLayout:c});else{var e=ZZ(d.Hb().Ba,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.u.length){for(var f=e;f<a.u.length;){if(e===ZZ(a.u[f].Hb().Ba,"metadata_type_ad_pod_skip_index")){M5a(a,d.pd(),d.Hb(),f);return}f++}GD("Skip-to-index was requested but target index was not found",d.pd(),d.Hb(),{requestingSlot:b,
requestingLayout:c})}else GD("Invalid ad pod skip target index",d.pd(),d.Hb(),{requestingSlot:b,requestingLayout:c})}};
X1=function(a,b,c){var d=ZZ(a.Hb().Ba,"metadata_type_linked_in_player_layout_id");return d?d:(GD("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.pd(),a.Hb(),{requestingSlot:b,requestingLayout:c}),null)};
Q5a=function(a,b,c,d){O5a(a,b,c,d,function(){P5a(a,a.j+1)})};
M5a=function(a,b,c,d){O5a(a,b,c,"skipped",function(){P5a(a,d)})};
O5a=function(a,b,c,d,e){if(!a.C){var f=a.u[a.j];f?(f.Hb().layoutId!==c.layoutId&&GD("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.Hb().layoutId}),a.C=!0,f.Pg(f.Hb(),d),jO(a.B,b,c,d),a.C=!1,a.D?(a.D(),a.Mc.get().aA()):e()):GD("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",b,c)}};
P5a=function(a,b){if(a.j===a.u.length-1)a.j++,Y1(a.I,a.layout),a.Mc.get().aA();else{if(-1===a.j&&(a.callback.Tc(a.slot,a.layout),0<b)){GD("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.j=b;b=a.u[a.j];0<a.j&&a.Mc.get().uP();b.startRendering(b.Hb())}};
R5a=function(a){return!a.Hv.bd()&&a.state.bd()};
Z1=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
S5a=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
T5a=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
U5a=function(a,b,c,d){this.Nb=a;this.layoutId=c;this.D=d;this.u=[];this.j=[];this.B=this.C=0;a=g.t(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":S5a(b)?this.u.push(b):GD("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":T5a(b)?this.j.push(b):GD("Invalid AdVideoProgressMillisecondsCommand");break;default:GD("Unknown or invalid AdVideoProgressOffSet kind")}this.u.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)})};
a2=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v){g.C.call(this);var x=this;this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.Mb=e;this.Ha=f;this.Mc=h;this.Xf=l;this.Nb=m;this.vD=n;this.position=q;this.nY=r;this.Ca=v;this.Jj=!0;this.zX=!1;this.Fc="not_rendering";this.CC=!1;a=ZZ(this.layout.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId);var z;a=(null==(z=$1(this))?void 0:z.progressCommands)||[];this.s8=new U5a(m,a,c.layoutId,function(){return x.By()});
this.ZS=Od(function(){x.callback.Tc(x.slot,x.layout)});
this.XK=Od(function(){"rendering_stop_requested"!==x.Fc&&p(x);x.layoutExitReason?x.callback.wd(x.slot,x.layout,x.layoutExitReason):GD("Received layout exit signal when not in layout exit flow.",x.slot,x.layout)})};
$1=function(a){return ZZ(a.layout.Ba,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
b2=function(a,b,c){c=void 0===c?!1:c;if("rendering"===a.Fc){M1(a.Za,1E3*b,c);a.CC||M1(a.Za,1E3*b,void 0===c?!1:c);var d=a.By();if(d&&(d/=1E3,(b>=.25*d||c)&&a.md("first_quartile"),(b>=.5*d||c)&&a.md("midpoint"),(b>=.75*d||c)&&a.md("third_quartile"),a=a.s8,b*=1E3,c=a.D())){for(;a.C<a.u.length;)if(d=a.u[a.C],d.adVideoOffset.percent*c<=b)a.Nb.get().executeCommand(d.command,a.layoutId),a.C++;else break;for(;a.B<a.j.length;)if(c=a.j[a.B],Number(c.adVideoOffset.milliseconds)<=b)a.Nb.get().executeCommand(c.command,
a.layoutId),a.B++;else break}}};
V5a=function(a){V0(a.Ca.get(),"h5_enable_unified_csi_preroll")&&0===a.position&&(a.Mc.get(),a=ZZ(a.layout.Ba,"metadata_type_ad_placement_config").kind,a={adBreakType:tCa(a)},eF("ad_bl"),bF(a))};
W5a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x){a2.call(this,a,b,c,d,e,f,h,m,n,p,q,r,v,x);var z=this;this.zd=l;this.tG=!0;this.aN=this.Mi=0;this.timer=new g.$f(200);this.timer.Ra("tick",function(){z.yc()});
g.E(this,this.timer)};
X5a=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.t(K1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ae:a,Rf:["LAYOUT_TYPE_MEDIA_BREAK"]}};
Z5a=function(a){a.aN=Date.now();Y5a(a,a.Mi);a.timer.start()};
Y5a=function(a,b){b={current:b/1E3,duration:a.By()/1E3};a.zd.get().Na("onAdPlaybackProgress",b)};
c2=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G,D){a2.call(this,a,b,c,d,e,m,p,r,v,z,B,F,G,D);var L=this;this.hf=f;this.Pe=h;this.Va=l;this.wc=n;this.zd=q;this.dg=x;this.adCpn="";this.NG=new g.Ip(function(){L.OC("load_timeout",new b0("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4);
a=P0(this.Ca.get());D=Q0(D.get());a&&D&&(this.lz=new g.Ip(function(){var P=ZZ(c.Ba,"metadata_type_preload_player_vars");P&&L.Pe.get().F.preloadVideoByPlayerVars(P,2,300)}))};
$5a=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.t(K1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ae:a,Rf:["LAYOUT_TYPE_MEDIA"]}};
a6a=function(a,b,c,d,e,f,h){W1.call(this,a,b,c,d,f,h);this.j=e};
c6a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G){if(H1(d,{Ae:["metadata_type_sub_layouts"],Rf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.qw&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var D,L=null!=(D=d.qw)?D:ZZ(d.Ba,"metadata_type_sub_layouts");a=new L5a(a,n,q,v,b,c,d,f,e,G);e=[];for(b={Ut:0};b.Ut<L.length;b={Ut:b.Ut},b.Ut++){D=b6a({Tc:a.A7.bind(a),wd:a.C7.bind(a),fg:a.B7.bind(a)},c,L[b.Ut],h,l,m,n,p,q,r,v,x,z,B,F,function(P){return function(T){T.Pg(L[P.Ut],"normal")}}(b),
b.Ut,L.length,G);
if(!D)return;e.push(D)}a.u=e;return a}if(H1(d,{Ae:[],Rf:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=b6a({Tc:a.Tc.bind(a),wd:a.wd.bind(a),fg:a.fg.bind(a)},c,d,h,l,m,n,p,q,r,v,x,z,B,F,function(){Y1(f,d)},0,1,G))?new a6a(a,n,q,v,c,e,G):c};
b6a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G){if(H1(c,X5a()))return new W5a(a,b,c,d,e,m,p,q,r,v,function(){},z,B,F,G);
if(H1(c,$5a()))return AC(c.Ba,"metadata_type_ad_intro")?new c2(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,function(D){q.get().Na("onAdIntroStateChange",D)},z,B,F,G):new c2(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,function(D){q.get().Yl(D)},z,B,F,G)};
d2=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x){this.Ue=a;this.j=b;this.Oa=c;this.Mb=d;this.hf=e;this.Pe=f;this.Va=h;this.Ha=l;this.wc=m;this.Mc=n;this.zd=p;this.Xf=q;this.Nb=r;this.dg=v;this.Ca=x};
e2=function(a,b,c,d,e,f,h,l){g.C.call(this);var m=this;this.ac=a;this.Ib=b;this.xf=d;this.Ha=e;this.Ca=f;this.Oa=h;this.qf=l;this.j=null;c.get().addListener(this);g.bb(this,function(){c.isDisposed()||c.get().removeListener(m)});
d.get().addListener(this);g.bb(this,function(){d.isDisposed()||d.get().removeListener(m)})};
r4a=function(a,b){if(a.j)GD("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.t(a.xf.get().sI);for(var c=b.next();!c.done;c=b.next())d6a(a,a.j,c.value)}};
d6a=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Ca.get().F.V().Rd()&&a.Oa.get().Sh("sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Sg.toFixed(3));zC(a.ac.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.Ib.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=s1(a.Ca.get()),n=a.Oa;if(e.Ca.get().F.V().experiments.ob("enable_smearing_expansion_dai")){var p=g.gJ(e.Ca.get().F.V().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.gJ(e.Ca.get().F.V().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={Cn:Tsa(c),zD:!1};var r=c.startSecs+c.Sg;if(0===d)m.Rp=new iq(0,1E3*r);else{q=c.startSecs-q;var v=q-d;m.Rp=0>=v?new iq(1E3*q,1E3*r):new iq(1E3*Math.floor(d+Math.random()*Math.min(v,p)),1E3*r)}p=m}else p={Cn:Tsa(c),zD:!1},r=c.startSecs+c.Sg,c.startSecs<=d?m=new iq(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new iq(1E3*Math.floor(d+
Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.Rp=m;e=v2a(e,f,h,p,l,[new D1a(c)]);n.get().Sh("daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Rp.start/1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+e.slotId);return[e]})};
f2=function(a,b,c,d,e,f,h,l,m){g.C.call(this);this.j=a;this.B=b;this.u=c;this.ac=d;this.Ib=e;this.Ab=f;this.Jb=h;this.Ca=l;this.Va=m;this.Jj=!0};
e6a=function(a,b,c){return V2a(a.Ib.get(),b.contentCpn,b.vp,function(d){return W2a(a.Ab.get(),d.slotId,c,b.adPlacementConfig,b.vp,c_(a.Jb.get(),d))})};
g2=function(a){var b,c=null==(b=ZZ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=ZZ(a.Ba,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=ZZ(a.Ba,"metadata_type_content_cpn"),f=ZZ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),h=ZZ(a.Ba,"metadata_type_player_underlay_renderer"),l=ZZ(a.Ba,"metadata_type_ad_placement_config"),m=ZZ(a.Ba,"metadata_type_video_length_seconds");var n=AC(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?
ZZ(a.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):AC(a.Ba,"metadata_type_layout_enter_ms")&&AC(a.Ba,"metadata_type_layout_exit_ms")?(ZZ(a.Ba,"metadata_type_layout_exit_ms")-ZZ(a.Ba,"metadata_type_layout_enter_ms"))/1E3:void 0;return{vp:d,contentCpn:e,xO:c,qK:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,MG:n,inPlayerLayoutId:ZZ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ZZ(a.Ba,"metadata_type_linked_in_player_slot_id")}};
g6a=function(a,b){return f6a(a,b)};
h6a=function(a,b){b=f6a(a,b);if(!b)return null;var c;b.MG=null==(c=ZZ(a.Ba,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
f6a=function(a,b){var c,d=null==(c=ZZ(a.Ba,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;AC(a.Ba,"metadata_ad_video_is_listed")?c=ZZ(a.Ba,"metadata_ad_video_is_listed"):b?c=b.isListed:(GD("No layout metadata nor AdPlayback specified for ad video isListed"),c=!1);AC(a.Ba,"metadata_type_ad_info_ad_metadata")?b=ZZ(a.Ba,"metadata_type_ad_info_ad_metadata"):b?b={channelId:b.bk,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(GD("No layout metadata nor AdPlayback specified for AdMetaData"),
b={channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""});return{H1:b,adPlacementConfig:ZZ(a.Ba,"metadata_type_ad_placement_config"),J1:c,contentCpn:ZZ(a.Ba,"metadata_type_content_cpn"),inPlayerLayoutId:ZZ(a.Ba,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:ZZ(a.Ba,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:ZZ(a.Ba,"metadata_type_instream_ad_player_overlay_renderer"),instreamAdPlayerUnderlayRenderer:void 0,MG:void 0,xO:d,vp:a.layoutId,videoLengthSeconds:ZZ(a.Ba,
"metadata_type_video_length_seconds")}};
i6a=function(a,b){this.callback=a;this.slot=b};
h2=function(){};
j6a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
k6a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.u=!1;this.j=0};
l6a=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
i2=function(a){this.Ha=a};
j2=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
k2=function(a){g.C.call(this);this.gJ=a;this.Wb=new Map};
m6a=function(a,b){for(var c=[],d=g.t(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof I0&&f.triggeringLayoutId===b&&c.push(e)}c.length?k0(a.gJ(),c):GD("Survey is submitted but no registered triggers can be activated.")};
l2=function(a,b,c){k2.call(this,a);var d=this;this.Ca=c;b.get().addListener(this);g.bb(this,function(){b.isDisposed()||b.get().removeListener(d)})};
m2=function(a){g.C.call(this);this.j=a;this.Jj=!0;this.Wb=new Map;this.D=new Set;this.B=new Set;this.C=new Set;this.I=new Set;this.u=new Set};
n2=function(a,b){g.C.call(this);var c=this;this.j=a;this.Wb=new Map;b.get().addListener(this);g.bb(this,function(){b.isDisposed()||b.get().removeListener(c)})};
n6a=function(a,b,c,d){var e=[];a=g.t(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof z0){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(GD("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
o6a=function(a){return a instanceof x4a||a instanceof y4a||a instanceof b1};
o2=function(a,b,c,d){g.C.call(this);var e=this;this.u=a;this.wc=b;this.Ha=c;this.Va=d;this.Jj=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);g.bb(this,function(){c.isDisposed()||c.get().removeListener(e)})};
p6a=function(a,b,c,d,e,f,h,l,m,n){if(a.Va.get().vg(1).clientPlaybackNonce!==m)throw new N("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{Cu:new j2(b,c,d,e),Lu:f});a.wc.get().addCueRange(f,h,l,n,a)};
q6a=function(a,b){a=g.t(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.t(c.value);c=d.next().value;d=d.next().value;if(b===d.Lu)return c}return""};
p2=function(a){g.C.call(this);this.j=a;this.Jj=!0;this.Wb=new Map};
Y1=function(a,b){b=b.layoutId;for(var c=[],d=g.t(a.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof G0){var f;if(f=e.trigger.layoutId===b)f=(f=S1a.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&k0(a.j(),c)};
q2=function(a){g.C.call(this);this.j=a;this.Jj=!0;this.Wb=new Map};
r2=function(a,b,c){g.C.call(this);this.j=a;this.hn=b;this.eb=c;this.hn.get().addListener(this)};
s2=function(a,b,c,d,e,f){g.C.call(this);this.B=a;this.cf=b;this.Jb=c;this.Va=d;this.eb=e;this.Ca=f;this.j=this.u=null;this.C=!1;this.cf.get().addListener(this)};
dCa=function(a,b,c,d,e){var f=MD(a.eb.get(),"SLOT_TYPE_PLAYER_BYTES");a.u={slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],bb:"surface",Ba:new YZ([])};a.j={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Rb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Sc:[],bb:"surface",Ba:new YZ(c),Ac:l1a(b_(a.Jb.get()),f,"SLOT_TYPE_PLAYER_BYTES",
1,"surface",void 0,[],[],b,"LAYOUT_TYPE_MEDIA","surface"),adLayoutLoggingData:e};P1a(a.B(),a.u,a.j);d&&(Q1a(a.B(),a.u,a.j),a.C=!0,j0(a.B(),a.u,a.j))};
t2=function(a){this.fu=a};
r6a=function(a,b){if(!a)return{qo:[],adSlots:[],dA:!0,ssdaiAdsConfig:void 0};a.trackingParams&&pP().eq(a.trackingParams);if(a.adThrottled)return{qo:[],adSlots:[],dA:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[];c=a.playerAds;if(!c||!c.length)return{qo:[],adSlots:d,dA:!1,ssdaiAdsConfig:void 0};c=c.map(function(f){return f.adPlacementRenderer}).filter(function(f){return!(!f||!f.renderer)});
if(!c.length)return{qo:[],adSlots:d,dA:!1,ssdaiAdsConfig:void 0};if(0<b.end){var e=b.end.toString();c.forEach(function(f){(f=f.config&&f.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===f.kind&&f.adTimeOffset&&"-1"===f.adTimeOffset.offsetEndMilliseconds&&f.adTimeOffset.offsetEndMilliseconds!==e&&(f.adTimeOffset.offsetEndMilliseconds=e)})}return{qo:c,
adSlots:d,dA:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
u2=function(a){g.C.call(this);this.F=a;this.listeners=[];this.j=new Jz(this);g.E(this,this.j);this.j.S(this.F,"aduxclicked",this.onAdUxClicked);this.j.S(this.F,"aduxmouseover",this.CN);this.j.S(this.F,"aduxmouseout",this.BN);this.j.S(this.F,"muteadaccepted",this.o5)};
s6a=function(a,b,c){b=g.Yl(b,function(d){return new cE(d,c,d.id)});
a.F.Na("onAdUxUpdate",b)};
v2=function(a,b){a=g.t(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
w2=function(a,b,c){g.C.call(this);this.F=a;this.Ca=b;this.Oa=c;this.listeners=[];this.C=!1;this.sI=[];this.u=null;this.D=new sO(this,S4a(b.get()));this.B=new tO;this.j=null};
u6a=function(a,b){y1(a.Oa.get(),{cuepointTrigger:{event:t6a(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.Sg,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.F.getVideoData(1).clientPlaybackNonce}})};
t6a=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 dk(a,"Unexpected cuepoint event")}};
x2=function(a){this.F=a};
y2=function(a){this.F=a};
z2=function(){this.listeners=[]};
v6a=function(a){this.F=a};
w6a=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Ca=f;a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
x6a=function(a,b,c){this.Ha=a;this.Oa=b;this.Ca=c};
A2=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Va=d;this.qf=e;this.xf=f;this.Ha=h;this.Za=l;this.Oa=m;this.C=n;this.driftRecoveryMs=ZZ(this.layout.Ba,"metadata_type_drift_recovery_ms")||null};
y6a=function(a){var b=ZZ(a.layout.Ba,"metadata_type_layout_enter_ms"),c=ZZ(a.layout.Ba,"metadata_type_layout_exit_ms");a=a.xf.get();b=uO(a.B,b,c);return Math.min(c,null!==b?b:Infinity)};
z6a=function(a,b){var c;y1(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Va.get().Nu)?void 0:c.clientPlaybackNonce,adClientData:a.layout.Ac.adClientDataEntry},b)})};
A6a=function(a,b,c,d,e,f,h,l,m,n,p){A2.call(this,a,b,c,d,e,f,h,l,m,n);this.B=p;this.u=this.j=null;a=g.t(this.B);for(b=a.next();!b.done;b=a.next())b=b.value,AC(b.Hb().Ba,"metadata_type_survey_overlay")&&(this.u=b.Hb().layoutId)};
C6a=function(a,b){var c=B6a(a,b);a.j={zl:c};c?c.startRendering(c.Hb()):b===a.u&&GD("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
B6a=function(a,b){return null==b?null:a.B.find(function(c){return c.Hb().layoutId===b})||null};
D6a=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=AC(b.Ba,"metadata_type_survey_overlay"),r,v=(null==(r=ZZ(a.Ba,"metadata_type_fulfilled_layout"))?void 0:ZZ(r.Ba,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.rC(c,v,2,f,d,e,a.slotId),n.Sh("ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.Kx(c,v,2,f,d,e,a.slotId);n.Sh("ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return GD("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&GD("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):GD("Invalid timeline playback ID");d+f>e&&h.jA(p,e-d);return p};
E6a=function(a,b){var c=ZZ(b.Ba,"metadata_type_sodar_extension_data");if(c)try{m5a(0,c)}catch(d){GD("Unexpected error when loading Sodar",a,b,{error:d})}};
G6a=function(a,b,c,d,e,f){F6a(a,b,new g.WN(c,new g.KO),d,e,!1,f)};
F6a=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;R5a(c)&&Z1(e,0,null)&&(!N1(a,"impression")&&h&&h(),a.md("impression"));N1(a,"impression")&&(g.YN(c,4)&&!g.YN(c,2)&&a.lh("pause"),0>XN(c,4)&&!(0>XN(c,2))&&a.lh("resume"),g.YN(c,16)&&.5<=e&&a.lh("seek"),f&&g.YN(c,2)&&H6a(a,c.state,b,d,e))};
H6a=function(a,b,c,d,e,f){if(N1(a,"impression")){var h=1>=Math.abs(d-e);I6a(a,b,h?d:e,c,d,f);h&&a.md("complete")}};
I6a=function(a,b,c,d,e,f){M1(a,1E3*c);0>=e||0>=c||(null==b?0:g.S(b,16))||(null==b?0:g.S(b,32))||(Z1(c,.25*e,d)&&(f&&!N1(a,"first_quartile")&&f("first"),a.md("first_quartile")),Z1(c,.5*e,d)&&(f&&!N1(a,"midpoint")&&f("second"),a.md("midpoint")),Z1(c,.75*e,d)&&(f&&!N1(a,"third_quartile")&&f("third"),a.md("third_quartile")))};
J6a=function(a,b){N1(a,"impression")&&a.lh(b?"fullscreen":"end_fullscreen")};
K6a=function(a){N1(a,"impression")&&a.lh("clickthrough")};
L6a=function(a){a.lh("active_view_measurable")};
M6a=function(a){N1(a,"impression")&&!N1(a,"seek")&&a.lh("active_view_fully_viewable_audible_half_duration")};
N6a=function(a){N1(a,"impression")&&!N1(a,"seek")&&a.lh("active_view_viewable")};
O6a=function(a){N1(a,"impression")&&!N1(a,"seek")&&a.lh("audio_audible")};
P6a=function(a){N1(a,"impression")&&!N1(a,"seek")&&a.lh("audio_measurable")};
Q6a=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.qf=d;this.Za=e;this.Ha=f;this.Td=h;this.Mb=l;this.hf=m;this.Ca=n;this.Oa=p;this.Va=q;this.tG=!0;this.Nc=this.Fc=null};
R6a=function(a,b,c){var d;a.Oa.get().Sh("ads_qua","cpn."+ZZ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Va.get().vg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
S6a=function(a,b){var c,d;a.Oa.get().Sh("ads_imp","cpn."+ZZ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Va.get().vg(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.K(null==(d=ZZ(a.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,R0))};
T6a=function(a){return{enterMs:ZZ(a.Ba,"metadata_type_layout_enter_ms"),exitMs:ZZ(a.Ba,"metadata_type_layout_exit_ms")}};
U6a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v){A2.call(this,a,b,c,d,e,h,l,m,n,q);this.Td=f;this.hf=p;this.Mb=r;this.Ca=v;this.Nc=this.Fc=null};
V6a=function(a,b){var c;a.Oa.get().Sh("ads_imp","acpn."+(null==(c=a.Va.get().vg(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
W6a=function(a,b,c){var d;a.Oa.get().Sh("ads_qua","cpn."+ZZ(a.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Va.get().vg(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
X6a=function(a,b,c,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G){this.Ue=a;this.u=b;this.Va=c;this.qf=d;this.Ha=e;this.Oa=f;this.Td=h;this.xf=l;this.Mb=m;this.hf=n;this.Pe=p;this.wc=q;this.Mc=r;this.zd=v;this.Xf=x;this.Nb=z;this.dg=B;this.Ca=F;this.j=G};
B2=function(a){g.C.call(this);this.j=a;this.Wb=new Map};
C2=function(a,b){for(var c=[],d=g.t(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&k0(a.j(),c)};
D2=function(a,b){g.C.call(this);var c=this;this.C=a;this.u=new Map;this.B=new Map;this.j=null;b.get().addListener(this);g.bb(this,function(){b.isDisposed()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Nu)?void 0:d.slotId)||null};
Y6a=function(a,b){var c=[];a=g.t(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
Z6a=function(a){this.F=a};
$6a=function(a,b,c,d,e){gN.call(this,"image-companion",a,b,c,d,e)};
a7a=function(a,b,c,d,e,f,h,l){P1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Jj=!0;this.C=null;this.D=ZZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Fd.add(this);a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
b7a=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
c7a=function(a,b,c,d,e){gN.call(this,"shopping-companion",a,b,c,d,e)};
d7a=function(a,b,c,d,e,f,h,l){P1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Jj=!0;this.C=null;this.D=ZZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Fd.add(this);a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
e7a=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
f7a=function(a,b,c,d,e,f){P1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.Jj=!0;this.Ue().Fd.add(this);a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
g7a=function(){var a=["metadata_type_action_companion_ad_renderer"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
h7a=function(a,b,c,d,e){gN.call(this,"ads-engagement-panel",a,b,c,d,e)};
i7a=function(a,b,c,d,e,f,h,l){P1.call(this,a,b,c,d);this.Oa=e;this.Ue=f;this.I=l;this.Jj=!0;this.C=null;this.D=ZZ(c.Ba,"metadata_type_linked_player_bytes_layout_id");this.Ue().Fd.add(this);a=ZZ(c.Ba,"metadata_type_ad_placement_config");this.Za=new J1(c.Rb,this.Oa,a,c.layoutId)};
j7a=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
k7a=function(a,b,c,d,e){this.vc=a;this.Oa=b;this.Ue=c;this.j=d;this.Mb=e};
l7a=function(a,b,c){gN.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
E2=function(a,b,c,d){P1.call(this,a,b,c,d)};
m7a=function(a){this.vc=a};
n7a=function(a,b,c,d){gN.call(this,"survey-interstitial",a,b,c,d)};
F2=function(a,b,c,d,e){P1.call(this,c,a,b,d);this.Oa=e;a=ZZ(b.Ba,"metadata_type_ad_placement_config");this.Za=new J1(b.Rb,e,a,b.layoutId)};
G2=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
p7a=function(a,b,c){c=void 0===c?o7a:c;c.width<o7a.width&&(c=o7a);if(a.width<c.width||a.height<c.height)return{AI:3,mE:501,errorMessage:"ad("+G2(c)+") larger than container("+G2(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{AI:3,mE:501,errorMessage:"ad("+G2(c)+") to container("+G2(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{AI:3,mE:501,errorMessage:"ad("+G2(c)+") covers container("+G2(a)+") center."}};
q7a=function(a,b){var c=ZZ(a.Ba,"metadata_type_ad_placement_config");return new J1(a.Rb,b,c,a.layoutId)};
H2=function(a){return ZZ(a.Ba,"metadata_type_invideo_overlay_ad_renderer")};
r7a=function(a,b,c,d){gN.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
I2=function(a,b,c,d,e,f,h,l,m,n,p,q){P1.call(this,f,a,b,e);this.Oa=c;this.C=h;this.Ha=l;this.Nb=m;this.Ca=n;this.I=p;this.D=q;this.Za=q7a(b,c)};
s7a=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];K1().forEach(function(b){a.push(b)});
return{Ae:a,Rf:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
J2=function(a,b,c,d,e,f,h,l,m,n,p,q,r){P1.call(this,f,a,b,e);this.Oa=c;this.C=h;this.J=l;this.Ha=m;this.Nb=n;this.Ca=p;this.I=q;this.D=r;this.Za=q7a(b,c)};
t7a=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.t(K1()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Ae:a,Rf:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
K2=function(a){this.Ha=a;this.j=!1};
u7a=function(a,b,c){gN.call(this,"survey",a,{},b,c)};
v7a=function(a,b,c,d,e,f,h){P1.call(this,c,a,b,d);this.C=e;this.Ha=f;this.Ca=h};
w7a=function(a,b,c,d,e,f,h,l,m,n){this.vc=a;this.Ha=b;this.Oa=c;this.C=d;this.Mb=e;this.u=f;this.B=h;this.Nb=l;this.Ca=m;this.j=n};
L2=function(a){g.C.call(this);this.B=a;this.Jj=!0;this.Wb=new Map;this.j=new Map;this.u=new Map};
x7a=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.t(b);for(var d=b.next();!d.done;d=b.next())(d=a.u.get(d.value.triggerId))&&c.push(d)}return c};
y7a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Xf=Y(function(){return new hN(b.V())});
g.E(this,this.Xf);this.vc=Y(function(){return new u2(b)});
g.E(this,this.vc);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.Pe=Y(function(){return new x2(b)});
g.E(this,this.Pe);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Lf=Y(function(){return new t2(d)});
g.E(this,this.Lf);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,"SLOT_TYPE_ABOVE_FEED",f.Dj)});
g.E(this,this.Wd);this.dg=Y(function(){return new y2(b)});
g.E(this,this.dg);this.cf=Y(function(){return new z2});
g.E(this,this.cf);this.hn=Y(function(){return new D1});
g.E(this,this.hn);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.xf=Y(function(){return new w2(b,f.Ca,f.Oa)});
g.E(this,this.xf);this.qf=Y(function(){return new Z6a(b)});
g.E(this,this.qf);this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.hf=Y(function(){return new E1});
this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.Xh=new f2(g2,M2,function(l,m,n,p){return O0(f.Ab.get(),l,m,n,p)},this.ac,this.Ib,this.Ab,this.Jb,this.Ca,this.Va);
g.E(this,this.Xh);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va,this.xf);this.qg=Y(function(){return h});
this.Zs=h;this.Dj=new e2(this.ac,this.Ib,this.qg,this.xf,this.Ha,this.Ca,this.Oa,this.qf);g.E(this,this.Dj);this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.Ih=Y(function(){return new F1(f.Lf,f.Ab,f.Jb,f.Ca,f.Oa,f.Ha,f.qf)});
g.E(this,this.Ih);this.Qd=Y(function(){return new G1});
g.E(this,this.Qd);this.Mf=new l2(a,this.vc,this.Ca);g.E(this,this.Mf);this.Gb=new m2(a);g.E(this,this.Gb);this.Hu=new B2(a);g.E(this,this.Hu);this.Yf=new n2(a,this.qg);g.E(this,this.Yf);this.Oe=new o2(a,this.wc,this.Ha,this.Va);g.E(this,this.Oe);this.Av=new D2(a,this.Va);g.E(this,this.Av);this.He=new p2(a);g.E(this,this.He);this.Vh=new q2(a);g.E(this,this.Vh);this.xw=new L2(a);g.E(this,this.xw);this.Gd=Y(function(){return new h2});
g.E(this,this.Gd);this.Yh=Y(function(){return new i2(f.Ha)});
g.E(this,this.Yh);this.rS=Y(function(){return new k7a(f.vc,f.Oa,a,f.Pc,f.Mb)});
g.E(this,this.rS);this.Hh=Y(function(){return new I1(f.Yc)});
g.E(this,this.Hh);this.Mh=Y(function(){return new O1(f.Ca,f.Oa,f.He,f.Mb)});
g.E(this,this.Mh);this.Wh=Y(function(){return new X6a(a,f.He,f.Va,f.qf,f.Ha,f.Oa,f.Td,f.xf,f.Mb,f.hf,f.Pe,f.wc,f.Mc,f.zd,f.Xf,f.Nb,f.dg,f.Ca,f.Pc)});
g.E(this,this.Wh);this.RW=Y(function(){return new x6a(f.Ha,f.Oa,f.Ca)});
g.E(this,this.RW);this.Um=Y(function(){return new w7a(f.vc,f.Ha,f.Oa,f.Pc,f.Mb,f.Hu,f.xw,f.Nb,f.Ca,c)});
g.E(this,this.Um);this.AY=Y(function(){return new m7a(f.vc)});
g.E(this,this.AY);this.nK=new r2(a,this.hn,this.eb);g.E(this,this.nK);this.Bn=new s2(a,this.cf,this.Jb,this.Va,this.eb,this.Ca);g.E(this,this.Bn);this.rf={Ov:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Dj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tf]]),Tp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Ih],["SLOT_TYPE_ABOVE_FEED",this.Qd],["SLOT_TYPE_FORECASTING",this.Qd],["SLOT_TYPE_IN_PLAYER",this.Qd],["SLOT_TYPE_PLAYER_BYTES",this.Qd],["SLOT_TYPE_PLAYER_UNDERLAY",this.Qd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Qd]]),al:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Mf],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Gb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Gb],
["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Gb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Gb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Hu],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yf],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Oe],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Oe],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Oe],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Oe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Av],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Av],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",
this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.xw]]),Wq:new Map([["SLOT_TYPE_ABOVE_FEED",this.Gd],["SLOT_TYPE_AD_BREAK_REQUEST",this.Gd],["SLOT_TYPE_FORECASTING",this.Gd],["SLOT_TYPE_IN_PLAYER",this.Gd],["SLOT_TYPE_PLAYER_BYTES",this.Yh],["SLOT_TYPE_PLAYER_UNDERLAY",this.Gd],["SLOT_TYPE_PLAYBACK_TRACKING",this.Gd]]),yq:new Map([["SLOT_TYPE_ABOVE_FEED",this.rS],["SLOT_TYPE_AD_BREAK_REQUEST",
this.Hh],["SLOT_TYPE_FORECASTING",this.Mh],["SLOT_TYPE_PLAYER_BYTES",this.Wh],["SLOT_TYPE_PLAYBACK_TRACKING",this.RW],["SLOT_TYPE_IN_PLAYER",this.Um],["SLOT_TYPE_PLAYER_UNDERLAY",this.AY]])};this.listeners=[this.Pc.get()];this.yv={Yc:this.Yc,Aq:this.cf.get(),Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,Tm:this.eb.get(),zq:this.hn.get(),Tl:this.Mf,Kj:this.Pc.get(),An:this.Va.get()}};
z7a=function(a,b,c,d,e,f,h,l,m,n){this.vc=a;this.Ha=b;this.Oa=c;this.C=d;this.Mb=e;this.u=f;this.B=h;this.Nb=l;this.Ca=m;this.j=n};
A7a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Xf=Y(function(){return new hN(b.V())});
g.E(this,this.Xf);this.vc=Y(function(){return new u2(b)});
g.E(this,this.vc);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.Pe=Y(function(){return new x2(b)});
g.E(this,this.Pe);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Lf=Y(function(){return new t2(d)});
g.E(this,this.Lf);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,null,f.Dj)});
g.E(this,this.Wd);this.dg=Y(function(){return new y2(b)});
g.E(this,this.dg);this.cf=Y(function(){return new z2});
g.E(this,this.cf);this.hn=Y(function(){return new D1});
g.E(this,this.hn);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.xf=Y(function(){return new w2(b,f.Ca,f.Oa)});
this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.hf=Y(function(){return new E1});
g.E(this,this.hf);this.Xh=new f2(g2,M2,function(l,m,n,p){return O0(f.Ab.get(),l,m,n,p)},this.ac,this.Ib,this.Ab,this.Jb,this.Ca,this.Va);
g.E(this,this.Xh);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va,this.xf);this.qg=Y(function(){return h});
this.Zs=h;this.Dj=new e2(this.ac,this.Ib,this.qg,this.xf,this.Ha,this.Ca,this.Oa);g.E(this,this.Dj);this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.Ih=Y(function(){return new F1(f.Lf,f.Ab,f.Jb,f.Ca,f.Oa,f.Ha)});
g.E(this,this.Ih);this.Qd=Y(function(){return new G1});
g.E(this,this.Qd);this.Mf=new l2(a,this.vc,this.Ca);g.E(this,this.Mf);this.Gb=new m2(a);g.E(this,this.Gb);this.Hu=new B2(a);g.E(this,this.Hu);this.Yf=new n2(a,this.qg);g.E(this,this.Yf);this.Oe=new o2(a,this.wc,this.Ha,this.Va);g.E(this,this.Oe);this.He=new p2(a);g.E(this,this.He);this.Vh=new q2(a);g.E(this,this.Vh);this.xw=new L2(a);g.E(this,this.xw);this.Gd=Y(function(){return new h2});
g.E(this,this.Gd);this.Yh=Y(function(){return new i2(f.Ha)});
g.E(this,this.Yh);this.Hh=Y(function(){return new I1(f.Yc)});
g.E(this,this.Hh);this.Mh=Y(function(){return new O1(f.Ca,f.Oa,f.He,f.Mb)});
g.E(this,this.Mh);this.Um=Y(function(){return new z7a(f.vc,f.Ha,f.Oa,f.Pc,f.Mb,f.Hu,f.xw,f.Nb,f.Ca,c)});
g.E(this,this.Um);this.Wh=Y(function(){return new d2(a,f.He,f.Oa,f.Mb,f.hf,f.Pe,f.Va,f.Ha,f.wc,f.Mc,f.zd,f.Xf,f.Nb,f.dg,f.Ca)});
g.E(this,this.Wh);this.nK=new r2(a,this.hn,this.eb);g.E(this,this.nK);this.Bn=new s2(a,this.cf,this.Jb,this.Va,this.eb,this.Ca);g.E(this,this.Bn);this.rf={Ov:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Dj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tf]]),Tp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Ih],["SLOT_TYPE_FORECASTING",this.Qd],["SLOT_TYPE_IN_PLAYER",this.Qd],["SLOT_TYPE_PLAYER_BYTES",this.Qd]]),al:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Gb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",
this.Gb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Gb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Hu],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",
this.Vh],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.xw]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gd],["SLOT_TYPE_FORECASTING",this.Gd],["SLOT_TYPE_IN_PLAYER",this.Gd],["SLOT_TYPE_PLAYER_BYTES",this.Yh]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Mh],["SLOT_TYPE_IN_PLAYER",this.Um],["SLOT_TYPE_PLAYER_BYTES",this.Wh]])};this.listeners=[this.Pc.get()];this.yv={Yc:this.Yc,Aq:this.cf.get(),Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,
Tm:this.eb.get(),zq:this.hn.get(),Tl:this.Mf,Kj:this.Pc.get(),An:this.Va.get()}};
B7a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Xf=Y(function(){return new hN(b.V())});
g.E(this,this.Xf);this.vc=Y(function(){return new u2(b)});
g.E(this,this.vc);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.Pe=Y(function(){return new x2(b)});
g.E(this,this.Pe);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Lf=Y(function(){return new t2(d)});
g.E(this,this.Lf);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,null,null)});
g.E(this,this.Wd);this.dg=Y(function(){return new y2(b)});
g.E(this,this.dg);this.cf=Y(function(){return new z2});
g.E(this,this.cf);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.hf=Y(function(){return new E1});
g.E(this,this.hf);this.Xh=new f2(g2,M2,function(l,m,n,p){return O0(f.Ab.get(),l,m,n,p)},this.ac,this.Ib,this.Ab,this.Jb,this.Ca,this.Va);
g.E(this,this.Xh);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va);this.qg=Y(function(){return h});
this.Zs=h;this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.Ih=Y(function(){return new F1(f.Lf,f.Ab,f.Jb,f.Ca,f.Oa,f.Ha)});
g.E(this,this.Ih);this.Qd=Y(function(){return new G1});
g.E(this,this.Qd);this.Mf=new l2(a,this.vc,this.Ca);g.E(this,this.Mf);this.Gb=new m2(a);g.E(this,this.Gb);this.Yf=new n2(a,this.qg);g.E(this,this.Yf);this.Oe=new o2(a,this.wc,this.Ha,this.Va);g.E(this,this.Oe);this.He=new p2(a);g.E(this,this.He);this.Vh=new q2(a);g.E(this,this.Vh);this.Gd=Y(function(){return new h2});
g.E(this,this.Gd);this.Yh=Y(function(){return new i2(f.Ha)});
g.E(this,this.Yh);this.Hh=Y(function(){return new I1(f.Yc)});
g.E(this,this.Hh);this.Mh=Y(function(){return new O1(f.Ca,f.Oa,f.He,f.Mb)});
g.E(this,this.Mh);this.NW=Y(function(){return new K5a(f.vc,f.Ha,f.Oa,f.Pc,c,f.Ca)});
g.E(this,this.NW);this.Wh=Y(function(){return new d2(a,f.He,f.Oa,f.Mb,f.hf,f.Pe,f.Va,f.Ha,f.wc,f.Mc,f.zd,f.Xf,f.Nb,f.dg,f.Ca)});
g.E(this,this.Wh);this.Bn=new s2(a,this.cf,this.Jb,this.Va,this.eb,this.Ca);g.E(this,this.Bn);this.rf={Ov:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tf]]),Tp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ih],["SLOT_TYPE_FORECASTING",this.Qd],["SLOT_TYPE_IN_PLAYER",this.Qd],["SLOT_TYPE_PLAYER_BYTES",
this.Qd]]),al:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Gb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Gb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Yf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gd],["SLOT_TYPE_ABOVE_FEED",this.Gd],["SLOT_TYPE_FORECASTING",this.Gd],["SLOT_TYPE_IN_PLAYER",this.Gd],["SLOT_TYPE_PLAYER_BYTES",this.Yh]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",
this.Hh],["SLOT_TYPE_FORECASTING",this.Mh],["SLOT_TYPE_IN_PLAYER",this.NW],["SLOT_TYPE_PLAYER_BYTES",this.Wh]])};this.listeners=[this.Pc.get()];this.yv={Yc:this.Yc,Aq:this.cf.get(),Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,Tm:this.eb.get(),zq:null,Tl:this.Mf,Kj:this.Pc.get(),An:this.Va.get()}};
C7a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Xf=Y(function(){return new hN(b.V())});
g.E(this,this.Xf);this.vc=Y(function(){return new u2(b)});
g.E(this,this.vc);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.Pe=Y(function(){return new x2(b)});
g.E(this,this.Pe);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Lf=Y(function(){return new t2(d)});
g.E(this,this.Lf);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,null,null)});
g.E(this,this.Wd);this.dg=Y(function(){return new y2(b)});
g.E(this,this.dg);this.cf=Y(function(){return new z2});
g.E(this,this.cf);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.hf=Y(function(){return new E1});
g.E(this,this.hf);this.Xh=new f2(g2,M2,function(l,m,n,p){return O0(f.Ab.get(),l,m,n,p)},this.ac,this.Ib,this.Ab,this.Jb,this.Ca,this.Va);
g.E(this,this.Xh);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va);this.qg=Y(function(){return h});
this.Zs=h;this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.Ih=Y(function(){return new F1(f.Lf,f.Ab,f.Jb,f.Ca,f.Oa,f.Ha)});
g.E(this,this.Ih);this.Qd=Y(function(){return new G1});
g.E(this,this.Qd);this.Mf=new l2(a,this.vc,this.Ca);g.E(this,this.Mf);this.Gb=new m2(a);g.E(this,this.Gb);this.Yf=new n2(a,this.qg);g.E(this,this.Yf);this.Oe=new o2(a,this.wc,this.Ha,this.Va);g.E(this,this.Oe);this.He=new p2(a);g.E(this,this.He);this.Vh=new q2(a);g.E(this,this.Vh);this.Gd=Y(function(){return new h2});
g.E(this,this.Gd);this.Yh=Y(function(){return new i2(f.Ha)});
g.E(this,this.Yh);this.Hh=Y(function(){return new I1(f.Yc)});
g.E(this,this.Hh);this.Mh=Y(function(){return new O1(f.Ca,f.Oa,f.He,f.Mb)});
g.E(this,this.Mh);this.Um=Y(function(){return new K5a(f.vc,f.Ha,f.Oa,f.Pc,c,f.Ca)});
g.E(this,this.Um);this.Wh=Y(function(){return new d2(a,f.He,f.Oa,f.Mb,f.hf,f.Pe,f.Va,f.Ha,f.wc,f.Mc,f.zd,f.Xf,f.Nb,f.dg,f.Ca)});
g.E(this,this.Wh);this.Bn=new s2(a,this.cf,this.Jb,this.Va,this.eb,this.Ca);g.E(this,this.Bn);this.rf={Ov:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tf]]),Tp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ih],["SLOT_TYPE_FORECASTING",this.Qd],["SLOT_TYPE_IN_PLAYER",this.Qd],["SLOT_TYPE_PLAYER_BYTES",
this.Qd]]),al:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Gb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Gb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Yf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gd],["SLOT_TYPE_FORECASTING",this.Gd],["SLOT_TYPE_IN_PLAYER",this.Gd],["SLOT_TYPE_PLAYER_BYTES",this.Yh]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Mh],["SLOT_TYPE_IN_PLAYER",this.Um],["SLOT_TYPE_PLAYER_BYTES",
this.Wh]])};this.listeners=[this.Pc.get()];this.yv={Yc:this.Yc,Aq:this.cf.get(),Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,Tm:this.eb.get(),zq:null,Tl:this.Mf,Kj:this.Pc.get(),An:this.Va.get()}};
N2=function(a,b,c,d,e,f,h,l,m){T1.call(this,a,b,c,d,e,f,h,m);this.Bm=l};
D7a=function(){var a=I5a();a.Ae.push("metadata_type_ad_info_ad_metadata");return a};
E7a=function(a,b,c,d,e,f){this.vc=a;this.Ha=b;this.Oa=c;this.u=d;this.Bm=e;this.j=f};
F7a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Bm=Y(function(){return new v6a(b)});
g.E(this,this.Bm);this.Xf=Y(function(){return new hN(b.V())});
g.E(this,this.Xf);this.vc=Y(function(){return new u2(b)});
g.E(this,this.vc);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.Pe=Y(function(){return new x2(b)});
g.E(this,this.Pe);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Lf=Y(function(){return new t2(d)});
g.E(this,this.Lf);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,null,null)});
g.E(this,this.Wd);this.dg=Y(function(){return new y2(b)});
g.E(this,this.dg);this.cf=Y(function(){return new z2});
g.E(this,this.cf);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.hf=Y(function(){return new E1});
g.E(this,this.hf);this.Xh=new f2(g6a,M2,function(l,m,n,p){return B4a(f.Ab.get(),l,m,n,p)},this.ac,this.Ib,this.Ab,this.Jb,this.Ca,this.Va);
g.E(this,this.Xh);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va);this.qg=Y(function(){return h});
this.Zs=h;this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.Ih=Y(function(){return new F1(f.Lf,f.Ab,f.Jb,f.Ca,f.Oa,f.Ha)});
g.E(this,this.Ih);this.Qd=Y(function(){return new G1});
g.E(this,this.Qd);this.Mf=new l2(a,this.vc,this.Ca);g.E(this,this.Mf);this.Gb=new m2(a);g.E(this,this.Gb);this.Yf=new n2(a,this.qg);g.E(this,this.Yf);this.Oe=new o2(a,this.wc,this.Ha,this.Va);g.E(this,this.Oe);this.He=new p2(a);g.E(this,this.He);this.Vh=new q2(a);g.E(this,this.Vh);this.Gd=Y(function(){return new h2});
g.E(this,this.Gd);this.Yh=Y(function(){return new i2(f.Ha)});
g.E(this,this.Yh);this.Hh=Y(function(){return new I1(f.Yc)});
g.E(this,this.Hh);this.Mh=Y(function(){return new O1(f.Ca,f.Oa,f.He,f.Mb)});
g.E(this,this.Mh);this.Wh=Y(function(){return new d2(a,f.He,f.Oa,f.Mb,f.hf,f.Pe,f.Va,f.Ha,f.wc,f.Mc,f.zd,f.Xf,f.Nb,f.dg,f.Ca)});
g.E(this,this.Wh);this.WY=Y(function(){return new E7a(f.vc,f.Ha,f.Oa,f.Pc,f.Bm,c)});
g.E(this,this.WY);this.Bn=new s2(a,this.cf,this.Jb,this.Va,this.eb,this.Ca);g.E(this,this.Bn);this.rf={Ov:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tf]]),Tp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ih],["SLOT_TYPE_FORECASTING",this.Qd],["SLOT_TYPE_IN_PLAYER",this.Qd],["SLOT_TYPE_PLAYER_BYTES",
this.Qd]]),al:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Gb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Gb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",
this.Yf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gd],["SLOT_TYPE_FORECASTING",this.Gd],["SLOT_TYPE_IN_PLAYER",this.Gd],["SLOT_TYPE_PLAYER_BYTES",this.Yh]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",
this.Mh],["SLOT_TYPE_IN_PLAYER",this.WY],["SLOT_TYPE_PLAYER_BYTES",this.Wh]])};this.listeners=[this.Pc.get()];this.yv={Yc:this.Yc,Aq:this.cf.get(),Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,Tm:this.eb.get(),zq:null,Tl:this.Mf,Kj:this.Pc.get(),An:this.Va.get()}};
G7a=function(a,b,c,d,e,f,h){this.vc=a;this.Ha=b;this.Oa=c;this.u=d;this.Bm=e;this.j=f;this.Ca=h};
H7a=function(a,b,c,d,e){g.C.call(this);var f=this;this.eb=Y(function(){return new LD});
g.E(this,this.eb);this.Ab=Y(function(){return new c1(f.eb)});
g.E(this,this.Ab);this.Pc=Y(function(){return new a1});
g.E(this,this.Pc);this.ac=Y(function(){return new Y0(a)});
g.E(this,this.ac);this.Ib=Y(function(){return new i1(f.eb,f.Ab,f.Ca)});
g.E(this,this.Ib);this.Td=Y(function(){return new n1});
g.E(this,this.Td);this.Bm=Y(function(){return new v6a(b)});
g.E(this,this.Bm);this.Xf=Y(function(){return new hN(b.V())});
g.E(this,this.Xf);this.vc=Y(function(){return new u2(b)});
g.E(this,this.vc);this.Nb=Y(function(){return new r0(e)});
g.E(this,this.Nb);this.Mc=Y(function(){return new xO(b)});
g.E(this,this.Mc);this.wc=Y(function(){return new p1(b)});
g.E(this,this.wc);this.Pe=Y(function(){return new x2(b)});
g.E(this,this.Pe);this.zd=Y(function(){return new q1(b)});
g.E(this,this.zd);this.Ca=Y(function(){return new r1(b)});
g.E(this,this.Ca);this.Lf=Y(function(){return new t2(d)});
g.E(this,this.Lf);this.Jb=Y(function(){return new d_(f.Ca)});
g.E(this,this.Jb);this.Wd=Y(function(){return new W0(f.eb,f.Ib,f.Ab,f.Ca,f.Jb,null,f.Dj,3)});
g.E(this,this.Wd);this.dg=Y(function(){return new y2(b)});
g.E(this,this.dg);this.cf=Y(function(){return new z2});
g.E(this,this.cf);this.Va=Y(function(){return new z1(b,f.Td,f.Ca)});
g.E(this,this.Va);this.Qb=new m1(this.Ca,this.Jb,this.Va);g.E(this,this.Qb);this.xf=Y(function(){return new w2(b,f.Ca,f.Oa)});
g.E(this,this.xf);this.qf=Y(function(){return new Z6a(b)});
g.E(this,this.qf);this.Ha=Y(function(){return new A1(b,f.Va,f.Ca)});
g.E(this,this.Ha);this.hf=Y(function(){return new E1});
this.Mb=Y(function(){return new t1(f.Ha,b)});
g.E(this,this.Mb);this.Oa=Y(function(){return new w1(b,f.Pc,f.Mb,f.Va)});
g.E(this,this.Oa);this.Uc=new HD(this.ac,this.Wd,c,this.Ca,a,this.Va,this.Ha,this.Mc);g.E(this,this.Uc);var h=new o1(b,this.Uc,this.Ha,this.Va,this.xf);this.qg=Y(function(){return h});
this.Zs=h;this.Xh=new f2(h6a,M2,function(l,m,n,p){return B4a(f.Ab.get(),l,m,n,p)},this.ac,this.Ib,this.Ab,this.Jb,this.Ca,this.Va);
g.E(this,this.Xh);this.Dj=new e2(this.ac,this.Ib,this.qg,this.xf,this.Ha,this.Ca,this.Oa,this.qf);g.E(this,this.Dj);this.tf=new $0(this.ac,this.Ib,this.wc,this.qg);g.E(this,this.tf);this.Yc=new xC(this.Ca,this.ac,this.Ib,this.Wd,this.Va,this.tf,c);g.E(this,this.Yc);this.Ih=Y(function(){return new F1(f.Lf,f.Ab,f.Jb,f.Ca,f.Oa,f.Ha,f.qf)});
g.E(this,this.Ih);this.Qd=Y(function(){return new G1});
g.E(this,this.Qd);this.Mf=new l2(a,this.vc,this.Ca);g.E(this,this.Mf);this.Gb=new m2(a);g.E(this,this.Gb);this.Yf=new n2(a,this.qg);g.E(this,this.Yf);this.Oe=new o2(a,this.wc,this.Ha,this.Va);g.E(this,this.Oe);this.Av=new D2(a,this.Va);g.E(this,this.Av);this.He=new p2(a);g.E(this,this.He);this.Vh=new q2(a);g.E(this,this.Vh);this.Gd=Y(function(){return new h2});
g.E(this,this.Gd);this.Yh=Y(function(){return new i2(f.Ha)});
g.E(this,this.Yh);this.Hh=Y(function(){return new I1(f.Yc)});
g.E(this,this.Hh);this.Mh=Y(function(){return new O1(f.Ca,f.Oa,f.He,f.Mb)});
g.E(this,this.Mh);this.Wh=Y(function(){return new X6a(a,f.He,f.Va,f.qf,f.Ha,f.Oa,f.Td,f.xf,f.Mb,f.hf,f.Pe,f.wc,f.Mc,f.zd,f.Xf,f.Nb,f.dg,f.Ca,f.Pc)});
g.E(this,this.Wh);this.Um=Y(function(){return new G7a(f.vc,f.Ha,f.Oa,f.Pc,f.Bm,c,f.Ca)});
g.E(this,this.Um);this.Bn=new s2(a,this.cf,this.Jb,this.Va,this.eb,this.Ca);g.E(this,this.Bn);this.rf={Ov:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Yc],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Dj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Xh],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Uc],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tf]]),Tp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ih],["SLOT_TYPE_FORECASTING",this.Qd],
["SLOT_TYPE_IN_PLAYER",this.Qd],["SLOT_TYPE_PLAYER_BYTES",this.Qd]]),al:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Mf],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Gb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Gb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Gb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Gb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",
this.Gb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Yf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Oe],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Oe],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Av],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Av],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.He],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Yf],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Vh]]),Wq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Gd],["SLOT_TYPE_FORECASTING",
this.Gd],["SLOT_TYPE_IN_PLAYER",this.Gd],["SLOT_TYPE_PLAYER_BYTES",this.Yh]]),yq:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Hh],["SLOT_TYPE_FORECASTING",this.Mh],["SLOT_TYPE_PLAYER_BYTES",this.Wh],["SLOT_TYPE_IN_PLAYER",this.Um]])};this.listeners=[this.Pc.get()];this.yv={Yc:this.Yc,Aq:this.cf.get(),Di:this.Ca.get(),rb:this.Nb.get(),qt:this.Ha.get(),Uc:this.Uc,Tm:this.eb.get(),zq:null,Tl:this.Mf,Kj:this.Pc.get(),An:this.Va.get()}};
J7a=function(a,b,c,d){g.C.call(this);var e=this;this.j=I7a(function(){return e.u},a,b,c,d);
g.E(this,this.j);this.u=(new h2a(this.j)).B();g.E(this,this.u)};
O2=function(a){return a.j.yv};
I7a=function(a,b,c,d,e){try{var f=b.V();if(g.DK(f))var h=new y7a(a,b,c,d,e);else if(g.GK(f))h=new A7a(a,b,c,d,e);else if("WEB_MUSIC_EMBEDDED_PLAYER"===g.rJ(f))h=new C7a(a,b,c,d,e);else if(uK(f))h=new B7a(a,b,c,d,e);else if(g.nK(f))h=new F7a(a,b,c,d,e);else if(g.mK(f))h=new H7a(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.V(),GD("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,I7a:h.j.cver,H7a:h.j.ctheme,
G7a:h.j.cplayer,c8a:h.playerStyle}),new l5a(a,b,c,d,e)}};
K7a=function(a){FQ.call(this,a)};
L7a=function(a,b,c,d,e){NQ.call(this,a,{G:"div",N:"ytp-ad-timed-pie-countdown-container",W:[{G:"svg",N:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},W:[{G:"circle",N:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{G:"circle",N:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{G:"circle",N:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.B=this.Da("ytp-ad-timed-pie-countdown-inner");this.C=this.Da("ytp-ad-timed-pie-countdown-outer");
this.u=Math.ceil(10*Math.PI);this.hide()};
M7a=function(a,b,c,d,e,f){eQ.call(this,a,{G:"div",N:"ytp-ad-action-interstitial",X:{tabindex:"0"},W:[{G:"div",N:"ytp-ad-action-interstitial-background-container"},{G:"div",N:"ytp-ad-action-interstitial-slot",W:[{G:"div",N:"ytp-ad-action-interstitial-card",W:[{G:"div",N:"ytp-ad-action-interstitial-image-container"},{G:"div",N:"ytp-ad-action-interstitial-headline-container"},{G:"div",N:"ytp-ad-action-interstitial-description-container"},{G:"div",N:"ytp-ad-action-interstitial-action-button-container"}]}]}]},
"ad-action-interstitial",b,c,d);this.pP=e;this.gI=f;this.navigationEndpoint=this.j=this.skipButton=this.u=this.actionButton=null;this.Ja=this.Da("ytp-ad-action-interstitial-image-container");this.J=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-image");g.E(this,this.J);this.J.Ea(this.Ja);this.Ga=this.Da("ytp-ad-action-interstitial-headline-container");this.D=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-headline");
g.E(this,this.D);this.D.Ea(this.Ga);this.Aa=this.Da("ytp-ad-action-interstitial-description-container");this.C=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-description");g.E(this,this.C);this.C.Ea(this.Aa);this.Ya=this.Da("ytp-ad-action-interstitial-background-container");this.Z=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-action-interstitial-background",!0);g.E(this,this.Z);this.Z.Ea(this.Ya);this.Qa=this.Da("ytp-ad-action-interstitial-action-button-container");
this.slot=this.Da("ytp-ad-action-interstitial-slot");this.B=new Jz;g.E(this,this.B);this.hide()};
N7a=function(a){var b=g.kf("html5-video-player");b&&g.Up(b,"ytp-ad-display-override",a)};
R7a=function(a,b,c,d){eQ.call(this,a,{G:"div",N:"ytp-ad-overlay-slot",W:[{G:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",b,c,d);this.J=[];this.fb=this.Aa=this.C=this.Ya=this.Ja=null;this.Qa=!1;this.D=null;this.Z=0;a=this.Da("ytp-ad-overlay-container");this.Ga=new WQ(a,45E3,6E3,.3,.4);g.E(this,this.Ga);this.B=O7a(this);g.E(this,this.B);this.B.Ea(a);this.u=P7a(this);g.E(this,this.u);this.u.Ea(a);this.j=Q7a(this);g.E(this,this.j);this.j.Ea(a);this.hide()};
O7a=function(a){var b=new g.dQ({G:"div",N:"ytp-ad-text-overlay",W:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",W:[{G:"button",N:"ytp-ad-overlay-close-button",W:[uQ(S7a)]}]},{G:"div",N:"ytp-ad-overlay-title",ra:"{{title}}"},{G:"div",N:"ytp-ad-overlay-desc",ra:"{{description}}"},{G:"div",Ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],ra:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){P2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){P2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Zo);b.hide();return b};
P7a=function(a){var b=new g.dQ({G:"div",Ia:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",W:[{G:"button",N:"ytp-ad-overlay-close-button",W:[uQ(S7a)]}]},{G:"div",N:"ytp-ad-overlay-text-image",W:[{G:"img",X:{src:"{{imageUrl}}"}}]},{G:"div",N:"ytp-ad-overlay-title",ra:"{{title}}"},{G:"div",N:"ytp-ad-overlay-desc",ra:"{{description}}"},{G:"div",Ia:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
ra:"{{displayUrl}}"}]});a.S(b.Da("ytp-ad-overlay-title"),"click",function(c){P2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-link"),"click",function(c){P2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Zo);a.S(b.Da("ytp-ad-overlay-text-image"),"click",a.F7);b.hide();return b};
Q7a=function(a){var b=new g.dQ({G:"div",N:"ytp-ad-image-overlay",W:[{G:"div",N:"ytp-ad-overlay-ad-info-button-container"},{G:"div",N:"ytp-ad-overlay-close-container",W:[{G:"button",N:"ytp-ad-overlay-close-button",W:[uQ(S7a)]}]},{G:"div",N:"ytp-ad-overlay-image",W:[{G:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.S(b.Da("ytp-ad-overlay-image"),"click",function(c){P2(a,b.element,c)});
a.S(b.Da("ytp-ad-overlay-close-container"),"click",a.Zo);b.hide();return b};
T7a=function(a,b){if(b){var c=g.K(b,S0)||null;if(null==c)g.CD(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.kf("video-ads ytp-ad-module")||null,null==b)g.CD(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Aa=new g.dQ({G:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.E(a,a.Aa),a.Aa.Ea(b),b=new KQ(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.Aa.element,!1),g.E(a,b),b.init(fN("ad-info-hover-text-button"),
c,a.macros),a.D){b.Ea(a.D,0);b.subscribe("f",a.h5,a);b.subscribe("e",a.XN,a);a.S(a.D,"click",a.i5);var d=g.kf("ytp-ad-button",b.element);a.S(d,"click",function(){var e;if(g.K(null==(e=g.K(c.button,g.mM))?void 0:e.serviceEndpoint,kFa))a.Qa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.fb=b}else g.CD(Error("Ad info button container within overlay ad was not present."))}else g.DD(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
V7a=function(a,b){if(U7a(a,Q2)||a.api.zg())return!1;var c=fQ(b.title),d=fQ(b.description);if(g.Tb(c)||g.Tb(d))return!1;a.Zf(a.B.element,b.trackingParams||null);a.B.updateValue("title",fQ(b.title));a.B.updateValue("description",fQ(b.description));a.B.updateValue("displayUrl",fQ(b.displayUrl));b.navigationEndpoint&&g.Cb(a.J,b.navigationEndpoint);a.B.show();a.Ga.start();a.Ua(a.B.element,!0);a.S(a.B.element,"mouseover",function(){a.Z++});
return!0};
W7a=function(a,b){if(U7a(a,Q2)||a.api.zg())return!1;var c=fQ(b.title),d=fQ(b.description);if(g.Tb(c)||g.Tb(d))return!1;a.Zf(a.u.element,b.trackingParams||null);a.u.updateValue("title",fQ(b.title));a.u.updateValue("description",fQ(b.description));a.u.updateValue("displayUrl",fQ(b.displayUrl));a.u.updateValue("imageUrl",GEa(b.image));b.navigationEndpoint&&g.Cb(a.J,b.navigationEndpoint);a.Ya=b.imageNavigationEndpoint||null;a.u.show();a.Ga.start();a.Ua(a.u.element,!0);a.S(a.u.element,"mouseover",function(){a.Z++});
return!0};
X7a=function(a,b){if(a.api.zg())return!1;var c=HEa(b.image),d=c;c.width<Q2.width&&(d=Q2);if(0===c.width||0===c.height||U7a(a,d))return!1;a.Zf(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",GEa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Cb(a.J,b.navigationEndpoint);b=a.j.Da("ytp-ad-image-overlay");g.Hm(b,"max-width",c.width+"px");a.j.show();a.Ua(a.j.element,!0);a.S(a.j.element,"mouseover",function(){a.Z++;a.api.CN("invideo-overlay",
a.layoutId)});
a.S(a.j.element,"mouseout",function(){a.api.BN("invideo-overlay",a.layoutId)});
return!0};
U7a=function(a,b){var c=a.api.jb().Ij(),d=a.api.zk(!0,!1);return(b=p7a(c,c.height-(d.height+d.top),b))?(a.Ja&&b&&(c=g.md(a.macros),c.ERRORCODE=b.mE.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?s0(a.rb,a.Ja,a.layoutId,c):g.CD(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
P2=function(a,b,c){var d=g.md(a.macros),e=g.Sm(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Qm(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.Z.toString()}};
b=g.t(a.J);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?s0(a.rb,c,a.layoutId,d):g.CD(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
Y7a=function(a,b){a=a.api.getRootNode();g.Up(a,"ytp-ad-overlay-open",b);g.Up(a,"ytp-ad-overlay-closed",!b)};
Z7a=function(a,b,c,d,e){NQ.call(this,a,{G:"div",N:"ytp-ad-message-overlay",W:[{G:"div",N:"ytp-ad-message-slot"}]},"ad-message",b,c,d,e);var f=this;this.Z=-1;this.B=0;this.J=!1;this.Aa=this.Da("ytp-ad-message-slot");this.u=new g.dQ({G:"span",N:"ytp-ad-message-container"});this.u.Ea(this.Aa);g.E(this,this.u);this.messageText=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.E(this,this.messageText);this.messageText.Ea(this.u.element);this.C=new g.QQ(this.u,400,
!1,100,function(){f.hide()});
g.E(this,this.C);this.hide()};
$7a=function(a,b){a=a.api.getRootNode();g.Up(a,"ytp-ad-overlay-open",b);g.Up(a,"ytp-ad-overlay-closed",!b)};
a8a=function(a,b,c,d){eQ.call(this,a,{G:"div",N:"ytp-ad-underlay-companion",W:[{G:"div",N:"ytp-ad-underlay-side-container",W:[{G:"div",N:"ytp-ad-underlay-image-container"},{G:"div",N:"ytp-ad-underlay-description-container"},{G:"div",N:"ytp-ad-underlay-headline-container"},{G:"div",N:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",b,c,d);this.actionButton=null;this.Aa=this.Da("ytp-ad-underlay-image-container");this.B=new BQ(this.api,this.layoutId,this.interactionLoggingClientData,
this.rb,"ytp-ad-underlay-image");g.E(this,this.B);this.B.Ea(this.Aa);this.Z=this.Da("ytp-ad-underlay-headline-container");this.u=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-underlay-headline");g.E(this,this.u);this.u.Ea(this.Z);this.J=this.Da("ytp-ad-underlay-description-container");this.C=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-underlay-description");g.E(this,this.C);this.C.Ea(this.J);this.D=this.Da("ytp-ad-underlay-action-button-container");
this.j=this.Da("ytp-ad-underlay-side-container");this.hide()};
b8a=function(a){var b=g.kf("html5-video-player");b&&g.Up(b,"ytp-ad-display-override",a)};
R2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
eQ.call(this,a,{G:"div",N:"ytp-ad-survey-answer"},"survey-answer",b,c,d);this.index=e;this.u=f;this.j=null;this.toggledLoggingParams="";this.answer=this.Da("ytp-ad-survey-answer");this.hide()};
c8a=function(a,b,c,d){eQ.call(this,a,{G:"div",N:"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()};
S2=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];a.V().K("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-submit-button-rounded");vQ.call(this,a,b,c,d,e,"survey-submit")};
T2=function(a,b,c,d,e){eQ.call(this,a,{G:"div",N:"ytp-ad-survey-player-overlay",W:[{G:"div",N:"ytp-ad-survey-player-overlay-instream-info"},{G:"div",N:"ytp-ad-survey-player-overlay-skip-preview-submit",W:[{G:"div",N:"ytp-ad-survey-player-overlay-skip-or-preview"},{G:"div",N:"ytp-ad-survey-player-overlay-submit"}]},{G:"div",N:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",b,c,d);this.B=e;this.u=this.j=null;this.C=this.Da("ytp-ad-survey-player-overlay-instream-info");
this.D=this.Da("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Da("ytp-ad-survey-player-overlay-submit");g.E(this,this.B);this.hide()};
U2=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
eQ.call(this,a,{G:"div",N:"ytp-ad-survey-question",W:[{G:"div",Ia:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{G:"div",Ia:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{G:"div",Ia:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{G:"div",N:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Z=f;this.C=null;this.u=[];this.j=null;this.question=this.Da("ytp-ad-survey-question");this.Aa=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.B=g.Ra()};
d8a=function(a,b,c,d){d=new R2(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,d,a.Z);d.Ea(a.answers);d.init(fN("survey-answer"),b,c);a.u.push(d)};
f8a=function(a,b){if(b){var c=b.background;c&&g.K(c,e8a)&&(c=(c=g.K(c,e8a).image)&&AQ(c)||"",g.Tb(c)?g.DD(Error("Found ThumbnailDetails without valid image URL")):g.Hm(a.Aa,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.CD(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.B=g.Ra();a.j=new cR(a.api,b.durationMilliseconds);g.E(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.K(b.instreamAdPlayerOverlay,
j3a))try{var d=new T2(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.j);d.Ea(a.playerOverlay);d.init(fN("survey-player-overlay"),g.K(b.instreamAdPlayerOverlay,j3a),a.macros);a.C=d;g.E(a,d);a.mX()}catch(e){g.CD(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.CD(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new kR(a.api,a.j),b.Ea(a.playerOverlay),
g.E(a,b)):g.CD(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.CD(Error("addCommonComponents() needs to be called before starting countdown."))};
g8a=function(a){function b(c){return{toString:function(){return c()}}}
a.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var c=new Date;return(Math.round(c.valueOf()/1E3)+-60*c.getTimezoneOffset()).toString()});
a.macros.SURVEY_ELAPSED_MS=b(function(){return(g.Ra()-a.B).toString()})};
h8a=function(a,b,c,d,e){U2.call(this,a,b,c,d,"survey-question-multi-select");this.J=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.D=null;this.hide()};
i8a=function(a,b,c){a.noneOfTheAbove=new c8a(a.api,a.layoutId,a.interactionLoggingClientData,a.rb);a.noneOfTheAbove.Ea(a.answers);a.noneOfTheAbove.init(fN("survey-none-of-the-above"),b,c)};
k8a=function(a){a.u.forEach(function(b){b.j.toggleButton(!1)});
j8a(a,!0)};
j8a=function(a,b){var c=a.C;a=l8a(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof ZQ&&!c.j.C&&pFa(c.j,!1));c.u&&(a?c.u.show():c.u.hide())};
l8a=function(a){return a.u.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
V2=function(a,b,c,d,e){U2.call(this,a,b,c,d,"survey-question-single-select",function(h){f.api.V().K("supports_multi_step_on_desktop")&&e([h])});
var f=this;this.hide()};
W2=function(a,b,c,d){eQ.call(this,a,{G:"div",N:"ytp-ad-survey",W:[{G:"div",N:"ytp-ad-survey-questions"}]},"survey",b,c,d);this.questions=[];this.u=[];this.conditioningRules=[];this.j=0;this.D=this.Da("ytp-ad-survey-questions");this.hide()};
o8a=function(a,b){var c=a.u[b],d;null==(d=a.B)||d.dispose();g.K(c,wN)?m8a(a,g.K(c,wN),a.macros):g.K(c,xN)&&n8a(a,g.K(c,xN),a.macros);a.j=b};
m8a=function(a,b,c){var d=new V2(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.C.bind(a));d.Ea(a.D);d.init(fN("survey-question-single-select"),b,c);a.api.V().K("supports_multi_step_on_desktop")?a.B=d:a.questions.push(d);g.E(a,d)};
n8a=function(a,b,c){var d=new h8a(a.api,a.layoutId,a.interactionLoggingClientData,a.rb,a.C.bind(a));d.Ea(a.D);d.init(fN("survey-question-multi-select"),b,c);a.api.V().K("supports_multi_step_on_desktop")?a.B=d:a.questions.push(d);g.E(a,d)};
X2=function(a,b,c,d){eQ.call(this,a,{G:"div",N:"ytp-ad-survey-interstitial",W:[{G:"div",N:"ytp-ad-survey-interstitial-contents",W:[{G:"div",N:"ytp-ad-survey-interstitial-logo",W:[{G:"div",N:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",N:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,c,d);this.j=this.actionButton=null;this.interstitial=this.Da("ytp-ad-survey-interstitial");this.u=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.QQ(this,500,!1,300);g.E(this,this.transition)};
p8a=function(a,b){b=b&&AQ(b)||"";if(g.Tb(b))g.DD(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;if(g.mf&&10>document.documentMode)c=le;else{var d=document;"function"===typeof HTMLTemplateElement&&(d=g.qf("TEMPLATE").content.ownerDocument);d=d.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=vla(d.style)}b=new je([c,Lba({"background-image":'url("'+b+'")'})].map(tga).join(""),ie);a.style.cssText=ke(b)}};
q8a=function(a){var b=g.kf("html5-video-player");b&&g.Up(b,"ytp-ad-display-override",a)};
Y2=function(a,b,c){FQ.call(this,a);this.api=a;this.rb=b;this.u={};a=new g.U({G:"div",Ia:["video-ads","ytp-ad-module"]});g.E(this,a);cK&&g.Qp(a.element,"ytp-ads-tiny-mode");this.D=new XP(a.element);g.E(this,this.D);g.NS(this.api,a.element,4);U2a(c)&&(c=new g.U({G:"div",Ia:["ytp-ad-underlay"]}),g.E(this,c),this.B=new XP(c.element),g.E(this,this.B),g.NS(this.api,c.element,0));g.E(this,XEa())};
r8a=function(a,b){a=g.jd(a.u,b.id,null);null==a&&g.DD(Error("Component not found for element id: "+b.id));return a||null};
s8a=function(a){g.CT.call(this,a);var b=this;this.u=this.xe=null;this.created=!1;this.fu=new zP(this.player);this.B=function(){function d(){return b.xe}
if(null!=b.u)return b.u;var e=iEa({Dl:a.getVideoData(1)});e=new q1a({I1:d,ou:e.l3(),l2:d,W4:d,Tl:O2(b.j).Tl,Wl:e.YL(),An:O2(b.j).An,F:b.player,Di:O2(b.j).Di,Oa:b.j.j.Oa,Kj:O2(b.j).Kj,zd:b.j.j.zd});b.u=e.IZ;return b.u};
this.j=new J7a(this.player,this,this.fu,this.B);g.E(this,this.j);var c=a.V();!sK(c)||g.mK(c)||uK(c)||(g.E(this,new Y2(a,O2(this.j).rb,O2(this.j).Di)),g.E(this,new K7a(a)))};
t8a=function(a){a.created!==a.loaded&&GD("Created and loaded are out of sync")};
v8a=function(a){g.CT.prototype.load.call(a);var b=O2(a.j).Di;zsa(b.F.V().K("html5_reduce_ecatcher_errors"));try{a.player.getRootNode().classList.add("ad-created")}catch(n){GD(n instanceof Error?n:String(n))}var c=a.B(),d=a.player.getVideoData(1),e=d&&d.videoId||"",f=d&&d.getPlayerResponse()||{},h=(!a.player.V().experiments.ob("debug_ignore_ad_placements")&&f&&f.adPlacements||[]).map(function(n){return n.adPlacementRenderer}),l=((null==f?void 0:f.adSlots)||[]).map(function(n){return g.K(n,gra)});
f=f.playerConfig&&f.playerConfig.daiConfig&&f.playerConfig.daiConfig.enableDai||!1;var m=d&&d.fd()||!1;b=u8a(h,l,b,f,m,O2(a.j).Tm);1<=b.Bu.length&&g.DK(a.player.V())&&(null==d||d.xa("abv45",{rs:b.Bu.map(function(n){return Object.keys(n.renderer||{}).join("_")}).join("__")}));
h=d&&d.clientPlaybackNonce||"";d=d&&d.Du||!1;l=1E3*a.player.getDuration(1);a.xe=new TP(a,a.player,a.fu,c,O2(a.j));sEa(a.xe,b.Bu);a.j.j.Zs.Nj(h,l,d,b.nH,b.vS,b.nH.concat(b.Bu),f,e);UP(a.xe)};
w8a=function(a,b){b===a.Gx&&(a.Gx=void 0)};
x8a=function(a){a.xe?O2(a.j).Uc.rM()||a.xe.rM()||VP(O2(a.j).qt):GD("AdService is null when calling maybeUnlockPrerollIfReady")};
y8a=function(a){a=g.t(O2(a.j).Kj.Vk.keys());for(var b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&"core"===b.bb)return!0;GD("Ads Playback Not Managed By Controlflow");return!1};
z8a=function(a){a=g.t(O2(a.j).Kj.Vk.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
yC=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=O2(a.j).Di,h=a.player.getVideoData(1),l=h&&h.getPlayerResponse()||{};l=l&&l.playerConfig&&l.playerConfig.daiConfig&&l.playerConfig.daiConfig.enableDai||!1;h=h&&h.fd()||!1;c=u8a(b,c,f,l,h,O2(a.j).Tm);kra(O2(a.j).Yc,d,c.nH,c.vS,b,e);a.xe&&0<c.Bu.length&&(a=a.xe,b=c.Bu,b=pEa(a,b),b=qEa(a,b),rEa(a,b))};
u8a=function(a,b,c,d,e,f){b={Bu:[],nH:[],vS:b};a=g.t(a);for(var h=a.next();!h.done;h=a.next())if((h=h.value)&&null!=h.renderer){var l=h.renderer;if(!R4a(c)){var m=void 0,n=void 0,p=void 0,q=void 0,r=f;g.K(null==(q=l.sandwichedLinearAdRenderer)?void 0:q.adVideoStart,EP)?(m=g.K(null==(p=l.sandwichedLinearAdRenderer)?void 0:p.adVideoStart,EP),r=n1a(m,r),g.kO(l.sandwichedLinearAdRenderer.adVideoStart,EP,r)):g.K(null==(n=l.linearAdSequenceRenderer)?void 0:n.adStart,EP)&&(p=g.K(null==(m=l.linearAdSequenceRenderer)?
void 0:m.adStart,EP),r=n1a(p,r),g.kO(l.linearAdSequenceRenderer.adStart,EP,r))}r=c;m=e;d||null!=l.instreamSurveyAdRenderer||null!=l.sandwichedLinearAdRenderer&&null!=l.sandwichedLinearAdRenderer.linearAd&&null!=g.K(l.sandwichedLinearAdRenderer.linearAd,v0)||null!=l.videoAdTrackingRenderer||null!=l.clientForecastingAdRenderer||null!=l.actionCompanionAdRenderer||null!=l.imageCompanionAdRenderer||null!=l.shoppingCompanionCarouselRenderer||null!=l.adsEngagementPanelRenderer||null!=l.invideoOverlayAdRenderer||
null!=l.adBreakServiceRenderer?l=!0:null!=l.instreamVideoAdRenderer||null!=l.remoteSlotsRenderer?(l=m)||(g.FK(r.F.V())||sK(r.F.V())||g.tK(r.F.V())?l=!0:(GD("Single VOD on legacy path."),l=!1)):l=l.linearAdSequenceRenderer&&l.linearAdSequenceRenderer.linearAds?l.linearAdSequenceRenderer.adStart?R4a(r):m||N1a(r):null!=l.sandwichedLinearAdRenderer?p4a(r):!1;l?b.nH.push(h):(GD("Bulleit AdPlacementRenderer found"),b.Bu.push(h))}return b};
A8a=function(){if(!g.mf)return!1;try{return new ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
g.C8a=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=g.we(a);return b.parseFromString(g.ve(a),"application/xml")}if(B8a){b=new ActiveXObject("MSXML2.DOMDocument");b.resolveExternals=!1;b.validateOnParse=!1;try{b.setProperty("ProhibitDTD",!0),b.setProperty("MaxXMLSize",2048),b.setProperty("MaxElementDepth",256)}catch(c){}b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
g.Z2=function(a){g.C.call(this);this.callback=a;this.j=new gq(0,0,.4,0,.2,1,1,1);this.delay=new g.Gp(this.next,window,this);g.E(this,this.delay)};
g.D8a=function(a){var b=a.V();if(!b.Wc||b.B||!g.fK(b))return!1;var c=g.rS(a);return(a=b.K("shorts_mode_to_player_api")?a.Sb():c.Sb())?(c=c.zk(),315<=Math.min(c.width,c.height)):a?!1:!c.Wg()};
g.$2=function(a,b){g.U.call(this,{G:"div",N:"ytp-more-videos-view",X:{tabIndex:"-1"}});var c=this;this.api=a;this.I=b;this.B=!0;this.C=new g.bI(this);this.u=[];this.suggestionData=[];this.columns=this.containerWidth=this.Z=this.D=this.j=0;this.title=new g.U({G:"h2",N:"ytp-related-title",ra:"{{title}}"});this.previous=new g.U({G:"button",Ia:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},W:[g.hQ()]});this.T=new g.Z2(function(d){c.suggestions.element.scrollLeft=-d});
this.next=new g.U({G:"button",Ia:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},W:[g.iQ()]});g.E(this,this.C);this.J=a.V().C;g.E(this,this.title);this.title.Ea(this.element);this.suggestions=new g.U({G:"div",N:"ytp-suggestions"});g.E(this,this.suggestions);this.suggestions.Ea(this.element);g.E(this,this.previous);this.previous.Ea(this.element);this.previous.Ra("click",this.KZ,this);g.E(this,this.T);E8a(this);g.E(this,this.next);this.next.Ea(this.element);this.next.Ra("click",
this.JZ,this);this.C.S(this.api,"appresize",this.Db);this.C.S(this.api,"fullscreentoggled",this.Hq);this.C.S(this.api,"videodatachange",this.onVideoDataChange);this.Db(this.api.jb().getPlayerSize());this.onVideoDataChange()};
E8a=function(a){for(var b={Fw:0};16>b.Fw;b={Fw:b.Fw},++b.Fw){var c=new g.U({G:"a",N:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.V().ea,"aria-label":"{{aria_label}}"},W:[{G:"div",N:"ytp-suggestion-image"},{G:"div",N:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{G:"div",N:"ytp-suggestion-title",ra:"{{title}}"},{G:"div",N:"ytp-suggestion-author",ra:"{{author_and_views}}"},{G:"div",X:{"data-is-live":"{{is_live}}"},N:"ytp-suggestion-duration",
ra:"{{duration}}"}]}]});g.E(a,c);var d=c.Da("ytp-suggestion-link");g.Hm(d,"transitionDelay",b.Fw/20+"s");a.C.S(d,"click",function(e){return function(f){var h=e.Fw;if(a.B){var l=a.suggestionData[h],m=l.sessionData;g.fK(a.api.V())&&a.api.K("web_player_log_click_before_generating_ve_conversion_params")?(a.api.qb(a.u[h].element),h=l.Ak(),l={},g.nKa(a.api,l,"emb_rel_pause"),h=g.Zi(h,l),g.VT(h,a.api,f)):g.UT(f,a.api,a.J,m||void 0)&&a.api.Kn(l.videoId,m,l.playlistId)}else g.EO(f),document.activeElement.blur()}}(b));
c.Ea(a.suggestions.element);a.u.push(c);a.api.Zf(c.element,c)}};
F8a=function(a){if(a.api.V().K("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-a.j/(a.D+8)),c=Math.min(b+a.columns,a.suggestionData.length)-1;b<=c;b++)a.api.Ua(a.u[b].element,!0)};
g.a3=function(a){var b=a.I.yg()?32:16;b=a.Z/2+b;a.next.element.style.bottom=b+"px";a.previous.element.style.bottom=b+"px";b=a.j;var c=a.containerWidth-a.suggestionData.length*(a.D+8);g.Up(a.element,"ytp-scroll-min",0<=b);g.Up(a.element,"ytp-scroll-max",b<=c)};
H8a=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.u[c];f=d.isShortsModeEnabled()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Da("ytp-suggestion-link");g.Hm(e,"display","inline-block");G8a.test(l.title)&&(m.Da("ytp-suggestion-title").dir="rtl");G8a.test(f)&&(m.Da("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Live":l.lengthSeconds?
g.eR(l.lengthSeconds):"";var n=l.Ak(d.isShortsModeEnabled());if(g.fK(h)&&!h.K("web_player_log_click_before_generating_ve_conversion_params")){var p={};h.ya&&g.iS(p,h.loaderUrl);g.pS(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.Zi(n,g.hS(p,"emb_rel_pause"))}h.K("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.og(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.eI||g.dK?"will-change: opacity":void 0});f=m.Da("ytp-suggestion-image");d=d.isShortsModeEnabled()?l.wg("hq2.jpg"):l.wg();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.u[b].Da("ytp-suggestion-link"),g.Hm(c,"display","none");g.a3(a)};
aaa=[];da="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.ca=caa(this);ea("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;da(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
ea("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.ca[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&da(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var I8a="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ha(d,e)&&(a[e]=d[e])}return a};
ea("Object.assign",function(a){return a||I8a});
var gaa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},J8a=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=gaa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),K8a;
if("function"==typeof Object.setPrototypeOf)K8a=Object.setPrototypeOf;else{var L8a;a:{var M8a={a:!0},N8a={};try{N8a.__proto__=M8a;L8a=N8a.a;break a}catch(a){}L8a=!1}K8a=L8a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ia=K8a;
ka.prototype.T=function(a){this.u=a};
ka.prototype.return=function(a){this.B={return:a};this.j=this.D};
ka.prototype.Ka=function(a){this.j=a};
ea("Reflect",function(a){return a?a:{}});
ea("Reflect.construct",function(){return J8a});
ea("Reflect.setPrototypeOf",function(a){return a?a:ia?function(b,c){try{return ia(b,c),!0}catch(d){return!1}}:null});
ea("Promise",function(a){function b(h){this.j=0;this.B=void 0;this.u=[];this.J=!1;var l=this.C();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.u=function(h){if(null==this.j){this.j=[];var l=this;this.B(function(){l.D()})}this.j.push(h)};
var e=g.ca.setTimeout;c.prototype.B=function(h){e(h,0)};
c.prototype.D=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.C(n)}}}this.j=null};
c.prototype.C=function(h){this.B(function(){throw h;})};
b.prototype.C=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.ya),reject:h(this.D)}};
b.prototype.ya=function(h){if(h===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ga(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.oa(h):this.I(h)}};
b.prototype.oa=function(h){var l=void 0;try{l=h.then}catch(m){this.D(m);return}"function"==typeof l?this.Ja(l,h):this.I(h)};
b.prototype.D=function(h){this.T(2,h)};
b.prototype.I=function(h){this.T(1,h)};
b.prototype.T=function(h,l){if(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.B=l;2===this.j&&this.Aa();this.ea()};
b.prototype.Aa=function(){var h=this;e(function(){if(h.Z()){var l=g.ca.console;"undefined"!==typeof l&&l.error(h.B)}},1)};
b.prototype.Z=function(){if(this.J)return!1;var h=g.ca.CustomEvent,l=g.ca.Event,m=g.ca.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ca.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.B;return m(h)};
b.prototype.ea=function(){if(null!=this.u){for(var h=0;h<this.u.length;++h)f.u(this.u[h]);this.u=null}};
var f=new c;b.prototype.Ga=function(h){var l=this.C();h.dF(l.resolve,l.reject)};
b.prototype.Ja=function(h,l){var m=this.C();try{h.call(l,m.resolve,m.reject)}catch(n){m.reject(n)}};
b.prototype.then=function(h,l){function m(r,v){return"function"==typeof r?function(x){try{n(r(x))}catch(z){p(z)}}:v}
var n,p,q=new b(function(r,v){n=r;p=v});
this.dF(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.dF=function(h,l){function m(){switch(n.j){case 1:h(n.B);break;case 2:l(n.B);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.u?f.u(m):this.u.push(m);this.J=!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.t(h),p=n.next();!p.done;p=n.next())d(p.value).dF(l,m)})};
b.all=function(h){var l=g.t(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(x){return function(z){r[x]=z;v--;0==v&&n(r)}}
var r=[],v=0;do r.push(void 0),v++,d(m.value).dF(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
ea("Object.setPrototypeOf",function(a){return a||ia});
ea("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.t(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ha(m,h)){var n=new c;da(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ha(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ha(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ha(m,h)&&ha(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ha(m,h)&&ha(m[h],this.j)?delete m[h][this.j]:!1};
return b});
ea("Map",function(a){function b(){var l={};return l.previous=l.next=l.head=l}
function c(l,m){var n=l.j;return daa(function(){if(n){for(;n.head!=l.j;)n=n.previous;for(;n.next!=n.head;)return n=n.next,{done:!1,value:m(n)};n=null}return{done:!0,value:void 0}})}
function d(l,m){var n=m&&typeof m;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l.data_[n];if(p&&ha(l.data_,n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this.data_={};this.j=b();this.size=0;if(l){l=g.t(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.t([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this.data_[n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this.j,previous:this.j.previous,head:this.j,key:l,value:m},n.list.push(n.entry),this.j.previous.next=n.entry,this.j.previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this.data_[l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.data_={};this.j=this.j.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});
ea("Array.prototype.keys",function(a){return a?a:function(){return za(this,function(b){return b})}});
ea("Array.prototype.find",function(a){return a?a:function(b,c){return naa(this,b,c).QY}});
ea("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Aa(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Aa(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}});
ea("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Aa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ea("Set",function(a){function b(c){this.j=new Map;if(c){c=g.t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
ea("Array.prototype.values",function(a){return a?a:function(){return za(this,function(b,c){return c})}});
ea("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
ea("Array.prototype.entries",function(a){return a?a:function(){return za(this,function(b,c){return[b,c]})}});
ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
ea("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ea("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
ea("Int8Array.prototype.fill",Ca);ea("Uint8Array.prototype.fill",Ca);ea("Uint8ClampedArray.prototype.fill",Ca);ea("Int16Array.prototype.fill",Ca);ea("Uint16Array.prototype.fill",Ca);ea("Int32Array.prototype.fill",Ca);ea("Uint32Array.prototype.fill",Ca);ea("Float32Array.prototype.fill",Ca);ea("Float64Array.prototype.fill",Ca);ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ha(b,d)&&c.push([d,b[d]]);return c}});
ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Aa(this,b,"includes").indexOf(b,c||0)}});
ea("globalThis",function(a){return a||g.ca});
ea("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;
})})}});
ea("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});
ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return naa(this,b,c).i}});
ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)ha(b,d)&&c.push(b[d]);return c}});
ea("Math.sign",function(a){return a?a:function(b){b=Number(b);return 0===b||isNaN(b)?b:0<b?1:-1}});
ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ea("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Aa(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ea("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}});
ea("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.t(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});
ea("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(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}});
ea("Int8Array.prototype.copyWithin",Da);ea("Uint8Array.prototype.copyWithin",Da);ea("Uint8ClampedArray.prototype.copyWithin",Da);ea("Int16Array.prototype.copyWithin",Da);ea("Uint16Array.prototype.copyWithin",Da);ea("Int32Array.prototype.copyWithin",Da);ea("Uint32Array.prototype.copyWithin",Da);ea("Float32Array.prototype.copyWithin",Da);ea("Float64Array.prototype.copyWithin",Da);
ea("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)}});
ea("Number.parseInt",function(a){return a||parseInt});
pj=pj||{};g.Ea=this||self;Ka="closure_uid_"+(1E9*Math.random()>>>0);paa=0;g.k=Va.prototype;g.k.K1=function(a){var b=g.ya.apply(1,arguments),c=this.IL(b);c?c.push(new saa(a)):this.HX(a,b)};
g.k.HX=function(a){this.Rx.set(this.RT(g.ya.apply(1,arguments)),[new saa(a)])};
g.k.IL=function(){var a=this.RT(g.ya.apply(0,arguments));return this.Rx.has(a)?this.Rx.get(a):void 0};
g.k.o3=function(){var a=this.IL(g.ya.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.Rx.clear()};
g.k.RT=function(){var a=g.ya.apply(0,arguments);return a?a.join(","):"key"};g.w(Wa,Va);Wa.prototype.B=function(a){var b=g.ya.apply(1,arguments),c=0,d=this.o3(b);d&&(c=d.PS);this.HX(c+a,b)};g.w(Ya,Va);Ya.prototype.Sf=function(a){this.K1(a,g.ya.apply(1,arguments))};g.C.prototype.Eq=!1;g.C.prototype.isDisposed=function(){return this.Eq};
g.C.prototype.dispose=function(){this.Eq||(this.Eq=!0,this.qa())};
g.C.prototype.qa=function(){if(this.zm)for(;this.zm.length;)this.zm.shift()()};g.Ta(cb,Error);cb.prototype.name="CustomError";var fca;g.Ta(fb,cb);fb.prototype.name="AssertionError";g.ib.prototype.stopPropagation=function(){this.u=!0};
g.ib.prototype.preventDefault=function(){this.defaultPrevented=!0};var vaa,$l,Wm;vaa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.O8a=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.Ob=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Rn=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Yl=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
$l=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Ob)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Wm=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.Zl=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var Qb={};var lba=function(){if(!g.Ea.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Ea.addEventListener("test",c,b);g.Ea.removeEventListener("test",c,b)}catch(d){}return a}();var P8a=Ha(1,!0),ic=Ha(610401301,!1);Ha(899588437,!1);Ha(513561853,P8a);Ha(516931134,P8a);Ha(2147483644,!1);Ha(2147483645,!1);Ha(2147483646,P8a);Ha(2147483647,!0);var jc=!!g.Ga("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var cc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Jaa=/&/g,Kaa=/</g,Laa=/>/g,Maa=/"/g,Naa=/'/g,Oaa=/\x00/g,Iaa=/[\x00&<>"']/;var kc,Q8a=g.Ea.navigator;kc=Q8a?Q8a.userAgentData||null:null;Gc[" "]=function(){};var Im,ZW,$0a,R8a,S8a,T8a,bK,cK,U8a;g.dK=pc();g.mf=qc();g.oB=nc("Edge");g.HK=g.oB||g.mf;Im=nc("Gecko")&&!(ac(g.hc(),"WebKit")&&!nc("Edge"))&&!(nc("Trident")||nc("MSIE"))&&!nc("Edge");g.Pc=ac(g.hc(),"WebKit")&&!nc("Edge");ZW=Dc();$0a=Uaa();g.fz=Taa();R8a=Bc();S8a=nc("iPad");T8a=nc("iPod");bK=Cc();cK=ac(g.hc(),"KaiOS");
a:{var V8a="",W8a=function(){var a=g.hc();if(Im)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.oB)return/Edge\/([\d\.]+)/.exec(a);if(g.mf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Pc)return/WebKit\/(\S+)/.exec(a);if(g.dK)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
W8a&&(V8a=W8a?W8a[1]:"");if(g.mf){var X8a=Yaa();if(null!=X8a&&X8a>parseFloat(V8a)){U8a=String(X8a);break a}}U8a=V8a}var Ic=U8a,Waa={},Y8a;if(g.Ea.document&&g.mf){var Z8a=Yaa();Y8a=Z8a?Z8a:parseInt(Ic,10)||void 0}else Y8a=void 0;var Zaa=Y8a;var YMa=$aa("AnimationEnd"),zKa=$aa("TransitionEnd");g.Ta(Qc,g.ib);var $8a={2:"touch",3:"pen",4:"mouse"};
Qc.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)?Im&&(Hc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:$8a[a.pointerType]||"";this.state=a.state;this.j=a;a.defaultPrevented&&Qc.Gf.preventDefault.call(this)};
Qc.prototype.stopPropagation=function(){Qc.Gf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Qc.prototype.preventDefault=function(){Qc.Gf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var aba="closure_listenable_"+(1E6*Math.random()|0);var bba=0;var hba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=pd.prototype;g.k.add=function(a,b,c,d,e){var f=a.toString();a=this.listeners[f];a||(a=this.listeners[f]=[],this.j++);var h=sd(a,b,d,e);-1<h?(b=a[h],c||(b.cF=!1)):(b=new cba(b,this.src,f,!!d,e),b.cF=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=sd(e,b,c,d);return-1<b?(Sc(e[b]),g.tb(e,b),0==e.length&&(delete this.listeners[a],this.j--),!0):!1};
g.k.Ef=function(){var a=0,b;for(b in this.listeners){for(var c=this.listeners[b],d=0;d<c.length;d++)++a,Sc(c[d]);delete this.listeners[b];this.j--}};
g.k.WB=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=sd(a,b,c,d));return-1<e?a[e]:null};
g.k.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return g.Wc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var xd="closure_lm_"+(1E6*Math.random()|0),Dd={},nba=0,Ed="__closure_events_fn_"+(1E9*Math.random()>>>0);g.Ta(g.Fd,g.C);g.Fd.prototype[aba]=!0;g.k=g.Fd.prototype;g.k.addEventListener=function(a,b,c,d){g.ud(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){pba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.qO;if(b){var c=[];for(var d=1;b;b=b.qO)c.push(b),++d}b=this.D1;d=a.type||a;if("string"===typeof a)a=new g.ib(a,b);else if(a instanceof g.ib)a.target=a.target||b;else{var e=a;a=new g.ib(d,b);g.od(a,e)}e=!0;if(c)for(var f=c.length-1;!a.u&&0<=f;f--){var h=a.currentTarget=c[f];e=Jd(h,d,!0,a)&&e}a.u||(h=a.currentTarget=b,e=Jd(h,d,!0,a)&&e,a.u||(e=Jd(h,d,!1,a)&&e));if(c)for(f=0;!a.u&&f<c.length;f++)h=a.currentTarget=c[f],e=Jd(h,d,!1,a)&&e;return e};
g.k.qa=function(){g.Fd.Gf.qa.call(this);this.Hl&&this.Hl.Ef();this.qO=null};
g.k.Ra=function(a,b,c,d){return this.Hl.add(String(a),b,!1,c,d)};
g.k.CG=function(a,b,c,d){return this.Hl.add(String(a),b,!0,c,d)};
g.k.Hc=function(a,b,c,d){this.Hl.remove(String(a),b,c,d)};
g.k.WB=function(a,b,c,d){return this.Hl.WB(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Hl.hasListener(void 0!==a?String(a):void 0,b)};Kd.prototype.get=function(){if(0<this.u){this.u--;var a=this.j;this.j=a.next;a.next=null}else a=this.B();return a};try{(new self.OffscreenCanvas(0,0)).getContext("2d")}catch(a){}var lca=g.mf||g.Pc;var a9a={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Td;Vd.prototype.Qo=!0;Vd.prototype.Ll=function(){return this.j};
var uba={},tba={};g.Xd("");var vba={};Yd.prototype.toString=function(){return this.j.toString()};
Yd.prototype.Ll=function(){return this.j.toString()};Zd.prototype.toString=function(){return this.j+""};
Zd.prototype.Qo=!0;Zd.prototype.Ll=function(){return this.j.toString()};
var Bba=/%{(\w+)}/g,Aba=RegExp("^((https:)?//[0-9a-z.:[\\]-]+/|/[^/\\\\]|[^:/\\\\%]+/|[^:/\\\\%]*[?#]|about:blank#)","i"),yba={};ae.prototype.toString=function(){return this.j.toString()};
ae.prototype.Qo=!0;ae.prototype.Ll=function(){return this.j.toString()};
var Gba=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Fba=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,b9a;try{new URL("s://g"),b9a=!0}catch(a){b9a=!1}var Iba=b9a,Dba={},Hba=ce("about:invalid#zClosurez");var ie={};je.prototype.Ll=function(){return this.j};
je.prototype.toString=function(){return this.j.toString()};
var le=new je("",ie),Oba=RegExp("^[-+,.\"'%_!#/ a-zA-Z0-9\\[\\]]+$"),Nba=RegExp("\\b(url\\([ \t\n]*)('[ -&(-\\[\\]-~]*'|\"[ !#-\\[\\]-~]*\"|[!#-&*-\\[\\]-~]*)([ \t\n]*\\))","g"),Mba=RegExp("\\b(calc|cubic-bezier|fit-content|hsl|hsla|linear-gradient|matrix|minmax|radial-gradient|repeat|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?|steps|var)\\([-+*/0-9a-zA-Z.%#\\[\\], ]+\\)","g"),Pba=/\/\*/;var te={};ue.prototype.Ll=function(){return this.j.toString()};
ue.prototype.toString=function(){return this.j.toString()};
var c9a=/^[a-zA-Z0-9-]+$/,d9a={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},e9a={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Tba=new ue(g.Ea.trustedTypes&&g.Ea.trustedTypes.emptyHTML||"",te);var Xba=Nd(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);b=a.firstChild.firstChild;a.innerHTML=g.ve(Tba);return!b.parentElement}),$ba=/^[\w+/_-]+[=]{0,2}$/;g.k=g.Fe.prototype;g.k.clone=function(){return new g.Fe(this.x,this.y)};
g.k.equals=function(a){return a instanceof g.Fe&&Ge(this,a)};
g.k.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.k.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.k.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.k.scale=function(a,b){this.x*=a;this.y*="number"===typeof b?b:a;return this};g.k=g.He.prototype;g.k.clone=function(){return new g.He(this.width,this.height)};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.Bf=function(){return!Je(this)};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.wUa=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var gca={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=Te.prototype;g.k.ub=function(a){return We(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Da=function(a){return g.kf(a,this.j)};
g.k.createElement=function(a){return of(this.j,a)};
g.k.appendChild=g.uf;g.k.append=function(a,b){kca(Ue(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.xf;g.k.contains=g.zf;var Ef;Gf.prototype.add=function(a,b){var c=sca.get();c.set(a,b);this.u?this.u.next=c:this.j=c;this.u=c};
Gf.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.u=null),a.next=null);return a};
var sca=new Kd(function(){return new Hf},function(a){return a.reset()});
Hf.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
Hf.prototype.reset=function(){this.next=this.scope=this.fn=null};var If,Lf=!1,qca=new Gf;tca.prototype.reset=function(){this.context=this.u=this.B=this.j=null;this.C=!1};
var uca=new Kd(function(){return new tca},function(a){a.reset()});
g.Of.prototype.then=function(a,b,c){return Cca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.Of.prototype.$goog_Thenable=!0;g.k=g.Of.prototype;g.k.Zj=function(a,b){return Cca(this,null,a,b)};
g.k.catch=g.Of.prototype.Zj;g.k.cancel=function(a){if(0==this.j){var b=new Zf(a);g.Mf(function(){yca(this,b)},this)}};
g.k.F9=function(a){this.j=0;Nf(this,2,a)};
g.k.G9=function(a){this.j=0;Nf(this,3,a)};
g.k.W2=function(){for(var a;a=zca(this);)Aca(this,a,this.j,this.J);this.I=!1};
var Gca=oca;g.Ta(Zf,cb);Zf.prototype.name="cancel";g.Ta(g.$f,g.Fd);g.k=g.$f.prototype;g.k.enabled=!1;g.k.Gc=null;g.k.setInterval=function(a){this.Fi=a;this.Gc&&this.enabled?(this.stop(),this.start()):this.Gc&&this.stop()};
g.k.t9=function(){if(this.enabled){var a=g.Ra()-this.jV;0<a&&a<.8*this.Fi?this.Gc=this.gE.setTimeout(this.HS,this.Fi-a):(this.Gc&&(this.gE.clearTimeout(this.Gc),this.Gc=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.Gc||(this.Gc=this.gE.setTimeout(this.HS,this.Fi),this.jV=g.Ra())};
g.k.stop=function(){this.enabled=!1;this.Gc&&(this.gE.clearTimeout(this.Gc),this.Gc=null)};
g.k.qa=function(){g.$f.Gf.qa.call(this);this.stop();delete this.gE};g.w(g.cg,g.C);g.k=g.cg.prototype;g.k.sendIsolatedPayload=function(a){this.D=a;this.C=1};
g.k.gx=function(){var a=this.u.values();a=[].concat(g.u(a)).filter(function(b){return b.Rx.size});
a.length&&this.J.flush(a,this.D);Jca(a);this.B=0;this.j.enabled&&this.j.stop()};
g.k.jk=function(a){var b=g.ya.apply(1,arguments);this.u.has(a)||this.u.set(a,new Wa(a,b))};
g.k.Jx=function(a){var b=g.ya.apply(1,arguments);this.u.has(a)||this.u.set(a,new Ya(a,b))};
g.k.yl=function(a){this.wJ.apply(this,[a,1].concat(g.u(g.ya.apply(1,arguments))))};
g.k.wJ=function(a,b){var c=g.ya.apply(2,arguments),d=Ica(this,a);d&&d instanceof Wa&&(d.B(b,c),Hca(this))};
g.k.Sf=function(a,b){var c=g.ya.apply(2,arguments),d=Ica(this,a);d&&d instanceof Ya&&(d.Sf(b,c),Hca(this))};Kca.prototype.Sf=function(a,b,c,d,e){this.j.Sf("/client_streamz/po/w/rl",a,b,c,d,e)};
Lca.prototype.Sf=function(a,b,c){this.j.Sf("/client_streamz/po/w/el",a,b,c)};
Oca.prototype.Sf=function(a,b,c){this.j.Sf("/client_streamz/po/w/cl",a,b,c)};
Pca.prototype.Sf=function(a,b){this.j.Sf("/client_streamz/po/w/clt",a,b)};var Og=void 0,Ng,zda="undefined"!==typeof TextDecoder,Xca,Wca="undefined"!==typeof TextEncoder;var cz,dz;g.fJ=uc();cz=Bc()||nc("iPod");dz=nc("iPad");g.eK=Qaa();g.eI=vc();g.BA=wc()&&!Cc();var bda={},rg=null,cda=Im||g.Pc||"function"==typeof g.Ea.btoa;var lda="undefined"!==typeof Uint8Array,fda=!g.mf&&"function"===typeof btoa,jda=/[-_.]/g,hda={"-":"+",_:"/",".":"="},mda,ug={};var oda;vg.prototype.Bf=function(){return null==this.j};
vg.prototype.sizeBytes=function(){var a=xg(this);return a?a.length:0};var vda="function"===typeof Uint8Array.prototype.slice,Ag=0,Bg=0,sda="function"===typeof BigInt;g.k=Cg.prototype;g.k.init=function(a,b,c,d){d=void 0===d?{}:d;this.XE=void 0===d.XE?!1:d.XE;a&&(a=zg(a),this.u=a.buffer,this.D=a.rq,this.C=b||0,this.B=void 0!==c?this.C+c:this.u.length,this.j=this.C)};
g.k.free=function(){this.clear();100>Jg.length&&Jg.push(this)};
g.k.clear=function(){this.u=null;this.D=!1;this.j=this.B=this.C=0;this.XE=!1};
g.k.reset=function(){this.j=this.C};
g.k.advance=function(a){Dg(this,this.j+a)};
g.k.xJ=function(){var a=Gg(this);return 4294967296*Gg(this)+(a>>>0)};
var Jg=[];Kg.prototype.free=function(){this.j.clear();this.u=this.C=-1;100>b3.length&&b3.push(this)};
Kg.prototype.reset=function(){this.j.reset();this.B=this.j.j;this.u=this.C=-1};
Kg.prototype.advance=function(a){this.j.advance(a)};
var b3=[];var Cda,Fda;Zg.prototype.length=function(){return this.j.length};
Zg.prototype.end=function(){var a=this.j;this.j=[];return a};var eh="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():void 0;var qh={},f9a,Dh=Object.freeze(hh([],23));var Zda="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():"di";var ci;g.k=J.prototype;g.k.toJSON=function(){var a=this.Re,b;f9a?b=a:b=di(a,qea,void 0,void 0,!1,!1);return b};
g.k.jp=function(){f9a=!0;try{return JSON.stringify(this.toJSON(),oea)}finally{f9a=!1}};
g.k.clone=function(){return fi(this,!1)};
g.k.rq=function(){return jh(this.Re)};
g.k.pN=qh;g.k.toString=function(){return this.Re.toString()};var gi=Symbol(),ki=Symbol(),ji=Symbol(),ii=Symbol(),g9a=mi(function(a,b,c){if(1!==a.u)return!1;H(b,c,Hg(a.j));return!0},ni),h9a=mi(function(a,b,c){if(1!==a.u)return!1;
a=Hg(a.j);Hh(b,c,oh(a),0);return!0},ni),i9a=mi(function(a,b,c,d){if(1!==a.u)return!1;
Kh(b,c,d,Hg(a.j));return!0},ni),j9a=mi(function(a,b,c){if(0!==a.u)return!1;
H(b,c,Eg(a.j));return!0},oi),k9a=mi(function(a,b,c){if(0!==a.u)return!1;
a=Eg(a.j);Hh(b,c,a,0);return!0},oi),l9a=mi(function(a,b,c,d){if(0!==a.u)return!1;
Kh(b,c,d,Eg(a.j));return!0},oi),m9a=mi(function(a,b,c){if(0!==a.u)return!1;
H(b,c,Fg(a.j));return!0},pi),n9a=mi(function(a,b,c){if(0!==a.u)return!1;
a=Fg(a.j);Hh(b,c,a,0);return!0},pi),o9a=mi(function(a,b,c,d){if(0!==a.u)return!1;
Kh(b,c,d,Fg(a.j));return!0},pi),p9a=mi(function(a,b,c){if(1!==a.u)return!1;
H(b,c,a.j.xJ());return!0},function(a,b,c){Nda(a,c,Ah(b,c))}),q9a=mi(function(a,b,c){if(1!==a.u&&2!==a.u)return!1;
b=Eh(b,c,0,!1,jh(b.Re));if(2==a.u){c=Cg.prototype.xJ;var d=Fg(a.j)>>>0;for(d=a.j.j+d;a.j.j<d;)b.push(c.call(a.j))}else b.push(a.j.xJ());return!0},function(a,b,c){b=Fh(b,c,Wda);
if(null!=b)for(var d=0;d<b.length;d++)Nda(a,c,b[d])}),r9a=mi(function(a,b,c){if(0!==a.u)return!1;
H(b,c,Ig(a.j));return!0},Lea),s9a=mi(function(a,b,c,d){if(0!==a.u)return!1;
Kh(b,c,d,Ig(a.j));return!0},Lea),c3=mi(function(a,b,c){if(2!==a.u)return!1;
H(b,c,Pg(a));return!0},Mea),t9a=mi(function(a,b,c){if(2!==a.u)return!1;
a=Pg(a);Ih(b,c,a);return!0},function(a,b,c){b=Fh(b,c,Yda);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&dh(a,c,Yca(e))}}),u9a=mi(function(a,b,c,d){if(2!==a.u)return!1;
Kh(b,c,d,Pg(a));return!0},Mea),v9a=mi(function(a,b,c,d,e){if(2!==a.u)return!1;
Mg(a,gea(b,d,c),e);return!0},Nea),d3=mi(function(a,b,c,d,e){if(2!==a.u)return!1;
b=iea(b,c,d);Mg(a,b,e);return!0},function(a,b,c,d,e){b=Nh(b,d,c);
if(null!=b)for(d=0;d<b.length;d++){var f=Kda(a,c);e(b[d],a);Lda(a,f)}}),L9a=mi(function(a,b,c,d,e,f){if(2!==a.u)return!1;
(f=Jh(b,f))&&f!==c&&H(b,f,void 0,!1);b=gea(b,d,c);Mg(a,b,e);return!0},Nea),e3=mi(function(a,b,c){if(2!==a.u)return!1;
H(b,c,Ada(a));return!0},function(a,b,c){b=cea(b,c);
null!=b&&dh(a,c,zg(b).buffer)}),M9a=mi(function(a,b,c){if(2!==a.u)return!1;
a=Ada(a);Ih(b,c,lh(a,!1,!1,!1));return!0},function(a,b,c){b=Fh(b,c,gh(b.Re)&18?dea:eea);
if(null!=b)for(var d=0;d<b.length;d++){var e=b[d];null!=e&&dh(a,c,zg(e).buffer)}}),f3=mi(function(a,b,c){if(0!==a.u)return!1;
H(b,c,Fg(a.j)>>>0);return!0},function(a,b,c){b=Zh(b,c);
null!=b&&null!=b&&(ch(a,c,0),$g(a.j,b))}),N9a=mi(function(a,b,c){if(0!==a.u)return!1;
H(b,c,Fg(a.j));return!0},function(a,b,c){b=Ah(b,c);
null!=b&&(b=parseInt(b,10),ch(a,c,0),Ida(a.j,b))});g.w(Qea,J);var Pea=[1,2,3,4];g.w(ri,J);var wi=[1,2,3],O9a=[ri,1,u9a,wi,2,o9a,wi,3,s9a,wi];g.w(Rea,J);var P9a=[Rea,1,g9a,2,j9a];g.w(Tea,J);var Sea=[1],Q9a=[Tea,1,d3,P9a];g.w(si,J);var vi=[1,2,3],R9a=[si,1,l9a,vi,2,i9a,vi,3,L9a,Q9a,vi];g.w(ti,J);var Uea=[1],S9a=[ti,1,d3,O9a,2,v9a,R9a];g.w(Vea,J);var T9a=[Vea,1,c3,2,c3,3,r9a];g.w(Wea,J);var U9a=[Wea,1,c3,2,c3,3,m9a,4,r9a];g.w(Xea,J);var V9a=[1,2],W9a=[Xea,1,L9a,T9a,V9a,2,L9a,U9a,V9a];g.w(ui,J);ui.prototype.Km=function(){var a=Fh(this,3,Yda,void 0,2);if(void 0>=a.length)throw Error();return a[void 0]};
var Yea=[3,6,4];ui.prototype.j=Oea([ui,1,c3,5,p9a,2,v9a,W9a,3,t9a,6,q9a,4,d3,S9a]);g.w($ea,J);var Zea=[1];var gfa={};g.k=Gi.prototype;g.k.isEnabled=function(){if(!g.Ea.navigator.cookieEnabled)return!1;if(!this.Bf())return!0;this.set("TESTCOOKIESENABLED","1",{HG:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.m8a;d=c.Q8||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.HG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=cc(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{HG:0,path:b,domain:c});return d};
g.k.Xp=function(){return Hi(this).keys};
g.k.Ml=function(){return Hi(this).values};
g.k.Bf=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Hi(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Qy=new Gi("undefined"==typeof document?null:document);g.w(Ji,J);var kfa=[2];g.Ki.prototype.u=0;g.Ki.prototype.reset=function(){this.j=this.B=this.C;this.u=0};
g.Ki.prototype.getValue=function(){return this.B};lfa.prototype.jp=function(a){var b=[];Ni(this,a,b);return b.join("")};
var ofa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},nfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;Oi.prototype.B=null;Oi.prototype.getOptions=function(){return this.B||(this.B=this.C())};var X9a;g.Ta(Pi,Oi);Pi.prototype.j=function(){var a=qfa(this);return a?new ActiveXObject(a):new XMLHttpRequest};
Pi.prototype.C=function(){var a={};qfa(this)&&(a[0]=!0,a[1]=!0);return a};
X9a=new Pi;var Si=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),xfa=/#|$/,yfa=/[?&]($|#)/;g.Ta(g.nj,g.Fd);var Hfa=/^https?$/i,Y9a=["POST","PUT"],Afa=[];g.k=g.nj.prototype;g.k.j2=function(){this.dispose();g.wb(Afa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Z+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Z=a;this.C="";this.u=0;this.Aa=!1;this.B=!0;this.j=this.T?this.T.j():X9a.j();this.ya=this.T?this.T.getOptions():X9a.getOptions();this.j.onreadystatechange=(0,g.Oa)(this.yW,this);try{this.getStatus(),this.Ga=!0,this.j.open(b,String(a),!0),this.Ga=!1}catch(h){this.getStatus();Efa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.t(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.Ea.FormData&&a instanceof g.Ea.FormData;!g.rb(Y9a,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.t(c);for(d=b.next();!d.done;d=b.next())c=g.t(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.Ja&&(this.j.responseType=this.Ja);"withCredentials"in this.j&&this.j.withCredentials!==this.I&&(this.j.withCredentials=this.I);try{Gfa(this),0<this.J&&(this.La=Cfa(this.j),this.getStatus(),this.La?(this.j.timeout=this.J,this.j.ontimeout=(0,g.Oa)(this.lR,
this)):this.oa=g.ag(this.lR,this.J,this)),this.getStatus(),this.ea=!0,this.j.send(a),this.ea=!1}catch(h){this.getStatus(),Efa(this,h)}};
g.k.lR=function(){"undefined"!=typeof pj&&this.j&&(this.C="Timed out after "+this.J+"ms, aborting",this.u=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.k.abort=function(a){this.j&&this.B&&(this.getStatus(),this.B=!1,this.D=!0,this.j.abort(),this.D=!1,this.u=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),oj(this))};
g.k.qa=function(){this.j&&(this.B&&(this.B=!1,this.D=!0,this.j.abort(),this.D=!1),oj(this,!0));g.nj.Gf.qa.call(this)};
g.k.yW=function(){this.isDisposed()||(this.Ga||this.ea||this.D?Ffa(this):this.S6())};
g.k.S6=function(){Ffa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.qj(this)};
g.k.getStatus=function(){try{return 2<g.qj(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.C?this.C:String(this.C)};g.w(vj,J);g.w(wj,J);var Jfa=[1];g.w(xj,J);var aga=["platform","platformVersion","architecture","model","uaFullVersion"];new wj;g.w($h,J);g.w(Lfa,J);var Kfa=[1,2,3,4,5];g.w(yj,J);yj.prototype.K=function(){return Ch(this,Lfa,7)};
yj.prototype.WS=function(){return H(this,16,void 0,!1)};
var Mfa=[3,20,27];g.w(Ofa,J);var Nfa=[3,5];g.w(Qfa,J);var Pfa=[5];g.w(Rfa,J);var g3;g3=new function(a,b,c){this.j=a;this.fieldName=b;this.Nr=c;this.isRepeated=0;this.u=Mh;this.defaultValue=void 0}(175237375,{N7a:0},Rfa);g.w(Aj,g.Fd);g.k=Aj.prototype;g.k.qa=function(){this.zL();g.Fd.prototype.qa.call(this)};
g.k.dispatch=function(a){if(a instanceof yj)this.log(a);else{var b=new yj;a=a.jp();b=H(b,8,a);this.log(b)}};
g.k.log=function(a){a=a.clone();var b=this.fb++;H(a,21,b);this.componentId&&H(a,26,this.componentId);if(!Ah(a,1)){b=a;var c=Date.now().toString();H(b,1,c)}null==Ah(a,15)&&H(a,15,60*(new Date).getTimezoneOffset());this.B&&(b=this.B.clone(),I(a,Ji,16,b));for(;1E3<=this.u.length;)this.u.shift(),++this.J;this.u.push(a);this.dispatchEvent(new Yfa(a));this.oa||this.j.enabled||this.j.start()};
g.k.flush=function(a,b){var c=this;if(0===this.u.length)a&&a();else if(this.ya)Zfa(this.C,3),Xfa(this);else{var d=Date.now();if(this.Xa>d&&this.Aa<d)b&&b("throttled");else{Zfa(this.C,1);var e=this.C.wf(this.u,this.J,this.I);d={};var f=this.La();f&&(d.Authorization=f);var h=Ufa(this);this.sessionIndex&&(d["X-Goog-AuthUser"]=this.sessionIndex,h=$i(h,"authuser",this.sessionIndex));this.pageId&&(d["X-Goog-PageId"]=this.pageId,h=$i(h,"pageId",this.pageId));if(f&&this.Qa===f)b&&b("stale-auth-token");else{this.u=
[];this.j.enabled&&this.j.stop();this.J=0;var l=e.jp(),m;this.T&&this.T.isSupported(l.length)&&(m=this.T.compress(l));var n={url:h,body:l,Y1:1,dw:d,requestType:"POST",withCredentials:this.withCredentials,timeoutMillis:this.timeoutMillis},p=function(v){c.D.reset();c.j.setInterval(c.D.getValue());if(v){var x=null;try{var z=JSON.parse(v.replace(")]}'\n",""));x=new Qfa(z)}catch(B){}x&&(v=Number(Th(Ah(x,1),"-1")),0<v&&(c.Aa=Date.now(),c.Xa=c.Aa+v),x=g3.Nr?g3.u(x,g3.Nr,g3.j,!0):g3.isRepeated?g3.u(x,g3.j,
!0):g3.u(x,g3.j,g3.defaultValue,!0))&&(x=Uh(x,1,-1),-1!=x&&(c.Ja||Vfa(c,x)))}a&&a();c.I=0},q=function(v,x){var z=Nh(e,yj,3);
g.Li(c.D);c.j.setInterval(c.D.getValue());401===v&&f&&(c.Qa=f);void 0===x&&(x=500<=v&&600>v||401===v||0===v);x&&(c.u=z.concat(c.u),c.oa||c.j.enabled||c.j.start());b&&b("net-send-failed",v);++c.I},r=function(){c.network?c.network.send(n,p,q):c.Ya(n,p,q)};
m?m.then(function(v){n.dw["Content-Encoding"]="gzip";n.dw["Content-Type"]="application/binary";n.body=v;n.Y1=2;r()},function(){r()}):r()}}}};
g.k.zL=function(){$fa(this.C,!0);this.flush();$fa(this.C,!1)};
g.w(Yfa,g.ib);Sfa.prototype.wf=function(a,b,c){b=void 0===b?0:b;c=void 0===c?0:c;if(Ch(Mh(this.j,$h,1),xj,11)){var d=Cj(this);H(d,3,c)}c=this.j.clone();d=Date.now().toString();c=H(c,4,d);a=Qh(c,yj,3,a);b&&H(a,14,b);return a};g.Ta(Dj,g.C);
Dj.prototype.wf=function(){var a=new Aj(this.I,this.ea?this.ea:jfa,this.Ga,this.oa,this.C,this.D,!1,this.La,void 0,void 0,this.ya?this.ya:void 0);g.E(this,a);this.J&&zj(a.C,this.J);if(this.u){var b=this.u,c=Bj(a.C);H(c,7,b)}this.Z&&(a.T=this.Z);this.j&&(a.componentId=this.j);this.B&&((b=this.B)?(a.B||(a.B=new Ji),b=b.jp(),H(a.B,4,b)):a.B&&H(a.B,4,void 0,!1));this.Aa&&(c=this.Aa,a.B||(a.B=new Ji),b=a.B,c=null==c?Dh:Oda(c,1),H(b,2,c));this.T&&(b=this.T,a.Ja=!0,Vfa(a,b));this.Ja&&cga(a.C,this.Ja);return a};g.w(Ej,g.C);Ej.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new $ea,c=[],d=0;d<a.length;d++){var e=a[d],f=g.afa(e);c.push(f);e.clear()}Qh(b,ui,1,c);this.j.dispatch(b);this.j.flush()}};g.w(Fj,Error);Fj.prototype.toString=function(){var a="RpcError("+(fga(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Fj.prototype.name="RpcError";Hj.prototype.done=function(){this.logger.tV(this.j,Gj()-this.startMillis)};
Ij.prototype.done=function(){this.logger.fN(this.operation,Gj()-this.startMillis)};
g.k=hga.prototype;g.k.JC=function(){};
g.k.tV=function(){};
g.k.gN=function(a,b,c){return c};
g.k.sV=function(){};
g.k.fN=function(){};
g.k.rV=function(){};
g.k.ez=function(){};
g.k.DG=function(){};
g.k.qV=function(){};
g.k=iga.prototype;g.k.JC=function(a){this.clientError.j.yl("/client_streamz/po/w/cec",a,this.sf)};
g.k.tV=function(a,b){this.J.Sf(b,a,this.sf)};
g.k.gN=function(a,b,c){function d(h){var l=Gj()-f;e.T.Sf(l,a,b,h,e.sf)}
var e=this,f=Gj();c.then(function(){d(0)},function(h){h instanceof Fj?d(h.code):d(-1)});
return c};
g.k.sV=function(a){this.I.j.yl("/client_streamz/po/w/csc",a,this.sf)};
g.k.fN=function(a,b){this.B.Sf(b,a,this.sf)};
g.k.rV=function(a){this.C.Sf(a,this.sf)};
g.k.ez=function(a){this.j.j.yl("/client_streamz/po/w/ca",a,this.sf)};
g.k.DG=function(a){this.D.j.yl("/client_streamz/po/w/cta",a,this.sf)};
g.k.qV=function(){this.u.j.yl("/client_streamz/po/w/cen",this.sf)};kga.prototype.Sf=function(a,b){this.j.Sf("/client_streamz/bg/fil",a,b)};
mga.prototype.Sf=function(a,b){this.j.Sf("/client_streamz/bg/fsl",a,b)};var oga={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.w(rga,J);g.w(sga,J);g.w(Mj,J);var Z9a=qi(Mj);Mj.j="bfkj";Xj.prototype.snapshot=function(a){var b=this;if(this.j)throw Error("Already disposed");var c=Lj(),d;null!=(d=this.Aj)&&d.B.j.yl("/client_streamz/bg/fsc",d.sf);return this.u.then(function(e){var f=e.V1;return new Promise(function(h){f(function(l){var m;null!=(m=b.Aj)&&m.C.Sf(Lj()-c,m.sf);h(l)},[a.by,
a.e9])})})};
Xj.prototype.SX=function(a){if(this.j)throw Error("Already disposed");var b=Lj(),c;null!=(c=this.Aj)&&c.B.j.yl("/client_streamz/bg/fsc",c.sf);a=this.B([a.by,a.e9]);var d;null!=(d=this.Aj)&&d.C.Sf(Lj()-b,d.sf);return a};
Xj.prototype.dispose=function(){var a;null!=(a=this.Aj)&&a.j.gx();this.j=!0;this.u.then(function(b){(b=b.d9)&&b()})};
Xj.prototype.isDisposed=function(){return this.j};var woa={};g.w(Yj,vga);Yj.prototype.toString=function(){return this.j};var $9a;try{new URL("s://g"),$9a=!0}catch(a){$9a=!1}var wga=$9a;var xga=[bk("data"),bk("http"),bk("https"),bk("mailto"),bk("ftp"),new ak(function(a){return/^[^:]*([/?#]|$)/.test(a)})];g.w(ik,J);g.w(jk,J);Gga.prototype.EF=function(a,b){var c=this,d,e,f,h,l;return g.A(function(m){if(1==m.j){var n=new ik;d=Hh(n,1,c.sf,"");a&&Hh(d,2,a,"");b&&Hh(d,3,b,"");e=c.j();return g.y(m,c.client.create(d,e),2)}f=m.u;h=yg(Gh(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.Ea.TextDecoder)p=(new TextDecoder).decode(p);else if(8192>=p.length)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=Z9a(p);return n.call(m,p)}l=Mh(f,Mj,1);if(!l)throw Error("Missing field");return m.return(l)})};g.w(kk,J);var a$a=qi(kk);lk.prototype.UF=function(){return this.B};
lk.prototype.getMetadata=function(){return this.u};mk.prototype.getMetadata=function(){return this.j};
mk.prototype.UF=function(){return this.u};
mk.prototype.getStatus=function(){return null};nk.prototype.getName=function(){return this.name};
nk.prototype.getName=nk.prototype.getName;var b$a=new nk("/google.internal.waa.v1.Waa/Create",ik,kk,function(a){return a.jp()},a$a);g.w(ok,J);var Iga=new nk("/google.internal.waa.v1.Waa/GenerateIT",jk,ok,function(a){return a.jp()},qi(ok));var iha=Promise;g.w(pk,J);pk.prototype.getValue=function(){var a=Ah(this,2);if(Array.isArray(a)||a instanceof J)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Gh(this,2)};g.w(qk,J);qk.prototype.getMessage=function(){return g.ai(this,2)};
var Qga=qi(qk),Lga=[3];rk.prototype.on=function(a,b){"data"==a?this.B.push(b):"metadata"==a?this.D.push(b):"status"==a?this.I.push(b):"end"==a?this.C.push(b):"error"==a&&this.u.push(b);return this};
rk.prototype.removeListener=function(a,b){"data"==a?vk(this.B,b):"metadata"==a?vk(this.D,b):"status"==a?vk(this.I,b):"end"==a?vk(this.C,b):"error"==a&&vk(this.u,b);return this};
rk.prototype.cancel=function(){this.j.abort()};
rk.prototype.cancel=rk.prototype.cancel;rk.prototype.removeListener=rk.prototype.removeListener;rk.prototype.on=rk.prototype.on;g.Ta(g.wk,Oi);g.wk.prototype.j=function(){var a=new xk(this.I,this.D);this.u&&a.setCredentialsMode(this.u);return a};
g.wk.prototype.C=Ld({});g.wk.prototype.setCredentialsMode=function(a){this.u=a};
g.Ta(xk,g.Fd);g.k=xk.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.Z=a;this.ea=b;this.readyState=1;yk(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.T,method:this.Z,credentials:this.D,cache:void 0};a&&(b.body=a);(this.oa||g.Ea).fetch(new Request(this.ea,b)).then(this.N3.bind(this),this.kG.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.T=new Headers;this.status=0;this.B&&this.B.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,zk(this));this.readyState=0};
g.k.N3=function(a){if(this.j&&(this.C=a,this.u||(this.status=this.C.status,this.statusText=this.C.statusText,this.u=a.headers,this.readyState=2,yk(this)),this.j&&(this.readyState=3,yk(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.L3.bind(this),this.kG.bind(this));else if("undefined"!==typeof g.Ea.ReadableStream&&"body"in a){this.B=a.body.getReader();if(this.I){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.J=new TextDecoder;Rga(this)}else a.text().then(this.M3.bind(this),this.kG.bind(this))};
g.k.D3=function(a){if(this.j){if(this.I&&a.value)this.response.push(a.value);else if(!this.I){var b=a.value?a.value:new Uint8Array(0);if(b=this.J.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?zk(this):yk(this);3==this.readyState&&Rga(this)}};
g.k.M3=function(a){this.j&&(this.response=this.responseText=a,zk(this))};
g.k.L3=function(a){this.j&&(this.response=a,zk(this))};
g.k.kG=function(){this.j&&zk(this)};
g.k.setRequestHeader=function(a,b){this.T.append(a,b)};
g.k.getResponseHeader=function(a){return this.u?this.u.get(a.toLowerCase())||"":""};
g.k.getAllResponseHeaders=function(){if(!this.u)return"";for(var a=[],b=this.u.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
g.k.setCredentialsMode=function(a){this.D=a};
Object.defineProperty(xk.prototype,"withCredentials",{get:function(){return"include"===this.D},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.Bk.prototype.toString=function(){var a=[],b=this.D;b&&a.push(Ik(b,c$a,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.T)&&a.push(Ik(b,c$a,!0),"@"),a.push(g.Ke(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.B)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ik(c,"/"==c.charAt(0)?d$a:e$a,!0));(c=this.u.toString())&&a.push("?",c);(c=this.I)&&a.push("#",Ik(c,f$a));return a.join("")};
g.Bk.prototype.resolve=function(a){var b=this.clone(),c=!!a.D;c?g.Ck(b,a.D):c=!!a.T;c?b.T=a.T:c=!!a.j;c?g.Dk(b,a.j):c=null!=a.C;var d=a.B;if(c)g.Ek(b,a.C);else if(c=!!a.B){if("/"!=d.charAt(0))if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");-1!=e&&(d=b.B.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.Vb(e,"./")||g.Vb(e,"/.")){d=Rb(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=""!==a.u.toString();c?Fk(b,a.u.clone()):c=!!a.I;c&&(b.I=a.I);return b};
g.Bk.prototype.clone=function(){return new g.Bk(this)};
var c$a=/[#\/\?@]/g,e$a=/[#\?:]/g,d$a=/[#\?]/g,Vga=/[#\?@]/g,f$a=/#/g;g.k=Hk.prototype;g.k.add=function(a,b){Ok(this);this.B=null;a=Pk(this,a);var c=this.j.get(a);c||this.j.set(a,c=[]);c.push(b);this.u=this.u+1;return this};
g.k.remove=function(a){Ok(this);a=Pk(this,a);return this.j.has(a)?(this.B=null,this.u=this.u-this.j.get(a).length,this.j.delete(a)):!1};
g.k.clear=function(){this.j=this.B=null;this.u=0};
g.k.Bf=function(){Ok(this);return 0==this.u};
g.k.forEach=function(a,b){Ok(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Xp=function(){Ok(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Ml=function(a){Ok(this);var b=[];if("string"===typeof a)Xga(this,a)&&(b=b.concat(this.j.get(Pk(this,a))));else{a=Array.from(this.j.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
g.k.set=function(a,b){Ok(this);this.B=null;a=Pk(this,a);Xga(this,a)&&(this.u=this.u-this.j.get(a).length);this.j.set(a,[b]);this.u=this.u+1;return this};
g.k.get=function(a,b){if(!a)return b;a=this.Ml(a);return 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.B)return this.B;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.Ke(d);d=this.Ml(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Ke(d[f]));a.push(h)}}return this.B=a.join("&")};
g.k.clone=function(){var a=new Hk;a.B=this.B;this.j&&(a.j=new Map(this.j),a.u=this.u);return a};
g.k.extend=function(a){for(var b=0;b<arguments.length;b++)g.Ak(arguments[b],function(c,d){this.add(d,c)},this)};g.Ta(g.Rk,g.C);var g$a=[];g.k=g.Rk.prototype;g.k.Ra=function(a,b,c,d){Array.isArray(b)||(b&&(g$a[0]=b.toString()),b=g$a);for(var e=0;e<b.length;e++){var f=g.ud(a,b[e],c||this.handleEvent,d||!1,this.u||this);if(!f)break;this.j[f.key]=f}return this};
g.k.CG=function(a,b,c,d){return $ga(this,a,b,c,d)};
g.k.Hc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Hc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.Ja(d)?!!d.capture:!!d,e=e||this.u||this,c=vd(c),d=!!d,b=Rc(a)?a.WB(b,c,d,e):a?(a=wd(a))?a.WB(b,c,d,e):null:null,b&&(yd(b),delete this.j[b.key])};
g.k.Ef=function(){g.Tc(this.j,function(a,b){this.j.hasOwnProperty(b)&&yd(a)},this);
this.j={}};
g.k.qa=function(){g.Rk.Gf.qa.call(this);this.Ef()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};aha.prototype.isInputValid=function(){return this.B};Sk.prototype.isInputValid=function(){return 3!=this.j};
Sk.prototype.zf=function(){return this.I};
Sk.prototype.VE=function(){return!0};
Sk.prototype.parse=function(a){function b(m){m&128&&Tk(f,h,l,"invalid tag");2!=(m&7)&&Tk(f,h,l,"invalid wire type");f.B=m>>>3;1!=f.B&&2!=f.B&&15!=f.B&&Tk(f,h,l,"unexpected tag");f.j=1;f.u=0;f.C=0}
function c(m){f.C++;5==f.C&&m&240&&Tk(f,h,l,"message length too long");f.u|=(m&127)<<7*(f.C-1);m&128||(f.j=2,f.T=0,"undefined"!==typeof Uint8Array?f.D=new Uint8Array(f.u):f.D=Array(f.u),0==f.u&&e())}
function d(m){f.D[f.T++]=m;f.T==f.u&&e()}
function e(){if(15>f.B){var m={};m[f.B]=f.D;f.J.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Tk(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.ea++;l++}a=f.J;f.J=[];return 0<a.length?a:null};Uk.prototype.isInputValid=function(){return null===this.j};
Uk.prototype.zf=function(){return this.j};
Uk.prototype.VE=function(){return!1};
Uk.prototype.parse=function(a){null!==this.j&&cha(this,a,"stream already broken");var b=null;try{var c=this.B;c.B||bha(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=eda(c.j.slice(0,4*d))}catch(h){bha(c,c.j,h.message)}c.u+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.C.parse(e)}catch(h){cha(this,a,h.message)}this.u+=a.length;return b};var h$a={INIT:0,VA:1,TJ:2,sx:3,DA:4,CA:5,STRING:6,NJ:7,LR:8,eS:9,fS:10,gS:11,tQ:12,uQ:13,vQ:14,wQ:15,SR:16,TR:17,UR:18,W0:19,RJ:20};g.k=Wk.prototype;g.k.isInputValid=function(){return 3!=this.D};
g.k.zf=function(){return this.ea};
g.k.done=function(){return 2===this.D};
g.k.VE=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Vk(a[r]))r++,f.B++;else break;return r<n}
function c(){for(var x;;){x=a[r++];if(!x)break;f.B++;switch(f.j){case m.INIT:"{"===x?f.j=m.TJ:"["===x?f.j=m.DA:Vk(x)||Xk(f,a,r);continue;case m.NJ:case m.TJ:if(Vk(x))continue;if(f.j===m.NJ)h.push(m.LR);else if("}"===x){e("{}");f.j=d();continue}else h.push(m.sx);'"'===x?f.j=m.STRING:Xk(f,a,r);continue;case m.LR:case m.sx:if(Vk(x))continue;":"===x?(f.j===m.sx&&(h.push(m.sx),f.u++),f.j=m.VA):"}"===x?(f.u--,e(),f.j=d()):","===x?(f.j===m.sx&&h.push(m.sx),f.j=m.NJ):Xk(f,a,r);continue;case m.DA:case m.VA:if(Vk(x))continue;
if(f.j===m.DA)if(f.u++,f.j=m.VA,"]"===x){f.u--;if(0===f.u){f.j=m.CA;return}e("[]");f.j=d();continue}else h.push(m.CA);'"'===x?f.j=m.STRING:"{"===x?f.j=m.TJ:"["===x?f.j=m.DA:"t"===x?f.j=m.eS:"f"===x?f.j=m.tQ:"n"===x?f.j=m.SR:"-"!==x&&(-1!=="0123456789".indexOf(x)?f.j=m.RJ:Xk(f,a,r));continue;case m.CA:if(","===x)h.push(m.CA),f.j=m.VA,1===f.u&&(q=r);else if("]"===x){f.u--;if(0===f.u)return;e();f.j=d()}else if(Vk(x))continue;else Xk(f,a,r);continue;case m.STRING:var z=r;a:for(;;){for(;0<f.T;)if(x=a[r++],
4===f.T?f.T=0:f.T++,!x)break a;if('"'===x&&!f.J){f.j=d();break}if("\\"===x&&!f.J&&(f.J=!0,x=a[r++],!x))break;if(f.J)if(f.J=!1,"u"===x&&(f.T=1),x=a[r++])continue;else break;l.lastIndex=r;x=l.exec(a);if(!x){r=a.length+1;break}r=x.index+1;x=a[x.index];if(!x)break}f.B+=r-z;continue;case m.eS:if(!x)continue;"r"===x?f.j=m.fS:Xk(f,a,r);continue;case m.fS:if(!x)continue;"u"===x?f.j=m.gS:Xk(f,a,r);continue;case m.gS:if(!x)continue;"e"===x?f.j=d():Xk(f,a,r);continue;case m.tQ:if(!x)continue;"a"===x?f.j=m.uQ:
Xk(f,a,r);continue;case m.uQ:if(!x)continue;"l"===x?f.j=m.vQ:Xk(f,a,r);continue;case m.vQ:if(!x)continue;"s"===x?f.j=m.wQ:Xk(f,a,r);continue;case m.wQ:if(!x)continue;"e"===x?f.j=d():Xk(f,a,r);continue;case m.SR:if(!x)continue;"u"===x?f.j=m.TR:Xk(f,a,r);continue;case m.TR:if(!x)continue;"l"===x?f.j=m.UR:Xk(f,a,r);continue;case m.UR:if(!x)continue;"l"===x?f.j=d():Xk(f,a,r);continue;case m.W0:"."===x?f.j=m.RJ:Xk(f,a,r);continue;case m.RJ:if(-1!=="0123456789.eE+-".indexOf(x))continue;else r--,f.B--,f.j=
d();continue;default:Xk(f,a,r)}}}
function d(){var x=h.pop();return null!=x?x:m.VA}
function e(x){1<f.u||(x||(x=-1===q?f.C+a.substring(p,r):a.substring(q,r)),f.Z?f.I.push(x):f.I.push(JSON.parse(x)),q=r)}
for(var f=this,h=f.oa,l=f.ya,m=h$a,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.D){case 3:return Xk(f,a,r),null;case 2:return b()&&Xk(f,a,r),null;case 0:if(b()){var v=a[r++];f.B++;if("["===v){f.D=1;p=r;f.j=m.DA;continue}else Xk(f,a,r)}return null;case 1:return c(),0===f.u&&f.j==m.CA?(f.D=2,f.C=a.substring(r)):f.C=-1===q?f.C+a.substring(p):a.substring(q),0<f.I.length?(v=f.I,f.I=[],v):null}return null};Yk.prototype.isInputValid=function(){return null===this.D};
Yk.prototype.zf=function(){return this.D};
Yk.prototype.VE=function(){return!1};
Yk.prototype.parse=function(a){function b(m){f.u=6;f.D="The stream is broken @"+f.j+"/"+h+". Error: "+m+". With input:\n";throw Error(f.D);}
function c(){f.B=new Wk({u6a:!0,H2:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.C.push(p)}}
function e(m){if(m){(f.I||1<m.length)&&b("extra status: "+m);f.I=!0;var n={};n[2]=m[0];f.C.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.u){a:{for(;h<a.length;){if(!Vk(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.u){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.u=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.u=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.u=3:"]"===a[h]?(f.u=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.B.parse(a.substring(h));d(l);f.B.done()?(f.u=3,l=f.B.C,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.u=4,c(),f.B.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.u=5,h++,f.j++);break;case 4:l=f.B.parse(a.substring(h));e(l);f.B.done()?(f.u=5,l=f.B.C,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 0<f.C.length?(a=f.C,f.C=[],a):null};Zk.prototype.fM=function(){return this.j};
Zk.prototype.getStatus=function(){return this.C};
Zk.prototype.Z=function(a){a=a.target;try{if(a==this.j)a:{var b=g.qj(this.j),c=this.j.u,d=this.j.getStatus(),e=g.sj(this.j);a=[];if(g.tj(this.j)instanceof Array){var f=g.tj(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.ea=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?$k(this,7):7==c?$k(this,8):d||$k(this,3)),this.u||(this.u=dha(this.j),null==this.u&&$k(this,5)),2<this.C)al(this);else{if(a.length>this.B){var h=a.length;c=[];try{if(this.u.VE())for(var l=0;l<h;l++){var m=
this.u.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.I){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.I=new TextDecoder}for(l=0;l<h;l++)m+=this.I.decode(a[l],{stream:4==b&&l==h-1});c=this.u.parse(m)}a.splice(0,h);c&&this.D(c)}catch(p){$k(this,5);al(this);break a}}else if(e.length>this.B){l=e.slice(this.B);this.B=e.length;try{var n=this.u.parse(l);null!=n&&this.D&&this.D(n)}catch(p){$k(this,5);al(this);break a}}4==b?(0!=e.length||
this.ea?$k(this,2):$k(this,4),al(this)):$k(this,1)}}}catch(p){$k(this,6),al(this)}};g.k=eha.prototype;g.k.on=function(a,b){var c=this.u[a];c||(c=[],this.u[a]=c);c.push(b);return this};
g.k.addListener=function(a,b){this.on(a,b);return this};
g.k.removeListener=function(a,b){var c=this.u[a];c&&g.wb(c,b);(a=this.j[a])&&g.wb(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.S5=function(a){var b=this.u.data;b&&fha(a,b);(b=this.j.data)&&fha(a,b);this.j.data=[]};
g.k.z7=function(){switch(this.B.getStatus()){case 1:bl(this,"readable");break;case 5:case 6:case 4:case 7:case 3:bl(this,"error");break;case 8:bl(this,"close");break;case 2:bl(this,"end")}};gha.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return hha(function(h){var l=h.UF(),m=h.getMetadata(),n=kha(e,!1);m=lha(e,m,n,f+l.getName());var p=mha(n,l.u,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.C).call(this,Kga(d,b,c))};nha.prototype.create=function(a,b){return Hga(this.j,this.u+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},b$a)};g.w(cl,Error);g.w(dl,g.C);dl.prototype.C=function(a){var b=this.j(a);a=new Hj(this.logger,this.u);b=g.gg(b,2);a.done();return b};
g.w(gl,dl);gl.prototype.j=function(a){++this.J>=this.T&&this.D.resolve();var b=new Hj(this.logger,"C");a=this.I(a.by);b.done();if(void 0===a)throw new cl(17,Error("YNJ:Undefined"));if(!(a instanceof Uint8Array))throw new cl(18,Error("ODM:Invalid"));return a};
g.w(hl,dl);hl.prototype.j=function(){return this.I};
g.w(il,dl);il.prototype.j=function(){return ig(this.I)};
il.prototype.C=function(){return this.I};
g.w(jl,dl);jl.prototype.j=function(){if(this.I)return this.I;this.I=pha(this,function(a){return"_"+pga(a)});
return pha(this,function(a){return a})};
g.w(kl,dl);kl.prototype.j=function(a){var b;a=g.fg(null!=(b=a.by)?b:"");if(118<a.length)throw new cl(19,Error("DFO:Invalid"));var c=Date.now()/1E3|0;b=[255*Math.random()|0,255*Math.random()|0];a=b.concat([this.I&255,this.clientState],[c>>24&255,c>>16&255,c>>8&255,c&255],a);for(c=b=b.length;c<a.length;++c)a[c]^=a[c%b];this.logger.sV(this.clientState);b=new Uint8Array(a.length+2);b[0]=34;b[1]=a.length;for(c=2;c<b.length;++c)b[c]=a[c-2];return b};
g.k=ml.prototype;g.k.isReady=function(){return!!this.j};
g.k.ready=function(){var a=this;return g.A(function(b){return g.y(b,a.C.promise,0)})};
g.k.EF=function(a){return ll(this.logger.gN("c",void 0===a?1:a,this.Qu.EF(Aga().u,null)),function(){return Promise.reject(new cl(10,"JVZ:Timeout"))})};
g.k.prefetch=function(){1===this.state&&(this.u=this.EF())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new Hj(this.logger,"r");this.ready().finally(function(){return void a.done()});
tha(this)}};var yha={NONE:0,Yoa:1},eia={sZ:0,JRa:1,IRa:2,KRa:3},gm={fZ:"a",voa:"d",VIDEO:"v"};nl.prototype.isVisible=function(){return this.hv?.3<=this.Xd:.5<=this.Xd};var xl={Wla:0,wta:1},cia={NONE:0,lya:1,Gva:2};ol.prototype.getValue=function(){return this.u};
g.w(pl,ol);pl.prototype.B=function(a){null===this.u&&g.ad(this.C,a)&&(this.u=a)};
g.w(ql,ol);ql.prototype.B=function(a){null===this.u&&"number"===typeof a&&(this.u=a)};
g.w(rl,ol);rl.prototype.B=function(a){null===this.u&&"string"===typeof a&&(this.u=a)};sl.prototype.disable=function(){this.u=!1};
sl.prototype.enable=function(){this.u=!0};
sl.prototype.isEnabled=function(){return this.u};
sl.prototype.reset=function(){this.j={};this.u=!0;this.B={}};var Ym=document,Bl=window;var gja=!g.mf&&!wc();yl.prototype.now=function(){return 0};
yl.prototype.u=function(){return 0};
yl.prototype.B=function(){return 0};
yl.prototype.j=function(){return 0};g.w(Al,yl);Al.prototype.now=function(){return zl()&&Bl.performance.now?Bl.performance.now():yl.prototype.now.call(this)};
Al.prototype.u=function(){return zl()&&Bl.performance.memory?Bl.performance.memory.totalJSHeapSize||0:yl.prototype.u.call(this)};
Al.prototype.B=function(){return zl()&&Bl.performance.memory?Bl.performance.memory.usedJSHeapSize||0:yl.prototype.B.call(this)};
Al.prototype.j=function(){return zl()&&Bl.performance.memory?Bl.performance.memory.jsHeapSizeLimit||0:yl.prototype.j.call(this)};var Bha=Nd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Ea.addEventListener("test",null,b)}catch(c){}return a});Cha.prototype.isVisible=function(){return 1===Pl(Ym)};g.Xd("csi.gstatic.com");g.Xd("googleads.g.doubleclick.net");g.Xd("partner.googleadservices.com");g.Xd("pubads.g.doubleclick.net");g.Xd("securepubads.g.doubleclick.net");g.Xd("tpc.googlesyndication.com");var Eha={sea:"allow-forms",tea:"allow-modals",uea:"allow-orientation-lock",vea:"allow-pointer-lock",wea:"allow-popups",xea:"allow-popups-to-escape-sandbox",yea:"allow-presentation",zea:"allow-same-origin",Aea:"allow-scripts",Bea:"allow-top-navigation",Cea:"allow-top-navigation-by-user-activation"},Iha=Nd(function(){return Fha()});var Mha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Ul.prototype.Ze=function(a,b,c){a=a+"//"+b+c;var d=Qha(this)-c.length;if(0>d)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.u[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Pha(h[l],this.B,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.B;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};bm.prototype.setInterval=function(a,b){return Bl.setInterval(a,b)};
bm.prototype.clearInterval=function(a){Bl.clearInterval(a)};
bm.prototype.setTimeout=function(a,b){return Bl.setTimeout(a,b)};
bm.prototype.clearTimeout=function(a){Bl.clearTimeout(a)};Xha.prototype.getContext=function(){if(!this.j){if(!Bl)throw Error("Context has not been set and window is undefined.");this.j=am(bm)}return this.j};g.w(dm,J);dm.prototype.j=Oea([dm,1,h9a,2,k9a,3,k9a,4,k9a,5,n9a]);var dia={WPa:1,t1:2,nJa:3};fia.prototype.BO=function(a){if("string"===typeof a&&0!=a.length){var b=this.Cc;if(b.u){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.B(d)}}}};var h3=null;var jm=g.Ea.performance,i$a=!!(jm&&jm.mark&&jm.measure&&jm.clearMarks),hm=Nd(function(){var a;if(a=i$a){var b;if(null===h3){h3="";try{a="";try{a=g.Ea.top.location.hash}catch(c){a=g.Ea.location.hash}a&&(h3=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=h3;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
im.prototype.disable=function(){this.j=!1;this.events!=this.u.google_js_reporting_queue&&(hm()&&g.Ob(this.events,lia),this.events.length=0)};
im.prototype.start=function(a,b){if(!this.j)return null;var c=jia()||iia();a=new kia(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";jm&&hm()&&jm.mark(b);return a};
im.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=jia()||iia();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";jm&&hm()&&jm.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};mia.prototype.iN=function(a,b,c,d,e){e=e||this.tT;try{var f=new Ul;f.j.push(1);f.u[1]=Vl("context",a);b.error&&b.meta&&b.id||(b=new nm(om(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.u[2]=Vl("msg",h)}var l=b.meta||{};if(this.sK)try{this.sK(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.u[3]=b;var m=Oha();if(m.u){var n=m.u.url||"";f.j.push(4);f.u[4]=Vl("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?sfa(m.j.url):""}];f.j.push(5);f.u[5]=p;gia(this.j,e,f,c)}catch(q){try{gia(this.j,
e,{context:"ecmserr",rctx:a,msg:om(q),url:m&&m.j.url},c)}catch(r){}}return this.sP};
g.w(nm,hia);var lm,mm,km=new im;lm=new function(){var a="https:";Bl&&Bl.location&&"http:"===Bl.location.protocol&&(a="http:");this.u=a;this.j=.01};
mm=new mia;Bl&&Bl.document&&("complete"==Bl.document.readyState?oia():km.j&&Ol(Bl,"load",function(){oia()}));var ria=Date.now(),vm=-1,tm=-1,Hja,wm=-1,um=!1;g.k=xm.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new xm(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof xm?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Bm.prototype.equals=function(a,b){return!!a&&(!(void 0===b?0:b)||this.volume==a.volume)&&this.B==a.B&&zm(this.j,a.j)&&!0};Cm.prototype.ub=function(){return this.J};
Cm.prototype.equals=function(a,b){return this.C.equals(a.C,void 0===b?!1:b)&&this.J==a.J&&zm(this.B,a.B)&&zm(this.I,a.I)&&this.j==a.j&&this.D==a.D&&this.u==a.u&&this.T==a.T};var j$a={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},jo={g1:"start",BZ:"firstquartile",T0:"midpoint",j1:"thirdquartile",nZ:"complete",ERROR:"error",S0:"metric",PAUSE:"pause",b1:"resume",e1:"skip",s1:"viewable_impression",V0:"mute",o1:"unmute",CZ:"fullscreen",yZ:"exitfullscreen",lZ:"bufferstart",kZ:"bufferfinish",DZ:"fully_viewable_audible_half_duration_impression",R0:"measurable_impression",dZ:"abandon",xZ:"engagedview",GZ:"impression",pZ:"creativeview",Q0:"loaded",gRa:"progress",
CLOSE:"close",zla:"collapse",dOa:"overlay_resize",eOa:"overlay_unmeasurable_impression",fOa:"overlay_unviewable_impression",hOa:"overlay_viewable_immediate_impression",gOa:"overlay_viewable_end_of_session_impression",rZ:"custom_metric_viewable",iNa:"verification_debug",gZ:"audio_audible",iZ:"audio_measurable",hZ:"audio_impression"},Ska="start firstquartile midpoint thirdquartile resume loaded".split(" "),Tka=["start","firstquartile","midpoint","thirdquartile"],Ija=["abandon"],Ro={UNKNOWN:-1,g1:0,
BZ:1,T0:2,j1:3,nZ:4,S0:5,PAUSE:6,b1:7,e1:8,s1:9,V0:10,o1:11,CZ:12,yZ:13,DZ:14,R0:15,dZ:16,xZ:17,GZ:18,pZ:19,Q0:20,rZ:21,lZ:22,kZ:23,hZ:27,iZ:28,gZ:29};var tia={W$:"addEventListener",Iva:"getMaxSize",Jva:"getScreenSize",Kva:"getState",Lva:"getVersion",DRa:"removeEventListener",jza:"isViewable"};g.k=g.Em.prototype;g.k.clone=function(){return new g.Em(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Fe?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.k.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
g.k.getSize=function(){return new g.He(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var xia={};Gia.prototype.update=function(a){a&&a.document&&(this.J=Dm(!1,a,this.isMobileDevice),this.j=Dm(!0,a,this.isMobileDevice),Iia(this,a),Hia(this,a))};$m.prototype.cancel=function(){cm().clearTimeout(this.j);this.j=null};
$m.prototype.schedule=function(){var a=this,b=cm(),c=fm().j.j;this.j=b.setTimeout(em(c,qm(143,function(){a.u++;a.B.sample()})),sia())};g.k=an.prototype;g.k.LA=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.zy=function(){return this.j.Ga};
g.k.mC=function(){return this.j.Z};
g.k.fail=function(a,b){if(!this.Z||(void 0===b?0:b))this.Z=!0,this.Ga=a,this.T=0,this.j!=this||rn(this)};
g.k.getName=function(){return this.j.Qa};
g.k.ws=function(){return this.j.PT()};
g.k.PT=function(){return{}};
g.k.cq=function(){return this.j.T};
g.k.mR=function(){var a=Xm();a.j=Dm(!0,this.B,a.isMobileDevice)};
g.k.nR=function(){Hia(Xm(),this.B)};
g.k.dU=function(){return this.C.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.I};
g.k.Hy=function(a){var b=this.j;this.j=a.cq()>=this.T?a:this;b!==this.j?(this.I=this.j.I,rn(this)):this.I!==this.j.I&&(this.I=this.j.I,rn(this))};
g.k.Hs=function(a){if(a.u===this.j){var b=!this.C.equals(a,this.ea);this.C=a;b&&Lia(this)}};
g.k.ip=function(){return this.ea};
g.k.dispose=function(){this.Aa=!0};
g.k.isDisposed=function(){return this.Aa};g.k=sn.prototype;g.k.yJ=function(){return!0};
g.k.MA=function(){};
g.k.dispose=function(){if(!this.isDisposed()){var a=this.u;g.wb(a.D,this);a.ea&&this.ip()&&Kia(a);this.MA();this.Z=!0}};
g.k.isDisposed=function(){return this.Z};
g.k.ws=function(){return this.u.ws()};
g.k.cq=function(){return this.u.cq()};
g.k.zy=function(){return this.u.zy()};
g.k.mC=function(){return this.u.mC()};
g.k.Hy=function(){};
g.k.Hs=function(){this.Hr()};
g.k.ip=function(){return this.oa};g.k=tn.prototype;g.k.cq=function(){return this.j.cq()};
g.k.zy=function(){return this.j.zy()};
g.k.mC=function(){return this.j.mC()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.ME(a,b,c),bn(this.j,d));return d};
g.k.oR=function(){return this.NA()};
g.k.NA=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(bn(this.j,this),this.C=a,!0):!1};
g.k.Hy=function(a){0==a.cq()&&this.C(a.zy(),this)};
g.k.Hs=function(){};
g.k.ip=function(){return!1};
g.k.dispose=function(){this.D=!0};
g.k.isDisposed=function(){return this.D};
g.k.ws=function(){return{}};un.prototype.add=function(a,b,c){++this.B;a=new Mia(a,b,c);this.j.push(new Mia(a.u,a.j,a.B+this.B/4096));this.u=!0;return this};var xn;xn=["av.default","js","unreleased"].slice(-1)[0];Ria.prototype.toString=function(){var a="//web.archive.org/web/20230426095903/https://pagead2.googlesyndication.com//pagead/gen_204",b=wn(this.j);0<b.length&&(a+="?"+b);return a};yn.prototype.update=function(a,b,c){a&&(this.j+=b,this.u+=b,this.C+=b,this.B=Math.max(this.B,this.C));if(void 0===c?!a:c)this.C=0};var Xia=[1,.75,.5,.3,0];zn.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.u.length;e++){var h=this.u[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};Fn.prototype.update=function(a,b,c,d){this.J=-1!=this.J?Math.min(this.J,b.Xd):b.Xd;this.oa=Math.max(this.oa,b.Xd);this.ya=-1!=this.ya?Math.min(this.ya,b.Tj):b.Tj;this.Ga=Math.max(this.Ga,b.Tj);this.ib.update(b.Tj,c.Tj,b.j,a,d);this.u.update(b.Xd,c.Xd,b.j,a,d);c=d||c.hv!=b.hv?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Qa.update(c,a,b)};
Fn.prototype.wq=function(){return this.Qa.B>=this.fb};if(Ym&&Ym.URL){var k$a=Ym.URL,l$a;if(l$a=!!k$a){var m$a;a:{if(k$a){var n$a=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var i3=n$a.exec(decodeURIComponent(k$a));if(i3){m$a=i3[1]&&1<i3[1].length?i3[1].substring(1):"true";break a}}catch(a){}}m$a=""}l$a=0<m$a.length}mm.sP=!l$a};var o$a=new xm(0,0,0,0);var eja=new xm(0,0,0,0);g.w(Kn,g.C);g.k=Kn.prototype;
g.k.qa=function(){if(this.Cj.j){if(this.Ju.wN){var a=this.Cj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Ju.wN,Cl());this.Ju.wN=null}this.Ju.vN&&(a=this.Cj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Ju.vN,Cl()),this.Ju.vN=null)}this.ZD&&this.ZD.dispose();this.nf&&this.nf.dispose();delete this.LG;delete this.kN;delete this.BY;delete this.Cj.Ss;delete this.Cj.j;delete this.Ju;delete this.ZD;delete this.nf;delete this.Cc;g.C.prototype.qa.call(this)};
g.k.Bs=function(){return this.nf?this.nf.j:this.position};
g.k.BO=function(a){fm().BO(a)};
g.k.ip=function(){return!1};
g.k.XF=function(){return new Fn};
g.k.cj=function(){return this.LG};
g.k.VT=function(a){return ija(this,a,1E4)};
g.k.Pa=function(a,b,c,d,e,f,h){this.Ms||(this.wB&&(a=this.CK(a,c,e,h),d=d&&this.Ah.Xd>=(this.hv()?.3:.5),this.YP(f,a,d),this.Wo=b,0<a.Xd&&-1===this.hY&&(this.hY=b),-1==this.lY&&this.wq()&&(this.lY=b),-2==this.eN&&(this.eN=In(this.Bs())?a.Xd:-1),this.Ah=a),this.kN(this))};
g.k.YP=function(a,b,c){this.cj().update(a,b,this.Ah,c)};
g.k.XL=function(){return new nl};
g.k.CK=function(a,b,c,d){c=this.XL();c.j=b;b=cm().u;b=0===Pl(Ym)?-1:b.isVisible()?0:1;c.u=b;c.Xd=this.WK(a);c.hv=this.hv();c.Tj=d;return c};
g.k.WK=function(a){return 0===this.opacity&&1===vl(this.Cc,"opac")?0:a};
g.k.hv=function(){return!1};
g.k.hI=function(){return this.o4||this.r4};
g.k.Ev=function(){sm()};
g.k.nz=function(){sm()};
g.k.Io=function(){return 0};
g.k.wq=function(){return this.LG.wq()};
g.k.fU=function(){var a=this.wB;a=(this.hasCompleted||this.isDisposed())&&!a;var b=2!==fm().u||this.A9;return this.Ms||b&&a?2:this.wq()?4:3};
g.k.OF=function(){return 0};g.Mn.prototype.next=function(){return g.j3};
g.j3={done:!0,value:void 0};g.Mn.prototype.hk=function(){return this};g.w(oja,nl);var k3=qja([void 0,1,2,3,4,8,16]),l3=qja([void 0,4,8,16]),p$a={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Qn("p0",l3),p1:Qn("p1",l3),p2:Qn("p2",l3),p3:Qn("p3",l3),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Pn("mtos1",[0,2,4],!1,l3),mtos2:Pn("mtos2",[0,2,4],!1,l3),mtos3:Pn("mtos3",[0,2,4],!1,l3),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Qn("a0",l3),a1:Qn("a1",l3),a2:Qn("a2",l3),a3:Qn("a3",l3),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:Qn("c0",l3),c1:Qn("c1",l3),c2:Qn("c2",l3),c3:Qn("c3",l3),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Qn("qmtos",k3),qnc:Qn("qnc",k3),qmv:Qn("qmv",k3),qnv:Qn("qnv",k3),
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:Qn("ss0",l3),ss1:Qn("ss1",l3),ss2:Qn("ss2",l3),ss3:Qn("ss3",l3),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"},q$a=Object.assign({},p$a,{avid:Ld("audio"),avas:"avas",vs:"vs"}),r$a={atos:"atos",avt:Pn("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};Vn.prototype.getValue=function(){return this.u};
Vn.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.u&=~(1<<a):this.j&1<<a||!b||(this.u|=1<<a),this.j|=1<<a)};g.w(Wn,Fn);
Wn.prototype.update=function(a,b,c,d){if(!b.B){Fn.prototype.update.call(this,a,b,c,d);var e=On(b)&&On(c),f=.5<=(d?Math.min(b.Xd,c.Xd):c.Xd);Vm(b.volume)&&(this.C=-1!=this.C?Math.min(this.C,b.volume):b.volume,this.I=Math.max(this.I,b.volume));f&&(this.Aa+=a,this.ea+=e?a:0);this.j.update(b.Xd,c.Xd,b.j,a,d,e);this.B.update(!0,a);this.D.update(e,a);this.Z.update(c.fullscreen,a);this.kb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.Ja.update(a,b.isVisible());this.Ya.update(a,1<=b.Xd);this.Xa.update(a,On(b))}};vja.prototype.u=function(a){this.B||(this.j(a)?(a=Fka(this.ea,this.C,a),this.D|=a,a=0==a):a=!1,this.B=a)};g.w(Yn,vja);Yn.prototype.j=function(){return!0};
Yn.prototype.I=function(){return!1};
Yn.prototype.getId=function(){var a=this,b=gd(jo,function(c){return c==a.C});
return Ro[b].toString()};
Yn.prototype.toString=function(){var a="";this.I()&&(a+="c");this.B&&(a+="s");0<this.D&&(a+=":"+this.D);return this.getId()+a};g.w(Zn,Yn);Zn.prototype.u=function(a,b){b=void 0===b?null:b;null!=b&&this.J.push(b);Yn.prototype.u.call(this,a)};g.w($n,wja);$n.prototype.u=function(){return null};
$n.prototype.B=function(){return[]};g.w(ao,sn);g.k=ao.prototype;g.k.HK=function(){if(this.element){var a=this.element,b=this.u.j.B;try{try{var c=Dia(a.getBoundingClientRect())}catch(n){c=new xm(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Aia(a,b),h=f.x,l=f.y;var m=new xm(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=o$a.clone()}this.j=m}};
g.k.IS=function(){this.C=this.u.C.j};
g.k.VU=function(a){var b=1==vl(this.Cc,"od");return dja(a,this.C,this.element,b)};
g.k.JS=function(){this.timestamp=sm()};
g.k.Hr=function(){this.JS();this.HK();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.He(a.videoWidth,a.videoHeight);a=this.j;var c=ym(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.IS();
a=this.j;c=this.C;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new xm(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 xm(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new xm(0,0,0,0):a;a=this.u.C;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.VU(c)?c=new xm(0,0,0,0):(d=Xm().C,b=new xm(0,d.height,d.width,0),d=Jn(c,this.j),e=Jn(c,Xm().j),b=Jn(c,b)));c=c.top>=c.bottom||c.left>=c.right?new xm(0,0,0,
0):Am(c,-this.j.left,-this.j.top);Zm()||(e=d=0);this.J=new Cm(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.u.getName()};var s$a=new xm(0,0,0,0);g.w(bo,ao);g.k=bo.prototype;g.k.yJ=function(){this.B();return!0};
g.k.Hs=function(){ao.prototype.Hr.call(this)};
g.k.JS=function(){};
g.k.HK=function(){};
g.k.Hr=function(){this.B();ao.prototype.Hr.call(this)};
g.k.Hy=function(a){a=a.isActive();a!==this.I&&(a?this.B():(Xm().j=new xm(0,0,0,0),this.j=new xm(0,0,0,0),this.C=new xm(0,0,0,0),this.timestamp=-1));this.I=a};var m3={},Gja=(m3.firstquartile=0,m3.midpoint=1,m3.thirdquartile=2,m3.complete=3,m3);g.w(eo,Kn);g.k=eo.prototype;g.k.ip=function(){return!0};
g.k.Zm=function(){return 2==this.Gi};
g.k.VT=function(a){return ija(this,a,Math.max(1E4,this.B/3))};
g.k.Pa=function(a,b,c,d,e,f,h){var l=this,m=this.J(this)||{};g.od(m,e);this.B=m.duration||this.B;this.ea=m.isVpaid||this.ea;this.La=m.isYouTube||this.La;e=yja(this,b);1===xja(this)&&(f=e);Kn.prototype.Pa.call(this,a,b,c,d,m,f,h);this.Bq&&this.Bq.B&&g.Ob(this.I,function(n){n.u(l)})};
g.k.YP=function(a,b,c){Kn.prototype.YP.call(this,a,b,c);ho(this).update(a,b,this.Ah,c);this.ib=On(this.Ah)&&On(b);-1==this.Ga&&this.fb&&(this.Ga=this.cj().B.j);this.Rg.B=0;a=this.wq();b.isVisible()&&Un(this.Rg,"vs");a&&Un(this.Rg,"vw");Vm(b.volume)&&Un(this.Rg,"am");On(b)?Un(this.Rg,"a"):Un(this.Rg,"mut");this.Oy&&Un(this.Rg,"f");-1!=b.u&&(Un(this.Rg,"bm"),1==b.u&&(Un(this.Rg,"b"),On(b)&&Un(this.Rg,"umutb")));On(b)&&b.isVisible()&&Un(this.Rg,"avs");this.ib&&a&&Un(this.Rg,"avw");0<b.Xd&&Un(this.Rg,
"pv");io(this,this.cj().B.j,!0)&&Un(this.Rg,"gdr");2E3<=Dn(this.cj().u,1)&&Un(this.Rg,"pmx")};
g.k.XF=function(){return new Wn};
g.k.cj=function(){return this.LG};
g.k.XL=function(){return new oja};
g.k.CK=function(a,b,c,d){a=Kn.prototype.CK.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Oy;a.B=this.Zm();a.volume=c.volume;Vm(a.volume)||(this.tb++,b=this.Ah,Vm(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.WK=function(a){return Xm(),this.Oy?1:Kn.prototype.WK.call(this,a)};
g.k.Io=function(){return 1};
g.k.getDuration=function(){return this.B};
g.k.fU=function(){return this.Ms?2:Aja(this)?5:this.wq()?4:3};
g.k.OF=function(){return this.kb?2E3<=this.cj().D.B?4:3:2};var t$a=g.Ra();Qja.prototype.reset=function(){this.j=[];this.u=[]};
var oo=am(Qja);g.w(ro,tn);g.k=ro.prototype;g.k.getName=function(){return(this.u?this.u:this.j).getName()};
g.k.ws=function(){return(this.u?this.u:this.j).ws()};
g.k.cq=function(){return(this.u?this.u:this.j).cq()};
g.k.init=function(a){var b=!1;(0,g.Ob)(this.B,function(c){c.initialize()&&(b=!0)});
b&&(this.C=a,bn(this.j,this));return b};
g.k.dispose=function(){(0,g.Ob)(this.B,function(a){a.dispose()});
tn.prototype.dispose.call(this)};
g.k.oR=function(){return Wm(this.B,function(a){return a.LA()})};
g.k.NA=function(){return Wm(this.B,function(a){return a.LA()})};
g.k.ME=function(a,b,c){return new ao(a,this.j,b,c)};
g.k.Hs=function(a){this.u=a.u};var Zja={threshold:[0,.3,.5,.75,1]};g.w(so,ao);g.k=so.prototype;g.k.yJ=function(){var a=this;this.ea||(this.ea=sm());if(qia(298,function(){return $ja(a)}))return!0;
this.u.fail("msf");return!1};
g.k.MA=function(){if(this.B&&this.element)try{this.B.unobserve(this.element),this.I?(this.I.unobserve(this.element),this.I=null):this.D&&(this.D.disconnect(),this.D=null)}catch(a){}};
g.k.Hr=function(){var a=to(this);0<a.length&&uo(this,a);ao.prototype.Hr.call(this)};
g.k.HK=function(){};
g.k.VU=function(){return!1};
g.k.IS=function(){};
g.k.ws=function(){var a={};return Object.assign(this.u.ws(),(a.niot_obs=this.ea,a.niot_cbk=this.T,a))};
g.k.getName=function(){return"nio"};g.w(vo,tn);vo.prototype.getName=function(){return"nio"};
vo.prototype.NA=function(){return!Xm().u&&null!=this.j.j.B.IntersectionObserver};
vo.prototype.ME=function(a,b,c){return new so(a,this.j,b,c)};g.w(wo,an);wo.prototype.dU=function(){return Xm().j};
wo.prototype.LA=function(){var a=bka();this.T!==a&&(this.j!=this&&a>this.j.T&&(this.j=this,rn(this)),this.T=a);return 2==a};xo.prototype.sample=function(){Ao(this,po(),!1)};
xo.prototype.C=function(){var a=Zm(),b=sm();a?(um||(vm=b,g.Ob(oo.j,function(c){var d=c.cj();d.La=Xn(d,b,1!=c.Gi)})),um=!0):(this.J=gka(this,b),um=!1,Hja=b,g.Ob(oo.j,function(c){c.wB&&(c.cj().T=b)}));
Ao(this,po(),!a)};
var yo=am(xo);var ika=null,kp="",jp=!1;var lka=kka().Bo,Co=kka().Do;var oka={xta:"visible",Yha:"audible",mZa:"time",qZa:"timetype"},pka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
nka.prototype.setTime=function(a,b,c){"ms"==b?(this.B=a,this.C=-1):(this.B=-1,this.C=a);this.D=void 0===c?"tos":c;return this};g.w(Uo,Yn);Uo.prototype.getId=function(){return this.J};
Uo.prototype.I=function(){return!0};
Uo.prototype.j=function(a){var b=a.cj(),c=a.getDuration();return Wm(this.T,function(d){if(void 0!=d.j)var e=rka(d,b);else b:{switch(d.D){case "mtos":e=d.u?b.D.B:b.B.j;break b;case "tos":e=d.u?b.D.j:b.B.j;break b}e=0}0==e?d=!1:(d=-1!=d.B?d.B:void 0!==c&&0<c?d.C*c:-1,d=-1!=d&&e>=d);return d})};g.w(Vo,rja);Vo.prototype.j=function(a){var b=new Sn;b.j=Tn(a,p$a);b.u=Tn(a,r$a);return b};g.w(Wo,Yn);Wo.prototype.j=function(a){return Aja(a)};g.w(Xo,wja);g.w(Yo,Yn);Yo.prototype.j=function(a){return a.cj().wq()};g.w(Zo,Zn);Zo.prototype.j=function(a){var b=g.rb(this.J,vl(fm().Cc,"ovms"));return!a.Ms&&(0!=a.Gi||b)};g.w($o,Xo);$o.prototype.u=function(){return new Zo(this.j)};
$o.prototype.B=function(){return[new Yo("viewable_impression",this.j),new Wo(this.j)]};g.w(ap,bo);ap.prototype.B=function(){var a=g.Ga("ima.admob.getViewability"),b=vl(this.Cc,"queryid");"function"===typeof a&&b&&a(b)};
ap.prototype.getName=function(){return"gsv"};g.w(bp,tn);bp.prototype.getName=function(){return"gsv"};
bp.prototype.NA=function(){var a=Xm();fm();return a.u&&!1};
bp.prototype.ME=function(a,b,c){return new ap(this.j,b,c)};g.w(cp,bo);cp.prototype.B=function(){var a=this,b=g.Ga("ima.bridge.getNativeViewability"),c=vl(this.Cc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.hd(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=Eia(d.opt_nativeViewBounds||{});var h=a.u.C;h.j=f?s$a.clone():Eia(e);a.timestamp=d.opt_nativeTime||-1;Xm().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
cp.prototype.getName=function(){return"nis"};g.w(dp,tn);dp.prototype.getName=function(){return"nis"};
dp.prototype.NA=function(){var a=Xm();fm();return a.u&&!1};
dp.prototype.ME=function(a,b,c){return new cp(this.j,b,c)};g.w(ep,an);g.k=ep.prototype;g.k.LA=function(){return null!=this.u.jn};
g.k.PT=function(){var a={};this.Ja&&(a.mraid=this.Ja);this.ya&&(a.mlc=1);a.mtop=this.u.f9;this.J&&(a.mse=this.J);this.La&&(a.msc=1);a.mcp=this.u.compatibility;return a};
g.k.zt=function(a){var b=g.ya.apply(1,arguments);try{return this.u.jn[a].apply(this.u.jn,b)}catch(c){rm(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.mC();this.isInitialized=!0;if(2===this.u.compatibility)return this.J="ng",this.fail("w"),!1;if(1===this.u.compatibility)return this.J="mm",this.fail("w"),!1;Xm().T=!0;this.B.document.readyState&&"complete"==this.B.document.readyState?vka(this):Hn(this.B,"load",function(){cm().setTimeout(qm(292,function(){return vka(a)}),100)},292);
return!0};
g.k.mR=function(){var a=Xm(),b=Aka(this,"getMaxSize");a.j=new xm(0,b.width,b.height,0)};
g.k.nR=function(){Xm().C=Aka(this,"getScreenSize")};
g.k.dispose=function(){xka(this);an.prototype.dispose.call(this)};var aia=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=gp.prototype;g.k.rB=function(a){Ln(a,!1);Uja(a)};
g.k.eG=function(){};
g.k.ED=function(a,b,c,d){var e=this;a=new eo(Bl,a,c?b:-1,7,this.eL(),this.eT());a.Zh=d;wha(a.Cc);ul(a.Cc,"queryid",a.Zh);a.BO("");lja(a,function(){return e.nU.apply(e,g.u(g.ya.apply(0,arguments)))},function(){return e.P3.apply(e,g.u(g.ya.apply(0,arguments)))});
(d=am(qo).j)&&hja(a,d);a.Cj.Ss&&am(cka);return a};
g.k.Hy=function(a){switch(a.cq()){case 0:if(a=am(qo).j)a=a.j,g.wb(a.D,this),a.ea&&this.ip()&&Kia(a);ip();break;case 2:zo()}};
g.k.Hs=function(){};
g.k.ip=function(){return!1};
g.k.P3=function(a,b){a.Ms=!0;switch(a.Io()){case 1:Gka(a,b);break;case 2:this.LO(a)}};
g.k.Y3=function(a){var b=a.J(a);b&&(b=b.volume,a.kb=Vm(b)&&0<b);Dja(a,0);return ko(a,"start",Zm())};
g.k.hA=function(a,b,c){Ao(yo,[a],!Zm());return this.Jo(a,b,c)};
g.k.Jo=function(a,b,c){return ko(a,c,Zm())};
g.k.T3=function(a){return op(a,"firstquartile",1)};
g.k.V3=function(a){a.fb=!0;return op(a,"midpoint",2)};
g.k.Z3=function(a){return op(a,"thirdquartile",3)};
g.k.Q3=function(a){var b=op(a,"complete",4);fo(a);return b};
g.k.R3=function(a){a.Gi=3;return ko(a,"error",Zm())};
g.k.tX=function(a,b,c){b=Zm();if(a.Zm()&&!b){var d=sm();a.cj().T=d}Ao(yo,[a],!b);a.Zm()&&(a.Gi=1);return ko(a,c,b)};
g.k.X3=function(a,b){b=this.hA(a,b||{},"skip");fo(a);return b};
g.k.U3=function(a,b){Ln(a,!0);return this.hA(a,b||{},"fullscreen")};
g.k.S3=function(a,b){Ln(a,!1);return this.hA(a,b||{},"exitfullscreen")};
g.k.tO=function(a,b,c){b=a.cj();var d=sm();b.La=Xn(b,d,1!=a.Gi);Ao(yo,[a],!Zm());1==a.Gi&&(a.Gi=2);return ko(a,c,Zm())};
g.k.W3=function(a){Ao(yo,[a],!Zm());return a.u()};
g.k.pM=function(a){Ao(yo,[a],!Zm());this.nX(a);fo(a);return a.u()};
g.k.nU=function(){};
g.k.LO=function(){};
g.k.nX=function(){};
g.k.pR=function(){};
g.k.gL=function(){};
g.k.eT=function(){this.j||(this.j=this.gL());return null==this.j?new $n:new $o(this.j)};
g.k.eL=function(){return new Vo};g.w(pp,Yn);pp.prototype.j=function(a){return 4==a.OF()};g.w(qp,Zn);qp.prototype.j=function(a){a=a.OF();return 3==a||4==a};g.w(rp,Xo);rp.prototype.u=function(){return new qp(this.j)};
rp.prototype.B=function(){return[new pp(this.j)]};g.w(sp,rja);sp.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new Sn;b.j=Tn(a,q$a);b.u=Tn(a,r$a);return b};Lka.prototype.u=function(){return g.Ga(this.j)};g.w(tp,gp);g.k=tp.prototype;g.k.eG=function(a,b){var c=this,d=am(qo);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Pka(this,a,b);break;case "gsv":e=Oka(this,a,b);break;case "exc":e=Qka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=Ika(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.Io()&&(e.J==g.Md&&(e.J=function(f){return c.pR(f)}),Nka(this,e,b));
return e};
g.k.pR=function(a){a.u=0;a.Aa=0;if("h"==a.C||"n"==a.C){fm();a.Ya&&(fm(),"h"!=mp(this)&&mp(this));var b=g.Ga("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Zh)}catch(e){a.u|=4}else a.u|=2}else if("b"==a.C)if(b=g.Ga("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Zh)}catch(e){a.u|=4}else a.u|=2;else if("ml"==a.C)if(b=g.Ga("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Zh)}catch(e){a.u|=4}else a.u|=2;else a.u|=1;a.u||(void 0===c?a.u|=8:null===
c?a.u|=16:g.hd(c)?a.u|=32:null!=c.errorCode&&(a.Aa=c.errorCode,a.u|=64));null==c&&(c={});b=c;a.T=0;for(var d in j$a)null==b[d]&&(a.T|=j$a[d]);Kka(b,"currentTime");Kka(b,"duration");Vm(c.volume)&&Vm()&&(c.volume*=NaN);return c};
g.k.gL=function(){fm();"h"!=mp(this)&&mp(this);var a=Rka(this);return null!=a?new Lka(a):null};
g.k.LO=function(a){!a.j&&a.Ms&&np(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.nX=function(a){a.PX&&(a.wq()?np(this,a,"overlay_viewable_end_of_session_impression"):np(this,a,"overlay_unviewable_impression"),a.PX=!1)};
g.k.nU=function(){};
g.k.ED=function(a,b,c,d){if(bia()){var e=vl(fm().Cc,"mm"),f={};(e=(f[gm.fZ]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[gm.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&vp(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&rm(1044,Error())}a=gp.prototype.ED.call(this,a,b,c,d);this.D&&(b=this.I,null==a.D&&(a.D=new mja),b.j[a.Zh]=a.D,a.D.D=t$a);return a};
g.k.rB=function(a){a&&1==a.Io()&&this.D&&delete this.I.j[a.Zh];return gp.prototype.rB.call(this,a)};
g.k.eT=function(){this.j||(this.j=this.gL());return null==this.j?new $n:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new rp(this.j):new $o(this.j)};
g.k.eL=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new sp:new Vo};
var up=new Sn;up.j="stopped";up.u="stopped";var u$a=pm(193,wp,void 0,Hka);g.Fa("Goog_AdSense_Lidar_sendVastEvent",u$a);var v$a=qm(194,function(a,b){b=void 0===b?{}:b;a=Uka(am(tp),a,b);return Vka(a)});
g.Fa("Goog_AdSense_Lidar_getViewability",v$a);var w$a=pm(195,function(){return Wha()});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsArray",w$a);var x$a=qm(196,function(){return JSON.stringify(Wha())});
g.Fa("Goog_AdSense_Lidar_getUrlSignalsList",x$a);var XIa={FSa:0,CSa:1,zSa:2,ASa:3,BSa:4,ESa:5,DSa:6};var Qna=(new Date).getTime();var y$a="client_dev_domain client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[].concat(g.u(y$a),["client_dev_set_cookie"]);var Zka="://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(" "),$ka=/\bocr\b/;var bla=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;"undefined"!==typeof TextDecoder&&new TextDecoder;var z$a="undefined"!==typeof TextEncoder?new TextEncoder:null,qqa=z$a?function(a){return z$a.encode(a)}:function(a){a=g.fg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};g.w(zp,g.Fd);zp.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.cn.Em(this.D);delete zp.instance};
zp.prototype.Rh=function(){return this.j};
zp.prototype.gf=function(){var a=this;this.D=this.cn.xi(function(){var b;return g.A(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ka(3):g.y(c,yp(a),3):g.y(c,yp(a),3);a.gf();g.oa(c)})},3E4)};Bp.prototype.set=function(a,b){b=void 0===b?!0:b;Number.isInteger(a);0<=a&&52>a&&Number.isInteger(a)&&this.data_[a]!==b&&(this.data_[a]=b,this.j=-1)};
Bp.prototype.get=function(a){return!!this.data_[a]};var Dp;g.Ta(g.Gp,g.C);g.k=g.Gp.prototype;g.k.start=function(){this.stop();this.C=!1;var a=fla(this),b=gla(this);a&&!b&&this.u.mozRequestAnimationFrame?(this.j=g.ud(this.u,"MozBeforePaint",this.B),this.u.mozRequestAnimationFrame(null),this.C=!0):this.j=a&&b?a.call(this.u,this.B):this.u.setTimeout(rba(this.B),20)};
g.k.stop=function(){if(this.isActive()){var a=fla(this),b=gla(this);a&&!b&&this.u.mozRequestAnimationFrame?yd(this.j):a&&b?b.call(this.u,this.j):this.u.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.N_=function(){this.C&&this.j&&yd(this.j);this.j=null;this.I.call(this.D,g.Ra())};
g.k.qa=function(){this.stop();g.Gp.Gf.qa.call(this)};g.Ta(g.Ip,g.C);g.k=g.Ip.prototype;g.k.OA=0;g.k.qa=function(){g.Ip.Gf.qa.call(this);this.stop();delete this.j;delete this.u};
g.k.start=function(a){this.stop();this.OA=g.ag(this.B,void 0!==a?a:this.Fi)};
g.k.stop=function(){this.isActive()&&g.Ea.clearTimeout(this.OA);this.OA=0};
g.k.isActive=function(){return 0!=this.OA};
g.k.qR=function(){this.OA=0;this.j&&this.j.call(this.u)};Mp.prototype[Symbol.iterator]=function(){return this};
Mp.prototype.next=function(){var a=this.j.next();return{value:a.done?void 0:this.u.call(void 0,a.value),done:a.done}};Vp.prototype.hk=function(){return new Wp(this.u())};
Vp.prototype[Symbol.iterator]=function(){return new Xp(this.u())};
Vp.prototype.j=function(){return new Xp(this.u())};
g.w(Wp,g.Mn);Wp.prototype.next=function(){return this.u.next()};
Wp.prototype[Symbol.iterator]=function(){return new Xp(this.u)};
Wp.prototype.j=function(){return new Xp(this.u)};
g.w(Xp,Vp);Xp.prototype.next=function(){return this.B.next()};g.k=g.Zp.prototype;g.k.Ml=function(){aq(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.u[this.j[b]]);return a};
g.k.Xp=function(){aq(this);return this.j.concat()};
g.k.has=function(a){return $p(this.u,a)};
g.k.equals=function(a,b){if(this===a)return!0;if(this.size!=a.size)return!1;b=b||kla;aq(this);for(var c,d=0;c=this.j[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
g.k.Bf=function(){return 0==this.size};
g.k.clear=function(){this.u={};this.Pt=this.size=this.j.length=0};
g.k.remove=function(a){return this.delete(a)};
g.k.delete=function(a){return $p(this.u,a)?(delete this.u[a],--this.size,this.Pt++,this.j.length>2*this.size&&aq(this),!0):!1};
g.k.get=function(a,b){return $p(this.u,a)?this.u[a]:b};
g.k.set=function(a,b){$p(this.u,a)||(this.size+=1,this.j.push(a),this.Pt++);this.u[a]=b};
g.k.forEach=function(a,b){for(var c=this.Xp(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.k.clone=function(){return new g.Zp(this)};
g.k.transpose=function(){for(var a=new g.Zp,b=0;b<this.j.length;b++){var c=this.j[b];a.set(this.u[c],c)}return a};
g.k.keys=function(){return Yp(this.hk(!0)).j()};
g.k.values=function(){return Yp(this.hk(!1)).j()};
g.k.entries=function(){var a=this;return hla(this.keys(),function(b){return[b,a.get(b)]})};
g.k.hk=function(a){aq(this);var b=0,c=this.Pt,d=this,e=new g.Mn;e.next=function(){if(c!=d.Pt)throw Error("The map has changed since the iterator was created");if(b>=d.j.length)return g.j3;var f=d.j[b++];return g.Nn(a?f:d.u[f])};
return e};g.Ta(g.bq,g.Fd);g.k=g.bq.prototype;g.k.bd=function(){return 1==this.j};
g.k.ZG=function(){this.Fl("begin")};
g.k.Gq=function(){this.Fl("end")};
g.k.onFinish=function(){this.Fl("finish")};
g.k.Fl=function(a){this.dispatchEvent(a)};var A$a=Nd(function(){if(g.mf)return!0;var a=g.qf("DIV"),b=g.Pc?"-webkit":Im?"-moz":g.mf?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!c9a.test("div"))throw Error("");if("DIV"in e9a)throw Error("");b=void 0;var d="";if(c)for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if(!c9a.test(h))throw Error("");var e=c[h];if(null!=e){var f=h;if(e instanceof Vd)e=Wd(e);else if("style"==f.toLowerCase()){if(!g.Ja(e))throw Error("");e instanceof
je||(e=Lba(e));e=ke(e)}else{if(/^on/i.test(f))throw Error("");if(f.toLowerCase()in d9a)if(e instanceof Zd)e=zba(e).toString();else if(e instanceof ae)e=g.be(e);else if("string"===typeof e)e=g.he(e).Ll();else throw Error("");}e.Qo&&(e=e.Ll());f=f+'="'+Ub(String(e))+'"';d+=" "+f}}var h="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===a9a.div?h+=">":(b=Vba(b),h+=">"+g.ve(b).toString()+"</div>");h=g.we(h);g.Yba(a,h);return""!=g.Jm(a.firstChild,"transition")});g.Ta(cq,g.bq);g.k=cq.prototype;g.k.play=function(){if(this.bd())return!1;this.ZG();this.Fl("play");this.startTime=g.Ra();this.j=1;if(A$a())return g.Hm(this.u,this.I),this.B=g.ag(this.g8,void 0,this),!0;this.zJ(!1);return!1};
g.k.g8=function(){g.Sm(this.u);lla(this.u,this.J);g.Hm(this.u,this.C);this.B=g.ag((0,g.Oa)(this.zJ,this,!1),1E3*this.D)};
g.k.stop=function(){this.bd()&&this.zJ(!0)};
g.k.zJ=function(a){g.Hm(this.u,"transition","");g.Ea.clearTimeout(this.B);g.Hm(this.u,this.C);this.endTime=g.Ra();this.j=0;if(a)this.Fl("stop");else this.onFinish();this.Gq()};
g.k.qa=function(){this.stop();cq.Gf.qa.call(this)};
g.k.pause=function(){};var nla={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};dq("Element","attributes")||dq("Node","attributes");dq("Element","innerHTML")||dq("HTMLElement","innerHTML");dq("Node","nodeName");dq("Node","nodeType");dq("Node","parentNode");dq("Node","childNodes");dq("HTMLElement","style")||dq("Element","style");dq("HTMLStyleElement","sheet");var tla=pla("getPropertyValue"),ula=pla("setProperty");dq("Element","namespaceURI")||dq("Node","namespaceURI");var sla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var yla,G8a,xla,wla,zla;yla=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]");G8a=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.B$a=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.eq=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]");xla=/^http:\/\/.*/;g.C$a=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");wla=/\s+/;zla=/[\d\u06f0-\u06f9]/;gq.prototype.clone=function(){return new gq(this.j,this.J,this.B,this.D,this.C,this.I,this.u,this.T)};
gq.prototype.equals=function(a){return this.j==a.j&&this.J==a.J&&this.B==a.B&&this.D==a.D&&this.C==a.C&&this.I==a.I&&this.u==a.u&&this.T==a.T};iq.prototype.clone=function(){return new iq(this.start,this.end)};(function(){if($0a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.hc()))?a[1]:"0"}return ZW?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.hc()))?a[0].replace(/_/g,"."):"10"):g.fz?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.hc()))?a[1]:""):R8a||S8a||T8a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.hc()))?a[1].replace(/_/g,"."):""):""})();var Bla=function(){if(g.fJ)return jq(/Firefox\/([0-9.]+)/);if(g.mf||g.oB||g.dK)return Ic;if(g.eI){if(Cc()||Dc()){var a=jq(/CriOS\/([0-9.]+)/);if(a)return a}return jq(/Chrome\/([0-9.]+)/)}if(g.BA&&!Cc())return jq(/Version\/([0-9.]+)/);if(cz||dz){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.hc()))return a[1]+"."+a[2]}else if(g.eK)return(a=jq(/Android\s+([0-9.]+)/))?a:jq(/Version\/([0-9.]+)/);return""}();g.Ta(g.lq,g.C);g.k=g.lq.prototype;g.k.subscribe=function(a,b,c){var d=this.u[a];d||(d=this.u[a]=[]);var e=this.I;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.I=e+3;d.push(e);return e};
g.k.unsubscribe=function(a,b,c){if(a=this.u[a]){var d=this.j;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.Gh(a)}return!1};
g.k.Gh=function(a){var b=this.j[a];if(b){var c=this.u[b];0!=this.C?(this.B.push(a),this.j[a+1]=function(){}):(c&&g.wb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.ma=function(a,b){var c=this.u[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.J)for(e=0;e<c.length;e++){var h=c[e];Cla(this.j[h+1],this.j[h+2],d)}else{this.C++;try{for(e=0,f=c.length;e<f&&!this.isDisposed();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.C--,0<this.B.length&&0==this.C)for(;c=this.B.pop();)this.Gh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.u[a];b&&(b.forEach(this.Gh,this),delete this.u[a])}else this.j.length=0,this.u={}};
g.k.qa=function(){g.lq.Gf.qa.call(this);this.clear();this.B.length=0};g.mq.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.Mi(b))};
g.mq.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.mq.prototype.remove=function(a){this.j.remove(a)};g.Ta(nq,g.mq);nq.prototype.set=function(a,b){nq.Gf.set.call(this,a,Ela(b))};
nq.prototype.u=function(a){a=nq.Gf.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
nq.prototype.get=function(a){if(a=this.u(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.Ta(oq,nq);oq.prototype.set=function(a,b,c){if(b=Ela(b)){if(c){if(c<g.Ra()){oq.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.Ra()}oq.Gf.set.call(this,a,b)};
oq.prototype.u=function(a,b){var c=oq.Gf.u.call(this,a);if(c)if(!b&&g.Fla(c))oq.prototype.remove.call(this,a);else return c};g.Ta(g.pq,oq);g.Ta(qq,Gla);qq.prototype[Symbol.iterator]=function(){return Yp(this.hk(!0)).j()};
qq.prototype.clear=function(){var a=Array.from(this);a=g.t(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.Ta(rq,qq);g.k=rq.prototype;g.k.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};
g.k.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeItem(a)};
g.k.hk=function(a){var b=0,c=this.j,d=new g.Mn;d.next=function(){if(b>=c.length)return g.j3;var e=c.key(b++);if(a)return g.Nn(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Nn(e)};
return d};
g.k.clear=function(){this.j.clear()};
g.k.key=function(a){return this.j.key(a)};g.Ta(sq,rq);g.Ta(Hla,rq);g.Ta(uq,qq);var Ila={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},tq=null;g.k=uq.prototype;g.k.isAvailable=function(){return!!this.j};
g.k.set=function(a,b){this.j.setAttribute(vq(a),b);wq(this)};
g.k.get=function(a){a=this.j.getAttribute(vq(a));if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){this.j.removeAttribute(vq(a));wq(this)};
g.k.hk=function(a){var b=0,c=this.j.XMLDocument.documentElement.attributes,d=new g.Mn;d.next=function(){if(b>=c.length)return g.j3;var e=c[b++];if(a)return g.Nn(decodeURIComponent(e.nodeName.replace(/\./g,"%")).slice(1));e=e.nodeValue;if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Nn(e)};
return d};
g.k.clear=function(){for(var a=this.j.XMLDocument.documentElement,b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);wq(this)};g.Ta(xq,qq);xq.prototype.set=function(a,b){this.u.set(this.j+a,b)};
xq.prototype.get=function(a){return this.u.get(this.j+a)};
xq.prototype.remove=function(a){this.u.remove(this.j+a)};
xq.prototype.hk=function(a){var b=this.u[Symbol.iterator](),c=this,d=new g.Mn;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.Nn(a?e.slice(c.j.length):c.u.get(e))};
return d};Lq.prototype.getKey=function(){return this.j};
Lq.prototype.getValue=function(){return this.u};
Lq.prototype.clone=function(){return new Lq(this.j,this.u)};g.k=Mq.prototype;g.k.Ph=function(a,b){var c=this.j;c.push(new Lq(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].getKey()>c.getKey())b[a]=b[d],a=d;else break}b[a]=c};
g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].getKey()<b[f].getKey()?h:f;if(b[f].getKey()>e.getKey())break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.Ml=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Xp=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getKey());return b};
g.k.clone=function(){return new Mq(this)};
g.k.Bf=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.w(Jla,Mq);Nq.Ug=void 0;Nq.getInstance=function(){return Nq.Ug?Nq.Ug:Nq.Ug=new Nq};
Nq.prototype.j=0;var Oq={},D$a="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;Oq.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)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};
Oq.rP=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var E$a={Mx: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]},
AT: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}},F$a={Mx:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
AT:function(a){return[].concat.apply([],a)}};
Oq.a9=function(){D$a?(Oq.Nw=Uint8Array,Oq.Cp=Uint16Array,Oq.mZ=Int32Array,Oq.assign(Oq,E$a)):(Oq.Nw=Array,Oq.Cp=Array,Oq.mZ=Array,Oq.assign(Oq,F$a))};
Oq.a9();var G$a=!0;try{new Uint8Array(1)}catch(a){G$a=!1};var mr={};mr=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?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 nr={},n3,H$a=[],o3=0;256>o3;o3++){n3=o3;for(var I$a=0;8>I$a;I$a++)n3=n3&1?3988292384^n3>>>1:n3>>>1;H$a[o3]=n3}nr=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^H$a[(a^b[d])&255];return a^-1};var dr={};dr={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 Xq=[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],$q=[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],fma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Vla=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hr=Array(576);Pq(hr);var ir=Array(60);Pq(ir);var Zq=Array(512);Pq(Zq);var Wq=Array(256);Pq(Wq);var Yq=Array(29);Pq(Yq);var ar=Array(30);Pq(ar);var cma,dma,ema,bma=!1;var sr;sr=[new rr(0,0,0,0,function(a,b){var c=65535;for(c>a.Vl-5&&(c=a.Vl-5);;){if(1>=a.Yb){or(a);if(0===a.Yb&&0===b)return 1;if(0===a.Yb)break}a.xb+=a.Yb;a.Yb=0;var d=a.qk+c;if(0===a.xb||a.xb>=d)if(a.Yb=a.xb-d,a.xb=d,jr(a,!1),0===a.Sd.le)return 1;if(a.xb-a.qk>=a.Oi-262&&(jr(a,!1),0===a.Sd.le))return 1}a.Ph=0;if(4===b)return jr(a,!0),0===a.Sd.le?3:4;a.xb>a.qk&&jr(a,!1);return 1}),
new rr(4,4,8,4,pr),new rr(4,5,16,8,pr),new rr(4,6,32,32,pr),new rr(4,4,16,16,qr),new rr(8,16,32,32,qr),new rr(8,16,128,128,qr),new rr(8,32,128,256,qr),new rr(32,128,258,1024,qr),new rr(32,258,258,4096,qr)];var ama={};ama=function(){this.input=null;this.yw=this.Ti=this.Gv=0;this.Sj=null;this.LP=this.le=this.pz=0;this.msg="";this.state=null;this.iL=2;this.Cd=0};var gma=Object.prototype.toString;
tr.prototype.push=function(a,b){var c=this.Sd,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=Kla(a):"[object ArrayBuffer]"===gma.call(a)?c.input=new Uint8Array(a):c.input=a;c.Gv=0;c.Ti=c.input.length;do{0===c.le&&(c.Sj=new Oq.Nw(d),c.pz=0,c.le=d);a=$la(c,e);if(1!==a&&0!==a)return this.Gq(a),this.ended=!0,!1;if(0===c.le||0===c.Ti&&(4===e||2===e))if("string"===this.options.to){var f=Oq.rP(c.Sj,c.pz);b=f;f=f.length;if(65537>f&&(b.subarray&&G$a||
!b.subarray))b=String.fromCharCode.apply(null,Oq.rP(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=Oq.rP(c.Sj,c.pz),this.chunks.push(b)}while((0<c.Ti||0===c.le)&&1!==a);if(4===e)return(c=this.Sd)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=er(c,-2):(c.state=null,a=113===d?er(c,-3):0)):a=-2,this.Gq(a),this.ended=!0,0===a;2===e&&(this.Gq(0),c.le=0);return!0};
tr.prototype.Gq=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):Oq.AT(this.chunks));this.chunks=[];this.err=a;this.msg=this.Sd.msg};var vr="@@redux/INIT"+ur(),mma="@@redux/REPLACE"+ur();var nma="function"===typeof Symbol&&Symbol.observable||"@@observable";g.w(xr,J);xr.prototype.getKey=function(){return Gh(this,3)};
var J$a=[xr,1,e3,2,e3,3,e3,4,e3,5,f3];g.w(yr,J);yr.prototype.getType=function(){return bi(this,11)};
var pma=[2,13,14],wTa=function(){var a=[yr,2,M9a,4,e3,7,f3,9,f3,10,f3,11,N9a,12,f3,13,M9a,14,d3,J$a,15,c3,16,c3,17,f3,1,N9a,3,c3,5,c3,6,c3,8,e3];return function(b,c){a:{if(b3.length){var d=b3.pop();xda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Kg(b,c);try{var e=hi(a);var f=wea(new e.Nr,b,e);break a}finally{b.free()}f=void 0}return f}}();var kFa=new g.zr("adInfoDialogEndpoint");var aEa=new g.zr("adPingingEndpoint");var GP=new g.zr("adActionInterstitialRenderer");var K$a=new g.zr("adDurationRemainingRenderer");var S0=new g.zr("adHoverTextButtonRenderer");var iFa=new g.zr("adInfoDialogRenderer");var EP=new g.zr("adMessageRenderer");var T0=new g.zr("adPreviewRenderer");var r2a=new g.zr("dismissablePanelTextPortraitImageRenderer");var L$a=new g.zr("flyoutCtaRenderer");var M$a=new g.zr("instreamAdPlayerUnderlayRenderer");var e8a=new g.zr("instreamSurveyAdBackgroundImageRenderer");var j3a=new g.zr("instreamSurveyAdPlayerOverlayRenderer");var v0=new g.zr("instreamSurveyAdRenderer"),wN=new g.zr("instreamSurveyAdSingleSelectQuestionRenderer"),xN=new g.zr("instreamSurveyAdMultiSelectQuestionRenderer"),p3=new g.zr("instreamSurveyAdAnswerRenderer"),N$a=new g.zr("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var FP=new g.zr("instreamVideoAdRenderer");var O$a=new g.zr("textOverlayAdContentRenderer"),P$a=new g.zr("enhancedTextOverlayAdContentRenderer"),Q$a=new g.zr("imageOverlayAdContentRenderer");var m2a=new g.zr("playerBytesAdLayoutRenderer");var o2a=new g.zr("playerUnderlayAdLayoutRenderer");var HP=new g.zr("adIntroRenderer");var k2a=new g.zr("playerBytesSequentialLayoutRenderer");var s3a=new g.zr("slidingTextPlayerOverlayRenderer");var w0=new g.zr("surveyTextInterstitialRenderer");var R$a=new g.zr("simpleAdBadgeRenderer");var R0=new g.zr("skipAdRenderer"),S$a=new g.zr("skipButtonRenderer");var gra=new g.zr("adSlotRenderer");var p2a=new g.zr("squeezebackPlayerSidePanelRenderer");var T$a=new g.zr("timedPieCountdownRenderer");g.w(Ar,J);g.w(Br,J);g.w(Cr,J);g.w(Dr,J);Dr.prototype.clearVideo=function(){return H(this,1,void 0,!1)};
var NR=[1,2,3];var RFa={Iea:0,Gea:1,Hea:2};var SFa={Mea:0,Lea:1,Kea:2,Jea:3};var WFa={Lha:0,Kha:1,Jha:2};var LR={Xja:0,Yja:1,Vja:2,Uja:3,Sja:4,Wja:5,Tja:6,Rja:7};var VFa={Jka:0,Ika:1,Eka:2,Aka:3,Hka:4,Kka:5,Dka:6,zka:7,Cka:8,Gka:9,Fka:10,Lka:11,Bka:12,Mka:13};var zGa={ala:0,Oka:1,Rka:2,dla:3,Pka:4,Qka:5,Wka:6,Yka:7,Tka:8,Nka:9,Vka:10,Zka:11,Uka:12,Ska:13,Xka:14};var UFa={Koa:0,Ioa:1,Joa:2};var yGa={URa:0,TRa:1,SRa:2,RRa:3};var xGa={bSa:0,VRa:1,WRa:5,XRa:6,ZRa:2,aSa:3,YRa:4};var wGa={eSa:0,fSa:1,dSa:2,cSa:3};var vGa={jSa:0,hSa:1,iSa:2};var uGa={C3a:0,r3a:1,y3a:2,s3a:3,z3a:4,v3a:5,A3a:6,w3a:7,u3a:8,t3a:9,x3a:10,B3a:11,q3a:12};g.w(Er,J);Er.prototype.getType=function(){return bi(this,1)};g.w(Fr,J);g.w(Gr,J);g.w(Hr,J);g.w(Ir,J);Ir.prototype.j=function(a,b){return Ih(this,2,a,b)};
var rma=[2];g.w(Jr,J);Jr.prototype.j=function(a,b){return Ih(this,3,a,b)};
var sma=[3];g.w(Kr,J);g.w(Lr,J);g.w(Mr,J);g.w(Nr,J);g.w(Or,J);g.w(Pr,J);g.w(Qr,J);g.w(Rr,J);var JR=[2,3,4,5,6,7,8,9,10,11,12];var aGa={dga:0,sfa:2,fga:3,tfa:4,rfa:5,Ufa:6,Wfa:58,Efa:17,jfa:18,Yfa:15,cga:7,Ifa:8,Vea:10,Wea:26,lfa:45,pfa:11,Dfa:14,hga:16,Rea:19,Xea:20,Sea:21,jga:22,Yea:23,iga:24,qfa:25,Nea:27,Oea:53,Hfa:28,kfa:30,Mfa:31,ffa:32,Zea:33,Kfa:34,Ffa:35,Afa:36,Tea:37,Sfa:38,Rfa:39,wfa:41,Bfa:42,yfa:43,xfa:44,Uea:40,Ofa:46,Nfa:49,Pfa:50,zfa:51,Cfa:52,gga:54,Zfa:55,aga:56,afa:57,Tfa:60,gfa:67,Pea:64,mfa:65,bfa:68,Qea:69,Jfa:70,vfa:71,ufa:72,efa:73,dfa:75,ega:76,Lfa:77,Gfa:78,Vfa:79,Qfa:80,ifa:81,nfa:82,cfa:83,ofa:84,
Xfa:85};var $Fa={yga:0,xga:1,wga:2};var bGa={ODa:0,HDa:1,KDa:2,kDa:3,MDa:4,XCa:5,DDa:6,nDa:7,NDa:8,gDa:9,ADa:10,hDa:11,FDa:12,ICa:13,rDa:14,pDa:15,qDa:16,EDa:17,tDa:18,CDa:19,BDa:20,xDa:21,cDa:22,JCa:23,oDa:24,vDa:25,eDa:26,dDa:27,uDa:28,KCa:29,yDa:30,jDa:31,LDa:32,WCa:33,wDa:34,VCa:35,YCa:36,ZCa:37,fDa:38,bDa:39,aDa:40,zDa:41,sDa:42,GDa:43,lDa:44,IDa:45,JDa:46,mDa:47,iDa:70,SCa:48,PCa:49,UCa:50,TCa:51,RCa:52,OCa:53,LCa:54,QCa:55,NCa:56,MCa:57,GCa:58,FCa:59,ECa:60,yCa:61,DCa:62,zCa:63,ACa:64,xCa:65,BCa:66,HCa:67,CCa:68,wCa:69};var QFa={Mja:0,Jja:1,Ija:18,Cja:2,vja:3,Bja:9,wja:10,zja:14,xja:4,uja:5,yja:6,Nja:11,Aja:12,tja:13,sja:15,Eja:16,Kja:17,Lja:19,Oja:20,Hja:21,Fja:22,Gja:23,Dja:7};var cGa={tga:0,vga:1,nga:2,oga:3,pga:4,kga:5,lga:6,qga:7,rga:8};var KR={Tga:0,Iga:1,Sga:3,Qga:4,Pga:5,Jga:25,Uga:6,Gga:7,Aga:8,Lga:9,zga:12,Kga:22,Nga:23,Rga:24,Oga:13,Vga:14,Mga:15,Bga:16,Ega:17,Cga:18,Dga:19,Fga:20,Hga:21};g.w(Sr,J);g.w(Tr,J);Tr.prototype.j=function(a,b){return Sh(this,1,Sr,a,b)};
var tma=[1];g.w(Ur,J);Ur.prototype.j=function(a,b){return Ih(this,2,a,b)};
Ur.prototype.getMetrics=function(a){return lea(this,2,a)};
var uma=[2];g.w(Vr,J);var dGa=[1,2];var U$a=new g.zr("confirmDialogEndpoint");var Ora=new g.zr("rawColdConfigGroup");var Nra=new g.zr("rawHotConfigGroup");var BGa={UPa:0,TPa:1,PPa:2,NPa:3,QPa:4,OPa:5,SPa:6,RPa:7};g.YQ=new g.zr("commandExecutorCommand");g.w(Wr,J);g.w(Xr,J);g.w(Yr,J);g.w(Zr,J);var OR=[1,2,3];g.w($r,J);g.w(as,J);as.prototype.B=function(a,b){return Ih(this,1,a,b)};
as.prototype.j=function(a,b){return Ih(this,2,a,b)};
as.prototype.Qf=function(){return Ah(this,3)};
var vma=[1,2];g.w(bs,J);g.w(cs,J);cs.prototype.j=function(a,b){return Ih(this,1,a,b)};
cs.prototype.getMetrics=function(a){return lea(this,1,a)};
var wma=[1];g.w(ds,J);g.w(es,J);g.w(fs,J);g.w(gs,J);g.w(hs,J);g.w(is,J);g.w(js,J);g.w(ks,J);var pGa=[1,2],QR=[3,4,5];g.w(ls,J);ls.prototype.getId=function(){return Ah(this,1)};g.w(ms,J);ms.prototype.getType=function(){return Ah(this,1)};g.w(ns,J);ns.prototype.getType=function(){return Ah(this,1)};g.w(os,J);var TR=[1,2,3];g.w(ps,J);g.w(qs,J);g.w(rs,J);var SR=[1,2,3,4];g.w(ts,J);ts.prototype.j=function(a,b){return Sh(this,2,rs,a,b)};
var xma=[2],nGa=[3,4];g.w(us,J);var PR=[1,2,3];g.w(vs,J);g.w(ws,J);g.w(xs,J);g.w(ys,J);g.w(zs,J);g.w(As,J);As.prototype.j=function(a,b){return Ih(this,1,a,b)};
var yma=[1];g.w(Bs,J);g.w(Cs,J);g.w(Ds,J);var RR=[1,2,3];g.w(Es,J);Es.prototype.j=function(a,b){return Sh(this,1,Ds,a,b)};
var zma=[1];g.w(Fs,J);g.w(Gs,J);g.w(Hs,J);g.w(Is,J);Is.prototype.j=function(a,b){return Sh(this,1,Hs,a,b)};
var Ama=[1];g.w(Js,J);g.w(Ks,J);g.w(Ls,J);Ls.prototype.j=function(a,b){return Sh(this,1,Ks,a,b)};
var Cma=[1];g.w(Ms,J);Ms.prototype.j=function(a,b){return Sh(this,1,Ks,a,b)};
var Dma=[1];g.w(Ns,J);g.w(Os,J);var xxa={H2a:0,e4a:1,z4a:32,I4a:61,U4a:67,K4a:86,x4a:42,A4a:60,l4a:62,G4a:73,E4a:76,M4a:88,N4a:90,f5a:41,g5a:69,h5a:70,i5a:71,DJa:2,YJa:27,ANDROID:3,bha:54,cha:14,jha:91,dha:55,eha:24,fha:20,gha:18,iha:21,mha:30,pha:29,qha:28,rha:34,lha:36,hha:38,IOS:5,oya:15,yya:92,pya:40,rya:25,sya:17,tya:19,uya:64,vya:66,wya:26,Aya:22,Lya:33,Mya:68,Nya:35,xya:53,zya:37,qya:39,Q0a:7,O1a:57,d2a:43,o2a:59,e2a:93,oha:74,v2a:75,w2a:85,x2a:65,z2a:80,A2a:8,O0a:10,C2a:58,B2a:63,y2a:72,nha:23,I5a:11,J5a:13,qla:12,P0a:16,
v4a:56,J4a:31,BJa:77,Mva:84,D4a:87,Ova:89,Nva:94,jHa:95};var V$a={m1:0,CLASSIC:1,O0:2,HZ:3,qZ:4,U0:5,EZ:6,iS:7};g.w(Ps,J);Ps.prototype.q3=function(){return g.ai(this,3)};
Ps.prototype.r3=function(){return g.ai(this,5)};g.w(Qs,J);g.w(Rs,J);g.w(Ss,J);g.w(Ts,J);g.w(Fma,J);var Ema=[2];g.w(g.Us,J);g.Us.prototype.ls=aa(0);g.Us.prototype.getPlayerType=function(){return bi(this,36)};
g.Us.prototype.setHomeGroupInfo=function(a){return I(this,Fma,81,a)};
g.Us.prototype.clearLocationPlayabilityToken=function(){return H(this,89,void 0,!1)};
var Gma=[9,66,24,32,86,100,101];g.w(Vs,J);Vs.prototype.getKey=function(){return g.ai(this,1)};
Vs.prototype.getValue=function(){return g.ai(this,2===Jh(this,fqa)?2:-1)};
var fqa=[2,3,4,5,6];g.w(Ws,J);var Hma=[15,26,28];g.w(Xs,J);var Ima=[5];g.w(Ys,J);Ys.prototype.setToken=function(a){return H(this,2,a)};g.w(pt,J);pt.prototype.setSafetyMode=function(a){return H(this,5,a)};
var Jma=[12];g.w(rt,J);rt.prototype.Bt=function(a){return I(this,g.Us,1,a)};
var Kma=[12];var U0=new g.zr("thumbnailLandscapePortraitRenderer");var HGa={lXa:0,kXa:1,GWa:2,HWa:3,IWa:4,JWa:5,KWa:6,LWa:7,MWa:8,OWa:9,PWa:10,QWa:11,RWa:12,SWa:13,TWa:14,UWa:15,WWa:16,XWa:17,aXa:18,bXa:19,cXa:20,fXa:21,dXa:22,eXa:23,gXa:24,hXa:25,iXa:26,jXa:27,ZWa:28,NWa:29,VWa:30,YWa:31};var GGa={vXa:0,mXa:1,nXa:2,oXa:3,pXa:4,qXa:5,rXa:6,sXa:7,tXa:8,uXa:9,wXa:10};var qGa={ska:0,cka:1,tka:2,oka:3,Zja:4,aka:5,mka:6,bka:7,kka:8,lka:13,fka:9,hka:10,jka:11,uka:12,dka:14,ika:15,gka:16,pka:17,nka:18,rka:19,qka:20};var rGa={yka:0,xka:1,wka:2,vka:3};var CGa={DZa:0,BZa:1,CZa:2};var iGa={Sha:0,Qha:4,Pha:2,Nha:5,Oha:8,Rha:9,Mha:3,Tha:6,Uha:7};var jGa={Sla:0,Pla:1,Qla:2,Tla:3,Ula:4,Rla:5};var hGa={rma:0,pma:8,nma:2,lma:5,mma:9,oma:3,kma:4,tma:6,uma:7,qma:10};var AGa={H3a:0,G3a:1,I3a:2};var W$a={K3a:0,J3a:1};var BHa={f$:0,d$:1,c$:2,e$:3};g.X$a=new g.zr("changeEngagementPanelVisibilityAction");var uFa=new g.zr("continuationCommand");g.Y$a=new g.zr("openPopupAction");g.q3=new g.zr("webCommandMetadata");var uza=new g.zr("metadataBadgeRenderer");var tFa=new g.zr("signalServiceEndpoint");var BIa={iea:0,jea:1,eea:2,hea:3,fea:4,gea:5};var CIa={qea:0,oea:1,lea:2,pea:3,rea:4,nea:5,mea:6};g.w(tt,J);tt.prototype.getType=function(){return bi(this,1)};var cS={rza:0,sza:1,qza:2,mza:3,oza:4,pza:5,tza:6,nza:7};var Z$a={zJa:0,rJa:1,sJa:2,yJa:3,tJa:4,xJa:6,wJa:7,uJa:8,vJa:9};var $$a={GKa:0,DKa:1,FKa:2,EKa:3,CKa:4};var aab={GOa:0,rOa:1,HOa:2,FOa:3,EOa:4,DOa:5,COa:6,uOa:7,sOa:8,yOa:9,LOa:10,tOa:11,AOa:12,JOa:13,KOa:14,BOa:15,xOa:16,wOa:17,zOa:18,vOa:19,IOa:20};var fGa={OOa:0,NOa:86};var dS={bRa:0,aRa:1,TQa:2,QQa:3,SQa:4,cRa:5,ZQa:6,OQa:7,dRa:8,MQa:9,XQa:10,eRa:11,YQa:12,PQa:13,LQa:14,RQa:15,VQa:16,UQa:17,WQa:18,NQa:19};g.gT=new g.zr("innertubeCommand");var bab={wZ:0,tZ:1,vZ:2,uZ:3};var noa={wZ:"EMBEDDED_PLAYER_MODE_UNKNOWN",tZ:"EMBEDDED_PLAYER_MODE_DEFAULT",vZ:"EMBEDDED_PLAYER_MODE_PFP",uZ:"EMBEDDED_PLAYER_MODE_PFL"};var Sza=new g.zr("channelThumbnailEndpoint");var Rza=new g.zr("embeddedPlayerErrorMessageRenderer");var Nza=new g.zr("embeddedPlayerOverlayVideoDetailsRenderer"),Tza=new g.zr("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Uza=new g.zr("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var sza=new g.zr("embedsInfoPanelRenderer");var sGa={RFa:0,FFa:1,OFa:2,QFa:3,GFa:4,JFa:5,LFa:6,HFa:7,IFa:8,NFa:9,PFa:10,KFa:11,MFa:12};var cab=new g.zr("feedbackEndpoint");var dab=new g.zr("callToActionButtonViewModel");g.w(ut,J);g.w(vt,J);g.w(wt,J);var PHa=[1,2];var eab={Cza:0,Dza:1,Bza:2,vza:3,uza:4,wza:5,yza:6,xza:7,Aza:8};var fab={Xza:0,Lza:1,Wza:2,Vza:3,Gza:4,Iza:5,Jza:6,Hza:7,Pza:8,Mza:9,Nza:10,Oza:16,Eza:11,Yza:12,Fza:13,Tza:14,Kza:15,Uza:17,Qza:18,Rza:19,Sza:20};var gab={cAa:0,Zza:1,bAa:2,aAa:3};var hab={Swa:0,zwa:1,Twa:8,Kwa:16,Lwa:17,Owa:2,Mwa:3,Nwa:4,Cwa:5,Awa:6,Bwa:7,Rwa:9,Pwa:10,Qwa:11,Jwa:12,Gwa:13,Iwa:14,Hwa:15,Fwa:18,Dwa:19,Ewa:20,ywa:21};var iab={jOa:0,kOa:1,iOa:2};var jab={qOa:0,mOa:1,oOa:2,lOa:3,nOa:4,pOa:5};var kab={rAa:0,iAa:1,jAa:2,kAa:3,pAa:4,mAa:5,nAa:6,lAa:7,oAa:8,hAa:9,qAa:10};var lab={CEa:0,yEa:1,mEa:2,xEa:3,hEa:4,wEa:5,vEa:6,uEa:7,FEa:8,oEa:9,iEa:10,pEa:11,qEa:12,jEa:13,tEa:14,EEa:15,sEa:16,rEa:17,kEa:18,lEa:19,nEa:20,zEa:21,AEa:22,BEa:23,DEa:24};var mab={ZEa:0,VEa:9,PEa:8,bFa:1,gFa:2,eFa:3,fFa:13,WEa:4,REa:21,SEa:20,TEa:5,LEa:6,KEa:7,NEa:14,MEa:15,iFa:17,jFa:10,UEa:16,OEa:18,YEa:19,IEa:11,JEa:12,cFa:22,dFa:23,HEa:24,aFa:25,GEa:26,hFa:27,QEa:28,XEa:29};var nab={Wia:0,Uia:1,Via:2};var oab={aEa:0,SDa:1,VDa:2,YDa:3,TDa:4,QDa:5,WDa:6,XDa:7,PDa:8,ZDa:9,UDa:10,RDa:11};var pab={Zia:0,Xia:1,aja:2,Yia:3};var qab=new g.zr("interactionLoggingCommandMetadata");var hqa={t4a:"WEB_DISPLAY_MODE_UNKNOWN",p4a:"WEB_DISPLAY_MODE_BROWSER",r4a:"WEB_DISPLAY_MODE_MINIMAL_UI",s4a:"WEB_DISPLAY_MODE_STANDALONE",q4a:"WEB_DISPLAY_MODE_FULLSCREEN"};g.w(xt,J);g.w(zt,J);g.w(At,J);At.prototype.j=function(a,b){return Sh(this,1,zt,a,b)};
var Lma=[1];var YIa={O$:0,r$:1,A$:2,E$:3,K$:4,L$:5,P$:6,F$:7,q$:8,x$:9,w$:10,g$:11,z$:12,o$:14,t$:15,D$:16,C$:17,y$:18,s$:29,u$:19,l$:20,p$:21,N$:22,h$:23,R$:24,v$:25,m$:26,H$:27,n$:28,I$:30,J$:31,B$:32,M$:33,i$:34,G$:35,S$:36,j$:37,k$:38,Q$:39};var rab={Kla:0,Jla:1,Ila:2};g.w(Bt,J);g.w(Ct,J);var sab={fca:0,aca:114,bba:1,Uba:4,Vba:14,Oaa:15,Wba:17,Caa:6,Faa:7,Haa:8,Gaa:9,Maa:5,tba:16,pba:101,Tba:20,Sba:26,Kba:28,Saa:104,paa:105,gca:50,Rba:88,Nba:89,Pba:90,Oba:91,Taa:2,hba:92,jba:19,saa:25,cca:107,Eaa:29,Waa:93,Yaa:94,Xaa:95,dca:30,qba:31,fba:116,dba:3,Zaa:82,Vaa:83,Uaa:84,cba:85,Mba:11,hca:27,uba:10,Zba:115,maa:12,oaa:13,naa:49,jaa:106,Aaa:18,oba:21,Jaa:22,iaa:23,Qba:24,Y$:32,nba:33,caa:34,oca:35,xaa:36,Bba:37,Qaa:38,bca:39,Xba:40,Yba:41,jca:42,Baa:43,eca:44,Paa:45,Iaa:46,vba:47,rba:48,
aba:51,Naa:52,Daa:53,Lba:54,Raa:55,raa:56,waa:57,yaa:99,qaa:58,yba:59,Kaa:60,zba:61,wba:62,lba:63,nca:64,kca:65,ica:66,mca:67,lca:68,X$:69,xba:70,Cba:71,Dba:72,Fba:73,Gba:74,Eba:75,uaa:76,vaa:77,eaa:78,zaa:79,eba:80,Laa:81,taa:86,haa:87,aaa:97,Z$:103,kba:98,Aba:100,daa:102,Jba:108,Iba:109,baa:110,faa:111,mba:112,Hba:113};var tab={Dca:0,xca:1,zca:2,Bca:3,vca:4,qca:5,sca:6,uca:7,Aca:8,rca:9,tca:10,yca:13,Cca:14,pca:11,wca:12};var uab={Ada:0,Gca:1,Hca:2,Jca:3,Qca:4,uda:42,mda:9,vda:10,Oca:11,sda:12,rda:13,Yca:43,lda:14,Zca:15,yda:47,cda:46,hda:16,gda:17,Kca:18,pda:19,Nca:20,qda:21,zda:22,wda:23,xda:24,Mca:25,Ica:26,tda:27,eda:28,jda:38,kda:39,ida:49,oda:5,bda:6,Pca:7,Uca:8,fda:29,nda:30,dda:31,Eca:32,Vca:33,Tca:34,Rca:35,Cda:36,Xca:37,Bda:40,Wca:41,Fca:44,Sca:45,Lca:48};var mIa={Gda:0,Fda:1,Dda:2,Eda:3};var kIa={bma:0,Yla:1,Xla:2,ama:3,Zla:4};var vab={Dma:0,Bma:1,yma:2,Cma:3,zma:4,Ama:5};var wab={Gma:0,Ema:1,Fma:2};var xab={Nma:0,Mma:1,Kma:2,Lma:3,Jma:4};var yab={Qma:0,Oma:1,Pma:2,Rma:3};var zab={Xma:0,Sma:1,Wma:2,Vma:3,Uma:4,Tma:5};var Aab={dna:0,cna:1,Yma:2};var Bab={bna:0,Zma:1,ana:2};var Cab={gna:0,ena:1,fna:2};var Dab={una:0,qna:1,pna:2,kna:3,ona:4,ina:5,jna:6,rna:7,lna:8,sna:9,nna:10,hna:11,mna:12,tna:13};var Eab={zna:0,xna:1,yna:2,wna:3,vna:4};var jIa={QBa:0,qBa:1,rBa:2,FAa:3,hBa:4,sBa:5,iBa:6,GAa:7,tBa:8,yAa:9,zAa:10,MAa:11,EAa:12,HAa:13,kBa:14,KAa:15,xAa:16,GBa:17,fBa:18,IAa:19,nBa:20,lBa:21,mBa:22,wAa:23,OBa:25,FBa:26,sCa:61,YAa:35,QAa:36,OAa:37,UAa:38,TAa:93,WAa:39,VAa:40,cBa:41,MBa:97,NBa:102,ZAa:42,XAa:43,dBa:44,eBa:45,BAa:24,CAa:27,DAa:28,lCa:29,nCa:75,mCa:30,hCa:98,iCa:89,oCa:31,pCa:86,jCa:32,kCa:91,VBa:51,XBa:52,gCa:62,ZBa:70,dCa:63,bCa:64,WBa:65,fCa:66,YBa:71,cCa:67,aCa:68,eCa:69,rCa:33,aBa:46,bBa:47,HBa:49,IBa:50,JBa:94,BBa:77,
vBa:78,uBa:79,wBa:80,jBa:53,RBa:54,TBa:55,SBa:56,CBa:57,DBa:101,EBa:96,UBa:58,oBa:59,pBa:60,xBa:72,ABa:84,yBa:92,JAa:73,KBa:74,AAa:76,PBa:81,PAa:82,LBa:83,RAa:85,SAa:95,qCa:87,gBa:88,LAa:90,zBa:99,NAa:100};var nIa={oZ:0,vla:1,vAa:2,Nla:3,X0:4,Y0:5,HRa:6,uSa:7,rPa:8,u1:9,wla:10,Jda:11,Lda:12,Z3a:13,Zda:14,bea:15,Tda:16,Uda:17,Mda:18,Jia:19,Ppa:20,uxa:21,jya:22,A1:23,pZa:24,Ida:25,xIa:26,wIa:47,f1:27,Iia:28,GRa:29,Nta:30,txa:31,Hla:32,h3a:33,a3a:34,X2a:35,f3a:36,g3a:37,c3a:38,d3a:39,e3a:40,Z2a:41,Y2a:42,Tia:43,P0:44,ria:45,eZ:46,U$:48,FZ:49,iZa:50,Hoa:51,lFa:52,o6a:53};var Fab={xNa:0,mNa:1,rNa:2,pNa:3,qNa:4,lNa:5,vNa:6,wNa:7,kNa:8,tNa:9,nNa:10,oNa:11,sNa:12,uNa:13};var Gab={CNa:0,DNa:1,yNa:2,zNa:3,BNa:4,ANa:5};var iIa={aOa:0,WNa:1,RNa:2,SNa:3,TNa:21,NNa:4,INa:5,KNa:6,JNa:7,MNa:8,ZNa:9,HNa:10,YNa:11,XNa:12,VNa:13,UNa:20,ONa:14,QNa:15,PNa:16,GNa:17,FNa:19,LNa:18};var pIa={fWa:0,aWa:1,bWa:14,dWa:15,eWa:20,OVa:2,WVa:3,TVa:4,UVa:5,LVa:6,XVa:7,SVa:8,PVa:9,NVa:10,ZVa:11,VVa:12,YVa:13,MVa:16,cWa:17,RVa:18,QVa:19};var qIa={y_a:0,v_a:1,x_a:2,w_a:3,p_a:4,t_a:5,s_a:6,r_a:8,q_a:9,u_a:7};var bS={M0a:0,z_a:1,c0a:2,G0a:3,B0a:4,I_a:5,m0a:6,S_a:7,p0a:8,j0a:9,z0a:10,D0a:11,r0a:12,J_a:13,k0a:14,Q_a:15,G_a:16,h0a:17,q0a:18,C0a:19,N_a:20,V_a:21,K0a:22,J0a:57,U_a:23,M_a:24,H_a:25,L0a:26,f0a:27,E0a:28,F0a:29,n0a:30,I0a:31,P_a:32,s0a:33,Z_a:34,b0a:35,i0a:36,g0a:37,u0a:38,l0a:39,N0a:40,W_a:41,X_a:42,Y_a:43,E_a:44,D_a:45,C_a:46,A_a:58,B_a:59,x0a:47,y0a:48,R_a:49,t0a:50,w0a:51,v0a:52,e0a:53,L_a:54,H0a:55,a0a:56,o0a:60,d0a:61,T_a:62,A0a:63,O_a:64,K_a:65,F_a:66};g.w(Dt,J);g.w(Et,J);g.w(Ft,J);g.w(Gt,J);g.w(Ht,J);g.w(It,J);var sIa=[1,2];g.w(Jt,J);Jt.prototype.getType=function(){return bi(this,1)};
var rIa=[3,4];g.w(Kt,J);g.k=Kt.prototype;g.k.Cy=function(){return g.ai(this,1)};
g.k.O1=function(a,b){return Sh(this,2,Jt,a,b)};
g.k.P1=function(a,b){return Sh(this,3,Jt,a,b)};
g.k.N1=function(a,b){return Sh(this,4,Jt,a,b)};
g.k.R1=function(a,b){return Sh(this,5,Jt,a,b)};
g.k.Q1=function(a,b){return Sh(this,6,Jt,a,b)};
var Mma=[2,3,4,5,6];g.w(Lt,J);Lt.prototype.getType=function(){return bi(this,2)};
Lt.prototype.j=function(a,b){return Ih(this,5,a,b)};
var Nma=[5];g.w(Mt,J);Mt.prototype.B=function(a,b){return Ih(this,2,a,b)};
Mt.prototype.j=function(a,b){return Sh(this,4,Jt,a,b)};
Mt.prototype.I=function(a,b){return Sh(this,5,Jt,a,b)};
Mt.prototype.D=function(a,b){return Sh(this,6,Jt,a,b)};
var Oma=[2,4,5,6];g.w(Nt,J);Nt.prototype.getType=function(){return bi(this,2)};g.w(Ot,J);Ot.prototype.j=function(a,b){return Sh(this,1,Nt,a,b)};
var Pma=[1];g.w(Pt,J);g.w(Qt,J);Qt.prototype.j=function(a,b){return Ih(this,1,a,b)};
var Qma=[1];g.w(Rt,J);Rt.prototype.j=function(a,b){return Ih(this,1,a,b)};
Rt.prototype.B=function(a,b){return Ih(this,2,a,b)};
var Rma=[1,2];g.w(St,J);St.prototype.j=function(a,b){return Sh(this,2,Qt,a,b)};
var Sma=[2];g.w(Tt,J);g.w(Ut,J);g.w(Vt,J);Vt.prototype.j=function(a,b){return Sh(this,3,Ut,a,b)};
var Tma=[3];g.w(Wt,J);Wt.prototype.Ye=function(){return bi(this,1)};g.w(Xt,J);Xt.prototype.zf=function(){return bi(this,2)};g.w(Yt,J);g.w(Zt,J);g.w($t,J);$t.prototype.getType=function(){return bi(this,1)};g.w(au,J);g.w(bu,J);g.w(cu,J);g.w(du,J);du.prototype.GB=function(){return g.ai(this,4)};g.w(eu,J);g.w(fu,J);g.w(gu,J);g.w(hu,J);g.w(iu,J);g.w(ju,J);g.w(ku,J);g.w(lu,J);var r3=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];g.w(mu,J);g.w(nu,J);g.w(ou,J);g.w(pu,J);g.w(qu,J);qu.prototype.getState=function(){return bi(this,1)};
qu.prototype.qc=function(a){return H(this,1,a)};g.w(ru,J);g.w(tu,J);tu.prototype.j=function(a,b){return Sh(this,1,ru,a,b)};
var Uma=[1];g.w(uu,J);uu.prototype.j=function(a,b){return Sh(this,2,tu,a,b)};
uu.prototype.B=function(a,b){return Sh(this,3,pu,a,b)};
var Vma=[2,3];g.w(vu,J);vu.prototype.B=function(a,b){return Sh(this,1,uu,a,b)};
vu.prototype.j=function(a,b){return Sh(this,2,ou,a,b)};
var Wma=[1,2];g.w(wu,J);g.w(xu,J);g.w(yu,J);g.w(zu,J);zu.prototype.Jl=function(){return Th(Ah(this,4),0)};g.w(Au,J);g.w(Bu,J);Bu.prototype.setConfig=function(a){return I(this,Au,2,a)};g.w(Cu,J);g.w(Du,J);Du.prototype.getKey=function(){return g.ai(this,1)};
Du.prototype.getValue=function(){return g.ai(this,2)};g.w(Eu,J);g.w(Fu,J);g.w(Gu,J);g.k=Gu.prototype;g.k.getSettings=function(){return Mh(this,Fu,1)};
g.k.ah=function(a){return I(this,Fu,1,a)};
g.k.getState=function(){return bi(this,2)};
g.k.qc=function(a){return H(this,2,a)};
g.k.Jl=function(){return Th(Ah(this,3),0)};g.w(Hu,J);g.w(Iu,J);Iu.prototype.Jl=function(){return Th(Ah(this,4),0)};g.w(Ju,J);g.w(Ku,J);g.k=Ku.prototype;g.k.getType=function(){return bi(this,1)};
g.k.L1=function(a,b){return Sh(this,2,Ju,a,b)};
g.k.Jl=function(){return Th(Ah(this,6),0)};
g.k.getPlaybackRate=function(){return kea(this,7)};
g.k.setPlaybackRate=function(a){return Ph(this,7,a)};
g.k.fP=function(a){H(this,8,a)};
var Xma=[2];g.w(Lu,J);Lu.prototype.Jl=function(){return Th(Ah(this,3),0)};g.w(Mu,J);Mu.prototype.j=function(a,b){return Sh(this,1,Ku,a,b)};
Mu.prototype.B=function(a,b){return Sh(this,2,Lu,a,b)};
var Yma=[1,2];g.w(Nu,J);Nu.prototype.getState=function(){return bi(this,1)};
Nu.prototype.qc=function(a){return H(this,1,a)};g.w(Ou,J);Ou.prototype.Bt=function(a){return H(this,1,a)};
Ou.prototype.j=function(a,b){return Sh(this,4,Mu,a,b)};
var Zma=[4];g.w(Pu,J);Pu.prototype.j=function(a,b){return Ih(this,1,a,b)};
Pu.prototype.Eg=function(a,b){nh(this);var c=Eh(this,1,2,!1,jh(this.Re));if(0>a||a>c.length)throw Error();c[a]=b};
var $ma=[1];g.w(Qu,J);Qu.prototype.j=function(a,b){return Sh(this,4,Du,a,b)};
Qu.prototype.B=function(a,b){return Ih(this,5,a,b)};
var ana=[4,5];g.w(Ru,J);g.w(Su,J);g.w(Tu,J);g.w(Uu,J);Uu.prototype.Qf=function(){return g.ai(this,2)};g.w(Vu,J);Vu.prototype.j=function(a,b){return Sh(this,1,Uu,a,b)};
var bna=[1];g.w(Wu,J);g.w(Xu,J);Xu.prototype.Qf=function(){return g.ai(this,2)};g.w(Yu,J);Yu.prototype.j=function(a,b){return Sh(this,1,Xu,a,b)};
var cna=[1];g.w(Zu,J);var $R=[1,2,3];g.w($u,J);$u.prototype.j=function(a,b){return Sh(this,1,Zu,a,b)};
var dna=[1];g.w(av,J);var FD=[2,3,4,5];g.w(bv,J);bv.prototype.getMessage=function(){return g.ai(this,1)};g.w(cv,J);g.w(dv,J);g.w(ev,J);g.w(fv,J);fv.prototype.zi=function(a,b){return Sh(this,5,ev,a,b)};
var ena=[5];g.w(gv,J);g.w(hv,J);hv.prototype.j=function(a,b){return Sh(this,3,gv,a,b)};
var fna=[3];g.w(iv,J);g.w(jv,J);jv.prototype.B=function(a,b){return Sh(this,19,Ss,a,b)};
jv.prototype.j=function(a,b){return Sh(this,20,Rs,a,b)};
var gna=[19,20];g.w(kv,J);g.w(lv,J);g.w(mv,J);mv.prototype.j=function(a,b){return Sh(this,2,kv,a,b)};
mv.prototype.setConfig=function(a){return I(this,lv,3,a)};
mv.prototype.D=function(a,b){return Sh(this,5,kv,a,b)};
mv.prototype.B=function(a,b){return Sh(this,9,wt,a,b)};
var hna=[2,5,9];g.w(nv,J);nv.prototype.Jl=function(){return Th(Ah(this,2),0)};g.w(ov,J);ov.prototype.j=function(a,b){return Sh(this,9,nv,a,b)};
var ina=[9];g.w(pv,J);g.w(qv,J);g.w(rv,J);g.w(tv,J);g.w(uv,J);uv.prototype.getType=function(){return bi(this,2)};
uv.prototype.j=function(a,b){return Sh(this,3,tv,a,b)};
var jna=[3];g.w(vv,J);vv.prototype.j=function(a,b){return Sh(this,10,wu,a,b)};
vv.prototype.B=function(a,b){return Sh(this,17,ov,a,b)};
var kna=[10,17];g.w(wv,J);var yHa={Gha:0,Fha:1,Cha:2,Dha:3,Eha:4};g.w(xv,J);xv.prototype.Qf=function(){return g.ai(this,2)};
xv.prototype.GB=function(){return g.ai(this,7)};var $Ga={Ria:0,Qia:1,Kia:2,Lia:3,Mia:4,Nia:5,Oia:6,Pia:7};var fHa={Lpa:0,Mpa:3,Npa:1,Kpa:2};var WGa={Fqa:0,Vpa:1,Ypa:2,aqa:3,bqa:4,cqa:5,eqa:6,fqa:7,gqa:8,hqa:9,iqa:10,lqa:11,mqa:12,nqa:13,oqa:14,pqa:15,rqa:16,uqa:17,vqa:18,wqa:19,xqa:20,yqa:21,zqa:22,Aqa:23,Bqa:24,Gqa:25,Hqa:26,sqa:27,Cqa:28,tqa:29,kqa:30,dqa:31,jqa:32,Iqa:33,Jqa:34,Upa:35,Xpa:36,Dqa:37,Eqa:38,Zpa:39,qqa:40,Wpa:41};var ZGa={eta:0,ara:1,msa:2,Zsa:3,rta:4,isa:5,nsa:6,gra:7,ira:8,hra:9,zsa:10,hsa:11,gsa:12,Hsa:13,Lsa:14,ata:15,nta:16,fra:17,Qqa:18,xra:19,mra:20,lsa:21,tsa:22,bta:23,Rqa:24,Tqa:25,Esa:26,ora:116,Ara:27,Bra:28,ysa:29,cra:30,ura:31,ksa:32,xsa:33,Oqa:34,Pqa:35,Mqa:36,Nqa:37,qsa:38,rsa:39,Ksa:40,dra:41,pta:42,Csa:43,wsa:44,Asa:45,jsa:46,Bsa:47,pra:48,jra:49,tta:50,zra:51,yra:52,kra:53,lra:54,Xsa:55,Wsa:56,Vsa:57,Ysa:58,nra:59,qra:60,mta:61,Gsa:62,Dsa:63,Fsa:64,ssa:65,Rsa:66,Psa:67,Qsa:117,Ssa:68,vra:69,
wra:121,sta:70,tra:71,Tsa:72,Usa:73,Isa:74,Jsa:75,sra:76,rra:77,vsa:78,dta:79,usa:80,Kqa:81,Yqa:115,Wqa:120,Xqa:122,Zqa:123,Dra:124,Cra:125,Vqa:126,Osa:127,Msa:128,Nsa:129,qta:130,Lqa:131,Uqa:132,Sqa:133,Gra:82,Ira:83,Xra:84,Jra:85,esa:86,Hra:87,Lra:88,Rra:89,Ura:90,Zra:91,Wra:92,Yra:93,Fra:94,Mra:95,Vra:96,Ora:97,Nra:98,Era:99,Kra:100,bsa:101,Sra:102,fsa:103,csa:104,Pra:105,dsa:106,Tra:107,Qra:118,gta:108,kta:109,jta:110,ita:111,lta:112,hta:113,fta:114};var Hab={ula:0,tla:1,rla:2,sla:3};var hJa={aUa:0,HUa:1,MUa:2,uUa:3,vUa:4,wUa:5,OUa:39,PUa:6,KUa:7,GUa:50,NUa:69,IUa:70,JUa:71,EUa:74,xUa:32,yUa:44,zUa:33,LUa:8,AUa:9,BUa:10,DUa:11,CUa:12,FUa:73,bUa:56,cUa:57,dUa:58,eUa:59,fUa:60,gUa:61,lVa:13,mVa:14,nVa:15,vVa:16,qVa:17,xVa:18,wVa:19,sVa:20,tVa:21,oVa:34,uVa:35,rVa:36,pVa:49,kUa:37,lUa:38,nUa:40,pUa:41,oUa:42,qUa:43,rUa:51,mUa:52,jUa:67,hUa:22,iUa:23,TUa:24,ZUa:25,aVa:62,YUa:26,WUa:27,SUa:48,QUa:53,RUa:63,bVa:66,VUa:54,XUa:68,cVa:72,UUa:75,tUa:64,sUa:65,dVa:28,gVa:29,fVa:30,eVa:31,
iVa:45,kVa:46,jVa:47,hVa:55};var eJa={zVa:0,AVa:1,yVa:2};var jJa={DVa:0,CVa:1,BVa:2};var iJa={KVa:0,IVa:1,GVa:2,JVa:3,EVa:4,FVa:5,HVa:6};var PIa={cZa:0,bZa:1,aZa:2};var OIa={gZa:0,eZa:1,dZa:2,fZa:3};g.w(yv,J);g.w(zv,J);g.w(Av,J);g.w(Bv,J);g.w(Cv,J);g.w(Dv,J);Dv.prototype.hasFeature=function(){return null!=Ah(this,2)};g.w(Ev,J);Ev.prototype.OB=function(){return g.ai(this,7)};g.w(Fv,J);g.w(Gv,J);g.w(Hv,J);Hv.prototype.getName=function(){return bi(this,1)};
Hv.prototype.getStatus=function(){return bi(this,2)};
Hv.prototype.getState=function(){return bi(this,3)};
Hv.prototype.qc=function(a){return H(this,3,a)};g.w(Iv,J);Iv.prototype.j=function(a,b){return Sh(this,2,Hv,a,b)};
var lna=[2];g.w(Jv,J);g.w(Kv,J);Kv.prototype.j=function(a,b){return Sh(this,1,Iv,a,b)};
Kv.prototype.B=function(a,b){return Sh(this,2,Iv,a,b)};
var mna=[1,2];var dJa={fAa:0,dAa:1,eAa:2};var MIa={eGa:0,YFa:1,bGa:2,fGa:3,ZFa:4,aGa:5,cGa:6,dGa:7};var NIa={iGa:0,hGa:1,gGa:2};var LIa={FJa:0,GJa:1,EJa:2};var KIa={WJa:0,JJa:1,SJa:2,XJa:3,UJa:4,MJa:5,IJa:6,KJa:7,LJa:8,VJa:9,TJa:10,NJa:11,QJa:12,RJa:13,PJa:14,OJa:15,HJa:16};var HIa={NXa:0,JXa:1,MXa:2,LXa:3,KXa:4};var GIa={RXa:0,PXa:1,QXa:2,OXa:3};var IIa={YXa:0,UXa:1,WXa:2,SXa:3,XXa:4,TXa:5,VXa:6};var FIa={fYa:0,hYa:1,gYa:2,bYa:3,ZXa:4,aYa:5,iYa:6,cYa:7,jYa:8,dYa:9,eYa:10};var JIa={mYa:0,lYa:1,kYa:2};var TIa={d1a:0,a1a:1,Z0a:2,U0a:3,W0a:4,X0a:5,T0a:6,V0a:7,b1a:8,f1a:9,Y0a:10,R0a:11,S0a:12,e1a:13};var SIa={h1a:0,g1a:1};var $Ia={E1a:0,i1a:1,D1a:2,C1a:3,I1a:4,H1a:5,B1a:19,m1a:6,o1a:7,x1a:8,n1a:24,A1a:25,y1a:20,q1a:21,k1a:22,z1a:23,j1a:9,l1a:10,p1a:11,s1a:12,t1a:13,u1a:14,w1a:15,v1a:16,F1a:17,G1a:18};var UIa={M1a:0,L1a:1,N1a:2,J1a:3,K1a:4};var QIa={c2a:0,V1a:1,Q1a:2,Z1a:3,U1a:4,b2a:5,P1a:6,R1a:7,W1a:8,S1a:9,X1a:10,Y1a:11,T1a:12,a2a:13};var WIa={j2a:0,h2a:1,f2a:2,g2a:3,i2a:4};var VIa={n2a:0,k2a:1,l2a:2,m2a:3};var RIa={r2a:0,q2a:1,p2a:2};var aJa={u2a:0,s2a:1,t2a:2};var bJa={O2a:0,N2a:1,M2a:2,K2a:3,L2a:4};var cJa={S2a:0,Q2a:1,P2a:2,R2a:3};var Iab={Gla:0,Dla:1,Ela:2,Bla:3,Fla:4,Cla:5};var NFa={n1:0,Gxa:1,Eva:2,Fva:3,gAa:4,oKa:5,Xha:6};var WR={doa:0,Kna:101,Qna:102,Fna:103,Ina:104,Nna:105,Ona:106,Rna:107,Sna:108,Una:109,Vna:110,coa:111,Pna:112,Lna:113,Tna:114,Xna:115,eoa:116,Hna:117,Mna:118,foa:119,Yna:120,Zna:121,Jna:122,Gna:123,Wna:124,boa:125,aoa:126};var JHa={ooa:0,loa:1,moa:2,joa:3,koa:4,ioa:5,noa:6};var Jab={fpa:0,epa:1,cpa:2,dpa:3};var Kab={qpa:0,opa:1,hpa:2,npa:3,gpa:4,kpa:5,mpa:6,ppa:7,lpa:8,jpa:9,ipa:10};var Lab={spa:0,tpa:1,rpa:2};g.w(Lv,J);g.w(Mv,J);g.w(Nv,J);Nv.prototype.getState=function(){return Uh(this,1)};
Nv.prototype.qc=function(a){return H(this,1,a)};g.w(Ov,J);g.w(Pv,J);g.w(Qv,J);g.w(Rv,J);g.w(Sv,J);Sv.prototype.Ce=function(){return g.ai(this,1)};
Sv.prototype.setVideoId=function(a){return H(this,1,a)};g.w(Tv,J);Tv.prototype.og=function(a){Rh(this,1,a)};g.w(Uv,J);Uv.prototype.Dk=function(){return Ch(this,Tv,2)};g.w(Vv,J);Vv.prototype.hasFeature=function(){return null!=Ah(this,1)};g.w(Wv,J);g.w(Xv,J);g.w(Yv,J);Yv.prototype.Qf=function(){return bi(this,2)};
var Mab=[1];g.w(Zv,J);g.w($v,J);g.w(aw,J);g.w(bw,J);bw.prototype.getVideoAspectRatio=function(){return kea(this,2)};g.w(cw,J);g.w(dw,J);g.w(ew,J);g.w(fw,J);g.w(gw,J);g.w(hw,J);g.w(iw,J);g.w(jw,J);g.w(kw,J);g.w(lw,J);g.w(mw,J);mw.prototype.getId=function(){return g.ai(this,1)};g.w(nw,J);g.w(ow,J);g.w(pw,J);pw.prototype.j=function(a,b){return Sh(this,5,ow,a,b)};
var nna=[5];g.w(qw,J);g.w(rw,J);g.w(tw,J);tw.prototype.OB=function(){return g.ai(this,30)};
tw.prototype.j=function(a,b){return Sh(this,27,rw,a,b)};
var ona=[27];g.w(uw,J);g.w(vw,J);g.w(ww,J);g.w(xw,J);var s3=[1,2,3,4];g.w(yw,J);g.w(Aw,J);g.w(Fw,J);g.w(Gw,J);g.w(Hw,J);Hw.prototype.Jl=function(){return Th(Ah(this,2),0)};g.w(Iw,J);g.w(Jw,J);g.w(Kw,J);g.w(Lw,J);g.w(Mw,J);g.w(Nw,J);g.w(Ow,J);Ow.prototype.j=function(a,b){return Ih(this,1,a,b)};
var pna=[1];g.w(Pw,J);Pw.prototype.Qf=function(){return bi(this,3)};g.w(Qw,J);g.w(Rw,J);g.w(Sw,J);g.w(Tw,J);Tw.prototype.Ce=function(){return Mh(this,Rw,2===Jh(this,t3)?2:-1)};
Tw.prototype.setVideoId=function(a){return Oh(this,Rw,2,t3,a)};
Tw.prototype.getPlaylistId=function(){return Mh(this,Qw,4===Jh(this,t3)?4:-1)};
var t3=[2,3,4,5];g.w(Uw,J);Uw.prototype.getType=function(){return bi(this,1)};
Uw.prototype.Ce=function(){return g.ai(this,3)};
Uw.prototype.setVideoId=function(a){return H(this,3,a)};g.w(Vw,J);g.w(Ww,J);g.w(Xw,J);var DIa=[3];g.w(Yw,J);g.w(Zw,J);g.w($w,J);g.w(ax,J);g.w(bx,J);g.w(cx,J);g.w(dx,J);g.w(ex,J);g.w(fx,J);g.w(gx,J);gx.prototype.getStarted=function(){return Th(Uda(Ah(this,1)),!1)};g.w(hx,J);g.w(ix,J);g.w(jx,J);jx.prototype.getDuration=function(){return Uh(this,2)};
jx.prototype.Sk=function(a){H(this,2,a)};g.w(kx,J);g.w(lx,J);g.w(mx,J);mx.prototype.OB=function(){return g.ai(this,1)};g.w(nx,J);g.w(ox,J);g.w(px,J);px.prototype.vg=function(){return Mh(this,nx,8)};
px.prototype.a4=function(){return Ch(this,nx,8)};
px.prototype.getVideoData=function(){return Mh(this,ox,15)};
px.prototype.iP=function(a){I(this,ox,15,a)};
var qna=[4];g.w(qx,J);g.w(rx,J);rx.prototype.j=function(a){return H(this,2,a)};g.w(sx,J);sx.prototype.j=function(a){return H(this,1,a)};
var tna=[3];g.w(tx,J);tx.prototype.j=function(a){return H(this,1,a)};
tx.prototype.Dk=function(){return Ch(this,Tv,2)};g.w(ux,J);ux.prototype.j=function(a){return H(this,1,a)};
ux.prototype.Dk=function(){return Ch(this,Tv,2)};g.w(vx,J);vx.prototype.j=function(a){return H(this,1,a)};
vx.prototype.Dk=function(){return Ch(this,Tv,2)};g.w(wx,J);wx.prototype.j=function(a){return H(this,1,a)};
wx.prototype.Dk=function(){return Ch(this,Tv,2)};g.w(xx,J);g.w(yx,J);yx.prototype.getId=function(){return g.ai(this,2)};g.w(Bx,J);Bx.prototype.getVisibilityState=function(){return bi(this,5)};
var vna=[16];g.w(Cx,J);g.w(Dx,J);Dx.prototype.getPlayerType=function(){return bi(this,7)};
Dx.prototype.Ce=function(){return g.ai(this,19)};
Dx.prototype.setVideoId=function(a){return H(this,19,a)};
var wna=[112,83,68];g.w(Fx,J);g.w(Gx,J);g.w(Hx,J);Hx.prototype.Ce=function(){return g.ai(this,1)};
Hx.prototype.setVideoId=function(a){return H(this,1,a)};
Hx.prototype.j=function(a,b){return Sh(this,9,Gx,a,b)};
var xna=[9];g.w(Ix,J);Ix.prototype.j=function(a,b){return Sh(this,3,Hx,a,b)};
var yna=[3];g.w(Jx,J);Jx.prototype.Ce=function(){return g.ai(this,1)};
Jx.prototype.setVideoId=function(a){return H(this,1,a)};g.w(Kx,J);g.w(Lx,J);Lx.prototype.j=function(a,b){return Sh(this,1,Jx,a,b)};
Lx.prototype.B=function(a,b){return Sh(this,2,Kx,a,b)};
var zna=[1,2];g.w(Mx,J);g.w(Nx,J);Nx.prototype.getId=function(){return g.ai(this,1)};
Nx.prototype.j=function(a,b){return Ih(this,2,a,b)};
var Ana=[2];g.w(Ox,J);g.w(Px,J);g.w(Qx,J);Qx.prototype.j=function(a,b){return Ih(this,9,a,b)};
var Bna=[9];g.w(Rx,J);g.w(Sx,J);g.w(Tx,J);Tx.prototype.getId=function(){return g.ai(this,1)};
Tx.prototype.j=function(a,b){return Sh(this,14,Px,a,b)};
Tx.prototype.B=function(a,b){return Sh(this,17,Rx,a,b)};
var Cna=[14,17];g.w(Ux,J);Ux.prototype.B=function(a,b){return Sh(this,1,Tx,a,b)};
Ux.prototype.j=function(a,b){return Sh(this,2,Nx,a,b)};
var Dna=[1,2];g.w(Vx,J);g.w(Wx,J);Wx.prototype.getOrigin=function(){return g.ai(this,3)};
Wx.prototype.Ye=function(){return Uh(this,6)};g.w(Xx,J);g.w(Yx,J);g.w(Zx,J);Zx.prototype.getContext=function(){return Mh(this,Yx,33)};
var AD=[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,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];var Nab={Eoa:0,Boa:1,Aoa:2,Doa:3,Coa:4,yoa:5,zoa:6};var Oab={Cua:0,oua:1,rua:2,pua:3,uua:4,qua:5,Wta:6,zua:7,hua:8,Qta:9,iua:10,vua:11,sua:12,Yta:13,Uta:14,Xta:15,Bua:16,Rta:17,Sta:18,Aua:19,Zta:20,Vta:21,yua:22,Hua:23,Gua:24,Dua:25,jua:26,tua:27,Iua:28,aua:29,Ota:30,Fua:31,Eua:32,gua:33,Lua:34,fua:35,wua:36,Kua:37,kua:38,xua:39,eua:40,cua:41,Tta:42,nua:43,Jua:44,Pta:45};var Pab={uva:0,fva:1,iva:2,gva:3,mva:4,hva:5,Vua:6,rva:7,ava:8,Oua:9,bva:10,nva:11,jva:12,Xua:13,Tua:14,Wua:15,tva:16,Qua:17,Rua:18,sva:19,Yua:20,Uua:21,qva:22,yva:23,xva:24,vva:25,cva:26,kva:27,zva:28,Zua:29,Mua:30,wva:31,Pua:32,Cva:33,ova:34,Bva:35,dva:36,pva:37,Sua:38,eva:39,Ava:40,Nua:41};var Qab={kxa:0,jxa:1,lxa:2};var Rab={nwa:0,lwa:1,hwa:3,jwa:4,kwa:5,mwa:6,iwa:7};var Sab={twa:0,qwa:1,swa:2,rwa:3,pwa:4,owa:5};var Uab={fxa:0,bxa:1,cxa:2,dxa:3,exa:4};var Vab={qxa:0,rxa:1,sxa:2,pxa:3,nxa:4,oxa:5};var QCa={aya:0,Hxa:1,Nxa:2,Oxa:4,Uxa:8,Pxa:16,Qxa:32,Zxa:64,Yxa:128,Jxa:256,Lxa:512,Sxa:1024,Kxa:2048,Mxa:4096,Ixa:8192,Rxa:16384,Vxa:32768,Txa:65536,Wxa:131072,Xxa:262144};var IHa={Eya:0,Dya:1,Cya:2,Bya:4};var HHa={Jya:0,Gya:1,Hya:2,Kya:3,Iya:4,Fya:5};var Wab={Ata:0,zta:1,yta:2};var Xab={mGa:0,lGa:1,kGa:2};var Yab={bHa:0,JGa:1,ZGa:2,LGa:3,RGa:4,dHa:5,aHa:6,zGa:7,yGa:8,xGa:9,DGa:10,IGa:11,HGa:12,AGa:13,SGa:14,NGa:15,PGa:16,pGa:17,YGa:18,tGa:19,OGa:20,oGa:21,QGa:22,GGa:23,qGa:24,sGa:25,VGa:26,cHa:27,WGa:28,MGa:29,BGa:30,EGa:31,FGa:32,wGa:33,eHa:34,uGa:35,CGa:36,TGa:37,rGa:38,nGa:39,vGa:41,KGa:42,UGa:43,XGa:44};var Zab={iHa:0,hHa:1,gHa:2,fHa:3};var bHa={MHa:0,LHa:1,JHa:2,KHa:7,IHa:8,HHa:25,wHa:3,xHa:4,FHa:5,GHa:27,EHa:28,yHa:9,mHa:10,kHa:11,lHa:6,vHa:12,tHa:13,uHa:14,sHa:15,AHa:16,BHa:17,zHa:18,DHa:19,CHa:20,pHa:26,qHa:21,oHa:22,rHa:23,nHa:24,NHa:29};var dHa={SHa:0,PHa:1,QHa:2,RHa:3,OHa:4};var cHa={XHa:0,VHa:1,WHa:2,THa:3,UHa:4};var LGa={eIa:0,YHa:1,aIa:2,ZHa:3,bIa:4,cIa:5,dIa:6,fIa:7};var UHa={Xoa:0,Voa:1,Woa:2,Soa:3,Toa:4,Uoa:5};var ZHa={rMa:0,qMa:1,jMa:2,oMa:3,kMa:4,nMa:5,pMa:6,mMa:7,lMa:8};var uHa={LMa:0,DMa:1,MMa:2,KMa:4,HMa:8,GMa:16,FMa:32,IMa:64,EMa:128,JMa:256};var VHa={eNa:0,ZMa:1,dNa:2,WMa:3,OMa:4,UMa:5,PMa:6,QMa:7,SMa:8,XMa:9,bNa:10,aNa:11,cNa:12,RMa:13,TMa:14,VMa:15,YMa:16,NMa:17};var sHa={gMa:0,dMa:1,eMa:2,fMa:3};var xHa={yMa:0,AMa:1,xMa:2,tMa:3,zMa:4,uMa:5,vMa:6,wMa:7};var PGa={F2a:0,Lla:1,XFa:2,tKa:3,vKa:4,wKa:5,qKa:6,wZa:7,MKa:8,LKa:9,rKa:10,uKa:11,a_a:12,Oda:13,Wda:14,Pda:15,oPa:16,YLa:17,NKa:18,QKa:19,CMa:20,PKa:21,sMa:22,fNa:23,VKa:24,iMa:25,sKa:26,tZa:27,CXa:28,NRa:29,jja:30,n6a:31,hMa:32};var OGa={I2a:0,V$:1,hNa:2,gNa:3,SUCCESS:4,hZa:5,Bta:6,CRa:7,gwa:9,Mla:10,Dna:11,CANCELLED:12,MRa:13,DXa:14,IXa:15,b3a:16};var NGa={o_a:0,f_a:1,k_a:2,j_a:3,g_a:4,h_a:5,b_a:6,n_a:7,m_a:8,e_a:9,d_a:10,i_a:11,l_a:12,c_a:13};var YGa={dPa:0,UOa:1,YOa:2,WOa:3,cPa:4,XOa:5,bPa:6,aPa:7,ZOa:8,VOa:9};var $ab={lQa:0,kQa:1,jQa:2};var abb={oQa:0,mQa:1,nQa:2};var aHa={LSa:0,KSa:1,JSa:2};var bbb={SSa:0,TSa:1};var zIa={ZSa:0,XSa:1,YSa:2,aTa:3};var cbb={iWa:0,gWa:1,hWa:2};var dbb={FYa:0,BYa:1,CYa:2,DYa:3,EYa:4};var wHa={lWa:0,jWa:1,kWa:2};var YHa={FWa:0,CWa:1,DWa:2,EWa:3};var oHa={aha:0,Zga:1,Xga:2,Yga:3};var OHa={Fia:0,zia:1,Cia:2,Dia:3,Bia:4,Eia:5,Gia:6,Aia:7};var iHa={hma:0,gma:1,jma:2};var SGa={D2a:0,fla:1,gla:2,ela:3,hla:4};var RGa={E2a:0,bQa:1,MOa:2};var RHa={Kta:0,Gta:1,Cta:2,Jta:3,Eta:4,Hta:5,Fta:6,Dta:7,Ita:8};var THa={ixa:0,hxa:1,gxa:2};var NHa={WFa:0,VFa:1,UFa:2};var QHa={fKa:0,eKa:1,dKa:2};var MHa={qSa:0,oSa:1,pSa:2};var mHa={lZa:0,kZa:1,jZa:2};var ebb={sFa:0,oFa:1,pFa:2,qFa:3,rFa:4,tFa:5};var fbb={mPa:0,jPa:1,hPa:2,ePa:3,iPa:4,kPa:5,fPa:6,gPa:7,lPa:8,nPa:9};var gbb={KZa:0,JZa:1,LZa:2};var yIa={j6a:0,T5a:1,a6a:2,Z5a:3,S5a:4,k6a:5,h6a:6,U5a:7,V5a:8,Y5a:9,X5a:12,P5a:10,i6a:11,d6a:13,e6a:14,l6a:15,b6a:16,f6a:17,Q5a:18,g6a:19,R5a:20,m6a:21,W5a:22};var tIa={eya:0,cya:1,dya:2,bya:3};g.w($x,J);g.w(ay,J);ay.prototype.Ce=function(){var a=1===Jh(this,kD)?1:-1;return Ah(this,a)};
ay.prototype.setVideoId=function(a){return Kh(this,1,kD,a)};
ay.prototype.getPlaylistId=function(){var a=2===Jh(this,kD)?2:-1;return Ah(this,a)};
var kD=[1,2];g.w(by,J);by.prototype.getContext=function(){return Mh(this,rt,1)};
var Ena=[3];var rM=new g.zr("changeKeyedMarkersVisibilityCommand");var hbb=new g.zr("changeMarkersVisibilityCommand");var wza=new g.zr("loadMarkersCommand");var qza=new g.zr("shoppingOverlayRenderer");g.Oza=new g.zr("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var ibb=new g.zr("adFeedbackEndpoint");var wNa=new g.zr("phoneDialerEndpoint");var vNa=new g.zr("sendSmsEndpoint");var Mza=new g.zr("copyTextEndpoint");var jbb=new g.zr("webPlayerShareEntityServiceEndpoint");g.pM=new g.zr("urlEndpoint");g.oM=new g.zr("watchEndpoint");var LCa=new g.zr("watchPlaylistEndpoint");var cIa={ija:0,hja:1,gja:2,eja:3,fja:4};var tHa={KKa:0,IKa:1,JKa:2,HKa:3};var kbb={aLa:0,ZKa:1,XKa:2,YKa:3};var lbb={eLa:0,bLa:1,cLa:2,dLa:3,fLa:4};var mbb={VLa:0,QLa:1,WLa:2,SLa:3,JLa:4,BLa:37,mLa:5,jLa:36,oLa:38,wLa:39,xLa:40,sLa:41,ULa:42,pLa:27,GLa:31,ILa:6,KLa:7,LLa:8,MLa:9,NLa:10,OLa:11,RLa:29,qLa:30,HLa:32,ALa:12,zLa:13,lLa:14,FLa:15,gLa:16,iLa:35,nLa:43,rLa:28,DLa:17,CLa:18,ELa:19,TLa:20,vLa:25,kLa:33,XLa:21,yLa:22,uLa:26,tLa:34,PLa:23,hLa:24};var aIa={cMa:0,aMa:1,ZLa:2,bMa:3};var ZR={HXa:0,EXa:1,GXa:2,FXa:3};var QGa={ZZa:0,NZa:1,MZa:2,SZa:3,YZa:4,OZa:5,VZa:6,TZa:7,UZa:8,PZa:9,WZa:10,QZa:11,XZa:12,RZa:13};var rHa={BMa:0,WKa:1,OKa:2,TKa:3,UKa:4,RKa:5,SKa:6};var nbb={OSa:0,NSa:1};var obb={IYa:0,HYa:1,GYa:2,JYa:3};var pbb={MYa:0,LYa:1,KYa:2};var qbb={WYa:0,QYa:1,RYa:2,SYa:5,VYa:7,XYa:8,TYa:9,UYa:10};var rbb={PYa:0,OYa:1,NYa:2};var KKa=new g.zr("compositeVideoOverlayRenderer");var KNa=new g.zr("miniplayerRenderer");var bza=new g.zr("playerMutedAutoplayOverlayRenderer"),cza=new g.zr("playerMutedAutoplayEndScreenRenderer");var gya=new g.zr("unserializedPlayerResponse"),dza=new g.zr("unserializedPlayerResponse");var sbb=new g.zr("playlistEditEndpoint");var u3;g.mM=new g.zr("buttonRenderer");u3=new g.zr("toggleButtonRenderer");var YR={G2a:0,tCa:4,sSa:1,cwa:2,mia:3,uCa:5,vSa:6,dwa:7,ewa:8,fwa:9};var tbb=new g.zr("resolveUrlCommandMetadata");var ubb=new g.zr("modifyChannelNotificationPreferenceEndpoint");var $Da=new g.zr("pingingEndpoint");var vbb=new g.zr("unsubscribeEndpoint");var PFa={J2a:0,kJa:1,gJa:2,fJa:3,GIa:71,FIa:4,iJa:5,lJa:6,jJa:16,hJa:69,HIa:70,CIa:56,DIa:64,EIa:65,TIa:7,JIa:8,OIa:9,KIa:10,NIa:11,MIa:12,LIa:13,QIa:43,WIa:44,XIa:45,YIa:46,ZIa:47,aJa:48,bJa:49,cJa:50,dJa:51,eJa:52,UIa:53,VIa:54,SIa:63,IIa:14,RIa:15,PIa:68,b5a:17,k5a:18,u4a:19,a5a:20,O4a:21,c5a:22,m4a:23,W4a:24,R4a:25,y4a:26,k4a:27,F4a:28,Z4a:29,h4a:30,g4a:31,i4a:32,n4a:33,X4a:34,V4a:35,P4a:36,T4a:37,d5a:38,B4a:39,j5a:40,H4a:41,w4a:42,e5a:55,S4a:66,A5a:67,L4a:57,Y4a:58,o4a:59,j4a:60,C4a:61,Q4a:62};var wbb={BTa:0,DTa:1,uTa:2,mTa:3,yTa:4,zTa:5,ETa:6,dTa:7,eTa:8,kTa:9,vTa:10,nTa:11,rTa:12,pTa:13,qTa:14,sTa:15,tTa:19,gTa:16,xTa:17,wTa:18,iTa:20,oTa:21,fTa:22,CTa:23,lTa:24,hTa:25,ATa:26,jTa:27};g.FM=new g.zr("subscribeButtonRenderer");var xbb=new g.zr("subscribeEndpoint");var pHa={pWa:0,nWa:1,oWa:2};g.GKa=new g.zr("buttonViewModel");var ZIa={WTa:0,XTa:1,VTa:2,RTa:3,UTa:4,STa:5,QTa:6,TTa:7};var q2a=new g.zr("qrCodeRenderer");var zxa={BFa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",yFa:"LIVING_ROOM_APP_MODE_MAIN",xFa:"LIVING_ROOM_APP_MODE_KIDS",zFa:"LIVING_ROOM_APP_MODE_MUSIC",AFa:"LIVING_ROOM_APP_MODE_UNPLUGGED",wFa:"LIVING_ROOM_APP_MODE_GAMING"};var lza=new g.zr("autoplaySwitchButtonRenderer");var HL,oza,xya,cPa;HL=new g.zr("decoratedPlayerBarRenderer");oza=new g.zr("chapteredPlayerBarRenderer");xya=new g.zr("multiMarkersPlayerBarRenderer");cPa=new g.zr("chapterRenderer");g.VOa=new g.zr("markerRenderer");var nM=new g.zr("desktopOverlayConfigRenderer");var rza=new g.zr("gatedActionsOverlayViewModel");var ZOa=new g.zr("heatMarkerRenderer");var YOa=new g.zr("heatmapRenderer");var vza=new g.zr("watchToWatchTransitionRenderer");var Pza=new g.zr("playlistPanelRenderer");var TKa=new g.zr("speedmasterEduViewModel");var lM=new g.zr("suggestedActionTimeRangeTrigger"),mza=new g.zr("suggestedActionsRenderer"),nza=new g.zr("suggestedActionRenderer");var $Oa=new g.zr("timedMarkerDecorationRenderer");var ybb={z5a:0,v5a:1,w5a:2,y5a:3,x5a:4,u5a:5,t5a:6,p5a:7,r5a:8,s5a:9,q5a:10,n5a:11,m5a:12,l5a:13,o5a:14};var MR={n1:0,USER:74,Hha:459,TRACK:344,Iha:493,Vha:419,gza:494,dja:337,zIa:237,Uwa:236,Cna:3,B5a:78,E5a:248,oJa:79,mRa:246,K5a:247,zKa:382,yKa:383,xKa:384,oZa:235,VIDEO:4,H5a:186,Vla:126,AYa:127,dma:117,iRa:125,nSa:151,woa:515,Ola:6,Pva:132,Uva:154,Sva:222,Tva:155,Qva:221,Rva:156,zYa:209,yYa:210,U3a:7,BRa:124,mWa:96,kKa:97,b4a:93,c4a:275,wia:110,via:120,iQa:121,wxa:72,N3a:351,FTa:495,L3a:377,O3a:378,Lta:496,Mta:497,GTa:498,xia:381,M3a:386,d4a:387,Bha:410,kya:437,Spa:338,uia:380,T$:352,ROa:113,SOa:114,
EZa:82,FZa:112,uoa:354,AZa:21,Ooa:523,Qoa:375,Poa:514,Qda:302,ema:136,xxa:85,dea:22,L5a:23,IZa:252,HZa:253,tia:254,Nda:165,xYa:304,Noa:408,Xya:421,zZa:422,V3a:423,gSa:463,PLAYLIST:63,S3a:27,R3a:28,T3a:29,pYa:30,sYa:31,rYa:324,tYa:32,Hia:398,vYa:399,wYa:400,mKa:411,lKa:413,nKa:414,pKa:415,uRa:39,vRa:143,zRa:144,qRa:40,rRa:145,tRa:146,F3a:504,yRa:325,BPa:262,DPa:263,CPa:264,FPa:355,GPa:249,IPa:250,HPa:251,Ala:46,PSa:49,RSa:50,Hda:62,hIa:105,aza:242,BXa:397,rQa:83,QOa:135,yha:87,Aha:153,zha:187,tha:89,
sha:88,uha:139,wha:91,vha:104,xha:137,kla:99,U2a:100,iKa:326,qoa:148,poa:149,nYa:150,oYa:395,Zha:166,fia:199,aia:534,eia:167,bia:168,jia:169,kia:170,cia:171,dia:172,gia:179,hia:180,lia:512,iia:513,j3a:200,V2a:476,k3a:213,Wha:191,EPa:192,yPa:305,zPa:306,KPa:329,yWa:327,zWa:328,uPa:195,vPa:197,TOa:301,pPa:223,qPa:224,Vya:227,nya:396,hza:356,cza:490,iza:394,kja:230,oia:297,o3a:298,Uya:342,xoa:346,uta:245,GZa:261,Axa:265,Fxa:266,Bxa:267,yxa:268,zxa:269,Exa:270,Cxa:271,Dxa:272,mFa:303,dEa:391,eEa:503,
gEa:277,uFa:499,vFa:500,kFa:501,nFa:278,fEa:489,zpa:332,Bpa:333,xpa:334,Apa:335,ypa:336,jla:340,Pya:341,E3a:349,D3a:420,xRa:281,sRa:282,QSa:286,qYa:288,wRa:291,ARa:292,cEa:295,uYa:296,bEa:299,Sda:417,lza:308,M5a:309,N5a:310,O5a:311,Dea:350,m3a:418,Vwa:424,W2a:425,AKa:429,jKa:430,fza:426,xXa:460,hKa:427,PRa:428,QRa:542,ORa:461,AWa:464,mIa:431,kIa:432,rIa:433,jIa:434,oIa:435,pIa:436,lIa:438,qIa:439,sIa:453,nIa:454,iIa:472,vQa:545,tQa:546,DQa:547,GQa:548,FQa:549,EQa:550,wQa:551,CQa:552,yQa:516,xQa:517,
zQa:544,BQa:519,AQa:553,sZa:520,sQa:521,uQa:522,dza:543,aQa:440,cQa:441,gQa:442,YPa:448,ZPa:449,dQa:450,hQa:451,fQa:491,POST:445,XPa:446,eQa:447,JQa:456,BKa:483,KQa:529,IQa:458,USa:480,VSa:502,WSa:482,Qya:452,ITa:465,JTa:466,Ena:467,HQa:468,Cpa:469,yla:470,xla:471,bza:474,Oya:475,vma:477,Rya:478,Yva:479,LPa:484,JPa:485,xPa:486,wPa:487,Xda:488,apa:492,Epa:505,Moa:506,W3a:507,uAa:508,Xva:509,Zva:510,bwa:511,n3a:524,P3a:530,wSa:531,Dpa:532,OTa:533,Sya:535,kza:536,Yya:537,eza:538,Tya:539,Zya:540,Wya:541};var Ita=new g.zr("cipher");var hya=new g.zr("playerVars");var eza=new g.zr("playerVars");var v3=g.Ea.window,zbb,Abb,cy=(null==v3?void 0:null==(zbb=v3.yt)?void 0:zbb.config_)||(null==v3?void 0:null==(Abb=v3.ytcfg)?void 0:Abb.data_)||{};g.Fa("yt.config_",cy);var ky=[];var Nna=/^[\w.]*$/,Lna={q:!0,search_query:!0},Kna=String(oy);var Ona=new function(){var a=window.document;this.j=window;this.u=a};
g.Fa("yt.ads_.signals_.getAdSignalsString",function(a){return py(zy(a))});g.Ra();var Rna="XMLHttpRequest"in g.Ea?function(){return new XMLHttpRequest}:null;var Tna={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL",
"X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},Vna="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.u(y$a)),$na=!1,qDa=Fy;g.w(Jy,cb);My.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.B&&a?(a=a.call(c,this.u))&&"function"===typeof a.then?a:Oy(a):2===this.B&&b?(a=b.call(c,this.u))&&"function"===typeof a.then?a:Ny(a):this};
My.prototype.getValue=function(){return this.u};
My.prototype.$goog_Thenable=!0;var Py=!1;var nB=cz||dz;var loa=/^([0-9\.]+):([0-9\.]+)$/;g.w(sz,cb);sz.prototype.name="BiscottiError";g.w(rz,cb);rz.prototype.name="BiscottiMissingError";var uz={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},tz=null;var voa=eaa(["data-"]),zoa={};var Bbb=0,vz=g.Pc?"webkit":Im?"moz":g.mf?"ms":g.dK?"o":"",Cbb=g.Ga("ytDomDomGetNextId")||function(){return++Bbb};
g.Fa("ytDomDomGetNextId",Cbb);var Coa={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};Cz.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Cz.prototype.UU=function(){return this.event?!1===this.event.returnValue:!1};
Cz.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Cz.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Dz=g.Ea.ytEventsEventsListeners||{};g.Fa("ytEventsEventsListeners",Dz);var Foa=g.Ea.ytEventsEventsCounter||{count:0};g.Fa("ytEventsEventsCounter",Foa);var Moa=Nd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Goa=Nd(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var w3;w3=window;g.M=w3.ytcsi&&w3.ytcsi.now?w3.ytcsi.now:w3.performance&&w3.performance.timing&&w3.performance.now&&w3.performance.timing.navigationStart?function(){return w3.performance.timing.navigationStart+w3.performance.now()}:function(){return(new Date).getTime()};g.Ta(Iz,g.C);Iz.prototype.ea=function(a){void 0===a.j&&Doa(a);var b=a.j;void 0===a.u&&Doa(a);this.j=new g.Fe(b,a.u)};
Iz.prototype.Bs=function(){return this.j||new g.Fe};
Iz.prototype.Z=function(){if(this.j){var a=(0,g.M)();if(0!=this.C){var b=this.I,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.C);this.u[this.B]=.5<Math.abs((d-this.D)/this.D)?1:0;for(c=b=0;4>c;c++)b+=this.u[c]||0;3<=b&&this.J();this.D=d}this.C=a;this.I=this.j;this.B=(this.B+1)%4}};
Iz.prototype.qa=function(){window.clearInterval(this.T);g.Fz(this.oa)};g.w(Jz,g.C);Jz.prototype.S=function(a,b,c,d,e){c=g.my((0,g.Oa)(c,d||this.Pb));c={target:a,name:b,callback:c};var f;e&&Moa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.T.push(c);return c};
Jz.prototype.Hc=function(a){for(var b=0;b<this.T.length;b++)if(this.T[b]==a){this.T.splice(b,1);a.target.removeEventListener(a.name,a.callback);break}};
Jz.prototype.qa=function(){g.Lz(this);g.C.prototype.qa.call(this)};Mz.prototype.clone=function(){var a=new Mz,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==oaa(c)?g.md(c):c}return a};var NJa=["att/get"],rLa=["embedded_player"],Dbb=["share/get_web_player_share_panel"],Ebb=["feedback"],Fbb=["notification/modify_channel_preference"],s_a=["player"],Gbb=["browse/edit_playlist"],Hbb=["subscription/subscribe"],Ibb=["subscription/unsubscribe"],w_a=["next","unplugged/watch_next"];var Oz;g.Nz=Nd(function(){var a=new sq;return a.isAvailable()?new g.pq(a):null});
Oz=Nd(function(){var a=new Hla;return a.isAvailable()?new g.pq(a):null});Tz.prototype.JB=function(a,b){a={};var c=jfa([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.ey("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.gy("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in cy||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in cy&&(a["X-Goog-PageId"]=g.ey("DELEGATED_SESSION_ID")));return a};var GB={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Yz=g.Ga("ytglobal.prefsUserPrefsPrefs_")||{};g.Fa("ytglobal.prefsUserPrefsPrefs_",Yz);var Vz;g.k=Roa.prototype;g.k.get=function(a,b){aA(a);$z(a);a=void 0!==Yz[a]?Yz[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){aA(a);$z(a);if(null==b)throw Error("ExpectedNotNull");Yz[a]=b.toString()};
g.k.remove=function(a){aA(a);$z(a);delete Yz[a]};
g.k.save=function(){var a=!0;g.gy("web_secure_pref_cookie_killswitch")&&(a=!1);g.Ry(this.j,this.dump(),63072E3,this.u,a)};
g.k.clear=function(){g.gba(Yz)};
g.k.dump=function(){var a=[],b;for(b in Yz)Yz.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(Yz[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])&&(Yz[d]=c.toString())}};var Uoa={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"},iqa={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_INVALID:31},jqa={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},Woa={"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.bA,Error);eA.prototype.xi=function(a,b){return fA(a,1,b)};
eA.prototype.b2=function(a){(a=this.j.get(a))&&a()};g.Ga("yt.scheduler.instance.timerIdMap_");g.w(hA,eA);hA.prototype.Em=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Ga("yt.scheduler.instance.cancelJob");b?b(a):g.Ey(a)}};
hA.prototype.start=function(){var a=g.Ga("yt.scheduler.instance.start");a&&a()};
hA.prototype.pause=function(){var a=g.Ga("yt.scheduler.instance.pause");a&&a()};
g.Ap=g.iA();lA.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.Mi(b))}catch(f){return}else e=escape(b);g.Ry(a,e,c,this.u)};
lA.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.Sy(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
lA.prototype.remove=function(a){this.j&&this.j.remove(a);g.Ty(a,"/",this.u)};var mA=function(){var a;return function(){a||(a=new lA("ytidb"));return a}}();var sA=[],oA,tA=!1;var x3={},Zoa=(x3.AUTH_INVALID="No user identifier specified.",x3.EXPLICIT_ABORT="Transaction was explicitly aborted.",x3.IDB_NOT_SUPPORTED="IndexedDB is not supported.",x3.MISSING_INDEX="Index not created.",x3.MISSING_OBJECT_STORES="Object stores not created.",x3.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",x3.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",x3.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",x3.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",x3.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",x3.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",x3.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",x3),y3={},$oa=(y3.AUTH_INVALID="ERROR",y3.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",y3.EXPLICIT_ABORT="IGNORED",
y3.IDB_NOT_SUPPORTED="ERROR",y3.MISSING_INDEX="WARNING",y3.MISSING_OBJECT_STORES="ERROR",y3.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",y3.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",y3.QUOTA_EXCEEDED="WARNING",y3.QUOTA_MAYBE_EXCEEDED="WARNING",y3.UNKNOWN_ABORT="WARNING",y3.INCOMPATIBLE_DB_VERSION="WARNING",y3),z3={},apa=(z3.AUTH_INVALID=!1,z3.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,z3.EXPLICIT_ABORT=!1,z3.IDB_NOT_SUPPORTED=!1,z3.MISSING_INDEX=!1,z3.MISSING_OBJECT_STORES=!1,z3.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,z3.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,z3.QUOTA_EXCEEDED=!1,z3.QUOTA_MAYBE_EXCEEDED=!0,z3.UNKNOWN_ABORT=!0,z3.INCOMPATIBLE_DB_VERSION=!1,z3);g.w(g.yA,g.bA);g.w(zA,g.yA);g.w(AA,Error);var bpa=["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.FA.all=function(a){return new g.FA(new EA(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Ew:0};f.Ew<a.length;f={Ew:f.Ew},++f.Ew)g.FA.resolve(a[f.Ew]).then(function(h){return function(l){d[h.Ew]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.FA.resolve=function(a){return new g.FA(new EA(function(b,c){a instanceof g.FA?a.then(b,c):b(a)}))};
g.FA.reject=function(a){return new g.FA(new EA(function(b,c){c(a)}))};
g.FA.prototype.then=function(a,b){var c=this,d=null!=a?a:dpa,e=null!=b?b:cpa;return new g.FA(new EA(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){epa(c,c,d,f,h)}),c.u.push(function(){fpa(c,c,e,f,h)})):"FULFILLED"===c.state.status?epa(c,c,d,f,h):"REJECTED"===c.state.status&&fpa(c,c,e,f,h)}))};
g.FA.prototype.catch=function(a){return this.then(void 0,a)};g.k=ipa.prototype;g.k.advance=function(a){this.cursor.advance(a);return JA(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return JA(this.request)};
g.k.continuePrimaryKey=function(a,b){this.cursor.continuePrimaryKey(a,b);return JA(this.request)};
g.k.getKey=function(){return this.cursor.key};
g.k.ZF=function(){return this.cursor.primaryKey};g.k=jpa.prototype;g.k.add=function(a,b,c){return g.NA(this,[a],{mode:"readwrite",Ub:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.NA(this,[a],{mode:"readwrite",Ub:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.NA(this,[a],{mode:"readonly",Ub:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.NA(this,[a],{mode:"readwrite",Ub:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.NA(this,[a],{mode:"readonly",Ub:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.NA(this,[a],{mode:"readonly",Ub:!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=KA.prototype;g.k.add=function(a,b){return HA(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return HA(this.j.clear()).then(function(){})};
g.k.count=function(a){return HA(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?npa(this,a):HA(this.j.delete(a))};
g.k.get=function(a){return HA(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?HA(this.j.getAll(a,b)):opa(this,a,b)};
g.k.index=function(a){try{return new spa(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new AA(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
QA.prototype.abort=function(){this.j.abort();this.u=!0;throw new g.yA("EXPLICIT_ABORT");};
QA.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.B.get(a);b||(b=new KA(a),this.B.set(a,b));return b};
g.k=spa.prototype;g.k.count=function(a){return HA(this.j.count(a))};
g.k.delete=function(a){return g.hB(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
g.k.get=function(a){return HA(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?HA(this.j.getAll(a,b)):tpa(this,a,b)};
g.k.getKey=function(a){return HA(this.j.getKey(a))};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
g.k=upa.prototype;g.k.advance=function(a){this.cursor.advance(a);return gB(this.request)};
g.k.continue=function(a){this.cursor.continue(a);return gB(this.request)};
g.k.delete=function(){return HA(this.cursor.delete()).then(function(){})};
g.k.getKey=function(){return this.cursor.key};
g.k.ZF=function(){return this.cursor.primaryKey};
g.k.getValue=function(){return this.cursor.value};
g.k.update=function(a){return HA(this.cursor.update(a))};jB.prototype.u=function(a,b,c){c=void 0===c?{}:c;return wpa(a,b,c)};
jB.prototype.delete=function(a){a=void 0===a?{}:a;return iB(this.name,a)};
jB.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,v,x;return g.A(function(z){switch(z.j){case 1:return h=null!=(f=Error().stack)?f:"",g.pa(z,2),g.y(z,c.u(c.name,c.options.version,e),4);case 4:l=z.u;for(var B=c.options,F=[],G=g.t(Object.keys(B.Fq)),D=G.next();!D.done;D=G.next()){D=D.value;var L=B.Fq[D],P=void 0===L.F8?Number.MAX_VALUE:L.F8;!(l.j.version>=L.Cm)||l.j.version>=P||l.j.objectStoreNames.contains(D)||F.push(D)}m=F;if(0===m.length){z.Ka(5);break}n=Object.keys(c.options.Fq);p=l.objectStoreNames();
if(c.D<g.hy("ytidb_reopen_db_retries",0))return c.D++,l.close(),uA(new g.yA("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),z.return(a());if(!(c.C<g.hy("ytidb_remake_db_retries",1))){z.Ka(6);break}c.C++;return g.y(z,c.delete(),7);case 7:return uA(new g.yA("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),z.return(a());case 6:throw new zA(p,n);case 5:return z.return(l);case 2:q=g.sa(z);if(q instanceof
DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){z.Ka(8);break}return g.y(z,c.u(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=z.u;v=r.j.version;if(void 0!==c.options.version&&v>c.options.version+1)throw r.close(),c.B=!1,xpa(c,v);return z.return(r);case 8:throw b(),q instanceof Error&&!g.gy("ytidb_async_stack_killswitch")&&
(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),CA(q,c.name,"",null!=(x=c.options.version)?x:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.B)throw xpa(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,q9:b,upgrade:this.options.upgrade};return this.j=d=a()};var lB=new jB("YtIdbMeta",{Fq:{databases:{Cm:1}},upgrade:function(a,b){b(1)&&g.LA(a,"databases",{keyPath:"actualName"})}});var qB,pB=new function(){}(new function(){});new g.Wj;g.w(tB,jB);tB.prototype.u=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Gpa:Fpa)(a,b,Object.assign({},c))};
tB.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?Kpa:Hpa)(this.name,a)};var Jbb={},Mpa=g.uB("ytGcfConfig",{Fq:(Jbb.coldConfigStore={Cm:1},Jbb.hotConfigStore={Cm:1},Jbb),shared:!1,upgrade:function(a,b){b(1)&&(g.RA(g.LA(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.RA(g.LA(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});HB.prototype.jp=function(){return{version:this.version,args:this.args}};IB.prototype.toString=function(){return this.topic};var Kbb=g.Ga("ytPubsub2Pubsub2Instance")||new g.lq;g.lq.prototype.subscribe=g.lq.prototype.subscribe;g.lq.prototype.unsubscribeByKey=g.lq.prototype.Gh;g.lq.prototype.publish=g.lq.prototype.ma;g.lq.prototype.clear=g.lq.prototype.clear;g.Fa("ytPubsub2Pubsub2Instance",Kbb);var LB=g.Ga("ytPubsub2Pubsub2SubscribedKeys")||{};g.Fa("ytPubsub2Pubsub2SubscribedKeys",LB);var MB=g.Ga("ytPubsub2Pubsub2TopicToKeys")||{};g.Fa("ytPubsub2Pubsub2TopicToKeys",MB);var lqa=g.Ga("ytPubsub2Pubsub2IsAsync")||{};
g.Fa("ytPubsub2Pubsub2IsAsync",lqa);g.Fa("ytPubsub2Pubsub2SkipSubKey",null);var oqa=g.hy("max_body_size_to_compress",5E5),pqa=g.hy("min_body_size_to_compress",500),PB=!0,SB=0,RB=0,rqa=g.hy("compression_performance_threshold",250),sqa=g.hy("slow_compressions_before_abandon_count",10);g.k=VB.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(UB(this)&&this.cg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ih.set(d,this.yf).then(function(e){d.id=e;c.Zg.Rh()&&c.pC(d)}).catch(function(e){c.pC(d);
WB(c,e)})}else this.Qq(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(UB(this)&&this.cg){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.ob&&this.ob("nwl_skip_retry")&&(e.skipRetry=c);if(this.Zg.Rh()||this.ob&&this.ob("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.A(function(m){if(1==m.j)return g.y(m,d.ih.set(e,d.yf).catch(function(n){WB(d,n)}),2);
f(h,l);g.oa(m)})}}this.Qq(a,b,e.skipRetry)}else this.ih.set(e,this.yf).catch(function(h){d.Qq(a,b,e.skipRetry);
WB(d,h)})}else this.Qq(a,b,this.ob&&this.ob("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(UB(this)&&this.cg){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.ih.ly(d.id,c.yf):e=!0;c.Zg.Fv&&c.ob&&c.ob("vss_network_hint")&&c.Zg.Fv(!0);f(h,l)};
this.Qq(d.url,d.options);this.ih.set(d,this.yf).then(function(h){d.id=h;e&&c.ih.ly(d.id,c.yf)}).catch(function(h){WB(c,h)})}else this.Qq(a,b)};
g.k.eA=function(){var a=this;if(!UB(this))throw g.DA("throttleSend");this.j||(this.j=this.cn.xi(function(){var b;return g.A(function(c){if(1==c.j)return g.y(c,a.ih.XT("NEW",a.yf),2);if(3!=c.j)return b=c.u,b?g.y(c,a.pC(b),3):(a.JK(),c.return());a.j&&(a.j=0,a.eA());g.oa(c)})},this.gY))};
g.k.JK=function(){this.cn.Em(this.j);this.j=0};
g.k.pC=function(a){var b=this,c,d;return g.A(function(e){switch(e.j){case 1:if(!UB(b))throw c=g.DA("immediateSend"),c;if(void 0===a.id){e.Ka(2);break}return g.y(e,b.ih.C4(a.id,b.yf),3);case 3:(d=e.u)||b.Iy(Error("The request cannot be found in the database."));case 2:if(b.SH(a,b.pX)){e.Ka(4);break}b.Iy(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){e.Ka(5);break}return g.y(e,b.ih.ly(a.id,b.yf),5);case 5:return e.return();case 4:a.skipRetry||(a=zqa(b,a));if(!a){e.Ka(0);
break}if(!a.skipRetry||void 0===a.id){e.Ka(8);break}return g.y(e,b.ih.ly(a.id,b.yf),8);case 8:b.Qq(a.url,a.options,!!a.skipRetry),g.oa(e)}})};
g.k.SH=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.VH=function(){var a=this;if(!UB(this))throw g.DA("retryQueuedRequests");this.ih.XT("QUEUED",this.yf).then(function(b){b&&!a.SH(b,a.kX)?a.cn.xi(function(){return g.A(function(c){if(1==c.j)return void 0===b.id?c.Ka(2):g.y(c,a.ih.SO(b.id,a.yf),2);a.VH();g.oa(c)})}):a.Zg.Rh()&&a.eA()})};var XB;var Lbb={},Jqa=g.uB("ServiceWorkerLogsDatabase",{Fq:(Lbb.SWHealthLog={Cm:1},Lbb),shared:!0,upgrade:function(a,b){b(1)&&g.RA(g.LA(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var $B={},Pqa=0;aC.prototype.requestComplete=function(a,b){b&&(this.u=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
aC.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.u?!0:null};
aC.prototype.removeParams=function(a){return a.split("?")[0]};
aC.prototype.removeParams=aC.prototype.removeParams;aC.prototype.isEndpointCFR=aC.prototype.isEndpointCFR;aC.prototype.requestComplete=aC.prototype.requestComplete;aC.getInstance=bC;var cC;g.w(eC,g.Fd);g.k=eC.prototype;g.k.Rh=function(){return this.j.Rh()};
g.k.Fv=function(a){this.j.j=a};
g.k.x3=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.P2=function(){this.u=!0};
g.k.Ra=function(a,b){return this.j.Ra(a,b)};
g.k.aI=function(a){a=yp(this.j,a);a.then(function(b){g.gy("use_cfr_monitor")&&bC().requestComplete("generate_204",b)});
return a};
eC.prototype.sendNetworkCheckRequest=eC.prototype.aI;eC.prototype.listen=eC.prototype.Ra;eC.prototype.enableErrorFlushing=eC.prototype.P2;eC.prototype.getWindowStatus=eC.prototype.x3;eC.prototype.networkStatusHint=eC.prototype.Fv;eC.prototype.isNetworkAvailable=eC.prototype.Rh;eC.getInstance=Rqa;g.w(g.fC,g.Fd);g.fC.prototype.Rh=function(){var a=g.Ga("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.u)():!0};
g.fC.prototype.Fv=function(a){var b=g.Ga("yt.networkStatusManager.instance.networkStatusHint").bind(this.u);b&&b(a)};
g.fC.prototype.aI=function(a){var b=this,c;return g.A(function(d){c=g.Ga("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.u);return g.gy("skip_network_check_if_cfr")&&bC().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Fv((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Rh())})):c?d.return(c(a)):d.return(!0)})};var gC;g.w(hC,VB);hC.prototype.writeThenSend=function(a,b){b||(b={});g.dA()||(this.cg=!1);VB.prototype.writeThenSend.call(this,a,b)};
hC.prototype.sendThenWrite=function(a,b,c){b||(b={});g.dA()||(this.cg=!1);VB.prototype.sendThenWrite.call(this,a,b,c)};
hC.prototype.sendAndWrite=function(a,b){b||(b={});g.dA()||(this.cg=!1);VB.prototype.sendAndWrite.call(this,a,b)};
hC.prototype.awaitInitialization=function(){return this.u.promise};var Wqa=g.Ea.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Fa("ytNetworklessLoggingInitializationOptions",Wqa);g.jC.prototype.isReady=function(){!this.config_&&Zpa()&&(this.config_=g.EB());return!!this.config_};var Mbb,mC,oC;Mbb=g.Ea.ytPubsubPubsubInstance||new g.lq;mC=g.Ea.ytPubsubPubsubSubscribedKeys||{};oC=g.Ea.ytPubsubPubsubTopicToKeys||{};g.nC=g.Ea.ytPubsubPubsubIsSynchronous||{};g.lq.prototype.subscribe=g.lq.prototype.subscribe;g.lq.prototype.unsubscribeByKey=g.lq.prototype.Gh;g.lq.prototype.publish=g.lq.prototype.ma;g.lq.prototype.clear=g.lq.prototype.clear;g.Fa("ytPubsubPubsubInstance",Mbb);g.Fa("ytPubsubPubsubTopicToKeys",oC);g.Fa("ytPubsubPubsubIsSynchronous",g.nC);
g.Fa("ytPubsubPubsubSubscribedKeys",mC);var $qa=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,ara=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/,dra={};g.w(xC,g.C);var c2a=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(N,cb);var fsa=[{oN:function(a){return"Cannot read property '"+a.key+"'"},
oH:{Error:[{pj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{pj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{pj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{pj:/\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"]},{pj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{pj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{pj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{oN:function(a){return"Cannot call '"+a.key+"'"},
oH:{TypeError:[{pj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{pj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{pj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{pj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{pj:/\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"]},
{pj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{oN:function(a){return a.key+" is not defined"},
oH:{ReferenceError:[{pj:/(.*) is not defined/,groups:["key"]},{pj:/Can't find variable: (.*)/,groups:["key"]}]}}];var pra={Dq:[],Ir:[{callback:mra,weight:500}]};var EC;var ED=new g.lq;var sra=new Set([174,173,175]),MC={};var RC=Symbol("injectionDeps");OC.prototype.toString=function(){return"InjectionToken("+this.name+")"};
tra.prototype.resolve=function(a){return a instanceof PC?SC(this,a.key,[],!0):SC(this,a,[])};var TC;VC.prototype.storePayload=function(a,b){a=WC(a);this.store[a]?this.store[a].push(b):(this.u={},this.store[a]=[b]);this.j++;return a};
VC.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=YC(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.u(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.u(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.u(this.smartExtractMatchingEntries(a))));
return c};
VC.prototype.extractMatchingEntries=function(a){a=YC(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.u(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
VC.prototype.getSequenceCount=function(a){a=YC(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=(null==(d=this.store[a[c]])?void 0:d.length)||0}return b};
VC.prototype.getSequenceCount=VC.prototype.getSequenceCount;VC.prototype.extractMatchingEntries=VC.prototype.extractMatchingEntries;VC.prototype.smartExtractMatchingEntries=VC.prototype.smartExtractMatchingEntries;VC.prototype.storePayload=VC.prototype.storePayload;var Dra=g.hy("initial_gel_batch_timeout",2E3),Cra=g.hy("gel_queue_timeout_max_ms",6E4),Mra=Math.pow(2,16)-1,cD=void 0,eD=new vra,dD=new vra,fD,oD=!0,mD=g.Ea.ytLoggingTransportTokensToCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToCttTargetIds_",mD);var lD=g.Ea.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Fa("ytLoggingTransportTokensToJspbCttTargetIds_",lD);var bD={};var rD=g.Ea.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",rD);var tD,uD,Sra,Ura=g.jC,Rra=!1,wD=[];var Xra=g.Ea.ytLoggingGelSequenceIdObj_||{};g.Fa("ytLoggingGelSequenceIdObj_",Xra);var gsa=new Set,dsa=0,jsa=0,isa=0,esa=[],lsa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var A3={},psa=(A3["b.f_"]=ssa,A3["j.s_"]=usa,A3["r.s_"]=vsa,A3["e.h_"]=wsa,A3["i.s_"]=xsa,A3),tsa={adPlacements:!0,playerAds:!0,playerResponse:{adPlacements:!0,playerAds:!0}};var ysa=!1;g.w(HD,g.C);HD.prototype.rM=function(){var a=this.j().aM("SLOT_TYPE_PLAYER_BYTES",1),b=this.Va.get().vg(1).clientPlaybackNonce,c=!1;a=g.t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="SLOT_TYPE_PLAYER_BYTES"===d.slotType&&d.slotEntryTrigger instanceof DC?d.slotEntryTrigger.er:void 0;e&&e===b&&(c&&GD("More than 1 preroll playerBytes slot detected",d),c=!0)}return c};
HD.prototype.Nj=function(a,b,c,d,e,f,h){var l=this,m=this.Va.get().vg(1);m.Du?VP(this.Ha.get()):(V0(this.Ca.get(),"h5_enable_unified_csi_preroll")&&rCa(this.Mc.get(),d),zC(this.ac.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return jra(l.Wd.get(),d,e,f,a,b,h,m,"")}),x8a(this.mK),V0(this.Ca.get(),"fetch_bid_for_dclk_status")&&rsa("video loaded"))};
HD.prototype.un=function(){};var ID=Date.now().toString();var B3={},WD=(B3.AD_MARKER="ytp-ad-progress",B3.CHAPTER_MARKER="ytp-chapter-marker",B3.TIME_MARKER="ytp-time-marker",B3);var N0a=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/)"),Dsa=RegExp("^http://0\\.[a-z0-9\\-_]+\\.[a-z0-9\\-_]+\\.l2gfe\\.[a-z0-9_]+\\.([a-z]{2}|i)\\.borg\\.google\\.com(:[0-9]+)?/|^https://([a-z]+\\.)?[0-9a-f]{1,63}\\.sslproxy\\.corp\\.google\\.com/|^https://([a-z]+\\.)?[a-z0-9\\-]{1,63}\\.demos\\.corp\\.google\\.com/|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com/|^https?://((?:uytfe\\.corp|dev-uytfe\\.corp|uytfe\\.sandbox)\\.google\\.com/|([-\\w]*www[-\\w]*\\.|[-\\w]*web[-\\w]*\\.|[-\\w]*canary[-\\w]*\\.|[-\\w]*dev[-\\w]*\\.|[-\\w]{1,3}\\.)+(corp\\.)?youtube(-nocookie|kids|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]+)?/|m?web-ppg\\.corp\\.google\\.com/)"),
O0a=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),Ksa=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)|$))"),
Isa=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)|$))"),Fsa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((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)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-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)?))\\/|^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/)"),
P0a=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),Gsa=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)"),Esa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us)\\.googleusercontent)|((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)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|(photos\\-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)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
txa=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)"),
sxa=RegExp("^https://([A-Za-z0-9-]{1,63}\\.)*(crowdsource|datacompute)\\.google\\.com/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https://canvastester-3fd0b\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-d\\.appspot\\.com(/|$)|^https://narrative-news-cast-receiver-f\\.appspot\\.com(/|$)|^https://one\\.google\\.com(/|$)|^https://www\\.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|books\\.googleusercontent\\.com|play\\-books\\-autopush\\-sandbox\\.googleusercontent\\.com|play\\-books\\-canary\\-sandbox\\.googleusercontent\\.com|play\\-books\\-internal\\-sandbox\\.googleusercontent\\.com|play\\-books\\-staging\\-sandbox\\.googleusercontent\\.com|blogger\\.com|mail\\.google\\.com|survey\\.g\\.doubleclick\\.net|youtube\\.com|youtube\\.googleapis\\.com|youtubeeducation\\.com|youtube\\-nocookie\\.com|yt\\-web\\-embedded\\-player\\.appspot\\.com|youtubekids\\.com|vevo\\.com|chat\\.google\\.com|meet\\.google\\.com|stadia\\.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)"),
Nbb=RegExp("^(https://photos\\.google\\.com|https://get\\.google\\.com|https://currents\\.google\\.com|https://mail\\.google\\.com|https://yt\\-web\\-embedded\\-player\\.appspot\\.com|http://yt\\-web\\-embedded\\-player\\.appspot\\.com|https://chat\\.google\\.com|https://stadia\\.google\\.com|https://one\\.google\\.com|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|canary|internal|staging)-sandbox)\\.googleusercontent\\.com$|^https://(draft|www|(www\\.)?dev\\.sandbox|(www\\.)?autopush\\.sandbox|(www\\.)?restore\\.sandbox)\\.blogger\\.com$|^https://[0-9a-f]{1,63}\\.proxy\\.googleprod\\.com$|^https?://(((docs|m|sing|ss|sss|www)\\.)?drive\\.google\\.com$|([A-Za-z0-9-]{1,63}\\.)*c\\.googlers\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*corp\\.google\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*googleplex\\.com(:[0-9]+)?$|([A-Za-z0-9-]{1,63}\\.)*proxy\\.googlers\\.com(:[0-9]+)?$|(www\\.|encrypted\\.)google\\.(cat|com(\\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))/?$|[A-Za-z0-9-]+\\.prod\\.google\\.com(:[0-9]+)?$|docs\\.google\\.com$)");g.XD.prototype.getId=function(){return this.id};
g.XD.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+Osa(this.start)+", "+Osa(this.end)+"]"};
g.XD.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var Nsa=1;g.XD.prototype.getId=g.XD.prototype.getId;g.w(aE,g.XD);aE.prototype.Jl=function(){return this.end-this.start};g.Ta(g.dE,g.C);g.dE.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.Yi.subscribe(a,b,c)};
g.dE.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.Yi.unsubscribe(a,b,c)};
g.dE.prototype.Gh=function(a){return this.isDisposed()?!1:this.Yi.Gh(a)};
g.dE.prototype.ma=function(a,b){return this.isDisposed()?!1:this.Yi.ma.apply(this.Yi,arguments)};var C3={},Xsa=(C3.auto_search="LATENCY_ACTION_AUTO_SEARCH",C3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",C3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",C3["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",C3.app_startup="LATENCY_ACTION_APP_STARTUP",C3["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",C3["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",C3["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",C3["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
C3["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",C3["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",C3["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",C3["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",C3["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",C3["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",C3["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",C3["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",
C3["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",C3["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",C3.browse="LATENCY_ACTION_BROWSE",C3.cast_splash="LATENCY_ACTION_CAST_SPLASH",C3.channels="LATENCY_ACTION_CHANNELS",C3.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",C3["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",C3["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",C3["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",
C3["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",C3["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",C3["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",C3["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",C3["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",C3["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",C3["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",C3["channel.translations"]=
"LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",C3["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",C3["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",C3.chips="LATENCY_ACTION_CHIPS",C3["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",C3["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",C3["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",C3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",C3.embed="LATENCY_ACTION_EMBED",
C3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",C3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",C3.explore="LATENCY_ACTION_EXPLORE",C3.home="LATENCY_ACTION_HOME",C3.library="LATENCY_ACTION_LIBRARY",C3.live="LATENCY_ACTION_LIVE",C3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",C3.onboarding="LATENCY_ACTION_ONBOARDING",C3.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",C3["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",C3["owner.analytics"]=
"LATENCY_ACTION_CREATOR_CMS_ANALYTICS",C3["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",C3["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",C3["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",C3["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",C3["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",C3["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",C3["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",C3["owner.claims.manual"]=
"LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",C3["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",C3["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",C3["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",C3["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",C3["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",C3["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",C3["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",C3["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",
C3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",C3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",C3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",C3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",C3["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",C3["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",C3.prebuffer="LATENCY_ACTION_PREBUFFER",C3.prefetch="LATENCY_ACTION_PREFETCH",C3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",
C3.profile_switcher="LATENCY_ACTION_LOGIN",C3.reel_watch="LATENCY_ACTION_REEL_WATCH",C3.results="LATENCY_ACTION_RESULTS",C3["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",C3.search_ui="LATENCY_ACTION_SEARCH_UI",C3.search_suggest="LATENCY_ACTION_SUGGEST",C3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",C3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",C3.seek="LATENCY_ACTION_PLAYER_SEEK",C3.settings="LATENCY_ACTION_SETTINGS",C3.store="LATENCY_ACTION_STORE",C3.tenx="LATENCY_ACTION_TENX",
C3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",C3.watch="LATENCY_ACTION_WATCH",C3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",C3["watch,watch7"]="LATENCY_ACTION_WATCH",C3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",C3["watch,watch7ad"]="LATENCY_ACTION_WATCH",C3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",C3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",C3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",C3["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",C3["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",
C3["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",C3["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",C3["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",C3["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",C3["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",C3["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",C3["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",C3["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",
C3["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",C3["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",C3["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",C3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",C3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",C3.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",C3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",C3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",
C3),D3={},Ysa=(D3.ad_allowed="adTypesAllowed",D3.yt_abt="adBreakType",D3.ad_cpn="adClientPlaybackNonce",D3.ad_docid="adVideoId",D3.yt_ad_an="adNetworks",D3.ad_at="adType",D3.aida="appInstallDataAgeMs",D3.browse_id="browseId",D3.p="httpProtocol",D3.t="transportProtocol",D3.cs="commandSource",D3.cpn="clientPlaybackNonce",D3.ccs="creatorInfo.creatorCanaryState",D3.ctop="creatorInfo.topEntityType",D3.csn="clientScreenNonce",D3.docid="videoId",D3.GetHome_rid="requestIds",D3.GetSearch_rid="requestIds",
D3.GetPlayer_rid="requestIds",D3.GetWatchNext_rid="requestIds",D3.GetBrowse_rid="requestIds",D3.GetLibrary_rid="requestIds",D3.is_continuation="isContinuation",D3.is_nav="isNavigation",D3.b_p="kabukiInfo.browseParams",D3.is_prefetch="kabukiInfo.isPrefetch",D3.is_secondary_nav="kabukiInfo.isSecondaryNav",D3.nav_type="kabukiInfo.navigationType",D3.prev_browse_id="kabukiInfo.prevBrowseId",D3.query_source="kabukiInfo.querySource",D3.voz_type="kabukiInfo.vozType",D3.yt_lt="loadType",D3.mver="creatorInfo.measurementVersion",
D3.yt_ad="isMonetized",D3.nr="webInfo.navigationReason",D3.nrsu="navigationRequestedSameUrl",D3.pnt="performanceNavigationTiming",D3.prt="playbackRequiresTap",D3.plt="playerInfo.playbackType",D3.pis="playerInfo.playerInitializedState",D3.paused="playerInfo.isPausedOnLoad",D3.yt_pt="playerType",D3.fmt="playerInfo.itag",D3.yt_pl="watchInfo.isPlaylist",D3.yt_pre="playerInfo.preloadType",D3.yt_ad_pr="prerollAllowed",D3.pa="previousAction",D3.yt_red="isRedSubscriber",D3.rce="mwebInfo.responseContentEncoding",
D3.rc="resourceInfo.resourceCache",D3.scrh="screenHeight",D3.scrw="screenWidth",D3.st="serverTimeMs",D3.ssdm="shellStartupDurationMs",D3.br_trs="tvInfo.bedrockTriggerState",D3.kebqat="kabukiInfo.earlyBrowseRequestInfo.abandonmentType",D3.kebqa="kabukiInfo.earlyBrowseRequestInfo.adopted",D3.label="tvInfo.label",D3.is_mdx="tvInfo.isMdx",D3.preloaded="tvInfo.isPreloaded",D3.aac_type="tvInfo.authAccessCredentialType",D3.upg_player_vis="playerInfo.visibilityState",D3.query="unpluggedInfo.query",D3.upg_chip_ids_string=
"unpluggedInfo.upgChipIdsString",D3.yt_vst="videoStreamType",D3.vph="viewportHeight",D3.vpw="viewportWidth",D3.yt_vis="isVisible",D3.rcl="mwebInfo.responseContentLength",D3.GetSettings_rid="requestIds",D3.GetTrending_rid="requestIds",D3.GetMusicSearchSuggestions_rid="requestIds",D3.REQUEST_ID="requestIds",D3),Zsa="isContinuation isNavigation kabukiInfo.earlyBrowseRequestInfo.adopted kabukiInfo.isPrefetch kabukiInfo.isSecondaryNav isMonetized navigationRequestedSameUrl performanceNavigationTiming playerInfo.isPausedOnLoad prerollAllowed isRedSubscriber tvInfo.isMdx tvInfo.isPreloaded isVisible watchInfo.isPlaylist playbackRequiresTap".split(" "),
E3={},$sa=(E3.ccs="CANARY_STATE_",E3.mver="MEASUREMENT_VERSION_",E3.pis="PLAYER_INITIALIZED_STATE_",E3.yt_pt="LATENCY_PLAYER_",E3.pa="LATENCY_ACTION_",E3.ctop="TOP_ENTITY_TYPE_",E3.yt_vst="VIDEO_STREAM_TYPE_",E3),ata="all_vc ap aq c cbr cbrand cbrver cmodel cos cosver cplatform ctheme cver ei l_an l_mm plid srt yt_fss yt_li vpst vpni2 vpil2 icrc icrt pa GetAccountOverview_rid GetHistory_rid cmt d_vpct d_vpnfi d_vpni nsru pc pfa pfeh pftr pnc prerender psc rc start tcrt tcrc ssr vpr vps yt_abt yt_fn yt_fs yt_pft yt_pre yt_pt yt_pvis ytu_pvis yt_ref yt_sts tds".split(" ");var R={LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING:179,LATENCY_ACTION_KIDS_PROFILE_SWITCHER:90,LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER:100,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC:46,LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR:37,LATENCY_ACTION_SPINNER_DISPLAYED:14,LATENCY_ACTION_PLAYABILITY_CHECK:10,LATENCY_ACTION_PROCESS:9,LATENCY_ACTION_APP_STARTUP:5,LATENCY_ACTION_MINI_APP_PLAY:249,LATENCY_ACTION_DMA_CONSENT_FLOW:247,LATENCY_ACTION_GEL_FETCH:248,LATENCY_ACTION_GEL_JSPB_SERIALIZE:243,
LATENCY_ACTION_GEL_COMPRESSION:215,LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE:204,LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC:203,LATENCY_ACTION_COMMERCE_TRANSACTION:184,LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC:173,LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC:172,LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC:171,LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC:170,LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC:169,LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC:168,LATENCY_ACTION_GET_OFFERS_RPC:167,LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC:166,
LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC:165,LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC:164,LATENCY_ACTION_GET_OFFER_DETAILS_RPC:163,LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC:162,LATENCY_ACTION_GET_TIP_MODULE_RPC:161,LATENCY_ACTION_HANDLE_TRANSACTION_RPC:160,LATENCY_ACTION_COMPLETE_TRANSACTION_RPC:159,LATENCY_ACTION_GET_CART_RPC:158,LATENCY_ACTION_THUMBNAIL_FETCH:156,LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK:154,LATENCY_ACTION_SHARE_VIDEO:153,LATENCY_ACTION_AD_TO_VIDEO_INT:152,LATENCY_ACTION_ABANDONED_BROWSE:151,
LATENCY_ACTION_PLAYER_ROTATION:150,LATENCY_ACTION_GENERIC_WEB_VIEW:183,LATENCY_ACTION_SHOPPING_IN_APP:124,LATENCY_ACTION_PLAYER_ATTESTATION:121,LATENCY_ACTION_PLAYER_SEEK:119,LATENCY_ACTION_SUPER_STICKER_BUY_FLOW:114,LATENCY_ACTION_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,
LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,
LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,
LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,
LATENCY_ACTION_EDIT_AUDIO_GEN:182,LATENCY_ACTION_UPLOAD_AUDIO_MIXER:147,LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING:157,LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING:146,LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK:130,LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD:125,LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD:240,LATENCY_ACTION_SHORTS_VIDEO_INGESTION:155,LATENCY_ACTION_SHORTS_GALLERY:107,LATENCY_ACTION_SHORTS_TRIM:105,LATENCY_ACTION_SHORTS_EDIT:104,LATENCY_ACTION_SHORTS_CAMERA:103,LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT:239,
LATENCY_ACTION_CREATION_MODES_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,
LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,
LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,
LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,
LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,
LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,
LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,
LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,
LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_THUMBNAIL_LOAD:42,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,
LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,
LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};R[R.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";R[R.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";
R[R.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";R[R.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";R[R.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";R[R.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";R[R.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";R[R.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";
R[R.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";R[R.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";R[R.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";R[R.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";R[R.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";R[R.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";R[R.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";
R[R.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";R[R.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";R[R.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";R[R.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";R[R.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";
R[R.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";R[R.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";R[R.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";R[R.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";R[R.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";R[R.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";
R[R.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";R[R.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";R[R.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";R[R.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";R[R.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";
R[R.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";R[R.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";R[R.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";R[R.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";R[R.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";R[R.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";R[R.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";
R[R.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";R[R.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";R[R.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";R[R.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";R[R.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";R[R.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";R[R.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";
R[R.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";R[R.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";R[R.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";R[R.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";R[R.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";R[R.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";
R[R.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";R[R.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";R[R.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";R[R.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";R[R.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";R[R.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";
R[R.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";R[R.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";R[R.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";R[R.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";R[R.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";R[R.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";R[R.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";
R[R.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";R[R.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";R[R.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";R[R.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";R[R.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";R[R.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";
R[R.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";R[R.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";R[R.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";R[R.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";R[R.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";R[R.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";R[R.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";
R[R.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";R[R.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";R[R.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";R[R.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";R[R.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";R[R.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";R[R.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";R[R.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";
R[R.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";R[R.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";R[R.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";R[R.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";R[R.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";R[R.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";R[R.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";
R[R.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";R[R.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";R[R.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";R[R.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";R[R.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";R[R.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";
R[R.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";R[R.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";R[R.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";R[R.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";R[R.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";R[R.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";R[R.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";
R[R.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";R[R.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";R[R.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";R[R.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";R[R.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";R[R.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";
R[R.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";R[R.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";R[R.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";R[R.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";R[R.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";R[R.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";
R[R.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";R[R.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";R[R.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";R[R.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";R[R.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";R[R.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";
R[R.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";R[R.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";R[R.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";R[R.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";R[R.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";R[R.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";R[R.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";R[R.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";
R[R.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";R[R.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";R[R.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";R[R.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";R[R.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";R[R.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";
R[R.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";R[R.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";R[R.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";R[R.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";R[R.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";R[R.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";
R[R.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";R[R.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";R[R.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";R[R.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";R[R.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";R[R.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";
R[R.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";R[R.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";R[R.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";R[R.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";
R[R.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";R[R.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";R[R.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";R[R.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";R[R.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";R[R.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";
R[R.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";R[R.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";R[R.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";R[R.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";R[R.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";
R[R.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";R[R.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";R[R.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";R[R.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";R[R.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";
R[R.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";
R[R.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";R[R.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";R[R.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";R[R.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";R[R.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";
R[R.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";R[R.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";R[R.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";R[R.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";R[R.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";
R[R.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";R[R.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";R[R.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";R[R.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";R[R.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";
R[R.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";R[R.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";R[R.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";R[R.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";R[R.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";R[R.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";
R[R.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";R[R.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";R[R.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";R[R.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";R[R.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";R[R.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";R[R.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";R[R.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";
R[R.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";R[R.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";R[R.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";R[R.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";R[R.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";R[R.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";R[R.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";
R[R.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";R[R.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";R[R.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";R[R.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";R[R.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";R[R.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";R[R.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";R[R.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";
R[R.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";R[R.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";R[R.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";R[R.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";R[R.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";R[R.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";R[R.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";R[R.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";
R[R.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";R[R.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";R[R.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";R[R.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";R[R.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";R[R.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";R[R.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";R[R.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";R[R.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";
R[R.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var LE={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};LE[LE.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";LE[LE.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";LE[LE.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";
var ME={CONN_INVALID:31,CONN_CELLULAR_5G_NSA:12,CONN_CELLULAR_5G_SA:11,CONN_WIFI_METERED:10,CONN_CELLULAR_5G:9,CONN_DISCO:8,CONN_CELLULAR_UNKNOWN:7,CONN_CELLULAR_4G:6,CONN_CELLULAR_3G:5,CONN_CELLULAR_2G:4,CONN_WIFI:3,CONN_NONE:2,CONN_UNKNOWN:1,CONN_DEFAULT:0};ME[ME.CONN_INVALID]="CONN_INVALID";ME[ME.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";ME[ME.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";ME[ME.CONN_WIFI_METERED]="CONN_WIFI_METERED";ME[ME.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";
ME[ME.CONN_DISCO]="CONN_DISCO";ME[ME.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";ME[ME.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";ME[ME.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";ME[ME.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";ME[ME.CONN_WIFI]="CONN_WIFI";ME[ME.CONN_NONE]="CONN_NONE";ME[ME.CONN_UNKNOWN]="CONN_UNKNOWN";ME[ME.CONN_DEFAULT]="CONN_DEFAULT";
var NE={DETAILED_NETWORK_TYPE_NR_NSA:126,DETAILED_NETWORK_TYPE_NR_SA:125,DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED:124,DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT:123,DETAILED_NETWORK_TYPE_DISCONNECTED:122,DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN:121,DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN:120,DETAILED_NETWORK_TYPE_WIMAX:119,DETAILED_NETWORK_TYPE_ETHERNET:118,DETAILED_NETWORK_TYPE_BLUETOOTH:117,DETAILED_NETWORK_TYPE_WIFI:116,DETAILED_NETWORK_TYPE_LTE:115,DETAILED_NETWORK_TYPE_HSPAP:114,DETAILED_NETWORK_TYPE_EHRPD:113,
DETAILED_NETWORK_TYPE_EVDO_B:112,DETAILED_NETWORK_TYPE_UMTS:111,DETAILED_NETWORK_TYPE_IDEN:110,DETAILED_NETWORK_TYPE_HSUPA:109,DETAILED_NETWORK_TYPE_HSPA:108,DETAILED_NETWORK_TYPE_HSDPA:107,DETAILED_NETWORK_TYPE_EVDO_A:106,DETAILED_NETWORK_TYPE_EVDO_0:105,DETAILED_NETWORK_TYPE_CDMA:104,DETAILED_NETWORK_TYPE_1_X_RTT:103,DETAILED_NETWORK_TYPE_GPRS:102,DETAILED_NETWORK_TYPE_EDGE:101,DETAILED_NETWORK_TYPE_UNKNOWN:0};NE[NE.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
NE[NE.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";NE[NE.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";NE[NE.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";NE[NE.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";NE[NE.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";NE[NE.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
NE[NE.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";NE[NE.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";NE[NE.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";NE[NE.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";NE[NE.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";NE[NE.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";NE[NE.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";NE[NE.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
NE[NE.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";NE[NE.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";NE[NE.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";NE[NE.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";NE[NE.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";NE[NE.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";NE[NE.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";NE[NE.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
NE[NE.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";NE[NE.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";NE[NE.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";NE[NE.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var OE={LATENCY_PLAYER_RTSP:7,LATENCY_PLAYER_HTML5_INLINE:6,LATENCY_PLAYER_HTML5_FULLSCREEN:5,LATENCY_PLAYER_HTML5:4,LATENCY_PLAYER_FRAMEWORK:3,LATENCY_PLAYER_FLASH:2,LATENCY_PLAYER_EXO:1,LATENCY_PLAYER_UNKNOWN:0};
OE[OE.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";OE[OE.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";OE[OE.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";OE[OE.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";OE[OE.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";OE[OE.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";OE[OE.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";OE[OE.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var PE={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};PE[PE.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";PE[PE.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";PE[PE.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";PE[PE.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var QE={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
QE[QE.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";QE[QE.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var RE={LIVE_STREAM_MODE_WINDOW:5,LIVE_STREAM_MODE_POST:4,LIVE_STREAM_MODE_LP:3,LIVE_STREAM_MODE_LIVE:2,LIVE_STREAM_MODE_DVR:1,LIVE_STREAM_MODE_UNKNOWN:0};RE[RE.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";RE[RE.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";RE[RE.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
RE[RE.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";RE[RE.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";RE[RE.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var SE={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};SE[SE.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";SE[SE.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";SE[SE.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";SE[SE.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var TE={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};TE[TE.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";TE[TE.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";TE[TE.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var UE={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};UE[UE.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
UE[UE.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";UE[UE.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var nta="actionVisualElement spinnerInfo cacheAttempts resourceInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.w(sE,HB);var yta=new IB("aft-recorded",sE);var vE=g.Ea.ytLoggingLatencyUsageStats_||{};g.Fa("ytLoggingLatencyUsageStats_",vE);tE.prototype.tick=function(a,b,c,d){wE(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.gy("web_csi_via_jspb")?(d=new Fx,H(d,1,a),H(d,2,b),a=new Zx,Oh(a,Fx,5,AD,d),zD(a,c)):g.rA("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
tE.prototype.info=function(a,b,c){var d=Object.keys(a).join("");wE(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.rA("latencyActionInfo",a,{cttAuthInfo:c}))};
tE.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));wE(this,"info_"+d+"_"+b)||(H(a,2,b),b={cttAuthInfo:c},c=new Zx,Oh(c,Dx,7,AD,a),zD(c,b))};
tE.prototype.span=function(a,b,c){var d=Object.keys(a).join("");wE(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.rA("latencyActionSpan",a,{cttAuthInfo:c}))};var F3=window,xE=F3.performance||F3.mozPerformance||F3.msPerformance||F3.webkitPerformance||new cta;var G3=g.Ea.ytLoggingDocDocumentNonce_;G3||(G3=g.KD(16),g.Fa("ytLoggingDocDocumentNonce_",G3));var lta=G3;var ita={sZ:0,ila:1,cma:2,yIa:3,roa:4,Y3a:5,CJa:6,MSa:7,lRa:8,kSa:9,0:"DEFAULT",1:"CHAT",2:"CONVERSATIONS",3:"MINIPLAYER",4:"DIALOG",5:"VOZ",6:"MUSIC_WATCH_TABS",7:"SHARE",8:"PUSH_NOTIFICATIONS",9:"RICH_GRID_WATCH"};var eta=1;AE.prototype.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
AE.prototype.getAsJspb=function(){var a=new Tv;void 0!==this.j.trackingParams?a.og(this.j.trackingParams):(void 0!==this.j.veType&&H(a,2,this.j.veType),void 0!==this.j.veCounter&&H(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&H(a,3,this.j.elementIndex),this.j.isCounterfactual&&H(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();I(a,Tv,7,b)}void 0!==this.j.youtubeData&&I(a,Os,8,this.j.jspbYoutubeData);return a};
AE.prototype.toString=function(){return JSON.stringify(this.getAsJson())};
AE.prototype.isClientVe=function(){return!this.j.trackingParams&&!!this.j.veType};g.Fa("yt_logging_screen.getRootVeType",gta);g.Fa("yt_logging_screen.getCurrentCsn",g.FE);g.Fa("yt_logging_screen.getCttAuthInfo",GE);g.Fa("yt_logging_screen.setCurrentScreen",HE);var xta=!1,XE={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",
'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",'script[name="mobile_blazer_watch_mod"]':"mbwj"},
Ata=(0,g.Oa)(xE.clearResourceTimings||xE.webkitClearResourceTimings||xE.mozClearResourceTimings||xE.msClearResourceTimings||xE.oClearResourceTimings||g.Md,xE);var Obb=window;Obb.ytcsi&&(Obb.ytcsi.info=g.dF,Obb.ytcsi.tick=eF);var Pbb;var Qbb=g.hc(),Rbb=Qbb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Rbb||2>Rbb.length)Pbb=void 0;else{var Sbb=Qbb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Pbb=Sbb&&6===Sbb.length?Number(Sbb[5].replace("_",".")):0}var dM=Pbb,RT=0<=dM;var Yya={soa:1,upa:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};var xM=Hta()?!0:"function"!==typeof window.fetch||!window.ReadableStream||!window.AbortController||g.oB||g.fJ?!1:!0;var H3={},HI=(H3.FAIRPLAY="fairplay",H3.PLAYREADY="playready",H3.WIDEVINE="widevine",H3.CLEARKEY=null,H3.FLASHACCESS=null,H3.UNKNOWN=null,H3.WIDEVINE_CLASSIC=null,H3);var Tbb=["h","H"],Ubb=["9","("],Vbb=["9h","(h"],Wbb=["8","*"],Xbb=["a","A"],Ybb=["o","O"],Zbb=["m","M"],$bb=["mac3","MAC3"],acb=["meac3","MEAC3"],I3={},twa=(I3.h=Tbb,I3.H=Tbb,I3["9"]=Ubb,I3["("]=Ubb,I3["9h"]=Vbb,I3["(h"]=Vbb,I3["8"]=Wbb,I3["*"]=Wbb,I3.a=Xbb,I3.A=Xbb,I3.o=Ybb,I3.O=Ybb,I3.m=Zbb,I3.M=Zbb,I3.mac3=$bb,I3.MAC3=$bb,I3.meac3=acb,I3.MEAC3=acb,I3);g.hF.prototype.getLanguageInfo=function(){return this.Jc};
g.hF.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.hF.prototype.toString=function(){return this.Jc.name};
g.hF.prototype.getLanguageInfo=g.hF.prototype.getLanguageInfo;var J3,mF;J3={};g.jF=(J3.auto=0,J3.tiny=144,J3.light=144,J3.small=240,J3.medium=360,J3.large=480,J3.hd720=720,J3.hd1080=1080,J3.hd1440=1440,J3.hd2160=2160,J3.hd2880=2880,J3.highres=4320,J3);mF={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};iF.prototype.equals=function(a){return this.u===a.u&&this.j===a.j&&this.B===a.B&&this.reason===a.reason};
iF.prototype.isLocked=function(){return this.B&&!!this.u&&this.u===this.j};
iF.prototype.compose=function(a){if(a.B&&lF(a))return ZL;if(a.B||lF(this))return a;if(this.B||lF(a))return this;var b=this.u&&a.u?Math.max(this.u,a.u):this.u||a.u,c=this.j&&a.j?Math.min(this.j,a.j):this.j||a.j;b=Math.min(b,c);return b===this.u&&c===this.j?this:new iF(b,c,!1,c===this.j?this.reason:a.reason)};
iF.prototype.C=function(a){return a.video?Jta(this,a.video.quality):!1};
var bcb=g.kF("auto","hd1080",!1,"l"),TXa=g.kF("auto","large",!1,"l"),ZL=g.kF("auto","auto",!1,"p");oF.prototype.Zr=function(a){a=a||ZL;for(var b=g.Rn(this.videoInfos,function(h){return a.C(h)}),c=[],d={},e=0;e<b.length;e++){var f=b[e].video;
d[f.quality]||(c.push(f),d[f.quality]=!0)}return c};
oF.prototype.LB=function(a){a=a||ZL;return g.Rn(this.videoInfos,function(b){return a.C(b)})};
oF.prototype.getAvailableAudioTracks=function(){return this.audioTracks};g.w(pF,g.C);pF.prototype.qa=function(){g.C.prototype.qa.call(this)};var CF={hc:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
hb:function(a,b){a.splice(0,b)},
My:function(a){a.reverse()}};g.DF.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.DF.prototype.get=function(a){EF(this);return this.j[a]||null};
g.DF.prototype.Ze=function(){this.url||(this.url=cua(this));return this.url};
g.DF.prototype.clone=function(){var a=new g.DF(this.u,this.D);a.B=this.B;a.path=this.path;a.C=this.C;a.j=g.md(this.j);a.url=this.url;return a};
var bua=[qma];g.k=g.KF.prototype;g.k.AJ=function(a){this.segments.push(a)};
g.k.getDuration=function(a){return(a=this.Go(a))?a.duration:0};
g.k.KT=function(a){return this.getDuration(a)};
g.k.Lm=function(){return this.segments.length?this.segments[0].Ma:-1};
g.k.Pf=function(a){return(a=this.Go(a))?a.ingestionTime:NaN};
g.k.td=function(){return this.segments.length?this.segments[this.segments.length-1].Ma:-1};
g.k.OM=function(a){return this.td()===a&&!this.u&&0<=a};
g.k.ys=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Id=function(){return this.segments[0].startTime};
g.k.Fy=function(){return this.segments.length};
g.k.Yp=function(){return 0};
g.k.uh=function(a){return(a=this.vy(a))?a.Ma:-1};
g.k.bG=function(a){return(a=this.Go(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Go(a))?a.startTime:0};
g.k.dG=aa(2);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.Go=function(a){if(this.j&&this.j.Ma===a)return this.j;a=g.Jb(this.segments,new JF(a,0,0,0,""),function(b,c){return b.Ma-c.Ma});
return this.j=0<=a?this.segments[a]:null};
g.k.vy=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Jb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Bb(a),this.segments.length){var b=this.segments.length?g.jb(this.segments).endTime:0,c=a[0].Ma-this.td();1<c&&waa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.ST=function(){return 0};LF.prototype.append=function(a){if(fua(this,a)){var b=this.j[this.j.length-1];this.j[this.j.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length);OF(this)}else this.j.push(a);this.totalLength+=a.length};
LF.prototype.split=function(a){for(var b=new LF,c=new LF,d=g.t(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{oC:b,Wk:c}};
LF.prototype.isFocused=function(a){return a>=this.B&&a<this.B+this.j[this.u].length};
LF.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.B&&OF(this);this.B+this.j[this.u].length<=a&&this.u<this.j.length;)this.B+=this.j[this.u].length,this.u+=1;this.C=void 0}};var VF,TF,XF;g.PX=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
VF=Array(1024);TF=window.TextDecoder?new TextDecoder:void 0;XF=window.TextEncoder?new TextEncoder:void 0;ZF.prototype.skip=function(a){this.j+=a};var K3={},ccb=(K3.predictStart="predictStart",K3.start="start",K3["continue"]="continue",K3.stop="stop",K3),nua={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};hG.prototype.nC=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"])};
hG.prototype.toString=function(){for(var a="",b=g.t(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};var L3={},Tva=(L3.STEREO_LAYOUT_UNKNOWN=0,L3.STEREO_LAYOUT_LEFT_RIGHT=1,L3.STEREO_LAYOUT_TOP_BOTTOM=2,L3);uG.prototype.Xm=function(){var a=this.pos;this.pos=0;var b=!1;try{yG(this,440786851)&&(this.pos=0,yG(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.DD(c);else throw c;}this.pos=a;return b};IG.prototype.set=function(a,b){this.zj.get(a);this.j[a]=b;this.url=""};
IG.prototype.get=function(a){return this.j[a]||this.zj.get(a)};
IG.prototype.Ze=function(){this.url||(this.url=Iua(this));return this.url};MG.prototype.OB=function(){return this.B.get("cpn")||""};
MG.prototype.Bk=function(a,b){a.zj===this.j&&(this.j=JG(a,b));a.zj===this.C&&(this.C=JG(a,b))};RG.prototype.Jg=function(){return!!this.j&&this.index.isLoaded()};
RG.prototype.Vy=function(){return!1};
RG.prototype.rR=function(a){return[a]};
RG.prototype.Jz=function(a){return[a]};TG.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};XG.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
XG.prototype.equals=function(a){return!(!a||a.j!==this.j||a.type!==this.type||(this.range&&a.range?a.range.start!==this.range.start||a.range.end!==this.range.end:a.range!==this.range)||a.Ma!==this.Ma||a.Ob!==this.Ob||a.u!==this.u)};
XG.prototype.Xg=function(){return!!this.j.info.video};fH.prototype.Im=function(){return this.u?this.u.Ze():""};
fH.prototype.Ds=function(){return this.J};
fH.prototype.Mr=function(){return ZG(this.gb[0])};
fH.prototype.Bk=function(a,b){this.j.Bk(a,b);if(this.u){this.u=JG(a,b);b=g.t(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.u.set(c.value,null)}this.requestId=a.get("req_id")};g.w(jH,RG);g.k=jH.prototype;g.k.Ym=function(){return!1};
g.k.ov=function(){return!0};
g.k.zC=function(){return!1};
g.k.Vy=function(){return!this.I};
g.k.Uu=function(){return new fH([new XG(1,this,this.initRange,"getMetadataRequestInfo")],this.I)};
g.k.hx=function(){return null};
g.k.PA=function(a){this.Ar(a);return this.ov()&&a.u&&!a.bf?new fH([new XG(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Ma,a.startTime,a.duration,a.Ob+a.u,NaN,!0)],this.index.bG(a.Ma)):this.Br(bH(a),!1)};
g.k.Zp=function(a,b){b=void 0===b?!1:b;a=this.index.uh(a);b&&(a=Math.min(this.index.td(),a+1));return this.Br(a,!0)};
g.k.mM=function(a){dcb?yH(a):this.j=new Uint8Array(tH(a).buffer)};
g.k.Ar=function(a){return 0===a.u?!0:this.index.td()>a.Ma&&this.index.Lm()<=a.Ma+1};
g.k.update=function(a,b,c){this.index.append(a);eua(this.index,c);this.index.u=b};
g.k.Jg=function(){return this.Vy()?!0:RG.prototype.Jg.call(this)};
g.k.Br=function(a,b){var c=this.index.bG(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.dc?this.info.dc*e:1E3;return new fH([new XG(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.WL=function(){return this.Vy()?0:this.initRange.length};
g.k.wO=function(){return!1};
var dcb=!1;mH.prototype.update=function(a){var b=void 0;this.u&&(b=this.u);var c=new mH,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+kH(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+kH(a,"startNumber")||0;c.C=f;var l=b?b.startSecs+b.Sg:0,m=Date.parse(cva(kH(a,"yt:segmentIngestTime")))/1E3;c.D="SegmentTemplate"===a.parentElement.tagName;c.D&&(c.J=kH(a,"media"));a=b?h-b.Ma:1;c.I=0<a?0:-a+1;a=g.t(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Ma)h++;else{var v=new ava(h,l,n,m+p,f);c.j.push(v);var x=v.startSecs;v=d.getAttribute("yt:cuepointTimeOffset");var z=d.getAttribute("yt:cuepointDuration");if(v&&z){v=Number(v);x=-v/e+x;z=Number(z)/e;var B=d.getAttribute("yt:cuepointContext")||null,F=d.getAttribute("yt:cuepointIdentifier")||"",G=d.getAttribute("yt:cuepointEvent")||"";v=new PD(x,z,B,F,ccb[G]||"unknown",v)}else v=null;v&&c.B.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&(c.u=g.jb(c.j))}this.I=
c.I;this.u=c.u||this.u;g.Cb(this.j,c.j);g.Cb(this.B,c.B);this.D=c.D;this.J=c.J;-1===this.C&&(this.C=c.getStreamTimeOffset())};
mH.prototype.getStreamTimeOffset=function(){return-1===this.C?0:this.C};g.w(nH,g.KF);g.k=nH.prototype;g.k.Lm=function(){return this.Dm?this.segments.length?this.vy(this.Id()).Ma:-1:g.KF.prototype.Lm.call(this)};
g.k.Id=function(){if(this.Se)return 0;if(!this.Dm)return g.KF.prototype.Id.call(this);if(!this.segments.length)return 0;var a=Math.max(g.jb(this.segments).endTime-this.Fo,0);return 0<this.Ge&&this.vy(a).Ma<this.Ge?this.Go(this.Ge).startTime:a};
g.k.ys=function(){if(!this.segments.length)return g.KF.prototype.ys.call(this);var a=this.td();if(!this.Dm||a<=this.segments[this.segments.length-1].Ma)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new JF(a,Math.max(0,b.startTime-(b.Ma-a)*this.sj),this.sj,0,"sq/"+a,void 0,void 0,!0)}return null!==this.B&&a.pending&&3===this.B?this.Se?Math.min(this.Fo,a.startTime):a.startTime:this.Se?Math.min(this.Fo,a.endTime):a.endTime};
g.k.Fy=function(){return this.Dm?this.segments.length?this.td()-this.Lm()+1:0:g.KF.prototype.Fy.call(this)};
g.k.td=function(){var a=Math.min(this.Yg,Math.max(g.KF.prototype.td.call(this),this.Po)),b=1E3*this.Fo;b=0<this.kq&&this.kq<b;this.Se&&0<this.Fo&&0<this.Po&&!b&&(b=this.vy(this.Fo))&&(a=Math.min(b.Ma-1,a));return a};
g.k.Ru=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.AJ=function(a){var b=oH(this,a.Ma);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.iz&&0===a.Ma%(300/this.sj)){var c=this.segments[0].Ma,d=Math.floor(this.iz/this.sj);a=a.Ma-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.RF=function(){return this.Po};
g.k.vy=function(a){if(!this.Dm)return g.KF.prototype.vy.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Ma-Math.ceil((this.segments[0].startTime-a)/this.sj));else if(a>=b.endTime)b=b.Ma+Math.floor((a-b.endTime)/this.sj+1);else{b=Kb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Ma-b.Ma-1))+1)+b.Ma}return this.Go(b)};
g.k.Go=function(a){if(!this.Dm)return g.KF.prototype.Go.call(this,a);if(!this.segments.length)return null;var b=oH(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.sj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Ma-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Ma-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Ma-d.Ma-1),d=d.endTime+(a-d.Ma-1)*b);return new JF(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.w(qH,jH);g.k=qH.prototype;g.k.zC=function(){return!0};
g.k.Jg=function(){return!0};
g.k.Ar=function(a){return this.ov()&&a.u&&!a.bf||!a.j.index.OM(a.Ma)};
g.k.Uu=function(){};
g.k.Zp=function(a,b){return"number"!==typeof a||isFinite(a)?jH.prototype.Zp.call(this,a,void 0===b?!1:b):new fH([new XG(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Xj,void 0,this.Xj*this.info.dc)],"")};
g.k.Br=function(a,b){var c=void 0===c?!1:c;if(pH(this.index,a))return jH.prototype.Br.call(this,a,b);var d=this.index.getStartTime(a);return new fH([new XG(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,void 0,void 0,b?0:this.Xj*this.info.dc,!b)],0<=a?"sq/"+a:"")};g.w(rH,RG);g.k=rH.prototype;g.k.Ym=function(){return!1};
g.k.ov=function(){return!1};
g.k.zC=function(){return!1};
g.k.Uu=function(){return new fH([new XG(1,this,void 0,"otfInit")],this.I)};
g.k.hx=function(){return null};
g.k.PA=function(a){this.Ar(a);return kva(this,bH(a),!1)};
g.k.Zp=function(a,b){b=void 0===b?!1:b;a=this.index.uh(a);b&&(a=Math.min(this.index.td(),a+1));return kva(this,a,!0)};
g.k.mM=function(a){1===a.info.type&&(this.j||(this.j=iua(a.j)),a.u&&"http://youtube.com/streaming/otf/durations/112015"===a.u.uri&&lva(this,a.u))};
g.k.Ar=function(a){return 0===a.u?!0:this.index.td()>a.Ma&&this.index.Lm()<=a.Ma+1};
g.k.WL=function(){return 0};
g.k.wO=function(){return!1};sH.prototype.verify=function(a){if(this.info.u!==this.j.totalLength)return a.slength=this.info.u.toString(),a.range=this.j.totalLength.toString(),!1;if(1===this.info.j.info.containerType){if(8>this.info.u||4===this.info.type)return!0;var b=tH(this),c=b.getUint32(0,!1);b=b.getUint32(4,!1);a.infotype=this.info.type.toString();a.slicesize=c.toString();a.boxtype=b.toString();if(2===this.info.type)return c===this.info.u&&1936286840===b;if(3===this.info.type&&0===this.info.Ob)return 1836019558===b||1936286840===
b||1937013104===b||1718909296===b||1701671783===b||1936419184===b}else if(2===this.info.j.info.containerType){if(4>this.info.u||4===this.info.type)return!0;c=tH(this).getUint32(0,!1);a.ebm=c.toString();if(3===this.info.type&&0===this.info.Ob)return 524531317===c||440786851===c}return!0};g.k=g.zH.prototype;g.k.Yp=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Li[a]/this.j};
g.k.dG=aa(1);g.k.Pf=function(){return NaN};
g.k.getDuration=function(a){a=this.KT(a);return 0<=a?a/this.j:-1};
g.k.KT=function(a){return a+1<this.count||this.u?this.Li[a+1]-this.Li[a]:-1};
g.k.Lm=function(){return 0};
g.k.td=function(){return this.count-1};
g.k.OM=function(a){return this.td()===a&&0<=a};
g.k.ys=function(){return this.u?this.Li[this.count]/this.j:NaN};
g.k.Id=function(){return 0};
g.k.Fy=function(){return this.count};
g.k.bG=function(){return""};
g.k.uh=function(a){a=g.Jb(this.Li.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.td()};
g.k.ST=function(a,b){if(a>=this.td())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.td()&&b>this.getStartTime(a);a++)c=Math.max(c,uva(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.Li;this.Li=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Li[a]=c[a]};
g.k.cap=function(a,b){AH(this);this.u=!0;this.Li[this.count]=b;this.offsets[this.count]=a};g.w(BH,RG);g.k=BH.prototype;g.k.Uu=function(a,b){var c=new XG(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new XG(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,b),c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&d.push(new XG(4,this,VG(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,b)));return new fH(d)};
g.k.mM=function(a){if(1===a.info.type){if(this.j)return;this.j=iua(a.j)}else if(2===a.info.type){if(this.I||0<=this.index.td())return;if(g.vH(this.info)){var b=this.index,c=tH(a);a=a.info.range.start;var d=g.kG(c,0,1936286840);c=wua(d);b.j=c.Nt;var e=c.N2;b.offsets[0]=c.f3+a+d.size;b.Li[0]=e;b.u=!0;a=c.CP.length;for(d=0;d<a;d++){e=b;var f=c.y8[d],h=c.CP[d];e.count++;AH(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Li[e.count]=e.Li[e.count-1]+h}}else this.I=tH(a)}if(this.info.Ee()&&this.j&&this.I){c=
new DataView(this.j.buffer);b=this.index;d=this.I;a=this.indexRange.end;e=new uG(c);c=e;e=c.pos;f={iY:1E6,jY:1E9,duration:0,BX:0,YO:0};if(yG(c,408125543))if(f.BX=zG(c,!0),f.YO=c.start+c.pos,yG(c,357149030)){for(h=xG(c);!vG(h);){var l=zG(h,!1);2807729===l?f.iY=BG(h):2807730===l?f.jY=BG(h):17545===l?f.duration=DG(h):CG(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.jY/c.iY;e=new uG(d);d=e;h=c.YO;e=d.pos;f=[];if(yG(d,475249515)){for(l=xG(d);yG(l,187);){var m=xG(l);if(yG(m,
179)){var n=BG(m);if(yG(m,183)){m=xG(m);for(var p=h;yG(m,241);)p=BG(m)+h;f.push({mF:p,C2:n})}}}if(0<f.length&&a===f[0].mF)for(a=0;a<f.length;a++)f[a].mF+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.t(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.mF,f=f.C2,AH(d),d.offsets[d.count]=e,d.Li[d.count]=f,d.count++;b.cap(c.BX+c.YO,c.duration)}}this.I=null}};
g.k.cC=function(a,b,c,d){for(var e=[],f=a;f<=this.index.td();f++){var h=VG(this.index.Yp(f),uva(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 XG(3,this,h,"getRequestInfoForRange",f,l,m,n,p,void 0,d));if(h.start+n+p>=b+c)break}e.length||g.CD(new g.bA("b189619593",""+a,""+b,""+c));return new fH(e)};
g.k.rR=function(a){for(var b=this.Jz(a.info),c=a.info.range.start+a.info.Ob,d=a.B,e=[],f=0;f<b.length;f++){var h=NF(a.j,b[f].range.start+b[f].Ob-c,b[f].u);e.push(new sH(b[f],h,d));d=void 0}return e};
g.k.Jz=function(a){for(var b=a.range.start+a.Ob,c=0;c<this.index.td()&&b>=this.index.Yp(c+1);)c++;return this.cC(c,b,a.u).gb};
g.k.Ar=function(a){YG(a);return this.Jg()?!0:a.range.end+1<this.info.contentLength};
g.k.hx=function(a,b){this.Ar(a);if(!this.Jg())return b=VG(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new TG(b.start,this.info.contentLength-1)),new fH([new XG(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.Jz(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Ob+a.u;3===a.type&&(YG(a),c=a.Ma,d===a.range.end+1&&(c+=1));return this.cC(c,d,b)};
g.k.PA=function(){return null};
g.k.Zp=function(a,b,c){b=void 0===b?!1:b;a=this.index.uh(a);b&&(a=Math.min(this.index.td(),a+1));return this.cC(a,this.index.Yp(a),0,c)};
g.k.Ym=function(){return!0};
g.k.ov=function(){return!0};
g.k.zC=function(){return!1};
g.k.WL=function(){return this.indexRange.length+this.initRange.length};
g.k.wO=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};CH.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var M3={},Uva=(M3.COLOR_PRIMARIES_BT709="bt709",M3.COLOR_PRIMARIES_BT2020="bt2020",M3.COLOR_PRIMARIES_UNKNOWN=null,M3.COLOR_PRIMARIES_UNSPECIFIED=null,M3),N3={},wva=(N3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",N3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",N3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",N3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",N3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,N3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,N3);var O3={},yF=(O3.WIDTH={name:"width",video:!0,valid:640,Vm:99999},O3.HEIGHT={name:"height",video:!0,valid:360,Vm:99999},O3.FRAMERATE={name:"framerate",video:!0,valid:30,Vm:9999},O3.BITRATE={name:"bitrate",video:!0,valid:3E5,Vm:2E9},O3.EOTF={name:"eotf",video:!0,valid:"bt709",Vm:"catavision"},O3.CHANNELS={name:"channels",video:!1,valid:2,Vm:99},O3.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Vm:"invalidformat"},O3.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Vm:"nope"},O3.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Vm:"av99.0.05M.08"},O3.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Vm:"invalid"},O3);var Z={},HH=(Z["0"]="f",Z["160"]="h",Z["133"]="h",Z["134"]="h",Z["135"]="h",Z["136"]="h",Z["137"]="h",Z["264"]="h",Z["266"]="h",Z["138"]="h",Z["298"]="h",Z["299"]="h",Z["304"]="h",Z["305"]="h",Z["214"]="h",Z["216"]="h",Z["374"]="h",Z["375"]="h",Z["140"]="a",Z["141"]="ah",Z["327"]="sa",Z["258"]="m",Z["380"]="mac3",Z["328"]="meac3",Z["161"]="H",Z["142"]="H",Z["143"]="H",Z["144"]="H",Z["222"]="H",Z["223"]="H",Z["145"]="H",Z["224"]="H",Z["225"]="H",Z["146"]="H",Z["226"]="H",Z["227"]="H",Z["147"]="H",
Z["384"]="H",Z["376"]="H",Z["385"]="H",Z["377"]="H",Z["149"]="A",Z["261"]="M",Z["381"]="MAC3",Z["329"]="MEAC3",Z["598"]="9",Z["278"]="9",Z["242"]="9",Z["243"]="9",Z["244"]="9",Z["247"]="9",Z["248"]="9",Z["353"]="9",Z["355"]="9",Z["356"]="9",Z["271"]="9",Z["577"]="9",Z["313"]="9",Z["579"]="9",Z["272"]="9",Z["302"]="9",Z["303"]="9",Z["407"]="9",Z["408"]="9",Z["308"]="9",Z["315"]="9",Z["330"]="9h",Z["331"]="9h",Z["332"]="9h",Z["333"]="9h",Z["334"]="9h",Z["335"]="9h",Z["336"]="9h",Z["337"]="9h",Z["338"]=
"so",Z["600"]="o",Z["250"]="o",Z["251"]="o",Z["194"]="*",Z["195"]="*",Z["220"]="*",Z["221"]="*",Z["196"]="*",Z["197"]="*",Z["279"]="(",Z["280"]="(",Z["317"]="(",Z["318"]="(",Z["273"]="(",Z["274"]="(",Z["357"]="(",Z["358"]="(",Z["275"]="(",Z["359"]="(",Z["360"]="(",Z["276"]="(",Z["583"]="(",Z["584"]="(",Z["314"]="(",Z["585"]="(",Z["561"]="(",Z["277"]="(",Z["361"]="(h",Z["362"]="(h",Z["363"]="(h",Z["364"]="(h",Z["365"]="(h",Z["366"]="(h",Z["591"]="(h",Z["592"]="(h",Z["367"]="(h",Z["586"]="(h",Z["587"]=
"(h",Z["368"]="(h",Z["588"]="(h",Z["562"]="(h",Z["409"]="(",Z["410"]="(",Z["411"]="(",Z["412"]="(",Z["557"]="(",Z["558"]="(",Z["394"]="1",Z["395"]="1",Z["396"]="1",Z["397"]="1",Z["398"]="1",Z["399"]="1",Z["400"]="1",Z["401"]="1",Z["571"]="1",Z["402"]="1",Z["694"]="1h",Z["695"]="1h",Z["696"]="1h",Z["697"]="1h",Z["698"]="1h",Z["699"]="1h",Z["700"]="1h",Z["701"]="1h",Z["702"]="1h",Z["703"]="1h",Z["386"]="3",Z["387"]="w",Z["406"]="6",Z["645"]="(",Z["646"]="(",Z["647"]="(",Z["648"]="(",Z["649"]="(",Z["650"]=
"(",Z["651"]="(",Z["652"]="(",Z["653"]="(",Z["654"]="(",Z["655"]="(",Z["656"]="(",Z["657"]="(",Z["658"]="(",Z["659"]="(",Z["660"]="(",Z["661"]="(",Z["662"]="(",Z["663"]="(",Z["664"]="(",Z["665"]="(",Z["666"]="(",Z["667"]="(",Z["668"]="(",Z["669"]="(",Z["670"]="(",Z["671"]="(",Z["672"]="(",Z["673"]="(",Z["674"]="(h",Z["675"]="(h",Z["676"]="(h",Z["677"]="(h",Z["678"]="(h",Z["679"]="(h",Z["680"]="(h",Z["681"]="(h",Z["682"]="(h",Z["683"]="(h",Z["684"]="(h",Z["685"]="(h",Z["686"]="(h",Z["687"]="(h",Z["688"]=
"A",Z["689"]="A",Z["690"]="A",Z["691"]="MEAC3",Z);var FH="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");EH.prototype.isHdr=function(){return"smpte2084"===this.u||"arib-std-b67"===this.u};IH.prototype.Ee=function(){return 2===this.containerType};
IH.prototype.isEncrypted=function(){return!!this.Pd};
IH.prototype.Ek=function(){return!!this.audio};
IH.prototype.Xg=function(){return!!this.video};g.aI.prototype.getName=function(){return this.name};
g.aI.prototype.getId=function(){return this.id};
g.aI.prototype.getIsDefault=function(){return this.isDefault};
g.aI.prototype.toString=function(){return this.name};
g.aI.prototype.getName=g.aI.prototype.getName;g.aI.prototype.getId=g.aI.prototype.getId;g.aI.prototype.getIsDefault=g.aI.prototype.getIsDefault;g.w(g.bI,Jz);g.bI.prototype.S=function(a,b,c,d,e){return Jz.prototype.S.call(this,a,b,c,d,e)};g.w(qI,g.dE);g.k=qI.prototype;g.k.appendBuffer=function(a,b,c){if(this.Ed.IB()!==this.appendWindowStart+this.start||this.Ed.NF()!==this.appendWindowEnd+this.start||this.Ed.Jd()!==this.timestampOffset+this.start)this.Ed.supports(1),this.Ed.cP(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ed.Vq(this.timestampOffset+this.start);this.Ed.appendBuffer(a,b,c)};
g.k.abort=function(){this.Ed.abort()};
g.k.remove=function(a,b){this.Ed.remove(a+this.start,b+this.start)};
g.k.Ef=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Ed.clear()};
g.k.cP=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.dM=function(){return this.timestampOffset+this.start};
g.k.IB=function(){return this.appendWindowStart};
g.k.NF=function(){return this.appendWindowEnd};
g.k.Vq=function(a){this.timestampOffset=a};
g.k.Jd=function(){return this.timestampOffset};
g.k.Ig=function(a){a=this.Ed.Ig(void 0===a?!1:a);return pI(a,this.start,this.end)};
g.k.gj=function(){return this.Ed.gj()};
g.k.Ol=function(){return this.Ed.Ol()};
g.k.IM=function(){return this.Ed.IM()};
g.k.Tx=function(){this.Ed.Tx()};
g.k.Wy=function(a){return this.Ed.Wy(a)};
g.k.qs=function(){return this.Ed.qs()};
g.k.SF=function(){return this.Ed.SF()};
g.k.VP=function(a,b){this.Ed.VP(a,b)};
g.k.supports=function(a){return this.Ed.supports(a)};
g.k.TF=function(){return this.Ed.TF()};
g.k.isView=function(){return!0};
g.k.tI=function(a,b,c){return this.isActive?this.Ed.tI(a,b,c):!1};
g.k.eF=function(){return this.Ed.eF()?this.isActive:!1};
g.k.isLocked=function(){return this.rE&&!this.isActive};
g.k.lc=function(a){a=this.Ed.lc(a);a.vw=this.start+"-"+this.end;return a};
g.k.UB=function(){return this.Ed.UB()};
g.k.ZL=function(){return this.Ed.ZL()};
g.k.qa=function(){fE(this.Ed,this.tU);g.dE.prototype.qa.call(this)};var CX=!1;g.w(sI,g.dE);g.k=sI.prototype;
g.k.appendBuffer=function(a,b,c){this.iB=!1;c&&(this.FC=c);if(!ecb&&(b&&Cva(this,b),!a.length))return;if(ecb){if(a.length){var d;(null==(d=this.Vb)?0:d.appendBuffer)?this.Vb.appendBuffer(a):this.Vb?this.Vb.append(a):this.Dg&&this.Dg.webkitSourceAppend(this.id,a)}b&&Cva(this,b)}else{var e;(null==(e=this.Vb)?0:e.appendBuffer)?this.Vb.appendBuffer(a):this.Vb?this.Vb.append(a):this.Dg&&this.Dg.webkitSourceAppend(this.id,a)}this.Kz&&(2<=this.Kz.length||1048576<a.length?delete this.Kz:this.Kz.push(a))};
g.k.abort=function(){try{this.Vb?this.Vb.abort():this.Dg&&this.Dg.webkitSourceAbort(this.id)}catch(a){fcb&&g.CD(new g.bA("Error while abort the source buffer: "+a.name+", "+a.message))}this.FC=this.Cf=null};
g.k.remove=function(a,b){this.iB=!1;var c;(null==(c=this.Vb)?0:c.remove)&&this.Vb.remove(a,b)};
g.k.Ef=function(){this.remove(this.IB(),this.NF())};
g.k.clear=function(){this.Ol()||(this.abort(),this.Ef(),this.XM=this.FC=this.Cf=null,this.appendWindowStart=this.timestampOffset=0,this.GK=iI([],[]),this.iB=!1,this.Kz=rI?[]:void 0,this.jF=!0)};
g.k.IB=function(){if(CX&&this.Xg)return this.appendWindowStart;var a;return(null==(a=this.Vb)?void 0:a.appendWindowStart)||0};
g.k.NF=function(){var a;return(null==(a=this.Vb)?void 0:a.appendWindowEnd)||0};
g.k.cP=function(a,b){this.Vb&&(CX&&this.Xg?(this.appendWindowStart=a,this.Vb.appendWindowEnd=b):a>this.IB()?(this.Vb.appendWindowEnd=b,this.Vb.appendWindowStart=a):(this.Vb.appendWindowStart=a,this.Vb.appendWindowEnd=b))};
g.k.dM=function(){return this.timestampOffset};
g.k.Vq=function(a){CX?this.timestampOffset=a:this.supports(1)&&(this.Vb.timestampOffset=a)};
g.k.Jd=function(){return CX?this.timestampOffset:this.supports(1)?this.Vb.timestampOffset:0};
g.k.Ig=function(a){if(void 0===a?0:a)return this.iB||this.gj()||(this.GK=this.Ig(!1),this.iB=!0),this.GK;try{return this.Vb?this.Vb.buffered:this.Dg?this.Dg.webkitSourceBuffered(this.id):iI([0],[Infinity])}catch(b){return iI([],[])}};
g.k.gj=function(){var a;return(null==(a=this.Vb)?void 0:a.updating)||!1};
g.k.Ol=function(){return this.jF};
g.k.IM=function(){return!this.jF&&this.gj()};
g.k.Tx=function(){this.jF=!1};
g.k.Wy=function(a){var b=null==a?void 0:a.Lb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.Lb&&a===this.containerType};
g.k.qs=function(){return this.FC};
g.k.SF=function(){return this.XM};
g.k.VP=function(a,b){this.containerType!==a&&(this.supports(4),tI()&&this.Vb.changeType(b));this.containerType=a};
g.k.TF=function(){return this.Cf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Vb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Vb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Vb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Vb)?0:e.addEventListener)&&(null==(f=this.Vb)?0:f.removeEventListener));case 4:return!(!this.Vb||!this.Vb.changeType);default:return!1}};
g.k.eF=function(){return!this.gj()};
g.k.isLocked=function(){return!1};
g.k.lc=function(a){a.to=this.Jd();a.up=this.gj();var b,c=(null==(b=this.Vb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Vb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=jI(this.Ig())}catch(e){}return a};
g.k.qa=function(){this.supports(3)&&(this.Vb.removeEventListener("updateend",this.ud),this.Vb.removeEventListener("error",this.ud));g.dE.prototype.qa.call(this)};
g.k.tI=function(a,b,c){if(!this.supports(2)||this.gj())return!1;var d=this.Ig(),e=kI(d,a);if(0>e)return!1;try{if(b&&e+1<d.length){var f=d.start(e+1),h=d.end(d.length-1);this.remove(f,h);return!0}if(this.isView())return!1;var l=Math.max(0,a-c);if(0<c&&d.start(e)<l)return this.remove(0,l),!0}catch(m){}return!1};
g.k.UB=function(){return this.containerType};
g.k.ZL=function(){return this.Kz};
var rI=!1,fcb=!1,ecb=!1;uI.prototype.dispose=function(){if(!this.isDisposed){if(this.u)try{URL.revokeObjectURL(this.j)}catch(a){}this.B=!0}};
uI.prototype.isDisposed=function(){return this.B};
uI.prototype.equals=function(a){return null!==a&&a.j===this.j};
uI.prototype.toString=function(){return"MediaResource {"+this.j+"}"};g.w(vI,g.C);g.k=vI.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Wa)?void 0:a.duration)||this.T};
g.k.Sk=function(a){try{this.Wa?this.Wa.duration=a:(this.T=a,this.Dg.webkitSourceSetDuration(a))}catch(b){}};
g.k.Vg=function(){try{return"closed"===BI(this)}catch(a){return!0}};
g.k.gj=function(){return!!(this.j&&this.j.gj()||this.u&&this.u.gj())};
g.k.x7=function(){!this.isDisposed()&&wI(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.w7=function(){this.dispose()};
g.k.O_=function(a){if(xI&&!this.C&&a.Ol()&&0===a.Ig().length){var b;yI(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.va)?void 0:zI(b)},!1);a.Tx();this.Ol()||(this.mediaElement.xM=!0,this.mediaElement.setCurrentTime(0))}};
g.k.clear=function(){Eva(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.u)||b.clear()};
g.k.Ol=function(){var a,b;return(null==(a=this.u)?void 0:a.Ol())||(null==(b=this.j)?void 0:b.Ol())};
g.k.Wy=function(a,b){return!!this.j&&!!this.u&&this.j.Wy(b)&&this.u.Wy(a)};
var xI=!1;var Kva=/action_display_post/;var Lva;g.w(FI,g.dE);g.k=FI.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.Wm=function(){return 3===this.state};
g.k.c8=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.fd=this.u=!0;this.timeline||(this.timeline=new eva);iva(this.timeline,a);this.ma("refresh");for(a=0;a<b.length;a++){var c=awa(this,b[a]);if(!this.j[c.id]){var d=KI(lH(b[a],"BaseURL").textContent),e=lH(b[a],"Initialization"),f=kH(e,"sourceURL");e=UG(kH(e,"range"));this.j[c.id]=new jH(d,c,f,e)}c=this.j[c.id];d=kH(b[a],"id","AdaptationSet");
d=""!==d?d:kH(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.B[c.info.id]||f.u[d]||f.j||null;d=f.j;!this.J&&f.getStreamTimeOffset()&&(this.J=f.getStreamTimeOffset());if(f.D){e=[];d=g.t(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.dc,n=h.Ma;var p=h.startSecs;var q=f.J.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 JF(h.Ma,h.startSecs,h.Sg,h.j,q.join("$"),null,h.u))}d=e}else{f=Eb(lH(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.I);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 v=r.split("-");v[1]&&0<=Number(v[1])?p=UG(r):q=q+"?range="+r}m.call(l,new JF(n.Ma,n.startSecs,n.Sg,n.j,q,p,n.u))}d=e}c.update(d,this.isLive,this.Ja)}jva(this.timeline);return!0}this.duration=bva(kH(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=awa(this,f);d=KI(lH(f,"BaseURL").textContent);e=lH(f,"SegmentBase");f=UG(e.attributes.getNamedItem("indexRange").value);e=UG(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new BH(d,c,e,f);if(!c){b=!1;break a}EI(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.isDisposed()){var a=g.Zi(this.sourceUrl,{start_seq:ewa(this).toString()});cwa(this,a).Zj(function(){})}};
g.k.resume=function(){bwa(this)};
g.k.pe=function(){if(this.isManifestless&&this.B&&MI(this))return MI(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()&&(f.D&&(b=!0),h=h.ys(),f.info.Ek()&&(isNaN(c)||h<c)?c=h:f.info.Xg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Id=function(){if(this.isManifestless){if(NI(this))return NI(this);if(this.Od){var a=this.Pf(this.pe());if(a&&(a-=this.Od,0<a))return this.pe()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Id()}return 0};
g.k.getStreamTimeOffset=function(){return this.J};
g.k.Pf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.uh(a),e=c.Pf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var QI=null,gcb,RI=!(null==(gcb=navigator.mediaCapabilities)||!gcb.decodingInfo),$va={commentary:1,alternate:2,dub:3,main:4};YI.prototype.clone=function(a){return new YI(this.flavor,a,this.u,this.experiments)};
YI.prototype.lc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
YI.prototype.rh=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 hcb={},iJ=(hcb.playready=["com.youtube.playready","com.microsoft.playready"],hcb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],hcb),P3={},FXa=(P3.widevine="DRM_SYSTEM_WIDEVINE",P3.fairplay="DRM_SYSTEM_FAIRPLAY",P3.playready="DRM_SYSTEM_PLAYREADY",P3),Q3={},icb=(Q3.widevine=1,Q3.fairplay=2,Q3.playready=3,Q3);kJ.prototype.Sf=function(a,b){b=void 0===b?1:b;this.j+=b;this.B+=a;a/=b;for(var c=0;c<jJ.length&&!(a<jJ[c]);++c)this.u[c]+=b};
kJ.prototype.toString=function(){return""};
var jJ=[20,100,500,2E3];g.k=ywa.prototype;g.k.isActive=function(){return!0};
g.k.ww=function(){return!1};
g.k.ev=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.FI=a.prototype[e],d.JI=b[e],a.prototype[e]=function(f){return function(){var h=g.ya.apply(0,arguments),l=(0,g.M)();h=f.FI.apply(this,h);lJ(c,f.JI,(0,g.M)()-l);return h}}(d)),d={FI:d.FI,
JI:d.JI}}};
g.k.Dw=function(a,b){var c=this;return function(){var d=g.ya.apply(0,arguments),e=(0,g.M)();d=b.apply(null,d);lJ(c,a,(0,g.M)()-e);return d}};
g.k.Xq=function(a){return new xwa(a)};
g.k.Sp=function(a,b){b=void 0===b?1:b;a instanceof xwa&&(lJ(this,a.name,(0,g.M)()-a.startTimeMs,b),a.j=!0)};
g.k.IH=function(a,b){var c=void 0===c?1:c;var d=(0,g.M)();b();lJ(this,a,(0,g.M)()-d,c)};
g.k.BL=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=vwa(this.j[b]);c&&(a[b]=c)}this.j=new wwa;return a};
g.k.toString=function(){return""};g.k=Bwa.prototype;g.k.isActive=function(){return!0};
g.k.ww=function(){return!0};
g.k.ev=function(a,b){var c=this;if(b){var d={},e;for(e in b)b.hasOwnProperty(e)&&(d.GI=a.prototype[e],d.KI=b[e],a.prototype[e]=function(f){return function(){var h=g.ya.apply(0,arguments),l=(0,g.M)();h=f.GI.apply(this,h);return Cwa(c,h,f.KI,l)}}(d)),d={GI:d.GI,
KI:d.KI}}};
g.k.Dw=function(a,b){var c=this;return function(){var d=g.ya.apply(0,arguments),e=(0,g.M)();d=b.apply(null,d);return Cwa(c,d,a,e)}};
g.k.Xq=function(a){return new Awa(a)};
g.k.Sp=function(a,b){b=void 0===b?1:b;a instanceof Awa&&(mJ(this,a.name,(0,g.M)()-a.startTimeMs,b),a.j=!0)};
g.k.IH=function(a,b){var c=void 0===c?1:c;var d=(0,g.M)();b();mJ(this,a,(0,g.M)()-d,c)};
g.k.BL=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=vwa(this.j[b]);c&&(a[b]=c)}this.j=new zwa;return a};
g.k.toString=function(){return""};g.k=Dwa.prototype;g.k.isActive=function(){return!1};
g.k.ww=function(){return!0};
g.k.ev=function(){};
g.k.Dw=function(a,b){return b};
g.k.Xq=function(){};
g.k.Sp=function(){};
g.k.IH=function(a,b){b()};
g.k.BL=function(){return{}};
g.k.toString=function(){return""};var R3,jcb,kcb,lcb,mcb,ncb,ocb,qZ,S3,tX,w0a,qJ;R3=new Dwa;jcb=!!+fy("html5_enable_profiler");kcb=!!+fy("html5_onesie_enable_profiler");lcb=!!+fy("html5_offline_encryption_enable_profiler");mcb=!!+fy("html5_performance_impact_profiling_timer_ms");ncb=!!+fy("html5_drm_enable_profiler");ocb=!!+fy("html5_use_experimental_profiler");qZ=jcb||kcb||lcb||mcb||ncb?ocb?new Bwa:new ywa:R3;g.oW=jcb?qZ:R3;S3=kcb?qZ:R3;tX=lcb?qZ:R3;w0a=mcb?qZ:R3;qJ=ncb?g.oW:R3;var pJ;g.w(nJ,g.C);
nJ.prototype.initialize=function(a,b){for(var c=this,d=g.t(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.t(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.Pd)for(var h=g.t(Object.keys(f.Pd)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=iJ[m];!m&&this.K("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.t(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.B[n]=this.B[n]||new YI(l,n,f.Pd[l],this.D.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}Zy()&&(this.B["com.youtube.fairplay"]=new YI("fairplay","com.youtube.fairplay","",this.D.experiments),this.K("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.u=uwa(b,this.useCobaltWidevine,this.K("html5_enable_safari_fairplay"),this.K("html5_enable_vp9_fairplay")).filter(function(p){return!!c.B[p]})};
nJ.prototype.K=function(a){return this.D.experiments.ob(a)};var $_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"};var pcb={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},T3;a:{var U3=g.hc();U3=U3.toLowerCase();if(g.Vb(U3,"android")){var qcb=U3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(qcb){var rcb=parseFloat(qcb[1]);if(100>rcb){T3=rcb;break a}}var scb=U3.match("("+Object.keys(pcb).join("|")+")");T3=scb?pcb[scb[0]]:0}else T3=void 0}var jK=T3,iK=0<=jK;var wxa={RED:"red",F5a:"white"};var uxa={aea:"adunit",goa:"detailpage",Roa:"editpage",Zoa:"embedded",bpa:"embedded_unbranded",vCa:"leanback",pQa:"previewpage",fRa:"profilepage",iS:"unplugged",APa:"playlistoverview",rWa:"sponsorshipsoffer",HTa:"shortspage",Vva:"handlesclaiming",vxa:"immersivelivepage",wma:"creatormusic"};Lwa.prototype.ob=function(a){return"true"===this.flags[a]};var Mwa=Promise.resolve(),Pwa=window.queueMicrotask?window.queueMicrotask.bind(window):Nwa;tJ.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;nB?a=a||tcb[b]:2.2===jK?a=a||ucb[b]:Xy()&&(a=a||vcb[b]);return!!a};
tJ.prototype.isTypeSupported=function(a){return this.J?window.cast.receiver.platform.canDisplayType(a):fI(a)};
var ucb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},vcb={"application/x-mpegURL":"maybe"},tcb={"application/x-mpegURL":"maybe"};wJ.prototype.gf=function(){this.j=!1;if(this.queue.length&&!(this.u&&5>=this.queue.length&&15E3>(0,g.M)()-this.C)){var a=this.queue.shift(),b=a.url;a=a.options;a.timeout=1E4;g.Ly(b,a,3,1E3).then(this.B,this.B);this.u=!0;this.C=(0,g.M)();5<this.queue.length&&Vwa(this)}};
wJ.prototype.flush=function(){for(;this.queue.length;){var a=this.queue.shift();g.Hy(a.url,a.options)}};g.w(xJ,g.dE);xJ.prototype.add=function(a,b){!this.items[a]&&(b.jB||b.NK||b.rI)&&(this.items[a]=iba(b),this.ma("vast_info_card_add",a))};
xJ.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
xJ.prototype.get=function(a){return this.items[a]||null};
xJ.prototype.Bf=function(){return g.hd(this.items)};var pK={CFa:1,DFa:2,EFa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var Wwa=!1,zJ,AJ,BJ,CJ,DJ;EJ.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.u,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)Xwa(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(Xwa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
EJ.prototype.bI=function(a){for(var b=0;4>b;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var FJ=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var GJ;g.w(IJ,g.C);IJ.prototype.encrypt=function(a){this.j.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
IJ.prototype.bI=function(a){this.j.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};g.JJ.prototype.encrypt=function(a,b){var c=this,d,e;return g.A(function(f){if(1==f.j){d=HJ();if(!d)return f.return(c.j(a,b));g.pa(f,3);return g.y(f,c.u(a,b,d),5)}if(3!=f.j)return f.return(f.u);e=g.sa(f);g.DD(e);FJ=!0;return f.return(c.j(a,b))})};
g.JJ.prototype.u=function(a,b,c){var d=this,e,f,h;return g.A(function(l){switch(l.j){case 1:if(d.D){l.Ka(2);break}e=d;return g.y(l,c.importKey("raw",d.C,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:e.D=l.u;case 2:return f={name:"AES-CTR",counter:b,length:128},g.y(l,c.encrypt(f,d.D,a),4);case 4:return h=l.u,l.return(new Uint8Array(h))}})};
g.JJ.prototype.j=function(a,b){this.B||(this.B=new EJ(this.C));this.B.bI(b);return this.B.encrypt(a)};
g.JJ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.KJ.prototype.encrypt=function(a,b){this.j||(this.j=new EJ(this.u));this.j.bI(b);return this.j.encrypt(a)};
g.KJ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
LJ.prototype.encrypt=function(a,b){this.B||(this.B=new IJ(this.j,this.D));this.B.bI(b);return this.B.encrypt(a)};
LJ.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
S3.ev(LJ,{encrypt:"oaw",decrypt:"oaw"});MJ.prototype.reset=function(){Zwa(this);this.update(this.B)};
MJ.prototype.update=function(a){var b=0,c=a.length;this.C+=c;this.u&&64<=this.u+c&&(this.I.set(a.subarray(0,64-this.u),this.u),b=64-this.u,this.u=0,Ywa(this,this.I,0));for(;b+64<=c;b+=64)Ywa(this,a,b);b<c&&(a=a.subarray(b),this.I.set(a,this.u),this.u+=a.length)};
var NJ=[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 wcb;wcb={};g.xcb=g.uB("yt-idb-pref-storage",{Fq:(wcb.prefs={Cm:1},wcb),shared:!1,upgrade:function(a,b){b(1)&&g.RA(g.LA(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});g.w(OJ,g.JJ);OJ.prototype.j=function(a,b){var c=S3.Xq("oap");b=g.JJ.prototype.j.call(this,a,b);S3.Sp(c,Math.ceil(a.length/16));return b};
OJ.prototype.u=function(a,b,c){var d=this,e,f;return g.A(function(h){if(1==h.j)return e=S3.Xq("oan2"),g.y(h,g.JJ.prototype.u.call(d,a,b,c),2);f=h.u;S3.Sp(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.w(PJ,g.KJ);PJ.prototype.encrypt=function(a,b){var c=S3.Xq("oap");b=g.KJ.prototype.encrypt.call(this,a,b);S3.Sp(c,Math.ceil(a.byteLength/16));return b};
g.w(QJ,LJ);QJ.prototype.encrypt=function(a,b){if(a.buffer!==this.j.memory.buffer){var c=new Uint8Array(this.j.memory.buffer,this.j.malloc(a.byteLength),a.byteLength);this.u.add(c.byteOffset);c.set(a)}if(b.buffer!==this.j.memory.buffer){var d=new Uint8Array(this.j.memory.buffer,this.j.malloc(b.byteLength),b.byteLength);this.u.add(d.byteOffset);d.set(b)}return LJ.prototype.encrypt.call(this,c||a,d||b)};
QJ.prototype.isDisposed=function(){return this.C};
QJ.prototype.dispose=function(){this.C=!0;for(var a=g.t(this.u),b=a.next();!b.done;b=a.next())this.j.free(b.value);this.u.clear()};
S3.ev(QJ,{encrypt:"oawc",decrypt:"oawc"});SJ.prototype.zi=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.u+=a};
SJ.prototype.bj=function(){return this.j/(1-Math.pow(this.alpha,this.u))};TJ.prototype.zi=function(a,b){a=Math.min(this.j,Math.max(1,Math.round(a*this.resolution)));a+this.u>=this.j&&(this.B=!0);for(;a--;)this.values[this.u]=b,this.u=(this.u+1)%this.j;this.D=!0};
TJ.prototype.bj=function(){return this.J?(UJ(this,this.C-this.J)+UJ(this,this.C)+UJ(this,this.C+this.J))/3:UJ(this,this.C)};g.w(pxa,g.C);aK.prototype.then=function(a,b){return this.promise.then(a,b)};
aK.prototype.resolve=function(a){this.u(a)};
aK.prototype.reject=function(a){this.j(a)};var vxa="blogger gac books docs duo google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Bxa={Sia:"cbrand",bja:"cbr",cja:"cbrver",fya:"c",iya:"cver",hya:"ctheme",gya:"cplayer",mJa:"cmodel",cKa:"cnetwork",bOa:"cos",cOa:"cosver",POa:"cplatform"};g.w(vK,g.C);g.k=vK.prototype;g.k.K=function(a){return this.experiments.ob(a)};
g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.zK(this);e="www.youtube.com"===c;f=f&&this.K("embeds_enable_shorts_links_for_eligible_shorts");h&&this.K("fill_live_watch_url_in_watch_endpoint")&&e?h="https://"+c+"/live/"+a:!f&&d&&e?h="https://web.archive.org/web/20230426095903/https://youtu.be/"+a:g.mK(this)?(h="https://"+c+"/fire",b.v=a):(f&&e?(h=this.protocol+"://"+c+"/shorts/"+a,d&&(b.feature="share")):(h=this.protocol+"://"+c+"/watch",b.v=a),nB&&(a=Fna())&&(b.ebc=a));return g.Zi(h,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.zK(this)+"/embed/"+b;d&&(b=g.Zi(b,{list:d}));d=c.width;c=c.height;b=g.Me(b);a=g.Me(null!=a?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" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.eI&&!nB&&74<=goa()||g.fJ&&g.Nc(68)?!0:!1};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.Rd=function(){return this.If};
var Dxa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Axa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"];g.k=SK.prototype;g.k.rh=function(){return this.j};
g.k.QA=function(){return null};
g.k.sR=function(){var a=this.QA();return a?(a=g.sy(a.j),Number(a.expire)):NaN};
g.k.ZO=function(){};
g.k.getHeight=function(){return this.j.video.height};Exa.prototype.wf=function(){Hxa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.t(this.B),e=d.next();!e.done;e=d.next())if(e=e.value,e.Jc){if(e.Jc.getIsDefault()){c=e.Jc.getId();break a}c||(c=e.Jc.getId())}}d=g.t(this.B);for(var f=d.next();!f.done;f=d.next())if(e=f.value,this.I||!e.Jc||e.Jc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.t(this.u);for(e=c.next();!e.done;e=c.next())if(d=e.value,e=b[d.j])for(e=g.t(e),f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.Jc){p=f.Jc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=UK(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(Gxa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}c=g.t(this.D);for(d=c.next();!d.done;d=c.next())d=d.value,e=ycb,d=(h=d.Jc)?'#EXT-X-MEDIA:URI="'+UK(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.D.length?ycb:void 0;d=g.t(this.u);for(e=d.next();!e.done;e=d.next())e=e.value,h=b[e.j],l=void 0,0<(null==(l=h)?void 0:l.length)&&(h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+h.bitrate)+',CODECS="'+(e.codecs+","+h.codecs+'",RESOLUTION=')+(e.width+"x"+e.height+',AUDIO="')+(Gxa(h,e)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<e.fps&&(h+=",FRAME-RATE="+
e.fps),e.pA&&(h+=",VIDEO-RANGE="+e.pA),a.push(h),a.push(UK(this,e.url,"")));return a.join("\n")};
var ycb="text";g.w(VK,SK);VK.prototype.sR=function(){return this.expiration};
VK.prototype.QA=function(){if(!this.u||this.u.isDisposed()){var a=this.B.wf();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.u=new uI(a)}return this.u};g.w(WK,SK);WK.prototype.QA=function(){return new uI(this.u.Ze())};
WK.prototype.ZO=function(){this.u=IF(this.u)};g.w(XK,SK);XK.prototype.QA=function(){return new uI(this.u)};var zcb={},Txa=(zcb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",zcb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",zcb);g.k=g.YK.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.Ze=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.ZK(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.equals=function(a){return a?this.toString()===a.toString():!1};
g.k.De=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var Xxa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Yxa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Zxa=/^(\d*)_((\d*)_?(\d*))$/;var aya={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},bya={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var V3={},aza=(V3.ALWAYS=1,V3.BY_REQUEST=3,V3.UNKNOWN=void 0,V3),W3={},fza=(W3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",W3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",W3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",W3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",W3);fL.prototype.getState=function(){return this.store.getState()};
fL.prototype.dispatch=function(a){return this.store.dispatch(a)};
fL.prototype.subscribe=function(a){return this.store.subscribe(a)};
fL.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
fL.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};var oya=!1;for(var tya={buttonEntity:358,captionTrack:225,channelHandle:275,commerceCartListEntity:236,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,emojiFountainDataEntity:393,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,liveChatPollStateEntity:217,logoEntity:245,macroMarkerEntity:329,
mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,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,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,settingEntity:297,transfer:120,videoPlaybackPositionEntity:76,ytMainChannelEntity:152,
ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},sya={},Acb=g.t(Object.entries(tya)),Bcb=Acb.next();!Bcb.done;Bcb=Acb.next()){var Ccb=g.t(Bcb.value),Dcb=Ccb.next().value,Ecb=Ccb.next().value,Fcb=Dcb,Gcb=Ecb;Gcb&&(sya[Gcb]=Fcb)};var X3;X3={};g.Hcb=(X3.INVALID_ENCODER_VERSION="Invalid encoder version",X3.KEY_CREATION_FAILED="Failed to create encoder key",X3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",X3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",X3.WRONG_DATA_TYPE="Encoder cannot process the data type",X3);var lya;
lya=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{kma(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],v=l[r],x=(0,c[r])(v,m);if("undefined"===typeof x)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]=
x;n=n||x!==v}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return vya(a,b)}});
g.sM=new fL;DL.prototype.toString=function(){return this.type+this.id};g.FL.prototype.wg=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return AK(this.u,this.j,a)};
g.FL.prototype.Ak=function(){return this.u.getVideoUrl(this.videoId,this.playlistId)};g.GL.prototype.wg=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:AK(this.j,this.videoId,a)};
g.GL.prototype.Ak=function(a){return this.watchUrl||this.j.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var zya=["APP_STATE","PI"];var Y3={},Dya=g.uB("yt-player-local-media",{Fq:(Y3.index={Cm:2},Y3.media={Cm:2},Y3.captions={Cm:5},Y3),shared:!1,upgrade:function(a,b){b(2)&&(g.LA(a,"index"),g.LA(a,"media"));b(5)&&g.LA(a,"captions");b(6)&&(MA(a,"metadata"),MA(a,"playerdata"))},
version:5});JL.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
JL.prototype.get=function(a){return this.j.get(a)};
JL.prototype.remove=function(a){this.j.remove(a)};var KL=void 0;Aya("LMS",function(){return g.A(function(a){return a.return(g.LL())})});var PL,Jya;PL=0;Jya=!1;g.Mya=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Aya("LMDB",function(){var a,b;return g.A(function(c){if(1==c.j)return g.y(c,g.sB(),2);if(3!=c.j){a=c.u;if(!a)throw g.DA("edd");return g.y(c,g.OL(a),3)}b=c.u;return c.return(g.NA(b,["index","media","captions"],{mode:"readonly",Ub:!0},function(d){var e={};d=[g.fB(d.objectStore("index"),{},function(f){e[f.getKey()]=f.getValue();return f.continue()}),
qpa(d.objectStore("media")),qpa(d.objectStore("captions"))];return g.FA.all(d).then(function(f){var h=g.t(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:Nya(f||[]),captions:h}})}))})});g.w(RL,g.dE);RL.prototype.qa=function(){this.j&&(this.j=this.j.onload=null);g.dE.prototype.qa.call(this)};g.k=g.VL.prototype;g.k.getHeight=function(){return this.height};
g.k.QT=aa(3);g.k.NE=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.B.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Ze=function(a){var b=this.D;b=b.replace("$N",this.B);b=b.replace("$L",this.level.toString());b=b.replace("$M",a.toString());this.C&&(b=g.Zi(b,{sigh:this.C}));return VD(b)};
g.k.OE=function(a){var b=this.NE()-1;return g.ze(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.ix=function(){return this.frameCount-1};
g.k.BJ=function(){return this.frameCount?0:-1};
g.k.tR=function(){};g.w(WL,RL);WL.prototype.u=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.D(e-1,d,a[e],b);(this.J||180>f.getHeight())&&c.push(f)}return c};
WL.prototype.D=function(a,b,c,d){return new g.VL(a,b,c,d)};g.w(XL,g.VL);g.k=XL.prototype;g.k.NE=function(){return this.u.Fy()};
g.k.OE=function(a){var b=this.rows*this.columns*this.I,c=this.u,d=c.td();a=c.uh(a);return a>d-b?-1:a};
g.k.ix=function(){return this.u.td()};
g.k.BJ=function(){return this.u.Lm()};
g.k.tR=function(a){this.u=a};g.w(YL,WL);YL.prototype.u=function(a,b){return WL.prototype.u.call(this,"$N|"+a,b)};
YL.prototype.D=function(a,b,c){return new XL(a,b,c,this.isLive)};g.w(g.$L,g.dE);g.k=g.$L.prototype;g.k.V=function(){return this.B};
g.k.K=function(a){return this.B.K(a)};
g.k.yh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.jm)||!a.Xb)};
g.k.gW=function(){this.isDisposed()||(this.j.u||this.j.unsubscribe("refresh",this.gW,this),this.SS(-1))};
g.k.SS=function(a){if(!this.isLivePlayback||!this.J||"fairplay"!=this.J.flavor){var b=Xva(this.j,this.dK);if(0<b.length){for(var c=g.t(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Id());this.ma("cuepointupdated",b,a);this.dK+=b.length;if(jM(this)&&this.B.Rd())for(b=g.t(b),d=b.next();!d.done;d=b.next())c=d.value,this.xa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.kQ.start=this.wD,this.kQ.end=
c+3)}}};
g.k.Pl=function(){return this.Pd?!0:!!this.j&&tF(this.j)};
g.k.Hj=function(){if(this.cotn)return null;var a=g.FK(this.B)||this.K("web_l3_storyboard");if(!this.Rk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Rk=new WL(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=eba(this.j.j).index)&&(this.Rk=new YL(b.spec,this.j.isLive,c,a))}else this.Dx?this.Rk=new WL(this.Dx,this.lengthSeconds,void 0,!1,a):this.wx&&this.j&&
(b=eba(this.j.j).index)&&(this.Rk=new YL(this.wx,this.j.isLive,b,a));return this.Rk};
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.Dx||this.wx};
g.k.pe=function(){return this.j&&!isNaN(this.j.pe())?this.j.pe():jM(this)?0:this.lengthSeconds};
g.k.Id=function(){return this.j&&!isNaN(this.j.Id())?this.j.Id():0};
g.k.getPlaylistSequenceForTime=function(a){if(this.j&&this.u){var b=this.j.j[this.u.id];if(!b)return null;var c=b.index.uh(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.De=function(){return!this.isDisposed()&&!(!this.videoId&&!this.ol)};
g.k.Yu=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
g.k.isLoaded=function(){return aM(this)&&!this.Qg&&!this.Rn};
g.k.wg=function(a){if(30==this.Ga)return(a=this.Z["default.jpg"])?a:this.videoId?g.Zi("//web.archive.org/web/20230426095903/https://docs.google.com/vt",{id:this.videoId,authuser:this.authUser,authkey:this.XR}):"//web.archive.org/web/20230426095903/https://docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.B.oa||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:AK(this.B,this.videoId,a)};
g.k.fd=function(){return this.isLivePlayback||this.Se||this.rd||!(!this.liveUtcStartSeconds||!this.mm)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Se&&!this.isLivePlayback&&this.j.u)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.tx||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.I&&!LH(this.I))return g.nb(this.getAvailableAudioTracks(),function(d){return d.id==a.I.id})||this.wm;
if(this.tx){if(!this.Xn)for(var b=g.t(this.tx),c=b.next();!c.done;c=b.next())if(c=c.value,c.Jc.getIsDefault()){this.Xn=c;break}return this.Xn||this.wm}return this.wm};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getHeartbeatResponse=function(){return this.QJ};
g.k.Ak=function(){return this.watchUrl?this.watchUrl:this.B.getVideoUrl(this.videoId)};
g.k.KM=function(){return!!this.j&&(Nva(this.j)||Ova(this.j)||Pva(this.j))};
g.k.isAd=function(){return!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.lP=function(){return this.Uo||this.Vf};
g.k.VD=function(){return this.ij||this.Vf};
g.k.tK=function(){return fM(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.xa=function(a,b,c){this.ma("ctmp",a,b,c)};
g.k.IO=function(a,b,c){this.ma("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.qa=function(){g.dE.prototype.qa.call(this);this.uA=null;delete this.l1;delete this.accountLinkingConfig;delete this.j;this.C=this.QJ=this.playerResponse=this.jd=null;this.Jf=this.adaptiveFormats="";delete this.botguardData;this.ke=this.suggestions=this.Ow=null};bN.prototype.D=function(){return!1};
bN.prototype.Ja=function(){return function(){return null}};var jN=null;g.w(iN,g.dE);iN.prototype.RB=function(a){return this.j.hasOwnProperty(a)?this.j[a].RB():{}};
g.Fa("ytads.bulleit.getVideoMetadata",function(a){return kN().RB(a)});
g.Fa("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=kN();c=dAa(c);null!==c&&d.ma(c,{queryId:a,viewabilityString:b})});g.w(pN,bN);pN.prototype.isSkippable=function(){return null!=this.Aa};
pN.prototype.Ce=function(){return this.T};
pN.prototype.getVideoUrl=function(){return null};
pN.prototype.D=function(){return!0};g.w(yN,bN);yN.prototype.D=function(){return!0};
yN.prototype.Ja=function(){return function(){return g.kf("video-ads")}};$Aa.prototype.isPostroll=function(){return"AD_PLACEMENT_KIND_END"==this.j.j};var d5a={b$:"FINAL",eZ:"AD_BREAK_LENGTH",Kda:"AD_CPN",Rda:"AH",Vda:"AD_MT",Yda:"ASR",cea:"AW",mla:"NM",nla:"NX",ola:"NY",oZ:"CONN",fma:"CPN",Loa:"DV_VIEWABILITY",Hpa:"ERRORCODE",Qpa:"ERROR_MSG",Tpa:"EI",FZ:"GOOGLE_VIEWABILITY",mxa:"IAS_VIEWABILITY",tAa:"LACT",P0:"LIVE_TARGETING_CONTEXT",SFa:"I_X",TFa:"I_Y",gIa:"MT",uIa:"MIDROLL_POS",vIa:"MIDROLL_POS_MS",AIa:"MOAT_INIT",BIa:"MOAT_VIEWABILITY",X0:"P_H",sPa:"PV_H",tPa:"PV_W",Y0:"P_W",MPa:"TRIGGER_TYPE",tSa:"SDKV",f1:"SLOT_POS",ZYa:"SURVEY_LOCAL_TIME_EPOCH_S",
YYa:"SURVEY_ELAPSED_MS",t1:"VIS",Q3a:"VIEWABILITY",X3a:"VED",u1:"VOL",a4a:"WT",A1:"YT_ERROR_CODE"};var GBa=["FINAL","CPN","MIDROLL_POS","SDKV","SLOT_POS"];EN.prototype.send=function(a,b,c){try{HBa(this,a,b,c)}catch(d){}};g.w(FN,EN);FN.prototype.j=function(){return this.Dl?g.NK(this.Dl.V(),g.VM(this.Dl)):Oy("")};
FN.prototype.B=function(){return this.Dl?this.Dl.V().pageId:""};
FN.prototype.u=function(){return this.Dl?this.Dl.V().authUser:""};
FN.prototype.K=function(a){return this.Dl?this.Dl.K(a):!1};var Icb=eaa(["attributionsrc"]);
JN.prototype.send=function(a,b,c){var d=!1;try{var e=new g.Bk(a);if("2"===e.u.get("ase"))g.DD(Error("Queries for attributionsrc label registration when sending pings.")),d=!0,a=HN(a);else if("1"===e.u.get("ase")&&"video_10s_engaged_view"===e.u.get("label")){var f=document.createElement("img");zga([new Yj(Icb[0].toLowerCase(),woa)],f,"attributionsrc",a+"&asr=1")}var h=a.match(Si);if("https"===h[1])var l=a;else h[1]="https",l=Qi("https",h[2],h[3],h[4],h[5],h[6],h[7]);var m=ala(l);h=[];yy(l)&&(h.push({headerType:"USER_AUTH"}),
h.push({headerType:"PLUS_PAGE_ID"}),h.push({headerType:"VISITOR_ID"}),h.push({headerType:"EOM_VISITOR_ID"}),h.push({headerType:"AUTH_USER"}));d&&h.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.ou.send({baseUrl:l,scrubReferrer:m,headers:h},b,c)}catch(n){}};g.w(MBa,g.C);g.w(ZN,g.dE);g.k=ZN.prototype;g.k.RB=function(){return{}};
g.k.sX=function(){};
g.k.kh=function(a){this.Eu();this.ma(a)};
g.k.Eu=function(){SBa(this,this.oa,3);this.oa=[]};
g.k.getDuration=function(){return this.F.getDuration(2,!1)};
g.k.iC=function(){var a=this.Za;KN(a)||!SN(a,"impression")&&!SN(a,"start")||SN(a,"abandon")||SN(a,"complete")||SN(a,"skip")||VN(a,"pause");this.B||(a=this.Za,KN(a)||!SN(a,"unmuted_impression")&&!SN(a,"unmuted_start")||SN(a,"unmuted_abandon")||SN(a,"unmuted_complete")||VN(a,"unmuted_pause"))};
g.k.jC=function(){this.ya||this.J||this.Rm()};
g.k.Ei=function(){NN(this.Za,this.getDuration());if(!this.B){var a=this.Za;this.getDuration();KN(a)||(PBa(a,0,!0),QBa(a,0,0,!0),MN(a,"unmuted_complete"))}};
g.k.Ko=function(){var a=this.Za;!SN(a,"impression")||SN(a,"skip")||SN(a,"complete")||RN(a,"abandon");this.B||(a=this.Za,SN(a,"unmuted_impression")&&!SN(a,"unmuted_complete")&&RN(a,"unmuted_abandon"))};
g.k.jM=function(){var a=this.Za;a.daiEnabled?MN(a,"skip"):!SN(a,"impression")||SN(a,"abandon")||SN(a,"complete")||MN(a,"skip")};
g.k.Rm=function(){if(!this.J){var a=this.GB();this.Za.macros.AD_CPN=a;a=this.Za;if(a.daiEnabled){var b=a.u.getCurrentTime(2,!1);QN(a,"impression",b,0)}else MN(a,"impression");MN(a,"start");KN(a)||a.u.isFullscreen()&&RN(a,"fullscreen");this.J=!0;this.B=this.F.isMuted()||0==this.F.getVolume();this.B||(a=this.Za,MN(a,"unmuted_impression"),MN(a,"unmuted_start"),KN(a)||a.u.isFullscreen()&&RN(a,"unmuted_fullscreen"))}};
g.k.Lo=function(a){a=a||"";var b="",c="",d="";cN(this.F)&&(b=this.F.Cb(2).state,this.F.qe()&&(c=this.F.qe().xj(),null!=this.F.qe().Ye()&&(d=this.F.qe().Ye())));var e=this.Za;e.macros=DN(e.macros,FBa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d)));MN(e,"error");this.B||(e=this.Za,e.macros=DN(e.macros,FBa("There was an error playing the video ad. Error code: "+(a+"; s:"+b+"; rs:")+(c+"; ec:"+d))),MN(e,"unmuted_error"))};
g.k.gh=function(){};
g.k.cX=function(){this.ma("adactiveviewmeasurable")};
g.k.dX=function(){this.ma("adfullyviewableaudiblehalfdurationimpression")};
g.k.eX=function(){this.ma("adoverlaymeasurableimpression")};
g.k.fX=function(){this.ma("adoverlayunviewableimpression")};
g.k.gX=function(){this.ma("adoverlayviewableendofsessionimpression")};
g.k.hX=function(){this.ma("adoverlayviewableimmediateimpression")};
g.k.iX=function(){this.ma("adviewableimpression")};
g.k.dispose=function(){this.isDisposed()||(this.Eu(),this.j.unsubscribe("adactiveviewmeasurable",this.cX,this),this.j.unsubscribe("adfullyviewableaudiblehalfdurationimpression",this.dX,this),this.j.unsubscribe("adoverlaymeasurableimpression",this.eX,this),this.j.unsubscribe("adoverlayunviewableimpression",this.fX,this),this.j.unsubscribe("adoverlayviewableendofsessionimpression",this.gX,this),this.j.unsubscribe("adoverlayviewableimmediateimpression",this.hX,this),this.j.unsubscribe("adviewableimpression",
this.iX,this),delete this.j.j[this.ad.J],g.dE.prototype.dispose.call(this))};
g.k.GB=function(){var a=this.F.getVideoData(2);return a&&a.clientPlaybackNonce||""};
g.k.rT=function(){return""};g.w($N,bN);g.w(aO,gN);g.w(bO,ZN);g.k=bO.prototype;g.k.PE=function(){0<this.u&&this.Rm()};
g.k.Rm=function(){var a=this;this.Gc=new g.Ip(function(){a.Ei();for(var b=g.t(a.C.j.completionCommands||[]),c=b.next();!c.done;c=b.next())a.D.executeCommand(c.value,a.macros);a.kh("adended")},this.u,this);
g.E(this,this.Gc);this.Gc.start();TBa(this,[new aO(this.C.j,this.macros)]);ZN.prototype.Rm.call(this)};
g.k.Ko=function(){ZN.prototype.Ko.call(this);this.kh("adabandoned")};
g.k.Ei=function(){ZN.prototype.Ei.call(this)};
g.k.kh=function(a){this.Gc&&this.Gc.stop();ZN.prototype.kh.call(this,a)};g.w(cO,bN);g.w(dO,bN);VBa.prototype.create=function(a,b){return a instanceof pN?this.C.create(a,b):a instanceof $N?this.j.create(a,b):a instanceof dO?this.B.create(a,b):a instanceof cO?this.u.create(a,b):null};g.w(eO,ZN);g.k=eO.prototype;g.k.Ko=function(){ZN.prototype.Ko.call(this);this.kh("adabandoned")};
g.k.iC=function(){ZN.prototype.iC.call(this);this.ma("adpause",2)};
g.k.jC=function(){ZN.prototype.jC.call(this);this.ma("adplay",1)};
g.k.Rm=function(){ZN.prototype.Rm.call(this);this.u.stop();this.C.S(this.F,g.ZD("bltplayback"),this.P_);var a=new g.XD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.F.ye([a],2);this.ma("adplay",1)};
g.k.Ei=function(){ZN.prototype.Ei.call(this);this.kh("adended")};
g.k.Lo=function(a){ZN.prototype.Lo.call(this,a);this.kh("aderror")};
g.k.PE=function(){eN(this.F,!1);var a=this.D.u||{};a.autoplay="1";this.F.cueVideoByPlayerVars(a,2);this.u.start();this.F.playVideo(2);this.F.Na("onAdIntroStateChange",1)};
g.k.kh=function(a){this.u.stop();eN(this.F,!0);"adabandoned"!=a&&this.F.Na("onAdComplete");this.F.Na("onAdEnd");this.ma(a);this.F.Na("onAdIntroStateChange",0)};
g.k.P_=function(a){"bltcompletion"==a.getId()&&(this.F.Ff("bltplayback",2),NN(this.Za,this.getDuration()))};var S1a=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"]]);g.w(hO,gN);g.w(iO,ZN);g.k=iO.prototype;g.k.PE=function(){if(this.I){var a=this.u.j;if(!gO(a)){g.DD(Error("adMessageRenderer is not augmented on playAd"));return}a=a.slot;for(var b=g.t(this.I.listeners),c=b.next();!c.done;c=b.next()){var d=c.value;c=a;eCa(d.j(),c);fCa(d.j(),c);d=d.j();d=g.t(d.Fd);for(var e=d.next();!e.done;e=d.next())e.value.Qj(c)}}0>=this.T&&(g.CD(Error("durationMs was specified incorrectly with a value of: "+this.T)),this.Ei());this.Rm();this.F.addEventListener("progresssync",this.Z)};
g.k.Ko=function(){ZN.prototype.Ko.call(this);this.kh("adabandonedreset",!0)};
g.k.Rm=function(){var a=this.F.V();fF("apbs",void 0,"video_to_ad");ZN.prototype.Rm.call(this);this.C=a.K("disable_rounding_ad_notify")?this.F.getCurrentTime():Math.floor(this.F.getCurrentTime());this.D=this.C+this.T/1E3;g.tK(a)?this.F.Na("onAdMessageChange",{renderer:this.u.j,startTimeSecs:this.C}):TBa(this,[new hO(this.u.j)]);a=(a=this.F.getVideoData(1))&&a.clientPlaybackNonce||"";var b=g.FE(),c=this.u.j.videoAdBreakOffsetMsInt64;b&&g.rA("adNotify",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*
this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:Number(c)});if(this.I){this.ea=!0;b=this.u.j;if(!gO(b)){g.DD(Error("adMessageRenderer is not augmented on ad started"));return}a=b.slot;b=b.layout;c=g.t(this.I.listeners);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=a,f=b;gCa(d.j(),e);j0(d.j(),e,f)}}g.S(this.F.Cb(1),512)&&(g.DD(Error("player stuck during adNotify")),a=(a=this.F.getVideoData(1))&&a.clientPlaybackNonce||"",b=g.FE(),c=this.u.j.videoAdBreakOffsetMsInt64,
b&&g.rA("adNotifyFailure",{clientScreenNonce:b,adMediaTimeMs:Math.floor(1E3*this.D),timeToAdBreakSec:Math.ceil(this.D-this.C),clientPlaybackNonce:a,videoAdBreakOffsetMs:c}),this.Ei())};
g.k.Ei=function(){ZN.prototype.Ei.call(this);this.kh("adended",!0)};
g.k.Lo=function(a){g.DD(new g.bA("Player error during adNotify.",{errorCode:a}));ZN.prototype.Lo.call(this,a);this.kh("aderror",!0)};
g.k.kh=function(a,b){(void 0===b?0:b)||g.DD(Error("TerminateAd directly called from other class during adNotify."));this.F.removeEventListener("progresssync",this.Z);this.Eu();ZBa(this,a);"adended"===a||"aderror"===a?this.ma("adnotifyexitednormalorerror"):this.ma(a)};
g.k.dispose=function(){this.F.removeEventListener("progresssync",this.Z);ZBa(this);ZN.prototype.dispose.call(this)};
g.k.Eu=function(){g.tK(this.F.V())?this.F.Na("onAdMessageChange",{renderer:null,startTimeSecs:this.C}):ZN.prototype.Eu.call(this)};mO.prototype.sendAdsPing=function(a){this.B.send(a,$Ba(this),{})};
mO.prototype.Hg=function(a){var b=this;if(a){var c=$Ba(this);Array.isArray(a)?a.forEach(function(d){return b.j.executeCommand(d,c)}):this.j.executeCommand(a,c)}};g.w(nO,ZN);g.k=nO.prototype;g.k.RB=function(){return{currentTime:this.F.getCurrentTime(2,!1),duration:this.u.u,isPlaying:bAa(this.F),isVpaid:!1,isYouTube:!0,volume:this.F.isMuted()?0:this.F.getVolume()/100}};
g.k.PE=function(){var a=this.u.j.legacyInfoCardVastExtension,b=this.u.Ce();a&&b&&this.F.V().Aa.add(b,{jB:a});try{var c=this.u.j.sodarExtensionData;if(c&&c.siub&&c.bgub&&c.scs&&c.bgp)try{Yka(c.siub,c.scs,c.bgub,c.bgp)}catch(e){var d=g.Xd("//web.archive.org/web/20230426095903/https://tpc.googlesyndication.com/sodar/%{path}");g.DD(new g.bA("Load Sodar Error.",d instanceof Vd,d.constructor===Vd,{Message:e.message,"Escaped injector basename":g.Me(c.siub),"BG vm basename":c.bgub}));if(d.constructor===Vd)throw e;}}catch(e){g.CD(e)}eN(this.F,!1);
a=iAa(this.u);b=this.F.V();a.iv_load_policy=b.u||g.tK(b)||g.FK(b)?3:1;b=this.F.getVideoData(1);b.Ki&&(a.ctrl=b.Ki);b.qj&&(a.ytr=b.qj);b.Kp&&(a.ytrcc=b.Kp);b.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,b.ek&&(a.vss_credentials_token_type=b.ek),b.mdxEnvironment&&(a.mdx_environment=b.mdxEnvironment));this.ma("adunstarted",-1);this.T?this.D.start():(this.F.cueVideoByPlayerVars(a,2),this.D.start(),this.F.playVideo(2))};
g.k.iC=function(){ZN.prototype.iC.call(this);this.ma("adpause",2)};
g.k.jC=function(){ZN.prototype.jC.call(this);this.ma("adplay",1)};
g.k.Rm=function(){ZN.prototype.Rm.call(this);this.D.stop();this.ea.S(this.F,g.ZD("bltplayback"),this.Q_);var a=new g.XD(0x7ffffffffffff,0x8000000000000,{id:"bltcompletion",namespace:"bltplayback",priority:2});this.F.ye([a],2);a=rO(this);this.C.Ga=a;if(this.F.isMuted()){a=this.Za;var b=this.F.isMuted();a.daiEnabled||MN(a,b?"mute":"unmute")}this.ma("adplay",1);if(null!==this.I){a=null!==this.C.j.getVideoData(1)?this.C.j.getVideoData(1).clientPlaybackNonce:"";b=cCa(this);for(var c=this.u,d=bCa(this),
e=g.t(this.I.listeners),f=e.next();!f.done;f=e.next()){f=f.value;var h=b,l=c,m=d,n=[],p=l.Ce(),q=l.getVideoUrl();p&&n.push(new y_(p));q&&n.push(new v1a(q));(q=(p=l.j)&&p.playerOverlay&&p.playerOverlay.instreamAdPlayerOverlayRenderer)?(n.push(new A_(q)),(q=q.elementId)&&n.push(new E_(q))):GD("instreamVideoAdRenderer without instreamAdPlayerOverlayRenderer");(p=p&&p.playerUnderlay)&&n.push(new B_(p));l.j.adNextParams&&n.push(new p_(l.j.adNextParams||""));(p=l.Ga)&&n.push(new q_(p));(p=f.Va.get().vg(2))?
(n.push(new r_({channelId:p.bk,channelThumbnailUrl:p.profilePicture,channelTitle:p.author,videoTitle:p.title})),n.push(new s_(p.isListed))):GD("Expected meaningful PlaybackData on ad started.");n.push(new u_(l.B));n.push(new J_(l.u));n.push(new z_(a));n.push(new G_({current:this}));p=l.Qa;null!=p.kind&&n.push(new t_(p));(p=l.La)&&n.push(new V_(p));void 0!==m&&n.push(new W_(m));f.j?GD(f.j.layoutId===h?"Received repeat AD_START event.":"Received a new AD_START event before received AD_ENDED event."):
dCa(f,h,n,!0,l.j.adLayoutLoggingData)}}this.F.Na("onAdStart",rO(this));a=g.t(this.u.j.impressionCommands||[]);for(b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Q_=function(a){"bltcompletion"==a.getId()&&(this.F.Ff("bltplayback",2),NN(this.Za,this.getDuration()),qO(this,"adended"))};
g.k.Ei=function(){ZN.prototype.Ei.call(this);this.kh("adended");for(var a=g.t(this.u.j.completeCommands||[]),b=a.next();!b.done;b=a.next())this.C.executeCommand(b.value,this.macros)};
g.k.Ko=function(){ZN.prototype.Ko.call(this);this.kh("adabandoned")};
g.k.PH=function(){var a=this.Za;KN(a)||RN(a,"clickthrough");this.B||(a=this.Za,KN(a)||RN(a,"unmuted_clickthrough"))};
g.k.gD=function(){this.jM()};
g.k.jM=function(){ZN.prototype.jM.call(this);this.kh("adended")};
g.k.Lo=function(a){ZN.prototype.Lo.call(this,a);this.kh("aderror")};
g.k.kh=function(a){this.D.stop();eN(this.F,!0);"adabandoned"!=a&&this.F.Na("onAdComplete");qO(this,a);this.F.Na("onAdEnd",rO(this));this.ma(a)};
g.k.Eu=function(){var a=this.F.V();g.tK(a)&&(g.FK(a)||a.K("enable_topsoil_wta_for_halftime")||a.K("enable_topsoil_wta_for_halftime_live_infra")||g.tK(a))?this.F.Na("onAdInfoChange",null):ZN.prototype.Eu.call(this)};
g.k.sX=function(){this.s4&&this.F.playVideo()};
g.k.s4=function(){return 2==this.F.getPlayerState(2)};
g.k.rT=function(a,b){if(!Number.isFinite(a))return g.CD(Error("Playing the video after the current media has finished is not supported")),"";if(b<=a)return g.CD(Error("Start time is not earlier than end time")),"";var c=1E3*this.u.u,d=iAa(this.u);d=this.F.Kx(d,"",2,c,a,b);a+c>b&&this.F.jA(d,b-a);return d};
g.k.dispose=function(){bAa(this.F)&&!this.T&&this.F.stopVideo(2);qO(this,"adabandoned");ZN.prototype.dispose.call(this)};sO.prototype.reduce=function(a){switch(a.event){case "start":case "continue":case "predictStart":case "stop":break;case "unknown":return;default:return}var b=a.identifier;var c=this.j[b];c?b=c:(c={oB:null,kV:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.kV))if(b.kV=c,b.oB){if(c<b.oB.end){a:{c=b.oB;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Sg;a=a<c.start||c.end<=a?null:a}null!==a&&(b.oB.end=a,this.u.fW(a))}}else if(a=iCa(a,this.B))c=
a.j4,b.oB=a.B2,this.u.YN(c)};
sO.prototype.updateTime=function(){};vO.prototype.Ch=function(a){var b=this.j;g.Mf(function(){return b.Ch(a,1)})};g.k=xO.prototype;g.k.Px=function(a,b,c,d,e){var f=this;qCa(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.B="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.cg=!1;f.u=!1;f.C=!b&&0===c})};
g.k.mI=function(){var a=this.F.getVideoData(1);if(!this.F.K("html5_no_video_to_ad_on_preroll")||null!=a&&a.kb)this.u=!1,a={},this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId}),cF("video_to_ad",a)};
g.k.uP=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});cF("ad_to_ad",a)};
g.k.aA=function(){this.u=!1;var a={};this.j&&this.videoId&&(a.cttAuthInfo={token:this.j,videoId:this.videoId});cF("ad_to_video",a);pCa(this)};
g.k.bP=function(){this.cg&&!this.u&&(this.C=!1,this.u=!0,"ad_to_video"!==this.actionType&&(this.F.K("html5_no_video_to_ad_on_preroll")?(this.F.K("html5_remove_deprecated_ticks")||fF("apbs",void 0,this.actionType),fF("pbs",void 0,this.actionType)):(this.F.K("html5_remove_deprecated_ticks")||eF("apbs",void 0,this.actionType),eF("pbs",void 0,this.actionType)),g.gy("finalize_all_timelines")&&Eta(this.actionType)))};
g.k.reset=function(){return new xO(this.F)};var Jcb,Z3,uCa;
Jcb={Eea:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",pia:"AUTHENTICATION_MALFORMED",qia:"AUTHENTICATION_MISSING",yia:"BAD_REQUEST",nja:"CAST_SESSION_DEVICE_MISMATCHED",oja:"CAST_SESSION_VIDEO_MISMATCHED",pja:"CAST_TOKEN_EXPIRED",qja:"CAST_TOKEN_FAILED",rja:"CAST_TOKEN_MALFORMED",Pja:"CGI_PARAMS_MALFORMED",Qja:"CGI_PARAMS_MISSING",hoa:"DEVICE_FALLBACK",Ipa:"GENERIC_WITH_LINK_AND_CPN",Jpa:"ERROR_HDCP",Opa:"LICENSE",Rpa:"VIDEO_UNAVAILABLE",Dva:"FORMAT_UNAVAILABLE",Hva:"GEO_FAILURE",
Wwa:"HTML5_AUDIO_RENDERER_ERROR",Xwa:"GENERIC_WITHOUT_LINK",Ywa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Zwa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",axa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",mya:"INVALID_DRM_MESSAGE",jRa:"PURCHASE_NOT_FOUND",kRa:"PURCHASE_REFUNDED",ERa:"RENTAL_EXPIRED",LRa:"RETRYABLE_ERROR",GSa:"SERVER_ERROR",PTa:"SIGNATURE_EXPIRED",BWa:"STOPPED_BY_ANOTHER_PLAYBACK",yXa:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",zXa:"STREAMING_NOT_ALLOWED",AXa:"STREAM_LICENSE_NOT_FOUND",
uZa:"TOO_MANY_REQUESTS",vZa:"TOO_MANY_REQUESTS_WITH_LINK",xZa:"TOO_MANY_STREAMS_PER_ENTITLEMENT",yZa:"TOO_MANY_STREAMS_PER_USER",T2a:"UNSUPPORTED_DEVICE",l3a:"VIDEO_FORBIDDEN",p3a:"VIDEO_NOT_FOUND"};Z3={};
g.$T=(Z3.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.",Z3.DEVICE_FALLBACK="Sorry, this video is not available on this device.",Z3.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",Z3.LICENSE="Sorry, there was an error licensing this video.",Z3.VIDEO_UNAVAILABLE=
"Video unavailable",Z3.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",Z3.GEO_FAILURE="This video isn't available in your country.",Z3.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",Z3.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",Z3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",Z3.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",
Z3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",Z3.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",Z3.PURCHASE_NOT_FOUND="This video requires payment.",Z3.PURCHASE_REFUNDED="This video's purchase has been refunded.",Z3.RENTAL_EXPIRED="This video's rental has expired.",Z3.CAST_SESSION_DEVICE_MISMATCHED="The device in the cast session doesn't match the requested one.",Z3.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",
Z3.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",Z3.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",Z3.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",Z3.SERVER_ERROR="There was an internal server error. Please try again later.",Z3.STOPPED_BY_ANOTHER_PLAYBACK="Your account is playing this video in another location. Please reload this page to resume watching.",Z3.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",
Z3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",Z3.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",Z3.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",Z3.TOO_MANY_REQUESTS="Please log in to watch this video.",Z3.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",Z3.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",
Z3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",Z3.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",Z3.VIDEO_FORBIDDEN="Access to this video is forbidden.",Z3.VIDEO_NOT_FOUND="This video can not be found.",Z3);
uCa={300:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"ALREADY_PINNED_ON_A_DEVICE",303:"STOPPED_BY_ANOTHER_PLAYBACK",304:"TOO_MANY_STREAMS_PER_USER",305:"TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"VIDEO_NOT_FOUND",401:"GEO_FAILURE",402:"STREAMING_NOT_ALLOWED",403:"UNSUPPORTED_DEVICE",405:"VIDEO_FORBIDDEN",500:"PURCHASE_NOT_FOUND",501:"RENTAL_EXPIRED",502:"PURCHASE_REFUNDED",5E3:"BAD_REQUEST",5001:"CGI_PARAMS_MISSING",5002:"CGI_PARAMS_MALFORMED",5100:"AUTHENTICATION_MISSING",5101:"AUTHENTICATION_MALFORMED",
5102:"AUTHENTICATION_EXPIRED",5200:"CAST_TOKEN_MALFORMED",5201:"CAST_TOKEN_EXPIRED",5202:"CAST_TOKEN_FAILED",5203:"CAST_SESSION_VIDEO_MISMATCHED",5204:"CAST_SESSION_DEVICE_MISMATCHED",6E3:"INVALID_DRM_MESSAGE",7E3:"SERVER_ERROR",8E3:"RETRYABLE_ERROR"};g.yO=!1;g.w(FO,g.C);g.k=FO.prototype;g.k.QE=function(){return this.B};
g.k.Hx=function(a){var b="";a&&(ACa(this,a),b=a.j);if(!this.Qf()||b)b&&this.Qf()!==b&&(this.SE(b),delete this.u,this.C&&(this.C.reject(),delete this.C)),a&&a.u||this.load(),this.T||(this.addEventListener("volumechange",this.VS),this.T=!0)};
g.k.zs=function(a,b){if(this.u)if(Kcb&&AI(this.u)&&!this.u.Wy(a,b)){var c;yI(this,{l:"megms",sr:null==(c=this.va)?void 0:zI(c)});yCa(this);this.stopVideo()}else return this.Wa=this.u,this.u=void 0,this.Wa;a=window.MediaSource?new vI(this,new window.MediaSource,!1):window.WebKitMediaSource?new vI(this,new window.WebKitMediaSource,!1):new vI(this,void 0,!1);this.Hx(a.B);return this.Wa=a};
g.k.playVideo=function(){var a=this;this.Qh()&&this.seekTo(0);!this.Qf()&&this.B&&(g.CD(Error("playVideo without src")),this.SE(this.B.j),this.B.u||this.load());var b=this.play();!b&&RT&&7<=(dM||0)&&wCa(this,function(){g.Cy(function(){zCa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.xj()&&(RT&&4>dM&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.Dn=function(){if(!this.u&&this.Wa)if(this.Wa.D)try{var a;yI(this,{l:"mer",sr:null==(a=this.va)?void 0:zI(a),rs:BI(this.Wa)});this.Wa.clear();this.u=this.Wa;this.Wa=void 0}catch(b){a=new g.bA("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.CD(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this,b;null==(b=this.Wa)||Hva(b);if(!this.u)if(Lcb){if(!this.C){var c=new aK;c.then(void 0,function(){});
this.C=c;Mcb&&this.pause();g.Cy(function(){a.C===c&&(IO(a),c.resolve())},200)}}else IO(this)};
g.k.Dy=function(){var a=this.Nh();return 0<nI(a)&&this.getDuration()?mI(a,this.getCurrentTime()):0};
g.k.Tu=function(){var a=this.getDuration();return Infinity===a?1:a?this.Dy()/a:0};
g.k.lc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:jI(this.Vu(),",",3),vbu:jI(this.Nh()),vpa:""+ +this.Ip(),vsk:""+ +this.hh(),ven:""+ +this.Qh(),vpr:""+this.getPlaybackRate(),vrs:""+this.xj(),vns:""+this.WF(),vec:""+this.Ye(),vemsg:this.zf(),vvol:""+this.getVolume(),vdom:""+ +this.JM(),vsrc:""+ +!!this.Qf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.addEventListener=function(a,b){this.D.Ra(a,b,!1,this);this.sL(a)};
g.k.removeEventListener=function(a,b){this.D.Hc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(Kcb){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.u||this.Wa;if((null==c?0:c.Ol())||b<=((null==c?void 0:c.I)||0)){var d;yI(this,{l:"mede",sr:null==(d=this.va)?void 0:zI(d)});return!1}if(this.xM)return c&&"seeking"===a.type&&(c.I=performance.now(),this.xM=!1),!1}return this.D.dispatchEvent(a)};
g.k.nL=function(){this.J=!1};
g.k.lL=function(){this.J=!0;this.Sz(!0)};
g.k.VS=function(){this.J&&!this.VF()&&this.Sz(!0)};
g.k.equals=function(a){return!!a&&a.ub()===this.ub()};
g.k.qa=function(){this.T&&this.removeEventListener("volumechange",this.VS);Lcb&&IO(this);g.C.prototype.qa.call(this)};
var Lcb=!1,Mcb=!1,Kcb=!1,CCa=!1;g.k=g.KO.prototype;g.k.getData=function(){return this.j};
g.k.bd=function(){return g.S(this,8)&&!g.S(this,512)&&!g.S(this,64)&&!g.S(this,2)};
g.k.isCued=function(){return g.S(this,64)&&!g.S(this,8)&&!g.S(this,4)};
g.k.isError=function(){return g.S(this,128)};
g.k.isSuspended=function(){return g.S(this,512)};
g.k.BC=function(){return g.S(this,64)&&g.S(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var $3={},a4=($3.BUFFERING="buffering-mode",$3.CUED="cued-mode",$3.ENDED="ended-mode",$3.PAUSED="paused-mode",$3.PLAYING="playing-mode",$3.SEEKING="seeking-mode",$3.UNSTARTED="unstarted-mode",$3);g.w(VO,g.dE);g.k=VO.prototype;g.k.fv=function(){var a=this.u;return a.u instanceof pN||a.u instanceof yN||a.u instanceof qN};
g.k.uJ=function(){return!1};
g.k.iR=function(){return this.u.j};
g.k.vJ=function(){return"AD_PLACEMENT_KIND_START"==this.u.j.j};
g.k.jR=function(){return zN(this.u)};
g.k.iU=function(a){if(!bE(a)){this.ea&&(this.Aa=this.F.isAtLiveHead(),this.ya=Math.ceil(g.Ra()/1E3));var b=new vO(this.wi);a=kCa(a);b.Ch(a)}this.kR()};
g.k.XU=function(){return!0};
g.k.DC=function(){return this.J instanceof pN};
g.k.kR=function(){var a=this.wi;this.XU()&&(a.u&&YO(a,!1),a.u=this,this.fv()&&yEa(a));this.D.mI();this.QW()};
g.k.QW=function(){this.J?this.RA(this.J):ZO(this)};
g.k.onAdEnd=function(a,b){b=void 0===b?!1:b;this.Yl(0);ZO(this,b)};
g.k.RV=function(){this.onAdEnd()};
g.k.d5=function(){MN(this.j.Za,"active_view_measurable")};
g.k.g5=function(){var a=this.j.Za;KN(a)||UN(a)||MN(a,"active_view_fully_viewable_audible_half_duration")};
g.k.j5=function(){};
g.k.k5=function(){};
g.k.l5=function(){};
g.k.m5=function(){};
g.k.p5=function(){var a=this.j.Za;KN(a)||UN(a)||MN(a,"active_view_viewable")};
g.k.e5=function(){var a=this.j.Za;KN(a)||UN(a)||MN(a,"audio_audible")};
g.k.f5=function(){var a=this.j.Za;KN(a)||UN(a)||MN(a,"audio_measurable")};
g.k.HT=function(){return this.DC()?[this.YF()]:[]};
g.k.yd=function(a){if(null!==this.j){this.oa||(a=new g.WN(a.state,new g.KO),this.oa=!0);var b=a.state;if(g.YN(a,2))this.j.Ei();else{var c=a;(this.F.V().experiments.ob("html5_bulleit_handle_gained_playing_state")?c.state.bd()&&!c.Hv.bd():c.state.bd())?(this.D.bP(),this.j.jC()):b.isError()?this.j.Lo(b.getData().errorCode):g.YN(a,4)&&(this.Z||this.j.iC())}if(null!==this.j){if(g.YN(a,16)&&(b=this.j.Za,!(KN(b)||.5>b.u.getCurrentTime(2,!1)))){c=b.ad;if(c.D()){var d=b.C.F.V().K("html5_dai_enable_active_view_creating_completed_adblock");
Wka(c.J,d)}b.ad.I.seek=!0}0>XN(a,4)&&!(0>XN(a,2))&&(b=this.j,c=b.Za,KN(c)||VN(c,"resume"),b.B||(b=b.Za,KN(b)||VN(b,"unmuted_resume")));this.daiEnabled&&g.YN(a,512)&&!g.TO(a.state)&&this.D.aA()}}};
g.k.onVideoDataChange=function(){return this.daiEnabled?ECa(this):!1};
g.k.resume=function(){this.j&&this.j.sX()};
g.k.sy=function(){this.j&&this.j.kh("adended")};
g.k.Sr=function(){this.sy()};
g.k.Yl=function(a){this.wi.Yl(a)};
g.k.R_=function(a){this.wi.j.Na("onAdUxUpdate",a)};
g.k.onAdUxClicked=function(a){this.j.gh(a)};
g.k.FT=function(){return 0};
g.k.GT=function(){return 1};
g.k.QP=function(a){this.daiEnabled&&this.u.I&&this.u.j.start<=a&&a<XO(this)&&this.F.Fu(a,this.u.j.end)};
g.k.RA=function(a){g.Za(this.j);this.j=a=this.ju.create(a,CN(DBa(this.u)),this.u.j.j);this.dN(a);a.ya?a.Lo("ui_unstable"):a.PE();FCa(this,!1)};
g.k.dN=function(a){a.subscribe("adabandoned",g.Pa(this.onAdEnd,!0),this);a.subscribe("adabandonedreset",g.Pa(this.onAdEnd,!0,!0),this);a.subscribe("adactiveviewmeasurable",this.d5,this);a.subscribe("adended",this.onAdEnd,this);a.subscribe("aderror",this.RV,this);a.subscribe("adfullyviewableaudiblehalfdurationimpression",this.g5,this);a.subscribe("adoverlaymeasurableimpression",this.j5,this);a.subscribe("adoverlayunviewableimpression",this.k5,this);a.subscribe("adoverlayviewableendofsessionimpression",
this.l5,this);a.subscribe("adoverlayviewableimmediateimpression",this.m5,this);a.subscribe("adpause",this.oM,this);a.subscribe("adplay",this.oM,this);a.subscribe("adunstarted",this.oM,this);a.subscribe("onAdUxUpdate",this.R_,this);a.subscribe("adviewableimpression",this.p5,this);a.subscribe("adaudioaudible",this.e5,this);a.subscribe("adaudiomeasurable",this.f5,this)};
g.k.oM=function(a){this.Yl(a)};
g.k.YF=function(){return this.J};
g.k.isLiveStream=function(){return this.ea};
g.k.reset=function(){return new VO(this.wi,this.F,this.D.reset(),this.u,this.Lp,this.jy,this.ju,this.daiEnabled)};
g.k.qa=function(){g.Za(this.j);this.j=null;g.dE.prototype.qa.call(this)};KCa.prototype.create=function(a){return(a.u instanceof qN?this.B:""===a.D?this.j:this.u)(a)};g.w($O,HB);var RCa=new IB("screen-created",$O),fP=[],PCa=WCa,gP=0;var Ncb=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,32276,76278,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,177957,171243,160789,171244,171241,171245,171242,177958,177565,175492,175493,175494,175495,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,68728,80353,80356,
74610,45707,83962,83970,46713,166591,89711,74612,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,88E3,139580,93253,93254,94387,94388,93255,97424,72502,110111,76019,117092,117093,89431,110466,77240,60508,148123,148124,137401,137402,137046,73393,113534,92098,131381,84517,83759,162711,162712,80357,86113,72598,168413,72733,107349,124275,118203,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,
144507,143247,175994,156652,143248,143249,143250,143251,156653,144401,117431,133797,153964,128572,133405,117429,117430,177950,174734,177951,117432,173996,173995,174953,173994,173997,120080,117259,178546,156655,156654,121692,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,133624,146477,133623,133622,133621,84774,160801,95117,172721,150497,98930,98931,98932,153320,153321,43347,129889,
149123,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,22110,29433,133798,132295,120541,82047,113550,75836,75837,42352,84512,76065,75989,51879,16623,32594,27240,32633,74858,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,46220,11721,147994,49954,96369,3854,151633,56251,159108,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,109512,22256,14115,22696,89278,
89277,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,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,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,
39299,38696,62520,36382,108701,50663,36387,14908,37533,105443,61635,62274,161670,133818,65702,65703,65701,76256,166382,37671,49953,179556,36216,28237,173718,39553,29222,26107,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,74723,44098,173689,44099,23528,61699,134104,134103,59149,173191,173192,173193,101951,171502,97346,118051,95102,64882,119505,63595,63349,95101,75240,27039,68823,21537,83464,75707,170215,83113,101952,101953,79610,125755,24402,24400,32925,57173,156421,122502,145268,138480,
64423,64424,33986,100828,129089,21409,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,146143,63648,63649,111059,5754,20445,151308,151152,130975,130976,167637,110386,113746,66557,17310,28631,21589,164817,168011,154946,68012,162617,60480,138664,141121,164502,31571,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,4724,59369,43927,43928,12924,100355,56219,
27669,10337,47896,122629,139723,139722,121258,107598,127991,96639,107536,130169,96661,145188,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,163566,147842,104443,96659,147595,106442,162776,134840,63667,63668,63669,130686,147036,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,31961,26388,23811,5E4,126250,96370,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,68314,25602,100339,170873,
143516,178921,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,53969,8213,93926,102852,110099,22678,69076,137575,139224,100856,154430,17736,3832,147111,55759,64031,93044,93045,170701,170702,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,161612,161614,82039];lP.prototype.Bt=function(a){this.client=a};
lP.prototype.j=function(){this.clear();this.csn=g.FE()};
lP.prototype.clear=function(){this.B.clear();this.u.clear();this.C.clear();this.csn=null};nP.prototype.Bt=function(a){g.my(mP().Bt).bind(mP())(a)};
nP.prototype.clear=function(){g.my(mP().clear).bind(mP())()};g.k=oP.prototype;g.k.Bt=function(a){this.client=a};
g.k.fL=function(a,b){var c=this;b=void 0===b?{}:b;g.my(function(){var d,e=null==(d=g.K(null==a?void 0:a.commandMetadata,g.q3))?void 0:d.rootVe;if(e){d=g.K(null==a?void 0:a.commandMetadata,tbb);if(null==d?0:d.parentTrackingParams){var f=g.BE(d.parentTrackingParams);if(d.parentCsn)var h=d.parentCsn}else b.UK?f=b.UK:a.clickTrackingParams&&(f=g.BE(a.clickTrackingParams));b=Object.assign({},{cttAuthInfo:NCa(a),parentCsn:h},b);if(g.gy("expectation_logging")){var l;b.loggingExpectations=(null==(l=g.K(null==
a?void 0:a.commandMetadata,qab))?void 0:l.loggingExpectations)||void 0}c.wk(e,f,b)}else g.DD(new g.bA("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.wk=function(a,b,c){var d=this;c=void 0===c?{}:c;g.my(function(){Ncb.includes(a)||(g.DD(new g.bA("createClientScreen() called with a non-page VE",a)),a=83769);c.isHistoryNavigation||(d.oa=[],d.j.push({rootVe:a,key:c.key||""}));d.J=[];d.T=[];c.qB?aDa(d,a,b,c):$Ca(d,a,b,c)})()};
g.k.iM=function(a,b){var c=this;b=void 0===b?0:b;g.my(function(){a.then(function(d){c.u.has(b)&&c.C&&c.C();var e=g.FE(b),f=g.EE(b);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.bP(c.client,e,f,g.BE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.bP(c.client,e,f,g.BE(d.playerResponse.trackingParams))}})})()};
g.k.eq=function(a){var b=this;g.my(function(){var c=g.BE(a);b.fq(c);return c})()};
g.k.fq=function(a,b,c){var d=this;c=void 0===c?0:c;g.my(function(){if(d.u.has(c))return d.J.push([a,b]),!0;var e=g.FE(c),f=b||g.EE(c);if(e&&f){if(g.gy("combine_ve_grafts")){var h=d.B.get(f.toString());h?h.push(a):(d.I.set(f.toString(),f),d.B.set(f.toString(),[a]));d.Z||(d.Z=g.gA(0,function(){bDa(d,e)},1200))}else g.bP(d.client,e,f,a);
return!0}return!1})()};
g.k.TK=function(a,b,c){if(!a)return!1;c=g.FE(void 0===c?0:c);if(!c)return!1;eP(this.client,c,g.BE(a),b);return!0};
g.k.clickCommand=function(a,b,c){return this.TK(a.clickTrackingParams,b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.u.has(c)?this.T.push([a,b]):ZCa(this,a,b,c)};g.k=qP.prototype;g.k.Bt=function(a){this.client=a};
g.k.fL=function(a,b){var c=this;b=void 0===b?{}:b;g.my(function(){var d,e=null==(d=g.K(null==a?void 0:a.commandMetadata,g.q3))?void 0:d.rootVe;if(e){d=g.K(null==a?void 0:a.commandMetadata,tbb);if(null==d?0:d.parentTrackingParams){var f=g.BE(d.parentTrackingParams);if(d.parentCsn)var h=d.parentCsn}else b.UK?f=b.UK:a.clickTrackingParams&&(f=g.BE(a.clickTrackingParams));b=Object.assign({},{cttAuthInfo:NCa(a),parentCsn:h},b);if(g.gy("expectation_logging")){var l;b.loggingExpectations=(null==(l=g.K(null==
a?void 0:a.commandMetadata,qab))?void 0:l.loggingExpectations)||void 0}c.wk(e,f,b)}else g.DD(new g.bA("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.wk=function(a,b,c){var d=this;c=void 0===c?{}:c;g.my(function(){Ncb.includes(a)||(g.DD(new g.bA("createClientScreen() called with a non-page VE",a)),a=83769);c.isHistoryNavigation||(d.oa=[],d.j.push({rootVe:a,key:c.key||""}));d.J=[];d.T=[];c.qB?fDa(d,a,b,c):eDa(d,a,b,c)})()};
g.k.iM=function(a,b){var c=this;b=void 0===b?0:b;g.my(function(){a.then(function(d){c.u.has(b)&&c.C&&c.C();var e=g.FE(b),f=g.EE(b);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.bP(c.client,e,f,g.BE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.bP(c.client,e,f,g.BE(d.playerResponse.trackingParams))}})})()};
g.k.eq=function(a){var b=this;g.my(function(){var c=g.BE(a);b.fq(c);return c})()};
g.k.fq=function(a,b,c){var d=this;c=void 0===c?0:c;g.my(function(){if(d.u.has(c))return d.J.push([a,b]),!0;var e=g.FE(c),f=b||g.EE(c);if(e&&f){if(g.gy("combine_ve_grafts")){var h=d.B.get(f.toString());h?h.push(a):(d.I.set(f.toString(),f),d.B.set(f.toString(),[a]));d.Z||(d.Z=g.gA(0,function(){gDa(d,e)},1200))}else g.bP(d.client,e,f,a);
return!0}return!1})()};
g.k.TK=function(a,b,c){if(!a)return!1;c=g.FE(void 0===c?0:c);if(!c)return!1;eP(this.client,c,g.BE(a),b);return!0};
g.k.clickCommand=function(a,b,c){return this.TK(a.clickTrackingParams,b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.u.has(c)?this.T.push([a,b]):dDa(this,a,b,c)};var iDa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);rP.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Ro.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
rP.prototype.replace=function(a,b){a=g.t(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];kDa(this,b)};var Ocb=window.location.hostname.split(".").slice(-2).join("."),b4;tP.getInstance=function(){b4=g.Ga("yt.clientLocationService.instance");b4||(b4=new tP,g.Fa("yt.clientLocationService.instance",b4));return b4};
g.k=tP.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.ey("INNERTUBE_CLIENT_NAME")?(this.localStorage=sP(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.Ry("YT_CL",JSON.stringify({loctok:a}),15552E3,Ocb,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=sP(this))&&this.localStorage.remove("yt-location-playability-token"):g.Ty("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.ey("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};var wP;g.w(vP,Tz);vP.prototype.JB=function(a,b){a=Tz.prototype.JB.call(this,a,b);return Object.assign({},a,this.dw)};var xDa=/[&\?]action_proxy=1/,wDa=/[&\?]token=([\w-]*)/,yDa=/[&\?]video_id=([\w-]*)/,zDa=/[&\?]index=([\d-]*)/,ADa=/[&\?]m_pos_ms=([\d-]*)/,DDa=/[&\?]vvt=([\w-]*)/,rDa="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(" "),BDa="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(" "),tDa={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"},uDa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},CDa={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};zP.prototype.fz=function(a){this.player.Oh().tick(a)};
zP.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return BP(this,a,b);var d=1===this.j;d&&this.fz("a_bid_s");var e=mDa();if(null!==e)return d&&this.fz("a_bid_f"),BP(this,a,b,e);e=nDa();d&&Yf(e,function(){c.fz("a_bid_f")});
return e.then(function(f){return BP(c,a,b,f)})};
zP.prototype.reset=function(){this.u=this.j=1};g.w(CP,g.dE);g.k=CP.prototype;g.k.iR=function(){return this.j.j};
g.k.vJ=function(){return"AD_PLACEMENT_KIND_START"==this.j.j.j};
g.k.jR=function(){return zN(this.j)};
g.k.fv=function(){return!1};
g.k.uJ=function(){return!1};
g.k.onAdUxClicked=function(){};
g.k.iU=function(a){var b=this;GD("Fetching logic is still in use while live midroll is on PACF");if(1!==this.j.B&&2!==this.j.B){var c=[];this.vJ()||(c=kCa(a));this.j.B=1;Yf(this.C.fetch(this.j.D,{nB:this.j.C||void 0,me:this.j.j}).then(function(d){if(!b.isDisposed()){var e=c;b.D.isFullscreen();d=EDa(b,d);var f=b.B;f.j&&d.Bf&&oCa("DAI_ERROR_TYPE_NO_AD_BREAK_RENDERER",f.u);d.aV||(b.j.B=2,(new vO(b.u)).Ch(e),d.Bf||yC(b.I,d.qo))}},function(){(new vO(b.u)).Ch(c);
var d=b.B;d.j&&oCa("DAI_ERROR_TYPE_AD_REQUEST_FAIL",d.u)}),function(){2!==b.j.B&&(b.j.B=0);
b.vJ()&&UP(b.u)})}};
g.k.kR=function(){};
g.k.QP=function(){};g.w(FDa,bN);var IDa=Object.freeze([$N,cO,yN,FDa,pN]);g.w(DP,VO);g.k=DP.prototype;g.k.HT=function(){for(var a=this.B.j,b=g.t(a),c=b.next();!c.done;c=b.next());return a};
g.k.XU=function(){return(0>=this.C?this.B.j:this.B.j.slice(this.C)).some(function(){return!0})};
g.k.DC=function(){return this.I instanceof pN||this.I instanceof cO};
g.k.QW=function(){this.daiEnabled?cN(this.F)&&ECa(this):HDa(this)};
g.k.RA=function(a){var b=GDa(a);this.I&&b&&this.T!==b&&(b?yEa(this.wi):AEa(this.wi),this.T=b);this.I=a;this.daiEnabled&&(this.C=this.B.j.findIndex(function(c){return c===a}));
VO.prototype.RA.call(this,a)};
g.k.dN=function(a){var b=this;VO.prototype.dN.call(this,a);a.subscribe("adnotifyexitednormalorerror",function(){return void ZO(b)})};
g.k.Sr=function(){this.C=this.B.j.length;this.j&&this.j.kh("adended");ZO(this)};
g.k.sy=function(){this.onAdEnd()};
g.k.onAdEnd=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.daiEnabled||(this.Yl(0),a?ZO(this,b):HDa(this))};
g.k.RV=function(){if(1==this.B.u)this.I instanceof dO&&g.DD(Error("AdNotify error with FailureMode.TERMINATING")),ZO(this);else this.onAdEnd()};
g.k.YF=function(){var a=0>=this.C?this.B.j:this.B.j.slice(this.C);return 0<a.length?a[0]:null};
g.k.fv=function(){return this.T};
g.k.uJ=function(){return this.B.j.every(function(){return!1})};
g.k.reset=function(){return new DP(this.wi,this.F,this.D.reset(),this.u,this.Lp,this.jy,this.ju,this.daiEnabled)};
g.k.FT=function(){return this.C};
g.k.GT=function(){return this.B.j.length};JDa.prototype.DT=function(){return this.j};g.w(KDa,qN);g.w(MDa,qN);NDa.prototype.create=function(a,b){function c(h){return new pN(h,d.B,b,d.j,d.u)}
var d=this,e=a.instreamVideoAdRenderer,f=a.sandwichedLinearAdRenderer;a=a.linearAdSequenceRenderer;return null!=e&&e.playerVars?c(e):null!=f?new MDa(f,c,this.j):null!=a?new KDa(a,c):null};ODa.prototype.create=function(a,b,c,d){d=void 0===d?null:d;var e=[];c=void 0===c?0:c;if(d){d=g.t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var h=b,l=new Csa(h.u,h.Mu,h.daiEnabled,h.B),m=h.jf;m&&(l.jf=new PD(m.startSecs,m.Sg,m.context,m.identifier,m.event,m.j));h.j&&(l.j=h.j);l.visible=h.visible;h=l;h.jf=f;e.push(PDa(this,a[0],c,h));c++}}else for(a=g.t(a),d=a.next();!d.done;d=a.next())e.push(PDa(this,d.value,c,b)),c++;return e};g.w(IP,g.C);IP.prototype.addEventListener=function(a,b){this.j=b};
IP.prototype.removeEventListener=function(){this.j=null};
g.w(JP,g.C);JP.prototype.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};
JP.prototype.removeEventListener=function(a,b){this.j.removeEventListener(a,b)};g.w(SDa,g.C);var KP=null,LP=null,MP=null,NP=null;g.Fa("yt.www.ads.eventcache.getLastCompanionData",function(){return KP});
g.Fa("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Fa("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return LP});
g.Fa("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return MP});
g.Fa("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return NP});var eEa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.w(QP,g.C);QP.prototype.qa=function(){this.rf.clear();g.C.prototype.qa.call(this)};
QP.prototype.Hg=function(a,b,c){a=void 0===a?[]:a;b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a=g.t(a);for(var d=a.next();!d.done;d=a.next())this.executeCommand(d.value,b,c)};
QP.prototype.executeCommand=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.isDisposed();a.loggingUrls&&fEa(this,"loggingUrls",a.loggingUrls,b,c);a=g.t(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;"openPopupAction"===d?bEa(this,e):"confirmDialogEndpoint"===d?cEa(this,e):eEa.hasOwnProperty(d)||fEa(this,d,e,b,c)}};g.w(SP,xO);g.k=SP.prototype;g.k.Px=function(){};
g.k.mI=function(){};
g.k.uP=function(){};
g.k.aA=function(){};
g.k.bP=function(){};
g.k.reset=function(){return new SP(this.F)};g.w(kEa,g.C);g.w(TP,g.dE);g.k=TP.prototype;g.k.rM=function(){return!tEa(this,wEa(this))};
g.k.GB=function(){return this.Ga};
g.k.qa=function(){this.oa=!0;g.Lz(this.C);if(dN(this.j)){var a=nEa(this.j);a.removeEventListener("updateKevlarOrC3Companion",TDa);a.removeEventListener("updateEngagementPanelAction",UDa);a.removeEventListener("changeEngagementPanelVisibility",VDa);window.removeEventListener("yt-navigate-start",WDa);NP=MP=LP=KP=null}a=g.t(this.B.values());for(var b=a.next();!b.done;b=a.next())zEa(this,b.value);YO(this,!1);this.mu.clear();this.ea=[];this.J.clear();g.Za(this.Z);this.Z=new Map;g.Za(this.I);this.I=new Map;
this.B.clear();g.dE.prototype.qa.call(this)};
g.k.IN=function(a){if(a instanceof aE&&!a.u&&(!Qsa(a)||a.contains(1E3*this.j.getCurrentTime(1)||0)))if(g.S(this.j.Cb(1),32))this.J.add(a);else{var b=this.B.get(a);b&&((this.j.V().experiments.ob("enable_eviction_protection_for_bulleit")?this.u?this.u.uJ():1:1)?b.iU(a):a.u=!0)}};
g.k.R5=function(a){a instanceof aE&&(a.u&&(a.u=!1),this.J.delete(a))};
g.k.YN=function(){};
g.k.fW=function(a){var b=1E3*a;this.u&&this.u.QP(b);for(var c=g.t(this.B.values()),d=c.next();!d.done;d=c.next())d.value.QP(b);g.Nb(this.La.j,1E3*a)};
g.k.bp=function(a){switch(a){case "control_play":this.u&&(a=this.u,a.DC()&&a.F.Rc().playVideo());break;case "control_pause":this.u&&(a=this.u,a.DC()&&a.F.Rc().pauseVideo())}};
g.k.T_=function(a){this.u&&this.u.yd(a)};
g.k.z5=function(a){0>XN(a,16)&&(this.J.forEach(this.IN,this),this.J.clear())};
g.k.Q7=function(){if(this.u)this.u.onVideoDataChange()};
g.k.T7=function(){if(cN(this.j)&&this.u){var a=this.j.getCurrentTime(2,!1),b=this.u;b.j&&UBa(b.j,a)}};
g.k.b5=function(){this.Xa=!0;if(this.u){var a=this.u;a.j&&a.j.Ko()}};
g.k.n5=function(a){if(this.u)this.u.onAdUxClicked(a)};
g.k.U7=function(){if(2==this.j.getPresentingPlayerType()&&this.u){var a=this.u.j,b=a.Za,c=a.F.isMuted();b.daiEnabled||MN(b,c?"mute":"unmute");a.B||(b=a.F.isMuted(),MN(a.Za,b?"unmuted_mute":"unmuted_unmute"))}};
g.k.a6=function(a){if(this.u){var b=this.u.j,c=b.Za;KN(c)||RN(c,a?"fullscreen":"end_fullscreen");b.B||(b=b.Za,KN(b)||RN(b,a?"unmuted_fullscreen":"unmuted_end_fullscreen"))}};
g.k.Ch=function(a,b){GD("removeCueRanges called in AdService");this.j.Ch(a,b);a=g.t(a);for(b=a.next();!b.done;b=a.next())b=b.value,this.mu.delete(b),this.B.delete(b)};
g.k.M9=function(){for(var a=[],b=g.t(this.mu),c=b.next();!c.done;c=b.next())c=c.value,bE(c)||a.push(c);this.j.WP(a,1)};
g.k.Yl=function(a){this.j.Yl(a);switch(a){case 1:this.qG=1;break;case 0:this.qG=0}};
g.k.qP=function(){var a=this.j.getVideoData(2);return a&&a.isListed&&!this.T?(GD("showInfoBarDuring Ad returns true"),!0):!1};
g.k.sy=function(){this.u&&this.u.fv()&&(GD("Active Bulleit Coordinator for endLinearAd"),this.u.sy())};
g.k.Sr=function(){this.u&&this.u.fv()&&(GD("Active Bulleit Coordinator for endLinearAdPlacement"),this.u.Sr())};
g.k.yc=function(a){if(this.u){var b=this.u;b.j&&UBa(b.j,a)}};
g.k.executeCommand=function(a,b,c){var d=this.tb,e=d.executeCommand;if(c=void 0===c?null:c){var f=!!this.u&&this.u||null;f?(f=f.j,c=f.ad.D()?ON(f.Za,c):{}):c={}}else c={};e.call(d,a,b,c)};
g.k.isDaiEnabled=function(){return!1};
g.k.DT=function(){return this.Aa};
g.k.ET=function(){return this.Ja};g.w(WP,g.C);WP.prototype.append=function(a){if(!this.u)throw Error("This does not support the append operation");a=a.ub();this.ub().appendChild(a)};
g.w(XP,WP);XP.prototype.ub=function(){return this.j};g.w(CEa,g.C);var qSa=16/9,Pcb=[.25,.5,.75,1,1.25,1.5,1.75,2],Qcb=Pcb.concat([3,4,5,6,7,8,9,10,15]);var EEa=1;g.w(g.ZP,g.C);g.k=g.ZP.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.G;var c=a.N,d=a.Ia;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.G);g.HK&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.qf(a.G);if(c){if(c=$P(this,e,"class",c))aQ(this,e,"class",c),this.Pb[c]=e}else if(d){c=g.t(d);for(var f=c.next();!f.done;f=c.next())this.Pb[f.value]=e;aQ(this,e,"class",d.join(" "))}d=a.ra;c=a.W;if(d)b=$P(this,e,"child",d),void 0!==b&&e.appendChild(g.rf(b));else if(c)for(d=0,c=g.t(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=$P(this,e,"child",f),null!=f&&e.appendChild(g.rf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.xc&&(h=YP(),f.id=h,f=document.createElementNS("http://www.w3.org/2000/svg","use"),f.setAttribute("class","ytp-svg-shadow"),f.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+h),g.wf(e,f,d++))}if(a=a.X)for(b=e,d=g.t(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],aQ(this,b,c,"string"===typeof f?
$P(this,b,c,f):f);return e};
g.k.Da=function(a){return this.Pb[a]};
g.k.Ea=function(a,b){"number"===typeof b?g.wf(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.xf(this.element)};
g.k.update=function(a){for(var b=g.t(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.Nd["{{"+a+"}}"])&&aQ(this,a[0],a[1],b)};
g.k.qa=function(){this.Pb={};this.Nd={};this.detach();g.C.prototype.qa.call(this)};g.w(g.U,g.ZP);g.k=g.U.prototype;g.k.ge=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.yb||(g.Hm(this.element,"display",""),this.yb=!0)};
g.k.hide=function(){this.yb&&(g.Hm(this.element,"display","none"),this.yb=!1)};
g.k.Zb=function(a){this.ea=a};
g.k.Ra=function(a,b,c){return this.S(this.element,a,b,c)};
g.k.S=function(a,b,c,d){c=(0,g.Oa)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Hc=function(a){var b=this;this.listeners.forEach(function(c,d){c===a&&(c=b.listeners.splice(d,1)[0],c.target.removeEventListener(c.type,c.listener))})};
g.k.focus=function(){var a=this.element;Bf(a);a.focus()};
g.k.qa=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.ZP.prototype.qa.call(this)};g.w(g.dQ,g.U);g.dQ.prototype.subscribe=function(a,b,c){return this.La.subscribe(a,b,c)};
g.dQ.prototype.unsubscribe=function(a,b,c){return this.La.unsubscribe(a,b,c)};
g.dQ.prototype.Gh=function(a){return this.La.Gh(a)};
g.dQ.prototype.ma=function(a){return this.La.ma.apply(this.La,[a].concat(g.u(g.ya.apply(1,arguments))))};var Rcb=new WeakSet;g.w(eQ,g.dQ);g.k=eQ.prototype;g.k.bind=function(a){this.Xa||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Xa=a;this.element.setAttribute("id",this.Xa);this.kb&&g.Qp(this.element,this.kb);this.T=b&&b.adRendererCommands;this.macros=c;this.I=b.trackingParams||null;null!=this.I&&this.Zf(this.element,this.I)};
g.k.clear=function(){};
g.k.hide=function(){g.dQ.prototype.hide.call(this);null!=this.I&&this.Ua(this.element,!1)};
g.k.show=function(){g.dQ.prototype.show.call(this);if(!this.tb){this.tb=!0;var a=this.T&&this.T.impressionCommand;a&&this.WO(a)}null!=this.I&&this.Ua(this.element,!0)};
g.k.onClick=function(a){if(this.I&&!Rcb.has(a)){var b=this.element;this.api.Dk(b)&&this.yb&&this.api.qb(b,this.interactionLoggingClientData);Rcb.add(a)}if(a=this.T&&this.T.clickCommand)a=this.bX(a),this.WO(a)};
g.k.bX=function(a){return a};
g.k.W_=function(a){var b=this.oa;b.J=!0;b.u=a.touches.length;b.j.isActive()&&(b.j.stop(),b.D=!0);a=a.touches;b.I=DEa(b,a)||1!=a.length;var c=a.item(0);b.I||!c?(b.T=Infinity,b.ea=Infinity):(b.T=c.clientX,b.ea=c.clientY);for(c=b.B.length=0;c<a.length;c++){var d=a.item(c);b.B.push(d.identifier)}};
g.k.V_=function(a){var b=this.oa;a=a.changedTouches.item(0);if(Cc()&&!(0<=g.ec(Vaa(),8))||a&&Math.pow(a.clientX-b.T,2)+Math.pow(a.clientY-b.ea,2)>Math.pow(5,2))b.C=!0};
g.k.U_=function(a){if(this.oa){var b=this.oa,c=a.changedTouches;c&&b.J&&1==b.u&&!b.C&&!b.D&&!b.I&&DEa(b,c)&&(b.Z=a,b.j.start());b.u=a.touches.length;0===b.u&&(b.J=!1,b.C=!1,b.B.length=0);b.D=!1}};
g.k.WO=function(a){this.layoutId?this.rb.executeCommand(a,this.layoutId):g.CD(new g.bA("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
g.k.Zf=function(a,b){this.api.Zf(a,this);this.api.og(a,b)};
g.k.Ua=function(a,b){this.api.Dk(a)&&this.api.Ua(a,b,this.interactionLoggingClientData)};
g.k.qa=function(){this.clear(null);this.Hc(this.ib);for(var a=g.t(this.ya),b=a.next();!b.done;b=a.next())this.Hc(b.value);g.dQ.prototype.qa.call(this)};g.w(vQ,eQ);
vQ.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.DD(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.Qp(this.element,a);null!=b.text&&(a=g.gE(b.text),g.Tb(a)||(this.element.setAttribute("aria-label",a),this.B=new g.dQ({G:"span",N:"ytp-ad-button-text",ra:a}),g.E(this,this.B),this.B.Ea(this.element)));this.api.V().K("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.Tb(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=uQ(b.icon),null!=b&&(this.u=new g.dQ({G:"span",N:"ytp-ad-button-icon",W:[b]}),g.E(this,this.u)),this.C?g.wf(this.element,this.u.element,0):this.u.Ea(this.element))}};
vQ.prototype.clear=function(){this.hide()};
vQ.prototype.onClick=function(a){eQ.prototype.onClick.call(this,a);a=g.t(WEa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.CD(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.w(wQ,g.C);wQ.prototype.qa=function(){this.u&&g.Fz(this.u);this.j.clear();xQ=null;g.C.prototype.qa.call(this)};
wQ.prototype.register=function(a,b){b&&this.j.set(a,b)};
var xQ=null;g.w(zQ,eQ);
zQ.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.K(b.button,g.mM)||null;null==b?g.CD(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),g.E(this,this.button),this.button.init(fN("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.gE(a)),this.button.Ea(this.element),this.D&&!g.Pp(this.button.element,"ytp-ad-clickable")&&g.Qp(this.button.element,
"ytp-ad-clickable"),a&&(this.u=new g.dQ({G:"div",N:"ytp-ad-hover-text-container"}),this.C&&(b=new g.dQ({G:"div",N:"ytp-ad-hover-text-callout"}),b.Ea(this.u.element),g.E(this,b)),g.E(this,this.u),this.u.Ea(this.element),b=yQ(a),g.wf(this.u.element,b,0)),this.show())};
zQ.prototype.hide=function(){this.button&&this.button.hide();this.u&&this.u.hide();eQ.prototype.hide.call(this)};
zQ.prototype.show=function(){this.button&&this.button.show();eQ.prototype.show.call(this)};g.w(BQ,eQ);
BQ.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&AQ(a)||"";g.Tb(c)?.01>Math.random()&&g.DD(Error("Found AdImage without valid image URL")):(this.j?g.Hm(this.element,"backgroundImage","url("+c+")"):lf(this.element,{src:c}),lf(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())};
BQ.prototype.clear=function(){this.hide()};g.w(CQ,eQ);g.k=CQ.prototype;g.k.hide=function(){eQ.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.B=document.activeElement;eQ.prototype.show.call(this);this.C.focus()};
g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.u=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.CD(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.CD(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$Ea(this,b):g.CD(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.Lz(this.j);this.hide()};
g.k.FN=function(){this.hide()};
g.k.CJ=function(){var a=this.u.cancelEndpoint;a&&(this.layoutId?this.rb.executeCommand(a,this.layoutId):g.CD(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.GN=function(){var a=this.u.confirmNavigationEndpoint||this.u.confirmEndpoint;a&&(this.layoutId?this.rb.executeCommand(a,this.layoutId):g.CD(Error("Missing layoutId for confirm dialog.")));this.hide()};g.w(DQ,eQ);g.k=DQ.prototype;
g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.u=b;if(null==b.defaultText&&null==b.defaultIcon)g.CD(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.CD(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.Qp(this.B,a)}a={};b.defaultText?
(c=g.gE(b.defaultText),g.Tb(c)||(a.buttonText=c,this.j.setAttribute("aria-label",c))):g.Tm(this.Aa,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.Z.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=uQ(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.J=!0,c=uQ(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Tm(this.D,!0),g.Tm(this.C,!1)),g.Tm(this.j,!1)):g.Tm(this.Z,!1);g.hd(a)||this.update(a);
b.isToggled&&(g.Qp(this.B,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));EQ(this);this.S(this.element,"change",this.uR);this.show()}};
g.k.onClick=function(a){0<this.ya.length&&(this.toggleButton(!this.isToggled()),this.uR());eQ.prototype.onClick.call(this,a)};
g.k.uR=function(){g.Up(this.B,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.t(aFa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.CD(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);EQ(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Up(this.B,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;EQ(this)};
g.k.isToggled=function(){return this.j.checked};g.w(FQ,Jz);FQ.prototype.I=function(a){if(Array.isArray(a)){a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof cE&&this.C(b)}};g.w(GQ,eQ);g.k=GQ.prototype;g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.CD(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.DD(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.DD(Error("AdFeedbackRenderer.title was not set.")),eFa(this,b)):g.CD(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Hz(this.D);Hz(this.J);this.C.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.u&&this.u.hide();eQ.prototype.hide.call(this);this.B&&this.B.focus()};
g.k.show=function(){this.j&&this.j.show();this.u&&this.u.show();this.B=document.activeElement;eQ.prototype.show.call(this);this.D.focus()};
g.k.aW=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.ma("a");this.hide()};
g.k.P7=function(){this.hide()};
HQ.prototype.ub=function(){return this.j.element};
HQ.prototype.isChecked=function(){return this.B.checked};g.w(IQ,CQ);IQ.prototype.FN=function(a){CQ.prototype.FN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
IQ.prototype.CJ=function(a){CQ.prototype.CJ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
IQ.prototype.GN=function(a){CQ.prototype.GN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.ma("b")};g.w(JQ,eQ);g.k=JQ.prototype;
g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.D=b;if(null==b.dialogMessage&&null==b.title)g.CD(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.DD(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.K(b.closeOverlayRenderer,g.mM)||null)this.j=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.E(this,this.j),this.j.init(fN("button"),a,this.macros),this.j.Ea(this.element);b.title&&(a=g.gE(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=yQ(a[c]);if(!g.Tb(d.textContent)){var e=pf("LI");e.appendChild(d);this.Ga.appendChild(e)}}else g.Tm(this.Ga,!1);b.dialogMessage&&(a=yQ(b.dialogMessage,!0),this.Qa.appendChild(a));b.confirmLabel&&(a=g.gE(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.K(b.muteAdRenderer,g.mM)||null)&&
(a=b.navigationEndpoint&&g.K(b.navigationEndpoint,ibb)||null,c=b.navigationEndpoint&&g.K(b.navigationEndpoint,U$a)||null,null==a&&null==c?g.DD(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?fFa(this,a):c&&gFa(this,c),this.B=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-info-dialog-mute-button"],"button",!0),g.E(this,this.B),this.B.init(fN("button"),b,this.macros),this.B.Ra("click",
this.u6,this),this.B.Ea(this.Ya)));hFa(this)}};
g.k.clear=function(){Hz(this.J);this.hide()};
g.k.hide=function(){this.u?this.u.hide():this.C&&this.C.hide();this.j&&this.j.hide();this.B&&this.B.hide();eQ.prototype.hide.call(this);this.Z&&this.Z.focus()};
g.k.show=function(){this.j&&this.j.show();this.B&&this.B.show();if(!this.Ja){for(var a=g.t(this.D&&this.D.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.CD(Error("Missing layoutId for ad info dialog."));this.Ja=!0}this.Z=document.activeElement;eQ.prototype.show.call(this);this.J.focus()};
g.k.vR=function(){if(this.D&&this.D.confirmServiceEndpoint){var a=this.D.confirmServiceEndpoint;this.layoutId?this.rb.executeCommand(a,this.layoutId):g.CD(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.ma("d");this.hide()};
g.k.u6=function(){var a=this.u?this.u:this.C;a&&!a.yb&&(this.hide(),a.show())};g.w(KQ,zQ);KQ.prototype.init=function(a,b,c){zQ.prototype.init.call(this,a,b,c);a=b.button&&g.K(b.button,g.mM)||null;null!=a&&(mFa(this,a,c),this.show())};
KQ.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();zQ.prototype.hide.call(this)};
KQ.prototype.show=function(){this.button&&this.button.show();zQ.prototype.show.call(this)};
KQ.prototype.clear=function(){this.hide()};g.w(LQ,eQ);
LQ.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Af(this.element,fQ(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?AQ(a):"",c=(c=this.api.getVideoData(1))&&c.Zn,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.Qe(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()};
LQ.prototype.isTemplated=function(){return this.j.isTemplated||!1};
LQ.prototype.clear=function(){this.hide()};var qFa={seekableStart:0,seekableEnd:1,current:0};g.w(NQ,eQ);NQ.prototype.clear=function(){this.dispose()};g.w(g.QQ,g.C);g.k=g.QQ.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.TE(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.yb||(RQ(this,!0),this.state=1,a?this.delay.start(a):this.TE()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.yb&&(RQ(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.TE=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:RQ(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();RQ(this,!1);this.state=5;this.delay.start(0);break;case 5:this.state=null,this.u&&this.u()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.TE()};
g.k.qa=function(){this.element.isDisposed()||this.element.element.removeAttribute("aria-hidden");g.C.prototype.qa.call(this)};g.w(SQ,NQ);g.k=SQ.prototype;
g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.CD(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.Ya&&g.Qp(this.u.element,"countdown-next-to-thumbnail");a=b.durationMilliseconds;this.Aa=null==a||0===a?this.j.Jl():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);this.B.init(fN("ad-text"),d,c);(d=this.api.getVideoData(1))&&
d.Zn&&b.thumbnail?this.C.init(fN("ad-image"),b.thumbnail,c):this.J.hide()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.u.hide();this.B.hide();this.C.hide();PQ(this);NQ.prototype.hide.call(this)};
g.k.show=function(){OQ(this);this.u.show();this.B.show();this.C.show();NQ.prototype.show.call(this)};
g.k.Vv=function(){this.hide()};
g.k.ut=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Ja&&a>=this.Aa?(this.Z.hide(),this.Ja=!0,this.ma("i")):this.B&&this.B.isTemplated()&&(a=Math.max(0,Math.ceil((this.Aa-a)/1E3)),a!=this.Qa&&(MQ(this.B,{TIME_REMAINING:String(a)}),this.Qa=a)))}};g.w(UQ,NQ);g.k=UQ.prototype;
g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.K(b.actionButton,g.mM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.Tb(g.Qe(e[0].url))&&(e[0].url=d.profilePicture)}else g.DD(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(fN("ad-image"),b.image,c);this.B.init(fN("ad-text"),
b.headline,c);this.J.init(fN("ad-text"),b.description,c);this.u.init(fN("button"),a,c);this.api.V().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&(c=Sa(),d=Fp(this.u.element),Ep(this.u.element,d+c));this.Z=a.navigationEndpoint;this.api.uG()||this.show();b.enableTwoLineHeadlines&&(this.B.element.classList.add("ytp-flyout-cta-headline-two-line"),this.Da("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-height"),this.Da("ytp-flyout-cta").classList.add("ytp-flyout-cta-body-height"),
this.Da("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-centered"),this.Da("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-centered"),this.Da("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-centered"));this.api.addEventListener("playerUnderlayVisibilityChange",this.wR.bind(this));this.Aa=b.startMs||0;OQ(this)}else g.CD(Error("FlyoutCtaRenderer has no valid action button."));else g.CD(Error("FlyoutCtaRenderer has no description AdText."));
else g.CD(Error("FlyoutCtaRenderer has no headline AdText."));else g.DD(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){NQ.prototype.onClick.call(this,a);this.api.pauseVideo();!g.zf(this.u.element,a.target)&&this.Z&&(this.layoutId?this.rb.executeCommand(this.Z,this.layoutId):g.CD(Error("Missing layoutId for flyout cta.")))};
g.k.ut=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.Aa&&(PQ(this),g.Sp(this.element,"ytp-flyout-cta-inactive"),this.u.element.removeAttribute("tabIndex"))}};
g.k.Vv=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.wR.bind(this))};
g.k.show=function(){this.u&&this.u.show();NQ.prototype.show.call(this)};
g.k.hide=function(){this.u&&this.u.hide();NQ.prototype.hide.call(this)};
g.k.wR=function(a){"hidden"==a?this.show():this.hide()};g.w(VQ,eQ);g.k=VQ.prototype;
g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.K(this.j.likeButton,u3),b=this.j.dislikeButton&&g.K(this.j.dislikeButton,u3),this.B.init(fN("toggle-button"),a,c),this.u.init(fN("toggle-button"),b,c),this.S(this.element,"change",this.xR),this.C.show(100),this.show(),c=g.t(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.rb.executeCommand(a,this.layoutId):g.CD(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.B.hide();this.u.hide();eQ.prototype.hide.call(this)};
g.k.show=function(){this.B.show();this.u.show();eQ.prototype.show.call(this)};
g.k.xR=function(){jla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.Na("onYtShowToast",this.j.postMessageAction);this.C.hide()};
g.k.onClick=function(a){0<this.ya.length&&this.xR();eQ.prototype.onClick.call(this,a)};g.w(WQ,g.C);g.k=WQ.prototype;g.k.qa=function(){this.reset();g.C.prototype.qa.call(this)};
g.k.reset=function(){g.Lz(this.C);this.I=!1;this.j&&this.j.stop();this.D.stop();this.u&&(this.u=!1,this.J.play())};
g.k.start=function(){this.reset();this.C.S(this.B,"mouseover",this.Y_,this);this.C.S(this.B,"mouseout",this.X_,this);this.j?this.j.start():(this.I=this.u=!0,g.Hm(this.B,{opacity:this.ea}))};
g.k.Y_=function(){this.u&&(this.u=!1,this.J.play());this.D.stop();this.j&&this.j.stop()};
g.k.X_=function(){this.I?this.D.start():this.j&&this.j.start()};
g.k.AS=function(){this.u||(this.u=!0,this.T.play(),this.I=!0)};g.w(XQ,NQ);g.k=XQ.prototype;
g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);this.J=b;this.Aa=oFa(this);if(!b||g.hd(b))g.CD(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.hd(b.message))g.CD(Error("SkipButtonRenderer.message was not specified or empty."));else{a={iconType:"SKIP_NEXT"};b=uQ(a);null==b?g.CD(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):(this.u=new g.dQ({G:"button",Ia:["ytp-ad-skip-button","ytp-button"],W:[{G:"span",N:"ytp-ad-skip-button-icon",
W:[b]}]}),g.E(this,this.u),this.u.Ea(this.C.element),this.B=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,"ytp-ad-skip-button-text"),this.B.init(fN("ad-text"),this.J.message,c),g.E(this,this.B),g.wf(this.u.element,this.B.element,0));var d=void 0===d?null:d;c=this.api.V();!(0<this.ya.length)&&c.u&&(cK?0:"ontouchstart"in document.documentElement&&(Dha()||Ql()))&&(this.Hc(this.ib),d&&this.Hc(d),this.ya=[this.S(this.element,"touchstart",this.W_,this),this.S(this.element,"touchmove",
this.V_,this),this.S(this.element,"touchend",this.U_,this)])}};
g.k.clear=function(){this.Z.reset();this.hide()};
g.k.hide=function(){this.C.hide();this.B&&this.B.hide();PQ(this);NQ.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.u){a&&Joa(a);NQ.prototype.onClick.call(this,a);if(this.api.V().K("fetch_bid_for_dclk_status")){var b;a={contentCpn:(null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)||""};qsa(xsa(),"i.s_",{pY:"sk",metadata:a})}this.ma("j");if(this.Ja||!this.Aa)this.api.onAdUxClicked(this.componentType,this.layoutId)}};
g.k.bX=function(a){if(!this.Ja)return this.Aa&&GD("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.K(a,g.YQ))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&nFa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Z.start();this.C.show();this.B&&this.B.show();OQ(this);NQ.prototype.show.call(this);this.Qa&&this.api.V().K("enable_skip_to_next_messaging")&&this.api.ma("showpromotooltip",this.element)};
g.k.Vv=function(){this.ma("k")};
g.k.ut=function(){};g.w(ZQ,NQ);g.k=ZQ.prototype;
g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.K(b.preskipRenderer,T0)||{};(a=g.hd(a)?null:a)?(this.J=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.u=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,"countdown_next_to_thumbnail"==sJ(this.api.V().experiments,"preskip_button_style_ads_backend")&&sK(this.api.V())),this.u.init(fN("preskip-component"),a,c),TQ(this.u),g.E(this,this.u),this.u.Ea(this.element)):
b.skipOffsetMilliseconds&&(this.J=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.K(b.skippableRenderer,S$a)||{};a=g.hd(a)?null:a;null==a?g.CD(Error("SkipButtonRenderer was not set in player response.")):(this.B=new XQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,this.Z),this.B.init(fN("skip-button"),a,c),g.E(this,this.B),this.B.Ea(this.element),this.api.V().experiments.ob("enable_skip_to_next_messaging")&&(b=g.Qe(b.targetId))&&(c=this.B,null!=c.u&&(c.Qa=!0,c.u.element.setAttribute("data-tooltip-target-id",
b),c.u.element.setAttribute("data-tooltip-target-fixed",""))),this.show())};
g.k.show=function(){this.C&&this.B?this.B.show():this.u&&this.u.show();OQ(this);NQ.prototype.show.call(this)};
g.k.Vv=function(){};
g.k.clear=function(){this.u&&this.u.clear();this.B&&this.B.clear();PQ(this);NQ.prototype.hide.call(this)};
g.k.hide=function(){this.u&&this.u.hide();this.B&&this.B.hide();PQ(this);NQ.prototype.hide.call(this)};
g.k.ut=function(){1E3*this.j.getProgressState().current>=this.J&&pFa(this,!0)};g.w($Q,vQ);$Q.prototype.init=function(a,b,c){vQ.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.gE(b.text),a=!g.Tb(a));a?null==b.navigationEndpoint?g.DD(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.DD(Error("Button style was not a link-style type in renderer,")):this.show():g.DD(Error("No visit advertiser text was present in the renderer."))};g.w(aR,eQ);aR.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);a=b.text;g.Tb(fQ(a))?g.DD(Error("SimpleAdBadgeRenderer has invalid or empty text")):(a&&a.text&&(b=a.text,this.j&&(b=this.api.V(),b=a.text+" "+(b&&b.u?"\u2022":"\u00b7")),b={text:b,isTemplated:a.isTemplated},a.style&&(b.style=a.style),a.targetId&&(b.targetId=a.targetId),a=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),a.init(fN("simple-ad-badge"),b,c),a.Ea(this.element),g.E(this,a)),this.show())};
aR.prototype.clear=function(){this.hide()};g.w(bR,gN);g.w(cR,g.dE);g.k=cR.prototype;g.k.Jl=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.ud.Hc(this.j)};
g.k.yc=function(a){this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.yd=function(a){g.YN(a,2)&&this.ma("g")};g.w(dR,g.dE);g.k=dR.prototype;g.k.Jl=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.timer.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.timer.stop())};
g.k.yc=function(){this.Mi+=100;var a=!1;this.Mi>this.durationMs&&(this.Mi=this.durationMs,this.timer.stop(),a=!0);this.u={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Mi/1E3};this.xe&&this.xe.yc(this.u.current);this.ma("h");a&&this.ma("g")};
g.k.getProgressState=function(){return this.u};g.w(gR,NQ);g.k=gR.prototype;g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.DD(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.u=new LQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb);this.u.init(fN("ad-text"),a,{});this.u.Ea(this.element);g.E(this,this.u)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){PQ(this);NQ.prototype.hide.call(this)};
g.k.Vv=function(){this.hide()};
g.k.ut=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.u&&(a=(this.j instanceof cR?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof dR?a.seekableEnd:this.api.getDuration(2,!1))-a.current,MQ(this.u,{FORMATTED_AD_DURATION_REMAINING:String(g.eR(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){OQ(this);NQ.prototype.show.call(this)};g.w(hR,LQ);hR.prototype.onClick=function(a){LQ.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.w(kR,g.dQ);kR.prototype.yc=function(){var a=this.u.getProgressState();this.Kc.style.width=100*jR(new iR(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
kR.prototype.onStateChange=function(){g.mK(this.api.V())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.u.subscribe("h",this.yc,this),this.yc()):-1!==this.j&&(this.hide(),this.u.Gh(this.j),this.j=-1))};g.w(lR,eQ);
lR.prototype.init=function(a,b,c,d){eQ.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.K(c,R0),c=g.K(c,T0),a?(c=new ZQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,this.J),c.Ea(this.D),c.init(fN("skip-button"),a,this.macros),g.E(this,c)):c&&(a=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,!1),a.Ea(this.D),a.init(fN("ad-preview"),c,this.macros),TQ(a),g.E(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new VQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),c.Ea(this.Z),c.init(fN("instream-user-sentiment"),a,this.macros),g.E(this,c));if(a=g.K(b,L$a))if(a=g.K(a,L$a))c=new UQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j),g.E(this,c),c.Ea(this.C),c.init(fN("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Ad",isTemplated:!1}}),c=new aR(this.api,this.layoutId,
this.interactionLoggingClientData,this.rb,!0),g.E(this,c),c.Ea(this.u),c.init(fN("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new gR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,d),g.E(this,d),d.Ea(this.u),d.init(fN("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.K(b.adInfoRenderer,
S0))&&(a=new KQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.element),g.E(this,a),a.Ea(this.u),a.init(fN("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.K(b.visitAdvertiserRenderer,g.mM))&&(a=sFa(this)&&this.B?this.B:this.u)&&(b=new $Q(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),g.E(this,b),b.Ea(a),b.init(fN("visit-advertiser"),d,this.macros),this.api.V().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&(Cp(b.element),
d=Sa(),a=Fp(b.element),Ep(b.element,a+d)));(b=this.api.V())&&!g.kK(b)&&"3"==b.controlsType&&(b=new kR(this.api,this.j),b.Ea(this.Aa),g.E(this,b));this.api.V().K("enable_updated_html5_player_focus_style")&&g.Qp(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()};
lR.prototype.clear=function(){this.hide()};var c4={},xFa=(c4.WEB_UNPLUGGED="^unplugged/",c4.WEB_UNPLUGGED_ONBOARDING="^unplugged/",c4.WEB_UNPLUGGED_OPS="^unplugged/",c4.WEB_UNPLUGGED_PUBLIC="^unplugged/",c4.WEB_CREATOR="^creator/",c4.WEB_KIDS="^kids/",c4.WEB_EXPERIMENTS="^experiments/",c4.WEB_MUSIC="^music/",c4.WEB_REMIX="^music/",c4.WEB_MUSIC_EMBEDDED_PLAYER="^music/",c4.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",c4);qR.prototype.D=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?GB:c;var d={context:g.uP(a.clickTrackingParams,!1,this.C)};var e=this.j(a);if(e){this.u(d,e,b);var f;b=g.pR(this.B());(e=null==(f=g.K(a.commandMetadata,g.q3))?void 0:f.apiUrl)&&(b=e);f=foa(Uy(b));a=Object.assign({},{command:a},void 0);d={input:f,xt:Vy(f),Ro:d,config:a};d.config.wu?d.config.wu.identity=c:d.config.wu={identity:c};return d}g.CD(new g.bA("Error: Failed to create Request from Command.",a))};
g.ca.Object.defineProperties(qR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!1}}});g.w(rR,qR);rR.prototype.D=function(){return{input:"/getDatasyncIdsEndpoint",xt:Vy("/getDatasyncIdsEndpoint","GET"),Ro:{}}};
rR.prototype.B=function(){return[]};
rR.prototype.j=function(){};
rR.prototype.u=function(){};var Scb={},zFa=(Scb.GET_DATASYNC_IDS=oR(rR),Scb);var EFa="tokens consistency mss client_location entities response_received_commands store PLAYER_PRELOAD".split(" "),GFa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse"];var JFa=new OC("INNERTUBE_TRANSPORT_TOKEN");g.w(uR,qR);uR.prototype.B=function(){return Hbb};
uR.prototype.j=function(a){return g.K(a,xbb)||void 0};
uR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.ca.Object.defineProperties(uR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(vR,qR);vR.prototype.B=function(){return Ibb};
vR.prototype.j=function(a){return g.K(a,vbb)||void 0};
vR.prototype.u=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ca.Object.defineProperties(vR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(wR,qR);wR.prototype.B=function(){return Ebb};
wR.prototype.j=function(a){return g.K(a,cab)||void 0};
wR.prototype.u=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.ca.Object.defineProperties(wR.prototype,{C:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.w(xR,qR);xR.prototype.B=function(){return Fbb};
xR.prototype.j=function(a){return g.K(a,ubb)||void 0};
xR.prototype.u=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.w(yR,qR);yR.prototype.B=function(){return Gbb};
yR.prototype.j=function(a){return g.K(a,sbb)||void 0};
yR.prototype.u=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.w(zR,qR);zR.prototype.B=function(){return Dbb};
zR.prototype.j=function(a){return g.K(a,jbb)};
zR.prototype.u=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};var Tcb=new OC("NETWORK_SLI_TOKEN");AR.prototype.fetch=function(a,b){var c=this,d,e,f;return g.A(function(h){c.j&&(d=Ri(g.Ti(5,mj(a,"key")))||"/UNKNOWN_PATH",c.j.start(d));e=b;g.gy("wug_networking_gzip_request")&&(e=vqa(b));f=new window.Request(a,e);return g.gy("web_fetch_promise_cleanup_killswitch")?h.return(Promise.resolve(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.DD(l)}))):h.return(fetch(f).then(function(l){return c.handleResponse(l)}).catch(function(l){g.DD(l)}))})};
AR.prototype.handleResponse=function(a){var b=a.text().then(function(c){return JSON.parse(c.replace(")]}'",""))});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.R6a(),b=b.then(function(c){g.DD(new g.bA("Error: API fetch failed",a.status,a.url,c));return Object.assign({},c,{errorMetadata:{status:a.status}})}));
return b};
AR[RC]=[new PC(Tcb)];var IFa=new OC("NETWORK_MANAGER_TOKEN");var BR;DR.prototype.fetch=function(a,b,c){var d=this;return new Promise(function(e){var f=new XMLHttpRequest;f.onerror=function(){e(d.handleResponse(a,f.status,f.response))};
f.onload=function(){e(d.handleResponse(a,f.status,f.response))};
if(null==c?0:c.wz)f.onreadystatechange=function(p){c.wz(f,p)};
var h;f.open(null!=(h=b.method)?h:"GET",a,!0);f.responseType="text";f.withCredentials=!0;if(b.headers){h=g.t(Object.entries(b.headers));for(var l=h.next();!l.done;l=h.next()){var m=g.t(l.value);l=m.next().value;m=m.next().value;f.setRequestHeader(l,m)}}var n;f.send(null!=(n=b.body)?n:null)})};
DR.prototype.handleResponse=function(a,b,c){c=c.replace(")]}'","");try{var d=JSON.parse(c)}catch(e){g.DD(new g.bA("JSON parsing failed after XHR fetch",a,b,c)),d={}}200!==b&&(g.DD(new g.bA("XHR API fetch failed",a,b,c)),d=Object.assign({},d,{errorMetadata:{status:b}}));return d};var LFa=[],ER=!1;var k0a={adNotify:function(a){var b=new Ct,c=0;try{return void 0!==a.adMediaTimeSec&&(H(b,1,a.adMediaTimeSec),c++),void 0!==a.adMediaTimeMs&&(H(b,6,a.adMediaTimeMs),c++),void 0!==a.timeToAdBreakSec&&(H(b,2,a.timeToAdBreakSec),c++),void 0!==a.clientScreenNonce&&(H(b,3,a.clientScreenNonce),c++),void 0!==a.clientPlaybackNonce&&(H(b,4,a.clientPlaybackNonce),c++),void 0!==a.videoAdBreakOffsetSec&&(H(b,5,a.videoAdBreakOffsetSec),c++),void 0!==a.videoAdBreakOffsetMs&&(H(b,7,a.videoAdBreakOffsetMs),c++),
[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new xv,c=0;try{return void 0!==a.detected&&(H(b,1,a.detected),c++),void 0!==a.source&&(H(b,2,a.source),c++),void 0!==a.contentCpn&&(H(b,3,a.contentCpn),c++),void 0!==a.contentCsn&&(H(b,4,a.contentCsn),c++),void 0!==a.method&&(H(b,5,a.method),c++),void 0!==a.result&&(H(b,6,a.result),c++),void 0!==a.adCpn&&(H(b,7,a.adCpn),c++),void 0!==a.playbackType&&(H(b,8,a.playbackType),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
adNotifyFilled:function(a){var b=new Bt,c=0;try{return void 0!==a.notifyCompositeType&&(H(b,1,rab[a.notifyCompositeType]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new jx,c=0;try{return void 0!==a.objectStoreNames&&(H(b,1,a.objectStoreNames),c++),void 0!==a.duration&&(b.Sk(a.duration),c++),void 0!==a.isSuccessful&&(H(b,3,a.isSuccessful),c++),void 0!==a.connectionHasUnknownAbortedTransaction&&(H(b,4,a.connectionHasUnknownAbortedTransaction),c++),void 0!==a.tryCount&&(H(b,5,a.tryCount),c++),void 0!==a.tag&&(H(b,6,Vab[a.tag]),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new kx,c=0;try{return void 0!==a.dbName&&(H(b,1,a.dbName),c++),void 0!==a.dbVersion&&(H(b,2,a.dbVersion),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
flowEvent:function(a){var b=new cx,c=0;try{void 0!==a.flowNonce&&(H(b,1,a.flowNonce),c++);if(a.flowEventType){var d=a.flowEventType,e=new bx,f=0;try{void 0!==d.flowEventNamespace&&(H(e,1,Oab[d.flowEventNamespace]),f++);void 0!==d.flowEventType&&(H(e,2,d.flowEventType),f++);var h=[f===Object.keys(d).length,e]}catch(wa){W(wa),h=[!1,void 0]}var l=h;l[0]&&(I(b,bx,2,l[1]),c++)}if(a.flowMetadata){var m=a.flowMetadata,n=new ax,p=0;try{if(m.notaireContext){var q=m.notaireContext,r=new nw,v=0;try{if(q.serverInfo){var x=
q.serverInfo,z=new mw,B=0;try{void 0!==x.id&&(H(z,1,x.id),B++);void 0!==x.forceLog&&(H(z,2,x.forceLog),B++);var F=[B===Object.keys(x).length,z]}catch(wa){W(wa),F=[!1,void 0]}var G=F;G[0]&&(I(r,mw,1,G[1]),v++)}if(q.clientInfo){var D=q.clientInfo,L=new lw,P=0;try{void 0!==D.timeSinceReceivedMs&&(H(L,1,D.timeSinceReceivedMs),P++);var T=[P===Object.keys(D).length,L]}catch(wa){W(wa),T=[!1,void 0]}var fa=T;fa[0]&&(I(r,lw,2,fa[1]),v++)}var V=[v===Object.keys(q).length,r]}catch(wa){W(wa),V=[!1,void 0]}var Q=
V;Q[0]&&(I(n,nw,1,Q[1]),p++)}if(m.offlineTransferStatusChangedContext){var X=m.offlineTransferStatusChangedContext,O=new uw,la=0;try{if(X.offlineTransferStatusChanged){var qa=zHa(X.offlineTransferStatusChanged);qa[0]&&(I(O,tw,1,qa[1]),la++)}var Ma=[la===Object.keys(X).length,O]}catch(wa){W(wa),Ma=[!1,void 0]}var Qa=Ma;Qa[0]&&(I(n,uw,2,Qa[1]),p++)}if(m.offlineOrchestrationContext){var ua=m.offlineOrchestrationContext,ab=new pw,ta=0;try{void 0!==ua.entityType&&(H(ab,1,ua.entityType),ta++);void 0!==
ua.entityId&&(H(ab,7,ua.entityId),ta++);void 0!==ua.offlineOrchestrationActionType&&(H(ab,6,lbb[ua.offlineOrchestrationActionType]),ta++);void 0!==ua.offlineOrchestrationActionResult&&(H(ab,2,kbb[ua.offlineOrchestrationActionResult]),ta++);void 0!==ua.offlineOrchestrationFailureReason&&(H(ab,10,mbb[ua.offlineOrchestrationFailureReason]),ta++);void 0!==ua.isRetryable&&(H(ab,3,ua.isRetryable),ta++);void 0!==ua.isRestored&&(H(ab,11,ua.isRestored),ta++);if(ua.orchestrationAction){var db=xIa(ua.orchestrationAction);
db[0]&&(I(ab,ow,4,db[1]),ta++)}ua.additionalOrchestrationActions&&(GR(ab.j.bind(ab),ua.additionalOrchestrationActions,xIa),ta++);void 0!==ua.intervalSinceEnqueuedMs&&(H(ab,8,ua.intervalSinceEnqueuedMs),ta++);void 0!==ua.executionIntervalMs&&(H(ab,9,ua.executionIntervalMs),ta++);var pb=[ta===Object.keys(ua).length,ab]}catch(wa){W(wa),pb=[!1,void 0]}var Xa=pb;Xa[0]&&(I(n,pw,3,Xa[1]),p++)}if(m.shortsCreationContext){var Db=m.shortsCreationContext,eb=new Ow,Ab=0;try{void 0!==Db.shortsCreationSurfaces&&
(HR(eb.j.bind(eb),Db.shortsCreationSurfaces,wbb),Ab++);var Fb=[Ab===Object.keys(Db).length,eb]}catch(wa){W(wa),Fb=[!1,void 0]}var rc=Fb;rc[0]&&(I(n,Ow,4,rc[1]),p++)}if(m.mdxConnectionContext){var Jc=m.mdxConnectionContext,me=new hw,zd=0;try{void 0!==Jc.isReconnection&&(H(me,1,Jc.isReconnection),zd++);void 0!==Jc.disconnectReason&&(H(me,2,Yab[Jc.disconnectReason]),zd++);void 0!==Jc.isRetry&&(H(me,3,Jc.isRetry),zd++);var de=[zd===Object.keys(Jc).length,me]}catch(wa){W(wa),de=[!1,void 0]}var lc=de;lc[0]&&
(I(n,hw,5,lc[1]),p++)}if(m.premiumMultiStepPurchaseContext){var fc=m.premiumMultiStepPurchaseContext,bd=new Gw,Pd=0;try{if(fc.selectedOption){var Hb=fc.selectedOption,gb=new Fw,Wb=0;try{void 0!==Hb.offerType&&(H(gb,1,Z$a[Hb.offerType]),Wb++);void 0!==Hb.itemType&&(H(gb,2,cS[Hb.itemType]),Wb++);void 0!==Hb.itemExternalId&&(H(gb,3,Hb.itemExternalId),Wb++);var Kc=[Wb===Object.keys(Hb).length,gb]}catch(wa){W(wa),Kc=[!1,void 0]}var ee=Kc;ee[0]&&(I(bd,Fw,1,ee[1]),Pd++)}void 0!==fc.itemType&&(H(bd,2,cS[fc.itemType]),
Pd++);void 0!==fc.productType&&(H(bd,3,dS[fc.productType]),Pd++);void 0!==fc.landingPageVariantId&&(H(bd,4,fc.landingPageVariantId),Pd++);void 0!==fc.experimentStatus&&(H(bd,5,$ab[fc.experimentStatus]),Pd++);void 0!==fc.themeKey&&(H(bd,6,fc.themeKey),Pd++);void 0!==fc.signupType&&(H(bd,7,abb[fc.signupType]),Pd++);var lb=[Pd===Object.keys(fc).length,bd]}catch(wa){W(wa),lb=[!1,void 0]}var Ec=lb;Ec[0]&&(I(n,Gw,6,Ec[1]),p++)}if(m.mdxReceiverConnectionContext){var qb=m.mdxReceiverConnectionContext,zc=
new iw,Xb=0;try{void 0!==qb.isFromAppLaunch&&(H(zc,1,qb.isFromAppLaunch),Xb++);void 0!==qb.dialServerType&&(H(zc,2,Xab[qb.dialServerType]),Xb++);void 0!==qb.supportsSmoothPairing&&(H(zc,3,qb.supportsSmoothPairing),Xb++);void 0!==qb.hasManuallyPairedRemotesOnAppStartup&&(H(zc,4,qb.hasManuallyPairedRemotesOnAppStartup),Xb++);void 0!==qb.mismatchedTheme&&(H(zc,5,V$a[qb.mismatchedTheme]),Xb++);void 0!==qb.mdxSenderConnectedCounter&&(H(zc,6,qb.mdxSenderConnectedCounter),Xb++);void 0!==qb.externalRouteSource&&
(H(zc,7,Wab[qb.externalRouteSource]),Xb++);void 0!==qb.appReloadCount&&(H(zc,8,qb.appReloadCount),Xb++);var Ne=[Xb===Object.keys(qb).length,zc]}catch(wa){W(wa),Ne=[!1,void 0]}var Qd=Ne;Qd[0]&&(I(n,iw,7,Qd[1]),p++)}if(m.parentToolsOnboardingContext){var gc=m.parentToolsOnboardingContext,Ac=new ww,Ad=0;try{void 0!==gc.triggerPoint&&(H(Ac,1,jab[gc.triggerPoint]),Ad++);if(gc.kidsFlowInfo){var sc=gc.kidsFlowInfo,cd=new vw,dd=0;try{void 0!==sc.kidsFlowVersion&&(H(cd,1,gab[sc.kidsFlowVersion]),dd++);void 0!==
sc.flowLabel&&(H(cd,2,sc.flowLabel),dd++);void 0!==sc.hostClientName&&(H(cd,3,hab[sc.hostClientName]),dd++);void 0!==sc.hostClientVersion&&(H(cd,4,sc.hostClientVersion),dd++);void 0!==sc.kidsFlowType&&(H(cd,5,fab[sc.kidsFlowType]),dd++);var Fc=[dd===Object.keys(sc).length,cd]}catch(wa){W(wa),Fc=[!1,void 0]}var Gd=Fc;Gd[0]&&(I(Ac,vw,2,Gd[1]),Ad++)}void 0!==gc.kidsCorpusPreferenceNew&&(H(Ac,3,eab[gc.kidsCorpusPreferenceNew]),Ad++);void 0!==gc.appChoice&&(H(Ac,4,iab[gc.appChoice]),Ad++);void 0!==gc.isKidSignedIn&&
(H(Ac,5,gc.isKidSignedIn),Ad++);void 0!==gc.alreadyOnboardedYtk&&(H(Ac,6,gc.alreadyOnboardedYtk),Ad++);void 0!==gc.alreadyOnboardedSupex&&(H(Ac,7,gc.alreadyOnboardedSupex),Ad++);var Lc=[Ad===Object.keys(gc).length,Ac]}catch(wa){W(wa),Lc=[!1,void 0]}var Yb=Lc;Yb[0]&&(I(n,ww,8,Yb[1]),p++)}if(m.hashtagAutoCompleteContext){var ub=m.hashtagAutoCompleteContext,vb=new Wv,jg=0;try{void 0!==ub.suggestionSelected&&(H(vb,1,ub.suggestionSelected),jg++);var kg=[jg===Object.keys(ub).length,vb]}catch(wa){W(wa),
kg=[!1,void 0]}var ed=kg;ed[0]&&(I(n,Wv,9,ed[1]),p++)}if(m.liveStreamingContext){var Zb=m.liveStreamingContext,Mc=new gw,ld=0;try{void 0!==Zb.broadcastSource&&(H(Mc,1,pab[Zb.broadcastSource]),ld++);void 0!==Zb.isAutoDashboard&&(H(Mc,2,Zb.isAutoDashboard),ld++);void 0!==Zb.externalVideoId&&(H(Mc,3,Zb.externalVideoId),ld++);void 0!==Zb.broadcastConferenceType&&(H(Mc,4,nab[Zb.broadcastConferenceType]),ld++);if(Zb.eventData){var fd=Zb.eventData,sf=new fw,qd=0;try{if(fd.webrtcHandshakeOffer){var Rd=fd.webrtcHandshakeOffer,
$e=new ew,Bd=0;try{void 0!==Rd.localVideoSsrc&&(H($e,1,Rd.localVideoSsrc),Bd++);void 0!==Rd.localAudioSsrc&&(H($e,2,Rd.localAudioSsrc),Bd++);void 0!==Rd.participantId&&(H($e,3,Rd.participantId),Bd++);var ne=[Bd===Object.keys(Rd).length,$e]}catch(wa){W(wa),ne=[!1,void 0]}var Tf=ne;Tf[0]&&(I(sf,ew,1,Tf[1]),qd++)}if(fd.webrtcHandshakeAnswer){var xb=fd.webrtcHandshakeAnswer,aj=new cw,Qg=0;try{void 0!==xb.remoteVideoSsrc&&(H(aj,1,xb.remoteVideoSsrc),Qg++);void 0!==xb.remoteAudioSsrc&&(H(aj,2,xb.remoteAudioSsrc),
Qg++);var xi=[Qg===Object.keys(xb).length,aj]}catch(wa){W(wa),xi=[!1,void 0]}var bj=xi;bj[0]&&(I(sf,cw,2,bj[1]),qd++)}if(fd.webrtcHandshakeError){var cj=fd.webrtcHandshakeError,Oe=new dw,dj=0;try{void 0!==cj.description&&(H(Oe,1,cj.description),dj++);var ej=[dj===Object.keys(cj).length,Oe]}catch(wa){W(wa),ej=[!1,void 0]}var af=ej;af[0]&&(I(sf,dw,3,af[1]),qd++)}if(fd.costreamStartNotification){var Rg=fd.costreamStartNotification,yi=new Zv,Nj=0;try{void 0!==Rg.broadcastStartTimeMs&&(H(yi,1,Rg.broadcastStartTimeMs),
Nj++);var Oj=[Nj===Object.keys(Rg).length,yi]}catch(wa){W(wa),Oj=[!1,void 0]}var lg=Oj;lg[0]&&(I(sf,Zv,4,lg[1]),qd++)}if(fd.remoteParticipant){var fe=fd.remoteParticipant,Uf=new aw,Sg=0;try{void 0!==fe.videoSsrc&&(H(Uf,1,fe.videoSsrc),Sg++);void 0!==fe.audioSsrc&&(H(Uf,2,fe.audioSsrc),Sg++);var Pj=[Sg===Object.keys(fe).length,Uf]}catch(wa){W(wa),Pj=[!1,void 0]}var fj=Pj;fj[0]&&(I(sf,aw,5,fj[1]),qd++)}if(fd.webcamEventData){var oe=fd.webcamEventData,mg=new bw,Ae=0;try{void 0!==oe.videoFrameRate&&(Ph(mg,
1,oe.videoFrameRate),Ae++);void 0!==oe.videoAspectRatio&&(Ph(mg,2,oe.videoAspectRatio),Ae++);void 0!==oe.videoHeight&&(H(mg,3,oe.videoHeight),Ae++);void 0!==oe.videoWidth&&(H(mg,4,oe.videoWidth),Ae++);void 0!==oe.videoCaptureCursor&&(H(mg,5,oe.videoCaptureCursor),Ae++);void 0!==oe.videoCaptureSurface&&(H(mg,6,oe.videoCaptureSurface),Ae++);void 0!==oe.videoCaptureAudioEnabled&&(H(mg,7,oe.videoCaptureAudioEnabled),Ae++);var Hd=[Ae===Object.keys(oe).length,mg]}catch(wa){W(wa),Hd=[!1,void 0]}var tf=Hd;
tf[0]&&(I(sf,bw,6,tf[1]),qd++)}if(fd.errorEventData){var Vf=fd.errorEventData,sh=new $v,Tg=0;try{void 0!==Vf.liveClientErrorType&&(H(sh,1,lab[Vf.liveClientErrorType]),Tg++);void 0!==Vf.liveServerErrorType&&(H(sh,2,mab[Vf.liveServerErrorType]),Tg++);void 0!==Vf.kioskClientApiErrorType&&(H(sh,3,kab[Vf.kioskClientApiErrorType]),Tg++);var gj=[Tg===Object.keys(Vf).length,sh]}catch(wa){W(wa),gj=[!1,void 0]}var hj=gj;hj[0]&&(I(sf,$v,7,hj[1]),qd++)}var th=[qd===Object.keys(fd).length,sf]}catch(wa){W(wa),
th=[!1,void 0]}var Ug=th;Ug[0]&&(I(Mc,fw,5,Ug[1]),ld++)}void 0!==Zb.isMonetizationOn&&(H(Mc,6,Zb.isMonetizationOn),ld++);void 0!==Zb.sharedmdeEnabled&&(H(Mc,7,Zb.sharedmdeEnabled),ld++);void 0!==Zb.isScreencast&&(H(Mc,8,Zb.isScreencast),ld++);void 0!==Zb.broadcastLifecycleStatus&&(H(Mc,9,oab[Zb.broadcastLifecycleStatus]),ld++);var zi=[ld===Object.keys(Zb).length,Mc]}catch(wa){W(wa),zi=[!1,void 0]}var Vh=zi;Vh[0]&&(I(n,gw,10,Vh[1]),p++)}if(m.touAppealContext){var Sd=m.touAppealContext,ng=new Tw,bf=
0;try{void 0!==Sd.scope&&(H(ng,1,Sd.scope),bf++);if(Sd.videoId){var Ai=Sd.videoId,$b=new Rw,ge=0;try{void 0!==Ai.externalVideoId&&(H($b,1,Ai.externalVideoId),ge++);var pe=[ge===Object.keys(Ai).length,$b]}catch(wa){W(wa),pe=[!1,void 0]}var Wf=pe;Wf[0]&&(ng.setVideoId(Wf[1]),bf++)}if(Sd.videoThumbnailId){var Jf=Sd.videoThumbnailId,qe=new Sw,uh=0;try{void 0!==Jf.externalVideoId&&(H(qe,1,Jf.externalVideoId),uh++);void 0!==Jf.thumbnailVersion&&(H(qe,3,Jf.thumbnailVersion),uh++);void 0!==Jf.checksum&&(H(qe,
4,Jf.checksum),uh++);var Wh=[uh===Object.keys(Jf).length,qe]}catch(wa){W(wa),Wh=[!1,void 0]}var og=Wh;og[0]&&(Oh(ng,Sw,3,t3,og[1]),bf++)}if(Sd.playlistId){var Pe=Sd.playlistId,Vg=new Qw,re=0;try{void 0!==Pe.externalPlaylistId&&(H(Vg,1,Pe.externalPlaylistId),re++);var Xh=[re===Object.keys(Pe).length,Vg]}catch(wa){W(wa),Xh=[!1,void 0]}var Lk=Xh;Lk[0]&&(Oh(ng,Qw,4,t3,Lk[1]),bf++)}void 0!==Sd.urlHostname&&(Kh(ng,5,t3,Sd.urlHostname),bf++);void 0!==Sd.encodedTouViolativeContentId&&(H(ng,6,Sd.encodedTouViolativeContentId),
bf++);void 0!==Sd.encodedChannelTouViolativeContentId&&(H(ng,7,Sd.encodedChannelTouViolativeContentId),bf++);var Mk=[bf===Object.keys(Sd).length,ng]}catch(wa){W(wa),Mk=[!1,void 0]}var cn=Mk;cn[0]&&(I(n,Tw,11,cn[1]),p++)}if(m.dragAndDropContext){var Qj=m.dragAndDropContext,Cd=new Uv,cf=0;try{if(Qj.rootVe){var df=IR(Qj.rootVe);df[0]&&(I(Cd,Tv,1,df[1]),cf++)}if(Qj.ve){var pg=IR(Qj.ve);pg[0]&&(I(Cd,Tv,2,pg[1]),cf++)}var Wg=[cf===Object.keys(Qj).length,Cd]}catch(wa){W(wa),Wg=[!1,void 0]}var Yh=Wg;Yh[0]&&
(I(n,Uv,12,Yh[1]),p++)}if(m.socialSuggestionsContext){var Bi=m.socialSuggestionsContext,Rj=new Pw,Sj=0;try{void 0!==Bi.socialSuggestionsType&&(H(Rj,1,cbb[Bi.socialSuggestionsType]),Sj++);void 0!==Bi.suggestionSelected&&(H(Rj,2,Bi.suggestionSelected),Sj++);void 0!==Bi.source&&(H(Rj,3,dbb[Bi.source]),Sj++);var dn=[Sj===Object.keys(Bi).length,Rj]}catch(wa){W(wa),dn=[!1,void 0]}var Kf=dn;Kf[0]&&(I(n,Pw,13,Kf[1]),p++)}if(m.featureEnablementContext){var vh=m.featureEnablementContext,ij=new Vv,en=0;try{void 0!==
vh.feature&&(H(ij,1,qGa[vh.feature]),en++);var fn=[en===Object.keys(vh).length,ij]}catch(wa){W(wa),fn=[!1,void 0]}var se=fn;se[0]&&(I(n,Vv,14,se[1]),p++)}if(m.iapContext){var ef=m.iapContext,wh=new Yv,jj=0;try{if(ef.playIapProduct){var ff=ef.playIapProduct,gf=new Xv,xh=0;try{void 0!==ff.packageId&&(H(gf,1,ff.packageId),xh++);void 0!==ff.productId&&(H(gf,2,ff.productId),xh++);var yh=[xh===Object.keys(ff).length,gf]}catch(wa){W(wa),yh=[!1,void 0]}var gn=yh;gn[0]&&(Oh(wh,Xv,1,Mab,gn[1]),jj++)}void 0!==
ef.source&&(H(wh,2,Qab[ef.source]),jj++);void 0!==ef.attributionId&&(H(wh,3,ef.attributionId),jj++);void 0!==ef.externalVideoId&&(H(wh,4,ef.externalVideoId),jj++);void 0!==ef.externalChannelId&&(H(wh,5,ef.externalChannelId),jj++);var Dl=[jj===Object.keys(ef).length,wh]}catch(wa){W(wa),Dl=[!1,void 0]}var hn=Dl;hn[0]&&(I(n,Yv,15,hn[1]),p++)}if(m.shoppingCheckoutContext){var Id=m.shoppingCheckoutContext,hf=new Nw,Xg=0;try{if(Id.shoppingFlowParams){var Yg=AIa(Id.shoppingFlowParams);Yg[0]&&(I(hf,Lw,1,
Yg[1]),Xg++)}void 0!==Id.shoppingCheckoutErrorReason&&(H(hf,2,bbb[Id.shoppingCheckoutErrorReason]),Xg++);var El=[Xg===Object.keys(Id).length,hf]}catch(wa){W(wa),El=[!1,void 0]}var Fl=El;Fl[0]&&(I(n,Nw,16,Fl[1]),p++)}if(m.ypcCancellationContext){var La=m.ypcCancellationContext,Do=new Zw,zq=0;try{void 0!==La.itemType&&(H(Do,1,cS[La.itemType]),zq++);void 0!==La.productType&&(H(Do,2,dS[La.productType]),zq++);var Eo=[zq===Object.keys(La).length,Do]}catch(wa){W(wa),Eo=[!1,void 0]}var Gl=Eo;Gl[0]&&(I(n,
Zw,17,Gl[1]),p++)}if(m.ypcBrowseOffersContext){var Tj=m.ypcBrowseOffersContext,Hl=new Yw,Fo=0;try{if(Tj.commerceFlowLoggingParams){var Aq=EIa(Tj.commerceFlowLoggingParams);Aq[0]&&(I(Hl,Xw,1,Aq[1]),Fo++)}void 0!==Tj.offerType&&(H(Hl,2,$$a[Tj.offerType]),Fo++);void 0!==Tj.entityType&&(H(Hl,3,Iab[Tj.entityType]),Fo++);var Bq=[Fo===Object.keys(Tj).length,Hl]}catch(wa){W(wa),Bq=[!1,void 0]}var Zs=Bq;Zs[0]&&(I(n,Yw,18,Zs[1]),p++)}if(m.mdxStreamTransferContext){var Uj=m.mdxStreamTransferContext,$s=new jw,
at=0;try{void 0!==Uj.completedReason&&(H($s,1,Zab[Uj.completedReason]),at++);var Cq=[at===Object.keys(Uj).length,$s]}catch(wa){W(wa),Cq=[!1,void 0]}var qg=Cq;qg[0]&&(I(n,jw,19,qg[1]),p++)}if(m.pdgBuyFlowContext){var Xf=m.pdgBuyFlowContext,Il=new Aw,Go=0;try{void 0!==Xf.productType&&(H(Il,1,dS[Xf.productType]),Go++);if(Xf.entryPointClickedContext){var Ci=Xf.entryPointClickedContext,jn=new xw,Jl=0;try{void 0!==Ci.superVodBuyFlowEntryPoint&&(Kh(jn,1,s3,qbb[Ci.superVodBuyFlowEntryPoint]),Jl++);void 0!==
Ci.superChatBuyFlowEntryPoint&&(Kh(jn,2,s3,obb[Ci.superChatBuyFlowEntryPoint]),Jl++);void 0!==Ci.sharedPdgBuyFlowEntryPoint&&(Kh(jn,3,s3,nbb[Ci.sharedPdgBuyFlowEntryPoint]),Jl++);void 0!==Ci.superStickerBuyFlowEntryPoint&&(Kh(jn,4,s3,pbb[Ci.superStickerBuyFlowEntryPoint]),Jl++);var Ho=[Jl===Object.keys(Ci).length,jn]}catch(wa){W(wa),Ho=[!1,void 0]}var bt=Ho;bt[0]&&(I(Il,xw,2,bt[1]),Go++)}if(Xf.itemSelectionPageDisplayedContext){var Kl=Xf.itemSelectionPageDisplayedContext,kn=new yw,Dq=0;try{void 0!==
Kl.superStickerBuyFlowType&&(H(kn,1,rbb[Kl.superStickerBuyFlowType]),Dq++);var ct=[Dq===Object.keys(Kl).length,kn]}catch(wa){W(wa),ct=[!1,void 0]}var Eq=ct;Eq[0]&&(I(Il,yw,3,Eq[1]),Go++)}var kj=[Go===Object.keys(Xf).length,Il]}catch(wa){W(wa),kj=[!1,void 0]}var Ll=kj;Ll[0]&&(I(n,Aw,20,Ll[1]),p++)}if(m.ypcPurchaseContext){var zh=m.ypcPurchaseContext,ln=new $w,mn=0;try{if(zh.commerceFlowLoggingParams){var dt=EIa(zh.commerceFlowLoggingParams);dt[0]&&(I(ln,Xw,1,dt[1]),mn++)}void 0!==zh.offerType&&(H(ln,
2,$$a[zh.offerType]),mn++);void 0!==zh.transactionType&&(H(ln,3,gbb[zh.transactionType]),mn++);void 0!==zh.paymentProcessor&&(H(ln,4,aab[zh.paymentProcessor]),mn++);var et=[mn===Object.keys(zh).length,ln]}catch(wa){W(wa),et=[!1,void 0]}var ft=et;ft[0]&&(I(n,$w,21,ft[1]),p++)}if(m.webViewContext){var Be=m.webViewContext,bc=new Vw,jf=0;try{void 0!==Be.hostname&&(H(bc,1,Be.hostname),jf++);void 0!==Be.webViewUseCase&&(H(bc,2,ybb[Be.webViewUseCase]),jf++);void 0!==Be.isFirstPartyHost&&(H(bc,5,Be.isFirstPartyHost),
jf++);void 0!==Be.isLoaded&&(H(bc,3,Be.isLoaded),jf++);void 0!==Be.webViewEngagementSec&&(H(bc,4,Be.webViewEngagementSec),jf++);var gt=[jf===Object.keys(Be).length,bc]}catch(wa){W(wa),gt=[!1,void 0]}var zw=gt;zw[0]&&(I(n,Vw,22,zw[1]),p++)}if(m.videoSuggestionsContext){var Vj=m.videoSuggestionsContext,nn=new Uw,on=0;try{void 0!==Vj.type&&(H(nn,1,W$a[Vj.type]),on++);void 0!==Vj.serializedSuggestionData&&(Rh(nn,2,Vj.serializedSuggestionData),on++);void 0!==Vj.videoId&&(nn.setVideoId(Vj.videoId),on++);
var Fq=[on===Object.keys(Vj).length,nn]}catch(wa){W(wa),Fq=[!1,void 0]}var ht=Fq;ht[0]&&(I(n,Uw,23,ht[1]),p++)}if(m.actionSheetContext){var Io=m.actionSheetContext,jt=new Rv,Gq=0;try{void 0!==Io.parentScreenUiType&&(H(jt,1,Io.parentScreenUiType),Gq++);var kt=[Gq===Object.keys(Io).length,jt]}catch(wa){W(wa),kt=[!1,void 0]}var Hq=kt;Hq[0]&&(I(n,Rv,24,Hq[1]),p++)}if(m.producerExportContext){var Iq=m.producerExportContext,lt=new Kw,Jq=0;try{if(Iq.exportDetails){var pn=Iq.exportDetails,qn=new Jw,Jo=0;
try{if(pn.project){var Bw=pn.project,Ml=new Hw;try{var Di=[0===Object.keys(Bw).length,Ml]}catch(wa){W(wa),Di=[!1,void 0]}var Ko=Di;Ko[0]&&(I(qn,Hw,1,Ko[1]),Jo++)}if(pn.renderDetails){var Nk=pn.renderDetails,Lo=new Iw,Mo=0;try{void 0!==Nk.sizeBytes&&(Hh(Lo,1,Nk.sizeBytes,0),Mo++);void 0!==Nk.pixelWidth&&(Hh(Lo,2,Nk.pixelWidth,0),Mo++);void 0!==Nk.pixelHeight&&(Hh(Lo,3,Nk.pixelHeight,0),Mo++);var mt=[Mo===Object.keys(Nk).length,Lo]}catch(wa){W(wa),mt=[!1,void 0]}var Nl=mt;Nl[0]&&(I(qn,Iw,2,Nl[1]),Jo++)}var No=
[Jo===Object.keys(pn).length,qn]}catch(wa){W(wa),No=[!1,void 0]}var nt=No;nt[0]&&(I(lt,Jw,1,nt[1]),Jq++)}var Kq=[Jq===Object.keys(Iq).length,lt]}catch(wa){W(wa),Kq=[!1,void 0]}var Ba=Kq;Ba[0]&&(I(n,Kw,25,Ba[1]),p++)}if(m.downloadMyVideoContext){var Ei=m.downloadMyVideoContext,Oo=new Sv,Po=0;try{void 0!==Ei.videoId&&(Oo.setVideoId(Ei.videoId),Po++);void 0!==Ei.videoSid&&(H(Oo,2,Ei.videoSid),Po++);void 0!==Ei.downloadError&&(H(Oo,3,Nab[Ei.downloadError]),Po++);void 0!==Ei.totalAssetSize&&(H(Oo,4,Ei.totalAssetSize),
Po++);void 0!==Ei.totalDownloadedPercent&&(H(Oo,5,Ei.totalDownloadedPercent),Po++);void 0!==Ei.mddDownloadErrorCode&&(H(Oo,6,Ei.mddDownloadErrorCode),Po++);var SA=[Po===Object.keys(Ei).length,Oo]}catch(wa){W(wa),SA=[!1,void 0]}var OH=SA;OH[0]&&(I(n,Sv,26,OH[1]),p++)}if(m.miniAppContext){var Qo=m.miniAppContext,TA=new kw,ot=0;try{void 0!==Qo.miniAppId&&(H(TA,1,Qo.miniAppId),ot++);void 0!==Qo.miniAppReleaseId&&(H(TA,2,Qo.miniAppReleaseId),ot++);var Cw=[ot===Object.keys(Qo).length,TA]}catch(wa){W(wa),
Cw=[!1,void 0]}var PH=Cw;PH[0]&&(I(n,kw,27,PH[1]),p++)}if(m.shoppingCartContext){var UA=m.shoppingCartContext,QH=new Mw,RH=0;try{if(UA.shoppingFlowParams){var VA=AIa(UA.shoppingFlowParams);VA[0]&&(I(QH,Lw,1,VA[1]),RH++)}var SH=[RH===Object.keys(UA).length,QH]}catch(wa){W(wa),SH=[!1,void 0]}var WA=SH;WA[0]&&(I(n,Mw,28,WA[1]),p++)}var Dw=[p===Object.keys(m).length,n]}catch(wa){W(wa),Dw=[!1,void 0]}var TH=Dw;TH[0]&&(I(b,ax,3,TH[1]),c++)}void 0!==a.flowType&&(H(b,4,Pab[a.flowType]),c++);void 0!==a.flowEventStatus&&
(H(b,5,a.flowEventStatus),c++);void 0!==a.csn&&(H(b,6,a.csn),c++);void 0!==a.can&&(H(b,7,a.can),c++);if(a.cuiAssociations){var XA=a.cuiAssociations,YA=new At,UH=0;try{XA.association&&(GR(YA.j.bind(YA),XA.association,uIa),UH++);var VH=[UH===Object.keys(XA).length,YA]}catch(wa){W(wa),VH=[!1,void 0]}var ZA=VH;ZA[0]&&(I(b,At,8,ZA[1]),c++)}return[c===Object.keys(a).length,b]}catch(wa){return W(wa),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new hx,c=0;try{return void 0!==a.deviceStorageUsageMbytes&&(H(b,1,a.deviceStorageUsageMbytes),c++),void 0!==a.deviceStorageQuotaMbytes&&(H(b,2,a.deviceStorageQuotaMbytes),c++),void 0!==a.isIframe&&(H(b,3,a.isIframe),c++),void 0!==a.isSw&&(H(b,4,a.isSw),c++),void 0!==a.dbName&&(H(b,5,a.dbName),c++),void 0!==a.objectStoreNames&&(H(b,6,a.objectStoreNames),c++),void 0!==a.transactionCount&&(H(b,7,a.transactionCount),c++),void 0!==a.transactionMode&&(H(b,8,a.transactionMode),
c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
idbTransactionAborted:function(a){var b=new ix,c=0;try{return void 0!==a.objectStoreNames&&(H(b,1,a.objectStoreNames),c++),void 0!==a.hasWindowUnloaded&&(H(b,2,a.hasWindowUnloaded),c++),void 0!==a.transactionCount&&(H(b,3,a.transactionCount),c++),void 0!==a.transactionDuration&&(H(b,4,a.transactionDuration),c++),void 0!==a.dbDuration&&(H(b,5,a.dbDuration),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
streamzIncremented:function(a){var b=new Vx,c=0;try{return void 0!==a.serializedIncrementBatch&&(Rh(b,1,a.serializedIncrementBatch),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
sliEventBatch:function(a){var b=new Kv,c=0;try{a.loggedEvents&&(GR(b.j.bind(b),a.loggedEvents,gJa),c++);a.unloggedEvents&&(GR(b.B.bind(b),a.unloggedEvents,gJa),c++);void 0!==a.playerClientVersion&&(H(b,3,a.playerClientVersion),c++);void 0!==a.playerCanaryState&&(H(b,4,Hab[a.playerCanaryState]),c++);if(a.dimensions){var d=a.dimensions,e=new Jv,f=0;try{void 0!==d.playerClientVersion&&(H(e,1,d.playerClientVersion),f++);void 0!==d.playerCanaryState&&(H(e,2,Hab[d.playerCanaryState]),f++);var h=[f===Object.keys(d).length,
e]}catch(l){W(l),h=[!1,void 0]}h[0]&&(I(b,Jv,5,h[1]),c++)}return[c===Object.keys(a).length,b]}catch(l){return W(l),[!1,void 0]}},
playbackAssociated:function(a){var b=new mx,c=0;try{void 0!==a.cpn&&(H(b,1,a.cpn),c++);if(a.playbackVe){var d=IR(a.playbackVe);d[0]&&(I(b,Tv,2,d[1]),c++)}void 0!==a.csn&&(H(b,3,a.csn),c++);if(a.queueInfo){var e=a.queueInfo,f=new lx;d=0;try{if(e.enqueueingVe){var h=IR(e.enqueueingVe);h[0]&&(I(f,Tv,1,h[1]),d++)}void 0!==e.enqueueingCsn&&(H(f,2,e.enqueueingCsn),d++);void 0!==e.clientEnqueueingTimeMs&&(H(f,3,e.clientEnqueueingTimeMs),d++);var l=[d===Object.keys(e).length,f]}catch(m){W(m),l=[!1,void 0]}l[0]&&
(I(b,lx,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(m){return W(m),[!1,void 0]}},
autoplayTriggered:function(a){var b=new Mv,c=0;try{return void 0!==a.intentional&&(H(b,1,a.intentional),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new Wx,c=0;try{return void 0!==a.callerUrl&&(H(b,1,a.callerUrl),c++),void 0!==a.methodName&&(H(b,2,a.methodName),c++),void 0!==a.origin&&(H(b,3,a.origin),c++),void 0!==a.playerStyle&&(H(b,4,a.playerStyle),c++),void 0!==a.embeddedPlayerMode&&(H(b,5,bab[a.embeddedPlayerMode]),c++),void 0!==a.errorCode&&(H(b,6,a.errorCode),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
embedsAdEvent:function(a){var b=new Lv,c=0;try{return void 0!==a.eventType&&(H(b,1,Kab[a.eventType]),c++),void 0!==a.breakType&&(H(b,2,Jab[a.breakType]),c++),void 0!==a.packageName&&(H(b,3,a.packageName),c++),void 0!==a.embedUrl&&(H(b,4,a.embedUrl),c++),void 0!==a.adSource&&(H(b,5,Lab[a.adSource]),c++),void 0!==a.youtubeHost&&(H(b,6,a.youtubeHost),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new Pv,c=0;try{return void 0!==a.result&&(H(b,1,a.result),c++),void 0!==a.returnsUndefined&&(H(b,2,a.returnsUndefined),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new Ov,c=0;try{return void 0!==a.isCued&&(H(b,1,a.isCued),c++),void 0!==a.isAutoplayBlocked&&(H(b,2,a.isAutoplayBlocked),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new Nv,c=0;try{return void 0!==a.state&&(b.qc(a.state),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new ex,c=0;try{return void 0!==a.serializedServerContext&&(Rh(b,1,a.serializedServerContext),c++),void 0!==a.enforcedPolicyToHaltOnNetworkFailure&&(H(b,2,a.enforcedPolicyToHaltOnNetworkFailure),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new fx,c=0;try{return void 0!==a.reason&&(H(b,1,Rab[a.reason]),c++),void 0!==a.trigger&&(H(b,2,Sab[a.trigger]),c++),void 0!==a.serializedServerContext&&(Rh(b,3,a.serializedServerContext),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new Qv,c=0;try{return void 0!==a.accepted&&(H(b,1,a.accepted),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new gx,c=0;try{return void 0!==a.started&&(H(b,1,a.started),c++),void 0!==a.stateAtSend&&(H(b,2,fbb[a.stateAtSend]),c++),void 0!==a.joinLatencySecs&&(Ph(b,4,a.joinLatencySecs),c++),void 0!==a.playTimeSecs&&(Ph(b,5,a.playTimeSecs),c++),void 0!==a.rebufferTimeSecs&&(Ph(b,6,a.rebufferTimeSecs),c++),void 0!==a.playerCanaryType&&(H(b,7,Uab[a.playerCanaryType]),c++),void 0!==a.isAd&&(H(b,8,a.isAd),c++),void 0!==a.liveMode&&(H(b,9,ebb[a.liveMode]),c++),void 0!==a.isGapless&&
(H(b,10,a.isGapless),c++),void 0!==a.hasDrm&&(H(b,11,a.hasDrm),c++),void 0!==a.seekCount&&(H(b,12,a.seekCount),c++),void 0!==a.networkErrorCount&&(H(b,13,a.networkErrorCount),c++),void 0!==a.nonNetworkErrorCount&&(H(b,14,a.nonNetworkErrorCount),c++),void 0!==a.isServerStitchedDai&&(H(b,15,a.isServerStitchedDai),c++),[c===Object.keys(a).length,b]}catch(d){return W(d),[!1,void 0]}},
adsClientStateChange:function(a){var b=new lu,c=0;try{if(a.cuepointTrigger){var d=a.cuepointTrigger,e=new $t,f=0;try{void 0!==d.type&&(H(e,1,wab[d.type]),f++);void 0!==d.event&&(H(e,2,vab[d.event]),f++);void 0!==d.cuepointId&&(H(e,3,d.cuepointId),f++);void 0!==d.totalCueDurationMs&&(Ph(e,4,d.totalCueDurationMs),f++);void 0!==d.playheadTimeMs&&(Ph(e,5,d.playheadTimeMs),f++);void 0!==d.cueStartTimeMs&&(Ph(e,6,d.cueStartTimeMs),f++);void 0!==d.cuepointReceivedTimeMs&&(Ph(e,7,d.cuepointReceivedTimeMs),
f++);void 0!==d.contentCpn&&(H(e,8,d.contentCpn),f++);void 0!==d.externalChannelId&&(H(e,9,d.externalChannelId),f++);var h=[f===Object.keys(d).length,e]}catch(xb){W(xb),h=[!1,void 0]}var l=h;l[0]&&(Oh(b,$t,1,r3,l[1]),c++)}if(a.daiStateTrigger){var m=a.daiStateTrigger,n=new eu,p=0;try{void 0!==m.contentCpn&&(H(n,1,m.contentCpn),p++);void 0!==m.totalCueDurationMs&&(Ph(n,2,m.totalCueDurationMs),p++);void 0!==m.filledAdsDurationMs&&(Ph(n,3,m.filledAdsDurationMs),p++);void 0!==m.cueStartChange&&(H(n,4,
Cab[m.cueStartChange]),p++);void 0!==m.cueDurationChange&&(H(n,5,Aab[m.cueDurationChange]),p++);void 0!==m.cueDurationChangeReason&&(H(n,6,Bab[m.cueDurationChangeReason]),p++);void 0!==m.errorType&&(H(n,7,Dab[m.errorType]),p++);void 0!==m.externalChannelId&&(H(n,8,m.externalChannelId),p++);if(m.adClientData){var q=oIa(m.adClientData);q[0]&&(I(n,Tt,9,q[1]),p++)}var r=[p===Object.keys(m).length,n]}catch(xb){W(xb),r=[!1,void 0]}var v=r;v[0]&&(Oh(b,eu,2,r3,v[1]),c++)}if(a.daiAdBreakCriticalError){var x=
a.daiAdBreakCriticalError,z=new au,B=0;try{void 0!==x.contentCpn&&(H(z,1,x.contentCpn),B++);void 0!==x.errorType&&(H(z,2,Dab[x.errorType]),B++);void 0!==x.externalChannelId&&(H(z,3,x.externalChannelId),B++);void 0!==x.msg&&(H(z,4,x.msg),B++);void 0!==x.cueIdentifier&&(H(z,5,x.cueIdentifier),B++);var F=[B===Object.keys(x).length,z]}catch(xb){W(xb),F=[!1,void 0]}var G=F;G[0]&&(Oh(b,au,3,r3,G[1]),c++)}if(a.daiAdBreakWarning){var D=a.daiAdBreakWarning,L=new cu,P=0;try{void 0!==D.contentCpn&&(H(L,1,D.contentCpn),
P++);void 0!==D.errorType&&(H(L,2,Dab[D.errorType]),P++);void 0!==D.externalChannelId&&(H(L,3,D.externalChannelId),P++);void 0!==D.msg&&(H(L,4,D.msg),P++);void 0!==D.cueIdentifier&&(H(L,5,D.cueIdentifier),P++);var T=[P===Object.keys(D).length,L]}catch(xb){W(xb),T=[!1,void 0]}var fa=T;fa[0]&&(Oh(b,cu,4,r3,fa[1]),c++)}if(a.daiAdBreakInfo){var V=a.daiAdBreakInfo,Q=new bu,X=0;try{void 0!==V.contentCpn&&(H(Q,1,V.contentCpn),X++);void 0!==V.totalCueDurationMs&&(H(Q,2,V.totalCueDurationMs),X++);void 0!==
V.filledAdsDurationMs&&(H(Q,3,V.filledAdsDurationMs),X++);void 0!==V.cueStartChange&&(H(Q,4,Cab[V.cueStartChange]),X++);void 0!==V.cueDurationChange&&(H(Q,5,Aab[V.cueDurationChange]),X++);void 0!==V.cueDurationChangeReason&&(H(Q,6,Bab[V.cueDurationChangeReason]),X++);void 0!==V.externalChannelId&&(H(Q,7,V.externalChannelId),X++);void 0!==V.cueIdentifier&&(H(Q,8,V.cueIdentifier),X++);void 0!==V.infoType&&(H(Q,9,Eab[V.infoType]),X++);void 0!==V.msg&&(H(Q,10,V.msg),X++);void 0!==V.filledAdCount&&(H(Q,
11,V.filledAdCount),X++);var O=[X===Object.keys(V).length,Q]}catch(xb){W(xb),O=[!1,void 0]}var la=O;la[0]&&(Oh(b,bu,5,r3,la[1]),c++)}if(a.visibilityErrorDebugInfo){var qa=a.visibilityErrorDebugInfo,Ma=new ku,Qa=0;try{void 0!==qa.elementName&&(H(Ma,1,qa.elementName),Qa++);void 0!==qa.contentVideoPlaybackEventId&&(H(Ma,2,qa.contentVideoPlaybackEventId),Qa++);void 0!==qa.errorList&&(H(Ma,3,qa.errorList),Qa++);void 0!==qa.htmlDump&&(H(Ma,4,qa.htmlDump),Qa++);var ua=[Qa===Object.keys(qa).length,Ma]}catch(xb){W(xb),
ua=[!1,void 0]}var ab=ua;ab[0]&&(Oh(b,ku,6,r3,ab[1]),c++)}if(a.playbackTimelineAdBreakStateTrigger){var ta=a.playbackTimelineAdBreakStateTrigger,db=new iu,pb=0;try{void 0!==ta.cueIdentifier&&(H(db,1,ta.cueIdentifier),pb++);void 0!==ta.timestampUnixEpochSec&&(H(db,2,ta.timestampUnixEpochSec),pb++);void 0!==ta.adRequestState&&(H(db,3,xab[ta.adRequestState]),pb++);void 0!==ta.segmentState&&(H(db,4,yab[ta.segmentState]),pb++);void 0!==ta.timestampUnixEpochMs&&(H(db,5,ta.timestampUnixEpochMs),pb++);var Xa=
[pb===Object.keys(ta).length,db]}catch(xb){W(xb),Xa=[!1,void 0]}var Db=Xa;Db[0]&&(Oh(b,iu,7,r3,Db[1]),c++)}if(a.extraLongAdBreakDebugInfo){var eb=a.extraLongAdBreakDebugInfo,Ab=new hu,Fb=0;try{void 0!==eb.contentVideoPlaybackEventId&&(H(Ab,1,eb.contentVideoPlaybackEventId),Fb++);if(eb.adPlacementKindCuepointInitiatedCueRange){var rc=vIa(eb.adPlacementKindCuepointInitiatedCueRange);rc[0]&&(I(Ab,gu,2,rc[1]),Fb++)}if(eb.adPlacementConfigImpliedCueRange){var Jc=vIa(eb.adPlacementConfigImpliedCueRange);
Jc[0]&&(I(Ab,gu,3,Jc[1]),Fb++)}if(eb.adPlacementKindMillisecondsInitiatedCueRange){var me=vIa(eb.adPlacementKindMillisecondsInitiatedCueRange);me[0]&&(I(Ab,gu,4,me[1]),Fb++)}void 0!==eb.cueIdentifier&&(H(Ab,5,eb.cueIdentifier),Fb++);var zd=[Fb===Object.keys(eb).length,Ab]}catch(xb){W(xb),zd=[!1,void 0]}var de=zd;de[0]&&(Oh(b,hu,8,r3,de[1]),c++)}if(a.comparePyvAdTagInfo){var lc=a.comparePyvAdTagInfo,fc=new Zt,bd=0;try{void 0!==lc.pyvAdTagUrlFromPlayer&&(H(fc,1,lc.pyvAdTagUrlFromPlayer),bd++);void 0!==
lc.pyvAdTagUrlFromWatchNext&&(H(fc,2,lc.pyvAdTagUrlFromWatchNext),bd++);var Pd=[bd===Object.keys(lc).length,fc]}catch(xb){W(xb),Pd=[!1,void 0]}var Hb=Pd;Hb[0]&&(Oh(b,Zt,9,r3,Hb[1]),c++)}if(a.driftRecoveryInfo){var gb=a.driftRecoveryInfo,Wb=new fu,Kc=0;try{void 0!==gb.contentCpn&&(H(Wb,1,gb.contentCpn),Kc++);void 0!==gb.cueIdentifier&&(H(Wb,2,gb.cueIdentifier),Kc++);void 0!==gb.driftRecoveryMs&&(H(Wb,3,gb.driftRecoveryMs),Kc++);void 0!==gb.breakDurationMs&&(H(Wb,4,gb.breakDurationMs),Kc++);void 0!==
gb.driftFromHeadMs&&(H(Wb,5,gb.driftFromHeadMs),Kc++);void 0!==gb.appliedDriftRecoveryMs&&(H(Wb,6,gb.appliedDriftRecoveryMs),Kc++);void 0!==gb.destinationMs&&(H(Wb,7,gb.destinationMs),Kc++);if(gb.adClientData){var ee=oIa(gb.adClientData);ee[0]&&(I(Wb,Tt,8,ee[1]),Kc++)}var lb=[Kc===Object.keys(gb).length,Wb]}catch(xb){W(xb),lb=[!1,void 0]}var Ec=lb;Ec[0]&&(Oh(b,fu,10,r3,Ec[1]),c++)}if(a.adsClientEvent){var qb=a.adsClientEvent,zc=new Yt,Xb=0;try{void 0!==qb.eventType&&(H(zc,1,uab[qb.eventType]),Xb++);
if(qb.adClientData){var Ne=oIa(qb.adClientData);Ne[0]&&(I(zc,Tt,3,Ne[1]),Xb++)}void 0!==qb.serializedAdServingData&&(Rh(zc,4,qb.serializedAdServingData),Xb++);void 0!==qb.eventOrder&&(H(zc,5,qb.eventOrder),Xb++);void 0!==qb.serializedSlotAdServingData&&(Rh(zc,6,qb.serializedSlotAdServingData),Xb++);if(qb.errorInfo){var Qd=qb.errorInfo,gc=new Xt,Ac=0;try{void 0!==Qd.errorType&&(H(gc,1,tab[Qd.errorType]),Ac++);void 0!==Qd.errorMessage&&(H(gc,2,sab[Qd.errorMessage]),Ac++);var Ad=[Ac===Object.keys(Qd).length,
gc]}catch(xb){W(xb),Ad=[!1,void 0]}var sc=Ad;sc[0]&&(I(zc,Xt,7,sc[1]),Xb++)}var cd=[Xb===Object.keys(qb).length,zc]}catch(xb){W(xb),cd=[!1,void 0]}var dd=cd;dd[0]&&(Oh(b,Yt,11,r3,dd[1]),c++)}if(a.daiAdStateTracking){var Fc=a.daiAdStateTracking,Gd=new du,Lc=0;try{void 0!==Fc.eventType&&(H(Gd,1,zab[Fc.eventType]),Lc++);void 0!==Fc.contentCpn&&(H(Gd,2,Fc.contentCpn),Lc++);void 0!==Fc.externalChannelId&&(H(Gd,3,Fc.externalChannelId),Lc++);void 0!==Fc.adCpn&&(H(Gd,4,Fc.adCpn),Lc++);void 0!==Fc.adCount&&
(H(Gd,5,Fc.adCount),Lc++);void 0!==Fc.msg&&(H(Gd,6,Fc.msg),Lc++);var Yb=[Lc===Object.keys(Fc).length,Gd]}catch(xb){W(xb),Yb=[!1,void 0]}var ub=Yb;ub[0]&&(Oh(b,du,12,r3,ub[1]),c++)}if(a.adTrimmingInfo){var vb=a.adTrimmingInfo,jg=new Vt,kg=0;try{void 0!==vb.contentCpn&&(H(jg,1,vb.contentCpn),kg++);void 0!==vb.cueIdentifier&&(H(jg,2,vb.cueIdentifier),kg++);vb.adMediaInfo&&(GR(jg.j.bind(jg),vb.adMediaInfo,wIa),kg++);var ed=[kg===Object.keys(vb).length,jg]}catch(xb){W(xb),ed=[!1,void 0]}var Zb=ed;Zb[0]&&
(Oh(b,Vt,13,r3,Zb[1]),c++)}if(a.adsAttributionEvent){var Mc=a.adsAttributionEvent,ld=new Wt,fd=0;try{void 0!==Mc.errorCode&&(H(ld,1,Fab[Mc.errorCode]),fd++);void 0!==Mc.attributionStep&&(H(ld,2,Gab[Mc.attributionStep]),fd++);void 0!==Mc.innerErrorDomain&&(H(ld,3,Mc.innerErrorDomain),fd++);void 0!==Mc.innerErrorCode&&(H(ld,4,Mc.innerErrorCode),fd++);var sf=[fd===Object.keys(Mc).length,ld]}catch(xb){W(xb),sf=[!1,void 0]}var qd=sf;qd[0]&&(Oh(b,Wt,14,r3,qd[1]),c++)}if(a.playerDebugData){var Rd=a.playerDebugData,
$e=new ju,Bd=0;try{void 0!==Rd.pmlSignal&&(H($e,1,Rd.pmlSignal),Bd++);void 0!==Rd.contentCpn&&(H($e,2,Rd.contentCpn),Bd++);var ne=[Bd===Object.keys(Rd).length,$e]}catch(xb){W(xb),ne=[!1,void 0]}var Tf=ne;Tf[0]&&(Oh(b,ju,15,r3,Tf[1]),c++)}return[c===Object.keys(a).length,b]}catch(xb){return W(xb),[!1,void 0]}},
offlineTransferStatusChanged:zHa,offlineStateSnapshot:function(a){var b=new Ux,c=0;try{a.offlineVideos&&(GR(b.B.bind(b),a.offlineVideos,$Ha),c++);a.offlinePlaylists&&(GR(b.j.bind(b),a.offlinePlaylists,bIa),c++);void 0!==a.freeDiskSpaceBytes&&(H(b,3,a.freeDiskSpaceBytes),c++);void 0!==a.lastOfflineUsageTimeMs&&(H(b,4,a.lastOfflineUsageTimeMs),c++);void 0!==a.lastOfflinePlaybackTimeMs&&(H(b,5,a.lastOfflinePlaybackTimeMs),c++);void 0!==a.lastOfflineSaveTimeMs&&(H(b,6,a.lastOfflineSaveTimeMs),c++);void 0!==
a.lastOfflineDownloadSuccessTimeMs&&(H(b,7,a.lastOfflineDownloadSuccessTimeMs),c++);void 0!==a.isBatteryCharging&&(H(b,8,a.isBatteryCharging),c++);void 0!==a.detailedNetworkType&&(H(b,9,WR[a.detailedNetworkType]),c++);void 0!==a.batteryLevelPercentage&&(H(b,10,a.batteryLevelPercentage),c++);void 0!==a.isPostMigrationState&&(H(b,11,a.isPostMigrationState),c++);if(a.offlineCacheVerificationFailure){var d=a.offlineCacheVerificationFailure,e=new Ix,f=0;try{void 0!==d.numUncachedVideos&&(H(e,1,d.numUncachedVideos),
f++);void 0!==d.numTotalCompletedVideos&&(H(e,2,d.numTotalCompletedVideos),f++);d.uncachedVideos&&(GR(e.j.bind(e),d.uncachedVideos,eIa),f++);var h=[f===Object.keys(d).length,e]}catch(v){W(v),h=[!1,void 0]}h[0]&&(I(b,Ix,12,h[1]),c++)}if(a.additionalOfflineClientState){var l=a.additionalOfflineClientState,m=new Mx;h=0;try{if(l.mainAppAdditionalOfflineClientState){var n=l.mainAppAdditionalOfflineClientState,p=new Lx;d=0;try{n.downloadRecsVideos&&(GR(p.j.bind(p),n.downloadRecsVideos,fIa),d++);n.smartDownloadVideos&&
(GR(p.B.bind(p),n.smartDownloadVideos,gIa),d++);var q=[d===Object.keys(n).length,p]}catch(v){W(v),q=[!1,void 0]}q[0]&&(I(m,Lx,1,q[1]),h++)}var r=[h===Object.keys(l).length,m]}catch(v){W(v),r=[!1,void 0]}r[0]&&(I(b,Mx,13,r[1]),c++)}return[c===Object.keys(a).length,b]}catch(v){return W(v),[!1,void 0]}}},l0a={adNotify:function(a,b,c){var d=new Zx;
Oh(d,Ct,184,AD,a);c?yD(d,c,b):zD(d,b)},
biscottiBasedDetection:function(a,b,c){var d=new Zx;Oh(d,xv,439,AD,a);c?yD(d,c,b):zD(d,b)},
adNotifyFilled:function(a,b,c){var d=new Zx;Oh(d,Bt,300,AD,a);c?yD(d,c,b):zD(d,b)},
idbTransactionEnded:function(a,b,c){var d=new Zx;Oh(d,jx,352,AD,a);c?yD(d,c,b):zD(d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=new Zx;Oh(d,kx,348,AD,a);c?yD(d,c,b):zD(d,b)},
flowEvent:function(a,b,c){var d=new Zx;Oh(d,cx,304,AD,a);c?yD(d,c,b):zD(d,b)},
idbQuotaExceeded:function(a,b,c){var d=new Zx;Oh(d,hx,351,AD,a);c?yD(d,c,b):zD(d,b)},
idbTransactionAborted:function(a,b,c){var d=new Zx;Oh(d,ix,353,AD,a);c?yD(d,c,b):zD(d,b)},
streamzIncremented:function(a,b,c){var d=new Zx;Oh(d,Vx,126,AD,a);c?yD(d,c,b):zD(d,b)},
sliEventBatch:function(a,b,c){var d=new Zx;Oh(d,Kv,344,AD,a);c?yD(d,c,b):zD(d,b)},
playbackAssociated:bsa,autoplayTriggered:function(a,b,c){var d=new Zx;Oh(d,Mv,209,AD,a);c?yD(d,c,b):zD(d,b)},
webPlayerApiCalled:function(a,b,c){var d=new Zx;Oh(d,Wx,76,AD,a);c?yD(d,c,b):zD(d,b)},
embedsAdEvent:function(a,b,c){var d=new Zx;Oh(d,Lv,327,AD,a);c?yD(d,c,b):zD(d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=new Zx;Oh(d,Pv,251,AD,a);c?yD(d,c,b):zD(d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=new Zx;Oh(d,Ov,256,AD,a);c?yD(d,c,b):zD(d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=new Zx;Oh(d,Nv,257,AD,a);c?yD(d,c,b):zD(d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=new Zx;Oh(d,ex,332,AD,a);c?yD(d,c,b):zD(d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=new Zx;Oh(d,fx,330,AD,a);c?yD(d,c,b):zD(d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=new Zx;Oh(d,Qv,266,AD,a);c?yD(d,c,b):zD(d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=new Zx;Oh(d,gx,293,AD,a);c?yD(d,c,b):zD(d,b)},
adsClientStateChange:function(a,b,c){var d=new Zx;Oh(d,lu,197,AD,a);c?yD(d,c,b):zD(d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=new Zx;Oh(d,tw,2,AD,a);c?yD(d,c,b):zD(d,b)},
offlineStateSnapshot:function(a,b,c){var d=new Zx;Oh(d,Ux,22,AD,a);c?yD(d,c,b):zD(d,b)}};eS.getInstance=function(){var a=g.Ga("ytglobal.storage_");a||(a=new eS,g.Fa("ytglobal.storage_",a));return a};
eS.prototype.estimate=function(){var a,b,c;return g.A(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(kJa()):d.return()})};
g.Fa("ytglobal.storageClass_",eS);pA.prototype.KC=function(a){this.handleError(a)};
pA.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.gy("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.gy("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":mJa(this,b);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=g.hy("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.u}),this.j("idbTransactionAborted",a)}};g.k=nJa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=xba(a.interpreterSafeScript.privateDoNotAccessOrElseSafeScriptWrappedValue||"");else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=a.interpreterSafeUrl,g.Xd("From proto message. b/166824318"),e=$d(e.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue||"").toString());pJa(this,d,e,a.program,b,c)}else g.DD(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.qE()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return 2===this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;return this.qE()?this.VY({by:a}):null};
g.k.dispose=function(){this.qa()};
g.k.qa=function(){this.jP(null);this.qc(8)};
g.k.qE=function(){return!!this.j};
g.k.UY=function(a){return this.j.snapshot(a)};
g.k.VY=function(a){return this.j.SX(a)};
g.k.jP=function(a){g.Za(this.j);this.j=a};
g.k.qc=function(a){this.state=a};g.w(rJa,nJa);g.k=rJa.prototype;g.k.qa=function(){this.qc(8)};
g.k.jP=function(a){var b;null==(b=gS())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.SX.bind(a)},g.Fa("yt.abuse.playerAttLoader",b),g.Fa("yt.abuse.playerAttLoaderRun",function(c){return a.snapshot(c)})):(g.Fa("yt.abuse.playerAttLoader",null),g.Fa("yt.abuse.playerAttLoaderRun",null))};
g.k.qE=function(){return!!gS()};
g.k.UY=function(a){return gS().bgvmb(a)};
g.k.VY=function(a){return gS().bgvmc(a)};var sJa,vJa;g.fS=new rJa;sJa=0;vJa=[];var t_a=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var JJa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},KJa={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"},LJa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},IJa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},GJa={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"},HJa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"};g.w(RJa,g.C);RJa.prototype.qa=function(){this.T=this.u=this.B=this.I=this.j=this.J=this.D=this.C=void 0};var d4={},SJa=(d4["api.invalidparam"]=2,d4.auth=150,d4["drm.auth"]=150,d4["heartbeat.net"]=150,d4["heartbeat.servererror"]=150,d4["heartbeat.stop"]=150,d4["html5.unsupportedads"]=5,d4["fmt.noneavailable"]=5,d4["fmt.decode"]=5,d4["fmt.unplayable"]=5,d4["html5.missingapi"]=5,d4["html5.unsupportedlive"]=5,d4["drm.unavailable"]=5,d4["mrm.blocked"]=151,d4);g.w(lS,g.C);g.k=lS.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.D[a],e=this.state.J[a],f=d;if(e)if(c&&RD(c,Nbb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.t(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.DD(Error('Dangerous call to "'+a+'" with ['+b+"]."));return f.apply(this,b)}throw Error('Unknown API method: "'+a+'".');};
g.k.isExternalMethodAvailable=function(a,b){return this.state.D[a]?!0:!!(this.state.J[a]&&b&&RD(b,Nbb))};
g.k.getBandwidthEstimate=function(){return XJ(this.app.V().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.qS(this.app);b&&(a={gpu:(0,g.PY)(),d:a},b.handleError(new PK("feedback",a)))};
g.k.getInternalApiInterface=function(){return g.Zc(this.state.j)};
g.k.logApiCall=function(a,b,c){var d=this.app.V();d.Qn&&!this.state.T.has(a)&&(this.state.T.add(a),g.rA("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Qa,errorCode:c}))};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b||this.playerType)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c||this.playerType,b,d,e)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b||this.playerType,c,void 0===d?"":d,void 0===e?"":e)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Oh().C.j=(0,g.M)()};
g.k.seekToStreamTime=function(a,b,c){this.j&&TZ(this.app,!0,this.playerType);var d=this.app,e=this.playerType;b=void 0===b?!0:b;var f=void 0===f?!1:f;var h=g.qS(d,e),l=0;h&&h.getStreamTimeOffset()&&!h.Jd()&&(l=h.getStreamTimeOffset());VZ(d,a-l,b,c,e,f)};
g.k.getStreamTimeOffset=function(){var a=g.qS(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.qS(this.app,this.playerType);c&&(c=c.getVideoData())&&c.isLivePlayback&&VZ(this.app,Infinity,a,b,this.playerType)};
g.k.requestSeekToWallTimeSeconds=function(a){var b=g.qS(this.app,this.playerType);b&&b.PO(a)};
g.k.syncVolume=function(){var a=n0a(this.app);tS(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.qS(this.app,this.playerType);return a?g.Yl(a.Zr(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.Na("SUBSCRIBE",this.app.Hd().bk)};
g.k.channelUnsubscribed=function(){this.Na("UNSUBSCRIBE",this.app.Hd().bk)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.qS(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.qS(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.qS(this.app,this.playerType);a&&a.jg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.V().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.V().Rn=a};
g.k.setLivingRoomAppMode=function(a){this.app.V().livingRoomAppMode=kz("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,zxa)};
g.k.setEnablePrivacyFilter=function(a){this.app.V().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return V0a(this.app,a,b,c,d,e)};
g.k.getPlaylistId=function(){var a=this.app.getPlaylist();return a&&a.listId?a.listId.toString():null};
g.k.w3=function(a){a=void 0===a?this.playerType:a;var b=this.eU(a);if(a=g.qS(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.Aa;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?Se(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?Se(a.progressBarEndPosition.utcTimeMillis):
null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.d2;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=Kza(a);b.paidContentOverlayDurationMs=BM(a);a.j&&qF(a.j)&&(b.usingLocalMedia="true");b.transitionEndpointAtEndOfStream=a.transitionEndpointAtEndOfStream}return b};
g.k.eU=function(a){a=void 0===a?this.playerType:a;var b=WJa(this,a);if(a=g.qS(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.rd;b.isManifestless=jM(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Pl()&&(b.isEncrypted=!0);if(a.C)for(var c=g.t(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==
(e=d.value.video)?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.I)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}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.qS(this.app,1))?a.getPlayerState():null)?a.getData():null;return!!(a&&b&&g.S(a,128)&&5===TJa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.V().supportsGaplessAudio()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.sendAbandonmentPing=function(){var a=g.qS(this.app);a&&a.sendAbandonmentPing()};
g.k.updateDownloadState=function(a,b){return this.app.updateDownloadState(a,b)};
g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.A(function(l){return 1==l.j?(f=OT(e.app.wb()))?g.y(l,f.v8([a],b,c,d),3):l.Ka(2):2!=l.j&&(h=l.u,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){this.app.pauseVideoDownload(a)};
g.k.resumeVideoDownload=function(a){var b=this;return g.A(function(c){return c.return(b.app.resumeVideoDownload(a))})};
g.k.refreshAllStaleEntities=function(a){return this.app.refreshAllStaleEntities(a)};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.K("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Hd(),null==b?0:kM(b))){if(this.K("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.QI=b.autonavState);else if(void 0!==b.QI)a=b.QI,b.QI=void 0;else return}b1a(this.app,a)};
g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.qS(this.app,this.playerType))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a){var b=g.qS(this.app,this.playerType);b&&b.setUserAudio51Preference(a)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.qS(this.app,this.playerType))?void 0:a.getUserAudio51Preference())?b:1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){JC()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.V().jl!==a&&(this.app.V().jl=a,(a=g.qS(this.app,this.playerType))&&wZ(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.JT(this.app.wb()).IY(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.JT(this.app.wb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.JT(this.app.wb());a&&a.mY()};
g.k.isSubtitlesOn=function(){var a=g.JT(this.app.wb());return a?a.isSubtitlesOn():!1};
g.k.getPresentingPlayerType=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.mf()&&(a=1);return a};
g.k.getPlayerResponse=function(){var a=g.qS(this.app,this.playerType);return a?a.getVideoData().getPlayerResponse():null};
g.k.getHeartbeatResponse=function(){var a=g.qS(this.app,this.playerType);return a?a.getVideoData().getHeartbeatResponse():null};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Hj();if(!c)return null;b=c.levels[b];return b?(a=g.UL(b,a))?{column:a.column,columns:a.columns,height:a.Dv,row:a.row,rows:a.rows,url:a.url,width:a.NC}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Hj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Jd();return b.OE(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Hj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.ix(),minFrameIndex:b.BJ()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Hj();return a?a.levels.length:0};
g.k.X2=function(){return this.getAudioTrack()};
g.k.getAudioTrack=function(){var a=g.qS(this.app,this.playerType);return a?a.getAudioTrack():this.app.getVideoData().wm};
g.k.setAudioTrack=function(a,b){3===this.getPresentingPlayerType()&&JS(this.app.wb()).bp("control_set_audio_track",a);var c=g.qS(this.app,this.playerType);if(c)if(c.isDisposed()||g.S(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j)b=b?c.getCurrentTime()-c.Jd():NaN,c.Fa.setAudioTrack(a,b);else if(O_a(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d){var e=b[d];if(e.label===a.Jc.getName()){if(e.enabled){b=!1;break b}b=e.enabled=!0;break b}}b=void 0}b&&c.xa("hlsaudio",
{id:a.id})}else{b:if(b=c.videoData,b.I&&!LH(b.I)||a==b.Xn||!b.Nd||0>=b.Nd.length)b=!1;else{d=g.t(b.Nd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof VK)){b=!1;break b}var f=a.Jc.getId();e.B&&(Fxa(e.B,f),e.u=null)}b.Xn=a;b=!0}b&&oZ(c)&&(c.ma("internalaudioformatchange",c.videoData,!0),c.xa("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.Y2=function(){return this.getAvailableAudioTracks()};
g.k.getAvailableAudioTracks=function(){return g.qS(this.app,this.playerType).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.qS(this.app,this.playerType);return a&&a.getVideoData().u?nF(a.Df?oYa(a.Ji,a.Df,a.Su()):ZL):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.qS(this.app,this.playerType);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.JT(this.app.wb());return a?a.v3():null};
g.k.resetSubtitlesUserSettings=function(){g.JT(this.app.wb()).J8()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setInlinePreview=function(a){this.app.setInlinePreview(a)};
g.k.setGlobalCrop=function(a){this.app.jb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.zg();return this.app.getVisibilityState(this.wh(),this.isFullscreen()||g.kK(this.app.V()),a,this.isInline(),this.app.Ty(),this.app.Ry())};
g.k.isMutedByMutedAutoplay=function(){return this.app.oz};
g.k.isInline=function(){return this.app.isInline()};
g.k.setInternalSize=function(a,b){this.app.jb().setInternalSize(new g.He(a,b))};
g.k.Jd=function(){var a=g.qS(this.app);return a?a.Jd():0};
g.k.zg=function(){return this.app.zg()};
g.k.wh=function(){var a=g.qS(this.app,this.playerType);return!!a&&a.wh()};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.setSafetyMode=function(a){this.app.V().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.Lh=jz(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.zT(b).videoId||(a.index=b.index)):JZ(this.app,{list:a.list,index:a.index,playlist_length:d.length});pLa(this.app.getPlaylist(),a);this.Na("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.qS(this.app,this.playerType||1);c&&g.cM(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){rK(this.app.V(),a,!1)};
g.k.sendVideoStatsEngageEvent=function(a){this.app.sendVideoStatsEngageEvent(a,this.playerType)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.setInline=function(a){this.app.setInline(a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.jb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.qS(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.qS(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().u)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.qS(this.app,this.playerType);d&&g.L_a(d,g.kF(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.ma("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.sM.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.ke.includes(e)||(c.ke.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.wb(c.ke,e)&&(d=!0)});
d&&this.ma("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.ma("highlightSettingsMenu",a)};
g.k.openSettingsMenuItem=function(a){this.ma("openSettingsMenuItem",a)};
g.k.ma=function(a){var b=g.ya.apply(1,arguments);this.app.V().I&&("videodatachange"===a||"resize"===a||"cardstatechange"===a)&&this.app.Qp.ma.apply(this.app.Qp,[a].concat(g.u(b)));this.app.Mq.ma.apply(this.app.Mq,[a].concat(g.u(b)))};
g.k.Na=function(a){var b=g.ya.apply(1,arguments);this.app.Qp.ma.apply(this.app.Qp,[a].concat(g.u(b)));this.app.Mq.ma.apply(this.app.Mq,[a].concat(g.u(b)))};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.K=function(a){return this.app.V().K(a)};
g.k.qa=function(){if(this.element){var a=this.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(a[b]=null);this.element=null}g.C.prototype.qa.call(this)};var $Ja=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.w(sS,lS);g.k=sS.prototype;g.k.getApiInterface=function(){return Array.from(this.state.C)};
g.k.M1=function(a,b){if("string"===typeof b){var c=function(){var d=g.ya.apply(0,arguments);g.Ga(b).apply(window,d)};
this.state.I[b]=c}else c=b;this.app.Qp.subscribe(a,c)};
g.k.C8=function(a,b){if("string"===typeof b){var c=this.state.I[b];g.id(this.state.I,b);b=c}this.app.Qp.unsubscribe(a,b)};
g.k.getPlayerState=function(){return K0a(this.app)};
g.k.seekTo=function(a,b,c){var d=g.wK(this.app.V()),e=this.app.getVideoData().bl;if(!g.qz(d)||e)this.j&&TZ(this.app,!0,this.playerType),VZ(this.app,a,b,c,this.playerType)};
g.k.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.k.getMediaReferenceTime=function(){var a=this.app.Pf(this.playerType);return isNaN(a)?this.getCurrentTime():a};
g.k.getDuration=function(){return this.app.getDuration(this.playerType)};
g.k.getVolume=function(){return this.app.ji.volume};
g.k.setVolume=function(a){cKa(this,a)};
g.k.isMuted=function(){return this.app.ji.muted};
g.k.mute=function(){dKa(this)};
g.k.unMute=function(){eKa(this)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().D&&(a.pfp={enableIma:this.app.V().Z&&this.app.Hd().allowImaMonetization,autoplay:SM(this.app.Hd()),mutedAutoplay:this.app.Hd().mutedAutoplay});return a};
g.k.playVideo=function(){this.j&&TZ(this.app,!0,this.playerType);var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.mf()){var b=MT(this.app.wb());if(!y8a(b)){b.bp("control_play");return}if(z8a(b))return}3===a?JS(this.app.wb()).bp("control_play"):this.app.playVideo(a)};
g.k.pauseVideo=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.mf()){var b=MT(this.app.wb());if(!y8a(b)){b.bp("control_pause");return}}3===a?JS(this.app.wb()).bp("control_pause"):this.app.pauseVideo(a)};
g.k.stopVideo=function(){var a=this.app;a.Y.Dc&&a.Ta.ma("pageTransition");a.stopVideo()};
g.k.clearVideo=function(){};
g.k.getPlaybackRate=function(){return g.qS(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a){"number"===typeof a&&this.app.setPlaybackRate(a)};
g.k.getAvailablePlaybackRates=function(){var a=this.app.V();return a.uf?["https://web.archive.org/web/20230426095903/https://admin.youtube.com","https://web.archive.org/web/20230426095903/https://viacon.corp.google.com","https://web.archive.org/web/20230426095903/https://yurt.corp.google.com"].includes(a.C?a.ancestorOrigins[0]:window.location.origin)||a.Sn?Qcb:Pcb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.qS(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.setPlaybackQuality=function(){};
g.k.getAvailableQualityLevels=function(){var a=g.qS(this.app,this.playerType);return a?(a=g.Yl(a.Zr(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.getVideoBytesLoaded=function(){return this.getVideoLoadedFraction()};
g.k.getVideoBytesTotal=function(){return 1};
g.k.getVideoLoadedFraction=function(){return this.app.getVideoLoadedFraction()};
g.k.getVideoStartBytes=function(){return 0};
g.k.getSize=function(){var a=this.app.jb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.jb().resize()};
g.k.loadModule=function(a){"captions"===a&&(a=g.JT(this.app.wb()))&&!a.loaded&&a.load()};
g.k.unloadModule=function(a){"captions"===a&&(a=g.JT(this.app.wb()))&&a.loaded&&a.I9()};
g.k.loadVideoById=function(a,b,c){a&&(a=YJa(a,b,c),a=this.app.loadVideoByPlayerVars(a,this.playerType),this.j&&TZ(this.app,a,this.playerType))};
g.k.cueVideoById=function(a,b,c){a=YJa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.loadVideoByUrl=function(a,b,c){a=ZJa(a,b,c);a=this.app.loadVideoByPlayerVars(a,this.playerType);this.j&&TZ(this.app,a,this.playerType)};
g.k.cueVideoByUrl=function(a,b,c){a=ZJa(a,b,c);this.app.cueVideoByPlayerVars(a,this.playerType)};
g.k.getVideoUrl=function(){var a=this.app.V();if(a.oa)return"";var b=this.app.Hd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.getDebugText=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.V();if(a.oa)return"";var b=this.app.Hd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Hd().videoId,this.app.jb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.addCueRange=function(a,b,c){return U0a(this.app,a,b,c)};
g.k.removeCueRange=function(a){return W0a(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d);this.j&&TZ(this.app,!0,this.playerType)};
g.k.cuePlaylist=function(a,b,c,d){this.app.cuePlaylist(a,b,c,d)};
g.k.nextVideo=function(){this.app.nextVideo();this.j&&TZ(this.app,!0,this.playerType)};
g.k.previousVideo=function(){this.app.previousVideo();this.j&&TZ(this.app,!0,this.playerType)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a);this.j&&TZ(this.app,!0,this.playerType)};
g.k.setShuffle=function(a){var b=this.app.getPlaylist();b&&b.setShuffle(a)};
g.k.setLoop=function(a){var b=this.app.getPlaylist();b&&(b.loop=a)};
g.k.t3=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.zT(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.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();return"captions"===a?(a=g.JT(d))&&a.qh(b,c):null};
g.k.getOption=function(a,b,c){var d=g.qS(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.V().C?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.wb();if("captions"===a){var c;return(null==(c=g.JT(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.JT(b)&&a.push("captions"),a)};
g.k.getSphericalProperties=function(){var a=g.LS(this.app.wb());return a&&2!==this.playerType?a.getSphericalProperties():{}};
g.k.setSphericalProperties=function(a){if(a&&2!==this.playerType){var b=g.LS(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){this.app.V().Z&&this.app.Hd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.rfa(this.app.V().loaderUrl),eventType:a,youtubeHost:g.Ui(this.app.V().La)||""},g.rA("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.V(),b;this.K("embeds_enable_muted_autoplay")&&(null==(b=a.webPlayerContextConfig)?0:b.embedsEnableMutedAutoplay)&&!a.B&&this.app.mutedAutoplay()};g.w(xS,sS);g.k=xS.prototype;g.k.addCueRange=function(a,b,c,d,e){return U0a(this.app,a,b,c,d,e)};
g.k.getPlayerState=function(a){return K0a(this.app,a)};
g.k.nextVideo=function(a,b){this.app.nextVideo(a,b)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.seekBy=function(a,b,c){jKa(this)&&VZ(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.k.seekTo=function(a,b,c,d){jKa(this)&&VZ(this.app,a,b,c,d||this.playerType)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.getCurrentTime=function(a,b){if(2===this.app.getAppState()&&5===this.getPlayerState()){var c;return(null==(c=this.app.getVideoData())?void 0:c.startSeconds)||0}return a?this.app.getCurrentTime(a,b):sS.prototype.getCurrentTime.call(this)};
g.k.getDuration=function(a,b){if(3===this.getPresentingPlayerType()){var c;return(null==(c=JS(this.app.wb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):sS.prototype.getDuration.call(this)};
g.k.getProgressState=function(a){if(3===this.getPresentingPlayerType())return JS(this.app.wb()).getProgressState();var b=this.app.getVideoData(),c=g.qS(this.app,a)||g.qS(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=kKa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=kKa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.Pf(d),m=this.app.isAtLiveHead(d),n=this.app.Dy(),p=this.app.Id(d);var q=this.app;(d=g.qS(q,d))?(d=FZ(q,d),d=QZ(q,qW(d),d)):d=0;c=c.Jd();return{airingStart:e,airingEnd:h,allowSeeking:this.app.yh(),clipEnd:b.clipEnd,clipStart:b.clipStart,current:f,displayedStart:-1,duration:a,ingestionTime:l,isAtLiveHead:m,loaded:n,seekableStart:p,seekableEnd:d,offset:c,viewerLivestreamJoinTime:b.viewerLivestreamJoinTime}};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.rS(this);l&&l.handleGlobalKeyDown(a,b,c,d,e,f,h)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.rS(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.rS(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.rS(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.jb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.setFauxFullscreen=function(a){g.yz();this.app.cm(a?2:0)};
g.k.toggleFullscreen=function(){function a(c){g.DD(c)}
var b=this.app.V();if(b.externalFullscreen){if(!g.GK(b))return this.isFullscreen()?Az(window.document.documentElement):xz(window.document.documentElement).catch(a)}else if(g.yz()||b.T)return this.isFullscreen()?Az(zz()):"3"!==b.controlsType&&g.yz()?xz(this.app.jb().element).catch(a):(b=this.app.qe().ub())?xz(b).catch(a):Promise.reject(Error("Media element missing"));this.Na("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.cancelPlayback=function(){var a=MT(this.app.wb());a&&a.created&&a.destroy();(a=g.qS(this.app))&&a.stopVideo();(a=this.app.wb().df.get("endscreen"))&&a.m4()&&g.IS(this.app.Ta,!0)};
g.k.stopVideo=function(){var a=this.app.V();!a.K("disable_new_pause_state3")&&BK(a)&&"blazer"!==a.playerStyle?this.cancelPlayback():sS.prototype.stopVideo.call(this)};
g.k.getVideoStats=function(){return g.qS(this.app,this.playerType).lc(!0)};
g.k.toggleSubtitles=function(){var a=g.JT(this.app.wb());a&&a.w9()};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.setSphericalProperties=function(a){if(a){var b=g.LS(this.app.wb());b&&b.setSphericalProperties(a,!0)}};
g.k.getSphericalProperties=function(){var a=g.LS(this.app.wb());return a?a.getSphericalProperties():{}};
g.k.setVolume=function(a,b){cKa(this,a,b)};
g.k.mute=function(a){dKa(this,a)};
g.k.unMute=function(a){eKa(this,a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.PT(this.app.wb());b&&!b.loaded&&b.load()}sS.prototype.loadModule.call(this,a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.PT(this.app.wb());b&&b.loaded&&b.unload()}sS.prototype.unloadModule.call(this,a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.wb();switch(a){case "ad":return(a=MT(d))&&a.qh&&a.qh(b,c);case "kids":return(a=gMa(d))&&a.qh(b,c);case "remote":return(a=JS(d))&&a.qh(b,c);case "unplugged":return(a=g.NT(d))&&a.qh(b,c);case "annotations_module":return(a=g.PT(d))&&a.qh(b,c);case "creatorendscreen":return(a=hMa(d))&&a.qh(b,c)}return sS.prototype.setOption.call(this,a,b,c)};
g.k.getOptions=function(a){var b=this.app.wb();switch(a){case "ad":var c,d;return(null==(c=MT(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=JS(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.PT(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=hMa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.NT(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,v;return(null==(r=gMa(b))?void 0:null==(v=r.getOptions)?void 0:v.call(r))||null}if(!a){a=sS.prototype.getOptions.call(this);if(!a)return a;MT(b)&&a.push("ad");JS(b)&&a.push("remote");g.PT(b)&&a.push("annotations_module");hMa(b)&&a.push("creatorendscreen");g.NT(b)&&a.push("unplugged");gMa(b)&&a.push("kids");return a}return sS.prototype.getOptions.call(this,a)};
g.k.getPlayerSize=function(){var a=this.app.jb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.rS(this);a&&a.tp()};
g.k.setCenterCrop=function(a){this.app.jb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var hKa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pipable player_response playsinline plid post_live_playback postid ps public 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(" "),
iKa="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(" ");CS.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
CS.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)};
CS.prototype.clear=function(){for(var a=this.data.length,b=0;b<a;b++)this.data[b]=0;this.u=this.j=this.data.length-1};g.w(DS,g.C);DS.prototype.start=function(){this.u.start()};
DS.prototype.stop=function(){this.u.stop()};
DS.prototype.clear=function(){for(var a=g.t(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
DS.prototype.sample=function(){for(var a=g.t(this.B),b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new mKa(Ucb.has(b)));this.j.get(b).update(c())}this.u.start()};
var Ucb=new Set(["networkactivity"]);mKa.prototype.update=function(a){this.u?(this.buffer.add(a-this.j||0),this.j=a):this.buffer.add(a)};
mKa.prototype.clear=function(){this.buffer.clear();this.j=0};g.w(g.GS,xS);g.k=g.GS.prototype;g.k.Kn=function(a,b,c,d,e,f,h){return this.app.Kn(a,b,c,d,e,f,h)};
g.k.KB=function(){return this.app.KB()};
g.k.Yr=aa(5);g.k.wb=function(){return this.app.wb()};
g.k.Af=function(){var a=this.wb().df.get("endscreen");return!!a&&a.Af()};
g.k.getRootNode=function(){return this.jb().element};
g.k.V=function(){return this.app.V()};
g.k.Ey=aa(7);g.k.Mm=function(a){return this.app.Mm(a)};
g.k.Nm=function(){return this.DJ};
g.k.Cb=function(a){return this.app.Cb(a)};
g.k.jb=function(){return this.app.jb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.qS(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a){a=this.app;if(null==(b=a.Ke))b=void 0;else{var d=a.getCurrentTime();b=b.Np?void 0:null==(c=GW(b,1E3*d))?void 0:c.videoData}c=b||a.getVideoData()}else c=b;return c};
g.k.Hj=function(a){return this.app.Hj(a)};
g.k.wv=function(){return this.app.wv()};
g.k.isHdr=function(){var a=g.qS(this.app);return a?a.isHdr():!1};
g.k.PM=function(){return this.app.PM()};
g.k.Sb=function(){var a=this.V();if(!g.fK(a)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.Qa||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.getPlaylist())return!1;var b=g.rS(this);a=this.getVideoData();b=b?b.TL():this.getPlayerSize();var c;return!!(a&&(null==(c=a.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)&&b.width<=b.height)};
g.k.Vz=function(a){this.app.Vz(a)};
g.k.Ng=function(a,b,c,d,e){this.app.Eg(a,b,c,d,e)};
g.k.Uq=function(a,b){this.app.Uq(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){JS(this.app.wb()).bp("control_play");return}if(2===this.getPresentingPlayerType()){var b=MT(this.app.wb());if(b&&z8a(b))return}}catch(c){g.CD(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.qS(this.app,a).stopVideo()};
g.k.Dn=function(a){g.qS(this.app,a).Dn()};
g.k.addEventListener=function(a,b){this.app.Mq.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.app.Mq.unsubscribe(a,b)};
g.k.ma=function(a){xS.prototype.ma.call.apply(xS.prototype.ma,[this,a].concat(g.u(g.ya.apply(1,arguments))))};
g.k.Yl=function(a){this.app.Yl(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Zr=function(){var a={},b=g.qS(this.app).Zr();b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.LB=function(){return g.qS(this.app).LB()};
g.k.YB=aa(11);g.k.RH=function(a){this.app.RH(a);a&&b1a(this.app,a)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.ZB=aa(13);g.k.vn=aa(17);g.k.fz=function(a,b){this.wb().fz(a,b)};
g.k.nk=function(){var a=g.PT(this.wb());return!!a&&a.nk()};
g.k.xo=function(){var a=g.PT(this.wb());return!!a&&a.xo()};
g.k.Rz=function(a,b,c){var d=g.PT(this.wb());d&&d.Rz(a,b,c)};
g.k.productsInVideoVisibilityUpdated=function(a){this.ma("changeProductsInVideoVisibility",a)};
g.k.Qz=aa(18);g.k.jr=function(){var a=g.qS(this.app);a&&a.jr()};
g.k.SD=function(a){this.Na("onVideoAreaChange");this.Na(a?"onShowControls":"onHideControls")};
g.k.zk=function(a,b){var c=g.rS(this);if(c)return c.zk(a,b);a=this.app.jb().Ij();return new g.Em(0,0,a.width,a.height)};
g.k.Es=function(){return this.app.Es()};
g.k.AC=function(){var a=this.wb().df.get("heartbeat");return!!a&&a.AC()};
g.k.yh=function(){var a=this.V();if(a.Xa||a.disableSeek)return!1;var b=g.qS(this.app);if(!b)return!1;var c=b.getVideoData();return!c.De()||g.GM(c)||2===this.getPresentingPlayerType()&&!this.app.mf()||b.Mo()&&3!==this.getPresentingPlayerType()||g.qz(g.wK(a))&&!c.bl?!1:!0};
g.k.vC=function(){var a;return(null==(a=g.qS(this.app))?void 0:a.vC)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.Dt=function(){var a=g.qS(this.app);a&&a.Dt()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.ye=function(a,b,c){this.app.ZA(a,b,c)};
g.k.Ch=function(a,b){this.app.MH(a,b)};
g.k.Ff=function(a,b){var c=this.app,d=g.qS(c,b);d&&(a=d.Xi.Ff(a),b&&c.getPresentingPlayerType()!==b||DZ(c,"cuerangesremoved",a))};
g.k.WP=function(a,b){var c=this.app;b&&c.getPresentingPlayerType()!==b||DZ(c,"cuerangemarkersupdated",a)};
g.k.jg=function(a,b){(b=g.qS(this.app,b))&&b.jg(a)};
g.k.Mo=function(){var a=g.qS(this.app);return a?a.Mo():!0};
g.k.Yu=function(){var a=this.getVideoData();return!!a&&(a.Yu()||!!a.hlsFormats||!!a.tb)};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.setVolume=function(a){a=g.ze(a,0,100);tS(this.app,{volume:a,muted:this.isMuted()},!0)};
g.k.mute=function(){tS(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.k.unMute=function(){tS(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.qe=function(){return this.app.qe()};
g.k.Oh=function(){return this.app.Oh()};
g.k.Gj=function(a){return this.app.Gj(a)};
g.k.getBandwidthEstimate=function(){return XJ(this.V().schedule)};
g.k.sb=function(a,b,c,d){this.V().kb&&this.app.Ls.sb(a,b,c,void 0===d?!1:d)};
g.k.Zf=function(a,b,c){this.V().kb&&this.app.Ls.Zf(a,b,void 0===c?!1:c)};
g.k.og=function(a,b){this.V().kb&&this.app.Ls.og(a,b)};
g.k.qb=function(a,b){this.V().kb&&(this.app.Ls.click(a,b),this.ma("veClickLogged",a))};
g.k.Ua=function(a,b,c){if(this.V().kb){var d=this.app.Ls;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.FE(),f=a.visualElement;d.u.has(a)?e&&f&&(b?g.iP(e,[f]):g.jP(e,[f])):b&&!d.B.has(a)&&(e&&f&&g.hP(e,f,void 0,c),d.B.add(a))}};
g.k.Dk=function(a){return this.V().kb?this.app.Ls.Dk(a):!1};
g.k.Rc=function(){return g.qS(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Nq=function(){this.app.Nq()};
g.k.iy=function(a,b){return this.app.iy(a,b)};
g.k.mp=function(a){this.app.mp(a)};
g.k.GG=function(){this.app.GG()};
g.k.addPlayerResponsesForAssociation=function(a){this.app.addPlayerResponsesForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.getCpnByClipId=function(a){return this.app.getCpnByClipId(a)};
g.k.Kx=function(a,b,c,d,e,f,h){return this.app.Kx(a,b,c,d,e,f,h)};
g.k.rC=function(a,b,c,d,e,f,h){return this.app.rC(a,b,c,d,e,f,h)};
g.k.kt=function(a){this.app.kt(a)};
g.k.Fu=function(a,b){b=void 0===b?Infinity:b;this.app.Fu(void 0===a?-1:a,b)};
g.k.vI=function(a){var b;null==(b=g.JT(this.wb()))||b.vI(a)};
g.k.jA=function(a,b,c){this.app.jA(a,b,c)};
g.k.us=function(){return this.app.us()};
g.k.yF=function(a,b,c){this.app.yF(a,b,void 0===c?0:c)};
g.k.vv=function(){return this.app.vv()};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.mf=function(){return this.app.mf()};
g.k.Rs=function(a,b,c){return this.app.Rs(a,b,c)};
g.k.xa=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.qS(this.app,d))||e.xa(a,b,c)};
g.k.fI=function(){return this.app.fI()};
g.k.requestStorageAccess=function(a,b){this.app.requestStorageAccess(a,b)};
g.k.CN=function(a,b){this.ma("aduxmouseover",a,b)};
g.k.BN=function(a,b){this.ma("aduxmouseout",a,b)};
g.k.XN=function(a,b){this.ma("muteadaccepted",a,b)};
g.k.uG=function(){return this.app.jb().uG()};
g.k.Wz=function(a){this.app.jb().Wz(a)};
g.k.qp=function(){var a=g.qS(this.app);return a?a.qp():!1};
g.k.gP=function(a){this.app.gP(a)};g.w(g.PS,g.dQ);g.k=g.PS.prototype;g.k.show=function(){var a=this.ej();g.dQ.prototype.show.call(this);this.Ga&&(this.J.S(window,"blur",this.Fb),this.J.S(document,"click",this.Z_));a||this.ma("show",!0)};
g.k.hide=function(){var a=this.ej();g.dQ.prototype.hide.call(this);qKa(this);a&&this.ma("show",!1)};
g.k.od=function(a,b){this.u=a;this.Z.show();b?(this.T||(this.T=this.J.S(this.F,"appresize",this.xS)),this.xS()):this.T&&(this.J.Hc(this.T),this.T=void 0)};
g.k.BT=function(){this.u&&this.element&&(this.u.getAttribute("aria-haspopup"),this.u.setAttribute("aria-expanded","true"),this.focus())};
g.k.xS=function(){var a=g.rS(this.F);this.u&&a.Uv(this.element,this.u)};
g.k.Fb=function(){var a=this.ej();qKa(this);this.Z.hide();a&&this.ma("show",!1)};
g.k.Z_=function(a){var b=CO(a);b&&(g.zf(this.element,b)||this.u&&g.zf(this.u,b)||!g.fR(a))||this.Fb()};
g.k.ej=function(){return this.yb&&4!==this.Z.state};g.w(rKa,g.PS);rKa.prototype.od=function(){g.PS.prototype.od.call(this);this.dialog.focus()};g.w(g.SS,g.dQ);g.SS.prototype.updateValue=function(a,b){g.dQ.prototype.updateValue.call(this,a,b);this.ma("size-change")};g.w(VS,g.SS);VS.prototype.Zb=function(a){this.u&&this.F.Ua(this.element,this.j&&a)};
VS.prototype.C=function(){var a,b,c=null==(a=this.F.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.F.getVideoData())?void 0:d.accountLinkingConfig;US(this,lQ());var e;g.RS(this,WS(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.B=new rKa(this.F,WS(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),WS(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),WS(null==a?void 0:null==
(l=a.menuData)?void 0:l.confirmButtonText));g.E(this,this.B);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.u=!!d)&&this.F.og(this.element,d);this.Eb.Zc(this);this.j=!0}else!c&&this.j&&(this.Eb.jh(this),this.j=!1)};
VS.prototype.onClick=function(){this.u&&this.F.qb(this.element);this.Eb.Fb();this.B&&this.B.od()};g.w(XS,g.C);XS.prototype.K=function(a){return this.api.K(a)};g.w(YS,XS);YS.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.AQ=b};
YS.prototype.setAccountLinkState=function(a){this.api.getVideoData().AQ=a;this.api.jr()};
YS.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.ma("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.w(sKa,XS);new lA("yt.autonav");g.w(uKa,g.U);g.k=uKa.prototype;
g.k.SA=function(){var a;if(a=3!==this.F.getPresentingPlayerType()&&g.OS(this.F)&&400<=this.F.jb().getPlayerSize().width){a=this.Hd();if(this.F.V().K("client_respect_autoplay_switch_button_renderer"))var b=!!a.autoplaySwitchButtonRenderer;else{if(this.F.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c=!1;var d,e,f;if(null==(b=a.jd)?0:null==(d=b.contents)?0:null==(e=d.twoColumnWatchNextResults)?0:null==(f=e.autoplay)?0:f.autoplay)c=!0}else c=a.d1;b=!1!==c}a=b}if(a)this.j||
(this.j=!0,g.bQ(this,this.j),this.F.V().K("web_player_autonav_toggle_always_listen")||tKa(this),b=this.Hd(),this.yR(b.autonavState),this.F.Ua(this.element,this.j));else if(this.j=!1,g.bQ(this,this.j),!this.F.V().K("web_player_autonav_toggle_always_listen"))for(this.F.V().K("web_player_autonav_toggle_always_listen"),b=g.t(this.u),d=b.next();!d.done;d=b.next())this.Hc(d.value)};
g.k.yR=function(a){wKa(this)?this.isChecked=1!==a:((a=1!==a)||(g.Wz(),a=g.gy("web_autonav_allow_off_by_default")&&!g.Xz(0,141)&&g.ey("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Xz(0,140)),this.isChecked=a);vKa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.F.RH(this.isChecked?2:1);vKa(this);if(wKa(this)){var a=this.Hd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.F.Na("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.F.Na("innertubeCommand",a.onDisabledCommand)}this.F.qb(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Hd=function(){return this.F.getVideoData(1)};g.w(xKa,XS);g.w(aT,g.SS);aT.prototype.onClick=function(){bT(this,!this.checked);this.ma("select",this.checked)};
aT.prototype.getValue=function(){return this.checked};g.w(cT,aT);cT.prototype.Pa=function(a){a?this.j||(this.Eb.Zc(this),this.j=!0):this.j&&(this.Eb.jh(this),this.j=!1);this.j&&bT(this,yKa())};
cT.prototype.B=function(){g.Sp(this.element,"ytp-menuitem-highlight-transition-enabled")};
cT.prototype.C=function(a){var b=yKa();a!==b&&(b=g.Wz(),Zz(190,a),Zz(192,!0),b.save(),this.F.Na("cinematicSettingsToggleChange",a))};
cT.prototype.qa=function(){this.j&&this.Eb.jh(this);aT.prototype.qa.call(this)};g.w(BKa,XS);BKa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Pa(a);this.api.ma("onCinematicSettingsVisibilityChange",a)};g.w(dT,XS);dT.prototype.u=function(a){return void 0!==a.embargo};
dT.prototype.qa=function(){XS.prototype.qa.call(this);this.j={}};g.w(DKa,XS);
DKa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.V(),c=b.widgetReferrer,d=b.Oc,e=this.j,f="",h=b.webPlayerContextConfig;h&&(f=h.embedsIframeOriginParam||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(b.K("embeds_ve_conversion_param_renaming")?a.embeds_referring_euri=d:a.embeds_euri=d);b.C&&0<f.length&&(b.K("embeds_ve_conversion_param_renaming")?a.embeds_referring_origin=f:a.embeds_origin=f);0<e.length&&(b.K("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):
g.qz(g.wK(b))&&e.unshift(159628),b=e.join(","),b=g.Yy()?b:g.hg(b,4),a.source_ve_path=b);this.j.length=0};g.w(EKa,XS);g.w(eT,g.U);eT.prototype.onClick=function(){this.Ta.qb(this.element);this.Ta.Na("onFullerscreenEduClicked")};
eT.prototype.Pa=function(){this.Ta.isFullscreen()?this.u?this.j.hide():this.j.show():this.hide();this.Ta.Ua(this.element,this.Ta.isFullscreen()&&!this.u)};g.w(fT,XS);fT.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.Up(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Scroll for details"),g.bb(b,g.ZS(b.B.Ic(),b.element)),b.C=!0))};
fT.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.u=a,b.Pa())};g.w(FKa,g.U);g.w(IKa,XS);g.w(hT,XS);hT.prototype.seekToChapterWithAnimation=function(a){var b=this,c=g.rS(this.api);if(c&&!(0>a)){var d=this.api.getVideoData(),e=d.Pk;if(e&&a<e.length){e=g.t(e);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.index===a){JKa(this,c,f.startTime,f.title);return}}this.K("web_key_moments_markers")&&(d=d.JR)&&a<d.length&&d.forEach(function(h,l){l===a&&JKa(b,c,h.timeRangeStartMillis,h.title)})}};
hT.prototype.seekToTimeWithAnimation=function(a,b){var c=g.rS(this.api);c&&JKa(this,c,a,b)};g.w(iT,XS);iT.prototype.B=function(a){return void 0!==a.compositeEmbargo};
iT.prototype.qa=function(){XS.prototype.qa.call(this);this.u.clear()};g.w(NKa,XS);NKa.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;c=new Map(((null==e?void 0:e.qualityDetails)||[]).map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.t(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=$H(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=vM(a);uF(e);d=[];e=g.t(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===sF(a,f,this.api.V().D)&&d.push(f);b=b.concat(OKa(d,!1,c))}a=this.api.LB();b=b.concat(OKa(a,!0,c));c=[];if(this.api.K("web_player_enable_premium_hbr_in_h5_api"))return b=QKa(b),PKa(b),b;a={};b=g.t(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.w(g.kT,g.dE);g.k=g.kT.prototype;g.k.S=function(a,b){this.C.S(this.T,a,b,void 0,!this.j)};
g.k.cancel=function(){this.B&&(this.B=!1,this.ma("dragend",0,0,null));this.u&&(this.u=!1,this.ma("hoverend",0,0,null),lT(this),jT(this))};
g.k.Ev=function(a){lT(this);this.S(mT("move"),this.zR);this.S(mT("out"),this.nz);this.S("touchstart",this.FJ);this.j&&this.S(mT("down"),this.EJ);var b=g.BO(a);a=AO(a);this.u=!0;this.ma("hoverstart",a.x,a.y,b);this.ma("hovermove",a.x,a.y,b)};
g.k.zR=function(a){var b=g.BO(a);a=AO(a);if(this.D){var c=this.D;this.D=null;if((g.yO?c.relatedTarget:Gz(c))===b&&Ge(AO(c),a))return}this.ma("hovermove",a.x,a.y,b)};
g.k.nz=function(a){var b=AO(a),c=g.yO?a.relatedTarget:Gz(a);try{if(c&&g.zf(this.target,c)){this.D=a;this.ma("hovermove",b.x,b.y,c);return}}catch(d){}lT(this);jT(this);this.u=!1;this.ma("hoverend",b.x,b.y,c)};
g.k.T4=function(a){this.Ev(a);this.EJ(a)};
g.k.EJ=function(a){if("number"!==typeof a.button||0===a.button){lT(this);this.C.S(document,mT("move"),this.S4);this.C.S(document,mT("up"),this.b0);var b=g.BO(a);if(g.Pc)this.S("dragstart",this.K2);else if(g.EO(a),(g.HK||Im)&&b)a:{for(var c=b;c;){if(Bf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.activeElement.blur()}this.B=!0;a=AO(a);this.ma("dragstart",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)}};
g.k.K2=function(a){g.EO(a)};
g.k.S4=function(a){var b=g.BO(a);b===document&&(b=null);a=AO(a);this.ma("hovermove",a.x,a.y,b);this.ma("dragmove",a.x,a.y,b)};
g.k.b0=function(a){lT(this);this.B=!1;var b=CO(a),c=g.BO(a);a=AO(a);b&&g.zf(this.target,b)?(this.S(mT("move"),this.zR),this.S(mT("out"),this.nz),this.S(mT("down"),this.EJ),this.S("touchstart",this.FJ),this.ma("dragend",a.x,a.y,c)):(jT(this),this.u=!1,this.ma("dragend",a.x,a.y,c),this.ma("hoverend",a.x,a.y,c))};
g.k.FJ=function(a){var b=a.changedTouches[0];b&&(lT(this),this.S("touchmove",this.x9),this.S("touchend",this.AR),this.S("touchcancel",this.AR),this.I=b.identifier,a=g.BO(a),this.u||(this.u=!0,this.ma("hoverstart",b.pageX,b.pageY,a)),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&(this.B=!0,this.ma("dragstart",b.pageX,b.pageY,a),this.ma("dragmove",b.pageX,b.pageY,a)))};
g.k.x9=function(a){var b=RKa(this,a);b&&(this.j&&g.EO(a),a=g.BO(a),this.ma("hovermove",b.pageX,b.pageY,a),this.j&&this.ma("dragmove",b.pageX,b.pageY,a))};
g.k.AR=function(a){var b=RKa(this,a);if(b){lT(this);jT(this);this.u=!1;var c=g.BO(a);this.j&&(this.J||g.EO(a),this.B=!1,this.ma("dragend",b.pageX,b.pageY,c));this.ma("hoverend",b.pageX,b.pageY,c)}};
g.k.qa=function(){this.j&&(g.Pc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");lT(this);g.dE.prototype.qa.call(this)};g.w(SKa,g.U);g.w(nT,XS);nT.prototype.Z=function(a,b){this.T=[a,b];this.j.subscribe("dragmove",this.J,this);this.j.subscribe("dragend",this.I,this);this.delay.start()};
nT.prototype.ya=function(){this.B=!0;g.Hm(this.speedmasterUserEdu.j,"display","");this.api.setPlaybackRate(this.Aa);this.api.hideControls();this.api.playVideo();this.ea&&(this.ea.ignoreClick=!0)};
nT.prototype.J=function(a,b){if(!this.B){a=[a,b];var c=this.T;c&&a&&2===c.length&&2===a.length?(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.oa?this.T=a:VKa(this)}};
nT.prototype.I=function(){VKa(this)};g.w(WKa,XS);g.w(oT,g.ib);oT.prototype.preventDefault=function(){g.ib.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
oT.prototype.stopPropagation=function(){g.ib.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.w(g.pT,FO);g.k=g.pT.prototype;g.k.du=function(){return!0};
g.k.isView=function(){return!1};
g.k.QO=function(){return!1};
g.k.ub=function(){return this.j};
g.k.Qf=function(){return this.j.src};
g.k.SE=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.OH=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.xs=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.Ip=function(){return this.j.paused};
g.k.hh=function(){return this.j.seeking};
g.k.Qh=function(){return this.j.ended};
g.k.VF=function(){return this.j.muted};
g.k.Sz=function(a){hI();this.j.muted=a};
g.k.Vu=function(){return this.j.played||iI([],[])};
g.k.Nh=function(){try{var a=this.j.buffered}catch(b){}return a||iI([],[])};
g.k.dC=function(){return this.j.seekable||iI([],[])};
g.k.RE=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.xj=function(){return this.j.readyState};
g.k.WF=function(){return this.j.networkState};
g.k.Ye=function(){return this.j.error?this.j.error.code:null};
g.k.zf=function(){return this.j.error?this.j.error.message:""};
g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var a=this.j,b=a.webkitDroppedFrameCount;if(a=a.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:a}}return{}};
g.k.wh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.Dt=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():gI()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Bs=function(){var a=this.j;return new g.Fe(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Sm(this.j)};
g.k.setSize=function(a){g.Rm(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){hI();this.j.volume=a};
g.k.sL=function(a){this.I[a]||(this.j.addEventListener(a,this.listener),this.I[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.bB=aa(20);g.k.bE=aa(22);g.k.cE=aa(24);g.k.Ux=aa(26);g.k.AB=function(){return Az(this.j)};
g.k.Dr=function(a){g.Qp(this.j,a)};
g.k.getStyle=function(a){return g.Jm(this.j,a)};
g.k.JM=function(){return g.zf(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.qa=function(){for(var a=g.t(Object.keys(this.I)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.I[b]);FO.prototype.qa.call(this)};g.w(rT,g.U);g.w(tT,g.U);tT.prototype.show=function(){g.U.prototype.show.call(this);this.Pa()};
tT.prototype.hide=function(){g.U.prototype.hide.call(this);this.delay.stop()};
tT.prototype.Pa=function(){var a=(0,g.M)(),b=YKa(this.Ta);sT(this.j,b.bandwidth_samples);sT(this.C,b.network_activity_samples);sT(this.B,b.live_latency_samples);sT(this.u,b.buffer_health_samples);var c={};b=g.t(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.t(d.value);d=e.next().value;e=e.next().value;this.D[d]!==e&&(c[d]=" "+String(e));this.D[d]=e}this.update(c);a=25<(0,g.M)()-a?5E3:500;this.delay.start(a)};g.w(aLa,XS);g.w(uT,XS);uT.prototype.qa=function(){this.u&&(window.clearInterval(this.u),this.u=void 0);XS.prototype.qa.call(this)};
uT.prototype.FL=function(a){var b=this;return g.A(function(c){return b.j?c.return(b.j.ready().then(function(){b.vb.di("pot_if");return eLa(b,a)})):c.return(Promise.reject("web po not ready"))})};
uT.prototype.ZP=function(){this.j&&!this.j.isReady()&&vT(this)};g.w(fLa,XS);g.w(gLa,g.C);wT.prototype.EN=function(){this.u=(0,g.M)()};
wT.prototype.reset=function(){this.j=this.u=NaN};
wT.prototype.JN=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.1>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.T&&(c.cttAuthInfo={token:a.T,videoId:a.videoId});cF("seek",c);g.dF("cpn",a.clientPlaybackNonce,"seek");isNaN(this.u)||eF("pl_ss",this.u,"seek");eF(b,(0,g.M)(),"seek")}this.reset()}};g.k=hLa.prototype;g.k.reset=function(){$E(this.timerName)};
g.k.tick=function(a,b){eF(a,b,this.timerName)};
g.k.di=function(a){return Gta(a,this.timerName)};
g.k.Mt=function(a){xT(a,void 0,this.timerName)};
g.k.info=function(a,b){g.dF(a,b,this.timerName)};g.w(kLa,g.dE);g.k=kLa.prototype;g.k.Ck=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.No=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.ma("shuffle")};
g.k.wg=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.u.oa||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return AK(this.u,this.C[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.Cy(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Ak=function(){return this.u.getVideoUrl(g.zT(this).videoId,this.getPlaylistId())};
g.k.qa=function(){this.j=null;g.$a(this.items);g.dE.prototype.qa.call(this)};var AT=new Map;g.w(g.CT,g.dE);g.k=g.CT.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.qh=function(){};
g.k.Tk=function(){return!0};
g.k.qa=function(){this.loaded&&this.unload();g.dE.prototype.qa.call(this)};
g.k.lc=function(){return{}};
g.k.getOptions=function(){return[]};g.w(g.FT,g.C);g.k=g.FT.prototype;g.k.Qs=aa(29);g.k.cz=function(){};
g.k.gr=function(){};
g.k.Wu=function(){return""};
g.k.AO=aa(30);g.k.qa=function(){this.gr();g.C.prototype.qa.call(this)};g.w(g.GT,g.FT);g.GT.prototype.Qs=aa(28);g.GT.prototype.cz=function(a){if(this.audioTrack)for(var b=g.t(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.ET(this.j,c.value);a()};
g.GT.prototype.Wu=function(a,b){var c=a.Ze(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.Yy()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.aL(a));this.Y.K("web_player_topify_subtitles_for_shorts")&&this.B&&(d.xosf="1");this.Y.K("captions_url_add_ei")&&this.eventId&&(d.ei=this.eventId);Object.assign(d,this.Y.j);return ty(c,d)};
g.GT.prototype.gr=function(){this.u&&this.u.abort()};g.xLa.prototype.override=function(a){a=g.t(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;Object.defineProperty(this,b,{value:c})}};g.Vcb=new Map;g.w(g.IT,g.FT);g.IT.prototype.Qs=aa(27);
g.IT.prototype.cz=function(a){var b=this,c=this.B,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.JU&&(d.asrs=1);c=ty(c,d);this.gr();this.u=g.Hy(c,{format:"RAW",onSuccess:function(e){b.u=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"),v="true"===l.getAttribute("lang_default"),x="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.ET(b.j,new g.YK({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:x,vss_id:l,is_default:v}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.D[m.languageCode]=m.languageName,b.C.push(m)}a()},
withCredentials:!0})};
g.IT.prototype.Wu=function(a,b){var c=this.B;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.Y.K("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.aL(a));Object.assign(b,this.Y.j);return c=ty(c,b)};
g.IT.prototype.gr=function(){this.u&&this.u.abort()};TLa.prototype.reload=function(){var a=this,b;return g.A(function(c){if(1==c.j)return b=a,g.y(c,WebAssembly.instantiate(a.module,a.j),2);b.instance=c.u;a.exports=a.instance.exports;g.oa(c)})};g.w(VLa,g.C);g.k=VLa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){ZLa(this)&&KT(this,"captions");return!!g.JT(this)};
g.k.VD=function(){return this.F.getVideoData().VD()};
g.k.lP=function(){return this.F.getVideoData().lP()};
g.k.dT=function(){var a=this.df.get("heartbeat");KT(this,"heartbeat",!1,!0,this.dT);!a&&this.df.has("heartbeat")&&this.F.ma("offlineslatestatechange")};
g.k.isShortsModeEnabled=function(){var a=this.F,b;return a.K("shorts_mode_to_player_api")?!!a.Sb():!(null==(b=g.rS(a))||!b.Sb())};
g.k.cL=function(){KT(this,"annotations_module",!0,void 0,this.cL);var a=this.df.get("annotations_module");if(a)for(var b in this.u)if(this.u.hasOwnProperty(b)){var c=b;a.subscribe(c,this.u[c])}};
g.k.bL=function(){if(!this.df.get("ad"))try{WLa(this)?KT(this,"ad",!1,!0,this.bL):this.F.jg("ad")}catch(a){this.F.jg("ad"),g.CD(a)}};
g.k.Oh=function(){return this.j};
g.k.bq=function(){var a={},b=g.JT(this);b&&Object.assign(a,b.bq());return a};
g.k.fz=function(a,b){Object.assign(this.j,a||null);Object.assign(this.qF,b||null)};
g.k.qa=function(){g.C.prototype.qa.call(this);LT(this,1,!0);for(var a=g.t(Object.entries(jMa)),b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;this.B.has(c)&&AT.delete(b)}this.B.clear()};
var e4={},jMa=(e4.ad="ad.js",e4.annotations_module="annotations_module.js",e4.creatorendscreen="annotations_module.js",e4.embed="embed.js",e4.endscreen="endscreen.js",e4.heartbeat="heartbeat.js",e4.inline_preview="inline_preview.js",e4.kids="kids.js",e4.remote="remote.js",e4.miniplayer="miniplayer.js",e4.music="music.js",e4.offline="offline.js",e4.captions="captions.js",e4.unplugged="unplugged.js",e4.ux="ux.js",e4.webgl="webgl.js",e4.ypc="ypc.js",e4.ypc_clickwrap="ypc_clickwrap.js",e4.yto="yto.js",
e4);g.w(lMa,g.dE);g.k=lMa.prototype;g.k.d0=function(a){a=AO(a);if(!Ge(a,this.C)){var b=2;this.I&&(b|=8);this.C=a;QT(this,b,!0)}};
g.k.U4=function(){this.I&&QT(this,8,!0);QT(this,2,!1)};
g.k.Ev=function(a){var b=AO(a);Ge(b,this.C)||(this.C=b,(a=g.BO(a))&&this.fF(a)&&(QT(this,4,!0),this.j.Hc(this.B),this.B=this.j.S(this.target,"mouseover",this.nz),this.J=this.j.S(this.target,"mouseout",this.nz)))};
g.k.nz=function(a){a=g.yO?a.relatedTarget:Gz(a);a&&this.fF(a)||(this.C=new g.Fe(NaN,NaN),mMa(this))};
g.k.t4=function(){QT(this,1,!0)};
g.k.g3=function(a){a=g.BO(a);a instanceof Element&&!(0<a.tabIndex)||QT(this,1,!0)};
g.k.BR=function(){this.I=!0;this.j.Hc(this.D);this.D=this.j.S(document,"mouseup",this.e0)};
g.k.e0=function(){this.I=!1;QT(this,8,!1);this.j.Hc(this.D);this.D=this.j.S(this.target,"mousedown",this.BR)};
g.k.CR=function(a){if(a=(a=a.changedTouches)&&a[0])this.ya=a.identifier,this.j.Hc(this.T),this.T=this.j.S(this.target,"touchend",this.f0,void 0,!0),QT(this,1024,!0)};
g.k.f0=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.ya){var d=c;break}}d&&(this.j.Hc(this.T),this.T=this.j.S(this.target,"touchstart",this.CR,void 0,!0),QT(this,1024,!1))};
g.k.tp=function(){QT(this,2,!0)};
g.k.resize=function(){g.eI&&mMa(this)};
g.k.toString=function(){return g.dE.prototype.toString.call(this)};g.w(g.ST,g.U);
g.ST.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V(),c,d=b.K("shorts_mode_to_player_api")?!!this.api.Sb():!(null==(c=g.rS(this.api))||!c.Sb());g.Up(this.element,"ytp-shorts-mode",d);var e,f,h;c=null==(e=a.kf)?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:h.controlBgHtml;e=b.K("embeds_web_enable_video_data_refactoring_embedded_player_response")?!!c:a.D;a=b.K("embeds_web_enable_video_data_refactoring_embedded_player_response")?null!=c?c:"":a.Wc;
d?d=[{G:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},W:[{G:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",fill:"#f00","fill-rule":"evenodd"}},
{G:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:e&&(a||b.Z)?d=b.Z?[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{G:"path",N:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{G:"path",N:"ytp-dni-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{G:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.J?(g.Up(this.element,"ytp-touch-device",b.u),d=[b.J?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},W:[{G:"path",N:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{G:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{G:"path",N:"ytp-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{G:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):d=[{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},W:[{G:"path",N:"ytp-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}},{G:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",d);e&&(a||b.Z)&&(b=a?a:"#1f1f1f",this.Da("ytp-dni-large-play-button-bg").setAttribute("fill",
b))};
g.ST.prototype.show=function(){g.U.prototype.show.call(this);this.api.V().K("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.Ua(this.element,!0)};
g.ST.prototype.j=function(){this.api.GG();this.api.playVideo();this.api.getRootNode().focus()};
g.ST.prototype.u=function(a){g.EO(a)};g.w(g.TT,g.U);g.k=g.TT.prototype;g.k.show=function(){var a=this;this.yb||(this.C.S(this.api,"videodatachange",function(){g.Jp(a.j)}),this.C.S(this.api,"videoplayerreset",function(){g.Jp(a.j)}));
g.U.prototype.show.call(this)};
g.k.hide=function(){this.C&&g.Lz(this.C);g.U.prototype.hide.call(this)};
g.k.Db=function(){g.Jp(this.j)};
g.k.onStateChange=function(){g.Jp(this.j)};
g.k.Z7=function(){g.Jp(this.j)};
g.k.Jv=function(){this.u.stop();this.hide();g.Jp(this.j)};
g.k.Pa=function(){var a=this.api.Cb();if(3===this.api.getPresentingPlayerType()&&(a.bd()||g.QO(a)))var b=!0;else(b=this.api.wb().df.get("ypc"))&&b.mH?b=!0:(b=this.api.V(),b=g.S(a,2)&&g.HS(this.api)&&b.Wf?!0:!1);b?(b=!0,this.B.hide()):this.api.K("web_player_show_frame_zero_when_cued")&&nMa(this)?(b=!0,this.B.hide()):(this.B.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.S(a,2)&&!g.HS(this.api)&&!this.api.KB()||g.S(a,1024)?!0:!1);b?(this.u.show(),a=this.api.getVideoData(),this.N9(this.api.getPlaylist(),
a)):(this.u.hide(),g.S(a,1)||this.u.stop())};
g.k.N9=function(){var a=g.ya.apply(0,arguments),b=this.api.V(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.K("web_player_show_frame_zero_when_cued")&&d&&nMa(this))var e="https://web.archive.org/web/20230426095903/https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.t(a),b=a.next();!b.done;b=a.next())if(b=b.value,!(!b||b instanceof g.$L&&!b.videoId)){e=this.api.jb().getPlayerSize();d=g.CK();c=e.width*d;d*=e.height;if(1280<c||720<d)if(e=b.wg("maxresdefault.jpg"))break;if(640<c||480<d)if(e=b.wg("maxresdefault.jpg"))break;if(320<
c||180<d)if(e=b.wg("sddefault.jpg")||b.wg("hqdefault.jpg")||b.wg("mqdefault.jpg"))break;if(e=b.wg("default.jpg"))break}this.D.style.backgroundImage=e?"url("+e+")":""};g.w(g.XT,g.U);g.XT.prototype.resize=function(){};
g.XT.prototype.u=function(a){var b=this;vMa(this);var c=a.uL,d=this.api.V();"GENERIC_WITHOUT_LINK"!==c||d.J?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.ge(tMa(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Ak(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.J?this.ge(g.ZT(a.errorMessage)):this.ge(tMa(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//web.archive.org/web/20230426095903/https://www.youtube.com/supported_browsers")):(a=d.hostLanguage,c="//web.archive.org/web/20230426095903/https://support.google.com/youtube/?p=player_error1",a&&(c=
g.Zi(c,{hl:a})),this.ge(tMa(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Dc&&!d.C&&uMa(this,function(e){if(g.UT(e,b.api,!BK(b.api.V()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.Na("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var sMa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.w(aU,g.bI);aU.prototype.Hi=function(){zMa(this)};
aU.prototype.onVideoDataChange=function(){var a=this,b=this.F.getVideoData();if(b.De()){var c=this.F.V(),d=[],e="";if(!c.oa){var f=xMa(this);c.K("enable_web_media_session_metadata_fix")&&g.nK(c)&&f?(d=yMa(f.thumbnailDetails),f.album&&(e=g.gE(f.album))):d=[{src:b.wg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}zMa(this);wMa(this);this.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.KS(this.F)&&(this.j.delete("nexttrack"),this.j.delete("previoustrack"),
b=function(){a.F.nextVideo()},c=function(){a.F.previousVideo()});
bU(this,"nexttrack",b);bU(this,"previoustrack",c)}};
aU.prototype.qa=function(){this.mediaSession.playbackState="none";this.mediaSession.metadata=null;for(var a=g.t(this.j),b=a.next();!b.done;b=a.next())bU(this,b.value,null);g.bI.prototype.qa.call(this)};g.w(AMa,g.U);g.k=AMa.prototype;g.k.onClick=function(a){g.UT(a,this.F,!0);this.F.qb(this.element)};
g.k.onVideoDataChange=function(a,b){CMa(this,b);this.Te&&DMa(this,this.Te)};
g.k.yd=function(a){var b=this.F.getVideoData();this.videoId!==b.videoId&&CMa(this,b);this.j&&DMa(this,a.state);this.Te=a.state};
g.k.od=function(){this.C.show();this.F.ma("paidcontentoverlayvisibilitychange",!0);this.F.Ua(this.element,!0)};
g.k.Fb=function(){this.C.hide();this.F.ma("paidcontentoverlayvisibilitychange",!1);this.F.Ua(this.element,!1)};g.w(cU,g.U);cU.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.U.prototype.hide.call(this)};
cU.prototype.onStateChange=function(a){this.qc(a.state)};
cU.prototype.qc=function(a){if(g.S(a,128))var b=!1;else{var c;b=(null==(c=this.api.Rc())?0:c.Ns)?!1:g.S(a,16)||g.S(a,1)?!0:!1}b?this.j.start():this.hide()};
cU.prototype.u=function(){this.message.style.display="block"};g.w(dU,g.PS);dU.prototype.onMutedAutoplayChange=function(a){this.B&&(a?(EMa(this),this.od()):(this.j&&this.qb(),this.Fb()))};
dU.prototype.Hi=function(a){this.api.isMutedByMutedAutoplay()&&g.YN(a,2)&&this.Fb()};
dU.prototype.onClick=function(){this.api.unMute();this.qb()};
dU.prototype.qb=function(){this.clicked||(this.clicked=!0,this.api.qb(this.element))};g.w(g.eU,g.bI);g.k=g.eU.prototype;g.k.init=function(){var a=this.api,b=a.Cb();this.qC=a.getPlayerSize();this.pc(b);this.wp();this.Db();this.api.ma("basechromeinitialized",this)};
g.k.onVideoDataChange=function(a,b){var c=this.GC!==b.videoId;if(c||"newdata"===a)a=this.api,a.isFullscreen()||(this.qC=a.getPlayerSize());c&&(this.GC=b.videoId,c=this.Ve,c.Aa=b&&0<b.Wf.length?5E3:3E3,QT(c,512,!0),this.wp())};
g.k.G6=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.Ct=function(){var a=this.api.nk()&&this.api.xo();return this.pF||a||this.vM};
g.k.fl=function(){var a=!this.Ct();g.Up(this.api.getRootNode(),"ytp-menu-shown",!a)};
g.k.fF=function(a){try{if(!g.zf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Bf(a);)a=a===this.api.getRootNode()?null:g.yf(a);return!!a};
g.k.qn=function(a){var b=this.api.getRootNode();g.Up(b,"ytp-autohide",a);g.Up(b,"ytp-autohide-active",!0);this.BS.start(a?250:100);a&&(this.qI=!1,g.Sp(b,"ytp-touch-mode"));this.aL=!a;this.api.SD(!a)};
g.k.DN=function(){var a=this.api.getRootNode();g.Up(a,"ytp-autohide-active",!1)};
g.k.j7=function(){this.MP=!0};
g.k.i7=function(a){if(this.api.V().K("player_doubletap_to_seek")||this.api.V().T)this.MP=!1,this.NP&&this.Hc(this.NP),0===this.PC&&fU(this,a)?(this.nG(),this.uF.start(),this.NP=this.S(this.api.jb(),"touchmove",this.j7,void 0,!0)):this.uF.stop();IMa(this)&&fU(this,a)&&!this.api.V().T&&GMa(this);var b=this.TP.ej();if(bK&&JMa(this,a))b&&g.EO(a);else if(this.qI=!0,g.Qp(this.api.getRootNode(),"ytp-touch-mode"),this.Ve.tp(),this.api.V().K("player_doubletap_to_seek")||this.api.K("embeds_web_enable_mobile_dtts")&&
this.api.V().T)if(b=this.api.Cb(),!(!this.api.yh()||g.S(b,2)&&g.HS(this.api)||g.S(b,64))){b=Date.now()-this.hV;this.PC+=1;if(350>=b){this.vB=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.PC-1);0<d&&d<b?(this.GD(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.GD(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));g.EO(a)}else RT&&this.api.K("embeds_web_enable_mobile_dtts")&&
this.api.V().T&&fU(this,a)&&g.EO(a);this.hV=Date.now();this.qX.start()}};
g.k.h7=function(){this.uN.HU=!1;this.api.ma("rootnodemousedown",this.uN)};
g.k.d7=function(a){this.uN.HU||JMa(this,a)||(IMa(this)||!fU(this,a)||this.uF.isActive()||(g.GK(this.api.V())&&this.api.Cb().isCued()&&yT(this.api.Oh()),GMa(this),g.EO(a)),this.vB&&(this.vB=!1))};
g.k.requestStorageAccess=function(){var a=this;this.api.requestStorageAccess(function(){g.rA("embedsRequestStorageAccessResult",{resolved:!0});qwa(!0);xD();window.location.reload()},function(){g.rA("embedsRequestStorageAccessResult",{resolved:!1});
a.fA()})};
g.k.nG=function(){};
g.k.nw=function(){};
g.k.GD=function(){};
g.k.FD=function(){};
g.k.fA=function(){var a=this.api.Cb();g.S(a,2)&&g.HS(this.api)||(g.RO(a)?this.api.pauseVideo():(this.Fm&&(a=this.Fm.B,document.activeElement===a.element&&this.api.ma("largeplaybuttonclicked",a.element)),this.api.GG(),this.api.playVideo(),this.Fm&&document.activeElement===this.Fm.B.element&&this.api.getRootNode().focus()))};
g.k.e7=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!HMa(this,CO(a)))if(a=this.api.V(),(this.api.V().K("player_doubletap_to_seek")||this.api.K("embeds_web_enable_mobile_dtts")&&this.api.V().T)&&this.vB)this.vB=!1;else if(a.Tb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.lC(d)})}catch(d){this.lC(d)}};
g.k.lC=function(a){String(a).includes("fullscreen error")?g.DD(a):g.CD(a)};
g.k.f7=function(a){KMa(this,.3,a.scale);g.EO(a)};
g.k.g7=function(a){KMa(this,.1,a.scale)};
g.k.Db=function(){var a=this.api.jb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Ve.resize();g.Up(b,"ytp-fullscreen",this.api.isFullscreen());g.Up(b,"ytp-large-width-mode",c);g.Up(b,"ytp-small-mode",this.Wg());g.Up(b,"ytp-tiny-mode",this.xG());g.Up(b,"ytp-big-mode",this.yg());this.rg&&this.rg.resize(a)};
g.k.Hi=function(a){this.pc(a.state);this.wp()};
g.k.TD=aa(31);g.k.SL=function(){var a=!!this.GC&&!this.api.Af()&&!this.pO,b=2===this.api.getPresentingPlayerType(),c=this.api.V();if(b){if(S8a&&c.K("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=MT(this.api.wb());return a&&b.qP()}return a&&(c.vl||this.api.isFullscreen()||c.ij)};
g.k.wp=function(){var a=this.SL();this.To!==a&&(this.To=a,g.Up(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.pc=function(a){var b=a.isCued()||this.api.Mo()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.OP&&this.Hc(this.OP),this.OP=this.S(this.api.jb(),"touchstart",this.i7,void 0,b));var c=a.bd()&&!g.S(a,32)||this.api.AC();QT(this.Ve,128,!c);c=3===this.api.getPresentingPlayerType();QT(this.Ve,256,c);c=this.api.getRootNode();if(g.S(a,2))var d=[a4.ENDED];else d=[],g.S(a,8)?d.push(a4.PLAYING):g.S(a,4)&&d.push(a4.PAUSED),g.S(a,1)&&!g.S(a,32)&&d.push(a4.BUFFERING),g.S(a,32)&&
d.push(a4.SEEKING),g.S(a,64)&&d.push(a4.UNSTARTED);g.Mb(this.jK,d)||(g.Tp(c,this.jK),this.jK=d,g.Rp(c,d));d=this.api.V();var e=g.S(a,2);a:{var f=this.api.V();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.S(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:z8a(MT(this.api.wb())))||g.fK(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.Up(c,"ytp-hide-controls",!f);g.Up(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.vM);g.S(a,128)&&!g.fK(d)?(this.rg||
(this.rg=new g.XT(this.api),g.E(this,this.rg),g.NS(this.api,this.rg.element,4)),this.rg.u(a.getData()),this.rg.show()):this.rg&&(this.rg.dispose(),this.rg=null)};
g.k.Il=function(){return this.api.nk()&&this.api.xo()?(this.api.Rz(!1,!1),!0):this.api.Af()?(g.IS(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.vM=a;this.fl()};
g.k.yg=function(){return!1};
g.k.Wg=function(){return!this.yg()&&(480>this.api.getPlayerSize().width||290>this.api.getPlayerSize().height)};
g.k.xG=function(){return this.Wg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.Sb=function(){var a=this.api.V();if(!g.fK(a)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(a.Qa||"EMBEDDED_PLAYER_MODE_DEFAULT")||this.api.getPlaylist())return!1;a=this.qC;var b,c;return a.width<=a.height&&!!(null==(b=this.api.getVideoData())?0:null==(c=b.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)};
g.k.Ql=function(){return this.qI};
g.k.Nm=function(){return null};
g.k.PF=function(){return null};
g.k.zk=function(){var a=this.api.jb().getPlayerSize();return new g.Em(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Uv=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.jb().SD(a)};
g.k.tp=function(){};
g.k.TL=function(){return this.qC};g.w(gU,g.dE);g.k=gU.prototype;g.k.Jl=function(){return 1E3*this.api.getDuration(this.In,!1)};
g.k.stop=function(){this.j&&this.ud.Hc(this.j)};
g.k.yc=function(){var a=this.api.getProgressState(this.In);this.u={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.In,!1)};this.ma("h")};
g.k.getProgressState=function(){return this.u};
g.k.yd=function(a){g.YN(a,2)&&this.ma("g")};g.w(LMa,g.U);LMa.prototype.onClick=function(){this.F.Na("BACK_CLICKED")};g.w(g.hU,g.U);g.hU.prototype.show=function(){g.U.prototype.show.call(this);g.Jp(this.j)};
g.hU.prototype.hide=function(){this.u.stop();g.U.prototype.hide.call(this)};
g.hU.prototype.nw=function(a){a?g.S(this.F.Cb(),64)||iU(this,pQ(),"Play"):(a=this.F.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?iU(this,VEa(),"Stop live playback"):iU(this,REa(),"Pause"))};g.w(PMa,g.U);g.k=PMa.prototype;g.k.od=function(){this.F.V().K("player_new_info_card_format")&&g.Pp(this.F.getRootNode(),"ytp-cards-teaser-shown")&&!g.fK(this.F.V())||(this.u.show(),g.rC("iv-button-shown"))};
g.k.Fb=function(){g.rC("iv-button-hidden");this.u.hide()};
g.k.ej=function(){return this.yb&&4!==this.u.state};
g.k.qa=function(){this.j&&this.j();g.U.prototype.qa.call(this)};
g.k.f6=function(){g.rC("iv-button-mouseover")};
g.k.L5=function(a){this.F.nk();var b=g.Pp(this.F.getRootNode(),"ytp-cards-teaser-shown");g.rC("iv-teaser-clicked",b);var c;if(null==(c=this.F.getVideoData())?0:g.MM(c)){var d;a=null==(d=this.F.getVideoData())?void 0:g.NM(d);(null==a?0:a.onIconTapCommand)&&this.F.Na("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.F.Rz(!this.F.xo(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.w(QMa,g.U);g.k=QMa.prototype;g.k.CY=function(){this.F.nk()&&this.F.xo()&&this.ej()&&this.Fb()};
g.k.DP=function(){this.Fb();!this.F.nk()&&this.F.V().K("enable_error_corrections_infocards_icon_web")&&this.Wi.Fb();g.rC("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.F.Na("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.F.getVideoData())?0:g.MM(a))||this.F.Rz(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.g0=function(){g.rC("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.E7=function(a){this.F.V().K("player_new_info_card_format")&&!g.fK(this.F.V())?this.Wi.Fb():this.F.V().K("enable_error_corrections_infocards_icon_web")&&this.Wi.od();this.j||!a||this.F.xo()||this.u&&this.u.isActive()||(this.od(a),g.rC("iv-teaser-shown"))};
g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.fq(a.teaserText));this.C.show();this.u=new g.Ip(function(){g.Qp(this.F.getRootNode(),"ytp-cards-teaser-shown");this.F.K("player_new_info_card_format")&&!g.fK(this.F.V())&&this.Wi.Fb();this.aQ()},0,this);
this.u.start();OMa(this.Wi,!1);this.j=new g.Ip(this.Fb,580+a.durationMs,this);this.j.start();this.D.push(this.Ra("mouseover",this.ER,this));this.D.push(this.Ra("mouseout",this.DR,this))};
g.k.aQ=function(){if(!this.F.V().K("player_new_info_card_format")&&g.fK(this.F.V())&&this.yb){var a=this.Wi.element.offsetLeft,b=g.kf("ytp-cards-button-icon"),c=this.F.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Wi.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.m2=function(){g.fK(this.F.V())&&this.Z.Wg()&&this.yb&&this.T.start()};
g.k.ER=function(){this.I.stop();this.j&&this.j.isActive()&&this.J.start()};
g.k.DR=function(){this.J.stop();this.j&&!this.j.isActive()&&this.I.start()};
g.k.s6=function(){this.j&&this.j.stop()};
g.k.r6=function(){this.Fb()};
g.k.Zo=function(){this.Fb()};
g.k.Fb=function(){!this.j||this.B&&this.B.isActive()||(g.rC("iv-teaser-hidden"),this.C.hide(),g.Sp(this.F.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.Ip(function(){for(var a=g.t(this.D),b=a.next();!b.done;b=a.next())this.Hc(b.value);this.D=[];this.j&&(this.j.dispose(),this.j=null);OMa(this.Wi,!0);!this.F.nk()&&this.F.V().K("enable_error_corrections_infocards_icon_web")&&this.Wi.Fb()},330,this),this.B.start())};
g.k.ej=function(){return this.yb&&4!==this.C.state};
g.k.qa=function(){var a=this.F.getRootNode();a&&g.Sp(a,"ytp-cards-teaser-shown");g.$a(this.u,this.B,this.j);g.U.prototype.qa.call(this)};var f4={},kU=(f4.BUTTON="ytp-button",f4.TITLE_NOTIFICATIONS="ytp-title-notifications",f4.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",f4.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",f4.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",f4);g.w(RMa,g.U);RMa.prototype.onClick=function(){this.api.qb(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);SMa(this,a)};g.Fa("yt.pubsub.publish",g.rC);g.w(g.nU,g.U);g.nU.prototype.C=function(){window.location.reload()};
g.nU.prototype.j=function(){g.Qp(this.element,"ytp-sb-subscribed")};
g.nU.prototype.u=function(){g.Sp(this.element,"ytp-sb-subscribed")};g.w(VMa,g.U);g.k=VMa.prototype;g.k.I5=function(a){this.api.qb(this.j);var b=this.api.V();b.u||b.tb?XMa(this)&&(this.isExpanded()?this.nF():this.CF()):g.gk(oU(this));a.preventDefault()};
g.k.RO=function(){ZMa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.Sb=function(){return this.api.V().K("shorts_mode_to_player_api")?!!this.api.Sb():!!this.D.Sb()};
g.k.CF=function(){if(XMa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.B&&this.B.stop();this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&this.api.Ua(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.Ua(this.subscribeButton.element,!0));var a=this.api.getVideoData();
this.u&&a.ll&&a.subscribed&&(this.u.show(),this.api.Ua(this.u.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.nF=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.B&&this.B.start()};
g.k.Pa=function(){var a=this.api.V();g.bQ(this,!this.Sb());var b=this.api.getVideoData(),c=this.api.V(),d=this.api.getVideoData();this.C=!1;var e=!!d.videoId&&!!d.Lc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.C=e&&!!d.isListed&&!!d.author:g.fK(c)&&(this.C=e&&!(d.D&&c.Z)&&!c.B&&!(c.T&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.fK(a)?b.ph:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.C?(this.J!==c&&(this.j.style.backgroundImage="url("+c+")",this.J=c),this.api.K("web_player_ve_conversion_fixes_for_channel_info")||
this.updateValue("channelLink",oU(this)),this.updateValue("channelLogoLabel",g.lO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Qp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Sp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Ua(this.j,this.C&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.bk);this.updateValue("expandedTitle",b.ph);this.api.K("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",oU(this));this.updateValue("expandedSubtitle",
b.expandedSubtitle)};
g.k.Zb=function(a){g.U.prototype.Zb.call(this,a);this.api.Ua(this.j,this.C&&a)};g.w(pU,g.dQ);pU.prototype.cW=function(){this.ma("size-change")};
pU.prototype.focus=function(){this.content.focus()};
pU.prototype.WV=function(){this.ma("back")};g.w(g.qU,pU);g.k=g.qU.prototype;g.k.Zc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Jb(this.items,a,aNa);if(0<=b)return;b=~b;g.Gb(this.items,b,0,a);g.wf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.WN,this);this.menuItems.ma("size-change")};
g.k.jh=function(a){a.unsubscribe("size-change",this.WN,this);this.isDisposed()||(g.wb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.ma("size-change"))};
g.k.WN=function(){this.menuItems.ma("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++)if("true"===this.items[b].element.getAttribute("aria-checked")){a=b;break}this.items[a].focus()};
g.k.Ho=function(){return this.items.length};g.w(rU,g.SS);rU.prototype.j=function(a){g.DO(a)||39!==g.zO(a)||(this.element.click(),g.EO(a))};g.w(bNa,g.U);g.k=bNa.prototype;g.k.show=function(){g.U.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.U.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.h0=function(a){var b=CO(a),c=g.zf(this.closeButton.element,b),d=g.zf(this.element,b);a=this.j&&g.zf(this.j,b)&&g.fR(a);b&&(d||a)&&!c||this.hide()};
g.k.j0=function(){g.lU(g.yK(this.Ta.V()),"user_info_panel",function(){window.location.reload()})};
g.k.Pa=function(){var a=this.Ta.V(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.ri};this.updateValue("icon",SEa());this.updateValue("watchingAsUsername",g.lO("Watching as $USER_NAME",b));a.ri?this.updateValue("watchingAsEmail",g.lO("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.w(dNa,g.qU);g.k=dNa.prototype;g.k.q2=function(){this.Eb.Fb()};
g.k.Q5=function(){rMa(this.ey.element)};
g.k.b6=function(){uU(this,this.F.getDebugText(!0))&&iU(this.Qc,gQ())};
g.k.c6=function(){uU(this,this.F.getVideoEmbedCode())&&iU(this.Qc,MEa());this.F.qb(this.Jm.element);mR("EMBED",this.F.getVideoData().videoId,this.F.getPlaylistId()||"")};
g.k.d6=function(){uU(this,this.F.getVideoUrl(!0,!0))&&iU(this.Qc,lQ());this.F.qb(this.getVideoUrl.element);mR("COPY_PASTE",this.F.getVideoData().videoId,this.F.getPlaylistId()||"")};
g.k.e6=function(){uU(this,this.F.getVideoUrl(!1,!0))&&iU(this.Qc,lQ());this.F.qb(this.Pm.element);mR("COPY_PASTE",this.F.getVideoData().videoId,this.F.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Gk)||bT(b,a)};
g.k.l6=function(){this.F.setLoopVideo(this.Gk.getValue());this.Eb.Fb();this.F.qb(this.Gk.element)};
g.k.Z6=function(a){this.F.reportPlaybackIssue();if(g.UT(a,this.F,!BK(this.F.V()))){a=this.F;var b=a.app.getFeedbackProductData();a.Na("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Eb.Fb()};
g.k.s7=function(){g.pS(this.F,"isVideoInfoVisible",[])?g.pS(this.F,"hideVideoInfo",[]):g.pS(this.F,"showVideoInfo",[]);this.Eb.Fb()};
g.k.r7=function(){this.Uk&&(this.lE||(this.lE=new bNa(this.F,this.Uk.element),g.E(this,this.lE),g.NS(this.F,this.lE.element,4)),this.lE.show(),this.Eb.Fb(),this.F.qb(this.Uk.element))};
g.k.onVideoDataChange=function(a,b){this.iP(b)};
g.k.iP=function(a){var b=this.F.V(),c=2===this.F.getPresentingPlayerType(),d=!c||a.isListed;d=!b.oa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://web.archive.org/web/20230426095903/https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.u&&(b.fmt=a.u.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.Ga&&(b.partnerid=a.Ga),b=g.Zi("//web.archive.org/web/20230426095903/https://support.google.com/googleplay/",b));g.bQ(this.Jm,d&&a.allowEmbed);g.bQ(this.getVideoUrl,d);g.bQ(this.Pm,d&&
!a.isLivePlayback);this.HD.ge(b,"href");var e;null==(e=this.Gk)||g.bQ(e,!a.isLivePlayback&&!c);var f;null==(f=this.Uk)||g.bQ(f,!c)};
g.k.Zb=function(a){g.qU.prototype.Zb.call(this,a);this.F.Ua(this.Jm.element,a);this.F.Ua(this.getVideoUrl.element,a);this.F.Ua(this.Pm.element,a);this.Gk&&this.F.Ua(this.Gk.element,a);this.Uk&&this.F.Ua(this.Uk.element,a)};g.w(g.vU,g.PS);g.k=g.vU.prototype;g.k.show=function(){g.PS.prototype.show.call(this);this.lA()};
g.k.hide=function(){g.PS.prototype.hide.call(this);1<this.j.length&&g.wU(this)};
g.k.lA=function(){hNa(this);this.yb&&(fNa(this),g.Rm(this.element,this.size))};
g.k.nj=function(){var a=this.j.pop();gNa(this,a,this.j[this.j.length-1],!0)};
g.k.k0=function(a){if(!g.DO(a))switch(g.zO(a)){case 27:this.Fb();g.EO(a);break;case 37:1<this.j.length&&this.nj();g.EO(a);break;case 39:g.EO(a)}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.qa=function(){g.PS.prototype.qa.call(this);this.D&&this.D.dispose();this.I&&this.I.dispose()};g.w(g.xU,g.vU);g.k=g.xU.prototype;g.k.m0=function(a){var b=CO(a);if(!(b&&(Df(b,"a")||Df(b,null,"ytp-no-contextmenu"))||this.yb)){var c;this.ya=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Fe(a.clientX,a.clientY):new g.Fe(0,0);this.oa.start()}};
g.k.GW=function(){this.oa.stop()};
g.k.J7=function(){this.open(this.ya)};
g.k.BT=function(){if(this.B&&eNa(this.B)){var a=eNa(this.B).element;a.tabIndex=-1;a.focus()}else this.element.tabIndex=-1,this.element.focus()};
g.k.show=function(){this.B||(this.B=new dNa(this.F,this.Aa,this,this.Qc),g.E(this,this.B),g.tU(this,this.B));this.B.onLoopChange(this.F.getLoopVideo());g.vU.prototype.show.call(this);this.F.Ua(this.element,!0);this.B.Zb(!0)};
g.k.hide=function(){jNa(this);g.vU.prototype.hide.call(this);this.F.Ua(this.element,!1);this.B&&this.B.Zb(!1)};
g.k.O5=function(a){var b=CO(a);this.yb||b&&(Df(b,"a")||Df(b,null,"ytp-no-contextmenu"))||(g.EO(a),this.open(AO(a)))};
g.k.od=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Fe(b.x,b.y))}g.vU.prototype.od.call(this,a)};
g.k.open=function(a){kNa(this);var b=this.F.getVideoData();g.Up(this.element,"ytp-dni",b.D);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.vU.prototype.od.call(this);var c=document.body;b=new xm(0,Infinity,Infinity,0);var d=Ve(c);for(var e=d.j.body,f=d.j.documentElement,h=ica(d.j);c=yia(c);)if(!(g.mf&&0==c.clientWidth||g.Pc&&0==c.clientHeight&&c==e)&&c!=e&&c!=f&&"visible"!=Lm(c,"overflow")){var l=g.Pm(c),m=new g.Fe(c.clientLeft,c.clientTop);l.x+=m.x;l.y+=m.y;b.top=Math.max(b.top,
l.y);b.right=Math.min(b.right,l.x+c.clientWidth);b.bottom=Math.min(b.bottom,l.y+c.clientHeight);b.left=Math.max(b.left,l.x)}e=h.scrollLeft;h=h.scrollTop;b.left=Math.max(b.left,e);b.top=Math.max(b.top,h);d=d.j;d=hca(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&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.Em(0,0,0,0);d.left=a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Nm(this.element,new g.Fe(d.left,d.top));g.Lz(this.C);this.C.S(document,"contextmenu",this.W5);this.C.S(this.F,"fullscreentoggled",this.onFullscreenToggled);this.C.S(this.F,"pageTransition",this.l0)};
g.k.W5=function(a){if(!g.DO(a)){var b=CO(a);g.zf(this.element,b)||this.Fb();this.F.V().disableNativeContextMenu&&g.EO(a)}};
g.k.onFullscreenToggled=function(){this.Fb();kNa(this)};
g.k.l0=function(){this.Fb()};g.w(g.yU,g.U);g.yU.prototype.onClick=function(){var a=this,b,c,d,e;return g.A(function(f){if(1==f.j)return b=a.api.V(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.y(f,nNa(a,e),2);f.u&&mNa(a);a.api.qb(a.element);g.oa(f)})};
g.yU.prototype.Pa=function(){this.updateValue("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=lNa(this);g.Up(this.element,"ytp-copylink-button-visible",
this.visible);g.bQ(this,this.visible);$S(this.tooltip);this.api.Ua(this.element,this.visible&&this.ea)};
g.yU.prototype.Zb=function(a){g.U.prototype.Zb.call(this,a);this.api.Ua(this.element,this.visible&&a)};
g.yU.prototype.qa=function(){g.U.prototype.qa.call(this);g.Sp(this.element,"ytp-copylink-button-visible")};g.w(AU,g.U);AU.prototype.show=function(){g.U.prototype.show.call(this);g.Jp(this.u)};
AU.prototype.hide=function(){this.C.stop();this.B=0;g.Sp(this.element,"ytp-chapter-seek");g.Sp(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)};
AU.prototype.GD=function(a,b,c,d){this.B=a===this.I?this.B+d:d;this.I=a;var e=-1===a?this.T:this.J;e&&this.F.qb(e);this.D?this.u.stop():g.Lp(this.u);this.C.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.F.jb().getPlayerSize().height;e=this.F.jb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*f;f=
h/2;var l=this.Da("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.F.jb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Da("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");oNa(this,this.D?this.B:d)};g.w(EU,g.U);g.k=EU.prototype;g.k.YG=function(){};
g.k.WC=function(){};
g.k.Yz=function(){return!0};
g.k.g9=function(){if(this.expanded){this.Ga.show();var a=this.B.element.scrollWidth}else a=this.B.element.scrollWidth,this.Ga.hide();this.fb=34+a;g.Up(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.fb)+"px";this.Aa.start()};
g.k.S2=function(){this.badge.element.style.width=(this.expanded?this.fb:34)+"px";this.La.start()};
g.k.K9=function(){g.Up(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.oP=function(){return this.Z||this.C||!this.D};
g.k.dl=function(){this.Yz()?this.I.show():this.I.hide();qNa(this)};
g.k.n0=function(){this.enabled=!1;this.dl()};
g.k.J9=function(){this.dl()};
g.k.F5=function(a){this.Xa=1===a;this.dl();g.Up(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Z5=function(){g.Up(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.F.isFullscreen());this.dl()};g.w(sNa,EU);g.k=sNa.prototype;g.k.Yz=function(){return!!this.J};
g.k.oP=function(){return!!this.J};
g.k.YG=function(a){a.target===this.dismissButton.element?a.preventDefault():FU(this,!1)};
g.k.WC=function(){FU(this,!0);this.NH()};
g.k.W8=function(a){var b;if(a.id!==(null==(b=this.J)?void 0:b.identifier)){this.NH();b=g.t(this.T);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0,f=void 0;(c=null==(e=d)?void 0:null==(f=e.bannerData)?void 0:f.itemData)&&d.identifier===a.id&&(this.J=d,cQ(this.banner,c.accessibilityLabel||""),f=d=void 0,e=null==(f=g.K(g.K(c.onTapCommand,g.gT),g.pM))?void 0:f.url,this.banner.update({url:e,thumbnail:null==(d=(c.thumbnailSources||[])[0])?void 0:d.url,title:c.productTitle,vendor:c.vendorName,
price:c.price}),c.trackingParams&&(this.j=!0,this.F.og(this.badge.element,c.trackingParams)),this.I.show(),DU(this))}}};
g.k.NH=function(){this.J&&(this.J=void 0,this.dl())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&tNa(this);var d,e;if(null==b?0:null==(d=b.getPlayerResponse())?0:null==(e=d.videoDetails)?0:e.isLiveContent){a=b.shoppingOverlayRenderer;var f=null==a?void 0:a.featuredProductsEntityKey,h;if(b=null==a?void 0:null==(h=a.dismissButton)?void 0:h.trackingParams)this.F.og(this.dismissButton.element,b),this.u=!0;var l;(h=null==a?void 0:null==(l=a.dismissButton)?void 0:l.a11yLabel)&&cQ(this.dismissButton,g.gE(h));this.T.length||uNa(this,f);
var m;null==(m=this.Ja)||m.call(this);this.Ja=g.sM.subscribe(function(){uNa(c,f)})}else this.NH()};
g.k.qa=function(){tNa(this);EU.prototype.qa.call(this)};g.w(xNa,g.U);xNa.prototype.onClick=function(){this.F.qb(this.element,this.u)};g.w(yNa,g.PS);g.k=yNa.prototype;g.k.show=function(){g.PS.prototype.show.call(this);this.F.ma("infopaneldetailvisibilitychange",!0);this.F.Ua(this.element,!0);zNa(this,!0)};
g.k.hide=function(){g.PS.prototype.hide.call(this);this.F.ma("infopaneldetailvisibilitychange",!1);this.F.Ua(this.element,!1);zNa(this,!1)};
g.k.getId=function(){return this.C};
g.k.Ho=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.lm)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.lm)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.lm)?void 0:h.trackingParams)||null;this.F.og(this.element,a);h=g.t(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.lm)?0:l.ctaButtons)for(b=g.t(b.lm.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.K(l.value,dab))l=new xNa(this.F,
l,this.j),l.De&&(this.itemData.push(l),l.Ea(this.items))}};
g.k.qa=function(){this.hide();g.PS.prototype.qa.call(this)};g.w(CNa,g.U);g.k=CNa.prototype;g.k.onVideoDataChange=function(a,b){BNa(this,b);this.Te&&ENa(this,this.Te)};
g.k.yd=function(a){var b=this.F.getVideoData();this.videoId!==b.videoId&&BNa(this,b);ENa(this,a.state);this.Te=a.state};
g.k.dW=function(a){(this.C=a)?this.hide():this.j&&this.show()};
g.k.q0=function(){this.u||this.od();this.showControls=!0};
g.k.o0=function(){this.u||this.Fb();this.showControls=!1};
g.k.od=function(){this.j&&!this.C&&(this.B.show(),this.F.ma("infopanelpreviewvisibilitychange",!0),this.F.Ua(this.element,!0))};
g.k.Fb=function(){this.j&&!this.C&&(this.B.hide(),this.F.ma("infopanelpreviewvisibilitychange",!1),this.F.Ua(this.element,!1))};
g.k.Z8=function(){this.u=!1;this.showControls||this.Fb()};var Wcb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(Wcb).reduce(function(a,b){a[Wcb[b]]=b;return a},{});
var Xcb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Xcb).reduce(function(a,b){a[Xcb[b]]=b;return a},{});
var Ycb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Ycb).reduce(function(a,b){a[Ycb[b]]=b;return a},{});var Zcb,$cb;Zcb=[{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"}];$cb=[{option:0,text:GU(0)},{option:.25,text:GU(.25)},{option:.5,text:GU(.5)},{option:.75,text:GU(.75)},{option:1,text:GU(1)}];
g.KU=[{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:Zcb},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:GU(.5)},{option:-1,text:GU(.75)},{option:0,text:GU(1)},{option:1,text:GU(1.5)},{option:2,
text:GU(2)},{option:3,text:GU(3)},{option:4,text:GU(4)}]},{option:"background",text:"Background color",options:Zcb},{option:"backgroundOpacity",text:"Background opacity",options:$cb},{option:"windowColor",text:"Window color",options:Zcb},{option:"windowOpacity",text:"Window opacity",options:$cb},{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:GU(.25)},{option:.5,text:GU(.5)},{option:.75,text:GU(.75)},{option:1,text:GU(1)}]}];var adb=[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(g.JU,g.bI);g.k=g.JU.prototype;
g.k.oU=function(a){var b=!1,c=g.zO(a),d=CO(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.wS(this.api.app)||adb.includes(c)),f=!1,h=!1,l=this.api.V();g.DO(a)?(e=!1,h=!0):l.aj&&!g.wS(this.api.app)&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"===d.getAttribute("role");
break;case 38:case 40:m=d.getAttribute("role"),d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);jU(this.Qc,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);jU(this.Qc,f,!0);this.api.setVolume(f);
h=f=!0;break;case 36:this.api.yh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0),h=f=!0);break;case 35:this.api.yh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity),h=f=!0)}}b&&IU(this,!0);(b||h)&&this.Ve.tp();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code))&&g.EO(a);l.I&&(a={keyCode:g.zO(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.DO(a),fullscreen:this.api.isFullscreen()},this.api.Na("onKeyPress",a))};
g.k.pU=function(a){this.handleGlobalKeyUp(g.zO(a),a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)};
g.k.handleGlobalKeyUp=function(a){var b=!1,c=g.LS(this.api.wb());c&&(c=c.Et)&&c.yb&&(c.kU(a),b=!0);9===a&&(IU(this,!0),b=!0);return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f){var h=!1;e=this.api.V();if(e.aj&&!g.wS(this.api.app))return h;var l=g.LS(this.api.wb());if(l&&(l=l.Et)&&l.yb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:h=l.jU(a)}e.J||h||(h=f||String.fromCharCode(a).toLowerCase(),this.u+=h,0==="awesome".indexOf(this.u)?(h=!0,7===this.u.length&&jla(this.api.getRootNode(),"ytp-color-party")):(this.u=h,h=0==="awesome".indexOf(this.u)));if(!h&&(!g.wS(this.api.app)||adb.includes(a))){l=this.api.getVideoData();
var m,n;f=null==(m=this.Kc)?void 0:null==(n=m.u)?void 0:n.isEnabled;m=l?l.Pk:[];n=ZW?d:c;switch(a){case 80:b&&!e.Xa&&(iU(this.Qc,UEa(),"Previous"),this.api.previousVideo(),h=!0);break;case 78:b&&!e.Xa&&(iU(this.Qc,mQ(),"Next"),this.api.nextVideo(),h=!0);break;case 74:this.api.yh()&&(this.api.startSeekCsiAction(),this.j?BU(this.j,-1,10):iU(this.Qc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate()),h=!0);break;case 76:this.api.yh()&&(this.api.startSeekCsiAction(),this.j?BU(this.j,1,10):iU(this.Qc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate()),h=!0);break;case 37:this.api.yh()&&(this.api.startSeekCsiAction(),n?(n=HNa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(pNa(this.j,-1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(this.j?BU(this.j,-1,5):iU(this.Qc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate()),h=!0));break;case 39:this.api.yh()&&(this.api.startSeekCsiAction(),n?(n=GNa(m,1E3*this.api.getCurrentTime()),-1!==n&&null!=this.j&&(pNa(this.j,1,m[n].title),this.api.seekTo(m[n].startTime/1E3),h=!0)):(null!=this.j?BU(this.j,1,5):iU(this.Qc,{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate()),h=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),jU(this.Qc,this.api.getVolume(),!1)):(this.api.mute(),jU(this.Qc,0,!0));h=!0;break;case 32:case 75:e.Xa||(LNa(this)&&this.api.Na("onExpandMiniplayer"),f?this.Kc.AL():(h=!g.RO(this.api.Cb()),this.Qc.nw(h),h?this.api.playVideo():this.api.pauseVideo()),h=!0);break;case 190:b?e.uf&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h+.25,!0),MMa(this.Qc,!1),h=!0):this.api.yh()&&(this.step(1),h=
!0);break;case 188:b?e.uf&&(h=this.api.getPlaybackRate(),this.api.setPlaybackRate(h-.25,!0),MMa(this.Qc,!0),h=!0):this.api.yh()&&(this.step(-1),h=!0);break;case 70:oMa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),h=!0);
break;case 27:f?(this.Kc.Vr(),h=!0):this.C()&&(h=!0)}if("3"!==e.controlsType)switch(a){case 67:g.JT(this.api.wb())&&(e=this.api.getOption("captions","track"),this.api.toggleSubtitles(),NMa(this.Qc,!e||e&&!e.displayName),h=!0);break;case 79:LU(this,"textOpacity");break;case 87:LU(this,"windowOpacity");break;case 187:case 61:LU(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:LU(this,"fontSizeIncrement",!0,!0)}var p;b||c||d||(48<=a&&57>=a?p=a-48:96<=a&&105>=a&&(p=a-96));null!=p&&this.api.yh()&&
(this.api.startSeekCsiAction(),a=this.api.getProgressState(),this.api.seekTo(p/10*(a.seekableEnd-a.seekableStart)+a.seekableStart),h=!0);h&&this.Ve.tp()}return h};
g.k.step=function(a){this.api.yh();if(g.QO(this.api.Cb())){var b=this.api.getVideoData().u;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30))}};
g.k.qa=function(){g.Lp(this.B);g.bI.prototype.qa.call(this)};g.w(g.MU,g.U);g.MU.prototype.Sq=aa(33);
g.MU.prototype.Pa=function(){var a=this.F.V(),b=a.B||this.F.K("web_player_hide_overflow_button_if_empty_menu")&&this.Bh.Bf(),c=g.fK(a)&&g.KS(this.F)&&g.S(this.F.Cb(),128),d=this.F.getPlayerSize(),e=a.K("shorts_mode_to_player_api")?this.F.Sb():this.j.Sb();this.visible=this.j.Wg()&&!c&&240<=d.width&&!(this.F.getVideoData().D&&a.Z)&&!b&&!this.u&&!e;g.Up(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&$S(this.tooltip);this.F.Ua(this.element,this.visible&&this.ea)};
g.MU.prototype.Zb=function(a){g.U.prototype.Zb.call(this,a);this.F.Ua(this.element,this.visible&&a)};
g.MU.prototype.qa=function(){g.U.prototype.qa.call(this);g.Sp(this.element,"ytp-overflow-button-visible")};g.w(MNa,g.PS);g.k=MNa.prototype;g.k.r0=function(a){a=CO(a);g.zf(this.element,a)&&(g.zf(this.j,a)||g.zf(this.closeButton,a)||QS(this))};
g.k.Fb=function(){g.PS.prototype.Fb.call(this);this.tooltip.rk(this.element)};
g.k.show=function(){this.yb&&this.F.ma("OVERFLOW_PANEL_OPENED");g.PS.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ONa(this,!0)};
g.k.hide=function(){g.PS.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ONa(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.ej()&&QS(this)};
g.k.Bf=function(){return 0===this.actionButtons.length};
g.k.focus=function(){for(var a=g.t(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.yb){b.focus();break}};g.w(PNa,g.U);PNa.prototype.onClick=function(a){g.UT(a,this.api)&&this.api.playVideoAt(this.index)};g.w(QNa,g.PS);g.k=QNa.prototype;g.k.show=function(){g.PS.prototype.show.call(this);this.B.S(this.api,"videodatachange",this.GJ);this.B.S(this.api,"onPlaylistUpdate",this.GJ);this.GJ()};
g.k.hide=function(){g.PS.prototype.hide.call(this);g.Lz(this.B);this.updatePlaylist(null)};
g.k.GJ=function(){this.updatePlaylist(this.api.getPlaylist());this.api.V().B&&(this.Da("ytp-playlist-menu-title-name").removeAttribute("href"),this.C&&(this.Hc(this.C),this.C=null))};
g.k.TH=function(){var a=this.playlist,b=a.author,c=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.lO(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.t(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
this.j=[];for(d=0;d<c;d++){var e=new PNa(this.api,a,d);this.j.push(e);e.Ea(this.items)}this.selected=this.j[a.index];this.D=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.I7=function(a){var b=this.api.getVideoUrl(!0);g.VT(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.TH,this),this.playlist=a,this.D=null,a?(a.subscribe("shuffle",this.TH,this),this.TH()):this.yb&&this.hide()):this.playlist&&this.TH()};
g.k.focus=function(){this.selected.focus()};
g.k.qa=function(){this.hide();g.PS.prototype.qa.call(this)};g.w(NU,g.U);NU.prototype.hide=function(){g.U.prototype.hide.call(this);this.Zb(!1);$S(this.tooltip)};
NU.prototype.Pa=function(){var a=g.fK(this.api.V());g.Up(this.element,"ytp-playlist-menu-button-tiny",400>this.api.jb().getPlayerSize().width&&!a);(this.api.V().K("shorts_mode_to_player_api")?this.api.Sb():this.u.Sb())?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.lO("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.lO("Playlist: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),
this.yb||(this.show(),$S(this.tooltip)),this.visible=!0,this.Zb(!0)):this.yb&&this.hide()};
NU.prototype.Zb=function(a){g.U.prototype.Zb.call(this,a);this.api.Ua(this.element,this.visible&&a)};
NU.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Pa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Pa,this);this.Pa()};g.w(RNa,g.U);g.k=RNa.prototype;g.k.t0=function(){this.C?VNa(this):UNa(this)};
g.k.s0=function(){this.C?(OU(this),this.I=!0):UNa(this)};
g.k.c5=function(){this.D=!0;this.QD(1);this.F.ma("promotooltipacceptbuttonclicked",this.acceptButton);OU(this);this.u&&this.F.qb(this.acceptButton)};
g.k.V5=function(){this.D=!0;this.QD(2);OU(this);this.u&&this.F.qb(this.dismissButton)};
g.k.u0=function(a){if(1===this.F.getPresentingPlayerType()||2===this.F.getPresentingPlayerType()&&this.T){var b=!0,c=g.kf("ytp-ad-overlay-ad-info-dialog-container"),d=CO(a);if(this.B&&d&&g.zf(this.B,d))this.B=null;else{1===this.F.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=WNa(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.zf(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.zf(this.element,d))}this.j&&this.yb&&!c&&(!d||b&&g.fR(a))&&(this.D=!0,OU(this))}}};
g.k.QD=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.K(d,cab))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.F.Mm(),(null==a?0:vFa(d,a.rL))&&tR(a,d,e))}};
g.k.Db=function(){this.I||(this.j||(this.j=SNa(this)),VNa(this))};
var TNa={"ytp-settings-button":g.rQ()};g.w(PU,g.U);PU.prototype.onStateChange=function(a){this.qc(a.state)};
PU.prototype.qc=function(a){g.bQ(this,g.S(a,2))};
PU.prototype.onClick=function(){this.F.Cb();this.F.playVideo()};g.w(g.QU,g.U);g.k=g.QU.prototype;g.k.Tq=aa(35);g.k.onClick=function(){var a=this,b=this.api.V(),c=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();b=b.getVideoUrl(c.videoId,d,void 0,!0);if(navigator.share)try{var e=navigator.share({title:c.title,url:b});e instanceof Promise&&e.catch(function(f){YNa(a,f)})}catch(f){f instanceof Error&&YNa(this,f)}else this.j.Il(),QS(this.B,this.element,!1);
this.api.qb(this.element)};
g.k.showShareButton=function(a){var b=!0;if(this.api.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){var c,d,e=null==(c=a.kf)?void 0:null==(d=c.embedPreview)?void 0:d.thumbnailPreviewRenderer;e&&(b=!!e.shareButton);var f,h;(c=null==(f=a.jd)?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer)&&(b=!!c.shareButton);var l,m,n,p;if(null==(p=g.K(null==(l=a.jd)?void 0:null==(m=l.contents)?void 0:null==(n=m.twoColumnWatchNextResults)?void 0:n.desktopOverlay,nM))?0:p.suppressShareButton)b=
!1}else b=a.showShareButton;return b};
g.k.Pa=function(){var a=this.api.V(),b=a.K("shorts_mode_to_player_api")?this.api.Sb():this.j.Sb();g.Up(this.element,"ytp-show-share-title",g.fK(a)&&!g.oK(a)&&!b);this.j.yg()&&b?(a=(this.api.jb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Hm(this.element,"right",a+"px")):b&&g.Hm(this.element,"right","0px");this.updateValue("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=XNa(this);g.Up(this.element,"ytp-share-button-visible",this.visible);g.bQ(this,this.visible);$S(this.tooltip);this.api.Ua(this.element,XNa(this)&&this.ea)};
g.k.Zb=function(a){g.U.prototype.Zb.call(this,a);this.api.Ua(this.element,this.visible&&a)};
g.k.qa=function(){g.U.prototype.qa.call(this);g.Sp(this.element,"ytp-share-button-visible")};g.w(g.RU,g.PS);g.k=g.RU.prototype;g.k.v0=function(a){a=CO(a);g.zf(this.D,a)||g.zf(this.closeButton,a)||QS(this)};
g.k.Fb=function(){g.PS.prototype.Fb.call(this);this.tooltip.rk(this.element);this.api.Ua(this.j,!1);for(var a=g.t(this.B),b=a.next();!b.done;b=a.next())b=b.value,this.api.Dk(b.element)&&this.api.Ua(b.element,!1)};
g.k.show=function(){var a=this.yb;g.PS.prototype.show.call(this);this.Pa();a||this.api.Na("onSharePanelOpened")};
g.k.B4=function(){this.yb&&this.Pa()};
g.k.Pa=function(){var a=this;g.Qp(this.element,"ytp-share-panel-loading");g.Sp(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.C.checked;b.getSharePanelCommand&&tR(this.api.Mm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.isDisposed()||(g.Sp(a.element,"ytp-share-panel-loading"),aOa(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);g.oK(this.api.V())&&(b=g.Zi(b,g.hS({},"emb_share")));this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.lO("Share link $URL",{URL:b}));rMa(this.j);this.api.Ua(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.ej()&&QS(this)};
g.k.focus=function(){this.j.focus()};
g.k.qa=function(){g.PS.prototype.qa.call(this);$Na(this)};g.w(cOa,EU);g.k=cOa.prototype;g.k.qa=function(){dOa(this);EU.prototype.qa.call(this)};
g.k.YG=function(a){a.target!==this.dismissButton.element&&(FU(this,!1),this.F.Na("innertubeCommand",this.onClickCommand))};
g.k.WC=function(){this.ya=!0;FU(this,!0);this.dl()};
g.k.I6=function(a){this.Ja=a;this.dl()};
g.k.B6=function(a){var b=this.F.getVideoData();b&&b.videoId===this.videoId&&this.T&&(this.J=a,a||(a=3+this.F.getCurrentTime(),this.ye(a)))};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.ya=!1,this.C=!0,this.J=this.T=this.D=this.Z=!1,dOa(this);if(a||!b.videoId)this.u=this.j=!1;var c,d;if(this.F.K("web_player_enable_featured_product_banner_on_desktop")&&(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent))this.Bg(!1);else{var e,f,h;c=b.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")?g.K(null==(e=b.jd)?void 0:null==(f=e.playerOverlays)?
void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,qza):b.shoppingOverlayRenderer;this.Ja=this.enabled=!1;if(c){this.enabled=!0;if(!this.j){var l;e=null==(l=c.badgeInteractionLogging)?void 0:l.trackingParams;(this.j=!!e)&&this.F.og(this.badge.element,e||null)}if(!this.u){var m;if(this.u=!(null==(m=c.dismissButton)||!m.trackingParams)){var n;this.F.og(this.dismissButton.element,(null==(n=c.dismissButton)?void 0:n.trackingParams)||null)}}this.text=g.gE(c.text);var p;if(l=
null==(p=c.dismissButton)?void 0:p.a11yLabel)this.Ya=g.gE(l);this.onClickCommand=c.onClickCommand;this.timing=c.timing;BM(b)?this.J=this.T=!0:this.ye()}rNa(this);DU(this);this.dl()}};
g.k.Yz=function(){return!this.Ja&&this.enabled&&!this.ya&&!this.kb.Wg()&&!this.Xa&&!this.J&&(this.D||this.C)};
g.k.Bg=function(a){(this.D=a)?(CU(this),DU(this,!1)):(dOa(this),this.oa.start());this.dl()};
g.k.ye=function(a){a=void 0===a?0:a;var b=[],c=this.timing.visible,d=this.timing.expanded;c&&b.push(new g.XD(1E3*(c.startSec+a),1E3*(c.endSec+a),{priority:9,namespace:"shopping_overlay_visible"}));d&&b.push(new g.XD(1E3*(d.startSec+a),1E3*(d.endSec+a),{priority:9,namespace:"shopping_overlay_expanded"}));this.F.ye(b)};g.w(fOa,g.U);
fOa.prototype.Pa=function(){var a=this.api.V(),b=a.K("shorts_mode_to_player_api")?this.api.Sb():this.u.Sb();g.bQ(this,g.fK(a)&&b);this.subscribeButton&&this.api.Ua(this.subscribeButton.element,this.yb);b=this.api.getVideoData();var c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Lc&&!!b.profilePicture:g.fK(a)&&(c=!!b.videoId&&!!b.Lc&&!!b.profilePicture&&!(b.D&&a.Z)&&!a.B&&!(a.T&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.fK(a)?b.ph:b.author;
d=void 0===d?"":d;a=void 0===a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.K("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",SU(this)),this.updateValue("channelLogoLabel",g.lO("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:a})),g.Qp(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Sp(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.Ua(this.j,c&&this.ea);this.api.K("web_player_ve_conversion_fixes_for_channel_info")&&
this.api.Ua(this.channelName,c&&this.ea);this.subscribeButton&&(this.subscribeButton.channelId=b.bk);this.updateValue("expandedTitle",b.ph);this.api.K("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",SU(this))};g.w(TU,g.PS);TU.prototype.show=function(){g.PS.prototype.show.call(this);this.j.start()};
TU.prototype.hide=function(){g.PS.prototype.hide.call(this);this.j.stop()};
TU.prototype.Gs=function(a,b){"dataloaded"===a&&((this.ri=b.ri,this.vf=b.vf,isNaN(this.ri)||isNaN(this.vf))?this.B&&(this.F.Ff("intro"),this.F.removeEventListener(g.ZD("intro"),this.I),this.F.removeEventListener(g.$D("intro"),this.D),this.F.removeEventListener("onShowControls",this.C),this.hide(),this.B=!1):(this.F.addEventListener(g.ZD("intro"),this.I),this.F.addEventListener(g.$D("intro"),this.D),this.F.addEventListener("onShowControls",this.C),a=new g.XD(this.ri,this.vf,{priority:9,namespace:"intro"}),
this.F.ye([a]),this.B=!0))};g.w(UU,g.U);UU.prototype.onClick=function(){this.F.Dt()};
UU.prototype.Pa=function(){var a=!0;g.fK(this.F.V())&&(a=a&&480<=this.F.jb().getPlayerSize().width);g.bQ(this,a);this.updateValue("icon",this.F.wh()?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.w(g.WU,g.U);g.WU.prototype.qa=function(){this.j=null;g.U.prototype.qa.call(this)};g.w(XU,g.U);XU.prototype.onClick=function(){this.F.Na("innertubeCommand",this.j)};
XU.prototype.J=function(a){a!==this.D&&(this.update({title:a}),this.D=a);a?this.show():this.hide()};
XU.prototype.I=function(){this.B.disabled=null==this.j;g.Up(this.B,"ytp-chapter-container-disabled",this.B.disabled);this.yc()};g.w(YU,XU);YU.prototype.onClickCommand=function(a){g.K(a,rM)&&this.yc()};
YU.prototype.updateVideoData=function(a,b){var c;if(b.K("embeds_web_enable_video_data_refactoring_offline_and_progress_bar")){var d,e;a=g.K(null==(c=b.jd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,HL);c=g.K(null==a?void 0:a.playerBarActionButton,g.mM)}else c=b.z1;var f;this.j=null==(f=c)?void 0:f.command;XU.prototype.I.call(this)};
YU.prototype.yc=function(){var a="",b=this.C.j,c,d="clips"===(null==(c=this.F.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.F.getProgressState().current;c=HU(b,a);a=b[c].title||"Chapters";if(c!==this.currentIndex||this.u)this.F.Na("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.u=!1}else this.u=!0;XU.prototype.J.call(this,a)};g.w(g.ZU,g.U);g.ZU.prototype.yd=function(a){g.S(a.state,32)?hOa(this,this.api.Hj()):this.yb&&(g.S(a.state,16)||g.S(a.state,1))||this.j.hide()};
g.ZU.prototype.Ie=function(){var a=this.api.Cb();(g.S(a,32)||g.S(a,16))&&iOa(this)};
g.ZU.prototype.D=function(){this.B=NaN;iOa(this)};
g.ZU.prototype.hide=function(){this.u&&hOa(this,null);g.U.prototype.hide.call(this)};g.w(g.$U,g.U);g.k=g.$U.prototype;g.k.onClick=function(){var a=this;if(this.F.V().Tb||this.F.V().T){this.F.qb(this.element);try{this.F.toggleFullscreen().catch(function(b){a.lC(b)})}catch(b){this.lC(b)}}else QS(this.message,this.element,!0)};
g.k.lC=function(a){String(a).includes("fullscreen error")?g.DD(a):g.CD(a);this.NN()};
g.k.NN=function(){this.disable();this.message.od(this.element,!0)};
g.k.Hq=function(){zz()===this.F.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.f2=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.NN()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=wz(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.PS(this.F,{G:"div",Ia:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},W:[b[0],{G:"a",X:{href:"https://web.archive.org/web/20230426095903/https://support.google.com/youtube/answer/6276924",
target:this.F.V().ea},ra:b[2]},b[4]]},100,!0);this.message.hide();g.E(this,this.message);this.message.subscribe("show",function(c){a.u.qy(a.message,c)});
g.NS(this.F,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Pa=function(){var a=oMa(this.F),b=this.F.V().T&&250>this.F.getPlayerSize().width;g.bQ(this,a&&!b);this.F.Ua(this.element,this.yb)};
g.k.cm=function(a){if(a){var b={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",N:"ytp-fullscreen-button-corner-2",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-3",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-0",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g",
N:"ytp-fullscreen-button-corner-1",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.WT(this.F,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.F.getRootNode().focus();document.u&&document.j().catch(function(c){g.DD(c)})}else b={G:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",N:"ytp-fullscreen-button-corner-0",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-1",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-2",W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",N:"ytp-fullscreen-button-corner-3",
W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.WT(this.F,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});a=this.message?null:a;this.update({title:a,icon:b});$S(this.u.Ic())};
g.k.qa=function(){this.message||((0,this.j)(),this.j=null);g.U.prototype.qa.call(this)};g.w(aV,g.U);aV.prototype.onClick=function(){this.F.qb(this.element);this.F.seekBy(this.j,!0);null!=this.C.Ou&&BU(this.C.Ou,0<this.j?1:-1,this.j);if(this.u.isActive())this.B=!0;else{var a=["ytp-jump-spin"];0>this.j&&a.push("backwards");this.element.classList.add.apply(this.element.classList,g.u(a));g.Jp(this.u)}};g.w(bV,XU);bV.prototype.onClickCommand=function(a){g.K(a,hbb)&&this.yc()};
bV.prototype.updateVideoData=function(){var a,b;this.j=null==(a=kOa(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;XU.prototype.I.call(this)};
bV.prototype.yc=function(){var a="",b=this.C.I,c,d=null==(c=kOa(this))?void 0:c.headerTitle;c=d?g.gE(d):"";var e;d="clips"===(null==(e=this.F.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.F.getProgressState().current,e=FNa(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.F.Na("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));XU.prototype.J.call(this,a)};g.w(cV,g.U);cV.prototype.onClick=function(){this.F.Na("onCollapseMiniplayer");this.F.qb(this.element)};
cV.prototype.Pa=function(){this.visible=!this.F.isFullscreen();g.bQ(this,this.visible);this.F.Ua(this.element,this.visible&&this.ea)};
cV.prototype.Zb=function(a){g.U.prototype.Zb.call(this,a);this.F.Ua(this.element,this.visible&&a)};g.w(dV,g.U);dV.prototype.onVideoDataChange=function(a){this.Pa("newdata"===a)};
dV.prototype.Pa=function(a){var b=this.F.getVideoData(),c=b.Wf,d=this.F.Cb();d=(g.RO(d)||g.QO(d))&&0<c.length;g.bQ(this,d);a&&(this.j=!0);if(d){this.j&&g.Jp(this.u);a=null;d="";for(var e=0;e<c.length;e++)if(c[e].id===b.videoId){a=c[e].title;d=g.lO("Viewing $CAMERA_INDEX of $CAMERA_COUNT",{CAMERA_INDEX:String(e+1),CAMERA_COUNT:String(c.length)})+"\n";break}this.update({text:d+a,preview:b.wg("default.jpg")});$S(this.tooltip)}else this.u.stop()};
dV.prototype.B=function(){zU(this.tooltip,this.element,"More cameras available");this.j=!1};g.w(lOa,g.PS);g.k=lOa.prototype;g.k.show=function(){var a=this.yb;g.PS.prototype.show.call(this);a||(this.B.S(this.api,"presentingplayerstatechange",this.Pa),this.B.S(this.api,"videodatachange",this.Pa),this.Pa())};
g.k.hide=function(){this.B&&(g.Lz(this.B),g.PS.prototype.hide.call(this))};
g.k.Pa=function(){var a=this,b=this.api.getVideoData(),c=b.Wf,d,e={};for(d=0;d<c.length;e={BI:e.BI},d++){var f=this.j[d];f||(f=new g.U({G:"button",Ia:["ytp-multicam-menu-item","ytp-button"],X:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},W:[{G:"div",N:"ytp-multicam-menu-item-title",ra:"{{cameraName}}"}]}),e.BI=d,f.Ra("click",function(n){return function(){var p=n.BI,q=a.api.getVideoData(),r=a.api,v=q.Wf[p];p=g.qS(r.app,1).getVideoData();q=r.getCurrentTime();v.id===p.videoId?(v=g.qS(r.app,
1),g.qS(r.app)!==v&&(r.app.Nq(),p.isLivePlayback||r.seekTo(q))):r.app.loadVideoByPlayerVars({videoId:v.id,title:p.title,start:p.isLivePlayback?null:q,raw_player_response:{multicamera:{playerLegacyMulticameraRenderer:{metadataList:p.OV}}}},4)}}(e)),f.Ea(this.items),this.j[d]=f);
var h=c[d],l=h.id;if(l!==f.element.getAttribute("data-id")){var m=h.thumbnail_url;!m&&l&&(m=AK(this.api.V(),l,"default.jpg"));f.element.style.backgroundImage=m?"url("+m+")":""}f.update({cameraName:h.title,videoId:l,selected:l===b.videoId?!0:null})}for(;d<this.j.length;)this.j.pop().dispose();d=this.api.Cb();b=c.length||!b.isLoaded();g.RO(d)||g.QO(d)||b||!this.ej()||QS(this)};
g.k.focus=function(){for(var a=this.api.getVideoData(),b=a.Wf,c=0;c<b.length;c++)if(b[c].id===a.videoId){this.j[c].focus();break}};
g.k.qa=function(){g.$a(this.j);g.PS.prototype.qa.call(this)};g.w(eV,g.C);eV.prototype.j=function(){var a=(0,g.M)()-this.startTime;a=a<this.duration?a/this.duration:1;this.u(hq(bdb,a));1>a&&this.delay.start()};
var bdb=new gq(0,0,.4,0,.2,1,1,1),rOa=/[0-9.-]+|[^0-9.-]+/g;g.w(g.fV,g.U);g.k=g.fV.prototype;g.k.FR=function(a){this.visible=300<=a.width||this.Ga;g.bQ(this,this.visible);this.F.Ua(this.element,this.visible&&this.ea)};
g.k.t6=function(){this.F.V().Ya?this.F.isMuted()?this.F.unMute():this.F.mute():QS(this.message,this.element,!0);this.F.qb(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.F.V();a=0===d?1:50<a?1:0;if(this.D!==a){var f=this.oa;isNaN(f)?uOa(this,a):oOa(this.Aa,function(l){uOa(c,f+(c.D-f)*l)},250);
this.D=a}d=0===d?1:0;if(this.C!==d){var h=this.T;isNaN(h)?vOa(this,d):oOa(this.Z,function(l){vOa(c,h+(c.C-h)*l)},250);
this.C=d}e.Ya&&(e=g.WT(this.F,"Mute","m"),d=g.WT(this.F,"Unmute","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),$S(this.tooltip))};
g.k.Zb=function(a){g.U.prototype.Zb.call(this,a);this.F.Ua(this.element,this.visible&&a)};
var sOa=["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"],tOa=["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(wOa,g.U);wOa.prototype.onClick=function(){this.F.togglePictureInPicture()};g.w(g.gV,g.U);g.gV.prototype.onStateChange=function(a){this.qc(a.state)};
g.gV.prototype.qc=function(a){var b=g.GM(this.F.getVideoData()),c=!1;g.RO(a)?a=b?4:2:g.S(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.WT(this.F,"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.WT(this.F,"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"})}3===
a?this.update({title:b,icon:xOa(a)}):(this.update({title:b}),(b=xOa(a))&&this.j&&3!==this.j?qOa(this.transition,this.element,b):this.updateValue("icon",b));$S(this.tooltip);this.j=a}};
g.gV.prototype.onVideoDataChange=function(){g.Up(this.element,"ytp-play-button-playlist",g.KS(this.F))};
g.gV.prototype.fA=function(a){this.F.qb(this.element);if(g.RO(this.F.Cb()))this.F.pauseVideo();else{if(this.F.zg()&&this.F.Cb().isCued()){var b={},c;if(null==(c=this.F.getVideoData())?0:c.T)b.cttAuthInfo={token:this.F.getVideoData().T,videoId:this.F.getVideoData().videoId};cF("direct_playback",b);this.F.Oh().timerName="direct_playback"}else 3===this.j&&yT(this.F.Oh());this.F.playVideo()}this.F.zg()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.w(g.hV,g.U);g.k=g.hV.prototype;g.k.onVideoDataChange=function(){zOa(this);this.C&&(this.Hc(this.C),this.C=null);this.videoData=this.F.getVideoData(1);if(this.playlist=this.F.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.C=this.S(this.F,"progresssync",this.w0);this.B=AOa(this);yOa(this);this.HJ(this.F.jb().getPlayerSize())};
g.k.HJ=function(a){a=void 0===a?this.F.jb().getPlayerSize():a;var b,c="clips"===(null==(b=this.F.getLoopRange())?void 0:b.type);a=(g.KS(this.F)||this.j&&g.OS(this.F)&&!this.F.K("web_hide_next_button")||BOa(this))&&!c&&(this.j||400<=a.width);g.bQ(this,a);this.F.Ua(this.element,a)};
g.k.onClick=function(a){this.F.qb(this.element);var b=!0;this.I?b=g.UT(a,this.F):g.EO(a);b&&(this.j&&5===this.F.getPresentingPlayerType()?this.F.ma("ytoprerollinternstitialnext"):this.j?(yT(this.F.Oh()),this.F.ma("playlistnextbuttonclicked",this.element),this.F.nextVideo(!0)):this.B?this.F.seekTo(0):(yT(this.F.Oh()),this.F.ma("playlistprevbuttonclicked",this.element),this.F.previousVideo(!0)))};
g.k.w0=function(){var a=AOa(this);a!==this.B&&(this.B=a,yOa(this))};
g.k.qa=function(){this.u&&(this.u(),this.u=null);zOa(this);g.U.prototype.qa.call(this)};g.w(COa,g.U);g.k=COa.prototype;g.k.y0=function(a){this.JJ(a.pageX);this.IJ(a.pageX+a.deltaX);DOa(this)};
g.k.JJ=function(a){this.Z=a-this.Ga};
g.k.IJ=function(a){a-=this.Ga;if(!isNaN(this.Z)&&0<this.thumbnails.length&&(this.T=a-this.Z,0<this.thumbnails.length&&0!==this.T))if(this.u=this.J+this.T,a=IOa(this,this.u),this.u<=this.C/2&&this.u>=HOa(this)){this.api.seekTo(a,!1);g.Hm(this.B,"transform","translateX("+this.u+"px)");var b=g.eR(a),c=g.lO("Seek to $PROGRESS",{PROGRESS:g.eR(a,!0)});this.update({ariamin:0,ariamax:Math.floor(this.api.getDuration()),arianow:Math.floor(a),arianowtext:c,seekTime:b})}else this.u=this.J};
g.k.x0=function(){var a=300>(0,g.M)()-this.Ja;if(5>Math.abs(this.T)&&!a){this.Ja=(0,g.M)();a=this.Z+this.T;var b=this.C/2-a;this.JJ(a);this.IJ(a+b);DOa(this);this.api.qb(this.B)}DOa(this)};
g.k.xz=function(){iV(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(IOa(this,this.u));this.api.playVideo();a&&this.api.qb(this.playButton)};
g.k.Db=function(a,b){this.Ga=a;this.C=b;iV(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.La=this.api.getCurrentTime(),g.Up(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Aa=this.S(this.element,"wheel",this.y0),this.Ua(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Up(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Aa&&this.Hc(this.Aa);this.Ua(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.ya=!1};
g.k.Ua=function(a){this.api.Ua(this.element,a);this.api.Ua(this.B,a);this.api.Ua(this.dismissButton,a);this.api.Ua(this.playButton,a)};
g.k.qa=function(){for(;this.j.length;){var a=void 0;null==(a=this.j.pop())||a.dispose()}g.U.prototype.qa.call(this)};
g.w(EOa,g.U);g.w(FOa,g.U);g.w(LOa,g.U);g.w(jV,g.U);jV.prototype.ub=function(a){return"PLAY_PROGRESS"===a?this.I:"LOAD_PROGRESS"===a?this.D:"LIVE_BUFFER"===a?this.C:this.u};NOa.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.B=c;this.j=b-c-(void 0===d?0:d);this.position=g.ze(a,c,c+this.j);this.u=this.position-c;this.fraction=this.u/this.j};g.w(OOa,g.U);g.w(g.mV,g.dQ);g.k=g.mV.prototype;
g.k.EY=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.Ff("timedMarkerCueRange");ROa(this);for(var c=g.t(b.ke),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.uc[d])?void 0:e.markers;if(f){a=g.t(f);for(e=a.next();!e.done;e=a.next()){f=e.value;e=new OOa;var h=void 0;e.title=(null==(h=f.title)?void 0:h.simpleText)||"";e.timeRangeStartMillis=Number(f.startMillis);e.j=Number(f.durationMillis);var l=h=void 0;e.onActiveCommand=null!=(l=null==(h=f.onActive)?void 0:
h.innertubeCommand)?l:void 0;WOa(this,e)}XOa(this,this.I);a=this.I;e=this.Od;f=[];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=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=INa(m,m+p);f.push(m);h=m;e[m.id]=a[l].onActiveCommand}}this.api.ye(f);this.vf=this.uc[d];a=!0}}b.JR=this.I;g.Up(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Db=function(){g.nV(this);pV(this);XOa(this,this.I);if(this.u){var a=g.Pm(this.element).x||0;this.u.Db(a,this.J)}};
g.k.onClickCommand=function(a){if(a=g.K(a,rM)){var b=a.key;a.isVisible&&b&&aPa(this,b)}};
g.k.H7=function(a){this.api.Na("innertubeCommand",this.Od[a.id])};
g.k.yc=function(){pV(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.LH()};
g.k.A0=function(a){if(!g.DO(a)){var b=!1;switch(g.zO(a)){case 36:this.api.seekTo(0);b=!0;break;case 35:this.api.seekTo(Infinity);b=!0;break;case 34:this.api.seekBy(-60);b=!0;break;case 33:this.api.seekBy(60);b=!0;break;case 38:this.api.seekBy(5);b=!0;break;case 40:this.api.seekBy(-5),b=!0}b&&g.EO(a)}};
g.k.Gs=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.I3=function(){this.Gs("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.De();c&&(aN(a)||hPa(this)?this.je=!1:this.je=a.allowLiveDvr,g.Up(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!aN(a))));qPa(this,this.api.yh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;tV(this);for(qV(this,this.Z,this.ib);0<this.D.length;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.tb={};var d;null==(d=this.u)||d.reset();zV(this);g.Up(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
lV(this))}else this.LH();g.XV(this.tooltip)}if(a){b=a.jd;var e;d="clips"===(null==(e=this.Bb)?void 0:e.type);if(e=!a.isLivePlayback&&b)e=this.api.getVideoData(),b=POa(e)?g.IL(e):e.multiMarkersPlayerBarRenderer,c=SOa(e),e=null!=b||null!=c&&0<c.length||0<e.vx.length;if(e&&!d){e=this.api.getVideoData();b=POa(e)?g.IL(e):e.multiMarkersPlayerBarRenderer;d=!1;if(null==b?0:b.markersMap){d=this.api.getVideoData();var f;d.Sw=(null==(f=b.visibleOnLoad)?void 0:f.key)||d.Sw;f=g.t(b.markersMap);for(b=f.next();!b.done;b=
f.next())b=b.value,b.key&&b.value&&(this.tb[b.key]=b.value,b.value.onChapterRepeat&&(d.C1=b.value.onChapterRepeat));null!=d.Sw&&aPa(this,d.Sw);d=!0}if(this.api.V().K("web_key_moments_markers")&&0<e.vx.length){f=g.sM.getState().entities;b=g.t(e.vx);for(c=b.next();!c.done;c=b.next()){c=c.value;var h=void 0,l=null==(h=CL(f,"macroMarkersListEntity",c))?void 0:h.markersList;h=void 0;"MARKER_TYPE_TIMESTAMPS"===(null==(h=l)?void 0:h.markerType)&&(this.uc[c]=l)}d=this.EY()||d}!d&&(f=SOa(e))&&(UOa(this,f),
e.Pk=this.j,TOa(this));iPa(this,null);a.GV&&0===this.D.length&&(a=a.GV,e=a.key,a.isVisible&&e&&aPa(this,e))}else QOa(this),ROa(this)}pV(this)};
g.k.z0=function(a){this.T&&!g.S(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.T.cancel();var b;(null==(b=this.u)?0:b.isEnabled)&&g.S(a.state,8)&&this.api.pauseVideo()};
g.k.GR=function(a){var b=!!this.Bb!==!!a,c=this.Bb;this.Bb=a;iPa(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",QEa()),this.updateValue("clipendicon",QEa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",LEa()),this.updateValue("clipendicon",KEa()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.nV(this)),tV(this));qV(this,this.Z,this.ib)};
g.k.L6=function(a,b,c){var d=g.Pm(this.element),e=oV(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=jR(this.B,Number(c.getAttribute("data-position")),0)*e+g.Pm(this.Kc).x);this.fb.x=a-d.x;this.fb.y=b-d.y;a=oV(this);c=sV(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:aN(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=jR(this.B,m)*oV(this).j),b=this.B.u;hPa(this)&&
(b=this.B.u);m=f||g.eR(this.je?c-this.B.j:c-b);b=a.position+this.Jf;c-=this.api.Jd();var n;if(null==(n=this.u)||!n.isEnabled)if(this.api.Hj()){if(1<this.j.length){n=rV(this,this.fb.x,!0);if(!this.Bb)for(d=0;d<this.j.length;)g.Up(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.D.length)for(d=0;d<this.j.length;d++)g.Up(this.D[d].element,"ytp-heatmap-hover",d===n)}if(0<this.I.length)for(n=this.fb.x,d=g.t(this.I),e=d.next();!e.done;e=d.next())e=e.value,h=bPa(this,e.timeRangeStartMillis/
(1E3*this.B.j),oV(this)),g.Up(e.element,"ytp-timed-marker-hover",h<=n&&h+6>=n);d=this.tooltip.scale;l=(isNaN(l)?0:l)-45*d;this.api.K("web_key_moments_markers")?this.vf?(n=FNa(this.I,1E3*c),n=null!=n?this.I[n].title:""):(n=HU(this.j,1E3*c),n=this.j[n].title):(n=HU(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=HU(this.j,1E3*c);this.Xa=jPa(this,c,d)?d:jPa(this,c,d+1)?d+1:-1;g.Up(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Xa&&1<this.j.length);d=!1;
e=g.t(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.eR(h.decorationTimeMillis/1E3),d=!0)}this.rd!==d&&(this.rd=d,this.api.Ua(this.Vd,this.rd));g.Up(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.C?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.J-a.position&&(d=2);this.api.V().T&&(l-=10);
this.D.length&&this.D[0].De&&(l-=14*(this.C?2:1),this.Ga||(this.Ga=!0,this.api.Ua(this.oa,this.Ga)));var q;if(lV(this)&&((null==(q=this.u)?0:q.isEnabled)||0<this.Qa)){var r;l-=(null==(r=this.u)?0:r.isEnabled)?vV(this):this.Qa}q=void 0;lV(this)&&(q="Pull up for precise seeking",this.Aa||(this.Aa=!0,this.api.Ua(this.Wc,this.Aa)));dQa(this.tooltip,b,c,m,!!f,l,n,d,q)}else dQa(this.tooltip,b,c,m,!!f,l);g.Qp(this.api.getRootNode(),"ytp-progress-bar-hover");gPa(this)};
g.k.K6=function(){g.XV(this.tooltip);g.Sp(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.Ua(this.oa,this.Ga));this.Aa&&(this.Aa=!1,this.api.Ua(this.Wc,this.Aa))};
g.k.J6=function(a,b){this.api.K("web_big_boards")&&g.XV(this.tooltip);lV(this)&&this.u&&(this.u.ya?iV(this.u,this.api.getCurrentTime()):GOa(this.u),this.u.show(),g.Up(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.u.isEnabled));this.Ld&&(this.Ld.dispose(),this.Ld=null);this.Kf=b;1<this.j.length&&-1!==this.Xa?this.api.seekTo(this.j[this.Xa].startTime/1E3,!1):this.api.seekTo(sV(this,oV(this)),!1);g.Qp(this.element,"ytp-drag");(this.ke=g.RO(this.api.Cb()))&&this.api.pauseVideo()};
g.k.M6=function(){if(lV(this)&&this.u){var a=vV(this);this.Qa>=.5*a?(this.u.enable(),iV(this.u,this.api.getCurrentTime()),pPa(this,a)):zV(this)}if(g.S(this.api.Cb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.u)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Xa)this.api.seekTo(this.j[this.Xa].startTime/1E3);else{a=sV(this,oV(this));this.api.seekTo(a);b=g.t(this.heatMarkersDecorations);for(var c=b.next();!c.done;c=b.next())c=
c.value,1E3*a>=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.qb(this.Vd)}g.Sp(this.element,"ytp-drag");this.ke&&!g.S(this.api.Cb(),2)&&this.api.playVideo()}}};
g.k.N6=function(a,b){a=oV(this);a=sV(this,a);this.api.seekTo(a,!1);var c;lV(this)&&(null==(c=this.u)?0:c.ya)&&(iV(this.u,a),this.u.isEnabled||(this.Qa=g.ze(this.Kf-b-10,0,vV(this)),pPa(this,this.Qa)))};
g.k.ZV=function(){this.Bb||(this.updateValue("clipstarticon",JEa()),this.updateValue("clipendicon",JEa()),g.Qp(this.element,"ytp-clip-hover"))};
g.k.YV=function(){this.Bb||(this.updateValue("clipstarticon",LEa()),this.updateValue("clipendicon",KEa()),g.Sp(this.element,"ytp-clip-hover"))};
g.k.LH=function(){this.clipStart=0;this.clipEnd=Infinity;tV(this);qV(this,this.Z,this.ib)};
g.k.GY=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.Ja[c]){var d=g.qf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.Ja[c]=b;this.jc[c]=d;g.Op(d,b.style);kPa(this,c);this.api.V().K("disable_ad_markers_on_content_progress_bar")||this.j[0].B.appendChild(d)}}else oPa(this,b)};
g.k.D8=function(a){a=g.t(a);for(var b=a.next();!b.done;b=a.next())oPa(this,b.value)};
g.k.Vr=function(a){if(this.u){var b=this.u;a=null!=a;b.api.seekTo(b.La);b.api.playVideo();a&&b.api.qb(b.dismissButton);zV(this)}};
g.k.AL=function(a){this.u&&(this.u.play(null!=a),zV(this))};
g.k.qa=function(){qPa(this,!1);g.dQ.prototype.qa.call(this)};g.w(AV,g.U);AV.prototype.isActive=function(){return!!this.F.getOption("remote","casting")};
AV.prototype.Pa=function(){var a=!1;this.F.getOptions().includes("remote")&&(a=1<this.F.getOption("remote","receivers").length);g.bQ(this,a&&400<=this.F.jb().getPlayerSize().width);this.F.Ua(this.element,this.yb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.IEa())}g.Up(this.element,"ytp-remote-button-active",this.isActive())}};
AV.prototype.u=function(){if(this.F.getOption("remote","quickCast"))this.F.setOption("remote","quickCast",!0);else{var a=this.Eb,b=this.element;if(a.ej())a.Fb();else{a.initialize();a:{var c=g.t(a.Of.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,1===d.priority){c=d;break a}c=null}c&&(c.open(),a.od(b));a.od(b)}}this.F.qb(this.element)};g.w(BV,g.U);BV.prototype.j=function(a){var b=this.F.V(),c=400;this.F.K("web_player_small_hbp_settings_menu")&&b.J?c=300:b.T&&(c=200);a=this.u&&a.width>=c;g.bQ(this,a);this.F.Ua(this.element,a)};
BV.prototype.B=function(){if(this.Eb.yb)this.Eb.Fb();else{var a=g.JT(this.F.wb());a&&!a.loaded&&(a.qh("tracklist",{includeAsr:!0}).length||a.load());this.F.qb(this.element);this.Eb.od(this.element)}};
BV.prototype.updateBadge=function(){var a=this.F.isHdr(),b=this.F.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.MS(this.F),e=c&&!!g.LS(this.F.wb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.F.getPlaybackQuality();g.Up(this.element,"ytp-hdr-quality-badge",a);g.Up(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.Up(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.Up(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.Up(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.Up(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Up(this.element,"ytp-3d-badge",!a&&e&&d)};g.w(CV,aT);CV.prototype.isLoaded=function(){var a=g.PT(this.F.wb());return void 0!==a&&a.loaded};
CV.prototype.Pa=function(){void 0!==g.PT(this.F.wb())&&3!==this.F.getPresentingPlayerType()?this.j||(this.Eb.Zc(this),this.j=!0):this.j&&(this.Eb.jh(this),this.j=!1);bT(this,this.isLoaded())};
CV.prototype.onSelect=function(a){this.isLoaded();a?this.F.loadModule("annotations_module"):this.F.unloadModule("annotations_module");this.F.ma("annotationvisibility",a)};
CV.prototype.qa=function(){this.j&&this.Eb.jh(this);aT.prototype.qa.call(this)};g.w(g.DV,g.SS);g.k=g.DV.prototype;g.k.open=function(){g.tU(this.Eb,this.u)};
g.k.yj=function(a){tPa(this);this.options[a].element.setAttribute("aria-checked","true");this.ge(this.gk(a));this.B=a};
g.k.DK=function(a,b,c){var d=this;b=new g.SS({G:"div",Ia:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":void 0},W:[{G:"div",Ia:["ytp-menuitem-label"],ra:"{{label}}"}]},b,this.gk(a,!0));b.Ra("click",function(){d.eh(a)});
return b};
g.k.enable=function(a){this.I?a||(this.I=!1,this.jx(!1)):a&&(this.I=!0,this.jx(!0))};
g.k.jx=function(a){a?this.Eb.Zc(this):this.Eb.jh(this)};
g.k.eh=function(a){this.ma("select",a)};
g.k.gk=function(a){return a.toString()};
g.k.B0=function(a){g.DO(a)||39!==g.zO(a)||(this.open(),g.EO(a))};
g.k.qa=function(){this.I&&this.Eb.jh(this);g.SS.prototype.qa.call(this);for(var a=g.t(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.w(FV,g.DV);FV.prototype.Pa=function(){var a=this.F.getAvailableAudioTracks();1<a.length?(g.EV(this,g.Yl(a,this.C)),this.tracks=g.Pb(a,this.C,this),this.j.ge(a.length?" ("+a.length+")":""),this.ma("size-change"),this.yj(this.C(this.F.getAudioTrack())),this.enable(!0)):this.enable(!1)};
FV.prototype.eh=function(a){g.DV.prototype.eh.call(this,a);this.F.setAudioTrack(this.tracks[a]);this.Eb.nj()};
FV.prototype.C=function(a){return a.toString()};g.w(GV,aT);
GV.prototype.u=function(){var a=this.F.getPresentingPlayerType();if(2!==a&&3!==a&&g.OS(this.F))this.j||(this.Eb.Zc(this),this.j=!0,this.B.push(this.S(this.F,"videodatachange",this.u)),this.B.push(this.S(this.F,"videoplayerreset",this.u)),this.B.push(this.S(this.F,"onPlaylistUpdate",this.u)),this.B.push(this.S(this.F,"autonavchange",this.C)),a=this.F.getVideoData(),this.C(a.autonavState),this.F.Ua(this.element,this.j));else if(this.j){this.Eb.jh(this);this.j=!1;a=g.t(this.B);for(var b=a.next();!b.done;b=a.next())this.Hc(b.value)}};
GV.prototype.C=function(a){bT(this,1!==a)};
GV.prototype.onSelect=function(a){this.F.RH(a?2:1);this.j&&(this.F.Ua(this.element,this.j),this.F.qb(this.element))};
GV.prototype.qa=function(){this.j&&this.Eb.jh(this);aT.prototype.qa.call(this)};g.w(uPa,g.SS);uPa.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.rS(this.F))||null==(c=b.Nm())||c.Fb();var d,e;null==(d=g.rS(this.F))||null==(e=d.PF())||e.od(a.target)};g.w(vPa,g.DV);g.k=vPa.prototype;
g.k.TA=function(){var a=this.F.getPresentingPlayerType();if(2!==a&&3!==a){this.oa=this.F.Zr();a=this.F.getAvailableQualityLevels();if(this.j){this.C={};var b=g.pS(this.F,"getAvailableQualityData",[]);b=g.t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.C[c.qualityLabel]=c;b=Object.keys(this.C);"auto"===a[a.length-1]&&b.push("auto");this.ya=new Set(a)}else if(this.D){c=g.pS(this.F,"getAvailableQualityData",[]);b=[];c=g.t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.T[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.oKa(this.F)&&this.F.Yu()&&b.unshift("missing-qualities");pKa(this.F)&&b.unshift("inline-survey");g.EV(this,b);a=this.F.getVideoData().cotn?!0:!1;c=!g.DK(this.F.V())||!(void 0===a?0:a);a=this.u;c=void 0===c?!1:c;c=void 0===c?!1:c;a.xU&&(a=a.Da("ytp-panel-footer"),g.Up(a,"ytp-panel-hide-footer",c));if(b.length){this.HR();this.enable(!0);return}}this.enable(!1)};
g.k.HR=function(){if(this.j){var a=this.F.getPreferredQuality();this.ya.has(a)&&(this.J=this.F.getPlaybackQuality(),this.Z=this.F.getPlaybackQualityLabel(),"auto"===a?(this.yj(a),this.ge(this.gk(a))):this.yj(this.Z))}else a=this.F.getPreferredQuality(),this.options[a]&&(this.J=this.F.getPlaybackQuality(),this.yj(a),"auto"===a&&this.ge(this.gk(a)))};
g.k.eh=function(a){if("missing-qualities"!==a){g.DV.prototype.eh.call(this,a);var b=this.j?this.C[a]:this.T[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.F.qb(e)}if(this.j){var h,l;if(this.F.K("web_player_enable_early_warning_snackbar")&&(null==(h=g.K(b,g.Y$a))?0:null==(l=h.popup)?0:l.notificationActionRenderer))this.F.Na("innertubeCommand",b);else if(b){this.F.Na("innertubeCommand",
b);return}d?this.F.setPlaybackQuality(c,d):this.F.setPlaybackQuality(c)}else{if(this.D){var m,n;if(this.F.K("web_player_enable_early_warning_snackbar")&&(null==(m=g.K(b,g.Y$a))?0:null==(n=m.popup)?0:n.notificationActionRenderer))this.F.Na("innertubeCommand",b);else if(b){this.F.Na("innertubeCommand",b);return}}this.F.setPlaybackQuality(a)}this.Eb.Fb();this.TA()}};
g.k.open=function(){for(var a=g.t(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.F.Dk(null==(c=b)?void 0:c.element)&&(c=void 0,this.F.Ua(null==(c=b)?void 0:c.element,!0))}g.DV.prototype.open.call(this);this.F.qb(this.element)};
g.k.DK=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.SS({G:"a",Ia:["ytp-menuitem"],X:{href:"https://web.archive.org/web/20230426095903/https://support.google.com/youtube/?p=missing_quality",target:this.F.V().ea,tabindex:"0",role:"menuitemradio"},W:[{G:"div",Ia:["ytp-menuitem-label"],ra:"{{label}}"}]},b,this.gk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.C[a]:this.T[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.DV.prototype.DK.call(this,a,b,c);f?(this.F.Zf(b.element,
this,!0),this.F.og(b.element,f)):e&&this.F.sb(b.element,this,e,!0);return b}a=[{G:"span",ra:"Looks good?"}];c={};e=g.t([!0,!1]);for(f=e.next();!f.done;c={yE:c.yE},f=e.next())c.yE=f.value,f=new g.U({G:"span",N:"ytp-menuitem-inline-survey-response",W:[c.yE?g.kQ():NEa()],X:{tabindex:"0",role:"button"}}),f.Ra("click",function(h){return function(){var l=h.yE,m=g.qS(d.F.app);m&&(m.xa("iqsr",{tu:l}),m.getVideoData().jT=!0);d.Eb.Fb();d.TA()}}(c)),a.push(f);
return new g.SS({G:"div",N:"ytp-menuitem",X:{"aria-disabled":"true"},W:[{G:"div",Ia:["ytp-menuitem-label"],W:a}]},b)};
g.k.gk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{G:"div",ra:"Missing options?"};if("inline-survey"===a)return"";var c=this.D||this.j?[yPa(this,a,b,!1)]:[xPa(this,a)];var d=this.F.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(yPa(this,this.Z,b,!0,["ytp-menu-label-secondary"])):this.D?c.push(yPa(this,this.J,b,!0,["ytp-menu-label-secondary"])):c.push(xPa(this,this.J,["ytp-menu-label-secondary"])));return{G:"div",W:c}};g.w(HV,g.U);g.k=HV.prototype;g.k.init=function(){this.hw(this.j);this.updateValue("minvalue",this.u);this.updateValue("maxvalue",this.C)};
g.k.E0=function(a){if(!g.DO(a)){switch(g.zO(a)){case 37:case 40:var b=-this.T;break;case 39:case 38:b=this.T;break;default:return}this.hw(this.j+b);g.EO(a)}};
g.k.C0=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.J:this.J;this.hw(b);g.EO(a)};
g.k.D0=function(a){a=(a-g.Pm(this.B).x)/this.Z*this.range+this.u;this.hw(a)};
g.k.hw=function(a,b){b=void 0===b?"":b;a=g.ze(a,this.u,this.C);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.oa.style.left=(a-this.u)/this.range*(this.Z-this.Aa)+"px";this.j=a};
g.k.focus=function(){this.Ga.focus()};g.w(IV,HV);IV.prototype.ya=function(){this.F.setPlaybackRate(this.j,!0)};
IV.prototype.hw=function(a){HV.prototype.hw.call(this,a,APa(this,a).toString());this.D&&(zPa(this),this.Ja())};
IV.prototype.updateValues=function(){var a=this.F.getPlaybackRate();APa(this,this.j)!==a&&(this.hw(a),zPa(this))};g.w(BPa,g.dQ);BPa.prototype.focus=function(){this.j.focus()};g.w(CPa,pU);g.w(DPa,g.DV);g.k=DPa.prototype;g.k.gk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Pa=function(){var a=this.F.getPresentingPlayerType();this.enable(2!==a&&3!==a);HPa(this)};
g.k.jx=function(a){g.DV.prototype.jx.call(this,a);a?(this.J=this.S(this.F,"onPlaybackRateChange",this.onPlaybackRateChange),HPa(this),FPa(this,this.F.getPlaybackRate())):(this.Hc(this.J),this.J=null)};
g.k.onPlaybackRateChange=function(a){var b=this.F.getPlaybackRate();this.D.includes(b)||GPa(this,b);FPa(this,a)};
g.k.eh=function(a){g.DV.prototype.eh.call(this,a);a===this.j?this.F.setPlaybackRate(this.C,!0):this.F.setPlaybackRate(Number(a),!0);this.Eb.nj()};g.w(JPa,g.DV);g.k=JPa.prototype;g.k.yj=function(a){g.DV.prototype.yj.call(this,a)};
g.k.getKey=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.gk=function(a){return this.getOption(a).text||""};
g.k.eh=function(a){g.DV.prototype.eh.call(this,a);this.ma("settingChange",this.J,this.settings[a].option)};g.w(JV,g.qU);JV.prototype.ah=function(a){for(var b=g.t(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Vs[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.yj(e),c.C.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
JV.prototype.Pj=function(a,b){this.ma("settingChange",a,b)};g.w(KV,g.DV);KV.prototype.getKey=function(a){return a.languageCode};
KV.prototype.gk=function(a){return this.languages[a].languageName||""};
KV.prototype.eh=function(a){this.ma("select",a);this.F.qb(this.element);g.wU(this.Eb)};g.w(MPa,g.DV);g.k=MPa.prototype;g.k.getKey=function(a){return g.hd(a)?"__off__":a.displayName};
g.k.gk=function(a){return"__off__"===a?"Off":"__translate__"===a?"Auto-translate":"__contribute__"===a?"Add subtitles/CC":"__correction__"===a?"Suggest caption corrections":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.eh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.F.pauseVideo();this.F.isFullscreen()&&this.F.toggleFullscreen();var b=g.zJa(this.F.V(),this.F.getVideoData());g.IN(b)}else if("__correction__"===a){this.F.pauseVideo();this.F.isFullscreen()&&this.F.toggleFullscreen();var c=NPa(this);LV(this,c);g.DV.prototype.eh.call(this,this.getKey(c));var d,e;c=null==(b=this.F.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.F.Na("innertubeCommand",c);this.Eb.nj();this.C&&this.F.qb(this.C)}else{if("__correction__"===a){this.F.pauseVideo();this.F.isFullscreen()&&this.F.toggleFullscreen();b=NPa(this);LV(this,b);g.DV.prototype.eh.call(this,this.getKey(b));var f,h;b=null==(c=this.F.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.F.Na("innertubeCommand",b)}else this.F.qb(this.element),
LV(this,"__off__"===a?{}:this.tracks[a]),g.DV.prototype.eh.call(this,a);this.Eb.nj()}};
g.k.Pa=function(){var a=this.F.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.F.getVideoData(),c=b&&b.gF,d,e=!(null==(d=this.F.getVideoData())||!g.ZM(d));d={};if(a||c){var f;if(a){var h=this.F.getOption("captions","track");d=this.F.getOption("captions","tracklist",{includeAsr:!0});var l=e?[]:this.F.getOption("captions","translationLanguages");this.tracks=g.Pb(d,this.getKey,this);e=g.Yl(d,this.getKey);var m=NPa(this),n,p;b.K("suggest_caption_correction_menu_item")&&m&&(null==(f=b.getPlayerResponse())?
0:null==(n=f.captions)?0:null==(p=n.playerCaptionsTracklistRenderer)?0:p.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.hd(h)){if((f=h.translationLanguage)&&f.languageName){var q=f.languageName;f=l.findIndex(function(r){return r.languageName===q});
Daa(l,f)}KPa(this.j,l);e.push("__translate__")}f=this.getKey(h)}else this.tracks={},e=[],f="__off__";e.unshift("__off__");this.tracks.__off__={};c&&e.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=h,e.push(f));g.EV(this,e);this.yj(f);h&&h.translationLanguage?this.j.yj(this.j.getKey(h.translationLanguage)):tPa(this.j);a&&this.D.ah(this.F.getSubtitlesUserSettings());this.T.ge(d&&d.length?" ("+d.length+")":"");this.ma("size-change");this.F.Ua(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.F0=function(a){var b=this.F.getOption("captions","track");b=g.md(b);b.translationLanguage=this.j.languages[a];LV(this,b)};
g.k.Pj=function(a,b){if("reset"===a)this.F.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.F.updateSubtitlesUserSettings(c)}LPa(this,!0);this.J.start();this.D.ah(this.F.getSubtitlesUserSettings())};
g.k.q7=function(a){a||g.Lp(this.J)};
g.k.qa=function(){g.Lp(this.J);g.DV.prototype.qa.call(this)};
g.k.open=function(){g.DV.prototype.open.call(this);this.options.__correction__&&!this.C&&(this.C=this.options.__correction__.element,this.F.sb(this.C,this,167341),this.F.Ua(this.C,!0))};g.w(OPa,g.vU);g.k=OPa.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.F.V();this.isInitialized=!0;var b=new vPa(this.F,this);g.E(this,b);b=new MPa(this.F,this);g.E(this,b);a.B||(b=new CV(this.F,this),g.E(this,b));a.uf&&(b=new DPa(this.F,this),g.E(this,b));this.F.K("embeds_web_enable_new_context_menu_triggering")&&(g.fK(a)||a.J)&&(a.u||a.tb)&&(b=new uPa(this.F,this),g.E(this,b));a.Od&&!a.K("web_player_move_autonav_toggle")&&(a=new GV(this.F,this),g.E(this,a));a=new FV(this.F,this);g.E(this,a);this.F.ma("settingsMenuInitialized");
sPa(this.settingsButton,this.Of.Ho())}};
g.k.Zc=function(a){this.initialize();this.Of.Zc(a);sPa(this.settingsButton,this.Of.Ho())};
g.k.jh=function(a){this.yb&&1>=this.Of.Ho()&&this.hide();this.Of.jh(a);sPa(this.settingsButton,this.Of.Ho())};
g.k.od=function(a){this.initialize();0<this.Of.Ho()&&g.vU.prototype.od.call(this,a)};
g.k.Fb=function(){this.nO?this.nO=!1:g.vU.prototype.Fb.call(this)};
g.k.show=function(){g.vU.prototype.show.call(this);g.Qp(this.F.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.vU.prototype.hide.call(this);g.Sp(this.F.getRootNode(),"ytp-settings-shown")};
g.k.Bg=function(a){this.F.Ua(this.element,a);this.F.ma("settingsMenuVisibilityChanged",a)};g.w(MV,g.U);MV.prototype.onClick=function(){var a=this.F.app;a.Ta.Na("SIZE_CLICKED",!a.RM);this.F.qb(this.element)};
MV.prototype.Pa=function(){g.bQ(this,this.F.PM()&&!this.F.isFullscreen()&&3!==this.F.getPresentingPlayerType());if(this.yb){var a=this.F.wv();if(this.wv!==a){var b=a?{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",xc:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.wv?this.updateValue("icon",b):qOa(this.transition,this.element,b);this.wv=a;b=g.WT(this.F,"Default view","t");var c=g.WT(this.F,"Theater mode","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Default view":"Theater mode"});$S(this.tooltip)}}this.F.Ua(this.element,this.yb)};g.w(g.NV,g.U);g.NV.prototype.onClick=function(){if(null!=g.JT(this.F.wb())&&(this.F.toggleSubtitles(),this.F.qb(this.element),!this.isEnabled())){var a=!1,b=g.Xz(g.Wz(),65);g.DK(this.F.V())&&null!=b&&(a=!b);a&&this.F.V().K("web_player_nitrate_promo_tooltip")&&this.F.ma("showpromotooltip",this.element)}};
g.NV.prototype.j=function(a){var b,c;null==(b=g.rS(this.F))||null==(c=b.Nm())||c.od(a)};
g.NV.prototype.isEnabled=function(){return!!this.F.getOption("captions","track").displayName};
g.NV.prototype.Pa=function(){var a=null!=g.JT(this.F.wb()),b=300;this.F.V().T&&(b=480);if(this.F.V().J){this.updateValue("title",g.WT(this.F,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var c=a}else{if(a)null==(c=this.Da("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.WT(this.F,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var d;null==(d=
this.Da("ytp-subtitles-button-icon"))||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}$S(this.tooltip);c=c&&this.F.jb().getPlayerSize().width>=b;g.bQ(this,c);this.F.Ua(this.element,c);a&&this.updateValue("pressed",this.isEnabled())};g.w(g.PV,g.U);g.k=g.PV.prototype;
g.k.yc=function(){var a=this.api.jb().getPlayerSize().width,b=this.J;this.api.V().T&&(b=400);b=a>=b&&(!RV(this)||!g.S(this.api.Cb(),64));g.bQ(this,b);g.Up(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.u&&(c-=a.airingStart);QV(this)&&(c-=this.Bb.startTimeMs/1E3);c=g.eR(c);this.B!==c&&(this.updateValue("currenttime",c),this.B=c);b=QV(this)?g.eR((this.Bb.endTimeMs-this.Bb.startTimeMs)/
1E3):g.eR(this.api.getDuration(b,!1));this.C!==b&&(this.updateValue("duration",b),this.C=b)}a=a.isAtLiveHead;!RV(this)||this.I===a&&this.D===this.isPremiere||(this.I=a,this.D=this.isPremiere,this.yc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.ge(this.isPremiere?"Premiere":"Live"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Skip ahead to live broadcast.",this.j=g.ZS(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Bb!==a;this.Bb=a;b&&OV(this)};
g.k.onLoopRangeChange=function(a){var b=this.Bb!==a;this.Bb=a;b&&(this.yc(),OV(this))};
g.k.V7=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.V().K("enable_topsoil_wta_for_halftime")||this.api.V().K("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.yc();OV(this)};
g.k.updateVideoData=function(a){this.yC=a.isLivePlayback&&!a.Xb;this.u=aN(a);this.isPremiere=a.isPremiere;g.Up(this.element,"ytp-live",RV(this))};
g.k.onClick=function(a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())};
g.k.qa=function(){this.j&&this.j();g.U.prototype.qa.call(this)};g.w(RPa,g.U);g.k=RPa.prototype;g.k.Hq=function(){var a=this.j.yg();this.C!==a&&(this.C=a,QPa(this,this.api.getVolume(),this.api.isMuted()))};
g.k.IR=function(a){g.bQ(this,350<=a.width)};
g.k.I0=function(a){if(!g.DO(a)){var b=g.zO(a),c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.ze(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),g.EO(a))}};
g.k.G0=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.ze(b/10,-10,10));g.EO(a)};
g.k.v7=function(){SV(this,this.u,!0,this.B,this.j.Ql());this.Z=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.H0=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Pm(this.T).x;this.api.setVolume(100*g.ze((a-c/2)/(b-c),0,1))};
g.k.u7=function(){SV(this,this.u,!1,this.B,this.j.Ql());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Z))};
g.k.onVolumeChange=function(a){QPa(this,a.volume,a.muted)};
g.k.US=function(){SV(this,this.u,this.isDragging,this.B,this.j.Ql())};
g.k.qa=function(){g.U.prototype.qa.call(this);g.Sp(this.J,"ytp-volume-slider-active")};g.w(g.TV,g.U);
g.TV.prototype.onVideoDataChange=function(){var a=this.api.getVideoData(1).D,b=this.api.V();this.visible=!!this.api.getVideoData().videoId&&!(a&&b.Z);g.bQ(this,this.visible);this.api.Ua(this.element,this.visible&&this.ea);this.visible&&(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a));b.B&&(this.j&&(this.Hc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Qp(this.element,"no-link"));this.Db()};
g.TV.prototype.onClick=function(a){this.api.K("web_player_log_click_before_generating_ve_conversion_params")&&this.api.qb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.fR(a),!1,!0,!0);if(g.fK(b)||g.oK(b)){var d={};b.ya&&g.fK(b)&&g.iS(d,b.loaderUrl);g.fK(b)&&g.pS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Zi(c,g.hS(d,"emb_logo"))}g.VT(c,this.api,a);this.api.K("web_player_log_click_before_generating_ve_conversion_params")||this.api.qb(this.element)};
g.TV.prototype.Db=function(){var a={G:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{G:"path",xc:!0,N:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
b=this.api.V(),c=b.K("shorts_mode_to_player_api")?this.api.Sb():this.u.Sb();g.oK(b)?(b=this.Da("ytp-youtube-music-button"),a=(c=300>this.api.getPlayerSize().width)?{G:"svg",X:{fill:"none",height:"24",width:"24"},W:[{G:"circle",X:{cx:"12",cy:"12",fill:"red",r:"12"}},{G:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09z",fill:"#fff"}}]}:{G:"svg",X:{viewBox:"0 0 80 24"},W:[{G:"ellipse",X:{cx:"12.18",
cy:"12",fill:"red",rx:"12.18",ry:"12"}},{G:"ellipse",X:{cx:"12.18",cy:"12",fill:"red",rx:"7.308",ry:"7.2",stroke:"#fff","stroke-width":"1.2"}},{G:"path",X:{d:"M9.74 15.54l6.32-3.54-6.32-3.54v7.09zM37.43 9.64c-.57 2.85-1.01 6.33-1.25 7.77h-.16c-.18-1.48-.62-4.94-1.22-7.75L33.31 2.67h-4.52v18.85h2.80V5.98l.27 1.45 2.85 14.08h2.80l2.80-14.08.3-1.45v15.54h2.80V2.67h-4.56l-1.43 6.96zM51.01 18.69c-.25.51-.81.87-1.36.87-.64 0-.90-.49-.90-1.70V7.75H45.54v10.29c0 2.54.85 3.70 2.75 3.70 1.29 0 2.33-.56 3.05-1.90h.07l.27 1.68h2.50V7.75h-3.19v10.94h.00zM60.39 13.19c-1.04-.74-1.69-1.23-1.69-2.31 0-.76.37-1.19 1.25-1.19.90 0 1.20.60 1.22 2.67l2.68-.11c.20-3.34-.92-4.74-3.87-4.74-2.73 0-4.07 1.19-4.07 3.63 0 2.22 1.11 3.23 2.92 4.56 1.55 1.16 2.45 1.82 2.45 2.76 0 .72-.46 1.21-1.27 1.21-.95 0-1.50-.87-1.36-2.40l-2.71.04c-.41 2.85.76 4.51 3.91 4.51 2.75 0 4.19-1.23 4.19-3.70-.00-2.24-1.16-3.14-3.66-4.94zM68.87 7.75h-3.05v13.77h3.06V7.75zM67.36 2.31c-1.18 0-1.73.42-1.73 1.91 0 1.52.55 1.90 1.73 1.90 1.20 0 1.73-.38 1.73-1.90 0-1.41-.53-1.91-1.73-1.91zM79.15 16.56l-2.80-.13c0 2.42-.27 3.21-1.22 3.21-.95 0-1.11-.87-1.11-3.73v-2.67c0-2.76.18-3.63 1.13-3.63.88 0 1.11.83 1.11 3.39l2.77-.17c.18-2.13-.09-3.59-.94-4.42-.62-.60-1.57-.89-2.89-.89-3.10 0-4.37 1.61-4.37 6.15v1.93c0 4.67 1.08 6.17 4.26 6.17 1.34 0 2.27-.27 2.89-.85.90-.81 1.24-2.20 1.18-4.34z",
fill:"#fff"}}]},g.Up(b,"ytp-youtube-music-logo-icon-only",c)):c&&(a={G:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{G:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]});a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
g.TV.prototype.Zb=function(a){g.U.prototype.Zb.call(this,a);this.api.Ua(this.element,this.visible&&a)};g.w(TPa,g.bI);g.k=TPa.prototype;g.k.Ie=function(){g.S(this.F.Cb(),2)||(this.Kc.yc(),this.tj.yc())};
g.k.qn=function(){this.KJ();if(this.Ve.u){this.Ie();var a;null==(a=this.tb)||a.show()}else{g.XV(this.Kc.tooltip);var b;null==(b=this.tb)||b.hide()}};
g.k.Iv=function(){this.Ie();this.lf.start()};
g.k.KJ=function(){var a=!this.F.V().u&&300>g.rPa(this.Kc)&&this.F.Cb().bd()&&!!window.requestAnimationFrame,b=!a;this.Ve.u||(a=b=!1);b?this.ea||(this.ea=this.S(this.F,"progresssync",this.Ie)):this.ea&&(this.Hc(this.ea),this.ea=null);a?this.lf.isActive()||this.lf.start():this.lf.stop()};
g.k.Db=function(){var a=this.u.yg(),b=this.F.jb().getPlayerSize(),c=VPa(this),d=Math.max(b.width-2*c,100);if(this.ib!==b.width||this.fb!==a){this.ib=b.width;this.fb=a;var e=WPa(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.yV(this.Kc,c,e,a);this.u.Ic().LJ=e}c=this.B;e=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-XPa(this))));c.maxWidth=Math.min(570*(a?1.5:1),d);c.UE=e;c.lA();this.KJ();this.F.V().K("html5_player_dynamic_bottom_gradient")&&g.VU(this.kb,b.height)};
g.k.onVideoDataChange=function(){var a=this.F.getVideoData(),b,c,d,e=null==(b=a.kf)?void 0:null==(c=b.embedPreview)?void 0:null==(d=c.thumbnailPreviewRenderer)?void 0:d.controlBgHtml;b=a.K("embeds_web_enable_video_data_refactoring_embedded_player_response")?!!e:a.D;e=a.K("embeds_web_enable_video_data_refactoring_embedded_player_response")?null!=e?e:"":a.Wc;this.Ja.style.background=b?e:"";g.bQ(this.ya,a.jQ);this.oa&&jOa(this.oa,a.showSeekingControls);this.Z&&jOa(this.Z,a.showSeekingControls)};
g.k.ub=function(){return this.C.element};g.w(YPa,EU);g.k=YPa.prototype;g.k.YG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.F.Na("innertubeCommand",this.onClickCommand),this.WC())};
g.k.WC=function(){this.enabled=!1;this.I.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&ZPa(this);if(this.F.K("embeds_web_enable_video_data_refactoring_player_overlay_renderer")){a=[];var c,d,e,f;if(b=null==(f=g.K(null==(c=b.jd)?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,mza))?void 0:f.suggestedActions)for(c=g.t(b),d=c.next();!d.done;d=c.next())(d=g.K(d.value,nza))&&g.K(d.trigger,lM)&&a.push(d)}else a=b.suggestedActions;c=a;if(0!==c.length){a=[];c=g.t(c);for(d=c.next();!d.done;d=
c.next())if(d=d.value,e=g.K(d.trigger,lM))f=(f=d.title)?g.gE(f):"View Chapters",b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(a.push(new g.XD(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.F.ye(a)}};
g.k.Yz=function(){return this.enabled};
g.k.Bg=function(){this.enabled?this.oa.start():CU(this);this.dl()};
g.k.qa=function(){ZPa(this);EU.prototype.qa.call(this)};var g4={},UV=(g4.CHANNEL_NAME="ytp-title-channel-name",g4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",g4.LINK="ytp-title-link",g4.SESSIONLINK="yt-uix-sessionlink",g4.SUBTEXT="ytp-title-subtext",g4.TEXT="ytp-title-text",g4.TITLE="ytp-title",g4);g.w(VV,g.U);
VV.prototype.onClick=function(a){this.api.qb(this.element);var b=this.api.V(),c=this.api.getVideoUrl(!g.fR(a),!1,!0);if(g.fK(b)){var d={};b.ya&&g.iS(d,b.loaderUrl);g.pS(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Zi(c,g.hS(d,"emb_title"))}g.VT(c,this.api,a)};
VV.prototype.Pa=function(){var a=this.api.getVideoData(),b=this.api.V();this.updateValue("title",a.title);var c={G:"a",N:UV.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},ra:"{{channelName}}"};this.api.V().B&&(c={G:"span",N:UV.CHANNEL_NAME,ra:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);$Pa(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Lc&&c.profilePicture?(this.updateValue("channelLink",
c.Lc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):$Pa(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.ij;g.Up(this.link,UV.FULLERSCREEN_LINK,c);b.oa||!a.videoId||c||a.D&&b.Z||b.B?this.j&&(this.updateValue("url",null),this.Hc(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.S(this.link,"click",this.onClick)));b.B&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.fK(b)?a.ph:a.author),
this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.w(g.WV,g.U);g.k=g.WV.prototype;g.k.fP=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:eQa(this);this.I.show();break;default:this.I.show()}else this.I.hide();this.T=a};
g.k.iW=function(a,b){a<=this.C&&this.C<=b&&(a=this.C,this.C=NaN,bQa(this,a))};
g.k.x4=function(){Qya(this.u,this.C,this.J*this.scale)};
g.k.Nn=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.oa);a.addEventListener("mouseover",this.D);a.removeEventListener("blur",this.oa);a.addEventListener("focus",this.D);fQa(this);break;case 3:fQa(this);break;case 1:this.u&&(this.u.unsubscribe("l",this.iW,this),this.u=null),this.api.removeEventListener("videoready",this.ya),this.Aa.stop()}this.type=null;this.T&&this.I.hide()};
g.k.rk=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.zf(arguments[a],this.j)&&this.Nn()};
g.k.qa=function(){null!=this.type&&this.Nn();this.u&&this.u.dispose();g.U.prototype.qa.call(this)};g.w(hQa,g.U);g.k=hQa.prototype;g.k.UA=function(){this.visible=iQa(this);g.bQ(this,this.visible);this.icon&&lQa(this,this.icon);this.F.Ua(this.element,this.visible&&this.ea)};
g.k.Ce=function(){return this.F.getVideoData().videoId};
g.k.onClick=function(){var a=this;this.F.qb(this.element);var b=this.F.V(),c=this.Ce();b.authUser?gQa(this):this.F.fI()?this.F.requestStorageAccess(function(){g.rA("embedsItpWatchLaterResult",{accepted:!0});xD();jQa(a,c)},function(){g.rA("embedsItpWatchLaterResult",{accepted:!1});
kQa(a,"Sorry, saving failed because your cookies are blocked by the browser.")}):jQa(this,c)};
g.k.Jv=function(){this.isRequestPending=this.j=!1;this.Pa(2);this.UA()};
g.k.Pa=function(a,b){var c=this.F.V();lQa(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.lO("Added as $USER_NAME",a):g.lO("Watch later as $USER_NAME",a),image:LK(c)})):this.update({title:"Watch later",image:null});$S(this.tooltip)};
g.k.Zb=function(a){g.U.prototype.Zb.call(this,a);this.F.Ua(this.element,this.visible&&a)};g.w(g.YV,g.eU);g.k=g.YV.prototype;g.k.Ic=function(){return this.tooltip};
g.k.Op=function(a,b){b?this.Co=a:this.Co=null;this.fl()};
g.k.qy=function(a,b){if(b)this.Xs.push(a);else for(b=this.Xs.length;0<=b;b--)if(this.Xs[b]===a){this.Xs.splice(b,1);break}QT(this.Ve,64,0<this.Xs.length)};
g.k.Ct=function(){this.api.nk()&&this.api.xo();return!!this.Co||mQa(this)||g.eU.prototype.Ct.call(this)};
g.k.Tz=aa(36);g.k.Tq=aa(34);g.k.Sq=aa(32);
g.k.fl=function(){var a=!this.Ct(),b=this.api.V().K("shorts_mode_to_player_api")?this.api.Sb():this.Sb();b=a&&this.api.nk()&&!g.S(this.api.Cb(),2)&&!(this.api.getVideoData().D&&this.api.V().Z)&&!this.api.V().B&&!b;var c=this.oq&&g.KS(this.api)&&g.S(this.api.Cb(),128);a||c?(this.JP.show(),this.KP.show()):(this.JP.hide(),this.KP.hide(),this.tooltip.rk(this.Fh.element));b?this.Wi.od():this.Wi.Fb();this.dh&&UPa(this.dh,this.oO||!a);this.api.K("web_player_hide_overflow_button_if_empty_menu")&&nQa(this);
g.eU.prototype.fl.call(this)};
g.k.Uv=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Sm(a),h=d||this.dh&&g.zf(this.dh.ub(),b),l=d=null;null!=c&&h||(d=g.Sm(b),l=g.Qm(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.dh,d=VPa(b),l=WPa(b),h=this.api.jb().getPlayerSize().height,c=g.ze(c,d,d+l-f.width),f=h-XPa(b)-f.height):g.zf(this.Fh.element,b)?(b=this.api.jb().getPlayerSize().width,c=g.ze(c,12,b-f.width-12),f=this.yg()?this.RK:this.QK,"gvn"===this.api.V().playerStyle&&(f+=
20),this.oq&&(f-=this.yg()?26:18)):(b=this.api.jb().getPlayerSize(),c=g.ze(c,12,b.width-f.width-12),f=l.y>(b.height-d.height)/2?l.y-f.height-12:l.y+d.height+12);a.style.top=f+(e||0)+"px";a.style.left=c+"px"};
g.k.qn=function(a){a&&(this.tooltip.rk(this.Fh.element),this.dh&&this.tooltip.rk(this.dh.ub()));this.rG&&(g.Up(this.contextMenu.element,"ytp-autohide",a),g.Up(this.contextMenu.element,"ytp-autohide-active",!0));g.eU.prototype.qn.call(this,a)};
g.k.DN=function(){g.eU.prototype.DN.call(this);this.rG&&(g.Up(this.contextMenu.element,"ytp-autohide-active",!1),this.rG&&(this.contextMenu.hide(),this.Bh&&this.Bh.hide()))};
g.k.zk=function(a,b){var c=this.api.jb().getPlayerSize();c=new g.Em(0,0,c.width,c.height);if(a||this.Ve.u&&!this.Ct()){if(this.api.V().vl||b)a=this.yg()?this.RK:this.QK,c.top+=a,c.height-=a;this.dh&&(c.height-=XPa(this.dh))}return c};
g.k.Hq=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.IF.element,b),b.parentElement.insertBefore(this.HF.element,b.nextSibling))):g.CD(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.IF.detach(),this.HF.detach());this.Db();this.wp()};
g.k.yg=function(){var a=this.api.V();return this.api.isFullscreen()&&!a.T||!1};
g.k.showControls=function(a){this.pF=!a;this.fl()};
g.k.Db=function(){var a=this.yg();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Up(this.contextMenu.element,"ytp-big-mode",a);this.fl();this.api.K("web_player_hide_overflow_button_if_empty_menu")||nQa(this);this.wp();var b=this.api.V().K("shorts_mode_to_player_api")?this.api.Sb():this.Sb();b&&a?(a=(this.api.jb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Hm(this.Fh.element,"padding-left",a+"px"),g.Hm(this.Fh.element,"padding-right",a+"px")):b&&(g.Hm(this.Fh.element,"padding-left",
""),g.Hm(this.Fh.element,"padding-right",""));g.eU.prototype.Db.call(this)};
g.k.SL=function(){if(mQa(this)&&!g.KS(this.api))return!1;var a=this.api.getVideoData();return!g.fK(this.api.V())||2===this.api.getPresentingPlayerType()||!this.kf||((a=this.kf||a.kf)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.K(a.videoDetails,Nza)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.eU.prototype.SL.call(this):!1};
g.k.wp=function(){g.eU.prototype.wp.call(this);this.api.Ua(this.title.element,!!this.To);this.Dz&&this.Dz.Zb(!!this.To);this.channelAvatar.Zb(!!this.To);this.overflowButton&&this.overflowButton.Zb(this.Wg()&&!!this.To);this.shareButton&&this.shareButton.Zb(!this.Wg()&&!!this.To);this.Jn&&this.Jn.Zb(!this.Wg()&&!!this.To);this.Bi&&this.Bi.Zb(!this.Wg()&&!!this.To);if(!this.To){this.tooltip.rk(this.Fh.element);for(var a=0;a<this.hE.length;a++){var b=this.hE[a];b.ej()&&b.Fb()}}};
g.k.pc=function(a){this.dh&&UPa(this.dh,this.Ct());this.fl();g.eU.prototype.pc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h){return this.xq?this.xq.handleGlobalKeyDown(a,b,c,d,e,f,h):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.xq?this.xq.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Il=function(){if(this.contextMenu.yb)return this.contextMenu.Fb(),!0;if(this.Xs.length)return this.Xs[this.Xs.length-1].Fb(),!0;if(this.Co)return this.Co.Fb(),!0;this.dh&&this.tooltip.rk(this.dh.ub());this.gi&&this.tooltip.rk(this.gi.element);return g.eU.prototype.Il.call(this)};
g.k.cI=function(a,b){this.nN=b;this.qy(a,b);this.LY()};
g.k.LY=function(){var a=this.nN||this.contextMenu.ej();this.BK!==a&&(this.BK=a,this.api.Na("onAutonavPauseRequest",this.BK))};
g.k.h3=function(){oQa(this,this.api.getRootNode(),!0).focus()};
g.k.j3=function(){oQa(this,this.api.getRootNode(),!1).focus()};
g.k.Nm=function(){return this.dh&&this.dh.B};
g.k.tp=function(){this.Ve.tp()};
g.k.nG=function(){this.Qc.hide()};
g.k.nw=function(a){this.Qc.nw(!g.RO(a))};
g.k.GD=function(a,b,c,d){this.Ou.GD(a,b,c,d)};
g.k.FD=function(a,b){pNa(this.Ou,a,b)};
g.k.P5=function(){pQa(this,!0)};
g.k.Jv=function(){nQa(this)};
g.k.n6=function(a){pQa(this,!1,a)};
g.k.PF=function(){return this.contextMenu};
g.k.aB=function(a){var b;if(null!=(b=this.dh)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.t(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ea(b.j.element,d)}};
g.k.Vr=function(){var a,b=null==(a=this.dh)?void 0:a.Kc;if(b){var c;(null==(c=b.u)?0:c.isEnabled)&&b.Vr()}};g.w(g.ZV,g.CT);g.ZV.prototype.Tk=function(){return!1};
g.ZV.prototype.create=function(){var a=this.player.V();g.nK(a)&&a.u?this.chrome=new g.eU(this.player):this.chrome=new g.YV(this.player);g.E(this,this.chrome);this.chrome.init();this.player.jg("ux")};
g.ZV.prototype.MB=function(){return this.chrome};g.w(aW,g.C);aW.prototype.B=function(a,b){if(b){b=b instanceof g.DF?b:bW(this,b);var c;(null==(c=this.j.get(a))?void 0:FF(c.location))!==FF(b)&&this.j.set(a,new yQa(b,a))}else this.j.delete(a)};
aW.prototype.load=function(){var a=this,b,c,d,e,f,h,l,m,n,p;return g.A(function(q){switch(q.j){case 1:b=a.j.get(0);g.pa(q,2);var r;if(r=b&&!a.u)r=FF(b.location),r=a.u===dW(r);if(r){q.Ka(4);break}return g.y(q,wQa(a,a.u?2:0),5);case 5:if(c=q.u)a.B(0,c),HF(c)&&a.B(1,IF(c));case 4:g.ra(q,3);break;case 2:d=g.sa(q);g.DD(d);if(!a.u){q.Ka(3);break}a.u=!1;return g.y(q,a.load(),7);case 7:return q.return();case 3:if(!a.Y.experiments.ob("html5_onesie_probe_ec_hosts")){q.Ka(0);break}g.pa(q,9);e=a;f=e.B;h=3;return g.y(q,
wQa(a,1),11);case 11:return f.call(e,h,q.u),l=a,m=l.B,n=4,g.y(q,wQa(a,2),12);case 12:m.call(l,n,q.u);g.ra(q,0);break;case 9:p=g.sa(q),g.DD(p),g.oa(q)}})};
aW.prototype.J=function(){var a=this,b,c;return g.A(function(d){g.Jp(a.T);b=g.gJ(a.Y.experiments,"html5_onesie_prewarm_max_lact_ms");if(NC()>=b)return d.return();(c=a.j.get(0))&&uQa(a,c);g.oa(d)})};
var rQa={qQa:0,xSa:1,pRa:2,ySa:3,Ima:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};g.eW.prototype.info=function(){};
var CQa=new Map;fW.prototype.Vj=function(){if(!this.Le.length)return[];var a=this.Le;this.Le=[];this.B=g.jb(a).info;return a};
fW.prototype.Rv=function(){return this.Le};g.w(hW,g.C);g.k=hW.prototype;g.k.Up=function(){return Array.from(this.Xc.keys())};
g.k.lw=function(a){a=this.Xc.get(a);var b=a.Le;a.Qx+=b.totalLength;a.Le=new LF;return b};
g.k.Vg=function(a){return this.Xc.get(a).Vg};
g.k.Qh=function(a){return this.Xc.get(a).Qh};
g.k.Kv=function(a,b,c,d){this.Xc.get(a)||this.Xc.set(a,{Le:new LF,Cq:[],Qx:0,bytesReceived:0,KU:0,CO:!1,Vg:!1,Qh:!1,Ek:b,AX:[],gb:[],OG:[]});b=this.Xc.get(a);this.Sa?(c=MQa(this,a,c,d),LQa(this,a,b,c)):(c.Xm?b.KU=c.Pq:b.OG.push(c),b.AX.push(c))};
g.k.Om=function(a){var b;return(null==(b=this.Xc.get(a))?void 0:b.gb)||[]};
g.k.qz=function(){for(var a=g.t(this.Xc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.CO&&(b.Ie&&b.Ie(),b.CO=!1)};
g.k.Iq=function(a){a=this.Xc.get(a);iW&&a.Cq.push({data:new LF([]),qL:!0});a&&!a.Qh&&(a.Qh=!0)};
g.k.Vj=function(a){var b,c=null==(b=this.Xc.get(a))?void 0:b.Zd;if(!c)return[];this.Sm(a,c);return c.Vj()};
g.k.Nk=function(a){var b,c,d;return!!(null==(c=null==(b=this.Xc.get(a))?void 0:b.Zd)?0:null==(d=c.Rv())?0:d.length)||JQa(this,a)};
g.k.Sm=function(a,b){for(;JQa(this,a);)if(iW){var c=this.Xc.get(a),d=c.Cq.shift();c.Qx+=(null==d?void 0:d.data.totalLength)||0;c=d;gW(b,c.data,c.qL)}else c=this.lw(a),d=a,d=this.Xc.get(d).Vg&&!IQa(this,d),gW(b,c,d&&KQa(this,a))};
g.k.qa=function(){g.C.prototype.qa.call(this);for(var a=g.t(this.Xc.keys()),b=a.next();!b.done;b=a.next())FQa(this,b.value);this.Xc.clear()};
var iW=!1;var lW=[],m0a=!1;g.PY=Nd(function(){var a="";try{var b=g.qf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.w(mW,g.C);mW.prototype.B=function(){null!=this.j&&this.app.getVideoData()!==this.j&&aM(this.j)&&R0a(this.app,this.j,void 0,void 0,this.u)};
mW.prototype.qa=function(){this.j=null;g.C.prototype.qa.call(this)};g.w(g.nW,FO);g.k=g.nW.prototype;g.k.isView=function(){return!0};
g.k.QO=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Nh(),c=mI(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Vu=function(){return pI(this.mediaElement.Vu(),this.start,this.end)};
g.k.Nh=function(){return pI(this.mediaElement.Nh(),this.start,this.end)};
g.k.dC=function(){return pI(this.mediaElement.dC(),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.QO()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.lc=function(){var a=FO.prototype.lc.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.QE=function(){return this.mediaElement.QE()};
g.k.Hx=function(a){this.mediaElement.Hx(a)};
g.k.zs=function(){return this.mediaElement.zs()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.nL=function(){this.mediaElement.nL()};
g.k.lL=function(){this.mediaElement.lL()};
g.k.du=function(){return this.mediaElement.du()};
g.k.ub=function(){return this.mediaElement.ub()};
g.k.Qf=function(){return this.mediaElement.Qf()};
g.k.SE=function(a){this.mediaElement.SE(a)};
g.k.OH=function(){this.mediaElement.OH()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.xs=function(){return this.mediaElement.xs()};
g.k.setLoop=function(a){this.mediaElement.setLoop(a)};
g.k.canPlayType=function(a,b){return this.mediaElement.canPlayType(a,b)};
g.k.Ip=function(){return this.mediaElement.Ip()};
g.k.hh=function(){return this.mediaElement.hh()};
g.k.Qh=function(){return this.mediaElement.Qh()};
g.k.VF=function(){return this.mediaElement.VF()};
g.k.Sz=function(a){this.mediaElement.Sz(a)};
g.k.RE=function(){return this.mediaElement.RE()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.xj=function(){return this.mediaElement.xj()};
g.k.WF=function(){return this.mediaElement.WF()};
g.k.Ye=function(){return this.mediaElement.Ye()};
g.k.zf=function(){return this.mediaElement.zf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.wh=function(){return this.mediaElement.wh()};
g.k.Dt=function(){return this.mediaElement.Dt()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Bs=function(){return this.mediaElement.Bs()};
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.bB=aa(19);g.k.bE=aa(21);g.k.cE=aa(23);g.k.Ux=aa(25);g.k.AB=function(){return this.mediaElement.AB()};
g.k.Dr=function(a){this.mediaElement.Dr(a)};
g.k.getStyle=function(a){return this.mediaElement.getStyle(a)};
g.k.JM=function(){return this.mediaElement.JM()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.sL=function(a){this.mediaElement.sL(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};g.w(TQa,g.C);g.k=TQa.prototype;g.k.getStatus=function(){return this.status};
g.k.uu=function(){var a=this.j.getVideoData(),b=this.u.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.t(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.qe()){f=SQa(this.j,this.u,this.fm);h=UQa(this);c=h.E2;e=h.MV;d=h.hT;h=h.LV;if(!this.I){var l=1E3*this.u.xk(),m=this.j.xk();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.u.CD(l,m,a);
this.I=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Eg(b,f)):2===this.status.status?bRa(this):(a=this.j.zs())&&AI(a)&&(!wI(a)&&g.Yy()?this.Eg("mse_closed"):b.j&&tF(b.j)&&a.u&&!a.u.SF()?this.Eg("encr_upgrade"):(b=this.j.qe(),b.Qh()?this.Eg("elem_ended"):0>e?this.Eg("next_player_future"):(this.D=d,this.currentVideoDuration=d-c,this.B=Gva(a,c,d,!0),this.C=Gva(a,e,h,!1),a=this.u.getVideoData().clientPlaybackNonce,this.j.xa("gaplessPrep",{cpn:a}),ZQa(this.j,this.B),this.j.setMediaElement(VQa(b,c,d,!this.j.getVideoData().isAd())),
pW(this,2),bRa(this))))}else this.Eg("no-elem")};
g.k.kx=function(a){var b=a===aRa(this).LX,c=b?this.B.j:this.B.u;b=b?this.C.j:this.C.u;if(c.isActive&&!b.isActive){var d=this.D;lI(a.Ig(),d-.01)&&(pW(this,4),c.isActive=!1,c.rE=c.rE||c.isActive,this.u.xa("sbh",{}),b.isActive=!0,b.rE=b.rE||b.isActive);a=this.C.u;this.C.j.isActive&&a.isActive&&(pW(this,5),0!==this.T&&(this.j.getVideoData().QR=!0,this.j.setLoopRange({startTimeMs:0,endTimeMs:1E3*this.currentVideoDuration})))}};
g.k.nW=function(){4<=this.status.status&&6>this.status.status&&this.Eg("player-reload-after-handoff")};
g.k.Eg=function(a,b){b=void 0===b?{}:b;if(!this.isDisposed()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.u){var d=this.u.getVideoData().clientPlaybackNonce;this.j.Kd(new PK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.fm,msg:a})));a=this.j;a.videoData.fb=!1;c&&IY(a);a.Fa&&XWa(a.Fa)}this.rp.reject(void 0);this.dispose()}};
g.k.qa=function(){$Qa(this);this.j.unsubscribe("newelementrequired",this.nW,this);if(this.B){var a=this.B.u;this.B.j.Ed.unsubscribe("updateend",this.kx,this);a.Ed.unsubscribe("updateend",this.kx,this)}g.C.prototype.qa.call(this)};
g.k.yd=function(a){g.YN(a,128)&&this.Eg("player-error-event")};g.w(rW,g.C);rW.prototype.clearQueue=function(){this.C&&this.C.reject("Queue cleared");sW(this)};
rW.prototype.vv=function(){return!this.j};
rW.prototype.qa=function(){sW(this);g.C.prototype.qa.call(this)};g.w(lRa,g.dE);g.k=lRa.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f){return a?4:hRa()?3:b?2:c?1:d?5:e?7:f?8:0};
g.k.cm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Bg())};
g.k.setMinimized=function(a){this.u!==a&&(this.u=a,this.Bg())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Bg())};
g.k.Uz=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Bg())};
g.k.wh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.Ay=function(){return this.fullscreen};
g.k.zg=function(){return this.u};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return hRa()};
g.k.Ty=function(){return this.pictureInPicture};
g.k.Ry=function(){return!1};
g.k.Bg=function(){this.ma("visibilitychange");var a=this.getVisibilityState(this.wh(),this.isFullscreen(),this.zg(),this.isInline(),this.Ty(),this.Ry());a!==this.C&&this.ma("visibilitystatechange");this.C=a};
g.k.qa=function(){kRa(this.B);g.dE.prototype.qa.call(this)};g.w(xW,g.C);g.k=xW.prototype;g.k.yy=function(){return this.Ec||0};
g.k.QL=function(){return this.C||0};
g.k.getCpnByClipId=function(a){if(this.B.has(a))return this.B.get(a);for(var b=g.t(this.segments),c=b.next();!c.done;c=b.next()){c=g.t(c.value.j.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value.getCpnByClipId(a))return d}};
g.k.Ef=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear();this.u.clear()};
g.k.qa=function(){this.Ef()};
g.w(nRa,g.C);g.k=nRa.prototype;g.k.yy=function(){return this.Ec};
g.k.QL=function(){return this.u};
g.k.getType=function(){return this.type};
g.k.OB=function(){var a;return(null==(a=this.videoData)?void 0:a.clientPlaybackNonce)||""};
g.k.getVideoData=function(){return this.videoData};
g.k.hs=function(){return this.clipId};g.w(g.zW,g.C);g.k=g.zW.prototype;
g.k.onCueRangeEnter=function(a){this.La.push(a);var b=a.getId(),c=""===b;this.Pb.add(a.B);c||this.va.xa("sdai",{enterAdCueRange:1});if(this.fb&&!this.j){this.fb=!1;if(!c){var d=this.D.get(b);d&&(c=this.va.getCurrentTime(),FW(this,{me:a,isAd:!0,qq:!0,nh:c,adCpn:b},{isAd:!1,qq:!1,nh:c}),this.api.ma("serverstitchedvideochange",d.Nc,d.Cr),this.va.xa("sdai",CW("midab",d)),this.El=1)}this.I=!1}else if(this.j){if(this.j.qq)this.va.xa("sdai",{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.nh,
cpn:b,currentTime:this.va.getCurrentTime()}),d=this.va.getCurrentTime(),a={me:a,isAd:!c,qq:!0,nh:d,adCpn:b},b={me:this.j.me,isAd:this.j.isAd,qq:!1,nh:d,adCpn:this.j.adCpn},this.j.me&&this.Pb.delete(this.j.me.B),FW(this,a,b);else{if(this.j.me===a){this.va.xa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.nh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.xa("sdai",{dchtsc:b});
this.j=void 0;return}a={me:a,isAd:!c,qq:!0,nh:this.va.getCurrentTime(),adCpn:b};FW(this,a,this.j)}this.j=void 0;this.I=!1}else this.j={me:a,isAd:!c,qq:!0,nh:this.va.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){if(this.Pb.has(a.B)){this.Pb.delete(a.B);this.La=this.La.filter(function(d){return d!==a});
this.fb&&(this.I=this.fb=!1,this.va.xa("sdai",{cref:1}));var b=a.getId(),c=""===b;if(this.j){if(this.j.qq){if(this.j.me===a){this.va.xa("sdai",{same_cue_range_pair_exit:1,acpn:this.j.adCpn,transitionTime:this.j.nh,cpn:b,currentTime:this.va.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.va.xa("sdai",{dchtsc:b});this.j=void 0;return}b={me:a,isAd:!c,qq:!1,nh:this.va.getCurrentTime(),adCpn:b};FW(this,this.j,b)}else this.va.xa("sdai",
{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.nh,upcomingCpn:b,contentCpn:this.va.getVideoData().clientPlaybackNonce,currentTime:this.va.getCurrentTime()});this.j=void 0;this.I=!1}else this.j={me:a,isAd:!c,qq:!1,nh:this.va.getCurrentTime(),adCpn:b}}else this.va.xa("sdai",{ignore_single_exit:1})};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;this.I=!0;if(void 0===b?0:b)qRa(this,a);else{b=this.api.Rc();var d=b===this.tb?this.Tb:null;HW(this,!1);this.Dc=a;null!=c&&this.uc.start(c);b&&(this.Tb=d||b.getPlayerState(),V_a(b),this.tb=b)}};
g.k.qa=function(){HW(this,!1);DRa(this);ERa(this);g.C.prototype.qa.call(this)};
g.k.kP=function(a){this.Wc=a;this.va.xa("sdai",{swebm:a})};
g.k.Bk=function(a,b,c){if(c&&b){var d=this.Ya.get(a);if(d){d.locations||(d.locations=new Map);var e=Number(b.split(";")[0]);c=new g.DF(c);this.Qa&&this.va.xa("sdai",{hdlredir:1,itag:b,seg:a,hostport:FF(c)});d.locations.set(e,c)}}};
g.k.Ds=function(a,b,c,d,e){var f=3===d;a=GRa(this,a,b,d,c);if(!a)return KW(this,b,f),this.va.xa("sdai",{gvprp:"ncp",seg:b}),null;f=a.Am;var h;d=(null==(h=JW(this,b-1,d,e))?void 0:h.Qr)||"";""===d&&this.va.xa("sdai",{eds:1});h=RJ(a.ssdaiAdsConfig||"")||void 0;e=this.va.getVideoData();var l;c=(null==(l=e.u)?void 0:l.containerType)||0;l=e.hS[c];b=a.pw&&b>=a.pw?a.pw:void 0;return{Pz:{lK:f?KRa(this,f):[],S1:h,Qr:d,RX:b,T9:Se(l.split(";")[0]),U9:l.split(";")[1]||""}}};
g.k.Im=function(a,b,c,d,e){var f=Number(c.split(";")[0]),h=3===d;a=GRa(this,a,b,d,c);this.Qa&&this.va.xa("sdai",{gdu:1,seg:b,itag:f,pb:""+!!a});if(!a)return KW(this,b,h),null;a.locations||(a.locations=new Map);if(!a.locations.has(f)){var l,m,n=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!n)return this.va.xa("sdai",{gdu:"noadpfmts",seg:b,itag:f}),KW(this,b,h),null;l=n.find(function(z){return z.itag===f});
if(!l||!l.url){var p=a.videoData.videoId;a=[];d=g.t(n);for(var q=d.next();!q.done;q=d.next())a.push(q.value.itag);this.va.xa("sdai",{gdu:"nofmt",seg:b,vid:p,itag:f,fullitag:c,itags:a.join(",")});KW(this,b,h);return null}a.locations.set(f,new g.DF(l.url,!0))}n=a.locations.get(f);if(!n)return this.va.xa("sdai",{gdu:"nourl",seg:b,itag:f}),KW(this,b,h),null;n=new IG(n);this.Wc&&(n.get("dvc")?this.va.xa("sdai",{dvc:n.get("dvc")||""}):n.set("dvc","webm"));var r;(e=null==(r=JW(this,b-1,d,e))?void 0:r.Qr)&&
n.set("daistate",e);a.pw&&b>=a.pw&&n.set("skipsq",""+a.pw);(e=this.va.getVideoData().clientPlaybackNonce)&&n.set("cpn",e);r=[];a.Am&&(r=KRa(this,a.Am),0<r.length&&n.set("acpns",r.join(",")));h||this.Ya.set(b,a);h=null;h=n.get("aids");var v;if(((null==(q=h)?void 0:null==(v=q.split(","))?void 0:v.length)||0)!==r.length)if(a.Am){var x;this.va.xa("sdai",{acpns_aids_nm:1,ids:MRa(this,a.Am).join("_"),acpns:r.join("_"),aids:null==(x=h)?void 0:x.replace(/,/g,"_"),cpn:e,trackType:d})}else this.va.xa("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:e});d=n.Ze();2048<(null==d?void 0:d.length)&&this.va.xa("sdai",{urltoolong:1,sq:b,itag:f,len:d.length});this.Qa&&(d&&(v=a.cpn,q=a.Am,ORa(this,v,q),q&&!this.Od.has(q)&&(v=LRa(this,v,q),x=NRa(this,q),this.va.xa("sdai",{iofa:v}),this.va.xa("sdai",{noawnzd:x-v}),this.va.xa("sdai",{acpns:r.join("."),aids:null==(p=h)?void 0:p.replace(/,/g,".")}),this.Od.add(q))),this.va.xa("sdai",{gdu:"v",seg:b,itag:c,ast:a.Ec.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.MD=function(a,b,c){var d=IW(this,a,c);return(d=d?(d.Ec+d.durationMs)/1E3:0)&&b>d?(this.kI(a,c,!0),this.va.seekTo(d),!0):!1};
g.k.kI=function(a,b,c){c=void 0===c?!1:c;if(a=IW(this,a,b)){var d=a.Am;if(d){this.va.xa("sdai",{skipadonsq:b,sts:c,abid:d,acpn:a.cpn,avid:a.videoData.videoId});c=this.ea.get(d);if(!c)return;c=g.t(c);for(d=c.next();!d.done;d=c.next())d.value.pw=b}this.u=a.cpn;HRa(this)}};
g.k.TO=function(){for(var a=g.t(this.T),b=a.next();!b.done;b=a.next())b.value.pw=NaN;HRa(this);this.va.xa("sdai",{rsac:"resetSkipAd",sac:this.u});this.u=""};
g.k.kE=aa(38);
g.k.fO=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Xa.set(a,{Qr:m,YA:l}):this.Aa.set(a,{Qr:m,YA:l}));if(h){if(d.length&&e.length)for(this.u&&this.u===d[0]&&this.va.xa("sdai",{skipfail:1,sq:a,acpn:this.u}),a=b+this.aq(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.Cr=null!=m.Cr?Math.min(m.Cr,l):l;if(!yW(this))if(d.length&&e.length)for(b=1E3*(b+this.aq()),c=0;c<d.length;c++)if(f=d[c],a=1E3*e[c],f===this.va.getVideoData().clientPlaybackNonce)JRa(this,b,b+a,!1),b+=a;else if(this.Ld.has(f)||(this.va.xa("sdai",
{adCpnFromEmsg:1}),this.Ld.add(f)),(h=this.C.get(f))&&h.start<=b&&h.end>=b+a)b=h.end;else{if(l=!1,h?b<h.start?h.start=b:h.end<b+a&&(h.end=b+a):(h=xRa(b,b+a,f),this.C.set(f,h),this.va.xa("sdai",{newAdCR:1,cpn:f,startTime:h.start,endTime:h.end}),l=!0),b=h.end,JRa(this,h.start,h.end,!0),l)for(this.va.addCueRange(h),f=this.va.CB("serverstitchedcuerange",36E5),f=g.t(f),a=f.next();!a.done;a=f.next())this.C.delete(a.value.getId())}else 5!==c&&4!==c||JRa(this,1E3*(b+this.aq()),1E3*(b+this.aq())+5E3,!1)}};
g.k.PB=aa(40);g.k.aq=function(){return this.va.aq()};
g.k.KC=function(a){this.va.xa("timelineerror",{e:a})};
g.k.kC=function(a){this.ya&&this.oa&&this.Ga.push(this.oa);a&&this.oa&&this.Lc.push(this.oa);this.oa=null;this.va.kC(a)};
g.k.fG=function(a){if(this.Np||a.identifier&&this.ke.has(a.identifier))this.Qa&&this.va.xa("sdai",{startnoad:a.identifier}),BW(this);else if(Wm(this.Ga,function(c){return c.identifier===a.identifier}))this.va.xa("sdai",{timedoutcp:1}),this.J.start(0);
else if(Wm(this.Lc,function(c){return c.identifier===a.identifier}))this.va.xa("sdai",{fetchedcp:1}),BW(this);
else if(this.J.isActive()){var b;this.va.xa("sdai",{racingcp:(null==(b=this.oa)?void 0:b.identifier)+"_"+a.identifier})}else this.Vd=(new Date).getTime()/1E3,this.Qa&&this.va.xa("sdai",{adf:1}),(b=g.gJ(this.Y.experiments,"html5_ssdai_adfetch_dynamic_timeout_ms")||0)&&"predictStart"===a.event&&(b-=a.j),this.jc=Math.max(b,g.gJ(this.Y.experiments,"web_player_ss_dai_ad_fetching_timeout_ms")||1E4),this.ya=!1,this.J.start(this.jc),this.oa=a,this.Aa.clear(),this.Xa.clear(),this.Ja.clear(),this.Xb=[]};
g.k.Fs=function(a,b){a=IW(this,a,b);if(!this.Y.experiments.ob("disable_ssdai_on_errors")||!a||this.Np)return!1;this.Np=!0;0<this.El&&(this.El=0,this.Z=null,this.api.ma("serverstitchedvideochange"));this.va.tF({reason:"disablessdai",sq:b});return!0};
g.k.Xu=function(){this.va.xa("sdai",{rstdaist:1});this.ib="";this.Aa.clear();this.Xa.clear();this.Ja.clear()};
g.k.kt=function(a){this.ke.add(a);var b;(null==(b=this.oa)?void 0:b.identifier)===a&&BW(this)};
g.k.eO=function(a,b,c,d){if(yW(this)){var e=this.va.getVideoData().clientPlaybackNonce;a=a||e;b=b||e;if(a!==b){var f=a===e?yRa(this):this.D.get(a),h=b===e?yRa(this):this.D.get(b);f&&h?(c=this.I?c:d,DW(this,this.u)&&this.va.xa("sdai",{rsac:"sscc",sac:this.u,from:f.cpn,to:h.cpn}),EW(this.va,f,h,c,d,this.I,!!this.u),this.u="",b===e?(this.kb=1E3*c,this.El=0,this.Z=null,this.va.xa("sdai",{adchg:this.El}),this.api.ma("serverstitchedvideochange")):(this.kb=0,this.El++,this.Z=h,this.va.xa("sdai",{adchg:this.El,
apid:this.Z.Nc,acpn:this.Z.cpn}),this.api.ma("serverstitchedvideochange",h.Nc,h.Cr))):this.va.xa("sdai",{unknowntrans:"1",old:a,"new":b});this.I=!1}}};
g.k.gt=function(a){var b=MT(this.api.wb());return b?b.gt(a):!1};
var vRa=0;g.w(LW,g.C);LW.prototype.addPlayerResponsesForAssociation=function(a){a=g.t(a.entries());for(var b=a.next();!b.done;b=a.next()){var c=g.t(b.value);b=c.next().value;c=c.next().value;var d=b;b=c;this.j.set(d,b);c=this.timeline.u.get(d);d=void 0;if(null==(d=c)?0:d.length)for(c=g.t(c),d=c.next();!d.done;d=c.next())g.cM(d.value.videoData,b,!0)}};
LW.prototype.finishSegmentByCpn=function(){return[]};
LW.prototype.getDuration=function(){var a=this.timeline.j;if(!a)return 0;var b=0;a=a.j.values();a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=(c.QL()-c.yy())/1E3;return b};
LW.prototype.qa=function(){this.j.clear();g.C.prototype.qa.call(this)};g.w(SRa,g.C);g.k=SRa.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Rc()){var b=this.I.get(a);b?YRa(this,b.target,b.fm,a):this.Kd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.u.find(function(e){return e.Tr.me===a})){var c=b.Tr,d=c.target;
c=c.fm;d?YRa(this,d,c,a):XRa(this,b.Dd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.J;PW(this);if(a){if(!OW(this,a)){var b=this.api.Rc();this.Kd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Rc().addCueRange(a.Tr.me)}};
g.k.seekTo=function(a,b,c){a=void 0===a?0:a;c=void 0===c?null:c;if(void 0===b?0:b)RRa(this,a);else{b=this.api.Rc();var d=b===this.C?this.D:null;QW(this,!1);this.ea=a;null!=c&&this.T.start(c);b&&(this.D=d||b.getPlayerState(),V_a(b),this.C=b)}};
g.k.Hi=function(a){g.YN(a,128)&&cSa(this)};
g.k.isManifestless=function(){return jM(this.j.getVideoData())};
g.k.qa=function(){QW(this,!1);eSa(this);g.C.prototype.qa.call(this)};
g.k.Kd=function(a,b){this.j.Kd(new PK(a,b))};
var TRa=0;var fSa="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_MUSIC_EMBEDDED_PLAYER WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.w(SW,g.C);g.k=SW.prototype;g.k.get=function(a){hSa(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);hSa(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.M)()+c);for(this.data.push(a);this.data.length>this.B;)(c=this.data.shift())&&TW(this,c,!0);RW(this)};
g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(TW(this,c,b),g.yb(this.data,function(d){return d.key===a}),RW(this))};
g.k.Ef=function(){var a;if(a=void 0===a?!1:a)for(var b=g.t(this.data),c=b.next();!c.done;c=b.next())TW(this,c.value,a);this.data=[];RW(this)};
g.k.qa=function(){var a=this;g.C.prototype.qa.call(this);this.data.forEach(function(b){TW(a,b,!0)});
this.data=[]};g.w(UW,g.C);UW.prototype.QF=function(a){if(a)return this.u.get(a)};
UW.prototype.qa=function(){this.j.Ef();this.u.Ef();g.C.prototype.qa.call(this)};g.w(VW,g.lq);VW.prototype.ma=function(a){var b=g.ya.apply(1,arguments);if(this.D.has(a))return this.D.get(a).push(b),!0;var c=!1;try{for(b=[b],this.D.set(a,b);b.length;)c=g.lq.prototype.ma.call.apply(g.lq.prototype.ma,[this,a].concat(g.u(b.shift())))}finally{this.D.delete(a)}return c};g.w(jSa,g.C);jSa.prototype.qa=function(){g.C.prototype.qa.call(this);this.j=null;this.u&&this.u.disconnect()};g.cdb=Nd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var h4;h4={};g.WW=(h4.STOP_EVENT_PROPAGATION="html5-stop-propagation",h4.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",h4.IV_DRAWER_OPEN="ytp-iv-drawer-open",h4.MAIN_VIDEO="html5-main-video",h4.VIDEO_CONTAINER="html5-video-container",h4.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",h4.HOUSE_BRAND="house-brand",h4);g.w(mSa,g.U);g.k=mSa.prototype;g.k.Dr=function(){g.Rp(this.element,g.ya.apply(0,arguments))};
g.k.rj=function(){this.kc&&(this.kc.removeEventListener("focus",this.MN),g.xf(this.kc),this.kc=null)};
g.k.jL=function(){this.isDisposed();var a=this.app.V();a.wm||this.Dr("tag-pool-enabled");a.J&&this.Dr(g.WW.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.Dr("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Dc&&(this.YK=g.pC("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)};
g.k.SD=function(a){g.kK(this.app.V());this.mG=!a;XW(this)};
g.k.resize=function(){if(this.kc){var a=this.Ij();if(!a.Bf()){var b=!g.Ie(a,this.Ez.getSize()),c=rSa(this);b&&(this.Ez.width=a.width,this.Ez.height=a.height);a=this.app.V();(c||b||a.Dc)&&this.app.Ta.ma("resize",this.getPlayerSize())}}};
g.k.Gs=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.kc){var b=this.app.V();nB&&(this.kc.setAttribute("x-webkit-airplay","allow"),a.title?this.kc.setAttribute("title",a.title):this.kc.removeAttribute("title"));Cza(a)?this.kc.setAttribute("disableremoteplayback",""):this.kc.removeAttribute("disableremoteplayback");this.kc.setAttribute("controlslist","nodownload");b.Xo&&a.videoId&&(this.kc.poster=a.wg("default.jpg"))}b=g.DM(a,"yt:bgcolor");this.kB.style.backgroundColor=b?b:"";this.qN=nz(g.DM(a,"yt:stretch"));this.rN=
nz(g.DM(a,"yt:crop"),!0);g.Up(this.element,"ytp-dni",a.D);this.resize()};
g.k.setGlobalCrop=function(a){this.gM=nz(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.QS=a;this.resize()};
g.k.cm=function(){};
g.k.getPlayerSize=function(){var a=this.app.V(),b=this.app.Ta.isFullscreen();if(b&&Xy())return new g.He(window.outerWidth,window.outerHeight);if(b||a.Vn){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.LC&&this.LC.media===a||(this.LC=window.matchMedia(a));var c=this.LC&&this.LC.matches}if(c)return new g.He(window.innerWidth,window.innerHeight)}else if(!isNaN(this.FB.width)&&!isNaN(this.FB.height))return this.FB.clone();return new g.He(this.element.clientWidth,
this.element.clientHeight)};
g.k.Ij=function(){var a=this.app.V().K("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.gJ(this.app.V().experiments,"player_underlay_min_player_width");return a&&this.zO&&b.width>c?new g.He(b.width*g.gJ(this.app.V().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.qN)?oSa(this):this.qN};
g.k.getVideoContentRect=function(a){var b=this.Ij();a=pSa(this,b,this.getVideoAspectRatio(),a);return new g.Em((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.Wz=function(a){this.zO=a;this.resize()};
g.k.uG=function(){return this.vH};
g.k.onMutedAutoplayChange=function(){XW(this)};
g.k.setInternalSize=function(a){g.Ie(this.FB,a)||(this.FB=a,this.resize())};
g.k.qa=function(){this.YK&&g.qC(this.YK);this.rj();g.U.prototype.qa.call(this)};g.k=sSa.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.FE();c&&a.visualElement&&g.kP(c,a.visualElement,b)};
g.k.sb=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=fta(c);a.visualElement=c;var f=g.FE(),h=g.EE();f&&h&&g.my(g.bP)(void 0,f,h,c);g.bb(b,function(){tSa(e,a)});
d&&this.u.add(a)};
g.k.Zf=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);g.bb(b,function(){tSa(d,a)});
c&&this.u.add(a)};
g.k.fL=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,pP().wk(a),uSa(this))};
g.k.og=function(a,b){this.elements.has(a);b&&(a.visualElement=g.BE(b))};
g.k.Dk=function(a){return this.elements.has(a)};vSa.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
vSa.prototype.getPlaybackRate=function(){return this.playbackRate};zSa.prototype.seek=function(a,b){a!==this.j&&(this.seekCount=0);this.j=a;var c=this.videoTrack.u,d=this.audioTrack.u,e=this.audioTrack.Vb,f=CSa(this,this.videoTrack,a,this.videoTrack.Vb,b);b=CSa(this,this.audioTrack,this.policy.uf?a:f,e,b);a=Math.max(a,f,b);this.C=!0;this.Sa.isManifestless&&(ASa(this.videoTrack,c),ASa(this.audioTrack,d));return a};
zSa.prototype.hh=function(){return this.C};
var BSa=2/24;HSa.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.M)()};g.w(JSa,g.dE);g.k=JSa.prototype;
g.k.VN=function(a,b,c,d){if(this.C&&d){d=[];var e=[],f=[],h=void 0,l=0;b&&(d=b.j,e=b.u,f=b.C,h=b.B,l=b.YA);this.C.fO(a.Ma,a.startTime,this.u,d,e,f,c,l,h)}if(c){if(b&&!this.ya.has(a.Ma)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.u[e],d.push({startTime:h,endTime:c,adCpn:f});this.ya.set(a.Ma,d)}this.policy.Od&&(c=this.oa&&a.Ma===this.oa.Ma+1,this.oa=a,d=this.j&&a.Ma===this.j.Ma+1,d=this.j&&c&&d&&"stop"!==this.j.jf.event&&"predictStart"!==this.j.jf.event,e=a.jf||null,f=this.T.j.index.td()<=
a.Ma,h=this.Sa.isManifestless&&this.policy.Zn,e?(this.j={jf:e,Ma:a.Ma,nC:!!b},f?hX(this,e,a.Ma):h&&(c?d?hX(this,e,a.Ma):"continue"===e.event||"stop"===e.event?MSa(this,a):hX(this,e,a.Ma):hX(this,e,a.Ma))):(d&&MSa(this,a),4===this.u&&iX(this,5,"qend")))}};
g.k.UN=function(a,b,c){var d=this.T.j.index.td()<=b;this.j={jf:a,Ma:b,nC:c};d&&hX(this,a,b)};
g.k.Xu=function(){this.C&&this.C.Xu()};
g.k.xa=function(a,b){this.Fa.xa(a,b)};
g.k.qp=function(a,b){var c=this.T.j.index.uh(a),d;if(d=0<=c){var e;d=(null==(e=JW(b.kd,c,2))?void 0:e.Qr)||""}if(d)return b.kI(a,c),VWa(this.Fa,a,a,c),this.xa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.xa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};
g.k.Gy=function(a){var b="",c=this.T.j.index.uh(a);if(c=this.ya.get(c)){c=g.t(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.startTime<=a&&a<d.endTime){b=d.adCpn;break}}return b};NSa.prototype.iA=function(a){var b=this.policy.ya;this.policy.ya=WI(a,{},this.D);if(b!==this.policy.ya){mX(this,this.B);nX(this);var c,d;b>this.policy.ya&&(null==(c=this.j)?0:KH(c.info))&&(null==(d=this.nextVideo)||!KH(d.info))&&(this.T=!0)}};$Sa.prototype.Vq=function(a){this.timestampOffset=a};lTa.prototype.dispose=function(){this.oa=!0};
lTa.prototype.isDisposed=function(){return this.oa};
g.w(xX,Error);ATa.prototype.skip=function(a){this.offset+=a};
ATa.prototype.Yp=function(){return this.offset};g.k=ETa.prototype;g.k.bU=function(){return this.u};
g.k.vk=function(){this.u=[];BX(this);DTa(this)};
g.k.lw=function(a){this.Qa=this.u.shift().info;a.info.equals(this.Qa)};
g.k.Om=function(){return g.Yl(this.u,function(a){return a.info})};
g.k.Ek=function(){return!!this.I.info.audio};
g.k.getDuration=function(){return this.I.index.ys()};var WTa=0;g.k=EX.prototype;g.k.gs=function(){this.oa||(this.oa=this.callbacks.gs?this.callbacks.gs():1);return this.oa};
g.k.wG=function(){return this.Hk?1!==this.gs():!1};
g.k.Mv=function(){this.Qa=this.now();this.callbacks.Mv()};
g.k.nt=function(a,b){$Ta(this,a,b);50>a-this.C&&HX(this)||aUa(this,a,b);this.callbacks.nt(a,b)};
g.k.Jq=function(){this.callbacks.Jq()};
g.k.qv=function(){return this.u>this.kH&&cUa(this,this.u)};
g.k.now=function(){return(0,g.M)()};KX.prototype.feed=function(a){MF(this.j,a);this.gf()};
KX.prototype.gf=function(){if(this.C){if(!this.j.totalLength)return;var a=this.j.split(this.B-this.u),b=a.oC;a=a.Wk;this.callbacks.aO(this.C,b,this.u,this.B);this.u+=b.totalLength;this.j=a;this.u===this.B&&(this.C=this.B=this.u=void 0)}for(;;){var c=0;a=g.t(jUa(this.j,c));b=a.next().value;c=a.next().value;c=g.t(jUa(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.callbacks.aO&&c+1<=this.j.totalLength))break;c=this.j.split(c).Wk;this.callbacks.aO(b,
c,0,a)&&(this.C=b,this.u=c.totalLength,this.B=a,this.j=new LF([]));break}a=this.j.split(c).Wk.split(a);c=a.Wk;this.callbacks.yz(b,a.oC);this.j=c}};
KX.prototype.dispose=function(){this.j=new LF};g.k=LX.prototype;g.k.JL=function(){return 0};
g.k.RF=function(){return null};
g.k.OT=function(){return null};
g.k.Os=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.Wm=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.qc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.qz=function(a){a&&this.state<a?this.qc(a):this.callback&&this.callback(this,this.state)};
g.k.isDisposed=function(){return-1===this.state};
g.k.dispose=function(){this.isDisposed()||(this.info.gb[0].j.C=!1,this.qc(-1))};
g.k.bM=function(){return 0};g.k=lUa.prototype;g.k.wz=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.callbacks.Mv()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.isDisposed||(this.u&&(this.j.append(this.u),delete this.u),this.callbacks.Jq())};
g.k.Zu=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.NB=function(){return+this.getResponseHeader("content-length")};
g.k.Kl=function(){return this.B};
g.k.BD=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.nq=function(){return 0<this.j.totalLength};
g.k.jw=function(){var a=this.j;this.j=new LF;return a};
g.k.pH=function(){return this.j};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Jt=function(){return!0};
g.k.GH=function(){return this.C};
g.k.zf=function(){return""};g.k=nUa.prototype;g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Zu=function(){return!0};
g.k.NB=function(){return this.range.length};
g.k.Kl=function(){return this.loaded};
g.k.BD=function(){return!!this.loaded};
g.k.nq=function(){return!!this.u.totalLength};
g.k.jw=function(){var a=this.u;this.u=new LF;return a};
g.k.pH=function(){return this.u};
g.k.Jt=function(){return!0};
g.k.GH=function(){return!!this.error};
g.k.zf=function(){return this.error};g.k=pUa.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.ea);this.B&&(b.signal=this.B.signal);a=new Request(a,b);fetch(a).then(this.oa,this.onError).then(void 0,qA)};
g.k.onDone=function(){this.isDisposed()||this.callbacks.Jq()};
g.k.getResponseHeader=function(a){return this.D?this.D.get(a):null};
g.k.Zu=function(){return!!this.D};
g.k.Kl=function(){return this.u};
g.k.NB=function(){return+this.getResponseHeader("content-length")};
g.k.BD=function(){return 200<=this.status&&300>this.status&&!!this.u};
g.k.nq=function(){return!!this.j.totalLength};
g.k.jw=function(){var a=this.j;this.j=new LF;return a};
g.k.pH=function(){return this.j};
g.k.isDisposed=function(){return this.I};
g.k.abort=function(){this.hp&&this.hp.cancel().catch(function(){});
this.B&&this.B.abort();this.I=!0};
g.k.Jt=function(){return!0};
g.k.GH=function(){return this.J};
g.k.zf=function(){return this.errorMessage};g.k=qUa.prototype;g.k.onDone=function(){if(!this.isDisposed){this.status=this.xhr.status;try{this.response=this.xhr.response,this.u=this.response.byteLength}catch(a){}this.j=!0;this.callbacks.Jq()}};
g.k.wz=function(){2===this.xhr.readyState&&this.callbacks.Mv()};
g.k.Ie=function(a){this.isDisposed||(this.status=this.xhr.status,this.j||(this.u=a.loaded),this.callbacks.nt((0,g.M)(),a.loaded))};
g.k.Zu=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.DD(Error("Could not read XHR header "+a)),""}};
g.k.NB=function(){return+this.getResponseHeader("content-length")};
g.k.Kl=function(){return this.u};
g.k.BD=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.u};
g.k.nq=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.jw=function(){var a=this.response;this.response=void 0;return new LF([new Uint8Array(a)])};
g.k.pH=function(){return new LF([new Uint8Array(this.response)])};
g.k.abort=function(){this.isDisposed=!0;this.xhr.abort()};
g.k.Jt=function(){return!1};
g.k.GH=function(){return!1};
g.k.zf=function(){return""};g.w(MX,g.C);g.k=MX.prototype;g.k.G8=function(){if(!this.isDisposed()&&!this.D){var a=(0,g.M)(),b=!1;HX(this.timing)?(a=this.timing.ea,YTa(this.timing),this.timing.ea-a>=.8*this.policy.Nd?(this.u++,b=this.u>=this.policy.wm):this.u=0):(b=this.timing,b.Hk&&iUa(b,b.now()),a-=b.T,this.policy.zm&&0<a&&(this.u+=1),b=Kua(NX(this),this.policy,!1)*this.policy.vl,b=a>1E3*b);0<this.u&&this.callbacks.rU();b?this.iE(!1):this.j.start()}};
g.k.iE=function(a){a&&(a=NX(this),a.u+=1);this.callbacks.WA();this.lastError="net.timeout";OX(this)};
g.k.canRetry=function(a){var b=NX(this);a=a?3:this.policy.Kf;return b.timedOut<this.policy.Uo&&b.j<a};
g.k.Ye=function(){return this.lastError};
g.k.As=function(){return this.u};
g.k.dispose=function(){this.j.dispose();g.C.prototype.dispose.call(this)};g.w(cX,LX);g.k=cX.prototype;g.k.aG=function(){return this.timing.requestNumber};
g.k.Ze=function(){return this.Me.Ze()};
g.k.Vp=function(){var a=uUa(this.Bd);if(this.uj){var b=this.uj,c=b.j.totalLength;a.ulen=c;0<c&&(b=RF(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.Kg&&(a.rc=this.policy.Eq?this.Kg:this.Kg.toString());a.itag=this.info.gb[0].j.info.itag;a.ml=""+ +this.info.gb[0].j.Jg();a.sq=""+this.info.gb[0].Ma;this.Me&&(a.ifi=""+ +HF(this.info.j.B));410!==this.Kg&&500!==this.Kg&&503!==this.Kg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?void 0:d.zf()))&&(a.msg=c);this.aE&&(a.smb="1");
this.Zd&&(d=this.Zd.Rv(),d.length&&mva(d[0],a));this.info.Im()&&(a.sdai="1");return a};
g.k.JT=function(){return fUa(this.timing)};
g.k.zf=function(){return this.xhr.zf()||""};
g.k.qv=function(){return this.isComplete()||this.timing.qv()};
g.k.nt=function(){!this.isDisposed()&&this.xhr&&(this.Kg=this.xhr.status,this.Nk()?this.qz(2):!this.AU&&this.qv()&&(this.qz(),this.AU=!0))};
g.k.Mv=function(){if(!this.isDisposed()&&this.xhr){if(!this.Wx&&this.xhr.Zu()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Wx=((0,g.M)()-a)/1E3}this.xhr.Zu()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Yy&&!pwa()&&g.Pz("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.Po=a||this.Po;this.kq=b||this.kq}};
g.k.Jq=function(){var a=this.xhr;!this.isDisposed()&&a&&(this.policy.useUmp||this.Bd.j.stop(),this.Kg=a.status,a=this.qM(a),5===a?OX(this.Bd):this.qc(a),this.policy.useUmp&&this.Bd.j.stop())};
g.k.qM=function(a){if(tUa(this.Bd,this.xhr))return 5;var b="";if(yUa(this)){var c=a.pH();c.totalLength<=this.policy.tm&&(b=QF(c),b=UF(b),b=TD(b)?b:"")}if(b)return KG(NX(this.Bd)),this.info.Bk(this.Me,b),3;b=a.Kl();if(this.uj){if(this.Sm(!0),!this.xY){if(this.yY)return KG(NX(this.Bd)),3;this.Bd.lastError="net.closed";return 5}}else{if((c=this.info.C)&&c!==b||a.GH())return this.Bd.lastError="net.closed",5;this.Sm(!0);if(!c&&this.Zd&&(c=this.Zd.Rv(),c.length&&!mva(c[0])))return this.Bd.lastError="net.closed",
5}c=kUa(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=kUa(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.GX=!0,this.policy.Cx&&(c=a);a=this.Bd;c=c?Number(c):0;bUa(a.timing,(0,g.M)(),b,c);b=a.B;b.u=0;b.D=0;b.I=0;KG(NX(a));if(null!=(a=this.Nv)&&(b=this.Me.zj,!((0,g.M)()<a.I+3E5||GF(b))&&(c=FF(b))&&vQa(c)&&a.u===dW(c))){var d;HF(b)&&(d=FF(IF(b)));g.Pz("yt-player-bandaid-host",{primary:c,secondary:d},864E3);a.I=(0,g.M)();sQa(a,{primary:c,secondary:d})}return 4};
g.k.canRetry=function(){this.isDisposed();return this.Bd.canRetry(!!this.info.Im())};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.ll?this.WA():IX(this.timing))};
g.k.iE=function(a){this.Bd.iE(a)};
g.k.rU=function(){this.callback&&this.callback(this,this.state)};
g.k.As=function(){return this.Bd.As()};
g.k.dispose=function(){LX.prototype.dispose.call(this);this.Bd.dispose();this.policy.ll||this.WA()};
g.k.WA=function(){this.xhr&&this.xhr.abort();IX(this.timing)};
g.k.Vj=function(){if(!this.Rv().length)return[];this.tM=!0;return this.Zd.Vj()};
g.k.Nk=function(){if(1>this.state)return!1;if(this.Zd&&this.Zd.Le.length)return!0;var a;return(null==(a=this.xhr)?0:a.nq())?!0:!1};
g.k.Rv=function(){this.Sm(!1);return this.Zd?this.Zd.Rv():[]};
g.k.Sm=function(a){try{if(a||this.xhr.Zu()&&this.xhr.nq()&&!yUa(this)&&!this.Bz){if(!this.Zd){var b;this.xhr.Jt()||this.uj?b=this.info.C:b=this.xhr.Kl();this.Zd=new fW(this.policy,this.info.gb,b)}this.xhr.nq()&&(this.uj?this.uj.feed(this.xhr.jw()):gW(this.Zd,this.xhr.jw(),a&&!this.xhr.nq()))}}catch(c){this.uj?xUa(this,c):g.DD(c)}};
g.k.yz=function(a,b){switch(a){case 21:a=b.split(1).Wk;gW(this.Zd,a,!1);break;case 22:this.xY=!0;gW(this.Zd,new LF([]),!0);break;case 43:if(a=nL(new hL(b),1))this.info.Bk(this.Me,a),this.yY=!0;break;case 45:this.policy.Rk&&(b=KLa(new hL(b)),a=b.XH,b=b.YH,a&&b&&(this.FK=a/b))}};
g.k.aO=function(a,b,c){if(21!==a)return!1;if(!c){if(1===b.totalLength)return!0;b=b.split(1).Wk}gW(this.Zd,b,!1);return!0};
g.k.Kl=function(){return this.xhr.Kl()};
g.k.JL=function(){return this.Wx};
g.k.gs=function(){return this.wG()?2:1};
g.k.wG=function(){if(!this.policy.I.dk||!isNaN(this.info.Tg)&&0<this.info.Tg)return!1;if(!this.xhr.Zu())return!0;if(this.uj)var a=!this.info.C;else this.xhr.NB()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);return!a||isNaN(this.info.Tg)&&(a=this.xhr.getResponseHeader("x-head-seqnum"))&&Number(a)>this.info.gb[0].Ma?!1:!0};
g.k.bM=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.RF=function(){this.xhr&&(this.Po=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Po};
g.k.OT=function(){this.xhr&&(this.kq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.kq};
g.k.Ye=function(){return this.Bd.Ye()};g.w(bX,LX);g.k=bX.prototype;g.k.onStateChange=function(){this.isDisposed()&&(jW(this.eg,this.formatId),this.j.dispose())};
g.k.Vp=function(){var a=HQa(this.eg,this.formatId),b;var c=(null==(b=this.eg.Xc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.eg.Xc.get(this.formatId))?void 0:d.Qx)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:IQa(this.eg,this.formatId),isEnded:this.eg.Qh(this.formatId)}};
g.k.JT=function(){return 0};
g.k.qv=function(){return!0};
g.k.Vj=function(){return this.eg.Vj(this.formatId)};
g.k.Rv=function(){return[]};
g.k.Nk=function(){return this.eg.Nk(this.formatId)};
g.k.Ye=function(){return this.lastError};
g.k.As=function(){return 0};g.k=zUa.prototype;g.k.lw=function(a){this.C.lw(a);var b;null!=(b=this.T)&&(b.j=fTa(b,b.ze,b.Az,b.j,a));this.dc=Math.max(this.dc,a.info.j.info.dc||0)};
g.k.getDuration=function(){return this.j.index.ys()};
g.k.vk=function(){dX(this);this.C.vk()};
g.k.VL=function(){return this.C};
g.k.isRequestPending=function(a){return this.B.length?a===this.B[this.B.length-1].info.gb[0].Ma:!1};
g.k.Vq=function(a){var b;null==(b=this.T)||b.Vq(a)};g.w($X,g.C);
$X.prototype.Fs=function(a){var b=a.info.gb[0].j,c=a.Ye();if(GF(b.u.j)){var d=g.hg(a.zf(),3);this.Fa.xa("dldbrerr",{em:d||"none"})}d=a.info.gb[0].Ma;var e=LSa(this.j,a.info.gb[0].C,d);"net.badstatus"===c&&(this.I+=1);if(a.canRetry()){if(!(3<=a.info.j.u&&this.u&&a.info.Im()&&"net.badstatus"===a.Ye()&&this.u.Fs(e,d))){d=(b.info.video&&1<b.u.u||410===a.Kg||500===a.Kg||503===a.Kg)&&!qX(this.B)&&!GF(b.u.j);e=a.Vp();var f=b.info.video?this.videoTrack:this.audioTrack;d&&(e.stun="1");this.Fa.handleError(c,e);
this.isDisposed()||(d&&pX(this.B,b),XX(f,a),this.Fa.gf())}}else b=1,this.u&&a.info.Im()&&"net.badstatus"===a.Ye()&&this.u.Fs(e,d)&&(b=0),this.Sa.isLive&&"net.badstatus"===a.Ye()&&this.I<=2*this.policy.Kf?(hwa(this.Sa),this.Sa.Se||this.Sa.isPremiere?this.Fa.va.seekTo(0,{Je:"badStatusWorkaround"}):this.Sa.B?this.Fa.va.seekTo(this.Sa.jc,{Je:"badStatusWorkaround",Er:!0}):kXa(this.Fa)):this.Fa.handleError(c,a.Vp(),b)};
$X.prototype.qa=function(){g.C.prototype.qa.call(this)};
var WUa=2/24;g.w(cY,g.C);cY.prototype.aH=function(a,b,c){this.Fa.aH(new kX(this.u,this.D,"a"),c);bY(b,a);b.u&&(b.u.j=a)};
cY.prototype.CX=function(a){for(var b=g.t(this.B),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.j=[c],this.u=this.Sa.j[a],new kX(this.u,this.D,"m");this.j=[];return null};dY.prototype.yz=function(a,b){switch(a){case 20:a=new hL(b);a={CU:kL(a,1),videoId:nL(a,2),itag:kL(a,3),jj:kL(a,4),xtags:nL(a,5),Oz:kL(a,6),Xm:lL(a,8),At:kL(a,9),D6a:kL(a,10),startMs:kL(a,11),durationMs:kL(a,12),Pq:kL(a,14),AN:kL(a,17),clipId:nL(a,1E3)};this.TN(a);break;case 21:this.RN(b,!1);break;case 22:this.Iq(b);break;default:this.KN(a,b)}};
dY.prototype.TN=function(){};
dY.prototype.KN=function(){};var eY,ddb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),i4={},SVa=(i4.a=1,i4.o=3,i4.meac3=5,i4.mac3=7,i4),j4={},RVa=(j4["1h"]=8,j4["9h"]=4,j4["1"]=8,j4["9"]=4,j4.h=2,j4),oVa=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"],["571","401","400","399","398"],["313","271","248","247"],["137","136"]],qVa=[["140"],["251"],["380"],["328"]],k4={},mVa=(k4["303"]=["411"],k4["299"]=["385"],k4["302"]=["409","410"],k4["298"]=["384","376"],k4["248"]=["360"],k4["247"]=
"274 357 358 317 273 318 280 279".split(" "),k4["136"]="145 224 225 144 222 223 143 142".split(" "),k4["140"]=["149"],k4["380"]=["381"],k4["328"]=["329"],k4),l4={},lVa=(l4["398"]=["397","396","395","394"],l4["247"]=["244","243","242"],l4["136"]=["135","134","133","160"],l4["251"]=["250"],l4),m4={},vVa=(m4["140"]={numChannels:2},m4["251"]={audioSampleRate:48E3,numChannels:2},m4["380"]={numChannels:6},m4["328"]={numChannels:6},m4),n4={},uVa=(n4["337"]={width:3840,height:2160,bitrate:3E7,fps:30},n4["336"]=
{width:2560,height:1440,bitrate:15E6,fps:30},n4["335"]={width:1920,height:1080,bitrate:75E5,fps:30},n4["702"]={width:7680,height:4320,bitrate:4E7,fps:60},n4["701"]={width:3840,height:2160,bitrate:2E7,fps:60},n4["700"]={width:2560,height:1440,bitrate:1E7,fps:60},n4["315"]={width:3840,height:2160,bitrate:2E7,fps:60},n4["308"]={width:2560,height:1440,bitrate:1E7,fps:60},n4["303"]={width:1920,height:1080,bitrate:5E6,fps:60},n4["302"]={width:1280,height:720,bitrate:25E5,fps:60},n4["299"]={width:1920,height:1080,
bitrate:75E5,fps:60},n4["298"]={width:1280,height:720,bitrate:35E5,fps:60},n4["571"]={width:7680,height:4320,bitrate:3E7,fps:60},n4["401"]={width:3840,height:2160,bitrate:15E6,fps:60},n4["400"]={width:2560,height:1440,bitrate:75E5,fps:60},n4["399"]={width:1920,height:1080,bitrate:2E6,fps:60},n4["398"]={width:1280,height:720,bitrate:1E6,fps:60},n4["313"]={width:3840,height:2160,bitrate:8E6,fps:30},n4["271"]={width:2560,height:1440,bitrate:4E6,fps:30},n4["248"]={width:1920,height:1080,bitrate:2E6,fps:30},
n4["247"]={width:1280,height:720,bitrate:15E5,fps:30},n4["137"]={width:1920,height:1080,bitrate:4E6,fps:30},n4["136"]={width:1280,height:720,bitrate:3E6,fps:30},n4),o4={},jVa=(o4["133"]=240,o4["134"]=360,o4["135"]=480,o4["136"]=720,o4["137"]=1080,o4["242"]=240,o4["243"]=360,o4["244"]=480,o4["247"]=720,o4["248"]=1080,o4["298"]=720,o4["299"]=1080,o4["302"]=720,o4["303"]=1080,o4["395"]=240,o4["396"]=360,o4["397"]=480,o4["398"]=720,o4["399"]=1080,o4),p4={},tVa=(p4["1"]='video/mp4; codecs="av01.0.08M.08"',
p4["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',p4["9"]='video/webm; codecs="vp9"',p4["("]='video/webm; codecs="vp9"',p4["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',p4.h='video/mp4; codecs="avc1.64001e"',p4.H='video/mp4; codecs="avc1.64001e"',p4.o='audio/webm; codecs="opus"',p4.a='audio/mp4; codecs="mp4a.40.2"',p4.mac3='audio/mp4; codecs="ac-3"; channels=6',p4.meac3='audio/mp4; codecs="ec-3"; channels=6',p4);g.w(MVa,dY);g.k=MVa.prototype;g.k.KN=function(a,b){switch(a){case 35:this.cD(b);break;case 44:this.eD(b);break;case 43:this.dO(b);break;case 53:this.bO(b);break;case 55:(a={timeline:oL(new hL(b),1,xVa)},a.timeline)&&a.timeline.kY&&this.callbacks.hD(a.timeline.kY);break;case 42:this.ZC(b);break;case 45:this.fD(b)}};
g.k.fD=function(a){a=KLa(new hL(a));this.callbacks.fD(a)};
g.k.ZC=function(a){a=new hL(a);a={videoId:nL(a,1),formatId:oL(a,2,EVa),endTimeMs:kL(a,3),J6a:kL(a,4),mimeType:nL(a,5),LU:oL(a,6,AVa),indexRange:oL(a,7,AVa)};this.callbacks.ZC(a)};
g.k.cD=function(a){a=new hL(a);a={targetAudioReadaheadMs:kL(a,1),targetVideoReadaheadMs:kL(a,2),backoffTimeMs:kL(a,4),playbackCookie:mL(a,7)};this.callbacks.cD(a)};
g.k.bO=function(a){a=new hL(a);a={UW:kL(a,1),items:mya(a,2,HVa)};this.callbacks.bO(a)};
g.k.eD=function(a){a=new hL(a);a={u8:nL(a,1),action:kL(a,2)};this.callbacks.eD(a)};
g.k.dO=function(a){a={redirectUrl:nL(new hL(a),1)};this.callbacks.dO(a)};
g.k.RN=function(a){var b=RF(a,0);if(1!==a.totalLength&&(a=a.split(1).Wk,b=this.u[b]||null)){var c=this.callbacks;OQa(c.eg,b,a);qY(c.callbacks,c)}};
g.k.Iq=function(a){a=RF(a,0);(a=this.u[a]||null)&&this.callbacks.Iq(a)};
g.k.TN=function(a){var b=a.CU,c=a.Xm,d=a.Oz,e=a.AN,f=a.At,h=a.startMs,l=a.durationMs,m=a.Pq,n=a.clipId,p=iVa(a);a=ddb.has(HH[""+a.itag]);this.u[b]=p;this.callbacks.Kv(p,a,{Xm:!!c,Oz:null!=d?d:-1,At:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Pq:m,AN:e},n)};g.w(NVa,g.C);g.k=NVa.prototype;g.k.nt=function(){!this.isDisposed()&&this.xhr&&this.Sm()};
g.k.Mv=function(){};
g.k.Jq=function(){if(!this.isDisposed()&&this.xhr){var a=this.qM();5===a?OX(this.Bd):this.qc(a);this.Bd.j.stop();var b;null==(b=this.ID)||b.stop()}};
g.k.qM=function(){if(tUa(this.Bd,this.xhr,this.info.uv()))return 5;this.Sm();if(this.yX)return 3;var a=this.Bd,b=this.xhr.Kl();bUa(a.timing,(0,g.M)(),b,0);b=a.B;b.u=0;b.D=0;b.I=0;KG(NX(a));return 4};
g.k.Sm=function(){var a=this.xhr;a.nq()&&(a=a.jw(),this.uj.feed(a))};
g.k.yz=function(a,b){this.N8.yz(a,b)};
g.k.cD=function(a){this.callbacks.cD(a)};
g.k.bO=function(a){var b;null==(b=this.ID)||b.dispose();this.MO=a;a.UW&&(this.ID=new g.Ip(this.AV,a.UW,this));this.AV()};
g.k.AV=function(){var a;if(null!=(a=this.MO)&&a.items){var b;null==(b=this.ID)||b.start();b=(0,g.M)()-this.Dh.j;a=1E3*this.Dh.u/b;b=OVa(this,b);if(!(a>b.SG||0<b.tN&&this.info.ML()>b.tN)){this.Bd.iE(!1);this.NO=(0,g.M)();var c;null==(c=this.ID)||c.stop()}}};
g.k.eD=function(a){this.callbacks.eD(a)};
g.k.dO=function(a){this.yX=!0;this.info.j.Bk(this.Me,a.redirectUrl)};
g.k.hD=function(a){this.callbacks.hD(a)};
g.k.ZC=function(a){if(this.policy.C){var b=a.videoId,c=a.formatId,d=iVa({videoId:b,itag:c.itag,jj:c.jj,xtags:c.xtags}),e=a.mimeType||"",f,h,l=new TG((null==(f=a.LU)?void 0:f.first)||0,(null==(h=a.LU)?void 0:h.eV)||0),m,n;f=new TG((null==(m=a.indexRange)?void 0:m.first)||0,(null==(n=a.indexRange)?void 0:n.eV)||0);this.Sa.I.get(d)||(a=this.Sa,d=a.j[c.itag],c=JI({lmt:""+c.jj,itag:""+c.itag,xtags:c.xtags,type:e},null),EI(a,new BH(d.T,c,l,f),b));this.policy.C&&this.callbacks.ZC(b)}};
g.k.fD=function(a){a.XH&&a.YH&&this.callbacks.fD(a)};
g.k.canRetry=function(){this.isDisposed();return this.Bd.canRetry(!1)};
g.k.dispose=function(){if(!this.isDisposed()){g.C.prototype.dispose.call(this);this.Bd.dispose();var a;null==(a=this.ID)||a.dispose();this.qc(-1)}};
g.k.qc=function(a){this.state=a;qY(this.callbacks,this)};
g.k.uv=function(){return this.info.uv()};
g.k.Kv=function(a,b,c,d){d&&(this.clipId=d);this.eg.Kv(a,b,c,d)};
g.k.Iq=function(a){this.eg.Iq(a);qY(this.callbacks,this)};
g.k.Vj=function(a){return this.eg.Vj(a)};
g.k.Om=function(a){return this.eg.Om(a)};
g.k.Nk=function(a){return this.eg.Nk(a)};
g.k.Up=function(){return this.eg.Up()};
g.k.gs=function(){return 1};
g.k.aG=function(){return this.Dh.requestNumber};
g.k.hs=function(){return this.clipId};
g.k.UV=function(){this.WA()};
g.k.WA=function(){var a;null==(a=this.xhr)||a.abort();IX(this.Dh)};
g.k.isComplete=function(){return 3<=this.state};
g.k.YU=function(){return 3===this.state};
g.k.Wm=function(){return 5===this.state};
g.k.ZU=function(){return 4===this.state};
g.k.Os=function(){return 1<=this.state};
g.k.As=function(){return this.Bd.As()};
g.k.IT=function(){return this.info.data.EK};
g.k.rU=function(){};
g.k.Ye=function(){return this.Bd.Ye()};
g.k.Vp=function(){var a=uUa(this.Bd);Object.assign(a,PVa(this.info));a.req="sabr";a.rn=this.aG();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.Eq?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.zf())&&(a.msg=b);this.NO&&(c=OVa(this,this.NO-this.Dh.j),a.letm=c.u4,a.mrbps=c.SG,a.mram=c.tN);return a};gY.prototype.uv=function(){return 1===this.requestType};
gY.prototype.ML=function(){var a;return(null==(a=this.callbacks)?void 0:a.ML())||0};g.w(hY,g.C);hY.prototype.encrypt=function(a){(0,g.M)();if(this.u)var b=this.u;else this.B?(b=new QJ(this.B,this.j.j),g.E(this,b),this.u=b):this.u=new PJ(this.j.j),b=this.u;return b.encrypt(a,this.iv)};
hY.prototype.decrypt=function(a,b){(0,g.M)();return(new PJ(this.j.j)).decrypt(a,b)};bWa.prototype.decrypt=function(a){var b=this,c,d,e,f,h,l;return g.A(function(m){switch(m.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return m.return();b.u=!0;b.Mk.Vc("omd_s");c=new Uint8Array(16);HJ()?d=new OJ(a):e=new PJ(a);case 2:if(!b.j.length||!b.j[0].isEncrypted){m.Ka(3);break}f=b.j.shift();if(!d){h=e.decrypt(QF(f.buffer),c);m.Ka(4);break}return g.y(m,d.decrypt(QF(f.buffer),c),5);case 5:h=m.u;case 4:l=h;for(var n=0;n<c.length;n++)if(255===c[n])c[n]=0;else{c[n]+=1;break}n=new LF([l]);cWa(b.Mk.Md,
f.AP,n);m.Ka(2);break;case 3:b.Mk.K("html5_remove_deprecated_ticks")||b.Mk.Vc("omdf"),b.Mk.Vc("omd_c"),dWa(b),b.u=!1,b.Mk.SN(),g.oa(m)}})};var nWa=!!Uint8Array.prototype.copyWithin,jY=[],eWa=[],hWa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],lY=[],kY=[],mY=[],fWa=[];g.w(pWa,dY);g.k=pWa.prototype;g.k.SN=function(){this.Md.SN()};
g.k.KN=function(a,b){switch(a){case 10:var c=pL(b,GLa);a=c.d8;var d=!1;switch(a){case 0:this.C=!c.TW.n4;this.iv=c.TW.iv;break;case 2:break;case 23:var e=this.Md;c=c.N4;e.Vc("omp_r");c.videoId&&(e.Xv=c.videoId);e.Xv!==e.videoData.videoId&&(e.videoData.B1=e.Xv,e.xa("ompp","vid."+e.Xv));e.mN=!0;break;case 24:c=this.Md;c.Vc("omp_c");c.mN=!1;c.JD=!1;var f;null!=(f=null==(e=c.Ag)?void 0:e.get(c.Xv))&&(f.B=!0);oY(c);break;default:d=!0}this.Md.Nl&&this.Md.xa("ombup","id.10;pt."+a+";len."+b.totalLength+(d?
";ignored.1":""));this.B=a;break;case 11:rWa(this,b);break;case 12:this.RN(b,!0);break;case 37:b=pL(b,BLa);(b.AK||b.eQ)&&b.videoId&&this.Md.CT.set(b.videoId,b);break;case 31:b=pL(b,HLa);this.Md.w4=b;break;default:this.Md.Nl&&this.Md.xa("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.TN=function(a){var b=a.CU,c=a.Xm,d=a.Oz,e=a.At,f=a.startMs,h=a.durationMs,l=a.Pq,m=iVa(a),n=ddb.has(HH[""+a.itag]);c&&this.Vc(n?"oais_r":"ovis_r");var p=void 0!==this.j[m];this.Md.Nl&&this.Md.xa("ombup","id.20;hid."+b+";fid"+m);this.u[b]=m;p||(this.j[m]={wU:!1,Ek:n,headers:[]});this.j[m].headers.push(a);this.Md.Kv(m,n,{Xm:!!c,Oz:null!=d?d:-1,At:null!=e?e:-1,startMs:null!=f?f:-1,durationMs:null!=h?h:-1,Pq:null!=l?l:0})};
g.k.RN=function(a,b){var c=RF(a,0);this.Md.Nl&&this.Md.xa("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(1!==a.totalLength&&(a=a.split(1).Wk,c=this.u[c]||null)){this.di(this.j[c].Ek?"oafs_r":"ovfs_r");var d=this.queue;d.j.push({AP:c,buffer:a,isEncrypted:b});d.u||dWa(d)}};
g.k.Iq=function(a){var b=RF(a,0);this.Md.Nl&&this.Md.xa("ombup","id.22;len."+a.totalLength+";hid."+b);(a=this.u[b]||null)&&this.Md.Iq(a)};
g.k.ZN=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F;return g.A(function(G){switch(G.j){case 1:c.Md.ZN();d=QF(a);if(!b){f=d;G.Ka(2);break}return g.y(G,xWa(c.Md,d,c.iv),3);case 3:f=G.u;case 2:e=f;if(!c.Md.enableCompression){G.Ka(4);break}h=c.Md.V();m=null==(l=performance)?void 0:l.now();return g.y(G,oWa(e,h.Nd),5);case 5:e=G.u,c.Md.xa("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Nd,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=pL(e,NLa)}catch(D){return q=D instanceof
Error?{name:D.name,message:D.message}:{},q.webcrypto=""+ +!!HJ(),q.enc=""+ +c.C,r=new PK("onesie.response.parse",q),G.return(Promise.reject(r))}if(1!==p.MW)return v={st:p.MW,webcrypto:""+ +!!HJ(),textencoder:""+ +!!g.Ea.TextEncoder},x=new PK("onesie.response.badproxystatus",v),G.return(Promise.reject(x));if(200!==p.GU)return z={st:p.GU},B=new PK("onesie.response.badstatus",z),G.return(Promise.reject(B));F=g.WF(p.body);return G.return(F)}})};
g.k.Vc=function(a){this.Md.Vc(a)};
g.k.di=function(a){return this.Md.di(a)};
g.k.K=function(a){return this.Md.K(a)};g.w(pY,g.C);g.k=pY.prototype;g.k.hs=function(){return""};
g.k.Up=function(a){var b,c;return(null==(c=null==(b=this.Ag)?void 0:b.get(a))?void 0:c.Up())||[]};
g.k.Nk=function(a){var b;return!(null==(b=iY(this,a))||!b.Nk(a))};
g.k.Vj=function(a){var b;return(null==(b=iY(this,a))?void 0:b.Vj(a))||[]};
g.k.Om=function(a){var b;return(null==(b=iY(this,a))?void 0:b.Om(a))||[]};
g.k.qc=function(a){this.state=a;var b;null==(b=this.callbacks)||qY(b,this)};
g.k.uv=function(){return!1};
g.k.Vc=function(a){this.va.Vc(a)};
g.k.di=function(a){return this.va.di(a)};
g.k.yz=function(a,b){this.Mk.yz(a,b)};
g.k.LN=function(){this.Vc("orfb");this.sG=!0;if(yWa(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Kl(),rt:(1E3*fUa(this.Dh)).toFixed(),shost:g.Ui(this.kO),trigger:"o1"};this.xa("pathprobe",OK(a))}};
g.k.ZN=function(){this.K("html5_remove_deprecated_ticks")||this.Vc("orpr");this.Vc("opr_r");this.zU=!0};
g.k.Kv=function(a,b,c){if(this.Ag){var d=a.split(";")[0];if(!this.Ag.has(d)){var e=new hW(this);this.Ag.set(d,e);g.E(this,e)}var f;null==(f=this.Ag.get(d))||f.Kv(a,b,c)}else null==(d=this.eg)||d.Kv(a,b,c);oY(this)};
g.k.SN=function(){if(this.Ag)for(var a=g.t(this.Ag.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Ag.get(b.value))||c.qz()}};
g.k.xa=function(a,b,c){this.va.xa(a,b,void 0===c?!1:c)};
g.k.Iq=function(a){var b;null==(b=iY(this,a))||b.Iq(a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,v,x,z,B,F,G,D,L,P;return g.A(function(T){switch(T.j){case 1:a.zz.start();a.K("html5_remove_deprecated_ticks")||a.Vc("ogpd");a.Vc("or_i");b=a.Y.experiments.ob("html5_onesie_verbose_timing");c={};d=(0,g.M)();e=function(fa){b&&(c[fa]=(0,g.M)()-d)};
e("loc_s");if(f=tWa(a.videoData,a.Ly)){T.Ka(2);break}e("loc_async");h=g.gJ(a.Y.experiments,"html5_onesie_redirector_timeout_ms");return g.y(T,uWa(a.videoData,a.Ly,h),3);case 3:f=T.u;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new PK("onesie.unavailable.hotconfig",l),a.fail(m),T.return(a.rp);a.DX=FF(f);e("loc_e");n=g.NK(a.Y,g.VM(a.videoData));if(!n.j){p=n.getValue();T.Ka(4);break}return g.y(T,n.j,5);case 5:p=T.u;case 4:q=p;e("oauth");r=UVa(a.playerRequest,a.Y,a.videoData,
q,dW(a.DX));g.pa(T,6);if(a.K("html5_onesie_sync_request_encryption")||r.YD||g.GK(a.Y)&&a.K("html5_embed_onesie_use_sync_encryption")||!HJ()){e("or_s_sync");a.jO=WVa(r,a.jD,a.Y,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.hL.onesieUstreamerConfig,null==(v=a.videoData.LW)?void 0:v.sE);T.Ka(8);break}e("or_s_async");z=a;return g.y(T,$Va(r,a.jD,a.Y,a.videoData,a.va.getPlayerSize(),a.va.getVisibilityState(),a.hL.onesieUstreamerConfig,null==(x=a.videoData.LW)?void 0:x.sE),9);case 9:z.jO=
T.u;case 8:g.ra(T,7);break;case 6:return B=g.sa(T),a.logger.info("Failed to create OnesieRequestProto."),a.fail(B),T.return(a.rp);case 7:return e("or_e"),b&&a.xa("oreqvt",c),a.enableCompression=a.jO.GM.oL,a.Vc("osor"),F=wLa(),G=g.yL(a.jO,JLa),D={method:"POST",body:G,headers:{"Content-Type":"text/plain",Referer:location.origin}},L=a.K("html5_onesie_media_capabilities"),vWa(f,a.videoData,AWa(a),L),a.Nl&&a.xa("ombrs","1"),P=a.va.V().schedule,a.Dh=new EX(a,{Jh:P,pL:a.Nl,Iz:function(fa,V){a.va.DD(fa,V)}}),
f.set("rn",""+a.Dh.requestNumber),a.kO=f.Ze(),ZTa(a.Dh,a.kO),a.K("html5_remove_deprecated_ticks")||a.Vc("ocs"),a.Vc("or_p"),a.xhr=rUa(new IG(f),F,a.Dh,xM,D),a.KW.start(),T.return(a.rp)}})};
g.k.Mv=function(){this.Vc("orh_r")};
g.k.nt=function(){!this.sG&&this.xhr.Kl()&&this.LN();if(this.xC){var a;null==(a=this.iH)||a.start()}this.Sm()};
g.k.Jq=function(){this.Sm();if(!this.isDisposed()){var a=wWa(this),b=this.xhr;a.rc=b.status;if(b.zf()){var c="onesie.net";a.msg=b.zf()}else 400<=b.status?c="onesie.net.badstatus":b.BD()?this.zU||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.fail(new PK(c,a)):(this.K("html5_remove_deprecated_ticks")||this.Vc("orf"),this.Vc("or_fs"),bUa(this.Dh,(0,g.M)(),b.Kl(),0),this.qc(4),this.Nl&&this.xa("rqs",a));this.Nl&&this.xa("ombre","ok."+ +!c);
this.JD=!1;oY(this);qWa(this.Mk);this.zz.stop();var d;null==(d=this.iH)||d.stop();var e;if(c=null==(e=this.Ly)?void 0:xQa(e))for(e=0;e<c.length;e++)this.xa("pathprobe",c[e])}};
g.k.IT=function(){};
g.k.UV=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.V=function(){return this.Y};
g.k.K=function(a){return this.Y.K(a)};
g.k.K4=function(){if(yWa(this)&&this.Ly&&(!this.sG||this.K("html5_onesie_probe_ec_hosts"))){var a=this.Ly;if(a.Y.experiments.ob("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:FF(b.location);c&&cW(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:FF(d.location))&&cW(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:FF(e.location))&&cW(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:FF(c.location))&&cW(a,d,"o3",this)}}};
g.k.sU=function(){this.logger.info("Onesie request timed out");this.JD=!1;if(!oY(this)){var a=wWa(this);a.timeout="1";this.fail(new PK("onesie.request",a))}};
g.k.fail=function(a){var b=this;a=RK(a);this.xC?this.va.Kd(a):(this.rp.reject(a),this.xC=!0);qWa(this.Mk);this.zz.stop();this.K("html5_remove_deprecated_ticks")||this.Vc("ore");this.Vc("or_fe");var c,d;null==(c=this.Ly)||null==(d=xQa(c))||d.forEach(function(e){b.xa("pathprobe",e)});
this.qc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.ZU=function(){return 4===this.state};
g.k.YU=function(){return!1};
g.k.Wm=function(){return 5===this.state};
g.k.RD=function(a){this.callbacks=a};
g.k.qa=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();qWa(this.Mk);this.uj.dispose();var b;null==(b=this.iH)||b.dispose();this.qc(-1);g.C.prototype.qa.call(this)};
g.k.Sm=function(){try{var a=this.xhr;102400<a.Kl()&&!this.SU&&(this.Vc("or100k"),this.SU=!0);if(a.nq()){var b=a.jw(),c=b.totalLength;this.Nl&&this.xa("ombrss","len."+c);this.uj.feed(b)}if(this.Ag)for(var d=g.t(this.Ag.keys()),e=d.next();!e.done;e=d.next())a=void 0,null==(a=this.Ag.get(e.value))||a.qz()}catch(f){this.fail(f)}};g.w(CWa,g.C);g.k=CWa.prototype;g.k.Fs=function(a){if(a instanceof pY)FWa(this,a);else{var b=1;a.canRetry()&&(FWa(this,a),b=0);this.Fa.handleError(a.Ye(),a.Vp(),b);!this.policy.Tw||"net.badstatus"!==a.Ye()&&"net.connect"!==a.Ye()||this.Fa.tB(a.Vp())}};
g.k.cD=function(a){this.C=a;this.D=(0,g.M)()+(a.backoffTimeMs||0)};
g.k.eD=function(a){if(void 0!==a.action){var b={};b.reason=a.u8;b.action=a.action;switch(a.action){case 1:this.Fa.tF(b);break;case 0:this.Fa.tB(b);break;case 2:this.Fa.handleError("sabr.config",b,1)}}};
g.k.hD=function(a){this.ea.K("html5_enable_ssap")&&this.Fa.hD(a)};
g.k.ZC=function(a){this.T=a};
g.k.fD=function(a){a.XH&&a.YH&&this.Fa.va.seekTo(a.XH/a.YH,{EC:!0})};
g.k.ML=function(){var a=1E3*VX(this.audioTrack,!0),b=1E3*VX(this.videoTrack,!0);return Math.min(a,b)};
g.k.iG=function(a){$Wa(this.Fa,VSa(this.I,a))};
g.k.qa=function(){g.C.prototype.qa.call(this);this.C=void 0;IWa(this,!0);this.j=[]};KWa.prototype.gf=function(a,b){if(this.C)return PWa(this,b);if(b=gX(a)){var c=b.u;c&&c.D&&c.u&&(a=a.B.length?a.B[0]:null)&&2<=a.state&&!a.Wm()&&0===a.info.Tg&&(this.C=a,this.J=c,this.u=b.info,this.I=this.startTimeSecs=Date.now()/1E3,this.D=this.u.startTime)}return NaN};
KWa.prototype.clear=function(){this.u=this.J=this.C=null;this.j=this.D=this.I=this.startTimeSecs=NaN;this.B=!1};g.w(g.sY,g.C);g.k=g.sY.prototype;
g.k.initialize=function(a,b,c){a=a||0;HT(this.policy)||this.va.bD(rX(this.ue));if(this.Sa.isManifestless){if(this.policy.Pk){b=Xta(this.policy);for(var d in this.Sa.j)this.Sa.j.hasOwnProperty(d)&&(this.Sa.j[d].index.B=b)}dVa(this.u)}this.C&&MWa(this.C,this.videoTrack.j);d=isNaN(this.currentTime)?0:this.currentTime;this.currentTime=this.Sa.isManifestless?d:a;if(this.policy.B){var e;(null==(e=this.Xa)?0:BWa(e,this.Ce()||""))&&TWa(this)&&SWa(this,this.videoTrack)&&SWa(this,this.audioTrack)&&JWa(this.Z,
this.Xa)}else this.T&&(UWa(this,this.videoTrack),UWa(this,this.audioTrack),GQa(this.T),delete this.T);c?(this.policy.ke?(this.Ya=c,uY(this,c)):uY(this,!1),g.Jp(this.FG)):(a=0===this.currentTime,aY(this.u,this.videoTrack,this.videoTrack.j,a),aY(this.u,this.audioTrack,this.audioTrack.j,a),this.seek(this.currentTime,{}).Zj(function(){}),this.timing.tick("gv"));
(this.Sa.Ge||this.Sa.Yg||this.Sa.jc||this.Sa.Ld||this.Sa.Od)&&this.xa("minMaxSq",{minSq:this.Sa.Ge,maxSq:this.Sa.Yg,minDvrTime:this.Sa.jc,maxDvrTime:this.Sa.Ld,startWalltime:this.Sa.Od})};
g.k.resume=function(){if(this.isSuspended||this.Uy){this.sF=this.Uy=this.isSuspended=!1;try{this.gf()}catch(a){g.CD(a)}}};
g.k.oy=function(a){a=void 0===a?!1:a;YWa(this);zI(this.va)&&(this.D=NaN);a?(this.policy.Aa&&this.xa("loader",{setsmb:1}),this.policy.oa=!0):this.policy.ke?uY(this,this.Ya):uY(this,!1);this.vk()};
g.k.setAudioTrack=function(a,b){if(!this.isDisposed()){if(HT(this.policy))var c=this.ya.CX(a.id);else{c=this.ue;var d=this.policy.nx&&!isNaN(b);c.u=c.Sa.j[a.id];c.I=c.u;c=new kX(c.I,c.j,d?"t":"m")}vY(this.va,c.reason,c.audio.info);if(!isNaN(b)&&(c=this.audioTrack.j.index.uh(b),this.xa("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){KUa(this.audioTrack,c,NaN,NaN);PI(this.Sa,c,!1);return}wY(this.va)}};
g.k.setPlaybackRate=function(a){a!==this.J.getPlaybackRate()&&this.J.setPlaybackRate(a)};
g.k.aH=function(a,b){b?this.policy.Wf&&vY(this.va,a.reason,a.audio.info):this.va.bD(a)};
g.k.iG=function(a){$G(a.gb[a.gb.length-1])&&$Wa(this,VSa(this.ue,a.gb[0].j))};
g.k.cM=function(){return this.va.cM()};
g.k.XB=function(){return this.va.XB()};
g.k.Hm=function(){return this.va.Hm()};
g.k.hO=function(a){this.va.hO(a)};
g.k.gf=function(){ZWa(this);if(this.Wa&&wI(this.Wa)&&!this.Wa.gj()){var a=RX(this.videoTrack);a=this.policy.mx&&a&&YG(a);this.Sa.isManifestless&&this.Sa.B&&MI(this.Sa)?(this.D=MI(this.Sa),this.Wa.Sk(this.D)):jwa(this.Sa)&&!a?isNaN(this.D)?(this.D=this.currentTime+3600,this.Wa.Sk(this.D)):this.D<=this.currentTime+1800&&(this.D=Math.max(this.D+1800,this.currentTime+3600),this.Wa.Sk(this.D)):this.Wa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.D)||
this.D!==a)&&0<a&&(this.Wa.Sk(a),this.D=a))}if(!this.isDisposed())if(LI(this.Sa)&&this.Sa.Wm()){var b=this.Sa;this.handleError("manifest.net.retryexhausted",b.Qa?{rc:b.Kg}:{rc:b.Kg.toString()},1)}else if(this.policy.B){try{this.Sa.isManifestless&&this.policy.Tb&&FSa(this.j);GWa(this.Z);HT(this.policy)||tY(this);b=this.Z;if(DWa(b)){var c=FUa(b.audioTrack),d=FUa(b.videoTrack),e=[].concat(g.u(c.ze),g.u(d.ze));a=[];b.policy.Jf&&(a=[].concat(g.u(c.yn),g.u(d.yn)));var f,h=null==(f=b.Fa)?void 0:f.vG(),l=
b.policy.Tb&&h,m=b.va.getCurrentTime()||0,n=l?Number.MAX_SAFE_INTEGER:1E3*m,p={videoData:b.videoData,Sa:b.Sa,tH:b.va.getPlayerSize(),visibilityState:b.va.getVisibilityState(),ze:e,yn:a,Mu:n,nextRequestPolicy:b.C,J2:b.policy.Lw};b.policy.If?(p.OD=fVa(b.B.j),p.PD=fVa(b.B.videoInfos)):(b.iG(b.videoTrack.j),b.iG(b.audioTrack.j),p.EK=rX(b.I));var q=new gY(0,p,b,b.Fa.Og);b.j.push(EWa(b,q))}this.Wa&&WWa(this)}catch(r){g.DD(r),b=r,this.tB({reason:"exp",ename:b.name,emsg:b.message})}g.Jp(this.La)}else if(!this.Sa.u||
!OUa(this.videoTrack)&&!OUa(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.uc?b=!1:(this.vk(),this.va.seekTo(Infinity,{Je:"checkLoaderTracksSync",Er:!0}),b=!0),!b){ZWa(this);if(!this.policy.useUmp)try{CUa(this.videoTrack);if(this.isDisposed())return;CUa(this.audioTrack);if(this.isDisposed())return}catch(r){cVa(this,r,{origin:"pollSlice"})}this.Sa.isManifestless&&(PUa(this.videoTrack),PUa(this.audioTrack),FSa(this.j),(b=gX(this.videoTrack))&&b.u&&(b=b.u.D&&!this.policy.Mp,this.xa(b===
this.policy.I.dk?"strm":"strmbug",{strm:b,sfmp4:this.policy.I.dk,dfs:this.policy.Mp},!0)));this.Wa?WWa(this):this.policy.u&&((b=gX(this.videoTrack))&&this.videoTrack.lw(b),(c=gX(this.audioTrack))&&this.audioTrack.lw(c),TX(this.videoTrack)&&TX(this.audioTrack)||(b||c)&&xY(this));tY(this);aY(this.u,this.videoTrack,this.videoTrack.j,!1);aY(this.u,this.audioTrack,this.audioTrack.j,!1);b=this.videoTrack;e=this.audioTrack;if((!this.Wa||wI(this.Wa)&&!this.policy.Oc)&&!this.j.hh()&&(HT(this.policy)||ZX(b)&&
b.j.Jg()&&this.ue.T))a:{if(c=this.currentTime,d=this.J,e=ySa(d,b.j.info.dc,e.j.info.dc,0),d=VJ(d.schedule)+e/XJ(d.schedule),c+=Math.max(d,d+10-e/b.j.info.dc),b.B.length){if(b.B[0].info.gb[0].startTime<=c)break a;dX(b)}d=b.C;for(e=d.u.length-1;0<=e;e--)d.u[e].info.startTime>c&&d.u.pop();EUa(b);b.u&&c<b.u.startTime&&(b.oa=0,b.j.Jg()?b.u=b.j.Zp(c,!0).gb[0]:b.u=null)}YUa(this.u,this.videoTrack,this.audioTrack);YUa(this.u,this.audioTrack,this.videoTrack);this.policy.Rn&&this.Ja&&!this.isSuspended&&mxa(this.schedule)&&
(gXa(this,this.Ja),this.Ja="");this.C&&(b=this.C,b.C?(c=b.I+b.policy.Eo,b.B||(c=Math.min(c,b.startTimeSecs+b.policy.hj)),b=Math.max(0,1E3*c-Date.now())):b=NaN,isNaN(b)||g.Jp(this.ib,b));g.Jp(this.La)}};
g.k.tB=function(a){this.va.tB(a)};
g.k.tF=function(a){this.va.tF(a)};
g.k.J0=function(a){var b=this;a.Ol()&&0===a.Ig().length&&(a.Tx(),this.Wa&&!this.Wa.Ol()&&(this.Wa.I=performance.now(),this.va.CL()));if(this.policy.Qa&&this.Wa){var c=a===this.Wa.j,d=a.TF();d&&(d.Ob&&!d.bf||this.xa("sbu",a.lc({a:c})),d.bf&&!a.gj()&&setTimeout(function(){var e=a.Ig(),f=kI(e,d.startTime+WUa),h=kI(e,b.currentTime);(0>f||f!==h)&&b.xa("sbu_mismatch",{b:jI(e),c:b.currentTime,s:dH(d)})},0))}this.gf()};
g.k.v5=function(a){if(this.Wa){var b=RX(a===this.Wa.j?this.audioTrack:this.videoTrack);if(a=a.ZL())for(var c=0;c<a.length;c++)this.xa("appendedbuffer",{i:c,b:g.gg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=cH(b));this.handleError("fmt.unplayable",a,1)}};
g.k.vz=function(a){this.va.vz(a)};
g.k.VN=function(a,b,c){this.Sa.isManifestless&&TTa(this,b,c,!!a.info.video,!0)};
g.k.UN=function(a,b,c,d){a.info.video&&this.B.UN(b,c,d)};
g.k.fC=aa(9);g.k.eI=function(a){this.Og=a;var b;null!=(b=this.audioTrack.T)&&(b.kd=a);null!=(b=this.videoTrack.T)&&(b.kd=a)};
g.k.vG=function(){return this.videoTrack.J||this.audioTrack.J};
g.k.seek=function(a,b){if(this.isDisposed())return Rf();if(this.vG())return Rf("seeking to head");ZWa(this);this.u.J=(0,g.M)();HT(this.policy)||tY(this,a);this.Wa&&this.Wa.j&&this.Wa.u&&!this.va.getVideoData().QR&&(this.Wa.j.isLocked()||this.Wa.u.isLocked())&&wY(this.va,{reattachOnLockedBuffer:1,vsb:""+this.Wa.u.isLocked(),asb:""+this.Wa.j.isLocked()});var c=this.currentTime;if(this.policy.B&&!b.EC){var d=this.Z;d.D=void 0;IWa(d,!0)}this.currentTime=this.j.seek(a,b);jX(this.B,a,c);xY(this);return Qf(this.currentTime)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.LL=function(){return this.audioTrack.j.info};
g.k.OL=function(){return this.videoTrack.j.info};
g.k.KL=function(){return this.audioTrack.j.info.Lb};
g.k.NL=function(){return this.videoTrack.j.info.Lb};
g.k.qa=function(){try{this.oy();dX(this.audioTrack);dX(this.videoTrack);var a;null==(a=this.audioTrack.T)||iTa(a);var b;null==(b=this.videoTrack.T)||iTa(b);g.C.prototype.qa.call(this)}catch(c){g.CD(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=QK(c);if("fmt.unplayable"===a&&this.Sa.isLive){this.policy.Xa=!1;var e=this.Sa;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new PK(a,b,c);g.Na(this);OK(b.details);this.va.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.lc=function(){var a=RX(this.audioTrack),b=RX(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.j.hh(),lmf:sX(this.ue),lbw:WJ(this.schedule).toFixed(3),lhd:VJ(this.schedule).toFixed(3),lst:(1E9*(this.schedule.j.bj()||0)).toFixed(3),laa:a?dH(a):"",lva:b?dH(b):"",lar:this.audioTrack.u?dH(this.audioTrack.u):"",lvr:this.videoTrack.u?dH(this.videoTrack.u):"",laq:""+UX(this.audioTrack),lvq:""+UX(this.videoTrack)};this.Wa&&!this.Wa.Vg()&&this.Wa.j&&this.Wa.u&&(a.lab=jI(this.Wa.j.Ig()),a.lvb=
jI(this.Wa.u.Ig()));this.ea&&(a.lapt=((0,g.M)()-this.ea).toFixed(0),a.lapr=aXa(this));return a};
g.k.vk=function(){try{if(this.policy.B){var a=this.Z;a.D=void 0;IWa(a,!1)}this.audioTrack.vk();this.videoTrack.vk()}catch(b){g.CD(b)}this.policy.u=""};
g.k.HL=function(){return $W(this.J)};
g.k.xa=function(a,b,c){this.va.xa(a,b,void 0===c?!1:c)};
g.k.Ce=function(){return this.va.Ce()};
g.k.Er=function(a,b){a/=b;isNaN(this.timestampOffset)&&lXa(this,a-Math.min(a,this.policy.qx));return(a-this.timestampOffset)*b};
g.k.hh=function(){return this.j.hh()};
g.k.Xu=function(){this.B.Xu()};
g.k.iA=function(a){HT(this.policy)||this.ue.iA(a)};
g.k.MD=function(a,b){if(!this.I)return!1;var c=this.videoTrack.j.index.uh(a);return this.I.MD(a,b,c)};
g.k.qp=function(a,b){if(this.I&&this.B.qp(a,this.I))return lXa(this,this.timestampOffset-b),xY(this),!0;b=this.videoTrack.j.index.uh(a);this.handleError("ad.skipfailed",{dec:!!this.I,t:a.toFixed(3),sq:b});return!1};
g.k.Gy=function(a){return this.B.Gy(a)};
g.k.UT=function(){return this.Sa};
g.k.isOffline=function(){return!!this.va.getVideoData().cotn};
g.k.DD=function(a,b){this.va.DD(a,b)};
g.k.PO=function(a){var b=this.va.getVideoData().vj;if(b){var c=this.u;c.Yj=a;c.vj=b;kXa(this)}};
g.k.hD=function(a){if(this.Og){var b=this.Og,c=b.timeline.j;if(c){var d=[],e=c.hs(),f=[],h=0,l=0;a=g.t(a);for(var m=a.next();!m.done;m=a.next())if(m=m.value,!m.Z4&&m.nE){var n=m.nE.Nt||1,p=(m.nE.k8||0)/n*1E3,q=(m.nE.vF||0)/n*1E3;n=p+q;var r=void 0;m.nE.a$===(null==(r=c.getVideoData())?void 0:r.videoId)?(f.length&&mRa(b.timeline,h||0,l,f),l=h=n,f=[],q=oRa(b.timeline,1,p,q,m.clipId),e=m.clipId,d.push(q),mRa(b.timeline,p,n,[q])):(r=m.clipId?b.j.get(m.clipId):void 0,h=Math.min(p,h),l=Math.max(n,l),b.api.xa("ssap",
{e:p,d:q,c:m.clipId,p:r?1:0}),m=oRa(b.timeline,2,p,q,m.clipId,r),f.push(m))}f.length&&mRa(b.timeline,h,l,f);e&&d.length&&b.timeline.u.set(e,d)}}};g.k=g.yY.prototype;g.k.Im=function(a,b,c,d,e){return this.kd.Im(a,b,c,d,e)};
g.k.Ds=function(a,b,c,d,e){return this.kd.Ds(a,b,c,d,e)};
g.k.fG=function(a){this.kd.fG(a)};
g.k.Fs=function(a,b){return this.kd.Fs(a,b)};
g.k.Xu=function(){this.kd.Xu()};
g.k.MD=function(a,b,c){return this.kd.MD(a,b,c)};
g.k.kI=function(a,b){this.kd.kI(a,b)};
g.k.TO=function(){this.kd.TO()};
g.k.PB=aa(39);g.k.Bk=function(a,b,c){this.kd.Bk(a,b,c)};
g.k.kE=aa(37);g.k.fO=function(a,b,c,d,e,f,h,l,m){this.kd.fO(a,b,c,d,e,f,h,l,m)};
g.k.kP=function(a){this.kd.kP(a)};
g.k.eO=function(a,b,c,d){this.kd.eO(a,b,c,d)};
g.k.gt=function(a){return this.kd.gt(a)};g.w(zY,g.dE);g.w(AY,zY);AY.prototype.I=function(a,b){if(a&&b){var c=1*Number(lj(a,"cpi"))+1;isNaN(c)||0>=c||c<this.B?(this.C.stop(),this.u.stop(),this.B=-1,this.j={}):(c>this.B&&(this.B=c,g.hd(this.j)||(this.j={},this.C.stop(),this.u.stop())),this.j[b]=a,g.Jp(this.u))}};
AY.prototype.D=function(){for(var a=g.t(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.ma;for(var d=this.B,e=this.j[c].match(Si),f=[],h=g.t(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Ke(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new vTa(d,"fairplay",!0))}this.j={}};
AY.prototype.qa=function(){this.j={};zY.prototype.qa.call(this)};g.w(BY,zY);
BY.prototype.C=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.t(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.M)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.t(this.B.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.ma("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length});
0>=c?nXa(this,a):(this.j.push({time:b+c,info:a}),g.Jp(this.u,c))}};
BY.prototype.qa=function(){this.j=[];zY.prototype.qa.call(this)};var q4={},uXa=(q4.DRM_TRACK_TYPE_AUDIO="AUDIO",q4.DRM_TRACK_TYPE_SD="SD",q4.DRM_TRACK_TYPE_HD="HD",q4.DRM_TRACK_TYPE_UHD1="UHD1",q4);g.w(rXa,g.C);rXa.prototype.RD=function(a,b){this.onSuccess=a;this.onError=b};g.w(wXa,g.dE);g.k=wXa.prototype;g.k.ep=function(a){var b=this;this.isDisposed()||0>=a.size||(a.forEach(function(c,d){var e=aJ(b.u)?d:c;d=new Uint8Array(aJ(b.u)?c:d);aJ(b.u)&&MXa(d);c=g.gg(d,4);MXa(d);d=g.gg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),HXa(this,","),CY(this,{onkeystatuschange:1}),this.status="kc",this.ma("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.isDisposed()||(this.ma("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.I)/1E3,this.I=NaN,this.ma("ctmp","provf",{et:a.toFixed(3)})));QK(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ga&&this.J?!1:!a&&this.requestNumber===b.requestNumber};
g.k.qa=function(){this.j={};g.dE.prototype.qa.call(this)};
g.k.lc=function(){var a={ctype:this.ea.contentType||"",length:this.ea.initData.length,requestedKeyIds:this.Aa,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(a.keyStatuses=this.j);return a};
g.k.rh=function(){var a=this.C.join();if(DY(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.Ze=function(){return this.url};g.w(EY,g.C);g.k=EY.prototype;g.k.RD=function(a,b,c,d){this.D=a;this.B=b;this.I=c;this.J=d};
g.k.K0=function(a){if(this.D){var b=a.messageType||"license-request";this.D(new Uint8Array(a.message),b)}};
g.k.ep=function(){this.J&&this.J(this.j.keyStatuses)};
g.k.vW=function(a){this.D&&this.D(a.message,"license-request")};
g.k.uW=function(a){if(this.B){if(this.u){var b=this.u.error.code;a=this.u.error.systemCode}else b=a.errorCode,a=a.systemCode;this.B("t.prefixedKeyError;c."+b+";sc."+a,b,a)}};
g.k.tW=function(){this.I&&this.I()};
g.k.update=function(a){var b=this;if(this.j)return(qJ.isActive()&&qJ.ww()?qJ.Dw("emeupd",this.j.update).call(this.j,a):this.j.update(a)).then(null,XI(function(c){OXa(b,"t.update",c)}));
this.u?this.u.update(a):this.element.addKey?this.element.addKey(this.T.keySystem,a,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.T.keySystem,a,this.initData,this.sessionId);return Oy()};
g.k.qa=function(){this.j&&this.j.close();this.element=null;g.C.prototype.qa.call(this)};g.w(FY,g.C);g.k=FY.prototype;g.k.attach=function(){var a=this;if(this.j.keySystemAccess)return(qJ.isActive()&&qJ.ww()?qJ.Dw("emenew",this.j.keySystemAccess.createMediaKeys).call(this.j.keySystemAccess):this.j.keySystemAccess.createMediaKeys()).then(function(b){a.isDisposed()||(a.u=b,qJ.isActive()&&qJ.ww()?qJ.Dw("emeset",a.element.setMediaKeys).call(a.element,b):a.element.setMediaKeys(b))});
$I(this.j)?this.B=new (ZI())(this.j.keySystem):bJ(this.j)?(this.B=new (ZI())(this.j.keySystem),this.element.webkitSetMediaKeys(this.B)):(Kz(this.D,this.element,["keymessage","webkitkeymessage"],this.N0),Kz(this.D,this.element,["keyerror","webkitkeyerror"],this.M0),Kz(this.D,this.element,["keyadded","webkitkeyadded"],this.L0));return null};
g.k.setServerCertificate=function(){return this.u.setServerCertificate?"widevine"===this.j.flavor&&this.j.rl?this.u.setServerCertificate(this.j.rl):dJ(this.j)&&this.j.Ya?this.u.setServerCertificate(this.j.Ya):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.u.createSession();cJ(this.j)?c=PXa(c,this.j.Ya):dJ(this.j)&&(c=mXa(c)||new Uint8Array(0));b&&b("genreq");a=qJ.isActive()&&qJ.ww()?qJ.Dw("emegen",d.generateRequest).call(d,a.contentType,c):d.generateRequest(a.contentType,c);var e=new EY(null,null,null,d,null);a.then(function(){b&&b("genreqsuccess")},XI(function(f){OXa(e,"t.generateRequest",f)}));
return e}if($I(this.j))return RXa(this,c);if(bJ(this.j))return QXa(this,c);this.element.generateKeyRequest?this.element.generateKeyRequest(this.j.keySystem,c):this.element.webkitGenerateKeyRequest(this.j.keySystem,c);return this.C=new EY(this.element,this.j,c,null,null)};
g.k.N0=function(a){var b=SXa(this,a);b&&b.vW(a)};
g.k.M0=function(a){var b=SXa(this,a);b&&b.uW(a)};
g.k.L0=function(a){var b=SXa(this,a);b&&b.tW(a)};
g.k.getMetrics=function(){if(this.u&&this.u.getMetrics)try{var a=this.u.getMetrics()}catch(b){}return a};
g.k.qa=function(){this.B=this.u=null;var a;null==(a=this.C)||a.dispose();a=g.t(Object.values(this.I));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.I={};g.C.prototype.qa.call(this);delete this.element};g.k=GY.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.Ef=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.ob(this.keys,function(b){return g.Mb(a,b)})};g.w(VXa,g.dE);g.k=VXa.prototype;g.k.Y5=function(a){this.Ri({onecpt:1});a.initData&&YXa(this,new Uint8Array(a.initData),a.initDataType)};
g.k.v6=function(a){this.Ri({onndky:1});YXa(this,a.initData,a.contentType)};
g.k.vz=function(a){this.Ri({onneedkeyinfo:1});this.Y.K("html5_eme_loader_sync")&&(this.J.get(a.initData)||this.J.set(a.initData,a));XXa(this,a)};
g.k.wS=function(a){this.B.push(a);HY(this)};
g.k.createSession=function(a){var b=$Xa(this)?yTa(a):g.gg(a.initData);this.u.get(b);this.ya=!0;a=new wXa(this.videoData,this.Y,a,this.drmSessionId);this.u.set(b,a);a.subscribe("ctmp",this.XV,this);a.subscribe("keystatuseschange",this.ep,this);a.subscribe("licenseerror",this.bH,this);a.subscribe("newlicense",this.pW,this);a.subscribe("newsession",this.qW,this);a.subscribe("sessionready",this.EW,this);a.subscribe("fairplay_next_need_key_info",this.hW,this);this.Y.K("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.bQ,this);zXa(a,this.C)};
g.k.pW=function(a){this.isDisposed()||(this.Ri({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.ma("heartbeatparams",a)))};
g.k.qW=function(){this.isDisposed()||(this.Ri({newlcssn:1}),this.B.shift(),this.ya=!1,HY(this))};
g.k.EW=function(){if($I(this.j)&&(this.Ri({onsnrdy:1}),this.Ja--,0===this.Ja)){var a=this.Z;a.element.msSetMediaKeys(a.B)}};
g.k.ep=function(a){if(!this.isDisposed()){!this.Ga&&this.videoData.K("html5_log_drm_metrics_on_key_statuses")&&(aYa(this),this.Ga=!0);this.Ri({onksch:1});var b=this.bQ;if(!DY(a)&&g.oB&&"com.microsoft.playready"===a.u.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(DY(a))for(var e=g.t(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!DY(a)||d)c=a.C;c=GXa(c)}b.call(this,c);
this.ma("keystatuseschange",a)}};
g.k.XV=function(a,b){this.isDisposed()||this.ma("ctmp",a,b)};
g.k.hW=function(a,b){this.isDisposed()||this.ma("fairplay_next_need_key_info",a,b)};
g.k.bH=function(a,b,c,d){this.isDisposed()||(this.videoData.K("html5_log_drm_metrics_on_error")&&aYa(this),this.ma("licenseerror",a,b,c,d))};
g.k.Su=function(){return this.T};
g.k.bQ=function(a){var b=g.kF("auto",a,!1,"l");if(this.videoData.hm){if(this.T.equals(b))return}else if(Jta(this.T,a))return;this.T=b;this.ma("qualitychange");this.Ri({updtlq:a})};
g.k.qa=function(){this.j.keySystemAccess&&this.element&&this.element.setMediaKeys(null);this.element=null;this.B=[];for(var a=g.t(this.u.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.XV,this),b.unsubscribe("keystatuseschange",this.ep,this),b.unsubscribe("licenseerror",this.bH,this),b.unsubscribe("newlicense",this.pW,this),b.unsubscribe("newsession",this.qW,this),b.unsubscribe("sessionready",this.EW,this),b.unsubscribe("fairplay_next_need_key_info",this.hW,this),this.Y.K("html5_enable_vp9_fairplay")&&
b.unsubscribe("qualitychange",this.bQ,this),b.dispose();this.u.clear();this.I.Ef();this.J.Ef();this.heartbeatParams=null;g.dE.prototype.qa.call(this)};
g.k.lc=function(){for(var a={systemInfo:this.j.lc(),sessions:[]},b=g.t(this.u.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.lc());return a};
g.k.rh=function(){return 0>=this.u.size?"no session":""+this.u.values().next().value.rh()+(this.D?"/KR":"")};
g.k.Ri=function(a,b){b=void 0===b?!1:b;this.isDisposed()||(OK(a),(this.Y.Rd()||b)&&this.ma("ctmp","drmlog",a))};g.w(JY,g.C);JY.prototype.yG=function(){return this.B};
JY.prototype.handleError=function(a){var b=this;fYa(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!eYa(this,a.errorCode,a.details))&&!jYa(this,a)){if(this.J&&"yt"!==this.j.Ja&&hYa(this,a)&&this.videoData.jo&&(0,g.M)()/1E3>this.videoData.jo&&"hm"===this.j.Ja){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.jo;c.init=this.videoData.uY/1E3;c.now=(0,g.M)()/1E3;c.systelapsed=((0,g.M)()-this.videoData.uY)/
1E3;a=new PK(a.errorCode,c,2);this.va.Ng(a.errorCode,2,"SIGNATURE_EXPIRED",OK(a.details))}if(QK(a.severity)){var d;c=null==(d=this.va.Fa)?void 0:d.ue.B;if(this.j.K("html5_use_network_error_code_enums"))if(gYa(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.j.J&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else gYa(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.j.J||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.va.Ng(a.errorCode,
a.severity,e,OK(a.details),f)}else this.va.ma("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Kd(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://web.archive.org/web/20230426095903/https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.M)(),$V(a,"manifest",function(h){b.I=!0;b.xa("pathprobe",h)},function(h){b.Kd(h.errorCode,h.details)}))}};
JY.prototype.xa=function(a,b){this.va.zc.xa(a,b)};
JY.prototype.Kd=function(a,b){b=OK(b);this.va.zc.Kd(a,b)};mYa.prototype.K=function(a){return this.Y.K(a)};g.w(LY,g.C);LY.prototype.yd=function(a){EYa(this);this.playerState=a.state;0<=this.u&&g.YN(a,16)&&this.seekCount++;a.state.isError()&&this.send()};
LY.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.K("html5_exception_to_health"))a.match(edb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
LY.prototype.send=function(){if(!(this.B||0>this.j)){EYa(this);var a=g.uW(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.getData();this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.S(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.S(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.S(this.playerState,16)||g.S(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.S(this.playerState,1)&&
g.S(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.S(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.S(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.S(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=$_a[CM(this.provider.videoData)];a:switch(this.provider.Y.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=
0>this.u?a:this.u-this.j;a=this.provider.Y.Jf+36E5<(0,g.M)();b={started:0<=this.u,stateAtSend:b,joinLatencySecs:e,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.AM(this.provider.videoData),isGapless:this.provider.videoData.fb,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai};
a||g.rA("html5PlayerHealthEvent",b);this.B=!0;this.dispose()}};
LY.prototype.qa=function(){this.B||this.send();g.C.prototype.qa.call(this)};
var edb=/\bnet\b/;var HYa=window;var FYa=/[?&]cpn=/;g.w(g.NY,g.C);g.k=g.NY.prototype;g.k.K3=function(){var a=g.uW(this.provider);LYa(this,a)};
g.k.VB=function(){return this.ya};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.isDisposed()&&(a=0<=a?a:g.uW(this.provider),-1<["PL","B","S"].indexOf(this.Te)&&(!g.hd(this.j)||a>=this.C+30)&&(g.MY(this,a,"vps",[this.Te]),this.C=a),!g.hd(this.j))){7E3===this.sequenceNumber&&g.DD(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){OYa(this,a);var b=a,c=this.provider.va.hC(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.Pb,h=e&&!this.jc;d>c.totalVideoFrames||5E3<f?TYa(this,"html5.badframedropcount",
"df."+d+";tf."+c.totalVideoFrames):(0<f||h)&&g.MY(this,b,"df",[f]);this.Pb=d;this.jc=e;0<this.J&&(g.MY(this,a,"glf",[this.J]),this.J=0);a={};this.provider.videoData.u&&(a.fmt=this.provider.videoData.u.itag,(b=this.provider.videoData.I)&&b.itag!==a.fmt&&(a.afmt=b.itag));a.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(a.adcpn=this.adCpn);this.T&&(a.addocid=this.T);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=PM(this.provider.videoData);a.content_v=RM(this.provider.videoData);
a.ns=this.provider.Y.Ja;a.fexp=this.provider.Y.experiments.experimentIds.toString();a.cl=(526486891).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=CM(this.provider.videoData))&&(a.live=b);this.provider.videoData.Pl()&&(a.drm=1,this.provider.videoData.J&&(a.drm_system=icb[this.provider.videoData.J.flavor]||0),this.provider.videoData.bJ&&(a.drm_product=this.provider.videoData.bJ));wy()&&this.provider.videoData.T&&(a.ctt=this.provider.videoData.T,a.cttype=this.provider.videoData.ek,
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.DU&&(a.dai_fallback="1")):this.provider.videoData.Nc?a.dai="cs":this.provider.videoData.VJ&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.bS){if(b=this.provider.videoData.bS,a&&b)for(this.provider.Y.K("html5_use_server_provided_namespace")&&(c=b.ns,
d=a.ns,c&&c!==d&&(g.DD(new g.bA("b273365784_qoe_diff",c,d)),this.La.delete("ns"))),c=g.t(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.La.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;this.provider.Y.K("html5_add_qclc_to_qoe_ping")&&(b=g.yL({cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.U1},KYa),a.qclc=g.gg(b,4));g.od(a,this.provider.Y.j);a=g.Zi("//"+this.provider.Y.ym+
"/api/stats/qoe",a);c=b="";d=g.t(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.DD(new g.bA("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);PYa(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.IX=function(){if(this.provider.videoData.J){var a=this.provider.videoData.J;OY(this,"eme-"+(a.keySystemAccess?"final":$I(a)?"ms":cJ(a)?"ytfp":bJ(a)?"safarifp":"nonfinal"))}};
g.k.yd=function(a){var b=a.state,c=g.uW(this.provider);a=this.getPlayerState(a.state);a!==this.Te&&(c<this.C||("PL"===this.Te?this.playTimeSecs+=c-this.C:"B"===this.Te&&this.Z&&(this.Z=!1,this.rebufferTimeSecs+=c-this.ib,!this.Ya&&10<=this.rebufferTimeSecs&&180>=this.playTimeSecs&&(this.provider.va.YC(),this.j.qoealert=["1"],this.Ya=!0)),"B"!==a||"PL"!==this.Te&&"PB"!==this.Te||(this.Z=!0),this.C=c),"PL"===this.Te&&("B"===a||"S"===a)||this.provider.Y.Rd()?OYa(this,c):(this.fb||"PL"!==a||(this.fb=
!0,NYa(this,c,this.provider.va.eC())),LYa(this,c)),"PL"===a&&g.Jp(this.Oc),g.MY(this,c,"vps",[a]),this.Te=a,this.C=this.ib=c,this.D=!0);a=b.getData();g.S(b,128)&&a&&(a.EH=a.EH||"",SYa(this,c,a.errorCode,a.AF,a.EH));(g.S(b,2)||g.S(b,128))&&this.reportStats(c);b.bd()&&!this.I&&(0<=this.u&&(this.j.user_intent=[this.u.toString()]),this.I=!0);QYa(this)};
g.k.iD=function(a){var b=g.uW(this.provider);g.MY(this,b,"vfs",[a.j.id,a.u,this.uc,a.reason]);this.uc=a.j.id;var c=this.provider.va.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.CK();1<d&&c.push(d);g.MY(this,b,"view",c)}this.Qa||(this.provider.Y.Rd()&&OY(this,"rqs"),this.provider.videoData.j&&qF(this.provider.videoData.j)&&(this.j.preload=["1"]));this.D=this.Qa=!0;"m"===a.reason&&100===++this.Wc&&UYa(this,2);g.MY(this,b,"vps",[this.Te]);this.reportStats(b)};
g.k.VC=function(a){var b=g.uW(this.provider);a.j.id!==this.Aa&&(g.MY(this,b,"afs",[a.j.id,this.Aa,a.reason]),this.Aa=a.j.id)};
g.k.jt=aa(43);g.k.onPlaybackRateChange=function(a){var b=g.uW(this.provider);a&&a!==this.Tb&&(g.MY(this,b,"rate",[a]),this.Tb=a);this.reportStats(b)};
g.k.vn=aa(16);g.k.getPlayerState=function(a){if(g.S(a,128))return"ER";if(g.S(a,2048))return"B";if(g.S(a,512))return"SU";if(g.S(a,16)||g.S(a,32))return"S";if(g.RO(a)&&g.S(a,64))return"B";var b=fdb[UO(a)];g.tK(this.provider.Y)&&"B"===b&&3===this.provider.va.getVisibilityState()&&(b="SU");"B"===b&&g.S(a,4)&&(b="PB");return b};
g.k.qa=function(){g.C.prototype.qa.call(this);window.clearInterval(this.kb)};
g.k.JH=function(a){this.isOffline=a;g.MY(this,g.uW(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.xa=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.Lc.indexOf(a);e||this.Lc.push(a);if(!c||!e){b="string"!==typeof b?OK(b):b;b=VYa(b);if(!c&&!/^t[.]/.test(b)){var f=1E3*g.uW(this.provider);b="t."+f.toFixed()+";"+b}d.push(a+":"+b);this.j.ctmp=d;QYa(this);return f}};
g.k.CD=function(a,b,c){this.B={M8:Number(this.xa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),NV:a,B8:b,isAd:c}};
g.k.Hz=function(a,b,c){g.MY(this,g.uW(this.provider),"ad_playback",[a,b,c])};
var r4={},fdb=(r4[5]="N",r4[-1]="N",r4[3]="B",r4[0]="EN",r4[2]="PA",r4[1]="PL",r4);YYa.prototype.update=function(){if(this.J){var a=this.provider.va.xk()||0,b=g.uW(this.provider);if(a!==this.j||aZa(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Wo+2||aZa(this,a,b))){c=this.provider.va.getVolume();var d=c!==this.ea,e=this.provider.va.isMuted()?1:0;e!==this.T?(this.T=e,c=!0):(!d||0<=this.C||(this.ea=c,this.C=b),c=b-this.C,0<=this.C&&2<c?(this.C=-1,c=!0):c=!1)}c&&(RY(this),this.u=a);this.Wo=b;this.j=a}}};bZa.prototype.send=function(a){var b=this;if(!this.Ya){var c=dZa(this),d=g.Zi(this.uri,c);this.ea&&!this.Y.K("html5_simplify_pings")?iZa(this,d):cZa(this,a).then(function(e){b.ea&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});JYa(d,e,{token:b.J,HP:b.tb,mdxEnvironment:b.mdxEnvironment},b.Y,a,b.oa,b.isFinal&&b.Jf||b.ya||b.B&&b.Kf)});
this.Ya=!0}};
bZa.prototype.u=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var s4={},gZa=(s4.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,s4.LIVING_ROOM_APP_MODE_MAIN=1,s4.LIVING_ROOM_APP_MODE_KIDS=2,s4.LIVING_ROOM_APP_MODE_MUSIC=3,s4.LIVING_ROOM_APP_MODE_UNPLUGGED=4,s4.LIVING_ROOM_APP_MODE_GAMING=5,s4),t4={},fZa=(t4.EMBEDDED_PLAYER_MODE_UNKNOWN=0,t4.EMBEDDED_PLAYER_MODE_DEFAULT=1,t4.EMBEDDED_PLAYER_MODE_PFP=2,t4.EMBEDDED_PLAYER_MODE_PFL=3,t4);g.w(TY,g.C);g.k=TY.prototype;g.k.Ie=function(){this.j.update();var a;if(a=this.provider.videoData.isLoaded()&&this.provider.videoData.Pb&&this.u&&!this.oa)a=this.j,a=a.D+a.provider.va.xk()-a.u>=this.provider.videoData.Pb;a&&(this.u&&this.provider.videoData.Pb&&(a=UY(this,"delayplay"),a.vf=!0,a.send(),this.oa=!0),jZa(this))};
g.k.yd=function(a){if(!this.isDisposed())if(g.S(a.state,2)||g.S(a.state,512))this.I="paused",(g.YN(a,2)||g.YN(a,512))&&this.u&&(XY(this),YY(this).send(),this.D=NaN);else if(g.S(a.state,8)){this.I="playing";var b=this.u&&isNaN(this.C)?VY(this):NaN;!isNaN(b)&&(0>XN(a,64)||0>XN(a,512))&&(a=oZa(this,!1),a.D=b,a.send())}else this.I="paused"};
g.k.qa=function(){g.C.prototype.qa.call(this);XY(this);ZYa(this.j)};
g.k.lc=function(){return dZa(UY(this,"playback"))};
g.k.kA=function(){this.provider.videoData.ea.eventLabel=PM(this.provider.videoData);this.provider.videoData.ea.playerStyle=this.provider.Y.playerStyle;this.provider.videoData.Ui&&(this.provider.videoData.ea.feature="pyv");this.provider.videoData.ea.vid=this.provider.videoData.videoId;var a=this.provider.videoData.ea;var b=this.provider.videoData;b=b.isAd()||!!b.Ui;a.isAd=b};
g.k.Gj=function(a){var b=UY(this,"engage");b.T=a;return eZa(b,tZa(this.provider))};rZa.prototype.Bf=function(){return this.endTime===this.startTime};sZa.prototype.K=function(a){return this.Y.K(a)};
var uZa={other:1,none:2,wifi:3,cellular:7};g.w(g.ZY,g.C);g.k=g.ZY.prototype;g.k.yd=function(a){if(g.YN(a,1024)||g.YN(a,512)||g.YN(a,4)){var b=this.B;0<=b.u||(b.j=-1,b.delay.stop());this.qoe&&(b=this.qoe,b.I||(b.u=-1))}if(this.provider.videoData.enableServerStitchedDai&&this.Ci){var c;null==(c=this.u.get(this.Ci))||c.yd(a)}else this.j&&this.j.yd(a);this.qoe&&this.qoe.yd(a);this.B.yd(a)};
g.k.Ie=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ci){var a;null==(a=this.u.get(this.Ci))||a.Ie()}else this.j&&this.j.Ie()};
g.k.Kd=function(a,b){this.qoe&&TYa(this.qoe,a,b);this.B.onError(a)};
g.k.iD=function(a){this.qoe&&this.qoe.iD(a)};
g.k.VC=function(a){this.qoe&&this.qoe.VC(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a)};
g.k.jt=aa(42);g.k.xa=function(a,b,c){this.qoe&&this.qoe.xa(a,b,c)};
g.k.CD=function(a,b,c){this.qoe&&this.qoe.CD(a,b,c)};
g.k.Hz=function(a,b,c){this.qoe&&this.qoe.Hz(a,b,c)};
g.k.vn=aa(15);g.k.VB=function(){if(this.qoe)return this.qoe.VB()};
g.k.lc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ci){var a;null==(a=this.u.get(this.Ci))||a.lc()}else if(this.j)return this.j.lc();return{}};
g.k.Gj=function(a){return this.j?this.j.Gj(a):function(){}};
g.k.kA=function(){this.j&&this.j.kA()};g.w($Y,g.C);g.k=$Y.prototype;g.k.ye=function(a,b){this.On();b&&2E3<=this.j.array.length&&this.CB("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.Nb(b.array,c,b.j)}this.u=NaN;this.On()};
g.k.Ch=function(a){1E4<a.length&&g.DD(new g.bA("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.isDisposed()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
IZa(this.j,b);this.On()}};
g.k.CB=function(a,b){var c=(isNaN(this.u)?g.S(this.D(),2)?0x8000000000000:1E3*this.T():this.u)-b;b=this.Hm().filter(function(d){return d.namespace===a&&d.end<c});
this.Ch(b);return b};
g.k.Hm=function(){return this.isDisposed()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.C.stop();this.j.array=[];this.B=[];this.On()};
g.k.Ff=function(a){var b=this.Hm().filter(function(c){return c.namespace===a});
this.Ch(b);return b};
g.k.yd=function(a){this.started&&(this.On(),g.S(a.Hv,16)&&(a=HZa(this.j,Math.max(this.u-2E3,0)),!isNaN(a)&&0x7ffffffffffff>a&&this.C.start()))};
g.k.tL=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.wL=function(a){var b=[];if(!a.length)return b;a.sort(g.YD);a=g.t(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.On=function(){this.I=!0;if(!this.J){for(var a=3;this.I&&a;)this.I=!1,this.J=!0,this.RU(),this.J=!1,a--;this.D().bd()&&(a=HZa(this.j,this.u),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.u)/this.oa(),this.C.start(a)))}};
g.k.RU=function(){if(this.started&&!this.isDisposed()){this.C.stop();var a=this.D();g.S(a,32)&&this.Z.start();for(var b=g.S(this.D(),2)?0x8000000000000:1E3*this.T(),c=g.S(a,2),d=[],e=[],f=g.t(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.wL(e));f=e=null;c?(a=FZa(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=GZa(this.j)):a=this.u<=b&&SO(a)?EZa(this.j,this.u,b):FZa(this.j,b);
d=d.concat(this.tL(a));e&&(d=d.concat(this.wL(e)));f&&(d=d.concat(this.tL(f)));this.u=b;JZa(this,d)}};
g.k.qa=function(){this.B=[];this.j.array=[];g.C.prototype.qa.call(this)};
g.oW.ev($Y,{ye:"crmacr",tL:"crmncr",wL:"crmxcr",RU:"crmis",Ch:"crmrcr"});g.w(cZ,g.dE);cZ.prototype.uq=function(){return this.J};
cZ.prototype.Wp=function(){return Math.max(this.T()-QZa(this,!0),this.videoData.Id())};g.w(hZ,g.C);hZ.prototype.yd=function(){g.Jp(this.B)};
hZ.prototype.gf=function(){var a=this,b=this.va.qe(),c=this.va.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.S(c,8)&&g.S(c,16),h=this.va.Es().isBackground()||c.isSuspended();iZ(this,this.Ja,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&BCa(b,this.j);var m=!d||10<Math.abs(d-this.j);iZ(this,this.La,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
var n=l&&lI(b.Nh(),this.j);l=this.va.Fa;m=!l||!l.policy.Ya;var p=function(){b.seekTo(a.j+.001)};
iZ(this,this.Z,n&&m&&!h,e,"qoe.slowseek",p,"jiggle_cmt");m=function(){return IY(a.va)};
iZ(this,this.Ga,n&&!h,e,"qoe.slowseek",m,"new_elem");var q=SO(c);n=g.TO(c);var r=b.Nh(),v=kI(r,d),x=0<=v&&r.end(v)>d+5,z=q&&n&&x;x=this.va.getVideoData();var B=.002>d&&.002>this.j,F=0<=v,G=1===b.xj();iZ(this,this.ya,B&&f&&g.QM(x)&&!h,e,"qoe.slowseek",m,"slow_seek_shorts");iZ(this,this.Aa,B&&f&&g.QM(x)&&!h&&G,e,"qoe.slowseek",m,"slow_seek_shorts_vrs");iZ(this,this.oa,B&&f&&g.QM(x)&&!h&&F,e,"qoe.slowseek",m,"slow_seek_shorts_buffer_range");iZ(this,this.I,z&&!h,q&&!n,"qoe.longrebuffer",p,"jiggle_cmt");
iZ(this,this.J,z&&!h,q&&!n,"qoe.longrebuffer",m,"new_elem_nnr");if(l){var D=l.getCurrentTime();f=b.Vu();f=Bva(f,D);f=!l.hh()&&d===f;iZ(this,this.fb,q&&n&&f&&!h,q&&!n&&!f,"qoe.longrebuffer",function(){b.seekTo(D)},"seek_to_loader")}f={};
p=kI(r,Math.max(d-3.5,0));z=0<=p&&d>r.end(p)-1.1;B=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=v;f.disIndex=p;f.isdisc=0<=p&&z&&11>B;f.close2edge=z;f.gapsize=B;f.buflen=r.length;iZ(this,this.T,q&&n&&!h,q&&!n,"qoe.longrebuffer",function(){},"timeout",f);
r=c.isSuspended();r=g.rb(this.va.zn,"ad")&&!r;iZ(this,this.D,r,!r,"qoe.start15s",function(){a.va.jg("ad")},"ads_preroll_timeout");
r=.5>d-this.C;v=x.isAd()&&q&&!n&&r;q=function(){var L=a.va,P=L.Nf.Rc();(!P||!L.videoData.isAd()||P.getVideoData().Nc!==L.getVideoData().Nc)&&L.videoData.mf||L.Ng("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+L.videoData.videoId)};
iZ(this,this.Qa,v,!v,"ad.rebuftimeout",q,"skip_slow_ad");n=x.isAd()&&n&&lI(b.Nh(),d+5)&&r;iZ(this,this.Xa,n,!n,"ad.rebuftimeout",q,"skip_slow_ad_buf");iZ(this,this.Ya,g.RO(c)&&g.S(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
iZ(this,this.ea,!!l&&!l.Wa&&g.RO(c),e,"qoe.start15s",m,"newElemMse");this.C=d;this.B.start()}};
hZ.prototype.Kd=function(a,b,c){b=this.lc(b);b.wn=c;b.wdup=this.u[a]?"1":"0";this.va.Kd(new PK(a,b));this.u[a]=!0};
hZ.prototype.lc=function(a){a=Object.assign(this.va.lc(!0),a.lc());this.j&&(a.stt=this.j.toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
fZ.prototype.reset=function(){this.j=this.u=this.B=this.startTimestamp=0;this.C=!1};
fZ.prototype.lc=function(){var a={},b=(0,g.M)();this.startTimestamp&&(a.wsd=(b-this.startTimestamp).toFixed());this.u&&(a.wtd=(b-this.u).toFixed());this.j&&(a.wssd=(b-this.j).toFixed());return a};g.w(XZa,g.C);g.k=XZa.prototype;g.k.setMediaElement=function(a){g.Lz(this.Qa);(this.mediaElement=a)?(i_a(this),jZ(this)):kZ(this)};
g.k.yd=function(a){this.Z.yd(a);this.K("html5_exponential_memory_for_sticky")&&(a.state.bd()?g.Jp(this.oa):this.oa.stop());if(this.mediaElement)if(8===a.Hv.state&&SO(a.state)&&g.TO(a.state)){a=this.mediaElement.getCurrentTime();var b=this.mediaElement.Nh();var c=this.K("manifestless_post_live_ufph")||this.K("manifestless_post_live")?kI(b,Math.max(a-3.5,0)):kI(b,a-3.5);0<=c&&a>b.end(c)-1.1&&c+1<b.length&&11>b.start(c+1)-b.end(c)&&(c=b.start(c+1)+.2,.2>Math.abs(this.fb-c)||(this.va.xa("seekover",{b:jI(b,
"_"),cmt:a}),this.fb=c,this.seekTo(c,{bv:!0,Je:"seektimeline_postLiveDisc"})))}else(null==(b=a.state)?0:8===b.state)&&this.Y.K("embeds_enable_muted_autoplay")&&!this.Ya&&0<this.videoData.limitedPlaybackDurationInSeconds&&(A_a(this.va,this.getCurrentTime()+this.videoData.limitedPlaybackDurationInSeconds),this.Ya=!0)};
g.k.getCurrentTime=function(){return!isNaN(this.u)&&isFinite(this.u)?this.u:this.mediaElement&&h_a(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.C||0};
g.k.xk=function(){return this.getCurrentTime()-this.Jd()};
g.k.Wp=function(){return this.j?this.j.Wp():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;void 0===a&&(a=this.getCurrentTime());return eZ(this.j,a)};
g.k.uq=function(){return!!this.j&&this.j.uq()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.vY?!1:c.vY;var d=void 0===c.wY?0:c.wY,e=void 0===c.bv?!1:c.bv,f=void 0===c.IP?0:c.IP,h=void 0===c.Je?"":c.Je,l=void 0===c.EC?!1:c.EC;if(void 0===c.Er?0:c.Er)a+=this.Jd();if(c=a<this.Aa&&!!this.Fa){this.va.xa("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.Aa.toFixed(3)});this.Aa=NaN;this.timestampOffset-=1E3;var m;if(null!=(m=this.Fa)){lXa(m,m.timestampOffset-1E3);var n=m.Sa,p=new Set;for(v in n.j){var q=n.j[v].index,
r=q.Ru();r&&!p.has(r)&&(r.startTime+=1E3,r.endTime=r.startTime+r.duration,p.add(r));q.segments.length&&(r=q.segments[q.segments.length-1],q.segments=[],q.segments.push(r))}m.I&&m.I.TO();jX(m.B,0,0,!0)}}var v=a;(m=!isFinite(v)||(this.j?eZ(this.j,v):v>=this.pe())||!g.GM(this.videoData))||this.va.xa("seeknotallowed",{st:v,mst:this.pe()});if(!m)return this.B&&(this.B=null,e_a(this)),Qf(this.getCurrentTime());if(.005>Math.abs(a-this.u)&&this.T)return this.D;h&&(v=a,(this.Y.Rd()||this.K("html5_log_seek_reasons"))&&
this.va.xa("seekreason",{reason:h,tgt:v}));this.T&&kZ(this);this.D||(this.D=new aK);a&&!isFinite(a)&&$Za(this,!1);if(h=!c)h=a,h=this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.xj()&&0<GO(this.mediaElement))||jM(this.videoData)&&this.Id()===this.pe(!1)?!1:isFinite(h)?!0:jM(this.videoData)?!1:!0;h&&(a=g_a(this,a,e));a&&!isFinite(a)&&$Za(this,!1);this.C=a;this.Ja=f;this.u=a;this.j&&(e=this.j,f=a,RZa(e,f,!1),SZa(e,f));e=this.va;f=a;e.xd.C=
f;h=e.gB;h.mediaTime=f;h.j=!0;b&&V_a(e);e.Pp&&f>e.videoData.endSeconds&&isFinite(f)&&J_a(e);f<e.pe()-.01&&(h=NO(e.playerState,2),g.S(h,8)&&(h=NO(h,4)),e.pc(h));e.ma("SEEK_TO",e,f);this.D&&(b?d&&this.La.start(d):(b={EC:l},this.T=!0,WZa(this,b)));(b=this.va.Pp)&&a>b.start&&J_a(this.va);return this.D};
g.k.pe=function(a){if(!this.videoData.isLivePlayback)return j0a(this.va);var b;if(aN(this.videoData)&&(null==(b=this.mediaElement)?0:b.Ip())&&this.videoData.j)return a=this.getCurrentTime(),Yza(1E3*this.Pf(a))+a;if(jM(this.videoData)&&this.videoData.rd&&this.videoData.j)return this.videoData.j.pe()+this.timestampOffset;if(this.videoData.C&&this.videoData.C.j){if(!a&&this.j)return this.j.Wp();a=j0a(this.va);this.policy.j&&this.mediaElement&&(a=Math.max(a,DCa(this.mediaElement)));return a+this.timestampOffset}return this.mediaElement?
Zy()?Yza(this.mediaElement.RE().getTime()):GO(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset};
g.k.Id=function(){var a=this.videoData?this.videoData.Id()+this.timestampOffset:this.timestampOffset;if(aN(this.videoData)&&this.videoData.j){var b,c=Number(null==(b=this.videoData.progressBarStartPosition)?void 0:b.utcTimeMillis)/1E3;b=this.getCurrentTime();b=this.Pf(b)-b;if(!isNaN(c)&&!isNaN(b))return Math.max(a,c-b)}return a};
g.k.CL=function(){this.D||this.seekTo(this.C,{Je:"seektimeline_forceResumeTime_singleMediaSourceTransition"})};
g.k.vG=function(){return this.T&&!isFinite(this.u)};
g.k.qa=function(){a_a(this,null);this.Z.dispose();g.C.prototype.qa.call(this)};
g.k.lc=function(){var a={};this.Fa&&Object.assign(a,this.Fa.lc());this.mediaElement&&Object.assign(a,this.mediaElement.lc());return a};
g.k.gO=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return jM(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Jd=function(){return this.timestampOffset};
g.k.Pf=function(a){return this.videoData.j.Pf(a-this.timestampOffset)};
g.k.Tu=function(){if(!this.mediaElement)return 0;if(HM(this.videoData)){var a=DCa(this.mediaElement)+this.timestampOffset-this.Id(),b=this.pe()-this.Id();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Tu()};
g.k.bD=function(a){this.I&&(this.I.j=a.audio.index)};
g.k.K=function(a){return this.Y&&this.Y.K(a)};lZ.prototype.Os=function(){return this.started};
lZ.prototype.start=function(){this.started=!0};
lZ.prototype.reset=function(){this.finished=this.started=!1};var o_a=!1;g.w(g.pZ,g.dE);g.k=g.pZ.prototype;g.k.qa=function(){this.oX();this.BH.stop();window.clearInterval(this.rH);kRa(this.Bg);this.visibility.unsubscribe("visibilitystatechange",this.Bg);xZa(this.zc);g.Za(this.zc);uZ(this);g.Ap.Em(this.Wv);this.rj();this.Df=null;g.Za(this.videoData);g.Za(this.Gl);g.$a(this.a5);this.Pp=null;g.dE.prototype.qa.call(this)};
g.k.Hz=function(a,b,c,d){this.zc.Hz(a,b,c);this.K("html5_log_media_perf_info")&&this.xa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.KL=function(){var a;return null==(a=this.Fa)?void 0:a.KL()};
g.k.NL=function(){var a;return null==(a=this.Fa)?void 0:a.NL()};
g.k.OL=function(){var a;return null==(a=this.Fa)?void 0:a.OL()};
g.k.LL=function(){var a;return null==(a=this.Fa)?void 0:a.LL()};
g.k.Pl=function(){return this.videoData.Pl()};
g.k.getVideoData=function(){return this.videoData};
g.k.V=function(){return this.Y};
g.k.Es=function(){return this.visibility};
g.k.qe=function(){return this.mediaElement};
g.k.PK=function(){if(this.videoData.isLoaded()){var a=this.Gl;0<g.gJ(a.j.experiments,"html5_player_min_build_cl")&&526486891<g.gJ(a.j.experiments,"html5_player_min_build_cl")&&iYa(a,"oldplayer");F_a(this)}else this.videoData.Qg||this.videoData.Rn?this.Ns&&g.tK(this.Y)&&this.videoData.isLivePlayback||(this.videoData.Qg?Bza(this.videoData):(a=this.zc,a.qoe&&(a=a.qoe,OY(a,"protected"),a.provider.videoData.J?a.IX():a.provider.videoData.subscribe("dataloaded",a.IX,a)),yza(this.videoData))):!this.videoData.La&&
this.Z1&&D_a(this)};
g.k.eI=function(a){this.Og=a;this.Fa&&this.Fa.eI(a)};
g.k.Ey=aa(6);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.S(this.getPlayerState(),128)||(this.ma("internalAbandon"),this.aP(!0),xZa(this.zc),g.Za(this.zc),g.Ap.Em(this.Wv));var a;null==(a=this.Y.Rk)||a.flush()};
g.k.jr=function(){wZa(this.zc)};
g.k.Ng=function(a,b,c,d,e,f){var h,l;g.ad(Jcb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+FR());b={errorCode:a,errorDetail:e,errorMessage:l||g.$T[h]||"",uL:h,Gm:f||"",EH:d,AF:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;tZ(this,"dataloaderror");this.pc(LO(this.playerState,128,b));g.Ap.Em(this.Wv);uZ(this);this.Dn()};
g.k.jg=function(a){this.zn=this.zn.filter(function(b){return a!==b});
this.Lq.Os()&&E_a(this)};
g.k.Mo=function(){var a;(a=!!this.zn.length)||(a=this.Xi.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.uq=function(){return this.xd.uq()};
g.k.bd=function(){return this.playerState.bd()};
g.k.BC=function(){return this.playerState.BC()&&this.videoData.Tn};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Df){var a=this.Df;a=a.videoData.Nx.compose(a.videoData.cS);a=nF(a)}else a="auto";return a};
g.k.YB=aa(10);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()};
g.k.setMediaElement=function(a){if(this.mediaElement&&a.ub()===this.mediaElement.ub()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.Lz(this.oA),this.mediaElement=a,this.mediaElement.va=this,W_a(this),this.xd.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.rj();if(!this.playerState.isError()){var b=NO(this.playerState,512);g.S(b,8)&&!g.S(b,2)&&(b=MO(b,1));a.isView()&&(b=NO(b,64));this.pc(b)}this.mediaElement=a;this.mediaElement.va=this;JK(this.Y)&&
this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);W_a(this);this.xd.setMediaElement(this.mediaElement);this.K("html5_prewarm_media_source")&&!this.Gl.HC&&xCa(this.mediaElement)}};
g.k.rj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.xd.C=c);this.xd.setMediaElement(null);!a&&zI(this)?S_a(this):yZ(this);this.Fa&&(xY(this.Fa),zZ(this,b));this.Bv.stop();if(this.mediaElement&&(!this.Lq.Os()||this.playerState.isError()||g.S(this.playerState,2)||this.pc(MO(this.playerState,512)),this.mediaElement)){g.Lz(this.oA);if(a||!this.mediaElement.isView())this.K("html5_rebase_video_to_ad_timeline")&&this.vb.Mt("mesv_s"),this.mediaElement.stopVideo(),
AZ(this);this.mediaElement=this.mediaElement.va=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h;return g.A(function(l){if(1==l.j){var m=window.google_image_requests;m&&10<m.length&&(window.google_image_requests=m.slice(-10));if(g.S(b.playerState,128))return l.return();if(b.Gl.yG())return b.ma("signatureexpired"),l.return();b.mediaElement&&vZa(b.zc);I_a(b);(g.S(b.playerState,64)||a)&&b.pc(MO(b.playerState,8));return b.Lq.finished&&b.mediaElement?b.Df||!b.mD?l.Ka(2):g.y(l,b.mD,3):l.return()}if(2!=l.j&&g.S(b.playerState,128))return l.return();
if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.vJ(b.Y.D,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Pl()?"fmt.unplayable":"fmt.noneavailable",d=1),g.DD(Error("selectableFormats")),b.Ng(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(b.wh()&&b.videoData.C.j)return l.return(sZ(b));if(hM(b.videoData)&&(e=b.getCurrentTime()<b.Id()-15,f=g.GM(b.videoData)&&g.QO(b.playerState),(h=g.S(b.playerState,1024))||!e&&!f||(f?b.seekTo(Infinity,{Je:"videoplayer_unpauseLiveOnly"}):
b.seekTo(b.Id(),{Je:"videoplayer_outOfWindow"})),!b.isAtLiveHead(void 0,!0)&&b.uq()&&b.seekTo(Infinity,{Je:"videoplayer_peggedToLive"}),g.S(b.playerState,256)&&b.videoData.kb&&b.xd.vG()))return b.pc(OO(b.playerState,8,4)),l.return();g.S(b.playerState,4)&&g.S(b.playerState,16)&&b.pc(OO(b.playerState,9,4));if(oZ(b))return c0a(b),l.return();b0a(b);g.oa(l)})};
g.k.Zr=function(){if(!this.Df)return[];var a=oYa(this.Ji,this.Df,this.Su());return this.Df.j.Zr(a)};
g.k.LB=function(){if(!this.Df)return[];var a=oYa(this.Ji,this.Df,this.Su());return this.Df.j.LB(a)};
g.k.Su=function(){var a=this.oe?this.oe.Su():tM(this.videoData)&&this.videoData.j&&tF(this.videoData.j)?this.videoData.hm?ZL:TXa:ZL;this.UO&&(a=a.compose(bcb));return a};
g.k.QF=function(){var a=this.Ce(),b=this.Nf.Hd().videoId;return this.Nf.Us.QF(a)||this.Nf.Us.QF(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?nF(this.videoData.Nx):mF[SI()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a){this.videoData.dj!==a&&(this.xa("toggle51",{pref:a}),this.videoData.dj=a,g.Pz("yt-player-audio51",a,2592E3),KY(this))};
g.k.getUserAudio51Preference=function(){var a=1;EK(this.Y)&&this.K("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.Qz("yt-player-audio51"))?b:a};
g.k.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(O_a(this)){var a=Q_a(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.oy=function(){if(this.Fa){var a=this.Fa,b=a.oy;var c=this.videoData;c=c.K("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:jM(c)&&c.mf&&!c.isAd();b.call(a,c)}};
g.k.zs=function(){return this.Wa};
g.k.vz=function(a){this.Cz.set(a.initData,a);this.oe&&(this.oe.vz(a),this.K("html5_eme_loader_sync")||this.Cz.remove(a.initData))};
g.k.hO=function(a){this.videoData.ql=g.kF("auto",a,!1,"u");nZ(this)};
g.k.bD=function(a){K_a(this,a.reason,a.video.info,a.audio.info);this.xd.bD(a)};
g.k.cH=function(a){this.ma("localmediachange",a)};
g.k.iA=function(){var a;null==(a=this.Fa)||a.iA(this.Y)};
g.k.yG=function(){return this.Gl.yG()};
g.k.handleError=function(a){this.Gl.handleError(a)};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.S(this.playerState,64)||g.S(this.playerState,2))&&!a)if(g.S(this.playerState,8))this.pc(OO(this.playerState,4,8));else if(this.BC())oZ(this);else return;g.S(this.playerState,128)||(a?this.pc(MO(this.playerState,256)):this.pc(OO(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.GM(this.videoData)&&this.Fa&&zZ(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Fa&&(zZ(this,!1),this.Fa.vk())};
g.k.Dn=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(zI(this)&&b){var c;null==(c=this.mediaElement)||c.Dn()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}AZ(this);uZ(this);g.S(this.playerState,128)||(a?this.pc(NO(NO(MO(this.playerState,4),8),16)):this.pc(LO(this.playerState)));this.videoData.videoId&&this.Y.Aa.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;g.S(this.playerState,2)&&oZ(this);this.xd.seekTo(a,b);this.Xi.On()};
g.k.getCurrentTime=function(){return this.xd.getCurrentTime()};
g.k.xk=function(){return this.xd.xk()};
g.k.Wp=function(){return this.xd.Wp()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Jd())};
g.k.Dy=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Dy());return 0<=a?a:this.getCurrentTime()};
g.k.Pf=function(){var a;return(null==(a=this.videoData.j)?0:a.Pf)?this.videoData.j.Pf(this.getCurrentTime()-this.Jd()):this.mediaElement&&(a=this.mediaElement.RE())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return YM(this.videoData)&&this.Og?this.Og.getDuration():this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Jd():this.pe()?this.pe():0};
g.k.eC=function(){var a=new BZa;if(this.Fa){var b=this.Y.schedule;a.Zq=b.ea;a.Ot=b.oa;a.bandwidthEstimate=XJ(b);a.j={d:VJ(b).toFixed(2),st:(1E9*(b.j.bj()||0)).toFixed(2),bw:b.B.bj().toFixed(0),abw:b.I.bj().toFixed(0),v50:UJ(b.u,.5).toFixed(2),v92:UJ(b.u,.92).toFixed(2),v96:UJ(b.u,.96).toFixed(2),v98:UJ(b.u,.98).toFixed(2)};b=this.Fa;if(b.Wa&&!b.Wa.Vg()&&(a.Au=VX(b.videoTrack),a.u=VX(b.audioTrack),b.policy.ib)){var c=UX(b.videoTrack),d=UX(b.audioTrack),e=jI(b.Wa.u.Ig(),"_",5),f=jI(b.Wa.j.Ig(),"_",
5);Object.assign(a.j,{lvq:c,laq:d,lvb:e,lab:f})}a.bandwidthEstimate=$W(b.J)}else this.mediaElement&&(a.Au=HO(this.mediaElement));a.Zq=this.Zq;a.Ot=this.Ot;a.B=this.isAtLiveHead()&&this.bd()?y_a(this):NaN;return a};
g.k.DD=function(a,b){this.Ot+=a;this.Zq+=b};
g.k.Tu=function(){return this.mediaElement?g.GM(this.videoData)?1:HM(this.videoData)?this.isAtLiveHead()||this.uq()?1:this.xd.Tu():this.mediaElement.Tu():0};
g.k.lc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.zc.lc());this.mediaElement&&(Object.assign(b,this.mediaElement.lc()),Object.assign(b,this.hC()));this.Fa&&Object.assign(b,this.Fa.lc());this.oe&&(b.drm=JSON.stringify(this.oe.lc()));b.state=this.playerState.state.toString(16);g.S(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.getData()));this.Mo()&&(b.prerolls=this.zn.join(","));this.videoData.Vd&&(b.ismb=this.videoData.Vd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.Nf.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&OI(this.videoData.j)&&(b.segduration=OI(this.videoData.j)),a=this.xd,b.lat=a.I?lKa(a.I.C):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Zi.toFixed(3);if(a=g.qT(this))b.optimal_format=a.video.qualityLabel;
b.user_qual=SI();b.release_version="youtube.player.web_20230423_00_RC00"}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.ZA([a])};
g.k.removeCueRange=function(a){this.Xi.Ch([a])};
g.k.CB=function(a,b){return this.Xi.CB(a,b)};
g.k.ZA=function(a,b){this.Xi.ye(a,b)};
g.k.MH=function(a){this.Xi.Ch(a)};
g.k.Hm=function(){return this.Xi.Hm()||[]};
g.k.wh=function(){return this.visibility.wh()};
g.k.Dt=function(){this.mediaElement&&this.mediaElement.Dt()};
g.k.S7=function(){tZ(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.iO=function(a){var b=a.target.Qf();if(this.mediaElement&&this.mediaElement.Qf()&&this.mediaElement.Qf()===b){g0a(this,a.type);switch(a.type){case "error":var c=JO(this.mediaElement)||"";if("capability.changed"===c){this.K("html5_restart_on_capability_change")?(this.xa("capchg",{msg:this.mediaElement.zf()}),IY(this,!0)):sZ(this);return}if(0<this.mediaElement.Ye()&&eYa(this.Gl,c,{msg:this.mediaElement.zf()}))return;if(this.isBackground()&&4===this.mediaElement.Ye()){this.Dn();vZ(this,"unplayable");
return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Wa||0<c)&&1!==c&&this.Sk(c);break;case "ratechange":this.Fa&&this.Fa.setPlaybackRate(this.mediaElement.getPlaybackRate());c=this.Xi;c.started=!0;c.On();this.zc.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":i0a(this);this.ma("onLoadedMetadata");Y_a(this);break;case "loadstart":Y_a(this);break;case "progress":case "suspend":this.yc();this.ma("onLoadProgress",this,this.Tu());break;case "playing":this.vb.Mt("plev");
this.XO&&(this.XO=!1,this.isAtLiveHead()||this.seekTo(Infinity,{Je:"videoplayer_onPlaying"}));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();var d=this.mediaElement&&0===this.mediaElement.xj();if(c&&(!this.WG||d))return;this.WG=this.WG||!!this.mediaElement.getCurrentTime();X_a(this);this.yc();if(!this.mediaElement||this.mediaElement.Qf()!==b)return;this.ma("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Vu().length&&0===this.mediaElement.Nh().length&&
0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.Fa)return;break;case "resize":i0a(this);this.videoData.u&&"auto"===this.videoData.u.video.quality&&this.ma("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.DS&&g.S(this.playerState,8)&&!g.S(this.playerState,1024)&&0===this.getCurrentTime()&&g.BA){vZ(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Qf()===b){this.ma("videoelementevent",a);b=this.playerState;c=this.videoData.clientPlaybackNonce;
if(!g.S(b,128)){d=this.gB;var e=this.mediaElement,f=this.Y.experiments,h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.S(b,64)||"ended"!==a.type&&"pause"!==a.type){var m=e.Qh()||1<l&&1.1>Math.abs(l-e.getDuration()),n="pause"===a.type&&e.Qh();l="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.S(b,4)&&!aZ(d,l);if(n||m&&l)0<e.WF()&&e.Qf()&&(h=14);else switch(a.type){case "error":JO(e)&&(h|=128);break;case "pause":g.S(b,256)?(h^=256)||(h=64):g.S(b,32)||g.S(b,2)||g.S(b,4)||(h=4,
g.S(b,1)&&g.S(b,8)&&(h|=1));break;case "playing":m=h;h=(h|8)&-1093;f&&f.ob("html5_distrust_playing")&&8!==m?h|=1:aZ(d,e.getCurrentTime())&&(h&=-2);g.S(b,1)&&bZ(d,e.getCurrentTime(),(0,g.M)(),HO(e))&&(h|=1);break;case "seeking":h|=16;g.S(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;break;case "waiting":g.S(b,2)||(h|=1);bZ(d,e.getCurrentTime(),(0,g.M)(),HO(e));break;case "timeupdate":f=g.S(b,16),m=g.S(b,4),(g.S(b,8)||f)&&!m&&aZ(d,e.getCurrentTime())&&(h=8),bZ(d,e.getCurrentTime(),(0,g.M)(),HO(e))&&
(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=JO(h),f=1,e?("capability.changed"===e&&(f=2),m="GENERIC_WITHOUT_LINK",n=h.lc(),n.mediaElem="1",/AUDIO_RENDERER/.test(h.zf())&&(m="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.$T[m]||"",uL:m,EH:OK(n),AF:f,cpn:b.j?b.j.cpn:""}):h=null,h&&(h.cpn=c));b=LO(b,d,h)}!g.S(this.playerState,1)&&g.S(b,1)&&f0a(this,"evt"+a.type);this.pc(b)}}};
g.k.q5=function(a){a="available"===a.j.availability;a!==this.vC&&(this.vC=a,this.ma("airplayavailabilitychange"))};
g.k.r5=function(){var a=(0,g.M)(),b=this.mediaElement.wh();this.xa("airplay",{ia:b});!b&&!isNaN(this.AG)&&2E3>a-this.AG||(this.AG=a,b!==this.wh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Bg()),this.xa("airplay",{rbld:b}),KY(this)),this.ma("airplayactivechange"))};
g.k.kC=function(a){if(this.Fa){var b=this.Fa,c=b.B,d=b.currentTime,e=Date.now()-c.ea;c.ea=NaN;c.xa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.D)&&3!==c.u&&VWa(c.Fa,d,c.D,c.B);c.J=NaN;iX(c,4,3===c.u?"adfps":"adf");xY(b)}};
g.k.yc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){b_a(this.xd,this.bd());var c=this.getCurrentTime();this.Fa&&(g.S(this.playerState,4)&&g.GM(this.videoData)||iXa(this.Fa,c));5<c&&(this.xd.C=c);var d=g.jA();d?g.Ap.Em(this.Wv):g.Ey(this.Wv);var e=this.mediaElement.Ip();if((g.TO(this.playerState)||!e||aN(this.videoData))&&!g.S(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.S(b.playerState,128)){b.Y.Rd()&&g.gJ(b.Y.experiments,"html5_log_rebuffer_events")&&
g0a(b,"pfx");var h=b.getCurrentTime(),l=HO(b.mediaElement),m=g.S(b.playerState,8),n=aZ(b.gB,h),p=bZ(b.gB,h,(0,g.M)(),l);m&&n?b.pc(NO(b.playerState,1)):m&&p?(m=b.getDuration(),n=hM(b.videoData),m&&1.1>Math.abs(m-h)?(b.xa("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.xs()?b.seekTo(0,{Je:"videoplayer_loop"}):vW(b)):(g.TO(b.playerState)||f0a(b,"progress_fix"),b.pc(MO(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.HC)/1E3,n=b.getDuration(),h>n-1&&b.xa("misspg",{t:h.toFixed(2),d:n.toFixed(2),
r:m.toFixed(2),bh:l.toFixed(2)})),g.QO(b.playerState)&&g.TO(b.playerState)&&5<HO(b.mediaElement)&&b.pc(NO(b.playerState,1)));b.yc()}};
0===this.mediaElement.Vu().length?this.Wv=d?g.Ap.xi(f,100):g.Cy(f,100):this.Wv=d?g.Ap.xi(f,500):g.Cy(f,500)}this.videoData.wD=c;!a&&this.bd()&&a0a(this);wYa(this.Ji,this.Df,this.qe(),this.isBackground())&&nZ(this);xYa(this.Ji,this.videoData.u)&&(this.zc.Kd("qoe.restart","droprate."+this.Ji.J),Swa(this.Y.D),KY(this));this.ma("progresssync",this,a);e&&aN(this.videoData)&&this.ma("onVideoProgress",this,this.getCurrentTime())}};
g.k.A3=function(){this.Ng("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.VB=function(){return this.zc.VB()};
g.k.HL=function(){return this.Fa?this.Fa.HL():XJ(this.Y.schedule,!0)};
g.k.g2=function(){g.TO(this.playerState)&&uYa(this.Ji,this.Df)&&nZ(this)};
g.k.pc=function(a){if(!g.PO(this.playerState,a)){var b=new g.WN(a,this.playerState);this.playerState=a;h0a(this);var c=!this.uH.length;this.uH.push(b);var d=this.mediaElement&&this.mediaElement.hh();g.YN(b,1)&&!g.S(b.Hv,16)&&!d&&g.S(this.playerState,8)&&!g.S(this.playerState,64)&&this.Fa&&(this.Fa.Uy=!0,this.mediaElement&&5<=HO(this.mediaElement)&&((d=g.gJ(this.Y.experiments,"html5_non_network_rebuffer_duration_ms"))?this.QV.start(d):uYa(this.Ji,this.Df)&&nZ(this)));(d=g.gJ(this.Y.experiments,"html5_ad_timeout_ms"))&&
this.videoData.isAd()&&g.S(a,1)&&(g.S(a,8)||g.S(a,16))?this.kK.start(d):this.kK.stop();(0>XN(b,8)||g.YN(b,1024))&&this.Bv.stop();!g.YN(b,8)||this.videoData.kb||g.S(b.state,1024)||this.Bv.start();g.S(b.state,8)&&0>XN(b,16)&&!g.S(b.state,32)&&!g.S(b.state,2)&&this.playVideo();g.S(b.state,2)&&HM(this.videoData)&&(this.Sk(this.getCurrentTime()),this.yc(!0));g.YN(b,2)&&this.aP(!0);g.YN(b,128)&&this.Dn();this.videoData.j&&this.videoData.isLivePlayback&&!this.FY&&(0>XN(b,8)?(a=this.videoData.j,a.C&&a.C.stop()):
g.YN(b,8)&&this.videoData.j.resume());this.xd.yd(b);this.zc.yd(b);if(c&&!this.isDisposed())try{for(var e=g.t(this.uH),f=e.next();!f.done;f=e.next()){var h=f.value;this.Xi.yd(h);this.ma("statechange",h)}}finally{this.uH.length=0}}};
g.k.YC=function(){this.videoData.isLivePlayback||this.K("html5_disable_connection_issue_event")||this.ma("connectionissue")};
g.k.cO=function(){this.vb.tick("qoes")};
g.k.CL=function(){this.xd.CL()};
g.k.bH=function(a,b,c,d){a:{var e=this.Gl;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=QK(b);"drm.keyerror"===a&&this.oe&&1<this.oe.u.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.u&&e.videoData.u.video.isHdr())kYa(e,a);else{if(e.va.Ng(a,b,d,c),bYa(e,{detail:c}))break a}else e.Kd(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.xa("retrydrm",{sessionLimitExhausted:1}),e.D++,e0a(e.va))}};
g.k.h6=function(){var a=this,b=g.gJ(this.Y.experiments,"html5_license_constraint_delay"),c=hz();b&&c?(b=new g.Ip(function(){wZ(a);tZ(a)},b),g.E(this,b),b.start()):(wZ(this),tZ(this))};
g.k.aD=function(a){this.ma("heartbeatparams",a)};
g.k.ep=function(a){this.xa("keystatuses",IXa(a));var b="auto",c=!1;this.videoData.u&&(b=this.videoData.u.video.quality,c=this.videoData.u.video.isHdr());if(this.K("html5_drm_check_all_key_error_states")){var d=JXa(b,c);d=DY(a)?KXa(a,d):a.C.includes(d)}else{a:{b=JXa(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.K("html5_enable_vp9_fairplay")){if(c)if(a.T){var f;if(null==(f=this.oe)?0:dJ(f.j))if(null==(c=this.oe))c=
0;else{b=f=void 0;e=g.t(c.u.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=LXa(h,"SD")),b||(b=LXa(h,"AUDIO"));c.Ri({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.xa("drm",{dshdr:1});kYa(this.Gl);return}}else{this.videoData.WI||(this.videoData.WI=!0,this.xa("drm",{dphdr:1}),IY(this,!0));return}var l;if(null==(l=this.oe)?0:dJ(l.j))return}else if(l=a.T&&d,c&&!l){kYa(this.Gl);return}d||KXa(a,"AUDIO")&&KXa(a,"SD")||(a=IXa(a),this.UO?(this.ma("drmoutputrestricted"),
this.K("html5_report_fatal_drm_restricted_error_killswitch")||this.Ng("drm.keyerror",2,void 0,"info."+a)):(this.UO=!0,this.Kd(new PK("qoe.restart",Object.assign({},{retrydrm:1},a))),nZ(this),e0a(this)))};
g.k.j6=function(){if(!this.videoData.kb&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.xj()&&5<=HO(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.pc(MO(this.playerState,1)),f0a(this,"load_soft_timeout"),this.ma("playbackstalledatstart"),a="1");h0a(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!tM(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].Pd)||this.oe),mfmtinfo:!this.videoData.u,prerolls:this.Mo()?this.zn.join(","):
"0"};if(this.oe){b=this.oe;if(0>=b.u.size){var c="ns;";b.ea||(c+="nr;");b=c+="ql."+b.B.length}else b=IXa(b.u.values().next().value),b=OK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.Fa)?void 0:d.lc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.lc())||{});this.zc.Kd("qoe.start15s",OK(a));this.ma("loadsofttimeout")}};
g.k.Sk=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,tZ(this))};
g.k.aP=function(a){var b=this;a=void 0===a?!1:a;if(!this.ZE){aF("att_s","player_att")||fF("att_s",void 0,"player_att");var c=new g.AJa(this.videoData);if("c1a"in c.j&&!g.fS.isInitialized()&&(fF("att_wb",void 0,"player_att"),2===this.xK&&.01>Math.random()&&g.DD(Error("Botguard not available after 2 attempts")),!a&&5>this.xK)){g.Jp(this.yK);this.xK++;return}if("c1b"in c.j){var d=zZa(this.zc);d&&DJa(c).then(function(e){e&&!b.ZE&&d?(fF("att_f",void 0,"player_att"),d(e),b.ZE=!0):fF("att_e",void 0,"player_att")},
function(){fF("att_e",void 0,"player_att")})}else(a=g.BJa(c))?(fF("att_f",void 0,"player_att"),yZa(this.zc,a),this.ZE=!0):fF("att_e",void 0,"player_att")}};
g.k.pe=function(a){return this.xd.pe(void 0===a?!1:a)};
g.k.Id=function(){return this.xd.Id()};
g.k.Jd=function(){return this.xd?this.xd.Jd():0};
g.k.getStreamTimeOffset=function(){return this.xd?this.xd.getStreamTimeOffset():0};
g.k.aq=function(){var a=0;this.Y.K("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Jd():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&pYa(this.Ji,null==(b=this.videoData.C)?void 0:b.videoInfos)&&nZ(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.u&&(a=this.videoData.u.video.quality,"auto"===a&&this.mediaElement)){var b=TN(this);b&&0<b.videoHeight&&(a=DH(b.videoWidth,b.videoHeight))}return a};
g.k.isHdr=function(){return!!(this.videoData.u&&this.videoData.u.video&&this.videoData.u.video.isHdr())};
g.k.kA=function(){this.zc.kA()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.zc;c.j?(c=UY(c.j,"engage"),c.T=a,c.send(b)):b&&b()};
g.k.Gj=function(a){return this.zc.Gj(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return hM(this.videoData)&&(this.uU||b)?this.xd.isAtLiveHead(a):!1};
g.k.us=function(){var a=this.pe(),b=this.getCurrentTime(),c;(c=!hM(this.videoData))||(c=this.xd,c=!(c.j&&c.j.B));return c||this.uq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.vn=aa(14);g.k.jt=aa(41);g.k.hC=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&JK(this.Y)&&this.mediaElement.setLoop(a);this.Fa&&this.K("html5_loop_skip_set_end_of_stream")&&(a?this.Fa.policy.Ya=!0:XWa(this.Fa))};
g.k.xs=function(){return this.mediaElement&&JK(this.Y)?this.mediaElement.xs():this.loop};
g.k.gO=function(a){this.xa("timestamp",{o:a.toString()});this.xd.gO(a)};
g.k.Vc=function(a){this.vb.tick(a)};
g.k.di=function(a){return this.vb.di(a)};
g.k.Mt=function(a){this.vb.Mt(a)};
g.k.xa=function(a,b,c){this.zc.xa(a,b,void 0===c?!1:c)};
g.k.IO=function(a,b,c){this.zc.xa(a,b,void 0===c?!1:c)};
g.k.Kd=function(a){this.zc.Kd(a.errorCode,OK(a.details))};
g.k.CD=function(a,b,c){this.zc.CD(a,b,c)};
g.k.tB=function(a){this.videoData.mS=!0;this.Kd(new PK("sabr.fallback",a));IY(this,!0)};
g.k.tF=function(a){this.videoData.DU=!0;this.Kd(new PK("qoe.restart",a));IY(this,!0)};
g.k.getPlayerSize=function(){return this.XD.getPlayerSize()};
g.k.Ij=function(){return this.XD.Ij()};
g.k.Oh=function(){return this.vb};
g.k.bq=function(){return this.Nf.bq()};
g.k.getVolume=function(){return this.Nf.getVolume()};
g.k.wC=function(){return this.Nf.wC()};
g.k.isMuted=function(){return this.Nf.isMuted()};
g.k.wy=function(){return this.Nf.wy()};
g.k.TB=function(){return this.Nf.TB()};
g.k.HB=function(){return this.Nf.HB()};
g.k.K=function(a){return this.Y.K(a)};
g.k.wK=function(){if(fM(this.videoData,"html5_set_debugging_opt_in")){var a=g.Wz();g.Xz(0,183)||(Zz(183,!0),a.save())}};
g.k.oX=function(){if(g.RO(this.playerState)){var a=qZ.BL();0!==Object.keys(a).length&&this.zc.xa("profile",a)}this.BH.start()};
g.k.qp=function(){var a=this.getCurrentTime(),b=a-this.Jd();var c=this.mediaElement?nI(this.mediaElement.Nh()):0;c=Math.floor(Math.max(c-b,0))+100;if(this.K("html5_skippable_seek_if_behind_live_head")){var d;if(null==(d=this.Fa)?0:d.MD(b,this.pe()))return this.xa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;if(null==(e=this.Fa)?0:e.qp(b,c))return this.xa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),j_a(this.xd,a),!0}else{var f;if(null==(f=this.Fa)?0:f.qp(b,c))return this.xa("sdai",{skipad:1,
ct:b.toFixed(3),adj:c.toFixed(3)}),j_a(this.xd,a),!0}return!1};
g.k.Rd=function(){return this.Y.Rd()};
g.k.cM=function(){this.Nf.ZP();return this.Y.Kf||""};
g.k.Ce=function(){return this.videoData.videoId};
g.k.setLoopRange=function(a){this.Nf.setLoopRange(a)};
g.k.Gy=function(a){return this.Fa?this.Fa.Gy(a):""};
g.k.XB=function(){return this.Nf.Nv};
g.k.PO=function(a){if(this.K("html5_cabr_utc_seek")){var b;null==(b=this.Fa)||b.PO(a)}};g.w(g.BZ,g.C);g.BZ.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.Na(a),f=u4[e];if(f){try{f.dispose()}catch(l){g.CD(l)}u4[e]=null}var h=new g.BZ(a,b,c,d);g.bb(h,function(){u4[e]=null;h.zY&&h.zY()});
return u4[e]=h}catch(l){throw g.CD(l),l.stack;}};
g.k=g.BZ.prototype;g.k.Es=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f){return this.visibility.getVisibilityState(a,b,c,d,e,f)};
g.k.Mm=function(){this.HM||(this.HM=g.CR(xP(),KFa()));return this.HM};
g.k.rj=function(){if(this.mediaElement){this.qA&&(this.events.Hc(this.qA),this.qA=null);g.Lz(this.Ts);this.Kb&&this.Kb.rj(!0);this.template.rj();try{this.K("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.OH()}catch(a){g.DD(a)}this.mediaElement=null}};
g.k.Rc=function(){return this.Kb};
g.k.Nq=function(){this.Kb!==this.zb&&wW(this,this.zb)};
g.k.iy=function(a,b,c){var d=this,e=this.vb;2===a&&(e=new hLa(this.Y));return new g.pZ(this.Y,a,e,this.template,function(f){return d.Mq.ma.apply(d.Mq,[f].concat(g.u(g.ya.apply(1,arguments))))},function(){return d.Ta.getVisibilityState()},this.visibility,this,b,c)};
g.k.w5=function(){HZ(this)||this.mp(5)};
g.k.F6=function(a){if(!HZ(this)){Y0a(this);var b=a.getPlayerState();a.BC()?this.pauseVideo():g.RO(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return dI(a)};
g.k.V=function(){return this.Y};
g.k.getVideoData=function(){return this.Kb.getVideoData()};
g.k.fC=aa(8);g.k.Hd=function(){return this.zb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.qS(this,a);return a?g.ZM(a.getVideoData())?1:(a=a.qe())?a.Tu():0:0};
g.k.jb=function(){return this.template};
g.k.wb=function(){return this.hd};
g.k.Oh=function(){return this.vb};
g.k.Vz=function(a){var b=g.qS(this,1);b&&vW(b,a)};
g.k.bq=function(){return this.hd.bq()};
g.k.getVolume=function(){return Math.round(this.Ta.getVolume())};
g.k.wC=function(){return this.Ta.isFullscreen()};
g.k.isMuted=function(){return this.Ta.isMuted()};
g.k.TB=function(){if(this.Y.K("html5_enable_embedded_player_visibility_signals")&&g.fK(this.Y)&&this.fQ){var a=this.fQ;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.HB=function(){if(this.Y.K("html5_enable_embedded_player_visibility_signals")&&g.fK(this.Y)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.CK();1<b&&a.push(b);return a.join(":")}}};
g.k.wy=function(){if(this.Kb===this.zb&&this.Bb)return this.Bb.postId};
g.k.z8=function(){var a=this;g.tK(this.Y)?g.NK(this.Y,g.VM(this.getVideoData())).then(function(b){yP(xP(),b);PJa(a.getVideoData(),a.Y,a.Mm())}):PJa(this.getVideoData(),this.Y,this.Mm())};
g.k.addBgVersionChangeCallback=function(a){vJa.push(a)};
g.k.FL=function(a){var b=this;return g.A(function(c){return b.wH?c.return(b.wH.FL(a)):c.return(Promise.reject("web po not available"))})};
g.k.ZP=function(){this.wH&&this.wH.ZP()};
g.k.gP=function(a){this.wH=a};
g.k.Yl=function(a){1===a&&(this.vb.tick("vr"),Z_a(this.Kb),iLa(this.vb,this.Kb.getVideoData(),X0a(this)),eMa(this.hd));var b=this.Y;(KK(b)&&b.I||g.mK(b))&&(this.mf()||this.Ta.Na("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.Kb===this.zb&&this.Kb.xs()!==a&&(this.Kb.setLoop(a),this.Ta.Na("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.Kb.xs()};
g.k.setLoopRange=function(a){var b=!1;!!this.Bb!==!!a?b=!0:this.Bb&&a&&(b=this.Bb.startTimeMs!==a.startTimeMs||this.Bb.endTimeMs!==a.endTimeMs||this.Bb.postId!==a.postId||this.Bb.type!==a.type);if(b){this.zb.Xi.Ff("applooprange");if(a)b=new g.XD(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.zb.addCueRange(b);else{this.Hd().clipConfig=void 0;var c,d;"repeatChapter"!==(null==(c=this.Bb)?void 0:c.type)||isNaN(Number(null==(d=this.Bb)?void 0:d.loopCount))||(b={loopCount:String(this.Bb.loopCount),
cpn:this.getVideoData().clientPlaybackNonce},g.rA("repeatChapterLoopEvent",b))}this.Bb=a;this.Ta.Na("onLoopRangeChange",a||void 0);this.Kb===this.zb&&(this.ZH(),this.Kb.jr())}};
g.k.getLoopRange=function(){return this.Bb};
g.k.ZH=function(){this.Bb&&this.Kb===this.zb&&(I0a(this,this.zb.getCurrentTime())?this.Bb.loopCount=0:J0a(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=q0a(this,a),this.zb.getPlaybackRate()!==a&&(this.zb.setPlaybackRate(a),b&&!this.Y.C&&g.Pz("yt-player-playback-rate",a),this.Ta.Na("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return JS(this.hd).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai;a=c?g.qS(this):g.qS(this,a);if(!a)return 0;if(b){if(c&&this.Ke&&(b=this.Ke.kb/1E3,0!==b))return b;a=GZ(this,a);return QZ(this,a.getCurrentTime(),a)}c&&this.Ke?(b=this.Ke,a=a.getCurrentTime(),yW(b)?(b=GW(b,1E3*a))&&b.Cr&&(a-=b.Cr):(b=BRa(b,1E3*a))&&(a-=b.start/1E3)):a=a.getCurrentTime();return a};
g.k.Dy=function(){var a=g.qS(this);if(!a)return 0;a=GZ(this,a);return QZ(this,a.Dy(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai;a=d?g.qS(this):g.qS(this,a);if(!a)return 0;if(c.hasProgressBarBoundaries()&&!d){var e,f=Number(null==(e=c.progressBarStartPosition)?void 0:e.utcTimeMillis),h;c=Number(null==(h=c.progressBarEndPosition)?void 0:h.utcTimeMillis);if(!isNaN(f)&&!isNaN(c))return(c-f)/1E3}if(b)return b=FZ(this,a),QZ(this,b.getDuration(),b);d&&this.Ke?(b=this.Ke,d=a.getCurrentTime(),b=yW(b)?b.Z?b.Z.durationMs/1E3:
0:(b=GW(b,1E3*d))?b.durationMs/1E3:0):b=a.getDuration();return b};
g.k.Id=function(a){a=g.qS(this,a);if(!a)return 0;a=FZ(this,a);return QZ(this,a.Id(),a)};
g.k.Pf=function(a){var b=g.qS(this,a);return b?this.mf(b)?(b=FZ(this,b),b.Pf()-b.getCurrentTime()+this.getCurrentTime(a)):b.Pf():0};
g.k.addPlayerResponsesForAssociation=function(a){this.Og&&this.Og.addPlayerResponsesForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.Og?this.Og.finishSegmentByCpn(a,b):[]};
g.k.getCpnByClipId=function(a){return this.Sv.getCpnByClipId(a)};
g.k.jL=function(){this.template.jL();var a=this.F;a.element=this.template.element;var b=a.element,c;for(c in a.state.j)a.state.j.hasOwnProperty(c)&&(b[c]=a.state.j[c]);(a=Bz(this.template.element))&&this.events.S(this.template,a,this.onFullscreenChange);this.events.S(window,"resize",this.b7)};
g.k.getDebugText=function(a){var b=this.zb.lc(a);if(this.Kb&&this.Kb!==this.zb){for(var c=this.Kb.lc(a),d=g.t(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=We(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.kf("video-ads");f?(d1a(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.kf("videoAdUiSkipContainer"),l=g.kf("ytp-ad-skip-button-container"),m=h||l;m?(d1a(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+Je(this.mediaElement.getSize())),b.op=this.mediaElement.getStyle("opacity"),c=this.mediaElement.Bs().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.getStyle("display"));(a=a?(0,g.PY)():null)&&(b.gpu=a);b.debug_playbackQuality=this.Ta.getPlaybackQuality(1);b.debug_date=(new Date).toString();delete b.uga;delete b.q;return JSON.stringify(b,null,2)};
g.k.getFeedbackProductData=function(){var a={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.V().experiments.experimentIds.join(", ")},b=this.Cb().getData();b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(HZ(this))return 3;var b;return a&&(null==(b=this.Ke)?0:zRa(b,this.getCurrentTime()))?2:g.qS(this).getPlayerType()};
g.k.Cb=function(a){return 3===this.getPresentingPlayerType()?JS(this.hd).Te:g.qS(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.iO=function(a){switch(a.type){case "loadedmetadata":this.UH.start();a=g.t(this.Mz);for(var b=a.next();!b.done;b=a.next())b=b.value,V0a(this,b.id,b.R9,b.Q9,void 0,!1);this.Mz=[];break;case "loadstart":this.vb.Mt("gv");break;case "progress":case "timeupdate":2<=nI(a.target.Nh())&&this.vb.Mt("l2s");break;case "playing":g.HK&&this.UH.start();if(g.tK(this.Y))a=!1;else{b=g.LS(this.wb());a="none"===this.mediaElement.getStyle("display")||0===Je(this.mediaElement.getSize());var c=YW(this.template),d=this.Kb.getVideoData(),
e=g.nK(this.Y)||g.oK(this.Y);d=uM(d);b=!c||b||e||d||this.Y.Ld;a=a&&!b}a&&(this.Kb.xa("hidden",{},!0),this.getVideoData().Dc||(this.getVideoData().Dc=1,this.oW(),this.Kb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ta.Na("onLoadProgress",b)};
g.k.y7=function(){this.Ta.ma("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=GZ(this,a);b=QZ(this,a.getCurrentTime(),a);this.Ta.Na("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ta.Na("onAutoplayBlocked")};
g.k.P6=function(){this.Ta.ma("progresssync")};
g.k.y5=function(a){if(1===this.getPresentingPlayerType()){g.YN(a,1)&&!g.S(a.state,64)&&this.Hd().isLivePlayback&&this.zb.isAtLiveHead()&&1<this.Ta.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.YN(a,2)){if(this.Bb&&this.Bb.endTimeMs>=1E3*(this.getDuration()-1)){J0a(this);return}A0a(this)}if(g.S(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.getData();JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ta.Na("onError",TJa(b.errorCode));this.Ta.Na("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.uL,cpn:b.cpn});6048E5<(0,g.M)()-this.Y.Jf&&this.Ta.Na("onReloadRequired")}b={};if(a.state.bd()&&!g.TO(a.state)&&!aF("pbresume","ad_to_video")&&aF("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);bF(b,"ad_to_video");eF("pbresume",void 0,"ad_to_video");eMa(this.hd)}this.Ta.ma("applicationplayerstatechange",a)}};
g.k.JW=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ma("presentingplayerstatechange",a)};
g.k.Hi=function(a){EZ(this,UO(a.state));g.S(a.state,1024)&&this.Ta.isMutedByMutedAutoplay()&&(tS(this,{muted:!1,volume:this.ji.volume},!1),OZ(this,!1))};
g.k.u5=function(a,b,c){"newdata"===a&&t0a(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.VC=function(){this.Ta.Na("onPlaybackAudioChange",this.Ta.getAudioTrack().Jc.name)};
g.k.iD=function(a){var b=this.Kb.getVideoData();a===b&&this.Ta.Na("onPlaybackQualityChange",a.u.video.quality)};
g.k.onVideoDataChange=function(a,b,c){b===this.zb&&(this.Y.Zi=c.oauthToken);if(b===this.zb&&(this.getVideoData().enableServerStitchedDai&&!this.Ke?this.Ke=new g.zW(this.Ta,this.Y,this.zb):!this.getVideoData().enableServerStitchedDai&&this.Ke&&(this.Ke.dispose(),this.Ke=null),YM(this.getVideoData())&&"newdata"===a)){this.Sv.Ef();var d=oRa(this.Sv,1,0,this.getDuration(1),void 0,{video_id:this.getVideoData().videoId});var e=this.Sv;d.B===e&&(0===e.segments.length&&(e.j=d),e.segments.push(d));this.Og=
new LW(this.Ta,this.Sv,this.zb)}if("newdata"===a)LT(this.hd,2),this.Ta.ma("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.Kb===this.zb?(rK(c.B,c.RY),this.zb.getPlayerState().isError()||(d=HZ(this),this.Hd().isLoaded(),d&&this.mp(6),E0a(this),cMa(this.hd)||D0a(this))):E0a(this));if(1===b.getPlayerType()&&(this.Y.Ya&&c1a(this),this.getVideoData().isLivePlayback&&!this.Y.Eo&&this.Eg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded())){if(Lza(c)||this.getVideoData().uA){d=
this.Lx;var f=this.getVideoData();e=this.zb;kS(d,"part2viewed",1,0x8000000000000,e);kS(d,"engagedview",Math.max(1,1E3*f.Pb),0x8000000000000,e);f.isLivePlayback||(f=1E3*f.lengthSeconds,kS(d,"videoplaytime25",.25*f,f,e),kS(d,"videoplaytime50",.5*f,f,e),kS(d,"videoplaytime75",.75*f,f,e),kS(d,"videoplaytime100",f,0x8000000000000,e),kS(d,"conversionview",f,0x8000000000000,e),kS(d,"videoplaybackstart",1,f,e),kS(d,"videoplayback2s",2E3,f,e),kS(d,"videoplayback10s",1E4,f,e))}if(c.hasProgressBarBoundaries()){var h;
d=Number(null==(h=this.getVideoData().progressBarEndPosition)?void 0:h.utcTimeMillis)/1E3;!isNaN(d)&&(h=this.Pf())&&(h-=this.getCurrentTime(),h=1E3*(d-h),d=this.CH.progressEndBoundary,(null==d?void 0:d.start)!==h&&(d&&this.MH([d]),h=new g.XD(h,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.zb.addCueRange(h),this.CH.progressEndBoundary=h))}}this.Ta.ma("videodatachange",a,c,b.getPlayerType())}this.Ta.Na("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.ZH();
(a=c.Nz)?this.Ls.fL(a,c.clientPlaybackNonce):uSa(this.Ls)};
g.k.iF=function(){JZ(this,null);this.Ta.Na("onPlaylistUpdate")};
g.k.TV=function(a){var b=a.getId(),c=this.Hd(),d=!this.isInline();if(!c.inlineMetricEnabled&&!this.Y.experiments.ob("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.pQ&&g.ZB(c.pQ),c.cN&&WZ(this,c.cN),c.zx)for(var e={CPN:this.getVideoData().clientPlaybackNonce},f=g.t(c.zx),h=f.next();!h.done;h=f.next())WZ(this,g.xp(h.value,e))}else"conversionview"===b?this.zb.kA():"engagedview"===b&&c.Ui&&(e={CPN:this.getVideoData().clientPlaybackNonce},g.ZB(g.xp(c.Ui,e)));c.qQ&&(e=a.getId(),
e=ty(c.qQ,{label:e}),g.ZB(e));switch(b){case "videoplaytime25":c.bZ&&WZ(this,c.bZ);c.yN&&XZ(this,c.yN);c.sQ&&g.ZB(c.sQ);break;case "videoplaytime50":c.cZ&&WZ(this,c.cZ);c.vO&&XZ(this,c.vO);c.xQ&&g.ZB(c.xQ);break;case "videoplaytime75":c.oQ&&WZ(this,c.oQ);c.FO&&XZ(this,c.FO);c.yQ&&g.ZB(c.yQ);break;case "videoplaytime100":c.aZ&&WZ(this,c.aZ),c.jN&&XZ(this,c.jN),c.rQ&&g.ZB(c.rQ)}(e=this.getVideoData().uA)&&Q0a(this,e,a.getId())&&Q0a(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&!d)switch(b){case "videoplaybackstart":var l,
m=null==(l=c.Ax)?void 0:l.j;m&&WZ(this,m);break;case "videoplayback2s":(l=null==(m=c.Ax)?void 0:m.B)&&WZ(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.Ax)?void 0:n.u)&&WZ(this,l)}this.zb.removeCueRange(a)};
g.k.O6=function(a){delete this.CH[a.getId()];this.zb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.jd)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.jd)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.t(q),c=b.next();!c.done;c=b.next())if(c=c.value,
e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.K(c,g.oM),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.K(a,g.oM))&&this.Ta.Na("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.mp=function(a){a!==this.appState&&(2===a&&1===this.getPresentingPlayerType()&&(EZ(this,-1),EZ(this,5)),this.appState=a,this.Ta.ma("appstatechange",a))};
g.k.Eg=function(a,b,c,d,e){this.zb.Ng(a,b,c,d,e)};
g.k.Uq=function(a,b){this.zb.handleError(new PK(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.qS(this,a);if(!c)return!1;a=FZ(this,c);c=GZ(this,c);return a!==c?a.isAtLiveHead(QZ(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.us=function(){var a=g.qS(this);return a?FZ(this,a).us():0};
g.k.seekTo=function(a,b,c,d){b=!1!==b;if(d=g.qS(this,d))2===this.appState&&MZ(this),this.mf(d)?PZ(this)?this.Ke.seekTo(a,b,c):this.kd.seekTo(a,b,c):d.seekTo(a,{vY:!b,wY:c,Je:"application"})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.xz=function(){this.Ta.Na("SEEK_COMPLETE")};
g.k.n7=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.S(a.getPlayerState(),512)||MZ(this):this.Ta.Na("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ta.ma("airplayactivechange");this.Y.K("html5_external_airplay_events")&&this.Ta.Na("onAirPlayActiveChange",this.Ta.wh())};
g.k.onAirPlayAvailabilityChange=function(){this.Ta.ma("airplayavailabilitychange");this.Y.K("html5_external_airplay_events")&&this.Ta.Na("onAirPlayAvailabilityChange",this.Ta.vC())};
g.k.showAirplayPicker=function(){var a;null==(a=this.Kb)||a.Dt()};
g.k.EN=function(){this.Ta.ma("beginseeking")};
g.k.JN=function(){this.Ta.ma("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.qS(this,a))?FZ(this,a).getVideoData().getStoryboardFormat():null};
g.k.Hj=function(a){return(a=g.qS(this,a))?FZ(this,a).getVideoData().Hj():null};
g.k.mf=function(a){a=a||this.Kb;var b=!1;if(a){a=a.getVideoData();if(PZ(this))a=a===this.Ke.va.getVideoData();else a:if(b=this.kd,a===b.j.getVideoData()&&b.u.length)a=!0;else{b=g.t(b.u);for(var c=b.next();!c.done;c=b.next())if(a.Nc===c.value.Nc){a=!0;break a}a=!1}b=a}return b};
g.k.Kx=function(a,b,c,d,e,f,h){var l=PZ(this),m;null==(m=g.qS(this))||m.xa("appattl",{sstm:this.Ke?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});return l?wRa(this.Ke,a,b,c,d,e,f,h):WRa(this.kd,a,c,d,e,f)};
g.k.rC=function(a,b,c,d,e,f,h){PZ(this)&&wRa(this.Ke,a,b,c,d,e,f,h);return""};
g.k.kt=function(a){var b;null==(b=this.Ke)||b.kt(a)};
g.k.Fu=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;PZ(this)||eSa(this.kd,a,b)};
g.k.jA=function(a,b,c){if(PZ(this)){var d=this.Ke,e=d.Oc.get(a);e?(void 0===c&&(c=e.Dd),e.durationMs=b,e.Dd=c):d.KC("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.kd;e=null;for(var f=g.t(d.u),h=f.next();!h.done;h=f.next())if(h=h.value,h.Nc===a){e=h;break}e?(void 0===c&&(c=e.Dd),dSa(d,e,b,c)):MW(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.mf();a=new g.$L(this.Y,a);d&&(a.Nc=d);R0a(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a.prefer_gapless=!0;if((a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e))&&g.QM(a)&&!a.Xl){var f;null==(f=g.qS(this))||f.xa("sgap",{pcpn:a.clientPlaybackNonce});f=this.SY;f.j!==a&&(f.j=a,f.u=1,a.isLoaded()?f.B():f.j.subscribe("dataloaded",f.B,f))}};
g.k.yF=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.qS(this);f&&(FZ(this,f).FY=!0);dRa(this.ir,a,b,c,d).then(function(){e.Ta.Na("onQueuedVideoLoaded")},function(){})};
g.k.vv=function(){return this.ir.vv()};
g.k.clearQueue=function(){this.ir.clearQueue()};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;var f=!1,h=new g.$L(this.Y,a);g.GK(this.Y)&&!h.Xl&&yT(this.vb);var l,m=null!=(l=h.Qa)?l:"";this.vb.timerName=m;this.vb.di("pl_i");this.K("web_player_early_cpn")&&h.clientPlaybackNonce&&this.vb.info("cpn",h.clientPlaybackNonce);if(this.K("html5_enable_short_gapless")){l=gRa(this.ir,h,b);if(null==l){EZ(this,-1);h=this.ir;h.app.setLoopRange(null);h.app.getVideoData().ZI=!0;var n;null==(n=h.j)||vZa(n.zc);h.app.seekTo(fRa(h));if(!h.app.Cb(b).bd()){var p;
null==(p=g.qS(h.app))||p.playVideo(!0)}h.I();return!0}this.ir.clearQueue();var q;null==(q=g.qS(this))||q.xa("sgap",{f:l})}if(e){for(;h.Sl.length&&h.Sl[0].isExpired();)h.Sl.shift();n=h.Sl.length-1;f=0<n&&e.u(h.Sl[n])&&e.u(h.Sl[n-1]);h.Sl.push(e)}c||(a&&lLa(a)?(BK(this.Y)&&!this.Lh&&(a.fetch=0),JZ(this,a)):this.playlist&&JZ(this,null),a&&(this.Lh=jz(!1,a.external_list)),BK(this.Y)&&!this.Lh&&KZ(this));this.Ta.ma("loadvideo");b=this.Rs(h,b,d);f&&this.Eg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",
("loadvideo.1;emsg."+h.Sl.join()).replace(/[;:,]/g,"_"));return b};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;e=void 0===e?"":e;if(this.Y.K("html5_autonav_autoplay_in_preload_key")){d=b;var f=e,h=oz(a);d=SZ(this,d,h,f,"1"===a.autonav||!0===a.autonav,"1"===a.autoplay||!0===a.autoplay||1===a.autoplay)}else d=oz(a),d=SZ(this,b,d,e);if(this.rD.get(d))return null;a=new g.$L(this.Y,a);e&&(a.Nc=e);a:{e=this.Y.K("html5_autonav_autoplay_in_preload_key")?S0a(this,b,a):SZ(this,b,a.videoId,a.Nc);if(this.Kb&&(d=this.Y.K("html5_autonav_autoplay_in_preload_key")?
S0a(this,this.Kb.getPlayerType(),this.Kb.getVideoData()):SZ(this,this.Kb.getPlayerType(),this.Kb.getVideoData().videoId,this.Kb.getVideoData().Nc),e===d)){g.tW(this.Kb,!0);a.dispose();break a}a.Si=!0;d=C0a(this,b,a);1===b&&EK(this.Y)||g.tW(d,!0);this.rD.set(e,d,c||3600)}return a};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.hd;a=a.F.V().showMiniplayerUiWhenMinimized?a.df.get("miniplayer"):void 0;a&&(this.zg()?a.load():a.unload());this.Ta.ma("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.hd;a=a.F.V().showInlinePreviewUi?a.df.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ta.Na("onInlinePreviewModeChange"))};
g.k.Uz=function(a){var b=this.Y.K("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.Y.lm&&this.Y.K("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.DL&&b?this.DL.start():this.KS():this.visibility.Uz(a)};
g.k.KS=function(){var a,b=null==(a=this.mediaElement)?void 0:a.ub();b&&Az(b).catch(function(c){return g.DD(c)})};
g.k.k7=function(){this.mediaElement.ub();"picture-in-picture"===this.mediaElement.ub().webkitPresentationMode?this.Uz(!0):this.Uz(!1)};
g.k.togglePictureInPicture=function(){var a=g.qS(this);a&&a.togglePictureInPicture()};
g.k.Rs=function(a,b,c){b=void 0===b?1:b;aF("_start",this.vb.timerName)||(g.my(JE)(void 0,this.vb.timerName),this.vb.info("srt",0));var d=!1,e=H0a(this,b,a,!1);e?(d=!0,a.dispose()):(e=C0a(this,b,a,c),(this.K("html5_onesie")||this.K("html5_load_before_stop"))&&rZ(e)&&g.tW(e),this.UH.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),wW(this,e));e===this.zb&&(this.Y.Zi=a.oauthToken);if(!rZ(e))return!1;if(e===this.zb){this.mp(1);a=MZ(this);if(d&&this.F.K("html5_player_preload_ad_fix")&&
1===e.getPlayerType()&&e.fp.finished)this.onVideoDataChange("dataloaded",e,e.getVideoData());return a}I_a(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(a&&lLa(a))if(this.tv=!0,JZ(this,a),(a=g.zT(this.playlist))&&a.De())UZ(this,a,b);else this.playlist.onReady(function(){LZ(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.iF();var d=new g.$L(this.Y,a),e=g.fK(this.Y)&&!this.Y.oa&&1===b&&!d.isAd()&&!d.Hf;this.Ta.ma("cuevideo");e?(this.Rc().getVideoData().La=!0,sLa(d,a?a:{}).then(function(f){UZ(c,f,b)}),d.dispose()):UZ(this,d,b)}};
g.k.Kn=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(hK(this.Y)||g.FK(this.Y))return b=b||{},b.lact=NC(),b.vis=this.Ta.getVisibilityState(),this.Ta.Na("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;jLa(this.vb);this.vb.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.tv=!0;T0a(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.tv=!1;T0a(this,a,b,c,d)};
g.k.KB=function(){if(this.Ta.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;BK(this.Y)&&!this.Lh&&KZ(this);return!(!this.playlist||!this.playlist.Ck())};
g.k.Yr=aa(4);
g.k.nextVideo=function(a,b){var c=g.qM(this.zb.getVideoData());g.OS(this.Ta)&&c?this.Kn(c.videoId,b?c.yB:c.sessionData,c.playlistId,b,void 0,c.CS||void 0):this.Lh?this.Ta.Na("onPlaylistNext"):3===this.getPresentingPlayerType()?JS(this.hd).nextVideo():this.playlist&&(BK(this.Y)&&!this.Ta.isFullscreen()?M0a(this,"yt.www.watch.lists.next"):(this.playlist.Ck(a)&&oLa(this.playlist,mLa(this.playlist)),this.playlist.loaded?(a=b&&this.Y.K("html5_player_autonav_logging"),b&&this.Ta.ma("playlistautonextvideo"),this.Rs(g.zT(this.playlist,
void 0,b,a),1)):this.tv=!1))};
g.k.previousVideo=function(a){this.Lh?this.Ta.Na("onPlaylistPrevious"):3===this.getPresentingPlayerType()?JS(this.hd).yH():this.playlist&&(BK(this.Y)&&!this.Ta.isFullscreen()?M0a(this,"yt.www.watch.lists.prev"):(this.playlist.No(a)&&oLa(this.playlist,nLa(this.playlist)),this.playlist.loaded?this.Rs(g.zT(this.playlist),1):this.tv=!1))};
g.k.playVideoAt=function(a){this.Lh?this.Ta.Na("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Rs(g.zT(this.playlist,a),1):this.tv=!1,oLa(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.ZB=aa(12);g.k.s5=function(a){this.Ta.Na("onCueRangeEnter",a.getId())};
g.k.t5=function(a){this.Ta.Na("onCueRangeExit",a.getId())};
g.k.ZA=function(a,b,c){var d=g.qS(this,b);d&&(d.ZA(a,c),b&&this.getPresentingPlayerType()!==b||DZ(this,"cuerangesadded",a))};
g.k.MH=function(a,b){var c=g.qS(this,b);c&&(c.MH(a),b&&this.getPresentingPlayerType()!==b||DZ(this,"cuerangesremoved",a))};
g.k.x5=function(){function a(){var d=g.FE(b.screenLayer||(b.zg()?3:0));if(d&&"UNDEFINED_CSN"!==d){var e=b.Y.K("web_player_attach_player_response_ve"),f=b.Y.K("web_playback_associated_ve");if(b.Y.K("il_via_jspb")){var h=new mx;var l=b.getVideoData().clientPlaybackNonce;l=H(h,1,l);H(l,3,d);b.getVideoData().Aa&&(e||f)&&(e=g.BE(b.getVideoData().Aa),g.hP(d,e),f&&(d=e.getAsJspb(),I(h,Tv,2,d)));if(b.getVideoData().queueInfo){d=b.getVideoData().queueInfo;f=new lx;if(null==d?0:d.enqueueingVe)(null==d?0:d.enqueueingVe.trackingParams)?
(e=g.BE(d.enqueueingVe.trackingParams),e=e.getAsJspb(),I(f,Tv,1,e)):g.DD(new g.bA("Cannot map enqueueingVe from a client VE "));(null==d?0:d.enqueueingCsn)&&H(f,2,d.enqueueingCsn);(null==d?0:d.clientEnqueueingTimeMs)&&H(f,3,Number(d.clientEnqueueingTimeMs));I(h,lx,4,f)}d={};b.K("web_playback_associated_log_ctt")&&b.getVideoData().T&&(d.cttAuthInfo={token:b.getVideoData().T,videoId:b.getVideoData().videoId});bsa(h,d)}else h={cpn:b.getVideoData().clientPlaybackNonce,csn:d},b.getVideoData().Aa&&(e||
f)&&(e=g.BE(b.getVideoData().Aa),g.hP(d,e),f&&(h.playbackVe=e.getAsJson())),b.getVideoData().queueInfo&&(h.queueInfo=b.getVideoData().queueInfo),d={},b.K("web_playback_associated_log_ctt")&&b.getVideoData().T&&(d.cttAuthInfo={token:b.getVideoData().T,videoId:b.getVideoData().videoId}),g.rA("playbackAssociated",h,d)}else g.DD(new g.bA("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();iLa(this.vb,this.Kb.getVideoData(),X0a(this));IZ(this)&&this.Y.C&&"embedded"===PM(this.Hd())&&this.pV&&.01>Math.random()&&g.rA("autoplayTriggered",{intentional:this.QU});this.pV=!1;eMa(this.hd);this.K("web_player_defer_ad")&&D0a(this);this.Ta.Na("onPlaybackStartExternal");(this.Y.K("mweb_client_log_screen_associated"),this.Y.K("kids_web_client_log_screen_associated")&&uK(this.Y))||a();var c={};this.getVideoData().T&&(c.cttAuthInfo={token:this.getVideoData().T,
videoId:this.getVideoData().videoId});cF("player_att",c);if(this.getVideoData().botguardData||this.K("fetch_att_independently"))g.DK(this.Y)||"MWEB"===g.rJ(this.Y)?g.gA(g.iA(),function(){NZ(b)}):NZ(this);
this.ZH()};
g.k.PN=function(){this.Ta.ma("internalAbandon");RZ(this)};
g.k.onApiChange=function(){this.Y.I&&this.Kb?this.Ta.Na("onApiChange",this.Kb.getPlayerType()):this.Ta.Na("onApiChange")};
g.k.q6=function(){var a=this.mediaElement;a={volume:g.ze(Math.floor(100*a.getVolume()),0,100),muted:a.VF()};a.muted||OZ(this,!1);this.ji=g.md(a);this.Ta.Na("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.xN)&&(this.xN=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.xN}),this.Ta.Na("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=Z0a(this);this.cm(a?1:0);a1a(this,!!a)};
g.k.cm=function(a){var b=!!a,c=!!this.Ay()!==b;this.visibility.cm(a);this.template.cm(b);this.K("html5_media_fullscreen")&&!b&&this.mediaElement&&Z0a(this)===this.mediaElement.ub()&&this.mediaElement.AB();this.template.resize();c&&this.vb.tick("fsc");c&&(this.Ta.ma("fullscreentoggled",b),a=this.Hd(),b={fullscreen:b,videoId:a.eJ||a.videoId,time:this.getCurrentTime()},this.Ta.getPlaylistId()&&(b.listId=this.Ta.getPlaylistId()),this.Ta.Na("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.Ay=function(){return this.visibility.Ay()};
g.k.b7=function(){this.Kb&&(0!==this.Ay()&&1!==this.Ay()||this.cm(Z0a(this)?1:0),this.Y.lm&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.AB())};
g.k.i6=function(a){3!==this.getPresentingPlayerType()&&this.Ta.ma("liveviewshift",a)};
g.k.playVideo=function(a){if(a=g.qS(this,a))2===this.appState?(g.GK(this.Y)&&yT(this.vb),MZ(this)):g.S(a.getPlayerState(),2)?this.seekTo(0):a.playVideo()};
g.k.pauseVideo=function(a){(a=g.qS(this,a))&&a.pauseVideo()};
g.k.stopVideo=function(){var a=this.zb.getVideoData(),b=new g.$L(this.Y,{video_id:a.eJ||a.videoId,oauth_token:a.oauthToken});b.Z=g.md(a.Z);this.cancelPlayback(6);UZ(this,b,1)};
g.k.cancelPlayback=function(a,b){var c=g.qS(this,b);c&&(2===b&&1===c.getPlayerType()&&Zza(this.Hd())?c.xa("canclpb",{r:"no_adpb_ssdai"}):(this.Y.Rd()&&c.xa("canclpb",{r:a}),1!==this.appState&&2!==this.appState&&(c===this.Kb&&LT(this.hd,a),1===b&&(c.stopVideo(),RZ(this)),c.Dn(void 0,6!==a),DZ(this,"cuerangesremoved",c.Hm()),c.Xi.reset(),this.ir&&c.isGapless()&&(c.rj(!0),c.setMediaElement(this.mediaElement)))))};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.qS(this,b))&&this.Y.enabledEngageTypes.has(a.toString())?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Gj=function(a){var b=g.qS(this);return b&&this.Y.enabledEngageTypes.has(a.toString())?b.Gj(a):null};
g.k.updatePlaylist=function(){BK(this.Y)?KZ(this):g.fK(this.Y)&&F0a(this);this.Ta.Na("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.QX=a;this.RM=b;this.Ta.ma("sizestylechange",a,b);this.template.resize()};
g.k.wv=function(){return this.RM};
g.k.zg=function(){return this.visibility.zg()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.Ty=function(){return this.visibility.Ty()};
g.k.Ry=function(){return this.visibility.Ry()};
g.k.PM=function(){return this.QX};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return JS(this.hd).getAdState();if(!this.mf()){var a=MT(this.wb());if(a)return a.getAdState()}return-1};
g.k.a7=function(a){var b=this.template.getVideoContentRect();Fm(this.iV,b)||(this.iV=b,this.Kb&&wZ(this.Kb),this.zb&&this.zb!==this.Kb&&wZ(this.zb),1===this.Ay()&&this.kD&&a1a(this,!0));this.YM&&g.Ie(this.YM,a)||(this.Ta.ma("appresize",a),this.YM=a)};
g.k.yh=function(){return this.Ta.yh()};
g.k.t7=function(){2===this.getPresentingPlayerType()&&this.kd.isManifestless()?cSa(this.kd):(this.Ke&&(DRa(this.Ke),RZ(this)),z0a(this,"signature"))};
g.k.oW=function(){this.rj();CZ(this)};
g.k.w6=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.Y.experiments.ob("html5_use_network_error_code_enums")?401:"401")&&this.Ta.Na("onPlayerRequestAuthFailed")};
g.k.YC=function(){this.Ta.Na("CONNECTION_ISSUE")};
g.k.aD=function(a){this.Ta.ma("heartbeatparams",a)};
g.k.RH=function(a){this.Ta.Na("onAutonavChangeRequest",1!==a)};
g.k.qe=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.Y.Ld=a;this.Kb&&(this.Kb.jr(),this.Y.Ya&&c1a(this))};
g.k.y6=function(){var a=g.qS(this);if(a){var b=!this.Ta.AC();(a.uU=b)||a.Bv.stop();if(a.videoData.j)if(b)a.videoData.j.resume();else{var c=a.videoData.j;c.C&&c.C.stop()}a.Fa&&(b?a.Fa.resume():zZ(a,!0));g.S(a.playerState,2)||b?g.S(a.playerState,512)&&b&&a.pc(NO(a.playerState,512)):a.pc(MO(a.playerState,512));a=a.zc;a.qoe&&(a=a.qoe,g.MY(a,g.uW(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ta.Na("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ta.Na("onDrmOutputRestricted")};
g.k.wK=function(){Lcb=this.K("html5_use_async_stopVideo");Mcb=this.K("html5_pause_for_async_stopVideo");Kcb=this.K("html5_not_reset_media_source");CCa=this.K("html5_rebase_video_to_ad_timeline");xI=this.K("html5_not_reset_media_source");fcb=this.K("html5_not_reset_media_source");rI=this.K("html5_retain_source_buffer_appends_for_debugging");ecb=this.K("html5_source_buffer_wrapper_reorder");this.K("html5_mediastream_applies_timestamp_offset")&&(CX=!0);var a=g.gJ(this.Y.experiments,"html5_cobalt_override_quic");
a&&kW("QUIC",+(0<a));this.K("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&kW("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.gJ(this.Y.experiments,"html5_cobalt_min_processor_cnt_to_offload_algo"));(a=this.K("html5_cobalt_async_redn"))&&kW("MediaSource.EnableAsynchronousReduction",+a);if(a=g.gJ(this.Y.experiments,"html5_cobalt_max_size_for_immed_job"))kW("MediaSource.MaxSizeForImmediateJob",a),kW("MediaSource.MinSizeForImmediateJob",a);(a=this.K("html5_cobalt_enable_fetch_buffer_pool"))&&
kW("XHR.EnableFetchBufferPool",+a);(a=g.gJ(this.Y.experiments,"html5_cobalt_default_buffer_size_in_bytes"))&&kW("XHR.DefaultFetchBufferSize",a);(a=this.K("html5_cobalt_enable_try_lock_for_progress_check"))&&kW("XHR.EnableTryLockForProgressCheck",+a);(a=g.gJ(this.Y.experiments,"html5_max_source_buffer_append_size_in_bytes"))&&kW("MediaSource.MaxSourceBufferAppendSizeInBytes",a);(a=this.K("html5_cobalt_enable_avoid_copying_array_buffer"))&&kW("MediaSource.EnableAvoidCopyingArrayBuffer",+a);Error.stackTraceLimit=
25;var b=g.gJ(this.Y.experiments,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(c){return window.setTimeout(c,b)}});
Qwa(this.Y.D);dcb=this.K("html5_live_metadata_fix");iW=this.K("html5_use_media_end_for_end_of_segment");g.yO=this.K("web_player_use_native_events")};
g.k.GG=function(){this.QU=!0};
g.k.qa=function(){this.hd.dispose();this.kd.dispose();this.Ke&&this.Ke.dispose();this.Sv.Ef();this.Sv.dispose();this.Og&&this.Og.dispose();this.zb.dispose();this.rj();g.$a(Yc(this.Cw),this.playlist);g.C.prototype.qa.call(this)};
g.k.K=function(a){return this.Y.K(a)};
g.k.fI=function(){return this.WD};
g.k.requestStorageAccess=function(a,b){document.requestStorageAccess().then(a,b)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.createSubtitlesModuleIfNeeded=function(){return this.hd.createSubtitlesModuleIfNeeded()};
g.k.updateDownloadState=function(a,b){var c=this,d;return g.A(function(e){return(d=OT(c.hd))?e.return(d.updateDownloadState(a,b)):e.return(Promise.reject())})};
g.k.pauseVideoDownload=function(a){var b=OT(this.hd);b&&b.sO(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.A(function(d){return(c=OT(b.hd))?d.return(c.KD(a)):d.return(Promise.reject())})};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=OT(this.hd);return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.isOrchestrationLeader=function(){var a=OT(this.hd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Bb&&this.Bb.postId)return a=this.Y.getVideoUrl(a),a=mj(a,"v"),a.replace("/watch","/clip/"+this.Bb.postId);var f,h=null==(f=XJa(this.wb()))?void 0:f.MB();f=this.K("shorts_mode_to_player_api")?this.Ta.Sb():null==h?void 0:h.Sb();h=this.getVideoData().isLivePlayback;return this.Y.getVideoUrl(a,b,c,d,e,f,h)};
var u4={};g.Fa("yt.player.Application.create",g.BZ.create);g.Fa("yt.player.Application.createAlternate",g.BZ.create);ora(FC(),{Dq:[{MC:/Unable to load player module/,weight:20},{MC:/Failed to fetch/,weight:500},{MC:/XHR API fetch failed/,weight:10},{MC:/JSON parsing failed after XHR fetch/,weight:10},{MC:/Retrying OnePlatform request/,weight:10}]});var gdb=g.Ga("ytcsi.tick");gdb&&gdb("pe");var h1a=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"]]),f1a=new Map([["normal",{cw:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{cw:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{cw:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{cw:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{cw:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{cw:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{cw:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",uw:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);var hdb={FRa:"replaceUrlMacros",jNa:"onAboutThisAdPopupClosed",vta:"executeCommand"};e_.prototype.Km=function(){return"adLifecycleCommand"};
e_.prototype.handle=function(a){var b=this.lB();g.DD("Unexpected AdLifecycleCommand");switch(a.action){case "END_LINEAR_AD":g.Mf(function(){b.sy()});
break;case "END_LINEAR_AD_PLACEMENT":g.Mf(function(){b.Sr()})}};
e_.prototype.hq=function(a){this.handle(a)};f_.prototype.Km=function(){return"clearCueRangesCommand"};
f_.prototype.handle=function(){var a=this.lB();g.Mf(function(){a.Ch(Array.from(a.mu))})};
f_.prototype.hq=function(a){this.handle(a)};g_.prototype.Km=function(){return"muteAdEndpoint"};
g_.prototype.handle=function(a){o1a(this,a)};
g_.prototype.hq=function(a,b){o1a(this,a,b)};h_.prototype.Km=function(){return"openPopupAction"};
h_.prototype.handle=function(){};
h_.prototype.hq=function(a){this.handle(a)};i_.prototype.Km=function(){return"pingingEndpoint"};
i_.prototype.handle=function(){};
i_.prototype.hq=function(a){this.handle(a)};j_.prototype.Km=function(){return"urlEndpoint"};
j_.prototype.handle=function(){g.CD(Error("The deprecated handle method is called for url_endpoint_handler."))};
j_.prototype.hq=function(a,b,c){var d=this.Oa.get(),e=t4a(d.u.get(),b);e?b=x1(d,X4a(e),e,void 0,c):(GD("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);V0(this.i8,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.An.vg(2))&&(b.AD_CPN=c.clientPlaybackNonce);a=g.xp(a.url,b);"1"===(new g.Bk(a)).u.get("ase")?g.IN(a,void 0,void 0,a+"&asr=1"):g.IN(a)};k_.prototype.Km=function(){return"adPingingEndpoint"};
k_.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;this.ou.send(a,b,c)};
k_.prototype.hq=function(a,b,c){Y4a(this.Oa.get(),a,b,c)};l_.prototype.Km=function(){return"changeEngagementPanelVisibilityAction"};
l_.prototype.handle=function(a){this.F.Na("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};
l_.prototype.hq=function(a){this.handle(a)};m_.prototype.Km=function(){return"loggingUrls"};
m_.prototype.handle=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?{}:c;a=g.t(a);for(var d=a.next();!d.done;d=a.next())this.Wl.send(d.value.baseUrl,b,c)};
m_.prototype.hq=function(a,b,c){a=g.t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,Y4a(this.Oa.get(),d.baseUrl,b,c)};g.w(q1a,g.C);n_.prototype.get=function(){return this.value};
g.w(o_,n_);o_.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.w(r1a,n_);r1a.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.w(p_,n_);p_.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.w(q_,n_);q_.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.w(s1a,n_);s1a.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.w(t1a,n_);t1a.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.w(u1a,n_);u1a.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.w(r_,n_);r_.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.w(s_,n_);s_.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.w(t_,n_);t_.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.w(u_,n_);u_.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.w(v_,n_);v_.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.w(w_,n_);w_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.w(x_,n_);x_.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.w(y_,n_);y_.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.w(v1a,n_);v1a.prototype.getType=function(){return"metadata_type_ad_video_url"};
g.w(z_,n_);z_.prototype.getType=function(){return"metadata_type_content_cpn"};
g.w(A_,n_);A_.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.w(B_,n_);B_.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.w(w1a,n_);w1a.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.w(x1a,n_);x1a.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.w(C_,n_);C_.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.w(y1a,n_);y1a.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.w(z1a,n_);z1a.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.w(A1a,n_);A1a.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.w(B1a,n_);B1a.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.w(D_,n_);D_.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.w(E_,n_);E_.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.w(F_,n_);F_.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.w(C1a,n_);C1a.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.w(G_,n_);G_.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.w(H_,n_);H_.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.w(I_,n_);I_.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.w(D1a,n_);D1a.prototype.getType=function(){return"metadata_type_cue_point"};
g.w(J_,n_);J_.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.w(K_,n_);K_.prototype.getType=function(){return"metadata_type_player_vars"};
g.w(L_,n_);L_.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.w(M_,n_);M_.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.w(N_,n_);N_.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.w(O_,n_);O_.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.w(P_,n_);P_.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.w(Q_,n_);Q_.prototype.getType=function(){return"metadata_type_dai"};
g.w(R_,n_);R_.prototype.getType=function(){return"metadata_type_ad_intro"};
g.w(E1a,n_);E1a.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.w(S_,n_);S_.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.w(T_,n_);T_.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.w(U_,n_);U_.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.w(F1a,n_);F1a.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.w(V_,n_);V_.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.w(W_,n_);W_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.w(X_,n_);X_.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.w(Y_,n_);Y_.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.w(G1a,n_);G1a.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.w(Z_,n_);Z_.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.w($_,n_);$_.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.w(H1a,n_);H1a.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.w(a0,n_);a0.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.w(I1a,n_);I1a.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};g.w(b0,cb);g.w(J1a,g.C);g.k=J1a.prototype;g.k.aM=function(a,b){return this.j.aM(a,b)};
g.k.lj=function(a,b){this.Qb.j("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.t(this.Fd),d=c.next();!d.done;d=c.next())d.value.lj(a,b)};
g.k.Lg=function(a){if(e0(this.j,a)){oO(this.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.Lg(a);for(var b=g.t(this.Fd),c=b.next();!c.done;c=b.next())c.value.Lg(a);M1a(this,a)}};
g.k.Mg=function(a){if(e0(this.j,a)){oO(this.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.Mg(a);for(var b=g.t(this.Fd),c=b.next();!c.done;c=b.next())c.value.Mg(a);e0(this.j,a)&&f0(this.j,a).D&&d0(this,a,!1)}};
g.k.fH=function(a){oO(this.Qb,"ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);e0(this.j,a)&&(this.j.fH(a),d0(this,a,!1))};
g.k.Tc=function(a,b){if(e0(this.j,a)){g0(this.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.t(this.Fd),d=c.next();!d.done;d=c.next())d.value.Tc(a,b)}};
g.k.wd=function(a,b,c){if(e0(this.j,a)){g0(this.Qb,g1a(c),a,b);this.j.wd(a,b);for(var d=g.t(this.Fd),e=d.next();!e.done;e=d.next())e.value.wd(a,b,c);(c=n0(this.j,a))&&b.layoutId===c.layoutId&&Z1a(this,a,!1)}};
g.k.fg=function(a,b,c,d){c.lk&&d?(GD(c,a,b,void 0,c.pu),c0(this.Qb,d,c.lk,a,b)):GD("adsClientErrorMessage is missing.",a,b);d0(this,a,!0)};
g.k.qa=function(){var a=b2a(this.j);a=g.t(a);for(var b=a.next();!b.done;b=a.next())d0(this,b.value,!1);g.C.prototype.qa.call(this)};
g.k.Th=function(a,b){g0(this.Qb,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);g0(this.Qb,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.t(this.Fd),d=c.next();!d.done;d=c.next())d=d.value,b&&d.Th(a,b)};$1a.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.w(a2a,g.C);g.k=a2a.prototype;g.k.aM=function(a,b){b=m0(this,a+"_"+b);a=[];b=g.t(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Ii=function(a){a=f0(this,a);"not_scheduled"!==a.j&&o0(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.EB=function(a){a=f0(this,a);a.C="fill_requested";a.J.EB()};
g.k.Lg=function(a){a=f0(this,a);"enter_requested"!==a.j&&o0(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.fH=function(a){f0(this,a).C="fill_canceled"};
g.k.Mg=function(a){a=f0(this,a);"exit_requested"!==a.j&&o0(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.wd=function(a,b){a=f0(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&o0(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.w(h2a,g.C);h2a.prototype.B=function(){return this.u};g.w(i2a,g.C);i2a.prototype.get=function(){this.isDisposed()&&GD("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};r0.prototype.executeCommand=function(a,b){RP(this.j(),a,b)};
r0.prototype.Hg=function(a,b){XDa(this.j(),a,b)};C0.prototype.clone=function(a){var b=this;return new C0(function(){return b.triggerId},a)};D0.prototype.clone=function(a){var b=this;return new D0(function(){return b.triggerId},a)};var d3a={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Sc:[],layoutExitUserInputSubmittedTriggers:[]};g.w(Y0,g.C);g.w($0,g.C);$0.prototype.onCueRangeEnter=function(){};
$0.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.wc.get().removeCueRange(a),zC(this.ac.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.Ib.get();d=MD(d.eb.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?H4a(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:I4a(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:I4a(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
$0.prototype.Nj=function(){for(var a=g.t(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.wc.get().removeCueRange(b);this.j.clear()};
$0.prototype.un=function(){};g.w(a1,g.C);g.k=a1.prototype;g.k.Ii=function(){};
g.k.Rj=function(a){var b=this;g.gA(g.iA(),function(){var c=b.j.get(a);c&&GD("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.u(c)).map(function(d){return d.layoutType})})},0)};
g.k.Lg=function(){};
g.k.Qj=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.Th=function(a,b){this.Vk.has(a)&&this.Vk.get(a)===b&&GD("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):GD("Trying to unscheduled a Layout that was not scheduled.",a,b)}else GD("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.Tc=function(a,b){this.Vk.set(a,b)};
g.k.wd=function(a){this.Vk.delete(a)};
g.k.lj=function(){};f1.prototype.clone=function(a){var b=this;return new f1(function(){return b.triggerId},a)};g1.prototype.clone=function(a){var b=this;return new g1(function(){return b.triggerId},a)};y0.prototype.clone=function(a){var b=this;return new y0(function(){return b.triggerId},a)};h1.prototype.clone=function(a){var b=this;return new h1(function(){return b.triggerId},a)};g.w(l1,g.C);l1.prototype.logEvent=function(a){this.j(a)};
l1.prototype.j=function(a,b,c,d,e,f,h,l,m,n,p){var q=this;p=void 0===p?0:p;try{p&&0<p?g.gA(g.iA(),function(){return void N4a(q,a,b,c,d,e,f,h,l,m,n)},p):N4a(this,a,b,c,d,e,f,h,l,m,n)}catch(r){V0(this.Ca.get(),"html5_log_pacf_logging_errors")&&g.gA(g.iA(),function(){GD(r instanceof Error?r:String(r),e,f,{pacf_message:"exception during pacf logging"})})}};
l1.prototype.B=function(){return!this.Ca.get().F.V().K("html5_disable_client_tmp_logs")};
l1.prototype.mP=function(){return this.Ca.get().mP()};g.w(m1,l1);m1.prototype.B=function(){var a=l1.prototype.B.call(this);if(V0(this.Ca.get(),"H5_enable_full_pacf_logging"))return a;var b=this.u.get().u();var c=this.Ca.get();c=g.tK(c.F.V())?c.j:!0;return a&&b&&c};
m1.prototype.j=function(a,b,c,d,e,f,h,l,m,n){var p=this.Ca.get();g.tK(p.F.V())&&V0(p,"H5_use_async_logging")?(p=this.Ca.get(),p=g.gJ(p.F.V().experiments,"H5_async_logging_delay_ms")):p=void 0;l1.prototype.j.call(this,a,b,c,d,e,f,h,l,m,n,p)};n1.prototype.clear=function(){this.j.clear()};g.w(o1,g.C);g.k=o1.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.Nj=function(a,b,c,d,e,f,h,l){if(""===a)GD("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(!this.F.V().K("html5_de_dupe_content_video_loads_in_lifecycle_api")||a!==this.j||c){this.j=a;this.Ha.get().Nj(a,b,c,d,e,f,h,l);this.Va.get().Nj(a,b,c,d,e,f,h,l);var m;null==(m=this.xf)||m.get().Nj(a,b,c,d,e,f,h,l);this.u.Nj(a,b,c,d,e,f,h,l);m=g.t(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Nj(a,b,c,d,e,f,h,l)}};
g.k.PN=function(){this.j&&this.un(this.j)};
g.k.un=function(a){this.j=void 0;for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.un(a)};g.w(p1,g.C);p1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?GD("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Q4a(a,b,c,d,f),this.j.set(a.id,{me:a,listener:e,In:h}),this.F.ye([a],h))};
p1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?O4a(this,b):GD("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
p1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
p1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.w(Q4a,g.XD);q1.prototype.Yl=function(a){this.F.Yl(a)};
q1.prototype.Na=function(a){this.F.Na.apply(this.F,[a].concat(g.u(g.ya.apply(1,arguments))))};r1.prototype.mP=function(){return this.F.V().experiments.ob("h5_enable_generic_error_logging_event")};g.k=t1.prototype;g.k.lh=function(a,b){if(!this.j.has(a))return{};if("seek"===b)return b=this.F.V().K("html5_dai_enable_active_view_creating_completed_adblock"),Wka(a,b),{};b=RBa(b);if(null===b||this.F.V().K("enable_server_stitched_dai")&&2!==this.F.getPresentingPlayerType(!0))return{};var c=this.F.Rc();c=c&&(this.F.V().K("enable_server_stitched_dai")||2===c.getPlayerType())&&TN(c);if(!c)return{};c={opt_adElement:c,opt_fullscreen:this.Ha.get().isFullscreen()};return wp(b,a,c)};
g.k.TC=function(a){var b;null==(b=this.j.get(a.queryId))||b.TC()};
g.k.SC=function(a){var b;null==(b=this.j.get(a.queryId))||b.SC()};
g.k.UC=function(a){var b;null==(b=this.j.get(a.queryId))||b.UC()};
g.k.QC=function(a){var b;null==(b=this.j.get(a.queryId))||b.QC()};
g.k.RC=function(a){var b;null==(b=this.j.get(a.queryId))||b.RC()};g.w(v1,EN);v1.prototype.j=function(){return this.I()};
v1.prototype.B=function(){return this.J()};
v1.prototype.u=function(){return this.C()};
v1.prototype.K=function(a){return this.D(a)};w1.prototype.Gj=function(){var a=this.F.Rc();return a&&(a=a.Gj(1))?a:null};
w1.prototype.Sh=function(a,b){"string"===typeof b?this.F.getVideoData(1).IO(a,b):this.F.getVideoData(1).xa(a,b)};g.w(z1,g.C);g.k=z1.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.Nj=function(){this.rK.clear();this.bN=null;this.Td.get().clear()};
g.k.un=function(){};
g.k.vg=function(a){var b=this.F.getVideoData(a);return b?e5a(this,b,a||this.F.getPresentingPlayerType(!0)):null};
g.k.R7=function(a,b,c){"nPpU29QrbiU"===b.videoId&&this.Sh("ads_ssm_vdc_s",{pt:c,dvt:a});s1(this.Ca.get())&&"dataloaded"!==a||f5a(this,b,c)};
g.k.o7=function(a,b){void 0!==a&&(this.bN=a,void 0===b?GD("Expected ad video start time on SS video changed"):this.rK.set(a,b));var c=this.F.getPresentingPlayerType(!0),d=this.F.getVideoData(c);this.F.getVideoData(1).xa("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.F.getCurrentTime(1,!1),atlh:this.F.isAtLiveHead(),adstt:b});d?f5a(this,d,c):GD("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.F.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.qa=function(){this.listeners.length=0;this.Nu=null;g.C.prototype.qa.call(this)};
g.k.Sh=function(a,b){this.F.getVideoData(1).xa(a,b)};g.w(A1,g.C);g.k=A1.prototype;g.k.Nj=function(){var a=this;k1(this.Ca.get())||(this.j=Od(function(){a.F.isDisposed()||a.F.jg("ad",1)}))};
g.k.un=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.bW=function(){};
g.k.playVideo=function(){this.F.playVideo()};
g.k.pauseVideo=function(){this.F.pauseVideo()};
g.k.Zm=function(a){return 2===this.F.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Va.get().bN;return 2!==a||b||null===c?this.F.getCurrentTime(a,b):h5a(this,c)};
g.k.getVolume=function(){return this.F.getVolume()};
g.k.isMuted=function(){return this.F.isMuted()};
g.k.getPresentingPlayerType=function(){return this.F.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.F.getPlayerState(a)};
g.k.isFullscreen=function(){return this.F.isFullscreen()};
g.k.isAtLiveHead=function(){return this.F.isAtLiveHead()};
g.k.Wz=function(a){this.F.Wz(a)};
g.k.Q6=function(){var a=this.F.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){var c=g.t(this.listeners);for(a=c.next();!a.done;a=c.next())a.value.Mj(b)}else if(1===a&&T4a(this.Ca.get()))for(c=g.t(this.oF),a=c.next();!a.done;a=c.next())a.value.bW(b)};
g.k.H6=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Jk(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.t(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.Uh=function(){for(var a=this.F.zg(),b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Uh(a)};
g.k.Db=function(){for(var a=this.F.jb().Ij(),b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ik(a)};
g.k.Ul=function(a){for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ul(a)};g.w(l5a,g.C);D1.prototype.addListener=function(a){this.listeners.add(a)};
D1.prototype.removeListener=function(a){this.listeners.delete(a)};q5a.prototype.EB=function(){var a=this,b=0;o5a(this.j,function(){var c=ZZ(a.slot.Ba,"metadata_type_ad_break_request_data");b=Date.now();a.Oa.get().Sh("abrs","ct."+b+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.Lf.get().fetch({MY:c.getAdBreakUrl,gT:new g.XD(c.HO,c.GO),nB:ZZ(a.slot.Ba,"metadata_type_cue_point")})},function(){r5a(a)},function(c){var d=Date.now()-b;
a.Oa.get().Sh("abrr","ct."+(new Date).getTime()+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.qo;2<=d.length&&c.ssdaiAdsConfig&&GD("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!(null==(f=e.renderer)?0:null==(h=f.linearAdSequenceRenderer)?0:null==(l=h.linearAds)?0:l.length)||!(null==(m=e.renderer)||!m.instreamVideoAdRenderer)})||r5a(a)})};
q5a.prototype.IK=function(){p5a(this.j)};s5a.prototype.EB=function(){var a=this;o5a(this.j,function(){var b=ZZ(a.slot.Ba,"metadata_type_ad_break_request_data");return a.Lf.get().fetch({MY:b.getAdBreakUrl,gT:new g.XD(b.HO,b.GO)})})};
s5a.prototype.IK=function(){p5a(this.j)};t5a.prototype.EB=function(){var a=this.slot.Ba,b,c=null!=(b=this.slot.fulfilledLayout)?b:ZZ(a,"metadata_type_fulfilled_layout");O1a(this.callback,this.slot,c)};
t5a.prototype.IK=function(){K1a(this.callback,this.slot,new N("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")};v5a.prototype.wf=function(a,b){return b.fulfilledLayout||u5a(b,{Ae:["metadata_type_fulfilled_layout"]})?new t5a(a,b):this.j(a,b)};g.w(F1,v5a);
F1.prototype.j=function(a,b){if(u5a(b,{Ae:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new q5a(a,b,this.Lf,this.Ab,this.Jb,this.Ca,this.Oa,this.Ha,this.qf);if(u5a(b,{Ae:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new s5a(a,b,this.Lf,this.Ab,this.Jb,this.Ca);throw new N("Unsupported slot with type: "+b.slotType+" and client metadata: "+$Z(b.Ba)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.w(G1,v5a);G1.prototype.j=function(a,b){throw new N("Unsupported slot with type: "+b.slotType+" and client metadata: "+$Z(b.Ba)+" in DefaultFulfillmentAdapterFactory.");};g.k=w5a.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=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.fg(this.slot,a,new b0("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=ZZ(a.Ba,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.Tc(this.slot,a),ira(this.j,this.slot,
b)):GD("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Pg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.fg(this.slot,a,new b0("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.wd(this.slot,a,b)};I1.prototype.wf=function(a,b,c,d){if(H1(d,{Ae:["metadata_type_ad_break_response_data"],Rf:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new w5a(a,c,d,this.j);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};J1.prototype.lh=function(a,b){b=void 0===b?!1:b;var c=(this.B.get(a)||[]).concat();if(b=b&&gAa(a)){var d=this.B.get(b);d&&c.push.apply(c,g.u(d))}x5a(this,a,c);this.j.add(a);b&&this.j.add(b)};
J1.prototype.md=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&gAa(a);c&&(b=!this.j.has(c));this.lh(a,b)}};
J1.prototype.zw=function(a,b){b=void 0===b?!1:b;this.j.has(a)?x5a(this,a,[]):this.md(a,b)};g.k=z5a.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.fg(this.slot,a,new b0("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.Tc(this.slot,a),this.Za.md("impression"),Y1(this.j,a))};
g.k.Pg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.fg(this.slot,a,new b0("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.wd(this.slot,a,b)};g.k=B5a.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.fg(this.slot,a,new b0("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.Tc(this.slot,a),this.Za.md("impression"),Y1(this.j,a))};
g.k.Pg=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.fg(this.slot,a,new b0("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.wd(this.slot,a,b)};O1.prototype.wf=function(a,b,c,d){if(!this.Ca.get().F.V().K("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(H1(d,A5a()))return new z5a(a,c,d,this.Oa,this.j)}else if(H1(d,{Ae:[],Rf:["LAYOUT_TYPE_FORECASTING"]}))return new B5a(a,c,d,this.Oa,this.j);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in ForecastingLayoutRenderingAdapterFactory.");};g.w(P1,g.dE);g.k=P1.prototype;g.k.pd=function(){return this.u.slot};
g.k.Hb=function(){return this.u.layout};
g.k.init=function(){this.B.get().addListener(this)};
g.k.release=function(){this.B.get().removeListener(this);this.dispose()};
g.k.nM=function(){};
g.k.lM=function(){};
g.k.kM=function(){};
g.k.hG=function(){};
g.k.startRendering=function(a){var b=this;D5a(this.u,a,function(){return void b.iI()})};
g.k.iI=function(){this.B.get().iI(this.j)};
g.k.Pg=function(a,b){var c=this;D5a(this.u,a,function(){var d=c.B.get();s6a(d,c.j,3);c.j=[];c.callback.wd(c.slot,a,b)})};
g.k.qa=function(){this.B.isDisposed()||this.B.get().removeListener(this);g.dE.prototype.qa.call(this)};
g.ca.Object.defineProperties(P1.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.u.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.u.layout}}});g.w(E5a,gN);g.w(F5a,P1);g.k=F5a.prototype;g.k.gh=function(a,b){R1("action-companion",a,this.I.get().Vk,this.Oa.get(),this.C,this.D,this.pd(),this.Hb(),b)};
g.k.startRendering=function(a){Q1(this.Za,this.pd(),this.Hb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new E5a(b,c,d,e,f)},this.j);
P1.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.md("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Gj():GD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.wd=function(){};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.qa=function(){this.Ue().Fd.delete(this);P1.prototype.qa.call(this)};g.w(S1,P1);S1.prototype.init=function(){P1.prototype.init.call(this);var a=ZZ(this.layout.Ba,"metadata_type_ad_action_interstitial_renderer"),b=L1(this.Za);this.j.push(new aO(a,b,this.layout.layoutId,{adsClientData:this.layout.Ac},!0,!0))};
S1.prototype.startRendering=function(a){P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a)};
S1.prototype.gh=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=ZZ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&N5a(a,this.pd(),this.layout)}};
S1.prototype.qa=function(){P1.prototype.qa.call(this)};g.w(T1,P1);g.k=T1.prototype;g.k.init=function(){P1.prototype.init.call(this);var a=ZZ(this.layout.Ba,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Ac},c=!ZZ(this.layout.Ba,"metadata_type_player_bytes_callback").tG;this.j.push(new bR(a,this.layout.layoutId,ZZ(this.layout.Ba,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Ys=function(){if(!this.C){var a=this.Ha.get();a.Zm(2)&&a.F.playVideo()}};
g.k.startRendering=function(a){P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a);this.D.Gx=this};
g.k.Pg=function(a,b){P1.prototype.Pg.call(this,a,b);w8a(this.D,this)};
g.k.gh=function(a){if(s4a(this.I.get(),this.J))switch(a){case "visit-advertiser":this.Oa.get().F.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":if(!this.C){var b=this.Ha.get();b.Zm(2)&&b.F.playVideo()}break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.C=this.Ha.get().Zm(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();ZZ(this.layout.Ba,
"metadata_type_player_bytes_callback").PH();break;case "skip-button":a=ZZ(this.layout.Ba,"metadata_type_player_bytes_callback"),a.tG?a.gD(this.pd(),this.layout):(a=null==(b=ZZ(this.layout.Ba,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&N5a(a,this.pd(),this.layout)}};
g.k.qa=function(){P1.prototype.qa.call(this)};g.w(U1,P1);g.k=U1.prototype;g.k.startRendering=function(a){var b=this;D5a(this.u,a,function(){b.j.push(new hO(ZZ(b.layout.Ba,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Ac));b.iI();b.callback.Tc(b.slot,a);g.S(u1(b.Ha.get(),1),512)&&b.callback.fg(b.pd(),b.Hb(),new b0("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Mj=function(){};
g.k.Jk=function(a){if(a.state.isError()){var b;this.callback.fg(this.pd(),this.Hb(),new b0("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.getData())?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.Uh=function(){};
g.k.Ik=function(){};
g.k.onVolumeChange=function(){};
g.k.Ul=function(){};
g.k.gh=function(){};K5a.prototype.wf=function(a,b,c,d){if(a=V1(a,c,d,this.vc,this.Ha,this.Oa,this.u,this.j,this.Ca))return a;throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.w(W1,g.C);g.k=W1.prototype;g.k.init=function(){var a=ZZ(this.Hb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ks()};
g.k.release=function(){var a=ZZ(this.Hb().Ba,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.wt()};
g.k.startRendering=function(a){a.layoutId!==this.Hb().layoutId?this.callback.fg(this.pd(),a,new b0("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Hb().layoutId+("and LayoutType: "+this.Hb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),this.Ue().Fd.add(this),U4a(this.Ca.get())&&this.Mc.get().mI(),this.Ca.get().F.V().experiments.ob("html5_load_empty_player_in_media_break_sub_lra")||
j5a(this.Ha.get()),U4a(this.Ca.get())||this.Mc.get().mI(),this.Ft(a))};
g.k.Pg=function(a,b){this.yM=!0;this.It(a,b);this.Ha.get().F.Nq();this.Pe.get().F.cueVideoByPlayerVars({},2);a=u1(this.Ha.get(),1);g.QO(a)&&!g.S(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.yM&&this.yV()};
g.k.wd=function(a,b){b.layoutId===this.Hb().layoutId&&(this.yM=!1,this.Ue().Fd.delete(this))};
g.k.Jk=function(a,b){if(a.state.isError()){var c,d;this.fg(null==(c=a.state.getData())?void 0:c.errorCode,new b0("There was a player error during this media layout.",{playerErrorCode:null==(d=a.state.getData())?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED",b)}else this.wW(a)};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.Ul=function(){};g.w(L5a,W1);g.k=L5a.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.Ks=function(){if(1>this.u.length)throw new N("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.u.length)});var a=ZZ(this.Hb().Ba,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=this);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),P1a(this.B,this.slot,b.Hb()),Q1a(this.B,this.slot,b.Hb())};
g.k.wt=function(){var a=ZZ(this.Hb().Ba,"metadata_type_ad_pod_skip_target_callback_ref");a&&(a.current=null);a=g.t(this.u);for(var b=a.next();!b.done;b=a.next())b=b.value,pO(this.B,this.slot,b.Hb()),b.release()};
g.k.Qv=function(a,b){var c=this.u[this.j];b.layoutId!==X1(c,a,b)?GD("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Qv()};
g.k.ew=function(a,b){var c=this.u[this.j];b.layoutId!==X1(c,a,b)?GD("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.ew()};
g.k.gD=function(a,b){var c=this.u[this.j];b.layoutId!==X1(c,a,b)?GD("onSkipRequested for a PlayerBytes layout that is not currently active",c.pd(),c.Hb(),{requestingSlot:a,requestingLayout:b}):Q5a(this,c.pd(),c.Hb(),"skipped")};
g.k.Ft=function(){-1===this.j&&P5a(this,this.j+1)};
g.k.A7=function(a,b){j0(this.B,a,b)};
g.k.It=function(a,b){var c=this;this.j!==this.u.length?(a=this.u[this.j],a.Pg(a.Hb(),b),this.D=function(){c.callback.wd(c.slot,c.layout,b)}):this.callback.wd(this.slot,this.layout,b)};
g.k.Tc=function(a,b){var c=this.u[this.j];c&&c.Tc(a,b)};
g.k.wd=function(a,b,c){W1.prototype.wd.call(this,a,b,c);var d=this.u[this.j];d&&d.wd(a,b,c)};
g.k.yV=function(){var a=this.u[this.j];a&&a.gG()};
g.k.Mj=function(a){var b=this.u[this.j];b&&b.Mj(a)};
g.k.wW=function(a){var b=this.u[this.j];b&&b.Jk(a)};
g.k.fg=function(a,b,c){-1===this.j&&(this.callback.Tc(this.slot,this.layout),this.j++);var d=this.u[this.j];d?d.OC(a,b,c):GD("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.j),layoutId:this.Hb().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.u[this.j];if(b)b.onFullscreenToggled(a)};
g.k.Uh=function(a){var b=this.u[this.j];b&&b.Uh(a)};
g.k.Ik=function(a){var b=this.u[this.j];b&&b.Ik(a)};
g.k.onVolumeChange=function(){var a=this.u[this.j];if(a)a.onVolumeChange()};
g.k.C7=function(a,b,c){Q5a(this,a,b,c)};
g.k.B7=function(a,b){Q5a(this,a,b,"error")};g.w(a2,g.C);g.k=a2.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){var a=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),b=ZZ(this.layout.Ba,"metadata_type_active_view_traffic_type");mN(this.layout.Rb)&&V4a(this.Mb.get(),this.layout.layoutId,b,a,this);Z4a(this.Oa.get(),this);this.Ks()};
g.k.release=function(){mN(this.layout.Rb)&&W4a(this.Mb.get(),this.layout.layoutId);$4a(this.Oa.get(),this);this.wt()};
g.k.Qv=function(){};
g.k.ew=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.fg(this.slot,a,new b0("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.Fc="rendering_start_requested",cAa(this.Xf.get(),1)?(this.vD(-1),this.Ft(a),this.Px(!1)):this.OC("ui_unstable",new b0("Failed to render media layout because ad ui unstable.",
void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_UI_UNSTABLE"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"))};
g.k.Tc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Fc="rendering";this.CC=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();this.md("impression");this.md("start");if(this.Ha.get().isMuted()){this.zw("mute");var c;a=(null==(c=$1(this))?void 0:c.muteCommands)||[];this.Nb.get().Hg(a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.lh("fullscreen");var d;c=(null==(d=$1(this))?void 0:d.fullscreenCommands)||[];this.Nb.get().Hg(c,this.layout.layoutId)}this.Mc.get().bP();this.vD(1);
this.kW();var e;d=(null==(e=$1(this))?void 0:e.impressionCommands)||[];this.Nb.get().Hg(d,this.layout.layoutId)}};
g.k.OC=function(a,b,c){this.nu={AI:3,mE:"load_timeout"===a?402:400,errorMessage:b.message};this.md("error");var d;a=(null==(d=$1(this))?void 0:d.errorCommands)||[];this.Nb.get().Hg(a,this.layout.layoutId);this.callback.fg(this.slot,this.layout,b,c)};
g.k.gG=function(){this.XK()};
g.k.lU=function(){if("rendering"===this.Fc){this.zw("pause");var a,b=(null==(a=$1(this))?void 0:a.pauseCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId);this.vD(2)}};
g.k.mU=function(){if("rendering"===this.Fc){this.zw("resume");var a,b=(null==(a=$1(this))?void 0:a.resumeCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}};
g.k.Pg=function(a,b){if(a.layoutId!==this.layout.layoutId)this.callback.fg(this.slot,a,new b0("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");else if("rendering_stop_requested"!==this.Fc){this.Fc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.md("complete");break;case "skipped":this.md("skip");
break;case "abandoned":N1(this.Za,"impression")&&this.md("abandon")}this.It(a,b)}};
g.k.wd=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Fc="not_rendering",this.layoutExitReason=void 0,(a="normal"!==c||this.position+1===this.nY)&&this.Px(a),this.lW(c),this.vD(0),c){case "abandoned":if(N1(this.Za,"impression")){var d,e=(null==(d=$1(this))?void 0:d.abandonCommands)||[];this.Nb.get().Hg(e,this.layout.layoutId)}break;case "normal":d=(null==(e=$1(this))?void 0:e.completeCommands)||[];this.Nb.get().Hg(d,this.layout.layoutId);break;case "skipped":var f;d=(null==(f=$1(this))?
void 0:f.skipCommands)||[];this.Nb.get().Hg(d,this.layout.layoutId)}};
g.k.Cy=function(){return this.layout.layoutId};
g.k.GL=function(){return this.nu};
g.k.Jk=function(a){if("not_rendering"!==this.Fc){this.zX||(a=new g.WN(a.state,new g.KO),this.zX=!0);var b=2===this.Ha.get().getPresentingPlayerType();"rendering_start_requested"===this.Fc?b&&R5a(a)&&this.ZS():b?g.YN(a,2)?this.Ei():(R5a(a)?this.vD(1):g.YN(a,4)&&!g.YN(a,2)&&this.lU(),0>XN(a,4)&&!(0>XN(a,2))&&this.mU()):this.gG()}};
g.k.TC=function(){if("rendering"===this.Fc){this.Za.md("active_view_measurable");var a,b=(null==(a=$1(this))?void 0:a.activeViewMeasurableCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}};
g.k.SC=function(){if("rendering"===this.Fc){this.Za.md("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=$1(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}};
g.k.UC=function(){if("rendering"===this.Fc){this.Za.md("active_view_viewable");var a,b=(null==(a=$1(this))?void 0:a.activeViewViewableCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}};
g.k.QC=function(){if("rendering"===this.Fc){this.Za.md("audio_audible");var a,b=(null==(a=$1(this))?void 0:a.activeViewAudioAudibleCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}};
g.k.RC=function(){if("rendering"===this.Fc){this.Za.md("audio_measurable");var a,b=(null==(a=$1(this))?void 0:a.activeViewAudioMeasurableCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}};
g.k.Px=function(a){this.Mc.get().Px(ZZ(this.layout.Ba,"metadata_type_ad_placement_config").kind,a,this.position,this.nY,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Fc)if(a){this.lh("fullscreen");var b,c=(null==(b=$1(this))?void 0:b.fullscreenCommands)||[];this.Nb.get().Hg(c,this.layout.layoutId)}else this.lh("end_fullscreen"),b=(null==(c=$1(this))?void 0:c.endFullscreenCommands)||[],this.Nb.get().Hg(b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Fc)if(this.Ha.get().isMuted()){this.zw("mute");var a,b=(null==(a=$1(this))?void 0:a.muteCommands)||[];this.Nb.get().Hg(b,this.layout.layoutId)}else this.zw("unmute"),a=(null==(b=$1(this))?void 0:b.unmuteCommands)||[],this.Nb.get().Hg(a,this.layout.layoutId)};
g.k.Uh=function(){};
g.k.Ik=function(){};
g.k.Ul=function(){};
g.k.lh=function(a){this.Za.lh(a,!this.CC)};
g.k.md=function(a){this.Za.md(a,!this.CC)};
g.k.zw=function(a){this.Za.zw(a,!this.CC)};g.w(W5a,a2);g.k=W5a.prototype;g.k.Ks=function(){};
g.k.wt=function(){var a=this.Oa.get();a.nI===this&&(a.nI=null);this.timer.stop()};
g.k.Ft=function(){V5a(this);j5a(this.Ha.get());this.Oa.get().nI=this;aF("pbp")||aF("pbs")||fF("pbp");aF("pbp","watch")||aF("pbs","watch")||fF("pbp",void 0,"watch");this.ZS()};
g.k.kW=function(){Z5a(this)};
g.k.Ei=function(){};
g.k.Qv=function(){this.timer.stop();a2.prototype.lU.call(this)};
g.k.ew=function(){Z5a(this);a2.prototype.mU.call(this)};
g.k.By=function(){return ZZ(this.Hb().Ba,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.It=function(){this.timer.stop()};
g.k.yc=function(){var a=Date.now(),b=a-this.aN;this.aN=a;this.Mi+=b;this.Mi>=this.By()?(this.Mi=this.By(),b2(this,this.Mi/1E3,!0),Y5a(this,this.Mi),this.XK()):(b2(this,this.Mi/1E3),Y5a(this,this.Mi))};
g.k.lW=function(){};
g.k.Mj=function(){};g.w(c2,a2);g.k=c2.prototype;g.k.Ks=function(){ZZ(this.Hb().Ba,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=ZZ(this.Hb().Ba,"metadata_type_shrunken_player_bytes_config")};
g.k.wt=function(){ZZ(this.Hb().Ba,"metadata_type_player_bytes_callback_ref").current=null;this.Iu&&this.wc.get().removeCueRange(this.Iu);this.Iu=void 0;this.NG.dispose();this.lz&&this.lz.dispose()};
g.k.Ft=function(a){var b=P0(this.Ca.get()),c=Q0(this.Ca.get());if(b&&c){c=ZZ(a.Ba,"metadata_type_preload_player_vars");var d=g.gJ(this.Ca.get().F.V().experiments,"html5_preload_wait_time_secs");c&&this.lz&&this.lz.start(1E3*d)}c=ZZ(a.Ba,"metadata_type_ad_video_id");d=ZZ(a.Ba,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.dg.get().F.V().Aa.add(c,{jB:d});(c=ZZ(a.Ba,"metadata_type_sodar_extension_data"))&&m5a(this.hf.get(),c);k5a(this.Ha.get(),!1);V5a(this);b?(c=this.Pe.get(),a=ZZ(a.Ba,
"metadata_type_player_vars"),c.F.loadVideoByPlayerVars(a,!1,2)):(c=this.Pe.get(),a=ZZ(a.Ba,"metadata_type_player_vars"),c.F.cueVideoByPlayerVars(a,2));this.NG.start();b||this.Pe.get().F.playVideo(2)};
g.k.kW=function(){this.NG.stop();this.Iu="adcompletioncuerange:"+this.Hb().layoutId;this.wc.get().addCueRange(this.Iu,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var a;(this.adCpn=(null==(a=this.Va.get().vg(2))?void 0:a.clientPlaybackNonce)||"")||GD("Media layout confirmed started, but ad CPN not set.");this.zd.get().Na("onAdStart",this.adCpn)};
g.k.Ei=function(){this.XK()};
g.k.By=function(){var a;return null==(a=this.Va.get().vg(2))?void 0:a.h8};
g.k.PH=function(){this.Za.lh("clickthrough")};
g.k.It=function(){this.NG.stop();this.lz&&this.lz.stop();k5a(this.Ha.get(),!0);var a;(null==(a=this.shrunkenPlayerBytesConfig)?0:a.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().Wz(!1)};
g.k.onCueRangeEnter=function(a){a!==this.Iu?GD("Received CueRangeEnter signal for unknown layout.",this.pd(),this.Hb(),{cueRangeId:a}):(this.wc.get().removeCueRange(this.Iu),this.Iu=void 0,a=ZZ(this.Hb().Ba,"metadata_type_video_length_seconds"),b2(this,a,!0),this.md("complete"))};
g.k.lW=function(a){"abandoned"!==a&&this.zd.get().Na("onAdComplete");this.zd.get().Na("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Mj=function(a){"rendering"===this.Fc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().Wz(!0),b2(this,a))};g.w(a6a,W1);g.k=a6a.prototype;g.k.pd=function(){return this.j.pd()};
g.k.Hb=function(){return this.j.Hb()};
g.k.Ks=function(){this.j.init()};
g.k.wt=function(){this.j.release()};
g.k.Qv=function(){this.j.Qv()};
g.k.ew=function(){this.j.ew()};
g.k.gD=function(a,b){GD("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.pd(),this.Hb(),{requestingSlot:a,requestingLayout:b})};
g.k.Ft=function(a){this.j.startRendering(a)};
g.k.It=function(a,b){this.j.Pg(a,b)};
g.k.Tc=function(a,b){this.j.Tc(a,b)};
g.k.wd=function(a,b,c){W1.prototype.wd.call(this,a,b,c);this.j.wd(a,b,c);b.layoutId===this.Hb().layoutId&&this.Mc.get().aA()};
g.k.yV=function(){this.j.gG()};
g.k.Mj=function(a){this.j.Mj(a)};
g.k.wW=function(a){this.j.Jk(a)};
g.k.fg=function(a,b,c){this.j.OC(a,b,c)};
g.k.onFullscreenToggled=function(a){this.j.onFullscreenToggled(a)};
g.k.Uh=function(a){this.j.Uh(a)};
g.k.Ik=function(a){this.j.Ik(a)};
g.k.onVolumeChange=function(){this.j.onVolumeChange()};d2.prototype.wf=function(a,b,c,d){if(a=c6a(a,b,c,d,this.Ue,this.j,this.Oa,this.Mb,this.hf,this.Pe,this.Va,this.Ha,this.wc,this.Mc,this.zd,this.Xf,this.Nb,this.dg,this.Ca))return a;throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.w(e2,g.C);g.k=e2.prototype;g.k.mW=function(a){if(!this.j){var b;null==(b=this.qf)||b.get().kt(a.identifier);return!1}d6a(this,this.j,a);return!0};
g.k.eW=function(){};
g.k.Nj=function(a){this.j&&this.j.contentCpn!==a&&(GD("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.un=function(a){this.j&&this.j.contentCpn!==a&&GD("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.qa=function(){g.C.prototype.qa.call(this);this.j=null};g.w(f2,g.C);g.k=f2.prototype;g.k.Tc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&fO(b,this.B)){var d=this.Va.get().vg(2),e=this.j(b,d||void 0,this.Ca.get().F.V().experiments.ob("enable_post_ad_perception_survey_in_tvhtml5"));e?zC(this.ac.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[T2a(c.Ib.get(),e.contentCpn,e.vp,function(h){return c.u(h.slotId,"core",e,c_(c.Jb.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&U2a(c.Ca.get())&&f.push(e6a(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):GD("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Lg=function(){};
g.k.Qj=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.wd=function(){};var M2=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"];g.k=i6a.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.zF=function(){this.callback.Lg(this.slot)};
g.k.BF=function(){this.callback.Mg(this.slot)};
g.k.release=function(){};h2.prototype.wf=function(a,b){return new i6a(a,b)};g.k=j6a.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.zF=function(){B1(this.Ha.get(),"ad-showing");this.callback.Lg(this.slot)};
g.k.BF=function(){this.callback.Mg(this.slot);C1(this.Ha.get(),"ad-showing")};
g.k.release=function(){};g.k=k6a.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.zF=function(){B1(this.Ha.get(),"ad-showing");B1(this.Ha.get(),"ad-interrupting");this.u=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.Lg(this.slot)};
g.k.BF=function(){C1(this.Ha.get(),"ad-showing");C1(this.Ha.get(),"ad-interrupting");var a=this.u?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().F.seekTo(a,void 0,void 0,1);this.callback.Mg(this.slot)};
g.k.release=function(){};g.k=l6a.prototype;g.k.init=function(){};
g.k.pd=function(){return this.slot};
g.k.zF=function(){B1(this.Ha.get(),"ad-showing");B1(this.Ha.get(),"ad-interrupting");this.callback.Lg(this.slot)};
g.k.BF=function(){VP(this.Ha.get());C1(this.Ha.get(),"ad-showing");C1(this.Ha.get(),"ad-interrupting");this.callback.Mg(this.slot)};
g.k.release=function(){VP(this.Ha.get())};i2.prototype.wf=function(a,b){if(BC(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new j6a(a,b,this.Ha);if(b.slotEntryTrigger instanceof Z0&&BC(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new k6a(a,b,this.Ha);if(BC(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new l6a(a,b,this.Ha);throw new N("Unsupported slot with type "+b.slotType+" and client metadata: "+($Z(b.Ba)+" in PlayerBytesSlotAdapterFactory."));};g.w(k2,g.C);k2.prototype.j=function(a){for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof H0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?k0(this.gJ(),b):GD("Mute requested but no registered triggers can be activated.")};g.w(l2,k2);g.k=l2.prototype;g.k.gh=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof H0&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&k0(this.gJ(),a)}else V0(this.Ca.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&m6a(this,b):"survey-submit"===a?m6a(this,b):"survey-single-select-answer-button"===a&&m6a(this,b)};
g.k.nM=function(a){k2.prototype.j.call(this,a)};
g.k.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof I0||b instanceof H0))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Wb.set(b.triggerId,new j2(a,b,c,d))};
g.k.gm=function(a){this.Wb.delete(a.triggerId)};
g.k.lM=function(){};
g.k.kM=function(){};
g.k.hG=function(){};g.w(m2,g.C);g.k=m2.prototype;
g.k.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof C0||b instanceof D0||b instanceof f1||b instanceof g1||b instanceof y0||b instanceof h1||b instanceof v4a||b instanceof A0||b instanceof B0||b instanceof F0||b instanceof u4a||b instanceof d1))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new j2(a,b,c,d);this.Wb.set(b.triggerId,a);b instanceof
y0&&this.D.has(b.triggeringSlotId)&&k0(this.j(),[a]);b instanceof C0&&this.B.has(b.triggeringSlotId)&&k0(this.j(),[a]);b instanceof A0&&this.u.has(b.triggeringLayoutId)&&k0(this.j(),[a])};
g.k.gm=function(a){this.Wb.delete(a.triggerId)};
g.k.Ii=function(a){this.D.add(a.slotId);for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof y0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&k0(this.j(),b)};
g.k.Rj=function(a){this.D.delete(a.slotId);for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof h1&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&k0(this.j(),b)};
g.k.Qj=function(a){for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof v4a&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&k0(this.j(),b)};
g.k.Lg=function(a){this.B.add(a.slotId);for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof C0&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&k0(this.j(),b)};
g.k.Mg=function(a){this.B.delete(a.slotId);this.C.add(a.slotId);for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof D0)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof d1){var e=d.trigger;a.slotId===e.slotId&&this.u.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&k0(this.j(),b)};
g.k.Kk=function(a){for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof f1&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&k0(this.j(),b)};
g.k.Lk=function(a){for(var b=[],c=g.t(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof g1&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&k0(this.j(),b)};
g.k.Oj=function(a,b){this.I.add(b.layoutId)};
g.k.Th=function(a,b){this.I.delete(b.layoutId)};
g.k.Tc=function(a,b){this.u.add(b.layoutId);for(var c=[],d=g.t(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof A0)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof u4a){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof d1&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.C.has(f.slotId)&&c.push(e));0<c.length&&k0(this.j(),c)};
g.k.wd=function(a,b,c){this.u.delete(b.layoutId);a=[];for(var d=g.t(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof B0&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof F0){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&k0(this.j(),a)};
g.k.lj=function(){};
g.k.Nj=function(){this.C.clear()};
g.k.un=function(){};g.w(n2,g.C);n2.prototype.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof DC||b instanceof z0))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new j2(a,b,c,d))};
n2.prototype.gm=function(a){this.Wb.delete(a.triggerId)};
n2.prototype.Nj=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.t(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof DC&&l.trigger.er===a&&f.push(l);e.call(d,b,g.u(f));b.push.apply(b,g.u(n6a(this.Wb,a,!1,c)));b.length&&k0(this.j(),b)};
n2.prototype.un=function(a){var b=[];b.push.apply(b,g.u(n6a(this.Wb,a,!0,!1)));b.length&&k0(this.j(),b)};g.w(o2,g.C);g.k=o2.prototype;
g.k.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(o6a(b))this.Wb.set(b.triggerId,{Cu:new j2(a,b,c,d),Lu:e});else if(b instanceof Z0||b instanceof e1)p6a(this,a,b,c,d,e,b.j.start,b.j.end,b.er,b.visible);else if(b instanceof G4a)p6a(this,a,b,c,d,e,b.j.start,b.j.end,b.er,!1);else if(b instanceof E4a)p6a(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.er,b.visible);else throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+
" in CueRangeTriggerAdapter");};
g.k.gm=function(a){var b=this.Wb.get(a.triggerId);b&&this.wc.get().removeCueRange(b.Lu);this.Wb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a,b){b=void 0===b?!1:b;if(a=q6a(this,a))if(a=this.Wb.get(a))if(g.S(u1(this.Ha.get()),32))this.j.add(a.Lu);else{var c=null==a?void 0:a.Cu.trigger;b=b?c instanceof y4a:c instanceof x4a;(c instanceof Z0||c instanceof e1||c instanceof E4a||c instanceof b1||b)&&k0(this.u(),[a.Cu])}};
g.k.onCueRangeExit=function(a){if(a=q6a(this,a))if(a=this.Wb.get(a))this.j.delete(a.Lu),a.Cu.trigger instanceof G4a&&k0(this.u(),[a.Cu])};
g.k.Jk=function(a){if(0>XN(a,16)){a=g.t(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.Tc=function(a,b){a=g.t(this.Wb.values());for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.Cu.trigger;c=c.Lu;if(o6a(d)&&d.layoutId===b.layoutId){var e=1E3*this.Ha.get().getCurrentTimeSec(1,!1);d instanceof b1?d=0:(d=e+d.offsetMs,e=0x7ffffffffffff);this.wc.get().addCueRange(c,d,e,!1,this)}}};
g.k.wd=function(a,b,c){var d=this;a={};for(var e=g.t(this.Wb.values()),f=e.next();!f.done;a={xA:a.xA,Bp:a.Bp},f=e.next())f=f.value,a.Bp=f.Cu.trigger,a.xA=f.Lu,o6a(a.Bp)&&a.Bp.layoutId===b.layoutId?P4a(this.wc.get(),a.xA):a.Bp instanceof e1&&a.Bp.layoutId===b.layoutId&&"user_cancelled"===c&&(this.wc.get().removeCueRange(a.xA),g.gA(g.iA(),function(h){return function(){d.wc.get().addCueRange(h.xA,h.Bp.j.start,h.Bp.j.end,h.Bp.visible,d)}}(a)))};
g.k.lj=function(){};
g.k.Mj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Uh=function(){};
g.k.Ik=function(){};
g.k.onVolumeChange=function(){};
g.k.Ul=function(){};g.w(p2,g.C);g.k=p2.prototype;g.k.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof G0))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new j2(a,b,c,d))};
g.k.gm=function(a){this.Wb.delete(a.triggerId)};
g.k.sy=function(){};
g.k.Sr=function(){};
g.k.Tc=function(){};
g.k.wd=function(){};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};g.w(q2,g.C);g.k=q2.prototype;g.k.lj=function(a,b){for(var c=[],d=g.t(this.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f.opportunityType===a&&(f.associatedSlotId&&f.associatedSlotId!==b||c.push(e))}c.length&&k0(this.j(),c)};
g.k.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof w4a))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new j2(a,b,c,d))};
g.k.gm=function(a){this.Wb.delete(a.triggerId)};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.Tc=function(){};
g.k.wd=function(){};g.w(r2,g.C);r2.prototype.qa=function(){this.hn.isDisposed()||this.hn.get().removeListener(this);g.C.prototype.qa.call(this)};g.w(s2,g.C);s2.prototype.qa=function(){this.cf.isDisposed()||this.cf.get().removeListener(this);g.C.prototype.qa.call(this)};t2.prototype.fetch=function(a){var b=a.gT;return this.fu.fetch(a.MY,{nB:void 0===a.nB?void 0:a.nB,me:b}).then(function(c){return r6a(c,b)})};g.w(u2,g.C);g.k=u2.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.iI=function(a){s6a(this,a,1)};
g.k.onAdUxClicked=function(a,b){v2(this,function(c){c.gh(a,b)})};
g.k.CN=function(a){v2(this,function(b){b.lM(a)})};
g.k.BN=function(a){v2(this,function(b){b.kM(a)})};
g.k.o5=function(a){v2(this,function(b){b.hG(a)})};g.w(w2,g.C);g.k=w2.prototype;
g.k.Nj=function(){this.D=new sO(this,S4a(this.Ca.get()));this.B=new tO;var a=this.F.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.F.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.HN,this),b.subscribe("cuepointupdated",this.HN,this),this.j=b)}this.sI.length=0;var d;b=(null==(d=a.j)?void 0:Xva(d,0))||[];d=g.t(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.gt(b)&&GD("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.un=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.YN=function(a){this.sI.push(a);for(var b=!1,c=g.t(this.listeners),d=c.next();!d.done;d=c.next())b=d.value.mW(a)||b;this.C=b};
g.k.fW=function(a){g.Nb(this.B.j,1E3*a);for(var b=g.t(this.listeners),c=b.next();!c.done;c=b.next())c.value.eW(a)};
g.k.gt=function(a){u6a(this,a);this.D.reduce(a);a=this.C;this.C=!1;return a};
g.k.HN=function(a){var b=this.F.getVideoData(1).isDaiEnabled();if(b||!g.FK(this.F.V())){a=g.t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,u6a(this,c),b?this.D.reduce(c):0!==this.F.getCurrentTime(1)&&"start"===c.event&&(this.Ca.get().F.V().experiments.ob("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.u?0:c.startSecs+c.Sg>=this.u.startSecs&&c.startSecs<=this.u.startSecs+this.u.Sg)?GD("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.u=c,this.YN(c)))}};
g.k.qa=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.HN,this),this.j=null);this.listeners.length=0;this.sI.length=0;g.C.prototype.qa.call(this)};z2.prototype.addListener=function(a){this.listeners.push(a)};
z2.prototype.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};g.k=w6a.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().oF.push(this)};
g.k.release=function(){this.Ha.get().removeListener(this);g5a(this.Ha.get(),this)};
g.k.startRendering=function(a){this.callback.Tc(this.slot,a)};
g.k.Pg=function(a,b){this.callback.wd(this.slot,a,b)};
g.k.Ul=function(a){switch(a.id){case "part2viewed":this.Za.md("start");break;case "videoplaytime25":this.Za.md("first_quartile");break;case "videoplaytime50":this.Za.md("midpoint");break;case "videoplaytime75":this.Za.md("third_quartile");break;case "videoplaytime100":this.Za.md("complete");break;case "engagedview":if(!T4a(this.Ca.get())){this.Za.md("progress");break}y5a(this.Za)||this.Za.md("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:GD("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Ik=function(){};
g.k.Uh=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Jk=function(){};
g.k.Mj=function(){};
g.k.bW=function(a){T4a(this.Ca.get())&&y5a(this.Za)&&M1(this.Za,1E3*a,!1)};x6a.prototype.wf=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.t(K1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(H1(d,{Ae:b,Rf:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return new w6a(a,c,d,this.Ha,this.Oa,this.Ca);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};g.k=A2.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){this.xf.get().addListener(this);this.Ha.get().addListener(this);this.Ks();var a=ZZ(this.layout.Ba,"metadata_type_layout_enter_ms"),b=ZZ(this.layout.Ba,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Va.get().Nu)?void 0:c.clientPlaybackNonce;c=this.layout.Ac.adClientDataEntry;y1(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.xf.get();e=uO(e.B,a,b);null!==e&&(y1(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.qf.get().Fu(e,b))};
g.k.release=function(){this.wt();this.xf.get().removeListener(this);this.Ha.get().removeListener(this)};
g.k.startRendering=function(){this.Ft();this.callback.Tc(this.slot,this.layout)};
g.k.Pg=function(a,b){this.It(b);null!==this.driftRecoveryMs&&(z6a(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(y6a(this)-ZZ(this.layout.Ba,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().F.us()).toString()}),this.driftRecoveryMs=null);this.callback.wd(this.slot,this.layout,b)};
g.k.mW=function(){return!1};
g.k.eW=function(a){var b=ZZ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=ZZ(this.layout.Ba,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;y1(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Va.get().Nu)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Ac.adClientDataEntry}});this.qf.get().Fu(a,c)}};
g.k.Mj=function(a){this.SV(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(s4a(this.C.get(),this.layout.layoutId)){var b=ZZ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=y6a(this),e=this.Ha.get().F.us(),f=Math.min(a+e,d/1E3);f<=a?z6a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(z6a(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ha.get().F.seekTo(f,void 0,void 0,1))}}};
g.k.Uh=function(){};
g.k.Ik=function(){};
g.k.onVolumeChange=function(){};
g.k.Ul=function(){};g.w(A6a,A2);g.k=A6a.prototype;g.k.Ks=function(){this.Va.get().addListener(this);this.B.forEach(function(a){a.init()});
null!=this.u&&this.Oa.get().Sh("ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.u)};
g.k.wt=function(){this.Va.get().removeListener(this);this.j=null;this.B.forEach(function(a){a.release()})};
g.k.Ft=function(){if(this.j)GD("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.u)});else{var a,b=null==(a=this.Va.get().Nu)?void 0:a.layoutId;C6a(this,b)}};
g.k.It=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.zl)||e.Pg(null==(b=this.j)?void 0:null==(c=b.zl)?void 0:c.Hb(),a);this.j=null};
g.k.sW=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;this.Oa.get().Sh("ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.u+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.zl)?void 0:d.Hb().layoutId))}var e;if(this.j&&(null==(e=this.j.zl)?void 0:e.Hb().layoutId)!==a){var f,h;null==(h=this.j.zl)||h.Pg(null==(f=this.j.zl)?void 0:f.Hb(),"normal");C6a(this,a)}};
g.k.SV=function(){};
g.k.Jk=function(){};
g.k.onFullscreenToggled=function(){};g.k=Q6a.prototype;g.k.pd=function(){return this.slot};
g.k.Hb=function(){return this.layout};
g.k.init=function(){var a=this;ZZ(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;this.Nc=D6a(this.slot,this.layout,ZZ(this.layout.Ba,"metadata_type_player_vars"),ZZ(this.layout.Ba,"metadata_type_layout_enter_ms"),ZZ(this.layout.Ba,"metadata_type_layout_exit_ms"),1E3*ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),this.qf.get(),this.Td.get(),function(){var d=Object,e=d.assign,f=T6a(a.layout);var h=ZZ(a.slot.Ba,"metadata_type_fulfilled_layout");h=Object.assign({},T6a(h),
{adPlacementConfig:ZZ(h.Ba,"metadata_type_ad_placement_config"),subLayouts:ZZ(h.Ba,"metadata_type_sub_layouts").map(T6a)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:AC(a.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:ZZ(a.layout.Ba,"metadata_type_survey_overlay")})},this.Oa.get());
this.Ha.get().addListener(this);var b=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),c=ZZ(this.layout.Ba,"metadata_type_active_view_traffic_type");mN(this.layout.Rb)&&V4a(this.Mb.get(),this.layout.layoutId,c,b,this);P1a(this.callback,this.slot,this.layout);Q1a(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ha.get().removeListener(this);mN(this.layout.Rb)&&W4a(this.Mb.get(),this.layout.layoutId);this.Ca.get();pO(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;AC(this.layout.Ba,"metadata_type_survey_overlay")&&this.Oa.get().Sh("ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Fc)GD("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:AC(this.layout.Ba,"metadata_type_survey_overlay"),surveyOverlay:ZZ(this.layout.Ba,"metadata_type_survey_overlay")});else{this.Fc={dn:null,ND:!1};this.Ca.get().F.V().experiments.ob("html5_disable_sodar_for_tvhtml5")||E6a(this.slot,
this.layout,this.hf.get());this.Za.md("start");if(s1(this.Ca.get())){var b=u1(this.Ha.get()),c=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);G6a(this.Za,this.Fc.dn,b,c,d,function(){return void S6a(a,"teois")})}j0(this.callback,this.slot,this.layout);
AC(this.layout.Ba,"metadata_type_survey_overlay")&&this.Oa.get().Sh("ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Pg=function(a,b){var c=this;if(this.Fc){if(s1(this.Ca.get()))if(null===this.Nc)GD("Unexpected media sub layout exited without a timeline playback ID");else{a=ZZ(this.layout.Ba,"metadata_type_video_length_seconds");var d=h5a(this.Ha.get(),this.Nc);this.Za.D=d;H6a(this.Za,null,this.Fc.dn,a,d,function(e){return void R6a(c,e,"fue")})}this.Fc=null;
jO(this.callback,this.slot,this.layout,b)}else GD("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.OC=function(){};
g.k.gG=function(){};
g.k.Mj=function(a){var b=this;if(this.Fc){if(N1(this.Za,"impression")){var c=u1(this.Ha.get()),d=ZZ(this.layout.Ba,"metadata_type_video_length_seconds");I6a(this.Za,c,a,this.Fc.dn,d,function(e){return void R6a(b,e,"tpaqe")})}this.Fc.dn=a}};
g.k.Jk=function(a){var b=this;if(this.Fc){s1(this.Ca.get())||this.Fc.ND||(this.Fc.ND=!0,a=new g.WN(a.state,new g.KO));var c=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);F6a(this.Za,this.Fc.dn,a,c,d,!s1(this.Ca.get()),function(){return void S6a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){J6a(this.Za,a)};
g.k.Uh=function(){};
g.k.Ik=function(){};
g.k.gD=function(a,b){var c;a=this.Oa.get();var d=a.Sh,e="ti."+N1(this.Za,"impression")+";ts."+N1(this.Za,"skip")+";hp.",f;var h=!(null==(f=this.Za.B.get("skip"))||!f.length);d.call(a,"ads_dsr",e+h+";cpn."+ZZ(this.layout.Ba,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Va.get().vg(2))?void 0:c.clientPlaybackNonce)+";sl."+(ZZ(b.Ba,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));N1(this.Za,"impression")&&this.Za.md("skip");this.qf.get().qp()||GD("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Tc=function(){};
g.k.wd=function(){};
g.k.Qv=function(){};
g.k.ew=function(){};
g.k.PH=function(){K6a(this.Za)};
g.k.TC=function(){L6a(this.Za)};
g.k.SC=function(){M6a(this.Za)};
g.k.UC=function(){N6a(this.Za)};
g.k.QC=function(){O6a(this.Za)};
g.k.RC=function(){P6a(this.Za)};
g.k.Ul=function(){};g.w(U6a,A2);g.k=U6a.prototype;
g.k.Ks=function(){var a=this;ZZ(this.layout.Ba,"metadata_type_player_bytes_callback_ref").current=this;var b=ZZ(this.layout.Ba,"metadata_type_layout_enter_ms"),c=ZZ(this.layout.Ba,"metadata_type_layout_exit_ms");this.Nc=D6a(this.slot,this.layout,ZZ(this.layout.Ba,"metadata_type_player_vars"),b,c,1E3*ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),this.qf.get(),this.Td.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:ZZ(a.layout.Ba,"metadata_type_ad_placement_config")}},
this.Oa.get());
var d=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),e=ZZ(this.layout.Ba,"metadata_type_active_view_traffic_type");mN(this.layout.Rb)&&V4a(this.Mb.get(),this.layout.layoutId,e,d,this)};
g.k.wt=function(){mN(this.layout.Rb)&&W4a(this.Mb.get(),this.layout.layoutId)};
g.k.Ft=function(){var a=this;if(this.Fc)GD("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Fc={dn:null,ND:!1},E6a(this.slot,this.layout,this.hf.get()),this.Za.md("start"),s1(this.Ca.get())){var b=u1(this.Ha.get()),c=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);G6a(this.Za,this.Fc.dn,b,c,d,function(){return void V6a(a,"teois")})}};
g.k.It=function(){var a=this;if(this.Fc){if(s1(this.Ca.get()))if(null===this.Nc)GD("Unexpected single media layout exited without a timeline playback ID");else{var b=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),c=h5a(this.Ha.get(),this.Nc);this.Za.D=c;H6a(this.Za,null,this.Fc.dn,b,c,function(d){return void W6a(a,d,"fue")})}this.Fc=null}else GD("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.SV=function(a){var b=this;if(this.Fc){if(N1(this.Za,"impression")){var c=u1(this.Ha.get()),d=ZZ(this.layout.Ba,"metadata_type_video_length_seconds");I6a(this.Za,c,a,this.Fc.dn,d,function(e){return void W6a(b,e,"tpaqe")})}this.Fc.dn=a}};
g.k.Jk=function(a){var b=this;if(this.Fc){s1(this.Ca.get())||this.Fc.ND||(this.Fc.ND=!0,a=new g.WN(a.state,new g.KO));var c=ZZ(this.layout.Ba,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);F6a(this.Za,this.Fc.dn,a,c,d,!s1(this.Ca.get()),function(){return void V6a(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){J6a(this.Za,a)};
g.k.PH=function(){K6a(this.Za)};
g.k.TC=function(){L6a(this.Za)};
g.k.SC=function(){M6a(this.Za)};
g.k.UC=function(){N6a(this.Za)};
g.k.QC=function(){O6a(this.Za)};
g.k.RC=function(){P6a(this.Za)};X6a.prototype.wf=function(a,b,c,d){if(AC(c.Ba,"metadata_type_dai")){var e=ZZ(d.Ba,"metadata_type_ad_placement_config");H1(d,{Ae:"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(" "),Rf:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new J1(d.Rb,this.Oa,e,d.layoutId,null),e=new U6a(a,c,d,this.Va,this.qf,this.Td,this.xf,this.Ha,e,this.Oa,this.hf,this.j,this.Mb,this.Ca)):
e=null;if(e)return e;a:{var f=ZZ(d.Ba,"metadata_type_sub_layouts"),h=ZZ(d.Ba,"metadata_type_ad_placement_config");if(H1(d,{Ae:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Rf:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=ZZ(l.Ba,"metadata_type_media_sub_layout_index");if(!H1(l,{Ae:"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(" "),
Rf:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new J1(l.Rb,this.Oa,h,l.layoutId,m);e.push(new Q6a(b,c,l,this.qf,m,this.Ha,this.Td,this.Mb,this.hf,this.Ca,this.Oa,this.Va))}b=new J1(d.Rb,this.Oa,h,d.layoutId);a=new A6a(a,c,d,this.Va,this.qf,this.xf,this.Ha,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=c6a(a,b,c,d,this.Ue,this.u,this.Oa,this.Mb,this.hf,this.Pe,this.Va,this.Ha,this.wc,this.Mc,this.zd,this.Xf,this.Nb,this.dg,this.Ca))return a;throw new b0("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+$Z(d.Ba)+" in PlayerBytesLayoutRenderingAdapterFactory.");};g.w(B2,g.C);B2.prototype.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof E0))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new j2(a,b,c,d))};
B2.prototype.gm=function(a){this.Wb.delete(a.triggerId)};g.w(D2,g.C);
D2.prototype.Zl=function(a,b,c,d){if(this.u.has(b.triggerId)||this.B.has(b.triggerId))throw new N("Tried to re-register the trigger.");a=new j2(a,b,c,d);if(a.trigger instanceof F4a)this.u.set(a.trigger.triggerId,a);else if(a.trigger instanceof A3a)this.B.set(a.trigger.triggerId,a);else throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.u.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&k0(this.C(),[a])};
D2.prototype.gm=function(a){this.u.delete(a.triggerId);this.B.delete(a.triggerId)};
D2.prototype.sW=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.u(Y6a(this.B,this.j)));null!=a&&b.push.apply(b,g.u(Y6a(this.u,a)));this.j=a;b.length&&k0(this.C(),b)}};g.k=Z6a.prototype;g.k.Kx=function(a,b,c,d,e,f,h){return this.F.Kx(a,b,c,d,e,f,h)};
g.k.Fu=function(a,b){this.F.Fu(a,b)};
g.k.jA=function(a,b,c){this.F.jA(a,b,c)};
g.k.kt=function(a){this.F.kt(a)};
g.k.rC=function(a,b,c,d,e,f,h){this.F.rC(a,b,c,d,e,f,h)};
g.k.qp=function(){return this.F.qp()};g.w($6a,gN);g.w(a7a,P1);g.k=a7a.prototype;g.k.gh=function(a,b){R1("image-companion",a,this.I.get().Vk,this.Oa.get(),this.C,this.D,this.pd(),this.Hb(),b)};
g.k.startRendering=function(a){Q1(this.Za,this.pd(),this.Hb(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new $6a(b,c,d,e,f)},this.j);
P1.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.md("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Gj():GD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.wd=function(){};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.qa=function(){this.Ue().Fd.delete(this);P1.prototype.qa.call(this)};g.w(c7a,gN);g.w(d7a,P1);g.k=d7a.prototype;g.k.gh=function(a,b){R1("shopping-companion",a,this.I.get().Vk,this.Oa.get(),this.C,this.D,this.pd(),this.Hb(),b)};
g.k.startRendering=function(a){Q1(this.Za,this.pd(),this.Hb(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new c7a(b,c,d,e,f)},this.j);
P1.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.md("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Gj():GD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.wd=function(){};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.qa=function(){this.Ue().Fd.delete(this);P1.prototype.qa.call(this)};g.w(f7a,P1);g.k=f7a.prototype;g.k.startRendering=function(a){Q1(this.Za,this.pd(),this.Hb(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new E5a(b,c,d,e,f)},this.j);
P1.prototype.startRendering.call(this,a)};
g.k.Tc=function(){};
g.k.wd=function(){};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.qa=function(){this.Ue().Fd.delete(this);P1.prototype.qa.call(this)};
g.k.gh=function(){};g.w(h7a,gN);g.w(i7a,P1);g.k=i7a.prototype;g.k.gh=function(a,b){R1("ads-engagement-panel",a,this.I.get().Vk,this.Oa.get(),this.C,this.D,this.pd(),this.Hb(),b)};
g.k.startRendering=function(a){Q1(this.Za,this.pd(),this.Hb(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new h7a(b,c,d,e,f)},this.j);
P1.prototype.startRendering.call(this,a)};
g.k.Tc=function(a,b){b.layoutId===this.layout.layoutId?this.Za.md("impression"):this.D===b.layoutId&&(null===this.C?this.C=this.Oa.get().Gj():GD("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.wd=function(){};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.qa=function(){this.Ue().Fd.delete(this);P1.prototype.qa.call(this)};k7a.prototype.wf=function(a,b,c,d){if(H1(d,j7a()))return new i7a(a,c,d,this.vc,this.Oa,this.Ue,this.Mb,this.j);if(H1(d,G5a()))return new F5a(a,c,d,this.vc,this.Oa,this.Ue,this.Mb,this.j);if(H1(d,b7a()))return new a7a(a,c,d,this.vc,this.Oa,this.Ue,this.Mb,this.j);if(H1(d,e7a()))return new d7a(a,c,d,this.vc,this.Oa,this.Ue,this.Mb,this.j);if(H1(d,g7a()))return new f7a(a,c,d,this.vc,this.Oa,this.Ue,this.Mb,this.j);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+
" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.w(l7a,gN);g.w(E2,P1);E2.prototype.init=function(){P1.prototype.init.call(this);var a=ZZ(this.layout.Ba,"metadata_type_player_underlay_renderer");this.j.push(new l7a(g.K(a,M$a),this.layout.layoutId,{adsClientData:this.layout.Ac}))};
E2.prototype.gh=function(){};
E2.prototype.startRendering=function(a){P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a)};
E2.prototype.qa=function(){P1.prototype.qa.call(this)};m7a.prototype.wf=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.t(K1()),f=e.next();!f.done;f=e.next())b.push(f.value);if(H1(d,{Ae:b,Rf:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new E2(a,c,d,this.vc);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.w(n7a,gN);g.w(F2,P1);F2.prototype.startRendering=function(a){var b=L1(this.Za),c={adsClientData:this.layout.Ac};this.j.push(new n7a(ZZ(this.layout.Ba,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.Hb().layoutId,c));P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a)};
F2.prototype.gh=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=ZZ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.gD(this.slot,this.layout):GD("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
F2.prototype.qa=function(){P1.prototype.qa.call(this)};var o7a=new g.He(320,63);g.w(r7a,gN);g.w(I2,P1);g.k=I2.prototype;g.k.Mj=function(){};
g.k.Jk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Uh=function(a){a&&C2(this.C,this.layout)};
g.k.Ik=function(a){var b=H2(this.layout);if(this.nu=p7a(a,i5a(this.Ha.get())))b.onErrorCommand&&this.Nb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),C2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Cy=function(){return this.Hb().layoutId};
g.k.GL=function(){return this.nu};
g.k.gh=function(a){this.D.gh(a);"in_video_overlay_close_button"===a&&C2(this.C,this.layout)};
g.k.hG=function(a){"invideo-overlay"===a&&C2(this.C,this.layout)};
g.k.Ys=function(){this.D.Ys()};
g.k.startRendering=function(a){P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a);this.I.Gx=this};
g.k.Pg=function(a,b){P1.prototype.Pg.call(this,a,b);w8a(this.I,this)};
g.k.init=function(){P1.prototype.init.call(this);Z4a(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new r7a(H2(this.layout),L1(this.Za),this.layout.layoutId,{adsClientData:this.layout.Ac}))};
g.k.release=function(){P1.prototype.release.call(this);this.Ha.get().removeListener(this);$4a(this.Oa.get(),this)};
g.k.Ul=function(){};g.w(J2,P1);g.k=J2.prototype;g.k.init=function(){P1.prototype.init.call(this);Z4a(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new r7a(H2(this.layout),L1(this.Za),this.layout.layoutId,{adsClientData:this.layout.Ac}))};
g.k.Ys=function(){this.D.Ys()};
g.k.startRendering=function(a){P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a);this.I.Gx=this};
g.k.Pg=function(a,b){P1.prototype.Pg.call(this,a,b);w8a(this.I,this)};
g.k.gh=function(a){this.D.gh(a);"in_video_overlay_close_button"===a&&C2(this.C,this.layout)};
g.k.lM=function(a){if("invideo-overlay"===a){a=x7a(this.J,this.layout);a=g.t(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.hG=function(a){"invideo-overlay"===a&&C2(this.C,this.layout)};
g.k.kM=function(a){if("invideo-overlay"===a){a=x7a(this.J,this.layout);a=g.t(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Mj=function(){};
g.k.Jk=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Uh=function(a){a&&C2(this.C,this.layout)};
g.k.Ik=function(a){var b=H2(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=i5a(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&!g.sb(c.thumbnails)&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.He(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.He(0,0)}if(this.nu=p7a(a,d,c))b.onErrorCommand&&this.Nb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),C2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Cy=function(){return this.Hb().layoutId};
g.k.GL=function(){return this.nu};
g.k.release=function(){P1.prototype.release.call(this);this.Ha.get().removeListener(this);$4a(this.Oa.get(),this)};
g.k.Ul=function(){};K2.prototype.gh=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().Zm(1))||this.Ha.get().pauseVideo())};
K2.prototype.Ys=function(){if(!this.j){var a=this.Ha.get();a.Zm(1)&&a.F.playVideo()}};g.w(u7a,gN);g.w(v7a,P1);g.k=v7a.prototype;g.k.init=function(){P1.prototype.init.call(this);this.Ha.get().addListener(this)};
g.k.startRendering=function(a){var b=ZZ(this.layout.Ba,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new u7a(b,this.layout.layoutId,{adsClientData:this.layout.Ac}));P1.prototype.startRendering.call(this,a);this.callback.Tc(this.slot,a)};
g.k.Tc=function(){};
g.k.gh=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=ZZ(this.layout.Ba,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.Qv(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.ew(this.slot,this.layout):GD("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Ik=function(a){450>a.width&&C2(this.C,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Mj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Uh=function(){};
g.k.Jk=function(){};
g.k.Ul=function(){};
g.k.qa=function(){P1.prototype.qa.call(this)};
g.k.release=function(){P1.prototype.release.call(this);this.Ha.get().removeListener(this)};w7a.prototype.wf=function(a,b,c,d){if(b=V1(a,c,d,this.vc,this.Ha,this.Oa,this.C,this.j,this.Ca))return b;if(H1(d,t7a()))return new J2(c,d,this.Oa,this.Mb,this.vc,a,this.u,this.B,this.Ha,this.Nb,this.Ca,this.j,new K2(this.Ha));if(H1(d,s7a()))return new I2(c,d,this.Oa,this.Mb,this.vc,a,this.u,this.Ha,this.Nb,this.Ca,this.j,new K2(this.Ha));if(H1(d,{Ae:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Rf:["LAYOUT_TYPE_SURVEY"]}))return new v7a(c,d,a,this.vc,this.u,this.Ha,this.Ca);if(H1(d,
{Ae:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Rf:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new F2(c,d,a,this.vc,this.Oa);if(H1(d,J5a()))return new U1(c,d,a,this.vc,this.Ha,this.Ca);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};g.w(L2,g.C);g.k=L2.prototype;g.k.Zl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(b instanceof O3a))throw new N("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new j2(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.gm=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof O3a))throw new N("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.u.get(a.triggerId);b&&(b.dispose(),this.u.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.Ii=function(){};
g.k.Rj=function(){};
g.k.Qj=function(){};
g.k.Lg=function(){};
g.k.Mg=function(){};
g.k.Kk=function(){};
g.k.Lk=function(){};
g.k.Oj=function(){};
g.k.Th=function(){};
g.k.lj=function(){};
g.k.Tc=function(a,b){var c=this;if(this.j.has(b.layoutId)){b=this.j.get(b.layoutId);a={};b=g.t(b);for(var d=b.next();!d.done;a={AA:a.AA},d=b.next())a.AA=d.value,d=new g.Ip(function(e){return function(){var f=c.Wb.get(e.AA.triggerId);k0(c.B(),[f])}}(a),a.AA.durationMs),d.start(),this.u.set(a.AA.triggerId,d)}};
g.k.wd=function(){};g.w(y7a,g.C);z7a.prototype.wf=function(a,b,c,d){if(b=V1(a,c,d,this.vc,this.Ha,this.Oa,this.C,this.j,this.Ca))return b;if(H1(d,t7a()))return new J2(c,d,this.Oa,this.Mb,this.vc,a,this.u,this.B,this.Ha,this.Nb,this.Ca,this.j,new K2(this.Ha));if(H1(d,s7a()))return new I2(c,d,this.Oa,this.Mb,this.vc,a,this.u,this.Ha,this.Nb,this.Ca,this.j,new K2(this.Ha));throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.w(A7a,g.C);g.w(B7a,g.C);g.w(C7a,g.C);g.w(N2,T1);N2.prototype.startRendering=function(a){T1.prototype.startRendering.call(this,a);ZZ(this.layout.Ba,"metadata_ad_video_is_listed")&&(a=ZZ(this.layout.Ba,"metadata_type_ad_info_ad_metadata"),this.Bm.get().F.Na("onAdMetadataAvailable",a))};E7a.prototype.wf=function(a,b,c,d){if(H1(d,D7a()))return new N2(a,c,d,this.vc,this.Ha,this.Oa,this.u,this.Bm,this.j);throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};g.w(F7a,g.C);G7a.prototype.wf=function(a,b,c,d){if(H1(d,D7a()))return new N2(a,c,d,this.vc,this.Ha,this.Oa,this.u,this.Bm,this.j);if(a=V1(a,c,d,this.vc,this.Ha,this.Oa,this.u,this.j,this.Ca))return a;throw new b0("Unsupported layout with type: "+d.layoutType+" and client metadata: "+$Z(d.Ba)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};g.w(H7a,g.C);g.w(J7a,g.C);J7a.prototype.B=function(){return this.u};g.w(K7a,FQ);
K7a.prototype.C=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Na("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.Na("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.Na("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.Na("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.Na("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.Na("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.Na("updateEngagementPanelAction",b.addAction);this.j.Na("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.Na("changeEngagementPanelVisibility",b.hideAction),this.j.Na("updateEngagementPanelAction",b.removeAction)}};g.w(L7a,NQ);g.k=L7a.prototype;g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);g.Hm(this.B,"stroke-dasharray","0 "+this.u);this.api.V().K("enable_dark_mode_style_endcap_timed_pie_countdown")&&(this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light"),this.C.classList.add("ytp-ad-timed-pie-countdown-outer-light"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){PQ(this);NQ.prototype.hide.call(this)};
g.k.show=function(){OQ(this);NQ.prototype.show.call(this)};
g.k.Vv=function(){this.hide()};
g.k.ut=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.Hm(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.u+" "+this.u)}};g.w(M7a,eQ);g.k=M7a.prototype;
g.k.init=function(a,b,c){eQ.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.K(b.actionButton,g.mM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.CD(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
0<e.length&&g.Tb(g.Qe(e[0].url))&&(e[0].url=d.profilePicture,g.Tb(g.Qe(d.profilePicture))&&AQa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.Tb(g.Qe(e[0].url))&&(e[0].url=d.wg());e=b.headline;null!=e&&g.Tb(g.Qe(e.text))&&(e.text=d.author)}this.J.init(fN("ad-image"),b.image,c);this.D.init(fN("ad-text"),b.headline,c);this.C.init(fN("ad-text"),b.description,c);this.Z.init(fN("ad-image"),b.backgroundImage,c);d=["ytp-ad-action-interstitial-action-button"];
(this.api.V().K("web_modern_buttons")||this.api.V().K("mweb_wil_modern_buttons"))&&d.push("ytp-ad-action-interstitial-action-button-rounded");this.api.V().K("enable_dark_mode_style_endcap")&&(this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background"),this.D.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().K("enable_endcap_no_op_UI_change")&&
this.slot.classList.add("ytp-ad-action-interstitial-slot-no-op");this.api.V().K("enable_small_endcap_action_button_for_mweb")&&this.api.V().u&&d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size");this.api.V().K("enable_mweb_endcap_dark_mode_action_button")&&this.api.V().u&&d.push("ytp-ad-action-interstitial-action-button-dark");this.actionButton=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,d);g.E(this,this.actionButton);this.actionButton.Ea(this.Qa);
this.actionButton.init(fN("button"),g.K(b.actionButton,g.mM),c);this.api.V().K("web_enable_instream_ads_link_definition_a11y_bugfix")&&(Cp(this.actionButton.element),d=Sa(),e=Fp(this.actionButton.element),Ep(this.actionButton.element,e+d));this.navigationEndpoint=b.navigationEndpoint;this.api.V().u||(this.B.S(this.Ja,"click",this.vL,this),this.B.S(this.Ga,"click",this.vL,this),this.B.S(this.Aa,"click",this.vL,this));this.j=this.pP?new cR(this.api,a):new dR(a);g.E(this,this.j);b.skipButton?(a=g.K(b.skipButton,
S$a))&&this.j&&(this.skipButton=new XQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,this.gI),g.E(this,this.skipButton),this.skipButton.Ea(this.element),this.skipButton.init(fN("skip-button"),a,c)):b.nonskippableOverlayRenderer&&(a=g.K(b.nonskippableOverlayRenderer,T0))&&this.j&&(this.u=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j,!1),g.E(this,this.u),this.u.Ea(this.element),this.u.init(fN("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,
g.K(b,T$a)&&this.j&&(c=new L7a(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.j),g.E(this,c),c.Ea(this.element),c.init(fN("timed-pie-countdown"),g.K(b,T$a),this.macros)));this.show();this.element.focus()}else g.CD(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.CD(Error("AdActionInterstitialRenderer has no button."));else g.CD(Error("AdActionInterstitialRenderer has no background AdImage."));else g.CD(Error("AdActionInterstitialRenderer has no description AdText."));
else g.CD(Error("AdActionInterstitialRenderer has no headline AdText."));else g.CD(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.Lz(this.B);this.hide()};
g.k.show=function(){N7a(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.u&&this.u.show();eQ.prototype.show.call(this)};
g.k.hide=function(){N7a(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.u&&this.u.hide();eQ.prototype.hide.call(this)};
g.k.vL=function(){this.navigationEndpoint&&(this.layoutId?this.rb.executeCommand(this.navigationEndpoint,this.layoutId):g.CD(Error("Missing layoutId for ad action interstitial.")))};var S7a={iconType:"CLOSE"},Q2=new g.He(320,63);g.w(R7a,eQ);g.k=R7a.prototype;
g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);this.C=b;this.J=g.Bb(this.C.onClickCommands||[]);this.Ja=this.C.onErrorCommand||null;if(a=this.C.contentSupportedRenderer)a=this.C.contentSupportedRenderer,b=this.C.adInfoRenderer||null,g.K(a,O$a)?(this.D=g.kf("ytp-ad-overlay-ad-info-button-container",this.B.element),T7a(this,b),a=V7a(this,g.K(a,O$a))):g.K(a,P$a)?(this.D=g.kf("ytp-ad-overlay-ad-info-button-container",this.u.element),T7a(this,b),a=W7a(this,g.K(a,P$a))):g.K(a,Q$a)?(this.D=
g.kf("ytp-ad-overlay-ad-info-button-container",this.j.element),T7a(this,b),a=X7a(this,g.K(a,Q$a))):(g.CD(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Y7a(this,!0))};
g.k.clear=function(){Y7a(this,!1);this.Ga.reset();this.Z=0;this.B.hide();this.Ua(this.B.element,!1);this.u.hide();this.Ua(this.u.element,!1);this.j.hide();this.Ua(this.j.element,!1);this.hide();this.dispose()};
g.k.F7=function(){this.Ya&&(this.layoutId?this.rb.executeCommand(this.Ya,this.layoutId):g.CD(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.Zo=function(){a:{if(this.C&&this.C.closeButton&&this.C.closeButton.buttonRenderer){var a=this.C.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.t(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.rb.executeCommand(b,this.layoutId):g.CD(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.h5=function(){this.Qa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.XN=function(){this.Qa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.XN("invideo-overlay")};
g.k.i5=function(a){a.target===this.D&&g.kf("ytp-ad-button",this.fb.element).click()};g.w(Z7a,NQ);g.k=Z7a.prototype;g.k.init=function(a,b,c){NQ.prototype.init.call(this,a,b,c);a=b.durationMs;this.B=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(fN("ad-text"),d,c);this.messageText.Ea(this.u.element);this.C.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){$7a(this,!1);NQ.prototype.hide.call(this);this.u.hide();this.messageText.hide();PQ(this)};
g.k.show=function(){$7a(this,!0);NQ.prototype.show.call(this);OQ(this);this.u.show();this.messageText.show()};
g.k.Vv=function(){this.hide()};
g.k.ut=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.J&&a>=this.B?(this.C.hide(),this.J=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.B-a)/1E3)),a!==this.Z&&(MQ(this.messageText,{TIME_REMAINING:String(a)}),this.Z=a)))}};g.w(a8a,eQ);g.k=a8a.prototype;
g.k.init=function(a,b,c){eQ.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.K(b.actionButton,g.mM)?(this.B.init(fN("ad-image"),b.image,c),this.u.init(fN("ad-text"),b.headline,c),this.C.init(fN("ad-text"),b.description,c),a=["ytp-ad-underlay-action-button"],this.api.V().K("use_blue_buttons_for_desktop_player_underlay")&&a.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,
a),b.backgroundColor&&g.Hm(this.element,"background-color",g.nR(b.backgroundColor)),g.E(this,this.actionButton),this.actionButton.Ea(this.D),this.actionButton.init(fN("button"),g.K(b.actionButton,g.mM),c),b=g.gJ(this.api.V().experiments,"player_underlay_video_width_fraction"),this.api.V().K("place_shrunken_video_on_left_of_player")?(c=this.j,g.Sp(c,"ytp-ad-underlay-left-container"),g.Qp(c,"ytp-ad-underlay-right-container"),g.Hm(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.Sp(c,"ytp-ad-underlay-right-container"),
g.Qp(c,"ytp-ad-underlay-left-container")),g.Hm(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.uG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.CQ.bind(this)),this.api.addEventListener("resize",this.qU.bind(this))):g.CD(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.CD(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.CD(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.CD(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){b8a(!0);this.actionButton&&this.actionButton.show();eQ.prototype.show.call(this)};
g.k.hide=function(){b8a(!1);this.actionButton&&this.actionButton.hide();eQ.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.CQ.bind(this));this.api.removeEventListener("resize",this.qU.bind(this));this.hide()};
g.k.onClick=function(a){eQ.prototype.onClick.call(this,a);this.actionButton&&g.zf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.CQ=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
g.k.qU=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(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.Hm(this.u.element,"font-size",a.width/40+"px")};g.w(R2,eQ);
R2.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.K(b.answer,g.mM)?(a=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ea(this.answer),a.init(fN("ytp-ad-survey-answer-button"),g.K(b.answer,g.mM),c),a.show()):b.answer&&g.K(b.answer,u3)&&(this.j=new DQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ea(this.answer),g.E(this,this.j),this.j.init(fN("survey-answer-button"),g.K(b.answer,u3),c));this.show()};
R2.prototype.WO=function(a){this.layoutId?s0(this.rb,a,this.layoutId,this.macros):g.CD(new g.bA("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
R2.prototype.onClick=function(a){eQ.prototype.onClick.call(this,a);this.api.V().K("supports_multi_step_on_desktop")&&null!==this.index&&this.u(this.index)};
R2.prototype.clear=function(){this.hide()};g.w(c8a,eQ);c8a.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);b.answer&&g.K(b.answer,u3)&&(this.button=new DQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ea(this.j),this.button.init(fN("survey-none-of-the-above-button"),g.K(b.answer,u3),c));this.show()};g.w(S2,vQ);S2.prototype.init=function(a,b,c){vQ.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.gE(b.text),a=!g.Tb(b));a||g.DD(Error("No submit text was present in the renderer."))};
S2.prototype.onClick=function(a){this.ma("l");vQ.prototype.onClick.call(this,a)};g.w(T2,eQ);
T2.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.K(a,R0)?(a=g.K(a,R0),c=new ZQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.B,!0),c.Ea(this.D),c.init(fN("skip-button"),a,this.macros),g.E(this,c),this.j=c):g.K(a,T0)&&(a=g.K(a,T0),c=new SQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.B,!1),c.Ea(this.D),c.init(fN("ad-preview"),a,this.macros),TQ(c),g.E(this,c),this.j=c);null==this.j&&g.CD(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));
b.submitButton&&(a=b.submitButton,g.K(a,g.mM)&&(a=g.K(a,g.mM),c=new S2(this.api,this.layoutId,this.interactionLoggingClientData,this.rb),c.Ea(this.submitButton),c.init(fN("survey-submit"),a,this.macros),g.E(this,c),this.u=c));if(a=b.adBadgeRenderer)a=g.K(a,R$a),c=new aR(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,!0),c.Ea(this.C),c.init(fN("simple-ad-badge"),a,this.macros),g.E(this,c);if(a=b.adDurationRemaining)a=g.K(a,K$a),c=new gR(this.api,this.layoutId,this.interactionLoggingClientData,
this.rb,this.B,void 0),c.Ea(this.C),c.init(fN("ad-duration-remaining"),a,this.macros),g.E(this,c);(b=b.adInfoRenderer)&&g.K(b,S0)&&(a=new KQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,this.element),g.E(this,a),a.Ea(this.C),a.init(fN("ad-info-hover-text-button"),g.K(b,S0),this.macros));this.show()};
T2.prototype.clear=function(){this.hide()};g.w(U2,eQ);U2.prototype.init=function(a,b,c){eQ.prototype.init.call(this,a,b,c);g8a(this)};
U2.prototype.show=function(){this.B=g.Ra();eQ.prototype.show.call(this)};
U2.prototype.mX=function(){};g.w(h8a,U2);g.k=h8a.prototype;g.k.init=function(a,b,c){var d=this;U2.prototype.init.call(this,a,b,c);b.questionText&&g.Af(this.questionText,g.gE(b.questionText));b.answers&&b.answers.forEach(function(e,f){g.K(e,p3)&&d8a(d,g.K(e,p3),c,f)});
this.D=new Set(this.u.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.K(a,N$a))&&i8a(this,a,c);b.surveyAdQuestionCommon&&f8a(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()};
g.k.mX=function(){j8a(this,!1);this.C.u.subscribe("l",this.D7,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?k8a(this):this.D.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),j8a(this,!0))};
g.k.D7=function(){var a=[],b=this.u.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.nd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=$i(f.baseUrl,b));return f});
return e});
if(c){c=g.t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?s0(this.rb,d,this.layoutId,this.macros):g.CD(Error("Missing layoutId for multi_select_question."))}this.api.V().K("supports_multi_step_on_desktop")&&this.J(a)};
g.k.clear=function(){this.api.V().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(V2,U2);V2.prototype.init=function(a,b,c){var d=this;U2.prototype.init.call(this,a,b,c);b.questionText&&g.Af(this.questionText,g.gE(b.questionText));b.answers&&b.answers.forEach(function(e,f){g.K(e,p3)&&d8a(d,g.K(e,p3),c,f)});
b.surveyAdQuestionCommon?f8a(this,b.surveyAdQuestionCommon):g.CD(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
V2.prototype.clear=function(){this.api.V().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.w(W2,eQ);W2.prototype.init=function(a,b,c){var d=this;eQ.prototype.init.call(this,a,b,c);if(this.api.V().K("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.u=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&o8a(this,0)}else(b.questions||[]).forEach(function(l){g.K(l,wN)?m8a(d,g.K(l,wN),c):g.K(l,xN)&&n8a(d,g.K(l,xN),c)});
this.show()};
W2.prototype.clear=function(){this.api.V().K("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
W2.prototype.C=function(a){var b=this;if(this.api.V().K("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.CD(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(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.CD(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)o8a(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.CD(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.w(X2,eQ);
X2.prototype.init=function(a,b,c){var d=this;eQ.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.CD(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.K(b.ctaButton,g.mM))if(b.brandImage)if(b.backgroundImage&&g.K(b.backgroundImage,U0)&&g.K(b.backgroundImage,U0).landscape){this.layoutId||g.CD(Error("Missing layoutId for survey interstitial."));p8a(this.interstitial,g.K(b.backgroundImage,
U0).landscape);p8a(this.logoImage,b.brandImage);g.Af(this.text,g.gE(b.text));var e=["ytp-ad-survey-interstitial-action-button"];this.api.V().K("web_modern_buttons_bl_survey")&&e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new vQ(this.api,this.layoutId,this.interactionLoggingClientData,this.rb,e);g.E(this,this.actionButton);this.actionButton.Ea(this.u);this.actionButton.init(fN("button"),g.K(b.ctaButton,g.mM),c);this.actionButton.show();this.j=new cR(this.api,1E3*a);
this.j.subscribe("g",function(){d.transition.hide()});
g.E(this,this.j);this.S(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.CD(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.CD(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.CD(Error("SurveyTextInterstitialRenderer has no button."));else g.CD(Error("SurveyTextInterstitialRenderer has no text."));else g.CD(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
X2.prototype.clear=function(){this.hide()};
X2.prototype.show=function(){q8a(!0);eQ.prototype.show.call(this)};
X2.prototype.hide=function(){q8a(!1);eQ.prototype.hide.call(this)};var idb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat(["shopping-companion","action-companion","image-companion","ads-engagement-panel"]);g.w(Y2,FQ);
Y2.prototype.C=function(a){var b=a.id,c=a.content,d=c.componentType;if(!idb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.rb,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof aO?c.pP:!1,m=c instanceof aO||c instanceof bR?c.gI:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new R7a(a,f,h,e);break;case "player-overlay":a=new lR(a,f,h,e,new gU(a),m);break;case "survey":a=new W2(a,f,h,e);break;case "ad-action-interstitial":a=new M7a(a,
f,h,e,l,m);break;case "survey-interstitial":a=new X2(a,f,h,e);break;case "ad-message":a=new Z7a(a,f,h,e,new gU(a,1));break;case "player-underlay":a=new a8a(a,f,h,e);break;default:a=null}if(!a){g.DD(Error("No UI component returned from ComponentFactory for type: "+d));break}g.$c(this.u,b)?g.DD(Error("Ad UI component already registered: "+b)):this.u[b]=a;a.bind(c);c instanceof l7a?this.B?this.B.append(a.VO):g.CD(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(a.VO);
break;case 2:b=r8a(this,a);if(null==b)break;b.bind(c);break;case 3:c=r8a(this,a),null!=c&&(g.Za(c),g.$c(this.u,b)?g.id(this.u,b):g.DD(Error("Ad UI component does not exist: "+b)))}};
Y2.prototype.qa=function(){g.$a(Object.values(this.u));this.u={};FQ.prototype.qa.call(this)};g.w(s8a,g.CT);g.k=s8a.prototype;g.k.create=function(){try{t8a(this),this.load(),this.created=!0,t8a(this)}catch(a){GD(a instanceof Error?a:String(a))}};
g.k.load=function(){try{v8a(this)}finally{k1(O2(this.j).Di)&&this.player.jg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Zs.un(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.CT.prototype.unload.call(this);zsa(!1);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){GD(b instanceof Error?b:String(b))}if(null!==this.xe){var a=this.xe;this.xe=null;a.dispose()}null!=this.u&&(a=this.u,this.u=null,a.dispose());this.fu.reset()};
g.k.Tk=function(){return!1};
g.k.qP=function(){return null===this.xe?!1:this.xe.qP()};
g.k.bp=function(a){null!==this.xe&&this.xe.bp(a)};
g.k.getAdState=function(){return this.xe?this.xe.qG:-1};
g.k.getOptions=function(){return Object.values(hdb)};
g.k.qh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=BN(this.player),Object.assign(b,a.s6a),this.xe&&!b.AD_CPN&&(b.AD_CPN=this.xe.GB()),a=g.xp(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Ys(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.gt=function(a){var b;return!(null==(b=this.j.j.xf)||!b.get().gt(a))};
g.k.Ys=function(a){a.isMuted&&hEa(this.xe,O2(this.j).Kj,O2(this.j).Tl,a.layoutId);this.Gx&&this.Gx.Ys()};
g.k.executeCommand=function(a){O2(this.j).rb.executeCommand(a.command,a.layoutId)};g.BT("ad",s8a);var B8a=g.mf&&A8a();g.w(g.Z2,g.C);g.Z2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.M)()};this.next()};
g.Z2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.Z2.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.M)()-a;a=this.j;d=Ala(a,e/d);if(0==d)a=a.J;else if(1==d)a=a.T;else{e=De(a.J,a.D,d);var f=De(a.D,a.I,d);a=De(a.I,a.T,d);e=De(e,f,d);f=De(f,a,d);a=De(e,f,d)}a=g.ze(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.w(g.$2,g.U);g.k=g.$2.prototype;g.k.JZ=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.U.prototype.show.call(this);F8a(this)};
g.k.KZ=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Hq=function(){this.Db(this.api.jb().getPlayerSize())};
g.k.isShortsModeEnabled=function(){return this.api.V().K("shorts_mode_to_player_api")?this.api.Sb():this.I.Sb()};
g.k.Db=function(a){var b=this.isShortsModeEnabled()?.5625:16/9,c=this.I.yg();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.t(this.u),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.Z=b;this.containerWidth=a;this.columns=c;this.j=0;this.suggestions.element.scrollLeft=-0;g.a3(this)};
g.k.onVideoDataChange=function(){var a=this.api.V(),b=this.api.getVideoData();this.J=b.D?!1:a.C;this.suggestionData=b.suggestions?g.Rn(b.suggestions,function(c){return c&&!c.playlistId}):[];
H8a(this);b.D?this.title.update({title:g.lO("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.isShortsModeEnabled()?"More shorts":"More videos"})};
g.k.scrollTo=function(a){a=g.ze(a,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.T.start(this.j,a,1E3);this.j=a;g.a3(this);F8a(this)};})(_yt_player);

}

/*
     FILE ARCHIVED ON 09:59:03 Apr 26, 2023 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 22:31:21 Jul 22, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  capture_cache.get: 0.729
  load_resource: 722.471 (2)
  PetaboxLoader3.resolve: 492.928 (2)
  PetaboxLoader3.datanode: 190.822 (2)
*/